emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b582289 1/2: Fix warning in etc-authors-mode.el


From: Stefan Kangas
Subject: master b582289 1/2: Fix warning in etc-authors-mode.el
Date: Tue, 21 Sep 2021 16:22:21 -0400 (EDT)

branch: master
commit b58228903f08404e9e1c6d7f956a1033b5f8dd51
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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 09ad198..e416d13 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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]