From: Lars Ingebrigtsen Date: Mon, 7 Mar 2022 04:15:58 +0000 (+0100) Subject: Add a comment for previous browse-url-of-dired-file change X-Git-Tag: emacs-28.0.92~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=73f28fbde8a2e29e340da2c51e6ccc24bd79b785;p=emacs.git Add a comment for previous browse-url-of-dired-file change * lisp/net/browse-url.el (browse-url-of-dired-file): Add a comment for previous change. --- diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 55f41323ddb..ccfbf51e48c 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -836,7 +836,9 @@ If optional arg TEMP-FILE-NAME is non-nil, delete it instead." "In Dired, ask a WWW browser to display the file named on this line." (interactive) (let ((tem (dired-get-filename t t)) - (browse-url-default-handlers)) + ;; Some URL handlers open files in Emacs. We want to always + ;; open in a browser, so disable those. + (browse-url-default-handlers nil)) (if tem (browse-url-of-file (expand-file-name tem)) (error "No file on this line"))))