From: Paul Eggert Date: Thu, 13 Oct 2022 16:33:46 +0000 (-0700) Subject: Improve checks for recent "File exists" fixup X-Git-Tag: emacs-29.0.90~1616^2~638 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10f55975d34dd7299f72fdf8d93fd8cbe2e41e25;p=emacs.git Improve checks for recent "File exists" fixup * src/fileio.c (Finsert_file_contents): Add an assertion (bug#42431). --- diff --git a/src/fileio.c b/src/fileio.c index 49553f3c91f..b9a57dd5800 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -5003,6 +5003,7 @@ by calling `format-decode', which see. */) 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); }