help-gnu-emacs
[Top][All Lists]
Advanced

[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


From: Christian Seberino
Subject: Re: How make vc-diff and vc-revert-buffer NOT ask to save files but do it automatically?
Date: 24 Sep 2003 16:50:05 -0700

Kevin

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)?

Is there no method that I can learn that will work for all???

Chris
 

Kevin Rodgers <address@hidden> wrote in message news:<address@hidden>...
> Christian Seberino wrote:
> 
> >    (defun cs-vc-diff() (interactive)
> >       (vc-diff "yes"))
> >  
> >    (defun cs-vc-revert-buffer() (interactive)
> >       (save-buffer)
> >       (vc-revert-buffer "yes"))
> > 
> > These did not work but instead I got an error message about the "wrong
> > number of arguments" and other junk.
> > 
> > How fix?
> 
> 
> (let ((unread-command-events '(?y ?e ?s)))
>    (vc-foo))  ; (call-interactively 'vc-foo)?
> 
> 
> > any help would be greatly appreaciated
> 
> Type `C-h f'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]