Christian Ohler <[EMAIL PROTECTED]> writes:

> Matthieu Moy, 2007-07-08:
>
>> Indeed, if the file is open with unsaved modifications, you may even
>> not want Emacs/DVC to edit is (I hate automatic tools mixing with my
>> handwritten code). I'd do that like
>>
>> (when (.mtn-ignore has unsaved modifications)
>>    (prompt-for-save))
>> (when (.mtn-ignore still has unsaved modifications)
>>    (abort))
>>
>
> The drawback of this method is that it makes it impossible to have
> xmtn make additions to the file while it has unsaved changes.

It does, but forces you to save before.

> The current method, modified to skip the question if the file wasn't
> already modified, should work.

For some definition of "work" only ;-). If the user doesn't want to
save the changes, the file still isn't actually ignored. I don't
really see a usefull use-case where you'd want to add something to the
ignore file without saving it.

-- 
Matthieu

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to