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: Fri, 2 Oct 2009 16:01:31 +0200 (CEST) Message-ID: <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 1254620434 31852 80.91.229.12 (4 Oct 2009 01:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2009 01:40:34 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 04 03:40:27 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 1MuG5K-0005mi-DK for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Oct 2009 03:40:26 +0200 Original-Received: from localhost ([127.0.0.1]:33902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuG5J-00057W-Jm for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2009 21:40:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mtj6J-00005B-R3 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:27:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mtj6F-0008PX-9J for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:27:15 -0400 Original-Received: from [199.232.76.173] (port=59944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtj6F-0008PA-5C for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:27:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34241) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mtj6E-0006Tk-Cq for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2009 10:27:10 -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 n92ER7mk000888; Fri, 2 Oct 2009 07:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n92EA7Zx030647; Fri, 2 Oct 2009 07:10:07 -0700 Resent-Date: Fri, 2 Oct 2009 07:10:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Rost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 02 Oct 2009 14:10:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4616 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125449210028851 (code B ref -1); Fri, 02 Oct 2009 14:10:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Oct 2009 14:01:40 +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 n92E1bgV028846 for ; Fri, 2 Oct 2009 07:01:40 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:37571 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MtihV-00077O-7Q for emacs-pretest-bug@gnu.org; Fri, 02 Oct 2009 10:01:37 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MtihS-0002bT-Nr for emacs-pretest-bug@gnu.org; Fri, 02 Oct 2009 10:01:36 -0400 Original-Received: from mail1.math.uni-bielefeld.de ([129.70.14.32]:57792) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtihS-0002bB-DJ for emacs-pretest-bug@gnu.org; Fri, 02 Oct 2009 10:01:34 -0400 Original-Received: from xen12.math.uni-bielefeld.de (xen12.math.uni-bielefeld.de [129.70.14.133]) by mail1.math.uni-bielefeld.de (Postfix) with ESMTP id 46D0895A95; Fri, 2 Oct 2009 16:01:31 +0200 (CEST) Original-Received: by xen12.math.uni-bielefeld.de (Postfix, from userid 3710) id 2998D2865C20; Fri, 2 Oct 2009 16:01:31 +0200 (CEST) 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: Fri, 02 Oct 2009 10:27:15 -0400 X-Mailman-Approved-At: Sat, 03 Oct 2009 21:40:20 -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:31662 gmane.emacs.pretest.bugs:25091 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Execute an Emacs script file with no actual lisp code in it, like this: ===File ~/x.el============================================== #!/home/rost/build/cvs/emacs/src/emacs --script ============================================================ One gets an error: End of file during parsing: /home/rost/x.el Same problem if the file has some additional ";"-commented lines in it. No problem if there is a single not commented lisp expression in it, like "()". This patch fixes the problem for me: *** lread.c 02 Oct 2009 14:05:54 +0200 1.414 --- lread.c 02 Oct 2009 14:11:36 +0200 *************** *** 2613,2619 **** Skip the first line. */ while (c != '\n' && c >= 0) c = READCHAR; ! goto retry; } if (c == '$') return Vload_file_name; --- 2613,2619 ---- Skip the first line. */ while (c != '\n' && c >= 0) c = READCHAR; ! return Qnil; } if (c == '$') return Vload_file_name; If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/rost/build/cvs/emacs/etc/DEBUG for instructions. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-10-02 on laptop Windowing system distributor `The X.Org Foundation', version 11.0.10600000 configured using `configure '--prefix=/home/rost/local/cvs'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p SPC o r SPC e m SPC SPC SPC Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found.