From: Drew Adams <drew.adams@oracle.com>
To: 15993@debbugs.gnu.org
Subject: bug#15993: 24.3.50; doc of `set-temporary-overlay-map' - explain "used only once"
Date: Thu, 28 Nov 2013 12:37:42 -0800 (PST) [thread overview]
Message-ID: <3f303fda-e66b-4d9c-a1a7-da7d9950d09d@default> (raw)
This pertains to both the Elisp manual and the doc string.
This function puts a keymap in place temporarily, and that keymap
overrides most other keymaps. The important question of what
"temporarily" means here is not answered by the doc. It says only
"Normally, MAP is used only once." A user is left to guess what
"used only once" means. Only one occurrence of what?
Just say that it is used only for the next key-sequence event, or
something similar. Somehow, state that it is (with null KEEP-PRED)
in effect only for the next event.
For *anything* that "sets" something for only a certain duration, e.g.,
until some state change, it is important to say what it is that causes
the setting to no longer be in effect.
It also would not hurt to either describe a typical use case or show a
simple example. The uses of this all seem to be similar, but it is
not obvious from the description alone what this function is for.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-11-28 on MW7G474MYRXUPA
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'
next reply other threads:[~2013-11-28 20:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 20:37 Drew Adams [this message]
2014-02-08 3:06 ` bug#15993: 24.3.50; doc of `set-temporary-overlay-map' - explain "used only once" Lars Ingebrigtsen
2014-02-08 23:00 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f303fda-e66b-4d9c-a1a7-da7d9950d09d@default \
--to=drew.adams@oracle.com \
--cc=15993@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).