Skip to content

Commit

Permalink
Suppress false positive emacs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random authored and smile13241324 committed Jan 2, 2023
1 parent e043c86 commit 1100ee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/core-custom-settings.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))

Expand Down

0 comments on commit 1100ee8

Please sign in to comment.