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 19:18:45 +0200 Message-ID: <834mfwg6fe.fsf@gnu.org> References: <87lh9aglih.fsf@udel.edu> <83oae5fgtn.fsf@gnu.org> <87oae4opjl.fsf@udel.edu> <83a8pog7z8.fsf@gnu.org> <20151205170908.GA6375@holos> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449336030 26664 80.91.229.3 (5 Dec 2015 17:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 17:20:30 +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 18:20:10 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 1a5GVF-0006bD-Mr for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 18:20:09 +0100 Original-Received: from localhost ([::1]:47256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5GVF-0001ZG-5O for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 12:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5GVB-0001Xn-UB for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:20:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5GV8-0005U4-P4 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:20:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5GV8-0005U0-LW for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5GV8-00004r-3Z for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 12:20: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 17:20:01 +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.144933599432742 (code B ref 22096); Sat, 05 Dec 2015 17:20:01 +0000 Original-Received: (at 22096) by debbugs.gnu.org; 5 Dec 2015 17:19:54 +0000 Original-Received: from localhost ([127.0.0.1]:40039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5GUz-0008W2-Jr for submit@debbugs.gnu.org; Sat, 05 Dec 2015 12:19:53 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44986) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5GUf-0008VP-2q for 22096@debbugs.gnu.org; Sat, 05 Dec 2015 12:19:52 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NYW00600AGPDU00@a-mtaout22.012.net.il> for 22096@debbugs.gnu.org; Sat, 05 Dec 2015 19:18:55 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYW006LRARIDR20@a-mtaout22.012.net.il>; Sat, 05 Dec 2015 19:18:55 +0200 (IST) In-reply-to: <20151205170908.GA6375@holos> 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:109656 Archived-At: > Date: Sat, 5 Dec 2015 12:09:08 -0500 > From: Mark Oteiza > Cc: 22096@debbugs.gnu.org > > On 05/12/15 at 06:45pm, Eli Zaretskii wrote: > > > From: Mark Oteiza > > > Date: Sat, 05 Dec 2015 10:58:38 -0500 > > > > > > > Anyway, you are reading a binary byte stream from an audio daemon, so > > > > I think you cannot expect it to be displayed in any human-readable > > > > way, let alone hope that the major mode in effect in *scratch will be > > > > able to fontify it in some reasonable way. You should use > > > > insert-file-contents-literally instead, I think. (And I very much > > > > doubt that "visiting" a non-regular file makes sense, but maybe I'm > > > > missing something.) > > > > > > Right, I didn't expect VISIT=t to make sense, but the resulting breakage > > > is unexpected. > > > > Emacs tries to decode the binary stream (unless you use the -literally > > variant), and the result could look (to Emacs) like some text that > > fits some font-locking or paren-matching pattern. > > The same display oddity does still happen with > > (insert-file-contents-literally "/tmp/mpd.fifo" t 0 10 nil) > > and nothing appears to be inserted What is the value returned by the function?