[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

executable.el / sh-script.el problem?

From: Adam Spiers
Subject: executable.el / sh-script.el problem?
Date: Tue, 22 Jan 2002 14:07:19 GMT

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 address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2001-10-22 on juno.london.guideguide.com
configured using `configure  --prefix=/share/usr'
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: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Visiting a fresh buffer and performing M-x sh-mode does not
automatically insert the magic #! line at the top of the script-to-be,
nor does it automatically make the file executable on saving, as I was
led to expect by the documentation in executable.el.  This seems to do
the trick, although it may be a bit over-simplistic.

--- sh-script.el.orig   Tue Jan 22 13:53:47 2002
+++ sh-script.el        Tue Jan 22 13:45:23 2002
@@ -1291,7 +1291,7 @@
                 ((and buffer-file-name
                       (string-match "\\.m?spec$" buffer-file-name))
-    (sh-set-shell (or interpreter sh-shell-file) nil nil)))
+    (sh-set-shell (or interpreter sh-shell-file) nil t)))
 (defalias 'shell-script-mode 'sh-mode)

[ Lossage and recent messages not relevant ]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]