Cleanup 'browse-url' integration
authorDaniel Semyonov <daniel@dsemy.com>
Tue, 29 Jun 2021 15:02:51 +0000 (18:02 +0300)
committerAlex Schroeder <alex@gnu.org>
Tue, 29 Jun 2021 18:45:33 +0000 (20:45 +0200)
Rename 'browse-url-elpher' to 'elpher-browse-url-elpher'.
Autoload 'elpher-browse-url-elpher'.

elpher.el

index 9b7ff32..27a0295 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -1809,14 +1809,14 @@ If ADDRESS is already bookmarked, update the label only."
     (add-hook 'org-store-link-functions 'elpher-org-link-store)))
 
 ;;;###autoload
-(defun browse-url-elpher (url &rest _args)
+(defun elpher-browse-url-elpher (url &rest _args)
   "Browse URL using Elpher.  This function is used by `browse-url'."
   (interactive (browse-url-interactive-arg "Elpher URL: "))
   (elpher-go url))
 
 (add-to-list
  'browse-url-default-handlers
- '("^\\(gopher\\|finger\\|gemini\\)://" . browse-url-elpher))
+ '("^\\(gopher\\|finger\\|gemini\\)://" . elpher-browse-url-elpher))
 
 ;; Register "gemini://" as a URI scheme so `browse-url' does the right thing
 (with-eval-after-load 'thingatpt