diff options
| author | Eli Zaretskii | 2014-04-16 16:27:28 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-04-16 16:27:28 +0300 |
| commit | bf6b4923f7eedea193dee2130bf7fa597a5932d4 (patch) | |
| tree | 62bd144e45df20c0fc1600eedb3f744dcfe959a2 /src/menu.c | |
| parent | 3a31cae4677c7c5e501dcf7e5c520e49db16f75e (diff) | |
| download | emacs-bf6b4923f7eedea193dee2130bf7fa597a5932d4.tar.gz emacs-bf6b4923f7eedea193dee2130bf7fa597a5932d4.zip | |
Fix the MSDOS build.
src/unexcoff.c [MSDOS]: Include libc/atexit.h.
(copy_text_and_data): Zero out the atexit chain pointer before
dumping Emacs.
src/termhooks.h (encode_terminal_code): Update prototype.
src/term.c (encode_terminal_code) [DOS_NT]: Make it externally
visible for all DOS_NT ports, not just WINDOWSNT.
(syms_of_term) [!MSDOS]: Don't define 'tty-menu-*' symbols on MSDOS.
src/sysdep.c (emacs_sigaction_init, init_signals): Don't use SIGCHLD
unless it is defined.
(emacs_pipe) [MSDOS]: Redirect to 'pipe'.
src/process.c (close_on_exec, accept4, process_socket): Move into
the "ifdef subprocesses" part.
(catch_child_signal): Condition by "ifdef subprocesses".
(syms_of_process) <Qinternal_default_process_sentinel>
<Qinternal_default_process_filter>: Condition by "ifdef subprocesses".
src/msdos.h: Add prototypes for new functions.
(EINPROGRESS): Define.
(O_CLOEXEC): Define to zero.
src/msdos.c (check_window_system): Remove unnecessary an
incompatible duplicate function.
(sys_opendir, readlinkat, faccessat, fstatat, unsetenv): New
functions in support of new functionality.
src/menu.c (single_menu_item): Add visual indication of submenu
also for menus on MSDOS frames.
(Fx_popup_menu) [!MSDOS]: Do not call tty_menu_show on MSDOS.
src/lisp.h (CHECK_PROCESS) [!subprocesses]: Do not define
when async subprocesses aren't supported.
src/font.h (FONT_WIDTH) [MSDOS]: MSDOS-specific definition.
src/emacs.c (close_output_streams): Zero out errno before calling
close_stream.
src/dired.c [MSDOS]: Include msdos.h.
src/conf_post.h (opendir) [MSDOS]: Redirect to sys_opendir.
(DATA_START) [MSDOS]: Define.
(SYSTEM_PURESIZE_EXTRA) [MSDOS]: Enlarge by 25K.
src/callproc.c (block_child_signal, unblock_child_signal) [MSDOS]:
Ifdef away for MSDOS.
(record_kill_process) [MSDOS]: Ifdef away the entire body for MSDOS.
(call_process_cleanup) [MSDOS]: Ifdef away portions not relevant
for MSDOS.
(call_process) [MSDOS]: Fix call sequence of dostounix_filename.
Use temporary file template that is compatible with mkostemp.
Move vfork-related portions under #ifndef MSDOS.
(syms_of_callproc): Unify templates of MSDOS and WINDOWSNT.
lisp/term/pc-win.el (x-list-fonts, x-get-selection-value): Provide
doc strings, as required by snarf-documentation.
msdos/sedlisp.inp:
msdos/sedlibmk.inp:
msdos/sedleim.inp:
msdos/sed3v2.inp:
msdos/sed2v2.inp:
msdos/sed1v2.inp: Update Sed scripts for Emacs 24.4.
msdos/inttypes.h: Add PRIdMAX.
msdos/INSTALL: Update for Emacs 24.4.
msdos/sedadmin.inp: New file.
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c index 9c08ff17665..468f2814eb4 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -415,7 +415,8 @@ single_menu_item (Lisp_Object key, Lisp_Object item, Lisp_Object dummy, void *sk | |||
| 415 | item_string = concat2 (prefix, item_string); | 415 | item_string = concat2 (prefix, item_string); |
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | if (FRAME_TERMCAP_P (XFRAME (Vmenu_updating_frame)) | 418 | if ((FRAME_TERMCAP_P (XFRAME (Vmenu_updating_frame)) |
| 419 | || FRAME_MSDOS_P (XFRAME (Vmenu_updating_frame))) | ||
| 419 | && !NILP (map)) | 420 | && !NILP (map)) |
| 420 | /* Indicate visually that this is a submenu. */ | 421 | /* Indicate visually that this is a submenu. */ |
| 421 | item_string = concat2 (item_string, build_string (" >")); | 422 | item_string = concat2 (item_string, build_string (" >")); |
| @@ -1442,6 +1443,7 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1442 | keymaps, title, &error_name); | 1443 | keymaps, title, &error_name); |
| 1443 | else | 1444 | else |
| 1444 | #endif | 1445 | #endif |
| 1446 | #ifndef MSDOS | ||
| 1445 | if (FRAME_TERMCAP_P (f)) | 1447 | if (FRAME_TERMCAP_P (f)) |
| 1446 | { | 1448 | { |
| 1447 | ptrdiff_t count1 = SPECPDL_INDEX (); | 1449 | ptrdiff_t count1 = SPECPDL_INDEX (); |
| @@ -1453,6 +1455,7 @@ no quit occurs and `x-popup-menu' returns nil. */) | |||
| 1453 | kbd_menu_navigation, &error_name); | 1455 | kbd_menu_navigation, &error_name); |
| 1454 | unbind_to (count1, Qnil); | 1456 | unbind_to (count1, Qnil); |
| 1455 | } | 1457 | } |
| 1458 | #endif | ||
| 1456 | 1459 | ||
| 1457 | #ifdef HAVE_NS | 1460 | #ifdef HAVE_NS |
| 1458 | unbind_to (specpdl_count, Qnil); | 1461 | unbind_to (specpdl_count, Qnil); |