Emacs modespmwiki-modeAn Emacs-mode for editing wiki pages Note: These pages are under construction! Edit linksPmWiki/PmWiki
|
URI transforms<< Tips | Pages | Screenshots >> This page documents how you can use the feature of
(set 'pmwiki-uri-transforms
(list
'("http://wiki.lyx.org\\(/[A-Z]\\|/?\\?\\)"
"http://wiki.lyx.org"
"http://wiki.lyx.org/pmwiki.php")
'("http://wiki.lyx.org/pmwiki.php"
"http://wiki.lyx.org"
"http://chr:LyXers@wiki.lyx.org")
))
In the example,
Let's now study the first transformation:
'("http://wiki.lyx.org\\(/[A-Z]\\|/?\\?\\)"
"http://wiki.lyx.org"
"http://wiki.lyx.org/pmwiki.php")
The first part requires the URI to match the regular expression http://wiki.lyx.org\(/[A-Z]\|/?\?\)
which in practice matches URIs such as these The second part will search for Let's now study the second transformation:
'("http://wiki.lyx.org/pmwiki.php"
"http://wiki.lyx.org"
"http://chr:LyXers@wiki.lyx.org")
This transformation simply inserts username and password into the URI because the requires a password in order to edit pages. (The password doesn't hurt even when just opening a page). |