Subject: Re: bug#54271: 28.0.91; browse-url-of-dired-file fails with wrong type argument error

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 06 Mar 2022 17:20:28 +0100

Gustavo Barros <[email-masked]> writes:

> To reproduce, start with `emacs -Q'. Create a file named 
> "~/test/áçãü.org", open `dired', and navigate to that file, and hit "W" 
> (`browse-url-of-dired-file') on it.  You should get the mentioned error 
> "url-file: Wrong type argument: number-or-marker-p, nil".

This is basically a different symptom of bug#42431 and bug#52243, so
I've merged these bug report.  (I think the solution here is to rework
how `W' works, but since there are so many layers involved here --
browse-url-default-handlers, among other things -- it's not obvious what
the real fix here would be.  Perhaps just change browse-url-emacs to not
use url.el for file:// URLs?)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no