Subject: bug#36313: 12.1.2; percent symbol in \url{}

From: Arash Esbati <[email-masked]>
Date: Sun, 23 Jun 2019 21:53:50 +0200

Ryo Furue <[email-masked]> 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