diff options
| author | Richard M. Stallman | 1995-10-27 21:57:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-27 21:57:33 +0000 |
| commit | aaf2ead7391c4a209c94edec46b9b4d13ff46729 (patch) | |
| tree | 59eeb08894288b0783883460860163aa552931cf /src | |
| parent | d455db8e01a84d64b233aef44ae8620347ae7aac (diff) | |
| download | emacs-aaf2ead7391c4a209c94edec46b9b4d13ff46729.tar.gz emacs-aaf2ead7391c4a209c94edec46b9b4d13ff46729.zip | |
(Fcommand_execute): New arg KEYS. Callers changed.
(read_char): Specify KEYS when handling Vspecial_event_map.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 93258ff4f7a..630c1a14c3a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1380,7 +1380,7 @@ command_loop_1 () | |||
| 1380 | nonundocount = 0; | 1380 | nonundocount = 0; |
| 1381 | if (NILP (current_kboard->Vprefix_arg)) | 1381 | if (NILP (current_kboard->Vprefix_arg)) |
| 1382 | Fundo_boundary (); | 1382 | Fundo_boundary (); |
| 1383 | Fcommand_execute (this_command, Qnil); | 1383 | Fcommand_execute (this_command, Qnil, Qnil); |
| 1384 | 1384 | ||
| 1385 | } | 1385 | } |
| 1386 | directly_done: ; | 1386 | directly_done: ; |
| @@ -2067,7 +2067,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2067 | if (!NILP (tem)) | 2067 | if (!NILP (tem)) |
| 2068 | { | 2068 | { |
| 2069 | last_input_char = c; | 2069 | last_input_char = c; |
| 2070 | Fcommand_execute (tem, Qnil); | 2070 | Fcommand_execute (tem, Qnil, Fvector (1, &last_input_char)); |
| 2071 | goto retry; | 2071 | goto retry; |
| 2072 | } | 2072 | } |
| 2073 | 2073 | ||
| @@ -6242,14 +6242,16 @@ DEFUN ("read-key-sequence", Fread_key_sequence, Sread_key_sequence, 1, 4, 0, | |||
| 6242 | return make_event_array (i, keybuf); | 6242 | return make_event_array (i, keybuf); |
| 6243 | } | 6243 | } |
| 6244 | 6244 | ||
| 6245 | DEFUN ("command-execute", Fcommand_execute, Scommand_execute, 1, 2, 0, | 6245 | DEFUN ("command-execute", Fcommand_execute, Scommand_execute, 1, 3, 0, |
| 6246 | "Execute CMD as an editor command.\n\ | 6246 | "Execute CMD as an editor command.\n\ |
| 6247 | CMD must be a symbol that satisfies the `commandp' predicate.\n\ | 6247 | CMD must be a symbol that satisfies the `commandp' predicate.\n\ |
| 6248 | Optional second arg RECORD-FLAG non-nil\n\ | 6248 | Optional second arg RECORD-FLAG non-nil\n\ |
| 6249 | means unconditionally put this command in `command-history'.\n\ | 6249 | means unconditionally put this command in `command-history'.\n\ |
| 6250 | Otherwise, that is done only if an arg is read using the minibuffer.") | 6250 | Otherwise, that is done only if an arg is read using the minibuffer.\n\ |
| 6251 | (cmd, record) | 6251 | The argument KEYS specifies the value to use instead of (this-command-keys)\n\ |
| 6252 | Lisp_Object cmd, record; | 6252 | when reading the arguments; if it is nil, (this_command_key_count) is used.") |
| 6253 | (cmd, record, keys) | ||
| 6254 | Lisp_Object cmd, record, keys; | ||
| 6253 | { | 6255 | { |
| 6254 | register Lisp_Object final; | 6256 | register Lisp_Object final; |
| 6255 | register Lisp_Object tem; | 6257 | register Lisp_Object tem; |
| @@ -6305,7 +6307,7 @@ Otherwise, that is done only if an arg is read using the minibuffer.") | |||
| 6305 | backtrace.nargs = 1; | 6307 | backtrace.nargs = 1; |
| 6306 | backtrace.evalargs = 0; | 6308 | backtrace.evalargs = 0; |
| 6307 | 6309 | ||
| 6308 | tem = Fcall_interactively (cmd, record); | 6310 | tem = Fcall_interactively (cmd, record, keys); |
| 6309 | 6311 | ||
| 6310 | backtrace_list = backtrace.next; | 6312 | backtrace_list = backtrace.next; |
| 6311 | return tem; | 6313 | return tem; |
| @@ -6422,7 +6424,7 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_ | |||
| 6422 | } | 6424 | } |
| 6423 | } | 6425 | } |
| 6424 | 6426 | ||
| 6425 | return Fcommand_execute (function, Qt); | 6427 | return Fcommand_execute (function, Qt, Qnil); |
| 6426 | } | 6428 | } |
| 6427 | 6429 | ||
| 6428 | /* Find the set of keymaps now active. | 6430 | /* Find the set of keymaps now active. |