From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William B. Parsons" Newsgroups: gmane.emacs.bugs Subject: regression in Emacs 22 recognizing Tcl mode Date: Sat, 29 Mar 2008 10:46:08 -0400 (EDT) Message-ID: <20080329144608.E835A804C90@smtp.cshore.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206828510 4364 80.91.229.12 (29 Mar 2008 22:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 22:08:30 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 23:09:01 2008 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 1JfjEL-0006cg-II for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 23:08:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfjDj-0006E5-Vd for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 18:08:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfcJY-0008CL-Ej for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:45:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfcJX-0008Bu-PG for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:45:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfcJX-0008Bo-Kw for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:45:47 -0400 Original-Received: from smtp.cshore.com ([206.123.82.219]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfcJX-0007wT-BX for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 10:45:47 -0400 Original-Received: from isis.thalatta.eme (adsl25-202.cshore.com [65.113.125.202]) by smtp.cshore.com (Postfix) with ESMTP id E835A804C90 for ; Sat, 29 Mar 2008 10:46:08 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-Mailman-Approved-At: Sat, 29 Mar 2008 18:05:55 -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:17766 Archived-At: This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i386--freebsd, X toolkit, Xaw3d scroll bars) of 2006-03-16 on gohan31.freebsd.org configured using `configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --prefix=/usr/local i386--freebsd' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil 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: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: The following valid Tcl script is recognized automatically as Tcl mode under Emacs 21 but as shell mode under Emacs 22: ------ isis% cat test.tcl #!/bin/sh #\ exec tclsh "$0" ${1+"$@"} puts test ------ i.e., the shebang overrides the .tcl extension in determining programming mode.