[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44822: 27.1; Regression in `ffap-read-file-or-url'
From: |
Lars Ingebrigtsen |
Subject: |
bug#44822: 27.1; Regression in `ffap-read-file-or-url' |
Date: |
Sat, 31 Jul 2021 18:58:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Hmm... the motivation for the change is described in the comment:
>
> ;; FIXME: We earlier tried to make use of `url-file-handler' so
> ;; `read-file-name' could also be used for URLs, but it
> ;; introduced all kinds of subtle breakage such as:
> ;; - (file-name-directory "http://a") returning "http://a/"
> ;; - Trying to contact remote hosts with no justification
> ;; These should be fixed in url-handler-mode before we can try
> ;; using it here again.
Duh; my eyes just skipped that bit. :-/
> Maybe the cure is worse than the disease,
I had forgotten all the peculiarities that url-file-handler has -- it's
simply not a usable solution.
Perhaps somebody can come up with a much, much simpler solution for use
in `read-file-name' only -- that shouldn't be insurmountable, I think...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no