aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/menu.c b/src/menu.c
index 05a296e45fc..851f1ac804b 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1,6 +1,7 @@
1/* Platform-independent code for terminal communications. 1/* Platform-independent code for terminal communications.
2 Copyright (C) 1986, 1988, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2003, 2
3 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2011
4 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -695,7 +696,7 @@ digest_single_submenu (int start, int end, int top_level_items)
695#endif 696#endif
696 697
697 pane_string = (NILP (pane_name) 698 pane_string = (NILP (pane_name)
698 ? "" : (char *) SDATA (pane_name)); 699 ? "" : SSDATA (pane_name));
699 /* If there is just one top-level pane, put all its items directly 700 /* If there is just one top-level pane, put all its items directly
700 under the top-level menu. */ 701 under the top-level menu. */
701 if (menu_items_n_panes == 1) 702 if (menu_items_n_panes == 1)
@@ -847,7 +848,7 @@ update_submenu_strings (widget_value *first_wv)
847 { 848 {
848 if (STRINGP (wv->lname)) 849 if (STRINGP (wv->lname))
849 { 850 {
850 wv->name = (char *) SDATA (wv->lname); 851 wv->name = SSDATA (wv->lname);
851 852
852 /* Ignore the @ that means "separate pane". 853 /* Ignore the @ that means "separate pane".
853 This is a kludge, but this isn't worth more time. */ 854 This is a kludge, but this isn't worth more time. */
@@ -860,7 +861,7 @@ update_submenu_strings (widget_value *first_wv)
860 } 861 }
861 862
862 if (STRINGP (wv->lkey)) 863 if (STRINGP (wv->lkey))
863 wv->key = (char *) SDATA (wv->lkey); 864 wv->key = SSDATA (wv->lkey);
864 865
865 if (wv->contents) 866 if (wv->contents)
866 update_submenu_strings (wv->contents); 867 update_submenu_strings (wv->contents);
@@ -1353,6 +1354,3 @@ syms_of_menu (void)
1353 1354
1354 defsubr (&Sx_popup_menu); 1355 defsubr (&Sx_popup_menu);
1355} 1356}
1356
1357/* arch-tag: 78bbc7cf-8025-4156-aa8a-6c7fd99bf51d
1358 (do not change this comment) */