diff options
author | defanor <defanor@uberspace.net> | 2017-11-26 08:52:32 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-11-26 08:52:32 +0300 |
commit | 53d7b8175ff897391fda84eb3dc71af31d364f7e (patch) | |
tree | c9c046631f79e33ee0a5cc1aee899193f372ece6 /pancake.el | |
parent | 9285ad522bdaf72bbcefdca3807ece0194eae84b (diff) |
Distinguish image denotations from those for links
Some kind of image support can be introduced in the future, and it's
not quite correct to present images as links.
Diffstat (limited to 'pancake.el')
-rw-r--r-- | pancake.el | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -175,7 +175,7 @@ (defun pancake-button-action (button) "An action to be invoked on button activation." - (funcall 'browse-url (button-get button 'uri))) + (funcall 'browse-url (button-get button 'pancake-uri))) (defun pancake-print-elem (element) "Translate ELEMENT into a string." @@ -204,7 +204,16 @@ (`(denotation (link . ,uri) . ,rest) (pancake-print-line rest) (make-text-button start (point) - 'uri uri + 'pancake-uri uri + 'pancake-type 'link + 'help-echo uri + 'follow-link t + 'action #'pancake-button-action)) + (`(denotation (image . ,uri) . ,rest) + (pancake-print-line rest) + (make-text-button start (point) + 'pancake-uri uri + 'pancake-type 'image 'help-echo uri 'follow-link t 'action #'pancake-button-action)) |