Commit 5dadb083 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(diff-find-source-location): Don't call

diff-sanity-check-hunk when NOPROMPT is non-nil.  (Bug#3030)
parent 908567ef
2009-04-21 Martin Rudalics <rudalics@gmx.at>
* diff-mode.el (diff-find-source-location): Don't call
diff-sanity-check-hunk when NOPROMPT is non-nil. (Bug#3030)
2009-04-21 Kenichi Handa <handa@m17n.org>
 
* international/uni-decomposition.el: Re-generated.
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment