|
From: | Glenn Morris |
Subject: | Re: [Emacs-diffs] master 012487b: * lisp/display-line-numbers.el (display-line-numbers-type): Autoload it. |
Date: | Mon, 24 Jul 2017 12:57:41 -0400 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Michael Albinus wrote: > Stefan Monnier <address@hidden> writes: > >>> * lisp/display-line-numbers.el (display-line-numbers-type): Autoload it. >> >> Why? > > Used in menu-bar.el. But not in any significant way? --- i/lisp/display-line-numbers.el +++ w/lisp/display-line-numbers.el @@ -38,7 +38,6 @@ display-line-numbers "Display line numbers in the buffer." :group 'display) -;;;###autoload (defcustom display-line-numbers-type t "The default type of line numbers to use in `display-line-numbers-mode'. See `display-line-numbers' for value options." diff --git i/lisp/menu-bar.el w/lisp/menu-bar.el index 05a336b..e02217f 100644 --- i/lisp/menu-bar.el +++ w/lisp/menu-bar.el @@ -1101,6 +1101,9 @@ menu-bar-showhide-tool-bar-menu-customize-enable-bottom :button (:radio . (eq tool-bar-mode nil)))) menu))) +;; Following function calls will autoload the library. +(defvar display-line-numbers-type) + (defun menu-bar-display-line-numbers-mode (type) (setq display-line-numbers-type type) (if global-display-line-numbers-mode This message brought to you by SAUNA: The Society Against UNnecessary Autoloads
[Prev in Thread] | Current Thread | [Next in Thread] |