From: Kenichi Handa <handa@m17n.org>
Subject: where-is-internal's firstonly
Date: Fri, 1 Oct 2004 16:37:19 +0900 (JST) [thread overview]
Message-ID: <200410010737.QAA02057@etlken.m17n.org> (raw)
It seems that where-is-internal handle the arg FIRSTONLY not
well.
Provided that the current active maps are MAP1 and MAP2
in this order, and we have these key bindings:
MAP1: "1" -> func, "2" -> func
MAP2: "A" -> func, "B" -> func
The function where_is_internal at first accumulates keys for
MAP1 in the variable SEQUENCES as ("2" "1") and then store
them in the variable FOUND as ("1" "2"), next accumulates keys
for MAP2 in SEQUENCES as ("B" "A") and then store them in
FOUND as ("A" "B" "1" "2"). Next FOUND is reversed to ("2"
"1" "B" "A"). So "2" is returned.
In short, where-is-internal finds the last binding in the
first active map.
Is this a bug? Or, is the important thing for
where-is-internal is to find a binding in first map, and
it's not important to find which binding in that map?
---
Ken'ichi HANDA
handa@m17n.org
next reply other threads:[~2004-10-01 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-01 7:37 Kenichi Handa [this message]
2004-10-01 12:40 ` where-is-internal's firstonly Stefan
2004-10-04 1:26 ` Kenichi Handa
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=200410010737.QAA02057@etlken.m17n.org \
--to=handa@m17n.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.