1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

2180 Commits

Author SHA1 Message Date
Stefan Monnier
a60c46175d (grep-regexp-alist): Allow :, \t and ( in file names. 2004-02-08 20:15:45 +00:00
Nick Roberts
a0c3f8bc46 (gud-jdb-marker-filter): Add period as optional thousands separator; fixes
<class>:<line-number> regexp for non-english locales.
2004-02-08 15:30:42 +00:00
Stefan Monnier
cff301beed (cperl-fill-paragraph): Call fill-paragraph
with point inside rather than after the paragraph.
2004-02-04 22:55:17 +00:00
Stefan Monnier
82eb0daee6 (cperl-mode-map, cperl-do-auto-fill, cperl-menu): Use fill-paragraph,
not cperl-fill-paragraph.
(cperl-mode): Set fill-paragraph-function.
(cperl-fill-paragraph): Make it non-interactive.
2004-02-02 15:22:39 +00:00
Andreas Schwab
679be51789 (executable-command-find-posix-p): Doc fix. 2004-02-01 16:27:34 +00:00
Richard M. Stallman
87f54c051d (grep-compute-defaults): Use executable-command-find-posix-p.
(grep-find): Check `grep-find-command'.
2004-01-29 17:54:36 +00:00
Richard M. Stallman
1476871642 (executable-command-find-posix-p):
New.  Check if find handles arguments Posix-style.
2004-01-29 17:53:17 +00:00
Glenn Morris
337c50a52f (fortran-break-before-delimiters): Doc fix.
(fortran-break-delimiters-re, fortran-no-break-re): New defconsts.
(fortran-fill): When filling a string, adjust re-search-backward
argument for special case of string just on fill-column.
When filling non-string, allow one extra char if
fortran-break-before-delimiters is non-nil.  Suggested by
Michael Hagemann <michael.hagemann@unibas.ch>.
Use fortran-break-delimiters-re and fortran-no-break-re to
correctly handle cases such as "**".
2004-01-25 23:59:57 +00:00
Glenn Morris
6f43f690c6 (f90-break-delimiters): Doc fix.
(f90-no-break-re): Add some extra tokens.  Doc fix.
2004-01-25 23:42:35 +00:00
Glenn Morris
f2633782cd David Ponce <david@dponce.com>
(which-function-mode): Don't cancel which-func-update-timer if not set.
2004-01-18 14:00:34 +00:00
Luc Teirlinck
a151ecffc9 Do not require cl at run time. 2004-01-17 03:01:45 +00:00
Thien-Thi Nguyen
c1bfdd5447 (scheme-font-lock-keywords-2): Add "force". 2004-01-15 14:18:24 +00:00
Nick Roberts
9f1d9ee471 (gdb-first-prompt): Renamed from
gdb-first-pre-prompt
2004-01-07 23:22:34 +00:00
Richard M. Stallman
b34e9a285f (compile-internal): Use point, not point-min, for set-window-point. 2004-01-03 22:38:10 +00:00
Richard M. Stallman
05218277b6 (grep-mode-map): Don't remap next-line, previous-line. 2004-01-03 21:11:43 +00:00
Eli Zaretskii
1550204223 * progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.
2004-01-03 12:12:01 +00:00
Eli Zaretskii
74c942dea8 (gud-tool-bar-map): Modify names of icon files
for gud-next, gud-nexti, gud-step and gud-stepi to prevent
file-name clashes on 8+3 DOS filesystems.
2003-12-30 08:50:29 +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
3e86c60b95 (save-buffer-state-x): Use with-no-warnings. 2003-12-29 20:03:05 +00:00
Nick Roberts
d7af32300b (gud-gdb-command-name): Set default to
"gdb --annotate=3".
(gud-gdb-marker-filter): Look out for annotations.
(gdb-first-pre-prompt): New variable.
Remove trailing white space.
2003-12-28 13:51:51 +00:00
Nick Roberts
79148a5ba3 (gud-speedbar-buttons): Use speed-bar-edit-line
to edit values when there are no children.
2003-12-23 20:32:31 +00:00
Stefan Monnier
310ee6ada7 (makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n.
Be more selective as to which # are comment-starters.
2003-11-26 16:49:33 +00:00
Miles Bader
7239c21756 Resolve CVS conflicts 2003-11-24 22:19:51 +00:00
Kim F. Storm
5f032b5036 Remove grep-use-compilation-buffer defcustom. 2003-11-23 22:51:14 +00:00
Kim F. Storm
9ac5747987 (grep-command, grep-use-null-device)
(grep-find-command, grep-tree-command, grep-tree-files-aliases)
(grep-tree-ignore-case, grep-tree-ignore-CVS-directories)
(grep-regexp-alist, grep-program, find-program)
(grep-find-use-xargs, grep-history, grep-find-history)
(grep-process-setup, grep-compute-defaults)
(grep-default-command, grep, grep-tag-default, grep-find)
(grep-expand-command-macros, grep-tree-last-regexp)
(grep-tree-last-files, grep-tree): Move grep variables, functions
and commands to new file grep.el.
(compilation-mode-map): Remove grep commands from Compile sub-menu.

(compilation-process-setup-function): Doc fix.
(compilation-highlight-regexp, compilation-highlight-overlay): New
defvars used for highlighting current compile error in source buffer.
(compile-internal): New optional args HIGHLIGHT-REGEXP and
LOCAL-MAP which overrides compilation-highlight-regexp and
compilation-mode-map for this compilation.
Delay calling compilation-set-window-height until after running
compilation-process-setup-function so it can buffer-local override
compilation-window-height.
Check buffer-local value of compilation-scroll-output.
(compilation-set-window-height): Use buffer-local value of
compilation-window-height.
(compilation-revert-buffer): Don't pass (undefined)
preserve-modes arg to revert-buffer.
(next-error-no-select, previous-error-no-select): New commands.
(compilation-goto-locus): Temporarily highlight current match in
source buffer using compilation-highlight-regexp.
2003-11-23 20:57:47 +00:00
Kim F. Storm
318e297657 * progmodes/grep.el: New file with grep code from compile.el.
(grep): New defcustom group.
(grep-window-height): New defcustom, like compilation-window-height.
(grep-auto-highlight): New defcustom, like compile-auto-highlight.
(grep-scroll-output): New defcustom, like compilation-scroll-output.
(grep-command, grep-use-null-device, grep-find-command)
(grep-tree-files-aliases, grep-tree-ignore-case)
(grep-tree-ignore-CVS-directories): Move to grep custom group.
(grep-setup-hook): New hook variable.
(grep-mode-map): New keymap for grep commands.  Add Grep menu.
(grep-use-compilation-buffer): New defcustom.
(grep-last-buffer): New defvar, override compilation-last-buffer.
(grep): Add optional arg HIGHLIGHT-REGEXP.  Doc fix.
Call compile-internal with args highlight-regexp and grep-mode-map.
2003-11-23 20:56:10 +00:00
Martin Stjernholm
037558bfd9 CC Mode update (5.30.8). 2003-11-16 16:55:08 +00:00
Andreas Schwab
447f1ebd1e (autoconf-font-lock-keywords): Also highlight AH_*. 2003-11-07 16:08:53 +00:00
Lute Kamstra
b2fc097671 (inferior-octave-prompt): Recognize version number in prompt. 2003-10-29 18:55:55 +00:00
Stefan Monnier
cb3d3ec192 (octave-comment-start): Simplify.
(octave-mode-syntax-table): Add % as a comment starter.
(octave-point): Remove.
(octave-in-comment-p, octave-in-string-p)
(octave-not-in-string-or-comment-p, calculate-octave-indent)
(octave-blink-matching-block-open, octave-auto-fill):
Use line-(beginning|end)-position instead.
2003-10-24 18:58:28 +00:00
Miles Bader
7ae0df40c1 Resolve CVS conflicts 2003-10-22 08:30:07 +00:00
Nick Roberts
0a4f0ab1d7 (gud-speedbar-buttons): Check for variable
object changes in gdb-ui.el.
2003-10-21 22:37:29 +00:00
Richard M. Stallman
59bb4146a3 (compile-auto-highlight): Undo July 7 change. 2003-10-20 23:31:27 +00:00
Richard M. Stallman
b6c846d341 Make major mode work with cc-mode-5.30+.
(antlr-c-init-language-vars): New function.
(antlr-mode): Use it with cc-mode before v5.29.
(antlr-c-common-init): Don't set some local vars here.
(antlr-mode): Set them here.
(antlr-c-forward-sws): New function alias.
(antlr-mode): Redefine with cc-mode before v5.30.
(antlr-skip-sexps): Use it.
(antlr-skip-exception-part): Ditto.
(antlr-skip-file-prelude): Ditto.
(antlr-outside-rule-p): Ditto.
(antlr-end-of-body): Ditto.
(antlr-option-kind): Ditto.
(antlr-insert-option-area): Ditto.
(antlr-file-dependencies): Ditto.
2003-10-20 23:30:05 +00:00
Dave Love
5467ec8881 *** empty log message *** 2003-10-20 23:16:26 +00:00
Thien-Thi Nguyen
c327c4058f Rewrite one-armed `if'
constructs using either `when' or `unless'.
(hs-grok-mode-type): Elide superfluous `progn'; nfc.
2003-10-18 01:05:54 +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
Nick Roberts
187c0c4022 (gud-menu-map, gud-tool-bar-map): Replace
gud-display with gud-watch.
(gud-speedbar-buttons): Add stuff for watching expressions
in the speedbar when using M-x gdba. Use dolist on old part
of this function.
2003-09-30 17:58:19 +00:00
Richard M. Stallman
2389f14324 (ada-mode): Don't use advice. Instead, set which-func-functions. 2003-09-30 12:54:32 +00:00
Richard M. Stallman
35e376af6a (which-func-modes): Add ada-mode.
(which-func-functions): New variable.
(which-function): Use that.
2003-09-30 12:53:26 +00:00
Richard M. Stallman
830144d596 (sh-mode-syntax-table): Add defvar. 2003-09-30 12:42:56 +00:00
Thien-Thi Nguyen
cb049c411e (scheme-mode-variables): When setting
`font-lock-defaults', also specify that "#" should
be interpreted with `word' syntax.
(scheme-font-lock-keywords-2): Also interpret "#:foo" as keyword.
2003-09-30 11:47:57 +00:00
Thien-Thi Nguyen
6e8fcd2193 Thank Michael Ernst; nfc. 2003-09-29 13:24:30 +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
Martin Stjernholm
de2dcd185a Bumped patch release number. Minor docstring update. 2003-09-24 14:01:16 +00:00
Martin Stjernholm
0923382c34 (c-comment-prefix-regexp): Document that `c-setup-paragraph-variables'
has to be used when this variable is changed; it doesn't work to
reinitialize the mode since that typically clobbers the variable.
2003-09-24 13:56:48 +00:00
Martin Stjernholm
cfb966f42a (c-setup-paragraph-variables): Made it interactive. 2003-09-24 13:56:27 +00:00
Martin Stjernholm
fa14078b4f (c-type-list-kwds): If "operator" is followed by an identifier in C++
then it's a type.
2003-09-24 13:56:09 +00:00
Martin Stjernholm
a6782a6efd (c-font-lock-declarations): Fixed recognition of constructors and
destructors for classes whose names are matched by
`*-font-lock-extra-types'.

(c-font-lock-invalid-string): Fixed eob problem that primarily
affected XEmacs.  Don't use faces to find unterminated strings since
Emacs and XEmacs fontify strings differently - this function should
now work better in XEmacs.
2003-09-24 13:55:49 +00:00
Martin Stjernholm
449a2b0d2e (c-parse-state): Fixed bug that could cause errors when the state
cache contains info on parts that have been narrowed out.

(c-forward-keyword-clause): Fixed error handling.  This bug could
cause interactive font locking to bail out.

(c-just-after-func-arglist-p): Handle paren-style types in Pike.  Also
fixed some cases of insufficient handling of unbalanced parens.
2003-09-24 13:55:23 +00:00
Martin Stjernholm
d858963e6b (c-electric-brace): Fixed a bug in the expand-abbrev' workaround
which caused braces to disbehave inside macros.
2003-09-24 13:55:07 +00:00
Nick Roberts
1dd52b8210 (perldb): Add gud-until to list of commands.
Update gud-remove.
2003-09-22 22:02:51 +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
Richard M. Stallman
dfe02f1424 (compile-internal): Call compilation-set-window-height
before setting window start.
2003-09-22 15:25:47 +00:00
John Paul Wallington
b8313039df Add Commentary section, minor cleanup of file header.
(ld-script-font-lock-keywords): Doc fix.
(toplevel): Provide `ld-script' feature.
2003-09-22 12:37:00 +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
Masatake YAMATO
8cbb7c6199 Fix broken magic autoload comments. 2003-09-18 17:08:22 +00:00
Nick Roberts
8a7bc7b803 (perldb): Change gud-print from just "%e" to "p %e" to
actually print the value in the GUD buffer.
2003-09-17 18:33:38 +00:00
Nick Roberts
339a559e5e (gud-find-class): Make jdb work again since
cc-mode changed the syntactic information.
2003-09-15 19:14:00 +00:00
Richard M. Stallman
dc45d1a608 Change maintainer. 2003-09-12 00:55:27 +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
Eli Zaretskii
00c8f41844 (previous-error): Accept a prefix argument, similarly to next-error. 2003-09-01 05:47:12 +00:00
Martin Stjernholm
c577b2225a Bumped patch release number. 2003-08-26 11:54:09 +00:00
Martin Stjernholm
846f504014 (c-lineup-math): Don't align the operators "!=", "<=" and ">=" as assignment
operators.

(c-assignment-operators): New language constant that only contains the
assignment operators.

(c-assignment-op-regexp): New language variable used by c-lineup-math'.
2003-08-26 11:52:40 +00:00
Martin Stjernholm
a02a0f3d29 (c-extra-types-widget): The doc string is mandatory in
`define-widget'.
2003-08-26 11:51:55 +00:00
Martin Stjernholm
2c9c19547f (c-just-after-func-arglist-p): Safeguard against unbalanced sexps. 2003-08-26 11:51:16 +00:00
Martin Stjernholm
0b966e89b3 (c-electric-brace): Work around for a misfeature in `expand-abbrev'
which caused electric keywords like "else" to disappear if an open
brace was typed directly afterwards.
2003-08-26 11:50:03 +00:00
Nick Roberts
37fdcfbc45 (gud-display-line): Don't set window-point if
source buffer is not visible. (Only happens with M-x gdba).
2003-08-24 20:41:39 +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
Masatake YAMATO
98971e752b Added ld-script.el. 2003-08-24 09:44:38 +00:00
Alex Schroeder
78024f8836 Patch by Michael Mauger <mmaug@yahoo.com>
Version 1.8.0 of sql-mode.

Simplify selection of SQL products to define highlighting and
interactive mode.  Includes detailed instructions on adding
support for new products.

* sql.el (sql-product): New variable.  Identifies SQL product for
use in highlighting and interactive mode.
(sql-interactive-product): New variable.  SQL product for
sql-interactive-mode.
(sql-product-support): New variable.  Specifies product-specific
parameters to drive highlighting and interactive mode.
(sql-imenu-generic-expression): Add more object types.
(sql-sqlite-options): Correct comment.
(sql-ms-program): Use "osql" rather than "isql".
(sql-prompt-regexp, sql-prompt-length): Update comment.
(sql-mode-menu): Add "Start SQLi session" entry.  Replace
Highlighting submenu with Product menu.  Fix Send Region entry.
(sql-mode-abbrev-table): Add abbreviations.  Support of
SYSTEM-FLAG on define-abbrev.  Support was removed with last
check-in; it now handles older Emacsen without the SYSTEM-FLAG.
(sql-mode-font-lock-object-name): Add font-lock pattern for object
names.
(sql-mode-ansi-font-lock-keywords): Set as default value.
(sql-mode-oracle-font-lock-keywords): Set as default value.
Support Oracle 9i keywords.
(sql-mode-postgres-font-lock-keywords): Set as default value.
(sql-mode-linter-font-lock-keywords): Set as default value.
(sql-mode-ms-font-lock-keywords): New variable.  Support Microsoft
SQLServer 2000.
(sql-mode-sybase-font-lock-keywords)
(sql-mode-interbase-font-lock-keywords)
(sql-mode-sqlite-font-lock-keywords)
(sql-mode-strong-font-lock-keywords)
(sql-mode-mysql-font-lock-keywords)
(sql-mode-db2-font-lock-keywords): New variables.  Default to ANSI
keywords.
(sql-mode-font-lock-defaults): Update comment.
(sql-product-feature): New function.  Returns feature associated
with a product from `sql-product-support' alist.
(sql-product-font-lock): New function.  Set font-lock support
based on `sql-product'.
(sql-add-product-keywords): New function.  Add font-lock rules to
product-specific keyword variables.
(sql-set-product): New function.  Set `sql-product' and apply
appropriate font-lock highlighting.
(sql-highlight-product): New function.  Set font-lock support
based on a product.  Also set mode name to include product name.
(sql-highlight-ansi-keywords, sql-highlight-oracle-keywords)
(sql-highlight-postgres-keywords, sql-highlight-linter-keywords):
Use `sql-set-product'.
(sql-highlight-ms-keywords)
(sql-highlight-sybase-keywords)
(sql-highlight-interbase-keywords)
(sql-highlight-strong-keywords)
(sql-highlight-mysql-keywords)
(sql-highlight-sqlite-keywords)
(sql-highlight-db2-keywords): New functions.  Use
`sql-set-product'.
(sql-get-login): Prompt in the same order as the tokens.
(sql-mode): Uses `sql-product-highlight' and
`sql-product-font-lock'.
(sql-product-interactive): New function.  Common portions of
product-specific interactive mode wrappers.
(sql-interactive-mode): Rewritten to use product features.
(sql-oracle, sql-sybase, sql-informix, sql-sqlite, sql-mysql)
(sql-solid, sql-ingres, sql-ms, sql-postgres, sql-interbase)
(sql-db2, sql-linter): Use `sql-product-interactive'.
(sql-connect-oracle, sql-connect-sybase, sql-connect-informix)
(sql-connect-sqlite, sql-connect-mysql, sql-connect-solid)
(sql-connect-ingres, sql-connect-postgres)
(sql-connect-interbase, sql-connect-db2, sql-connect-linter): New
functions.  Format command line parameters and invoke comint on
the appropriate interpreter.  Code was in the corresponding
`sql-xyz' function before.
(sql-connect-ms): New function.  Support -E argument to use
operating system credentials for authentication.
2003-08-18 17:29:23 +00:00
Alex Schroeder
e1f540f294 2003-08-14 Thu Jari Aalto <jari.aalto@poboxes.com>
* progmodes/compile.el (compilation-error-regexp-alist):
        Added Java ANt error detection as described in document
        http://ant.apache.org/faq.html
2003-08-17 09:49:42 +00:00
Vinicius Jose Latorre
1002b9b5d9 ebnf-no-meta-identifier ==> var instead constant. 2003-08-13 00:37:24 +00:00
Vinicius Jose Latorre
30fa28b494 Move defvar before first use. 2003-08-09 02:17:12 +00:00
Vinicius Jose Latorre
ae6f46f914 ebnf-begin-job code fix 2003-08-08 02:32:06 +00:00
Martin Stjernholm
28d88c16bf 2003-08-03 Martin Stjernholm <bug-cc-mode@gnu.org>
* cc-mode.el (c-init-language-vars-for): Add argument MODE.
	Renamed from c-init-c-language-vars'.
	(c-initialize-cc-mode): Change accordingly.
	(c-common-init): Ditto.
	(c-mode): Ditto.
	(c++-mode): Use function.
	(objc-mode): Ditto.
	(java-mode): Ditto.
	(idl-mode): Ditto.
	(pike-mode): Ditto.
	(awk-mode): Ditto.
2003-08-03 12:31:46 +00:00
Martin Stjernholm
ff959bab84 2003-08-01 Martin Stjernholm <bug-cc-mode@gnu.org>
* cc-engine.el (c-end-of-current-token): Return whether or not the
	point moved.

	(c-search-decl-header-end): Don't trip up on operator identifiers
	in C++ and operators like == in all languages.

	* cc-engine.el (c-backward-to-decl-anchor): Detect leading labels
	correctly.
2003-08-03 12:29:57 +00:00
Martin Stjernholm
b50aeac3f7 2003-07-16 Martin Stjernholm <bug-cc-mode@gnu.org>
* cc-defs.el (c-langelem-sym, c-langelem-pos, c-langelem-2nd-pos):
	Added accessor functions for syntactic elements.
2003-08-03 12:29:24 +00:00
Andreas Schwab
cbc72cf5cf (sh-mode): Don't set mode-class property. 2003-08-02 20:09:42 +00:00
John Paul Wallington
c20f961b23 2003-07-28 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
* progmodes/compile.el (compilation-environment): New user variable.
	(compile-internal): Respect it.
2003-07-28 16:06:55 +00:00
Masatake YAMATO
c52093761b (gdb-script-font-lock-keywords): Put `font-lock-function-name-face'
on a symbol which includes `-' like `hook-run'. Put
font-lock-variable-name-face  on a symbol starting with $.
2003-07-28 06:27:09 +00:00
Thien-Thi Nguyen
90d606ce3e (hs-special-modes-alist): Clarify MDATA-SELECTOR doc; nfc. 2003-07-22 19:59:35 +00:00
Markus Rost
93af03f0a1 (idlwave-comment-indent-char): Fix default value using ?\s. 2003-07-21 21:36:55 +00:00
Andreas Schwab
29653ebc24 (sh-mode-syntax-table): Change syntax of ?, to "_". 2003-07-21 06:25:33 +00:00
Martin Stjernholm
75d6bc9b57 Obsoleted the old awk-mode.el package in favor of the AWK support in CC Mode. 2003-07-17 11:40:43 +00:00
Martin Stjernholm
f6c4327a0c #Updated to 5.30.4. 2003-07-16 21:00:21 +00:00
Martin Stjernholm
117679f7e7 (c-langelem-sym, c-langelem-pos, c-langelem-2nd-pos): Added accessor
functions for syntactic elements.
2003-07-16 20:55:10 +00:00
Martin Stjernholm
1e33046972 (c-literal-faces): Declare as a variable since it might be modified. 2003-07-16 20:54:46 +00:00
Martin Stjernholm
f75ef66d4a (c++-make-template-syntax-table, c-syntactic-ws-start, c-syntactic-ws-end):
Gave more consistent names to these language constants.
2003-07-16 20:54:19 +00:00
Juanma Barranquero
b4dd5c9ca5 Revert last change. 2003-07-14 20:39:39 +00:00
Juanma Barranquero
9c7bda2fc1 Version 1.8.0 of sql-mode.
Simplify selection of SQL products to define highlighting and
interactive mode.  Includes detailed instructions on adding support
for new products.

(sql-product): New variable.  Identifies SQL product for use in highlighting and
interactive mode.
(sql-interactive-product): New variable.  SQL product for sql-interactive-mode.
(sql-product-support): New variable.  Specifies product-specific parameters to
drive highlighting and interactive mode.
(sql-imenu-generic-expression): Add more object types.
(sql-sqlite-options): Correct comment.
(sql-ms-program): Use "osql" rather than "isql".
(sql-prompt-regexp, sql-prompt-length): Update comment.
(sql-mode-menu): Add "Start SQLi session" entry.  Replace Highlighting submenu
with Product menu.  Fix Send Region entry.
(sql-mode-abbrev-table): Add abbreviations.  Support of SYSTEM-FLAG on
define-abbrev.  Support was removed with last check-in; it now handles older
Emacsen without the SYSTEM-FLAG.
(sql-mode-font-lock-object-name): Add font-lock pattern for object names.
(sql-mode-ansi-font-lock-keywords): Set as default value.
(sql-mode-oracle-font-lock-keywords): Set as default value.  Support Oracle 9i
keywords.
(sql-mode-postgres-font-lock-keywords): Set as default value.
(sql-mode-linter-font-lock-keywords): Set as default value.
(sql-mode-ms-font-lock-keywords): New variable.  Support Microsoft SQLServer
2000.
(sql-mode-sybase-font-lock-keywords)
(sql-mode-interbase-font-lock-keywords)
(sql-mode-sqlite-font-lock-keywords)
(sql-mode-strong-font-lock-keywords)
(sql-mode-mysql-font-lock-keywords)
(sql-mode-db2-font-lock-keywords): New variables.  Default to ANSI keywords.
(sql-mode-font-lock-defaults): Update comment.
(sql-product-feature): New function.  Returns feature associated with a product
from `sql-product-support' alist.
(sql-product-font-lock): New function.  Set font-lock support based on
`sql-product'.
(sql-add-product-keywords): New function.  Add font-lock rules to
product-specific keyword variables.
(sql-set-product): New function.  Set `sql-product' and apply appropriate
font-lock highlighting.
(sql-highlight-product): New function.  Set font-lock support based on a
product.  Also set mode name to include product name.
(sql-highlight-ansi-keywords, sql-highlight-oracle-keywords)
(sql-highlight-postgres-keywords, sql-highlight-linter-keywords):
Use `sql-set-product'.
(sql-highlight-ms-keywords)
(sql-highlight-sybase-keywords)
(sql-highlight-interbase-keywords)
(sql-highlight-strong-keywords)
(sql-highlight-mysql-keywords)
(sql-highlight-sqlite-keywords)
(sql-highlight-db2-keywords): New functions.  Use `sql-set-product'.
(sql-get-login): Prompt in the same order as the tokens.
(sql-mode): Uses `sql-product-highlight' and `sql-product-font-lock'.
(sql-product-interactive): New function.  Common portions of product-specific
interactive mode wrappers.
(sql-interactive-mode): Rewritten to use product features.
(sql-oracle, sql-sybase, sql-informix, sql-sqlite, sql-mysql)
(sql-solid, sql-ingres, sql-ms, sql-postgres, sql-interbase)
(sql-db2, sql-linter): Use `sql-product-interactive'.
(sql-connect-oracle, sql-connect-sybase, sql-connect-informix)
(sql-connect-sqlite, sql-connect-mysql, sql-connect-solid)
(sql-connect-ingres, sql-connect-postgres)
(sql-connect-interbase, sql-connect-db2, sql-connect-linter): New functions.
Format command line parameters and invoke comint on the appropriate interpreter.
Code was in the corresponding `sql-xyz' function before.
(sql-connect-ms): New function.  Support -E argument to use operating system
credentials for authentication.
2003-07-13 17:19:18 +00:00
Richard M. Stallman
485fe977a0 (c-declare-lang-variables): Don't use mapcan. 2003-07-13 00:20:39 +00:00
Richard M. Stallman
19c5fddbc3 (c-make-keywords-re): Don't use delete-duplicates.
(c-lang-const): Don't use mapcan.
2003-07-13 00:19:56 +00:00
John Paul Wallington
97534f3298 (visit-tags-table-buffer): Add autoload cookie;
this function can be called from `add-completions-from-tags-table'.
2003-07-10 16:31:43 +00:00
Martin Stjernholm
7bfc3fdba3 2003-07-08 Martin Stjernholm <bug-cc-mode@gnu.org>
* cc-engine.el (c-guess-basic-syntax): Do not do hidden buffer
	changes; there's third party code that calls this function
	directly.

2003-07-07  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (javadoc-font-lock-keywords,
	autodoc-font-lock-keywords): Don't byte compile on font lock
	initialization when running from byte compiled files.

2003-07-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el: Fix AWK mode indentation when previous statement
	ends with auto-increment "++".

2003-07-05  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el, cc-styles.el (c-style-alist, c-lang-variable-inits,
	c-lang-variable-inits-tail): The values of these are changed, so
	declare them as variables and not constants.
2003-07-08 23:24:44 +00:00
Richard M. Stallman
c72095b345 (compile-auto-highlight): Default now t.
(compile): Doc fix.
(compilation-next-error): Fix previous change.
2003-07-07 20:53:19 +00:00
Martin Stjernholm
a2f3d16b3e New patch version. 2003-07-05 19:57:01 +00:00
Martin Stjernholm
2eb455ab32 (c-style-alist, c-lang-variable-inits, c-lang-variable-inits-tail): The
values of these are changed, so declare them as variables and not constants.
2003-07-05 19:54:33 +00:00
Martin Stjernholm
50fdde0e7e Fixed some autoload problems: Try to ensure that the entry for ".c"
extension comes before the one for ".C" on auto-mode-alist', to behave
better on case insensitive OS:es.  Fixed incorrect entries that were added
to interpreter-mode-alist'.  Moved the autoload directives for AWK to the
top level since they aren't recognized anywhere else.  Do not use the new
AWK mode doc in the autoload form for the old AWK mode.
2003-07-05 19:53: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
Martin Stjernholm
d9e94c2273 Updated CC Mode to version 5.30. 2003-07-03 12:30:59 +00:00
Masatake YAMATO
c1b559329f * progmodes/asm-mode.el (asm-font-lock-keywords): Support
labels starting with "." and directives starting with ".".
2003-06-25 06:52:04 +00:00
Stefan Monnier
87d9913f72 (c-mode): Reverting last change. 2003-06-19 15:55:31 +00:00
Stefan Monnier
c3f6b2b412 (gud-find-expr-function): Rename from gud-find-expr.
(gud-find-fortran-expr): Move to fortran.el.
2003-06-18 23:26:28 +00:00
Stefan Monnier
5727e74864 (fortran-gud-find-expr): Move from gud.el (was gud-find-fortran-expr).
(fortran-mode): Set gud-find-expr-function.
2003-06-18 23:25:39 +00:00
Nick Roberts
deaef28929 (gud-menu-map): Add dbx support for "run" and
"nexti".
(dbx): Define gud-nexti and gud-run.
(gud-find-expr, gud-find-fortran-expr): New functions.
(gud-find-expr): New variable.
(gud-find-c-expr): Simplify.
2003-06-18 22:36:40 +00:00
Nick Roberts
f6bf87c5a1 (fortran-gud-syntax-table): Syntax table
for parsing Fortran expressions for gud-print. (Stefan Monnier)
(fortran-mode): Add local variable gud-find-expr.
2003-06-18 22:35:37 +00:00
Nick Roberts
c6c54ea8e9 (c-mode): Add local variable gud-find-expr. 2003-06-18 22:34:36 +00:00
Juanma Barranquero
5d538ce37e Add support for SQLite interpreter. 2003-06-17 20:58:37 +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
0a2d0bd4db New file. 2003-06-16 21:33:54 +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
Juanma Barranquero
0f9c2d466c Moved from lisp/. 2003-06-05 19:58:26 +00:00
Juanma Barranquero
ec91f7735c (tcl-mode): Set imenu-generic-expression to the value of
tcl-imenu-generic-expression instead of the symbol.
2003-06-05 19:47:26 +00:00
Richard M. Stallman
83b5c8e0e3 (compilation-next-error): When moving fwd,
compare position of point with the errors.
2003-06-04 09:31:46 +00:00
Markus Rost
7c3d5ad903 (ps-mode): Use autoload cookie in the standard way. 2003-06-03 04:15:06 +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
John Paul Wallington
5d648479ea (large-file-warning-threshold): Add type, groups. 2003-05-31 07:59:33 +00:00
Juanma Barranquero
5e046f6d57 Moved from lisp/. 2003-05-30 23:31:15 +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
Stefan Monnier
8bee10187c (perl-font-lock-syntactic-keywords): Match more cases of /.../ patterns. 2003-05-23 15:49:16 +00:00
Stefan Monnier
1d88c1b3cd (executable-set-magic): Remove unused vars point' and buffer-modified-p'. 2003-05-18 21:37:23 +00:00
Stefan Monnier
6612afc0d2 (tcl-indent-exp): Remove dead code.
(tcl-tab-always-indent): Default to tab-always-indent.
2003-05-17 22:43:51 +00:00
Stefan Monnier
bbce4eb45b (perl-tab-always-indent): Default to tab-always-indent.
(perl-end-of-function): Remove unsed var `npos'.
2003-05-17 22:38:13 +00:00
Stefan Monnier
2d045c916b (cpp-make-overlay-hidden): Don't make intangible. 2003-05-13 21:43:08 +00:00
Stefan Monnier
812fade808 (compile-internal): Use with-current-buffer.
(compilation-set-window-height): Use save-selected-window.
2003-05-13 21:37:28 +00:00
Stefan Monnier
96a483d954 (ada-xref-update-project-menu): Use easymenu.
(ada-goto-declaration-other-frame): Remove unused arg other-frame.
(ada-gdb-application): Remove unused vars comint-exec, in-post-mode,
and gud-gdb-massage-args.
2003-05-13 21:15:44 +00:00
Stefan Monnier
c3d50a3048 (c-lang-defvar-init-form-tail): This is actually not a constant. 2003-05-13 21:03:53 +00:00
Stefan Monnier
f4103aec45 (autoconf-current-defun-function): Copy the syntax table before modifying it. 2003-05-13 20:59:15 +00:00
Stefan Monnier
f7a2f2c654 (ada-in-comment-p, ada-in-string-p)
(ada-in-string-or-comment-p): Use line-beginning-position.
2003-05-13 20:48:15 +00:00
Juanma Barranquero
8df8710233 (c-lineup-argcont, c-lineup-gcc-asm-reg): Don't quote nil and t in docstrings. 2003-05-06 17:44:11 +00:00
Juanma Barranquero
15ca56993e (cperl-lineup): Don't quote nil and t in docstrings. 2003-05-06 17:43:22 +00:00
Juanma Barranquero
d7e170b3d2 (cpp-edit-list): Don't quote nil and t in docstrings. 2003-05-06 17:41:48 +00:00
Juanma Barranquero
33b522e057 (idlwave-complete-special): Don't quote nil and t in docstrings. 2003-05-06 17:40:52 +00:00
Juanma Barranquero
dccab430bb (tcl-explain-indentation): Don't quote nil and t in docstrings. 2003-05-06 17:39:21 +00:00
Juanma Barranquero
08815e25e5 (compile-internal): Don't quote nil and t in docstrings. 2003-05-06 17:35:37 +00:00
Juanma Barranquero
6f9a2614e7 (ada-xemacs): Variable removed, since it's better to use (featurep 'xemacs).
Removed warnings generated with Emacs 21.3.x (mostly by adding needed `require'
statements).
2003-05-04 19:55:38 +00:00
Juanma Barranquero
7abe197c30 (uniquify-buffer-name-style, uniquify-after-kill-buffer-p)
(uniquify-ask-about-buffer-names-p, uniquify-ignore-buffers-re)
(uniquify-min-dir-content, uniquify-separator, uniquify-trailing-separator-p):
Remove redundant group specification.
(uniquify-file-name-nondirectory): Delete.
(uniquify-rationalize-file-buffer-names): Simplify.
Use directory names as `filename' component of uniquify-item.
(uniquify-get-proposed-name): Adjust now that `filename' does not
include `base'.
2003-05-04 19:54:00 +00:00
Richard M. Stallman
c73fce9a2c (cperl-nonoverridable-face): Doc fix. 2003-05-03 13:53:41 +00:00
Juanma Barranquero
85a2313482 (ada-stmt-add-to-ada-menu): Moved to ada-mode.el.
(ada-template-map): Merged with the keymap handling in ada-mode.el.
2003-04-29 23:44:43 +00:00
Juanma Barranquero
ce20e709a2 (ada-prj-add-keymap): Moved to ada-mode.el directly. Add dependency on
ada-xref.el to avoid compilation warnings.
(ada-prj-get-prj-dir): Removed, no longer needed.
2003-04-29 23:43:00 +00:00
Juanma Barranquero
c94ca9e0b3 (ada-gnatls-args): New variable. Add support for specifying arguments to
gnatls.
(ada-initialize-runtime-library): Properly parse "." in the output of gnatls.
(ada-add-keymap): Removed, since this is now done in ada-mode.el itself.
(ada-add-ada-menu): Likewise.
(ada-set-default-project-file): New parameter KEEP-EXISTING.
(ada-prj-find-prj-file): New parameter FILE.
(ada-parse-prj-file): Take into account the ADA_INCLUDE_PATH and
ADA_OBJECTS_PATH environment variables.  Minor reorganization of the code
(ada-get-all-references): Add support for GNAT 3.16 cross-references.
2003-04-29 23:40:08 +00:00
Juanma Barranquero
f7a8090935 (ada-search-directories): Take into account ADA_INCLUDE_PATH for better
compatibility with GNAT.
(ada-contextual-menu): Menu defined through `easy-menu-define' instead.  Various
adjustments to the indentation engine (handling of subtypes, begin blocks,
etc.).
(ada-create-menu): Major rewrite of the handling of menus to use
`easy-menu-define' for cleaner code and better compatibility with XEmacs.  All
menus that were previously in ada-xref.el and ada-prj.el are now defined in this
package, which makes it easier to edit menus.
(ada-narrow-to-defun): Add support for `narrow-to-region'.  No longer
explicitely load ada-xref.el and ada-prj.el.  Use autoload statements instead.
2003-04-29 23:35:40 +00:00
Richard M. Stallman
0a08535e77 (scheme-mode-syntax-table): Use prefix syntax for ', `, comma, @ and #. 2003-04-24 01:41:45 +00:00
Glenn Morris
be35ca9f5e (dabbrev-case-fold-search): Add defvar for compiler.
(fortran-abbrev-start): Make XEmacs compatible.
2003-04-20 13:03:04 +00:00
Glenn Morris
7aee804746 (f90-font-lock-keywords-2): Use override for
font-lock-variable-name-face in declarations (so that strings in
declarations are over-ridden).  Highlight continuation characters.
(f90-indent-new-line): Remove direct call to f90-indent-line-no,
f90-update-line, since f90-indent-line calls these.
(f90-abbrev-start): Fix XEmacs compatibility.
2003-04-20 13:01:32 +00:00
Glenn Morris
0db701f029 (f90-looking-at-do, f90-find-breakpoint): Fix previous change. 2003-04-16 13:50:40 +00:00
Glenn Morris
0a39a75cc4 Comment changes.
(fortran-column-ruler): Minor doc change.
2003-04-16 11:10:03 +00:00
Glenn Morris
748dd5a8af (f90-indent-to, f90-indent-line-no)
(f90-no-block-limit, f90-end-of-block, f90-beginning-of-block)
(f90-comment-region, f90-indent-line, f90-indent-region)
(f90-find-breakpoint, f90-block-match): Trivial simplifications.
(f90-looking-at-do, f90-looking-at-select-case)
(f90-looking-at-if-then, f90-looking-at-where-or-forall): Drop
XEmacs 19 support and simplify.
(f90-indent-new-line): No need for case-fold-search.  Simplify.
(f90-fill-region): Make marker nil when done.  Simplify.
2003-04-16 11:08:58 +00:00
Dave Love
c5c3d778cc Moved from lisp. 2003-04-16 09:52:55 +00:00
Glenn Morris
a7113309ba (fortran-tab-mode-minor-mode-string): Delete this variable,
introduced in previous change.
(fortran-tab-mode-string): Change default value.
(fortran-mode): Use mode-line-process (rather than
minor-mode-alist) to indicate tab format code.
(fortran-analyze-file-format): Return fortran-tab-mode-default if
no match.
2003-04-15 20:44:19 +00:00
Glenn Morris
5b04210ced Whitespace changes, some re-ordering of code, trivial commentary change.
(fortran, fortran-indent, fortran-comment)
(fortran-tab-mode-default, fortran-continuation-indent)
(fortran-comment-indent-style, fortran-blink-matching-if)
(fortran-continuation-string, fortran-electric-line-number)
(fortran-break-before-delimiters, fortran-mode-hook)
(fortran-end-prog-re, fortran-imenu-generic-expression): Minor doc changes.
(fortran-tab-mode-minor-mode-string): New variable.
(fortran-tab-mode-string): Now customization is meaningful.
(fortran-column-ruler-fixed, fortran-column-ruler-tab)
(fortran-analyze-depth): Use defcustom.
(fortran-if-start-re, fortran-end-prog-re1, fortran-fill)
(fortran-break-line, fortran-prepare-abbrev-list-buffer)
(fortran-auto-fill): Add doc string.
(fortran-type-types): New constant (was local to let binding).
(fortran-font-lock-keywords-1, fortran-font-lock-keywords-2)
(fortran-font-lock-syntactic-keywords): Initialize in defvar.
(fortran-font-lock-keywords-3): Initialize in defvar.  Use 1+ now
depth of fortran-type-types has changed.  Remove extra and.
(fortran-mode-menu): Minor re-organization.  Use lookup-key.
(fortran-mode): Doc changes.  Some re-organization.  Use
fortran-tab-mode-minor-mode-string.
(fortran-comment-indent): Add doc string.  Move save-excursion. Use 1+.
(fortran-indent-comment, fortran-fill-statement): Change interactive spec.
Use unless.
(fortran-comment-region): Doc change.  Reverse logic of arg test.  Use zerop.
(fortran-abbrev-start, fortran-split-line)
(fortran-electric-line-number, fortran-indent-subprogram)
(fortran-strip-sequence-nos): Change interactive spec.
(fortran-remove-continuation): Add doc string.  Use when.
(fortran-numerical-continuation-char): Doc change.  Use 1+.
(fortran-previous-statement, fortran-next-statement)
(fortran-beginning-do, fortran-calculate-indent)
(fortran-end-do, fortran-end-if, fortran-beginning-if): Use zerop, 1+, 1-.
(fortran-blink-match, fortran-check-for-matching-do): Use when.
(fortran-indent-line): Change interactive spec.  Remove un-needed if.
Use when.
(fortran-indent-to-column): Doc change.  Use when, unless.
(fortran-find-comment-start-skip): No longer interactive.
(fortran-analyze-file-format): Minor doc change.  Remove un-needed setq.
(minor-mode-alist): Use add-to-list.
(fortran-fill-paragraph): Change interactive spec, doc string.
2003-04-15 19:22:31 +00:00
Glenn Morris
a729409a96 Whitespace changes, trivial commentary changes.
(f90, f90-indent, f90-program-indent, f90-continuation-indent)
(f90-indented-comment-re, f90-imenu-generic-expression)
(f90-mark-subprogram, f90-join-lines): Minor doc changes.
(f90-menu): Shift definition to initialization of f90-mode-map.
Add customization section.
(f90-mode): Minor doc change.  Do not call easy-menu-add.
Set `beginning-of-defun-function' and `end-of-defun-function' to
appropriate F90 functions.
(f90-indent-line, f90-indent-line, f90-indent-subprogram)
(f90-break-line, f90-do-auto-fill, f90-insert-end)
(f90-upcase-keywords, f90-capitalize-keywords)
(f90-downcase-keywords): Change interactive spec.
2003-04-15 19:18:23 +00:00
Glenn Morris
98110b1f02 (fortran-previous-statement): Check for fortran-continuation-string.
(fortran-calculate-indent): Do not add extra whitespace to strings
broken over lines.  Remove superfluous progn.
(fortran-fill): Handle long strings that must be broken over lines.
2003-04-13 13:11:24 +00:00
Glenn Morris
a259425b58 (f90-join-lines): Make it behave more like the standard function
`join-line' - join with previous line, unless an argument supplied.
Join comments correctly. No longer has a meaningful return
value, no longer fills (seems contradictory to join AND fill).
(f90-fill-region, f90-menu): Adapt for new f90-join-lines.
2003-04-12 20:43:58 +00:00
Glenn Morris
be550ccc61 (f90-abbrev-start): Only offer help if abbrev-mode is active. 2003-04-12 15:45:59 +00:00
Glenn Morris
1d97a48dc2 (fortran-abbrev-start): Only offer help if abbrev-mode is active. 2003-04-12 15:44:59 +00:00
Masatake YAMATO
36278af32a 2003-04-11 Masatake YAMATO <jet@gyve.org>
* progmodes/etags.el (select-tags-table-mode-map):
	Don't create new keymap. Instead copy from button-buffer-map.
	Bind push-button to `t' instead of binding
	select-tags-table-select directly

	* (tags-select-tags-table): New button.

 	* progmodes/etags.el (select-tags-table): Put
	a button for each selections.
2003-04-11 09:08:29 +00:00
Martin Stjernholm
1f645835e9 (c-symbol-key): Use POSIX char classes to match symbols in Emacs 21.
This makes CC Mode cope with the full range of identifier characters
in e.g. Java.
2003-04-07 22:45:18 +00:00
Masatake YAMATO
844062627c * progmodes/etags.el (tag-find-file-of-tag): Renamed from
find-file-of-tag to avoid name space pollution.
(tag-find-file-of-tag-noselect): Likewise.
(etags-list-tags, etags-tags-apropos): Use
tag-find-file-of-tag instead of find-file-of-tag.
2003-04-05 18:19:30 +00:00
Juanma Barranquero
79e01623a7 (find-file-of-tag-noselect, find-file-of-tag): New helper functions.
(snarf-tag-function): Doc string is changed.  Explained about new optional
argument, `use-explicit'.
(etags-snarf-tag): Added one optional argument `use-explicit'.
(file-of-tag-function): Doc string is changed.  Explained about new optional
argument, `relative'.
(file-of-tag): Doc string is changed.  Explained about new optional argument,
`relative'.  Pass `relative' to `file-of-tag-function'.
(etags-file-of-tag): Added new argument `relative`.
(list-tags): Set `buffer-read-only' to t after making the major mode
apropos-mode.
(etags-list-tags): Used `make-text-button' instead of `add-text-properties'.
Used `snarf-tag-function', `goto-tag-location-function' and `find-file-of-tag'
instead of `find-tag-other-window' (it's too simple).
(find-tag-in-order): Used `find-file-of-tag-noselect' instead of `find-file'.
(etags-tags-apropos): Used `find-file-of-tag-noselect' instead of `find-file'.
Do not use `etags-goto-tag-location` directly; use `goto-tag-location-function'
instead.  Print relative file paths instead of complete ones in *Tags List*
buffer, so lines in the buffer become shorter.
(etags-tags-apropos-additional): Use `make-text-button' instead of
`add-text-properties'.
2003-04-04 20:02:58 +00:00
Juanma Barranquero
89228b6326 Require button.el.
(etags-tags-apropos): Use make-text-button instead of add-text-properties.  Use
snarf-tag-function and etags-goto-tag-location instead of find-tag-other-window
(it's too simple).
2003-04-03 15:57:45 +00:00
Stefan Monnier
dfc42f38c1 (asm-calculate-indentation, asm-indent-line): New functions.
(asm-mode): Use them in indent-line-function.
Set tab-always-indent to nil to stay closer to previous tab behavior.
Set comment-add.  Remove space at end of comment-add.
(asm-newline): Obsolete.  Use newline-and-indent instead.
(asm-mode-map): Remove TAB binding.
(asm-code-level-empty-comment-pattern)
(asm-flush-left-empty-comment-pattern)
(asm-inline-empty-comment-pattern): Remove.
(asm-comment): Use newcomment functions instead.
(asm-colon): Don't tab if colon is not after a label.
(asm-line-matches, asm-pop-comment-level): Remove.
2003-04-02 16:48:11 +00:00
Stefan Monnier
c7d565f4dc (asm-mode-syntax-table): Setup entries that do not depend on asm-comment-char.
(asm-mode-map): Declare and init at the same time.
(asm-code-level-empty-comment-pattern)
(asm-flush-left-empty-comment-pattern)
(asm-inline-empty-comment-pattern): Use \s< so they do not depend
on asm-comment-char.  Turn them into constants.
(asm-mode): Simplify.
(asm-line-matches): Remove unused arg.
2003-04-01 23:09:13 +00:00
Juanma Barranquero
3d29fd3365 (asm-mode): Support skipping C lang style comments. 2003-03-31 20:16:01 +00:00
Martin Stjernholm
e33c01bb57 (c-parse-state): Added kludge to avoid an infinite loop when Emacs'
open-paren-in-column-zero rule kicks in and causes the sexp functions
to misbehave.
2003-03-23 01:58:30 +00:00
Kim F. Storm
d6156ce844 (cperl-electric-backspace): Add delete-selection property. 2003-03-22 00:40:00 +00:00
Juanma Barranquero
0b51ba8a5a (makefile-font-lock-syntactic-keywords): New variable.
(makefile-mode): Use it for value of font-lock-syntactic-keywords.
2003-03-19 22:25:11 +00:00
Thien-Thi Nguyen
c676c4e507 (scheme-mode-syntax-table): Construct
w/o using `with-syntax-table'.
2003-03-10 11:35:43 +00:00
Thien-Thi Nguyen
334f206c56 (dcl-font-lock-keywords, dcl-font-lock-defaults): New vars.
(dcl-mode): Make and init local var `font-lock-defaults'.
2003-03-06 23:14:23 +00:00
Juanma Barranquero
3dcb36b717 Version 3.32.12 released. Major revision. 2003-03-05 07:51:51 +00:00
Francesco Potortì
e3c46ed647 (vhdl-comment-uncomment-region): Remove two comment characters at start
of line instead of one.
2003-03-04 14:43:03 +00:00
Stefan Monnier
8fc98fc491 Move abbrev loading to after the fun it uses.
(simula-install-standard-abbrevs): Use dolist.
Use system-flag when calling define-abbrev.
2003-02-25 01:45:55 +00:00
Andreas Schwab
33f8eee3ed (makefile-font-lock-keywords): Protect
shell variable references by requireing that $ is not preceded by
another $.
2003-02-24 23:49:27 +00:00
Stefan Monnier
f739b53bda Merge changes from CPerl-5.0.
(toplevel): Require man.
(condition-case): Don't autoload tmm-prompt (it's in loaddefs.el).
(cperl-electric-backspace-untabify): New var.
(cperl-electric-backspace): Use it.
(cperl-vc-header-alist): Extract numeric version from the Id.
(cperl-build-manpage): New fun.
(cperl-menu): Use it.  Add toggle-autohelp.
(cperl-mode) <defun-prompt_regexp>: Understand prototypes.
(cperl-electric-brace): Use `cperl-after-block-p' for detection.
(cperl-electric-keyword): Make $if (etc: "$@%&*") non-electric.
'(' after keyword would insert a doubled paren.
(cperl-calculate-indent): Update syntaxification before checks.
Fix wrong indent of blocks starting with POD.
(cperl-find-pods-heres): If no end of HERE-doc found, mark to the end
of buffer.  This enables recognition of end of HERE-doc "as one types".
Require "\n" after trailing tag of HERE-doc.
\( made non-quoting outside of string/comment (gdj-contributed).
Likewise for \$.  Remove `here-doc-group' text property at start
(makes this property reliable).
Text property `first-format-line' ==> t.
Do not recognize $opt_s and $opt::s as s///.
(cperl-after-block-p): Optional arg pre-block to check for a pre-block
Recognize `continue' blocks too.
(cperl-after-expr-p): Update syntaxification before checks.  Work after
here-docs, formats, and PODs too (affects many electric constructs).
(cperl-fix-line-spacing): Allow "_" in $vars of foreach etc.
(cperl-perldoc): Use case-sensitive search.
2003-02-23 02:19:02 +00:00
Stefan Monnier
83261a2f13 Merge changes from CPerl-4.35.
(cperl-xemacs-p): Move.
(cperl-can-font-lock): New var to replace window-system.
(cperl-enable-font-lock): Use it.
(cperl-use-major-mode): New var.
(cperl-mode): Use it.
(cperl-calculate-indent): Remove code whose removal was missed
in some earlier merge.
(cperl-tags-hier-init): Use display-popup-menus-p.
2003-02-23 01:42:24 +00:00
Juanma Barranquero
a1dbcb79d9 (ebrowse-show-file-name-at-point): Remove useless check. 2003-02-20 17:07:32 +00:00
Juanma Barranquero
3a0ab10669 Revert last change. 2003-02-18 16:27:04 +00:00
Juanma Barranquero
6c019d3b03 (defcustom-c-stylevar): Fix character constant. 2003-02-18 15:48:21 +00:00
Juanma Barranquero
0fe6068fef (cperl-electric-keyword, cperl-electric-pod, cperl-do-auto-fill): Fix character
constants.
2003-02-18 12:49:26 +00:00
Dave Love
6f4070e03d (ebrowse-output): Don't use gensym. 2003-02-17 23:16:52 +00:00
Juanma Barranquero
2d0dc708e3 (idlwave-show-begin): Fix use of character constant. 2003-02-14 09:59:13 +00:00
Juanma Barranquero
07cb2aa33c (cperl-next-bad-style): Fix use of character constant. 2003-02-14 09:58:50 +00:00
Glenn Morris
0ab47edc28 (fortran-fill): Fill lines that do not have comments. 2003-02-12 21:52:37 +00:00
Juanma Barranquero
d58ef8a6f3 (makefile-font-lock-keywords): Simplify last change. 2003-02-12 15:49:41 +00:00
Stefan Monnier
2bcfe15e42 (fortran-mode): Set comment-use-syntax.
(fortran-fill-paragraph): Use fill-comment-paragraph.
2003-02-12 15:23:21 +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
Juanma Barranquero
61bc75ab6c (makefile-font-lock-keywords): Fontify single character variable references, but
protect shell variables references.
(makefile-mode): Make `$' be punctuation in font-lock-defaults.
2003-02-11 23:47:11 +00:00
Stefan Monnier
32fda8c952 Docstring typo. 2003-02-11 21:40:32 +00:00
Stefan Monnier
ebc6b37c47 (find-tag-tag): Move (default foo) to before `:' in the prompt.
(find-tag): Make sure we move point in the proper window.
2003-02-11 21:40:17 +00:00
Stefan Monnier
a8c9594b98 (meta-fill-paragraph): Remove.
(meta-common-initialization): Don't set fill-paragraph-function
now that fill-paragraph takes care of comments.
2003-02-11 21:24:35 +00:00
Stefan Monnier
9fce950d28 (scheme-mode-syntax-table): Don't switch the current buffer's syntax-table. 2003-02-11 21:23:00 +00:00
Stefan Monnier
e284737dc5 (simula-font-lock-syntactic-keywords): New var.
(simula-font-lock-keywords-1): Simplify.
(simula-font-lock-keywords-2): Use regexp-opt.
(simula-emacs-features): Remove.
(simula-mode-syntax-table): Setup %...\n as comment style b.
(simula-mode-map): Remove compatibility cruft.
(simula-keep-region-active): Remove.
(simula-popup-menu): Simplify.
(simula-mode): Move abbrev-table setup to top-level.
(simula-match-string-or-comment): Remove.
2003-02-11 21:19:36 +00:00
Stefan Monnier
a2c6faead5 (tcl-omit-ws-regexp): Correctly handle cases like `proc foo {a {b c} d} {'.
(tcl-mode): Make comment-start-skip more selective.
2003-02-11 21:04:50 +00:00
Juanma Barranquero
ab3256edb6 (ebnf2ps): Fix typo.
(ebnf-syntactic): Change group name and tag from "ebnf-syntatic".
(ebnf-syntax, ebnf-lex-comment-char, ebnf-lex-eop-char, ebnf-terminal-regexp)
(ebnf-case-fold-search, ebnf-iso-alternative-p, ebnf-iso-normalize-p)
(ebnf-yac-ignore-error-recovery): Add to group "ebnf-syntactic", not
"ebnf-syntatic".
(ebnf-optimize, ebnf-print-buffer, ebnf-print-region, ebnf-spool-buffer)
(ebnf-spool-region, ebnf-eps-buffer, ebnf-eps-region, ebnf-syntax-buffer)
(ebnf-syntax-region, ebnf-generate-region): Fix typo.
2003-02-10 09:59:35 +00:00
Juanma Barranquero
f504d5162f Fix typo in comment. 2003-02-10 09:56:14 +00:00
Juanma Barranquero
18ac078250 (ebnf-optimize, ebnf-optimize1): Fix typo. 2003-02-10 09:55:17 +00:00
Martin Stjernholm
ea7038228b (c-set-offset): Don't find a default syntactic element through
syntactic analysis if called outside a CC Mode buffer.
2003-02-10 00:51:25 +00:00
Martin Stjernholm
fd8771f59f (c-basic-common-init): Install `c-fill-paragraph' on
`fill-paragraph-function'.  Although it's not the normal way to call
it in a CC Mode buffer it makes a direct call to `fill-paragraph' work
better.
2003-02-09 01:46:04 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Andreas Schwab
769c4c6377 (asm-font-lock-keywords): Allow arbitrary
words separated by dots.  Match optional parenthesized word at
start of line.
2003-02-02 17:35:47 +00:00
Juanma Barranquero
4e7fbbc69b Version 2.2b 2003-01-31 20:43:22 +00:00
Juanma Barranquero
0c602a0f28 (cperl-beautify-level, cperl-beautify-regexp): Fix use of
`prefix-numeric-value'.
(cperl-calculate-indent): Fix typo.
2003-01-29 12:18:13 +00:00
Martin Stjernholm
e2c21e666f (c-require-final-newline): Made this variable an alist to specify a value
for each language.  The default value causes `require-final-newline' to be
set to t only in languages where the standard requires a final newline.
2003-01-28 00:41:35 +00:00
Juanma Barranquero
b2f6a2ab27 (ebrowse-draw-tree-fn): Fix typo. 2003-01-27 08:50:00 +00:00
Juanma Barranquero
82539cb7d2 (c-offsets-alist): Fix typo. 2003-01-27 08:48:02 +00:00
Juanma Barranquero
4793c36980 (c-make-styles-buffer-local): Fix typo. 2003-01-27 08:47:18 +00:00
Martin Stjernholm
980a8a00df (c-require-final-newline): Added a variable to make the initialization of
require-final-newline' more configurable.
2003-01-26 21:36:39 +00:00
Juanma Barranquero
1825567708 (asm-mode): Added syntax table entries for /* */ comments. 2003-01-23 09:12:03 +00:00
Richard M. Stallman
34a463f1b1 (octave-mode-map): Change C-c i bindings to C-c C-i.
Duplicate its bindings with last char a ctl char.
2003-01-20 08:59:40 +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
Juanma Barranquero
5cc679abf3 Don't make faces depend on window-system. 2003-01-18 15:32:16 +00:00
Richard M. Stallman
9ed2ab9fca (compilation-revert-buffer): If buffer has a file, revert it in the normal way. 2003-01-13 08:02: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
1ebc190a84 (makefile-font-lock-keywords): Highlight
automatic variable references enclosed in parens and optionally
suffixed by F or D.
2002-12-28 01:04:02 +00:00
Juanma Barranquero
311ff235fa (compile-reinitialize-errors): Don't mark the buffer as modified unless it
really is.
2002-12-14 23:35:19 +00:00
Markus Rost
37bf89abbd (compilation-menu-map): Use `kill-compilation' to stop compilation. 2002-12-13 22:37:37 +00:00
Glenn Morris
6f9a4ce206 (fortran-mode-abbrev-table): Handle `define-abbrev' with either 5
or 6 arguments.
2002-12-12 01:06:54 +00:00
Pavel Janík
edf997018e (antlr): New URL. 2002-12-11 06:58:54 +00:00
Richard M. Stallman
3b5fb045df (compilation-enter-directory-regexp-alist)
(compilation-leave-directory-regexp-alist): Match byte compiler output.
2002-12-07 21:34:44 +00:00
Richard M. Stallman
b271ee8d15 Simply require wid-edit and custom in eval-when-compile. 2002-12-04 11:49:10 +00:00
Richard M. Stallman
6748b96c72 Don't require imenu. 2002-12-04 11:48:12 +00:00
Richard M. Stallman
547cebf8d5 Don't require cl.
(c-delete-duplicates): New function.  Use instead of delete-duplicates.
2002-12-04 11:47:46 +00:00
Richard M. Stallman
c0316672c0 (cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
confused compiler warning.
2002-12-04 11:46:31 +00:00
Richard M. Stallman
d4fb162228 (makefile-font-lock-keywords): Highlight more make keywords:
defined, endef, override, export, unexport and vpath.
2002-12-02 16:16:52 +00:00
Juanma Barranquero
f4df536d0a Added LINTER support.
(sql-linter-program): New variable.
(sql-linter-options): New variable.
(sql-mode-menu): Added Linter keywords.
(sql-mode-linter-font-lock-keywords): New variable.
(sql-highlight-linter-keywords): New function.
(sql-linter): New function.
(sql-ms-options): New variable.
(sql-ms): Use it.
2002-11-21 08:32:06 +00:00
Markus Rost
a152344b14 (defgroup vhdl-related): Declare the members here rather than with
custom-add-to-group.  This is the intended way of using defgroup and
also lets custom-make-dependencies do its job.
(defgroup vhdl-highlight-faces): Ditto.
2002-11-19 17:22:52 +00:00
Markus Rost
d408fed8eb (compilation-shell-minor-mode): Add group.
(compilation-minor-mode):  Add group.
2002-11-18 04:14:26 +00:00
Kenichi Handa
7ebaefd8f5 Undo previous change. 2002-11-18 00:54:30 +00:00
Markus Rost
a27b41aba3 (makefile-space-face): Fix typo in group name. 2002-11-17 22:37:11 +00:00
Martin Stjernholm
6b5bbb986b (cc-bytecomp-defun): Fixed bug that caused existing function
definitions to be overridden by phonies when the bytecomp environment
is restored.
2002-11-16 01:37:44 +00:00
Juanma Barranquero
841e0fe4ae (find-tag-default): Copy text at point without properties. 2002-11-14 07:18:12 +00:00
Kenichi Handa
8d3c687c6e Don't cc-bytecomp-defun char-table-p. 2002-11-14 07:06:04 +00:00
Richard M. Stallman
ccc41714e7 (compilation-error-regexp-alist): Don't include colon and space after
a file name as part of the name.
2002-11-13 11:51:04 +00:00
Stefan Monnier
2a4407be87 (perl-hanging-paren-p): New fun.
(perl-indent-line): Look at the open-paren to indent a close-paren.
(perl-calculate-indent): Try to better indent args after hanging paren.
Remove special code for open-paren-in-column-0.
2002-11-12 21:03:37 +00:00
Stefan Monnier
4282eba157 (grep-default-command): New fun.
(grep): Use it.
(compilation-menu-map): New var.
(compilation-minor-mode-map, compilation-shell-minor-mode-map): Use it.
(compilation-mode-map): Simplify.
(compilation-shell-minor-mode, compilation-minor-mode):
Use define-minor-mode.
2002-11-07 19:16:15 +00:00
Markus Rost
3190299741 (grep-compute-defaults): Move down. 2002-11-07 17:16:09 +00:00
Markus Rost
3755bc9cad (grep-compute-defaults): Undo previous change.
(grep-command, grep-find-command, grep-tree-command): Allow value nil.
Do not declare :get property.
(grep-use-null-device): Doc fix.  Fix type.  Do not declare :get
property.
2002-11-07 17:05:01 +00:00
Stefan Monnier
cd21c04ac9 (tcl-mode): Don't set paragraph-start,
paragraph-separate, comment-column, and fill-paragraph-function.
Simplify outline-regexp.
(tcl-do-fill-paragraph): Remove.
2002-11-07 15:22:49 +00:00
Dave Love
0ec2c3509c (syntax-case): Define
scheme-indent-function.
2002-10-29 18:48:30 +00:00
Miles Bader
5cc2d13754 (makefile-warn-continuations): Don't barf when there _aren't_ any
suspicious continuations.
2002-10-28 08:17:27 +00:00
Juanma Barranquero
dc2feacf15 (grep-find-use-xargs): Fix docstring. Patch from Matt Swift
<swift@alum.mit.edu>.
2002-10-28 07:30:33 +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
Richard M. Stallman
a11e28000a (makefile-cleanup-continuations): Default for variable is nil.
(makefile-warn-continuations): New function.
(makefile-mode): Put it on write-file-functions.
2002-10-26 22:49:12 +00:00
Stefan Monnier
42be8f2eca (perl-mode-syntax-table): Change $ back to just "/" instead of "/ p".
(perl-font-lock-syntactic-keywords): Use ". p" for the `$'.
2002-10-18 21:35:05 +00:00
Juanma Barranquero
6c83d99f87 Fix typo in comment. 2002-10-18 08:52:37 +00:00
Juanma Barranquero
b554bbff24 (sh-indent-for-then): Fix typo. 2002-10-18 08:18:29 +00:00
Juanma Barranquero
775591f767 (idlwave-region-active-p): Fix typo. 2002-10-18 08:12:35 +00:00