Commit graph

353 commits

Author SHA1 Message Date
Stefan Monnier
6f5b76274c Doc fixes.
(compilation-error-regexp-alist-alist)
(compilation-mode-font-lock-keywords): Allow non-ASCII where possible.
(compilation-assq): Wrap in eval-when-compile.
(compilation-mode-font-lock-keywords): Don't use list*.
(compilation-start): Avoid warning.
(compilation-compat-error-properties)
(compilation-directory-properties): Add keymap property.
(compilation-parsing-end): Make it a marker for better compatibility.
2004-04-16 23:22:07 +00:00
Daniel Pfeiffer
eb6fb6e2d5 (compilation-error-properties): Fix for adding messages when there are already
markers for their file.
(compilation-fake-loc): New function.
2004-04-16 23:06:34 +00:00
Stefan Monnier
60470fd2ec (compilation-button-map): New keymap.
(compilation-error-properties): Use it.
(compilation-shell-minor-mode-map): Don't bind mouse-2.
2004-04-14 18:12:05 +00:00
Stefan Monnier
a6cd3f650d (compile-goto-error): Use it. 2004-04-14 17:30:49 +00:00
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