diff options
| author | Richard M. Stallman | 1996-08-29 04:38:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-08-29 04:38:33 +0000 |
| commit | e881d8b2f77b00965579ceacd6912ccb2ad628df (patch) | |
| tree | 118342b3475186eb8bd689d025e3520bebbba42f /src | |
| parent | d4087e062b692c7301fd932e835aa55d527bce49 (diff) | |
| download | emacs-e881d8b2f77b00965579ceacd6912ccb2ad628df.tar.gz emacs-e881d8b2f77b00965579ceacd6912ccb2ad628df.zip | |
(cmd_error): Add number of kbd macro iterations to the error message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index a343e1b59b5..95552296ee9 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -885,6 +885,18 @@ cmd_error (data) | |||
| 885 | Lisp_Object data; | 885 | Lisp_Object data; |
| 886 | { | 886 | { |
| 887 | Lisp_Object old_level, old_length; | 887 | Lisp_Object old_level, old_length; |
| 888 | char macroerror[50]; | ||
| 889 | |||
| 890 | if (!NILP (executing_macro)) | ||
| 891 | { | ||
| 892 | if (executing_macro_iterations == 1) | ||
| 893 | sprintf (macroerror, "After 1 kbd macro iteration: "); | ||
| 894 | else | ||
| 895 | sprintf (macroerror, "After %d kbd macro iterations: ", | ||
| 896 | executing_macro_iterations); | ||
| 897 | } | ||
| 898 | else | ||
| 899 | *macroerror = 0; | ||
| 888 | 900 | ||
| 889 | Vstandard_output = Qt; | 901 | Vstandard_output = Qt; |
| 890 | Vstandard_input = Qt; | 902 | Vstandard_input = Qt; |
| @@ -897,7 +909,7 @@ cmd_error (data) | |||
| 897 | old_length = Vprint_length; | 909 | old_length = Vprint_length; |
| 898 | XSETFASTINT (Vprint_level, 10); | 910 | XSETFASTINT (Vprint_level, 10); |
| 899 | XSETFASTINT (Vprint_length, 10); | 911 | XSETFASTINT (Vprint_length, 10); |
| 900 | cmd_error_internal (data, NULL); | 912 | cmd_error_internal (data, macroerror); |
| 901 | Vprint_level = old_level; | 913 | Vprint_level = old_level; |
| 902 | Vprint_length = old_length; | 914 | Vprint_length = old_length; |
| 903 | 915 | ||