/[emacs]/emacs/lisp/progmodes/sh-script.el
ViewVC logotype

Diff of /emacs/lisp/progmodes/sh-script.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.105 by rms, Sun Nov 18 06:50:58 2001 UTC revision 1.106 by rms, Wed Nov 21 11:06:40 2001 UTC
# Line 1227  frequently editing existing scripts with Line 1227  frequently editing existing scripts with
1227  (put 'sh-mode 'mode-class 'special)  (put 'sh-mode 'mode-class 'special)
1228    
1229  ;;;###autoload  ;;;###autoload
1230  (define-derived-mode sh-mode nil "Shell-script"  (defun sh-mode ()
1231    "Major mode for editing shell scripts.    "Major mode for editing shell scripts.
1232  This mode works for many shells, since they all have roughly the same syntax,  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.  as far as commands, arguments, variables, pipes, comments etc. are concerned.
# Line 1280  indicate what shell it is use `sh-alias- Line 1280  indicate what shell it is use `sh-alias-
1280    
1281  If your shell gives error messages with line numbers, you can use \\[executable-interpret]  If your shell gives error messages with line numbers, you can use \\[executable-interpret]
1282  with your script for an edit-interpret-debug cycle."  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)
1288    (make-local-variable 'skeleton-end-hook)    (make-local-variable 'skeleton-end-hook)
1289    (make-local-variable 'paragraph-start)    (make-local-variable 'paragraph-start)
1290    (make-local-variable 'paragraph-separate)    (make-local-variable 'paragraph-separate)

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.106

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26