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

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

[emacs-wiki-discuss] emacs-wiki-wiki-visible-name Re: problem with punct


From: Sacha Chua
Subject: [emacs-wiki-discuss] emacs-wiki-wiki-visible-name Re: problem with punctuation in plan page names
Date: Thu, 04 Aug 2005 14:20:12 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

John S J Anderson <address@hidden> writes:

>   Before I roll up my sleeves and start trying to figure out what regexp
>   to munge on, does anybody know how to fix this so I get the desired
>   behavior? Is it even possible, or should I just go back to my old
>   system with explicit keywords? 

Aha! emacs-wiki-wiki-visible-name forgot that emacs-wiki-name-regexp
has a \\|. Here's a patch that fixes it:

--- orig/emacs-wiki.el
+++ mod/emacs-wiki.el
@@ -1033,7 +1033,7 @@
             (setq name (match-string 1 name))
             (when (string-match "^mailto:"; name)
               (setq name (substring name (match-end 0))))))
-      (when (string-match (concat "^" emacs-wiki-name-regexp "$")
+      (when (string-match (concat "^\\(" emacs-wiki-name-regexp "\\)$")
                           name)
         (string-match "#" name)
         (let ((base (substring name 0 (match-beginning 0)))

Hi Mike! =)
-- 
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, juggling
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

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