all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* standard framework for prompting user for next key cord in key sequence
@ 2011-09-03 18:35 Le Wang
  2011-09-03 19:11 ` standard framework for prompting user for next key cord in keysequence Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Le Wang @ 2011-09-03 18:35 UTC (permalink / raw)
  To: GNU Emacs List

Pressing C-h in the middle of a key sequence shows what's possible
next.  Is there a standard framework, for doing some thing similar,
without invoking C-h?  That is -- always provide the user with
feedback as to what key chord is possible next.  The help window
should disappear once input is complete successfully or aborted.

(defvar my-map (make-sparse-keymap))

(define-key my-map [(control c) (a)] 'a-func)
(define-key my-map [(control c) (b)] 'b-func)

(defun cool-fun (func)
  ""
  (interactive (magic-input-helper my-map))

The magic-input-helper is what I'm after here.  It seems this should
be a generally helpful function.

-- 
Le



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-04 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 18:35 standard framework for prompting user for next key cord in key sequence Le Wang
2011-09-03 19:11 ` standard framework for prompting user for next key cord in keysequence Drew Adams
2011-09-04  2:33 ` standard framework for prompting user for next key cord in key sequence Eric Abrahamsen
2011-09-04 19:00 ` Seweryn Kokot
2011-09-04 20:01   ` Le Wang

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.