[Top][All Lists]

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

Re: Automating function with interactive args

From: Tassilo Horn
Subject: Re: Automating function with interactive args
Date: Thu, 26 Apr 2012 19:08:06 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux)

BDB <address@hidden> writes:

> Quite often I use "M-x ediff-revision", which then prompts me for the
> files to ediff, and I always just accept the defaults by hitting return
> to the 3 prompts.  I would like to make all of this a single keystroke.  
> A straight keyboard macro doesn't seem to work with the prompts, and my
> other googling hasn't turned up a solution.  Ideas?

I think this command should do the trick.

--8<---------------cut here---------------start------------->8---
(require 'ediff)

(defun my-ediff-revision-latest ()
   (intern (format "ediff-%S-internal" ediff-version-control-package))
   nil nil nil))
--8<---------------cut here---------------end--------------->8---


reply via email to

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