diff options
| author | Eli Zaretskii | 2012-11-03 15:58:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-03 15:58:33 +0200 |
| commit | 858f0f24b1433dcda709a33e932775e3aa96a786 (patch) | |
| tree | 0b715c63bb71454cad1ac86c751d5845c4ea0508 /src | |
| parent | 12fd5ee1ae617b212e4d00e2ed4c196d3656f615 (diff) | |
| parent | 1d4341f98813e8f2f4179e1d0a414b2f16c880eb (diff) | |
| download | emacs-858f0f24b1433dcda709a33e932775e3aa96a786.tar.gz emacs-858f0f24b1433dcda709a33e932775e3aa96a786.zip | |
Adapt MSDOS port to latest changes.
config.bat: Copy lib/execinfo.in.h to lib/execinfo.in-h if needed.
msdos/sedlibmk.inp: Sync with changes in lib/Makefile.in.
(HAVE_DECL_ENVIRON, GNULIB_ENVIRON): Edit to require declaration
through lib/unistd.h.
msdos/sed1v2.inp: Sync with changes in src/Makefile.in.
msdos/sed2v2.inp: Sync with changes in src/config.in.
src/lisp.mk: Adjust comments to the fact that term/internal is now
loaded from loadup.el.
src/msdos.c (msdos_abort): Rename from emacs_abort, and make static.
(msdos_fatal_signal): New function.
(XMenuActivate): Adjust the call to kbd_buffer_events_waiting to
its argument list.
src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline"
for GCC versions before 4.
(emacs_raise): Define to call msdos_fatal_signal.
lisp/term/pc-win.el: Don't load term/internal from here.
lisp/loadup.el: Load term/internal from here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 24 | ||||
| -rw-r--r-- | src/conf_post.h | 9 | ||||
| -rw-r--r-- | src/lisp.mk | 6 | ||||
| -rw-r--r-- | src/msdos.c | 15 |
4 files changed, 42 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d42714f91f..3ae755f3d20 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,16 +1,28 @@ | |||
| 1 | 2012-11-03 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2012-11-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * widget.c (resize_cb): New function. | 3 | * lisp.mk: Adjust comments to the fact that term/internal is now |
| 4 | (EmacsFrameRealize): Add resize_cb as event handler (Bug#12733). | 4 | loaded from loadup.el. |
| 5 | (EmacsFrameResize): Check if all is up to date before changing frame | ||
| 6 | size. | ||
| 7 | 5 | ||
| 8 | 2012-11-03 Eli Zaretskii <eliz@gnu.org> | 6 | * msdos.c (msdos_abort): Rename from emacs_abort, and make static. |
| 7 | (msdos_fatal_signal): New function. | ||
| 8 | (XMenuActivate): Adjust the call to kbd_buffer_events_waiting to | ||
| 9 | its argument list. | ||
| 10 | |||
| 11 | * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline" | ||
| 12 | for GCC versions before 4. | ||
| 13 | (emacs_raise): Define to call msdos_fatal_signal. | ||
| 9 | 14 | ||
| 10 | * xdisp.c (init_from_display_pos): Fix initialization of the bidi | 15 | * xdisp.c (init_from_display_pos): Fix initialization of the bidi |
| 11 | iterator when starting in the middle of a display or overlay | 16 | iterator when starting in the middle of a display or overlay |
| 12 | string. (Bug#12745) | 17 | string. (Bug#12745) |
| 13 | 18 | ||
| 19 | 2012-11-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 20 | |||
| 21 | * widget.c (resize_cb): New function. | ||
| 22 | (EmacsFrameRealize): Add resize_cb as event handler (Bug#12733). | ||
| 23 | (EmacsFrameResize): Check if all is up to date before changing frame | ||
| 24 | size. | ||
| 25 | |||
| 14 | 2012-11-01 Eli Zaretskii <eliz@gnu.org> | 26 | 2012-11-01 Eli Zaretskii <eliz@gnu.org> |
| 15 | 27 | ||
| 16 | * w32proc.c (getpgrp, setpgid): New functions. (Bug#12776) | 28 | * w32proc.c (getpgrp, setpgid): New functions. (Bug#12776) |
diff --git a/src/conf_post.h b/src/conf_post.h index 6056821d4a7..da3c3bd58b0 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -110,8 +110,17 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 110 | #else | 110 | #else |
| 111 | # define lstat stat | 111 | # define lstat stat |
| 112 | #endif | 112 | #endif |
| 113 | /* The "portable" definition of _GL_INLINE on config.h does not work | ||
| 114 | with DJGPP GCC 3.4.4: it causes unresolved externals in sysdep.c, | ||
| 115 | although lib/execinfo.h is included and the inline functions there | ||
| 116 | are visible. */ | ||
| 117 | #if __GNUC__ < 4 | ||
| 118 | # define _GL_EXECINFO_INLINE inline | ||
| 119 | #endif | ||
| 113 | /* End of gnulib-related stuff. */ | 120 | /* End of gnulib-related stuff. */ |
| 114 | 121 | ||
| 122 | #define emacs_raise(sig) msdos_fatal_signal (sig) | ||
| 123 | |||
| 115 | #ifndef HAVE_SETPGID | 124 | #ifndef HAVE_SETPGID |
| 116 | # ifdef USG | 125 | # ifdef USG |
| 117 | # define setpgid(pid, pgid) setpgrp () | 126 | # define setpgid(pid, pgid) setpgrp () |
diff --git a/src/lisp.mk b/src/lisp.mk index 1f459d4d5f1..8c2710110e3 100644 --- a/src/lisp.mk +++ b/src/lisp.mk | |||
| @@ -34,9 +34,9 @@ | |||
| 34 | ## that does not have an explicit .el extension, but beware of any | 34 | ## that does not have an explicit .el extension, but beware of any |
| 35 | ## no-byte-compile ones. | 35 | ## no-byte-compile ones. |
| 36 | 36 | ||
| 37 | ## Confusingly, term/internal is not in loadup, but is unconditionally | 37 | ## Confusingly, international/cp51932 and international/eucjp-ms are |
| 38 | ## loaded by pc-win, which is. Ditto for international/cp51932 and | 38 | ## unconditionally loaded from language/japanese, instead of being |
| 39 | ## international/eucjp-ms, loaded from language/japanese. | 39 | ## loaded directly from loadup.el; FIXME. |
| 40 | 40 | ||
| 41 | ## Note that this list should not include lisp files which might not | 41 | ## Note that this list should not include lisp files which might not |
| 42 | ## be present, like site-load.el and site-init.el; this makefile | 42 | ## be present, like site-load.el and site-init.el; this makefile |
diff --git a/src/msdos.c b/src/msdos.c index bac6b977fdf..79f0be48892 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -3305,7 +3305,7 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | |||
| 3305 | Emacs will process them after we return and surprise the user. */ | 3305 | Emacs will process them after we return and surprise the user. */ |
| 3306 | discard_mouse_events (); | 3306 | discard_mouse_events (); |
| 3307 | mouse_clear_clicks (); | 3307 | mouse_clear_clicks (); |
| 3308 | if (!kbd_buffer_events_waiting (1)) | 3308 | if (!kbd_buffer_events_waiting ()) |
| 3309 | clear_input_pending (); | 3309 | clear_input_pending (); |
| 3310 | /* Allow mouse events generation by dos_rawgetc. */ | 3310 | /* Allow mouse events generation by dos_rawgetc. */ |
| 3311 | mouse_preempted--; | 3311 | mouse_preempted--; |
| @@ -4214,8 +4214,8 @@ init_gettimeofday (void) | |||
| 4214 | } | 4214 | } |
| 4215 | #endif | 4215 | #endif |
| 4216 | 4216 | ||
| 4217 | void | 4217 | static void |
| 4218 | emacs_abort (void) | 4218 | msdos_abort (void) |
| 4219 | { | 4219 | { |
| 4220 | dos_ttcooked (); | 4220 | dos_ttcooked (); |
| 4221 | ScreenSetCursor (10, 0); | 4221 | ScreenSetCursor (10, 0); |
| @@ -4233,6 +4233,15 @@ emacs_abort (void) | |||
| 4233 | } | 4233 | } |
| 4234 | 4234 | ||
| 4235 | void | 4235 | void |
| 4236 | msdos_fatal_signal (int sig) | ||
| 4237 | { | ||
| 4238 | if (sig == SIGABRT) | ||
| 4239 | msdos_abort (); | ||
| 4240 | else | ||
| 4241 | raise (sig); | ||
| 4242 | } | ||
| 4243 | |||
| 4244 | void | ||
| 4236 | syms_of_msdos (void) | 4245 | syms_of_msdos (void) |
| 4237 | { | 4246 | { |
| 4238 | recent_doskeys = Fmake_vector (make_number (NUM_RECENT_DOSKEYS), Qnil); | 4247 | recent_doskeys = Fmake_vector (make_number (NUM_RECENT_DOSKEYS), Qnil); |