diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/w32menu.c | 14 |
2 files changed, 20 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c684a4fcca6..6b4499c7954 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2001-07-11 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * w32menu.c (menubar_selection_callback, w32_menu_show): | ||
| 4 | Initialize `entry' to nil. | ||
| 5 | (w32_dialog_show): Remove unused `save_wv' variable. | ||
| 6 | (name_is_separator): Recognize "--:foo" and "--foo-bar". | ||
| 7 | |||
| 1 | 2001-07-11 Gerd Moellmann <gerd@gnu.org> | 8 | 2001-07-11 Gerd Moellmann <gerd@gnu.org> |
| 2 | 9 | ||
| 3 | * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0. | 10 | * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0. |
| @@ -5,14 +12,14 @@ | |||
| 5 | * fileio.c (unwind_read): Print a message when discarding inserted | 12 | * fileio.c (unwind_read): Print a message when discarding inserted |
| 6 | text or switching the buffer to unibyte. Change parameter. | 13 | text or switching the buffer to unibyte. Change parameter. |
| 7 | (Finsert_file_contents): Don't pass VISIT to unwind_read. | 14 | (Finsert_file_contents): Don't pass VISIT to unwind_read. |
| 8 | 15 | ||
| 9 | * fileio.c (unwind_read): New function. | 16 | * fileio.c (unwind_read): New function. |
| 10 | (Finsert_file_contents): Record it as unwind-function for | 17 | (Finsert_file_contents): Record it as unwind-function for |
| 11 | the case that reading is interrupted by C-g. | 18 | the case that reading is interrupted by C-g. |
| 12 | 19 | ||
| 13 | 2001-07-10 Gerd Moellmann <gerd@gnu.org> | 20 | 2001-07-10 Gerd Moellmann <gerd@gnu.org> |
| 14 | 21 | ||
| 15 | * dispnew.c (update_window): Don't skip the header-line | 22 | * dispnew.c (update_window): Don't skip the header-line |
| 16 | update when scrolling_window returns 0. | 23 | update when scrolling_window returns 0. |
| 17 | 24 | ||
| 18 | * xfaces.c (unload_color): Do nothing if PIXEL is -1. | 25 | * xfaces.c (unload_color): Do nothing if PIXEL is -1. |
| @@ -60,8 +67,7 @@ | |||
| 60 | (unbind_to): Handle unbinding a frame-local variable. | 67 | (unbind_to): Handle unbinding a frame-local variable. |
| 61 | 68 | ||
| 62 | * xdisp.c (compute_line_metrics): On ttys, subtract continuation | 69 | * xdisp.c (compute_line_metrics): On ttys, subtract continuation |
| 63 | glyphs and truncation glyphs at the end of a row from its pixel | 70 | glyphs and truncation glyphs at the end of a row from its pixel width. |
| 64 | width. | ||
| 65 | (dump_glyph_row): Print row's continuation_lines_width. | 71 | (dump_glyph_row): Print row's continuation_lines_width. |
| 66 | (try_window_id): Take the shortcut if ZV is visible in the | 72 | (try_window_id): Take the shortcut if ZV is visible in the |
| 67 | window, but there are actually no changes at ZV. | 73 | window, but there are actually no changes at ZV. |
diff --git a/src/w32menu.c b/src/w32menu.c index 043e6731f0e..ca0ed0b6320 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -964,6 +964,7 @@ menubar_selection_callback (FRAME_PTR f, void * client_data) | |||
| 964 | 964 | ||
| 965 | if (!f) | 965 | if (!f) |
| 966 | return; | 966 | return; |
| 967 | entry = Qnil; | ||
| 967 | subprefix_stack = (Lisp_Object *) alloca (f->menu_bar_items_used * sizeof (Lisp_Object)); | 968 | subprefix_stack = (Lisp_Object *) alloca (f->menu_bar_items_used * sizeof (Lisp_Object)); |
| 968 | vector = f->menu_bar_vector; | 969 | vector = f->menu_bar_vector; |
| 969 | prefix = Qnil; | 970 | prefix = Qnil; |
| @@ -1765,7 +1766,7 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1765 | { | 1766 | { |
| 1766 | Lisp_Object prefix, entry; | 1767 | Lisp_Object prefix, entry; |
| 1767 | 1768 | ||
| 1768 | prefix = Qnil; | 1769 | prefix = entry = Qnil; |
| 1769 | i = 0; | 1770 | i = 0; |
| 1770 | while (i < menu_items_used) | 1771 | while (i < menu_items_used) |
| 1771 | { | 1772 | { |
| @@ -1833,7 +1834,7 @@ w32_dialog_show (f, keymaps, title, error) | |||
| 1833 | char dialog_name[6]; | 1834 | char dialog_name[6]; |
| 1834 | int menu_item_selection; | 1835 | int menu_item_selection; |
| 1835 | 1836 | ||
| 1836 | widget_value *wv, *save_wv = 0, *first_wv = 0, *prev_wv = 0; | 1837 | widget_value *wv, *first_wv = 0, *prev_wv = 0; |
| 1837 | 1838 | ||
| 1838 | /* Number of elements seen so far, before boundary. */ | 1839 | /* Number of elements seen so far, before boundary. */ |
| 1839 | int left_count = 0; | 1840 | int left_count = 0; |
| @@ -2012,9 +2013,14 @@ static int | |||
| 2012 | name_is_separator (name) | 2013 | name_is_separator (name) |
| 2013 | char *name; | 2014 | char *name; |
| 2014 | { | 2015 | { |
| 2015 | /* Check if name string consists of only dashes ('-') */ | 2016 | char *start = name; |
| 2017 | |||
| 2018 | /* Check if name string consists of only dashes ('-'). */ | ||
| 2016 | while (*name == '-') name++; | 2019 | while (*name == '-') name++; |
| 2017 | return (*name == '\0'); | 2020 | /* Separators can also be of the form "--:TripleSuperMegaEtched" |
| 2021 | or "--deep-shadow". We don't implement them yet, se we just treat | ||
| 2022 | them like normal separators. */ | ||
| 2023 | return (*name == '\0' || start + 2 == name); | ||
| 2018 | } | 2024 | } |
| 2019 | 2025 | ||
| 2020 | 2026 | ||