Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4315204e
Commit
4315204e
authored
Nov 11, 1996
by
Richard M. Stallman
Browse files
(Fcall_last_kbd_macro): Set this_command from last_command
on entry and again on exit.
parent
2d8e7e1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/macros.c
src/macros.c
+10
-0
No files found.
src/macros.c
View file @
4315204e
...
@@ -204,12 +204,22 @@ defining others, use \\[name-last-kbd-macro].")
...
@@ -204,12 +204,22 @@ defining others, use \\[name-last-kbd-macro].")
(
prefix
)
(
prefix
)
Lisp_Object
prefix
;
Lisp_Object
prefix
;
{
{
/* Don't interfere with recognition of the previous command
from before this macro started. */
this_command
=
current_kboard
->
Vlast_command
;
if
(
!
NILP
(
current_kboard
->
defining_kbd_macro
))
if
(
!
NILP
(
current_kboard
->
defining_kbd_macro
))
error
(
"Can't execute anonymous macro while defining one"
);
error
(
"Can't execute anonymous macro while defining one"
);
else
if
(
NILP
(
current_kboard
->
Vlast_kbd_macro
))
else
if
(
NILP
(
current_kboard
->
Vlast_kbd_macro
))
error
(
"No kbd macro has been defined"
);
error
(
"No kbd macro has been defined"
);
else
else
Fexecute_kbd_macro
(
current_kboard
->
Vlast_kbd_macro
,
prefix
);
Fexecute_kbd_macro
(
current_kboard
->
Vlast_kbd_macro
,
prefix
);
/* command_loop_1 sets this to nil before it returns;
get back the last command within the macro
so that it can be last, again, after we return. */
this_command
=
current_kboard
->
Vlast_command
;
return
Qnil
;
return
Qnil
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment