The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c695f0c
)
Disable downloading for web links.
author
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 26 Apr 2019 16:01:07 +0000
(18:01 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Fri, 26 Apr 2019 16:01:07 +0000
(18:01 +0200)
elopher.el
patch
|
blob
|
history
diff --git
a/elopher.el
b/elopher.el
index
217ef98
..
81b1250
100644
(file)
--- a/
elopher.el
+++ b/
elopher.el
@@
-532,11
+532,13
@@
The result is stored as a string in the variable elopher-selector-string."
(interactive)
(let ((button (button-at (point))))
(if button
- (elopher-visit-node (button-get button 'elopher-node)
- #'elopher-get-node-download)
+ (let ((node (button-get button 'elopher-node)))
+ (if node
+ (elopher-visit-node (button-get button 'elopher-node)
+ #'elopher-get-node-download)
+ (message "Can only download gopher links, not general URLs.")))
(message "No link selected."))))
-
;;; Mode and keymap
;;