From: Paul Eggert <eggert@cs.ucla.edu>
To: Lars Ingebrigtsen <larsi@gnus.org>, Eli Zaretskii <eliz@gnu.org>
Cc: pquessev@gmail.com, 58464@debbugs.gnu.org
Subject: bug#58464: 28.1; browse-url-emacs doesn't work for local files on Windows
Date: Thu, 13 Oct 2022 09:40:54 -0700 [thread overview]
Message-ID: <6cc4566c-00f8-8fa1-4dcd-411539972f87@cs.ucla.edu> (raw)
In-Reply-To: <8735bs7yg0.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
On 2022-10-13 04:30, Lars Ingebrigtsen wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> Thanks. But this part:
>>
>> - if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0)
>> + if (save_errno != 0)
>>
>> might cause us signal an error when VISIT is nil, something that
>> didn't happen before.
We should be OK there. If VISIT is nil, SAVE_ERRNO must be zero.
>> (I also am not sure it is 100% reliable to rely on save_errno being
>> non-zero whenever we encounter an error, especially in the
>> file-handlers case.)
Should be OK here too. In the file-handlers case, SAVE_ERRNO is zero.
I installed the attached to help document and check this.
[-- Attachment #2: 0001-Improve-checks-for-recent-File-exists-fixup.patch --]
[-- Type: text/x-patch, Size: 799 bytes --]
From 10f55975d34dd7299f72fdf8d93fd8cbe2e41e25 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 13 Oct 2022 09:33:46 -0700
Subject: [PATCH] Improve checks for recent "File exists" fixup
* src/fileio.c (Finsert_file_contents): Add an assertion (bug#42431).
---
src/fileio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/fileio.c b/src/fileio.c
index 49553f3c91..b9a57dd580 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5003,6 +5003,7 @@ because (1) it preserves some marker positions (in unchanged portions
if (save_errno != 0)
{
/* Signal an error if visiting a file that could not be opened. */
+ eassert (!NILP (visit) && NILP (handler));
report_file_errno ("Opening input file", orig_filename, save_errno);
}
--
2.34.1
next prev parent reply other threads:[~2022-10-13 16:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-12 6:43 bug#58464: 28.1; browse-url-emacs doesn't work for local files on Windows Pascal Quesseveur
2022-10-12 7:26 ` Eli Zaretskii
2022-10-12 11:10 ` Lars Ingebrigtsen
2022-10-12 13:14 ` Eli Zaretskii
[not found] ` <828rlll4ef.fsf@gmail.com>
2022-10-12 13:04 ` Eli Zaretskii
2022-10-12 11:09 ` Lars Ingebrigtsen
2022-10-12 13:13 ` Eli Zaretskii
2022-10-12 13:18 ` Lars Ingebrigtsen
2022-10-12 14:25 ` Eli Zaretskii
2022-10-12 14:42 ` Lars Ingebrigtsen
2022-10-12 15:55 ` Eli Zaretskii
2022-10-12 15:57 ` Lars Ingebrigtsen
2022-10-12 16:07 ` Eli Zaretskii
2022-10-13 7:54 ` Lars Ingebrigtsen
2022-10-13 10:29 ` Eli Zaretskii
2022-10-13 11:30 ` Lars Ingebrigtsen
2022-10-13 15:44 ` Eli Zaretskii
2022-10-13 16:40 ` Paul Eggert [this message]
2022-10-13 19:15 ` 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=6cc4566c-00f8-8fa1-4dcd-411539972f87@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=58464@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
--cc=pquessev@gmail.com \
/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.