On Sun, Dec 2, 2012 at 4:15 PM, Drew Adams
<drew.adams@oracle.com> wrote:
> When I'm in the middle of inputting a Key Sequence, how may
> I get a data structure with the Key Sequence entered thus
> far from Elisp?
> ...
> I can do this if I can get the Key Sequence as the user has
> been entered at that time.
If I understand what you are asking, see `this-command-keys'. E.g.:
(defun foo ()
"..."
(let* ((this-key (this-command-keys))
(prefix (substring
this-key
0 (1- (length this-key)))))
;; (message "PREFIX: %S, DESCRIPTION: %S"
;; prefix (key-description prefix))
prefix))
This is what I use in the code for Icicles key completion.