]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix warning in etc-authors-mode.el
authorStefan Kangas <stefan@marxist.se>
Tue, 21 Sep 2021 20:09:09 +0000 (22:09 +0200)
committerStefan Kangas <stefan@marxist.se>
Tue, 21 Sep 2021 20:21:31 +0000 (22:21 +0200)
* lisp/textmodes/etc-authors-mode.el
(etc-authors-mode--hide-local-variables): Avoid warning.

lisp/textmodes/etc-authors-mode.el

index 09ad1983466718dbb1d283661f2aa1e40a19c5fe..e416d1395aaa0215adc337f2145341ebfd253e98 100644 (file)
@@ -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)))))