On 2023-08-10 01:15, Eli Zaretskii wrote: > I think it should be changed to say this instead: > > If REPLACE is the symbol ‘if-regular’, then eschew preserving marker > positions or the undo list when FILENAME is not a regular file. > Otherwise, signal an error if REPLACE is non-nil and FILENAME is not > a regular file. > > AFAICT, this is what the code does. It does more than that, no? If REPLACE is 'if-regular' and the file is not a regular file, the function replaces the entire buffer not the accessible region. How about something like the attached instead?