From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Rost Newsgroups: gmane.emacs.bugs Subject: bug#4616: Follow-up: handling #! Date: Sat, 3 Oct 2009 18:11:47 +0200 (CEST) Message-ID: <20091003161147.22632288A0AB@xen12.math.uni-bielefeld.de> Reply-To: Markus Rost , 4616@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1254620475 31956 80.91.229.12 (4 Oct 2009 01:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2009 01:41:15 +0000 (UTC) To: 4616@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 04 03:41:08 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 1MuG5z-00060G-72 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Oct 2009 03:41:07 +0200 Original-Received: from localhost ([127.0.0.1]:34336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MuG5x-0005ay-Rp for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Oct 2009 21:41:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mu7S0-0006EX-Fy for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 12:27:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mu7Rv-00067a-Jc for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 12:27:15 -0400 Original-Received: from [199.232.76.173] (port=50543 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mu7Ru-00066j-SK for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 12:27:11 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36070) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mu7Ru-0001kx-9M for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2009 12: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 n93GR8RK018486; Sat, 3 Oct 2009 09:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n93GK50j017267; Sat, 3 Oct 2009 09:20:05 -0700 Resent-Date: Sat, 3 Oct 2009 09:20:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Rost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 03 Oct 2009 16:20:05 +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 4616-submit@emacsbugs.donarmstrong.com id=B4616.125458631516368 (code B ref 4616); Sat, 03 Oct 2009 16:20:05 +0000 Original-Received: (at 4616) by emacsbugs.donarmstrong.com; 3 Oct 2009 16:11:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail2.math.uni-bielefeld.de (mail2.math.uni-bielefeld.de [129.70.14.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n93GBqD2016365 for <4616@emacsbugs.donarmstrong.com>; Sat, 3 Oct 2009 09:11:54 -0700 Original-Received: from xen12.math.uni-bielefeld.de (xen12.math.uni-bielefeld.de [129.70.14.133]) by mail2.math.uni-bielefeld.de (Postfix) with ESMTP id 2920173020; Sat, 3 Oct 2009 18:11:47 +0200 (CEST) Original-Received: by xen12.math.uni-bielefeld.de (Postfix, from userid 3710) id 22632288A0AB; Sat, 3 Oct 2009 18:11:47 +0200 (CEST) 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: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 03 Oct 2009 12: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:31665 Archived-At: It appears that read1 in lread.c handles "#!" like a comment line starting with ";". Well, except if the "#!"-line is at the *end* of the buffer, then eval-buffer or eval-region will yield an "End of file during parsing" error, similarly as reported in the previous mail. Besides this bug, is it intended to have "#!" as additional comment syntax? I would expect a special handling of "#!" only with --script (cf. -scriptload in startup.el) and only if it appears at the beginning of a file. Normally eval-region should not handle "#!" specially, I guess.