Andreas Schwab
67f2eaf15f
(sh-font-lock-syntactic-keywords): Fix
...
comment typo.
2007-12-17 20:32:48 +00:00
Stefan Monnier
b6ddf8d773
(sh-mode): Set defun-prompt-regexp.
2007-11-21 20:23:26 +00:00
Juanma Barranquero
f24a26a546
(sh-make-vars-local, sh-reset-indent-vars-to-global-values):
...
Use `mapc' rather than `mapcar'.
2007-09-26 00:27:18 +00:00
Stefan Monnier
7d86c3808d
Typo.
2007-09-21 07:28:16 +00:00
Richard M. Stallman
0e898f3d95
(sh): Delete group `unix'.
2007-08-12 17:55:05 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
1a484753b2
Switch license to GPLv3 or later.
2007-07-25 04:29:40 +00:00
Stefan Monnier
bdef712c49
(sh-font-lock-backslash-quote, sh-font-lock-flush-syntax-ppss-cache): New funs.
...
(sh-font-lock-syntactic-keywords): Use them to distinguish the
different possible cases for \'.
(sh-font-lock-paren): Mark the relevant text with font-lock-multiline.
2007-07-23 13:07:29 +00:00
Stefan Monnier
e58914d089
(sh-font-lock-quoted-subshell): Skip over the
...
whole $( rather than just the $. Rename from sh-quoted-subshell.
(sh-font-lock-syntactic-keywords): Adjust call accordingly.
2007-07-16 16:01:04 +00:00
Stefan Monnier
74ab576e42
(sh-font-lock-paren): Mark the relevant text with font-lock-multiline.
2007-06-18 20:10:06 +00:00
Stefan Monnier
4f3a33689b
Remove unneeded * from docstrings. Use [:alpha:] & [:alnum:] where applicable.
...
(sh-quoted-subshell): Rewrite to handle nested mixes of `...` and $(...).
(sh-apply-quoted-subshell): Remove.
(sh-font-lock-syntactic-keywords): Adjust call to sh-quoted-subshell.
2007-06-13 18:25:46 +00:00
Stefan Monnier
935e6b7982
(sh-font-lock-backslash-quote, sh-font-lock-flush-syntax-ppss-cache): New funs.
...
(sh-font-lock-syntactic-keywords): Use them to distinguish the
different possible cases for \'.
2007-06-11 22:16:43 +00:00
Richard M. Stallman
68c2f86d7c
(sh-mode): Recognize .profile as sh style.
2007-04-28 17:46:09 +00:00
Richard M. Stallman
534ea50c22
(sh-mode): Recognize .profile as sh style.
2007-04-28 15:37:58 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Eli Zaretskii
3307f085f1
(sh-make-vars-local): Fix a typo in message string.
2006-12-22 23:20:24 +00:00
Glenn Morris
b6c2d8c609
Update copyright years.
2006-12-10 01:48:52 +00:00
Stefan Monnier
0f9c4a9694
(sh-get-kw): | is not among the allowed chars for a keyword.
2006-10-10 21:09:37 +00:00
Stefan Monnier
7629d4170a
(sh-prev-thing): Remove (forward-char 1) now
...
that it's been made unnecessary by removing narrowing.
2006-10-04 04:13:09 +00:00
Stefan Monnier
49c7a608f9
(sh-prev-thing): Massage to untangle the
...
control flow a bit, simplify another bit, and add comments.
2006-10-03 20:44:26 +00:00
Eli Zaretskii
8c86938ff0
(sh-prev-thing): Fix last change.
2006-10-02 08:51:40 +00:00
Eli Zaretskii
57763824f8
(sh-prev-thing): Take `sh-leading-keywords' into account.
2006-09-30 09:39:35 +00:00
Stefan Monnier
4c7c5c7e48
(sh-quoted-subshell): Make sure we don't mistake a closing " for an opening one.
2006-08-08 15:09:26 +00:00
Stefan Monnier
3a723c3afa
(sh-quoted-subshell): Further fix last change.
2006-07-20 21:23:48 +00:00
Stefan Monnier
a97a33cb2a
(sh-quoted-subshell): Fix last change.
2006-07-19 04:31:41 +00:00
Stefan Monnier
c6b7104550
(sh-font-lock-keywords-1): Revert inadvertently installed patch hunk.
2006-07-18 21:03:59 +00:00
Stefan Monnier
69c6ad8391
(sh-quoted-subshell): Don't match escaped . Use
cond', push', and `dolist'.
2006-07-17 21:07:23 +00:00
Eli Zaretskii
6d39902f35
(sh-quoted-exec): New face for quoted exec constructs like foo bar
.
...
(sh-quoted-subshell): New helper function to search for a possibly nested
subshell (like `` or $()) within a "" quoted string.
(sh-font-lock-keywords-var): Add sh-quoted-exec for Bash.
(sh-apply-quoted-subshell): Flag quote characters inside a subshell, which is
itself already in a quoted region, as punctuation, since this is the closest
to what they actually are.
(sh-font-lock-syntactic-keywords): Add sh-quoted-subshell and
sh-apply-quoted-subshell.
(sh-font-lock-syntactic-face-function): Apply the new face for text inside ``
instead of the old font-lock-string-face.
2006-06-03 08:38:43 +00:00
Roland Winkler
21225d8f7e
(sh-mode): Use skeleton-pair-filter-function.
2006-05-21 23:18:19 +00:00
Roland Winkler
62fda6d68a
(sh-mode): Use skeleton-filter-function.
2006-05-21 23:10:13 +00:00
Dan Nicolaescu
7fe9a6e3c1
(sh-shell): Mark as safe.
2006-04-20 23:35:08 +00:00
Thien-Thi Nguyen
19cd88cc93
(sh-mode): Fix bug: Arrange to use
...
the default shell if filename is not available.
2006-02-25 11:25:25 +00:00
Richard M. Stallman
f623a9d2e6
(sh-mode): Set shell type based on file name if no other specific basis.
2006-02-21 19:55:46 +00:00
Nick Roberts
d91362c9e0
Update copyright for 2006.
2006-02-10 09:00:31 +00:00
Chong Yidong
917e8d0ba2
* progmodes/sh-script.el (sh-mode): Add keymap to docstring.
2005-12-18 01:18:45 +00:00
Stefan Monnier
ec121b9632
(sh-font-lock-syntactic-keywords): \ doesn't escape single quotes.
2005-11-27 20:44:44 +00:00
Stefan Monnier
bd24684be0
(sh-font-lock-paren): Handle continued lines in patterns.
2005-11-21 22:24:13 +00:00
Juri Linkov
8ec3bce045
Add :link (custom-group-link font-lock-faces) to defgroup.
2005-11-17 07:40:11 +00:00
Stefan Monnier
1712cca561
(sh-font-lock-syntactic-keywords): Make $@ and $? into sexps.
2005-10-21 06:32:05 +00:00
Stefan Monnier
9d37a5c0f5
(sh-escaped-line-re): New var.
...
(sh-here-doc-open-re, sh-font-lock-close-heredoc): Use it.
(sh-font-lock-open-heredoc): Try to properly handle heredoc starters
whose line is either continued or ends with a comment.
2005-10-20 19:43:44 +00:00
Richard M. Stallman
decb2a9e5b
(sh-tmp-file): Use mktemp -t. Finish support for es and rc shells.
2005-10-11 22:06:53 +00:00
Richard M. Stallman
17a3b6da97
(sh-tmp-file): Use mktemp.
2005-10-10 21:24:29 +00:00
Juanma Barranquero
7fa1a8f9db
(sh-blink): Fix spurious reference to variable `message'.
2005-09-19 09:17:14 +00:00
Deepak Goel
29a4e67d88
Message format fixes, commit no. 3
2005-09-18 12:31:28 +00:00
Richard M. Stallman
0404a075c0
(sh-skeleton-pair-default-alist): New var.
...
(sh-mode): Locally set skeleton-pair-default-alist.
2005-09-09 01:26:00 +00:00
Juanma Barranquero
482db54b59
(font-lock-comment-face, font-lock-set-defaults, font-lock-string-face):
...
Add defvars.
2005-08-30 11:14:04 +00:00
Richard M. Stallman
5789bd837d
(sh-font-lock-keywords-var): Variable renamed from sh-font-lock-keywords.
...
In the `shell' entry, don't try to refer to executable-font-lock-keywords.
(sh-font-lock-keywords-var-1): Renamed from sh-font-lock-keywords-1.
(sh-font-lock-keywords-var-2): Renamed from sh-font-lock-keywords-2.
(sh-font-lock-keywords): Append executable-font-lock-keywords here.
(sh-mode): Set comment-start-skip, local-abbrev-table, imenu-case-fold-search.
(sh-set-shell): Don't set them here.
(sh-feature): Simplify. Get rid of the eval-a-variable feature.
Don't cache the results in the original alist; don't ever modify that alist.
2005-08-15 02:01:38 +00:00
Stefan Monnier
090475f391
(sh-get-indent-info): Only indent a continuation line if SPC or TAB precedes \.
...
(sh-get-indent-info): Simplify.
(sh-mark-init, sh-learn-buffer-indent, sh-add-completer): with-current-buffer.
2005-07-13 04:55:42 +00:00
Lute Kamstra
3a35cf56e7
Update FSF's address.
2005-07-04 17:55:18 +00:00
Juanma Barranquero
1689f30906
(sh, sh-script): Finish `defgroup' description with period.
...
(sh-maybe-here-document): "?\ " -> "?\s".
2005-07-04 03:24:03 +00:00