Skip to content

Commit

Permalink
Provide work-around for buttonize which needs 29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchunyang committed Jan 16, 2024
1 parent 01952ed commit f5ab666
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion elisp-demos.el
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,13 @@ If set, new notes are added to the first file in this list."
'keymap elisp-demos-help-keymap)
"\n\n")
"")
(buttonize "[Add]" #'elisp-demos-add-demo helpful--sym)
(if (fboundp 'buttonize)
(buttonize "[Add]" #'elisp-demos-add-demo helpful--sym)
(insert-text-button
"[Add]"
'face 'link
'action (lambda (_button)
(elisp-demos-add-demo helpful--sym))))
"\n\n"))))))

;;;###autoload
Expand Down

0 comments on commit f5ab666

Please sign in to comment.