From: Stefan Kangas Date: Tue, 21 Sep 2021 20:09:09 +0000 (+0200) Subject: Fix warning in etc-authors-mode.el X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~1002 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b58228903f08404e9e1c6d7f956a1033b5f8dd51;p=emacs.git Fix warning in etc-authors-mode.el * lisp/textmodes/etc-authors-mode.el (etc-authors-mode--hide-local-variables): Avoid warning. --- diff --git a/lisp/textmodes/etc-authors-mode.el b/lisp/textmodes/etc-authors-mode.el index 09ad1983466..e416d1395aa 100644 --- a/lisp/textmodes/etc-authors-mode.el +++ b/lisp/textmodes/etc-authors-mode.el @@ -87,7 +87,11 @@ See also `etc-authors-mode'." (narrow-to-region (point-min) (save-excursion (goto-char (point-min)) - (if (re-search-forward "^Local Variables:$" nil t) + (if (re-search-forward + ;; Obfuscate to avoid this being interpreted + ;; as a local variable section itself. + (concat "^Local " "Variables:$") + nil t) (progn (forward-line -1) (point)) (point-max)))))