GNU bug report logs - #65156
29.1; Reading from pipe with --insert or insert-file-contents no longer supported

Previous Next

Package: emacs;

Reported by: Lucas Werkmeister <mail <at> lucaswerkmeister.de>

Date: Tue, 8 Aug 2023 18:21:02 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>, mail <at> lucaswerkmeister.de
Cc: larsi <at> gnus.org, 65156 <at> debbugs.gnu.org
Subject: bug#65156: 29.1; Reading from pipe with --insert or insert-file-contents no longer supported
Date: Wed, 9 Aug 2023 13:57:36 -0700
On 2023-08-08 12:27, Eli Zaretskii wrote:
> Paul, can there be a regular file that is not seekable?

No.

The current code on master is a bit of a mess. There's nothing wrong 
with using a positive BEG on a seekable and non-regular file, for 
example; the old doc string was wrong and now the code has been changed 
to match the doc string unfortunately. Nor is there anything wrong if 
BEG is 0 on a non-seekable file (though this latter issue is 
longstanding and so I guess nobody cares).

There are surely some gotchas involving the REPLACE arg of 
insert-file-contents too, but it's hard to tell because the doc string 
seems to be corrupted for the case where REPLACE is 'if-regular' and I 
don't know what it's trying to say.




This bug report was last modified 1 year and 315 days ago.

Previous Next


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