all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 20528@debbugs.gnu.org
Subject: bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function
Date: Thu, 7 May 2015 13:14:24 -0700 (PDT)	[thread overview]
Message-ID: <d9d9f563-b5b3-49cc-992c-b6b654f10723@default> (raw)

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=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'





             reply	other threads:[~2015-05-07 20:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 20:14 Drew Adams [this message]
2015-05-08  6:38 ` bug#20528: 25.0.50; `keymap' property to work for symbol-value, not just symbol-function 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

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=d9d9f563-b5b3-49cc-992c-b6b654f10723@default \
    --to=drew.adams@oracle.com \
    --cc=20528@debbugs.gnu.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.