diff options
| author | Stefan Kangas | 2024-12-11 22:34:19 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-12 10:14:16 +0100 |
| commit | d181afa5d96e66cbedf2d1a5e7ff3235222a92f1 (patch) | |
| tree | ce706db0c92bc7b3caf293496d3547c0fe1ae4e3 | |
| parent | ab5040896e6d436ec4c13371721e5218348a6555 (diff) | |
| download | emacs-d181afa5d96e66cbedf2d1a5e7ff3235222a92f1.tar.gz emacs-d181afa5d96e66cbedf2d1a5e7ff3235222a92f1.zip | |
Add nntps and snews to browse-url heuristic
* lisp/net/browse-url.el (browse-url-button-regexp): Support "nntps" and
"snews" schemes.
| -rw-r--r-- | lisp/net/browse-url.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 6a00bbbef93..a4de177f972 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -237,7 +237,7 @@ be used instead." | |||
| 237 | (defcustom browse-url-button-regexp | 237 | (defcustom browse-url-button-regexp |
| 238 | (concat | 238 | (concat |
| 239 | "\\b\\(\\(www\\.\\|\\(s?https?\\|ftps?\\|file\\|gophers?\\|gemini\\|" | 239 | "\\b\\(\\(www\\.\\|\\(s?https?\\|ftps?\\|file\\|gophers?\\|gemini\\|" |
| 240 | "nntp\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)" | 240 | "nntps?\\|s?news\\|telnet\\|wais\\|mailto\\|info\\):\\)" |
| 241 | "\\(//[-a-z0-9_.]+:[0-9]*\\)?" | 241 | "\\(//[-a-z0-9_.]+:[0-9]*\\)?" |
| 242 | (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]") | 242 | (let ((chars "-a-z0-9_=#$@~%&*+\\/[:word:]") |
| 243 | (punct "!?:;.,")) | 243 | (punct "!?:;.,")) |
| @@ -252,7 +252,7 @@ be used instead." | |||
| 252 | "\\)")) | 252 | "\\)")) |
| 253 | "\\)") | 253 | "\\)") |
| 254 | "Regular expression that matches URLs." | 254 | "Regular expression that matches URLs." |
| 255 | :version "27.1" | 255 | :version "31.1" |
| 256 | :type 'regexp) | 256 | :type 'regexp) |
| 257 | 257 | ||
| 258 | (defcustom browse-url-browser-display nil | 258 | (defcustom browse-url-browser-display nil |