aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-07-30 23:35:42 +0300
committerJuri Linkov2019-07-30 23:35:42 +0300
commitadd146f09f0f73f4af4760cc6205b287076c08d8 (patch)
tree4b0e81cecc013ed922692791b97100e82930c121
parentf7cf9199abf53ed17a751e995e519488bb0b591b (diff)
downloademacs-add146f09f0f73f4af4760cc6205b287076c08d8.tar.gz
emacs-add146f09f0f73f4af4760cc6205b287076c08d8.zip
* lisp/bindings.el (mode-line-defining-kbd-macro): New defvar.
(minor-mode-alist): Use it for `defining-kbd-macro'. (Bug#36564)
-rw-r--r--lisp/bindings.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 64842c4e1ff..0be14587981 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -644,6 +644,11 @@ Switch to the most recently selected buffer other than the current one."
644 (let ((indicator (car (nth 4 (car (cdr event)))))) 644 (let ((indicator (car (nth 4 (car (cdr event))))))
645 (describe-minor-mode-from-indicator indicator))) 645 (describe-minor-mode-from-indicator indicator)))
646 646
647(defvar mode-line-defining-kbd-macro (propertize " Def" 'face 'font-lock-warning-face)
648 "String displayed in the mode line in keyboard macro recording mode.")
649;;;###autoload
650(put 'mode-line-defining-kbd-macro 'risky-local-variable t)
651
647(defvar minor-mode-alist nil "\ 652(defvar minor-mode-alist nil "\
648Alist saying how to show minor modes in the mode line. 653Alist saying how to show minor modes in the mode line.
649Each element looks like (VARIABLE STRING); 654Each element looks like (VARIABLE STRING);
@@ -653,13 +658,14 @@ Actually, STRING need not be a string; any mode-line construct is
653okay. See `mode-line-format'.") 658okay. See `mode-line-format'.")
654;;;###autoload 659;;;###autoload
655(put 'minor-mode-alist 'risky-local-variable t) 660(put 'minor-mode-alist 'risky-local-variable t)
656;; Don't use purecopy here--some people want to change these strings. 661;; Don't use purecopy here--some people want to change these strings,
662;; also string properties are lost when put into pure space.
657(setq minor-mode-alist 663(setq minor-mode-alist
658 `((abbrev-mode " Abbrev") 664 '((abbrev-mode " Abbrev")
659 (overwrite-mode overwrite-mode) 665 (overwrite-mode overwrite-mode)
660 (auto-fill-function " Fill") 666 (auto-fill-function " Fill")
661 ;; not really a minor mode... 667 ;; not really a minor mode...
662 (defining-kbd-macro ,(propertize " Def" 'face 'error)))) 668 (defining-kbd-macro mode-line-defining-kbd-macro)))
663 669
664;; These variables are used by autoloadable packages. 670;; These variables are used by autoloadable packages.
665;; They are defined here so that they do not get overridden 671;; They are defined here so that they do not get overridden