aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-09-07 05:52:52 +0000
committerStefan Monnier2004-09-07 05:52:52 +0000
commit1806714ad86e47cc6692207a3bcd3223b8df5972 (patch)
tree3162b99e0531e318654585f11ec3ee79a178b1a2 /src
parent718dc91d81ecfa88637e400870a6f2ed1654c44d (diff)
downloademacs-1806714ad86e47cc6692207a3bcd3223b8df5972.tar.gz
emacs-1806714ad86e47cc6692207a3bcd3223b8df5972.zip
(update_submenu_strings): YAILOM.
(set_frame_menubar): Make sure last_i is initialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog27
-rw-r--r--src/xmenu.c8
2 files changed, 20 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8fd72a29c29..ac72b86018a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,11 @@
12004-09-07 Stefan <monnier@iro.umontreal.ca>
2
3 * xmenu.c (update_submenu_strings): YAILOM.
4 (set_frame_menubar): Make sure last_i is initialized.
5
12004-09-03 Jason Rumney <jasonr@gnu.org> 62004-09-03 Jason Rumney <jasonr@gnu.org>
2 7
3 * w32menu.c (_widget_value): Added lname and lkey. 8 * w32menu.c (_widget_value): Add lname and lkey.
4 (digest_single_submenu): Set lname and lkey in widget_value 9 (digest_single_submenu): Set lname and lkey in widget_value
5 instead of name and key. 10 instead of name and key.
6 (update_submenu_strings): New function. 11 (update_submenu_strings): New function.
@@ -12,7 +17,7 @@
12 UTF-8 if Unicode API is available. 17 UTF-8 if Unicode API is available.
13 (utf8to16): New function. 18 (utf8to16): New function.
14 (add_menu_item): Use it when calling Unicode API. 19 (add_menu_item): Use it when calling Unicode API.
15 20
162004-09-03 Kim F. Storm <storm@cua.dk> 212004-09-03 Kim F. Storm <storm@cua.dk>
17 22
18 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property 23 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
@@ -22,14 +27,14 @@
222004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 272004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23 28
24 * macfns.c (x_real_positions): Save the current window port and 29 * macfns.c (x_real_positions): Save the current window port and
25 set a new one before obtaining the global coordinate. Use 30 set a new one before obtaining the global coordinate.
26 FRAME_MAC_WINDOW. 31 Use FRAME_MAC_WINDOW.
27 (x_set_name, x_set_title): Encode title to UTF8. Use 32 (x_set_name, x_set_title): Encode title to UTF8.
28 SetWindowTitleWithCFString. 33 Use SetWindowTitleWithCFString.
29 (Fx_server_version): Get correct OS version. 34 (Fx_server_version): Get correct OS version.
30 35
31 * macmenu.c (add_menu_item): Remove unused variable `i'. Don't 36 * macmenu.c (add_menu_item): Remove unused variable `i'.
32 let separator items destroy refence constants of other menu items. 37 Don't let separator items destroy refence constants of other menu items.
33 38
34 * macterm.c (x_update_end): Move SetPortWindowPort to inside 39 * macterm.c (x_update_end): Move SetPortWindowPort to inside
35 BLOCK_INPUT. 40 BLOCK_INPUT.
@@ -40,8 +45,8 @@
40 45
41 * s/darwin.h (LIBS_CARBON): New define to specify libraries for 46 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
42 Carbon support. 47 Carbon support.
43 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++. Use 48 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
44 LIBS_CARBON. 49 Use LIBS_CARBON.
45 50
462004-09-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 512004-09-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
47 52
@@ -56,7 +61,7 @@
56 61
572004-08-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 622004-08-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
58 63
59 * macmenu.c (_widget_value): Added lname and lkey. 64 * macmenu.c (_widget_value): Add lname and lkey.
60 (single_submenu): Set lname and lkey in widget_value 65 (single_submenu): Set lname and lkey in widget_value
61 instead of name and key. 66 instead of name and key.
62 (update_submenu_strings): New function. 67 (update_submenu_strings): New function.
diff --git a/src/xmenu.c b/src/xmenu.c
index 7f6e7c398a9..b722b245af9 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1,5 +1,5 @@
1/* X Communication module for terminals which understand the X protocol. 1/* X Communication module for terminals which understand the X protocol.
2 Copyright (C) 1986, 88, 93, 94, 96, 99, 2000, 2001, 2003 2 Copyright (C) 1986, 1988, 1993, 1994, 1996, 1999, 2000, 2001, 2003, 2004
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -1801,7 +1801,7 @@ update_submenu_strings (first_wv)
1801 1801
1802 for (wv = first_wv; wv; wv = wv->next) 1802 for (wv = first_wv; wv; wv = wv->next)
1803 { 1803 {
1804 if (wv->lname && ! NILP (wv->lname)) 1804 if (STRINGP (wv->lname))
1805 { 1805 {
1806 wv->name = SDATA (wv->lname); 1806 wv->name = SDATA (wv->lname);
1807 1807
@@ -1815,7 +1815,7 @@ update_submenu_strings (first_wv)
1815 } 1815 }
1816 } 1816 }
1817 1817
1818 if (wv->lkey && ! NILP (wv->lkey)) 1818 if (STRINGP (wv->lkey))
1819 wv->key = SDATA (wv->lkey); 1819 wv->key = SDATA (wv->lkey);
1820 1820
1821 if (wv->contents) 1821 if (wv->contents)
@@ -1888,7 +1888,7 @@ set_frame_menubar (f, first_time, deep_p)
1888#endif 1888#endif
1889 Lisp_Object items; 1889 Lisp_Object items;
1890 widget_value *wv, *first_wv, *prev_wv = 0; 1890 widget_value *wv, *first_wv, *prev_wv = 0;
1891 int i, last_i; 1891 int i, last_i = 0;
1892 int *submenu_start, *submenu_end; 1892 int *submenu_start, *submenu_end;
1893 int *submenu_top_level_items, *submenu_n_panes; 1893 int *submenu_top_level_items, *submenu_n_panes;
1894 1894