emacs-pretest-bug
[Top][All Lists]
Advanced

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

easy-mmode-pretty-mode-name, missing regexp-quote


From: Johan Bockgård
Subject: easy-mmode-pretty-mode-name, missing regexp-quote
Date: Thu, 05 May 2005 00:12:44 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Problem:

(define-minor-mode bar "" nil "[OE]" nil)
(documentation-property 'bar 'variable-documentation)
  =>
"Non-nil if Bar m[OE]d[OE] is enabled.
Use the command `bar' to change this variable."


Fix:

--- easy-mmode.el       26 Apr 2005 19:12:23 +0200      1.59
+++ easy-mmode.el       04 May 2005 23:51:11 +0200      
@@ -67,7 +67,7 @@
                       " mode")))
     (if (not (stringp lighter)) name
       (setq lighter (replace-regexp-in-string "\\`\\s-+\\|\\-s+\\'" "" 
lighter))
-      (replace-regexp-in-string lighter lighter name t t))))
+      (replace-regexp-in-string (regexp-quote lighter) lighter name t t))))


-- 
Johan Bockgård




reply via email to

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