🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98943

Re: Documentation for minor-mode-alist

#98943
From: Sebastian Kremer
Date: Mon, 14 Jan 1991 01:21
34 lines
2017 bytes
>>> On 3 Jan 91 16:01:16 GMT, worley@compass.com (Dale Worley) said:

worley> The documentation string for minor-mode-alist is not accurate, because
worley> the constructs which are allowed are more general than documented.
worley> (And people are now using them.)  A better documentation string would
worley> be:

worley> Alist saying how to show minor modes in the mode line.
worley> Each element looks like (VARIABLE STRING);
worley> STRING is included in the mode line iff VARIABLE's value is non-nil.
worley> All possibilities described for  mode-line-format  are also allowed.

Actually, it is even more general (at least in 18.55):

    Alist saying how to show minor modes in the mode line.
    Each element looks like (VARIABLE STRING-1 &optional STRING-2);
    STRING-1 is included in the mode line if VARIABLE's value is non-nil,
    else STRING-2 (if present) is included.
    All possibilities described for  mode-line-format  are also allowed.
    Each STRING may also be another alist element of the same form.

I realized this when someone posted code which put

    (case-fold-search "" " NoCFS")

and

    (buffer-auto-save-file-name "" (buffer-file-name " NoSave" ""))

in the minor-mode-alist.
--

Sebastian Kremer <sk@thp.Uni-Koeln.DE>
Institute of Theoretical Physics, University of Cologne, F. R. of Germany
Technical Details
Message-ID: <SK.91Jan13202135@sun3.thp.uni-koeln.de>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!thp.uni-koeln.de!sk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,baa7c0d12f24e8ee,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-14 01:40:07 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!thp.uni-koeln.de!sk
From: sk@thp.uni-koeln.de (Sebastian Kremer)
Newsgroups: gnu.emacs.bug
Subject: Re: Documentation for minor-mode-alist
Message-ID: <SK.91Jan13202135@sun3.thp.uni-koeln.de>
Date: 14 Jan 91 01:21:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Institute of Theoretical Physics, University of Cologne, F. R.
 Germany
Lines: 34
Approved: bug-gnu-emacs@prep.ai.mit.edu