From: Daniel Fleischer Date: Thu, 2 Dec 2021 08:11:21 +0000 (+0100) Subject: browse-url-button-regexp: Recognize gemini: links X-Git-Tag: emacs-29.0.90~3629^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d353c08d2bf25ea8e42ae4664c3a276d549937b5;p=emacs.git browse-url-button-regexp: Recognize gemini: links Gemini is a relatively new text-based web protocol, similar to gopher. There's the "elpher" package to browse gopher and gemini pages. Adding it to the regexp will make Emacs be aware of gemini links, e.g. in ERC. * lisp/net/browse-url.el (browse-url-button-regexp): Add support for the gemini: URL type. --- diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 011e43c447b..d39cc361e56 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -221,7 +221,7 @@ be used instead." (defcustom browse-url-button-regexp (concat - "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|" + "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|gemini\\|" "nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)" "\\(//[-a-z0-9_.]+:[0-9]*\\)?" (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]")