From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65156: 29.1; Reading from pipe with --insert or insert-file-contents no longer supported Date: Sat, 12 Aug 2023 11:05:33 +0300 Message-ID: <83pm3selde.fsf@gnu.org> References: <4b873c29-e8ca-403c-bd37-a531d93661f3@lucaswerkmeister.de> <83fs4tmlik.fsf@gnu.org> <83cyzxmj1g.fsf@gnu.org> <63a54bee-6bfd-70e5-a9b5-a6f650cabd12@cs.ucla.edu> <83ttt7jx1m.fsf@gnu.org> <6755e91e-1318-8ca8-33e4-30d354d95a2f@cs.ucla.edu> <83a5uzjotb.fsf@gnu.org> <83wmy1fn3g.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23762"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 65156@debbugs.gnu.org, mail@lucaswerkmeister.de To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 10:06:28 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 1qUjdj-0005vN-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 10:06:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUjdL-0003kh-Pk; Sat, 12 Aug 2023 04:06: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 1qUjdK-0003kJ-Kl for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 04:06: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 1qUjdK-0003Sq-C4 for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUjdJ-0006DK-Tx for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 04:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Aug 2023 08:06:01 +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.169182752123821 (code B ref 65156); Sat, 12 Aug 2023 08:06:01 +0000 Original-Received: (at 65156) by debbugs.gnu.org; 12 Aug 2023 08:05:21 +0000 Original-Received: from localhost ([127.0.0.1]:48660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUjce-0006C6-T1 for submit@debbugs.gnu.org; Sat, 12 Aug 2023 04:05:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUjca-0006Bl-SZ for 65156@debbugs.gnu.org; Sat, 12 Aug 2023 04:05:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUjcS-0003I4-GT; Sat, 12 Aug 2023 04:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UAiGwUXNKvMbob2C5r6qZCVK/b3ZbLVBkTpkb8LY7CU=; b=UDl3V0HIKHVi coCIqYsZgzylP3ahIpf4X79VIWX9ez4WrlCLwnb/0Qpdj/q0q+E8re9VMtAoZxL7XhXUJsP47kevl umlaf7uG6ymPpUtrNrYzqYubDK9Ds30SsxkwqUbVcew/aUnau7tUWsdYssFqBBX9uii1x8UruGJ0p 72qHaChna7YSCfZ+RWuXUWc7PSk4RaVWr0ogj9mSqKfjzudIJE0KZ1KAKCXJG/mcuszpTrFP3xi1v cWxg89Mmqmb6D7xNB9+m1sOOJJKj6q8Qk/WoWiQrmeZ5qSX37YaY1z2dZ+fzjZr4QYHgMc1mmLZ8Y VCW96Wm9Szxjng5Jr8QTSA==; In-Reply-To: (message from Paul Eggert on Fri, 11 Aug 2023 14:45:48 -0700) 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:267284 Archived-At: > Date: Fri, 11 Aug 2023 14:45:48 -0700 > Cc: mail@lucaswerkmeister.de, larsi@gnus.org, 65156@debbugs.gnu.org > From: Paul Eggert > > On 2023-08-11 11:30, Eli Zaretskii wrote: > > This is fine, but I think instead of "act as if REPLACE were nil" we > > should explicitly say that the buffer is erased and the file's > > contents is inserted. > > I'm still a bit lost here. It's news to me that REPLACE being nil means > the entire buffer is erased first. That's actually a bug: it should only erase the accessible portion of the buffer. I fixed it now. > The bigger picture is that I don't know what insert-file-contents is > supposed to do in all these complicated circumstances. THat is the > various motivations behind insert-file-contents's complex argument > combinations don't fully make sense to me. So I'll step aside and let > someone more expert fix the doc string, whenever anybody has the time. Until we wait for someone to figure that out, I attempted to make things better by fixing the doc string's language as best I could, see the master branch. WDYT about backporting this (both the doc string and the erasing fix) to emacs-29?