1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-07 06:22:32 -08:00
Commit graph

2413 commits

Author SHA1 Message Date
Nick Roberts
086d0593ec (gdb-inferior-io-mode-map): Bind gdb-inferior-io-eof to C-d. 2005-05-23 23:38:29 +00:00
Juanma Barranquero
a4632380fa (c-guess-basic-syntax): Remove spurious call to `zerop'. 2005-05-23 09:16:17 +00:00
Martin Stjernholm
3efc2cd768 2005-05-23 Martin Stjernholm <bug-cc-mode@gnu.org>
CC Mode update to 5.30.10:

	* cc-fonts.el (c-font-lock-declarators): Fixed bug where the point
	could go past the limit in decoration level 2, thereby causing
	errors during interactive fontification.

	* cc-mode.el (c-make-inherited-keymap): Fixed cc-bytecomp bug when
	the file is evaluated interactively.

	* cc-engine.el (c-guess-basic-syntax): Handle operator
	declarations somewhat better in C++.

	* cc-styles.el, cc-mode.el (c-run-mode-hooks): New helper macro to
	make use of run-mode-hooks' which has been added in Emacs 21.1.

	(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode,
	awk-mode): Use it.

	(make-local-hook): Suppress warning about obsoleteness.

	* cc-engine.el, cc-align.el, cc-cmds.el
	(c-append-backslashes-forward, c-delete-backslashes-forward,
	c-find-decl-spots, c-semi&comma-no-newlines-before-nonblanks):
	Compensate for return value from forward-line' when it has moved
	but not to a different line due to eob.

	* cc-engine.el (c-guess-basic-syntax): Fixed anchoring in
	objc-method-intro' and objc-method-args-cont'.

2005-05-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode update to 5.30.10:

	* cc-mode.el, cc-engine.el, cc-align.el: Change the FSF's address
	in the copyright statement.  Incidentally, change "along with GNU
	Emacs" to "along with this program" where it occurs.

	* cc-mode.el: Add a fourth parameter t' to the awk-mode autoload,
	so that it is interactive, hence can be found by M-x awk-mode
	whilst cc-mode is yet to be loaded.  Reported by Glenn Morris
	<gmorris+emacs@ast.cam.ac.uk>.

	* cc-awk.el: Add character classes (e.g. "[:alpha:]") into AWK
	Mode's regexps.

2005-05-23  Kevin Ryde  <user42@zip.com.au>:

	* cc-align.el (c-lineup-argcont): Ignore conses for {} pairs from
	c-parse-state, to avoid a lisp error (on bad code).
2005-05-23 00:03:59 +00:00
Richard M. Stallman
6ef254eca4 (list-tags): Use with-no-warnings. 2005-05-22 13:51:28 +00:00
Nick Roberts
453b7959ae (gdb-info-locals-handler): Make regexps
more general and work when GDB variable "print pretty" is on,
as with Emacs, for example.
2005-05-22 12:37:24 +00:00
Richard M. Stallman
a527b75360 (idlwave-doc-header): Use insert-file-contents. 2005-05-21 04:55:51 +00:00
Richard M. Stallman
adf8a02eb3 (flymake-makehash): Use with-no-warnings. 2005-05-21 04:53:14 +00:00
Daniel Pfeiffer
774cd45416 (makefile-imenu-generic-expression): Use function to find dependencies, because regexp alone is so complex, it easily goes into an endless loop.
(makefile-makepp-mode): Also add submenu for Perl functions defined in the makefile.
(makefile-bsdmake-mode): Special imenu-generic-expression no longer needed, due to function call.
(makefile-match-dependency): Take BOUND into account when checking if we're through.
2005-05-21 02:46:37 +00:00
Stefan Monnier
4e19eff09a (vhdl-font-lock-match-item): Simplify regexp. 2005-05-20 13:33:13 +00:00
Stefan Monnier
fe67016b3a (sh-mode, sh-get-word): Minor regexp fixes. 2005-05-20 13:28:38 +00:00
Juanma Barranquero
f530778210 Specify missing group (and type, if simple) in defcustom. 2005-05-19 19:06:19 +00:00
Luc Teirlinck
620d3304e2 (compilation-finish-function): Fix defvar. 2005-05-19 16:53:26 +00:00
Richard M. Stallman
e1c45277c5 (makefile-mode): Use run-mode-hooks. 2005-05-19 15:46:19 +00:00
Richard M. Stallman
3c9e7f42ca (compilation-finish-function): Mark obsolete. 2005-05-19 15:38:27 +00:00
Daniel Pfeiffer
dfa89b5db8 (makefile-add-this-line-targets): Simplify and integrate into `makefile-pickup-targets'.
(makefile-add-this-line-macro): Simplify and integrate into `makefile-pickup-macros.
(makefile-pickup-filenames-as-targets): Simplify.
(makefile-previous-dependency, makefile-match-dependency): Don't stumble over `::'.
2005-05-19 02:20:34 +00:00
Daniel Pfeiffer
5c8b544281 (makefile-previous-dependency, makefile-match-dependency): Check for := (and in bsd mode also !=) to give a better result, even when font-lock is not on. 2005-05-18 20:12:10 +00:00
Juanma Barranquero
1902b5b60b Replace set-window-dot' by set-window-point'. 2005-05-18 10:20:51 +00:00
Juanma Barranquero
c647adda60 Replace send-string' by process-send-string'; replace send-region' by process-send-region'. 2005-05-18 10:19:31 +00:00
Daniel Pfeiffer
8ade3c25b7 (makefile-macroassign-regex, makefile-make-font-lock-keywords): Also fontify plain strings assigned to variables, mostly so that a colon has a face and is thus not taken as a dependency separator.
(makefile-mode): Cancel `font-lock-support-mode', because blocks to be fontified in one piece can be too long for JIT.  Makefiles are never *that* big.
2005-05-17 21:37:59 +00:00
Daniel Pfeiffer
0b11ce59ee (makefile-dependency-skip): New variable.
(makefile-previous-dependency): Inline the new matcher, because it is too complex to work in both directions.
(makefile-match-dependency): Eliminate `backward' arg (see above). Completely reimplemented so as to not sometimes go into an endless loop.  It should also be more efficient, because first it only searches for `:', instead of applying the very complex regexp.
2005-05-17 20:45:26 +00:00
Daniel Pfeiffer
92984345bc (makefile-dependency-regex): Turn it into a var, and refine it to mask one more level of nested vars.
(makefile-rule-action-regex): Turn it into a var, and refine it so it recognizes backslashed continuation lines as belonging to the same command.
(makefile-macroassign-regex): Refine it so it recognizes backslashed continuation lines as belonging to the same command.
(makefile-var-use-regex): Don't look at the next char, because it might be the same one to be skipped by the initial [^$], leading to an overlooked variable use.
(makefile-make-font-lock-keywords): Remove two parameters, which are now variables that some of the modes set locally.  Handle dependency and rule action matching through functions, because regexps alone match too often.  Dependency matching now comes last, so it can check, whether a colon already matched something else.
(makefile-mode): Inform that font-lock improves makefile parsing capabilities.
(makefile-match-dependency, makefile-match-action): New functions.
2005-05-16 20:13:09 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Nick Roberts
2b9688f62f (gud-tooltip-mode): Add gud prefix to
tooltip-change-major-mode.
(gud-tooltip-print-command): Remove case where gud-minor-mode
is gdb ("--fullname").
(gud-tooltip-tips): Turn GUD tooltips off for this case and
explain to user.
2005-05-16 06:42:37 +00:00
Nick Roberts
8b71e4d180 (compilation-setup): Set local value of
overlay-arrow-string to "" always.
(compilation-set-window): Left fringe then don't scroll. No left
fringe then no arrow and scroll message to top.
(compilation-context-lines): Adjust doc string accordingly.
2005-05-16 00:01:46 +00:00
Richard M. Stallman
bbf87c2985 (c-literal-faces): Add font-lock-comment-delimiter-face. 2005-05-14 11:30:27 +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
Daniel Pfeiffer
9c859203d9 (makefile-targets-face, makefile-shell-face, makefile-makepp-perl-face): New faces.
(makefile-dependency-regex): Fix it to not make the colon in $(var:a=b) special.
(makefile-rule-action-regex): New regexp for highlighting embedded Shell strings.
(makefile-macroassign-regex): Handle != for highlighting as embedded Shell strings.
(makefile-var-use-regex): New const.
(makefile-statements, makefile-automake-statements)
(makefile-gmake-statements, makefile-makepp-statements)
(makefile-bsdmake-statements): New consts.
(makefile-make-font-lock-keywords): New function.
(makefile-automake-font-lock-keywords)
(makefile-gmake-font-lock-keywords)
(makefile-makepp-font-lock-keywords)
(makefile-bsdmake-font-lock-keywords): New consts.
(makefile-mode-map): Add switchers between the various submodes.
(makefile-mode): Document the availability of the variants.
(makefile-automake-mode, makefile-gmake-mode)
(makefile-makepp-mode, makefile-bsdmake-mode): New derived modes.
2005-05-13 07:51:15 +00:00
Luc Teirlinck
0f64661897 (inferior-lisp-mode-hook, inferior-lisp-load-hook): Convert defcustoms
back to defvars.
2005-05-13 02:28:52 +00:00
Kim F. Storm
5ba65c038f (c-basic-matchers-before): Don't apply
font-lock-negation-char-face to ! in !=.
2005-05-12 08:57:42 +00:00
Dan Nicolaescu
8cec35c42e (sh-mode-default-syntax-table): Set the
syntax of $ to "'" (quote).
2005-05-11 22:57:25 +00:00
Stefan Monnier
ba47dcb288 (executable-find): Move to files.el. 2005-05-11 16:42:40 +00:00
Richard M. Stallman
3f0f48c040 (sh-indent-for-do): Default to 0. 2005-05-10 09:13:04 +00:00
Richard M. Stallman
4d9db685ef (ada-adjust-case-skeleton): Moved from ada-stmt.el.
(ada-mode): Add ada-adjust-case-skeleton to skeleton-end-hook.
2005-05-10 09:12:40 +00:00
Richard M. Stallman
7f2b9f61c5 (ada-adjust-case-skeleton): Moved to ada-mode.el.
(ada-stmt-mode-hook): Deleted; do the work in ada-mode.
2005-05-10 09:11:43 +00:00
Nick Roberts
df94fa1e38 (gud-tooltip-mode): Require tooltip to be safe.
(gud-tooltip-print-command): Add gdbmi case.
(gud-tooltip-tips): Call gdb-tooltip-print-1 first if there is
preprocessor info.
2005-05-09 21:55:33 +00:00
Nick Roberts
89d8189aa8 (gdb-macro-info): New variable.
(gdb-source-info): Check for preprocessor info.
(gdb-tooltip-print-1): New function. Don't print tooltip if it is
a macro for a function.
found (user might have used GDB dir command).
(gdb-info-breakpoints-custom): Try to find file again if not already
(gdb-get-location): Update gdb-location-alist correctly for change
to gdb-info-breakpoints-custom.
2005-05-09 21:54:47 +00:00
Eli Zaretskii
09e224171a Fix file's header line. 2005-05-07 16:21:12 +00:00
Eli Zaretskii
48778af49a (compilation-setup): Set overlay-arrow-string to an empty string
on text terminals.
2005-05-07 16:18:36 +00:00
Nick Roberts
226c2e4066 (gdb-tooltip-print): Moved from tooltip.el.
(gdb-cpp-define-alist-flags): Doc fix.
(gdb-set-gud-minor-mode-1): Only prepare GUD tooltips if
gud-tooltip-mode is t.
2005-05-06 22:12:34 +00:00
Nick Roberts
ce38ddb8ae Move code for GUD tooltips from tooltip.el.
(require): CL needed to compile case.
(gud-tooltip-mode): Use to toggle GUD tooltips unstead of
tooltip-gud-tips-p. Make it a minor-mode.
(gud-find-file): Only prepare GUD tooltips if gud-tooltip-mode is t.
(gud-menu-map): GUD tooltips use gud-tooltip-mode now.
(gud-tooltip-modes, gud-tooltip-display, gud-tooltip-echo-area)
(gud-tooltip-change-major-mode)
(gud-tooltip-activate-mouse-motions-if-enabled)
(gud-tooltip-mouse-motions-active, gud-tooltip-activate-mouse-motions)
(gud-tooltip-mouse-motion, gud-tooltip-toggle-dereference)
(gud-tooltip-original-filter, gud-tooltip-dereference)
(gud-tooltip-event, tooltip-toggle-gud-tips)
(gud-tooltip-process-output, gud-tooltip-print-command)
(gud-tooltip-tips): Moved from tooltip.el.
2005-05-06 22:10:50 +00:00
Juanma Barranquero
cf4fa77aff (idlwave-do-context-help1, idlwave-highlight-linked-completions): Replace
`assoc-ignore-case' by `assoc-string'.
2005-05-06 19:25:57 +00:00
Eli Zaretskii
83ef7c48bd (gdb-cpp-define-alist-program): Doc fix.
Remove the redundant test for ms-dos.
2005-05-06 12:47:54 +00:00
Eli Zaretskii
ab3290cb98 (c-macro-preprocessor): Use locate-file to look for the preprocessor
with exec-suffixes.  If not found in standard places, look in exec-path.
Remove most of the tests that used system-type.
2005-05-06 12:32:16 +00:00
Daniel Pfeiffer
9ed9fd3572 Avoid $! for font-lock-negation-char-face. 2005-05-05 19:20:03 +00:00
Daniel Pfeiffer
10f518f703 (makefile-font-lock-keywords): Use font-lock-negation-char-face. 2005-05-05 19:07:39 +00:00
Daniel Pfeiffer
eb6121fce5 (cperl-init-faces): Use font-lock-negation-char-face. 2005-05-05 19:04:39 +00:00
Daniel Pfeiffer
d5f2a89966 (sh-font-lock-keywords): Use font-lock-negation-char-face. 2005-05-05 19:03:32 +00:00
Daniel Pfeiffer
bd8cf50578 (c-cpp-matchers): Use font-lock-negation-char-face. 2005-05-05 19:02:47 +00:00
Juanma Barranquero
1c1d2dc88a (ebrowse-install-1-to-9-keys, ebrowse-print-statistics-line,
ebrowse-electric-position-mode-hook): Fix typo in docstring.
2005-05-05 11:04:51 +00:00