diff options
| author | Paul Eggert | 2011-09-10 17:41:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-10 17:41:48 -0700 |
| commit | 6612f0bffdb752b729a2245bc8beeff1bf6858e3 (patch) | |
| tree | 140acfb7c4808698a86f160ae6b5e3458160bde5 | |
| parent | e21bac426b787ac0f03c3a64341ec98995ea8262 (diff) | |
| download | emacs-6612f0bffdb752b729a2245bc8beeff1bf6858e3.tar.gz emacs-6612f0bffdb752b729a2245bc8beeff1bf6858e3.zip | |
* keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls
here ...
* lisp.h: ... from here. push_key_description is no longer
defined in keyboard.c, so its declaration should not be in
lisp.h's "Defined in keyboard.c" section, and KEY_DESCRIPTION_SIZE
logically belongs with push_key_description.
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/keymap.h | 11 | ||||
| -rw-r--r-- | src/lisp.h | 12 |
3 files changed, 20 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f7e029271e0..da0576fdb46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-09-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls | ||
| 4 | here ... | ||
| 5 | * lisp.h: ... from here. push_key_description is no longer | ||
| 6 | defined in keyboard.c, so its declaration should not be in | ||
| 7 | lisp.h's "Defined in keyboard.c" section, and KEY_DESCRIPTION_SIZE | ||
| 8 | logically belongs with push_key_description. | ||
| 9 | |||
| 1 | 2011-09-10 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2011-09-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 11 | ||
| 3 | * buffer.h: Include <sys/types.h> instead of <time.h>. | 12 | * buffer.h: Include <sys/types.h> instead of <time.h>. |
diff --git a/src/keymap.h b/src/keymap.h index ec9d4cadbb1..a989f124b14 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -19,6 +19,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #ifndef KEYMAP_H | 19 | #ifndef KEYMAP_H |
| 20 | #define KEYMAP_H | 20 | #define KEYMAP_H |
| 21 | 21 | ||
| 22 | /* The maximum byte size consumed by push_key_description. | ||
| 23 | All callers should assure that at least this size of memory is | ||
| 24 | allocated at the place pointed by the second argument. | ||
| 25 | |||
| 26 | There are 6 modifiers, each consumes 2 chars. | ||
| 27 | The octal form of a character code consumes | ||
| 28 | (1 + CHARACTERBITS / 3 + 1) chars (including backslash at the head). | ||
| 29 | We need one more byte for string terminator `\0'. */ | ||
| 30 | #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1) | ||
| 31 | |||
| 22 | #define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0))) | 32 | #define KEYMAPP(m) (!NILP (get_keymap (m, 0, 0))) |
| 23 | extern Lisp_Object Qkeymap, Qmenu_bar; | 33 | extern Lisp_Object Qkeymap, Qmenu_bar; |
| 24 | extern Lisp_Object Qremap; | 34 | extern Lisp_Object Qremap; |
| @@ -30,6 +40,7 @@ EXFUN (Fdefine_key, 3); | |||
| 30 | EXFUN (Fcommand_remapping, 3); | 40 | EXFUN (Fcommand_remapping, 3); |
| 31 | EXFUN (Fkey_binding, 4); | 41 | EXFUN (Fkey_binding, 4); |
| 32 | EXFUN (Fkey_description, 2); | 42 | EXFUN (Fkey_description, 2); |
| 43 | extern char *push_key_description (EMACS_INT, char *, int); | ||
| 33 | EXFUN (Fsingle_key_description, 2); | 44 | EXFUN (Fsingle_key_description, 2); |
| 34 | EXFUN (Fwhere_is_internal, 5); | 45 | EXFUN (Fwhere_is_internal, 5); |
| 35 | EXFUN (Fcurrent_active_maps, 2); | 46 | EXFUN (Fcurrent_active_maps, 2); |
diff --git a/src/lisp.h b/src/lisp.h index 1f297d51596..e9a525a32b5 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1599,16 +1599,6 @@ typedef unsigned char UCHAR; | |||
| 1599 | itself. */ | 1599 | itself. */ |
| 1600 | #define CHARACTERBITS 22 | 1600 | #define CHARACTERBITS 22 |
| 1601 | 1601 | ||
| 1602 | /* The maximum byte size consumed by push_key_description. | ||
| 1603 | All callers should assure that at least this size of memory is | ||
| 1604 | allocated at the place pointed by the second argument. | ||
| 1605 | |||
| 1606 | There are 6 modifiers, each consumes 2 chars. | ||
| 1607 | The octal form of a character code consumes | ||
| 1608 | (1 + CHARACTERBITS / 3 + 1) chars (including backslash at the head). | ||
| 1609 | We need one more byte for string terminator `\0'. */ | ||
| 1610 | #define KEY_DESCRIPTION_SIZE ((2 * 6) + 1 + (CHARACTERBITS / 3) + 1 + 1) | ||
| 1611 | |||
| 1612 | 1602 | ||
| 1613 | /* The glyph datatype, used to represent characters on the display. | 1603 | /* The glyph datatype, used to represent characters on the display. |
| 1614 | It consists of a char code and a face id. */ | 1604 | It consists of a char code and a face id. */ |
| @@ -3258,8 +3248,6 @@ extern void force_auto_save_soon (void); | |||
| 3258 | extern void init_keyboard (void); | 3248 | extern void init_keyboard (void); |
| 3259 | extern void syms_of_keyboard (void); | 3249 | extern void syms_of_keyboard (void); |
| 3260 | extern void keys_of_keyboard (void); | 3250 | extern void keys_of_keyboard (void); |
| 3261 | extern char *push_key_description (EMACS_INT, char *, int); | ||
| 3262 | |||
| 3263 | 3251 | ||
| 3264 | /* Defined in indent.c */ | 3252 | /* Defined in indent.c */ |
| 3265 | EXFUN (Fvertical_motion, 2); | 3253 | EXFUN (Fvertical_motion, 2); |