Mercurial > emacs
comparison src/emacs.c @ 32752:923b8d6d8277
Initial check-in: changes for building Emacs under Mac OS.
2000-10-23 Andrew Choi <akochoi@i-cable.com>
* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
* dispnew.c [macintosh]: Include macterm.h.
(init_display) [macintosh]: initialization for window system.
* emacs.c (main) [macintosh]: Call syms_of_textprop,
syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
syms_of_search, x_term_init, and init_keyboard before calling
init_window_once. Also, call syms_of_xmenu.
* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
default fontset to Monaco.
* frame.c [macintosh]: Include macterm.h. Remove declarations of
NewMacWindow and DisposeMacWindow.
(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
instead of calling NewMacWindow and setting fields of
f->output_data.mac directly. Call init_frame_faces.
(Fdelete_frame) [macintosh]: Remove unused code.
(Fmodify_frame_parameters) [macintosh]: Call
x_set_frame_parameters instead of mac_set_frame_parameters.
* frame.h [macintosh]: Define menu_bar_lines field in struct
frame. Define FRAME_EXTERNAL_MENU_BAR macro.
* keyboard.c [macintosh]: Include macterm.h.
(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
and menu_bar_activate_event type events as for X and NT.
(make_lispy_event) [macintosh]: Construct lisp events of type
MENU_BAR_EVENT as for X and NT.
* sysdep.c [macintosh]: Remove declaration for sys_signal.
Include stdlib.h. Remove definition of Vx_bitmap_file_path.
(sys_subshell) [macintosh]: Remove definition entirely.
(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
Vwindow_system_version here. Remove initialization of
Vx_bitmap_file_path.
(read_input_waiting): Correct the number of parameters passed to
read_socket_hook.
Move all Macintosh functions to mac/mac.c.
* term.c [macintosh]: Include macterm.h.
* window.c [macintosh]: Include macterm.h.
* xdisp.c [macintosh]: Include macterm.h. Declare
set_frame_menubar and pending_menu_activation.
(echo_area_display) [macintosh]: Do not return if terminal frame
is the selected frame.
(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
Allow only the selected frame to set menu bar.
(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
calling FRAME_EXTERNAL_MENU_BAR (f).
(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
* xfaces.c [macintosh]: Include macterm.h. Define x_display_info
and check_x. Declare XCreateGC. Define x_create_gc and
x_free_gc. Initialize font_sort_order.
(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
but call x_list_fonts instead of w32_list_fonts.
(Finternal_face_x_get_resource) [macintosh]: Do not call
display_x_get_resource.
(prepare_face_for_display) [macintosh]: Set xgcv.font.
(realize_x_face) [macintosh]: Load the font if it is specified in
ATTRS.
(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
to Qt.
* cus-edit.el (custom-button-face): Use 3D look for mac.
(custom-button-pressed-face): Likewise.
* faces.el (set-face-attributes-from-resources): Handle mac frames
in the same way as x and w32 frames.
(face-valid-attribute-values): Likewise.
(read-face-attribute): Likewise.
(defined-colors): Likewise.
(color-defined-p): Likewise.
(color-values): Likewise.
(display-grayscale-p): Likewise.
(face-set-after-frame-default): Likewise.
(mode-line): Same default face as for x and w32.
(tool-bar): Likewise.
* frame.el: Remove call to frame-notice-user-settings at end of
the file.
* info.el (Info-fontify-node): make underlines invisible for mac
as for x, pc, and w32 frame types.
* term/mac-win.el: New file.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Sun, 22 Oct 2000 16:50:16 +0000 |
parents | 43566b0aec59 |
children | 001167797942 |
comparison
equal
deleted
inserted
replaced
32751:2a657a9fae69 | 32752:923b8d6d8277 |
---|---|
1108 keyboard sets up symbols that include some face names that | 1108 keyboard sets up symbols that include some face names that |
1109 the X support will want to use. This can happen when | 1109 the X support will want to use. This can happen when |
1110 CANNOT_DUMP is defined. */ | 1110 CANNOT_DUMP is defined. */ |
1111 syms_of_keyboard (); | 1111 syms_of_keyboard (); |
1112 | 1112 |
1113 #ifdef macintosh | |
1114 /* init_window_once calls make_terminal_frame which on Mac OS creates | |
1115 a full-fledge output_mac type frame. This does not work correctly | |
1116 before syms_of_textprop, syms_of_macfns, syms_of_ccl, | |
1117 syms_of_fontset, syms_of_xterm, syms_of_search, x_term_init, and | |
1118 init_keyboard have already been called. */ | |
1119 syms_of_textprop (); | |
1120 syms_of_macfns (); | |
1121 syms_of_ccl (); | |
1122 syms_of_fontset (); | |
1123 syms_of_macterm (); | |
1124 syms_of_macmenu (); | |
1125 syms_of_data (); | |
1126 syms_of_search (); | |
1127 | |
1128 x_term_init (); | |
1129 init_keyboard (); | |
1130 #endif | |
1131 | |
1113 init_window_once (); /* Init the window system */ | 1132 init_window_once (); /* Init the window system */ |
1114 init_fileio_once (); /* Must precede any path manipulation. */ | 1133 init_fileio_once (); /* Must precede any path manipulation. */ |
1115 } | 1134 } |
1116 | 1135 |
1117 init_alloc (); | 1136 init_alloc (); |
1304 if (!initialized) | 1323 if (!initialized) |
1305 { | 1324 { |
1306 /* The basic levels of Lisp must come first */ | 1325 /* The basic levels of Lisp must come first */ |
1307 /* And data must come first of all | 1326 /* And data must come first of all |
1308 for the sake of symbols like error-message */ | 1327 for the sake of symbols like error-message */ |
1328 #ifndef macintosh | |
1329 /* Called before init_window_once for Mac OS. */ | |
1309 syms_of_data (); | 1330 syms_of_data (); |
1331 #endif | |
1310 syms_of_alloc (); | 1332 syms_of_alloc (); |
1311 syms_of_lread (); | 1333 syms_of_lread (); |
1312 syms_of_print (); | 1334 syms_of_print (); |
1313 syms_of_eval (); | 1335 syms_of_eval (); |
1314 syms_of_fns (); | 1336 syms_of_fns (); |
1320 syms_of_callint (); | 1342 syms_of_callint (); |
1321 syms_of_casefiddle (); | 1343 syms_of_casefiddle (); |
1322 syms_of_casetab (); | 1344 syms_of_casetab (); |
1323 syms_of_callproc (); | 1345 syms_of_callproc (); |
1324 syms_of_category (); | 1346 syms_of_category (); |
1347 #ifndef macintosh | |
1348 /* Called before init_window_once for Mac OS. */ | |
1325 syms_of_ccl (); | 1349 syms_of_ccl (); |
1350 #endif | |
1326 syms_of_charset (); | 1351 syms_of_charset (); |
1327 syms_of_cmds (); | 1352 syms_of_cmds (); |
1328 #ifndef NO_DIR_LIBRARY | 1353 #ifndef NO_DIR_LIBRARY |
1329 syms_of_dired (); | 1354 syms_of_dired (); |
1330 #endif /* not NO_DIR_LIBRARY */ | 1355 #endif /* not NO_DIR_LIBRARY */ |
1343 syms_of_macros (); | 1368 syms_of_macros (); |
1344 syms_of_marker (); | 1369 syms_of_marker (); |
1345 syms_of_minibuf (); | 1370 syms_of_minibuf (); |
1346 syms_of_mocklisp (); | 1371 syms_of_mocklisp (); |
1347 syms_of_process (); | 1372 syms_of_process (); |
1373 #ifndef macintosh | |
1374 /* Called before init_window_once for Mac OS. */ | |
1348 syms_of_search (); | 1375 syms_of_search (); |
1376 #endif | |
1349 syms_of_frame (); | 1377 syms_of_frame (); |
1350 syms_of_syntax (); | 1378 syms_of_syntax (); |
1351 syms_of_term (); | 1379 syms_of_term (); |
1352 syms_of_undo (); | 1380 syms_of_undo (); |
1353 #ifdef HAVE_SOUND | 1381 #ifdef HAVE_SOUND |
1354 syms_of_sound (); | 1382 syms_of_sound (); |
1355 #endif | 1383 #endif |
1356 | 1384 #ifndef macintosh |
1385 /* Called before init_window_once for Mac OS. */ | |
1357 syms_of_textprop (); | 1386 syms_of_textprop (); |
1387 #endif | |
1358 syms_of_composite (); | 1388 syms_of_composite (); |
1359 #ifdef VMS | 1389 #ifdef VMS |
1360 syms_of_vmsproc (); | 1390 syms_of_vmsproc (); |
1361 #endif /* VMS */ | 1391 #endif /* VMS */ |
1362 #ifdef WINDOWSNT | 1392 #ifdef WINDOWSNT |
1372 syms_of_xselect (); | 1402 syms_of_xselect (); |
1373 #endif | 1403 #endif |
1374 #endif /* HAVE_X_WINDOWS */ | 1404 #endif /* HAVE_X_WINDOWS */ |
1375 | 1405 |
1376 #ifndef HAVE_NTGUI | 1406 #ifndef HAVE_NTGUI |
1407 #ifndef macintosh | |
1377 syms_of_xmenu (); | 1408 syms_of_xmenu (); |
1409 #endif | |
1378 #endif | 1410 #endif |
1379 | 1411 |
1380 #ifdef HAVE_NTGUI | 1412 #ifdef HAVE_NTGUI |
1381 syms_of_w32term (); | 1413 syms_of_w32term (); |
1382 syms_of_w32fns (); | 1414 syms_of_w32fns (); |
1409 #ifdef VMS | 1441 #ifdef VMS |
1410 init_vms_input ();/* init_display calls get_frame_size, that needs this */ | 1442 init_vms_input ();/* init_display calls get_frame_size, that needs this */ |
1411 #endif /* VMS */ | 1443 #endif /* VMS */ |
1412 init_display (); /* Determine terminal type. init_sys_modes uses results */ | 1444 init_display (); /* Determine terminal type. init_sys_modes uses results */ |
1413 } | 1445 } |
1446 #ifndef macintosh | |
1447 /* Called before init_window_once for Mac OS. */ | |
1414 init_keyboard (); /* This too must precede init_sys_modes */ | 1448 init_keyboard (); /* This too must precede init_sys_modes */ |
1449 #endif | |
1415 #ifdef VMS | 1450 #ifdef VMS |
1416 init_vmsproc (); /* And this too. */ | 1451 init_vmsproc (); /* And this too. */ |
1417 #endif /* VMS */ | 1452 #endif /* VMS */ |
1418 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */ | 1453 init_sys_modes (); /* Init system terminal modes (RAW or CBREAK, etc.) */ |
1419 #ifdef HAVE_X_WINDOWS | 1454 #ifdef HAVE_X_WINDOWS |