From f74612686b468069849ab36d1c49229312f3434e Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Fri, 12 Aug 2022 15:07:18 +0200 Subject: Buttons live in their own namespace `geiser-doc--xbutton' will be tackled in the next commit. --- elisp/geiser-doc.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'elisp/geiser-doc.el') diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el index 2ebe39b..4c04cd6 100644 --- a/elisp/geiser-doc.el +++ b/elisp/geiser-doc.el @@ -149,14 +149,14 @@ value if the default action should be skipped.") (let ((link (button-get button 'geiser-link))) (when link (geiser-doc--follow-link link)))) -(define-button-type 'geiser-doc--button +(define-button-type 'geiser-doc 'action 'geiser-doc--button-action 'follow-link t) (defun geiser-doc--make-module-button (beg end module impl) (let ((link (geiser-doc--make-link nil module impl)) (help (format "Help for module %s" module))) - (make-text-button beg end :type 'geiser-doc--button + (make-text-button beg end :type 'geiser-doc 'face 'geiser-font-lock-doc-link 'geiser-link link 'help-echo help))) @@ -171,7 +171,7 @@ value if the default action should be skipped.") (if target (format "%s in " target) "") (or module "")))) (insert-text-button text - :type 'geiser-doc--button + :type 'geiser-doc 'face 'geiser-font-lock-doc-link 'geiser-link link 'help-echo help))) -- cgit v1.2.3