Ryo Furue <ryofu...@gmail.com> writes:

> Some valid URLs contain the percent symbol but the LaTeX mode (I don't
> know its official name) treats it as the beginning of a comment and uses
> the comment color as a result.
>
> Emacs  : GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.2.0, NS
> appkit-1671.20 Version 10.14.3 (Build 18D109))
> of 2019-04-13
> Package: 12.1.2
>
> current state:
> ==============
> (setq
> AUCTeX-date "2019-02-08"
> window-system 'ns
> LaTeX-version "2e"
> TeX-style-path '("/usr/local/var/auctex"
>  "/Users/furue/.emacs.d/elpa/auctex-12.1.2/style"
>  "/Users/furue/.emacs.d/auctex/auto"
>  "/Users/furue/.emacs.d/auctex/style" "auto" "style")
> TeX-auto-save nil
> TeX-parse-self nil

Hi Ryo,

AUCTeX can DTRT here if you give her a chance.  Please customize the
variable `TeX-parse-self' to t, restart Emacs and open your .tex file
again.  AUCTeX will then load a support file for hyperref or url (or
both, depending on your .tex file) and the fontification will be
correct.

Best, Arash



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to