all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 20528@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
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	[thread overview]
Message-ID: <87r1e4st33.fsf@gnus.org> (raw)
In-Reply-To: <jwvr3qrot8v.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Fri, 08 May 2015 13:51:50 -0400")

Stefan Monnier <monnier@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





      reply	other threads:[~2021-09-04  7:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 20:14 bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function Drew Adams
2015-05-08  6:38 ` Andreas Schwab
2015-05-08 15:25   ` Drew Adams
2015-05-08 15:33     ` Andreas Schwab
2015-05-08 17:51     ` Stefan Monnier
2021-09-04  7:22       ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1e4st33.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20528@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.