From: Robert Pluim Date: Mon, 7 Mar 2022 10:26:25 +0000 (+0100) Subject: Report buffer-name when local mode-line is invalid X-Git-Tag: emacs-29.0.90~1931^2~1092 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e5f8e24af525a1f9a441305b1c7d24c4fcf9cda;p=emacs.git Report buffer-name when local mode-line is invalid * lisp/files.el (hack-local-variables-prop-line): Add '(buffer-name)' to the message reporting the malformed mode-line. --- diff --git a/lisp/files.el b/lisp/files.el index eca8cba93f2..a0bc5bf2626 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3741,8 +3741,8 @@ return as the symbol specifying the mode." (while (not (or (and (eq handle-mode t) result) (>= (point) end))) (unless (looking-at hack-local-variable-regexp) - (message "Malformed mode-line: %S" - (buffer-substring-no-properties (point) end)) + (message "Malformed mode-line: %S in buffer %S" + (buffer-substring-no-properties (point) end) (buffer-name)) (throw 'malformed-line nil)) (goto-char (match-end 0)) ;; There used to be a downcase here,