emacs-diffs
[Top][All Lists]
Advanced

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

master b21ea56: Tweak fontification of \url{http://foo.org/bar%zot} in (


From: Lars Ingebrigtsen
Subject: master b21ea56: Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-mode
Date: Wed, 30 Oct 2019 16:06:57 -0400 (EDT)

branch: master
commit b21ea56edc38112f5ae71d67f335a93b4cc8e3e9
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-mode
    
    * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1):
    \url{http://foo.org/bar%zot} shouldn't be fontified as having a
    comment, so make the tex-verbatim face overwrite the
    already-applied syntactical comment bits (bug#37134).
---
 lisp/textmodes/tex-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index f277def..3d7cc62 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -546,7 +546,7 @@ An alternative value is \" . \", if you use a font with a 
narrow period."
         ;; Include args.
         (,(concat slash includes opt arg) 3 font-lock-builtin-face)
         ;; Verbatim-like args.
-        (,(concat slash verbish opt arg) 3 'tex-verbatim)
+        (,(concat slash verbish opt arg) 3 'tex-verbatim t)
         ;; Definitions.  I think.
         ("^[ \t]*\\\\def *\\\\\\(\\(\\w\\|@\\)+\\)"
         1 font-lock-function-name-face))))



reply via email to

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