auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 087b030 28/30: Simplify mode line


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 087b030 28/30: Simplify mode line for emacs 27
Date: Fri, 25 Sep 2020 11:00:16 -0400 (EDT)

branch: externals/auctex
commit 087b0300012d14cc86dec946d6c225cdb06460a1
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Simplify mode line for emacs 27
    
    * tex-buf.el: Don't add an entry in `minor-mode-alist' for
    `compilation-in-progress'. In emacs 27, compile.el adds a similar
    entry in `mode-line-modes'.
---
 tex-buf.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index ff6be7e..510722c 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1883,9 +1883,11 @@ variable is nil."
 (defvar compilation-in-progress nil
   "List of compilation processes now running.")
 
-(or (assq 'compilation-in-progress minor-mode-alist)
-    (setq minor-mode-alist (cons '(compilation-in-progress " Compiling")
-                                minor-mode-alist)))
+;; COMPATIBILITY for emacs < 27
+(if (< emacs-major-version 27)
+    (or (assq 'compilation-in-progress minor-mode-alist)
+       (setq minor-mode-alist (cons '(compilation-in-progress " Compiling")
+                                    minor-mode-alist))))
 
 (defun TeX-process-get-variable (name symbol &optional default)
   "Return the value in the process buffer for NAME of SYMBOL.



reply via email to

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