From unknown Sun Jun 22 19:06:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20528 <20528@debbugs.gnu.org> To: bug#20528 <20528@debbugs.gnu.org> Subject: Status: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function Reply-To: bug#20528 <20528@debbugs.gnu.org> Date: Mon, 23 Jun 2025 02:06:35 +0000 retitle 20528 25.0.50; `keymap' property to work for symbol-value, not just= symbol-function reassign 20528 emacs submitter 20528 Drew Adams severity 20528 wishlist tag 20528 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 07 16:14:40 2015 Received: (at submit) by debbugs.gnu.org; 7 May 2015 20:14:41 +0000 Received: from localhost ([127.0.0.1]:38106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqSBs-0007mz-By for submit@debbugs.gnu.org; Thu, 07 May 2015 16:14:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55385) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqSBq-0007mn-EU for submit@debbugs.gnu.org; Thu, 07 May 2015 16:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqSBk-0003Xz-8L for submit@debbugs.gnu.org; Thu, 07 May 2015 16:14:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqSBk-0003Xq-5f for submit@debbugs.gnu.org; Thu, 07 May 2015 16:14:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqSBj-0008Es-36 for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 16:14:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqSBe-0003Wt-W5 for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 16:14:31 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:49801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqSBe-0003WQ-PZ for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 16:14:26 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t47KEPqS022375 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 May 2015 20:14:25 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t47KEPtN007612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 7 May 2015 20:14:25 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t47KEPCJ000485 for ; Thu, 7 May 2015 20:14:25 GMT MIME-Version: 1.0 Message-ID: Date: Thu, 7 May 2015 13:14:24 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The `keymap' text or overlay property can have a value that is `keymapp', which means that it can be a list with car `keymap' etc. or a symbol whose `symbol-function' is a keymap. Please allow it to also be a symbol, such as `Info-mode-map', whose `symbol-value' is a keymap. It is used only as a keymap. It is not used as a function. It is convenient to be able to reuse an existing keymap variable to provide a map for a given portion of text. Likewise, for property `local-map'. (I'm guessing that I cannot change Emacs to recognize this, myself, because it involves the C level (e.g. `key-binding' or `lookup-key'). If I'm mistaken, please point me to the Lisp code that interprets the keymap property, looks up a key in the map and invokes its command.) In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2014-10-20 on LEG570 Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1' From debbugs-submit-bounces@debbugs.gnu.org Fri May 08 02:38:28 2015 Received: (at 20528) by debbugs.gnu.org; 8 May 2015 06:38:28 +0000 Received: from localhost ([127.0.0.1]:38224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqbvX-0001Hq-Ly for submit@debbugs.gnu.org; Fri, 08 May 2015 02:38:28 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:59198) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqbvU-0001Hd-Ru for 20528@debbugs.gnu.org; Fri, 08 May 2015 02:38:25 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ljhnC4jLQz3hhc7; Fri, 8 May 2015 08:38:23 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3ljhnC2sz6zvh2G; Fri, 8 May 2015 08:38:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id wGTTk5ll10Xt; Fri, 8 May 2015 08:38:22 +0200 (CEST) X-Auth-Info: EJInby0ITbNESLFGWQnzHMv3IOucmS4sF4190EZhnR1oOBlJ1Wki1CpNkvu6Jjiv Received: from igel.home (ppp-93-104-60-133.dynamic.mnet-online.de [93.104.60.133]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 8 May 2015 08:38:22 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 589AF2C1BB7; Fri, 8 May 2015 08:38:22 +0200 (CEST) From: Andreas Schwab To: Drew Adams Subject: Re: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function References: X-Yow: It was a JOKE!! Get it?? I was receiving messages from DAVID LETTERMAN!! YOW!! Date: Fri, 08 May 2015 08:38:22 +0200 In-Reply-To: (Drew Adams's message of "Thu, 7 May 2015 13:14:24 -0700 (PDT)") Message-ID: <87twvntvz5.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20528 Cc: 20528@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Drew Adams writes: > Please allow it to also be a symbol, such as `Info-mode-map', whose > `symbol-value' is a keymap. It is used only as a keymap. It is not > used as a function. It is convenient to be able to reuse an existing > keymap variable to provide a map for a given portion of text. Why can't you dereference the variable when assigning the property? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri May 08 11:26:11 2015 Received: (at 20528) by debbugs.gnu.org; 8 May 2015 15:26:11 +0000 Received: from localhost ([127.0.0.1]:38907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqkAF-0000Rq-1W for submit@debbugs.gnu.org; Fri, 08 May 2015 11:26:11 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:26905) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqkAD-0000Ra-GH for 20528@debbugs.gnu.org; Fri, 08 May 2015 11:26:10 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t48FQ0w7009413 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 May 2015 15:26:01 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t48FPxRL027535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 8 May 2015 15:25:59 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t48FPxlY005038; Fri, 8 May 2015 15:25:59 GMT MIME-Version: 1.0 Message-ID: <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> Date: Fri, 8 May 2015 08:25:58 -0700 (PDT) From: Drew Adams To: Andreas Schwab Subject: RE: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function References: <87twvntvz5.fsf@igel.home> In-Reply-To: <87twvntvz5.fsf@igel.home> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20528 Cc: 20528@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > > Please allow it to also be a symbol, such as `Info-mode-map', > > whose `symbol-value' is a keymap. It is used only as a keymap. > > It is not used as a function. It is convenient to be able to > > reuse an existing keymap variable to provide a map for a given > > portion of text. >=20 > Why can't you dereference the variable when assigning the property? Why can't you dereference the function symbol when assigning the property? ;-) As I said, it is used here only as a keymap, not as a function. But the real reason is that I want to have `C-u C-x =3D' show the variable name, not the raw keymap value (after [Show]). In my version, clicking that name then provides a human-readable description of the keymap (from command `describe-keymap'). Anyway, my guess about requiring C code modification was wrong. I've done what I wanted now, locally. You can do likewise for Emacs, if you want. Or not. The descr-text.el code is here: http://www.emacswiki.org/emacs/download/descr-text%2b.el Command `describe-keymap' is here: http://www.emacswiki.org/emacs/download/help-fns%2b.el All that's needed is to add a `help-keymap' button, and to use that in `describe-property-list' for a keymap variable. And to have `describe-text-sexp' use action `describe-keymap' for a keymap var.=20 Then, when you click on the keymap var name from `C-u C-x =3D', you get a readable description of the keymap for that `keymap' or `local-map' property. Properties `keymap' and `local-map' are as important as properties such as `face' for `what-cursor-position' output, and they too can provide useful info here, if you let them. From debbugs-submit-bounces@debbugs.gnu.org Fri May 08 11:33:24 2015 Received: (at 20528) by debbugs.gnu.org; 8 May 2015 15:33:24 +0000 Received: from localhost ([127.0.0.1]:38918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqkHD-0000dY-Hg for submit@debbugs.gnu.org; Fri, 08 May 2015 11:33:24 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:41358) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqkHC-0000dQ-6q for 20528@debbugs.gnu.org; Fri, 08 May 2015 11:33:23 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3ljwfS5lcSz3hj37; Fri, 8 May 2015 17:33:20 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3ljwfS3pQvzvh2K; Fri, 8 May 2015 17:33:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id tV-dFempHVVQ; Fri, 8 May 2015 17:33:19 +0200 (CEST) X-Auth-Info: ubgRfD9+FLI5VO0R1oip3bOayiniFdcHyAOHREioB8cUu3zMzZzgwLn5j1whTdbg Received: from igel.home (ppp-93-104-60-133.dynamic.mnet-online.de [93.104.60.133]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 8 May 2015 17:33:19 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 7BEAA2C3C95; Fri, 8 May 2015 17:33:19 +0200 (CEST) From: Andreas Schwab To: Drew Adams Subject: Re: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function References: <87twvntvz5.fsf@igel.home> <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> X-Yow: YOW!! Now I understand advanced MICROBIOLOGY and th' new TAX REFORM laws!! Date: Fri, 08 May 2015 17:33:19 +0200 In-Reply-To: <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> (Drew Adams's message of "Fri, 8 May 2015 08:25:58 -0700 (PDT)") Message-ID: <878uczt77k.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20528 Cc: 20528@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Drew Adams writes: >> > Please allow it to also be a symbol, such as `Info-mode-map', >> > whose `symbol-value' is a keymap. It is used only as a keymap. >> > It is not used as a function. It is convenient to be able to >> > reuse an existing keymap variable to provide a map for a given >> > portion of text. >> >> Why can't you dereference the variable when assigning the property? > > Why can't you dereference the function symbol when assigning the > property? ;-) That's how lisp works, fundamentally. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri May 08 13:52:17 2015 Received: (at 20528) by debbugs.gnu.org; 8 May 2015 17:52:17 +0000 Received: from localhost ([127.0.0.1]:38997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqmRc-0005Nz-8T for submit@debbugs.gnu.org; Fri, 08 May 2015 13:52:16 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:41319) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqmRa-0005Nq-3E for 20528@debbugs.gnu.org; Fri, 08 May 2015 13:52:14 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 7972585FFF; Fri, 8 May 2015 13:52:13 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 6627C1E5874; Fri, 8 May 2015 13:51:50 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 3DE8EB41A0; Fri, 8 May 2015 13:51:50 -0400 (EDT) From: Stefan Monnier To: Drew Adams Subject: Re: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function Message-ID: References: <87twvntvz5.fsf@igel.home> <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> Date: Fri, 08 May 2015 13:51:50 -0400 In-Reply-To: <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> (Drew Adams's message of "Fri, 8 May 2015 08:25:58 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20528 Cc: 20528@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Why can't you dereference the function symbol when assigning the > property? ;-) When the function symbol is used, often the reason is so that it works even if the keymap is not yet defined (e.g. the keymap is autoloaded). > But the real reason is that I want to have `C-u C-x =' show the > variable name, not the raw keymap value (after [Show]). In my Would be nice, indeed. But I'm not sure it's worth the hassle. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 03:22:57 2021 Received: (at control) by debbugs.gnu.org; 4 Sep 2021 07:22:57 +0000 Received: from localhost ([127.0.0.1]:46364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMQ0v-0002U1-9P for submit@debbugs.gnu.org; Sat, 04 Sep 2021 03:22:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMQ0t-0002Tj-Vd for control@debbugs.gnu.org; Sat, 04 Sep 2021 03:22:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dquDP3GQx/yoyvbCYkp7zqogSBS99jU98a46DY92R8s=; b=ODv1OmujBPG+S2p9ZXU1lgLTdK tasU4OzP03OzDliWKxXbmgtZeN31DA/vTJm7dCepeLW7dGrEGHiNTHGUd7fvv7J/efehrahqKa8/r 41Y97pAYhB72aRhQUAKfrXMuidLIDgUOe0Yb8m8u4nWFjZR6SWZfp4WU13zZ9HVjAzUo=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMQ0m-0006d4-7g for control@debbugs.gnu.org; Sat, 04 Sep 2021 09:22:50 +0200 Date: Sat, 04 Sep 2021 09:22:47 +0200 Message-Id: <87pmtost2w.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20528 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 20528 wontfix close 20528 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 20528 wontfix close 20528 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 03:23:07 2021 Received: (at 20528) by debbugs.gnu.org; 4 Sep 2021 07:23:08 +0000 Received: from localhost ([127.0.0.1]:46369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMQ15-0002VK-F2 for submit@debbugs.gnu.org; Sat, 04 Sep 2021 03:23:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMQ0p-0002TZ-NR for 20528@debbugs.gnu.org; Sat, 04 Sep 2021 03:23:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QsQS6TM6d511fKGUfpsGjE2yExJSj9ulX2BbTEOtRt4=; b=nbPzLXfihuZe/xyoJ4zksRymXU NbMJoQtHfnZwVjnm5i3Fu1iC7I5NTvMgPlPwFXqa+qnbQS085LuW2WOOrsNBY59MZTsj7cnH1HVOJ Jbvl++sqrqcPhDyKGkiCgWoXahk8mr+iPWfCH4vihVwuLiM7QzfPM1z1qNrCKs2gE/Uo=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMQ0f-0006cs-61; Sat, 04 Sep 2021 09:22:43 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function References: <87twvntvz5.fsf@igel.home> <2b90d00b-d8b9-463e-a6e1-e60f0f391a3e@default> Date: Sat, 04 Sep 2021 09:22:40 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 08 May 2015 13:51:50 -0400") Message-ID: <87r1e4st33.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> Why can't you dereference the function symbol when assigning the >> property? ;-) > > When the function symbol is used, often the reason is so that it works > even if the keymap is not yet defined [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20528 Cc: 20528@debbugs.gnu.org, Andreas Schwab , Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> Why can't you dereference the function symbol when assigning the >> property? ;-) > > When the function symbol is used, often the reason is so that it works > even if the keymap is not yet defined (e.g. the keymap is autoloaded). > >> But the real reason is that I want to have `C-u C-x =' show the >> variable name, not the raw keymap value (after [Show]). In my > > Would be nice, indeed. But I'm not sure it's worth the hassle. And I think it would make things more ambiguous -- today we only look at the symbol's function value, and if we looked at both the function value and the, er, value value, we'd have to come up with rules for precedence. So I think the way it works currently is fine, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jun 22 19:06:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Oct 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator