[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: |
Sat, 08 Aug 2020 12:05:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> (defun find-file-noselect-1 (buf filename nowarn rawfile truename number)
>>
>> [...]
>>
>> (condition-case ()
>> (let ((inhibit-read-only t))
>> (insert-file-contents-literally filename t))
>> (file-error
>> (when (and (file-exists-p filename)
>> (not (file-readable-p filename)))
>> (kill-buffer buf)
>> (signal 'file-error (list "File is not readable"
>> filename)))
>
> Is this because file-readable-p returns nil for file:// URLs?
That's the direct cause of the message, but the underlying reason is
that insert-file-contents-literally signalled a file-error here (after
inserting the contents). I haven't yet chased down why.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no