Christian Ohler <[EMAIL PROTECTED]> writes: > Stephen Leake, 2007-07-08: > >> Matthieu Moy <[EMAIL PROTECTED]> writes: >> >>>> xmtn's implementation of both of these functions will ask between two >>>> and three questions: >>>> (1) Ignore %s? >>>> (2) Save buffer .mtn-ignore? >>> If the .mtn-ignore had no unsaved changes before the operation, I >>> don't see any case where you would answer "yes". >> >> Hmm. Why would you _not_ save a file? I don't see any case where you >> would answer "no" to (2). > > You want to say "no" if you already have unsaved modifications to the > file .mtn-ignore that you still don't want to save. If you save the > file, the changes will affect any subsequent mtn invocation, and maybe > you don't want that yet.
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)) -- Matthieu _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
