From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Tue, 10 May 2016 11:13:07 +0200 Message-ID: <87h9e6tgws.fsf@russet.org.uk> References: <874magv15u.fsf@mat.ucm.es> <87d1p38ll6.fsf@mat.ucm.es> <87y47pg5da.fsf@russet.org.uk> <87shxwzkzg.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462964431 30136 80.91.229.3 (11 May 2016 11:00:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 May 2016 11:00:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 11 13:00:20 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0RsJ-0003U4-E1 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 May 2016 13:00:19 +0200 Original-Received: from localhost ([::1]:51598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0RsD-0007KL-8p for geh-help-gnu-emacs@m.gmane.org; Wed, 11 May 2016 07:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Rrr-0007Gw-CL for help-gnu-emacs@gnu.org; Wed, 11 May 2016 06:59:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0Rrl-0000Y7-7Y for help-gnu-emacs@gnu.org; Wed, 11 May 2016 06:59:50 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:43029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Rrk-0000XP-Tu for help-gnu-emacs@gnu.org; Wed, 11 May 2016 06:59:45 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1b0Rrg-0000Iu-DX; Wed, 11 May 2016 11:59:40 +0100 Original-Received: from cable-94-189-138-199.dynamic.sbb.rs ([94.189.138.199] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1b0Rre-0002j3-6a; Wed, 11 May 2016 11:59:38 +0100 In-Reply-To: (Drew Adams's message of "Thu, 5 May 2016 07:00:49 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109926 Archived-At: Drew Adams writes: >> Currently my mode lighter is >> >> Message pab MML yas Helm Abbrev Fill Narrow >> >> pab == pabbrev is my own abbrev mode, but diminished >> MML == is attachement >> yas == yasnippet diminished >> Helm == Completion >> Abbrev == Another abbrev expansion >> Fill == auto fill. >> Narrow == is narrowing >> >> Of these, pab is global, so why show it? > > Why might a user want to show the lighter for a global minor > mode? Some minor modes you will turn on and off, perhaps > even frequently. For some of those you might well want to > know whether it is on or off. > > This is no different than for a local minor mode, such as > overwrite mode. You might well want to know whether a > particular mode is on. > > It can depend on the mode and on the user. There is no > one-size-fits-all, IMHO. And that is true of global modes > as well as local ones. > >> Only "Fill" tells me anything useful, since I turn this on and off in >> the same buffer, and "Message", since knowing the mode is good. > > What's useful to see depends on the user and on the context. > That's really the point, IMO. > > A library can of course choose not to have a lighter for some > mode (local or global). But in the end, users too need to be > able to easily adjust things to suit their tastes and needs. At the moment, though, I think developers add a lighter because it's just the way that things are done. Perhaps the default advice should be "do not add a lighter to your mode, unless it's useful". Phil