aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-08 12:23:32 +0000
committerGerd Moellmann2001-01-08 12:23:32 +0000
commit2136b408554bccfa957457b127b8905f345a3998 (patch)
tree7f9a0315252cd28658928685e0f137bc38353455 /src
parent64d4ec0fe141c018287aa54e8cc9fe6aac225784 (diff)
downloademacs-2136b408554bccfa957457b127b8905f345a3998.tar.gz
emacs-2136b408554bccfa957457b127b8905f345a3998.zip
(Qkbd_macro_termination_hook): New variable.
(syms_of_macros): Initialize and staticpro it. (pop_kbd_macro): Run kbd-macro-termination-hook.
Diffstat (limited to 'src')
-rw-r--r--src/macros.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/macros.c b/src/macros.c
index bf19526eb0e..fde63165b47 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -1,5 +1,5 @@
1/* Keyboard macros. 1/* Keyboard macros.
2 Copyright (C) 1985, 1986, 1993, 2000 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1993, 2000, 2001 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */
27#include "window.h" 27#include "window.h"
28#include "keyboard.h" 28#include "keyboard.h"
29 29
30Lisp_Object Qexecute_kbd_macro; 30Lisp_Object Qexecute_kbd_macro, Qkbd_macro_termination_hook;
31 31
32/* Kbd macro currently being executed (a string or vector). */ 32/* Kbd macro currently being executed (a string or vector). */
33 33
@@ -273,6 +273,7 @@ pop_kbd_macro (info)
273 tem = XCDR (info); 273 tem = XCDR (info);
274 executing_macro_index = XINT (XCAR (tem)); 274 executing_macro_index = XINT (XCAR (tem));
275 real_this_command = XCDR (tem); 275 real_this_command = XCDR (tem);
276 Frun_hooks (1, &Qkbd_macro_termination_hook);
276 return Qnil; 277 return Qnil;
277} 278}
278 279
@@ -344,6 +345,8 @@ syms_of_macros ()
344{ 345{
345 Qexecute_kbd_macro = intern ("execute-kbd-macro"); 346 Qexecute_kbd_macro = intern ("execute-kbd-macro");
346 staticpro (&Qexecute_kbd_macro); 347 staticpro (&Qexecute_kbd_macro);
348 Qkbd_macro_termination_hook = intern ("kbd-macro-termination-hook");
349 staticpro (&Qkbd_macro_termination_hook);
347 350
348 defsubr (&Sstart_kbd_macro); 351 defsubr (&Sstart_kbd_macro);
349 defsubr (&Send_kbd_macro); 352 defsubr (&Send_kbd_macro);