From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22096: 25.0.50; reading from fifo breaks display Date: Sat, 05 Dec 2015 18:49:39 +0200 Message-ID: <837fksg7rw.fsf@gnu.org> References: <87lh9aglih.fsf@udel.edu> <83oae5fgtn.fsf@gnu.org> <83mvtpfezh.fsf@gnu.org> <87k2osop6p.fsf@udel.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449334284 1010 80.91.229.3 (5 Dec 2015 16:51:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 16:51:24 +0000 (UTC) Cc: 22096@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 17:51:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a5G3E-0001VR-KS for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 17:51:12 +0100 Original-Received: from localhost ([::1]:47066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5G3D-0007mv-TB for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 11:51:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5G39-0007mD-Ma for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 11:51:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5G34-00062Z-Mk for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 11:51:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5G34-00062V-JB for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 11:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5G34-0007mr-Ef for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2015 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22096 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22096-submit@debbugs.gnu.org id=B22096.144933425629918 (code B ref 22096); Sat, 05 Dec 2015 16:51:02 +0000 Original-Received: (at 22096) by debbugs.gnu.org; 5 Dec 2015 16:50:56 +0000 Original-Received: from localhost ([127.0.0.1]:40028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5G2x-0007mU-ND for submit@debbugs.gnu.org; Sat, 05 Dec 2015 11:50:55 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:49506) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5G2v-0007mL-02 for 22096@debbugs.gnu.org; Sat, 05 Dec 2015 11:50:53 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NYW0020094XHU00@mtaout27.012.net.il> for 22096@debbugs.gnu.org; Sat, 05 Dec 2015 18:44:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYW001UH96VW600@mtaout27.012.net.il>; Sat, 05 Dec 2015 18:44:56 +0200 (IST) In-reply-to: <87k2osop6p.fsf@udel.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109654 Archived-At: > From: Mark Oteiza > Date: Sat, 05 Dec 2015 11:06:22 -0500 > > >> It is possible to read a special file (such as a FIFO or an I/O > >> device) with `insert-file-contents', as long as REPLACE and VISIT > >> are `nil'. > >> > >> It seems this is no longer true, and we have to fix the manual to that > >> effect. > > > > Or maybe that text just gets the value of VISIT wrong: the code in > > question is very old, and always signaled an error for non-regular > > files when VISIT is nil. > > Supposedly (according to the docstring) BEG and END have to be nil if > VISIT is t, so I should probably be getting an error about supplying > invalid arguments. The code explicitly doesn't: if (!S_ISREG (st.st_mode)) { not_regular = 1; if (! NILP (visit)) goto notfound; if (! NILP (replace) || ! NILP (beg) || ! NILP (end)) xsignal2 (Qfile_error, build_string ("not a regular file"), orig_filename); } The test for VISIT non-nil, but also BEG and END non-nil is only after that.