From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: cannot call-last-kbd-macro on named macro Date: Fri, 19 May 2006 16:06:13 +0200 Message-ID: References: <1147203016.768665.319890@v46g2000cwv.googlegroups.com> <1147288360.586939.149030@q12g2000cwa.googlegroups.com> <871wuvfq38.fsf@wivenhoe.staff8.ul.ie> <87d5eet1tc.fsf@wivenhoe.staff8.ul.ie> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148049679 7496 80.91.229.2 (19 May 2006 14:41:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 14:41:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 19 16:41:18 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fh69x-0004p4-Op for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 16:40:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fh69x-0001wf-92 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 10:40:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net 7RY8sqTFIRfGE0R0998WcAX4ExinE4CejzkkSeSx34EqGEYICn User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:Igip3btGpYWPX1NEejCQ8FFUt4Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:139527 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35151 Archived-At: Brendan Halpin writes: >> Yes, that is really neat! How is it done? Programatically I mean. It >> would be cool to be able to do the same with other commands (buffer >> cycling, for example, which is now by default on C-x and C-x >> ). > > The function kmacro-call-macro in kmacro.el might be a good > starting point. Aaaaa... After looking at that piece of code for a while I noticed this: (if (equal repeat-key (read-event)) So *that* is what it does, read another event and then handles that. Cool! Don't ask me why I did not bother to look this up myself, it was right there, only a C-h k away... :)