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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automating function with interactive args


From: BDB
Subject: Re: Automating function with interactive args
Date: 27 Apr 2012 16:30:18 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

Tassilo Horn wrote:
>
> --8<---------------cut here---------------start------------->8---
> (defun my-ediff-revision-latest ()
>    (interactive)
>    (if (and (buffer-modified-p)
>           (y-or-n-p (format "Buffer %s is modified. Save buffer? "
>                             (buffer-name))))
>        (save-buffer (current-buffer)))
>    (ediff-load-version-control)
>    (funcall
>     (intern (format "ediff-%S-internal" ediff-version-control-package))
>     "" "" nil))
> --8<---------------cut here---------------end--------------->8---

Excellent, works perfectly.  Thank you!


reply via email to

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