comparison src/macros.c @ 112383:051c56a77c5c

Give kbd-macro-termination-hook a doc. * src/macros.c (syms_of_macros) <kbd-macro-termination-hook>: Give it a doc string. * src/globals.h: Add Vkbd_macro_termination_hook.
author Glenn Morris <rgm@gnu.org>
date Wed, 19 Jan 2011 22:10:05 -0800
parents 42e22c4f06b7
children
comparison
equal deleted inserted replaced
112382:396b01a20bde 112383:051c56a77c5c
1 /* Keyboard macros. 1 /* Keyboard macros.
2 Copyright (C) 1985, 1986, 1993, 2000, 2001, 2002, 2003, 2004, 2
3 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1986, 1993, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4 5
5 This file is part of GNU Emacs. 6 This file is part of GNU Emacs.
6 7
7 GNU Emacs is free software: you can redistribute it and/or modify 8 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
359 void 360 void
360 syms_of_macros (void) 361 syms_of_macros (void)
361 { 362 {
362 Qexecute_kbd_macro = intern_c_string ("execute-kbd-macro"); 363 Qexecute_kbd_macro = intern_c_string ("execute-kbd-macro");
363 staticpro (&Qexecute_kbd_macro); 364 staticpro (&Qexecute_kbd_macro);
365
366 DEFVAR_LISP ("kbd-macro-termination-hook", Vkbd_macro_termination_hook,
367 doc: /* Normal hook run whenever a keyboard macro terminates.
368 This is run whether the macro ends normally or prematurely due to an error. */);
369 Vkbd_macro_termination_hook = Qnil;
364 Qkbd_macro_termination_hook = intern_c_string ("kbd-macro-termination-hook"); 370 Qkbd_macro_termination_hook = intern_c_string ("kbd-macro-termination-hook");
365 staticpro (&Qkbd_macro_termination_hook); 371 staticpro (&Qkbd_macro_termination_hook);
366 372
367 defsubr (&Sstart_kbd_macro); 373 defsubr (&Sstart_kbd_macro);
368 defsubr (&Send_kbd_macro); 374 defsubr (&Send_kbd_macro);