Suppress false positive emacs warning

Fixes #15526.
This commit is contained in:
Tim Ruffing 2023-01-02 16:49:19 +01:00 committed by Maxi Wolff
parent e043c86163
commit 1100ee841a

View file

@ -84,7 +84,12 @@ end of the buffer.
(goto-char (point-max))
(search-backward "\n\^L" (max (- (point-max) 3000) (point-min))
'move)
(when (search-forward "Local Variables:" nil t)
;; emacs would print the warning
;; "Local variables list is not properly terminated"
;; (a false positive) when reading this source file
;; if we had not obfuscated the string literal
;; in the next line using an ignored space ("\ ").
(when (search-forward "Local\ Variables:" nil t)
(setq pos (line-beginning-position))))
(goto-char pos)))))