unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dan Connolly <dckc@madmode.com>
Cc: 46122@debbugs.gnu.org
Subject: bug#46122: 25.2; changes to .dir-locals.el are not picked up when .dir-locals.el is a symlink
Date: Tue, 14 Jun 2022 15:01:59 +0200	[thread overview]
Message-ID: <87a6afmm9k.fsf@gnus.org> (raw)
In-Reply-To: <CAD2YivZ3UQUFLwUO1phDi+7BmuRtqEH=QHCLcVpim8f+JsYdbg@mail.gmail.com> (Dan Connolly's message of "Tue, 26 Jan 2021 15:47:21 -0600")

Dan Connolly <dckc@madmode.com> writes:

> 1. Create ~/projects/m/.dir-locals.el file to set tab-width to 4.
> 2. Visit ~/projects/m/xyz.c and verify that tabs use 4 spaces
> 3. mv ~/projects/m/.dir-locals.el to ~/.emacs.d/m-locals.el
> 4. ln -s ~/.emacs.d/m-locals.el ~/projects/m/.dir-locals.el
> 5. Change 4 6 in ~/.emacs.d/m-locals.el
> 6. in the xyz.c buffer, M-x revert-buffer
>
> expected result:
> 7. tabs use 6 spaces
>
> actual result:
> 7. no change; tabs still use 4 spaces
>
> work-around:
> (setq dir-locals-directory-cache nil) before step 6.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I've now fixed this in Emacs 29.

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





      reply	other threads:[~2022-06-14 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26 21:47 bug#46122: 25.2; changes to .dir-locals.el are not picked up when .dir-locals.el is a symlink Dan Connolly
2022-06-14 13:01 ` Lars Ingebrigtsen [this message]

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=87a6afmm9k.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=46122@debbugs.gnu.org \
    --cc=dckc@madmode.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).