GNU bug report logs - #20528
25.0.50; `keymap' property to work for symbol-value, not just symbol-function

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Thu, 7 May 2015 20:15:03 UTC

Severity: wishlist

Tags: wontfix

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 20528 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>, Drew Adams <drew.adams <at> oracle.com>
Subject: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function
Date: Sat, 04 Sep 2021 09:22:40 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> 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




This bug report was last modified 3 years and 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.