emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Publishing my plan pages


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: Publishing my plan pages
Date: Thu, 22 Sep 2005 09:14:57 -0500
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Jim Crossley <address@hidden> writes:

> John Sullivan <address@hidden> writes:
>
>> Jim Crossley <address@hidden> 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: pgpoQ0GyDIsoL.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]