diff options
| author | Karl Heuer | 1997-02-20 06:45:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-02-20 06:45:50 +0000 |
| commit | 40b2421cb01fc1fe1538bcc804c3e1d70b263ddd (patch) | |
| tree | 9cc7e395debe2cc637f40b16c41282d26c585df8 | |
| parent | 96b65d4ea9e5994d8cee4c2fbf2246cf56c11039 (diff) | |
| download | emacs-40b2421cb01fc1fe1538bcc804c3e1d70b263ddd.tar.gz emacs-40b2421cb01fc1fe1538bcc804c3e1d70b263ddd.zip | |
(doc-string of `interactive'): Describe new code
letters `i', `z', and `Z'.
(Fcall_interactively): Handle them.
| -rw-r--r-- | src/callint.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/callint.c b/src/callint.c index 5cedc443933..2e803205a5d 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -92,6 +92,7 @@ e -- Parametrized event (i.e., one that's a list) that invoked this command.\n\ | |||
| 92 | This skips events that are integers or symbols.\n\ | 92 | This skips events that are integers or symbols.\n\ |
| 93 | f -- Existing file name.\n\ | 93 | f -- Existing file name.\n\ |
| 94 | F -- Possibly nonexistent file name.\n\ | 94 | F -- Possibly nonexistent file name.\n\ |
| 95 | i -- Ignored, i.e. always nil. Does not do I/O.\n\ | ||
| 95 | k -- Key sequence (downcase the last event if needed to get a definition).\n\ | 96 | k -- Key sequence (downcase the last event if needed to get a definition).\n\ |
| 96 | K -- Key sequence to be redefined (do not downcase the last event).\n\ | 97 | K -- Key sequence to be redefined (do not downcase the last event).\n\ |
| 97 | m -- Value of mark as number. Does not do I/O.\n\ | 98 | m -- Value of mark as number. Does not do I/O.\n\ |
| @@ -105,6 +106,8 @@ S -- Any symbol.\n\ | |||
| 105 | v -- Variable name: symbol that is user-variable-p.\n\ | 106 | v -- Variable name: symbol that is user-variable-p.\n\ |
| 106 | x -- Lisp expression read but not evaluated.\n\ | 107 | x -- Lisp expression read but not evaluated.\n\ |
| 107 | X -- Lisp expression read and evaluated.\n\ | 108 | X -- Lisp expression read and evaluated.\n\ |
| 109 | z -- Coding system.\n\ | ||
| 110 | Z -- Coding system, nil if no prefix arg.\n\ | ||
| 108 | In addition, if the string begins with `*'\n\ | 111 | In addition, if the string begins with `*'\n\ |
| 109 | then an error is signaled if the buffer is read-only.\n\ | 112 | then an error is signaled if the buffer is read-only.\n\ |
| 110 | This happens before reading any arguments.\n\ | 113 | This happens before reading any arguments.\n\ |
| @@ -523,6 +526,10 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 523 | Qnil, Qnil, Qnil, Qnil); | 526 | Qnil, Qnil, Qnil, Qnil); |
| 524 | break; | 527 | break; |
| 525 | 528 | ||
| 529 | case 'i': /* Ignore an argument -- Does not do I/O */ | ||
| 530 | varies[i] = -1; | ||
| 531 | break; | ||
| 532 | |||
| 526 | case 'k': /* Key sequence. */ | 533 | case 'k': /* Key sequence. */ |
| 527 | { | 534 | { |
| 528 | int speccount1 = specpdl_ptr - specpdl; | 535 | int speccount1 = specpdl_ptr - specpdl; |
| @@ -652,6 +659,26 @@ Otherwise, this is done only if an arg is read using the minibuffer.") | |||
| 652 | visargs[i] = last_minibuf_string; | 659 | visargs[i] = last_minibuf_string; |
| 653 | break; | 660 | break; |
| 654 | 661 | ||
| 662 | case 'Z': /* Coding-system symbol, or ignore the | ||
| 663 | argument if no prefix */ | ||
| 664 | if (NILP (prefix_arg)) | ||
| 665 | { | ||
| 666 | args[i] = Qnil; | ||
| 667 | varies[i] = -1; | ||
| 668 | } | ||
| 669 | else | ||
| 670 | { | ||
| 671 | args[i] | ||
| 672 | = Fread_non_nil_coding_system (build_string (callint_message)); | ||
| 673 | visargs[i] = last_minibuf_string; | ||
| 674 | } | ||
| 675 | break; | ||
| 676 | |||
| 677 | case 'z': /* Coding-system symbol or nil */ | ||
| 678 | args[i] = Fread_coding_system (build_string (callint_message)); | ||
| 679 | visargs[i] = last_minibuf_string; | ||
| 680 | break; | ||
| 681 | |||
| 655 | /* We have a case for `+' so we get an error | 682 | /* We have a case for `+' so we get an error |
| 656 | if anyone tries to define one here. */ | 683 | if anyone tries to define one here. */ |
| 657 | case '+': | 684 | case '+': |