[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How make vc-diff and vc-revert-buffer NOT ask to save files but do i
Re: How make vc-diff and vc-revert-buffer NOT ask to save files but do it automatically?
Thu, 25 Sep 2003 09:27:21 -0600
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2
Christian Seberino wrote:
I am very grateful for your help. Is there a method that will
work to auto-answer any functions question??
You mentioned before that I had to look at the source to determine
what arguments a function would accept....
Some functions are ok with (foo "yes")
while others apparently need something like your snippet here:
(let ((unread-command-events '(?y ?e ?s)))
(vc-foo)) ; (call-interactively 'vc-foo)?
Actually, the first thing to do is to read the function's doc string and
argument list, via `C-h f'. Some functions have an argument that
controls whether or not the user is queried, but some don't and so you
would need to read the source to see how the particular question is
asked (via y-or-n-p, yes-or-no-p, or some other function).