[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using button to display a help menu
From: |
Heime |
Subject: |
Using button to display a help menu |
Date: |
Sun, 27 Aug 2023 06:32:29 +0000 |
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") ))
- Using button to display a help menu,
Heime <=