summaryrefslogtreecommitdiff
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2009-04-21 06:56:51 +0000
committerMartin Rudalics <rudalics@gmx.at>2009-04-21 06:56:51 +0000
commita8f10dcc77254fc8252c9e080c614b10186ed986 (patch)
tree955291132d52f5256e158b4acc2ca0d738094322 /lisp/diff-mode.el
parent9053df132d853994b796b06a0f5516feddd9ee1d (diff)
downloademacs-a8f10dcc77254fc8252c9e080c614b10186ed986.tar.gz
(diff-find-source-location): Don't call
diff-sanity-check-hunk when NOPROMPT is non-nil. (Bug#3030)
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index a83200d8982..6242cda13c4 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1575,7 +1575,9 @@ NOPROMPT, if non-nil, means not to prompt the user."
;; 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))