GNU bug report logs - #97
regression in Emacs 22 recognizing Tcl mode

Previous Next

Package: emacs;

Reported by: "William B. Parsons" <wbparsons <at> alum.mit.edu>

Date: Sat, 29 Mar 2008 23:00:05 UTC

Severity: normal

Merged with 3354

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 97 in the body.
You can then email your comments to 97 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#97; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "William B. Parsons" <wbparsons <at> alum.mit.edu>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "William B. Parsons" <wbparsons <at> alum.mit.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: regression in Emacs 22 recognizing Tcl mode
Date: Sat, 29 Mar 2008 10:46:08 -0400 (EDT)
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 <at> 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.







Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#97; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 97 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "William B. Parsons" <wbparsons <at> alum.mit.edu>,
        97 <at> debbugs.gnu.org
Subject: Re: regression in Emacs 22 recognizing Tcl mode
Date: Sat, 05 Apr 2008 18:03:46 -0400
  The following valid Tcl script is recognized automatically as Tcl mode
  under Emacs 21 but as shell mode under Emacs 22:

  #!/bin/sh
  exec tclsh "$0" ${1+"$@"}
  puts test

  i.e., the shebang overrides the .tcl extension in determining
  programming mode.

If the shebang specified /bin/tcl, it would be recognized as a Tcl file.
In ambiguous situations like this, it's better to use a `-*-' line or
local variables list (see the node "Choosing Modes" in the Emacs
manual).




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "William B. Parsons" <wbparsons <at> alum.mit.edu>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #15 received at 97-close <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 97-close <at> debbugs.gnu.org
Subject: Re: regression in Emacs 22 recognizing Tcl mode
Date: Mon, 07 Apr 2008 21:17:10 -0400



bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Tue, 06 May 2008 14:24:03 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 04 Jun 2009 00:35:06 GMT) Full text and rfc822 format available.

Forcibly Merged 97 3354. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 04 Jun 2009 00:35:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 02 Jul 2009 14:24:19 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.