GNU bug report logs - #22206
25.1.50; doc string of `define-minor-mode'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 18 Dec 2015 17:53:01 UTC

Severity: minor

Merged with 19550

Found in versions 25.0.50, 25.1.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22206 in the body.
You can then email your comments to 22206 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 17:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 18 Dec 2015 17:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 09:52:39 -0800 (PST)
Unlike (elisp) `Defining Minor Modes', the doc string does not say that
LIGHTER is a string and that keyword :lighter has a string value.
Please mention that the value is a string.

In GNU Emacs 25.1.50.1 (i686-pc-mingw32)
 of 2015-12-04
Bzr revision: ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk --enable-checking=yes
 --enable-check-lisp-object-type --without-compress-install 'CFLAGS=-Og
 -ggdb3' LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 19:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 22206 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 22206 <at> debbugs.gnu.org
Subject: Re: bug#22206: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 21:32:07 +0200
> Date: Fri, 18 Dec 2015 09:52:39 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> Unlike (elisp) `Defining Minor Modes', the doc string does not say that
> LIGHTER is a string and that keyword :lighter has a string value.
> Please mention that the value is a string.

The doc string says:

  Optional LIGHTER is displayed in the mode line when the mode is on.

What else could it possibly be, except a string?




Merged 19550 22206. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 18 Dec 2015 19:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 19:42:02 GMT) Full text and rfc822 format available.

Message #13 received at 22206 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 22206 <at> debbugs.gnu.org
Subject: Re: bug#22206: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 21:41:35 +0200
On 12/18/2015 09:32 PM, Eli Zaretskii wrote:

> What else could it possibly be, except a string?

A form in the format described in mode-line-format. And that works, 
actually, so I'm not sure we should document it to be more limited.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 19:45:02 GMT) Full text and rfc822 format available.

Message #16 received at 22206 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: drew.adams <at> oracle.com, 22206 <at> debbugs.gnu.org
Subject: Re: bug#22206: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 21:44:13 +0200
> Cc: 22206 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Fri, 18 Dec 2015 21:41:35 +0200
> 
> On 12/18/2015 09:32 PM, Eli Zaretskii wrote:
> 
> > What else could it possibly be, except a string?
> 
> A form in the format described in mode-line-format. And that works, 
> actually, so I'm not sure we should document it to be more limited.

Exactly.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 20:10:01 GMT) Full text and rfc822 format available.

Message #19 received at 22206 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 22206 <at> debbugs.gnu.org
Subject: RE: bug#22206: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 12:09:39 -0800 (PST)
> > Unlike (elisp) `Defining Minor Modes', the doc string does not say that
> > LIGHTER is a string and that keyword :lighter has a string value.
> > Please mention that the value is a string.
> 
> The doc string says:
>   Optional LIGHTER is displayed in the mode line when the mode is on.
> 
> What else could it possibly be, except a string?

Tons of things can be displayed in the mode line, including symbols.
"Displayed" does not preclude producing a string representation of
the thing to be displayed.  And users of this macro should not need
to know intricacies of how things can be displayed in the mode line.
They should be told what the type of LIGHTER is, IMO.

But if you don't want to clarify this by adding one word, as in the
manual, then, well, don't.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22206; Package emacs. (Fri, 18 Dec 2015 20:12:01 GMT) Full text and rfc822 format available.

Message #22 received at 22206 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 22206 <at> debbugs.gnu.org
Subject: RE: bug#22206: 25.1.50; doc string of `define-minor-mode'
Date: Fri, 18 Dec 2015 12:11:14 -0800 (PST)
> > What else could it possibly be, except a string?
> 
> A form in the format described in mode-line-format. And that works,
> actually, so I'm not sure we should document it to be more limited.

IMO, we should document what it needs to be.  If it can be more than
a string, then we should document just what it can be.  And in that
case the manual (which states that it is a string) should likewise
be updated to say what the value can be.




bug closed, send any further explanations to 19550 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Apr 2016 16:43:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 May 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.