Mercurial > emacs
annotate src/commands.h @ 112453:06719a229a46 default tip
* calc/calc.el (calc-default-power-reference-level)
(calc-default-field-reference-level): New variables.
* calc/calc-units.el (math-standard-units): Add dB and Np.
(math-logunits): New variable.
(math-extract-logunits, math-logcombine, calcFunc-luplus)
(calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level)
(calcFunc-fieldlevel, calcFunc-powerlevel, calc-level): New
functions.
(math-find-base-units-rec): Add entry for ln(10).
* calc/calc-help.el (calc-u-prefix-help): Add logarithmic help.
(calc-ul-prefix-help): New function.
* calc/calc-ext.el (calc-init-extensions): Autoload new units
functions. Add keybindings for new units functions.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Sun, 23 Jan 2011 23:08:04 -0600 |
parents | 42e22c4f06b7 |
children |
rev | line source |
---|---|
239 | 1 /* Definitions needed by most editing commands. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
3 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
239 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
94994
29adfc9354e7
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
239 | 8 it under the terms of the GNU General Public License as published by |
94994
29adfc9354e7
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
29adfc9354e7
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
10 (at your option) any later version. |
239 | 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 | |
94994
29adfc9354e7
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79759
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
239 | 19 |
20 | |
21 #define Ctl(c) ((c)&037) | |
22 | |
3886
92f6b47e3e8d
* keyboard.c (menu_bar_items, read_key_sequence): Use
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
23 /* Define the names of keymaps, just so people can refer to them in |
92f6b47e3e8d
* keyboard.c (menu_bar_items, read_key_sequence): Use
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
24 calls to initial_define_key. These should *not* be used after |
92f6b47e3e8d
* keyboard.c (menu_bar_items, read_key_sequence): Use
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
25 initialization; use-global-map doesn't affect these; it sets |
92f6b47e3e8d
* keyboard.c (menu_bar_items, read_key_sequence): Use
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
26 current_global_map instead. */ |
239 | 27 extern Lisp_Object global_map; |
28 extern Lisp_Object meta_map; | |
29 extern Lisp_Object control_x_map; | |
30 | |
1587
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
31 /* If not Qnil, this is a switch-frame event which we decided to put |
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
32 off until the end of a key sequence. This should be read as the |
7171
945fd4c43a14
(Vunread_command_events): Renamed.
Richard M. Stallman <rms@gnu.org>
parents:
6536
diff
changeset
|
33 next command input, after any Vunread_command_events. |
1587
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
34 |
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
35 read_key_sequence uses this to delay switch-frame events until the |
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
36 end of the key sequence; Fread_char uses it to put off switch-frame |
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
37 events until a non-ASCII event is acceptable as input. */ |
57ae5625fe22
* commands.h (unread_command_event): Doc fix.
Jim Blandy <jimb@redhat.com>
parents:
1507
diff
changeset
|
38 extern Lisp_Object unread_switch_frame; |
239 | 39 |
67831
5cb0abe0420f
(last_point_position_window): Declare.
Richard M. Stallman <rms@gnu.org>
parents:
67258
diff
changeset
|
40 /* The value of point when the last command was started. */ |
110559
9c63d46e000c
Fix int/EMACS_INT use in keyboard.c.
Eli Zaretskii <eliz@gnu.org>
parents:
106815
diff
changeset
|
41 extern EMACS_INT last_point_position; |
6179
e2bb2d0b8a00
New variable last_point_position.
Karl Heuer <kwzh@gnu.org>
parents:
3886
diff
changeset
|
42 |
7331
18bc27b97236
(last_point_position_buffer): Declared.
Richard M. Stallman <rms@gnu.org>
parents:
7307
diff
changeset
|
43 /* The buffer that was current when the last command was started. */ |
18bc27b97236
(last_point_position_buffer): Declared.
Richard M. Stallman <rms@gnu.org>
parents:
7307
diff
changeset
|
44 extern Lisp_Object last_point_position_buffer; |
18bc27b97236
(last_point_position_buffer): Declared.
Richard M. Stallman <rms@gnu.org>
parents:
7307
diff
changeset
|
45 |
67831
5cb0abe0420f
(last_point_position_window): Declare.
Richard M. Stallman <rms@gnu.org>
parents:
67258
diff
changeset
|
46 /* The window that was selected when the last command was started. */ |
5cb0abe0420f
(last_point_position_window): Declare.
Richard M. Stallman <rms@gnu.org>
parents:
67258
diff
changeset
|
47 extern Lisp_Object last_point_position_window; |
5cb0abe0420f
(last_point_position_window): Declare.
Richard M. Stallman <rms@gnu.org>
parents:
67258
diff
changeset
|
48 |
239 | 49 /* Nonzero means ^G can quit instantly */ |
50 extern int immediate_quit; | |
51 | |
52 /* Nonzero if input is coming from the keyboard */ | |
53 | |
61981
8131d95ff037
(Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
Richard M. Stallman <rms@gnu.org>
parents:
52401
diff
changeset
|
54 #define INTERACTIVE (NILP (Vexecuting_kbd_macro) && !noninteractive) |
239 | 55 |
56 /* Set this nonzero to force reconsideration of mode line. */ | |
57 | |
58 extern int update_mode_lines; | |
59 |