From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Quoted function in `define-key' Date: Sat, 04 Feb 2017 15:50:05 +0530 Message-ID: <874m0a6ywa.fsf@vicarie.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486203389 29246 195.159.176.226 (4 Feb 2017 10:16:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2017 10:16:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 04 11:16:26 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZxOF-0007AV-G7 for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 11:16:19 +0100 Original-Received: from localhost ([::1]:38670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZxOJ-0007pM-Aq for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 05:16:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZxNr-0007p6-TH for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 05:15:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZxNo-0000xw-Q6 for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 05:15:55 -0500 Original-Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:36455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZxNo-0000xM-K2 for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 05:15:52 -0500 Original-Received: by mail-pf0-x242.google.com with SMTP id 19so3309882pfo.3 for ; Sat, 04 Feb 2017 02:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=a/TcDjvvRTL6WRdOjrTrZ1guJUFX/xK+Jj6Q7gvTt2I=; b=oe86QzpTk37YIEIEV1A2ay0dxMbDhDxi2tfbPuKv18wiXyaEYwRaxFUiIan4jeox+Z NtaqjVicnQiAWT5fU+8b6CI9Caqt0ayXTf4HEfF2miAxd1f/1rR99myKLga9PfXHPU9l kjB1TZtdHKG4PFSwB98CjigXcyb2lYbEbxJpRYoM2uSMF+4sTk1WnR8kS3ur5BN+pWm8 v9kpbyDykvBtSQX5RdhnAbCAgkPM+oVXABAvRUKc+R2UtGrg6dzDebsiavdS9YiBxT9K SRA02ope2ZANfbdFwL5bZc9hXGSHxMJHENXWkWJtLwLLg8BISm9RULNd2/KYZDzAn4ET cLAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=a/TcDjvvRTL6WRdOjrTrZ1guJUFX/xK+Jj6Q7gvTt2I=; b=G+RFnhkGo4sx/CiovaGFWLkFR3BMt68CPl9rryq2zQWpdUUUR+9BY7ULjnFexR7S7+ QRynOOyv7TbJQYtiforFAncQwj7fv6494mQdzupznU26sARPLYL/Uhe+Nl7Dl8HPGNTg h0nlU7gleEPLlfUKvHZL8bKJ41qmnjff49Tj0PwrZ22Lji+LnU0KFwMT9QENxwQUWWhe fCIEd0SiJFUoEJbCCA+0maiw65PovsfH7V+DfnBuJeXbyNhvNdJWwdx9jSXgYtM2pTjZ 2F149x/a3ZGzybuN7BmMTnEwoh8sBEsUgN39WNgbnhe7X8mV0ntjHgWqoQSF9isgAt1o p6Sw== X-Gm-Message-State: AIkVDXKZ9Scq2l6/+AvzZxuBrsN0SPcqpN5+Bs9JpKVDjf27ccYT35VqHjYUMB7yWaGY1g== X-Received: by 10.84.197.1 with SMTP id m1mr2335955pld.123.1486203351265; Sat, 04 Feb 2017 02:15:51 -0800 (PST) Original-Received: from vicarie ([171.50.208.33]) by smtp.gmail.com with ESMTPSA id p15sm73741385pfk.58.2017.02.04.02.15.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Feb 2017 02:15:50 -0800 (PST) X-Google-Original-From: Narendra Joshi X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112235 Archived-At: The following piece of code is confusing me. It is from `rinari-minor-mode'. (dolist (el (append (mapcar (lambda (el) (cons (concat "f" (second el)) (read (format "'rinari-find-%S" (first el))))) rinari-jump-schema) rinari-minor-mode-keybindings)) (eval `(define-key rinari-prefix-map ,(car el) ,(cdr el)))) If I replace the last expression with: (define-key rinari-prefix-map (car el) (cdr el)) why does it fail? (cdr el) is (quote function-name) which is exactly the same as 'function-name. -- Narendra Joshi