Have made an interactive function qrh
so that I can use buttons to display some strings contained in organis-f8
and organis-b8
.
Can all this be simplified ? It seems to me that a button always requires a function that can be passed a button. Meaning that I cannot introduce the functionalities of organis-selk-f8
and organis-selk-b8
into organis-selk
. Could I do something with organis-selk
and qrh
though ?
(defun organis-selk-f8 (button)
(with-help-window (help-buffer)
(insert organis-f8)))
(defun organis-selk-b8 (button)
(with-help-window (help-buffer)
(insert organis-b8)))
(defun organis-selk (button)
(pcase (button-label button)
("[F8]" (organis-selk-f8 button))
("[B8]" (organis-selk-b8 button))
(_ (message "something"))))
(defun qrh ()
(interactive)
(with-help-window (help-buffer)
(insert-button "[F8]"
'action 'organis-selk 'follow-link t)
(insert-button "[B8]"
'action 'organis-selk 'follow-link t)))