From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 012487b: * lisp/display-line-numbers.el (display-line-numbers-type): Autoload it. Date: Mon, 24 Jul 2017 19:26:48 +0200 Message-ID: <87vamh7nl3.fsf@detlef> References: <20170723072843.23485.53761@vcs0.savannah.gnu.org> <20170723072844.877FD22EF0@vcs0.savannah.gnu.org> <87inijxnda.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500917357 28928 195.159.176.226 (24 Jul 2017 17:29:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 17:29:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 24 19:29:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZhAP-0007B3-BU for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 19:29:13 +0200 Original-Received: from localhost ([::1]:56069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZhAT-0001Qq-6k for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 13:29:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZh8I-0000dF-Oc for emacs-devel@gnu.org; Mon, 24 Jul 2017 13:27:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZh8D-0000un-T5 for emacs-devel@gnu.org; Mon, 24 Jul 2017 13:27:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:65302) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZh8D-0000rw-Hs; Mon, 24 Jul 2017 13:26:57 -0400 Original-Received: from detlef.gmx.de ([212.86.46.16]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LhCDT-1duR1p0jbD-00oZup; Mon, 24 Jul 2017 19:26:50 +0200 In-Reply-To: (Glenn Morris's message of "Mon, 24 Jul 2017 12:57:41 -0400") X-Provags-ID: V03:K0:6eY+cDbjXOB1AZoVhZtywYv2lfIokUor/Oxd04r0NhBDQk9hjd1 4JPhzNL4vd0Fooe+rkIZYZY6lxP3JEpQ+kCAe/7ykUI02KUAgEf5qlvyrghGroR+ChFWhaF 7/yl59au0Go8nv6m75CrLWZiN4HY7EPkWGFHl0HaY9WqeEc/C6NG79eG4UJ0KFfsLA3NGLR VrCQ/cE4UVRUnQ/1GmNxg== X-UI-Out-Filterresults: notjunk:1;V01:K0:/TYlxl1mOco=:TLEdWIFdNe/rq9RREqyaDw E6zYUMfRcEGRpDSakDh0LmOkt6hfJukDTxtA1yhN4FrFKxvd/Z5pP9qfAKxWhCRuxeFXkikmX uDXHJs42pFQNnasqR7qcVux4ZQanonSbrCth08AUqjmdHxutdQSibGes35pqYbN79QrW5QESu nlnX2p0qUoR6pt3N5VTmRnghGtjujkHCrDSPmOs2pX/3lgCWh2Ac4xfR41srHpvKZyHLm2Dsc +lKZfmvur3+DYazcRC+nYvsdEhtyFdKqYDkFt2nn5cxNMCOYdcxindP/TdSaa+4j2nahLBWCK z/jJi2nXT0s8SKF0HdBTaMafLXrtlzPEYC/LPUDcHgbDz5vXmjGkaq+AjT/PadeHf5awS22lj F4crk/PkR0ig0n1sSiGsuQ4TO1drR2+B7A69AbSrSLOEQK0zStTk/KPaGMO/1TLxYXmgrCsRa eh7r6inyZyTzvC/gUvefGJ6b3czbngvkRqkvEJyo2D3vCHsYAWY/XU5wKOmjBxu9a3o3h86z7 ehFQ2fVnQrMVzaHHbrqA8DPx88TDyUSsWtgJ8dZWD6jOX9ZT62Nie9nlNDysn4dhhQHJ6RzrI vlZJSH+yoyXl3K1ES4GgiTNWegc1EDn2b8Wsxh6BoXL67DiXiCp2HKwkbO4VHyPj8oaRmVkiK dOHl+gGUC70nXpL4/+8sqrNOlyLqHOyZAXJ6NRmegtZ4NTczN0BVA8SnIr4tJ3+3ms2hSj2DZ 6NcqDZbDxYsGIZxFJgS30D2+ZbqkgBADnAJBt1LzpmBiVe5WQ7LKQEwEACExaBnElrDefSf2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216984 Archived-At: Glenn Morris writes: > --- 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 If the user prefers another value but the default one, `display-line-numbers-type' shall be modified prior the first call of `display-line-numbers-mode' or global-display-line-numbers-mode'. A typical use case for the autoload cookie. Best regards, Michael.