[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el |
Date: |
Wed, 21 Nov 2001 06:06:40 -0500 |
Index: emacs/lisp/progmodes/sh-script.el
diff -u emacs/lisp/progmodes/sh-script.el:1.105
emacs/lisp/progmodes/sh-script.el:1.106
--- emacs/lisp/progmodes/sh-script.el:1.105 Sun Nov 18 01:50:58 2001
+++ emacs/lisp/progmodes/sh-script.el Wed Nov 21 06:06:40 2001
@@ -1227,7 +1227,7 @@
(put 'sh-mode 'mode-class 'special)
;;;###autoload
-(define-derived-mode sh-mode nil "Shell-script"
+(defun sh-mode ()
"Major mode for editing shell scripts.
This mode works for many shells, since they all have roughly the same syntax,
as far as commands, arguments, variables, pipes, comments etc. are concerned.
@@ -1280,6 +1280,11 @@
If your shell gives error messages with line numbers, you can use
\\[executable-interpret]
with your script for an edit-interpret-debug cycle."
+ (interactive)
+ (kill-all-local-variables)
+ (setq major-mode 'sh-mode
+ mode-name "Shell-script")
+ (use-local-map sh-mode-map)
(make-local-variable 'skeleton-end-hook)
(make-local-variable 'paragraph-start)
(make-local-variable 'paragraph-separate)