From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/so-long d216f81: fixup! Add so-long library Date: Mon, 15 Apr 2019 07:55:21 -0400 Message-ID: References: <20190414125501.16807.79719@vcs0.savannah.gnu.org> <20190414125502.AB90320536@vcs0.savannah.gnu.org> <1e0b22f857b09f0587ea3e901420c9c6@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38115"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 15 14:23:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hG0e9-0009hh-4y for ged-emacs-devel@m.gmane.org; Mon, 15 Apr 2019 14:23:37 +0200 Original-Received: from localhost ([127.0.0.1]:49487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hG0e8-0002sv-5K for ged-emacs-devel@m.gmane.org; Mon, 15 Apr 2019 08:23:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hG0dX-0002sc-7P for emacs-devel@gnu.org; Mon, 15 Apr 2019 08:23:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hG0dW-0003i8-Cx for emacs-devel@gnu.org; Mon, 15 Apr 2019 08:22:59 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hG0dW-0003hi-4c for emacs-devel@gnu.org; Mon, 15 Apr 2019 08:22:58 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x3FCMta4005046; Mon, 15 Apr 2019 08:22:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AA9826A134; Mon, 15 Apr 2019 07:55:21 -0400 (EDT) In-Reply-To: <1e0b22f857b09f0587ea3e901420c9c6@webmail.orcon.net.nz> (Phil Sainty's message of "Mon, 15 Apr 2019 10:24:55 +1200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6525=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6525> : inlines <7052> : streams <1818729> : uri <2832384> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:235478 Archived-At: >> or just don't define turn-on-so-long-minor-mode at all, which is what >> I recommend. >> I also recommend not to bother defining the turn-off function and let >> users call (so-long-minor-mode -1) for the few cases where they might >> need it. > The actual reason for defining these functions is for the associated > so-long-action-alist entry: > > (so-long-minor-mode > "Enable so-long-minor-mode" > turn-on-so-long-minor-mode > turn-off-so-long-minor-mode) BTW: How 'bout making this alist accept elements of the form ( "description")? Being a minor mode means you know how to gets its current status, how to turn it on and how to turn it off, so you can standardize the treatment you did for longlines-mode. Stefan