From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Key-binding without minor mode! Date: Thu, 11 Sep 2014 12:47:39 +0100 Message-ID: <87mwa6crac.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410436111 9826 80.91.229.3 (11 Sep 2014 11:48:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 11:48:31 +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 Sep 11 13:48:24 2014 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 1XS2r6-0000hS-Qj for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 13:48:04 +0200 Original-Received: from localhost ([::1]:36908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2r6-0001HE-Gz for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 07:48:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2qp-0001Fg-VD for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:47:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS2qj-0008Bj-Qr for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:47:47 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:51607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS2qj-0008Ai-KE for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 07:47:41 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1XS2qh-0004Ai-Bp for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 12:47:39 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XS2qh-0002Bb-JG for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 12:47:39 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 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:99809 Archived-At: I am trying to find what a keybinding would have been if a minor mode had not been active, by switching the minor mode off with a let binding. But I don't know how to find the keybinding. I have tried... (key-binding (char-to-string last-command-event)) Works quite nicely keys such alphabetical keys, but fails for return which return a symbol. I've also tried (key-binding (this-command-keys)) (key-binding (this-command-keys-vector)) and also sorts of other alternatives. I'd appreciate any help! Phil