diff options
Diffstat (limited to 'lisp/diff-mode.el')
| -rw-r--r-- | lisp/diff-mode.el | 4 |
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." | |||
| 1575 | ;; the user may disagree on what constitutes the hunk | 1575 | ;; the user may disagree on what constitutes the hunk |
| 1576 | ;; (e.g. because an empty line truncates the hunk mid-course), | 1576 | ;; (e.g. because an empty line truncates the hunk mid-course), |
| 1577 | ;; leading to potentially nasty surprises for the user. | 1577 | ;; leading to potentially nasty surprises for the user. |
| 1578 | (_ (diff-sanity-check-hunk)) | 1578 | ;; |
| 1579 | ;; Suppress check when NOPROMPT is non-nil (Bug#3030). | ||
| 1580 | (_ (unless noprompt (diff-sanity-check-hunk))) | ||
| 1579 | (hunk (buffer-substring | 1581 | (hunk (buffer-substring |
| 1580 | (point) (save-excursion (diff-end-of-hunk) (point)))) | 1582 | (point) (save-excursion (diff-end-of-hunk) (point)))) |
| 1581 | (old (diff-hunk-text hunk reverse char-offset)) | 1583 | (old (diff-hunk-text hunk reverse char-offset)) |