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

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

Ability to use a button to run interactive function


From: Heime
Subject: Ability to use a button to run interactive function
Date: Mon, 28 Aug 2023 14:34:23 +0000

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






reply via email to

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