GNU bug report logs - #24868
26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken into account

Previous Next

Package: auctex;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Thu, 3 Nov 2016 16:13:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 24868 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Clément Pit--Claudel <clement.pit <at> gmail.com>
Cc: 24868 <at> debbugs.gnu.org
Subject: Re: bug#24868: 26.0.50;
 LaTeX-verbatim-macros-with-delims-local isn't taken into account
Date: Fri, 04 Nov 2016 19:54:25 +0100
[Message part 1 (text/plain, inline)]
Clément Pit--Claudel <clement.pit <at> gmail.com> writes:

> On 2016-11-03 15:09, Eli Zaretskii wrote:
>>> > (2) there's no hook-like thing that would be run whenever some specific
>>> >     variable is modified due to file-local or directory-local variables,
>>> >     no?  So I guess the right way to make Clément's use-case work was to
>>> >     provide functions for modifying those variables that can be run from
>>> >     an eval: local variables block and then refresh the fontification if
>>> >     needed, right?
>> Probably.  Unless someone will come up with a more clever idea.
>
> Hmm. Wouldn't something like the following work?
>
> (add-hook 'hack-local-variables-hook
>           (lambda () 
>              (when (…check relevant variable for a change…)
>                (…refresh fontification…)))

Yeah, that did the trick.  I've just pushed a fix like that and also
declared the LaTeX-verbatim-*-local variables as safe-local-variables in
case their value is a list of strings.  I briefly tested that it works
as expected with both a file-local variables section and a
.dir-locals.el file.

Could you give it a try and report back so that I can close the bug
then?

Bye,
Tassilo
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.