From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master f57c710: Use a named function for global minor mode turn-on argument Date: Mon, 24 Jul 2017 12:56:06 -0400 Message-ID: References: <20170723194435.31877.401@vcs0.savannah.gnu.org> <20170723194436.81A9D20DDA@vcs0.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500915422 19843 195.159.176.226 (24 Jul 2017 16:57:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 16:57:02 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: Mark Oteiza , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 24 18:56:57 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 1dZgf2-0004Uc-US for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 18:56:49 +0200 Original-Received: from localhost ([::1]:55930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZgf8-00030O-Kh for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2017 12:56:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZgeR-0002y9-5O for emacs-devel@gnu.org; Mon, 24 Jul 2017 12:56:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZgeQ-0005Hw-EG for emacs-devel@gnu.org; Mon, 24 Jul 2017 12:56:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZgeN-0005GX-DZ; Mon, 24 Jul 2017 12:56:07 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dZgeM-0003Xa-Tu; Mon, 24 Jul 2017 12:56:06 -0400 X-Spook: tempest Antiviral industrial espionage Ft. Bragg basement X-Ran: +j>._MWwkuS{x`0XVK/fHTrki;ny@%x\2I+#Y],FpH*3N%YR (Stefan Monnier's message of "Mon, 24 Jul 2017 10:33:42 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:216979 Archived-At: Stefan Monnier wrote: >> ;;;###autoload >> +(defun turn-on-display-line-numbers-mode () >> + "Turn on `display-line-numbers-mode'." >> + (unless (or (minibufferp) >> + ;; taken from linum.el >> + (and (daemonp) (null (frame-parameter nil 'client)))) >> + (display-line-numbers-mode))) > > Could you make it use the "display-line-numbers-" prefix? > > > Stefan "who'd also use a =C2=A8--" since it's unlikely to be usef= ul > outside of the package" And then it doesn't need to be autoloaded.