Mercurial > emacs
diff src/xmenu.c @ 56847:6079dd23b546
Don't call ENCODE_MENU_STRING on top level menu names, GC may occur.
| author | Jan Dj?rv <jan.h.d@swipnet.se> |
|---|---|
| date | Mon, 30 Aug 2004 20:14:21 +0000 |
| parents | 5817080daeba |
| children | 7201186afcb7 |
line wrap: on
line diff
--- a/src/xmenu.c Mon Aug 30 19:42:53 2004 +0000 +++ b/src/xmenu.c Mon Aug 30 20:14:21 2004 +0000 @@ -2056,7 +2056,7 @@ string = XVECTOR (items)->contents[i + 1]; if (NILP (string)) break; - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); update_submenu_strings (wv->contents); wv = wv->next; } @@ -2088,7 +2088,7 @@ break; wv = xmalloc_widget_value (); - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); wv->value = 0; wv->enabled = 1; wv->button_type = BUTTON_TYPE_NONE;
