From: Michael Albinus <michael.albinus@gmx.de>
To: David Landell <david.landell@sunnyhill.email>
Cc: 54405-done@debbugs.gnu.org
Subject: bug#54405: 27.1; How to reset connection-local variable
Date: Sat, 19 Mar 2022 09:24:12 +0100 [thread overview]
Message-ID: <871qyye4er.fsf@gmx.de> (raw)
In-Reply-To: <864k3vi4gt.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> (David Landell's message of "Fri, 18 Mar 2022 17:57:06 +0100")
Version: 29.1
David Landell <david.landell@sunnyhill.email> writes:
Hi David,
> This seems to work fine as far as I can tell and as far as my testing
> goes with this feature isolated. There is however a small complication
> which I don't know if it is to be considered a bug or not.
>
> Still this fails with my package. I discovered that this is because
> `hack-dir-local-variables-non-file-buffer' is called at some point for a
> totally unrelated variable to be applied. The actual trigger point is
> `hack-local-variables-apply'.
>
> So further debugging indicates that the connection-local variable that
> is applied (and reset) in `with-connection-local-variables' is also
> added to `file-local-variables-alist' which makes it a buffer local
> during the call to `hack-local-variables-apply'.
>
> Question is if the file-local should be reset at the same time as
> `kill-local-variable' is called in `with-connection-local-variables'?
File-local, directory-local and connection-local variables are set
independently. All of them are implemented as buffer-local variables,
that means, if a given variable is both file-local and connection-local
(or directory-local), there might be conflicts.
Until now, there is no mechanism to avoid this (AFAIK).
> Anyway, on my end this can be resolved, I have a workaround in place. So
> this is mostly FYI.
OK, closing the bug.
> Cheers,
> David
Best regards, Michael.
next prev parent reply other threads:[~2022-03-19 8:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 20:44 bug#54405: 27.1; How to reset connection-local variable David Landell
2022-03-16 18:35 ` Michael Albinus
2022-03-17 15:02 ` David Landell
2022-03-18 7:23 ` Michael Albinus
2022-03-18 11:38 ` Michael Albinus
2022-03-18 16:57 ` David Landell
2022-03-19 8:24 ` Michael Albinus [this message]
2022-03-19 15:57 ` Drew Adams
2022-03-19 17:57 ` Michael Albinus
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=871qyye4er.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=54405-done@debbugs.gnu.org \
--cc=david.landell@sunnyhill.email \
/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).