From: David Landell <david.landell@sunnyhill.email>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 54405@debbugs.gnu.org
Subject: bug#54405: 27.1; How to reset connection-local variable
Date: Fri, 18 Mar 2022 17:57:06 +0100 [thread overview]
Message-ID: <864k3vi4gt.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87h77vij8i.fsf@gmx.de>
Excellent,
> Michael Albinus <michael.albinus@gmx.de> writes:
>
>
> I've pushed a change to the Emacs master git branch, which allows to
> change the application in `with-connection-local-variables'. The Elisp
> manual has been extended with
>
> Does this suffice?
>
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'?
Anyway, on my end this can be resolved, I have a workaround in place. So
this is mostly FYI.
Cheers,
David
>
> Best regards, Michael.
next prev parent reply other threads:[~2022-03-18 16:57 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 [this message]
2022-03-19 8:24 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864k3vi4gt.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me \
--to=david.landell@sunnyhill.email \
--cc=54405@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.