1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

316 Commits

Author SHA1 Message Date
Stefan Monnier
822001db2a Arch-tags shouldn't be outline headers. 2004-05-02 20:45:51 +00:00
Stefan Monnier
e3bef839dd (compilation-gcpro): New var
(compilation-fake-loc): Use it.
(compilation-forget-errors): Reset it.
2004-05-02 20:44:55 +00:00
Eli Zaretskii
052ca4d1d2 (compilation-start): In the no-async-subprocesses branch, fontify
the buffer explicitly after the process exits.
2004-05-02 17:23:04 +00:00
Eli Zaretskii
cf8f099f0a (compilation-start): In the no-async-subprocesses branch, call
sit-for to give redisplay a chance to show the updated process
status in the mode line.
2004-05-02 15:38:02 +00:00
Stefan Monnier
9b7b51a21e (compilation-messages-start): New var.
(compilation-mode): Don't setup next-error-function here.
(compilation-setup): Set it up here instead (for minor modes as well).
Make compilation-messages-start buffer local.
(compilation-next-error-function): Use it.
(compilation-forget-errors): Set compilation-messages-start.
2004-05-01 21:13:00 +00:00
Stefan Monnier
0ff7f01e85 (compilation-last-buffer): Add var alias. 2004-04-29 19:02:12 +00:00
Juri Linkov
a3a9c080fa (compilation-context-lines): Add nil option to disable compilation output window scrolling.
(compilation-set-window): Use it.
2004-04-29 15:31:38 +00:00
Richard M. Stallman
cc366e3370 (compilation-context-lines): Default now 0. 2004-04-28 08:36:09 +00:00
Daniel Pfeiffer
dbd9767235 (compilation-error-regexp-alist-alist): Also recognize severe Irix et al. messages.
(compilation-normalize-filename, compile-abbreviate-directory): Delete functions.

(compilation-get-file-structure): New function inherits functionality of the two preceding ones.

(compilation-internal-error-properties, compilation-fake-loc): Use it so that different paths to the same file share the same markers.  Also optimize finding adjacent marker slightly.
2004-04-25 12:55:43 +00:00
Stefan Monnier
f71d34b0a8 (compilation-mode-font-lock-keywords):
Minor sanity check on the `hyperlink' slot.
2004-04-21 22:37:16 +00:00
Kim F. Storm
5d9f0de2de From: Teodor Zlatanov <tzz@lifelogs.com>
(compilation-start): Set next-error-last-buffer so
next-error knows where to jump.
(compilation-setup): Set the buffer-local variable
next-error-function to 'compilation-next-error-function.
(compilation-buffer-p, compilation-buffer-internal-p): Use an
alternate way to find if a buffer is a compilation buffer, for
next-error convenience.
(next-error-no-select, previous-error-no-select, next-error)
(previous-error, first-error): Move to simple.el.
(compilation-find-buffer): Move to next-error-find-buffer in simple.el.
(compilation-last-buffer): Remove.
(compilation-start, compilation-next-error, compilation-setup)
(compilation-next-error-function, compilation-find-buffer):
Remove compilation-last-buffer use.
2004-04-21 21:37:18 +00:00
Stefan Monnier
efb0e677c7 (compilation-error-properties): Split in two.
(compilation-internal-error-properties): New one.
(compilation-compat-error-properties): Use it to fix the non-marker case.
2004-04-20 20:36:43 +00:00
Andreas Schwab
fe4dda18f0 (compilation-start): Set window start to
point-min if compilation-scroll-output is nil.
2004-04-18 11:04:24 +00:00
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