comparison src/keyboard.c @ 83423:b64b7e867d0a

Merged from miles@gnu.org--gnu-2005 (patch 677) Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-677 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-463
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 26 Dec 2005 03:16:59 +0000
parents 521d3f18b3d1 61bd8643b908
children ec395f552d45
comparison
equal deleted inserted replaced
83422:1f5d64c4df6f 83423:b64b7e867d0a
5852 { 5852 {
5853 FRAME_PTR f; 5853 FRAME_PTR f;
5854 Lisp_Object head, position; 5854 Lisp_Object head, position;
5855 Lisp_Object files; 5855 Lisp_Object files;
5856 5856
5857 /* The frame_or_window field should be a cons of the frame in 5857 f = XFRAME (event->frame_or_window);
5858 which the event occurred and a list of the filenames 5858 files = event->arg;
5859 dropped. */
5860 if (! CONSP (event->frame_or_window))
5861 abort ();
5862
5863 f = XFRAME (XCAR (event->frame_or_window));
5864 files = XCDR (event->frame_or_window);
5865 5859
5866 /* Ignore mouse events that were made on frames that 5860 /* Ignore mouse events that were made on frames that
5867 have been deleted. */ 5861 have been deleted. */
5868 if (! FRAME_LIVE_P (f)) 5862 if (! FRAME_LIVE_P (f))
5869 return Qnil; 5863 return Qnil;
11719 active keymaps have no binding for the current key sequence but 11713 active keymaps have no binding for the current key sequence but
11720 `local-function-key-map' binds a suffix of the sequence to a vector or 11714 `local-function-key-map' binds a suffix of the sequence to a vector or
11721 string, `read-key-sequence' replaces the matching suffix with its 11715 string, `read-key-sequence' replaces the matching suffix with its
11722 binding, and continues with the new sequence. 11716 binding, and continues with the new sequence.
11723 11717
11718 If the binding is a function, it is called with one argument (the prompt)
11719 and its return value (a key sequence) is used.
11720
11724 The events that come from bindings in `local-function-key-map' are not 11721 The events that come from bindings in `local-function-key-map' are not
11725 themselves looked up in `local-function-key-map'. 11722 themselves looked up in `local-function-key-map'.
11726 11723
11727 For example, suppose `local-function-key-map' binds `ESC O P' to [f1]. 11724 For example, suppose `local-function-key-map' binds `ESC O P' to [f1].
11728 Typing `ESC O P' to `read-key-sequence' would return [f1]. Typing 11725 Typing `ESC O P' to `read-key-sequence' would return [f1]. Typing