]> git.eshelyaron.com Git - emacs.git/commitdiff
(etc-authors-mode--hide-local-variables): Obfuscate more efficiently
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Sep 2021 20:53:25 +0000 (16:53 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Sep 2021 20:53:25 +0000 (16:53 -0400)
lisp/textmodes/etc-authors-mode.el

index e416d1395aaa0215adc337f2145341ebfd253e98..a591b2db9784e754b4f8a3c2451f98fba61c2a52 100644 (file)
@@ -87,11 +87,9 @@ See also `etc-authors-mode'."
   (narrow-to-region (point-min)
                     (save-excursion
                       (goto-char (point-min))
-                      (if (re-search-forward
-                           ;; Obfuscate to avoid this being interpreted
-                           ;; as a local variable section itself.
-                           (concat "^Local " "Variables:$")
-                           nil t)
+                      ;; Obfuscate to avoid this being interpreted
+                      ;; as a local variable section itself.
+                      (if (re-search-forward "^Local\sVariables:$" nil t)
                           (progn (forward-line -1) (point))
                         (point-max)))))