diff options
| author | Richard M. Stallman | 2001-11-21 11:06:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-21 11:06:40 +0000 |
| commit | a7dba40b015c90c12715c42ae9fea58d1ca0d085 (patch) | |
| tree | 9a96cdcb2f6bfb8f93400d5605f2000d7a3476f0 | |
| parent | 5ca809a7b69932b749919b801db80432a8eee301 (diff) | |
| download | emacs-a7dba40b015c90c12715c42ae9fea58d1ca0d085.tar.gz emacs-a7dba40b015c90c12715c42ae9fea58d1ca0d085.zip | |
(sh-mode): Don't use define-derived-mode.
| -rw-r--r-- | lisp/progmodes/sh-script.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 1ab26a0195b..6d4ece0807b 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -1227,7 +1227,7 @@ frequently editing existing scripts with different styles.") | |||
| 1227 | (put 'sh-mode 'mode-class 'special) | 1227 | (put 'sh-mode 'mode-class 'special) |
| 1228 | 1228 | ||
| 1229 | ;;;###autoload | 1229 | ;;;###autoload |
| 1230 | (define-derived-mode sh-mode nil "Shell-script" | 1230 | (defun sh-mode () |
| 1231 | "Major mode for editing shell scripts. | 1231 | "Major mode for editing shell scripts. |
| 1232 | This mode works for many shells, since they all have roughly the same syntax, | 1232 | This mode works for many shells, since they all have roughly the same syntax, |
| 1233 | as far as commands, arguments, variables, pipes, comments etc. are concerned. | 1233 | as far as commands, arguments, variables, pipes, comments etc. are concerned. |
| @@ -1280,6 +1280,11 @@ indicate what shell it is use `sh-alias-alist' to translate. | |||
| 1280 | 1280 | ||
| 1281 | If your shell gives error messages with line numbers, you can use \\[executable-interpret] | 1281 | If your shell gives error messages with line numbers, you can use \\[executable-interpret] |
| 1282 | with your script for an edit-interpret-debug cycle." | 1282 | with your script for an edit-interpret-debug cycle." |
| 1283 | (interactive) | ||
| 1284 | (kill-all-local-variables) | ||
| 1285 | (setq major-mode 'sh-mode | ||
| 1286 | mode-name "Shell-script") | ||
| 1287 | (use-local-map sh-mode-map) | ||
| 1283 | (make-local-variable 'skeleton-end-hook) | 1288 | (make-local-variable 'skeleton-end-hook) |
| 1284 | (make-local-variable 'paragraph-start) | 1289 | (make-local-variable 'paragraph-start) |
| 1285 | (make-local-variable 'paragraph-separate) | 1290 | (make-local-variable 'paragraph-separate) |