GNU bug report logs - #65891
29.0.91; Could the error msg be better for this?

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 12 Sep 2023 15:27:01 UTC

Severity: minor

Found in version 29.0.91

Full log


Message #8 received at 65891 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 65891 <at> debbugs.gnu.org
Subject: Re: bug#65891: 29.0.91; Could the error msg be better for this?
Date: Tue, 12 Sep 2023 17:48:33 +0200
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 <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 1 year and 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.