[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a179209: Fix interaction between url-handler-mode a
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master a179209: Fix interaction between url-handler-mode and browse-url |
Date: |
Fri, 23 Aug 2019 00:02:20 -0400 (EDT) |
branch: master
commit a179209678f009e72f7d28a80e026afaa3076d1d
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix interaction between url-handler-mode and browse-url
* lisp/net/browse-url.el (browse-url): Don't expand any URLs (like
"man:") that have a scheme when using `url-handler-mode' (bug#37056).
---
lisp/net/browse-url.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 3151dae..87a8248 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -781,7 +781,9 @@ as ARGS."
(interactive (browse-url-interactive-arg "URL: "))
(unless (called-interactively-p 'interactive)
(setq args (or args (list browse-url-new-window-flag))))
- (when (and url-handler-mode (not (file-name-absolute-p url)))
+ (when (and url-handler-mode
+ (not (file-name-absolute-p url))
+ (not (string-match "\\`[a-z]+:" url)))
(setq url (expand-file-name url)))
(let ((process-environment (copy-sequence process-environment))
(function (or (and (string-match "\\`mailto:" url)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a179209: Fix interaction between url-handler-mode and browse-url,
Lars Ingebrigtsen <=