diff options
| author | Dmitry Antipov | 2013-01-15 13:22:25 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-15 13:22:25 +0400 |
| commit | 2b30549c493d7b67fa92c2b4bcd2bd2e55210ae1 (patch) | |
| tree | ac4cc77344b3285eb47d5145eb0b28dd6034f54d /src/xmenu.c | |
| parent | 1b971ac155006504b6b1c2688199747f976723af (diff) | |
| download | emacs-2b30549c493d7b67fa92c2b4bcd2bd2e55210ae1.tar.gz emacs-2b30549c493d7b67fa92c2b4bcd2bd2e55210ae1.zip | |
* src/lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow extraction
from any Lisp_Save_Value slot. Add type checking.
* src/alloc.c, src/dired.c, src/editfns.c, src/fileio.c, src/ftfont.c:
* src/gtkutil.c, src/keymap.c, src/lread.c, src/nsterm.h, src/nsmenu.c:
* src/xfns.c, src/xmenu.c, src/xselect.c: All users changed.
* admin/coccinelle/xsave.cocci: Semantic patch to adjust users of
XSAVE_POINTER and XSAVE_INTEGER macros.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 6d880993d19..56a3783127e 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1413,7 +1413,7 @@ pop_down_menu (Lisp_Object arg) | |||
| 1413 | { | 1413 | { |
| 1414 | popup_activated_flag = 0; | 1414 | popup_activated_flag = 0; |
| 1415 | block_input (); | 1415 | block_input (); |
| 1416 | gtk_widget_destroy (GTK_WIDGET (XSAVE_POINTER (arg))); | 1416 | gtk_widget_destroy (GTK_WIDGET (XSAVE_POINTER (arg, 0))); |
| 1417 | unblock_input (); | 1417 | unblock_input (); |
| 1418 | return Qnil; | 1418 | return Qnil; |
| 1419 | } | 1419 | } |
| @@ -1610,7 +1610,7 @@ create_and_show_popup_menu (FRAME_PTR f, widget_value *first_wv, | |||
| 1610 | static Lisp_Object | 1610 | static Lisp_Object |
| 1611 | cleanup_widget_value_tree (Lisp_Object arg) | 1611 | cleanup_widget_value_tree (Lisp_Object arg) |
| 1612 | { | 1612 | { |
| 1613 | free_menubar_widget_value_tree (XSAVE_POINTER (arg)); | 1613 | free_menubar_widget_value_tree (XSAVE_POINTER (arg, 0)); |
| 1614 | return Qnil; | 1614 | return Qnil; |
| 1615 | } | 1615 | } |
| 1616 | 1616 | ||
| @@ -2236,8 +2236,8 @@ menu_help_callback (char const *help_string, int pane, int item) | |||
| 2236 | static Lisp_Object | 2236 | static Lisp_Object |
| 2237 | pop_down_menu (Lisp_Object arg) | 2237 | pop_down_menu (Lisp_Object arg) |
| 2238 | { | 2238 | { |
| 2239 | FRAME_PTR f = XSAVE_POINTER (Fcar (arg)); | 2239 | FRAME_PTR f = XSAVE_POINTER (Fcar (arg), 0); |
| 2240 | XMenu *menu = XSAVE_POINTER (Fcdr (arg)); | 2240 | XMenu *menu = XSAVE_POINTER (Fcdr (arg), 0); |
| 2241 | 2241 | ||
| 2242 | block_input (); | 2242 | block_input (); |
| 2243 | #ifndef MSDOS | 2243 | #ifndef MSDOS |