]> git.eshelyaron.com Git - emacs.git/commitdiff
Preserve leading whitespace in `lm-commentary'.
authorMatt Armstrong <matt@rfc20.org>
Tue, 9 Feb 2021 08:10:45 +0000 (09:10 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Feb 2021 08:10:45 +0000 (09:10 +0100)
* lisp/emacs-lisp/lisp-mnt.el (lm-commentary): Preserve leading
whitespace (bug#46364).

lisp/emacs-lisp/lisp-mnt.el

index adb9cb2372c52488e0714c7950ae4c2cf6f5dd77..6d9c8c32794efb00c34fed9688d1c96e4680eef4 100644 (file)
@@ -495,7 +495,7 @@ absent, return nil."
                   (concat "^;;;[[:blank:]]*\\("
                           lm-commentary-header
                           "\\):[[:blank:]\n]*")
-                  "^;;[[:blank:]]*"     ; double semicolon prefix
+                  "^;;[[:blank:]]?"     ; double semicolon prefix
                   "[[:blank:]\n]*\\'")  ; trailing new-lines
           "" (buffer-substring-no-properties
               start (lm-commentary-end))))))))