From e000a7ab1007cdbf4741a649c275b9c5d3faedc8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 21 Sep 2021 16:53:25 -0400 Subject: [PATCH] (etc-authors-mode--hide-local-variables): Obfuscate more efficiently --- lisp/textmodes/etc-authors-mode.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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))))) -- 2.39.5