From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: esabof@gmail.com Newsgroups: gmane.emacs.help Subject: Re: How can a command find out which key-sequence has evoked it? Date: Fri, 31 May 2013 12:30:31 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1370029897 23408 80.91.229.3 (31 May 2013 19:51:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 19:51:37 +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 May 31 21:51:38 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 1UiVMP-0006T0-Iu for geh-help-gnu-emacs@m.gmane.org; Fri, 31 May 2013 21:51:37 +0200 Original-Received: from localhost ([::1]:58851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiVMP-0003WO-8R for geh-help-gnu-emacs@m.gmane.org; Fri, 31 May 2013 15:51:37 -0400 X-Received: by 10.224.205.138 with SMTP id fq10mr7284868qab.1.1370028631446; Fri, 31 May 2013 12:30:31 -0700 (PDT) X-Received: by 10.49.83.137 with SMTP id q9mr1106909qey.36.1370028631350; Fri, 31 May 2013 12:30:31 -0700 (PDT) Original-Path: usenet.stanford.edu!p1no182049qaj.0!news-out.google.com!y6ni158qax.0!nntp.google.com!ch1no186182qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.3.182.83; posting-account=hvyt3AoAAAAdOSTOoji20fUtIaG9BH0F Original-NNTP-Posting-Host: 86.3.182.83 User-Agent: G2/1.0 Injection-Date: Fri, 31 May 2013 19:30:31 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:198945 X-Mailman-Approved-At: Fri, 31 May 2013 15:51:22 -0400 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:91212 Archived-At: Found it: (global-set-key (kbd "C-x C-v C-b") (lambda () (interactive) (message "Evoked by: %s" (key-description (this-command-keys))))) On Friday, May 31, 2013 7:45:39 PM UTC+1, esa...@gmail.com wrote: > Ideally in kbd syntax. > > > > Evgeni