aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAndreas Schwab2007-03-11 10:45:00 +0000
committerAndreas Schwab2007-03-11 10:45:00 +0000
commit593b4fa884f5be1124f95adba8c1e12c2a7930b9 (patch)
tree9b10a3a4e1621fa3b6f83e4db8ad56ec19499fca /lisp
parentc13ba385e9e30c54dd526ac52a705ab11c21285b (diff)
downloademacs-593b4fa884f5be1124f95adba8c1e12c2a7930b9.tar.gz
emacs-593b4fa884f5be1124f95adba8c1e12c2a7930b9.zip
(diff-apply-hunk): Use proper format string for
error.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/diff-mode.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9c572fa2063..5a3d490756b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-03-11 Andreas Schwab <schwab@suse.de>
2
3 * diff-mode.el (diff-apply-hunk): Use proper format string for
4 error.
5
12007-03-11 Stefan Monnier <monnier@iro.umontreal.ca> 62007-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * mail/emacsbug.el (report-emacs-bug): Don't hard code the "X" name. 8 * mail/emacsbug.el (report-emacs-bug): Don't hard code the "X" name.
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index ccd945db98e..543e1bd6a39 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1375,7 +1375,8 @@ With a prefix argument, REVERSE the hunk."
1375 (yes-or-no-p (format "Really apply this hunk to %s? " 1375 (yes-or-no-p (format "Really apply this hunk to %s? "
1376 (file-name-nondirectory 1376 (file-name-nondirectory
1377 buffer-file-name))))))) 1377 buffer-file-name)))))))
1378 (error (substitute-command-keys 1378 (error "%s"
1379 (substitute-command-keys
1379 (format "Use %s\\[diff-apply-hunk] to apply it to the other file" 1380 (format "Use %s\\[diff-apply-hunk] to apply it to the other file"
1380 (if (not reverse) "\\[universal-argument] "))))) 1381 (if (not reverse) "\\[universal-argument] ")))))
1381 ((and switched 1382 ((and switched