[Top][All Lists]

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

master d353c08: browse-url-button-regexp: Recognize gemini: links

From: Lars Ingebrigtsen
Subject: master d353c08: browse-url-button-regexp: Recognize gemini: links
Date: Thu, 2 Dec 2021 03:12:02 -0500 (EST)

branch: master
commit d353c08d2bf25ea8e42ae4664c3a276d549937b5
Author: Daniel Fleischer <danflscr@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
 lisp/net/browse-url.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 011e43c..d39cc36 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
-   "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|"
+   "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|gemini\\|"
    (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]")

reply via email to

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