Mercurial > emacs
diff lisp/diff-mode.el @ 103039:5b883aa3f804
(diff-find-source-location): Don't call
diff-sanity-check-hunk when NOPROMPT is non-nil. (Bug#3030)
| author | Martin Rudalics <rudalics@gmx.at> |
|---|---|
| date | Tue, 21 Apr 2009 06:56:51 +0000 |
| parents | 7b7c30fbeecd |
| children | 10b0e119e49a |
line wrap: on
line diff
--- a/lisp/diff-mode.el Tue Apr 21 06:46:39 2009 +0000 +++ b/lisp/diff-mode.el Tue Apr 21 06:56:51 2009 +0000 @@ -1575,7 +1575,9 @@ ;; the user may disagree on what constitutes the hunk ;; (e.g. because an empty line truncates the hunk mid-course), ;; leading to potentially nasty surprises for the user. - (_ (diff-sanity-check-hunk)) + ;; + ;; Suppress check when NOPROMPT is non-nil (Bug#3030). + (_ (unless noprompt (diff-sanity-check-hunk))) (hunk (buffer-substring (point) (save-excursion (diff-end-of-hunk) (point)))) (old (diff-hunk-text hunk reverse char-offset))
