tclsh in interpreter-mode-alist
Stephen J. Turnbull
stephen at xemacs.org
Tue May 11 22:27:43 EDT 2010
jeff-xemacs at delphioutpost.com writes:
>
> interpreter-mode-alist contains the following:
>
> (...
> ("^#!.*sh\\b" . ksh-mode)
> ...
> ("^#!.*\\b\\(scope\\|wish\\|tcl\\|tclsh\\|expect\\)" . tcl-mode)
> ...)
>
>
> executable files containing '#!/usr/bin/tclsh' have the misfortune of
> being put into ksh-mode because tclsh ends with 'sh' and matching "^#!.*sh\\b"
> The same problem also occurs with 'wish'.
>
> The simplest fix is to change the autoload cookie in sh-script.el to append
I think it's preferable to put the more specific matcher before the
more general one. Why not?
More information about the XEmacs-Beta
mailing list