From b58228903f08404e9e1c6d7f956a1033b5f8dd51 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 21 Sep 2021 22:09:09 +0200 Subject: [PATCH] Fix warning in etc-authors-mode.el * lisp/textmodes/etc-authors-mode.el (etc-authors-mode--hide-local-variables): Avoid warning. --- lisp/textmodes/etc-authors-mode.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))))) -- 2.39.5