emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [lexbind]
Date: Thu, 28 Oct 2004 22:27:40 -0400

Index: emacs/lisp/textmodes/tex-mode.el
diff -c emacs/lisp/textmodes/tex-mode.el:1.123.2.12 
emacs/lisp/textmodes/tex-mode.el:1.123.2.13
*** emacs/lisp/textmodes/tex-mode.el:1.123.2.12 Mon Oct 25 04:22:30 2004
--- emacs/lisp/textmodes/tex-mode.el    Fri Oct 29 02:05:13 2004
***************
*** 468,473 ****
--- 468,477 ----
           ;; (arg 
"\\(?:{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)\\|\\\\[a-z*]+\\)"))
           (arg "{\\(\\(?:[^{}\\]+\\|\\\\.\\|{[^}]*}\\)+\\)"))
        (list
+        ;; font-lock-syntactic-keywords causes the \ of \end{verbatim} to be
+        ;; highlighted as tex-verbatim-face.  Let's undo that.
+        ;; This is ugly and brittle :-(  --Stef
+        '("^\\(\\\\\\)end" (1 (get-text-property (match-end 1) 'face) t))
         ;; display $$ math $$
         ;; We only mark the match between $$ and $$ because the $$ delimiters
         ;; themselves have already been marked (along with $..$) by syntactic
***************
*** 619,624 ****
--- 623,630 ----
        ;; 2 - font-lock considers the preceding \n as being part of the
        ;;     preceding line, so things gets screwed every time the previous
        ;;     line is re-font-locked on its own.
+       ;; There's a hack in tex-font-lock-keywords-1 to remove the verbatim
+       ;; face from the \ but C-M-f still jumps to the wrong spot :-(  --Stef
        (,(concat "^\\(\\\\\\)end *{" verbs "}\\(.?\\)") (1 "|") (3 "<"))
        ;; ("^\\(\\\\\\)begin *{comment}" 1 "< b")
        ;; ("^\\\\end *{comment}.*\\(\n\\)" 1 "> b")




reply via email to

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