1992-01-13 21:48:03 +00:00
|
|
|
/* Definitions for keyboard macro interpretation in GNU Emacs.
|
2025-01-01 07:39:17 +00:00
|
|
|
Copyright (C) 1985, 2001-2025 Free Software Foundation, Inc.
|
1992-01-13 21:48:03 +00:00
|
|
|
|
|
|
|
This file is part of GNU Emacs.
|
|
|
|
|
2008-05-15 03:28:14 +00:00
|
|
|
GNU Emacs is free software: you can redistribute it and/or modify
|
1992-01-13 21:48:03 +00:00
|
|
|
it under the terms of the GNU General Public License as published by
|
2016-03-10 07:34:52 -08:00
|
|
|
the Free Software Foundation, either version 3 of the License, or (at
|
|
|
|
your option) any later version.
|
1992-01-13 21:48:03 +00:00
|
|
|
|
|
|
|
GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2017-09-13 15:52:52 -07:00
|
|
|
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
|
1992-01-13 21:48:03 +00:00
|
|
|
|
Make src headers idempotent and standalone
Redo src/*.h so that each include file is idempotent (that is, can
be included multiple times with the latter inclusions having no
effect) and standalone (that is, can be included by itself,
with no include file other than config.h needed as a prerequisite).
This is standard practice in GNU programs nowadays.
* lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
* src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
* src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
* src/regex.h [emacs]:
* src/syntax.h, src/systty.h, src/termhooks.h:
Include lisp.h, for Lisp_Object.
* src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
* src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
* src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
* src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
* src/termopts.h, src/tparam.h, src/unexec.h:
Protect against multiple inclusion.
* src/buffer.h: Include character.h, for STRING_CHAR.
* src/emacsgtkfixed.h (struct frame):
* src/fontset.h (struct face):
* src/region-cache.h (struct buffer):
* src/termhooks.h (struct glyph):
* src/xsettings.h (struct x_display_info):
Add possibly-forward decl.
* src/syntax.h: Include buffer.h, for BVAR.
* src/sysselect.h: Include lisp.h, for eassume.
* src/termchar.h: Include <stdio.h>, for FILE.
* src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
* src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
2015-10-16 14:54:09 -07:00
|
|
|
#ifndef EMACS_MACROS_H
|
|
|
|
#define EMACS_MACROS_H
|
|
|
|
|
|
|
|
#include "lisp.h"
|
1992-01-13 21:48:03 +00:00
|
|
|
|
1996-08-29 04:39:47 +00:00
|
|
|
/* Number of successful iterations so far
|
|
|
|
for innermost keyboard macro.
|
|
|
|
This is not bound at each level,
|
|
|
|
so after an error, it describes the innermost interrupted macro. */
|
|
|
|
|
2011-08-29 12:07:18 -07:00
|
|
|
extern EMACS_INT executing_kbd_macro_iterations;
|
1996-08-29 04:39:47 +00:00
|
|
|
|
|
|
|
/* This is the macro that was executing.
|
|
|
|
This is not bound at each level,
|
|
|
|
so after an error, it describes the innermost interrupted macro. */
|
|
|
|
|
2005-05-02 10:32:40 +00:00
|
|
|
extern Lisp_Object executing_kbd_macro;
|
1997-11-21 13:24:40 +00:00
|
|
|
|
2002-09-09 22:34:10 +00:00
|
|
|
/* Finish defining the current keyboard macro. */
|
|
|
|
|
2010-07-02 11:26:33 +02:00
|
|
|
extern void end_kbd_macro (void);
|
2002-09-09 22:34:10 +00:00
|
|
|
|
1997-11-21 13:24:40 +00:00
|
|
|
/* Declare that all chars stored so far in the kbd macro being defined
|
|
|
|
really belong to it. This is done in between editor commands. */
|
|
|
|
|
2010-07-02 11:26:33 +02:00
|
|
|
extern void finalize_kbd_macro_chars (void);
|
1997-11-21 13:24:40 +00:00
|
|
|
|
|
|
|
/* Store a character into kbd macro being defined */
|
|
|
|
|
2010-07-02 11:26:33 +02:00
|
|
|
extern void store_kbd_macro_char (Lisp_Object);
|
Make src headers idempotent and standalone
Redo src/*.h so that each include file is idempotent (that is, can
be included multiple times with the latter inclusions having no
effect) and standalone (that is, can be included by itself,
with no include file other than config.h needed as a prerequisite).
This is standard practice in GNU programs nowadays.
* lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
* src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
* src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
* src/regex.h [emacs]:
* src/syntax.h, src/systty.h, src/termhooks.h:
Include lisp.h, for Lisp_Object.
* src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
* src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
* src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
* src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
* src/termopts.h, src/tparam.h, src/unexec.h:
Protect against multiple inclusion.
* src/buffer.h: Include character.h, for STRING_CHAR.
* src/emacsgtkfixed.h (struct frame):
* src/fontset.h (struct face):
* src/region-cache.h (struct buffer):
* src/termhooks.h (struct glyph):
* src/xsettings.h (struct x_display_info):
Add possibly-forward decl.
* src/syntax.h: Include buffer.h, for BVAR.
* src/sysselect.h: Include lisp.h, for eassume.
* src/termchar.h: Include <stdio.h>, for FILE.
* src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
* src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
2015-10-16 14:54:09 -07:00
|
|
|
|
2023-12-27 14:26:26 +01:00
|
|
|
/* Whether the execution of a macro has reached its end.
|
|
|
|
This should be called only while executing a macro. */
|
|
|
|
|
|
|
|
extern bool at_end_of_macro_p (void);
|
|
|
|
|
Make src headers idempotent and standalone
Redo src/*.h so that each include file is idempotent (that is, can
be included multiple times with the latter inclusions having no
effect) and standalone (that is, can be included by itself,
with no include file other than config.h needed as a prerequisite).
This is standard practice in GNU programs nowadays.
* lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
* src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
* src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
* src/regex.h [emacs]:
* src/syntax.h, src/systty.h, src/termhooks.h:
Include lisp.h, for Lisp_Object.
* src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
* src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
* src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
* src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
* src/termopts.h, src/tparam.h, src/unexec.h:
Protect against multiple inclusion.
* src/buffer.h: Include character.h, for STRING_CHAR.
* src/emacsgtkfixed.h (struct frame):
* src/fontset.h (struct face):
* src/region-cache.h (struct buffer):
* src/termhooks.h (struct glyph):
* src/xsettings.h (struct x_display_info):
Add possibly-forward decl.
* src/syntax.h: Include buffer.h, for BVAR.
* src/sysselect.h: Include lisp.h, for eassume.
* src/termchar.h: Include <stdio.h>, for FILE.
* src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
* src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
2015-10-16 14:54:09 -07:00
|
|
|
#endif /* EMACS_MACROS_H */
|