bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65156: 29.1; Reading from pipe with --insert or insert-file-contents


From: Paul Eggert
Subject: bug#65156: 29.1; Reading from pipe with --insert or insert-file-contents no longer supported
Date: Fri, 11 Aug 2023 10:18:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

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?

Attachment: insert-doc.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]