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.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "William B. Parsons" <wbparsons <at> alum.mit.edu>,
        97 <at> debbugs.gnu.org
Subject: bug#97: 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).




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

Previous Next


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