diff options
| author | Lars Ingebrigtsen | 2022-03-07 05:15:58 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-03-07 05:15:58 +0100 |
| commit | 73f28fbde8a2e29e340da2c51e6ccc24bd79b785 (patch) | |
| tree | b3ab0ef45cbfd1b9e4c0329a10d6ac280a87f4ff | |
| parent | 9b74e8485738913ddf220661097103f9a843ab45 (diff) | |
| download | emacs-73f28fbde8a2e29e340da2c51e6ccc24bd79b785.tar.gz emacs-73f28fbde8a2e29e340da2c51e6ccc24bd79b785.zip | |
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.
| -rw-r--r-- | lisp/net/browse-url.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 836 | "In Dired, ask a WWW browser to display the file named on this line." | 836 | "In Dired, ask a WWW browser to display the file named on this line." |
| 837 | (interactive) | 837 | (interactive) |
| 838 | (let ((tem (dired-get-filename t t)) | 838 | (let ((tem (dired-get-filename t t)) |
| 839 | (browse-url-default-handlers)) | 839 | ;; Some URL handlers open files in Emacs. We want to always |
| 840 | ;; open in a browser, so disable those. | ||
| 841 | (browse-url-default-handlers nil)) | ||
| 840 | (if tem | 842 | (if tem |
| 841 | (browse-url-of-file (expand-file-name tem)) | 843 | (browse-url-of-file (expand-file-name tem)) |
| 842 | (error "No file on this line")))) | 844 | (error "No file on this line")))) |