branch: externals/auctex
commit 087b0300012d14cc86dec946d6c225cdb06460a1
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
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.