Jim Crossley <[EMAIL PROTECTED]> writes:

> John Sullivan <[EMAIL PROTECTED]> writes:
>
>> Jim Crossley <[EMAIL PROTECTED]> writes:
>>
>>> Is there some way I can apply a regexp to replace those "pos" tags
>>> with HTML anchors in the output?

Adding this to your .emacs might work.

(defun planner-resolve-position-url (id)
  (save-match-data
    (when (string-match "^pos://\\(.+\\)/\\([^/]+\\)#\\([0-9]+\\)" id)
      (concat "http://myurl.com/depot/"; (match-string 2 id)
              "#" (match-string 3 id)))))

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: anime, Debian, XHTML, wiki, Emacs Lisp
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Jabber: mwolson_at_hcoop.net

Attachment: pgpI4VvN8im8c.pgp
Description: PGP signature

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss

Reply via email to