emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/xkcd 66eceb7896 62/82: Remove xkcd-handle-urls and friends


From: ELPA Syncer
Subject: [nongnu] elpa/xkcd 66eceb7896 62/82: Remove xkcd-handle-urls and friends.
Date: Mon, 12 Dec 2022 21:59:54 -0500 (EST)

branch: elpa/xkcd
commit 66eceb7896531b19525f0ef041201468b65c790e
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>

    Remove xkcd-handle-urls and friends.
---
 xkcd.el | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/xkcd.el b/xkcd.el
index 0c78843ebc..2c823a8d60 100644
--- a/xkcd.el
+++ b/xkcd.el
@@ -193,17 +193,6 @@ If the image is a gif, animate it."
         (number (substring string 0 (string-match "/" string))))
     (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]+"
-                                            "http://xkcd.com/123/";)
-                                           (get-xkcd-from-url url)
-                                         
-                                         'browse-url-default-browser))
-                                   'browse-url-default-browser))
-
 ;;;###autoload
 (defun xkcd-get-latest ()
   "Get the latest xkcd."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]