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. 65a711ba0c9bbdf1b0499


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 65a711ba0c9bbdf1b04991a3b305440afd23ebd9
Date: Wed, 24 Mar 2021 23:08:55 -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  65a711ba0c9bbdf1b04991a3b305440afd23ebd9 (commit)
      from  8f0638c5a3487ab88ccae616c4f8c708a842d84d (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 65a711ba0c9bbdf1b04991a3b305440afd23ebd9
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Date:   Fri Mar 19 18:16:56 2021 +0900

    Discard obsolete variables
    
    According to NEWS.24, `font-lock-defaults-alist' was removed at
    emacs 24.1.
    `font-lock-mode-enable-list' doesn't exist in any NEWS.* nor emacs
    24.3 source. (Xemacs specific variable?)
    According to loaddefs.el, `font-lock-auto-fontify' is xemacs variable
    corresponding to `global-font-lock-mode'.
    
    * tex-buf.el:
    (): Remove defvar for `font-lock-mode-enable-list',
    `font-lock-auto-fontify' and `font-lock-defaults-alist'.
    (TeX-region-create): Don't let-bind obsolete variables.
    Stop let-binding `font-lock-defaults' since it is buffer local
    variable. It doesn't make sense to let-bind it before changing the
    current buffer.
    Set NOWARN argument to t in `find-file-noselect' to suppress "(New
    file)" message in echo area.

diff --git a/tex-buf.el b/tex-buf.el
index 84f1162..24d287c 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2103,10 +2103,6 @@ The hooks are run in the region buffer, you may use the 
variable
                                 "\\\\unexpanded{\\&}" file t)
     file))
 
-(defvar font-lock-mode-enable-list)
-(defvar font-lock-auto-fontify)
-(defvar font-lock-defaults-alist)
-
 (defvar TeX-region-orig-buffer nil
   "The original buffer in which the TeX-region was created.")
 (make-variable-buffer-local 'TeX-region-orig-buffer)
@@ -2138,12 +2134,7 @@ original file."
          (master-buffer (find-file-noselect master-name))
 
          ;; Attempt to disable font lock.
-         (font-lock-defaults-alist nil)
-         (font-lock-defaults nil)
-         ;; (font-lock-maximum-size 0) ; Obsolete since Emacs 24.1
          (font-lock-mode-hook nil)
-         (font-lock-auto-fontify nil)
-         (font-lock-mode-enable-list nil)
          ;; And insert them into the FILE buffer.
          (file-buffer (let (;; Don't query for master file
                             (TeX-transient-master t)
@@ -2153,7 +2144,7 @@ original file."
                             (enable-local-variables nil)
                             ;; Don't run any f-f hooks
                             (find-file-hook nil))
-                        (find-file-noselect file)))
+                        (find-file-noselect file t)))
          ;; But remember original content.
          original-content
 

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

Summary of changes:
 tex-buf.el | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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