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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue