unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Ability to use a button to run interactive function
@ 2023-08-28 14:34 Heime
  2023-08-28 14:45 ` Emanuel Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Heime @ 2023-08-28 14:34 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

The following function does not allow me to call it via a button.  Would
this be possible, whilst also be allowed to call the function interactively 
using 'M-x maces-snapshot' ?


(defun maces-snapshot ()
  "Prints information about how to install emacs."
  (interactive)

  (with-help-window (help-buffer)

    (insert-button "[F5]" 'action 'action-snapshot
      'follow-link t)
    (insert " A Snapshot Repository \n")

    (insert-button "[B5]" 'action 'action-snapshot
      'follow-link t)
    (insert " Obtaining a Snapshot Repository with Git \n") ))






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

end of thread, other threads:[~2023-08-28 20:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28 14:34 Ability to use a button to run interactive function Heime
2023-08-28 14:45 ` Emanuel Berg
2023-08-28 14:55 ` Stephen Berman
2023-08-28 16:33   ` Heime
2023-08-28 20:02     ` Stephen Berman
2023-08-28 15:28 ` Marcin Borkowski

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