unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Tom Tromey <tom@tromey.com>
Cc: 18721@debbugs.gnu.org, 18188@debbugs.gnu.org
Subject: bug#18188: Please make it possible to have a directory-local setting for auto-mode-alist
Date: Sat, 29 May 2021 06:07:40 +0200	[thread overview]
Message-ID: <87pmxatc6r.fsf_-_@gnus.org> (raw)
In-Reply-To: <87bmv63jd4.fsf@tromey.com> (Tom Tromey's message of "Mon, 16 Jan 2017 12:17:11 -0700")

Tom Tromey <tom@tromey.com> writes:

> Eli> So I'm asking why not keep the current syntax for this feature, and
> Eli> avoid introducing a new kind of special key?  This would mean your
> Eli> example above will look like this:
> Eli>   (nil . ((auto-mode-alist . (("\\.def\\'" . c-mode)))))
>
> I suppose it would work ok as long as the code also doesn't try to set
> auto-mode-alist locally in the buffer, both because that variable isn't
> safe, and because I think it doesn't make sense to set it buffer-locally
> anyhow.

I think everybody agreed that this was a good feature to add (with Eli's
tweaks), but as far as I can tell, it was never added.  Tom, would it be
possible for you to re-spin this patch for Emacs 28?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-05-29  4:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 20:06 bug#18721: 25.0.50; choose major mode from .dir-locals.el Tom Tromey
2014-10-14 23:54 ` Stefan Monnier
2014-10-16 13:23   ` Ted Zlatanov
2017-01-15  2:38 ` bug#18721: patch Tom Tromey
2017-01-15 15:33   ` Eli Zaretskii
2017-01-15 19:22     ` Eli Zaretskii
2017-01-16 19:17     ` Tom Tromey
2021-05-29  4:07       ` Lars Ingebrigtsen [this message]
2021-05-29 15:13         ` bug#18188: Please make it possible to have a directory-local setting for auto-mode-alist Tom Tromey
2021-07-23 14:00           ` bug#18188: bug#18721: 25.0.50; choose major mode from .dir-locals.el Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2014-08-04 10:28 bug#18188: Please make it possible to have a directory-local setting for auto-mode-alist Reuben Thomas

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=87pmxatc6r.fsf_-_@gnus.org \
    --to=larsi@gnus.org \
    --cc=18188@debbugs.gnu.org \
    --cc=18721@debbugs.gnu.org \
    --cc=tom@tromey.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).