* [PATCH] Gemini in browse-url-button-regexp
@ 2021-12-01 21:13 Daniel Fleischer
2021-12-02 8:11 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Fleischer @ 2021-12-01 21:13 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
Hi all,
I'm suggesting adding the Gemini protocol to the regexp for
"buttonizing" URLs. Gemini is a new text-based web protocol (like
gopher) with rising popularity and at least one Emacs package for
browsing (Elpher). URLs are of the form gemini://my.home.page/. Having
Emacs identify these links is useful and all determined by a single
variable. Attached is the patch. For more information about Gemini, here
is a quick introduction:
https://geminiquickst.art/
Best,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch --]
[-- Type: text/x-patch, Size: 1053 bytes --]
From 3e7545edaaea514e62b606a703efd77b3493491e Mon Sep 17 00:00:00 2001
From: Daniel Fleischer <danflscr@gmail.com>
Date: Wed, 1 Dec 2021 22:52:33 +0200
Subject: [PATCH] * lisp/net/browse-url.el: added gemini to url-regexp
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 011e43c447..d39cc361e5 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -221,7 +221,7 @@ browse-url-man-function
(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:]")
--
2.33.1
[-- Attachment #3: Type: text/plain, Size: 23 bytes --]
--
Daniel Fleischer
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Gemini in browse-url-button-regexp
2021-12-01 21:13 [PATCH] Gemini in browse-url-button-regexp Daniel Fleischer
@ 2021-12-02 8:11 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-02 8:11 UTC (permalink / raw)
To: Daniel Fleischer; +Cc: emacs-devel
Daniel Fleischer <danflscr@gmail.com> writes:
> I'm suggesting adding the Gemini protocol to the regexp for
> "buttonizing" URLs.
Thanks; applied to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-02 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-01 21:13 [PATCH] Gemini in browse-url-button-regexp Daniel Fleischer
2021-12-02 8:11 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.