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.
This commit is contained in:
parent
9b74e84857
commit
73f28fbde8
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
"In Dired, ask a WWW browser to display the file named on this line."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((tem (dired-get-filename t t))
|
(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
|
(if tem
|
||||||
(browse-url-of-file (expand-file-name tem))
|
(browse-url-of-file (expand-file-name tem))
|
||||||
(error "No file on this line"))))
|
(error "No file on this line"))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue