mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 15:21:46 +00:00
Restore documented Emacs 27.2 behaviour of browse-url-of-dired-file
* lisp/net/browse-url.el (browse-url-of-dired-file): Restore the documented behaviour -- open a web browser instead of passing to the various handlers.
This commit is contained in:
parent
cd77fd3b85
commit
9b74e84857
@ -835,7 +835,8 @@ If optional arg TEMP-FILE-NAME is non-nil, delete it instead."
|
||||
(defun browse-url-of-dired-file ()
|
||||
"In Dired, ask a WWW browser to display the file named on this line."
|
||||
(interactive)
|
||||
(let ((tem (dired-get-filename t t)))
|
||||
(let ((tem (dired-get-filename t t))
|
||||
(browse-url-default-handlers))
|
||||
(if tem
|
||||
(browse-url-of-file (expand-file-name tem))
|
||||
(error "No file on this line"))))
|
||||
|
Loading…
Reference in New Issue
Block a user