Make ediff offer to create files it's inferring
* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Offer to create the inferred file name (if it doesn't exist) (bug#8009). This allows applying a patch that creates a file.
This commit is contained in:
parent
2782d1e1a1
commit
c9c8d98446
1 changed files with 3 additions and 0 deletions
|
@ -465,6 +465,9 @@ are two possible targets for this %spatch. However, these files do not exist."
|
|||
file1 file2 (if multi-patch-p "multi-" ""))))
|
||||
(princ "
|
||||
\nPlease enter an alternative patch target ...\n"))
|
||||
(when (and (string= file1 file2)
|
||||
(y-or-n-p (format "Create %s?" file1)))
|
||||
(write-region (point-min) (point-min) file1))
|
||||
(let ((directory t)
|
||||
target)
|
||||
(while directory
|
||||
|
|
Loading…
Add table
Reference in a new issue