From 1100ee841aa616d80cb04fdd6a25d6a41afcdd78 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Mon, 2 Jan 2023 16:49:19 +0100 Subject: [PATCH] Suppress false positive emacs warning Fixes #15526. --- core/core-custom-settings.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core-custom-settings.el b/core/core-custom-settings.el index 86cde03bc..7cbbeb134 100644 --- a/core/core-custom-settings.el +++ b/core/core-custom-settings.el @@ -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)))))