]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor-mode doc string quoting
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 6 Apr 2022 11:47:46 +0000 (13:47 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 6 Apr 2022 11:47:46 +0000 (13:47 +0200)
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): Fix
double quoting of things like (default-value 'electric-pair-mode)
(bug#54746).

lisp/emacs-lisp/easy-mmode.el

index b2302624b1a1969fef28ce5dcfefc59425d96073..8a76eaf58cf9661fa301cef0b3061efcb411640a 100644 (file)
@@ -129,7 +129,7 @@ it is disabled.")
                         (if global "global " "")
                         mode-pretty-name
                         ;; Avoid having quotes turn into pretty quotes.
-                        (string-replace "'" "\\\\='" (format "%S" getter)))))
+                        (string-replace "'" "\\='" (format "%S" getter)))))
           (let ((start (point)))
             (insert argdoc)
             (when (fboundp 'fill-region)