From: Tassilo Horn <tsdh@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Clément Pit--Claudel" <clement.pitclaudel@live.com>,
24868@debbugs.gnu.org
Subject: bug#24868: 26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken into account
Date: Thu, 03 Nov 2016 19:35:36 +0100 [thread overview]
Message-ID: <87r36so1hj.fsf@gnu.org> (raw)
In-Reply-To: <834m3omobd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Nov 2016 20:05:26 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> Starting from emacs -Q with (add-to-list 'auto-mode-alist '("\\.tex$"
>> . LaTeX-mode)), opening the attached file produces incorrect
>> highlighting. This is due to LaTeX-verbatim-macros-with-delims-local
>> not being applied properly.
>
> Maybe I'm blind, but I seem to be unable to reproduce this. Can you
> tell which highlighting is incorrect, i.e. what should happen and what
> does happen?
>
> Also, in what version of Emacs did this work?
I guess Clement is actually reporting an AUCTeX bug and accidentally
used `report-emacs-bug' instead of `TeX-submit-bug-report'.
And Clément is right. With the current AUCTeX version modifying
`LaTeX-verbatim-macros-with-delims-local' and friends as a file-local or
directory-local variable doesn't refresh fontification. Until now,
these variables have been meant mostly for style file authors, and when
a style is loaded, fontification will be recomputed. But Clément's
use-case is valid, of course.
So Eli,
(1) can we move that bug to the auctex debbugs category?
(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?
Bye,
Tassilo
next prev parent reply other threads:[~2016-11-03 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 16:11 bug#24868: 26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken into account Clément Pit--Claudel
2016-11-03 18:05 ` Eli Zaretskii
2016-11-03 18:35 ` Tassilo Horn [this message]
2016-11-03 19:06 ` Clément Pit--Claudel
2016-11-03 19:27 ` Tassilo Horn
2016-11-03 19:09 ` Eli Zaretskii
2016-11-03 19:26 ` Clément Pit--Claudel
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=87r36so1hj.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=24868@debbugs.gnu.org \
--cc=clement.pitclaudel@live.com \
--cc=eliz@gnu.org \
/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).