Mercurial > emacs
comparison src/keyboard.c @ 26404:c3c9cc1c2379
Remove USE_TEXT_PROPERTIES.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 11 Nov 1999 11:45:06 +0000 |
parents | d39ec0a27081 |
children | 50d43db29617 |
comparison
equal
deleted
inserted
replaced
26403:03830fdf5186 | 26404:c3c9cc1c2379 |
---|---|
5802 { | 5802 { |
5803 /* No, so use major and minor mode keymaps. */ | 5803 /* No, so use major and minor mode keymaps. */ |
5804 nmaps = current_minor_maps (NULL, &tmaps); | 5804 nmaps = current_minor_maps (NULL, &tmaps); |
5805 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); | 5805 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); |
5806 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); | 5806 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); |
5807 #ifdef USE_TEXT_PROPERTIES | |
5808 maps[nmaps++] = get_local_map (PT, current_buffer); | 5807 maps[nmaps++] = get_local_map (PT, current_buffer); |
5809 #else | |
5810 maps[nmaps++] = current_buffer->keymap; | |
5811 #endif | |
5812 } | 5808 } |
5813 maps[nmaps++] = current_global_map; | 5809 maps[nmaps++] = current_global_map; |
5814 } | 5810 } |
5815 | 5811 |
5816 /* Look up in each map the dummy prefix key `menu-bar'. */ | 5812 /* Look up in each map the dummy prefix key `menu-bar'. */ |
6458 { | 6454 { |
6459 /* No, so use major and minor mode keymaps. */ | 6455 /* No, so use major and minor mode keymaps. */ |
6460 nmaps = current_minor_maps (NULL, &tmaps); | 6456 nmaps = current_minor_maps (NULL, &tmaps); |
6461 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); | 6457 maps = (Lisp_Object *) alloca ((nmaps + 2) * sizeof (maps[0])); |
6462 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); | 6458 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); |
6463 #ifdef USE_TEXT_PROPERTIES | |
6464 maps[nmaps++] = get_local_map (PT, current_buffer); | 6459 maps[nmaps++] = get_local_map (PT, current_buffer); |
6465 #else | |
6466 maps[nmaps++] = current_buffer->keymap; | |
6467 #endif | |
6468 } | 6460 } |
6469 | 6461 |
6470 /* Add global keymap at the end. */ | 6462 /* Add global keymap at the end. */ |
6471 maps[nmaps++] = current_global_map; | 6463 maps[nmaps++] = current_global_map; |
6472 | 6464 |
7439 submaps = (Lisp_Object *) alloca ((nmaps+2) * sizeof (submaps[0])); | 7431 submaps = (Lisp_Object *) alloca ((nmaps+2) * sizeof (submaps[0])); |
7440 defs = (Lisp_Object *) alloca ((nmaps+2) * sizeof (defs[0])); | 7432 defs = (Lisp_Object *) alloca ((nmaps+2) * sizeof (defs[0])); |
7441 nmaps_allocated = nmaps + 2; | 7433 nmaps_allocated = nmaps + 2; |
7442 } | 7434 } |
7443 bcopy (maps, submaps, nmaps * sizeof (submaps[0])); | 7435 bcopy (maps, submaps, nmaps * sizeof (submaps[0])); |
7444 #ifdef USE_TEXT_PROPERTIES | |
7445 submaps[nmaps++] = orig_local_map; | 7436 submaps[nmaps++] = orig_local_map; |
7446 #else | |
7447 submaps[nmaps++] = current_buffer->keymap; | |
7448 #endif | |
7449 } | 7437 } |
7450 submaps[nmaps++] = current_global_map; | 7438 submaps[nmaps++] = current_global_map; |
7451 } | 7439 } |
7452 | 7440 |
7453 /* Find an accurate initial value for first_binding. */ | 7441 /* Find an accurate initial value for first_binding. */ |
8735 { | 8723 { |
8736 /* No, so use major and minor mode keymaps. */ | 8724 /* No, so use major and minor mode keymaps. */ |
8737 nmaps = current_minor_maps (NULL, &tmaps); | 8725 nmaps = current_minor_maps (NULL, &tmaps); |
8738 maps = (Lisp_Object *) xmalloc ((nmaps + 2) * sizeof (maps[0])); | 8726 maps = (Lisp_Object *) xmalloc ((nmaps + 2) * sizeof (maps[0])); |
8739 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); | 8727 bcopy (tmaps, maps, nmaps * sizeof (maps[0])); |
8740 #ifdef USE_TEXT_PROPERTIES | |
8741 maps[nmaps++] = get_local_map (PT, current_buffer); | 8728 maps[nmaps++] = get_local_map (PT, current_buffer); |
8742 #else | |
8743 maps[nmaps++] = current_buffer->keymap; | |
8744 #endif | |
8745 } | 8729 } |
8746 maps[nmaps++] = current_global_map; | 8730 maps[nmaps++] = current_global_map; |
8747 | 8731 |
8748 *maps_p = maps; | 8732 *maps_p = maps; |
8749 return nmaps; | 8733 return nmaps; |