From: BDB <noemail@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Automating function with interactive args
Date: 26 Apr 2012 20:35:17 GMT [thread overview]
Message-ID: <slrnjpjcc7.1mm.noemail@us.news.astraweb.com> (raw)
In-Reply-To: mailman.105.1335460111.855.help-gnu-emacs@gnu.org
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!
next prev parent reply other threads:[~2012-04-26 20:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 16:53 Automating function with interactive args BDB
2012-04-26 17:08 ` Tassilo Horn
2012-04-26 17:21 ` Drew Adams
[not found] ` <mailman.105.1335460111.855.help-gnu-emacs@gnu.org>
2012-04-26 20:35 ` BDB [this message]
2012-04-27 7:42 ` Tassilo Horn
[not found] ` <mailman.155.1335512574.855.help-gnu-emacs@gnu.org>
2012-04-27 16:30 ` BDB
2012-04-27 16:43 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnjpjcc7.1mm.noemail@us.news.astraweb.com \
--to=noemail@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.