aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2017-08-01 10:13:09 +0200
committerMichael Albinus2017-08-01 10:13:09 +0200
commitef7a18a071446ee7a5366bb4d4cbf766661d6bd0 (patch)
treeef1b958ce567d461ae39ae335594a80d75ca9e31
parent3a8d0cc825635e07da2a90c4ac987b476fc9b05d (diff)
downloademacs-ef7a18a071446ee7a5366bb4d4cbf766661d6bd0.tar.gz
emacs-ef7a18a071446ee7a5366bb4d4cbf766661d6bd0.zip
Follow SAUNA recommendations for display-line-numbers-type
* lisp/display-line-numbers.el (display-line-numbers-type): Do not autoload. * lisp/menu-bar.el (display-line-numbers-type): Declare.
-rw-r--r--lisp/display-line-numbers.el1
-rw-r--r--lisp/menu-bar.el1
2 files changed, 1 insertions, 1 deletions
diff --git a/lisp/display-line-numbers.el b/lisp/display-line-numbers.el
index a99474547bf..c9dd28a40fa 100644
--- a/lisp/display-line-numbers.el
+++ b/lisp/display-line-numbers.el
@@ -38,7 +38,6 @@
38 "Display line numbers in the buffer." 38 "Display line numbers in the buffer."
39 :group 'display) 39 :group 'display)
40 40
41;;;###autoload
42(defcustom display-line-numbers-type t 41(defcustom display-line-numbers-type t
43 "The default type of line numbers to use in `display-line-numbers-mode'. 42 "The default type of line numbers to use in `display-line-numbers-mode'.
44See `display-line-numbers' for value options." 43See `display-line-numbers' for value options."
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 05a336bfe28..75ffd1e2b49 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1101,6 +1101,7 @@ The selected font will be the default on both the existing and future frames."
1101 :button (:radio . (eq tool-bar-mode nil)))) 1101 :button (:radio . (eq tool-bar-mode nil))))
1102 menu))) 1102 menu)))
1103 1103
1104(defvar display-line-numbers-type)
1104(defun menu-bar-display-line-numbers-mode (type) 1105(defun menu-bar-display-line-numbers-mode (type)
1105 (setq display-line-numbers-type type) 1106 (setq display-line-numbers-type type)
1106 (if global-display-line-numbers-mode 1107 (if global-display-line-numbers-mode