Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
[bpt/emacs.git] / mac / ChangeLog
CommitLineData
e0f712ba
AC
12002-04-13 Andrew Choi <akochoi@shaw.ca>
2
3 * Emacs.app/Contents/Info.plist: New file.
4
5 * Emacs.app/Contents/PkgInfo: New file.
6
7 * Emacs.app/Contents/Resources/English.lproj/InfoPlist.strings:
8 New file.
9
10 * cw5-mcp.xml: Remove file.
11
12 * inc/defs-cw5.h: Remove file.
13
14 * cw6-mcp.xml: Update with new version.
15
16 * mac/inc/defs-cw6.h: New constant MAC_OS8. Remove definition
17 of constant CODEWARRIOR_VERSION_6.
18
19 * mac/src/mac.c:
20 * mac/src/macmenu.c:
21 * mac/src/macterm.c:
22 Test constant __MSL__ instead of CODEWARRIOR_VERSION_6.
23
24 * src/Carbon.r: New File.
25
26 * makefile.MPW: Define MAC_OS and MAC_OS8. Update with change of
27 locations for mac.c, macfns.c, macgui.h, macmenu.c, macterm.c, and
28 macterm.h. Generate DOC from .el instead of .elc versions of
29 files listed in DONTCOMPILE in lisp/Makefile.in.
30
31 * INSTALL: Add installation instructions for Mac OS X.
32
33 * README: Add information for Mac OS X.
34
35 * src/mac.c, inc/macgui.h, src/macfns.c, src/macmenu.c,
36 src/macterm.c, inc/macterm.h: Remove from here and move to src.
37
382002-04-12 Andrew Choi <akochoi@shaw.ca>
39
40 * src/mac.c (select): Under Carbon, always return true so
41 XTread_socket is called to poll input.
42 (run_mac_command): Not implemented under Carbon.
43 (get_wd): Call PBHGetVolSync and path_from_vol_dir_name to
44 establish pathname.
45 (do_applescript): Use Carbon routines AEGetDescDatASize and
46 AEGetDescData.
47 (Fmac_paste_function): Use Carbon routines GetCurrentScrap,
48 GetScrapFlavorFlags, GetScrapFlavorSize, and GetScrapFlavorData.
49 (Fmac_cut_function): Use Carbon routines ClearCurrentScrap,
50 GetCurrentScrap, and PutScrapFlavor.
51 (Fx_selection_exists_p): Use Carbon routines GetCurrentScrap and
52 GetScrapFlavorFlags.
53
54 * src/macfns.c: Synchronize with changes in w32fns.c.
55 [MAC_OSX]: Include Carbon headers.
56 (x_real_positions): Use Carbon routine GetWindowPortBounds.
57 (x_set_scroll_bar_width): Set width of scroll bar to 16.
58 (x_make_gc): Remove static qualifier.
59
60 * src/macmenu.c: Synchronize with changes in w32menu.c.
61 [MAC_OSX]: Include Carbon headers.
62 (set_frame_menubar): Check equality of vector representation of
63 scroll bars using Fequal instead of EQ.
64 (mac_menu_show): Use Carbon routine GetWindowPort.
65 (mac_dialog): Likewise.
66 (add_menu_item): Use Carbon routines CountMenuItems,
67 EnableMenuItem, and DisableMenuItem.
68
69 * src/macterm.c: Synchronize with changes in w32term.c.
70 [MAC_OSX]: Include Carbon headers.
71 (XDrawLine): Use Carbon routine GetWindowPort.
72 (XClearArea): Likewise.
73 (XClearWindow): Use Carbon routines GetWindowPort and
74 GetWindowPortBounds.
75 (mac_draw_bitmap): Use Carbon routines GetWindowPort and
76 GetPortPixMap.
77 (mac_set_clip_rectangle): Use Carbon routine GetWindowPort.
78 (mac_reset_clipping): Use Carbon routine GetWindowPort.
79 (XFillRectangle): Likewise.
80 (mac_draw_rectangle): Likewise.
81 (mac_draw_rectangle_to_pixmap): Likewise.
82 (mac_draw_string_common): Likewise.
83 (mac_copy_area): Use Carbon routines GetWindowPort and
84 GetPortPixMap.
85 (mac_scroll_area): Use Carbon routines GetWindowPort and
86 GetQDGlobalsScreenBits.
87 (x_flush): Call Carbon routine QDFlushPortBuffer.
88 (x_update_end): Use Carbon routine GetWindowPort; call x_flush.
89 (x_draw_fringe_bitmap): Call mac_reset_clipping before returning.
90 (x_draw_image_glyph_string): Likewise.
91 (x_draw_stretch_glyph_string): Likewise.
92 (construct_mouse_click): Call Carbon routine GetWindowPort.
93 (note_mouse_movement): Call Carbon routine GetWindowPortBounds.
94 (XTmouse_position): Call Carbon routine GetWindowPort.
95 (x_scroll_bar_create): Create scroll bar with proc
96 kControlScrollBarProc.
97 (XTset_vertical_scroll_bar) [MAC_OSX]: Set width to 16.
98 (activate_scroll_bar): Call ActivateControl instead of
99 SetControlMaximum.
100 (deactivate_scroll_bar): Call DeactivateControl instead of
101 SetControlMaximum.
102 (x_scroll_bar_handle_click): Use default case for scroll
103 indicator.
104 (x_scroll_bar_report_motion): Call Carbon routine GetWindowPort.
105 (x_calc_absolute_position): Call Carbon routines GetWindowPort and
106 GetWindowPortBounds.
107 (init_font_name_table): Call Carbon Font Manager routines to
108 iterate through all fonts.
109 (XLoadQueryFont): Call Carbon routines GetPortTextFont,
110 GetPortTextSize, and GetPortTextFace.
111 (do_init_managers): Do not initialize Mac Toolbox under Carbon.
112 (is_emacs_window): New function to filter out non-Emacs windows
113 passed back by WaitNextEvent.
114 (do_mouse_moved): Call Carbon routine GetWindowPort.
115 (do_apple_menu): No apple menu handler under Carbon.
116 (do_zoom_window): Call Carbon routines GetWindowPort,
117 GetQDGlobalsScreenBits, SetWindowStandardState, and
118 GetWindowPortBounds.
119 (init_required_apple_events): Use UPP procedure type converter.
120 (main): Don't define for Carbon version.
121 (XTread_socket): Don't check interrupt_input_blocked. Don't call
122 check_alarm. Call Carbon routines GetWindowPort,
123 GetQDGlobalScreenBits, GetWindowPortBounds, and InvalWindowRect.
124 (NewMacWindow): Set making_terminal_window to 0. Call Carbon
125 routine GetWindowPort.
126 (mac_initialize): Rename from x_initialize. Use new Doc string
127 format.
128
129 * inc/macterm.h: Synchronize with changes in w32term.h.
130
131 * inc/macgui.h [MAC_OSX]: Use OpaqueWindowPtr* instead of
132 WindowPtr.
133
fa72cff4
KS
1342002-01-28 Kim F. Storm <storm@cua.dk>
135
136 * src/macterm.c (x_erase_phys_cursor): Don't erase cursor if
137 cursor row is invisible. This can happen if cursor is on top line
138 of a window, and we switch to a buffer with a header line.
139
c95eaa61 1402001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
39cf8566
PJ
141
142 * cw5-mcp.xml, cw6-mcp.xml, makefile.MPW: Remove mocklisp files.
143
4971e491
EZ
1442001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
145
146 * src/macfns.c (x_report_frame_params): Make the scroll-bar-width
147 frame parameter have a numeric value all the time.
148
c95eaa61 1492001-12-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
03f9f7ae
PJ
150
151 * COPYING: New file.
152
91175673
KS
1532001-12-06 Kim F. Storm <storm@cua.dk>
154
155 * src/macfns.c (x_report_frame_params): Return actual fringe widths.
156
6a3b752f
KS
1572001-12-01 Kim F. Storm <storm@cua.dk>
158
159 The following changes add left-fringe and right-fringe
160 frame parameters to adjust fringe widths, or remove one or
161 both fringes. See ../src/ChangeLog for details.
162
163 * inc/macterm.h: Merged changes from xterm.h.
164 * src/macterm.c: Merged changes from xterm.c.
165 * src/macfns.c: Merged changes from xfns.c.
166
c95eaa61 1672001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
98cbb9fa 168
ea904403 169 * src/macterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 170
06e8f738
KS
1712001-11-16 Kim F. Storm <storm@cua.dk>
172
173 The following changes are made to clean up the various internal
174 references to the fringes to actually use the term `fringe'.
175
176 * src/macfns.c: Use renamed symbols.
177
178 * src/macterm.c: Comment fixes. Use renamed symbols.
179 (fringe_bitmap_type): Renamed from bitmap_type.
180 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
181 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
182 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
183
184 * inc/macterm.h: Comment fixes. Use renamed symbols.
185 (fringes_extra): Renamed from flags_areas_extra.
186 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
187 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
188 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
189 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
190 (FRAME_X_LEFT_FRINGE_WIDTH): Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
191 (FRAME_X_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
192
71431a0e
GM
1932001-10-20 Gerd Moellmann <gerd@gnu.org>
194
6aa97356 195 * (Version 21.1 released.)
71431a0e 196
c0ec53ad
SM
1972001-10-11 Stefan Monnier <monnier@cs.yale.edu>
198
199 * src/macfns.c (x_create_bitmap_from_file, x_find_image_file):
200 * src/mac.c (run_mac_command): Update calls to openp.
201
9985827f
SM
2022001-10-08 Stefan Monnier <monnier@cs.yale.edu>
203
204 * src/macmenu.c (Fx_popup_menu): Use Fkeymap_prompt.
205
206 * src/macterm.c: Include keymap.h.
207 (note_mode_line_highlight): Use KEYMAPP.
208
ab952a4f
GM
2092001-10-05 Gerd Moellmann <gerd@gnu.org>
210
211 * Branch for 21.1.
c0ec53ad 212
3b6944ed
AC
2132001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
214
3428f2c4
AC
215 * src/macmenu.c (mac_menu_show): Use refcon of selected menu item.
216
1305f1a7
AC
217 * src/macterm.c (XTread_socket): Read all pending events in the
218 event queue instead of one.
2f64cf3a
AC
219 (mac_to_x_fontname): Return name with jisx0201.1976-0 encoding if
220 a script code of -smJapanese is specified.
221 (x_font_name_to_mac_font_name): Also recognize the jisx0201.1976-0
222 encoding.
223 (init_font_name_table): Use a script code of -smJapanese instead
224 of smRoman for the second entry of a Japanese font.
225 (XLoadQueryFont): Recognize a font as having the smRoman script
226 code if its encoding is jisx0201.1976-0.
9985827f 227
9f1821c7
AC
228 * makefile.MPW: Generate etc/DOC file from .elc files instead of
229 .el files.
230
3b6944ed
AC
231 * src/mac.c (stat): Don't fail for aliases.
232 (sys_open) [__MRC__]: Set file creator and type for newly-created
233 files.
bc04fb2c
AC
234 (sleep) [__MRC__]: Place loop around WaitNextEvent to check time
235 elapsed instead of use WaitNextEvent call as a delay.
9985827f 236
199f9270
AC
2372001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
238
239 * src/macterm.c (init_font_name_table): Add an additional entry to
240 the font table with the script code smRoman for each Apple
241 Japanese font.
242 (XLoadQueryFont): Recognize a font as having the smRoman script
243 code even when FontToScript returns smJapanese if it is one of
244 those created above.
245
f9e25d0c
AC
2462001-08-21 Andrew Choi <akochoi@cse.cuhk.edu.hk>
247
67e2eec4
AC
248 * INSTALL: Add to the note on using -opt speed in MPW the function
249 macterm.c (x_draw_hollow_cursor).
250
f9e25d0c
AC
251 * src/macterm.c (mac_scroll_area): Call CopyBits with local
252 coordinates and portBits instead of global coordinates and
253 screenBits. Set fore color and back color to black and white,
254 respectively, before calling CopyBits.
255
256 * src/macterm.c (local_to_global_coord): Comment out.
257
60fe1161
AC
258 * src/mac.c (mac-filename-to-unix): Change to
259 mac-file-name-to-posix.
260 (unix-filename-to-mac): Change to posix-file-name-to-mac.
261 (mac_to_unix_pathname): Change to mac_to_posix_pathname.
262 (unix_to_mac_pathname): Change to posix_to_mac_pathname.
263
264 * src/macterm.c (do_ae_open_documents): Change call to
265 mac_to_unix_pathname to mac_to_posix_pathname.
266
11c78113
AC
2672001-07-26 Andrew Choi <akochoi@i-cable.com>
268
269 * inc/macterm.h (x_display_list): Declare extern.
270
c95eaa61 2712001-07-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
cdfc07dd
PJ
272
273 * src/macterm.c (xim_open_dpy): Fix typo.
274
649b3fbc
AC
2752001-06-26 Andrew Choi <akochoi@i-cable.com>
276
277 * README: Change references to SourceForge site to
278 ftp://ftp.gnu.org/gnu/mac/emacs/.
279
7644c605
GM
2802001-05-15 Gerd Moellmann <gerd@gnu.org>
281
282 * src/macterm.c (clear_mouse_face): Check for nil tip_frame.
283
fa0b4c14
AC
2842001-05-15 Andrew Choi <akochoi@i-cable.com>
285
286 * src/Emacs.r: Change About box message.
287
288 * makefile.MPW: Add md5.c.x to EmacsObjects.
289
290 * src/mac.c (select): Call WaitNextEvent instead of Delay.
291 (pause): Ditto.
292 (sleep): Ditto.
293
294 * src/macterm.c (do_app_resume): Set cursor to arrow.
295 (clear_mouse_face): check for NIL Lisp object instead of null
296 pointer.
297
298 * INSTALL: Delete note on compiling Lisp files on a Unix system.
299 Add note on turning off end of line conversion.
300
2e875e36
AC
3012001-02-27 Andrew Choi <akochoi@i-cable.com>
302
303 * src/macfns.c: Rename everything containing *busy_cursor* and
304 similar to *hourglass*.
305 Change IMAGE_POSITIVE_INTEGER_VALUE to
306 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR throughout.
307 (x_set_font): If font hasn't changed, avoid recomputing faces and
308 other things, as in xfns.c.
309 (Qcancel_timer): New variable.
310 (syms_of_macfns): Rename x-busy-pointer-shape to
311 x-hourglass-pointer-shape, display-busy-cursor to
312 display-hourglass, busy-cursor-delay to hourglass-delay, as in
313 xfns.c.
314 (x_set_tool_bar_lines): Modify as in xfns.c
315 (x_change_window_heights): New function.
316
317 * inc/macterm.h (struct x_output): Rename busy_cursor to
318 hourglass_cursor, busy_window to hourglass_window, busy_p to
319 hourglass_p, as in xterm.h.
320
321 * src/macmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
322 safe_run_hooks, as in xmenu.c.
323
324 * src/macterm.c (do_check_ram_size): New function.
325
326 * src/Emacs.r: Add ALRT resource #129 for alert when there is over
327 256 MB RAM.
328
b6955da2
AC
3292001-02-20 Andrew Choi <akochoi@i-cable.com>
330
331 * mac/INSTALL:
332 * mac/README:
333 * mac/cw5-mcp.xml:
334 * mac/cw6-mcp.xml:
335 * mac/inc/alloca.h:
336 * mac/inc/defs-cw5.h:
337 * mac/inc/defs-cw6.h: Added copyright notice.
338
83a96b4d
AC
3392001-01-28 Andrew Choi <akochoi@i-cable.com>
340
b179a3a2
AC
341 * src/macterm.c (mac_font_pattern_match): Allocate three more
342 bytes to regex for '^', '$', and '\0'.
343
344 * src/macterm.c (x_list_fonts): Protect pattern and newlist from
345 garbage collection.
346
83a96b4d
AC
347 * src/macfns.c (QCconversion): Replaces QCalgorithm.
348
349 * src/macfns.c (image_ascent, lookup_image): Adapt to change of
350 image margins.
351
352 * src/macterm.c (x_produce_image_glyph, x_draw_image_foreground)
353 (x_draw_image_relief, x_draw_image_foreground_1)
354 (x_draw_image_glyph_string): Adapt to change of image margins.
355
356 * src/macterm.c (mac_to_x_fontname): Change charset name of
357 Simplify Chinese fonts from gb2312 to gb2312.1980 and Korean fonts
358 from ksc5601 to ksc5601.1989.
359
ec5c5684
AC
3602000-12-12 Andrew Choi <akochoi@i-cable.com>
361
8165bf03
AC
362 * cw5-mcp.xml: add md5.c to project.
363
364 * cw6-mcp.xml: add md5.c to project.
365
ec5c5684
AC
366 * src/macfns.c (x_create_tip_frame, Fx_hide_tip): change to handle
367 Lisp_Object type tip_frame (was struct frame *) as in xfns.c.
368
c1e279c2
AC
3692000-11-26 Andrew Choi <akochoi@i-cable.com>
370
371 * src/macterm.c (x_handle_tool_bar_click):
372 (note_tool_bar_highlight): change references to members deleted
373 from struct frame as in xterm.c.
374
375 * inc/epaths.h: set PATH_EXEC to ~emacs/mac instead of
376 ~emacs/mac/bin.
377
2d7d0390
AC
3782000-10-25 Andrew Choi <akochoi@i-cable.com>
379
380 * cw5-mcp.xml: renamed from emacs-cw5.mcp.xml.
381
382 * cw6-mcp.xml: renamed from emacs-cw6.mcp.xml.
383
384 * inc/defs-cw5.h: renamed from inc/cmdline-defs-cw5.h.
385
386 * inc/defs-cw6.h: renamed from inc/cmdline-defs-cw6.h.
387
eff8b78d 3882000-10-24 Andrew Choi <akochoi@i-cable.com>
8f47302e
AC
389
390 * src/macterm.c (XTread_socket): check whether Lisp variable
391 mac-ready-for-drag-n-drop is bound rather than non-nil value.
392
1a578e9b
AC
3932000-10-20 Andrew Choi <akochoi@users.sourceforge.net>
394
395 * INSTALL: New file.
396
397 * README: New file.
398
399 * TODO: New file.
400
401 * emacs-cw5.mcp.xml: New file.
402
403 * emacs-cw6.mcp.xml: New file.
404
405 * makefile.MPW: New file.
406
407 * inc/alloca.h: New file.
408
409 * inc/cmdline-defs-cw5.h: New file.
410
411 * inc/cmdline-defs-cw6.h: New file.
412
413 * inc/config.h: New file.
414
415 * inc/dirent.h: New file.
416
417 * inc/epaths.h: New file.
418
419 * inc/m-mac.h: New file.
420
421 * inc/macgui.h: New file.
422
423 * inc/macterm.h: New file.
424
425 * inc/pwd.h: New file.
426
427 * inc/s-mac.h: New file.
428
429 * inc/termio.h: New file.
430
431 * inc/utime.h: New file.
432
433 * inc/utsname.h: New file.
434
435 * inc/sys/file.h: New file.
436
437 * inc/sys/ioctl.h: New file.
438
439 * inc/sys/param.h: New file.
440
441 * inc/sys/stat.h: New file.
442
443 * inc/sys/time.h: New file.
444
445 * inc/sys/types.h: New file.
446
447 * src/Emacs.r: New file.
448
449 * src/EmacsMPW.r: New file.
450
451 * src/chdir.c: New file.
452
453 * src/mac.c: New file.
454
455 * src/macfns.c: New file.
456
457 * src/macmenu.c: New file.
458
459 * src/macterm.c: New file.
2a34a036 460
c95eaa61
PJ
461;; Local Variables:
462;; coding: iso-2022-7bit-unix
463;; End:
464
2a34a036
GM
465 Copyright (C) 2001 Free Software Foundation, Inc.
466 Copying and distribution of this file, with or without modification,
467 are permitted provided the copyright notice and this notice are preserved.