1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

1398 Commits

Author SHA1 Message Date
Gerd Moellmann
7c66d04999 New commands to run ANTLR from within Emacs and
to create Makefile rules.
(antlr-tool-command): New user option.
(antlr-ask-about-save): New user option.
(antlr-makefile-specification): New user option.
(antlr-file-formats-alist): New variable.
(antlr-special-file-formats): New variable.
(antlr-unknown-file-formats): New user option.
(antlr-help-unknown-file-text): New variable.
(antlr-help-rules-intro): New variable.
(antlr-mode-map): Add [C-c C-r] for `antlr-run-tool'.
(antlr-mode-menu): Add entries.
(antlr-file-dependencies): New function.
(antlr-directory-dependencies): New function.
(antlr-superclasses-glibs): New function.
(antlr-run-tool): New command.
(antlr-makefile-insert-variable): New function.
(antlr-insert-makefile-rules): New function.
(antlr-show-makefile-rules): New command.

More Emacs/XEmacs stuff.
(antlr-no-action-keywords): New constant with value nil.
(antlr-font-lock-keywords-alist): Use it.  Old value would break
syntax highlighting in Emacs-21.0.
(antlr-default-directory): Emacs/XEmacs dependend function.
(antlr-read-shell-command): Ditto.
(antlr-with-displaying-help-buffer): Ditto.


imenu, parsing and highlighting changes.
(antlr-imenu-create-index-function): Don't create extra submenus
for definitions in different grammar classes.  It is not necessary
for the menu and would make command `imenu' awkward to use.
(antlr-skip-file-prelude): With ANTLR-2.7+, you can specify named
header actions and more than one.
(antlr-font-lock-tokendef-face): Changed color.
(antlr-font-lock-tokenref-face): Changed color.
(antlr-font-lock-additional-keywords): Also highlight lowercase.
(antlr-mode-syntax-table): New variable.
(antlr-mode): Populate and use it instead `java-mode-syntax-table'.
(antlr-with-syntax-table): Don't copy syntax table.


Minor changes: language setting.
(antlr-language-alist): The value for file option "language" can
be both an identifier and a string.
Reported by Rajesh Radhakrishnan <radhakrs@email.uc.edu>.
(antlr-language-limit-n-regexp): Change accordingly.


Minor changes: tabs, hiding.
(antlr-tab-offset-alist): Set `indent-tabs-mode' to nil instead t.
(antlr-action-visibility): Also allow value nil to also hide the
braces.  Renamed from `antlr-tiny-action-length'.
Suggested by Jay@aol.com.
(antlr-hide-actions): Change accordingly.  Hide line if completely
hidden action is on a line of its own.
2000-11-29 16:55:47 +00:00
Dave Love
0ad0386ebb (ps-mode): Set comment-start and
comment-start-skip locally.
2000-11-28 16:39:56 +00:00
Dave Love
8b31236d80 (fortran-mode): Don't set
fortran-comment-line-start-skip.  Set comment-start to
fortran-comment-line-start.
(fortran-fill-paragraph) <non-empty-comment>: Remove regexp group.
(fortran-comment-line-start-skip): Simplify slightly.
2000-11-28 10:55:35 +00:00
Stefan Monnier
9dd7cdcc1c (ada-template-map): Initialize and bind it to C-c t in ada-mode-map.
(ada-stmt-mode-hook): New function extracted from old code.
Only change the buffer-local side of skeleton-*.
(ada-mode-hook): Use it.
2000-11-23 17:56:10 +00:00
Sam Steingold
eaae8106d7 * simple.el (delete-trailing-whitespace): New interactive function.
* progmodes/ada-mode.el (ada-mode): Use it instead of
`ada-remove-trailing-spaces'
(ada-remove-trailing-spaces): Removed.
* textmodes/two-column.el (2C-merge): Recommend it in the doc.
* textmodes/picture.el (picture-mode-exit): Call it instead of
`picture-clean'.
(picture-clean): Removed.
2000-11-22 20:59:39 +00:00
Stefan Monnier
36144b26b5 (ada-mode): set '' -> setq'. 2000-11-21 22:41:20 +00:00
Stefan Monnier
3f314699c3 (grep): `tag-default' can be nil. 2000-11-14 19:30:53 +00:00
Dave Love
f7a6110d25 Fix again. 2000-11-14 17:19:59 +00:00
Dave Love
ece8c34d87 Fix bogus last checkin. 2000-11-14 14:41:38 +00:00
Dave Love
d3461e8fd0 (scheme-program-name): New variable
(originally in cmuscheme).
2000-11-14 14:33:29 +00:00
Stefan Monnier
aace6150c0 (sh-mode-syntax-table) <defvar>:
Make it into a simple syntax-table, shared among all submodes.
(sh-heredoc-face): Re-introduce.
(sh-font-lock-syntactic-face-function): New function.
(sh-mode): Use it.  Also use define-derived-mode.
Remove old bogus setting of indent-region-function.
(sh-set-shell): Don't set the syntax-table any more.
(sh-mode-syntax-table) <defun>: Remove.
2000-11-12 16:48:45 +00:00
Dave Love
84d51f9bb5 (visit-tags-table-buffer): Beware of `t' in
tags-table-list.
2000-11-12 00:33:19 +00:00
Stefan Monnier
178a6a455e Update copyright.
(awk-mode-abbrev-table): Remove.
(awk-font-lock-keywords): Use regexp-opt.
(awk-mode): Use define-derived-mode.
2000-11-05 19:13:34 +00:00
Stefan Monnier
7b371301b4 (icon-mode-map): Don't rebind \t.
(icon-mode): Define indent-line-function.
(icon-comment-indent): Simplify.
(icon-font-lock-keywords-2): Use the `words' arg to regexp-opt.
2000-11-03 23:05:16 +00:00
Dave Love
234be340d8 (imenu-generic-expression)
(imenu-progress-message): Only defvar when compiling.
2000-10-30 19:59:09 +00:00
Dave Love
072cb6f926 (cperl-mode): Set
normal-auto-fill-function correctly.
2000-10-25 13:41:19 +00:00
Eli Zaretskii
8a30aaa378 Update author's email address. 2000-10-24 09:15:44 +00:00
Stefan Monnier
34939e2c4a (sh-mode-map): Remove bindings for
sh-electric-rparen, sh-electric-less and sh-electric-hash.
(sh-st-punc, sh-here-doc-syntax): Use string-to-syntax.
(sh-font-lock-heredoc, sh-font-lock-paren): New funs.
(sh-font-lock-syntactic-keywords): Use them.
(sh-heredoc-face, sh-st-face, sh-special-syntax): Remove.
(sh-mkword-regexp, sh-electric-rparen-needed-here): Remove.
(sh-mode): Don't override font-lock-unfontify-region-function.
Use a copy of sh-font-lock-syntactic-keywords.
(sh-set-shell): Don't set sh-electric-rparen-needed-here.
Don't call sh-scan-buffer since font-lock does it on the fly.
(sh-get-indent-info): Use `face' rather than `syntax-table'
text-property to detect here-documents.
Replace sh-special-syntax with sh-st-punc.
(sh-prev-line): Use `face' rather than `syntax-table'
text-property to skip over here-documents.
(sh-font-lock-unfontify-region-function, sh-check-paren-in-case)
(sh-set-char-syntax, sh-electric-rparen, sh-electric-hash)
(sh-electric-less, sh-set-here-doc-region)
(sh-remove-our-text-properties, sh-search-word, sh-scan-case)
(sh-scan-buffer, sh-rescan-buffer): Remove.
2000-10-21 18:06:17 +00:00
Gerd Moellmann
9b5360aa71 (sql-sybase-options): New option.
(sql-sybase): Use it.  Add sql-database to the list of parameters
provided for login.  The options -w 2048 -n are not used any more.
2000-10-18 14:38:55 +00:00
Dave Love
d2d001277c Require skeleton and comint when
compiling.
2000-10-15 17:18:02 +00:00
Stefan Monnier
6c5bcbc1b1 (sh-imenu-generic-expression): Fix.
(sh-mode-syntax-table): Add punctuation syntax for < and >.
(sh-mode): Don't make all vars local here.
(sh-kw): Reformat.
(sh-set-shell): Use dolist.  Don't set indent-region-function.
(sh-mode-syntax-table): Use pop.
(sh-remember-variable): Use push.
(sh-help-string-for-variable): Use memq.
(sh-safe-backward-sexp): Remove.
(sh-safe-forward-sexp): Add ARG.
(sh-get-indent-info, sh-prev-stmt): Use it.
(sh-prev-line): Simplify by using forward-comment.
(sh-this-is-a-continuation): Simplify.
(sh-learn-buffer-indent): Use dolist.
(sh-do-nothing): Remove.
(sh-set-char-syntax, sh-set-here-doc-region):
Use inhibit-modification-hooks.
(sh-name-style): Use mapcar and push.
(sh-load-style): Use dolist.
(sh-save-styles-to-buffer): Use with-current-buffer and pp.
(sh-case, sh-while-getopts): Use propertize directly rather
than sh-electric-rparen.
2000-10-15 04:38:24 +00:00
Dave Love
8661c643db (cperl-tips-faces): Doc fix.
(cperl-invalid-face): Revert last change.
(cperl-init-faces): Quote cperl-invalid-face.
2000-10-12 13:10:22 +00:00
Gerd Moellmann
56ce0469b5 (scheme-mode-map): Use lisp-mode-shared-map
instead of shared-lisp-mode-map.
2000-10-12 10:53:00 +00:00
Sam Steingold
5c8b7eaf15 (cperl-invalid-face): double-quote underline 2000-10-11 16:53:24 +00:00
Dave Love
1b9a1e9d48 (scheme-mode-variables, dsssl-mode): Avoid
compiler warnings.
(scheme-mode): Doc fix.
(scheme-font-lock-keywords-1): Match `define-syntax'.
2000-10-11 09:46:28 +00:00
Sam Steingold
690ec64977 use lisp-mode-shared-map instead of shared-lisp-mode-map 2000-10-10 17:27:38 +00:00
Stefan Monnier
d6b8c85b26 Maintainer line updated.
(tags-table-format-functions): Renamed from tags-table-format-hooks.
2000-10-09 01:59:03 +00:00
Stefan Monnier
6010664f9c Docstring fixes.
(initialize-new-tags-table): Use run-hook-with-args-until-success.
(find-tag): Use pop-to-buffer if switch-to-buffer failed.
2000-10-08 19:25:30 +00:00
Dave Love
383d5bbba8 Fix header line, copyright notice. 2000-10-08 17:47:56 +00:00
Dave Love
88127f30ed (ada-mode-menu): Add name to menu map. 2000-10-08 17:47:03 +00:00
Dave Love
26ee4ca385 (icon-mode-map): Add name to menu-bar keymap. 2000-10-08 17:39:40 +00:00
Stefan Monnier
02c1bd081b (compile-collect-regexps): Use dolist and push. 2000-10-05 23:47:14 +00:00
Gerd Moellmann
542c655271 (sql-mysql-options): New variable.
(sql-mysql): Use it.
2000-10-05 15:26:13 +00:00
Stefan Monnier
b5d006eaf9 (icon-mode): Don't gratuitously override the default for comment-column. 2000-10-05 01:58:16 +00:00
Stefan Monnier
7b8f3241f1 (c-mode): Don't gratuitously override the default for comment-column. 2000-10-01 00:53:23 +00:00
Stefan Monnier
be5e3be3ac (perl-mode): Don't gratuitously override the default for comment-column. 2000-09-29 03:32:40 +00:00
Stefan Monnier
5dd3f26b02 (awk-mode): Don't gratuitously override the default for comment-column. 2000-09-29 03:32:07 +00:00
Stefan Monnier
5bf9c8a0c9 (asm-mode): Don't gratuitously override the default for comment-column. 2000-09-29 03:31:36 +00:00
Thien-Thi Nguyen
9b4a780043 Update author email address.
Generally, sync w/ maintainer version 5.22.

(hs-hide-all-non-comment-function): New var.
(hs-hide-hook, hs-show-hook, hs-minor-mode): Update docstrings.
(hs-hide-all): Use `hs-hide-all-non-comment-function'.
(hs-show-region): Delete this command.
(hs-minor-mode-map): Change bindings to leave "C-c LETTER" alone.
2000-09-23 02:37:50 +00:00
Dave Love
7aabd23e30 (fortran-mode): Locally set
normal-auto-fill-function.
(fortran-auto-fill-mode): Just alias to auto-fill-mode.
(fortran-mode-map): Adjust auto-fill menu entry.
2000-09-22 17:16:57 +00:00
Dave Love
80585273bd (top-level): Clean up
`eval-when-compile's and assorted defvars.
(cperl-invalid-face): Don't double-quote value.  Change custom
type.
(cperl-mode): Set normal-auto-fill-function and don't zap
auto-fill-function.
(cperl-imenu--function-name-regexp-perl): Renamed from
imenu-example--function-name-regexp-perl.
(cperl-imenu--create-perl-index): Renamed from
imenu-example--create-perl-index.
(cperl-xsub-scan): Don't require cl.
2000-09-21 18:28:41 +00:00
Gerd Moellmann
3c0261ed16 (sh-search-word): Remove call to
`debug'.
2000-09-19 16:02:51 +00:00
Gerd Moellmann
f7e7d5a26b (sh-search-word): Rewritten for
speed.
2000-09-19 15:36:55 +00:00
Gerd Moellmann
311e7a8990 (sql-postgres): Use sql-postgres-options.
(sql-postgres-options): New variable.

(sql-mode-menu): Work around missing variable mark-active
in XEmacs.
(sql-mode): Added call to easy-menu-add for XEmacs compatibility.
(sql-interactive-mode): Added call to easy-menu-add for XEmacs
compatibility.
2000-09-05 10:44:21 +00:00
Gerd Moellmann
fd5f61d362 (executable-make-buffer-file-executable-if-script-p): Check that
buffer contains at least 2 characters.
2000-08-29 19:29:27 +00:00
Gerd Moellmann
bf061ba601 Doc fix.
(ebnf-version): New version (3.3).
(ebnf-user-arrow): Change variable customization to sexp.
(ebnf-user-arrow): Function eliminated.
(ebnf-eps-finish-and-write, ebnf-insert-ebnf-prologue): Code fix.
2000-08-29 10:58:13 +00:00
Stefan Monnier
8db2b9fbbc Big bag of typos. 2000-08-18 21:12:54 +00:00
Gerd Moellmann
0c1a49d3cb (icon-indent-line)
(icon-is-continuation-line): Handle comments specially.
2000-08-18 06:29:14 +00:00
Gerd Moellmann
c0bbaf57af (sql-magic-go): Use comint-bol.
(sql-copy-column): Use comint-line-beginning-position.
(comint-line-beginning-position): Define a replacement for
comint-line-beginning-position if it is not fboundp.

(sql-mode-map): TAB is no longer defined in sql-mode-map;
it didn't have any effect anyway.

(sql-postgres): Jason Beegan's patch uses the parameters
--pset and pager=off instead of sending \\o|cat at the beginning
of the session.
2000-08-17 11:20:50 +00:00
Miles Bader
9d245da59e Add compatibility definition of comint-line-beginning-position. 2000-08-17 06:25:11 +00:00