Commit graph

36 commits

Author SHA1 Message Date
Richard M. Stallman
c898fb2821 (sh-while-getopts): Punctuate help message better. 1996-04-15 21:17:59 +00:00
Richard M. Stallman
a124b2795d (sh-alias-alist): Recognize lignux. 1996-03-27 02:39:09 +00:00
Richard M. Stallman
8d31ff153a (sh-shell-arg): Add no options for bash, ksh, or wksh. 1996-03-27 00:09:54 +00:00
Richard M. Stallman
8e46e26749 (sh-shell-arg): Don't add any options for bash, ksh. 1996-03-25 01:42:05 +00:00
Richard M. Stallman
b48a16d28d (sh-font-lock-keywords): Highlight \ only with non-alphanumeric char. 1996-03-20 16:18:23 +00:00
Richard M. Stallman
5d73ac6685 (sh-shell-variables-initialized): New variable.
(sh-mode): Make sh-shell-variables and
sh-shell-variables-initialized local.
(sh-set-shell): Don't scan the buffer for variable assignments.
Set sh-shell-variables-initialized to nil.
(sh-shell-initialize-variables): New function.
(sh-add-completer): New function.  Initialize sh-shell-variables
here if not yet done.
(sh-add): Use sh-add-completer for completion.
1996-01-29 23:11:40 +00:00
Erik Naggum
fc8318f6c8 (sh-mode): Add autoload cookie. 1996-01-19 00:10:34 +00:00
Richard M. Stallman
b46c06dea5 (sh-indent-line): Cope if no previous noncomment line. 1996-01-17 22:41:21 +00:00
Richard M. Stallman
5a989d6ec0 (sh-shell-variables): New variable.
(sh-set-shell, sh-remember-variable):
Set sh-shell-variable, not process-environment.
(sh-mode): Don't make process-environment local.
Add a mode-class property.
(sh-add): Use sh-shell-variable in completion.
Compute alist properly from process-environment.
1996-01-17 00:19:44 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
616db04b18 (sh-mode): Don't move point.
(sh-set-shell): New args NO-QUERY-FLAG and INSERT-FLAG.
Pass them to executable-set-magic.
Really set font-lock-syntax-table.  Slight cleanups.
1996-01-11 17:11:39 +00:00
Karl Heuer
aafd074a3e (sh-alias-alist): Don't map sh to bash.
(sh-canonicalize-shell): New function.
(sh-shell-file): Renamed from sh-shell-path.
(sh-set-shell): Don't set local-abbrev-table.
(sh-abbrevs): Variable and function definition commented out.
1996-01-09 23:19:53 +00:00
Richard M. Stallman
6cfd21c904 (interpreter-mode-alist, auto-mode-alist): Don't alter this here. 1996-01-05 02:36:06 +00:00
Karl Heuer
f29601ad4d (sh-mode-syntax-table): Doc fix. 1996-01-04 23:48:07 +00:00
Karl Heuer
f7c7053ea6 Provide sh-script. 1995-12-13 01:37:58 +00:00
Karl Heuer
bfc8e97b47 (sh-mode-map): Make the code more legible.
(sh-font-lock-keywords-1): Allow keyword `in' at eol too.
(sh-font-lock-keywords-only): New variable to prevent an apostrophe
in comment from misfontifying buffer, but to allow users who don't
have such to get strings fontified.
(sh-mode): Use it.
1995-12-13 01:22:05 +00:00
Erik Naggum
2cefc54e03 (sh-mode): Remove ! in column 1. 1995-11-11 14:35:47 +00:00
Richard M. Stallman
a91f616d88 (sh-mode): as above. Use page-delimiter rather than literal "^L". 1995-11-11 05:31:11 +00:00
Richard M. Stallman
fd4ea9a214 (sh-mode-map): Put sh-execute-region on C-M-x.
Put executable-interpret on C-c C-x.
1995-11-10 17:06:28 +00:00
Karl Heuer
84bfbb448d (sh-shells): Eliminated variable redundant with
`interpreter-mode-alist'.
(sh-beginning-of-command): Take into account \quoted newline.
(sh-builtins, sh-leading-keywords, sh-other-keywords): Now three
distinct sets for font-locking.
(sh-font-lock-keywords-1, sh-font-lock-keywords-2): New variables
and functions to give the user finer control over how much to fontify,
including new distinction between keywords and builtins.
(sh-mode): Use new features of `font-lock-defaults' and adaptation
to skeleton changes.
(sh-while): Fix csh, es & rc skeletons.
1995-11-03 03:29:46 +00:00
Karl Heuer
7874dacdaa (sh-remember-variable): Set variable to empty string,
so as not to mess up subprocesses' environment.  Not so nice for
completion.
1995-11-03 03:16:36 +00:00
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