diff options
author | Roland McGrath <roland@gnu.org> | 1992-08-02 03:36:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-08-02 03:36:38 +0000 |
commit | c540863c2914bb9b5bfd69c1f7cb981486338c4c (patch) | |
tree | 4f61ee87eee34d1f5df337897f5079ade7c29daa /lisp/diff.el | |
parent | e5aaf3466bfbf7e981b3bdaa6b2588af3fefff41 (diff) | |
download | emacs-c540863c2914bb9b5bfd69c1f7cb981486338c4c.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp/diff.el')
-rw-r--r-- | lisp/diff.el | 10 |
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 |