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

349 Commits

Author SHA1 Message Date
Stefan Monnier
bfd271b577 Paren typo. 2004-04-13 23:16:57 +00:00
Stefan Monnier
9da85ee5a0 (compilation-minor-mode-map)
(compilation-shell-minor-mode-map, compile-mouse-goto-error)
(compile-goto-error): Re-merge the mouse and non-mouse commands.
2004-04-13 23:16:29 +00:00
Daniel Pfeiffer
b3a7f48f30 (compilation-setup): Localize overlay-arrow-position.
(compilation-sentinel): Restructure code equivalently.
(compilation-next-error): Find message on same line after point if
not found before point.
(compile-mouse-goto-error): Restore function so that compilation
buffer need not be current and use compile-goto-error.
(compile-goto-error): Restore function.
(next-error): Set overlay-arrow-position.
(compilation-forget-errors): Don't localize already local
compilation-locs and remove FIXME about refontifying.
2004-04-13 22:46:18 +00:00
Stefan Monnier
912f0c34b2 (compile-goto-error): Select the buffer/window corresponding to the event. 2004-04-12 23:02:48 +00:00
Stefan Monnier
544dccaa20 (compilation-mode-font-lock-keywords): Fix test not to treat nil as a function. 2004-04-12 04:36:01 +00:00
Stefan Monnier
91fa27cd32 (compilation-mode-font-lock-keywords):
Redo one more thing that I didn't notice Daniel had undone.
2004-04-08 22:16:14 +00:00
Stefan Monnier
583a15bb15 Require CL.
(compilation-mode-font-lock-keywords): Re-install the "line as function" patch.
2004-04-07 19:34:11 +00:00
Daniel Pfeiffer
f6164cdd52 (compilation-warning-face, compilation-info-face, compilation-skip-threshold)
(compilation-skip-visited, compilation-context-lines): Declare :version when added to Emacs.
(compilation-error-regexp-alist-alist): Extend caml and irix.
(compilation-setup): Fix if font-locked w/o font-lock-defaults.
(compilation-mode-font-lock-keywords): Temporarily undo line as function patch, which wasn't ready.
2004-04-07 12:57:04 +00:00
Stefan Monnier
c536bb3944 (font-lock): Don't require any more.
(compilation-error-properties, compilation-start, compilation-sentinel)
(compilation-filter, next-error): Use with-current-buffer.
(compilation-skip-to-next-location, compilation-skip-threshold)
(compilation-skip-visited): Move to silence the byte-compiler.
(compilation-setup): Simplify.
(compilation-next-error): Use line-(beginning|end)-position.
Make sure `pt' is non-nil before using compilation-loop.
(compile-goto-error): Add optional event arg.  Use it.
(compile-mouse-goto-error): Make it an alias of compile-goto-error.
(compilation-minor-mode-map, compilation-shell-minor-mode-map):
Update the binding for mouse-2.
(first-error): Set compilation-current-error to nil rather than bob.
(compilation-parsing-end, compilation-parse-errors-function)
(compilation-error-list, compilation-old-error-list):
"New" compatibility variables.
(compile-buffer-substring, compilation-compat-error-properties)
(compilation-compat-parse-errors, compilation-forget-errors):
New compatibility functions.
(compilation-mode-font-lock-keywords): Use them.
2004-04-04 12:56:01 +00:00
Daniel Pfeiffer
51c8ad03e0 C-x ` fixes 2004-04-01 10:42:04 +00:00
Daniel Pfeiffer
b13a305e01 restore (require 'font-lock) which is still needed 2004-03-28 13:23:39 +00:00
Daniel Pfeiffer
24299582eb doc fixes and restore optionality of next-error's arg 2004-03-28 08:32:16 +00:00
Kim F. Storm
043442b4f3 (compilation-start): Always set compilation-last-buffer and return it. 2004-03-19 00:21:43 +00:00
Stefan Monnier
0cb687c094 (compilation-error-regexp-alist-alist): Whitespace fixup. 2004-03-11 22:46:54 +00:00
Stefan Monnier
7837c24765 (compile-auto-highlight)
(compilation-error-list, compilation-old-error-list)
(compilation-parse-errors-function, compilation-parsing-end)
(compilation-error-message, compilation-directory-stack)
(compilation-enter-directory-regexp-alist)
(compilation-leave-directory-regexp-alist)
(compilation-file-regexp-alist, compilation-nomessage-regexp-alist)
(compilation-current-file, compilation-regexps): Remove vars.

(compile-error-at-point, compilation-error-filedata)
(compilation-error-filedata-file-name, compile-reinitialize-errors)
(compilation-next-error-locus, compilation-forget-errors)
(count-regexp-groupings, compilation-parse-errors)
(compile-collect-regexps, compile-buffer-substring): Remove funs.

(compile-internal): Make obsolete.

(compilation-first-column, compilation-error)
(compilation-directory-matcher, compilation-page-delimiter)
(compilation-mode-font-lock-keywords, compilation-debug)
(compilation-error-face, compilation-warning-face)
(compilation-info-face, compilation-line-face)
(compilation-column-face, compilation-enter-directory-face)
(compilation-leave-directory-face, compilation-skip-threshold)
(compilation-skip-visited, compilation-context-lines): New vars.

(compilation-warning-face, compilation-info-face)
(compilation-message-face): New faces.

(compilation-error-regexp-alist-alist): New constant.

(compilation-face, compilation-directory-properties)
(compilation-assq, compilation-error-properties, compilation-start)
(define-compilation-mode, compilation-loop)
(compilation-set-window): New functions.

(compile): Additional argument for interactive compiles like TeX.
2004-03-11 22:39:29 +00:00
Eli Zaretskii
ebb8cb682a (compilation-directory): New defvar.
(compile): Save current directory in compilation-directory.
(recompile): Bind default-directory to compilation-directory if
that is non-nil.
2004-02-16 12:53:25 +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
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
Richard M. Stallman
59bb4146a3 (compile-auto-highlight): Undo July 7 change. 2003-10-20 23:31:27 +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
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
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
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
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
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
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
Juanma Barranquero
08815e25e5 (compile-internal): Don't quote nil and t in docstrings. 2003-05-06 17:35:37 +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
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
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
Markus Rost
d408fed8eb (compilation-shell-minor-mode): Add group.
(compilation-minor-mode):  Add group.
2002-11-18 04:14:26 +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
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
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
Richard M. Stallman
543335974d (grep-compute-defaults): Set the standard-value
properties of the variables being initialized.
2002-10-07 22:48:47 +00:00
Colin Walters
23b0c5fcb2 (compile-internal): Add optional argument no-async. 2002-09-07 21:29:44 +00:00
Kim F. Storm
cf3d4f6d57 (grep-tree): Fixed autoload.
Corrected use of undefined variable `match-files-aliases'.
2002-07-12 23:56:12 +00:00
Richard M. Stallman
56ce04a351 (compilation-normalize-filename):
New subroutine, taken out of compilation-parse-errors.
(compilation-parse-errors): Use that, and for directories too.
Don't check whether a directory really exists.
2002-07-12 17:39:45 +00:00
Kim F. Storm
dafe545282 (grep-tree): Doc fixes.
Added SUBDIRS arg for non-interactive use.
2002-06-14 14:00:07 +00:00
Kim F. Storm
9ebd759d59 (grep-tree-command, grep-tree-files-aliases)
(grep-tree-ignore-CVS-directories, grep-tree-ignore-case):
New custom variables.
(grep-compute-defaults): Compute grep-tree-command's default value.
(grep-expand-command-macros): New aux function.
(grep-tree-last-regexp, grep-tree-last-files): New aux variables.
(grep-tree): New command like grep-find but extended prompting.
2002-05-30 22:11:29 +00:00
Robert J. Chassell
b765ba644c Modified doc string to say that the kill-compilation function also
kills processes made by a grep command; created a defalias, kill-grep.
2002-05-30 13:47:32 +00:00
Richard M. Stallman
154b2b1008 (compilation-error-regexp-alist):
New element to recognize Python error messages.
2002-05-10 01:00:29 +00:00
Richard M. Stallman
fb49f36a2b (compilation-error-regexp-alist):
New alternatives for FILE:LINE.COL and for ranges of columns and lines.
2002-04-06 15:57:47 +00:00
Richard M. Stallman
0eac1faa03 (compilation-handle-exit):
If compilation-window-height is 0, display status in echo area.
2002-03-28 18:28:24 +00:00
Richard M. Stallman
347c91407b (compilation-forget-errors): Don't adjust compilation-parsing-end if it's nil. 2002-03-25 00:39:41 +00:00
Richard M. Stallman
238a5a50e5 (grep-compute-defaults): Definition moved up. 2002-02-06 15:37:35 +00:00
Richard M. Stallman
470927374c (compilation-handle-exit):
Add a compilation-handle-exit property to the "finished" message.
(compilation-parse-errors): Stop parsing when that property is seen.
2002-01-25 02:36:36 +00:00
Richard M. Stallman
75da830272 (compile-internal): Fix previous change. 2001-12-29 20:31:14 +00:00
Richard M. Stallman
62728cf048 Comment change. 2001-12-26 21:27:54 +00:00
Richard M. Stallman
492e159bb0 (compile-internal): Set TERM variable in process-environment. 2001-12-26 21:26:25 +00:00
Miles Bader
c299126f7f (compilation-error-regexp-alist): Added regexps for RXP.
From Reto Stamm <reto@xilinx.com>.
2001-12-06 15:27:53 +00:00
Richard M. Stallman
6867356aba (recompile): Use compilation-arguments if set, so as to be able to M-x
recompile the exact command which created a compilation-mode buffer.
2001-11-14 04:23:45 +00:00
Richard M. Stallman
2827a3c1bf (compile-goto-error): Fix previous change in the case where subsequent
errors have not been parsed yet because they are in a different source file.
2001-11-10 23:19:54 +00:00
Gerd Moellmann
e335e1949d (compilation-parse-errors-filename-function):
New variable.
(compilation-parse-errors): Use it.
2001-10-25 07:47:48 +00:00
Stefan Monnier
0033146f51 (compile-mouse-goto-error, compile-goto-error): Turn caadr into caar of cdr. 2001-10-23 16:57:15 +00:00
Gerd Moellmann
e38e283919 (compilation-set-window-height): Select
old window only if it's still live.
2001-10-22 18:48:09 +00:00
Stefan Monnier
8f36a284bc (compile-mouse-goto-error, compile-goto-error):
Consider the text between two errors as belonging to the first error.
(compilation-goto-locus): Use pop-to-buffer rather than
switch-to-buffer-other-frame.
2001-10-12 17:43:05 +00:00
Gerd Moellmann
7bdb67b2b3 (compilation-buffer-name): New function.
(compile-internal): Use it to determine the name of the
compilation buffer.
2001-10-05 12:43:13 +00:00
Miles Bader
a45717daf6 (grep-use-null-device): New variable.
(grep-command): Mention `grep-use-null-device'.
(grep-compute-defaults): Compute `grep-use-null-device' if necessary.
Make computation of `grep-command' respect `grep-use-null-device'.
(grep): Respect `grep-use-null-device'.
Call `grep-compute-defaults' even if grep-command is set, if
grep-use-null-device is still tentative.
2001-10-05 12:30:52 +00:00
Sam Steingold
005e3bb665 w32 find cannot be used with `grep-find'. 2001-09-19 20:59:24 +00:00
Gerd Moellmann
bcdb34a4a3 (grep-compute-defaults): Don't set
grep-command/grep-find-command when it is already non-nil.
(grep-command): Make it a user option.
(grep-find-command): Likewise.
2001-09-13 09:11:53 +00:00
Eli Zaretskii
31fac3b80f (compile-internal): If EMACS is already
defined in the environment, don't override its value.
2001-07-23 15:24:00 +00:00
Stefan Monnier
5b6858da26 (compilation-parse-errors): `linenum' might return a this-error using
the alternative format (a pair of markers).
2001-07-19 21:46:37 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
08de70d7bc (compile-reinitialize-errors): Add help-echo to mouse-highlighted messages.
(compilation-forget-errors): Remove help-echo property as well.
2001-06-17 11:21:07 +00:00
Eli Zaretskii
ec321d7767 (grep-compute-defaults): Use null-device
instead of literal /dev/null. Reported by Jens Schmidt
<schmidt@mathematik.uni-kl.de>.
2001-04-06 14:44:27 +00:00
Eli Zaretskii
0d140e65af (grep-regexp-alist): Remove the blank from
the character class after the (optional) drive, to support file
names with embedded blanks.
2001-02-16 11:52:52 +00:00
Gerd Moellmann
e751216899 (compilation-forget-errors): Fix indentation. 2000-12-23 15:42:36 +00:00
Stefan Monnier
3f314699c3 (grep): `tag-default' can be nil. 2000-11-14 19:30:53 +00:00
Stefan Monnier
02c1bd081b (compile-collect-regexps): Use dolist and push. 2000-10-05 23:47:14 +00:00
Stefan Monnier
ffb4b7a11d (grep): Provide a default set of files.
(next-error): Docstring fix.
(compilation-find-file): Avoid find-file (fails in a dedicated window).
2000-08-16 20:20:43 +00:00
Gerd Moellmann
18aac618fa (compilation-setup): Make variable
compilation-error-screen-columns buffer-local, as some comment
in the code suggests it should be.
2000-08-08 18:30:47 +00:00
Stefan Monnier
32d6fffb81 (compile-internal): Style typo. 2000-05-23 20:14:43 +00:00
Dave Love
f1ed9461a9 Add to debug-ignored-errors. 2000-05-22 17:41:53 +00:00
Gerd Moellmann
2497076e21 (compilation-parse-errors): Collect
`nomessage' regexps last.
2000-05-16 14:31:54 +00:00
Gerd Moellmann
92d8844ebe (compile-internal): Display the compilation
buffer in a different frame, if it's already displayed there.
2000-04-03 21:20:05 +00:00
Thien-Thi Nguyen
721cfafec9 (compilation-goto-locus): Delete hideshow overlays if they interfere.
(compilation-find-file): Make intangible overlays tangible.
1999-12-26 12:59:52 +00:00
Gerd Moellmann
9dd1cf67c2 (compilation-parse-errors): Use
compilation-buffer-p instead of testing major-mode.
1999-11-18 15:57:55 +00:00
Gerd Moellmann
e8d017d059 * progmodes/compile.el (compilation-error-regexp-alist):
Undo previous change.
1999-10-30 19:15:17 +00:00
Gerd Moellmann
40d63d1fee (compilation-error-regexp-alist): Recognize
MIPS Pro 7.3 compiler error message syntax.
1999-10-28 11:20:17 +00:00
Dave Love
851231e955 Checkdoc-inspired fixes. 1999-10-27 22:38:17 +00:00
Dave Love
04f12e5765 Comment. 1999-09-09 20:16:02 +00:00
Richard M. Stallman
e3c0f9ded6 (compilation-error-regexp-alist): New item for SGI IRIX MipsPro compilers. 1999-08-29 19:54:39 +00:00
Richard M. Stallman
3d8be0c945 (compilation-error-regexp-alist):
Fix the Perl -w entry to allow period after line number.
Don't allow newlines in file name, but allow them after line number
for Perl debugging traces.
1999-08-29 19:44:22 +00:00
Richard M. Stallman
c4d7c00a24 (compilation-parsing-end,compilation-setup)
(compilation-filter, compilation-forget-errors)
(compilation-parse-errors): Use a marker instead of an integer for
`compilation-parsing-end'.
1999-08-29 19:07:33 +00:00
Karl Heuer
47d1bc29bb Deal with compilation-error-screen-columns being buffer-local. 1999-06-27 21:43:52 +00:00
Dave Love
a0730fbd38 (compilation-error-regexp-alist): Allow
digits in program name in first pattern.
1999-06-09 17:57:05 +00:00
Karl Heuer
717149ecaf (compilation-error-regexp-alist): Recognize C++Build 4.0 error message syntax. 1999-04-26 05:09:59 +00:00
Karl Heuer
ac6b7d7858 (grep-compute-defaults): If xargs -e isn't supported, use find -exec. 1999-04-26 04:49:42 +00:00
Richard M. Stallman
01c504479b (compilation-handle-exit): Do right thing
if (car status) doesn't end in a newline.
1999-04-03 14:04:39 +00:00
Richard M. Stallman
bccc6e3d9f (compile-internal): Use save-selected-window. 1999-02-16 03:36:28 +00:00
Richard M. Stallman
4315d68ee5 (compile-auto-highlight): Customize. 1999-02-09 09:14:34 +00:00
Richard M. Stallman
474d71ae8b (compilation-setup): Set value of
compilation-directory-stack as in compilation-forget-errors.
(compile-reinitialize-errors): Bind buffer-undo-list and deactivate-mark.
(compilation-forget-errors): Likewise.
1999-02-08 23:50:42 +00:00
Dave Love
41a3354e11 (compile-mouse-goto-error): Don't lose with
null markers.
(compile-goto-error): Likewise.
1999-02-05 15:19:54 +00:00
Richard M. Stallman
667aec946d (compilation-next-error-locus): Don't decrease argument FIND-AT-LEAST
of compilation-next-error-locus.
1999-02-01 10:38:08 +00:00
Richard M. Stallman
d28701c72f (compilation-goto-locus): If already in the
compilation buffer's window, keep it in that window.
(compile-mouse-goto-error): Add Doc.  Don't play with windows.
(compile-goto-error): Don't play with windows.
1999-01-18 01:10:25 +00:00