]> code.delx.au - gnu-emacs/blob - src/commands.h
25c309eab0a1c5707464e7d12a9c1915adfe68ab
[gnu-emacs] / src / commands.h
1 /* Definitions needed by most editing commands.
2 Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004,
3 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 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 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21 #define Ctl(c) ((c)&037)
22
23 /* Define the names of keymaps, just so people can refer to them in
24 calls to initial_define_key. These should *not* be used after
25 initialization; use-global-map doesn't affect these; it sets
26 current_global_map instead. */
27 extern Lisp_Object global_map;
28 extern Lisp_Object meta_map;
29 extern Lisp_Object control_x_map;
30
31 /* If not Qnil, this is a switch-frame event which we decided to put
32 off until the end of a key sequence. This should be read as the
33 next command input, after any Vunread_command_events.
34
35 read_key_sequence uses this to delay switch-frame events until the
36 end of the key sequence; Fread_char uses it to put off switch-frame
37 events until a non-ASCII event is acceptable as input. */
38 extern Lisp_Object unread_switch_frame;
39
40 /* The value of point when the last command was started. */
41 extern EMACS_INT last_point_position;
42
43 /* The buffer that was current when the last command was started. */
44 extern Lisp_Object last_point_position_buffer;
45
46 /* The window that was selected when the last command was started. */
47 extern Lisp_Object last_point_position_window;
48
49 /* Nonzero means ^G can quit instantly */
50 extern int immediate_quit;
51
52 /* Nonzero if input is coming from the keyboard */
53
54 #define INTERACTIVE (NILP (Vexecuting_kbd_macro) && !noninteractive)
55
56 /* Set this nonzero to force reconsideration of mode line. */
57
58 extern int update_mode_lines;
59