bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65891: 29.0.91; Could the error msg be better for this?


From: Andreas Schwab
Subject: bug#65891: 29.0.91; Could the error msg be better for this?
Date: Tue, 12 Sep 2023 17:48:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Sep 12 2023, Drew Adams wrote:

> I'm guessing that it's flagged as a "file mode specification" error
> because it's from a mode hook?

It comes from processing auto-mode-alist, see normal-mode:

    (with-demoted-errors "File mode specification error: %s"
      (set-auto-mode))

> But major modes are not necessarily about file buffers.

auto-mode-alist is only about matching file names to modes, so the error
message looks fitting.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]