From: Heime <heimeborgia@protonmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Using button to display a help menu
Date: Sun, 27 Aug 2023 12:34:22 +0000 [thread overview]
Message-ID: <uj5_4_lrFv6QySwB1SHzUtVmulJ7GMkcBnldbeI5jZpHdeTcT8DhZ4Z5azNU14EcuR8y8XA71Ozc_Wf8ECAyEn63H6QGhb383ss0eDQMPd4=@protonmail.com> (raw)
In-Reply-To: <87msyclv1r.fsf@gmx.net>
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, August 27th, 2023 at 9:00 PM, Stephen Berman <stephen.berman@gmx.net> wrote:
> On Sun, 27 Aug 2023 06:32:29 +0000 Heime heimeborgia@protonmail.com wrote:
>
> > Have made a function called 'maces' that is intended to show a button
> > called 'Organis' to display a help page as defined in 'maces-organis'.
> > Although I get the button 'Organis', when I press it, I get
> >
> > --------
> >
> > (wrong-number-of-arguments ((t) nil "Prints information about Maces Organis." (interactive) (help--window-setup (help-buffer) #'(lambda nil (insert-button "[F7]" 'action 'maces-action-organis 'follow-link t) (insert " Maces Organis \n")))) 1) maces-organis(#<overlay from 72 to 76 in Help>)
> >
> > --------
> >
> > (defun maces-organis ()
> > "Prints information about Maces Organis."
> > (interactive)
> >
> > (with-help-window (help-buffer)
> > (insert-button "[F7]" 'action 'maces-action-organis 'follow-link t)
> > (insert " Maces Organis \n") ))
> >
> > (defun maces ()
> > "Prints information about Maces."
> > (interactive)
> >
> > (with-help-window (help-buffer)
> > (insert-button "[Organis]" 'action 'maces-organis 'follow-link t)
> > (insert " Maces Organis \n") ))
>
>
> See https://lists.gnu.org/archive/html/help-gnu-emacs/2023-07/msg00321.html
>
> Steve Berman
Steve, does using a button always need a function taking a button argument?
next prev parent reply other threads:[~2023-08-27 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-27 6:32 Using button to display a help menu Heime
2023-08-27 9:00 ` Stephen Berman
2023-08-27 12:34 ` Heime [this message]
2023-08-27 12:54 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='uj5_4_lrFv6QySwB1SHzUtVmulJ7GMkcBnldbeI5jZpHdeTcT8DhZ4Z5azNU14EcuR8y8XA71Ozc_Wf8ECAyEn63H6QGhb383ss0eDQMPd4=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.