diff options
| author | Dmitry Antipov | 2013-01-15 14:14:31 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-15 14:14:31 +0400 |
| commit | 3346c1d0a8e53bc883bf07d8c7d4fbd8d3d6a690 (patch) | |
| tree | f21145fa8837326e902cb9188027397d700baba9 /src/xmenu.c | |
| parent | 2b30549c493d7b67fa92c2b4bcd2bd2e55210ae1 (diff) | |
| download | emacs-3346c1d0a8e53bc883bf07d8c7d4fbd8d3d6a690.tar.gz emacs-3346c1d0a8e53bc883bf07d8c7d4fbd8d3d6a690.zip | |
* keymap.c (map_keymap_internal): Use format_save_value.
(map_keymap_char_table_item): Adjust accordingly.
* fileio.c (non_regular_fd, non_regular_inserted)
(non_regular_nbytes): Remove.
(Finsert_file_contents): Convert trytry to ptrdiff_t. Use
format_save_value to pass parameters to read_non_regular.
(read_non_regular): Use XSAVE_ macros to extract parameters.
Adjust comment.
* xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Use
format_save_value.
(pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Adjust user.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 56a3783127e..7f6914d26ac 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -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), 0); | 2239 | FRAME_PTR f = XSAVE_POINTER (arg, 0); |
| 2240 | XMenu *menu = XSAVE_POINTER (Fcdr (arg), 0); | 2240 | XMenu *menu = XSAVE_POINTER (arg, 1); |
| 2241 | 2241 | ||
| 2242 | block_input (); | 2242 | block_input (); |
| 2243 | #ifndef MSDOS | 2243 | #ifndef MSDOS |
| @@ -2479,8 +2479,7 @@ xmenu_show (FRAME_PTR f, int x, int y, bool for_click, bool keymaps, | |||
| 2479 | #endif | 2479 | #endif |
| 2480 | 2480 | ||
| 2481 | record_unwind_protect (pop_down_menu, | 2481 | record_unwind_protect (pop_down_menu, |
| 2482 | Fcons (make_save_value (f, 0), | 2482 | format_save_value ("pp", f, menu)); |
| 2483 | make_save_value (menu, 0))); | ||
| 2484 | 2483 | ||
| 2485 | /* Help display under X won't work because XMenuActivate contains | 2484 | /* Help display under X won't work because XMenuActivate contains |
| 2486 | a loop that doesn't give Emacs a chance to process it. */ | 2485 | a loop that doesn't give Emacs a chance to process it. */ |