branch: elpa/xkcd commit f539b436cc83d74b9ce8b227e1a05830a1bd6a51 Author: Vibhav Pant <vibh...@gmail.com> Commit: Vibhav Pant <vibh...@gmail.com>
Remove xkcd-handle-link parts to prevent links from being broken. --- xkcd.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xkcd.el b/xkcd.el index 6910aa031a..0c78843ebc 100644 --- a/xkcd.el +++ b/xkcd.el @@ -67,12 +67,6 @@ Should preferably be located in `xkcd-cache-dir'." :group 'xkcd :type 'file) -;;;###autoload -(defcustom xkcd-handle-links t - "If t, Handle xkcd links by opening them with xkcd-get" - :group 'xkcd - :type 'boolean) - (defun xkcd-get-json (url &optional num) "Fetch the Json coming from URL. If the file NUM.json exists, use it instead. @@ -200,6 +194,7 @@ If the image is a gif, animate it." (xkcd-get (string-to-number number)))) ;;;###autoload +(defun xkcd-handle-urls ()) (setq browse-url-browser-function (if xkcd-handle-links (lambda (url etc) (if (string-match "xkcd.com/[0-9]+"