From: Matt Armstrong Date: Tue, 9 Feb 2021 08:10:45 +0000 (+0100) Subject: Preserve leading whitespace in `lm-commentary'. X-Git-Tag: emacs-28.0.90~3860 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c1e89a32c65244a992a8a1ff73fd606f94a8a15;p=emacs.git Preserve leading whitespace in `lm-commentary'. * lisp/emacs-lisp/lisp-mnt.el (lm-commentary): Preserve leading whitespace (bug#46364). --- diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index adb9cb2372c..6d9c8c32794 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el @@ -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))))))))