From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: eggert@cs.ucla.edu, michael.albinus@gmx.de, 42431@debbugs.gnu.org
Subject: bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging
Date: Sun, 09 Aug 2020 17:05:14 +0300 [thread overview]
Message-ID: <83h7tb6hk5.fsf@gnu.org> (raw)
In-Reply-To: <87lfiow3tq.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 09 Aug 2020 11:45:05 +0200)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org, Paul Eggert
> <eggert@cs.ucla.edu>
> Date: Sun, 09 Aug 2020 11:45:05 +0200
>
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> > It would be, but I think this points to an error in insert-file-contents
> > itself. I'll poke around some more...
>
> Yup. The error signalling comes from Finsert_file_contents. If I make
> this change, then the confusing messaging goes away:
>
> diff --git a/src/fileio.c b/src/fileio.c
> index 37072d9b6b..05e262b201 100644
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -4826,7 +4826,6 @@ because (1) it preserves some marker positions and (2) it puts less data
> if (!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);
> }
>
Of course. And that's exactly what I meant when I suggested to
convert the file:// URL to a local file name, before calling
insert-file-contents. If we do that, the problem should go away. Or
am I missing something?
next prev parent reply other threads:[~2020-08-09 14:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 19:34 bug#42431: 28.0.50; browse-url-of-dired-file confusing messaging Lars Ingebrigtsen
2020-07-19 19:37 ` Lars Ingebrigtsen
2020-07-27 22:24 ` Lars Ingebrigtsen
2020-08-08 7:46 ` Eli Zaretskii
2020-08-08 10:05 ` Lars Ingebrigtsen
2020-08-08 10:22 ` Eli Zaretskii
2020-08-09 9:35 ` Lars Ingebrigtsen
2020-08-09 9:45 ` Lars Ingebrigtsen
2020-08-09 14:05 ` Eli Zaretskii [this message]
2020-08-09 14:08 ` Lars Ingebrigtsen
2022-10-13 7:00 ` Lars Ingebrigtsen
2022-10-13 8:51 ` Paul Eggert
2022-10-13 10:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h7tb6hk5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=42431@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=larsi@gnus.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.