projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85e9e5f
)
Fix warning in etc-authors-mode.el
author
Stefan Kangas
<stefan@marxist.se>
Tue, 21 Sep 2021 20:09:09 +0000
(22:09 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/lisp/textmodes/etc-authors-mode.el
b/lisp/textmodes/etc-authors-mode.el
index 09ad1983466718dbb1d283661f2aa1e40a19c5fe..e416d1395aaa0215adc337f2145341ebfd253e98 100644
(file)
--- a/
lisp/textmodes/etc-authors-mode.el
+++ b/
lisp/textmodes/etc-authors-mode.el
@@
-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)))))