diff options
| author | Chong Yidong | 2009-10-25 00:40:13 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-10-25 00:40:13 +0000 |
| commit | 18060980dd40351e12ecb29186c11ab749a9d77f (patch) | |
| tree | d86d60778ba7218b43585c78bf325eed079348f4 /src | |
| parent | 3e42584538257fccac082ffc5fe68b936e431379 (diff) | |
| download | emacs-18060980dd40351e12ecb29186c11ab749a9d77f.tar.gz emacs-18060980dd40351e12ecb29186c11ab749a9d77f.zip | |
* keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
string in menu maps (Bug#4471).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/keyboard.c | 13 |
2 files changed, 5 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9995421f5a5..cbfee8f3f07 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-10-25 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt | ||
| 4 | string in menu maps (Bug#4471). | ||
| 5 | |||
| 1 | 2009-10-24 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-10-24 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call | 8 | * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call |
diff --git a/src/keyboard.c b/src/keyboard.c index de4e1c5647e..b7399a651b7 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -8561,7 +8561,6 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 8561 | int *used_mouse_menu; | 8561 | int *used_mouse_menu; |
| 8562 | { | 8562 | { |
| 8563 | int mapno; | 8563 | int mapno; |
| 8564 | register Lisp_Object name = Qnil; | ||
| 8565 | 8564 | ||
| 8566 | if (used_mouse_menu) | 8565 | if (used_mouse_menu) |
| 8567 | *used_mouse_menu = 0; | 8566 | *used_mouse_menu = 0; |
| @@ -8578,18 +8577,6 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 8578 | nmaps = 1; | 8577 | nmaps = 1; |
| 8579 | } | 8578 | } |
| 8580 | 8579 | ||
| 8581 | /* Get the menu name from the first map that has one (a prompt string). */ | ||
| 8582 | for (mapno = 0; mapno < nmaps; mapno++) | ||
| 8583 | { | ||
| 8584 | name = Fkeymap_prompt (maps[mapno]); | ||
| 8585 | if (!NILP (name)) | ||
| 8586 | break; | ||
| 8587 | } | ||
| 8588 | |||
| 8589 | /* If we don't have any menus, just read a character normally. */ | ||
| 8590 | if (!STRINGP (name)) | ||
| 8591 | return Qnil; | ||
| 8592 | |||
| 8593 | #ifdef HAVE_MENUS | 8580 | #ifdef HAVE_MENUS |
| 8594 | /* If we got to this point via a mouse click, | 8581 | /* If we got to this point via a mouse click, |
| 8595 | use a real menu for mouse selection. */ | 8582 | use a real menu for mouse selection. */ |