From: Stefan Monnier Date: Tue, 21 Sep 2021 20:53:25 +0000 (-0400) Subject: (etc-authors-mode--hide-local-variables): Obfuscate more efficiently X-Git-Tag: emacs-28.0.90~751 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e000a7ab1007cdbf4741a649c275b9c5d3faedc8;p=emacs.git (etc-authors-mode--hide-local-variables): Obfuscate more efficiently --- diff --git a/lisp/textmodes/etc-authors-mode.el b/lisp/textmodes/etc-authors-mode.el index e416d1395aa..a591b2db978 100644 --- a/lisp/textmodes/etc-authors-mode.el +++ b/lisp/textmodes/etc-authors-mode.el @@ -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)))))