[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e000a7a: (etc-authors-mode--hide-local-variables): Obfuscate more
From: |
Stefan Monnier |
Subject: |
master e000a7a: (etc-authors-mode--hide-local-variables): Obfuscate more efficiently |
Date: |
Tue, 21 Sep 2021 16:54:00 -0400 (EDT) |
branch: master
commit e000a7ab1007cdbf4741a649c275b9c5d3faedc8
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
(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 e416d13..a591b2d 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)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e000a7a: (etc-authors-mode--hide-local-variables): Obfuscate more efficiently,
Stefan Monnier <=