From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nicolas Richard" Newsgroups: gmane.emacs.help Subject: Re: Problems with keybindings for functions with arguments Date: Fri, 08 Mar 2013 23:26:16 +0100 Message-ID: <87k3ph34vr.fsf@yahoo.fr> References: <87k3pixa5p.fsf@gmail.com> <87ppz93lxw.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362781596 10783 80.91.229.3 (8 Mar 2013 22:26:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 22:26:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 23:26:58 2013 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 1UE5kf-0001vm-OD for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 23:26:57 +0100 Original-Received: from localhost ([::1]:39924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE5kJ-0002RG-Qr for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 17:26:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE5k5-0002R9-In for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 17:26:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE5k0-0004ZP-M2 for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 17:26:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE5k0-0004ZI-FJ for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 17:26:16 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UE5kI-0001ZV-RG for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 23:26:34 +0100 Original-Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Mar 2013 23:26:34 +0100 Original-Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Mar 2013 23:26:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: geodiff-mac3.ulb.ac.be User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) Cancel-Lock: sha1:c1CxCjOcAX82v5lhgEmgYwdW/a0= 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:89430 Archived-At: "Nicolas Richard" writes: > you could rebind keys 1 to 8 to some helper function which would inspect > the key pressed. I must admit I have no idea how to do it right, but Thanks to Joost Kremers, to do it right is using last-command-event (or maybe (this-command-keys)). (I had searched the manual, but managed to miss those.) -- N.