diff options
| author | Joakim Verona | 2011-02-05 11:23:09 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-02-05 11:23:09 +0100 |
| commit | 4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch) | |
| tree | 894801e7308ce4ecc34933f959e28f4b9cff9533 /src/menu.c | |
| parent | 13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff) | |
| parent | 9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff) | |
| download | emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip | |
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 14 |
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. | 3 | Copyright (C) 1986, 1988, 1993-1994, 1996, 1999-2011 |
| 4 | Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This 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) */ | ||