help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buttons in help buffer that displays contents of variables


From: Heime
Subject: Re: Buttons in help buffer that displays contents of variables
Date: Sun, 23 Jul 2023 19:34:05 +0000

----- Original Message -------
On Sunday, July 23rd, 2023 at 7:45 PM, Yuri Khan <yuri.v.khan@gmail.com> wrote:


> On Sun, 23 Jul 2023 at 06:14, Heime heimeborgia@protonmail.com wrote:
> 
> > What does the button.el use as object to push to the action associated 
> > function
> > that would be sensible. Would it be "action" ?

Does the function associated with the button be restricted to a single argument,
meaning that users cannot pass any additional data to it ?
 
> The documentation quoted upthread states the argument is named BUTTON.
> It is easy to conclude that the action function, when called, will
> receive as its argument a reference to the button object that was
> clicked.
> 
> This pattern is widespread in GUI frameworks. It lets you create a
> bunch of slightly different buttons and assign them all the same
> single action, and it will be able to do slightly different things for
> each button.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]