diff options
| -rw-r--r-- | lisp/ediff-ptch.el | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ediff-ptch.el b/lisp/ediff-ptch.el index 1f1a42477a0..873e45060e0 100644 --- a/lisp/ediff-ptch.el +++ b/lisp/ediff-ptch.el | |||
| @@ -287,6 +287,8 @@ program." | |||
| 287 | ;; hence, something wrong | 287 | ;; hence, something wrong |
| 288 | (progn | 288 | (progn |
| 289 | (with-output-to-temp-buffer ediff-msg-buffer | 289 | (with-output-to-temp-buffer ediff-msg-buffer |
| 290 | (ediff-with-current-buffer standard-output | ||
| 291 | (fundamental-mode)) | ||
| 290 | (princ | 292 | (princ |
| 291 | (format " | 293 | (format " |
| 292 | The patch file contains a context diff for | 294 | The patch file contains a context diff for |
| @@ -342,6 +344,8 @@ other files, enter /dev/null | |||
| 342 | (setcar triple file1)) | 344 | (setcar triple file1)) |
| 343 | ((and f1-exists f2-exists) | 345 | ((and f1-exists f2-exists) |
| 344 | (with-output-to-temp-buffer ediff-msg-buffer | 346 | (with-output-to-temp-buffer ediff-msg-buffer |
| 347 | (ediff-with-current-buffer standard-output | ||
| 348 | (fundamental-mode)) | ||
| 345 | (princ (format " | 349 | (princ (format " |
| 346 | Ediff has inferred that | 350 | Ediff has inferred that |
| 347 | %s | 351 | %s |
| @@ -361,6 +365,8 @@ Please advice: | |||
| 361 | (f1-exists (setcar triple file1)) | 365 | (f1-exists (setcar triple file1)) |
| 362 | (t | 366 | (t |
| 363 | (with-output-to-temp-buffer ediff-msg-buffer | 367 | (with-output-to-temp-buffer ediff-msg-buffer |
| 368 | (ediff-with-current-buffer standard-output | ||
| 369 | (fundamental-mode)) | ||
| 364 | (princ "\nEdiff has inferred that") | 370 | (princ "\nEdiff has inferred that") |
| 365 | (if (string= file1 file2) | 371 | (if (string= file1 file2) |
| 366 | (princ (format " | 372 | (princ (format " |
| @@ -482,7 +488,8 @@ optional argument, then use it." | |||
| 482 | (if (< (length ediff-patch-map) 2) | 488 | (if (< (length ediff-patch-map) 2) |
| 483 | (ediff-patch-file-internal | 489 | (ediff-patch-file-internal |
| 484 | patch-buf | 490 | patch-buf |
| 485 | (if (and (not (string-match "^/dev/null" (car (car ediff-patch-map)))) | 491 | (if (and ediff-patch-map |
| 492 | (not (string-match "^/dev/null" (car (car ediff-patch-map)))) | ||
| 486 | (> (length (car (car ediff-patch-map))) 1)) | 493 | (> (length (car (car ediff-patch-map))) 1)) |
| 487 | (car (car ediff-patch-map)) | 494 | (car (car ediff-patch-map)) |
| 488 | filename) | 495 | filename) |
| @@ -628,6 +635,8 @@ optional argument, then use it." | |||
| 628 | (concat true-source-filename ediff-backup-extension))) | 635 | (concat true-source-filename ediff-backup-extension))) |
| 629 | (progn | 636 | (progn |
| 630 | (with-output-to-temp-buffer ediff-msg-buffer | 637 | (with-output-to-temp-buffer ediff-msg-buffer |
| 638 | (ediff-with-current-buffer standard-output | ||
| 639 | (fundamental-mode)) | ||
| 631 | (princ (format | 640 | (princ (format |
| 632 | "Patch program has failed due to a bad patch file, | 641 | "Patch program has failed due to a bad patch file, |
| 633 | it couldn't apply all hunks, OR | 642 | it couldn't apply all hunks, OR |
| @@ -646,12 +655,12 @@ In particular, check the documentation for `ediff-backup-specs'. | |||
| 646 | In any of the above cases, Ediff doesn't compare files automatically. | 655 | In any of the above cases, Ediff doesn't compare files automatically. |
| 647 | However, if the patch was applied partially and the backup file was created, | 656 | However, if the patch was applied partially and the backup file was created, |
| 648 | you can still examine the changes via M-x ediff-files" | 657 | you can still examine the changes via M-x ediff-files" |
| 649 | ediff-patch-program | 658 | ediff-patch-program |
| 650 | ediff-patch-program | 659 | ediff-patch-program |
| 651 | ediff-patch-options | 660 | ediff-patch-options |
| 652 | ediff-backup-extension | 661 | ediff-backup-extension |
| 653 | ediff-backup-specs | 662 | ediff-backup-specs |
| 654 | ))) | 663 | ))) |
| 655 | (beep 1) | 664 | (beep 1) |
| 656 | (if (setq aux-wind (get-buffer-window ediff-msg-buffer)) | 665 | (if (setq aux-wind (get-buffer-window ediff-msg-buffer)) |
| 657 | (progn | 666 | (progn |