From: Tim Vaughan Date: Fri, 26 Apr 2019 16:01:07 +0000 (+0200) Subject: Disable downloading for web links. X-Git-Tag: v1.0.0~39 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=6fbf21ff697e4698c42eb7441425fc82ac49966f;p=elpher.git Disable downloading for web links. --- diff --git a/elopher.el b/elopher.el index 217ef98..81b1250 100644 --- 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 ;;