Subject: Re: bug#78926: 30.1; find-file-read-only require-match inconsistency

From: Eli Zaretskii <[email-masked]>
Date: Tue, 01 Jul 2025 14:11:45 +0300

> From: Thierry Volpiatto <[email-masked]>
> Date: Mon, 30 Jun 2025 10:36:29 +0000
> 
> find-file-read-only is allowing confirmation to exit with a non existing
> file with `confirm-nonexistent-file-or-buffer`, but when the
> filename is selected it calls `find-file--read-only` which itself prevent
> exiting with a non existing file.
> 
> Did I miss something or is it a bug?

Sorry, could you please elaborate?  What exactly did you do and what
did you see?

I tried:

  emacs -Q
  M-x set-variable RET confirm-nonexistent-file-or-buffer RET nil RET
  M-x find-file-read-only RET foobar RET

and Emacs signaled an error saying that the file does not exist.
Sounds like Emacs does behave reasonably.