From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Get a command by its keybinding and also respecting key translation Date: Mon, 20 Dec 2010 11:35:31 +0100 Organization: Organization?!? Message-ID: <8739psn34c.fsf@lola.goethe.zz> References: <871v5lpkk6.fsf@member.fsf.org> <201012142351.21774.tassilo@member.fsf.org> <87y67kdff4.fsf@member.fsf.org> <87lj3kd9vn.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292841363 7783 80.91.229.12 (20 Dec 2010 10:36:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 10:36:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 20 11:35:58 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUd5w-0001Dj-DL for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 11:35:56 +0100 Original-Received: from localhost ([127.0.0.1]:36688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUd5v-00071w-OV for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 05:35:55 -0500 Original-Received: from [140.186.70.92] (port=41227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUd5p-00071r-Ki for emacs-devel@gnu.org; Mon, 20 Dec 2010 05:35:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUd5n-0008T9-VP for emacs-devel@gnu.org; Mon, 20 Dec 2010 05:35:49 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:58213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUd5n-0008Sa-M6 for emacs-devel@gnu.org; Mon, 20 Dec 2010 05:35:47 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PUd5i-000169-Le for emacs-devel@gnu.org; Mon, 20 Dec 2010 11:35:42 +0100 Original-Received: from p508ed2df.dip.t-dialin.net ([80.142.210.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 11:35:42 +0100 Original-Received: from dak by p508ed2df.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Dec 2010 11:35:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508ed2df.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:xyhURdZ4//9h1JpMPm1wNTOwqcw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133831 Archived-At: Tassilo Horn writes: > Andreas Schwab writes: > > Hi Andreas, > >>> Or with an example: >>> >>> (defmacro define-context-key (keymap key dispatch) >>> `(define-key ,keymap ,key >>> (backquote >>> (menu-item "context-key" ignore >>> :filter (lambda (&optional ignored) >>> ,dispatch))))) >>> >>> How do I smuggle a `,' before the lambda? >> >> First, backquote != `. > > It is not? From backquote.el: > > (defalias '\` (symbol-function 'backquote)) > > And describe-function returns the same (except the name) for both ``' > and `backquote'. You are confusing \` with `. ` is (obviously) treated specially by the Lisp reader and converted into a form involving the macro \`. At some point in the past, this rather used the macro backquote instead. If this were still so, you probably would be less confused. The connection between ` and \` is arbitrary, and established by the Lisp reader. M-: '`(+ 4 ,soup) gives (\` (+ 4 (\, soup))) -- David Kastrup