1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

Require that the buffer that we're trying to patch exist

* lisp/vc/ediff.el (ediff-patch-buffer): Require that the
buffer that we're trying to patch exist (bug#21852).

Copyright-paperwork-exempt: yes
This commit is contained in:
Tino Calancha 2016-02-23 16:04:06 +11:00 committed by Lars Ingebrigtsen
parent c5214e7969
commit 0d21540646

View File

@ -1401,9 +1401,8 @@ patch. If not given, the user is prompted according to the prefix argument."
(if arg (prefix-numeric-value arg)) patch-buf))
(ediff-patch-buffer-internal
patch-buf
(read-buffer
"Which buffer to patch? "
(ediff-other-buffer patch-buf))))
(read-buffer "Which buffer to patch? " (ediff-other-buffer patch-buf)
'require-match)))
;;;###autoload