unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22206: 25.1.50; doc string of `define-minor-mode'
@ 2015-12-18 17:52 Drew Adams
  2015-12-18 19:32 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2015-12-18 17:52 UTC (permalink / raw)
  To: 22206

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''





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22206: 25.1.50; doc string of `define-minor-mode'
  2015-12-18 17:52 bug#22206: 25.1.50; doc string of `define-minor-mode' Drew Adams
@ 2015-12-18 19:32 ` Eli Zaretskii
  2015-12-18 19:41   ` Dmitry Gutov
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2015-12-18 19:32 UTC (permalink / raw)
  To: Drew Adams; +Cc: 22206

> Date: Fri, 18 Dec 2015 09:52:39 -0800 (PST)
> From: Drew Adams <drew.adams@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?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22206: 25.1.50; doc string of `define-minor-mode'
  2015-12-18 19:32 ` Eli Zaretskii
@ 2015-12-18 19:41   ` Dmitry Gutov
  2015-12-18 19:44     ` Eli Zaretskii
  2015-12-18 20:11     ` Drew Adams
  0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Gutov @ 2015-12-18 19:41 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 22206

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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22206: 25.1.50; doc string of `define-minor-mode'
  2015-12-18 19:41   ` Dmitry Gutov
@ 2015-12-18 19:44     ` Eli Zaretskii
  2015-12-18 20:11     ` Drew Adams
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2015-12-18 19:44 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: 22206

> Cc: 22206@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22206: 25.1.50; doc string of `define-minor-mode'
       [not found] ` <<83d1u3wo20.fsf@gnu.org>
@ 2015-12-18 20:09   ` Drew Adams
  0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2015-12-18 20:09 UTC (permalink / raw)
  To: Eli Zaretskii, Drew Adams; +Cc: 22206

> > 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#22206: 25.1.50; doc string of `define-minor-mode'
  2015-12-18 19:41   ` Dmitry Gutov
  2015-12-18 19:44     ` Eli Zaretskii
@ 2015-12-18 20:11     ` Drew Adams
  1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2015-12-18 20:11 UTC (permalink / raw)
  To: Dmitry Gutov, Eli Zaretskii; +Cc: 22206

> > 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-18 20:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18 17:52 bug#22206: 25.1.50; doc string of `define-minor-mode' Drew Adams
2015-12-18 19:32 ` Eli Zaretskii
2015-12-18 19:41   ` Dmitry Gutov
2015-12-18 19:44     ` Eli Zaretskii
2015-12-18 20:11     ` Drew Adams
     [not found] <<ff72fa4b-8ee6-4671-891e-69131e00eb16@default>
     [not found] ` <<83d1u3wo20.fsf@gnu.org>
2015-12-18 20:09   ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).