From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Automating function with interactive args Date: Thu, 26 Apr 2012 19:08:06 +0200 Message-ID: <87ehra5sll.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335460130 19592 80.91.229.3 (26 Apr 2012 17:08:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2012 17:08:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 26 19:08:49 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SNSBQ-0002y0-Gq for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2012 19:08:44 +0200 Original-Received: from localhost ([::1]:58666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNSBP-0001uu-QM for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2012 13:08:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNSB8-0001Ou-0D for help-gnu-emacs@gnu.org; Thu, 26 Apr 2012 13:08:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNSB1-0006gE-J5 for help-gnu-emacs@gnu.org; Thu, 26 Apr 2012 13:08:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNSB1-0006fu-D3 for help-gnu-emacs@gnu.org; Thu, 26 Apr 2012 13:08:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SNSAy-0002YF-Tv for help-gnu-emacs@gnu.org; Thu, 26 Apr 2012 19:08:16 +0200 Original-Received: from 91-67-11-43-dynip.superkabel.de ([91.67.11.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2012 19:08:16 +0200 Original-Received: from tassilo by 91-67-11-43-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Apr 2012 19:08:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-11-43-dynip.superkabel.de User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:HCOe+OBXY9+KDSbd8evAvdWB8qs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84647 Archived-At: BDB 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 () (interactive) (ediff-load-version-control) (funcall (intern (format "ediff-%S-internal" ediff-version-control-package)) nil nil nil)) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo