From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Get a command by its keybinding and also respecting key translation Date: Mon, 20 Dec 2010 12:10:51 +0100 Message-ID: <87hbe8d7ic.fsf@member.fsf.org> References: <871v5lpkk6.fsf@member.fsf.org> <201012142351.21774.tassilo@member.fsf.org> <87y67kdff4.fsf@member.fsf.org> <87lj3kd9vn.fsf@member.fsf.org> <8739psn34c.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292843474 17777 80.91.229.12 (20 Dec 2010 11:11:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 11:11:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 20 12:11:10 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 1PUde1-0002QC-NO for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 12:11:09 +0100 Original-Received: from localhost ([127.0.0.1]:39821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUde1-0004QY-09 for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 06:11:09 -0500 Original-Received: from [140.186.70.92] (port=42145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUddt-0004QJ-IA for emacs-devel@gnu.org; Mon, 20 Dec 2010 06:11:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUddo-0004Vl-JH for emacs-devel@gnu.org; Mon, 20 Dec 2010 06:11:01 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:12586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUddl-0004TT-MG; Mon, 20 Dec 2010 06:10:53 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 683587801695; Mon, 20 Dec 2010 12:10:52 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30015-01; Mon, 20 Dec 2010 12:10:51 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id AB8E27801691; Mon, 20 Dec 2010 12:10:51 +0100 (CET) In-Reply-To: <8739psn34c.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 20 Dec 2010 11:35:31 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:133835 Archived-At: David Kastrup writes: Hi David, >>> 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 \`. Oh, even this sencence was hard to parse. What does \` have to do with a dot followed by two spaces!?! After increasing my lookahead, I managed to grasp it. :-) > At some point in the past, this rather used the macro backquote > instead. If this were still so, you probably would be less confused. Yes. > The connection between ` and \` is arbitrary, and established by the > Lisp reader. > > M-: '`(+ 4 ,soup) > > gives > > (\` (+ 4 (\, soup))) Yes, I thought the expansion would have been either `(+ 4 (\, soup)) or (backquote (+ 4 (\, soup))). The comment ;; GNU Emacs has no reader macros before the defalias doesn't make it clearer, though. Thanks for your clarification, Tassilo