[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: |
25 Sep 2003 16:32:20 -0700 |
I tried to wrap your code into my vc-diff wrapper and got an error message...
(defun cs-vc-diff() (interactive)
(let ((unread-command-events '(?y ?e ?s)))
(vc-diff)) ; (call-interactively 'vc-diff)?
)
Here is the error message...
let: Wrong number of arguments: #[(historic &optional not-urgent)
....etc.
CS
>
> > (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'.