From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#15180: Using princ without ending newline Date: Thu, 12 Sep 2013 12:02:41 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378980195 31193 80.91.229.3 (12 Sep 2013 10:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2013 10:03:15 +0000 (UTC) Cc: 15180@debbugs.gnu.org To: Johan Andersson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 12 12:03:17 2013 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 1VK3k4-0008By-QN for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 12:03:16 +0200 Original-Received: from localhost ([::1]:40760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK3k4-0007di-Ay for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 06:03:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK3jw-0007cj-Ks for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 06:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VK3jq-0001gr-Mf for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 06:03:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK3jq-0001gn-Jr for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 06:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VK3jq-0000aK-83 for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 06:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Sep 2013 10:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15180 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15180-submit@debbugs.gnu.org id=B15180.13789801652224 (code B ref 15180); Thu, 12 Sep 2013 10:03:02 +0000 Original-Received: (at 15180) by debbugs.gnu.org; 12 Sep 2013 10:02:45 +0000 Original-Received: from localhost ([127.0.0.1]:58052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VK3jZ-0000Zo-B2 for submit@debbugs.gnu.org; Thu, 12 Sep 2013 06:02:45 -0400 Original-Received: from cantor2.suse.de ([195.135.220.15]:54305 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VK3jW-0000Zd-LL for 15180@debbugs.gnu.org; Thu, 12 Sep 2013 06:02:43 -0400 Original-Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DD493A5211; Thu, 12 Sep 2013 12:02:41 +0200 (CEST) X-Yow: I just got my PRINCE bumper sticker.. But now I can't remember WHO he is... In-Reply-To: (Johan Andersson's message of "Thu, 12 Sep 2013 11:40:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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: 140.186.70.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:78277 Archived-At: Johan Andersson writes: > Create a file called *princ.el* with this content: > > (princ "foo\n") > (princ "bar") > (princ "baz") > (sleep-for 3) > > Run command: emacs -Q --script princ.el > > I expect this to be printed *directly*: > foo > barbaz > > But what happens is that "foo" is printed directly and then after three > seconds "barbaz" is printed. This is not a bug. Non-interactive output is subject to the usual stdio buffering. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."