forked from Github/emacs
Fix misleading "File exists, but cannot be read" in browse-url-emacs
* src/fileio.c (Finsert_file_contents): Don't signal an error about not being able to open the file when we're fetching things via handlers -- in that case, modtime isn't necessarily set, and if there's a handler, it should take care of this (bug#42431).
This commit is contained in:
parent
2b7fefdef1
commit
c522021a30
1 changed files with 1 additions and 1 deletions
|
|
@ -5000,7 +5000,7 @@ by calling `format-decode', which see. */)
|
|||
unbind_to (count1, Qnil);
|
||||
}
|
||||
|
||||
if (!NILP (visit) && current_buffer->modtime.tv_nsec < 0)
|
||||
if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0)
|
||||
{
|
||||
/* Signal an error if visiting a file that could not be opened. */
|
||||
report_file_errno ("Opening input file", orig_filename, save_errno);
|
||||
|
|
|
|||
Loading…
Reference in a new issue