From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: Very Specific Key Press Behaviour Date: Wed, 24 Jun 2009 00:59:03 GMT Organization: U.C. Berkeley Math. Department. Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1245807646 27471 80.91.229.12 (24 Jun 2009 01:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 01:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 03:40:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJHTb-0001SJ-HT for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 03:40:39 +0200 Original-Received: from localhost ([127.0.0.1]:52080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJHTb-0007AM-0w for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 21:40:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!nlpi057.nbdc.sbc.com!prodigy.net!flph199.ffdc.sbc.com!prodigy.com!nlpi071.nbdc.sbc.com!nlpi066.nbdc.sbc.com.POSTED!b5a1a09a!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Linux) Original-Lines: 11 Original-NNTP-Posting-Host: 169.229.58.33 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi066.nbdc.sbc.com 1245805143 ST000 169.229.58.33 (Tue, 23 Jun 2009 20:59:03 EDT) Original-NNTP-Posting-Date: Tue, 23 Jun 2009 20:59:03 EDT X-UserInfo1: T[O_S\OGTREUST@[IJKX_QLBTJT@QDDMEPWXODMMHXMTWA]EP]RAQFW[ML\THRCKV^GGZKJMGV^^_JSCFFUA_QXFGVSCYRPILH]TRVKC^LSN@DX_HCAFX__@J\DAJBVMY\ZWZCZLPA^MVH_P@\\EOMW\YSXHG__IJQY_@M[A[[AXQ_XDSTAR]\PG]NVAQUVM Original-Xref: news.stanford.edu gnu.emacs.help:170248 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:65464 Archived-At: On 2009-06-22, Nordlöw wrote: > How can I bind an action to a key when it is pressed the n:th time, > possibly with different behaviour the 3:rd time compared to the 2:nd > and 1:st time. Can I combine it with define-prefix-command? mult-press.el is a part of ilyaz.org/software/emacs/emacs-el-src-2005-09.zip Hope this helps, Ilya