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: Yuri Khan
Subject: Re: Buttons in help buffer that displays contents of variables
Date: Sun, 23 Jul 2023 14:45:55 +0700

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" ?

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]