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: Re: Quoted function in `define-key' Date: Sat, 04 Feb 2017 20:33:51 +0530 Message-ID: <87efzedmlk.fsf@vicarie.i-did-not-set--mail-host-address--so-tickle-me> References: <874m0a6ywa.fsf@vicarie.i-did-not-set--mail-host-address--so-tickle-me> <874m0ap3ex.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486220410 1999 195.159.176.226 (4 Feb 2017 15:00:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2017 15:00:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Narendra Joshi , help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 04 16:00:04 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 1ca1op-0000Cq-DD for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 16:00:03 +0100 Original-Received: from localhost ([::1]:39683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca1ov-0003oT-1B for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 10:00:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca1oU-0003oB-Aq for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 09:59:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca1oR-0003hT-9x for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 09:59:42 -0500 Original-Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:33037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca1oR-0003hB-3y for help-gnu-emacs@gnu.org; Sat, 04 Feb 2017 09:59:39 -0500 Original-Received: by mail-pg0-x241.google.com with SMTP id 194so4640334pgd.0 for ; Sat, 04 Feb 2017 06:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UpNb3XIn/nM/3dye0BApTyohCuQUOwbPXHx6XwcPqQM=; b=RCegujh0c3arqhXVMEcRB7CFl+XZK1uFMVQzZ3sVuc4BKd6yFORCyHktAfC+mWqg56 3fGeVcdVaNq+GAEM095ELzpZmirxoZbAxZqZFpidKXUI21yBG37rrjb43NNBwRro6xQX plCco27rMeqNDSGLAn9iFB3rmbAcUe+EBddYn27EyNHy+nDfpEFgM7Awcwk40IBK8wPh 0e8Isb3KE2ZLC1WQ77oMcqdq+kFDtgrKS9XCZFoTg4MHTfNmVw/pQmoViYQJqLegau6Q 09BVjmCtq9fpUAiigwOzaW6ZNZg/y/4fCsKbuiDvRvLAaYE6nMSsEPLA5tkK/w2E61ua wPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=UpNb3XIn/nM/3dye0BApTyohCuQUOwbPXHx6XwcPqQM=; b=cqXhzbN1JjKMe3/xWlbxjsrO/tr9NMM6G0XM55HkiaMKEzG0rrJhwTqfAs4Ca5r8fp ajwkFRr+02zroHYA/HJeokMmHfEXrfi25NVfsPTL2fKEkABFZk5N02+XVmCmJZzS7coy B8ppL8s5tlZD6j59Reb3Bnr2QBLaCq58iuktldIHiKGZxsZTljdFkKx0mvz2lArvHP58 Wvf8NEYs9gS22zYcK7XzciTFGZ6SM2+Ft6OkCUmhip8GK98rsSFf87Cl/BubZCwusFSW RS60OWM6plKef1RnyWetf+BhgbBSQ6E31mYSb0OmIoSd5XIs8zNJSnwBn1z/CtAsWWZn tavg== X-Gm-Message-State: AIkVDXLLYd8KFhv/L/h3/kecHh8hVo9ETHWXWJtq9S9h4axeg2oUFEuxVc+MCYdnwv6DLA== X-Received: by 10.98.196.1 with SMTP id y1mr2990203pff.105.1486220377906; Sat, 04 Feb 2017 06:59:37 -0800 (PST) Original-Received: from vicarie ([182.70.84.252]) by smtp.gmail.com with ESMTPSA id b75sm75869150pfb.90.2017.02.04.06.59.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Feb 2017 06:59:36 -0800 (PST) X-Google-Original-From: Narendra Joshi In-Reply-To: <874m0ap3ex.fsf@drachen> (Michael Heerdegen's message of "Sat, 04 Feb 2017 13:05:10 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::241 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:112238 Archived-At: Michael Heerdegen writes: > Sure, but this is then not evaluated again, and you want the DEF > argument of `define-key' to be function-name, not (quote function-name). Okay. Let me re-state this whole thing so that I can assure myself that I have understood. (quote my-function) is exactly the same as 'my-function, i.e. (eq (quote my-function) 'my-function) evaluates to t. But here we are talking about the result of evaluating (quote my-function) which isn't a cons but a symbol. But if we have `(quote my-function) that isn't the same as 'my-function. Side note: If anybody knows how to type inline code in gnus message, it would be greatly appreciated. -- Narendra Joshi