Commit graph

165 commits

Author SHA1 Message Date
Karl Heuer
cd76025c78 (sh-newline-and-indent): Don't interpret prefix arg
since `newline-and-indent' doesn't either.  Don't turn a trailing
quoted tab into a space.
(sh-mode): Use new `skeleton-newline-indent-rigidly'.
(sh-set-shell): Make maximum font-locking also hightlight keywords
after ``' and `!'.  (The latter is for ksh '93 but should't hurt other
shells.)
1995-08-19 00:30:56 +00:00
Karl Heuer
81ed2d75e9 (sh-mode-map): Use new name skeleton-pair-insert-maybe.
(sh-mode): Use new names skeleton-pair-alist, skeleton-pair-filter.
1995-08-15 20:05:12 +00:00
Karl Heuer
225f6185df (sh-test): New variable.
(sh-if, sh-until, sh-while): Use it.
(sh-while-getopts): Handle csh passably well.
(sh-font-lock-keywords): Use `font-lock-variable-name-face'.
(sh-set-shell): Respect `font-lock-maximum-decoration'.
1995-08-15 19:50:12 +00:00
Richard M. Stallman
4a789a5143 (interpreter-mode-alist): Delete autoload cookie. 1995-08-09 22:42:34 +00:00
Karl Heuer
133693bc90 restructured, largely rewritten without the bugs and
extended to cover over 15 shells.  Most variables can now work as a
lookup table, and, unless set by user, do.
(sh-mode-syntax-table): Possibly multiple tables.
(sh-shell): Set initially so shell or other libraries may use features.
(sh-assignment-regexp): Replaces `sh-assignment-space'.
(sh-here-document-word): Set to more common "EOF".
(sh-variables): Changed semantics.
(sh-font-lock-keywords): Much nicer.
(sh-ancestor-alist, sh-alias-alist, sh-shells, sh-abbrevs)
(sh-dynamic-complete-functions, sh-require-final-newline)
(sh-comment-prefix, sh-indentation, sh-header-marker, sh-builtins)
(sh-leading-keywords): New variables.
(sh-use-prefix, sh-find-file-modifies, sh-query-for-magic)
(sh-magicless-file-regexp, magic-number-alist, sh-executable)
(sh-chmod-argument, sh-shell-is-csh, sh-tab-width)
(sh-sh-font-lock-keywords, sh-ksh-font-lock-keywords)
(sh-bash-font-lock-keywords, sh-csh-font-lock-keywords)
(sh-tcsh-font-lock-keywords): Variables deleted, see also executable.el.

(sh-mode): Shell dependent code moved to `sh-set-shell'.
(sh-feature, sh-abbrevs, sh-syntax-table, sh-append, sh-modify): New
functions.
(sh-execute-region): New command.
(sh-indexed-loop): Far more efficient code generated for sh.
(sh-repeat, sh-tmp-file, sh-while-getopts): New skeletons.
(sh-or-other-mode, define-sh-skeleton, sh-executable, sh-chmod)
(sh-query-for-variable): Command deleted.
1995-07-07 19:48:24 +00:00
Karl Heuer
11b137a743 (sh-mode-map): Fix capitalization in menu bar. 1995-05-30 23:06:00 +00:00
Simon Marshall
c4ca8d660f Removed setting of font-lock-keywords inadvertently left after last patch. 1994-10-12 16:03:28 +00:00
Simon Marshall
0ffb818c8f * sh-script.el: (sh-set-shell): Set font-lock-defaults. 1994-10-12 09:15:14 +00:00
Richard M. Stallman
36668a5dff (sh-font-lock-keywords): Default to nil. 1994-10-07 09:49:47 +00:00
Richard M. Stallman
ebbc29c72f (auto-mode-alist): Use \' in auto-mode-alist regexps. 1994-09-24 04:13:41 +00:00
Karl Heuer
1bebba148e (auto-mode-alist): Fix typos in comments. 1994-08-03 02:17:57 +00:00
Richard M. Stallman
e932f2d21a "Comment out" autoload cookies. 1994-07-15 22:10:07 +00:00
Richard M. Stallman
a6e68e6c2c (sh-chmod-argument): Change default. 1994-07-02 16:55:54 +00:00
Richard M. Stallman
07ac942ac6 (sh-set-shell): Obey sh-query-for-magic in all cases.
(sh-mode): Don't move point permanently.
1994-07-01 16:28:00 +00:00
Richard M. Stallman
ac59aed83f entered into RCS 1994-03-22 05:43:25 +00:00