[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Make command use specific functions for button action
From: |
Heime |
Subject: |
Make command use specific functions for button action |
Date: |
Tue, 02 Jul 2024 19:54:18 +0000 |
I have this function that displays two buttons, and calls the
corresponding functions lsk1g and lsk1d. I would really like to have
the capability to instruct mondu to use specific function names
rather than the hardwired lsk1g and lsk1d.
For instance I want to make a call to mondu that will use lsk2g and
lsk2d rather than lsk1g and lsk1d.
(defun mondu ( monbf )
(with-current-buffer (get-buffer-create monbf)
(insert " DU \n\n")
(insert " ")
(insert-button "[-]" 'action 'lsk1g)
(insert " lsk1g ")
(insert-button "[-]" 'action 'lsk1d)
(insert " lsk1d ") )
(pop-to-buffer monbf) )
- Make command use specific functions for button action,
Heime <=