summaryrefslogtreecommitdiff
path: root/lisp/diff.el
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-08-02 03:36:38 +0000
committerRoland McGrath <roland@gnu.org>1992-08-02 03:36:38 +0000
commitc41cbae54ed86979491c907e3826efa736f6dd72 (patch)
treefee796a31476889ef570947d02bf45e8e0bce893 /lisp/diff.el
parent75d9e7fa9842904d965799148b7ffc71263bbebf (diff)
downloademacs-c41cbae54ed86979491c907e3826efa736f6dd72.tar.gz
*** empty log message ***
Diffstat (limited to 'lisp/diff.el')
-rw-r--r--lisp/diff.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index 2c778c20610..347bbb75d35 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -54,7 +54,7 @@ subexpression gives the line number in the new file. If OLD-IDX or NEW-IDX
is nil, REGEXP matches only half a section.")
;; See compilation-parse-errors-function (compile.el).
-(defun diff-parse-differences (limit-search)
+(defun diff-parse-differences (limit-search find-at-least)
(setq compilation-error-list nil)
(message "Parsing differences...")
@@ -118,9 +118,11 @@ is nil, REGEXP matches only half a section.")
(if (nth 2 g) ;NEW-IDX
(funcall new-error diff-new-file (nth 2 g)))
- (and limit-search (>= (point) limit-search)
- ;; The user wanted a specific diff, and we're past it.
- (setq found-desired t)))
+ (if (or (and find-at-least (>= nfound find-at-least))
+ (and limit-search (>= (point) limit-search)))
+ ;; We have found as many new errors as the user wants,
+ ;; or the user wanted a specific diff, and we're past it.
+ (setq found-desired t)))
(if found-desired
(setq compilation-parsing-end (point))
;; Set to point-max, not point, so we don't perpetually