auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. e62ce383de408e73724c1


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. e62ce383de408e73724c1394765caa83f1a18e9a
Date: Sun, 14 Jun 2020 08:09:19 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  e62ce383de408e73724c1394765caa83f1a18e9a (commit)
       via  9c105a2d76d39b54f42e4a0eefcf6388533176a7 (commit)
       via  54bb7c1849778ed307dc619057a70e4a0a4a5b26 (commit)
       via  32ad0e260b389c430cb4a4be67c5b3545a9b264f (commit)
      from  9170170438ec47e70f5b1c87ffc71a8e2d96b068 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e62ce383de408e73724c1394765caa83f1a18e9a
Merge: 9170170 9c105a2
Author: Tassilo Horn <tsdh@gnu.org>
Date:   Sun Jun 14 14:08:32 2020 +0200

    Merge branch 'obsolete-font-latex-update-font-lock'

diff --cc font-latex.el
index 216897f,c74fa6c..47c7e81
--- a/font-latex.el
+++ b/font-latex.el
@@@ -1294,40 -1301,24 +1301,43 @@@ triggers Font Lock to recognize the cha
    "Tell font-lock about updates of fontification rules.
  If SYNTACTIC-KWS is non-nil, also update
  `font-latex-syntactic-keywords'."
-   ;; Update syntactic keywords.
-   (when syntactic-kws
-     (font-latex-set-syntactic-keywords))
- 
-   ;; Let font-lock recompute its fontification rules.
-   (setq font-lock-set-defaults nil)
-   (font-lock-set-defaults)
- 
-   ;; Re-initialize prettification if needed.
-   (when (and (boundp 'prettify-symbols-mode)
-            (boundp 'prettify-symbols--keywords)
-            prettify-symbols-mode
-            prettify-symbols--keywords)
-     (font-lock-add-keywords nil prettify-symbols--keywords)))
+   (display-warning
+    'auctex
+    (concat "`font-latex-update-font-lock' should not be called.
+ It is obsolete and going to be removed.
+ If you have called `font-latex-add-keywords' and want to refresh 
fontification,
+ call `font-lock-flush' instead.
+ If you changed syntactic fontification, e.g., one of the variables
+ - `LaTeX-verbatim-macros-with-delims'
+ - `LaTeX-verbatim-macros-with-delims-local'
+ - `LaTeX-verbatim-macros-with-braces'
+ - `LaTeX-verbatim-macros-with-braces-local'
+ - `LaTeX-verbatim-environments'
+ - `LaTeX-verbatim-environments-local'
+ - `font-latex-syntactic-keywords-extra'
+ then call `font-latex-set-syntactic-keywords'.")))
+ 
+ (make-obsolete 'font-latex-update-font-lock nil "12.2.4")
  
 +(defvar font-latex--updated-region-end nil
 +;; During hilighting of math expression, matched range sometimes exceeds
 +;; the given end limit. So record the actual end in this variable to
 +;; notify the font lock machinery.
 +;; Initialized at each font lock operation to the end limit of font lock
 +;; range. Match function of math expression should do the following two if
 +;; the end of the actual match goes beyond the value of this variable:
 +;; 1. Apply `font-lock-unfontify-region' between the value of this variable
 +;;    and the end of the actual match.
 +;; 2. Update this variable to the end of the actual match.
 +;; See implementation of `font-latex-match-math-env' for actual usage.
 +  "Record the end of fontification.")
 +(defun font-latex-fontify-region (beg end &optional verbose)
 +  "Fontify region from BEG to END.
 +Take care when the actually fonfified region was extended beyond END."
 +  (setq font-latex--updated-region-end end)
 +  (font-lock-default-fontify-region beg end verbose)
 +  `(jit-lock-bounds ,beg . ,font-latex--updated-region-end))
 +
  ;; Copy and adaption of `tex-font-lock-unfontify-region' from
  ;; tex-mode.el in GNU Emacs on 2004-08-04.
  ;; (XEmacs passes a third argument to the function.)

-----------------------------------------------------------------------

Summary of changes:
 font-latex.el      | 50 +++++++++++++++++++-------------
 style/alltt.el     | 11 ++++---
 style/beamer.el    |  9 ++----
 style/comment.el   | 10 +++----
 style/expl3.el     | 14 ++-------
 style/fancyhdr.el  | 11 ++-----
 style/fancyvrb.el  | 30 ++++++++-----------
 style/fvextra.el   |  8 +-----
 style/hyperref.el  |  9 +++---
 style/listings.el  | 15 ++++------
 style/ltxguide.el  |  8 ++----
 style/minted.el    | 18 +++++-------
 style/pythontex.el | 84 ++++++++++++++++++++++++++----------------------------
 style/revtex4-2.el |  8 ++----
 style/tex-live.el  |  8 +-----
 style/url.el       | 12 ++++----
 style/verbatim.el  |  7 +++--
 17 files changed, 132 insertions(+), 180 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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