From: Dmitry Gutov <dmitry@gutov.dev>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Basil L. Contovounesios" <basil@contovou.net>, 69191@debbugs.gnu.org
Subject: bug#69191: 30.0.50; New var `major-mode-remap-defaults`, for packages
Date: Thu, 7 Mar 2024 01:15:42 +0200 [thread overview]
Message-ID: <3c717524-bd3e-4845-913e-58b789fd08d3@gutov.dev> (raw)
In-Reply-To: <jwvcys82hz9.fsf-monnier+emacs@gnu.org>
On 06/03/2024 04:54, Stefan Monnier wrote:
>> The idea seems attractive, but what's going to happen in such
>> a configuration when go-ts-mode.el hasn't been loaded yet, and go-mode is
>> (without additional effort by the user) is not installed?
>
> I'd expect that `go-ts-mode.el` would setup both `auto-mode-alist` and`
> and `major-mode-remap-defaults` at the same time (probably at the same
> time as the function's autoload), so I don't foresee any problem there.
I suppose that's good for consistency, but proportionally less useful at
the same time.
The practical side of having go-mode in auto-mode-alist is being able to
build some "language association" at runtine, right? Or how did you
imagine this being used?
> [ There is a problem with `set-auto-mode` which may skip/ignore the
> `go-mode` specification before even looking it up in
> `major-mode-remap`, but that's in the process of being fixed
> as part of bug#67795. ]
>
>
> Stefan
>
next prev parent reply other threads:[~2024-03-06 23:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 15:45 bug#69191: 30.0.50; New var `major-mode-remap-defaults`, for packages Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-21 13:44 ` Basil L. Contovounesios
2024-03-04 4:25 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-04 4:59 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-06 0:03 ` Dmitry Gutov
2024-03-06 2:54 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-06 23:15 ` Dmitry Gutov [this message]
2024-03-07 3:39 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=3c717524-bd3e-4845-913e-58b789fd08d3@gutov.dev \
--to=dmitry@gutov.dev \
--cc=69191@debbugs.gnu.org \
--cc=basil@contovou.net \
--cc=monnier@iro.umontreal.ca \
/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).