diff options
author | Miles Bader <miles@gnu.org> | 2008-02-24 10:09:07 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-02-24 10:09:07 +0000 |
commit | b03f96dc5a6651d1dc84b81b2a15cad6908b9809 (patch) | |
tree | 699d727fdfb007a12a07d1e1f2e172617cc159ef /lisp/progmodes/compile.el | |
parent | 52bec650ae314402c242ce700bb09be42ef8ae55 (diff) | |
parent | 20ca5ee4f7d897d79416a6fdd084db1eabb392b0 (diff) | |
download | emacs-b03f96dc5a6651d1dc84b81b2a15cad6908b9809.tar.gz emacs-b03f96dc5a6651d1dc84b81b2a15cad6908b9809.tar.bz2 emacs-b03f96dc5a6651d1dc84b81b2a15cad6908b9809.zip |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r-- | lisp/progmodes/compile.el | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 65391251e25..e68441547b6 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1629,9 +1629,13 @@ Just inserts the text, but uses `insert-before-markers'." (defun compilation-next-error (n &optional different-file pt) "Move point to the next error in the compilation buffer. +This function does NOT find the source line like \\[next-error]. Prefix arg N says how many error messages to move forwards (or backwards, if negative). -Does NOT find the source line like \\[next-error]." +Optional arg DIFFERENT-FILE, if non-nil, means find next error for a +file that is different from the current one. +Optional arg PT, if non-nil, specifies the value of point to start +looking for the next message." (interactive "p") (or (compilation-buffer-p (current-buffer)) (error "Not in a compilation buffer")) @@ -1943,13 +1947,17 @@ and overlay is highlighted between MK and END-MK." (defun compilation-find-file (marker filename directory &rest formats) "Find a buffer for file FILENAME. +If FILENAME is not found at all, ask the user where to find it. +Pop up the buffer containing MARKER and scroll to MARKER if we ask +the user where to find the file. Search the directories in `compilation-search-path'. A nil in `compilation-search-path' means to try the \"current\" directory, which is passed in DIRECTORY. If DIRECTORY is relative, it is combined with `default-directory'. If DIRECTORY is nil, that means use `default-directory'. -If FILENAME is not found at all, ask the user where to find it. -Pop up the buffer containing MARKER and scroll to MARKER if we ask the user." +FORMATS, if given, is a list of formats to reformat FILENAME when +looking for it: for each element FMT in FORMATS, this function +attempts to find a file whose name is produced by (format FMT FILENAME)." (or formats (setq formats '("%s"))) (let ((dirs compilation-search-path) (spec-dir (if directory |