unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 65891@debbugs.gnu.org
Subject: bug#65891: 29.0.91; Could the error msg be better for this?
Date: Tue, 12 Sep 2023 17:48:33 +0200	[thread overview]
Message-ID: <mvm4jjzz92m.fsf@suse.de> (raw)
In-Reply-To: <SJ0PR10MB54889BEA67D15C120E7C9295F3F1A@SJ0PR10MB5488.namprd10.prod.outlook.com> (Drew Adams's message of "Tue, 12 Sep 2023 15:26:07 +0000")

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	other threads:[~2023-09-12 15:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 15:26 bug#65891: 29.0.91; Could the error msg be better for this? Drew Adams
2023-09-12 15:48 ` Andreas Schwab [this message]
2023-09-12 17:11   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvm4jjzz92m.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=65891@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).