Glenn Morris
450a39ffe2
(sh-builtins) <bash>: Add `caller'.
...
(sh-escaped-newline): New face.
(sh-font-lock-keywords) <shell>: Improve regexp for escaped
newline, and use sh-escaped-newline face.
2005-04-05 13:07:42 +00:00
Werner LEMBERG
eac9c0efd6
* progmodes/ebnf-abn.el, progmodes/ebnf-bnf.el,
...
progmodes/ebnf-ebx.el, progmodes/ebnf-dtd.el, progmodes/ebnf-iso.el,
progmodes/ebnf-yac.el, progmodes/ebnf2ps.el, progmodes/idlwave.el,
progmodes/sh-script.el, progmodes/xscheme.el: Replace `illegal' with
`invalid'.
2005-03-25 08:47:00 +00:00
Stefan Monnier
67b9b71fc8
(sh-here-doc-open-re): Don't allow `|' or other
...
funny chars in the end-of-here-doc marker.
2005-01-18 18:21:58 +00:00
Richard M. Stallman
bdd5fa9932
(sh-mode-map): Bind C-c C-\.
...
(sh-backslash-column, sh-backslash-align): New variables.
(sh-backslash-region, sh-append-backslash): New functions.
2005-01-15 18:07:21 +00:00
Richard M. Stallman
61871c70f8
(sh-require-final-newline):
...
Alist value now controls whether to use mode-require-final-newline.
(sh-set-shell): Implement that new meaning.
2004-12-31 14:57:21 +00:00
Richard M. Stallman
bae7df154a
(sh-indent-for-then): Change default.
2004-12-05 14:19:38 +00:00
Richard M. Stallman
56858354ce
(sh-mode-default-syntax-table): Set syntax of = to "." (punctuation).
2004-09-20 15:46:23 +00:00
Richard M. Stallman
8a0d0722d8
(sh-set-shell): Use sh-mode-abbrev-table.
...
(sh-mode-abbrev-table): New variable.
2004-08-16 22:45:52 +00:00
Andreas Schwab
14116f3caf
(sh-leading-keywords) <sh>: Add "!".
2004-04-24 20:58:17 +00:00
Stefan Monnier
2822660749
(sh-font-lock-paren): Add @ in case patterns.
2004-03-04 23:27:00 +00:00
Eli Zaretskii
5d18b95355
(sh-shell-arg, sh-require-final-newline, sh-assignment-regexp, sh-builtins)
...
(sh-leading-keywords, sh-other-keywords): Fix custom type.
2004-02-27 17:22:27 +00:00
Richard M. Stallman
a3ae17d490
(sh-get-indent-info):
...
Don't move point back if at bob.
2003-12-29 20:03:46 +00:00
Richard M. Stallman
720baa4669
(sh-feature): Handle sh-modify like sh-append.
...
(sh-for, sh-indexed-loop, sh-function, sh-while, sh-while-getopts):
Use sh-modify directly.
(sh-select): Use sh-append, not eval.
2003-10-05 13:53:54 +00:00
Richard M. Stallman
830144d596
(sh-mode-syntax-table): Add defvar.
2003-09-30 12:42:56 +00:00
Glenn Morris
b8acc4ed4f
(sh-builtins): Add bash `shopt' builtin.
...
(sh-font-lock-keywords, sh-feature): Fix previous change of sh-feature
to avoid infloop with sh-font-lock-keywords.
2003-09-25 02:01:18 +00:00
Richard M. Stallman
1bf87f6ba3
(sh-mode-default-syntax-table): Renamed from sh-mode-syntax-table.
...
Call sh-mode-syntax-table directly.
(sh-mode-syntax-table-input): New variable.
(sh-require-final-newline): Don't use eval.
(sh-builtins, sh-leading-keywords, sh-other-keywords)
(sh-variables, sh-font-lock-keywords): Don't use eval.
(sh-set-shell): When setting require-final-newline,
treat value = `require-final-newline' as don't change it.
Set sh-mode-syntax-table locally based on
sh-mode-syntax-table-input and sh-mode-default-syntax-table.
2003-09-22 15:39:47 +00:00
Glenn Morris
1fd244505e
(sh-font-lock-keywords): Highlight escaped EOLs differently from other
...
backslash constructs.
2003-09-19 17:10:57 +00:00
Glenn Morris
3154202d02
(sh-font-lock-keywords): Use something other than
...
font-lock-string-face to highlight backslashes.
2003-09-02 17:37:01 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Glenn Morris
fa1d74c5d1
(sh-builtins): Add some bash builtins.
...
(sh-leading-keywords): Add the bash `time' reserved word.
(sh-variables): Add some bash variables.
(sh-add-completer): Fix nil branch of case statement.
2003-08-24 15:26:13 +00:00
Andreas Schwab
cbc72cf5cf
(sh-mode): Don't set mode-class property.
2003-08-02 20:09:42 +00:00
Andreas Schwab
29653ebc24
(sh-mode-syntax-table): Change syntax of ?, to "_".
2003-07-21 06:25:33 +00:00
Stefan Monnier
d96da6c47a
(sh-font-lock-paren): Add [ and ] to the
...
set of chars allowed unquoted in a case pattern.
2003-07-04 20:37:49 +00:00
Juanma Barranquero
8f0b0ca5f5
(sh-while-getopts, sh-if, sh-case): Revert part of previous change.
2003-06-16 21:41:18 +00:00
Juanma Barranquero
bc38726909
Fix bug in "Options Loop" skeleton for ksh. Add newlines to a few skeletons,
...
add "select" keyword for bash.
2003-06-06 15:06:53 +00:00
Stefan Monnier
485219e0a2
(sh-is-quoted-p): New fun.
...
(sh-font-lock-paren): Use it to allow \C in case patterns.
(sh-get-indent-info): Check the \n before the line for string-status.
(sh-feature): Remove unused var `function'.
(sh-get-indent-info): Remove unused variables.
(sh-prev-thing): Remove unused vars `going', `n', and `found'.
(sh-set-indent): Remove unused var `new-val' and `val0'.
(sh-learn-buffer-indent): Remove unused vars `last-pos' and `lines'.
(sh-guess-basic-offset): Remove unused var `return' and `j'.
2003-06-01 17:36:41 +00:00
Glenn Morris
18368c4a7a
(sh-here-document-word): Document new treatment of leading "-".
...
(sh-maybe-here-document): Strip a leading "-" from closing heredoc
delimiter, if present.
2003-05-27 18:40:55 +00:00
Andreas Schwab
817949efd8
(sh-mode-map): Don't remap
...
beginning-of-defun to the non-existing command
sh-beginning-of-compound-command.
2003-02-12 10:21:06 +00:00
Stefan Monnier
017708e9dd
(sh-indent-line): Use indent-line-to.
...
(sh-non-closing-paren): New const.
(sh-case, sh-while-getopts): Use it to make props non-sticky.
(sh-add-completer): Use test-completion.
2003-01-18 20:42:47 +00:00
Andreas Schwab
5d1825c6fb
(sh-mode-map): Use command remapping instead of
...
substitute-key-definition.
2003-01-12 20:51:12 +00:00
Juanma Barranquero
54aaebc516
(sh-set-shell): Make sh-shell-file the default shell.
2003-01-10 08:07:26 +00:00
Andreas Schwab
6f37d17b45
(sh-mode-syntax-table): Don't make ^L
...
end-of-comment syntax.
2002-10-27 23:01:57 +00:00
Juanma Barranquero
b554bbff24
(sh-indent-for-then): Fix typo.
2002-10-18 08:18:29 +00:00
Markus Rost
3ee5ce58f6
(sh-alias-alist): Use append instead of nconc.
2002-10-02 16:31:16 +00:00
Juanma Barranquero
348e141150
(sh-mark-init): Don't set `occur-buffer'.
...
(sh-mark-line): Likewise. Use 'occur-target and 'occur-match instead of 'occur
and 'occur-point.
2002-09-24 10:18:05 +00:00
Juanma Barranquero
4a9592f6f9
(sh-indent-for-fi, sh-indent-for-done): Fix spacing.
2002-09-06 07:17:05 +00:00
Juanma Barranquero
35cb44585e
(sh-electric-rparen-needed): Remove.
2002-06-18 14:37:12 +00:00
Richard M. Stallman
57270c909c
(sh-set-shell): Doc fix.
2002-01-22 21:05:13 +00:00
Richard M. Stallman
1fd714a410
(various face definitions): Use :weight, not :bold.
2001-12-31 20:44:44 +00:00
Richard M. Stallman
1c532f0d1c
(sh-mode): Run sh-mode-hook.
2001-12-16 17:27:44 +00:00
Richard M. Stallman
b1e851bb95
(sh-mode-syntax-table): Function restored.
...
Variable set up for use by function sh-mode-syntax-table.
(sh-set-shell): Set the syntax table.
2001-11-21 11:12:45 +00:00
Richard M. Stallman
a7dba40b01
(sh-mode): Don't use define-derived-mode.
2001-11-21 11:06:40 +00:00
Richard M. Stallman
a25b40093a
(sh-must-be-shell-mode): Function deleted. All calls deleted.
2001-11-18 06:50:58 +00:00
Richard M. Stallman
4aa3ba0a81
(sh-must-be-shell-mode): Allow modes derived from sh-mode.
2001-11-11 20:07:46 +00:00
Sam Steingold
b52b132fbf
sugar: escape a "{" in the first column to pacify font-lock
2001-10-26 15:37:54 +00:00
Sam Steingold
187cd25bb0
(sh-font-lock-close-heredoc): check the args for being non-nil
2001-10-26 13:54:45 +00:00
Sam Steingold
035107fa9c
no functional changes - a preparation for the next patch
2001-10-26 13:48:53 +00:00
Stefan Monnier
3e2dd647b7
(sh-font-lock-syntactic-keywords): Handle here-docs differently.
...
(sh-font-lock-heredoc): Remove.
(sh-here-doc-open-re, sh-here-doc-markers, sh-here-doc-re): New vars.
(sh-font-lock-here-doc, sh-font-lock-close-heredoc)
(sh-font-lock-open-heredoc): New functions.
(sh-mode): Don't copy sh-font-lock-syntactic-keywords any more.
(sh-font-lock-keywords-1): Use regexp-opt.
(sh-in-comment-or-string): Use syntax-ppss.
(sh-case, sh-for, sh-indexed-loop, sh-function, sh-if, sh-repeat)
(sh-select, sh-tmp-file): Add explicit terminating \n.
2001-10-13 19:08:30 +00:00
Eli Zaretskii
06d7490042
(sh-mark-line): Add help-echo to mouse-highlighted text.
2001-06-17 11:22:35 +00:00
Stefan Monnier
b36581fba0
(sh-prev-line): Look for sh-heredoc-face
...
rather than font-lock-string-face.
(sh-get-indent-info): Treat heredocs like strings.
2001-05-02 13:41:46 +00:00