* bug#21852: Ediff 2.81.5 of July 4, 2013; ediff-patch-buffer fails if patch-buf doesn't exists.
@ 2015-11-07 15:21 Tino Calancha
2016-02-23 5:04 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Tino Calancha @ 2015-11-07 15:21 UTC (permalink / raw)
To: kifer, 21852; +Cc: Tino Calancha
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
Congratulations! You may have unearthed a bug in Ediff!
Please make a concise and accurate summary of what happened
and mail it to the address above.
-----------------------------------------------------------
ediff-patch-buffer fails if patch-buf doesn't exists.
* lisp/vc/ediff.el (ediff-patch-buffer): Added 'require-match
argument on read-buffer call.
emacs -Q:
(in the *scratch* buffer)
(with-current-buffer (generate-new-buffer "buff")
(insert "foo bar"))
(with-current-buffer (generate-new-buffer "buff2")
(insert "foo baz"))
;; call ediff-buffers on "buff" and "buff2" and save the
;; differences in a buffer "patch"
M-x epatch-buffer y patch RET buff ; ok
M-x epatch-buffer y patch RET buffer ; BAD
You have killed a vital Ediff buffer---you must leave Ediff now!
Emacs : GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.28)
of 2015-11-07
Package: Ediff 2.81.5 of July 4, 2013
[-- Attachment #2: Type: text/plain, Size: 354 bytes --]
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index 3a2d1e4..8723c19 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -1403,7 +1403,7 @@ ediff-patch-buffer
patch-buf
(read-buffer
"Which buffer to patch? "
- (ediff-other-buffer patch-buf))))
+ (ediff-other-buffer patch-buf) 'require-match)))
;;;###autoload
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-23 5:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-07 15:21 bug#21852: Ediff 2.81.5 of July 4, 2013; ediff-patch-buffer fails if patch-buf doesn't exists Tino Calancha
2016-02-23 5:04 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.