[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: |
Thu, 13 Oct 2022 13:35:44 +0300 |
> Date: Thu, 13 Oct 2022 01:51:00 -0700
> Cc: michael.albinus@gmx.de, 42431@debbugs.gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
>
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -5000,7 +5000,7 @@ because (1) it preserves some marker positions (in
> unchanged portions
> unbind_to (count1, Qnil);
> }
>
> - if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0)
> + if (save_errno != 0)
> {
> /* Signal an error if visiting a file that could not be opened. */
> report_file_errno ("Opening input file", orig_filename, save_errno);
Why would we want to signal an error when VISIT is nil? We didn't
before.