unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19628: 25.0.50; doc of button functions
@ 2015-01-19 16:20 Drew Adams
  2015-01-20 18:17 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2015-01-19 16:20 UTC (permalink / raw)
  To: 19628

The doc of `make-button', `insert-button', and `insert-text-button' just
mentions "a sequence of PROPERTY VALUE pairs, specifying properties to
add to the button", without saying anything about the text properties
that are special for these functions.  This is true for both the doc
strings and the Elisp manual (node `Making Buttons').

Some text properties, such as `face' and `follow-link' are common, used
generally, and are explained elsewhere.  But others, such as `action',
seem to be special to the button code and these functions.  So they
should be mentioned in this doc.

Property `action' is mentioned for function `button-activate'
(e.g. nodes `Button Properties', `Manipulating Buttons', and `Button
Buffer Commands').  But it and any other properties specific to the
button functions should be called out where we speak of such properties.
Or else such doc should refer to some location where we do specify such
properties.

What's more, the doc strings of `push-button' and `button-activate' need
to mention property `action', just as the Elisp doc for them does.  It
is not sufficient for the doc strings to simply refer to the  "normal
action" of the button, without saying what that means.


In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'





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

* bug#19628: 25.0.50; doc of button functions
  2015-01-19 16:20 bug#19628: 25.0.50; doc of button functions Drew Adams
@ 2015-01-20 18:17 ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2015-01-20 18:17 UTC (permalink / raw)
  To: Drew Adams; +Cc: 19628

> Date: Mon, 19 Jan 2015 08:20:52 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> The doc of `make-button', `insert-button', and `insert-text-button' just
> mentions "a sequence of PROPERTY VALUE pairs, specifying properties to
> add to the button", without saying anything about the text properties
> that are special for these functions.  This is true for both the doc
> strings and the Elisp manual (node `Making Buttons').

The node "Making Buttons" in the ELisp manual has a cross-reference to
"Button Properties", where all the properties are described.

> Property `action' is mentioned for function `button-activate'
> (e.g. nodes `Button Properties', `Manipulating Buttons', and `Button
> Buffer Commands').  But it and any other properties specific to the
> button functions should be called out where we speak of such properties.
> Or else such doc should refer to some location where we do specify such
> properties.

Sorry, I don't understand what you find missing in the manual.  Where
the ELisp manual talks about PROPERTY VALUE pairs it immediately
refers to "Button Properties", where you find the details.  What else
is needed in the manual?

> What's more, the doc strings of `push-button' and `button-activate' need
> to mention property `action', just as the Elisp doc for them does.  It
> is not sufficient for the doc strings to simply refer to the  "normal
> action" of the button, without saying what that means.

button-activate already mentioned the property; I fixed the doc string
of push-button.





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

* bug#19628: 25.0.50; doc of button functions
       [not found] ` <<83r3upwc4f.fsf@gnu.org>
@ 2015-01-20 18:51   ` Drew Adams
  2015-01-20 19:23     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2015-01-20 18:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 19628

> > The doc of `make-button', `insert-button', and `insert-text-button' just
> > mentions "a sequence of PROPERTY VALUE pairs, specifying properties to
> > add to the button", without saying anything about the text properties
> > that are special for these functions.  This is true for both the doc
> > strings and the Elisp manual (node `Making Buttons').
> 
> The node "Making Buttons" in the ELisp manual has a cross-reference to
> "Button Properties", where all the properties are described.

OK, scratch the part about "true for both the doc strings and the Elisp
manual (node `Making Buttons')".  I somehow missed that xref.

The problem exists for the doc strings, however.

> > Property `action' is mentioned for function `button-activate'
> > (e.g. nodes `Button Properties', `Manipulating Buttons', and `Button
> > Buffer Commands').  But it and any other properties specific to the
> > button functions should be called out where we speak of such properties.
> > Or else such doc should refer to some location where we do specify such
> > properties.
> 
> Sorry, I don't understand what you find missing in the manual.  Where
> the ELisp manual talks about PROPERTY VALUE pairs it immediately
> refers to "Button Properties", where you find the details.  What else
> is needed in the manual?

As I said, in `Manipulating Buttons', for example, the description of
`button-activate' refers to "BUTTON's `action' property".  That property
is not explained there, so there should be a cross-ref from there to the
place where it is described: `Button Properties'.

> > What's more, the doc strings of `push-button' and `button-activate' need
> > to mention property `action', just as the Elisp doc for them does.  It
> > is not sufficient for the doc strings to simply refer to the  "normal
> > action" of the button, without saying what that means.
> 
> button-activate already mentioned the property; I fixed the doc string
> of push-button.

Thanks.





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

* bug#19628: 25.0.50; doc of button functions
  2015-01-20 18:51   ` Drew Adams
@ 2015-01-20 19:23     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2015-01-20 19:23 UTC (permalink / raw)
  To: Drew Adams; +Cc: 19628-done

> Date: Tue, 20 Jan 2015 10:51:20 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 19628@debbugs.gnu.org
> 
> As I said, in `Manipulating Buttons', for example, the description of
> `button-activate' refers to "BUTTON's `action' property".  That property
> is not explained there, so there should be a cross-ref from there to the
> place where it is described: `Button Properties'.

OK, I added a few words about 'action' there.  (Having a
cross-reference just to save a sentence or two didn't sound right.)





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

* bug#19628: 25.0.50; doc of button functions
       [not found] ` <<83iog1w91t.fsf@gnu.org>
@ 2015-01-20 19:29   ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2015-01-20 19:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 19628-done

> OK, I added a few words about 'action' there.  (Having a
> cross-reference just to save a sentence or two didn't sound right.)

Muchas gracias.





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

end of thread, other threads:[~2015-01-20 19:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 16:20 bug#19628: 25.0.50; doc of button functions Drew Adams
2015-01-20 18:17 ` Eli Zaretskii
     [not found] <<bed57afd-b4b7-447b-aa22-61f6c376ef69@default>
     [not found] ` <<83r3upwc4f.fsf@gnu.org>
2015-01-20 18:51   ` Drew Adams
2015-01-20 19:23     ` Eli Zaretskii
     [not found] <<5d8b8ef5-b579-4984-b5c6-1159205b3974@default>
     [not found] ` <<83iog1w91t.fsf@gnu.org>
2015-01-20 19:29   ` 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).