projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d21540
)
Require that the buffer that we're trying to patch exist
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 23 Feb 2016 05:09:06 +0000
(16:09 +1100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 23 Feb 2016 05:09:06 +0000
(16:09 +1100)
* lisp/vc/ediff.el (ediff-patch-buffer): Require that the
buffer that we're trying to patch exist (bug#21852).
lisp/vc/ediff.el
patch
|
blob
|
history
diff --git
a/lisp/vc/ediff.el
b/lisp/vc/ediff.el
index e5e16a12f967b32daa3b36eb472d5b47dfef6bea..be4ced9b55f3d5eb6120c13e4fcb9f6e5587cd7f 100644
(file)
--- a/
lisp/vc/ediff.el
+++ b/
lisp/vc/ediff.el
@@
-1367,7
+1367,8
@@
buffer. If odd -- assume it is in a file."
(require 'ediff-ptch)
(setq patch-buf
(ediff-get-patch-buffer
- (if arg (prefix-numeric-value arg)) patch-buf))
+ (if arg (prefix-numeric-value arg))
+ (get-buffer patch-buf)))
(setq source-dir (cond (ediff-use-last-dir ediff-last-dir-patch)
((and (not ediff-patch-default-directory)
(buffer-file-name patch-buf))