Commit graph

141 commits

Author SHA1 Message Date
Richard M. Stallman
d86bdede4d (compilation-error-regexp-alist): Fix bug in Borland
C++ change.  Make first regexp reject cases that give column
numbers.  Add new regexp for GNU format with column numbers.
1994-07-27 17:52:02 +00:00
Richard M. Stallman
7fb63acd84 Finish installing previous change. 1994-07-26 21:23:38 +00:00
Richard M. Stallman
b4300a1a6c (compilation-next-error-locus): New arg SILENT. 1994-07-26 19:18:06 +00:00
Richard M. Stallman
37fd22082c (compilation-error-regexp-alist): Allow `(' after
linenum in "FILE", line LINENUM.  Add backslash so C-M-a works.
1994-07-19 20:03:12 +00:00
Richard M. Stallman
8eb2676516 (compilation-next-error-locus): Don't call
compilation-forget-errors if compilation is still runing.
1994-07-12 04:09:07 +00:00
Richard M. Stallman
6e1dbafa9a (compilation-window-height): Use defvar.
(compilation-leave-directory-regexp): Likewise.
(compilation-enter-directory-regexp): Likewise.
1994-07-11 00:24:26 +00:00
Roland McGrath
81d93b5e63 Fix regexp in last change. 1994-06-14 00:58:05 +00:00
Roland McGrath
e7601974b0 (compilation-error-regexp-alist): Extend first regexp to handle Borland C++
msgs: "Warning" or "Error" before file name.
1994-06-13 23:27:44 +00:00
Richard M. Stallman
c021b7a5dc (compilation-error-regexp-alist): Stricter Lucid regexp. 1994-06-02 18:15:13 +00:00
Richard M. Stallman
e89a7d771b (compilation-goto-locus): Handle case where *compilation*
is in a dedicated window.
1994-05-19 21:50:30 +00:00
Karl Heuer
f89fdaed3d (compilation-error-regexp-alist): Add fortran pattern. 1994-04-27 21:57:57 +00:00
Roland McGrath
5d1fa1a04e (compilation-next-error-locus): Use compilation-error-message instead of
"Moved past last error" when MOVE is 1 (default value).
1994-04-25 22:31:41 +00:00
Richard M. Stallman
ebf0b439d5 (compilation-setup, compilation-sentinel):
Remove space after `:' in mode-line-process.
1994-04-24 08:15:18 +00:00
Roland McGrath
8425a49a3c (compilation-parse-errors): Fix references for column number, 3 elt not
2nd.
1994-04-20 19:52:37 +00:00
Karl Heuer
676a14e169 (compile-reinitialize-errors): Fix typo in comment. 1994-04-05 02:19:02 +00:00
Karl Heuer
e78e10caf2 (compile-mouse-goto-error): Simplify.
(compilation-parse-errors-function): Doc fix.
1994-04-02 05:07:50 +00:00
Richard M. Stallman
f98494a43d (compile-mouse-goto-error): New command.
(compilation-minor-mode-map): Bind mouse-2.
1994-03-30 17:36:24 +00:00
Roland McGrath
5ff3b093bf (compilation-error-regexp-alist): Generalize ultrix 3 f77 regexp to match
Absoft FORTRAN 77 errors.
1994-03-19 01:05:27 +00:00
Roland McGrath
eaa3cac5f4 (compile-reinitialize-errors): Rename first arg from ARGP to REPARSE.
Test only its nilness.
(compile-goto-error): Pass (consp ARGP) to compile-reinitialize-errors
instead of ARGP itself.
(next-error): Code broken out into two new functions; call them.
(compilation-next-error-locus): New function; bulk of code from next-error.
Silently skip errors whose source loci are markers in killed buffers.
(compilation-goto-locus): New function, final code from next-error.
1994-03-07 22:31:48 +00:00
Roland McGrath
31efa7c9f6 (compile-goto-error): Push the mark before calling next-error. 1994-03-04 06:11:51 +00:00
Roland McGrath
9481474b9d (copmilation-error-regexp-alist): Tighten up Ultrix 3.0 f77 regexp to
exclude : from file names; avoids lossage when : appears in error text.
1994-02-17 00:11:28 +00:00
Richard M. Stallman
dfb8966419 (compilation-error-regexp-alist): Handle DEC AXP OSF/1. 1994-01-19 14:21:20 +00:00
Roland McGrath
533304f86f (copmilation-error-list): Doc fix. 1994-01-16 09:34:46 +00:00
Roland McGrath
72244beaa0 (compilation-error-regexp-alist): Add regexp for Lucid lcc.
Element lists can now contain a 4th elt giving subexpr for the column.
(next-error): Handle error records with column numbers.
(compilation-parse-errors): Parse column numbers when the alist elt
specifies it.  Use string-to-int instead of read for numbers from buffer
text.
1994-01-16 09:10:58 +00:00
Roland McGrath
1e0e614d5e (compilation-parse-errors): Prepend comint-file-name-prefix (if boundp) to
absolute file names culled from error msgs.
(compile-abbreviate-directory): Prepend comint-file-name-prefix (if boundp)
to DIR before other processing.
1994-01-06 17:21:32 +00:00
Roland McGrath
51ba27e7ac (compilation-buffer-p): Move defsubst before all callers.
(compilation-forget-errors): Reset compilation-parsing-end to 1 here.
(compile-reinitialize-errors): Don't reset compilation-parsing-end after
calling compilation-forget-errors.
Comment out gratuitous switch-to-buffer call; what was the rationale for it?
Don't check compilation-parsing-end (removed local AT-START); instead
always append to compilation-old-error-list, it will be nil if at start.
If compilation-error-list is non-nil before calling the parser, restore its
previous value afterwards; it still indicates the current error position.
Subtract the length of the existing compilation-error-list from
FIND-AT-LEAST when calling the parser.
(compilation-parse-errors): Don't check LIMIT-SEARCH at end of loop.
Inside check it inside each case of the cond; in error case we must discard
the last new error before stopping (just as for FIND-AT-LEAST).
Use floating-point in buffer percentage calculation, to avoid integer
overflow.
1994-01-06 15:25:19 +00:00
Richard M. Stallman
35f7e85bda (compile-internal): Extended to work without asynchronous subprocesses. 1994-01-06 04:33:55 +00:00
Richard M. Stallman
900162957b (compilation-read-command, compilation-ask-about-save): New variables.
(compile): Obey them.
1994-01-01 16:32:44 +00:00
Richard M. Stallman
98b63c412b (grep-command): New variable.
(grep): Use it.

Don't repeat at load time any bindings that are autoloaded.
1993-12-23 02:43:28 +00:00
Roland McGrath
a0c567b516 (compilation-error-regexp-alist): Generalize `"foo.c", line 13:' regexp to
also match `"foo.c", line 13 pos 1...".
1993-12-09 01:12:13 +00:00
Brian Fox
a72ba9295c (compile-internal): Back out jimb change of making buffer read-only. It
is non-ergonomic.
1993-09-21 07:00:37 +00:00
Richard M. Stallman
ba2700dbbe (compilation-parse-errors): Don't add multiple errors for one source line. 1993-08-14 03:45:08 +00:00
Roland McGrath
ed814f55e1 (next-error): Handle zero and negative prefix args. 1993-08-11 21:26:38 +00:00
Roland McGrath
d6bd8dca5d (compilation-minor-mode): Make variable buffer-local.
(compilation-minor-mode): Autoload this function.
1993-08-03 21:38:31 +00:00
Roland McGrath
cacf1905d9 (compilation-error-regexp-alist): Broaden RS6000 regexp to match
"lines N-M," or "line N,".
1993-07-30 05:32:45 +00:00
Roland McGrath
fc0094d7bf (compilation-error-list): An elt's cdr's car is again a cons (DIRECTORY .
FILE) if it's not a marker.  The conversion to using a string containing an
expanded file name was never finished, and anyway it utterly broke
compilation-search-path and few other things.
(next-error): Expect them that way.
(compilation-parse-errors): Make them that way.
(compile-file-of-error): Function removed.
(compilation-error-filedata, compilation-error-filedata-file-name): New
defsubsts.
(compilation-next-file): Use them instead of compile-file-of-error.
1993-07-18 20:41:08 +00:00
Roland McGrath
2e4301efa5 (compilation-parse-errors): After skipping two lines, move one char back so
point before the newline.
1993-07-15 03:08:17 +00:00
Roland McGrath
ff7351344a (compilation-error-regexp-alist): Broaden ``Line N of "FILE": msg'' regexp
to also match Ultrix f77: ``Error on line N of FILE: msg''.
1993-07-08 23:31:58 +00:00
Richard M. Stallman
51501e543e (compile-abbreviate-directory): New function.
(compilation-parse-errors): Use that, to visit files with a dirname
more like the one the user specified.
1993-06-30 22:03:15 +00:00
Jim Blandy
aead2f9fa6 * compile.el (compile-file-of-error): Remember that
compilation-error-list stores file names as strings, not as (DIR .
	FILE) pairs.
1993-06-22 03:54:25 +00:00
Richard M. Stallman
6d68d7937b (compilation-error-regexp-alist): Generalize the
Apollo/BSD4.3 regexp to handle IBM RS6k too.
1993-06-18 21:40:46 +00:00
Jim Blandy
29478cc523 Doc fix. 1993-06-10 07:22:07 +00:00
Jim Blandy
18710add3c * compile.el (compilation-error-list): When we haven't yet
generated a marker for the source position of an error message,
	store (FILENAME . LINE-NUMBER), not ((DIRECTORY . FILE)
	LINE-NUMBER).  Doc fix.
	(next-error, compilation-parse-errors): Adjusted appropriately.
1993-06-10 07:17:33 +00:00
Richard M. Stallman
d4ece6796d (compile-internal): Alter current buffer only temporarily. 1993-06-06 05:28:30 +00:00
Richard M. Stallman
d973d76918 Make C-x ` binding just once. 1993-05-26 22:36:32 +00:00
Richard M. Stallman
4f6e4ad6cd (Setting minor-mode-map-alist):
Put the map directly in the alist, not a variable name.
1993-05-13 03:14:07 +00:00
Roland McGrath
0b18a8f6e1 Add compilation-minor-mode to minor-mode-alist and minor-mode-map-alist.
(compilation-minor-mode): New defvar.
(compilation-minor-mode-map): New defvar; keymap with the bindings
from compilation-mode-map except SPC and DEL.
(compilation-mode-map): Construct this keymap to inherit from
compilation-minor-mode-map.
(compilation-setup): New function, code broken out of compilation-mode.
(compilation-mode): Call it.
(compilation-minor-mode): New function to toggle
compilation-minor-mode; if setting it, call compilation-setup.
1993-04-28 22:44:29 +00:00
Roland McGrath
0e8ec8d0cc (compile-internal): Initialize the process-mark. 1993-04-07 20:58:20 +00:00
Roland McGrath
f34a4d8dcc (compilation-error-regexp-alist): Tighten first regexp so that it
requires a colon or open-paren before the line number, not just
whitespace.
1993-04-07 20:14:29 +00:00
Roland McGrath
e0446ff70d (compilation-parse-errors): Remove debugging setq. 1993-04-07 19:57:10 +00:00