emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

where-is-internal's firstonly


From: Kenichi Handa
Subject: where-is-internal's firstonly
Date: Fri, 1 Oct 2004 16:37:19 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

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
address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]