[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging
From: |
Lars Ingebrigtsen |
Subject: |
bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging |
Date: |
Sun, 19 Jul 2020 21:37:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> All this is very confusing, because the doc string of the command is
>
> --
> In Dired, ask a WWW browser to display the file named on this line.
> --
>
> So it should just call `browse-url' on the file:// URL, and not do
> anything about these buffers?
Ah, it's because of this --
(defvar browse-url-default-handlers
'(("\\`mailto:" . browse-url--mailto)
("\\`man:" . browse-url--man)
(browse-url--non-html-file-url-p . browse-url-emacs))
browse-url on a file that doesn't have .html in it will now not open a
browser at all, but instead an Emacs buffer.
In any case, the messaging is misleading and the buffer name is
confusing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no