From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs 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 Organization: UCLA Computer Science Department Message-ID: <63a54bee-6bfd-70e5-a9b5-a6f650cabd12@cs.ucla.edu> References: <4b873c29-e8ca-403c-bd37-a531d93661f3@lucaswerkmeister.de> <83fs4tmlik.fsf@gnu.org> <83cyzxmj1g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: larsi@gnus.org, 65156@debbugs.gnu.org To: Eli Zaretskii , mail@lucaswerkmeister.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 09 22:58:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTqG6-000520-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Aug 2023 22:58:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTqFn-0000w5-K0; Wed, 09 Aug 2023 16:58:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTqFm-0000vv-Qd for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 16:58:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTqFm-000051-IV for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 16:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qTqFm-00005e-28 for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 16:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65156 X-GNU-PR-Package: emacs Original-Received: via spool by 65156-submit@debbugs.gnu.org id=B65156.1691614665316 (code B ref 65156); Wed, 09 Aug 2023 20:58:02 +0000 Original-Received: (at 65156) by debbugs.gnu.org; 9 Aug 2023 20:57:45 +0000 Original-Received: from localhost ([127.0.0.1]:40590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTqFV-000052-8S for submit@debbugs.gnu.org; Wed, 09 Aug 2023 16:57:45 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:38132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTqFS-0008WU-Tx for 65156@debbugs.gnu.org; Wed, 09 Aug 2023 16:57:43 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 630A03C011BD8; Wed, 9 Aug 2023 13:57:37 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rNEsxE2v5ISu; Wed, 9 Aug 2023 13:57:37 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 153753C011BD9; Wed, 9 Aug 2023 13:57:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 153753C011BD9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1691614657; bh=+tozhGlHsIespjWbSwVyBSGsUesO0w0NLfNBqLHOrEw=; h=Message-ID:Date:MIME-Version:To:From; b=buOOM2Zb/+au/YAjLJMvAeLkCeDegjE3Ej+rLuFxH4F/y1j2uGJ2SxctDgcogyDzb X0yn/lt8CK4UGUXebb6kJdgr5+CFEE9SHTBY+L4CNe36kX/k/4OqL09ONbEU7mxLqD HCngSz5+TQE2Vw6oTavSGz08yNc2WfEd7xbZCBfer3DhCbEJUEDBK2TRQKDrx40FTA VM/EFbf/ZthdoH/OvO1GS3gzPC32fvMaN3nXUOQ89iyuG3MT3qyKk2RrSQwFzE9MLf yKIq/6hAIrJpYTAUZIl0PunszubqpxO/7j+y3pvy1TlVOcSb92VB28afQJ8JY/UNzy /gkSoP3y2cFpw== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wXK3WJ2e9lm3; Wed, 9 Aug 2023 13:57:37 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id DF02A3C011BD8; Wed, 9 Aug 2023 13:57:36 -0700 (PDT) Content-Language: en-US In-Reply-To: <83cyzxmj1g.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267064 Archived-At: 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.