[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24868: 26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken

From: Clément Pit--Claudel
Subject: bug#24868: 26.0.50; LaTeX-verbatim-macros-with-delims-local isn't taken into account
Date: Thu, 3 Nov 2016 12:11:49 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

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.

Currently, the workarounds are:
* To not set LaTeX-verbatim-macros-with-delims-local locally (instead, put it 
in .emacs)
* To add \usepackage{polyglossia} to top of file (??! apparently polyglossia.el 
somehow refreshes the fontification?)
* Use an "eval:" prop line to refresh fontification:
  % Local Variables:
  % LaTeX-verbatim-macros-with-delims-local: ("fiatverb" "facadeverb" "sqlverb" 
  % eval: (progn (font-latex-set-syntactic-keywords) (font-latex-setup) (setq 
font-lock-set-defaults nil) (font-lock-set-defaults))
  % End:

None of these are very pleasant, unfortunately.  Can we add a hook to 
hack-local-variables that refreshes fontification appropriately?

(also: can we give LaTeX-verbatim-macros-with-delims-local a simple #'safe 


In GNU Emacs (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-10-29 built on clem-w50-mint
Repository revision: fae796fe2695b419aa9277d243633bae400a147a
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:     Linux Mint 18 Sarah

Attachment: test.tex
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]