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
Glenn Morris
f42e164952
(sh-get-kw): `&' also separates words.
2005-06-30 16:45:04 +00:00
Miles Bader
33595ec6be
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-414
...
Remove "-face" suffix from sh-script faces
2005-06-14 Miles Bader <miles@gnu.org>
* lisp/progmodes/sh-script.el (sh-heredoc): Remove "-face" suffix from
face name.
(sh-heredoc-face): New backward-compatibility alias for renamed face.
(sh-heredoc-face): Use renamed sh-heredoc face.
2005-06-14 23:56:03 +00:00
Lute Kamstra
9a9691963d
* progmodes/ada-mode.el (ada-mode):
...
* progmodes/antlr-mode.el (antlr-mode):
* progmodes/autoconf.el (autoconf-mode):
* progmodes/dcl-mode.el (dcl-mode):
* progmodes/delphi.el (delphi-mode):
* progmodes/ebrowse.el (ebrowse-tree-mode)
(ebrowse-electric-list-mode, ebrowse-member-mode)
(ebrowse-electric-position-mode):
* progmodes/f90.el (f90-mode):
* progmodes/fortran.el (fortran-mode):
* progmodes/icon.el (icon-mode):
* progmodes/idlw-help.el (idlwave-help-mode):
* progmodes/idlw-shell.el (idlwave-shell-mode):
* progmodes/idlwave.el (idlwave-mode):
* progmodes/inf-lisp.el (inferior-lisp-mode):
* progmodes/m4-mode.el (m4-mode):
* progmodes/meta-mode.el (metafont-mode, metapost-mode):
* progmodes/modula2.el (modula-2-mode):
* progmodes/octave-inf.el (inferior-octave-mode):
* progmodes/octave-mod.el (octave-mode):
* progmodes/pascal.el (pascal-mode):
* progmodes/sh-script.el (sh-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode):
* progmodes/vhdl-mode.el (vhdl-mode):
* progmodes/xscheme.el (scheme-interaction-mode): Use run-mode-hooks.
2005-05-26 16:43:37 +00:00
Stefan Monnier
fe67016b3a
(sh-mode, sh-get-word): Minor regexp fixes.
2005-05-20 13:28:38 +00:00
Richard M. Stallman
32518913cd
More doc usage fixes.
2005-05-14 11:21:12 +00:00
Richard M. Stallman
dd77d6f4d3
Many doc usage fixes.
...
(sh-indent-after-do): Change default to match common styles.
2005-05-14 11:20:19 +00:00
Dan Nicolaescu
8cec35c42e
(sh-mode-default-syntax-table): Set the
...
syntax of $ to "'" (quote).
2005-05-11 22:57:25 +00:00
Richard M. Stallman
3f0f48c040
(sh-indent-for-do): Default to 0.
2005-05-10 09:13:04 +00:00
Daniel Pfeiffer
d5f2a89966
(sh-font-lock-keywords): Use font-lock-negation-char-face.
2005-05-05 19:03:32 +00:00
Glenn Morris
546e2f6ff2
(sh-here-document-word): Make it a defcustom. Doc fix.
...
(sh-add): Bash uses $(( )) for arithmetic.
(sh-while-getopts) <sh>: Set OPTIND back to 1 at end.
(sh-maybe-here-document): Remove quotes and leading whitespace
from heredoc word when closing. Indent heredoc with tabs if word
starts with "-".
2005-04-13 18:49:57 +00:00
Dan Nicolaescu
ea81d57ec5
* mh-customize.el (mh-speedbar-selected-folder-face): Special case
...
high number of colors displays.
* textmodes/table.el (table-cell-face): Add special case for
displays supporting a high number of colors.
* progmodes/vhdl-mode.el (vhdl-font-lock-prompt-face)
(vhdl-font-lock-reserved-words-face)
(vhdl-speedbar-architecture-face)
(vhdl-speedbar-instantiation-face)
(vhdl-speedbar-architecture-selected-face)
(vhdl-speedbar-instantiation-selected-face): Likewise.
* progmodes/sh-script.el (sh-heredoc-face): Likewise.
* progmodes/idlw-help.el (idlwave-help-link-face): Likewise.
* progmodes/ebrowse.el (ebrowse-tree-mark-face)
(ebrowse-root-class-face, ebrowse-member-attribute-face)
(ebrowse-progress-face): Likewise.
* progmodes/compile.el (compilation-info-face): Likewise.
* progmodes/cc-fonts.el (c-invalid-face): Likewise.
* emacs-lisp/re-builder.el (reb-match-3): Likewise.
* calendar/calendar.el (diary-face): Likewise.
* woman.el (woman-italic-face, woman-bold-face)
(woman-unknown-face): Likewise.
* wid-edit.el (widget-button-pressed-face): Likewise.
* whitespace.el (whitespace-highlight-face): Likewise.
* smerge-mode.el (smerge-mine-face, smerge-base-face): Likewise.
* pcvs-info.el (cvs-marked-face): Likewise.
* info.el (info-xref): Likewise.
* ido.el (ido-subdir-face, ido-indicator-face): Likewise.
* hilit-chg.el (highlight-changes-face)
(highlight-changes-delete-face): Likewise.
* hi-lock.el (hi-yellow, hi-green, hi-blue-b, hi-green-b)
(hi-red-b): Likewise.
* generic-x.el (show-tabs-tab-face, show-tabs-space-face): Likewise.
* font-lock.el (font-lock-keyword-face)
(font-lock-function-name-face, font-lock-warning-face): Likewise.
* cus-edit.el (custom-invalid-face, custom-modified-face)
(custom-set-face, custom-changed-face, custom-variable-tag-face)
(custom-group-tag-face-1, custom-group-tag-face): Likewise.
* comint.el (comint-highlight-prompt): Likewise.
2005-04-08 14:26:13 +00:00
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