(describe-mode): Fix 2004-10-13 change.
authorKim F. Storm <storm@cua.dk>
Sun, 24 Oct 2004 20:35:12 +0000 (20:35 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 24 Oct 2004 20:35:12 +0000 (20:35 +0000)
Copy pure "Auto Fill" string so it can be propertized later
without causing a read-only error.

lisp/help.el

index 5a2867b..0ed9fe4 100644 (file)
@@ -651,7 +651,8 @@ whose documentation describes the minor mode."
                 (push (list pretty-minor-mode mode indicator)
                       minor-modes))))
        (if auto-fill-function
-           (push '("Auto Fill" auto-fill-mode " Fill")
+           ;; copy pure string so we can add face property to it below.
+           (push (list (copy-sequence "Auto Fill") 'auto-fill-mode " Fill")
                  minor-modes))
        (setq minor-modes
              (sort minor-modes