bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Eli Zaretskii
Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging
Date: Sat, 08 Aug 2020 10:46:55 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Tue, 28 Jul 2020 00:24:23 +0200
> Cc: Michael Albinus <michael.albinus@gmx.de>
> 
> (browse-url-of-file "/tmp/a.txt")
> 
> The message originates from here, sort of:
> 
> (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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]