GNU bug report logs - #30958
26.0.91; No documentation for key and value in the function passed to `map-keymap'

Previous Next

Package: emacs;

Reported by: Hong Xu <hong <at> topbug.net>

Date: Tue, 27 Mar 2018 01:32:02 UTC

Severity: minor

Tags: moreinfo

Found in version 26.0.91

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 30958 <at> debbugs.gnu.org (full text, mbox):

From: Hong Xu <hong <at> topbug.net>
To: Drew Adams <drew.adams <at> oracle.com>, Andreas Schwab <schwab <at> suse.de>
Cc: 30958 <at> debbugs.gnu.org
Subject: Re: bug#30958: 26.0.91; No documentation for key and value in the
 function passed to `map-keymap'
Date: Tue, 27 Mar 2018 10:39:09 -0700
[Message part 1 (text/plain, inline)]
On 03/27/2018 07:27 AM, Drew Adams wrote:
>>> However, I searched the document, and could not find any useful
>>> information regarding the value of the binding.
>>
>> It is whatever you've put there, see define-key.  A keymap is really
>> just a mapping from a key to an arbitrary value, though if the keymap is
>> to be used as a local keymap each value should have one of the forms as
>> listed in the doc for define-key.
> 
> Yes, I think that is the point: what a keymap is, and so
> what its entries are that are being mapped over.
> 
> The key is to know or look up what a keymap is.  Maybe
> this needs to be pointed out better in the doc string?
> Maybe the doc string should point users to the doc about
> keymaps?  Typically we don't do that - if a user sees a
> term that is unclear we count on them looking it up.
> 
> But maybe it's not clear from the doc string that the
> key here is to know what keymap is?  I would think that
> that would be obvious, given that it is a function that
> maps over keymap entries.  But maybe it's not.
> 
> I don't really have a suggestion for this, but maybe
> Hong Xu does.
> 

Thanks, Drew. Actually it's also obvious for me to look up for a keymap
is. What is unobvious is the value of the binding. Even if you go to
"Format of Keymaps", it still does not talk about the actual value of
the binding. The reason it is important for `map-keymap' is that this
seems to be the only place that users need to know the exact value of
binding---in other places, they are operated by some provided functions.

Hong

[signature.asc (application/pgp-signature, attachment)]

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

Previous Next


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