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: 26 Apr 2012 20:35:17 GMT
User-agent: slrn/pre1.0.0-18 (Linux)

Tassilo Horn wrote:
> --8<---------------cut here---------------start------------->8---
> (require 'ediff)
>
> (defun my-ediff-revision-latest ()
>   (interactive)
>   (ediff-load-version-control)
>   (funcall
>    (intern (format "ediff-%S-internal" ediff-version-control-package))
>    nil nil nil))
> --8<---------------cut here---------------end--------------->8---

This didn't work, however it seemed close (closer than the other example
posted).  It brought up ediff with both windows pointing to the same
HEAD version of the file, and gave an error
"Removing old name: no such file or directory ..."

Anyone willing to help me understand the code here?  The format command
is kind of like sprintf, right?  Why are you trying to call
ediff-<value>-internal?  What's that?

Thanks!


reply via email to

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