aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-07-21 21:43:52 +0000
committerGerd Moellmann1999-07-21 21:43:52 +0000
commit90d920b6076f7ad1d41091e7c16274efbb75dd07 (patch)
tree6b46ddb56974857a58a65e289b66eeed53aa2358
parentefa2a55cbd069dc74315ca7b4c6a9d3244a70df4 (diff)
downloademacs-90d920b6076f7ad1d41091e7c16274efbb75dd07.tar.gz
emacs-90d920b6076f7ad1d41091e7c16274efbb75dd07.zip
(main): Call init_fns.
(main): Call syms_of_sound and init_sound. (main): Call syms_of_xfaces before init_window_once. (main): Call init_xfns. (shut_down_emacs): check glyph memory.
-rw-r--r--src/emacs.c37
1 files changed, 28 insertions, 9 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 5721c2c9826..4953220f110 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -971,7 +971,16 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
971 init_casetab_once (); 971 init_casetab_once ();
972 init_buffer_once (); /* Create buffer table and some buffers */ 972 init_buffer_once (); /* Create buffer table and some buffers */
973 init_minibuf_once (); /* Create list of minibuffers */ 973 init_minibuf_once (); /* Create list of minibuffers */
974 /* Must precede init_window_once */ 974 /* Must precede init_window_once */
975
976 /* Call syms_of_xfaces before init_window_once because that
977 function creates Vterminal_frame. Termcap frames now use
978 faces, and the face implementation uses some symbols as
979 face names. */
980#ifndef HAVE_NTGUI
981 syms_of_xfaces ();
982#endif
983
975 init_window_once (); /* Init the window system */ 984 init_window_once (); /* Init the window system */
976 init_fileio_once (); /* Must precede any path manipulation. */ 985 init_fileio_once (); /* Must precede any path manipulation. */
977 } 986 }
@@ -1205,6 +1214,9 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1205 syms_of_syntax (); 1214 syms_of_syntax ();
1206 syms_of_term (); 1215 syms_of_term ();
1207 syms_of_undo (); 1216 syms_of_undo ();
1217#ifdef HAVE_SOUND
1218 syms_of_sound ();
1219#endif
1208 1220
1209 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ 1221 /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
1210 syms_of_textprop (); 1222 syms_of_textprop ();
@@ -1226,7 +1238,6 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1226#endif /* HAVE_X_WINDOWS */ 1238#endif /* HAVE_X_WINDOWS */
1227 1239
1228#ifndef HAVE_NTGUI 1240#ifndef HAVE_NTGUI
1229 syms_of_xfaces ();
1230 syms_of_xmenu (); 1241 syms_of_xmenu ();
1231#endif 1242#endif
1232 1243
@@ -1270,6 +1281,10 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1270 init_vmsproc (); /* And this too. */ 1281 init_vmsproc (); /* And this too. */
1271#endif /* VMS */ 1282#endif /* VMS */
1272 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */ 1283 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */
1284#ifdef HAVE_X_WINDOWS
1285 init_xfns ();
1286#endif /* HAVE_X_WINDOWS */
1287 init_fns ();
1273 init_xdisp (); 1288 init_xdisp ();
1274 init_macros (); 1289 init_macros ();
1275 init_editfns (); 1290 init_editfns ();
@@ -1280,6 +1295,9 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1280 init_vmsfns (); 1295 init_vmsfns ();
1281#endif /* VMS */ 1296#endif /* VMS */
1282 init_process (); 1297 init_process ();
1298#ifdef HAVE_SOUND
1299 init_sound ();
1300#endif
1283 1301
1284 if (!initialized) 1302 if (!initialized)
1285 { 1303 {
@@ -1325,14 +1343,13 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1325 { 1343 {
1326 extern void _mcleanup (); 1344 extern void _mcleanup ();
1327 extern char etext; 1345 extern char etext;
1328 extern Lisp_Object Fredraw_frame (); 1346 extern void safe_bcopy ();
1329 atexit (_mcleanup); 1347 atexit (_mcleanup);
1330 /* This uses Fredraw_frame because that function 1348 /* This uses safe_bcopy because that function comes first in the
1331 comes first in the Emacs executable. 1349 Emacs executable. It might be better to use something that
1332 It might be better to use something that gives 1350 gives the start of the text segment, but start_of_text is not
1333 the start of the text segment, but start_of_text 1351 defined on all systems now. */
1334 is not defined on all systems now. */ 1352 monstartup (safe_bcopy, &etext);
1335 monstartup (Fredraw_frame, &etext);
1336 } 1353 }
1337 else 1354 else
1338 moncontrol (0); 1355 moncontrol (0);
@@ -1719,6 +1736,8 @@ shut_down_emacs (sig, no_x, stuff)
1719 term_ntproc (); 1736 term_ntproc ();
1720#endif 1737#endif
1721 1738
1739 check_glyph_memory ();
1740
1722#ifdef MSDOS 1741#ifdef MSDOS
1723 dos_cleanup (); 1742 dos_cleanup ();
1724#endif 1743#endif