diff options
| author | Stefan Monnier | 2001-10-08 11:13:04 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-10-08 11:13:04 +0000 |
| commit | bdb7aa47e4797b9b7ad88f09d4513c14e6303a0c (patch) | |
| tree | 7c1f5ab865406a44de928bb218927a160ab5fddd /src | |
| parent | 058ff27c39a4833549777be1b1662166e06e253f (diff) | |
| download | emacs-bdb7aa47e4797b9b7ad88f09d4513c14e6303a0c.tar.gz emacs-bdb7aa47e4797b9b7ad88f09d4513c14e6303a0c.zip | |
(map_prompt): Remove.
(read_char_x_menu_prompt, read_char_minibuf_menu_prompt): Use Fkeymap_prompt.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/keyboard.c | 24 |
2 files changed, 15 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 823289fa6cf..a77a8e367d5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2001-10-08 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt. | ||
| 4 | |||
| 5 | * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt. | ||
| 6 | |||
| 7 | * keyboard.c (map_prompt): Remove. | ||
| 8 | (read_char_x_menu_prompt, read_char_minibuf_menu_prompt): | ||
| 9 | Use Fkeymap_prompt. | ||
| 10 | |||
| 11 | * keymap.h: New file. Extracted from lisp.h. | ||
| 12 | |||
| 1 | 2001-10-08 Gerd Moellmann <gerd@gnu.org> | 13 | 2001-10-08 Gerd Moellmann <gerd@gnu.org> |
| 2 | 14 | ||
| 3 | * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]: | 15 | * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]: |
diff --git a/src/keyboard.c b/src/keyboard.c index 6319ca2ff64..0ebee3d3902 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 37 | #include "dispextern.h" | 37 | #include "dispextern.h" |
| 38 | #include "syntax.h" | 38 | #include "syntax.h" |
| 39 | #include "intervals.h" | 39 | #include "intervals.h" |
| 40 | #include "keymap.h" | ||
| 40 | #include "blockinput.h" | 41 | #include "blockinput.h" |
| 41 | #include "puresize.h" | 42 | #include "puresize.h" |
| 42 | #include "systime.h" | 43 | #include "systime.h" |
| @@ -6338,25 +6339,6 @@ reinvoke_input_signal () | |||
| 6338 | 6339 | ||
| 6339 | 6340 | ||
| 6340 | 6341 | ||
| 6341 | /* Return the prompt-string of a sparse keymap. | ||
| 6342 | This is the first element which is a string. | ||
| 6343 | Return nil if there is none. */ | ||
| 6344 | |||
| 6345 | Lisp_Object | ||
| 6346 | map_prompt (map) | ||
| 6347 | Lisp_Object map; | ||
| 6348 | { | ||
| 6349 | while (CONSP (map)) | ||
| 6350 | { | ||
| 6351 | register Lisp_Object tem; | ||
| 6352 | tem = Fcar (map); | ||
| 6353 | if (STRINGP (tem)) | ||
| 6354 | return tem; | ||
| 6355 | map = Fcdr (map); | ||
| 6356 | } | ||
| 6357 | return Qnil; | ||
| 6358 | } | ||
| 6359 | |||
| 6360 | static void menu_bar_item P_ ((Lisp_Object, Lisp_Object)); | 6342 | static void menu_bar_item P_ ((Lisp_Object, Lisp_Object)); |
| 6361 | static void menu_bar_one_keymap P_ ((Lisp_Object)); | 6343 | static void menu_bar_one_keymap P_ ((Lisp_Object)); |
| 6362 | 6344 | ||
| @@ -7446,7 +7428,7 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 7446 | /* Get the menu name from the first map that has one (a prompt string). */ | 7428 | /* Get the menu name from the first map that has one (a prompt string). */ |
| 7447 | for (mapno = 0; mapno < nmaps; mapno++) | 7429 | for (mapno = 0; mapno < nmaps; mapno++) |
| 7448 | { | 7430 | { |
| 7449 | name = map_prompt (maps[mapno]); | 7431 | name = Fkeymap_prompt (maps[mapno]); |
| 7450 | if (!NILP (name)) | 7432 | if (!NILP (name)) |
| 7451 | break; | 7433 | break; |
| 7452 | } | 7434 | } |
| @@ -7556,7 +7538,7 @@ read_char_minibuf_menu_prompt (commandflag, nmaps, maps) | |||
| 7556 | /* Get the menu name from the first map that has one (a prompt string). */ | 7538 | /* Get the menu name from the first map that has one (a prompt string). */ |
| 7557 | for (mapno = 0; mapno < nmaps; mapno++) | 7539 | for (mapno = 0; mapno < nmaps; mapno++) |
| 7558 | { | 7540 | { |
| 7559 | name = map_prompt (maps[mapno]); | 7541 | name = Fkeymap_prompt (maps[mapno]); |
| 7560 | if (!NILP (name)) | 7542 | if (!NILP (name)) |
| 7561 | break; | 7543 | break; |
| 7562 | } | 7544 | } |