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 patch


From: Jim Ottaway
Subject: [emacs-wiki-discuss] emacs-wiki-wiki-visible-name patch
Date: Sat, 23 Apr 2005 17:53:29 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

I have found a problem with emacs-wiki-wiki-visible-name: it doesn't
temporarily bind case-fold-search to nil; this leads to some strange
results [usually, the function is called by another function that does
the binding].  

The patch is simple:

--- orig/emacs-wiki.el
+++ mod/emacs-wiki.el
@@ -1008,7 +1008,8 @@
   "Return the visible part of a Wiki link.
 This only really means something if [[extended][links]] are involved."
   (save-match-data
-    (let ((name wiki-name))
+    (let ((case-fold-search nil)
+         (name wiki-name))
       (if (string-match emacs-wiki-extended-link-regexp name)
           (if (match-string 2 name)
               (setq name (match-string 3 name))



Regards,
-- 
Jim Ottaway




reply via email to

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