[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52507: [PATCH v3] Option for vc-delete-file to keep file on disk
From: |
Ashwin Kafle |
Subject: |
bug#52507: [PATCH v3] Option for vc-delete-file to keep file on disk |
Date: |
Thu, 16 Dec 2021 14:07:15 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> writes:
[...]
>> But then the user will get error about wrong number of arguments if
>> the
>> backend doesn't support it.
>
> That's better than having the file deleted, I think.
>
> And our implementation can catch this particular error and show a more
> humane message, too.
With the attached patch, the file will not be deleted when prefix is given.
[...]
>> I think it would be better to check if the file exists after calling
>> vc
>> backends. If it doesn't and keep-files is non-nil, we can restore from the
>> backup(which is always happening).
>
> Couldn't backups be disabled?
The attached patch changes make-backup-files temporarily.
0001-Option-for-vc-delete-file-to-keep-file-on-disk.patch
Description: Text Data
bug#52507: [PATCH] Option for vc-delete-file to keep file on disk, Dmitry Gutov, 2021/12/15