From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Rost Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4616: 23.1.50; empty script files Date: Tue, 6 Oct 2009 17:19:48 +0200 (CEST) Message-ID: <20091006151948.EB62AEFE6F@sonic02.math.uni-bielefeld.de> References: <20091002140131.2998D2865C20@xen12.math.uni-bielefeld.de> Reply-To: Markus Rost , 4616@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1254842865 23075 80.91.229.12 (6 Oct 2009 15:27:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2009 15:27:45 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 4616@emacsbugs.donarmstrong.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 17:27:36 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvBws-00050o-C4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2009 17:27:34 +0200 Original-Received: from localhost ([127.0.0.1]:37060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvBws-00049W-6I for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2009 11:27:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvBwl-00046j-MY for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2009 11:27:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvBwe-0003rV-00 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2009 11:27:24 -0400 Original-Received: from [199.232.76.173] (port=45247 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvBwa-0003pq-VE for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2009 11:27:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40728) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvBwZ-0004xF-Vs for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2009 11:27:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n96FR8Cg019519; Tue, 6 Oct 2009 08:27:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n96FP9gU019064; Tue, 6 Oct 2009 08:25:09 -0700 Resent-Date: Tue, 6 Oct 2009 08:25:09 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Rost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 06 Oct 2009 15:25:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4616 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125484239518070 (code B ref -1); Tue, 06 Oct 2009 15:25:08 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 6 Oct 2009 15:19:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n96FJstc018060 for ; Tue, 6 Oct 2009 08:19:55 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:59996) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MvBpR-0002vb-Ho for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 11:19:53 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MvBpP-0003P6-23 for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 11:19:53 -0400 Original-Received: from mail1.math.uni-bielefeld.de ([129.70.14.32]:65448) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvBpO-0003Oq-Id for emacs-pretest-bug@gnu.org; Tue, 06 Oct 2009 11:19:50 -0400 Original-Received: from sonic02.math.uni-bielefeld.de (sonic02.math.uni-bielefeld.de [129.70.14.134]) by mail1.math.uni-bielefeld.de (Postfix) with ESMTP id 2EEA7959A8; Tue, 6 Oct 2009 17:19:49 +0200 (CEST) Original-Received: by sonic02.math.uni-bielefeld.de (Postfix, from userid 3710) id EB62AEFE6F; Tue, 6 Oct 2009 17:19:48 +0200 (CEST) In-reply-to: (message from Andreas Schwab on Sun, 04 Oct 2009 10:13:03 +0200) X-GNU-Emacs-Mailer: GNU Emacs 22.3 X-Home-Page: http://www.math.uni-bielefeld.de/~rost X-detected-operating-system: by monty-python.gnu.org: FreeBSD 5.3-5.4 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 06 Oct 2009 11:27:24 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31730 gmane.emacs.pretest.bugs:25100 Archived-At: One more thing about unread_char in lread.c. That variable should start with value -1 rather than value 0. The current initial value 0 means that the character 0 is added in front of loadup.el when building emacs. Now since loadup.el isn't empty, this doesn't cause a read error, the additional character will be just skipped and the value of unread_char is set to -1 after loading loadup.el. So one doesn't notice the wrong initial value. But maybe one changes that for clarity. *** lread.c 06 Oct 2009 14:22:15 +0200 1.414 --- lread.c 06 Oct 2009 17:01:06 +0200 *************** *** 270,276 **** Qlambda, or a cons, we use this to keep an unread character because a file stream can't handle multibyte-char unreading. The value -1 means that there's no unread character. */ ! static int unread_char; static int readchar (readcharfun, multibyte) --- 270,276 ---- Qlambda, or a cons, we use this to keep an unread character because a file stream can't handle multibyte-char unreading. The value -1 means that there's no unread character. */ ! static int unread_char = -1; static int readchar (readcharfun, multibyte)