GNU bug report logs - #79127
30.1; Inaccurate description of find-file-noselect with NOWARN non-nil

Previous Next

Package: emacs;

Reported by: richard newton <richardn26 <at> gmail.com>

Date: Wed, 30 Jul 2025 11:03:02 UTC

Severity: normal

Found in version 30.1

Full log


Message #8 received at 79127 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: richard newton <richardn26 <at> gmail.com>
Cc: 79127 <at> debbugs.gnu.org
Subject: Re: bug#79127: 30.1;
 Inaccurate description of find-file-noselect with NOWARN non-nil
Date: Sat, 02 Aug 2025 17:35:36 +0300
> From: richard newton <richardn26 <at> gmail.com>
> Date: Wed, 30 Jul 2025 13:02:02 +0200
> 
> Description of find-file-noselect says "If a buffer exists visiting FILENAME, return that one, but verify that the
> file has not changed since visited or saved."
> 
> The description for arg NOWARN only says
> "Optional second arg NOWARN non-nil means suppress any warning messages."
> 
> But if NOWARN is non-nil then it also does not verify that the file has not changed
> 
> Ideally, the code should be changed to match the description. If not, the description for NOWARN could be
> improved.

Thanks.  I opted to change the documentation (on the emacs-30 branch),
since NOWARN should not be used when there's a possibility that the
file has been edited behind Emacs's back, and it's impossible to not
warn if we discover that it has been.




This bug report was last modified 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.