From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#18370: insert-file-contents: forbids also beg, end for non-regular (special) files Date: Sun, 12 Jun 2022 10:11:07 +0300 Organization: LINKOV.NET Message-ID: <86pmjeqqx0.fsf@mail.linkov.net> References: <87y4u4tp5a.fsf@violet.siamics.net> <874k1w6qlr.fsf@gnus.org> <87r13vqsp0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20478"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 18370@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 09:51:28 2022 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 1o0INc-0005Ds-Ds for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 09:51:28 +0200 Original-Received: from localhost ([::1]:41982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0INb-0006nQ-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 03:51:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0INC-0006jv-3e for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0INB-0004wW-Rj for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0INB-0003Ow-NW for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 07:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18370 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18370-submit@debbugs.gnu.org id=B18370.165502025713041 (code B ref 18370); Sun, 12 Jun 2022 07:51:01 +0000 Original-Received: (at 18370) by debbugs.gnu.org; 12 Jun 2022 07:50:57 +0000 Original-Received: from localhost ([127.0.0.1]:54591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0IN7-0003OG-A0 for submit@debbugs.gnu.org; Sun, 12 Jun 2022 03:50:57 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:58083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0IN1-0003Nw-OU for 18370@debbugs.gnu.org; Sun, 12 Jun 2022 03:50:56 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 97AC2C0005; Sun, 12 Jun 2022 07:50:44 +0000 (UTC) In-Reply-To: <87r13vqsp0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 11 Jun 2022 14:40:27 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:234331 Archived-At: >> Simple test case: >> >> (insert-file-contents "/dev/urandom" nil nil 10) >> >> This still fails in Emacs 29, and it would indeed be nice if it worked. >> I seem to remember this being discussed previously, and that... er... >> no, I can't really recall anything more than that. >> >> Does anybody see any good reasons why we shouldn't allow this? If not, >> I can take a stab at implementing it... > > There were no objections, so I've now added this to Emacs 29. Maybe this is related to bug#9800, still unfixed after this change.