(add_to_log): Use SAFE_ALLOCA.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5c917f98
KS
12004-06-21 Kim F. Storm <storm@cua.dk>
2
3 * lisp.h (MAX_ALLOCA): Define here.
4 (safe_alloca_unwind): Add prototype.
5 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6
7 * alloc.c (safe_alloca_unwind): New function.
8
9 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10
11 * charset.c (Fstring): Use SAFE_ALLOCA.
12
13 * coding.c (MAX_ALLOCA): Remove define.
14
15 * data.c (MAX_ALLOCA): Remove define.
16 (Faset): Use SAFE_ALLOCA.
17
18 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
19
20 * fns.c (string_make_multibyte, string_to_multibyte)
21 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
22 (MAX_ALLOCA): Remove define.
23 (Fbase64_encode_region, Fbase64_encode_string)
24 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
25 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
26 memory leak if encoding fails.
27
28 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
29
9a09408e
EZ
302004-06-21 Eli Zaretskii <eliz@gnu.org>
31
32 * print.c (Fwith_output_to_temp_buffer): Doc fix.
33
376de739
RS
342004-06-20 Richard M. Stallman <rms@gnu.org>
35
36 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
37
38 * search.c (match_limit): Cleaner err msg when no match data available.
39
40 * window.c (syms_of_window): Doc fix.
41
42 * keyboard.c (command_loop_1): Handle values `only' and `identity'
43 for Vtransient_mark_mode.
44
45 * buffer.c (syms_of_buffer): Doc fix.
46
acd81db9
DK
472004-06-21 David Kastrup <dak@gnu.org>
48
49 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
50 and unbinding of `case-fold-search' according to
51 `completion-ignore-case' around calls of string-match and
52 predicates, respectively. Should give satisfactory performance
53 in all relevant cases.
54
f303762d
JD
552004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
56
95911c74
JD
57 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
58 clip_x/y_origin.
59
a6cb6b78
JD
60 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
61
f303762d
JD
62 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
63
64 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
65 on Mac OSX.
66
bbdb2684
LT
672004-06-16 Luc Teirlinck <teirllm@auburn.edu>
68
69 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
70
5ea48b1c
KS
712004-06-16 Kim F. Storm <storm@cua.dk>
72
73 * dispextern.h (Vimage_types): Remove extern.
74
803aac3e
MB
752004-06-16 Miles Bader <miles@gnu.org>
76
77 * image.c (lookup_image_type): Initialize image type if necessary.
78
cdc97764
KS
792004-06-15 Kim F. Storm <storm@cua.dk>
80
c4a5739c
KS
81 * xdisp.c (try_cursor_movement): Exclude header line from scroll
82 margin at top of window.
83 (try_window_reusing_current_matrix): Calculate proper cursor position
84 after scrolling up with non-zero scroll margin, as the old cursor
85 position corresponds to value of PT before executing this command.
86 (try_window_id): Consider scroll margin at bottom of window too;
87 otherwise we fail to scroll when hl-line-mode is enabled.
88
cdc97764
KS
89 * syntax.c (skip_chars): Only recognize [:class:] when it has the
90 proper format and class is a lower-case word.
91
5b166323
JD
922004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
93
94 * gtkutil.c (xg_get_image_for_pixmap): New function.
95 (xg_get_gdk_pixmap_and_mask): Removed.
96 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
97 xg_get_gdk_pixmap_and_mask.
cdc97764 98
5b166323
JD
99 * xterm.h (struct x_display_info): Typo in comment fixed.
100
1ebd4f78
JB
1012004-06-14 Juanma Barranquero <lektu@terra.es>
102
103 * dispextern.h (Vimage_types): Make it conditional on
104 HAVE_WINDOW_SYSTEM.
105
106 * image.c (Vimage_types): Move from xdisp.c.
107 (Vimage_type_cache): New variable.
108 (define_image_type): New argument indicating whether an image
109 library was loaded; cache loaded status and return t on success,
110 nil otherwise.
111 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
112 (w32_delayed_load): New function to load an image library from a
113 list of possible filenames.
114 (init_xpm_functions, init_png_functions, init_jpeg_functions)
115 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
116 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new
117 argument.
118 (Finit_image_library): New function, extracted from `init_image'.
119 Try to initialize an image library on demand and cache whether we
120 were successful or not.
121 (syms_of_image): Initialize `Vimage_types' and
122 `Vimage_type_cache'. Add recognized image types to Vimage_types.
123 Export `init-image-library'.
124 (init_image): Remove initialization of all image types, except xbm
125 and pbm.
126
127 * xdisp.c (Vimage_types): Delete (moved to image.c).
128
904ee128
AS
1292004-06-14 Andreas Schwab <schwab@suse.de>
130
131 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
132 Avoid calling specbind when completion-regexp-list is empty.
133
092de21d
RS
1342004-06-13 Richard M. Stallman <rms@gnu.org>
135
136 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
137 (re_wctype, re_iswctype, re_wctype_to_bit):
138 Non-function definitions moved here from regex.c.
1ebd4f78 139
092de21d
RS
140 * regex.c (re_wctype, re_iswctype): Function defs longer static.
141 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
142 (re_wctype, re_iswctype, re_wctype_to_bit):
143 Non-function definitions moved to regex.h.
144
145 * window.c (Fselect_window): Doc fix.
146
147 * syntax.c: Include regex.h.
148 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
149 If requested, make a list of classes, then check the scanned
150 chars for membership in them.
151 (in_classes): New function.
152 Doc fix.
153
154 * keyboard.c (cmd_error): Don't call any_kboard_state
155 if inside a recursive edit level.
156
1572004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
158
159 * keyboard.c (command_loop): Call any_kboard_state before
160 command_loop_2 when at top level.
161
3ebc0939
AS
1622004-06-13 Andreas Schwab <schwab@suse.de>
163
cea5d0d4
AS
164 * print.c (print_object): Always use %ld for printing EMACS_INT.
165
166 * keyboard.c (cancel_hourglass_unwind): Return a value.
167 (modify_event_symbol): Always use %ld for printing EMACS_INT.
168 (Fexecute_extended_command): Likewise.
169
170 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
171 avoid clashes.
172 (SYNTAX): Likewise.
173 (SYNTAX_WITH_FLAGS): Likewise.
174 (SYNTAX_MATCH): Likewise.
175
176 * syntax.c (char_quoted): Avoid warning about undefined operation.
177 (find_defun_start): Likewise.
178 (scan_lists): Likewise.
179 (INC_FROM): Likewise.
180 (scan_sexps_forward): Likewise.
181
be8c4ce4
AS
182 * image.c: Include <ctype.h>.
183
3ebc0939
AS
184 * xfaces.c (face_attr_equal_p): Declare parameters.
185
6fb41b5b
KH
1862004-06-13 Kenichi Handa <handa@m17n.org>
187
188 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
189
fc3095ce
EZ
1902004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
191
192 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
193
66189a40
KH
1942004-06-12 Kenichi Handa <handa@m17n.org>
195
196 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
197 ccl_prog_stack_struct and update it.
198 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
199 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
200 ccl->eof_ic on EOF.
201 (ccl_debug_hook): New function.
202 (struct ccl_prog_stack): New member eof_ic.
203 (ccl_driver): Handle EOF in subrountine call correctly.
204
2052004-06-11 Kenichi Handa <handa@m17n.org>
206
207 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
208
1da71023
KS
2092004-06-11 Kim F. Storm <storm@cua.dk>
210
211 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
212
e9efcef4
JB
2132004-06-11 Juanma Barranquero <lektu@terra.es>
214
215 * keyboard.c (Fposn_at_point): Doc fix.
216
9b9ceb61
DK
2172004-06-11 David Kastrup <dak@gnu.org>
218
219 * search.c (match_limit): Don't flag an error if match-data
220 exceeding the allocated search_regs.num_regs gets requested, just
221 return Qnil.
222
6e87ac8f
MB
2232004-06-08 Miles Bader <miles@gnu.org>
224
225 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
226
0b0dea7b
JB
2272004-06-07 Juanma Barranquero <lektu@terra.es>
228
229 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
230 (Fcurrent_time_string, Fcurrent_time_zone)
231 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
232
a0a23346
MB
2332004-06-07 Miles Bader <miles@gnu.org>
234
08384afd 235 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
236 (push_named_merge_point): New function.
237 (merge_named_face): New function.
238 (merge_face_ref, face_at_buffer_position, face_at_string_position):
239 Use `merge_named_face'.
240 (merge_face_inheritance): Function removed.
241 (merge_face_ref): Renamed from `merge_face_vector_with_property'.
242 Add new `err_msgs' and `named_merge_points' args. Return error
243 status. Only print error messages if ERR_MSGS is true. Don't try to
244 do :inherit attribute validation.
245 (merge_face_heights): Handle `unspecified' in both directions.
246 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
247 Call `merge_face_ref' instead of `merge_face_inheritance'.
248 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
249 (compute_char_face, face_at_buffer_position)
250 (face_at_string_position): Call `merge_face_ref' instead of
251 `merge_face_vector_with_property'.
252
12d5b185
KH
2532004-06-07 Kenichi Handa <handa@m17n.org>
254
255 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
256 the necessary places.
257
2e2d7ee6
KS
2582004-06-07 Kim F. Storm <storm@cua.dk>
259
260 * process.c (Fdelete_process): Undo 2004-05-28 change.
261 Instead, call status_notify also for network process.
262 (status_message): Use process instead of status as arg.
263 Give messages "deleted" or "connection broken by remote peer" for
264 an exited network process.
265 (status_notify): Change call to status_message.
266 (read_process_output): Increase readmax to 4096. Do not increase
267 buffer size for datagram channels (default is now large enough).
268
fcf0d299
ST
2692004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
270
271 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
272 problem due to newly defined variable.
273
0722292b
MB
2742004-06-06 Miles Bader <miles@gnu.org>
275
276 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
277 immediately if non-interactive or not initialized.
278
ddfb8369
RS
2792004-06-05 Richard M. Stallman <rms@gnu.org>
280
281 * minibuf.c (Fcompleting_read): Doc fix.
282
57015754
AS
2832004-06-05 Andreas Schwab <schwab@suse.de>
284
285 * macfns.c (x_create_tip_frame): Fix declaration after statement.
286
23715ea6
JB
2872004-06-05 Juanma Barranquero <lektu@terra.es>
288
289 * keymap.c (Fdescribe_vector): Fix docstring.
290 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
291
8e330b22
MB
2922004-06-05 Miles Bader <miles@gnu.org>
293
294 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
295 attributes have different values than the default face.
296
9742a3a6
EZ
2972004-06-04 Eli Zaretskii <eliz@gnu.org>
298
299 * xfaces.c (x_supports_face_attributes_p): Make this function
300 conditional on HAVE_WINDOW_SYSTEM.
301 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]: Don't
302 call x_supports_face_attributes_p if it was not compiled in.
303
9717e36c
MB
3042004-06-04 Miles Bader <miles@gnu.org>
305
306 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
307 from Ftty_supports_face_attributes_p.
308 (x_supports_face_attributes_p): New function.
309 (Ftty_supports_face_attributes_p): Function deleted.
310 (Fdisplay_supports_face_attributes_p): New function.
311 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 312 (face_attr_equal_p): New function.
9717e36c
MB
313 (lface_equal_p): Use it.
314
52deb19f
JB
3152004-06-03 Juanma Barranquero <lektu@terra.es>
316
317 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
318 (Vw32_color_map): Fix typo in docstring.
319 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
320 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
321 Make argument names match their use in docstring.
322
86d373e6
JB
3232004-06-02 Juanma Barranquero <lektu@terra.es>
324
325 Work around bugs/problems with MinGW builds of graphics libraries
326 called from MSVC builds of Emacs.
327
328 * image.c (lookup_image): Make pointer to img static.
329 (png_read_from_memory): Disable "global" optimization.
330
2fb0ce67
SM
3312004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
332
333 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
334
50bf7673
ST
3352004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
336
337 * macfns.c: Don't include ccl.h.
338 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
339 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
340 TextUtils.h.
341 (Fx_create_frame): Sync with xfns.c. Initialize cursor
342 descriptors.
50bf7673
ST
343 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
344 display height/width.
345 (compute_tip_xy, Vx_max_tooltip_size): Declare.
346 (unwind_create_tip_frame, compute_tip_xy): New functions.
347 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
348 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
349 and last_show_tip_args.
2fb0ce67 350
50bf7673
ST
351 * macgui.h [!MAC_OSX]: Include Gestalt.h.
352 (Cursor, No_Cursor): New defines.
86d373e6
JB
353 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility
354 macro.
50bf7673
ST
355 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
356
357 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
358
359 * macterm.c: Don't include Gestalt.h.
360 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
361 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
362 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
363 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
364 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
365 (construct_mouse_click, XTmouse_position)
366 (x_scroll_bar_report_motion, x_calc_absolute_position)
367 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
368 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
369 (note_mouse_movement): Clear the mouse face and reset the pointer
370 shape when the pointer goes outside the frame without grabbing.
371 (mac_front_window): New function.
372 (mac_window_to_frame): New macro.
373 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
374 (do_window_activate, do_window_deactivate, do_app_resume)
375 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
376 (do_zoom_window, mac_do_receive_drag, XTread_socket)
377 (mac_check_for_quit_char): Use mac_front_window and/or
378 mac_window_to_frame.
379 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
380 scroll-bar click event.
381 (mac_define_frame_cursor): Change the pointer shape.
86d373e6
JB
382 (x_free_frame_resources): Reset tip_window to NULL when it is
383 disposed.
50bf7673 384 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
86d373e6
JB
385 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize
386 arrow_cursor.
50bf7673
ST
387 (do_window_update): Don't do anything if the updated window is the
388 tooltip window.
389 (do_mouse_moved): Handle mouse movement events here (previously in
390 XTread_socket). Clear the mouse face if
391 dpyinfo->mouse_face_hidden is set.
392 (do_os_event, do_events): Remove (now in XTread_socket).
393 (XTread_socket): Immediately return if interrupt_input_blocked.
86d373e6
JB
394 Loop until all the events in the queue are processed. Rearrange
395 codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
396 contents of do_os_event and do_events. Remove mouse movement
397 handling (now in do_mouse_moved). Add the case where
398 Vmouse_highlight has an integer value.
399 (NewMacWindow): Remove.
400 (make_mac_frame): Do what NewMacWindow previously did. Don't do
401 excess initializations.
402 (make_mac_terminal_frame): Previous initializations in
403 make_mac_frame are moved here.
86d373e6
JB
404 (mac_initialize_display_info): Initialize
405 dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
406
407 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
408 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
409
08fd1251
RS
4102004-05-29 Richard M. Stallman <rms@gnu.org>
411
412 * lisp.h (truncate_undo_list): Update decl.
413
414 * alloc.c (undo_outer_limit): New variable.
415 (syms_of_alloc): Defvar it.
416 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
417
418 * undo.c (truncate_undo_list): New arg LIMITSIZE.
419
420 * alloc.c (lisp_align_malloc): Check for base == 0
421 regardless of HAVE_POSIX_MEMALIGN.
422 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
423
227ef0ff
SM
4242004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
427 (marker_blocks_pending_free): Remove.
428 (Fgarbage_collect): Sweep after cleaning up undo-lists.
429 Mark the undo lists after claning them up.
430 Don't free block in marker_blocks_pending_free.
431 (mark_buffer): Don't mark undo_list.
432 (gc_sweep): Sweep hash-tables and strings first.
433 Do free marker blocks that are empty.
434
034a6113
SM
4352004-05-28 Jim Blandy <jimb@redhat.com>
436
437 * regex.c (print_partial_compiled_pattern): Add missing 'break'
438 after 'case wordend'. For symbeg and symend, print to stderr,
439 like the other cases.
440
33594a8d
NF
4412004-05-28 Noah Friedman <friedman@splode.com>
442
443 * process.c (Fdelete_process): Do not call remove_process.
444
ce50a847
SM
4452004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
446
447 * alloc.c (struct backtrace): Remove.
448 (Fgarbage_collect): Use the new mark_backtrace.
449
450 * eval.c (mark_backtrace): New function.
451
452 * minibuf.c (run_exit_minibuf_hook): New function.
453 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
454 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
455
1e8dae36
KS
4562004-05-27 Kim F. Storm <storm@cua.dk>
457
458 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
459 over display properties, e.g. images, that replace buffer text.
460
846faa3b
KS
4612004-05-25 Kim F. Storm <storm@cua.dk>
462
463 * alloc.c (marker_blocks_pending_free): New var.
464 (gc_sweep): Store free marker blocks on that list.
465 (Fgarbage_collect): Free them after undo-list cleanup.
466
467 * process.c (wait_reading_process_input): Check connect_wait_mask
468 before actually accepting connection in case it has already been
469 accepted due to recursion.
470
6239a668
KH
4712004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
472
ce50a847
SM
473 * coding.c (Fset_safe_terminal_coding_system_internal):
474 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 475
71d5a208
RS
4762004-05-22 Richard M. Stallman <rms@gnu.org>
477
478 * alloc.c (Fmake_string): Doc fix.
479
480 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
481 and the alist pairs too.
482
483 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
484
485 * emacs.c (main): Update copyright year.
486
487 * fileio.c (Fread_file_name): Expand DIR if not absolute.
488
489 * insdel.c (del_range_2, replace_range): Don't write an anchor
490 if the gap is empty.
491
492 * xdisp.c (try_scrolling): If scroll-up-aggressively or
493 scroll-down-aggressively is small but positive, put point
494 near the screen edge.
495
f63fd14e
JB
4962004-05-22 Juanma Barranquero <lektu@terra.es>
497
498 * keymap.c (Fdefine_key): Doc fix.
499
4d12067c
KS
5002004-05-22 Kim F. Storm <storm@cua.dk>
501
502 * alloc.c (struct backtrace): Add debug_on_exit member.
503 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
504 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
505 the removed cons cells.
506 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
507 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
508 any cons cells pointing to unallocated stings.
509 Do not lisp_free any marker blocks, as there may still be pointers
510 to them from buffer undo lists at this stage of GC.
511
512 * keyboard.c (struct backtrace): Add debug_on_exit member.
513 (Fcommand_execute): Clear it.
514
931285e2
LT
5152004-05-20 Luc Teirlinck <teirllm@auburn.edu>
516
517 * intervals.c (lookup_char_property): Do not prematurely return nil.
518
669fa600
SM
5192004-05-19 Jim Blandy <jimb@redhat.com>
520
521 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 522 beginning and end of symbols.
4d12067c 523
669fa600
SM
524 * regex.c (enum syntaxcode): Add Ssymbol.
525 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
526 (re_opcode_t): New opcodes `symbeg' and `symend'.
527 (print_partial_compiled_pattern): Print the new opcodes properly.
528 (regex_compile): Parse the new operators.
ce50a847 529 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
530 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
531 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
532 (re_match_2_internal): Match symbeg and symend.
533
534 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
535
0d8c2e5c
KS
5362004-05-19 Kim F. Storm <storm@cua.dk>
537
538 * .gdbinit (xsymbol): Fix last change.
539
669fa600
SM
5402004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
541
542 * .gdbinit (xprintstr): New fun.
543 (xstring, xprintsym): Use it.
544
545 * w32proc.c (create_child): Use INTMASK.
546
547 * alloc.c (Fgarbage_collect): Do all the marking before flushing
548 unmarked elements of the undo list.
549
9a6a4c40
DP
5502004-05-18 David Ponce <david@dponce.com>
551
552 * print.c (print): Reset print_depth before to call print_object.
553
f3c4ec74
JR
5542004-05-18 Jason Rumney <jasonr@gnu.org>
555
556 * w32console.c: Prefix RIF functions with w32con_ to avoid
557 namespace clash with functions in term.c and w32term.c.
558
559 * w32menu.c (add_menu_item, w32_menu_display_help)
560 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
561
0d8c2e5c 562 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 563
6be49c3a
EZ
5642004-05-18 Eli Zaretskii <eliz@gnu.org>
565
4d0b9a0a
EZ
566 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
567
6be49c3a
EZ
568 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
569 with make_number.
570 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
571 with XINT.
572
0bc90bba
KS
5732004-05-18 Kim F. Storm <storm@cua.dk>
574
89d19988
KS
575 * blockinput.h (INPUT_BLOCKED_P): New macros.
576
577 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
578 (Ftop_level): Unblock input if blocked.
579
0bc90bba
KS
580 * buffer.h (GET_OVERLAYS_AT): New macro.
581 * msdos.c (IT_note_mouse_highlight): Use it.
582 * textprop.c (get_char_property_and_overlay): Use it.
583 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
584 * xfaces.c (face_at_buffer_position): Use it.
585
586 * print.c (print_object): Increase buf size.
587
653bd0f6
JR
5882004-05-17 Jason Rumney <jasonr@gnu.org>
589
590 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
591 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
592 Lisp_Object using i member.
593 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
594 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
595 consistently.
596
597 * w32proc.c (create_child): Use make_number instead of masking pid.
598
599 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
600 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
601 Use EQ to compare Lisp_Objects.
602 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
603
604 * w32term.c (w32_num_mouse_buttons): Rename from
605 Vw32_num_mouse_buttons and make it an int.
606
607 * w32.c (init_environment): Use it.
608
609 * w32fns.c (w32_wnd_proc): Likewise.
610
611 * w32proc.c (w32_pipe_read_delay): Rename from
612 Vw32_pipe_read_delay and make it an int.
613
614 * w32.c (_sys_read_ahead): Use it.
615
616 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
617
618 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
619
620 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
621 (key_event): Don't mix Lisp_Object and int.
622
623 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
624
625 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
626 modifiers in language change event.
627
54b53ba7
KS
6282004-05-17 Kim F. Storm <storm@cua.dk>
629
630 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
631 Such objects may be freed markers which still exist on an undo list.
632
6e86a75d
JB
6332004-05-16 Juanma Barranquero <lektu@terra.es>
634
635 * data.c (Fset_default): Make argument names match their use in
636 docstring.
637
fc80da24
AS
6382004-05-15 Andreas Schwab <schwab@suse.de>
639
640 * emacs.c (gdb_array_mark_flag): Define.
641 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
642
c1380aa6
EZ
6432004-05-15 Eli Zaretskii <eliz@gnu.org>
644
645 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
646 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
647 defined for the MS-DOS build.
648
89458937
SM
6492004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
650
651 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
652
08020f9a
KH
6532004-05-14 Kenichi Handa <handa@m17n.org>
654
655 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
656
a433994a
ST
6572004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658
659 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
660 section to frame.c section.
661 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 662 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 663
a433994a 664 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 665
a433994a 666 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 667
a433994a
ST
668 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
669 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
670 (XTread_socket): Fix int/Lisp_Object mixup.
671 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 672
a433994a
ST
673 * macterm.h (struct frame, struct face, struct image)
674 (display_x_get_resource, Fx_display_color_p)
89458937
SM
675 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
676 Add prototypes.
a433994a 677
b51a51b9
KS
6782004-05-14 Kim F. Storm <storm@cua.dk>
679
680 * process.c (wait_reading_process_input): Make reentrant.
681 Make Available and Connecting non-static. Save and restore value
682 of waiting_for_user_input_p.
683
2bde1dd8
KS
6842004-05-13 Kim F. Storm <storm@cua.dk>
685
686 * keyboard.c (mark_kboards): Don't mark x and y members
687 that are overloaded in selection request events.
688
a267ab4d
SM
6892004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
692
eb15ce9e
GM
6932004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
694
695 * window.c (Fdisplay_buffer, Fsplit_window)
696 (split-height-threshold): Doc fix.
697
7fc92635
JB
6982004-05-13 Juanma Barranquero <lektu@terra.es>
699
700 * xfaces.c (Ftty_supports_face_attributes_p)
701 (Finternal_copy_lisp_face): Fix typo in docstring.
702 (Finternal_get_lisp_face_attribute): Fix docstring.
703
1ec2a572
JD
7042004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
705
706 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
707
ae9292e0
ST
7082004-05-11 Steven Tamm <steventamm@mac.com>
709
710 * macfns.c (Fx_create_frame): Default to using tool-bar by
711 setting tool-bar-lines to 1 in default-frame-alist.
712
7132004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
714
715 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
716 (xpm_get_color_table_v, xpm_make_color_table_h)
717 (xpm_put_color_table_h, xpm_get_color_table_h)
718 (xpm_str_to_color_key, xpm_load_image, xpm_load)
719 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 720 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 721
fe97e8df
ST
7222004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
723
a267ab4d 724 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
725 instead of FRAME_X_P
726
b47e779e
KS
7272004-05-11 Kim F. Storm <storm@cua.dk>
728
729 * process.c (read_process_output): Grow decoding_buf when needed;
730 this could cause a crash in allocate_string and compact_small_strings.
731
cdc9b845
EZ
7322004-04-29 Jim Blandy <jimb@redhat.com>
733
734 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
735 against proper opcode.
736
aa7094ba
JB
7372004-05-10 Juanma Barranquero <lektu@terra.es>
738
739 * process.c (Fstart_process): Fix docstring.
740
741 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
742 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
743 (Fsplit_char, Fchar_charset): Make argument names match their use
744 in docstring.
745
e109331a
RS
7462004-05-10 Richard M. Stallman <rms@gnu.org>
747
748 * print.c (print_preprocess): Use being_printed, loop_count and
749 halftail to detect overdeep nesting and cyclic cdr chains.
750
9a28b921
AS
7512004-05-10 Andreas Schwab <schwab@suse.de>
752
753 * lisp.h: Declare Fmake_symbolic_link.
754
755 * fileio.c (Frename_file): Remove extra argument in call to
756 Fmake_symbolic_link.
757
e2c02c1a
KS
7582004-05-10 Kim F. Storm <storm@cua.dk>
759
760 * xdisp.c (calc_line_height_property): Use string position when
761 object is a string.
762
cfe9d13e
KH
7632004-05-10 Kenichi Handa <handa@m17n.org>
764
a57e8159
KH
765 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
766 inhibit-modification-hooks to t temporarily before calling
767 Ferase_buffer.
768
769 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
770 inhibit-modification-hooks to t temporarily before calling
771 Ferase_buffer.
772
773 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
774 inhibit-modification-hooks to t temporarily before calling
775 Ferase_buffer.
776
cfe9d13e
KH
777 * fns.c (count_combining): Delete it.
778 (concat): Don't check combining bytes.
779
ceb96489
JR
7802004-05-09 Jason Rumney <jasonr@gnu.org>
781
782 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
783 (globals_of_w32fns): Set it.
784
b1c661c7
JB
7852004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
786
787 * data.c (Fquo): Simplify.
788
28712a21
JB
7892004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
790
791 * data.c (Fquo): If any argument is float, do the computation in
792 floating point.
793
0f0af7a8
JB
7942004-05-08 Juanma Barranquero <lektu@terra.es>
795
88214ef6
JB
796 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
797 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
798 Fix spelling of Emacs on docstring.
799 (Fset_process_coding_system, Fprocess_coding_system)
800 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
801 Make argument names match their use in docstring.
802 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
803 Fix docstring.
804
0f0af7a8
JB
805 * editfns.c (Finsert_buffer_substring): Make argument names match their
806 use in docstring.
807
808 * syntax.c (Fmodify_syntax_entry): Fix docstring.
809
2a316a84
ST
8102004-05-07 Steven Tamm <steventamm@mac.com>
811
812 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
813 around call to ReceiveEvent to avoid certain crashes.
814
8152004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 816
2a316a84
ST
817 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
818 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
819 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
820 Save/restore the current graphics port and device handle when
821 drawing into an offscreen graphics world.
822
823 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
824 (gif_load): Likewise.
825
ab80314b
JB
8262004-05-07 Juanma Barranquero <lektu@terra.es>
827
828 * window.c (Fset_window_buffer): Fix docstring.
829
70646bb5
TTN
8302004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
831
832 * emacs.c (main) [VMS]: Fix var ref.
833
b03a4fdd
JB
8342004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
835
836 * data.c (Fsetq_default): Fix docstring.
837
279d3293
JR
8382004-05-06 Jason Rumney <jasonr@gnu.org>
839
840 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
841 to avoid name clash.
842
f72b5416
JD
8432004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
844
845 * fileio.c (barf_or_query_if_file_exists): Use lstat.
846 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 847 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 848
6ab66799
KS
8492004-05-04 Kim F. Storm <storm@cua.dk>
850
851 * xdisp.c (Qtotal): New var.
852 (syms_of_xdisp): Intern and staticpro it.
853 (calc_line_height_property): New arg total. Set it if
854 line-spacing property has format (total . VALUE).
855 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
856 Handle total line-spacing property.
857
ab2d724b
JD
8582004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
859
860 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
861 "under" scroll bar when size/position changes.
862
238add5e
JR
8632004-05-03 Jason Rumney <jasonr@gnu.org>
864
865 * makefile.nt: Remove.
866
1644f4e4
EZ
8672004-05-02 Eli Zaretskii <eliz@gnu.org>
868
a267ab4d
SM
869 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
870 Avoid compiler warnings.
05fdbeb8 871
1644f4e4
EZ
872 * Makefile.in (region-cache.o): Depend on config.h.
873
6cbc951e
SM
8742004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
875
876 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
877 with continuation lines, too.
878
2b98b088
TTN
8792004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
880
881 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
882
d9bf7950
SM
8832004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
884
885 * xdisp.c (calc_line_height_property): YAILOM (yet another
886 int/Lisp_Object mixup).
887
affa509c
EZ
8882004-05-01 Eli Zaretskii <eliz@gnu.org>
889
890 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
891 undo bad effect of pack(4) in some versions of system headers.
892
07c07cfe
JR
8932004-05-01 Jason Rumney <jasonr@gnu.org>
894
895 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
896
e71caa4e
KS
8972004-04-30 Kim F. Storm <storm@cua.dk>
898
899 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 900 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
901
902 * dispextern.h (struct it): Remove member use_default_face.
903 Add members override_ascent, override_descent, override_boff.
904
905 * xdisp.c (init_iterator): Handle line-spacing float value.
906 Initialize override_ascent member.
907 (append_space_for_newline): Reset override_ascent.
908 Remove use_default_face.
909 (calc_line_height_property): New function to calculate value of
910 line-height and line-spacing properties. Look at overlays, too.
911 Set override_ascent, override_descent, override_boff members when
912 using another face than the current face. Float values are now
913 relative to the frame default font, by default; accept a cons
914 of ratio and face name to specify value relative to a specific face.
915 (x_produce_glyphs): Use calc_line_height_property.
916 Use override_ascent etc. when set to handle different face heights.
917 A negative line-spacing property value is interpreted as a total
918 line height, rather than inter-line spacing.
919 (note_mouse_highlight): Allocate room for 40 overlays initially.
920
0fddae66
SM
9212004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
922
923 * data.c (Fsubr_name): New fun.
924 (syms_of_data): Defsubr it.
925
712d23dc
KS
9262004-04-29 Kim F. Storm <storm@cua.dk>
927
928 * xdisp.c (null_glyph_slice): New var.
929 (append_glyph, append_composite_glyph, append_stretch_glyph):
930 Use it to initialize glyph slice.
931
033ad8c6
SM
9322004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
935 (on_hot_spot_p): Make sure we always return a value.
936 (Flookup_image_map): Remove unused var ix and iy.
937 (note_mode_line_or_margin_highlight): Remove unused var `image'.
938
93397360
EZ
9392004-04-27 Eli Zaretskii <eliz@gnu.org>
940
941 * msdos.c (init_environment): If one of the TMP... environment
942 variables is set to a drive letter without a trailing slash,
943 append a slash.
944
0c54865e
EZ
9452004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
946
947 * editfns.c (lisp_time_argument): Provide externally.
948
949 * fileio.c (Fset_file_times): New function.
950 (syms_of_fileio): Intern and staticpro it.
951
d3b111bd
KS
9522004-04-27 Kim F. Storm <storm@cua.dk>
953
07dc1231
KS
954 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
955 header line strings.
956
360fe9d2
KS
957 * dispextern.h (struct it): New member use_default_face.
958
d3b111bd
KS
959 * xdisp.c (Qline_height): New variable.
960 (syms_of_xdisp): Intern and staticpro it.
961 (append_space_for_newline): Partially undo 2004-04-25 change;
962 add default_face_p arg, and restore callers.
963 Clear it->use_default_face after use.
964 (x_produce_glyphs): Set default font for ascii char if
965 it->use_default_font is set. Change line-spacing property to set
966 just extra line spacing. Handle new line-height property.
967
0448588b
AS
9682004-04-26 Andreas Schwab <schwab@suse.de>
969
970 * print.c (print_object): Print non-ascii characters in bool
971 vector representation as octal escapes.
972
973 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
974 * print.c (print_object): Use it instead of BITS_PER_CHAR for
975 bool vectors.
976 * lread.c (read1): Likewise.
977 * alloc.c (Fmake_bool_vector): Likewise.
978 * data.c (Faref, Faset): Likewise.
979 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
980 (mapcar1): Likewise.
d3b111bd 981
536d6baa
ST
9822004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
983
984 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
985
ae11577a
MB
9862004-04-26 Miles Bader <miles@gnu.org>
987
988 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
989
e198ba87
JB
9902004-04-26 Juanma Barranquero <lektu@terra.es>
991
992 * buffer.c (Fpop_to_buffer): Fix docstring.
993
f3d5f92d 9942004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 995
f3d5f92d
ST
996 * lread.c (init_lread): Don't display missing lisp directory
997 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 998 may be built without correct installation path.
f3d5f92d 999
03e35edc
KS
10002004-04-25 Kim F. Storm <storm@cua.dk>
1001
9ff3aa31
KS
1002 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1003
1004 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1005
03e35edc
KS
1006 * xdisp.c (append_space_for_newline): Rename from append_space.
1007 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1008 (x_produce_glyphs): Handle line-spacing property on newline char.
1009 If value is t, adjust ascent and descent to fit current row height.
1010 If value is an integer or float, set extra_line_spacing to integer
1011 value, or to float value x current line height.
1012
f24814e0
KH
10132004-04-23 Kenichi Handa <handa@m17n.org>
1014
1015 * fontset.c (Finternal_char_font): If POSITION is nil, return
1016 font for displaying CH with the default face.
1017
d814862a
JB
10182004-04-23 Juanma Barranquero <lektu@terra.es>
1019
1020 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1021
063a45c5
SM
10222004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1023
1024 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1025 Don't make assumptions about the relative place of i and val.
1026 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1027
ae7ab2d3
KS
10282004-04-21 Kim F. Storm <storm@cua.dk>
1029
1030 * dispextern.h (struct glyph_slice): New struct.
1031 (struct glyph): New member slice.
1032 (GLYPH_SLICE_EQUAL_P): New macro.
1033 (GLYPH_EQUAL_P): Use it.
1034 (struct glyph_string): New member slice.
1035 (struct it_slice): New struct.
1036 (struct it): New member slice, add member to stack too.
1037 New member constrain_row_ascent_descent_p.
1038 (image_ascent): Add prototype.
1039
1040 * dispnew.c (buffer_posn_from_coords): Return full image width
1041 and height even for image slices (posn is relative to full image).
1042 (marginal_area_string): Adjust x0,y0 for image slice.
1043
1044 * image.c (image_ascent): Add slice arg; calculate ascent for
1045 image slice (or full image).
1046
1047 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1048 (syms_of_keyboard): Defsubr them.
1049
1050 * lisp.h (pos_visible_p): Fix prototype.
1051
c62aec78 1052 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1053 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1054 (x_draw_image_foreground, x_draw_image_relief)
1055 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1056 Draw sliced images.
1057
1058 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1059 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1060 (x_draw_image_foreground, x_draw_image_relief)
1061 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1062 Draw sliced images.
1063
1064 * w32term.h (image_ascent): Remove prototype.
1065
1066 * window.c (Fpos_visible_in_window_p): Return pixel position if
1067 PARTIALLY arg is non-nil. Simplify. Doc fix.
1068 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1069 to return/set vscroll in pixels.
1070
1071 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1072
1073 * xdisp.c (Qslice): New variable.
1074 (syms_of_xdisp): Intern and staticpro it.
1075 (pos_visible_p): Return pixel position in new x and y args.
1076 (init_iterator): Reset it->slice info.
1077 (handle_display_prop): Parse (slice ...) property.
1078 (push_it, pop_it): Save/restore slice info.
1079 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1080 force repositioning of tall row if window is vscrolled, as that
1081 would reset vscroll.
1082 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1083 increasing row height if row is non-empty.
1084 (fill_image_glyph_string): Copy slice info.
1085 (take_vertical_position_into_account): Simplify.
1086 (produce_image_glyph): Handle iterator slice info, setup glyph
1087 slice info. Do not force minimum line height.
1088 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1089 do not increase height (ascent/descent) of non-empty row when
1090 adding normal character glyph; instead reduce glyph ascent/descent
1091 appropriately; if row is higher than current glyph, adjust glyph
1092 descent/ascent to reposition glyph within the existing row.
1093 Likewise, when char is newline, only set ascent/descent if row is
1094 currently empty.
1095 (note_mouse_highlight): Handle hotspots with sliced image.
1096
1097 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1098 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1099 (x_draw_image_foreground, x_draw_image_relief)
1100 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1101 Draw sliced images.
1102
1103 * xterm.h (image_ascent): Remove prototype.
1104
d58f8753
SM
11052004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1108
4ce2719d
JPW
11092004-04-20 John Paul Wallington <jpw@gnu.org>
1110
1111 * fns.c (Fassoc, Feql): Fix indentation.
1112
d58f8753 1113 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1114
95f8c3b9
JPW
11152004-04-19 John Paul Wallington <jpw@gnu.org>
1116
1117 * fns.c (Feql): New function.
d58f8753 1118 (syms_of_fns): Defsubr it.
95f8c3b9 1119
b7e85537
JR
11202004-04-18 Jason Rumney <jasonr@gnu.org>
1121
1122 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1123 after closing the clipboard.
1124
5a72efd4
LT
11252004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1126
1127 * buffer.c (Fbuffer_base_buffer): Doc fix.
1128
20dc8583
KS
11292004-04-17 Kim F. Storm <storm@cua.dk>
1130
60962ec4
KS
1131 * keymap.c (Fkey_description): Add optional PREFIX arg.
1132 Combine prefix with KEYS to make up the full key sequence to describe.
1133 Correlate meta_prefix_char and following (simple) key to describe
1134 as meta modifier. All callers changed.
1135 (describe_map): Rename arg `keys' to `prefix'. Remove local
1136 `elt_prefix' var. Use Fkey_description with prefix instead of
1137 elt_prefix combined with Fsingle_key_description.
1138 (describe_vector): Declare static. Replace arg `elt_prefix' with
1139 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1140 if !KEYMAP_P. Use Fkey_description with prefix instead of
1141 Fsingle_key_description.
1142
1143 * keymap.h (Fkey_description): Fix prototype.
1144 (describe_vector): Remove prototype.
1145
409368b9
KS
1146 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1147
20dc8583
KS
1148 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1149 (png_load): Fix calculation of transparent background color on X
1150 and W32 platforms.
1151
75c5501b
JB
11522004-04-16 Juanma Barranquero <lektu@terra.es>
1153
1154 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1155 not too large before computing how much to scroll.
1156
da879ae8
SM
11572004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1158
1159 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1160
d01ca4a8
LT
11612004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1162
1163 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1164 Add hyperlink to Elisp manual to the docstring.
1165
572943b3
SM
11662004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1167
1168 * callint.c (fix_command): Use XDCR.
1169
5e30a0fb
NR
11702004-04-14 Nick Roberts <nick@nick.uklinux.net>
1171
1172 * window.c (Fget_lru_window): Doc fix.
1173
a27ddfaf
KS
11742004-04-14 Kim F. Storm <storm@cua.dk>
1175
1176 * editfns.c (Fformat): Fix allocation size of precision array.
1177
1178 * dispnew.c (update_window): Only set changed_p if
1179 scrolling_window actually did scroll.
1180 (scrolling_window): Only return 1 if we actually did scroll.
1181
1182 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1183 height to glyph height when cursor row is not fully visible.
1184 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1185 failure in case row is higher than window. Callers changed.
1186 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1187 Try to scroll partially visible, higher-than-window cursor row.
1188 (redisplay_window): Always try to scroll partially visible,
1189 higher-than-window cursor row - both initially and again with
1190 centering_position = 0.
1191 Clear desired matrix before retrying with centering_position = 0.
1192
da879ae8
SM
11932004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * syntax.c (scan_lists): Simplify backward string scan.
1196 Fix off-by-one boundary check for string and comment fences.
1197
5fc16e8e
SM
11982004-04-13 Joe Buehler <jbuehler@hekimian.com>
1199
1200 * sheap.c, unexcw.c: New files.
1201
c9aac8e6
LT
12022004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1203
1204 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1205 base buffer has been killed. Correct the error message if the
1206 base buffer does not exist.
1207
1e88a355
SM
12082004-04-12 Joe Buehler <jbuehler@hekimian.com>
1209
1210 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1211 Cygwin itself. Add support for Xaw3d scrollbars.
1212
1213 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1214
1215 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1216
1217 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1218 before Cygwin unexec.
1219
1220 * Makefile.in: Link changes for Cygwin unexec() support.
1221
8dbff9a0
AS
12222004-04-12 Andreas Schwab <schwab@suse.de>
1223
1224 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1225
54dffe35
LT
12262004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1227
1228 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1229 IGNORE argument equals NAME. Doc fix.
1230
99a72bdf
MY
12312004-04-11 Masatake YAMATO <jet@gyve.org>
1232
1e88a355 1233 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
1234 empty if they are backwards.
1235
40899d7b
SM
12362004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1237
1238 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1239
f8f853de
SM
12402004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1241
1242 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1243
c953fe1b
KS
12442004-04-06 Kim F. Storm <storm@cua.dk>
1245
661e85c1
KS
1246 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1247 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1248
1249 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1250 clearing highlight.
1251
1252 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1253
1254 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1255 clearing highlight.
1256
c953fe1b
KS
1257 * indent.c (vmotion): Do not reserve one column for continuation
1258 marks on window frames.
1259
c1994268
EZ
12602004-04-04 Eli Zaretskii <eliz@gnu.org>
1261
1262 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1263 from GCC.
1264
9f691b0d
SM
12652004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1266
1267 * .gdbinit-union: Remove.
1268
1269 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1270 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1271 ($nonvalbits): Remove.
1272 ($valmask): Set it by calling xreload to avoid redundancy.
1273
1274 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1275 (gdb_emacs_intbits): Remove.
1276
7a8560d7
JD
12772004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1278
9f691b0d 1279 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 1280
3c8111fc
KH
12812004-03-30 Kenichi Handa <handa@m17n.org>
1282
1283 * editfns.c (Fformat): Fix initialization of the array info.
1284
48a0bce4
KS
12852004-03-30 Kim F. Storm <storm@cua.dk>
1286
1287 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1288 (syms_of_xterm): DEFVAR_BOOL it.
1289 (ignore_next_mouse_click_timeout): New var.
1290 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1291 Use it to filter mouse clicks following focus event.
1292
1cd0066c
KS
12932004-03-29 David Ponce <david@dponce.com>
1294
1295 * callint.c (Fcall_interactively): Fix last change.
1296
adb3b353
SM
12972004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * eval.c (Fcommandp): Simplify.
1300
1301 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1302 Extend to handle all kinds of functions.
1303
1304 * lisp.h (Finteractive_form): Declare.
1305
1306 * callint.c (Fcall_interactively): Use it.
1307
6fc4c9c9
KS
13082004-03-26 Kim F. Storm <storm@cua.dk>
1309
1310 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1311 to catch errors in calc_pixel_width_or_height during redisplay.
1312
abdb9b83
MY
13132004-03-26 Masatake YAMATO <jet@gyve.org>
1314
b17856dd 1315 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 1316
b17856dd 1317 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 1318
b17856dd 1319 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 1320
b17856dd 1321 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 1322
e8a84b6c
JD
13232004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1324
b17856dd 1325 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 1326
36a3fd05
RS
13272004-03-19 Richard M. Stallman <rms@gnu.org>
1328
1329 * s/sol2-6.h: Delete previous change.
1330
ab24c127
KS
13312004-03-19 Kim F. Storm <storm@cua.dk>
1332
1333 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1334 to_charpos corresponds to newline in right fringe. Use local
1335 BUFFER_POS_REACHED_P macro.
1336
992126de
JD
13372004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1338
1339 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1340 to compile on non-window system.
1341
45dbfc84
KS
13422004-03-19 Kim F. Storm <storm@cua.dk>
1343
1344 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1345
1346 * image.c (Qcenter): Move to xdisp.c.
1347
1348 * xdisp.c (Qcenter): Declare here.
adb3b353 1349 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
1350 (handle_single_display_prop): Allow space display property on all
1351 platforms.
1352 (display_mode_line): Set mode_line_p before displaying line.
1353 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1354 handling. Remove complex cases for fringes and scroll-bars.
1355 Add left, right, and center alignment positions. Add text (area)
1356 width/height. Return width or height for image specs.
1357 (produce_stretch_glyph): Improve handling of :align-to. Is now
1358 relative to left of text area by default, but other base offsets
1359 can be specified -- also for text lines.
1360
1361 * term.c (produce_glyphs): Handle IT_STRETCH.
1362 (produce_stretch_glyph): New function to handle space width and
1363 align-to display properties on non-window systems.
1364
37264101
SM
13652004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1366
1367 * fileio.c (Fread_file_name): Set completion-ignore-case for
1368 case-insensitive systems.
1369
73bc43da
MY
13702004-03-14 Masatake YAMATO <jet@gyve.org>
1371
1372 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1373 when keymap and cursor are setup.
1374
9062aa89
ST
13752004-03-14 Steven Tamm <steventamm@mac.com>
1376
b17856dd 1377 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 1378
e4b1b5ab
KS
13792004-03-14 Kim F. Storm <storm@cua.dk>
1380
1381 * dispextern.h (x_find_image_file): Add prototype.
1382
1383 * image.c (x_find_image_file): Make extern.
1384
1385 * xfns.c (x_find_image_file): Remove prototype.
1386
a6eeaa81 13872004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 1388
37264101 1389 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 1390
37264101 1391 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 1392
e69cfac2
RS
13932004-03-12 Richard M. Stallman <rms@gnu.org>
1394
1395 * fns.c (internal_equal): New arg PROPS controls comparing
1396 text properties. All callers changed.
1397 (Fequal_including_properties): New function.
1398 (syms_of_fns): defsubr it.
1399
45034953
KS
14002004-03-12 Kim F. Storm <storm@cua.dk>
1401
1402 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 1403
45034953
KS
1404 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1405 (image_background, image_background_transparent): Fix prototypes.
1406
37264101 1407 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
1408
1409 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1410 (x_query_font, x_find_ccl_program, x_set_window_size)
1411 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1412 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1413 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1414
1415 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1416 (x_query_font, x_find_ccl_program, x_set_window_size)
1417 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1418 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1419 (mac_draw_line_to_pixmap): Add prototypes.
1420
14212004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1422
1423 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1424
a12d3d87
KS
14252004-03-11 Kim F. Storm <storm@cua.dk>
1426
d3ab1cf1
KS
1427 * dispextern.h: Move image related prototypes from xfns.c section
1428 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1429 HAVE_X_WINDOWS.
37264101 1430
37de9f51 1431 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 1432 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
1433 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1434 (GTK_OBJ) [USE_GTK]: New declaration.
1435 (obj): Add $(GTK_OBJ) to list.
1436
5243c06a 14372004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 1438
5243c06a
ST
1439 * image.c [MAC_OSX]: Include sys/stat.h
1440
1441 * macfns.c (syms_of_macfns): Remove definitions of things now
1442 defined in image.c
1443
c0f97789
KS
14442004-03-11 Kim F. Storm <storm@cua.dk>
1445
1446 The following changes consolidates the identical/similar image
1447 support code previously found in xfns.c, w32fns.c, and macfns.c
1448 into a new file image.c.
1449
1450 * makefile.w32-in (OBJ1): Add image.o.
1451 ($(BLD)/image.$(O)): Add dependencies.
1452
1453 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1454 (image.o): Add dependencies.
37264101 1455
c0f97789
KS
1456 * image.c: New file with consolidated image support code.
1457 (COLOR_TABLE_SUPPORT): New define to control whether
1458 color table support is available (X only).
1459 (Bitmap_Record): Common name for x_bitmap_record,
1460 w32_bitmap_record, and mac_bitmap_record.
1461 (XImagePtr): Common name for pointer to XImage or equivalent.
1462 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1463 to XImagePtr on X+MAC, and to HDC on W32.
1464 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1465 (NO_PIXMAP): Common name for "None" or equivalent.
1466 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1467 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1468 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
1469 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1470 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
1471 (XDrawLine): Define on MAC for code sharing.
1472 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1473 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1474 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1475 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1476 (x_reference_bitmap, x_create_bitmap_from_data)
1477 (x_create_bitmap_from_file, x_destroy_bitmap)
1478 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1479 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1480 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1481 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1482 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1483 (define_image_type, lookup_image_type, valid_image_p)
1484 (image_error, enum image_value_type, struct image_keyword)
1485 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1486 (make_image, free_image, prepare_image_for_display, image_ascent)
1487 (four_corners_best, image_background, image_background_transparent)
1488 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1489 (make_image_cache, free_image_cache, clear_image_cache)
1490 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1491 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1492 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1493 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1494 (init_image_func_pointer, image_load_quartz2d)
1495 (struct ct_color, init_color_table, free_color_table)
1496 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1497 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1498 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1499 (x_disable_image, x_build_heuristic_mask)
1500 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1501 (TIFF support, GIF support, Ghostscript support): Consolidate image
1502 code from xfns.c, w32fns.c, and macfns.c.
1503 (syms_of_image): Consolidate image related symbol setup here.
1504 (init_image): Consolidate image related initializations here.
37264101 1505
c0f97789
KS
1506 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1507 and init_image. Remove call to init_xfns.
1508
37264101
SM
1509 * macterm.h (struct mac_bitmap_record): Add file member.
1510 Not currently used, but simplifies code sharing.
c0f97789
KS
1511
1512 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1513 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1514 (x_reference_bitmap, x_create_bitmap_from_data)
1515 (x_create_bitmap_from_file, x_destroy_bitmap)
1516 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1517 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1518 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1519 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1520 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1521 (define_image_type, lookup_image_type, valid_image_p)
1522 (image_error, enum image_value_type, struct image_keyword)
1523 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1524 (make_image, free_image, prepare_image_for_display, image_ascent)
1525 (four_corners_best, image_background, image_background_transparent)
1526 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1527 (make_image_cache, free_image_cache, clear_image_cache)
1528 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1529 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1530 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1531 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1532 (init_image_func_pointer, image_load_quartz2d)
1533 (struct ct_color, init_color_table, free_color_table)
1534 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1535 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1536 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1537 (x_disable_image, x_build_heuristic_mask)
1538 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1539 (TIFF support, GIF support, Ghostscript support): Merge with image
1540 code from xfns.c and macfns.c into image.c.
1541 (syms_of_xfns): Move image related symbols to image.c.
1542 (init_external_image_libraries, init_xfns): Remove; initialization
1543 moved to init_image in image.c.
1544
1545 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1546 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1547 (x_reference_bitmap, x_create_bitmap_from_data)
1548 (x_create_bitmap_from_file, x_destroy_bitmap)
1549 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1550 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1551 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1552 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1553 (define_image_type, lookup_image_type, valid_image_p)
1554 (image_error, enum image_value_type, struct image_keyword)
1555 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1556 (make_image, free_image, prepare_image_for_display, image_ascent)
1557 (four_corners_best, image_background, image_background_transparent)
1558 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1559 (make_image_cache, free_image_cache, clear_image_cache)
1560 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1561 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1562 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1563 (struct ct_color, init_color_table, free_color_table)
1564 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1565 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1566 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1567 (x_disable_image, x_build_heuristic_mask)
1568 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1569 (TIFF support, GIF support, Ghostscript support): Merge with image
1570 code from xfns.c and macfns.c into image.c.
1571 (syms_of_xfns): Move image related symbols to image.c.
1572 (init_external_image_libraries, init_xfns): Remove; initialization
1573 moved to init_image in image.c.
1574
1575 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1576 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1577 (x_reference_bitmap, x_create_bitmap_from_data)
1578 (x_create_bitmap_from_file, x_destroy_bitmap)
1579 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1580 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1581 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1582 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1583 (define_image_type, lookup_image_type, valid_image_p)
1584 (image_error, enum image_value_type, struct image_keyword)
1585 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1586 (make_image, free_image, prepare_image_for_display, image_ascent)
1587 (four_corners_best, image_background, image_background_transparent)
1588 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1589 (make_image_cache, free_image_cache, clear_image_cache)
1590 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1591 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1592 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1593 (struct ct_color, init_color_table, free_color_table)
1594 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1595 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1596 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1597 (x_disable_image, x_build_heuristic_mask)
1598 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1599 (TIFF support, GIF support, Ghostscript support): Merge with
1600 w32fns.c and macfns.c image code into image.c.
1601 (syms_of_xfns): Move image related symbols to image.c.
1602 (init_xfns): Remove; initialization moved to init_image in image.c.
1603
1604 * lisp.h (syms_of_image, init_image): Add protoypes.
1605 (init_xfns): Remove prototype.
1606
1607 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1608 (x_reference_bitmap, x_create_bitmap_from_data)
1609 (x_create_bitmap_from_file, x_destroy_bitmap)
1610 (x_create_bitmap_mask): Move prototypes from dispextern.h.
1611 (gamma_correct) [MAC_OS]: Add prototype.
1612
1613 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1614 (x_reference_bitmap, x_create_bitmap_from_data)
1615 (x_create_bitmap_from_file, x_destroy_bitmap)
1616 (x_create_bitmap_mask): Move prototypes to dispextern.h.
1617
6eced09c
KH
16182004-03-09 Kenichi Handa <handa@etlken2>
1619
1620 * coding.c (decode_coding_emacs_mule): Handle insufficent source
1621 correctly.
1622
9a7e95f3
RS
16232004-03-04 Richard M. Stallman <rms@gnu.org>
1624
04a6e76b
RS
1625 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
1626
9a7e95f3
RS
1627 * window.c (Fdisplay_buffer): Doc fix.
1628
1629 * buffer.c (Fpop_to_buffer): Doc fix.
1630
6c2488df
KS
16312004-03-03 Kim F. Storm <storm@cua.dk>
1632
1633 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
1634
d8d95bc7
SM
16352004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
1636
1637 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
1638
357589bf
RS
16392004-03-02 Richard M. Stallman <rms@gnu.org>
1640
1641 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
1642
409949b5
KH
16432004-03-02 Kenichi Handa <handa@m17n.org>
1644
1645 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
1646
d24bc50f
KS
16472004-03-02 Kim F. Storm <storm@cua.dk>
1648
1649 * window.h (struct window): New member overlay_arrow_bitmap.
1650
1651 * window.c (make_window): Initialize overlay_arrow_bitmap.
1652
1653 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
1654 implement and integrate multiple overlay arrows with redisplay.
1655 (syms_of_xdisp): DEFVAR_LISP and initialize it.
1656 (last_arrow_position, last_arrow_string): Replace by properties.
1657 (Qlast_arrow_position, Qlast_arrow_string)
1658 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
1659 (syms_of_xdisp): Intern and staticpro them.
1660 (overlay_arrow_string_or_property, update_overlay_arrows)
1661 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
1662 (overlay_arrow_at_row): New functions for multiple overlay arrows.
1663 (redisplay_internal): Use them instead of directly accessing
1664 Voverlay_arrow_position etc. for multiple overlay arrows.
1665 (mark_window_display_accurate): Use update_overlay_arrows.
1666 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
1667 (try_window_id): Use overlay_arrows_changed_p.
1668 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
1669 (display_line): Use overlay_arrow_at_row to check multiple
1670 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 1671 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
1672 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
1673 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
1674
1675 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
1676 (update_window_fringes): Remove unused code.
1677
c1464661
JR
16782004-03-01 Jason Rumney <jasonr@gnu.org>
1679
1680 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
1681
a64387ee
JB
16822004-03-01 Juanma Barranquero <lektu@terra.es>
1683
1684 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
1685
1686 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
1687
334faa08
JD
16882004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1689
1690 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
1691 how many colors can be displayed.
1692
bb62616f
KH
16932004-03-01 Kenichi Handa <handa@m17n.org>
1694
1695 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
1696 correctly.
1697
0fd16104
KS
16982004-02-28 Kim F. Storm <storm@cua.dk>
1699
1700 * dispnew.c (update_window): Update header line also if there are
1701 no other changes in window (move code after set_cursor label).
1702
1703 * lisp.h (mark_window_display_accurate): Remove prototype.
1704
1705 * window.c (window_loop, Fforce_window_update): Force mode line
1706 updates by setting prevent_redisplay_optimizations_p and
1707 update_mode_lines.
1708
b59dd9c8
JD
17092004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1710
d8d95bc7 1711 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
1712
1713 * xterm.c (x_calc_absolute_position): Call x_real_positions
1714 to get WM window sizes and use those to calculate position.
d8d95bc7 1715 (x_set_offset): Remove code commented out.
b59dd9c8 1716
a874691c
MB
17172004-02-28 Miles Bader <miles@gnu.org>
1718
1719 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
1720
3e0c6482
KS
17212004-02-28 Kim F. Storm <storm@cua.dk>
1722
1723 * keyboard.c (kbd_buffer_store_event_hold): New function to store
1724 an event into kbd fifo, but with special handling of quit event;
1725 a quit event is saved for later, and further events are discarded
1726 until the saved quit event has been processed.
1727 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
1728 (gen_help_event): Store help event in kbd fifo.
1729 (NREAD_INPUT_EVENTS): Remove.
1730 (read_avail_input): Adapt to new read_socket_hook interface.
1731 Remove allocation and initialization of local input_event buffer,
1732 as read_socket_hook stores events directly in fifo. Allocate and
1733 initialize local hold_quit event to handle postponed quit event
1734 (and store it if set by kbd_buffer_store_event_hold).
1735
1736 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
1737 (gen_help_event): Fix prototype.
1738
a64387ee 1739 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 1740 numcharsp args. Add hold_quit arg.
f63fd14e 1741 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
1742 directly in fifo using kbd_buffer_store_event_hold.
1743
1744 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
1745 (read_input_waiting): Adapt to new read_socket_hook interface.
1746 Remove allocation and initialization of local input_event buffer,
1747 as read_socket_hook stores events directly in fifo. Allocate and
1748 initialize local hold_quit event to handle postponed quit event
1749 (and store it if set by kbd_buffer_store_event_hold).
1750
a64387ee 1751 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
1752
1753 * termhooks.h (read_socket_hook): Fix prototype.
1754
1755 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
1756 numcharsp args. Add hold_quit arg.
f63fd14e 1757 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
1758 directly in fifo using kbd_buffer_store_event_hold.
1759
1760 * w32inevt.h (w32_console_mouse_position): Fix prototype.
1761
1762 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
1763 Add hold_quit arg. Rework to use just one, local, inev
1764 input_event. Store inev directly in fifo using
3e0c6482
KS
1765 kbd_buffer_store_event_hold. Update count in one place.
1766 Postpone call to gen_help_event until inev is stored; use new
1767 local do_help for this.
1768 Remove local emacs_event in handing of ButtonPress event; just use
1769 inev instead (so no reason to copy it later).
1770
1771 * xsmfns.c (x_session_check_input): Remove numchars arg.
1772
d8d95bc7
SM
1773 * xterm.c (x_focus_changed, x_detect_focus_change):
1774 Remove numchars arg. Always store event into bufp arg.
1775 Return nothing. Callers changed accordingly.
3e0c6482
KS
1776 (glyph_rect): Simplify.
1777 (STORE_KEYSYM_FOR_DEBUG): New macro.
1778 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1779 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1780 (current_hold_quit) [USE_GTK]: Add.
1781 (event_handler_gdk): Adapt to new handle_one_xevent.
1782 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
1783 Add hold_quit arg. Rework to use just one, local, inev
1784 input_event. Store inev directly in fifo using
3e0c6482
KS
1785 kbd_buffer_store_event_hold. Update count in one place.
1786 Postpone call to gen_help_event until inev is stored; use new
1787 local do_help for this.
1788 Simplify handling of keysyms (consolidate common code). Fix bug
1789 where count was updated with nchars instead of nbytes.
1790 Remove local emacs_event in handing of ButtonPress event; just use
1791 inev instead (so no reason to copy it later).
1792 Remove `out' label. Rename label `ret' to `done'; add various
1793 `goto done' to clarify code flow in deeply nested blocks.
1794 (x_dispatch_event): Simplify as handle_one_xevent now calls
1795 kbd_buffer_store_event itself.
f63fd14e 1796 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
1797 arg. Call handle_one_xevent with new arglist. Store event from
1798 x_session_check_input in fifo.
1799 [USE_GTK]: Setup current_hold_quit.
1800 Decrement handling_signal before unblocking input.
1801 (x_initialize) [USE_GTK]: Initialize current_count.
1802
1803 * xterm.h (x_session_check_input): Fix prototype.
1804
e3564461 18052004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 1806
d8d95bc7 1807 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 1808
e3564461
ST
1809 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
1810 macgui.h).
a64387ee 1811
e3564461 1812 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 1813
e3564461
ST
1814 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
1815 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
1816 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
1817 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
1818 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
1819 (Bitmap): Remove typedef.
1820 (Pixmap): Change int to GWorldPtr.
1821
d8d95bc7 1822 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 1823
d8d95bc7
SM
1824 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1825 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
1826 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
1827 long representation.
1828 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
1829 colors used for masks.
1830 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 1831
e3564461
ST
1832 * macfns.c: Include sys/types.h and sys/stat.h.
1833 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
1834 Include QuickTime/QuickTime.h.
1835 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1836 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
1837 functions defined in macterm.c.
1838 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
1839 (ZPixmap): New #define for compatibility with xfns.c.
1840 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1841 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
1842 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
1843 New functions.
e3564461 1844 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
1845 (x_destroy_x_image, unwind_create_frame, x_disable_image)
1846 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
1847 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
1848 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
1849 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
1850 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
1851 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
1852 long mixup.
1853 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
1854 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
1855 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
1856 (x_set_cursor_type, Fxw_color_values, valid_image_p)
1857 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
1858 (x_alloc_image_color, clear_image_cache, lookup_image)
1859 (x_find_image_file, xbm_read_bitmap_file_data)
1860 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
1861 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
1862 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
1863 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
1864 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 1865 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
1866 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
1867 #if 0.
1868 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
1869 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
1870 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
1871 New functions (from xfns.c).
e3564461
ST
1872 (Fx_create_frame): Record unwind_create_frame.
1873 (Fxw_display_color_p): Use dpyinfo->color_p.
1874 (Fx_display_grayscale_p, Fx_display_planes): Don't use
1875 dpyinfo->n_cbits.
1876 (Fx_display_color_cells): Use dpyinfo->n_planes;
1877 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
1878 (Qheuristic, cross_disabled_images, emboss_matrix)
1879 (laplace_matrix): New variables (from xfns.c).
1880 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
1881 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
1882 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
1883 (image_background_transparent): New function (from xfns.c).
1884 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1885 (image_load_quicktime): Add declaration.
1886 [MAC_OSX] (image_load_quartz2d): Likewise.
1887 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
1888 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 1889 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
1890 (xbm_load_image_from_file, x_laplace_read_row)
1891 (x_laplace_write_row, pbm_read_file): Remove functions.
1892 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
1893 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
1894 (colors_in_color_table): Sync with xfns.c (although not used).
1895 (lookup_rgb_color): Don't lookup color table. Just do gamma
1896 correction.
1897 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
1898 (x_disable_image): New function (from xfns.c).
1899 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1900 (x_build_heuristic_mask): Sync with xfns.c.
1901 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1902 (HAVE_PBM): Remove #ifdef.
1903 (pbm_load): Sync with xfns.c. Set img->width and img->height
1904 before IMAGE_BACKGROUND.
d8d95bc7 1905 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
1906 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
1907 Don't enclose with #if HAVE_PNG.
1908 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
1909 symbol _CGImageCreateWithPNGDataProvider is defined.
1910 Otherwise use image_load_quicktime.
e3564461 1911 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
1912 [HAVE_PNG] (png_load): Sync with xfns.c.
1913 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1914 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
1915 HAVE_JPEG.
1916 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
1917 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
1918 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
1919 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
1920 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
1921 (tiff_image_p, tiff_load): Don't enclose declarations with #if
1922 HAVE_TIFF.
1923 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
1924 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
1925 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
1926 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
1927 New functions (from xfns.c).
e3564461 1928 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 1929 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
1930 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
1931 Don't enclose with #if HAVE_GIF.
1932 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
1933 animated gif. Otherwise use image_load_quicktime.
1934 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
1935 gif_DrawText to avoid conflict with QuickdrawText.h.
1936 [HAVE_GIF] (gif_load): Sync with xfns.c.
1937 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
1938 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
1939 Ghostscript is not supported yet).
1940 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
1941 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
1942 cross_disabled_images (from xfns.c). Remove #if 0 for supported
1943 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1944 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
1945 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
1946 HAVE_PNG. Call EnterMovies to support animated gifs.
1947 Call init_image_func_pointer to bind a symbol
e3564461 1948 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 1949
d8d95bc7 1950 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
1951 (x_draw_bar_cursor): Sync declaration with xterm.c.
1952 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
1953 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
1954 graphics).
1955 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
1956 (mac_draw_line_to_pixmap, XCreatePixmap)
1957 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
1958 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
1959 New functions.
1960 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
1961 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1962 Cast bits to char *.
e3564461
ST
1963 (reflect_byte): New function (from w32fns.c).
1964 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
1965 due to byte alignment.
d8d95bc7
SM
1966 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
1967 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
1968 (XSetForeground): Remove static (now used in macfns.c).
1969 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
1970 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
1971 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
1972 (x_draw_glyph_string_box, x_draw_image_foreground)
1973 (x_draw_image_foreground_1, x_draw_image_glyph_string)
1974 (x_draw_stretch_glyph_string, x_draw_glyph_string)
1975 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
1976 Sync with xterm.c.
1977 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
1978 than the xterm.c version when a strictly horizontal or vertical
1979 line is drawn.
1980 (XTset_terminal_window): Add static.
1981 (x_make_frame_visible): Add UNBLOCK_INPUT.
1982 (x_free_frame_resources): New funcion (from xterm.c).
1983 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
1984 occurs in tool bar area.
d8d95bc7
SM
1985 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
1986 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
1987 Initialize image cache.
1988 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
1989 Enclose unused functions with #if 0.
1990 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
1991 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 1992 from a mac font name to an XLFD font name according to its script code.
e3564461 1993 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 1994 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
1995 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
1996 whose name starts with `.'.
1997 (init_font_name_table): Use decode_mac_font_name. Add both
1998 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
1999 of a font is smJapanese.
2000 (mac_do_list_fonts): New function to list fonts that match a given
2001 pattern.
2002 (x_list_fonts, XLoadQueryFont): Use it.
2003 (XLoadQueryFont): Set rbearing field for each variable width
2004 character to avoid needless redraw.
2005 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2006
446f5f3d
KS
20072004-02-26 Kim F. Storm <storm@cua.dk>
2008
af617d0f
KS
2009 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2010 as read_socket_hook handler on X aborts if buffer is too small
2011 and W32 handler doesn't always check buffer limit.
2012
446f5f3d
KS
2013 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2014 right-fringe similar to a display margin image. Specifically,
2015 the characters having the fringe prop are no longer shown, and
2016 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2017 do this. Set fringe bitmap face_id in it->face_id.
2018 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2019 still realize it->face (i.e. the fringe bitmap face).
2020
7d8a0b55
MB
20212004-02-25 Miles Bader <miles@gnu.org>
2022
2023 * xdisp.c (check_it): Check string/string_pos consistency.
2024 (init_iterator): Initialize string-related fields properly.
2025
20262004-02-11 Miles Bader <miles@gnu.org>
2027
2028 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2029
20302004-02-10 Miles Bader <miles@gnu.org>
2031
2032 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2033 BLOCK_INPUT can be nested, so it doesn't make much sense.
2034
a64387ee 20352004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2036
2037 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2038 (xbm_read_bitmap_data): Use unsigned char for image data.
2039
92f5fba2
LT
20402004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2041
2042 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2043
8565fb3d
JR
20442004-02-22 Jason Rumney <jasonr@gnu.org>
2045
2046 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2047 correctly over other bitmaps.
2048
a6eeaa81 20492004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2050
2051 * emacs.c (USAGE1): Split into two halves.
2052 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2053 (USAGE3): Rename from USAGE2.
2054 (USAGE4): Rename from USAGE3.
f8125c39 2055
4effffca
EZ
20562004-02-21 Juri Linkov <juri@jurta.org>
2057
2058 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2059 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2060 --file. Fix -f, -l. Sort options. Untabify.
2061 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2062
923c1e6f
LT
20632004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2064
2065 * category.c (Fdefine_category, Fcategory_docstring)
2066 (Fget_unused_category, Fset_category_table)
2067 (Fcategory_set_mnemonics): Doc fixes.
2068
b0e225fd
KS
20692004-02-20 Kim F. Storm <storm@cua.dk>
2070
2071 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2072 The following changes are relative to the 2004-01-21 revision.
2073 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2074 in one call to read_socket_hook. Value is 8.
2075 (read_avail_input): Separate and rework handling of read_socket_hook
2076 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2077 in read_socket_hook case, and repeat if full buffer is read.
2078 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2079 In non-read_socket_hook case, just use a single input_event, and
2080 call kbd_buffer_store_event on the fly for each character.
2081
b15aa9f9
SM
20822004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2083
2084 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2085 Remove unused `gu' alternative.
2086
83c9aa95
AS
20872004-02-19 Andreas Schwab <schwab@suse.de>
2088
2089 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2090 warning.
2091
cc808173
KS
20922004-02-18 Kim F. Storm <storm@cua.dk>
2093
2094 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2095 Fix last change.
2096
ab90a54d
KS
20972004-02-17 Kim F. Storm <storm@cua.dk>
2098
b26f249f
KS
2099 * xdisp.c (fast_find_position): Fix return value of new version;
2100 it was inverted compared to the 21.1 version.
2101 (get_window_cursor_type): Don't look at glyph if NULL.
2102 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2103
ab90a54d
KS
2104 * keyboard.c: Rework previous change; it didn't consider that the
2105 buf array was allocated on the stack.
2106 (prev_read): Remove variable.
2107 (read_avail_input_buf): New static event buffer array.
b9568dfc 2108 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2109 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2110 Use in_read_avail_input to handle re-entrance; when re-entered,
2111 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2112 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2113 is always cleared on entry. To ensure that, we clear (just) the
2114 entries that were used before we return.
2115 (init_keyboard): Initialize read_avail_input_buf here.
2116
4e039f3f
EZ
21172004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2118
2119 * cmds.c (Fend_of_line): Doc fix.
2120
7b5368c1
EZ
21212004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2122
2123 * keyboard.c (prev_read): New static variable.
2124 (read_avail_input): Use it to zero out only those slots in buf[]
2125 that were used last time we were called.
2126
a6eeaa81 21272004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2128
2129 * Makefile.in (obj): Move fringe.o from here...
2130 (XOBJ, MAC_OBJ): ...to here.
2131
159c348e
SE
21322004-02-16 Stephen Eglen <stephen@gnu.org>
2133
2134 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2135
d2f14999
SM
21362004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2137
b15aa9f9
SM
2138 * data.c (Fbyteorder):
2139 * fringe.c (Fdefine_fringe_bitmap):
2140 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2141 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2142
8d50508a
JR
21432004-02-16 Jason Rumney <jasonr@gnu.org>
2144
2145 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2146
dd4497dc
ST
21472004-02-15 Steven Tamm <steventamm@mac.com>
2148
2149 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2150 controlling emulation of a three button mouse with option and
2151 command keys.
2152 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 2153 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 2154
c9159cb3
KS
21552004-02-15 Kim F. Storm <storm@cua.dk>
2156
2cc52658
KS
2157 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2158
c9159cb3
KS
2159 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2160 Perform byte-swapping.
2161
12fde2dc
KS
21622004-02-14 Kim F. Storm <storm@cua.dk>
2163
2164 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2165 bits from char to short to facilitate wider bitmaps.
2166 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2167 member.
2168
2169 * fringe.c (struct fringe_bitmap): Change member bits from char to
2170 short to facilitate 16 bits wide bitmaps. Modify all standard
2171 bitmaps accordingly.
2172 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2173 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2174 (draw_fringe_bitmap): Ditto.
2175 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2176 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2177 handle up to 16 bits wide bitmaps.
2178 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 2179 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
2180
2181 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2182 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2183 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2184
2185 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2186 so it is no longer necessary to expand them here.
2187
2188 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2189
9d7271e8
KS
21902004-02-12 Kim F. Storm <storm@cua.dk>
2191
2192 * window.c (Fwindow_fringes): Doc fix.
2193
706c1e4f
JD
21942004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2195
2196 * xselect.c (x_get_foreign_selection): Add new optional parameter
2197 time_stamp.
2198 (Fx_get_selection_internal): Ditto, pass time_stamp to
2199 x_get_foreign_selection.
2200
2201 * data.c (Fbyteorder): New function.
2202
c2d12b5d
JD
22032004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2204
2205 * atimer.c: Move include stdio.h to same place as in other files.
2206
2207 * region-cache.c: Ditto.
2208
2209 * sysdep.c: Ditto.
2210
2211 * xfaces.c: Ditto.
2212
4c1947b9
SS
22132004-02-09 Sam Steingold <sds@gnu.org>
2214
89458937 2215 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 2216
82722af3
KS
22172004-02-09 Kim F. Storm <storm@cua.dk>
2218
2219 * fringe.c: New file. Move original fringe related declarations
2220 and code from dispextern.h and xdisp.c here.
2221 Rework code to support user defined fringe bitmaps, redefining
2222 standard bitmaps, ability to overlay user defined bitmap with
2223 overlay arrow bitmap, and add faces to bitmaps.
2224 (Voverflow_newline_into_fringe): Declare here.
2225 (enum fringe_bitmap_align): New enum.
2226 (..._bits): All bitmaps are now defined without bitswapping; that
2227 is now done in init_fringe_once (if necessary).
2228 (standard_bitmaps): New array with specifications for the
2229 standard fringe bitmaps.
2230 (fringe_faces): New array.
2231 (valid_fringe_bitmap_id_p): New function.
2232 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2233 (draw_fringe_bitmap): New function which draws fringe bitmap,
2234 possibly overlaying bitmap with cursor in right fringe or the
2235 overlay arrow in the left fringe.
2236 (update_window_fringes): Do not handle overlay arrow here.
2237 Compare and copy fringe bitmap faces.
2238 (init_fringe_bitmap): New function.
2239 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2240 define and destroy user defined fringe bitmaps.
2241 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2242 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2243 (syms_of_fringe): New function. Defsubr new DEFUNs.
2244 DEFVAR_LISP Voverflow_newline_into_fringe.
2245 (init_fringe_once, init_fringe): New functions.
2246 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 2247
82722af3
KS
2248 * Makefile.in (obj): Add fringe.o.
2249 (fringe.o): New dependencies.
2250
2251 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2252 bits allocated to hold a fringe number. Increase number of bits
2253 from 4 to 8 to allow user defined fringe bitmaps.
2254 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2255 left_user_fringe_face_id, right_user_fringe_bitmap,
2256 right_user_fringe_face_id.
2257 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2258 Move to new file fringe.c.
2259 (MAX_FRINGE_BITMAPS): Define here.
2260 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2261 and overlay_p. Change member which to int.
2262 (struct redisplay_interface): New members define_fringe_bitmap
2263 and destroy_fringe_bitmap.
2264 (valid_fringe_bitmap_id_p): Add prototype.
2265 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2266
2267 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2268 arrows.
2269 (update_frame): Do flush_display if force_flush_display_p to
2270 ensure display (specifically fringes) are updated in a timely
2271 manner when resizing the frame by dragging the mouse.
2272 (update_window_line): Update row if overlay arrow changed.
2273 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2274 or overlay arrow changed.
2275
2276 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2277 syms_of_fringe, and init_fringe.
2278
2279 * frame.h (struct frame): New member force_flush_display_p.
2280
2281 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2282 Add prototypes.
2283
a3993cc8 2284 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 2285 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
2286 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2287 Use cursor color for displaying cursor in fringe.
82722af3
KS
2288 (x_redisplay_interface): Add null handlers for
2289 define_fringe_bitmap and destroy_fringe_bitmap functions.
2290
2291 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2292 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2293 for displaying cursor in fringe.
2294 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2295 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2296 (w32_redisplay_interface): Add them to redisplay_interface.
2297 (w32_term_init): Call w32_init_fringe instead of explicitly
2298 defining fringe bitmaps in fringe_bmp array.
2299 (x_delete_display): Call w32_reset_fringes instead of explicitly
2300 destroying fringe bitmaps in fringe_bmp array.
2301
2302 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2303 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2304 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2305 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2306 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2307 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2308 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2309 Move fringe handling vars and code to new file fringe.c.
2310 (handle_display_prop): Handle left-fringe and right-fringe
2311 display properties; store user fringe bitmaps in iterator.
2312 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2313 (clear_garbaged_frames): Set force_flush_display_p if resized.
2314 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2315 (display_line): Handle cursor in fringe at eob.
2316 (display_line): Set row user fringe bitmaps from iterator.
2317
2318 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2319 Use cursor color for displaying cursor in fringe.
2320 (x_redisplay_interface): Add null handlers for
2321 define_fringe_bitmap and destroy_fringe_bitmap functions.
2322
030400eb
JD
23232004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2324
2325 * macfns.c (Fx_change_window_property): Make doc string and
2326 parameters same as for X version.
2327
2328 * w32fns.c (Fx_change_window_property): Ditto.
2329
3af55251
KS
23302004-02-07 Kim F. Storm <storm@cua.dk>
2331
ec110e9e
KS
2332 * xdisp.c (hscroll_window_tree): Position cursor near to right
2333 margin in hscrolled window when jumping to end of line (rather
2334 than centering cursor).
2335
3af55251
KS
2336 * process.c (wait_reading_process_input): Don't do adaptive read
2337 buffering if waiting for a specific process.
2338
b0c138ce
LT
23392004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2340
2341 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2342 (Fread_minibuffer, Feval_minibuffer)
2343 (Fread_string, Fread_no_blanks_input)
2344 (Fcompleting_read): Doc fixes.
2345 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2346 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2347 (read_minibuf): Fix initial comment.
2348 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 2349 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
2350 checking completion-regexp-list.
2351 (Fdisplay_completion_list): Make it handle arguments that are
2352 symbols. Doc fix.
2353
9676f5ad 23542004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 2355
9676f5ad 2356 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 2357
9676f5ad
JD
2358 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2359 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 2360 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 2361 format. Remove unused variable cons.
5b698285
JD
2362
2363 * xselect.c: Include stdio,h.
2364
fc1d15f6
KH
23652004-02-05 Kenichi Handa <handa@m17n.org>
2366
ebaff4af
KH
2367 * fns.c (Fset_char_table_range): Fix previous change.
2368
fc1d15f6
KH
2369 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2370
9676f5ad
JD
23712004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2372
2373 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2374
da75761f
SM
23752004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2376
2377 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2378 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2379
13c5d120
KH
23802004-02-04 Kenichi Handa <handa@m17n.org>
2381
2382 * fns.c (Fset_char_table_range): Handle charsets ascii,
2383 eight-bit-control, and eight-bit-graphic correctly.
2384
2883d842
JR
23852004-02-03 Jason Rumney <jasonr@gnu.org>
2386
2387 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2388
2389 * w32fns.c (x_to_w32_font): Likewise.
2390
69eff41f
JD
23912004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2392
2393 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2394 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2395
2396 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2397 ClientMessages.
2398
2399 * xselect.c: Include termhooks.h and X11/Xproto.h
2400 (x_check_property_data, x_fill_property_data)
2401 (x_property_data_to_lisp, mouse_position_for_drop)
2402 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 2403 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
2404 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2405
da75761f 2406 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
2407 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2408 OUTER_P.
2409 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2410 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2411 if vector_ret_p is true.
2412 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 2413
a6eeaa81 24142004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
2415
2416 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2417 basename of FILE relative to it, not FILE itself.
2418
09721b31
KH
24192004-02-02 Kenichi Handa <handa@m17n.org>
2420
2421 * coding.c (coding_restore_composition): Check invalid
2422 composition data more rigidly.
2423
eb996101
LT
24242004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2425
2426 * fileio.c (Fread_file_name_internal): Correctly handle the case
2427 where insert-default-directory is nil.
2428 (Fread_file_name): Always return an empty string if the user exits
2429 with an empty minibuffer. Adapt the docstring accordingly.
2430 (syms_of_fileio): Adapt the docstring of insert-default-directory
2431 to the change in Fread_file_name.
2432
a6eeaa81 24332004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
2434
2435 * alloca.c [!alloca]: Fix the prototype for xfree.
2436
13f52ed8
KH
24372004-01-29 Kenichi Handa <handa@m17n.org>
2438
2439 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2440 (string_byte_to_char): Likewise.
2441
d57625a0
JR
24422004-01-28 Peter Runestig <peter@runestig.com>
2443
2444 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2445
a64387ee 24462004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2447
2448 * unexmacosx.c (unexec_copy): Do not copy more than was
2449 requested to prevent overwriting during unexec.
2450
eb37b8fd
JD
24512004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2452
ce38070a
JD
2453 * process.c (sigchld_handler): Add comment about not calling malloc.
2454
eb37b8fd
JD
2455 * process.h: Add extern to synch_process_termsig.
2456
a64387ee 24572004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 2458
da75761f
SM
2459 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2460 Move setting of scroll bars from make_mac_frame to
2461 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 2462
d62a265d
RS
24632004-01-26 Richard M. Stallman <rms@gnu.org>
2464
2465 * search.c (Freplace_match): Handle nonexistent
2466 back-references properly.
2467
24682004-01-03 Richard M. Stallman <rms@gnu.org>
2469
2470 * window.c (decode_any_window): New function.
2471 (Fwindow_height, Fwindow_width, Fwindow_edges)
2472 (Fwindow_pixel_edges, Fwindow_inside_edges)
2473 (Fwindow_inside_pixel_edges): Use decode_any_window.
2474
ff236419
JD
24752004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2476
2477 * process.h: synch_process_termsig new variable.
2478
2479 * callproc.c: Define synch_process_termsig.
2480 (Fcall_process): Initiate synch_process_termsig to zero and
2481 check if non-zero and get signal name after subprocess has ended.
2482
2483 * process.c (sigchld_handler): Set synch_process_termsig
2484 if terminated by a signal. synch_process_death setting removed.
2485
2486 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2487
41b867ea
AS
24882004-01-26 Andreas Schwab <schwab@suse.de>
2489
2490 * print.c (print_preprocess): Declare size as EMACS_INT to not
2491 lose bits.
2492 (print_object): Likewise.
2493 * alloc.c (Fpurecopy): Likewise.
2494
a08084ff
LT
24952004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2496
2497 * window.c (Fwindow_minibuffer_p): Doc fix.
2498
b19ac475
JY
24992004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2500
2501 * editfns.c (Fformat): Make both passes accept the same set of flags.
2502
fe905025
KH
25032004-01-23 Kenichi Handa <handa@m17n.org>
2504
2505 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2506 one, set buffer to OBJECT temporarily.
2507
438fc6c0
SM
25082004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2509
455316e2
SM
2510 * keyboard.c (kbd_buffer_gcpro): Remove.
2511 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2512 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2513 Don't initialize and/or maintain the variable any more. It was made
2514 redundant by my commit of 2003-06-15.
2515
438fc6c0
SM
2516 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2517
5335a4ee
JD
25182004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2519
2520 * lisp.h: Add undef DECL_ALIGN.
2521
dcdaeebc
SM
25222004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2523
2524 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2525 Check interrupt_input_pending explicitly.
2526
2527 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2528
2529 * keyboard.c (handle_async_input): New fun,
2530 extracted from input_available_signal.
2531 (input_available_signal, reinvoke_input_signal): Use it.
2532
9076a823
SM
25332004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2534
d7107586
SM
2535 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2536
2537 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2538 manipulation macros for when tags are in the lower bits.
2539 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2540 (DECL_ALIGN): New macro.
2541 (DEFUN): Use it.
2542
2543 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2544
2545 * s/darwin.h (__attribute__): Remove outdated workaround.
2546
2547 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2548
2549 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2550 Don't check range of malloc address.
2551 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2552
9076a823
SM
2553 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2554
2555 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2556
ba029065
KH
25572004-01-19 Kenichi Handa <handa@m17n.org>
2558
2559 * fontset.c (fontset_font_pattern): Fix previous change.
2560
7af0e8d7
MB
25612004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2562
2563 * xdisp.c (Voverflow_newline_into_fringe)
2564 (move_it_in_display_line_to, redisplay_internal)
2565 (update_window_fringes, redisplay_window, display_line, window):
2566 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2567 that it compiles without a window-system.
2568 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2569
77a9cf69
KS
25702004-01-16 Kim F. Storm <storm@cua.dk>
2571
2572 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2573
a64387ee 2574 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
2575 buffer_local_flags for indicate_buffer_boundaries.
2576 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2577 default- variable for it.
2578
2579 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2580 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 2581 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
2582 overflowing newlines into right fringe.
2583 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2584 and indicate_bottom_line_p for buffer boundaries and scrolling.
2585 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2586 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2587 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2588 and HOLLOW_SQUARE_BITMAP.
2589 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
2590 Add prototypes.
2591
2592 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
2593 instead of related indicator fields.
2594 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
2595 (direct_output_for_insert): Handle exact width lines like
2596 contined lines. Call update_window_fringes.
2597 (update_window): Call update_window_fringes.
2598 (scrolling_window): Don't skip desired rows with changed bitmaps.
2599 Check if fringe bitmaps changes when assigning scrolled rows.
2600
2601 * xdisp.c (Voverflow_newline_into_fringe): New variable.
2602 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
2603 (move_it_in_display_line_to): Overflow newline into fringe for
2604 rows that are exactly as wide as the window.
2605 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
2606 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
2607 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
2608 (fringe_bitmaps): Add new bitmaps.
2609 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
2610 Select proper bitmap for cursor in fringe when appropriate.
2611 Handle alignment of bitmap to top or bottom of row.
2612 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
2613 done by update_window_fringes.
2614 (update_window_fringes, draw_window_fringes): New functions.
2615 (redisplay_internal): Call update_window_fringes in case only
2616 cursor row is updated.
2617 (redisplay_window): Call update_window_fringes.
2618 Explicitly call draw_window_fringes if redisplay was done using
2619 the current matrix or the overlay arrow is in the window.
2620 (try_window_reusing_current_matrix): Mark scrolled rows for
2621 fringe update (to update buffer-boundaries / scrolling icons).
2622 (find_last_unchanged_at_beg_row): Handle exact width lines line
2623 continued lines.
2624 (display_line): Overflow newline into fringe for rows that are
2625 exactly as wide as the window. Don't append space for newline
d7107586 2626 in this case.
77a9cf69
KS
2627 (notice_overwritten_cursor): Explicitly clear cursor bitmap
2628 in fringe as if it had been overwritten.
2629 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 2630 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
2631 void-text-area-pointer as user options.
2632 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 2633
77a9cf69
KS
2634 * xterm.c (x_update_window_end): Call draw_window_fringes.
2635 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2636 in row instead of actually drawing fringe bitmaps.
2637 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2638 (x_draw_window_cursor): Draw cursor in fringe.
2639
2640 * w32term.c (x_update_window_end): Call draw_window_fringes.
2641 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2642 in row instead of actually drawing fringe bitmaps.
2643 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2644 (w32_draw_window_cursor): Draw cursor in fringe.
2645
2646 * macterm.c (x_update_window_end): Call draw_window_fringes.
2647 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2648 in row instead of actually drawing fringe bitmaps.
2649 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2650 (mac_draw_window_cursor): Draw cursor in fringe.
2651
a633a954
JD
26522004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2653
2654 * xterm.c (handle_one_xevent): Don't handle characters that are part
2655 of an old style (XLookupString) compose sequence.
2656
80460525
KH
26572004-01-15 Kenichi Handa <handa@m17n.org>
2658
2659 * search.c (Freplace_match): Use make_multibyte_string or
2660 make_unibyte_string according to the buffer multibyteness.
2661
7fc34f85
SM
26622004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
2663
2664 * alloc.c (struct interval_block, struct string_block)
2665 (struct symbol_block, struct marker_block, live_string_p)
2666 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
2667 Better preserve alignment for objects in blocks.
2668 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
2669
2670 * lread.c (defvar_per_buffer): Remove dead declaration.
2671
2672 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
2673 space size.
2674
66070bd1
JD
26752004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2676
2677 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
2678 if a key press should pop down. Only pop down if a key is pressed
2679 outside the menu/dialog.
2680 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
2681 popup_get_selection.
2682 (create_and_show_dialog): Pass 1 for down_on_keypress to
2683 popup_get_selection.
2684
de7515d6
JD
26852004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2686
2687 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
2688 BLOCK/UNBLOCK_INPUT.
2689
160b1b50
JD
26902004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2691
2692 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
2693 specified.
2694
3a9f36e6
KH
26952004-01-08 Kenichi Handa <handa@m17n.org>
2696
2697 * editfns.c (Fformat): Fix '&' to '&&'.
2698
3803eb32
AS
26992004-01-08 Andreas Schwab <schwab@suse.de>
2700
2701 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
2702 size if PSEUDOVECTOR_FLAG is set.
2703
9da88f37
KH
27042004-01-07 Kenichi Handa <handa@m17n.org>
2705
74ac5074
KH
2706 * charset.c (Fdeclare_equiv_charset): Fix docstring.
2707
9da88f37
KH
2708 * fontset.c (fontset_ref_via_base): Fix previous change.
2709
05faee07
KS
27102004-01-07 Kim F. Storm <storm@cua.dk>
2711
2712 * process.c (read_process_output): Only activate adaptive
2713 buffering if we read less than 256 bytes at a time.
2714
634910c8
KS
27152004-01-06 Kim F. Storm <storm@cua.dk>
2716
2717 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
2718 object and image object. Return glyph width and height.
2719 (mode_line_string, marginal_area_string): Ditto.
2720
2721 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2722 (marginal_area_string): Fix prototypes.
2723
2724 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 2725 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
2726 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2727
2728 * keyboard.c (make_lispy_position): Use modified mode_line_string,
2729 buffer_posn_from_coords, and marginal_area_string functions to
2730 include both string object and image object in the lispy position.
2731 Also add actual glyph width and height to position.
2732 (read_key_sequence): Use real buffer position from mouse
2733 event to find keymap property even when click is in marginal area.
2734
2735 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
2736 mode_line_string and marginal_area_string functions to handle
2737 both string object and image object properties.
d7107586 2738
57951c2e
AS
27392004-01-06 Andreas Schwab <schwab@suse.de>
2740
2741 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
2742 character.
2743
181e6a61
AS
27442004-01-02 Andreas Schwab <schwab@suse.de>
2745
d7107586
SM
2746 * macterm.c (emacs_options, x_initialized, same_x_server):
2747 Remove unused (and duplicated) definitions.
181e6a61 2748
31e0fbdd
KS
27492004-01-02 Kim F. Storm <storm@cua.dk>
2750
2751 * process.h (struct Lisp_Process): New members for adaptive read
2752 buffering: adaptive_read_buffering, read_output_delay, and
2753 read_output_skip.
2754
2755 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
2756 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
2757 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
2758 (process_output_delay_count, process_output_skip): New vars.
2759 (Vprocess_adaptive_read_buffering): New variable.
2760 (make_process): Initialize adaptive read buffering members.
2761 (Fstart_process): Set adaptive_read_buffering member.
2762 (deactivate_process): Cleanup adaptive read buffering.
2763 (wait_reading_process_input): Temporarily omit delayed
2764 subprocesses from the set of file descriptors to read from;
2765 adjust the select timeout if we skipped any subprocesses.
2766 (read_process_output): Increase adaptive read buffering delay if
2767 we read less than a full buffer; reduce delay when we read a
2768 full buffer.
2769 (send_process): Simplify using local Lisp_Process var.
2770 Reset adaptive read buffering delay after write.
2771 (init_process): Initialize process_output_delay_count and
2772 process_output_skip.
2773 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
2774
68c6a789
JR
27752004-01-01 Jason Rumney <jasonr@gnu.org>
2776
d7107586 2777 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 2778
3f70fe82
LT
27792003-12-30 Luc Teirlinck <teirllm@auburn.edu>
2780
2781 * print.c (Ferror_message_string): Add hyperlink in the docstring
2782 to the definition of `signal' in the Elisp manual.
2783 * eval.c (Fsignal): Ditto.
2784
a64387ee 27852003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
2786
2787 * fns.c (internal_equal): Return t for two NaN arguments.
2788
7abd90ea
RS
27892003-12-29 Richard M. Stallman <rms@gnu.org>
2790
2791 * data.c (store_symval_forwarding): Handle setting
2792 default-fill-column, etc., by changing the value in
2793 buffers that use the default.
2794
2795 * minibuf.c (Fset_minibuffer_window): Doc fix.
2796
2797 * fileio.c (choose_write_coding_system): Ignore auto_saving
2798 if using the visited file for auto saves.
2799 (Fwrite_region): Don't update SAVE_MODIFF
2800 if auto-saving in visited file.
2801
3e7cfcdc
KH
28022003-12-29 Kenichi Handa <handa@m17n.org>
2803
2804 * dispextern.h (face_font_available_p): Extern it.
2805
2806 * fontset.c (Voverriding_fontspec_alist): New variable.
2807 (lookup_overriding_fontspec): New function.
d7107586 2808 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
2809 (fontset_font_pattern): Likewise.
2810 (regulalize_fontname): New function.
2811 (Fset_fontset_font): Call regulalize_fontname.
2812 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
2813 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
2814 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
2815
2816 * xfaces.c (face_font_available_p): New function.
2817
7abd90ea
RS
28182003-12-28 Richard M. Stallman <rms@gnu.org>
2819
2820 * buffer.c (Fother_buffer): Don't crash if BUF is nil
2821 or if its name is nil.
2822
2823 * buffer.c (Fkill_buffer): Don't delete auto-save file
2824 if it's the same as the visited file.
2825
de1d1a40
LT
28262003-12-28 Luc Teirlinck <teirllm@auburn.edu>
2827
2828 * coding.c (Fcheck_coding_system): Doc fix.
2829
204fb75e
KS
28302003-12-28 Kim F. Storm <storm@cua.dk>
2831
2832 * Makefile.in (eval.o): Depend on dispextern.h.
2833
2834 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
2835 image glyph using image's ascent.
2836 (mode_line_string): Return image glyph as object clicked on.
2837 Adjust y0 for image glyph using image's ascent.
2838
2839 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
2840 (struct glyph): New members, ascent and descent. Used to save
2841 this glyph's ascent and descent, instead of having.
2842 (struct glyph): Declare member face_id using FACE_ID_BITS.
2843 (find_hot_spot): Add prototype.
2844
2845 * keyboard.c (Qimage): Remove extern (now in lisp.h).
2846 (QCmap): Declare extern.
2847 (make_lispy_position): When position is inside image hot-spot,
2848 use hot-spot element's id as posn element.
2849
2850 * lisp.h (IMAGEP): New macro to test for image object type.
2851 (Qimage): Declare extern.
2852
2853 * macfns.c (Qimage): Remove extern (now in lisp.h).
2854 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2855
2856 * macterm.c (Qface, Qmouse_face): Remove unused externs.
2857
2858 * w32fns.c (Qimage): Remove extern (now in lisp.h).
2859 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2860
2861 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
2862
2863 * w32term.c (Qface, Qmouse_face): Remove unused externs.
2864
2865 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
2866 pointer types.
2867 (Qrelative_width, Qalign_to): Remove unused variables.
2868 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
2869 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
2870 image maps.
d7107586 2871 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
2872 new dx and dy args.
2873 Remove buffer_only_p arg (always 0). Simplify code accordingly.
2874 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
2875 than row's ascent and height, to get sensible height on tall rows.
2876 (build_desired_tool_bar_string): Remove Qimage extern.
2877 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
2878 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
2879 image glyph is alone on the last line.
2880 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 2881 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 2882 (on_hot_spot_p): New function to check if position is inside an
d7107586 2883 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
2884 (find_hot_spot): New function to search for image hot-spot.
2885 (Flookup_image_map): New defun to search for image hot-spot.
2886 (define_frame_cursor1): New aux function to determine frame pointer.
2887 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2888 Handle `pointer' text property and :pointer image property to
2889 control frame pointer shape. Detect image hot-spots for pointer
2890 and help_echo properties. Use define_frame_cursor1.
2891 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 2892 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
2893 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2894
2895 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2896
2897 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2898 (Qimage): Remove extern (now in lisp.h).
2899 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2900
2901 * xmenu.c (show_help_event): Remove unused code.
2902
2903 * xterm.c (Qface, Qmouse_face): Remove unused externs.
2904 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
2905 row's ascent and descent, to get a sensible height on tall rows.
2906
fc052137
LT
29072003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2908
2909 * minibuf.c (Fcompleting_read): Undo previous change.
2910
a64387ee 29112003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
2912
2913 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
2914 Arguments GCPRO'ed in call to file name handler.
2915
56ffd194
TTN
29162003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2917
2918 * termcap.c (tgetst1): Scan for "%pN"; if all
2919 N are continuous in [1,9], remove all "%pN".
2920
5202d23d
JD
29212003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2922
f26fab36
JD
2923 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
2924
5202d23d
JD
2925 * xfaces.c (lface_fully_specified_p): Take into account that
2926 MAC OS always have unspecified stipple.
2927
8babaa59
TTN
29282003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2929
2930 * tparam.c (tparam1): Add handling for `%pN', which
2931 means use param N for the next substitution.
2932
2d176448
TTN
29332003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2934
2935 * xfaces.c (Fcolor_gray_p): Fix omission bug:
2936 In case `frame' is nil, consult the selected frame.
2937 (Fcolor_supported_p): Likewise.
2938
adb0708c
LT
29392003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2940
000eeb15
LT
2941 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
2942 Doc fixes.
0dc72b11
LT
2943
2944 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
2945 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
2946 (Fread_from_minibuffer): Delete code moved into read_minibuf.
2947 Doc fix.
2948 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
2949 read_minibuf.
2950 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 2951 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 2952
2e4d132b
KH
29532003-12-03 Kenichi Handa <handa@m17n.org>
2954
2955 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
2956 encoding sequence.
2957
3999c705
KH
29582003-12-01 Kenichi Handa <handa@m17n.org>
2959
2960 * composite.c (syms_of_composite): Don't make the compostion hash
2961 table week.
2962
d344ecbb
LT
29632003-11-30 Luc Teirlinck <teirllm@auburn.edu>
2964
2965 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
2966 * textprop.c (Fget_char_property_and_overlay): New function.
2967 (syms_of_textprop): Defsubr it.
2968
03d6484e
JD
29692003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2970
019b1f0e
JD
2971 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
2972 to compile on terminal configuration.
2973
03d6484e
JD
2974 * fileio.c (Fread_file_name): Check use_file_dialog also before
2975 calling Fx_file_dialog.
2976
2977 * fns.c: use_file_dialog: New variable.
2978 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
2979
442d3fd0
KS
29802003-11-29 Kim F. Storm <storm@cua.dk>
2981
2982 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
2983 (syms_of_msdos): Don't intern and staticpro them.
2984
0f6a07a8
KS
29852003-11-27 Kim F. Storm <storm@cua.dk>
2986
2987 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
2988 coordinates relative to glyph at posn. If glyph is an image,
2989 return that as object at posn. Callers changed.
2990 (mode_line_string, marginal_area_string): Calculate and return
2991 pixel coordinates relative to glyph. Callers changed.
2992
2993 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2994 (marginal_area_string): Fix prototypes.
2995 (window_box_left_offset, window_box_right_offset): Add prototypes.
2996
2997 * frame.h (get_specified_cursor_type, get_window_cursor_type):
2998 Remove prototypes.
2999
3000 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3001
3002 * keyboard.c (make_lispy_position): Add x and y coordinates
3003 relative to the current glyph as 7th element of position.
3004 If glyph is an image, return it in the object element.
3005 (read_key_sequence): Skip checks for keymap property in cases
3006 where POSN_STRING is not a string (e.g. an image).
3007
3008 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3009 (Vshow_text_cursor_in_void): New variable.
3010 (glyph_to_pixel_coords): Don't use negative hpos.
3011 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3012 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3013 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3014 (calc_pixel_width_or_height): New aux function, implementing
3015 pixel based artihmetic for glyph widths and heights.
3016 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3017 :width, :height, :align-to, and :ascent, thus allowing these to
3018 be specified in pixels as well as multiples of characters.
3019 Don't produce stretch glyphs with zero width or height.
3020 (get_specified_cursor_type): Declare static.
3021 (get_window_cursor_type): Declare static. Add glyph arg to be
3022 able to know when cursor is on an image; always substitute
3023 hollow-box cursor for filled-box cursor on images, to avoid
3024 negative images and flicker when blinking the cursor.
3025 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3026 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3027 than vertical scroll-bar cursor in display margins.
3028 (note_mouse_highlight): Use non-text cursor rather than text
3029 cursor in fringes and over images in the text area.
3030 Use non-text cursor when mouse pointer is outside editable text,
3031 i.e. in the void after end-of-line or end-of-buffer; this was
3032 already done for W32, but is now standard for all systems --
3033 user can toggle show-text-cursor-in-void to get old behaviour.
3034 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3035 Vdisplay_pixels_per_inch.
3036
00498bfc
AS
30372003-11-25 Andreas Schwab <schwab@suse.de>
3038
3039 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3040 EMACS_INT to not lose bits.
3041 (Ffillarray): Don't set bits beyond the size of a bool vector.
3042
edaa824d
KS
30432003-11-25 Kim F. Storm <storm@cua.dk>
3044
3045 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3046 define this defun on systems that cannot use stderr as lvalue.
3047
74d6f539
GM
30482003-11-24 Gerd Moellmann <gerd@gnu.org>
3049
3050 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3051 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3052 ld's default is incompatible with unexec.
3053
6a1ff3ba
KS
30542003-11-23 Kim F. Storm <storm@cua.dk>
3055
63dc7c6b
KS
3056 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3057 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3058 (Fforce_window_update): New defun.
3059 (syms_of_window): Defsubr it.
3060 (Fset_window_margins, Fset_window_fringes): Doc fix.
3061
6a1ff3ba
KS
3062 * print.c (Fredirect_debugging_output): New defun.
3063 (syms_of_print): Defsubr it.
3064
aef109b7
LT
30652003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3066
3067 * fns.c (Fset_char_table_parent): Doc fix.
3068
6a1ff3ba 30692003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3070
3071 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3072 for glyph clicked on, rather than (unused) pixel positions.
3073 (mode_line_string, marginal_area_string): Change X and Y args to
3074 pointers for returning actual row/column for glyph clicked on.
3075 Simplify and optimize loops.
3076
aef109b7
LT
3077 * dispextern.h (mode_line_string, marginal_area_string):
3078 Update prototypes.
63ccbe21
KS
3079
3080 * keyboard.c (make_lispy_position): New function for generating
3081 mouse click positions from frame and pixel coordinates.
3082 Enhanced to return buffer position and actual row/column for
3083 events outside the text area using updated mode_line_string and
3084 marginal_area_string functions.
3085 Return left-fringe and right-fringe clicks as such, rather than
3086 clicks in text area.
3087 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3088 pixel_to_glyph_coords, as we never use the results.
3089 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3090 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3091 Eliminate unused code in WHEEL_EVENT handling.
3092 (make_lispy_movement): Use make_lispy_position.
3093
3094 * window.c (coordinates_in_window): Remove redundant tests.
3095 Fix returned X pixel value for left-margin.
3096
3097 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3098 mode_line_string and marginal_area_string parameters.
3099
a64387ee 31002003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3101
d7107586
SM
3102 * w32.c (struct the_group, getgrgid): Add.
3103 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3104
3dbf3426
LT
31052003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3106
3107 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3108
cae8ddbb 31092003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3110
d7107586
SM
3111 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3112 include in call to file name handler. Optionally translate numeric
3113 UID and GID to strings. Update docstring.
3114 (directory_files_internal): Add parameter ID-FORMAT.
3115 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3116 include in call to file name handler and call to
3117 directory_files_internal. Update Docstring.
3118 (Fdirectory_files): Add dummy parameter in call to
3119 directory_files_internal.
3120 * lisp.h (Qinteger): Add.
3121 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3122 (Ffile_attributes): Add parameter.
3123 * data.c (Qinteger): Export.
cae8ddbb 3124
2550b848
LT
31252003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3126
3dbf3426 3127 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3128
88380018
KS
31292003-11-19 Kim F. Storm <storm@cua.dk>
3130
3131 * xdisp.c (init_iterator): Initialize it->start to position
3132 before reseating (in case start position is invisible).
3133 (init_to_row_start): Set it->start to row-start.
3134 (redisplay_window): Accept optional_new_start if start position
3135 is invisible (in which case IT_CHARPOS overshoots PT).
3136 (display_line): Setup row->start from it->start (rather than
3137 it->current which is wrong if first char on line is invisible).
3138 When done, reseat it->start to it->current (= start of next row).
3139 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3140 is only partially visible.
3141
3142 * dispextern.h (struct it): New member start.
3143
854c1a59
SM
31442003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3145
455316e2
SM
3146 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3147 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3148 of block_index outside of the macro call.
3149 (Fgarbage_collect): Remove null code.
3150
3151 * m/amdx86-64.h: Don't redefine XPNTR.
3152
854c1a59
SM
3153 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3154 of VALMASK.
3155
3156 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3157 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3158 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3159
3160 * lisp.h (VALMASK): Only define for non-union type.
3161 (MARKBIT): Remove.
3162 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3163 (XTYPE): Define unconditionally.
3164 (XSETTYPE): Remove one more remnant.
3165 (EQ): Define differently for the union and non-union cases.
3166 (INTMASK): New bit mask.
3167 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3168 (GC_EQ): Delegate to EQ.
3169
3170 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3171
a0c6ef2d
JD
31722003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3173
3174 * xterm.c (x_window_to_scroll_bar): Move check of display to
3175 where window_id is compared.
3176
859492c4
KS
31772003-11-17 Kim F. Storm <storm@cua.dk>
3178
3179 * dispextern.h (struct it): New member first_vpos.
3180
3181 * xdisp.c (start_display): Set it->first_vpos.
3182 (try_window_id): Use first_vpos to start display in first _text_
3183 line if no reusable lines at start of window with header line.
3184
810f2256
JD
31852003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3186
7c402969 3187 * w32fns.c (XPutPixel):
854c1a59
SM
3188 * w32bdf.c (w32_init_bdf_font):
3189 * sunfns.c (sel_read):
3190 * process.c (Fmake_network_process):
3191 * frame.c (store_frame_param):
3192 * fontset.c (Fset_fontset_font):
3193 * emacs.c (shut_down_emacs):
a64387ee 3194 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 3195
a32e9bfd
JD
3196 * config.in: Regenerate.
3197
810f2256
JD
3198 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3199 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3200 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3201 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3202 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3203
3204 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3205
3206 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3207 (XTmouse_position, handle_one_xevent): Pass Display* to
3208 x_window_to_scroll_bar.
3209 (x_window_to_scroll_bar): Take a Display* argument.
3210 Check that display for frame is equal to Display* argument.
854c1a59 3211 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
3212 x_display_info_for_display instead. Use Display in xev instead
3213 of GDK_DISPLAY.
3214 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 3215 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
3216 (x_connection_closed): Call xg_display_close for GTK.
3217 (x_term_init): Call xg_display_open for additional displays.
3218 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3219 for GTK.
3220
3221 * xmenu.c (single_menu_item, mouse_position_for_popup)
3222 (x_activate_menubar): Formatting adjustments.
3223
3224 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3225 adjustments.
3226
3227 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3228 (xg_display_close, xg_create_default_cursor)
3229 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3230 handling.
854c1a59
SM
3231 (xg_left_ptr_cursor): Remove.
3232 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
3233 cursor here.
3234 (xg_win_to_widget): Take Display* argument, call
3235 gdk_xid_table_lookup_for_display.
3236 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3237 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3238 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3239 in FRAME_X_DISPLAY_INFO.
3240 (xg_get_scroll_id_for_window): Take Display* argument.
3241 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 3242 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
3243
3244 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3245 Display* argument also. Declare xg_display_open,
3246 xg_display_close, xg_create_default_cursor.
3247
0b03cc78
JD
32482003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3249
3250 * xterm.c (x_detect_focus_change): Do not change focus frame for
3251 Enter/LeaveNotify if the current focus frame has explicit focus.
3252
77e688fa
KS
32532003-11-14 Kim F. Storm <storm@cua.dk>
3254
3255 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3256 is active and first glyph is only partially visible.
854c1a59 3257
dd429b03
KH
32582003-11-13 Kenichi Handa <handa@m17n.org>
3259
3260 * xdisp.c (select_frame_for_redisplay): New function.
3261 (redisplay_internal): Record also selected_frame for
3262 unwind_redisplay. Call select_frame_for_redisplay before
3263 redrawing each frame.
3264 (unwind_redisplay): Argument changed to a cons.
3265
6d9266f4
LT
32662003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3267
3268 * fns.c (Fstring_to_multibyte): Doc fix.
3269
80060eb3
KH
32702003-11-11 Kenichi Handa <handa@m17n.org>
3271
3272 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3273
74305183
JD
32742003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3275
3276 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3277 program specified positions.
3278
cfda993e
JD
32792003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3280
3281 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3282
df211069
KH
32832003-11-08 Kenichi Handa <handa@m17n.org>
3284
3285 * Makefile.in (lisp): Add kannada.el.
3286 (shortlisp): Likewise.
3287
4307d534
KH
32882003-11-07 Kenichi Handa <handa@m17n.org>
3289
854c1a59
SM
3290 * coding.c (coding_allocate_composition_data):
3291 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
3292 (coding_restore_composition): Detect invalid composition data.
3293 Give Fstring and Fvector a Lispy integer, not C int.
3294
854c1a59
SM
32952003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3296
3297 * floatfns.c (Flogb): Don't use VALMASK.
3298
3299 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3300 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3301
3302 * lisp.h (XINT): Move the cast to clarify what is going on.
3303 (GCTYPEMASK, XSETTYPE): Remove.
3304 (XGCTYPE): Make it an alias of XTYPE.
3305
d04103a1
JD
33062003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3307
3308 * xterm.c (x_term_init): Fix formatting.
3309
da18b5ac
JD
33102003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3311
3312 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3313 and xg_did_tearoff.
3314
3315 * gtkutil.c: Remove variable xg_did_tearoff.
3316 (xg_have_tear_offs): New function.
3317 (tearoff_remove): Just decrease xg_detached_menus.
3318 (tearoff_activate): Increase xg_detached_menus and call
3319 tearoff_remove when tearoff is removed.
854c1a59 3320 (xg_keep_popup): Remove function.
da18b5ac
JD
3321 (create_menus): Give add_tearoff_p as argument to recursive
3322 call to create_menus.
3323 (xg_create_widget): Use variables instead of multiple
3324 strcmp. Tell create_menus to create tear off only for
3325 menu bar menus.
3326 (xg_update_menubar): Change title for a detached menu also.
3327 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3328 of deep_p.
3329 (xg_initialize): Initialize xg_detached_menus, remove
3330 initialization of xg_did_tearoff.
3331
3332 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3333 xg_have_tear_offs returns non-zero.
3334 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3335 call to xg_keep_popup.
3336
64d4923e
AC
33372003-11-01 Andrew Choi <akochoi@shaw.ca>
3338
3339 * macterm.c (XTread_socket): Handle menubar selection and grow
3340 window only for mouseDown events.
854c1a59 3341
6cc8bc07
JD
33422003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3343
3344 * xterm.c (x_term_init): For GTK part, increase x_initialized
3345 to check for more than one display. Use error instead of return 0.
3346
043131c4
AC
33472003-10-31 Andrew Choi <akochoi@shaw.ca>
3348
854c1a59 3349 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
3350 (copy_dysymtab): Call it.
3351
bdda99a1
LT
33522003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3353
3354 * eval.c (Fdefvaralias): Doc fix.
3355
800f42ff 33562003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
3357
3358 * data.c (Fsetplist): Doc fix.
3359
ef35b389
LK
33602003-10-14 Lute Kamstra <lute@gnu.org>
3361
3362 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 3363
ef35b389 33642003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 3365
07107abc
KS
3366 * window.c (Fset_window_margins): Simplify arg checking.
3367
f7005886
RS
33682003-10-13 Richard M. Stallman <rms@gnu.org>
3369
3370 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3371 (print_partial_compiled_pattern): Replace assert with a printout.
3372 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3373
3374 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3375
3376 * window.c (Fset_window_margins): Allow only integers as args.
3377 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3378 Doc fixes.
3379
9c0c2af5
LK
33802003-10-13 Lute Kamstra <lute@gnu.org>
3381
3382 * window.c (Fset_window_fringes): Elaborate docstring.
3383
3f080e4e
AC
33842003-10-12 Andrew Choi <akochoi@shaw.ca>
3385
854c1a59 3386 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 3387
3f080e4e
AC
3388 * s/darwin.h (GC_MARK_STACK): Define.
3389
0aa513ed
JD
33902003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3391
3392 * window.c (shrink_windows): New function.
3393 (size_window): Call shrink_windows to calculate window sizes when
3394 shrinking frame with more than one window.
3395
6aa8858a
KS
33962003-10-12 Kim F. Storm <storm@cua.dk>
3397
3398 * xdisp.c (compute_fringe_widths): Doc fix.
3399
c2164d91
KH
34002003-10-08 Kenichi Handa <handa@m17n.org>
3401
854c1a59 3402 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 3403
f82ac129
KH
34042003-10-07 Kenichi Handa <handa@m17n.org>
3405
3406 * coding.c (Qcoding_system_define_form): New variable.
3407 (syms_of_coding): Intern and staticpro it.
3408 (Fcheck_coding_system): Try to autoload the definition of
3409 CODING-SYSTEM.
3410
9296c947
LT
34112003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3412
3413 * fns.c (Frequire): Doc fix.
3414
c1f0671a
JD
34152003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3416
3d8c3826
JD
3417 * xfns.c (Fx_send_client_event): New function as a base for
3418 manipulating extended window manager hints.
6dc15d98 3419 (Fx_send_client_event): Remove unused variable s.
3d8c3826 3420
068ae0fd
JD
3421 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3422 that function is removed.
3423
3424 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3425 x/y_pixels_outer_diff.
3426 (x_check_expected_move): Calculate move_offset_left/top.
3427
3428 * xterm.h (struct x_output): New members: move_offset_top/left.
3429
854c1a59 3430 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
3431 call x_set_offset directly.
3432
3433 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3434
96f09305
JD
3435 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3436
3437 * xterm.c (x_delete_display): Free font names and font_encoder
3438 in dpyinfo->font_table.
3439
854c1a59
SM
3440 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3441 Move xfree of font names to x_delete_display.
96f09305 3442
c1f0671a
JD
3443 * xterm.h (struct x_display_info): New member, wm_type.
3444 (struct x_output): New members, expected_top/left and
3445 check_expected_move.
3446
3447 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3448 is received.
854c1a59
SM
3449 (handle_one_xevent): Rename x_check_expected_move from
3450 x_check_fullscreen_move.
c1f0671a
JD
3451 (x_set_offset): Only add WM decoration sizes to modified_top/left
3452 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 3453 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
3454 Removed fullscreen specific code. Use check_expected_move,
3455 expected_left/top instead. Also, set wm_type.
3456 (x_term_init): Initialize wm_type to unknown.
3457
3458 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3459 sizes to move_x/y.
3460
be2fdba9
KH
34612003-10-03 Kenichi Handa <handa@m17n.org>
3462
3463 * macterm.c (x_load_font): Clear all members of FONTP before start
3464 filling them.
3465
34662003-10-02 Kenichi Handa <handa@m17n.org>
3467
3468 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3469 before calling find_ccl_program_func. Call find_ccl_program_func
3470 only when fontp->font_encoder is not NULL.
3471
3472 * xterm.c (x_load_font): Clear all members of FONTP before start
3473 filling them.
3474
26a6e439
JPW
34752003-10-03 John Paul Wallington <jpw@gnu.org>
3476
3477 * keymap.c (map_keymap): Don't abort when binding is a vector.
3478
0d4c2dc2
JR
34792003-10-02 Jason Rumney <jasonr@gnu.org>
3480
854c1a59
SM
3481 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3482 Sync dependencies with Makefile.in.
a63cf46f
JR
3483 (alloca.o): Remove.
3484
0d4c2dc2
JR
3485 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3486 filling them.
3487
3488 * w32bdf.c (w32_load_bdf_font): Likewise.
3489
ab8f7d5c
RS
34902003-09-30 Richard M. Stallman <rms@gnu.org>
3491
3492 * term.c (set_tty_color_mode): Calculate current_mode_spec
3493 regardless of value of VAL.
3494
854c1a59 3495 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
3496 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3497 Handle over_used when splitting UNDER.
3498
a64387ee 34992003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
3500
3501 * regex.c (regex_compile): Free the stack when returning from function.
3502
3413f972
KH
35032003-09-28 Kenichi Handa <handa@m17n.org>
3504
3505 * fontset.c (Finternal_char_font): Change return value to
3506 cons (FONT-NAME . GLYPH-CODE).
3507
a6eeaa81 35082003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
3509
3510 * term.c (tty_setup_colors): Treat any negative argument as -1.
3511
f98ddc99
KH
35122003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3513
3514 * process.c (send_process): Delete unused temp_buf.
3515
66c8f1a8
DL
35162003-09-26 Dave Love <fx@gnu.org>
3517
3518 * xterm.c (x_bitmap_mask): Declare.
3519
ca716c26
DL
35202003-09-25 Dave Love <fx@gnu.org>
3521
3522 * Makefile.in (fns.o): Depend on md5.h.
3523
fbe57420
KS
35242003-09-25 Kim F. Storm <storm@cua.dk>
3525
3526 * window.c (set_window_buffer): Fix redisplay problems when
3527 switching between buffers with different display margin widths.
3528
ef6ae4ff
KS
35292003-09-23 Kim F. Storm <storm@cua.dk>
3530
3531 * process.c (set_socket_option): Fix :bindtodevice option.
3532 (Fset_network_process_option): Update process contact list when
3533 setting option succeeds.
3534 (Fmake_network_process): Doc fix.
3535
68e03c1c
DL
35362003-09-23 Dave Love <fx@gnu.org>
3537
7146d1c1 3538 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 3539
a6eeaa81 35402003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
3541
3542 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3543 color mode is an integer number (it could be -1).
3544
8fe7d8c8
RS
35452003-09-22 Richard M. Stallman <rms@gnu.org>
3546
3547 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3548 in the case where OVER is longer than UNDER.
3549
2f71b5ea
MY
35502003-09-22 Masatake YAMATO <jet@gyve.org>
3551
7146d1c1 3552 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 3553 `vertical_type'.
7146d1c1 3554
0c4da023
KS
35552003-09-21 Kim F. Storm <storm@cua.dk>
3556
3557 * frame.c (Vdefault_frame_scroll_bars): New variable.
3558 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3559 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3560 window-system default scroll bar position.
3561
b648413b
KS
3562 * window.c (Fwindow_scroll_bars): Doc fix.
3563
8f5b9e34
JD
35642003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3565
854c1a59 3566 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 3567
b0f23edf
RS
35682003-09-19 Richard M. Stallman <rms@gnu.org>
3569
3570 * atimer.h: Don't include lisp.h.
3571 (P_): Define it here (as well as elsewhere).
3572
3573 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3574 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3575
3576 * data.c (Fvariable_binding_locus): New function.
3577 (syms_of_data): defsubr it.
3578 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3579
e1283999
DL
35802003-09-18 Dave Love <fx@gnu.org>
3581
ad5f3636
DL
3582 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3583
e1283999
DL
3584 * process.c (Fnetwork_interface_info): Fix type error.
3585 (Fnetwork_interface_list): Doc fix.
3586 (read_process_output, read_process_output): Delete unused var.
3587
b8c7fd71
KS
35882003-09-17 Kim F. Storm <storm@cua.dk>
3589
3590 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
3591 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
3592 (Fnetwork_interface_info): Check that ifreq struct has required
3593 fields before accessing them; this requires that those fields are
3594 defined as macros, which may be too restrictive on some platforms,
3595 but it is better than failing on other platforms.
3596 (syms_of_process): Only defsubr above fns when included.
3597
11e0a411
DL
35982003-09-17 Dave Love <fx@gnu.org>
3599
3600 * unexalpha.c: Don't include varargs.h.
3601
e9c50801
KS
36022003-09-17 Kim F. Storm <storm@cua.dk>
3603
3604 * process.c (Fset_process_sentinel): Add sentinel to childp plist
3605 for network process.
3606 (socket_options): Add `:' prefix to option names. Add optbit field.
3607 (set_socket_option): Remove no_error arg and special handling of s < 0.
3608 Return 1<<optbit for known option, 0 for unknown.
3609 Do not interpret 0 as false for boolean option (only nil).
3610 Pass failed option and value to report_file_error.
7146d1c1 3611 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
3612 (Fset_network_process_option): New function to set just one option.
3613 (Fmake_network_process): Allow :coding arg to be a cons.
3614 Allow :server arg to be an integer specifying backlog size.
3615 Remove :options arg, and allow options to be specified directly
3616 as :KEY, VALUE pairs. Parse these options before binding socket.
3617 As before, :reuseaddr t is default for a server process, but this
3618 can now be disabled by specifying :reuseaddr nil.
3619 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
3620 (init_process): Availability of network options is now checked with
3621 simpler syntax (featurep 'make-network-process :OPTION); use loop to
3622 setup features.
3623 (syms_of_process): Fix defsubr's for the replaced functions.
3624
a0fc3644
DL
36252003-09-16 Dave Love <fx@gnu.org>
3626
3627 * Makefile.in: Depend on coding.h.
3628
6df2a645
KS
36292003-09-14 Kim F. Storm <storm@cua.dk>
3630
3631 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
3632 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
3633 (syms_of_process): Defsubr them.
3634
3635 * config.in: Regenerate.
7146d1c1
SM
3636
36372003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3638
3639 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
3640 * m/news-r6.h (XUNMARK): Remove.
3641 * m/mips.h (XUNMARK): Remove.
3642 * m/mips-siemens.h (XUNMARK): Remove.
3643 * m/iris4d.h (XUNMARK): Remove.
3644 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
3645
0930c1a1
SM
36462003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3647
31003b9e
SM
3648 * lisp.h (VALBITS): Don't remove 1 for the markbit.
3649 (union Lisp_Object): Use unsigned int for types. Remove markbit.
3650 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
3651 (XTYPE): Use unsigned right-shift.
3652 (XMARKBIT, XMARK, XUNMARK): Remove.
3653
0930c1a1
SM
3654 * alloc.c (init_intervals, init_symbol, init_marker):
3655 Don't preallocate anything.
3656 (Fgarbage_collect, mark_object): Ignore the markbit.
3657
3658 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
3659
19bb0fcd 36602003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
3661
3662 * xdisp.c (pint2hrstr): New function.
3663 (decode_mode_spec): Add `%i' and `%I' specs.
3664 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
3665 for `mode-line-format'.
3666
03bb6a06
AS
36672003-09-07 Andreas Schwab <schwab@suse.de>
3668
3669 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
3670 avoid warning.
3671
a6eeaa81 36722003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 3673
0930c1a1 3674 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 3675
ed159bbf
KS
36762003-09-03 Kim F. Storm <storm@cua.dk>
3677
3678 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
3679 change (superseded by 2002-08-30 change); the default blink-off
3680 cursor is now again "no cursor".
3681
fe64a394
JR
36822003-09-01 Jason Rumney <jasonr@gnu.org>
3683
3684 * makefile.w32-in (alloca.o): Remove.
3685 (coding.o): Depend on intervals.h
3686 (emacs.o, bytecode.o): Depend on window.h
3687
c0175e24
DL
36882003-09-01 Dave Love <fx@gnu.org>
3689
3690 * Makefile.in (alloca.o): Remove commands.
3691 (coding.o): Depend on intervals.h composite.h window.h.
3692 (emacs.o): Depend on window.h keyboard.h keymap.h.
3693 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
3694 (bytecode.o): Depend on window.h.
3695
a24d4cb2
JR
36962003-08-31 Jason Rumney <jasonr@gnu.org>
3697
4bc2315e
JR
3698 * w32term.c (w32_per_char_metric): Allow cached metrics to be
3699 returned even when font_type is unknown.
3700
a24d4cb2
JR
3701 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
3702
9d35adc7
JD
37032003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3704
3705 * xterm.c (x_term_init): Initialize new fields in x_display_info.
3706
3707 * xterm.h (struct x_display_info): Add red/green/blue_bits and
3708 *_offset.
3709
3710 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
3711 calculate pixel value.
3712
6f68b035
GM
37132003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
3714
0930c1a1
SM
3715 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
3716 Don't tell redisplay display is accurate when it's actually been
3717 paused for pending input.
6f68b035 3718
4828b4d7
RS
37192003-08-29 Richard M. Stallman <rms@gnu.org>
3720
3721 * dispnew.c (adjust_glyph_matrix): Call window_box
3722 whenever W is nonzero.
3723
3724 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3725 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 3726 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
3727 Use indirect_variable to trace thru variable aliases.
3728
3729 * config.in: Updated.
3730
3731 * callint.c (Fcall_interactively): Save and restore
3732 Vthis_command, Vthis_original_command, real_this_command,
3733 and current_kboard->Vlast_command.
3734
3735 * abbrev.c (Fexpand_abbrev): Insert before deleting.
3736
e019878d
GM
37372003-08-29 Gerd Moellmann <gerd@gnu.org>
3738
3739 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
3740
85478bc6
KH
37412003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
3742
0930c1a1 3743 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
3744 (decode_coding_sjis_big5): Likewise.
3745
07ce82d3
JR
37462003-08-27 Jason Rumney <jasonr@gnu.org>
3747
d3703de3
JR
3748 * w32.c (sys_pipe): Protect against file descriptor overflow.
3749
ee4a01d1
JR
3750 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
3751
07ce82d3
JR
3752 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
3753
a64387ee 37542003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
3755
3756 * xfns.c (Vgtk_version_string): New variable.
3757 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
3758
a6eeaa81 37592003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 3760
0930c1a1 3761 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 3762
5459e42a
EZ
3763 * Makefile.in (msdos.o): Depend on intervals.h.
3764
0930c1a1 3765 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 3766
231d6cfb
JD
37672003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3768
3769 * xterm.h (struct x_display_info): New fields: client_leader_window
3770 and Xatom_wm_client_leader.
3771
3772 * xterm.c (x_initialize): Move call to x_session_initialize to ...
3773 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
3774
3775 * xsmfns.c (create_client_leader_window): New function.
3776 (x_session_initialize): Call create_client_leader_window, take
3777 dpyinfo as argument.
3778
3779 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
3780
3781 * Makefile.in (xsmfns.o): Add more depenedencies.
3782
afa88464
DL
37832003-08-21 Dave Love <fx@gnu.org>
3784
3785 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
3786
f730033e
KH
37872003-08-21 Kenichi Handa <handa@m17n.org>
3788
3789 * term.c (term_init): Fix previous change; don't rely on the
3790 length of `buffer' if TERMINFO is defined.
3791
6dca786c
DL
37922003-08-20 Dave Love <fx@gnu.org>
3793
3794 * atimer.h: Include lisp.h.
3795
3796 * lisp.h (EMACS_LISP_H): New.
3797 (popup_activated_flag): Don't declare.
3798
3799 * alloca.c: Some merging with gnulib. Change logic and doc
3800 concerning (x)malloc/(x)free -- no longer Emacs-specific.
3801 [DO_BLOCK_INPUT]: Don't include lisp.h.
3802 (xmalloc, xfree): Declare.
3803 (malloc): Don't declare.
3804
0930c1a1 3805 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
3806 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
3807 atimer.h, blockinput.h.
3808
3809 * alloc.c (lisp_align_malloc): Change type of `aligned'.
3810
3811 * alloca.s: Removed.
3812
3a06a6d9
RS
38132003-08-19 Gerd Moellmann <gerd@gnu.org>
3814
3815 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
3816 use -lncurses.
3817
3818 * term.c (term_init): Use a buffer of size 4096 for tgetent since
3819 FreeBSD returns something longer than 2044. Abort if the end of
3820 the buffer is overwritten.
3821
27eeee55
MB
38222003-08-19 Miles Bader <miles@gnu.org>
3823
3824 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
3825
2f297815
GM
38262003-08-19 Gerd Moellmann <gerd@gnu.org>
3827
f4446bbf
GM
3828 * alloc.c (lisp_align_malloc): Check for memory full when
3829 allocating ablocks, which also avoids freeing a pointer into an
3830 ablocks structure.
3831
3832 * puresize.h (BASE_PURESIZE): Increase to 1100000.
3833
0930c1a1 3834 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 3835
0e7d7aae
RS
38362003-08-16 Richard M. Stallman <rms@gnu.org>
3837
3838 * editfns.c (Fencode_time): Doc fix.
3839
38402003-08-16 David Ponce <david@dponce.com>
3841
3842 * fileio.c (Fwrite_region): Fix conditional expression to issue
3843 the right message.
3844
38452003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
3846
3847 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 3848 Set default value to 1.
0e7d7aae 3849
5d551295
KH
38502003-08-15 Kenichi Handa <handa@m17n.org>
3851
3852 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
3853 what autoscaled.
3854 (best_matching_font): Once we find a better scalable font, set
3855 non_scalable_has_exact_height_p to 1.
3856 (try_font_list): Call try_alternative_families to try any family
3857 with the given registry.
3858
1661e56b
AS
38592003-08-09 Andreas Schwab <schwab@suse.de>
3860
f29181dc
AS
3861 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
3862
1661e56b
AS
3863 * print.c (print_string): Fix printing of multibyte string with
3864 nontrivial printcharfun.
3865
465aa50a
JD
38662003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3867
3868 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
3869
3870 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
3871
e430e5ba
KH
38722003-07-31 Kenichi Handa <handa@m17n.org>
3873
3874 * process.c (read_process_output): Return the actually read bytes
3875 instead of the result of decoding.
3876
97e7188e
KH
38772003-07-31 Kenichi Handa <handa@m17n.org>
3878
3879 * xterm.h (struct x_bitmap_record): New member have_mask.
3880
3881 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
3882 to 0.
3883 (x_create_bitmap_from_file): Likewise.
3884 (x_destroy_bitmap): Check have_mask member before freeing a mask.
3885 (x_destroy_all_bitmaps): Likewise.
3886 (x_create_bitmap_mask): Set have_mask member to 1.
3887
b53094d6
RS
38882003-07-30 Richard M. Stallman <rms@gnu.org>
3889
3890 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
3891
631f2082
JD
38922003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3893
3894 * gtkutil.c (xg_mark_data): Update calls to mark_object.
3895
c855f2ca
RS
38962003-07-29 Richard M. Stallman <rms@gnu.org>
3897
3898 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
3899 Conditionalize XIM code on HAVE_XIM.
3900
3901 * fns.c (Fclear_string): New function.
3902 (syms_of_fns): defsubr it.
3903
17e6d491
KH
39042003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3905
0930c1a1 3906 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 3907
29ea8ae9
SM
39082003-07-22 Stefan Monnier <monnier@cs.yale.edu>
3909
3910 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
3911
3912 * buffer.c (delete_all_overlays): New function.
3913 * buffer.h (delete_all_overlays): Declare.
3914 * coding.c (run_pre_post_conversion_on_str):
3915 * print.c (temp_output_buffer_setup):
3916 * fileio.c (Finsert_file_contents):
3917 * minibuf.c (get_minibuffer): Use it.
3918
1dd7ccf2
AC
39192003-07-22 Andrew Choi <akochoi@shaw.ca>
3920
3921 * unexmacosx.c (unexec_regions_sort_compare):
3922 (unexec_regions_merge): New functions. Sort and merge unexec
3923 regions before dumping them.
3924
f57bd967
DL
39252003-07-22 Dave Love <fx@gnu.org>
3926
3927 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
3928
7cdee936
SM
39292003-07-21 Stefan Monnier <monnier@cs.yale.edu>
3930
3931 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
3932 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
3933 MARKBIT as the gcmarkbit for strings.
3934
e50886d3
RS
39352003-07-21 Richard M. Stallman <rms@gnu.org>
3936
3937 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
3938
29ea8ae9 3939 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
3940 (syms_of_fns): Corresponding change.
3941
3942 * alloc.c (syms_of_alloc): Doc fixes.
3943
39442003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
3945
3946 * s/netbsd.h: Use -Wl syntax.
3947
fdc39b59
RS
39482003-07-17 Richard M. Stallman <rms@gnu.org>
3949
3950 * xterm.c (xim_initialize): Redo 6/24 change.
3951
9c53385f
SM
39522003-07-15 Stefan Monnier <monnier@cs.yale.edu>
3953
3954 * buffer.c (copy_overlays): Use EMACS_INT for positions.
3955 (Fswitch_to_buffer): Don't signal an error when switching to the same
3956 buffer in a dedicated window.
3957
3958 * alloc.c: Use bitmaps for cons, as was done for floats.
3959 (init_float, init_cons): Let the normal code allocate the first block.
3960 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
3961 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
3962 New macros.
3963 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
3964 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
3965 (live_cons_p): Check the pointer is not past the `conses' array.
3966 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
3967 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
3968 (survives_gc_p): Use CONS_MARKED_P and simplify.
3969 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
3970
dde13196
PE
39712003-07-13 Paul Eggert <eggert@twinsun.com>
3972
3973 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
3974 puts it into BSS instead, at least on Solaris 8 and 9.
3975 This is a valid optimization, and it may occur on other platforms,
3976 so Emacs should not assume that initializing a static variable to
3977 zero puts it into data.
3978 * alloc.c (pure, staticvec):
3979 Initialize these arrays to nonzero, so that they're not
3980 put into BSS by that optimization.
3981
a801bc34
SM
39822003-07-13 Stefan Monnier <monnier@cs.yale.edu>
3983
3984 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
3985 (lisp_align_malloc): Use posix_memalign is available.
3986 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
3987 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
3988 for consistency. Update users.
3989
0c8b2afa
RS
39902003-07-13 Richard M. Stallman <rms@gnu.org>
3991
3992 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
3993
668c2ab0
JB
39942003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
3995
3996 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
3997 and use the Gtk+ function gtk_window_icon_from_file if available.
3998
3999 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4000 handle mask of bitmaps.
4001 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4002 mask property.
4003 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4004
4005 * xterm.h (xg_set_icon): New function.
4006
800bebe3
RS
40072003-07-12 Paul Eggert <eggert@twinsun.com>
4008
4009 * unexelf.c (unexec): Consider a section to precede the .bss
4010 section if its addresses overlap that of .bss.
4011
69e38995
RS
40122003-07-12 Richard M. Stallman <rms@gnu.org>
4013
4014 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4015
4016 * config.in (HAVE_CRTIN): Add #undef.
4017 (INLINE): Really inline only if OPTIMIZE is defined.
4018
4019 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4020 END_FILES_1.
4021 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4022 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4023
4024 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4025 (TERMINFO): Define.
4026 (LIBS_TERMCAP): Define.
4027 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4028
4029 * xfns.c: Include libpng/png.h instead of png.h.
4030
f1d0c238
AS
40312003-07-11 Andreas Schwab <schwab@suse.de>
4032
4033 * buffer.c (modify_overlay): Update prototype.
4034 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4035 Likewise.
4036
5f6bf5fe
SM
40372003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4038
4039 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4040 (struct interval): Move to intervals.h.
4041 (struct Lisp_Marker): Use EMACS_INT for position info.
4042 (forward_point): Remove prototype of defunct function.
4043 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4044 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4045 (syms_of_textprop, set_text_properties): Remove prototypes that are
4046 already in intervals.h.
4047
4048 * intervals.h (struct interval): Move from lisp.h.
4049 Use EMACS_INT for position and size info.
4050
4051 * coding.c: Include intervals.h for Fset_text_properties.
4052
4053 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4054 position and length information.
4055
2765b457
SM
40562003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4057
4058 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4059 position and length information.
4060
2410d73a
SM
40612003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4062
4063 Change overlays_after and overlays_before so the overlays themselves
4064 are linked into lists, rather than using cons cells. After all each
4065 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4066 Lisp_Overlay for free and save up one cons cell per overlay (not
4067 to mention one indirection when traversing the list of overlay).
4068
4069 * lisp.h (struct Lisp_Overlay): New field `next'.
4070
4071 * buffer.h (struct buffer): Change overlays_before and overlays_after
4072 from Lisp lists of overlays to pointers to overlays.
4073
4074 * buffer.c (overlay_strings, recenter_overlay_lists):
4075 Fix typo in eassert in last commit.
4076 (unchain_overlay): New function.
4077 (add_overlay_mod_hooklist): Use AREF.
4078 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4079 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4080 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4081 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4082 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4083 Adjust to new type of overlays_(before|after).
4084
4085 * alloc.c (mark_object): Mark the new `next' field of overlays.
4086 (mark_buffer): Manually mark the overlays_(after|before) fields.
4087
4088 * coding.c (run_pre_post_conversion_on_str):
4089 * editfns.c (overlays_around):
4090 * xdisp.c (load_overlay_strings):
4091 * fileio.c (Finsert_file_contents):
4092 * indent.c (current_column):
4093 * insdel.c (signal_before_change, signal_after_change):
4094 * intervals.c (set_point_both):
4095 * print.c (temp_output_buffer_setup): Use new type for
4096 overlays_(before|after).
4097
04812929
SM
40982003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4099
4100 * buffer.c (report_overlay_modification): Don't run hooks while
4101 traversing the list of overlays.
4102
4103 * buffer.h (struct buffer): Use an int for overlay_center.
4104 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4105 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4106
4107 * buffer.c (reset_buffer, recenter_overlay_lists)
4108 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4109 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4110 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4111 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4112 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4113
4114 * xdisp.c (fast_find_position): Remove unused var.
4115
4116 * cmds.c (Qexpand_abbrev): New sym.
4117 (syms_of_cmds): Initialize it.
4118 (internal_self_insert): Use it to call expand-abbrev.
4119
2e7ecf15
KS
41202003-07-09 Kim F. Storm <storm@cua.dk>
4121
f9711de4 4122 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4123 was configured with --without-xim.
42f81f64 4124 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4125
c6de56a0
RS
41262003-07-07 Richard M. Stallman <rms@gnu.org>
4127
4128 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4129
4130 * alloc.c (Fgarbage_collect): Doc fix.
4131
b93fb365
KH
41322003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4133
4134 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4135
bfe1a3f7
SM
41362003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4137
04812929
SM
4138 * minibuf.c (read_minibuf): UNGCPRO before returning.
4139 (Ftry_completion, Fall_completions): Doc fix.
4140
bfe1a3f7
SM
4141 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4142 now that `floats' is not the last element of the struct any more.
4143
ee79d1aa
JR
41442003-07-06 Jason Rumney <jasonr@gnu.org>
4145
4146 * w32term.h (ClipboardSequence_Proc): New type.
4147
4148 * w32fns.c (clipboard_sequence_fn): New variable.
4149 (globals_of_w32fns): Initialize it.
4150
4151 * w32select.c (last_clipboard_sequence_number): New variable.
4152 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4153 number if possible.
4154
49723c04
SM
41552003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4156
4698665f
SM
4157 * m/amdx86-64.h (MARKBIT):
4158 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4159 MARKBIT and ARRAY_MARK_FLAG any more.
4160
4161 * m/hp800.h (XSETMARKBIT):
4162 * m/sr2k.h (XSETMARKBIT):
4163 * lisp.h (XSETMARKBIT): Remove unused macro.
4164
49723c04
SM
4165 * lisp.h (mark_object): Change prototype.
4166
4167 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4168 (last_marked): Change accordingly.
4169 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4170 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4171 (mark_buffer): Update calls to mark_object.
4172
4173 * bytecode.c (mark_byte_stack):
4174 * fns.c (sweep_weak_table):
4175 * keyboard.c (mark_kboards): Update calls to mark_object.
4176
1d660eca
JR
41772003-07-06 Jason Rumney <jasonr@gnu.org>
4178
4179 * alloc.c (struct ablock): Only include padding when there is some.
4180
618b5ae4
SM
41812003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4182
4183 * alloc.c (ALIGN): Add casts to simplify usage.
4184 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4185 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4186 (struct ablock, struct ablocks): New types.
4187 (free_ablock): New global var.
4188 (lisp_align_malloc, lisp_align_free): New functions.
4189 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4190 (struct float_block): Reorder and add gcmarkbits.
4191 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4192 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4193 (init_float, make_float): Use lisp_align_malloc.
4194 (free_float, live_float_p): Don't use `type' any more.
4195 (make_float): Use FLOAT_UNMARK to access to mark bit.
4196 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4197 Use FLOAT_MARKED_P to access the mark bit.
4198 (pure_alloc): Simplify use of ALIGN.
4199 (mark_object): Use FLOAT_MARK to access the mark bit.
4200 (gc_sweep): Use new macros to access the float's mark bit.
4201 (init_alloc_once): Init free_ablock.
4202
4203 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4204
3ef06d12
SM
42052003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4206
4207 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4208 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4209 (allocate_buffer): Move.
4210 (string_bytes): Don't mask markbit of `size_byte'.
4211 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4212 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4213 Use the `size' field of buffers (rather than the `name' field) for
4214 the mark bit, as is done for all other vectorlike objects.
4215 Use the new macros to access the mark bit of vectorlike objects.
4216
e81043aa
RS
42172003-06-26 Richard M. Stallman <rms@gnu.org>
4218
4219 * puresize.h (BASE_PURESIZE): Increment base size.
4220
4221 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4222
4223 * xterm.c (xim_initialize): Undo previous change.
4224
2d0834cc
SM
42252003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4226
4227 * alloc.c (survives_gc_p): Simplify.
4228
4229 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4230
4231 * window.c (Fset_window_dedicated_p): Simplify.
4232 (display_buffer_1): Don't raise the win from which minibuf was entered.
4233 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4234 (Fminibuffer_selected_window): Simplify.
4235
4236 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4237
4238 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4239 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4240
4241 * insdel.c (check_markers, adjust_markers_for_delete)
4242 (adjust_markers_for_insert, adjust_markers_for_replace)
4243 (prepare_to_modify_buffer, RESTORE_VALUE):
4244 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4245 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4246 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4247 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4248 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4249 * editfns.c (save_excursion_restore, transpose_markers):
4250 * window.c (delete_window):
4251 * xdisp.c (message_dolog): Update for new types.
4252
d54ae3d8
JD
42532003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4254
a5f696ac
JD
4255 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4256 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 4257 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
4258
4259 * frame.c (make_frame): Initialize default_face_done_p.
4260
4261 * frame.h (struct frame): Add default_face_done_p.
4262
d54ae3d8
JD
4263 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4264 will be defined.
4265
2336fe58
SM
42662003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4267
4268 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4269 Initialize the new field `gcmarkbit'.
4270 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4271 (mark_interval_tree): Don't mark the tree separately from the nodes.
4272 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4273 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4274 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4275
4276 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4277 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4278 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4279 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4280 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4281
bcea31c2
DL
42822003-06-24 Dave Love <fx@gnu.org>
4283
4284 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4285
4286 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4287 from gnulib.
4288
2601f59e
RS
42892003-06-21 Richard M. Stallman <rms@gnu.org>
4290
4291 * fileio.c (Fwrite_region): Alternate messages
4292 for append and partial write.
4293
4294 * keyboard.c (read_key_sequence): When converting upcase fn key to
4295 downcase, update fkey and keytran so `backspace' gets translated.
4296
4297 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4298
4299 * process.c (wait_reading_process_input): Don't signal SIGIO
4300 in batch mode.
4301
b5d2c621
KH
43022003-06-17 Kenichi Handa <handa@m17n.org>
4303
4304 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4305 composite.h.
4306
4307 * xselect.c: Don't include charset.h, coding.h, composite.h.
4308 (Qforeign_selection): New variable.
4309 (syms_of_xselect): Intern and static it.
4310 (selection_data_to_lisp_data): Return a unibyte string made from
4311 data with `foreign-selection' text property.
4312
6793bc63
SM
43132003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4314
4315 * termhooks.h (EVENT_INIT): New macro.
4316
4317 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4318
4319 * alloc.c (mark_kboards): Move to keyboard.c.
4320
4321 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4322 * xterm.c (x_dispatch_event):
4323 * xmenu.c (find_and_call_menu_selection):
4324 * xdisp.c (handle_tool_bar_click):
4325 * w32menu.c (menubar_selection_callback):
4326 * sysdep.c (kbd_input_ast, read_input_waiting):
4327 * msdos.c (dos_rawgetc):
4328 * macterm.c (mac_check_for_quit_char):
4329 * macmenu.c (menubar_selection_callback):
4330 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4331 data to kbd_buffer_store_event.
4332
b3ea810c
KS
43332003-06-15 Kim F. Storm <storm@cua.dk>
4334
4335 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 4336 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 4337
b8f75eda
KG
43382003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4339
4340 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4341
ba92ce48
KH
43422003-06-12 Kenichi Handa <handa@m17n.org>
4343
4344 * fileio.c (Fwrite_region): Save and restore restriction.
4345
b80263be
DL
43462003-06-12 Dave Love <fx@gnu.org>
4347
4348 * alloca.c (alloca): Declare arg as size_t.
4349
6793bc63
SM
4350 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4351 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 4352
b23c0a83
DL
43532003-06-11 Dave Love <fx@gnu.org>
4354
4355 * search.c (shrink_regexp_cache): Use xrealloc.
4356 (syms_of_search): Use xmalloc.
4357
700e47c2
KS
43582003-06-10 Kim F. Storm <storm@cua.dk>
4359
4360 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4361 Adjust phys_cursor.x to be relative to window box, rather than
4362 text area before checking -- to ensure cursor is redrawn when
4363 exposing window.
4364 Note: This also fixes a similar (older) bug if display margins
4365 are present.
4366
f11aa0b2
KH
43672003-06-06 Kenichi Handa <handa@m17n.org>
4368
4369 * coding.c (encoding_buffer_size): If coding->type is
4370 coding_type_ccl, double magnification on CRLF encoding.
4371
3d143690
JR
43722003-06-06 Jason Rumney <jasonr@gnu.org>
4373
4374 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4375 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4376
4377 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4378 Mac too.
4379
f16205ca
DL
43802003-06-05 Dave Love <fx@gnu.org>
4381
b23c0a83
DL
4382 * strftime.c: Merge changes from gnulib.
4383
f16205ca
DL
4384 * mktime.c (__mktime_internal): Merge changes from gnulib
4385 involving year 69 and dst2.
4386
4387 Changes to merge with gnulib version and be consistent with the
4388 autoconf test:
4389
6793bc63
SM
4390 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4391 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
4392 [HAVE_LOCALE_H]: Include locale.h.
4393 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4394
9b87a0bc
KS
43952003-06-05 Kim F. Storm <storm@cua.dk>
4396
4397 * window.c (coordinates_in_window): Convert X and Y to window
4398 relative coordinates inside mode-line and header-line parts.
4399 Convert X and Y to margin area relative coordinates inside left
4400 and right display margin parts.
4401
5a8a15ec
JR
44022003-06-05 Jason Rumney <jasonr@gnu.org>
4403
4404 * w32fns.c (add_system_logical_colors_to_map): New function.
4405 (Fx_open_connection): Use it.
4406
01ed8ff1
SM
44072003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4408
4409 * process.c (allocate_pty): Revert part of the previous patch.
4410 (Faccept_process_output): Simplify.
4411
b427b65d
JR
44122003-06-04 Jason Rumney <jasonr@gnu.org>
4413
4414 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4415
4416 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4417 (lispy_mouse_wheel_names): Remove.
4418 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4419 Always define drag_and_drop_syms.
4420
4421 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4422 WHEEL_EVENT events.
4423
914a8c47
SM
44242003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4425
01ed8ff1
SM
4426 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4427
914a8c47
SM
4428 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4429
adcb132c
JD
44302003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4431
4432 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4433 menu item label.
4434
be781fa7
RS
44352003-06-03 Richard M. Stallman <rms@gnu.org>
4436
4437 * window.c (Fwindow_edges): Doc fix.
4438 (Fwindow_pixel_edges, Fwindow_inside_edges)
4439 (Fwindow_inside_pixel_edges): New functions.
4440 (syms_of_window): defsubr them.
4441
4442 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4443 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4444
914a8c47
SM
44452003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4446
4447 * dispnew.c (Fsit_for): Don't lie about the number of args.
4448
5b07197a
DL
44492003-06-02 Dave Love <fx@gnu.org>
4450
4451 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4452 (syms_of_callproc) <process-environment>: Doc fix.
4453
4454 * doc.c: Use HAVE_FCNTL_H, not USG5.
4455
4456 * xfaces.c (font_rescale_ratio): Fix for K&R.
4457
4458 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4459
4460 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4461
4462 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4463
4464 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4465 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4466
d7107586 4467 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
4468
4469 * xmenu.c (ENCODE_MENU_STRING): New.
4470 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4471 Use it.
4472
4473 * coding.h (ENCODE_UTF_8): New.
4474 (Qutf_8): Declare.
4475
4476 * coding.c (Qutf_8): New.
4477 (syms_of_coding): Intern it.
4478
4479 * fns.c: Doc fixes.
4480
7335b336
KH
44812003-06-02 Kenichi Handa <handa@m17n.org>
4482
4483 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4484
914a8c47
SM
44852003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4486
4487 * lread.c (openp): Make sure STR is a string.
4488
9862c135
JR
44892003-06-01 David Ponce <david@dponce.com>
4490
4491 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4492 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4493
4494 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4495 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4496 (discard_mouse_events): Discard WHEEL_EVENT events too.
4497 (lispy_wheel_names, wheel_syms): New.
4498 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4499 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4500 defined.
914a8c47 4501 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
4502
4503 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4504 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4505 WHEEL_EVENT events.
4506
f984e73e
JPW
45072003-05-31 John Paul Wallington <jpw@gnu.org>
4508
4509 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4510 timer are in lisp/emacs-lisp.
4511
1efcd78f
KH
45122003-05-31 Kenichi Handa <handa@m17n.org>
4513
458c8af4
KH
4514 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4515 region when a buffer is changed to unibyte.
4516
1efcd78f
KH
4517 * charset.h (VALID_LEADING_CODE_P): New macro.
4518 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4519
778e2804
KH
4520 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4521 is nonzero, accept multibyte form of eight-bit-control chars.
4522 (decode_composition_emacs_mule): Likewise.
4523 (decode_coding_emacs_mule): Likewise.
4524 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4525 multibyte form of eight-bit-control chars.
4526
4527 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4528 (Finsert_file_contents): If coding-system-for-read is bound to
4529 Qauto_save_coding, use the coding system emacs-mule with special
4530 setting for recovering a file.
4531 (choose_write_coding_system): On auto saving, use the coding
4532 system emacs-mule with special setting for auto saving.
4533 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4534
034060e4
KH
45352003-05-30 Kenichi Handa <handa@m17n.org>
4536
4537 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4538 properly before calling ccl_driver.
4539
778e2804 4540 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
4541
4542 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4543 nonzero.
4544 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4545 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4546
595f5aa5
GM
45472003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4548
4549 * xfaces.c (realize_default_face): Do not abort if lface is
4550 non-existent - reverts change from 2003-05-19.
4551
103e0180
KH
45522003-05-29 Kenichi Handa <handa@m17n.org>
4553
4554 * coding.c (decode_coding_iso2022): Pay attention to the byte
4555 sequence of CTEXT extended segment, and retain those bytes as is.
4556
45572003-05-28 Kenichi Handa <handa@m17n.org>
4558
4559 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4560 of CODING_REPLACEMENT_CHARACTER.
4561 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4562 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4563 check this flag on encoding.
4564 (encode_coding_sjis_big5): Check
4565 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4566 (Fset_terminal_coding_system_internal): Set
4567 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4568 instead of setting CODING_FLAG_ISO_SAFE flag in
4569 terminal_coding.flags.
4570
4571 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4572 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4573 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4574
ff6a3bfb 45752003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 4576
ff6a3bfb
RS
4577 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4578
4579 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 4580
1963c428
KS
45812003-05-28 Kim F. Storm <storm@cua.dk>
4582
4583 * xdisp.c (expose_window): Fix error in calculation of
4584 window relative coordinates of area to redisplay.
4585
2b5d4601
JR
45862003-05-27 Jason Rumney <jasonr@gnu.org>
4587
4588 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
4589
1c64a4a2
JB
45902003-05-27 David Ponce <david@dponce.com>
4591
4592 Handle W32 mouse wheel events as mouse click events, like in X.
4593
4594 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
4595 MOUSE_WHEEL_EVENT anymore.
4596
4597 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
4598 Scrolling down/up the mouse wheel is respectively mapped to mouse
4599 button 4 and 5.
4600 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4601 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
4602 WM_MOUSEWHEEL events.
4603
2d031b89
AS
46042003-05-27 Andreas Schwab <schwab@suse.de>
4605
20464fdf
AS
4606 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
4607
2d031b89
AS
4608 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
4609 partially visible line.
4610
4611 * alloc.c (Fgarbage_collect): Fix last change.
4612
97bc76d4
JPW
46132003-05-26 John Paul Wallington <jpw@gnu.org>
4614
4615 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
4616
56613f06
SM
46172003-05-25 Stefan Monnier <monnier@cs.yale.edu>
4618
4619 * window.c (Fset_window_buffer): Add type of `keep_margins'.
4620 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
4621
4622 * window.h (window_box_text_cols): Declare.
4623
4624 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
4625 (x_draw_vertical_border): Remove unused var `f'.
4626
4627 * xfaces.c (build_scalable_font_name): Remove `unused var
4628 pixel_size' warning.
4629
4630 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
4631
4632 * unexelf.c (unexec): Remove `unused var n' warning.
4633
4634 * strftime.c (my_strftime_localtime_r): Remove `defined but
4635 unused' warning.
4636
4637 * process.c (allocate_pty): Remove `unused var stb' and
4638 `cp might be used uninitialized' warnings.
4639
4640 * dispnew.c (mode_line_string): Remove unused var `f'.
4641
4642 * coding.c (find_safe_codings): Remove unused var `i'.
4643
4644 * bytecode.c (Fbyte_code): Remove `unused val' warning.
4645
4646 * buffer.c (Fkill_buffer): Remove unused var `list'.
4647
4648 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
4649
93421a1f
JD
46502003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4651
4652 * frame.c (make_frame): Condition want_fullscreen with
4653 HAVE_WINDOW_SYSTEM.
4654
c4b8aebc
JB
46552003-05-25 Juanma Barranquero <lektu@terra.es>
4656
4657 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
4658 (Fwindow_scroll_bars): Fix typo in docstring.
4659
0416870b
KS
46602003-05-24 Kim F. Storm <storm@cua.dk>
4661
4662 The following changes serve several purposes:
4663
4664 1) Swap the position of fringes and display margins in windows, i.e.
4665 the fringes are now displayed between the margins and the text area
4666 (by default).
4667
4668 2) Allow fringe and scroll bar parameters to be set per-buffer and
4669 per-window (like display margins). Such settings are now stored
4670 in window configurations, preserved when frames are resized, and
9018a88e 4671 copied when windows are split vertically or horizontally.
0416870b
KS
4672 Several bugs related to display margins have been fixed.
4673
4674 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 4675
0416870b
KS
4676 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
4677 rather than FRAME_WIDTH (FRAME_FONT (f)).
4678
4679 5) Introduce a consistent naming of variables, members and macros
4680 depending on whether their value is measured in pixels or in
4681 canonical columns/lines. Pixel dimensions are named *_width and
4682 *_height, while canonical columns/lines are named *_cols and
4683 *_lines. Pixel positions are named *_x and *_y, while column/line
4684 positions are named *_col and *_line.
4685
4686 6) Consolidate more of the X, W32, and MAC gui code by moving
4687 common data into struct frame, and generalize it for the non-gui
4688 case by using suitable defaults.
4689
4690 7) Cleanup and consolidate the macros controlling frame and window
4691 layout into frame.h and window.h, and generalize the use of the
4692 various window_box_* functions (enhanced to handle the new fringe
4693 position and the per-window fringe and scroll bar settings).
4694
4695 * frame.h (struct frame): Rename members height to text_lines,
4696 width to text_cols, window_height to total_lines, window_width to
4697 total_cols, new_height to new_text_lines, new_width to
4698 new_text_cols. All uses changed.
4699 (struct frame): New members which consolidate common members of
4700 x_output, w32_output, and mac_output structures: left_pos,
4701 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
4702 win_gravity, size_hint_flags, border_width, internal_border_width,
4703 line_height, fringe_cols, left_fringe_width, right_fringe_width,
4704 want_fullscreen. All uses changed.
4705 (struct frame): New member column_width contaning the canonical
4706 column width, analogue to line_height. All uses changed.
4707 (struct frame): Rename members scroll_bar_pixel_width to
4708 config_scroll_bar_width, and scroll_bar_cols to
4709 config_scroll_bar_cols. All uses changed.
4710 (struct frame): New member scroll_bar_actual_width which
4711 consolidates and renames the vertical_scroll_bar_extra member of
4712 x_output, w32_output, and mac_output structures. All uses changed.
4713 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
4714 from x/w32/macterm.h files. All uses changed. Also change code
4715 which referred to f->output_data...->pixel_height.
4716 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 4717 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
4718 which referred to f->output_data...->pixel_width.
4719 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
4720 Also change code which referred to f->height.
4721 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
4722 Also change code which referred to f->width.
4723 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
4724 to update new_text_lines and new_text_cols members directly.
4725 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
4726 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
4727 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
4728 FRAME_SCROLL_BAR_COLS. All uses changed.
4729 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
4730 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
4731 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
4732 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
4733 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
4734 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
4735 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
4736 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
4737 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
4738 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
4739 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
4740 return line_height member (it now has proper value also for
4741 non-window frames).
4742 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
4743 return new column_width member (rather than the default font width).
4744 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
4745 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
4746 from x/w32/macterm.h files. Unconditionally return corresponding
4747 member of frame structure (they now have proper values also for
4748 non-window frames).
4749 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
4750 Calculate return value from left and right widths.
4751 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
4752 internal_border_width member (has proper value for non-window frame).
4753 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
4754 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
4755 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
4756 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
4757 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
4758 consolidated from xterm.h, macterm.h, and w32term.h.
4759 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
4760 consolidated from xterm.h, macterm.h, and w32term.h.
4761 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
4762 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
4763 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
4764 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
4765 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
4766 consolidated from x/mac/w32term.h.
4767 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
4768 consolidated from x/mac/w32term.h.
4769 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
4770 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
4771 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
4772 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
4773
4774 * window.h (struct window): Rename members left to left_col,
4775 top to top_line, height to total_lines, width to total_cols,
4776 left_margin_width to left_margin_cols, right_margin_width to
4777 right_margin_cols, orig_height to orig_total_lines, orig_top to
4778 orig_top_line. All uses changed.
4779 (struct window): New members left_fringe_width, right_fringe_width,
4780 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
4781 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
4782 New macros primarily used to simplify other macros.
4783 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
4784 referred to XINT (w->width).
4785 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
4786 referred to XINT (w->height).
4787 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
4788 referred to XINT (w->width) * canon_x_unit.
4789 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
4790 referred to XINT (w->height) * canon_y_unit.
4791 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
4792 referred to XINT (w->left).
4793 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
4794 all uses and code that referred to XINT (w->left) + XINT (w->width).
4795 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
4796 referred to XINT (w->top).
4797 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
4798 referred to XINT (w->top) + XINT (w->height).
4799 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
4800 referred to XINT (w->left) * canon_x_unit.
4801 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
4802 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
4803 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
4804 referred to XINT (w->top) * canon_y_unit.
4805 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
4806 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
4807 (WINDOW_LEFTMOST_P): New macro.
4808 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
4809 All uses changed.
4810 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
4811 All uses changed.
4812 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
4813 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
4814 Do not exclude left fringe width.
4815 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
4816 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
4817 Do not exclude fringe widths.
4818 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
4819 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
4820 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
4821 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
4822 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
4823 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
4824 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
4825 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
4826 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
4827 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
4828 New macros. Change code which referenced corresponding
4829 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
4830 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
4831 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
4832 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
4833 allow per-window scroll-bar settings.
4834 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
4835 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
4836 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
4837 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
4838 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
4839 FRAME_SCROLL_BAR_WIDTH.
4840 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 4841 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
4842 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
4843 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
4844 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
4845 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
4846 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
4847 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
4848 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4849 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4850 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
4851 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
4852 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4853 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
4854 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4855 (window_from_coordinates): Update prototype.
4856 (Fset_window_buffer): Update EXFUN.
4857 (set_window_buffer): Update prototype.
9018a88e 4858
0416870b 4859 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 4860 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
4861 changed.
4862 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
4863 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
4864 internal_border_width is now set to 0 for non-window frames.
4865 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
4866 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
4867 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
4868 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
4869 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
4870 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4871 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4872 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
4873 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 4874 Move to window.h and renamed [see window.h changes].
0416870b
KS
4875 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
4876 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
4877 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
4878 Use WINDOW_TOTAL_LINES.
0416870b
KS
4879 (frame_update_line_height): Remove prototype.
4880
4881 * buffer.h (struct buffer): Rename members measured in columns:
4882 left_margin_width to left_margin_cols, right_margin_width to
4883 right_margin_cols. All uses changed.
4884 New members left_fringe_width, right_fringe_width,
4885 fringes_outside_margins for per-buffer fringe settings.
4886 New members scroll_bar_width and vertical_scroll_bar_type for
4887 per-buffer scroll bar settings.
4888
4889 * buffer.c (init_buffer_once): Set buffer_defaults and
4890 buffer_local_flags for new buffer-local variables
4891 left_fringe_width, right_fringe_width, fringes_outside_margins,
4892 scroll_bar_width, and vertical_scroll_bar_type.
4893 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
4894 default-* variables for them.
4895
4896 * dispnew.c: Make (many) trivial substitutions for renamed and
4897 new macros in dispextern.h, frame.h and window.h.
4898 (mode_line_string): No need to adjust width for mode lines, as it
4899 is already adjusted by the caller.
4900 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 4901
0416870b
KS
4902 * frame.c: Make (many) trivial substitutions for renamed and
4903 new macros in dispextern.h, frame.h and window.h.
4904 (make_frame): Initialize left_fringe_width, right_fringe_width,
4905 fringe_cols, scroll_bar_actual_width, border_width,
4906 internal_border_width, column_width, line_height, x_pixels_diff,
4907 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
4908 members with values suitable for a non-window frames.
4909
4910 * gtkutil.c: Make (many) trivial substitutions for renamed and
4911 new macros in dispextern.h, frame.h and window.h.
9018a88e 4912
0416870b
KS
4913 * indent.c: Make (few) trivial substitutions for renamed and
4914 new macros in dispextern.h, frame.h and window.h.
4915
4916 * keyboard.c: Make (many) trivial substitutions for renamed and
4917 new macros in dispextern.h, frame.h and window.h.
4918 (make_lispy_event): Use window positions returned from
4919 window_from_coordinates when constructing the lisp event for
4920 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
4921 (incorrect) values locally.
4922 (make_lispy_movement): Use window positions returned from
4923 window_from_coordinates when constructing the lisp event, rather
4924 than calculating (incorrect) values locally.
4925
4926 * scroll.c: Make (some) trivial substitutions for renamed and
4927 new macros in dispextern.h, frame.h and window.h.
4928
4929 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
4930 scroll-bars.
4931
4932 * sysdep.c: Make (few) trivial substitutions for renamed and
4933 new macros in dispextern.h, frame.h and window.h.
4934
4935 * term.c: Make (some) trivial substitutions for renamed and
4936 new macros in dispextern.h, frame.h and window.h.
4937
4938 * widget.c: Make (few) trivial substitutions for renamed and
4939 new macros in dispextern.h, frame.h and window.h.
4940
4941 * window.c: Make (many) trivial substitutions for renamed and
4942 new macros in dispextern.h, frame.h and window.h.
4943 (make_window): Initialize new members
4944 left_margin_cols, right_margin_cols, left_fringe_width,
4945 right_fringe_width, fringes_outside_margins, scroll_bar_width,
4946 and vertical_scroll_bar_type.
4947 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 4948 and per-window fringes and scroll-bars.
0416870b 4949 Fix bug related to incorrectly adjusting coordinates by
9018a88e 4950 frame's internal_border_width (the effect normally negible since
0416870b
KS
4951 the internal_border_width is typically 0 or 1 pixel, but very
4952 noticeable for an internal_border_width of e.g. 25 pixels).
4953 Upon successful return (other than ON_NOTHING), the coordinates
4954 are now always properly converted to window relative for the
4955 given display element.
4956 (window_from_coordinates): Add new parameters wx and wy to
4957 return the window relative x and y position in the returned
4958 window and part. A null arg means, don't return the position.
4959 All callers changed.
4960 (adjust_window_margins): New function which may reduce the width
4961 of the display margins if a window's text area is too small after
4962 resizing or splitting windows.
4963 (size_window): Fix bug that did not account for display margin
4964 widths when checking the minimum width of a window; use
4965 adjust_window_margins.
4966 (set_window_buffer): Call Fset_window_fringes and
4967 Fset_window_scroll_bars to setup per-window elements.
4968 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
4969 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
4970 (e.g. after splitting a window or resizing the frame).
4971 All callers changed.
0416870b
KS
4972 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
4973 (Fsplit_window): Duplicate original window's display margin,
4974 fringe, and scroll-bar settings; then call Fset_window_buffer with
4975 KEEP_MARGINS non-nil. This fixes a bug which caused a split
4976 window to only preserve the display margins in one of the windows.
c4b8aebc 4977 When splitting horizontally, call adjust_window_margins on both
0416870b 4978 windows to ensure that the text area of the new windows is non too
f9711de4 4979 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
4980 width of the split window was less than the width of the display
4981 margins.
9018a88e
SM
4982 (window_box_text_cols): Renamed from window_internal_width.
4983 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
4984 Fix bug that caused vertical separator to be subtracted also on
4985 window frames. Fix another bug that did not reduce the returned
4986 value by the columns used for display margins.
4987 (window_scroll_line_based): Fix bug related to scrolling too much
4988 when display margins are present (implicitly fixed by the fix to
4989 window_box_text_cols).
4990 (scroll_left, scroll_right): Fix bug related to scrolling too far
4991 by default when display margins are present (implicitly fixed by
4992 the fix to window_box_text_cols).
4993 (struct saved_window): Rename members left to left_col, top to
4994 top_line, width to total_cols, height to total_lines, orig_top to
4995 orig_top_line, orig_height to orig_total_lines. All uses changed.
4996 New members left_margin_cols, right_margin_cols,
4997 left_fringe_width, right_fringe_width, fringes_outside_margins,
4998 scroll_bar_width, and vertical_scroll_bar_type for saving
4999 per-window display elements.
5000 (Fset_window_configuration): Restore display margins, fringes,
5001 and scroll bar settings. This fixes a bug which caused display
5002 margins to be discarded when saving and restoring a window
5003 configuration.
5004 (save_window_save): Save display margins, fringes, and scroll bar
5005 settings. This fixes a bug which caused display margins to be
5006 discarded when saving and restoring a window configuration.
5007 (Fset_window_margins): Do nothing if display margins are not
5008 really changed. Otherwise, call adjust_window_margins to ensure
5009 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5010 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5011 the width of the window.
5012 (Fset_window_fringes): New defun to allow user to specifically set
5013 this window's fringe widths and position vs. display margins.
5014 (Fwindow_fringes): New defun to return window's actual fringe
5015 settings.
5016 (Fset_window_scroll_bars): New defun to allow user to specifically
5017 set this window's scroll bar width and position.
5018 (Fwindow_scroll_bars): New defun to return window's actual scroll
5019 bar settings.
5020 (compare_window_configurations): Also compare display margins,
5021 fringes, and scroll bar settings.
5022 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5023
5024 * xdisp.c: Make (many) trivial substitutions for renamed and
5025 new macros in dispextern.h, frame.h and window.h.
5026 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5027 and new fringe vs. display margin position. Note that returned
0416870b
KS
5028 value is no longer guaranteed to be a whole multiple of the frame
5029 column width, since per-window fringes may now be any width.
5030 (window_box_left_offset): New function like window_box_left, but
5031 value is relative to left border of window (rather than frame).
5032 (window_box_right_offset): New function like window_box_right,
5033 but value is relative to left border of window.
5034 (window_box_left): Adapt to per-window fringes and scroll bars,
5035 and new fringe vs. display margin position. Simplify by using
5036 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5037 (window_box): Allow null args for unnecessary return values;
5038 change/simplify relevant callers.
5039 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5040 and new fringe vs. display margin position.
5041 Use window_box_left_offset and window_box_right_offset
0416870b 5042 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5043 scroll bars, and new fringe vs. display margin position.
5044 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5045 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5046 fringe vs. display margin position.
5047 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5048 (redisplay_window): Adapt to per-window scroll bars.
5049 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5050 bars, and new fringe vs. display margin position.
5051 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5052 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5053 bars, and new fringe vs. display margin position. Fix bug which
5054 increased total width of full_width rows by width of scroll bars
5055 although window's total width already includes that.
5056 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5057 (expose_area): Simplify using window_box_left_offset.
5058 (x_draw_vertical_border): Handle per-window scroll bar settings,
5059 mixing windows with left, right and no scroll bars.
5060
5061 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5062 where it's used in x_list_fonts (for clarity).
5063 (frame_update_line_height): Remove unused function; functionality
5064 is now done directly when setting the default font in x_set_font.
5065
5066 * xfns.c: Make (many) trivial substitutions for renamed and
5067 new macros in dispextern.h, frame.h and window.h.
5068
5069 * xmenu.c: Make (some) trivial substitutions for renamed and
5070 new macros in dispextern.h, frame.h and window.h.
5071
5072 * xterm.h (struct x_output): Move members left_pos, top_pos,
5073 border_width, pixel_height, pixel_width, line_height,
5074 internal_border_width, vertical_scroll_bar_extra,
5075 left_fringe_width, right_fringe_width, fringe_cols,
5076 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5077 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5078 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5079 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5080 (PIXEL_WIDTH, PIXEL_HEIGHT)
5081 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5082 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5083 frame.h and renamed [see frame.h changes].
5084 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5085 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5086 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5087 and renamed [see frame.h changes].
9018a88e 5088
0416870b
KS
5089 * xterm.c: Make (several) trivial substitutions for renamed and
5090 new macros in dispextern.h, frame.h and window.h.
5091 (x_draw_glyph_string_box): Adapt to per-window fringes and
5092 scroll-bars.
5093 (scroll_run): Adapt to new fringe position.
5094 (glyph_rect): Use window coordinates returned from
5095 window_from_coordinates rather than frame_to_window_pixel_xy.
5096 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5097 scroll-bars.
5098 (handle_one_xevent): Simplify a USE_GTK conditional.
5099 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5100 (fringes are now inside margins, i.e. always in the clipping area).
5101 All callers changed.
5102 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5103 directly, then call compute_fringe_widths. Don't call
5104 frame_update_line_height.
5105
5106 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5107 border_width, pixel_height, pixel_width, line_height,
5108 internal_border_width, vertical_scroll_bar_extra,
5109 left_fringe_width, right_fringe_width, fringe_cols,
5110 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5111 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5112 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5113 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5114 (PIXEL_WIDTH, PIXEL_HEIGHT)
5115 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5116 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5117 frame.h and renamed [see frame.h changes].
5118 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5119 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5120 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5121 and renamed [see frame.h changes].
9018a88e 5122
0416870b
KS
5123 * w32term.c: Make (several) trivial substitutions for renamed and
5124 new macros in dispextern.h, frame.h and window.h.
5125 (x_draw_glyph_string_box): Adapt to per-window fringes and
5126 scroll-bars.
5127 (glyph_rect): Use window coordinates returned from
5128 window_from_coordinates rather than frame_to_window_pixel_xy.
5129 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5130 scroll-bars.
5131 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5132 (fringes are now inside margins, i.e. always in the clipping area).
5133 All callers changed.
5134 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5135 directly, then call compute_fringe_widths. Don't call
5136 frame_update_line_height.
5137
5138 * w32console.c: Make (few) trivial substitutions for renamed and
5139 new macros in dispextern.h, frame.h and window.h.
5140
5141 * w32fns.c: Make (many) trivial substitutions for renamed and
5142 new macros in dispextern.h, frame.h and window.h.
5143
5144 * w32menu.c: Make (few) trivial substitutions for renamed and
5145 new macros in dispextern.h, frame.h and window.h.
5146
5147 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5148 border_width, pixel_height, pixel_width, line_height,
5149 internal_border_width, vertical_scroll_bar_extra,
5150 left_fringe_width, right_fringe_width, fringe_cols,
5151 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5152 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5153 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5154 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5155 (PIXEL_WIDTH, PIXEL_HEIGHT)
5156 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5157 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5158 frame.h and renamed [see frame.h changes].
5159 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5160 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5161 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5162 and renamed [see frame.h changes].
9018a88e 5163
0416870b
KS
5164 * macterm.c: Make (several) trivial substitutions for renamed and
5165 new macros in dispextern.h, frame.h and window.h.
5166 (x_draw_glyph_string_box): Adapt to per-window fringes and
5167 scroll-bars.
5168 (glyph_rect): Use window coordinates returned from
5169 window_from_coordinates rather than frame_to_window_pixel_xy.
5170 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5171 scroll-bars.
5172 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5173 (fringes are now inside margins, i.e. always in the clipping area).
5174 All callers changed.
5175 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5176 directly, then call compute_fringe_widths. Don't call
5177 frame_update_line_height.
5178
5179 * macfns.c: Make (several) trivial substitutions for renamed and
5180 new macros in dispextern.h, frame.h and window.h.
9018a88e 5181 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
5182
5183 * macmenu.c: Make (few) trivial substitutions for renamed and
5184 new macros in dispextern.h, frame.h and window.h.
5185
5186 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5187 and line_height, and use corresponding new members in struct
5188 frame. All uses changed.
5189 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5190 superseeded by corresponding macros in frame.h.
5191
5192 * msdos.c: Make (several) trivial substitutions for renamed and
5193 new macros in dispextern.h, frame.h and window.h.
5194 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 5195 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
5196 (internal_terminal_init): No need to initialize line_height here;
5197 it now defaults to 1.
5198
9018a88e
SM
51992003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5200
5201 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5202 dropping `down' events.
5203
016bd3c0
AS
52042003-05-24 Andreas Schwab <schwab@suse.de>
5205
5206 * coding.c (find_safe_codings): Fix last change.
5207
4dacadcc
TTN
52082003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5209
5210 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5211
319830ce
SM
52122003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5213
9018a88e
SM
5214 * xdisp.c (display_mode_element): Increase max depth.
5215 Simplify the error handling code. Use a different error string
5216 for the case where we hit the depth limit.
5217
319830ce
SM
5218 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5219
5220 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5221
52222003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5223
5224 * intervals.c (get_local_map): Don't get char-property of previous
5225 point any more: get_pos_property already does it and better.
5226
c67de8ba
DL
52272003-05-21 Dave Love <fx@gnu.org>
5228
5229 [Merged from unicode branch.]
5230
5231 * xfns.c (x_window, x_window): Use use_xim.
5232
5233 * xterm.c (use_xim): Initialize.
5234 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5235 (x_term_init): Maybe set use_xim.
5236
5237 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5238
edd3ff1d
JR
52392003-05-21 Jason Rumney <jasonr@gnu.org>
5240
5241 * unexw32.c (_start): Remove _fmode initialization.
5242
5243 * emacs.c (main) [WINDOWSNT]: Move it here.
5244
463f55ee
DL
52452003-05-20 Dave Love <fx@gnu.org>
5246
5247 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5248
af253914
RS
52492003-05-19 Richard M. Stallman <rms@gnu.org>
5250
5251 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5252 as value for QCfont attribute.
5253 (realize_default_face): lface should already exist; crash if not.
5254 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5255
5256 * frame.c (Fignore_event): Doc fix.
5257
1d211019
KH
52582003-05-19 Kenichi Handa <handa@m17n.org>
5259
5260 * coding.c (decode_coding_string): Handle post-read-conversion
5261 even if the coding doesn't require decoding.
5262
4dd68254
RS
52632003-05-18 Richard M. Stallman <rms@gnu.org>
5264
5265 * callproc.c (Fcall_process_region): Doc fix.
5266
14d87dc9
SM
52672003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5268
deca5d96
SM
5269 * lread.c (Fload): Print a message if package is obsolete.
5270
14d87dc9
SM
5271 * window.c (Fselect_window): Add optional `norecord' arg.
5272 (select_window_1): Fold into Fselect_window.
5273 (select_window_norecord): New function.
5274 (temp_output_buffer_show): Use it. Preserve current buffer.
5275
5276 * window.h (Fselect_window): Update declaration.
5277
5278 * window.c (delete_window, Fother_window, Fset_window_configuration):
5279 * minibuf.c (read_minibuf):
5280 * macterm.c (x_new_focus_frame):
5281 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5282 * callint.c (Fcall_interactively):
5283 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5284
5285 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5286
78f52183
DK
52872003-05-17 David Kastrup <dak@gnu.org>
5288
5289 * process.c (read_process_output): Back out change from 2003-03-09.
5290
14d87dc9
SM
52912003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5292
5293 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5294
5295 * textprop.c (text_property_stickiness): New arg `buffer'.
5296
5297 * intervals.h (text_property_stickiness): New arg `buffer'.
5298 (get_pos_property): Declare.
5299
5300 * intervals.c (get_local_map): Use get_pos_property, to obey
5301 stickiness and empty overlays.
5302 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5303 (merge_properties, intervals_equal, merge_properties_sticky):
5304 Use XCAR, XCDR.
5305 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5306
1fd1cc2f
RS
53072003-05-17 Richard M. Stallman <rms@gnu.org>
5308
4f9f637a
RS
5309 * minibuf.c (read_minibuf): If buffer is empty, record the default
5310 in the history.
5311 (Fminibuffer_complete_word): When deleting the overlap, take account
5312 of its real position.
5313
5314 * fns.c (map_char_table): Fix previous change.
5315
1fd1cc2f
RS
5316 * syntax.c (find_defun_start):
5317 When open_paren_in_column_0_is_defun_start,
5318 return beginning of buffer.
5319
5320 * lisp.h (map_char_table): Declare added arg.
5321
5322 * fns.c (map_char_table): New arg TABLE gets the master table.
5323 All calls changed.
5324 Process default and inheritance, resorting to Faref if necessary.
5325
5326 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5327 (Faccessible_keymaps): Pass new arg to map_char_table.
5328
5329 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5330
5331 * casetab.c (set_case_table): Pass new arg to map_char_table.
5332
5333 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5334
5335 * lisp.h (specbinding_func): New typedef.
5336 (struct specbinding): Use specbinding_func, to put the `volatile'
5337 in the right place.
5338
5339 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5340 to avoid GCC warning.
14d87dc9 5341
b4bd27c5
RS
53422003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5343
14d87dc9 5344 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 5345
35fb885d
SM
53462003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5347
5348 * keyboard.c (apply_modifiers): Don't fill the other cache.
5349
9a274fbd
SM
53502003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5351
c55b5fad
SM
5352 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5353
9a274fbd
SM
5354 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5355 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5356 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5357 (Fset_window_configuration, Fcurrent_window_configuration)
5358 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5359 (Fpos_visible_in_window_p, mark_window_cursors_off)
5360 (window_internal_height, window_internal_width, Frecenter)
5361 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5362 (replace_buffer_in_all_windows, init_window_once, init_window)
5363 (syms_of_window, keys_of_window): Move from lisp.h.
5364 * lisp.h: Move window.c declarations to window.h.
5365
5366 * bytecode.c: Include window.h.
5367 * emacs.c: Include window.h.
5368
14d87dc9 5369 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
5370 (keyremap): Add `parent' field.
5371 (keyremap_step): Use it. Remove `parent' argument.
5372 (read_key_sequence): Setup and use the new `parent' field.
5373
fd93e331
SM
53742003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5375
5376 * keyboard.c (adjust_point_for_property): Ensure termination.
5377
1c4001a1
SM
53782003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5379
5380 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5381 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5382 duplicated handling of function-key-map and key-translation-map
5383 in read_key_sequence.
5384 (read_key_sequence): Use them.
5385
5386 * keyboard.c (adjust_point_for_property): Try harder to move point
5387 to the non-sticky end of an invisible property.
5388
5389 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5390 property intangible as well.
5391
780379b1
AS
53922003-05-10 Andreas Schwab <schwab@suse.de>
5393
5394 * xmenu.c (single_menu_item): Change last parameter to void* to
5395 avoid warning.
5396
ca2de342
RS
53972003-05-09 Richard M. Stallman <rms@gnu.org>
5398
5399 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5400 Bind Qinhibit_modification_hooks to t so there will be no GC.
5401 Rename local `tem' to `save_deactivate_mark'.
5402
5403 * eval.c (specpdl_ptr): Declare volatile.
5404 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5405 before doing the work of unbinding it.
5406
5407 * lisp.h (struct specbinding): Declare elements volatile.
5408 (specpdl_ptr): Declare volatile.
5409
5410 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5411
5412 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5413 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5414
347003be
DL
54152003-05-08 Dave Love <fx@gnu.org>
5416
5417 * coding.c (Vlast_coding_system_used): Doc fix.
5418
5adcec23
JR
54192003-05-07 Jason Rumney <jasonr@gnu.org>
5420
5421 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5422 when system does not support them.
5423
5fe3b8a4
SM
54242003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5425
5426 * fileio.c (Qwrite_region_annotate_functions): New var.
5427 (build_annotations): Use it to process the global part of the hook.
5428 (syms_of_fileio): Init and staticpro it.
5429
5430 * keyboard.c (safe_run_hooks_error): Display a message instead of
5431 silently ignoring the error.
5432
54332003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5434
5435 * keyboard.c (input_available_signal): Mark static.
5436 (menu_bar_items): Use map_keymap.
5437 (menu_bar_one_keymap): Remove.
5438 (menu_bar_item): Adjust arglist (for use in map_keymap).
5439 Properly hide a second binding when not both are keymaps.
5440
5441 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5442 (single_keymap_panes): Use it and map_keymap.
5443 (single_menu_item): Use skp as well.
5444
5445 * keymap.h (map_keymap_function_t): New type.
5446 (map_keymap): Declare.
5447
5448 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5449 (map_keymap_call, Fmap_keymap): New functions.
5450 (syms_of_keymap): Defsubr map-keymap.
5451
4b1b4443
JD
54522003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5453
5454 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5455 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5456 ..._with_mnemonic functions for menu items.
5457
1f816871
KH
54582003-05-01 Kenichi Handa <handa@m17n.org>
5459
5460 * coding.c (coding_system_accept_latin_extra_p): Delete this
5461 function.
5462 (find_safe_codings): Pay attention to
5463 the property tranlsation-table-for-encode of each codings.
5464 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5465
5ed6ba5b
SM
54662003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5467
5468 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5469
32c06229
SM
54702003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5471
5472 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5473
5474 * lisp.h (CHECK): Wrap args in parenthesis.
5475 (specbind): Fix doc: symbol = Qnil is not supported any more.
5476
5477 * bytecode.c (Fbyte_code) <unwind-protect>:
5478 Use Fprogn rather than 0 and Qnil.
5479
5480 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5481 `double', and `triple' modifiers as well.
5482
ed3c3314
RS
54832003-04-30 Richard M. Stallman <rms@gnu.org>
5484
5485 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5486
5487 * alloc.c (abort_on_gc): New variable.
5488 (Fgarbage_collect): Abort if abort_on_gc is set.
5489
5490 * lisp.h (abort_on_gc): Add decl.
5491
5492 * eval.c (Fsignal): Clear abort_on_gc.
5493
5494 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 5495 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
5496
5497 * xdisp.c (move_it_vertically_backward): Do the final big else
5498 even if nlines is 0.
5499
5500 * xdisp.c (redisplay_internal): Finish the per-frame loop
5501 even if redisplay is suspended by input.
5502
0b325c12
AC
55032003-04-24 Andrew Choi <akochoi@shaw.ca>
5504
5505 * macterm.c (x_list_fonts): Return all fonts that match if
5506 maxnames = -1.
5507
4e837cd0
KH
55082003-04-25 Kenichi Handa <handa@m17n.org>
5509
5510 * syntax.c (skip_chars): Fix previous change.
5511
9af7511a
KH
55122003-04-24 Kenichi Handa <handa@m17n.org>
5513
5514 * syntax.c (skip_chars): Make the code faster by using the common
5515 technique of *p, *stop, and *endp.
5516
e3b2c21f
JD
55172003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5518
5519 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 5520 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
5521 being updated.
5522
32c06229
SM
55232003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5524
5525 * eval.c (Fapply): Undo last change and add a comment about why.
5526
c6464167
MB
55272003-04-18 Miles Bader <miles@gnu.org>
5528
5529 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5530 pickier PARSE_MULTIBYTE_SEQ.
5531
e509f168
SM
55322003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5533
5534 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5535 Use XCDR, XCAR, CONSP.
5536 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5537 (Fapply): Remove unnecessary GCPRO.
5538
5539 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5540
5541 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5542
5543 * buffer.h: Don't hardcode BEG==1.
5544
5545 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5546
5ceea398
RS
55472003-04-16 Richard M. Stallman <rms@gnu.org>
5548
5549 * xdisp.c (try_window, try_window_reusing_current_matrix):
5550 When at end of window, set window_end_pos to Z-ZV.
5551
5552 * buffer.c (Foverlay_recenter): Doc fix.
5553
e509f168
SM
55542003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5555
5556 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5557
d243e605
AC
55582003-04-14 Andrew Choi <akochoi@shaw.ca>
5559
5560 * macterm.c (mac_check_for_quit_char): Don't check more often than
5561 once a second.
5562
6901b111
SM
55632003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5564
5565 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5566 specially, so that they can't hide an implicit switch-frame event.
5567 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5568 (head_table): Use switch-frame as event_kind for select-window.
5569 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5570
5571 * editfns.c (Fformat): Lisp_Object/int mixup.
5572 (format2): Remove unused var numargs.
5573
e301806f 55742003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 5575
6901b111 5576 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
5577 (Qafter_insert_file_set_coding): New variable.
5578 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5579 for after-insert-file-adjust-coding-function.
5580 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5581 instead of Vafter_insert_file_adjust_coding_function.
5582
38914424
KH
55832003-04-11 Kenichi Handa <handa@m17n.org>
5584
5585 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5586
5587 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5588 string. Callers changed.
5589
55902003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 5591
6901b111 5592 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 5593 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
5594 (Finsert_file_contents):
5595 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
5596 decode-format.
5597
f979dc05
JD
55982003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5599
5600 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
5601 get GtkAdjustment as widget now is a GtkRange.
5602
5603 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
5604 GtkRange to avoid memory leak.
5605
f8c6b4c2 56062003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 5607
50ebc53d
KH
5608 * xfaces.c (Vface_font_rescale_alist): New variable.
5609 (struct font_name): New member rescale_ratio.
5610 (font_rescale_ratio): New function.
6901b111 5611 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
5612 (better_font_p): On comparing point sized, pay attention to
5613 recale_ratio member of fonts.
5614 (build_scalable_font_name): Reflect font->rescale_ratio in the
5615 font name.
6901b111 5616 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 5617
cb98871c
KH
5618 * lread.c (read1): Before calling index, check if the 2nd
5619 arguemnt is in ASCII range.
5620
4773b8ca
RS
56212003-04-08 Richard M. Stallman <rms@gnu.org>
5622
b0ada147
RS
5623 * fileio.c (Ffile_symlink_p): Doc fix.
5624
5625 * editfns.c (Fformat): Translate positions of text properties
5626 in the format string to apply them to the result.
5627
4773b8ca
RS
5628 * fileio.c (Finsert_file_contents): Doc fix.
5629 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
5630
56312003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 5632
4773b8ca
RS
5633 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
5634
e8f25745 56352003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 5636
e8f25745
ST
5637 * mac.c (init_mac_osx_environment): Switch libexec and bin so
5638 that self-contained application finds libexec files.
5639
f8c6b4c2 56402003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 5641
6901b111
SM
5642 * coding.c (code_convert_region_unwind):
5643 Set Vlast_coding_system_used to the argument.
2310d84c
KH
5644 (code_convert_region): If post-read-conversion function changed
5645 the value of last-coding-sytem, keep the new value in
5646 coding->symbol so that it won't be overridden.
5647 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
5648 (coding_system_accept_latin_extra_p): New function.
5649 (find_safe_codings): Pay attention to characters registered in
5650 latin-extra-code-table.
2310d84c 5651
39c9a034
TTN
56522003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
5653
5654 * Makefile.in (md5.o): Add missing dependency info.
5655
eb67c5d6
RS
56562003-04-06 Richard M. Stallman <rms@gnu.org>
5657
5658 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
5659
5660 * marker.c (verify_bytepos): New function.
5661
5662 * intervals.c (set_intervals_multibyte_1): When becoming
5663 multibyte, adjust right and left child sizes to a whole set of
5664 characters. If an interval gets zero total-length, delete it.
5665 If an interval consists of just its children, delete one of them.
5666
5667 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
5668 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 5669
eb67c5d6
RS
5670 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
5671 All calls deleted.
5672 (lisp_malloc): Do the work here directly.
5673
b1f81fc5
JB
56742003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
5675
5676 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
5677 char tables.
5678
56792003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
5680
5681 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
5682 destructively change "%S" to "%s".
5683
774666fb
MB
56842003-04-03 Miles Bader <miles@gnu.org>
5685
5686 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
5687 always set.
5688
19c37f01
DL
56892003-04-01 Dave Love <fx@gnu.org>
5690
5691 * xfns.c (xpm_lookup_color): Grok "opaque".
5692
2f4b24c3
AC
56932003-03-31 Andrew Choi <akochoi@shaw.ca>
5694
5695 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
5696 parent window ID.
5697
5698 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
5699
5700 * macterm.h (struct mac_output): Define x_pixels_diff and
5701 y_pixels_diff.
b1f81fc5 5702
9443fcf6
JB
57032003-03-31 Juanma Barranquero <lektu@terra.es>
5704
5705 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
5706 blockinput.h and files included from it.
5707
e072891b
KS
57082003-03-31 Kim F. Storm <storm@cua.dk>
5709
5710 The following changes consolidates the common code related to
5711 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
5712 files into frame.c.
9443fcf6 5713
e072891b
KS
5714 * frame.c: Include blockinput.h.
5715 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
5716 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
5717 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
5718 related vars here.
5719 (struct frame_parm_table, frame_parms): New table for describing
5720 frame parameters and their associated Q-variable.
5721 The order of the parameters corresponds to the sequence of the
5722 frame_parm_handlers table in redisplay_interface.
5723 (x_fullscreen_move, x_set_frame_parameters)
5724 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
5725 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
5726 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5727 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
5728 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
5729 Generic functions for processing of frame parameters.
5730 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
5731 (display_x_get_resource, x_get_resource_string): Functions for
5732 generic access to X resources.
5733 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5734 (x_default_parameter, Fx_parse_geometry): Functions for generic
5735 access to frame parameters.
6901b111
SM
5736 (x_figure_window_size): Generic calculation of frame size.
5737 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
5738 (syms_of_frame): Intern and staticpro frame parameter variables.
5739 Defvar_lisp Vx_resource_class and Vx_resource_name here.
5740 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 5741
e072891b
KS
5742 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
5743 parameter related vars defined in frame.c.
5744 (EMACS_CLASS): Define here.
5745 (enum FULLSCREEN_*): Define here.
5746 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
5747 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
5748 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
5749 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
5750 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
5751 (x_set_visibility, x_set_autoraise, x_set_autolower)
5752 (x_set_unsplittable, x_set_vertical_scroll_bars)
5753 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
5754 (x_figure_window_size): Add prototypes.
5755
5756 * dispextern.h (frame_parm_handler): New typedef.
5757 (struct redisplay_interface): New member frame_parm_handlers.
5758 (enum resource_types): Move declaration here.
5759 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5760 (x_default_parameter): Add prototypes.
5761
5762 * window.c: Remove extern decl for frame parameter vars.
5763 (change_window_heights): New generic function;
5764 replaces x_change_window_heights. All users changed.
5765
5766 * window.h (change_window_heights): Add prototype.
5767
5768 * xfaces.c: Remove extern decl for frame parameter vars.
5769
5770 * xterm.h (EMACS_CLASS): Remove. Use generic define.
5771 (struct w32_display_info): Fix type of xrdb member.
5772 (enum FULLSCREEN_*): Remove.
5773 Remove prototypes for generic functions (in frame.h).
5774
5775 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5776 parameters now defined in frame.h and frame.c.
f63fd14e 5777 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5778 (enum x_frame_parms): Remove (bogus, unused enum).
5779 (check_x_display_info): Make non-static (for frame.c).
5780 (struct x_frame_parm_table, x_frame_parms): Remove.
5781 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5782 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5783 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5784 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5785 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5786 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5787 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5788 Remove. Use generic functions instead.
5789 (enum resource_types): Remove.
5790 (x_set_scroll_bar_default_width): New global function (for frame.c).
5791 (Fx_create_frame): Depend on x_figure_window_size to add space for
5792 toolbar and setup size_hint_flags.
5793 (x_frame_parm_handlers): New table for redisplay_interface.
5794 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 5795
e072891b 5796 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 5797 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
5798 (x_redisplay_interface): Add x_frame_parm_handlers member.
5799
5800 * w32gui.h (XrmDatabase): New (dummy) typedef.
5801
5802 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5803 (struct w32_display_info): Fix type of xrdb member.
5804 (enum FULLSCREEN_*): Remove.
5805 (x_fullscreen_adjust): Remove prototype.
5806
5807 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5808 parameters now defined in frame.h and frame.c.
f63fd14e 5809 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5810 (enum x_frame_parms): Remove (bogus, unused enum).
5811 (check_x_display_info): Make non-static (for frame.c).
5812 (struct x_frame_parm_table, x_frame_parms): Remove.
5813 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5814 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5815 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5816 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5817 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5818 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5819 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5820 Remove. Use generic functions instead.
5821 (enum resource_types): Remove.
5822 (x_set_scroll_bar_default_width): New global function (for frame.c).
5823 (Fx_create_frame): Depend on x_figure_window_size to add space for
5824 toolbar and setup size_hint_flags.
5825 (w32_frame_parm_handlers): New table for redisplay_interface.
5826 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 5827
e072891b
KS
5828 * w32term.c: Remove unnecessary extern declarations.
5829 (x_fullscreen_adjust): Remove. Use generic instead.
5830 (x_redisplay_interface): Add w32_frame_parm_handlers member.
5831
5832 * w32reg.c (x_get_string_resource): Use XrmDatabase.
5833
5834 * macgui.h (XrmDatabase): New (dummy) typedef.
5835
5836 * macterm.h (EMACS_CLASS): Remove.
5837 (struct mac_display_info): Add xrdb member.
5838 (struct mac_output): Add want_fullscreen member.
5839
5840 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5841 parameters now defined in frame.h and frame.c.
f63fd14e 5842 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
5843 (check_x_display_info): Make non-static (for frame.c).
5844 (struct x_frame_parm_table, x_frame_parms): Remove.
5845 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5846 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5847 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5848 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5849 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5850 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5851 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5852 Remove. Use generic functions instead.
5853 (enum resource_types): Remove.
5854 (x_set_scroll_bar_default_width): New global function (for frame.c).
5855 (mac_frame_parm_handlers): New table for redisplay_interface.
5856 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 5857
e072891b
KS
5858 * macterm.c: Remove unnecessary extern declarations.
5859 (x_redisplay_interface): Add mac_frame_parm_handlers member.
5860
3e6a560b
KS
5861 * Makefile.in (frame.o): Add dependency on blockinput.h and files
5862 included from it (atimer.h and systime.h).
5863
7b7b454e
AS
58642003-03-30 Andreas Schwab <schwab@suse.de>
5865
5866 * xdisp.c (x_insert_glyphs): Fix swapped width and height
5867 parameters for shift_glyphs_for_insert.
5868
5869 * macterm.c (x_redisplay_interface): Add missing entry for
5870 draw_vertical_window_border.
5871
beb402de
KG
58722003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5873
5874 * fileio.c (Fexpand_file_name): In the no-handler case, after
5875 expanding, look again for a handler and invoke it. This is needed
5876 for filenames like "/foo/../user@host:/bar/../baz" -- the first
5877 expansion produces "/user@host:/bar/../baz" which needs to be
5878 expanded again for the finame result "/user@host:/baz".
5879
b676f356
JD
58802003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5881
5882 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
5883 of area to be redrawn for better performance.
5884
3c671a56
SM
58852003-03-28 Stefan Monnier <monnier@cs.yale.edu>
5886
5887 * xterm.c (take_vertical_position_into_account): Remove.
5888 (xt_action_hook): Call set_vertical_scroll_bar if needed.
5889 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
5890 (xm_scroll_callback, x_create_toolkit_scroll_bar)
5891 (x_set_toolkit_scroll_bar_thumb): Simplify.
5892 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
5893 (XTread_socket): Remove unused var.
5894 (x_make_frame_invisible): Replace goto with else.
5895
5896 * xdisp.c (set_vertical_scroll_bar): New fun.
5897 (redisplay_window): Use it.
5898
84f2e615
RS
58992003-03-26 Richard M. Stallman <rms@gnu.org>
5900
5901 * xdisp.c (update_tool_bar): Recompute tool bar if
5902 update_mode_lines is set. Set w->update_mode_line
5903 only if the tool bar contents actually change.
5904 (update_menu_bar): Undo previous change.
5905
70b6104c
JD
59062003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5907
5fd6f727
JD
5908 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
5909 (xg_frame_set_char_size): Calculate scroll bar width before frame
5910 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
5911 (xg_separator_p): Check for all documented separator types.
5912 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
5913 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
5914
70b6104c
JD
5915 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
5916 so tool bar gets updated.
5917
d9b36d19
SM
59182003-03-26 Stefan Monnier <monnier@cs.yale.edu>
5919
5920 * data.c (store_symval_forwarding): Re-instate part of the code
5921 that was deleted with too much enthusiasm.
5922
59232003-03-25 Stefan Monnier <monnier@cs.yale.edu>
5924
5925 * data.c (store_symval_forwarding): Delete special read-only
5926 hack for type == -1, since we now use ->constant instead.
5927 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
5928
5929 * buffer.c (overlays_in): Declare static.
5930 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
5931 `constant' field rather than the variable's `type' field.
5932
365fa1b3
AC
59332003-03-24 Andrew Choi <akochoi@shaw.ca>
5934
5935 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
5936
5937 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
5938
5939 * fns.c [MAC_OSX]: Do not redefine vector.
5940
5941 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
5942
5943 * macgui.h: Remove definition of No_Cursor.
5944
d9b36d19 5945 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
5946
5947 * xdisp.c: Define No_Cursor.
5948 (x_write_glyphs, notice_overwritten_cursor)
5949 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
5950 (note_mouse_highlight): Remove Mac-specific code.
5951 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 5952
c0bcce6f
JPW
59532003-03-24 John Paul Wallington <jpw@gnu.org>
5954
5955 * xdisp.c (redisplay_window): If mini window's buffer is not
5956 empty, then redisplay it like other windows.
5957
a526b96c
KS
59582003-03-23 Kim F. Storm <storm@cua.dk>
5959
5960 * w32term.c (w32_draw_window_cursor): Fix last change.
5961
37ab321e
KH
59622003-03-23 Kenichi Handa <handa@m17n.org>
5963
a526b96c
KS
5964 * alloc.c (make_string_from_bytes, make_specified_string):
5965 Add `const' for the arg CONTENTS.
37ab321e
KH
5966
5967 * lisp.h (make_string_from_bytes, make_specified_string):
5968 Prototypes adjusted.
5969
7863d625
JD
59702003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5971
a526b96c 5972 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 5973
7863d625
JD
5974 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
5975 (XG_SB_RANGE): New define.
5976
5977 * gtkutil.c (xg_fixed_handle_expose): New function.
5978 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
5979 expose events.
5980 (xg_update_scrollbar_pos): Take two more arguments, left and width
5981 of scroll bar including borders.
5982 Clear left and right part outside scroll bar separately as some
5983 themes have bars that are not an even number of pixels.
d9b36d19 5984 Don't set reallocate_redraws, don't call
7863d625
JD
5985 gdk_window_process_all_updates.
5986 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
5987 so no need to change it. Calculate size and value with XG_SB_RANGE.
5988
d9b36d19
SM
5989 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
5990 Pass left and width of scroll bar including borders to
7863d625
JD
5991 xg_update_scrollbar_pos.
5992
af0ad939
TTN
59932003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
5994
5995 * Makefile.in: Make sure space precedes end-of-line backslashes.
5996
b22139fd
KS
59972003-03-22 Kim F. Storm <storm@cua.dk>
5998
5999 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6000 Add generic versions here. Remove system specific versions
6001 defined elsewhere.
6002
6003 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6004 Add prototypes.
6005
6e6410cf
KS
6006 * xterm.h (STORE_NATIVE_RECT): New macro.
6007
5c9cc435
KS
60082003-03-21 Kim F. Storm <storm@cua.dk>
6009
00c64fab
SM
6010 * xdisp.c (get_glyph_string_clip_rect):
6011 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6012
6013 * dispextern.h (struct redisplay_interface): Add active_p
6014 argument to draw_window_cursor member. All uses changed.
6015
acd37560
KS
60162003-03-21 Kim F. Storm <storm@cua.dk>
6017
6018 The following changes consolidate code related to writing and
6019 inserting glyphs, exposing frame, the tool bar, the mouse face,
6020 the output cursor, and help echo from xterm.c, w32term.c and
6021 macterm.c into xdisp.c. It also generalizes the use of the
6022 window_part enum instead of using numeric values throughout.
af0ad939 6023
acd37560
KS
6024 * xdisp.c: Consolidate gui-independent code here.
6025 Include keymap.h.
6026 (Qhelp_echo): Import.
6027 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6028 (help_echo_string, help_echo_window, help_echo_object)
6029 (previous_help_echo_string, help_echo_pos): Declare here.
6030 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6031 (estimate_mode_line_height): Define here. Handle windowing
6032 systems directly (without using estimate_mode_line_height_hook).
6033 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6034 (update_window_cursor, update_cursor_in_window_tree)
6035 (fast_find_position, fast_find_string_pos)
6036 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6037 (expose_area, expose_line, expose_overlaps, expose_window)
6038 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6039 declared static as they are only used locally in xdisp.c.
6040 (draw_glyphs): Rename from x_draw_glyphs and make static.
6041 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6042 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6043 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6044 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6045 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6046 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6047 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6048 (note_mouse_highlight, x_clear_window_mouse_face)
6049 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6050 (x_intersect_rectangles): New generic functions for use by xdisp.c
6051 and GUI front-ends.
6052 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6053 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6054
6055 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6056 (NativeRectangle): Generic typedef for rectangle type.
6057 (enum window_part): Move here from window.c.
6058 (struct redisplay_interface): New members flush_display_optional,
6059 define_frame_cursor, clear_frame_area, draw_window_cursor,
6060 draw_vertical_window_border, shift_glyphs_for_insert.
6061 Rename member clear_mouse_face to clear_window_mouse_face.
6062 (estimate_mode_line_height_hook): Remove hook.
6063 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6064 (tool_bar_item_info): Remove prototype.
6065 (help_echo_string, help_echo_window, help_echo_object)
6066 (previous_help_echo_string, help_echo_pos)
6067 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6068 (x_stretch_cursor_p, output_cursor): Declare extern.
6069 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6070 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6071 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6072 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6073 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6074 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6075 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6076 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6077 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6078 Add prototypes.
6079 (mode_line_string, marginal_area_string): Fix prototypes.
6080
6081 * window.c (enum window_part): Move to dispextern.h.
6082 (coordinates_in_window): Use enum window_part member names
6083 instead of numbers to describe return value.
6084 (struct check_window_data): Change part member to window_part.
6085 (check_window_containing): Return window_part unaltered.
6086 (window_from_coordinates): Change part arg from int to enum
6087 window_part. Allow part arg to be null. All users changed.
6088
6089 * window.h (window_from_coordinates): Fix prototype.
6090
6091 * term.c (estimate_mode_line_height): Move to xdisp.c.
6092
6093 * keyboard.c (make_lispy_event): Use enum window_part.
6094
6095 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6096 window_part instead of int in arg list. Users changed.
6097
6098 * xterm.h (No_Cursor): Declare as None for X.
6099 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6100
acd37560
KS
6101 * xterm.c: Remove consolidated defines and code.
6102 (BETWEEN): Remove unused macro.
6103 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6104 (x_define_frame_cursor, x_clear_frame_area)
6105 (x_draw_window_cursor): New X-specific functions for RIF.
6106 (x_redisplay_interface): Add new members.
6107
6108 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6109
6110 * w32term.h (struct w32_output): Remove cross_cursor member.
6111
6112 * w32term.c: Remove consolidated defines and code.
6113 (BETWEEN): Remove unused macro.
6114 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6115 (w32_define_frame_cursor, w32_clear_frame_area)
6116 (w32_draw_window_cursor): New W32-specific functions for RIF.
6117 (w32_redisplay_interface): Add new members.
6118
a64387ee 6119 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6120 (XRectangle): Add X compatible rectangle type.
6121 (NativeRectangle): Declare as RECT for W32.
6122 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6123
6124 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6125
6126 * w32console.c: Remove consolidated defines and code.
af0ad939 6127
acd37560
KS
6128 * msdos.h (Display_Info): Add generic typedef.
6129
6130 * msdos.c: Remove consolidated defines and code.
6131 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6132
6133 * macterm.h (struct mac_output): Replace member cross_cursor by
6134 hand_cursor.
6135 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6136
6137 * macterm.c: Remove consolidated defines and code.
6138 (BETWEEN): Remove unused macro.
6139 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6140 (mac_define_frame_cursor, mac_clear_frame_area)
6141 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6142 (x_redisplay_interface): Add new members.
6143
6144 * macgui.h (No_Cursor): Define as 0 for Mac.
6145 (XRectangle): Add X compatible rectangle type.
6146 (NativeRectangle): Declare as Rect for Mac.
6147 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6148
204ccab1
KS
6149 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6150 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 6151
9443fcf6 6152 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
6153 included from it. Add dependency on keymap.h.
6154
6155 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6156
8ba01a70 61572003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
6158
6159 * fileio.c (Fexpand_file_name): Fix previous change.
6160
8ba01a70 61612003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
6162
6163 * fileio.c (Ffile_name_directory): Reconstruct file name by
6164 make_specified_string.
6165 (Ffile_name_nondirectory, Ffile_name_as_directory)
6166 (Fdirectory_file_name, Fexpand_file_name)
6167 (Fsubstitute_in_file_name): Likewise.
6168 (Fread_file_name): Compare decoded homedir with DIR and
6169 DEFAULT_FILENAME.
6170
6171 * alloc.c (make_specified_string): If NCHARS is negative, count
6172 the number of characters.
6173
19536747
JD
61742003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6175
de38ae5a
JD
6176 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6177 all widgets.
6178
19536747
JD
6179 * gtkutil.h: Removed xg_ignore_next_thumb.
6180
37ab321e 61812003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
6182
6183 * coding.c (Vchar_coding_system_table): Remove this variable.
6184 (Vcoding_system_safe_chars): New variable.
6185 (intersection): Remove this function.
6186 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6187 all codings in SAFE_CODINGS.
00c64fab 6188 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
6189 find_safe_codings. Get generic coding systems from
6190 Vcoding_system_safe_chars.
6191 (Fdefine_coding_system_internal): New function.
6192 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6193 Initialize and staticpro Vcoding_system_safe_chars.
6194
17097258
JD
61952003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6196
2a2071c3
JD
6197 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6198 equal old values before updating.
6199
17097258
JD
6200 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6201
6202 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6203
62042003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6205
6206 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6207 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6208 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6209 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6210 (xg_create_scroll_bar): Pass bar to button event callback.
6211 (xg_find_top_left_in_fixed): New function.
6212 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6213 whole scroll bar area. Get old position with
6214 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6215 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6216 dragging is in progress. Calculate whole as for Motif.
6217 Remove code that saved last values. Call gtk_range functions to
6218 set scroll bar sizes.
6219
6220 * gtkutil.h: Removed xg_ignore_next_thumb.
6221
8cb9dfbf
JB
62222003-03-17 Juanma Barranquero <lektu@terra.es>
6223
6224 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6225 and files included from it.
6226
00c64fab
SM
62272003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6228
6229 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6230 multiple occurrences of the same keymap under different prefixes.
6231 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6232
c45bb3b2
JR
62332003-03-16 Jason Rumney <jasonr@gnu.org>
6234
6235 * w32gui.h: Use HDC for Display.
6236
6237 * w32term.c (w32_encode_char): Prevent double-byte chars from
6238 crashing Emacs.
6239
6240 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6241 as binary.
6242
2a6d0874
JB
62432003-03-16 Juanma Barranquero <lektu@terra.es>
6244
6245 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6246
03eb5fab
KS
62472003-03-16 Kim F. Storm <storm@cua.dk>
6248
6249 The following changes consolidate some of the gui-independent
6250 parts of the processing and drawing of "glyph strings" from
6251 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 6252
03eb5fab
KS
6253 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6254 21 bits (this reduces number of faces from 4M to 2M).
6255 Replace W32 specific w32_font_type member (2 bits) by generic
6256 font_type member (3 bits) for portability.
6257 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6258 (enum draw_glyphs_face): Define here.
6259 (struct glyph_string): Define here. Merge W32 and X versions.
6260 (struct redisplay_interface): New members per_char_metric,
6261 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6262 (VCENTER_BASELINE_OFFSET): Define here.
6263 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6264 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6265
6266 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6267 (dump_glyph_string): Moved here.
6268 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6269 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6270 (fill_composite_glyph_string, fill_glyph_string)
6271 (fill_image_glyph_string, fill_stretch_glyph_string)
6272 (left_overwritten, left_overwriting, right_overwritten)
6273 (right_overwriting, get_char_face_and_encoding)
6274 (set_glyph_string_background_width, compute_overhangs_and_x)
6275 (append_glyph, append_composite_glyph, produce_image_glyph)
6276 (take_vertical_position_into_account, append_stretch_glyph)
6277 (produce_stretch_glyph): New generic functions (based on X version).
6278 Call platform specific functions through rif.
6279 (INIT_GLYPH_STRING): New macro, hides W32 details.
6280 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6281 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6282 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6283 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6284 (notice_overwritten_cursor):
6285 Generic functions exported to platform modules. Users changed.
6286
6287 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6288 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6289 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 6290 New macros for consolidated code.
2a6d0874 6291
03eb5fab
KS
6292 * xterm.c: Remove consolidated defines and code.
6293 (x_per_char_metric, x_encode_char)
6294 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6295 (x_redisplay_interface): Add new members.
6296
6297 * w32gui.h (Display): Add dummy typedef for consolidation.
6298 (XChar2b): Define alias for wchar_t for consolidation.
6299 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6300
6301 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 6302 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
6303 New macros for consolidation.
6304
fad49844 6305 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
6306 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6307 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6308 (w32_per_char_metric): Change font_type arg to int for RIF.
6309 (w32_encode_char): Return int according to RIF requirements.
6310 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6311 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6312 x_get_glyph_overhangs.
6313 (w32_redisplay_interface): Add new members.
6314
6315 * macgui.h (XChar2b): Move typedef here for consolidation.
6316 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6317
6318 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6319 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6320 consolidation.
6321
6322 * macterm.c: Remove consolidated defines and code.
6323 (mac_per_char_metric): New function for RIF.
00c64fab 6324 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
6325 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6326 (x_redisplay_interface): Add new members.
6327
00c64fab
SM
63282003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6329
6330 * keymap.c (Vmenu_events): New var.
6331 (syms_of_keymap): Initialize it.
6332 (where_is_internal): Check more carefully what is a menu event.
6333
225c7a07
RS
63342003-03-14 Richard M. Stallman <rms@gnu.org>
6335
6336 * lread.c (read1): After #!, exit loop on eof.
6337
cea9be54
JD
63382003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6339
9ea0e54d
JD
6340 * gtkutil.h: Add declaration for xg_frame_cleared.
6341
0cb35f4e
JD
6342 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6343
cea9be54
JD
6344 * gtkutil.c (struct xg_last_sb_pos): New structure.
6345 (handle_fixed_child): New function.
6346 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6347 and force a redraw on them.
6348 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6349 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6350 so we can avoid unneeded redraws.
6351 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6352 and force a redraw on the scroll bar.
6353 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6354 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 6355 (xg_frame_cleared): New function.
cea9be54 6356
20b853f3
KH
63572003-03-13 Kenichi Handa <handa@m17n.org>
6358
6359 * coding.c (Fdetect_coding_region): Fix docstring.
6360 (Fdetect_coding_string): Fix docstring.
6361
7a555aff
AS
63622003-03-13 Andreas Schwab <schwab@suse.de>
6363
25cc0080
AS
6364 * gtkutil.c: Add prototype for create_menus.
6365
30225431
AS
6366 * data.c (long_to_cons): Fix type of top.
6367
6368 * xselect.c (selection_data_to_lisp_data): Use int instead of
6369 long for an integer of size 4.
6370
7a555aff 6371 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 6372 (xg_tool_bar_help_callback): Likewise.
7a555aff 6373
a3e4741f
AS
63742003-03-12 Andreas Schwab <schwab@suse.de>
6375
6376 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6377
9668be7c
KS
63782003-03-12 Kim F. Storm <storm@cua.dk>
6379
03eb5fab 6380 The following changes consolidate the fringe handling from
9668be7c 6381 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 6382
9668be7c
KS
6383 * xdisp.c: Consolidate fringe handling code here.
6384 (left_bits, right_bits, continued_bits, continuation_bits)
6385 (ov_bits, zv_bits): Define fringe bitmaps.
6386 (fringe_bitmaps): New array holding fringe bitmaps.
6387 (draw_fringe_bitmap): Draw a specific bitmap; call display
6388 specific drawing routine via rif->draw_fringe_bitmap.
6389 (draw_row_fringe_bitmaps): Generic replacement for
6390 x_draw_row_fringe_bitmaps; all callers changed.
6391 (compute_fringe_widths): Generic replacement for
6392 x_compute_fringe_widths; all callers changed.
6393
6394 * dispextern.h (enum fringe_bitmap_type): Define here.
6395 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6396 (fringe_bitmaps): Declare extern.
6397 (struct redisplay_interface): New member draw_fringe_bitmap.
6398 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6399
6400 * xterm.c: Remove generic fringe code.
6401 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6402 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6403
6404 * w32term.c: Remove generic fringe code.
6405 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6406 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 6407
9668be7c
KS
6408 * macterm.c: Remove generic fringe code.
6409 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6410 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6411
00a88f32
SM
64122003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6413
6414 * print.c (Fprin1_to_string): Return unibyte string if possible.
6415
1d1de695
DK
64162003-03-09 David Kastrup <dak@gnu.org>
6417
6418 * process.c (read_process_output): We have allocated enough space
6419 for readmax and carryover, so actually use the alloted space.
6420
257f40f2
JD
64212003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6422
6423 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6424 toolkit scrollbar click.
6425
6426 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6427 for USE_GTK.
6428 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6429 also.
6430 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6431 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 6432
257f40f2
JD
6433 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6434
6435 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6436 (xg_tool_bar_item_expose_callback): New function.
6437 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6438 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6439 on the tool bar widget.
6440 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6441 to expose on the tool bar item widgets.
6442
15213141
JD
64432003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6444
26b74a0b 6445 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6446 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6447 deleted from the image cache).
6448
15213141
JD
6449 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6450 the event isn't for a frame (i.e. for dialogs).
6451
20b853f3 64522003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
6453
6454 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6455 composition components reaches the limit, terminate composing.
6456 (COMPOSITION_OK): New macro.
00a88f32 6457 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
6458 composition is found.
6459 (coding_restore_composition): Adjust the number of composition
6460 components if it is not sane.
6461
c9029fe5
JB
64622003-03-06 Juanma Barranquero <lektu@terra.es>
6463
6464 * w32term.h (struct w32_display_info): Add xrdb member to support
6465 passing resources via -xrm on Windows.
6466
6467 * w32term.c (w32_make_rdb): New function.
6468 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6469 struct. Delete leftover code.
6470
6471 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6472 for resources passed on the command line.
6473
6474 * w32reg.c (w32_get_rdb_resource): New function.
6475 (x_get_string_resource): Use it, so resources passed with -xrm
6476 supercede the ones in the registry.
6477
9d00001f
JD
64782003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6479
6480 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6481 instead of x_top_window_to_frame.
6482
ca2417b9
JD
64832003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6484
6485 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6486 when restarting Emacs.
6487
5b20caf0
RS
64882003-03-03 Richard M. Stallman <rms@gnu.org>
6489
6490 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6491 to run kill-buffer-query-functions.
6492 (Qkill_buffer_query_functions): New var.
6493 (syms_of_buffer): Init and staticpro it.
6494
58e91b77
JD
64952003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6496
6497 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6498
932357b4
KS
64992003-02-25 Kim F. Storm <storm@cua.dk>
6500
6501 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6502 If centering point failed to make whole line visible and vscroll
6503 is non-zero, disable vscroll and try centering point again.
6504
6505 * lread.c (read1): Accept `single space' syntax like (? x).
6506
bb8db7e1
JD
65072003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6508
6509 * keyboard.c (cancel_hourglass_unwind): Surround with
6510 #ifdef HAVE_X_WINDOWS
6511
47d77aab
KH
65122003-02-25 Kenichi Handa <handa@m17n.org>
6513
6514 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6515 process only when "subprocesses" is defined.
6516
6a097c0c
SM
65172003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6518
6519 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6520
0b063c27
JB
65212003-02-24 Juanma Barranquero <lektu@terra.es>
6522
d1135afc
JB
6523 * callint.c (fix_command): Declare as static void and move before
6524 Fcall_interactively.
6525
0b063c27
JB
6526 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6527 (syms_of_xdisp): Don't initialize Qwhen.
6528
0af912f0
JD
65292003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6530
6531 * keyboard.c (cancel_hourglass_unwind): New function.
6532 (command_loop_1): Cancel hourglass with unwind-protect.
6533
120d0a23
RS
65342003-02-23 Richard M. Stallman <rms@gnu.org>
6535
6536 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6537 Detect (when ... (region-beginning)) etc.
6538 (Fcall_interactively): Call fix_command.
6539 (Qif, Qwhen): New variables.
6540 (syms_of_callint): Init and staticpro them.
0b063c27 6541
120d0a23
RS
6542 * regex.c (print_partial_compiled_pattern): Output to stderr.
6543
4ece81a6
KG
65442003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6545
6546 * dired.c (directory_files_internal): Don't expand directory.
6547 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6548 instead. From Lars Hansen <larsh@math.ku.dk>.
6549
e52bd6b7
SM
65502003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6551
6552 * fns.c (string_to_multibyte): Remove unused var i.
6553 (Flanginfo): Fix int/Lisp_Object mixup.
6554 (void_call2): New fun.
6555 (Fmap_char_table): Use it in place of call2.
6556
6557 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6558
6559 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6560
6561 * keymap.c (copy_keymap_1): Make it static.
6562
6563 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6564
c33ef7c4
JB
65652003-02-22 David Ponce <david@dponce.com>
6566
6567 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6568
16782258
JD
65692003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6570
6571 * process.h: Removed subtty field from struct Lisp_Process.
6572
6573 * process.c (create_process): Remove setting of subtty.
6574 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
6575 (Fprocess_running_child_p, process_send_signal):
6576 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
6577 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6578
3abeca61
KG
65792003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6580
6581 * keymap.c (Fdefine_key): Doc fix.
6582
92a8ce63
JB
65832003-02-21 Juanma Barranquero <lektu@terra.es>
6584
6585 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6586
6587 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6588 POLLING_PROBLEM_IN_SELECT.
6589
6590 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
6591 Delete #undef of POLLING_PROBLEM_IN_SELECT.
6592
6593 * s/hpux10-20.h: New file.
6594
e52bd6b7
SM
6595 * process.c (wait_reading_process_input):
6596 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 6597
20f1ef2e
KH
65982003-02-20 Kenichi Handa <handa@m17n.org>
6599
32d0a9dc
KH
6600 * fontset.c (check_fontset_name): If NAME is nil, return the
6601 default fontset.
6602 (override_font_info): New function.
e52bd6b7 6603 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
6604 (Ffontset_info): If FONTSET is not the default fontset, merge
6605 FONTSET onto the copy of the default fontset, and work on that
6606 copy. Document that NAME nil means the default fontset.
6607 (Ffontset_font): Document that NAME nil means the default fontset.
6608
20f1ef2e
KH
6609 * process.c (setup_process_coding_systems): If the process's
6610 in/out descriptor is -1, do nothing.
6611
77d1daf2
AS
66122003-02-19 Andreas Schwab <schwab@suse.de>
6613
e52bd6b7
SM
6614 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
6615 Add prototypes.
77d1daf2 6616
f9a45bb3
KH
66172003-02-19 Kenichi Handa <handa@m17n.org>
6618
6619 * xfaces.c (try_alternative_families): Try all scalable fonts if
6620 Vscalable_fonts_allowed is not Qt.
6621
72ecb43c
JD
66222003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6623
6624 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
6625
ee5be7c3
JD
66262003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6627
6628 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
6629 names.
6630
6631 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 6632 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
6633 x_face_list_fonts.
6634 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
6635 (Fx_list_fonts): Set maxnames to -1 to get all font names.
6636
4cd519a7
KS
66372003-02-18 Kim F. Storm <storm@cua.dk>
6638
068f9882
KS
6639 * lread.c (read1): Fix last change.
6640 "`" is not always special. Allow "?" after a character constant.
4cd519a7 6641
7290a344
AC
66422003-02-18 Andrew Choi <akochoi@shaw.ca>
6643
6644 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
6645
1f7fa69b
AS
66462003-02-18 Andreas Schwab <schwab@suse.de>
6647
6648 * window.c (window_scroll_pixel_based): Move outside a
6649 multi-glyph character before setting new window start.
6650
6651 * xdisp.c (in_display_vector_p): New function.
6652 * dispextern.h (in_display_vector_p): Declare.
6653
23e21195
KS
66542003-02-18 Kim F. Storm <storm@cua.dk>
6655
6656 * lread.c (read1): Fix and relax read syntax.
6657 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
6658 Only recognize "," after dotted-pair dot if inside backquote.
6659 Never include "`" or "," (inside backquote) in a symbol.
6660 Allow dotted-pair dot after a character constant.
6661 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 6662
f098b121
JD
66632003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6664
6665 * gtkutil.c (xg_tool_bar_expose_callback): New function.
6666 (xg_create_tool_bar): Force style of tool bar to be horizontal with
6667 icons. Set name of tool bar to emacs-toolbar.
6668 (update_frame_tool_bar): Connect expose event to
6669 xg_tool_bar_expose_callback.
6670
63020c46
RS
66712003-02-17 Richard M. Stallman <rms@gnu.org>
6672
6673 * keyboard.c (this_command_key_count_reset): New variable.
6674 Initiatize to 0 where this_command_key_count is set.
6675 (read_char): Save and restore this_command_key_count_reset
6676 around input method code.
6677 (read_char): If this_command_key_count_reset, echo reread commands.
6678 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
6679
fb4452cc
KH
66802003-02-17 Kenichi Handa <handa@m17n.org>
6681
6682 * fns.c (string_to_multibyte): Always return a multibyte string.
6683
bd11cc09
JR
66842003-02-16 Jason Rumney <jasonr@gnu.org>
6685
e52bd6b7
SM
6686 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
6687 Negative max_fonts parameter means list all.
bd11cc09 6688
4cdf4bde
DL
66892003-02-14 Dave Love <fx@gnu.org>
6690
6691 * fns.c (Flanginfo): Doc fix.
6692
023b93f6
KS
66932003-02-13 Kim F. Storm <storm@cua.dk>
6694
37cd4238
KS
6695 * lread.c (read_escape): Interpret \s as a SPACE character, except
6696 for \s-X in a character constant which still is the super modifier.
6697 (read1): Signal an `invalid read syntax' error if a character
6698 constant is immediately followed by a digit or symbol character.
6699
140a6b7e
KS
6700 * search.c (Fmatch_data): Doc fix. Explicitly state that
6701 match-data is undefined if last search failed.
6702
023b93f6
KS
6703 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
6704 All uses changed.
6705
7d5c86e5
JB
67062003-02-12 Juanma Barranquero <lektu@terra.es>
6707
6708 * eval.c (Fdefmacro): Fix typo.
6709
295fff2c
KS
67102003-02-12 Kim F. Storm <storm@cua.dk>
6711
6712 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
6713 macro is a string, convert meta modifiers in string when copying
6714 the string into a vector.
6715
60f3202d
KS
67162003-02-11 Kim F. Storm <storm@cua.dk>
6717
6718 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
6719
61cb0b53
KH
67202003-02-11 Kenichi Handa <handa@m17n.org>
6721
6722 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
6723
7392e23c
KS
67242003-02-10 Kim F. Storm <storm@cua.dk>
6725
6726 * process.c: Doc fixes.
6727 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
6728
ce4254bd
KH
67292003-02-10 Kenichi Handa <handa@m17n.org>
6730
9c7a329a
KH
6731 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
6732
ce4254bd
KH
6733 * process.c (QCfilter_multibyte): New variable.
6734 (setup_process_coding_systems): New function.
e52bd6b7
SM
6735 (Fset_process_buffer, Fset_process_filter):
6736 Call setup_process_coding_systems.
ce4254bd
KH
6737 (Fstart_process): Initialize the member `filter_multibyte' of
6738 struct Lisp_Process.
6739 (create_process): Call setup_process_coding_systems.
6740 (Fmake_network_process): New keyward `:filter-multibyte'.
6741 Initialize the member `filter_multibyte' of struct Lisp_Process.
6742 Call setup_process_coding_systems.
6743 (server_accept_connection): Call setup_process_coding_systems.
6744 (read_process_output): If the process has a filter, decide the
6745 multibyteness of a string to given to the filter by
6746 `filter_multibyte' member of the process. If the process doesn't
6747 have a filter and the result of conversion is unibyte, use
6748 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
6749 multibyte form.
6750 (Fset_process_coding_system): Call setup_process_coding_systems.
6751 (Fset_process_filter_multibyte): New function.
6752 (Fprocess_filter_multibyte_p): New function.
6753 (syms_of_process): Intern and staticpro QCfilter_multibyte.
6754 Defsubr Sset_process_filter_multibyte and
6755 Sprocess_filter_multibyte_p.
6756
6757 * process.h (struct Lisp_Process): New member filter_multibyte.
6758
6759 * lisp.h (setup_process_coding_systems): Add prototype.
6760
6761 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
6762 process, update coding systems for the process.
6763
b08d5f59
KH
67642003-02-09 Kenichi Handa <handa@m17n.org>
6765
6766 * fns.c (string_to_multibyte): New function.
6767 (Fstring_to_multibyte): New function.
6768 (syms_of_fns): Defsubr it.
6769
0dfd93c0
AS
67702003-02-08 Andreas Schwab <schwab@suse.de>
6771
6772 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
6773 instead of the substitution.
6774
7b76ca1c
JD
67752003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6776
6777 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
6778
6779 * xmenu.c (menu_position_func): Adjust menu popup position so that
6780 the menu is fully visible.
7b76ca1c 6781
2436a4e4
JD
67822003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6783
6784 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
6785 (x_make_frame_invisible, x_wm_set_icon_position):
6786 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
6787
6788 * xfns.c (x_set_name, x_set_title): Ditto.
6789
37d1e680
RS
67902003-02-04 Richard M. Stallman <rms@gnu.org>
6791
6792 * keyboard.c (echo_now): Update before_command_echo_length.
6793 (Freset_this_command_lengths): Reset this_command_key_count etc.
6794 immediately rather than arranging to do it later.
6795 (before_command_key_count_1, before_command_echo_length_1)
6796 (before_command_restore_flag): Vars deleted.
6797 (add_command_key): Don't handle before_command_restore_flag.
6798 (read_char, record_menu_key): Don't update before_command_key_count or
6799 before_command_echo_length.
6800 (read_char): Don't handle before_command_restore_flag.
6801
6802 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
6803 in direct-output clauses if it wouldn't be called in the ordinary case.
6804
578846a3
KS
68052003-02-04 Kim F. Storm <storm@cua.dk>
6806
6807 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
6808
49853a4d
JD
68092003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6810
6811 * gtkutil.c (remove_from_container): Copying list is not needed.
6812 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
6813 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
6814 on list returned from gtk_container_get_children to avoid memory leak.
6815
8b53dc06
JR
68162003-02-01 Jason Rumney <jasonr@gnu.org>
6817
5d54d177
JR
6818 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6819 local malloc.
6820 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6821 definitions in xpm.h.
6822 (init_xpm_functions): New function.
f63fd14e 6823 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
6824 (init_external_image_libraries): Try to load libXpm.dll.
6825
8b53dc06
JR
6826 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6827 timestamp.
6828
b222e415
DL
68292003-01-31 Dave Love <fx@gnu.org>
6830
6831 * syntax.c (Fskip_chars_forward)
6832 (open-paren-in-column-0-is-defun-start): Doc fix.
6833
c60ee5e7
JB
68342003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
6835
6836 * fileio.c: Support // at start of name for Cygwin (just added proper
6837 preprocessor tests).
6838
6839 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
6840
6841 * Makefile.in: Use @EXEEXT@ for Cygwin.
6842
6843 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
6844
6845 * s/cygwin.h: Added for Cygwin port.
6846
53b37591
JB
68472003-01-31 Juanma Barranquero <lektu@terra.es>
6848
6849 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6850 when including gif_lib.h.
fe929957 6851 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
6852 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6853 Windows. Disable color table lookups. Call library functions
53b37591 6854 through pointers determined at runtime.
fe929957
JB
6855 (init_external_image_libraries): Try to load libungif.dll and
6856 libtiff.dll.
53b37591 6857
45415a8f
KH
68582003-01-31 Kenichi Handa <handa@m17n.org>
6859
6860 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 6861 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 6862
a97e4138
JD
68632003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6864
e52bd6b7 6865 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 6866
6eed9bed
DL
68672003-01-30 Dave Love <fx@gnu.org>
6868
6869 * alloc.c (Vgc_elapsed, gcs_done): New variables.
6870 (Fgarbage_collect): Use them.
6871 (init_alloc, syms_of_alloc): Set them up.
6872
100dcd40
JB
68732003-01-30 Juanma Barranquero <lektu@terra.es>
6874
6875 * w32fns.c (init_external_image_libraries): Add missing operator.
6876
fbd852af
JR
68772003-01-29 Jason Rumney <jasonr@gnu.org>
6878
6879 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
6880 an alternative name for jpeg.dll.
6881
8a2d8020
KH
68822003-01-29 Kenichi Handa <handa@m17n.org>
6883
6884 * xdisp.c (set_cursor_from_row): Pay attention to string display
6885 properties.
6886
058c18c7
AC
68872003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6888
6889 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
6890 <escape>.
6891 (keycode_to_xkeysym_table): Reformat and add more comments.
6892 (XTread_socket): Drop special case for backspace.
6893
385f11cf
AC
68942003-01-28 Andrew Choi <akochoi@shaw.ca>
6895
6896 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
6897 values in old-style RGB specs.
6898
c922a224
JB
68992003-01-27 Juanma Barranquero <lektu@terra.es>
6900
6901 * w32fns.c (init_external_image_libraries): Try alternate names for the
6902 jpeg dll.
6903
0a1d6de0
JD
69042003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6905
6906 * gtkutil.c (create_dialog, xg_separator_p)
6907 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
6908 before calling strcmp or strlen.
6909
a97e4138 69102003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
6911
6912 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
6913 and handle image load failure.
6914
28908312
JR
69152003-01-26 Jason Rumney <jasonr@gnu.org>
6916
6917 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6918 New functions.
f63fd14e
JB
6919 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6920 Disable color table lookups. Call jpeg library functions
28908312
JR
6921 through pointers determined at runtime.
6922 (init_external_image_libraries): Try to load jpeg.dll.
6923
84e47416
RS
69242003-01-25 Richard M. Stallman <rms@gnu.org>
6925
6926 * lisp.h: Declare format2 instead of format1.
6927
6928 * fileio.c (barf_or_query_if_file_exists):
6929 Call format2 instead of format1.
6930
6931 * editfns.c (format2): New function, replaces format1
6932 but takes exactly two Lisp Objects as format args.
6933
6934 * buffer.c (Fkill_buffer): Call format2 instead of format1.
6935
a97e4138 69362003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
6937
6938 * xterm.h: Change to return value of x_dispatch_event to int.
6939
6940 * xterm.c (x_filter_event): New function.
6941 (event_handler_gdk, XTread_socket): Call x_filter_event.
6942 (x_dispatch_event): Change to return value of finish.
6943 (event_handler_gdk): Use return value from x_dispatch_event.
6944
6945 * xfns.c (x_window): Call create_frame_xic for GTK version to
6946 initialize input methods.
6947
6948 * gtkutil.h: Add (void) prototypes.
6949
6950 * gtkutil.c (create_menus): Remove code that puts the help menu to
6951 the right.
6952
54eefef1
JR
69532003-01-25 Jason Rumney <jasonr@gnu.org>
6954
6955 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6956 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
6957 (png_load): Adjust colors for Windows. Use Windows
6958 bitmaps. Disable color table lookups.
c262430d
JR
6959 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6960 (init_png_functions): New function.
6961 (png_read_from_memory, png_load): Call png library functions
6962 through pointers determined at runtime.
6963 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6964 (init_external_image_libraries): New function.
6965 (init_xfns): Call it.
54eefef1 6966
1a9e275b
AS
69672003-01-24 Andreas Schwab <schwab@suse.de>
6968
6969 * minibuf.c (Fminibuffer_message): Verify type of parameter.
6970
a97e4138 69712003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
6972
6973 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
6974 of static initializer.
6975
422eec7e
DL
69762003-01-24 Dave Love <fx@gnu.org>
6977
6978 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
6979 architectures.
6980
6981 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
6982 Use __alignof__.
6983
2a026b04
KH
69842003-01-24 Kenichi Handa <handa@m17n.org>
6985
6986 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 6987 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
6988 (command_loop_1): Call adjust_point_for_property with proper
6989 second arg.
6990
a18bb28d
JR
69912003-01-22 Jason Rumney <jasonr@gnu.org>
6992
6993 Sync changes with xterm.c and xfns.c.
6994
6995 * w32term.c (x_draw_glyph_string_foreground)
6996 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6997
6998 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
6999 phys_cursor's hpos is overwritten. This is still not completely
7000 correct, as it doesn't really make sense to use hpos at all to
7001 get the cursor glyph (as that is relative to the width of the
7002 characters on the line, which may have changed during the update).
7003
7004 * w32term.c (notice_overwritten_cursor): Handle the special case
7005 of the cursor being in the first blank non-text line at the
7006 end of a window.
7007
7008 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7009 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7010 Compute from the x position returned by x_draw_glyphs.
7011
7012 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7013 except for NO_CURSOR and system caret, to make phys_cursor_width
7014 contain what its name suggests.
7015 (notice_overwritten_cursor): Consider the cursor image erased if
7016 the output area intersects the cursor image in y-direction.
7017
6a097c0c
SM
7018 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7019 note_mode_line_highlight and extend.
a18bb28d
JR
7020
7021 * w32term.c (last_window): New variable.
7022 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7023 (note_mouse_movement): Remove reimplemented code in #if 0.
7024
7025 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7026 not update_mode_lines, and always set it to 1.
7027
ac6e47ef
JR
70282003-01-21 Jason Rumney <jasonr@gnu.org>
7029
7030 * w32fns.c (IDC_HAND): Define it if system headers don't.
7031
70322003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7033
7034 * w32term.h (struct w32_output): New member hand_cursor.
7035 (WM_EMACS_SETCURSOR): New message definition.
7036
7037 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7038 function w32_define_cursor.
7039 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7040 position, change member name output_data.x to output_data.w32 and
7041 add function w32_define_cursor.
7042 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7043 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7044 (w32_initialize_display_info):
7045 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7046
7047 * w32fns.c (Vx_hand_shape): New variable.
7048 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7049 WM_EMACS_SETCURSOR.
7050 (x-create-frame): Setup Cursor types.
7051
ceb39a17
JB
70522003-01-21 David Ponce <david@dponce.com>
7053
ac6e47ef 7054 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7055 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7056 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7057 2002-09-30.)
ac6e47ef
JR
7058 (w32_draw_relief_rect): Declare all args.
7059 (w32_define_cursor): New.
7060
7061 * w32fns.c (w32_load_cursor): New function.
7062 (w32_init_class): Use it.
7063 (x_put_x_image): Declare all args.
7064
46cf0bed
JB
70652003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7066
7067 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7068
a97e4138 70692003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7070
7071 * gtkutil.c: Must include stdio.h before termhooks.h
7072
83fc9c63
DL
70732003-01-21 Dave Love <fx@gnu.org>
7074
7075 * alloc.c (Fgc_status): Print zombie list.
7076 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7077 Fix assignment of zombies.
7078 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7079 Don't take car of non-cons.
7080
7081 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7082
7083 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7084
fe04b8c8
JR
70852003-01-20 David Ponce <david@dponce.com>
7086
7087 * w32menu.c (digest_single_submenu): Declare all args.
7088
7089 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7090 changes in xmenu.c:
7091
7092 (parse_single_submenu): Use individual keymap's prompt
7093 string as pane name, if there is one.
7094 (set_frame_menubar): Save menu_items_n_panes from each call to
7095 parse_single_submenu and use it when calling digest_single_submenu.
7096
539e69a9
ST
70972003-01-20 Steven Tamm <steventamm@mac.com>
7098
7099 * macterm.c (XTread_socket): Checks for valid, visible window
7100 before sending a scroll-wheel event.
7101
675d000f
RS
71022003-01-20 Richard M. Stallman <rms@gnu.org>
7103
7104 * xdisp.c (redisplay_window): If mini window's buffer is not
7105 a minibuffer, then redisplay it like other windows.
7106
a97e4138 71072003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7108
7109 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7110 external tool bar before setting tool bar height.
7111
048addec
JD
71122003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7113
7114 * xterm.c (handle_one_xevent): Surround popup_activated
7115 with #ifdef:s for non-toolkit version.
7116
7117 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7118 (gtkutil.o): New file.
7119 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7120 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7121
7122 * gtkutil.c: New file for GTK version.
7123
7124 * gtkutil.h: New file for GTK version.
7125
7126 * xterm.h: Add xt_or_gtk_widget.
7127 Include gtk files for USE_GTK.
7128 (struct x_output): Add toolbar_height.
7129 (struct x_output): Add GTK widgets and Gdk size_hints.
7130 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7131 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7132 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7133
7134 * xterm.c: Include gtkutil.h for USE_GTK.
7135 Declare extern void free_frame_menubar for USE_GTK.
7136 (note_mouse_highlight): Check popup_activated for USE_GTK.
7137 (xt_action_hook): Don't compile if USE_GTK.
7138 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7139 (xg_scroll_callback): New function.
7140 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7141 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7142 for USE_GTK.
7143 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7144 xg_show_scroll_bar for USE_GTK.
7145 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7146 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7147 (event_handler_gdk): New function for USE_GTK.
7148 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7149 (handle_one_xevent): Make sure widget is mapped before
7150 calling x_real_positions for USE_GTK.
7151 (XTread_socket): Add GTK event loop for USE_GTK.
7152 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7153 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7154 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7155 (x_iconify_frame): Add code for USE_GTK.
7156 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7157 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7158 is in gtkutil.c.
7159 (x_term_init): Add initialization for GTK.
7160 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7161
7162 * xmenu.c: Include gtkutil.h for USE_GTK.
7163 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
7164 (single_menu_item, single_menu_item, Fx_popup_dialog):
7165 Check for USE_GTK.
048addec
JD
7166 (popup_widget_loop): New function for USE_GTK.
7167 (x_activate_menubar): Add code for USE_GTK.
7168 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
7169 (menu_highlight_callback, menubar_selection_callback):
7170 Add USE_GTK versions.
048addec
JD
7171 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7172 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7173 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7174 is in gtkutil.c.
7175 (popup_selection_callback): New version for USE_GTK.
7176 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 7177 one USE_X_TOOLKIT version.
048addec
JD
7178 (xmenu_show): Call create_and_show_popup_menu.
7179 (dialog_selection_callback): New version for USE_GTK.
7180 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 7181 one USE_X_TOOLKIT version.
048addec
JD
7182 (xdialog_show): Call create_and_show_dialog.
7183
7184 * xfns.c: Include gtkutil for USE_GTK.
7185 (x_window_to_frame, x_any_window_to_frame)
7186 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7187 (x_top_window_to_frame): Add code for USE_GTK.
7188 (x_set_background_color): Call xg_set_background_color for GTK.
7189 (x_set_menu_bar_lines): Check for USE_GTK.
7190 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7191 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7192 (x_window): Call xg_create_frame_widgets for USE_GTK.
7193 (Fx_create_frame): Check for USE_GTK
7194 (Fx_file_dialog): New implementation for USE_GTK.
7195
7196 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7197 (update_menu_bar): Add check for USE_GTK.
7198 (update_tool_bar): Add check for USE_GTK and external tool bar.
7199 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7200 (redisplay_internal): Add check for USE_GTK and popup_activated.
7201 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7202 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7203 (display_menu_bar): Add check for USE_GTK
7204
7205 * lisp.h: Declare Vx_resource_name extern.
7206
a64387ee 7207 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
7208 for USE_GTK.
7209 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7210
7211 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7212 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7213 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7214
7215 * fileio.c (Fread_file_name): Add check for USE_GTK.
7216
6bdb309a
SM
7217 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7218 Add check for USE_GTK.
048addec
JD
7219
7220 * config.in: Added HAVE_GTK
7221
7222 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7223
72242003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7225
7226 * charset.h (Funibyte_char_to_multibyte): Export.
7227
72282003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7229
7230 * xmenu.c (mouse_position_for_popup): New function.
7231 (Fx_popup_menu): Call mouse_position_for_popup for X and
7232 mouse_position_hook for others.
7233
72342003-01-17 Kim F. Storm <storm@cua.dk>
7235
7236 * editfns.c (Finsert): Mention `string-make-multibyte' and
7237 `string-as-multibyte' in doc string.
7238
72392003-01-17 Kenichi Handa <handa@m17n.org>
7240
7241 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 7242
048addec
JD
7243 * editfns.c (Fformat): Convert an unibyte char argument that is
7244 formatted by "%c" to multibyte if the total result must be a
7245 multibyte string.
cd7df9c0 7246
048addec 72472003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 7248
048addec
JD
7249 * process.c (set-process-filter): Document unibyte/multibyte-ness
7250 of string argument.
56210ecd 7251
048addec 72522003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 7253
048addec 7254 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 7255
048addec
JD
7256 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7257 (re_search_2): Likewise.
6df8b9fe 7258
048addec 72592003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 7260
048addec
JD
7261 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7262 buffer is unibyte.
292ddc31 7263
048addec 72642003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 7265
048addec 7266 * fns.c (Fsubstring): Clarify doc string.
292ddc31 7267
048addec
JD
7268 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7269 (Fprevious_char_property_change)
7270 (Fnext_single_char_property_change)
7271 (Fprevious_single_char_property_change, Fnext_property_change)
7272 (Fnext_single_property_change, Fprevious_property_change)
7273 (Fprevious_single_property_change, Fadd_text_properties)
7274 (Fput_text_property, Fset_text_properties)
7275 (Fremove_text_properties, Fremove_list_of_text_properties)
7276 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 7277
048addec 72782003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 7279
048addec
JD
7280 * process.h (struct Lisp_Process): New member plist replaces old
7281 member private_vars. All uses changed.
63e4e4c6 7282
048addec 7283 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 7284 (QCplist): Rename from QCvars. Change all uses.
048addec 7285 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 7286 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 7287 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 7288 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 7289
048addec 72902003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 7291
6bdb309a 7292 * m/delta.h: Remove (obsolete).
e833850f 7293
048addec 72942003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 7295
048addec
JD
7296 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7297 behaviour in front of symlinks.
7298 (Fdelete_file): Raise an error on directories.
817cb127 7299
048addec 73002003-01-13 Dave Love <fx@gnu.org>
817cb127 7301
048addec 7302 * fns.c (Freverse): Use QUIT.
3e8cf2ea 7303
048addec 73042003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 7305
048addec
JD
7306 * minibuf.c (minibuffer_completion_contents):
7307 Error if point is inside prompt.
3e8cf2ea 7308
048addec
JD
7309 * keyboard.c (command_loop_1): Don't redisplay directly
7310 if there's a post-command-hook.
3e8cf2ea 7311
048addec
JD
7312 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7313 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 7314
048addec 73152003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 7316
048addec 7317 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 7318
048addec
JD
7319 * process.c (QCvars): New variable.
7320 (syms_of_process): Intern and staticpro it.
7321 (Fset_process_contact): Removed function.
7322 (Fprocess_variable, Fset_process_variable): New functions.
7323 (syms_of_process): Defsubr them.
7324 (Fstart_process): Initialize private_vars plist to nil.
7325 (Fmake_network_process): New arg :vars to setup the private
7326 variables for new network process.
7327 (server_accept_connection): Copy server's private variables to
7328 client process.
2c10f029 7329
048addec
JD
7330 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7331 crashes). Code rewritten and simplified. Now directly aligns the
7332 pointer and recalculates pure_bytes_used, rather than aligning the
7333 size and adjusting the pointer.
b8a76c6c 7334
048addec 73352003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 7336
048addec
JD
7337 * process.c (Fset_process_contact): New function.
7338 (syms_of_process): defsubr it.
7339 (make-network-process): Update doc.
3a8d0899 7340
048addec 73412003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 7342
048addec
JD
7343 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7344 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 7345
048addec 73462003-01-10 Dave Love <fx@gnu.org>
4abc7470 7347
048addec 7348 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 7349
048addec 73502003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 7351
048addec
JD
7352 * process.c (Fmake_network_process): Convert new port number
7353 to host byte order for `:service t' case. From Mario Lang.
bf338245 7354
048addec 73552003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 7356
048addec
JD
7357 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7358 instead of XtAppProcessEvent.
bf338245 7359
048addec
JD
7360 * xterm.c (handle_one_xevent): New function.
7361 (x_dispatch_event): New function.
7362 (XTread_socket): Call handle_one_xevent.
bf338245 7363
048addec 7364 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 7365
048addec
JD
7366 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7367 call XQueryPointer to get coordinates.
7368 (popup_get_selection): Do not set popup_activated_flag to zero,
7369 let popup_deactivate_callback do that. Needed for Motif.
7370 Call x_dispatch_event instead of XtDispatchEvent.
7371 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 7372
048addec 73732003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 7374
6bdb309a 7375 * process.c (server_accept_connection): Fix recording of new
048addec
JD
7376 connection's local address in :local property of contact info.
7377 (Fmake_network_process): Record local network address for new
7378 client processes in :local property of contact info.
6bdb309a 7379 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 7380
048addec 73812003-01-07 Dave Love <fx@gnu.org>
00e3ab56 7382
048addec 7383 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 7384
048addec 73852003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 7386
048addec 7387 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 7388
048addec
JD
7389 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7390 use the same test as for custom-variable-p.
8c6d74c6 7391
048addec 73922003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 7393
048addec
JD
7394 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7395 Count LAST_LINE_MISFIT in scroll margin for end of window.
7396 Move label too_near_end before setting SCROLL_MARGIN_POS.
7397 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 7398
048addec
JD
7399 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7400 scroll_conservatively case. If scrolling that much doesn't change
7401 STARTP, move it down one line.
e833850f 7402
048addec
JD
7403 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7404 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 7405
048addec
JD
7406 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7407 selected frame.
8c6d74c6 7408
048addec
JD
7409 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7410 (syms_of_keymap): staticpro them.
7411 (Fapropos_internal): Initialize them and clear them out.
7412 Don't GCPRO them.
8c6d74c6 7413
048addec
JD
7414 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7415 Doc fixes.
8c6d74c6 7416
048addec
JD
7417 * lisp.h: New misc type Lisp_Save_Value.
7418 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7419 (XSAVE_VALUE): New macro.
7420 (struct Lisp_Save_Value): New data type.
7421 (union Lisp_Misc): Add u_save_value alternative.
7422 (make_save_value): Declared.
8c6d74c6 7423
048addec 7424 * alloc.c (make_save_value): New function.
8c6d74c6 7425
048addec
JD
7426 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7427 (x_catch_errors_unwind): Call XSync.
8c6d74c6 7428
048addec 74292003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 7430
048addec 7431 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 7432
048addec
JD
7433 * keyboard.c (command_loop_1): Call adjust_point_for_property
7434 in direct action cases for Qforward_char and Qbackward_char.
7435 Set already_adjusted so it won't be done twice.
8c6d74c6 7436
048addec 74372002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 7438
048addec
JD
7439 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7440 type definition of size_t.
8c609cff 7441
048addec 74422003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 7443
048addec
JD
7444 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7445 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7446
048addec 74472002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 7448
048addec
JD
7449 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7450 to default to t.
fa634a5e 7451
048addec 74522002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 7453
048addec 7454 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 7455
048addec 74562002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 7457
048addec
JD
7458 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7459 allow building in a different directory than source. Uses some
7460 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 7461
048addec 74622002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 7463
048addec
JD
7464 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7465 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7466 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7467 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 7468
048addec 74692002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 7470
048addec
JD
7471 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7472 <scroll-down-aggressively>: Doc fix.
2155ecf3 7473
048addec
JD
7474 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7475 string as pane name, if there is one.
7476 (set_frame_menubar): Save menu_items_n_panes from each call to
7477 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 7478
048addec
JD
7479 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7480 Don't try to make last line fully visible if it is past end of window.
61f1d295 7481
048addec 74822002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 7483
048addec
JD
7484 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7485 (mac_menu_show): Add support for hierarchical popup menus.
7486 (add_menu_item): Remove indentation support.
7487 (fill_submenu, fill_menu): Create hierarchical menus
7488 instead of using indentation.
0b17a217 7489
048addec 74902002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 7491
048addec
JD
7492 * xdisp.c (try_cursor_movement): Don't call try_window here.
7493 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 7494
048addec 7495 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 7496
048addec 74972002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 7498
048addec
JD
7499 * macterm.c (XTread_socket): Call KeyTranslate for control and
7500 meta to deal correctly shifted non-alpha characters, like C-S-5
7501 being treated like C-%. Does not look for shift key to deal
7502 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 7503
048addec 75042002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 7505
048addec
JD
7506 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7507 If it is non-nil, run timers. Use an unwind-protect to requeue
7508 the events that were read ahead.
7509 (popup_get_selection_unwind): New subroutine.
7510 (popup_get_selection_queue): File-scope variable now holds that queue.
7511 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7512 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7513 Use an unwind-protect to pop down the dialog box.
7514 (xdialog_show_unwind): New subroutine implements that.
f02cac82 7515
048addec
JD
7516 * xdisp.c (row_containing_pos): Change exit test using last_y.
7517 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 7518
048addec
JD
7519 * lread.c (load_error_handler): New function.
7520 (Fload): Handle errors in Fsubstitute_in_file_name.
7521 Don't expect Fsignal to return.
f02cac82 7522
048addec
JD
7523 * eval.c: Errors and throws work right with interrupt blocking.
7524 (struct catchtag): New elt interrupt_input_blocked.
7525 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7526 (internal_catch, Fcondition_case, internal_condition_case)
7527 (internal_condition_case_1, internal_condition_case_2): Save it.
7528 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 7529
048addec 7530 * editfns.c (Fformat): Add parens.
f02cac82 7531
048addec
JD
7532 * dired.c (file_name_completion): Fix that change.
7533 Delete special quit-handling code; just use QUIT.
f02cac82 7534
048addec 75352002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 7536
048addec
JD
7537 * dired.c (file_name_completion): Close directory on error
7538 just as in directory_files_internal.
1a590729 7539
048addec 75402002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 7541
048addec
JD
7542 * window.c (Fset_window_configuration): Set old_point to correct
7543 value when new_current_buffer == current_buffer.
f02cac82 7544
048addec 75452002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 7546
048addec
JD
7547 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7548 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7549 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 7550
048addec
JD
7551 These changes were in part based upon suggestions made by Peter
7552 'Luna' Runestig [peter@runestig.com].
9785d95b 7553
048addec
JD
7554 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7555 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 7556 g_b_init_get_sid_identifier_authority ): Add several static
048addec 7557 global variables.
9785d95b 7558
048addec
JD
7559 * w32.c (globals_of_w32): New function. Used to initialize those
7560 global variables that must always be initialized on startup even
7561 when the global variable initialized is non zero. Its primary
7562 purpose at this time is to set the global variables
7563 g_b_init_is_windows_9x, g_b_init_open_process_token,
7564 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7565 g_b_init_get_sid_identifier_authority to 0 on startup.
7566 Called from main.
9785d95b 7567
048addec
JD
7568 * w32.c (is_windows_9x): Perform initialization only if
7569 g_b_init_is_windows_9x is equal to 0. On initialization set
7570 g_b_init_is_windows_9x equal to 1.
2308af15 7571
048addec
JD
7572 * w32.c (open_process_token): Perform initialization only if
7573 g_b_init_open_process_token is equal to 0. On initialization set
7574 g_b_init_open_process_token equal to 1.
2308af15 7575
048addec
JD
7576 * w32.c (get_token_information): Perform initialization only if
7577 g_b_init_get_token_information is equal to 0. On initialization
7578 set g_b_init_get_token_information equal to 1.
9785d95b 7579
048addec
JD
7580 * w32.c (lookup_account_sid): Perform initialization only if
7581 g_b_init_lookup_account_sid is equal to 0. On initialization
7582 set g_b_init_lookup_account_sid equal to 1.
9785d95b 7583
048addec
JD
7584 * w32.c (get_sid_identifier_authority): Perform initialization
7585 only if g_b_init_get_sid_identifier_authority is equal to 0.
7586 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 7587
f63fd14e 7588 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
7589 those global variables that must always be initialized on startup
7590 even when the global variable initialized is non zero.
7591 Its primary purpose at this time is to initialize the global variable
7592 track_mouse_event_fn.
9785d95b 7593
a64387ee 7594 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 7595 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 7596
048addec 7597 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 7598
f63fd14e 7599 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
7600 initialize those global variables that must always be initialized
7601 on startup even when the global variable initialized is non zero.
7602 Its primary purpose at this time is to initialize the global
7603 variables get_menu_item_info and set_menu_item_info.
9785d95b 7604
048addec
JD
7605 * w32menu.c (initialize_frame_menubar): Remove initialization of
7606 get_menu_item_info and set_menu_item_info.
9785d95b 7607
048addec 7608 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 7609
048addec
JD
7610 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
7611 Declare them.
9785d95b 7612
048addec
JD
7613 * emacs.c (main): Call globals_of_w32 prior to calling
7614 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
7615 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
7616 is defined.
9785d95b 7617
048addec
JD
7618 * w32term.c (x_update_window_begin): Fix Windows API error
7619 detected by BoundsChecker. Test to determine if
7620 w32_system_caret_hwnd is NULL prior to attempting to use
7621 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 7622
048addec
JD
7623 * w32term.c (x_update_window_end): Fix Windows API error
7624 detected by BoundsChecker. Test to determine if
7625 w32_system_caret_hwnd is NULL prior to attempting to use
7626 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 7627
048addec 76282002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 7629
048addec
JD
7630 * coding.c (coding_system_require_warning): New variable.
7631 (syms_of_coding): DEFVAR it.
b6da19ef 7632
048addec 7633 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 7634
048addec
JD
7635 * fileio.c (choose_write_coding_system): Even if
7636 Vcoding_system_for_write is non-nil, if
7637 coding_system_require_warning is nonzero, call
7638 Vselect_safe_coding_system_function.
bfcf6dbe 7639
048addec 76402002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 7641
048addec
JD
7642 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
7643 (lisp): Add font-core.
2c568af5 7644
048addec 76452002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 7646
048addec
JD
7647 * textprop.c (text_read_only): New arg `propval'.
7648 (get_char_property_and_overlay): Remove unused var `next_overlay'.
7649 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 7650
048addec 76512002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 7652
048addec 7653 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 7654
048addec 76552002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 7656
048addec
JD
7657 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
7658 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
7659 Be more careful about when help_events are generated.
96720f09 7660
048addec 76612002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 7662
048addec
JD
7663 * macterm.c (mac_check_for_quit_char): Correctly set the
7664 modifiers of the event to 0.
7665 * mac.c (sys_select): Duplicate rfds before calling select to
7666 ensure that rfds survive the while loop.
e5ae1c49 7667
048addec 76682002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 7669
048addec
JD
7670 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
7671 row_containing_pos returned NULL.
2eb46b2d 7672
048addec 76732002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 7674
6bdb309a 7675 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 7676 non-blocking.
6bdb309a 7677 (sys_select): Fix sys_select to not use a timeout larger than
048addec 7678 the one given.
b11f1d8a 7679
048addec 76802002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 7681
048addec 7682 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 7683
048addec 76842002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 7685
048addec
JD
7686 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
7687 as the last thing.
a4ac5b17 7688
048addec 76892002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 7690
048addec 7691 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 7692
048addec 76932002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 7694
048addec
JD
7695 * editfns.c (Fformat): Handle precision in string conversion
7696 specifiers like libc functions do (ie, print at most that many
7697 characters).
85cce843 7698
048addec 76992002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 7700
048addec
JD
7701 * xdisp.c (row_containing_pos): Check more carefully
7702 whether charpos is really in the row before returning it.
0d4d26a7 7703
048addec 77042002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 7705
048addec 7706 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 7707
048addec
JD
7708 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
7709 each stack frame. This may change as it could be time consuming.
0d4d26a7 7710
048addec
JD
7711 * macterm.c (mac_check_for_quit_char, quit_char_comp)
7712 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 7713 (mac_initialize): Add code to check for pressing of quit_char
048addec 7714 in the OS event queue.
b11f1d8a 7715
048addec
JD
7716 * mac.c (sys_select): Call mac_check_for_quit_char every second
7717 while blocking on select.
0d4d26a7 7718
048addec
JD
7719 * mac.c (sys_read): Use sys_select to test for input first
7720 before calling read, to allow C-g to break.
9252f7bc 7721
048addec 77222002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 7723
048addec 7724 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 7725
048addec 7726 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 7727
048addec 7728 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 7729
048addec
JD
7730 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
7731 autoload.
9252f7bc 7732
048addec 7733 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 7734
048addec 7735 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 7736
048addec 77372002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 7738
048addec 7739 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 7740
048addec 77412002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 7742
048addec 7743 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7744
048addec 7745 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7746
048addec 7747 * alloca.c: Don't use #error.
02d588e2 7748
048addec 77492002-12-03 Dave Love <fx@gnu.org>
02d588e2 7750
048addec
JD
7751 * buffer.c (Qucs_set_table_for_input): New.
7752 (Fget_buffer_create): Use it.
7753 (Qset_buffer_major_mode_hook): Deleted.
7754 (Fset_buffer_major_mode): Revert previous change.
7755 (init_buffer_once): Intern ucs-set-table-for-input.
7756 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
7757 Add &Qucs_set_table_for_input.
451e2697 7758
048addec 77592002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 7760
048addec
JD
7761 * callint.c (Fcall_interactively): Use next_event only if less
7762 than key_count.
72742a99 7763
048addec 77642002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 7765
048addec
JD
7766 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
7767 names to 255 characters.
72742a99 7768
048addec
JD
7769 * macterm.c (XTread_socket): If all frames have been collapsed,
7770 expand the first one before handling drag-and-drop events.
72742a99 7771
048addec
JD
7772 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
7773 which is detected by autoconf.
40e6ff95 7774
048addec 77752002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 7776
048addec
JD
7777 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
7778 offset in two hints table to allow prebinding to be redone and
7779 allow the executable to be stripped.
c02138c6 7780
048addec 77812002-11-29 Dave Love <fx@gnu.org>
c02138c6 7782
048addec
JD
7783 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
7784 already provided.
0e47bbf7 7785
048addec 77862002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 7787
048addec
JD
7788 * xdisp.c (start_display): Check more intelligently for
7789 whether the line is continued.
7790 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 7791
048addec 77922002-11-28 Dave Love <fx@gnu.org>
44129dcb 7793
048addec
JD
7794 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
7795 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 7796
048addec 77972002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 7798
048addec
JD
7799 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
7800 more descriptive error output from lread.c:Fload upon most require
7801 cycles during boostrapping.
1637fd2c 7802
048addec 78032002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 7804
048addec
JD
7805 * fileio.c (Finsert_file_contents): Give a more appropriate error
7806 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 7807
048addec
JD
7808 * dired.c (Ffile_attributes): Don't return negative file sizes for
7809 files bigger than 2Gb when off_t is 32 bit.
540c2788 7810
048addec 78112002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 7812
048addec 7813 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 7814
048addec
JD
7815 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
7816 Test GETPGRP_VOID instead.
7817 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 7818
048addec
JD
7819 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
7820 Don't define.
7821 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 7822
048addec 7823 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 7824
048addec 78252002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 7826
048addec
JD
7827 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
7828 supported.
4042a81a 7829
048addec 78302002-11-25 Dave Love <fx@gnu.org>
4042a81a 7831
048addec 7832 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 7833
048addec 7834 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 7835
048addec 78362002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 7837
048addec 7838 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 7839
048addec 78402002-11-24 Steven Tamm <steventamm@mac.com>
82122254 7841
048addec
JD
7842 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
7843 determine the size of pointers alloced in unexed space instead
7844 of using possibly invalid emacs_zone pointers. This fixes the
7845 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 7846
048addec 78472002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 7848
048addec 7849 * search.c (Fstring_match): Doc fix.
c1ee53bc 7850
048addec
JD
7851 * callint.c (Fcall_interactively): If a command fails because
7852 `*' detects a read-only buffer, but RECORD_FLAG is set,
7853 record it anyway if the args don't actually do tty input.
5598c32e 7854
048addec 78552002-11-22 Dave Love <fx@gnu.org>
5598c32e 7856
048addec 7857 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 7858
048addec
JD
7859 * keyboard.c (interrupt_signal): Provide forward declaration.
7860 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 7861
048addec 7862 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 7863
048addec 78642002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 7865
048addec
JD
7866 * eval.c (interactive_p): Skip any number of bytecode
7867 and special form frames, in any order.
516eea8e 7868
048addec 78692002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 7870
048addec
JD
7871 * w32fns.c (convert_mono_to_color_image): New function.
7872 (xbm_load, xbm_load_image): Use it when foreground or background
7873 is explicitly set.
04dbfa08 7874
048addec 78752002-11-19 Dave Love <fx@gnu.org>
04dbfa08 7876
048addec 7877 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 7878
048addec 78792002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 7880
048addec
JD
7881 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
7882 (XPutPixel): Swap blue and red.
7883 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
7884 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7885 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
7886 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 7887
048addec 78882002-11-18 Dave Love <fx@gnu.org>
d824beee 7889
048addec 7890 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 7891
048addec 7892 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 7893
048addec 7894 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 7895
048addec
JD
7896 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
7897 malloc, realloc, calloc.
d824beee 7898
048addec
JD
7899 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
7900 (bcmp): Don't define.
d824beee 7901
048addec 7902 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 7903
048addec 7904 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 7905
048addec 7906 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 7907
048addec 7908 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 7909
048addec
JD
7910 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
7911 Don't include alloca.h.
d824beee 7912
048addec 7913 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 7914
048addec 7915 * regex.c (_GNU_SOURCE): Don't define.
1998560a 7916
048addec 7917 * process.c (_GNU_SOURCE): Don't define.
1998560a 7918
048addec 7919 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 7920
048addec 79212002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 7922
048addec 7923 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 7924
048addec 79252002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 7926
048addec
JD
7927 * dispextern.h (struct face): Add `overstrike' field.
7928 * xterm.c (x_draw_glyph_string_foreground)
7929 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7930 * xfaces.c (load_face_font): Set `face->overstrike' based on
7931 result from choose_face_font.
7932 (best_matching_font, choose_face_font): Add `needs_overstrike'
7933 argument, and use it to return whether overstriking is desirable
7934 for this face/font combo.
7935 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 7936
048addec 79372002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 7938
048addec
JD
7939 This change is my fix for the following entry in etc/PROBLEMS:
7940 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7941 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 7942
048addec
JD
7943 * w32.c: Added wrapper functions around the win32 API functions
7944 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
7945 GetSidIdentifierAuthority. These wrapper functions serve two
7946 purposes:
7947 1. They ensure that the wrapped function can never be called
7948 when Emacs is running on an operating system on which they are
7949 not supported (Microsoft Windows 95 / 98 / ME).
7950 2. They call the wrapped functions via function pointers rather
7951 than calling them directly. This avoids taking advantage of the
7952 undocumented fact that although these functions are not supported
7953 in the 9x branch of Microsoft Windows, the functions do exist in
7954 the version of advapi32.dll that is found in the 9x branch of
7955 Microsoft Windows.
f60ae425 7956
6bdb309a 7957 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
7958 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
7959 and GetSidIdentifierAuthority with calls to the newly added
7960 wrapper functions.
f60ae425 7961
048addec
JD
7962 * w32.h: Added extern declarations for the following functions:
7963 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
7964 syms_of_w32menu, and void syms_of_fontset.
f60ae425 7965
6bdb309a 7966 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
7967 function pointer track_mouse_event_fn in the handler for the
7968 WM_SETFOCUS message.
3582b6a3 7969
6bdb309a 7970 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
7971 reinitialize the function pointers set_menu_item_info and
7972 get_menu_item_info.
f60ae425 7973
048addec 79742002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 7975
048addec
JD
7976 * sound.c: Added a partial implementation of play-sound-internal
7977 for Microsoft Windows. Added various #ifdef / #else / #endif
7978 code blocks to separate the code that will compile under
7979 Microsoft Windows from the code that is specific to Gnu/Linux.
7980 Moved several blocks of code around to make this separation of code
7981 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 7982
048addec 7983 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 7984
048addec
JD
7985 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
7986 added support for play-sound-internal under Windows would be
7987 included in the build of Emacs.
517f42a0 7988
048addec 79892002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 7990
048addec 7991 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 7992
048addec 7993 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 7994
048addec 79952002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 7996
048addec
JD
7997 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
7998 (adjust_point_for_property): Move out of display and invisible even if
7999 we were already inside before (in case a property was added while
8000 we weren't looking). Be more careful when handling invisible props.
8001 Skip invisible text as if it really wasn't there at all.
aab83f91 8002
048addec 80032002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8004
048addec
JD
8005 * w32term.c (x_draw_image_foreground)
8006 (w32_draw_image_foreground_1): Use standard copy and invert
8007 operations to draw images.
aab83f91 8008
048addec
JD
8009 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8010 depth of 1.
8011 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8012 (XPutPixel): Don't invert bits here.
a4478a76 8013
048addec 80142002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8015
048addec
JD
8016 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8017 (w32_draw_image_foreground_1): Handle image masks.
8018 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8019
048addec
JD
8020 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8021 (x_from_xcolors): Adjust RGB values for W32.
8022 (image_background, image_background_transparent)
8023 (postprocess_image, x_to_xcolors, x_disable_image)
8024 (x_build_heuristic_mask): Adapt for W32 and enable.
8025 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8026 (xbm_load): Remove unused variable.
03670a65 8027
048addec 80282002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8029
048addec 8030 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8031
048addec 80322002-11-14 Dave Love <fx@gnu.org>
59daa29a 8033
048addec 8034 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8035
048addec
JD
8036 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8037 * xmenu.c (unuse_menu_items, digest_single_submenu):
8038 * xfns.c (x_put_x_image):
8039 * xdisp.c (message2_nolog, set_message):
8040 * undo.c (record_point):
8041 * terminfo.c (tparam):
8042 * syntax.c (scan_sexps_forward):
8043 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8044 * composite.c (update_compositions):
8045 * cm.c (calccost, cmgoto):
8046 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8047
048addec 8048 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8049
048addec
JD
8050 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8051 Don't declare.
59daa29a 8052
048addec 8053 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8054
048addec
JD
8055 * fns.c (Fcopy_sequence): Doc fix.
8056 (Fmap_char_table): Cast `call2'.
3947677c 8057
048addec
JD
80582002-11-14 Francesco Potorti` <pot@gnu.org>
8059
8060 * s/sol2-8.h: New file.
8061
80622002-11-14 Kim F. Storm <storm@cua.dk>
8063
8064 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8065 dependency on `risky-local-variable' and the :propertize form.
8066
80672002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8068
8069 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8070
8071 * syntax.c (scan_sexps_forward): Undo last patch.
8072 Use a more obvious fix: check eob before updating the syntax table.
8073
80742002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8075
8076 * syntax.c (scan_sexps_forward): Update syntax table before reading
8077 a char rather than after so we don't update the table past eob.
8078
80792002-11-09 Dave Love <fx@gnu.org>
8080
8081 * buffer.c (Fset_buffer_major_mode): Fix last change.
8082
8083 * regex.c (regexec): Fix pmatch declaration.
8084
8085 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8086
8087 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8088 to self-inserting characters.
8089 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8090
8091 * coding.c (Vtranslation_table_for_input): New.
8092 (syms_of_coding): DEFVAR it.
8093
80942002-11-08 Juanma Barranquero <lektu@terra.es>
8095
8096 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8097 window.
8098
80992002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8100
6bdb309a 8101 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8102 cp, and i.
8103
81042002-11-06 Dave Love <fx@gnu.org>
8105
8106 * buffer.c (Qset_buffer_major_mode_hook): New.
8107 (Fset_buffer_major_mode): Use it.
8108
81092002-11-06 Richard M. Stallman <rms@gnu.org>
8110
8111 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8112 and stop_polling.
8113
8114 * process.c (wait_reading_process_input):
8115 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8116 Avoid initialization for auto Lisp_Object var.
8117
8118 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8119
8120 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8121
81222002-11-05 Richard M. Stallman <rms@gnu.org>
8123
8124 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8125
8126 * callint.c (Fcall_interactively): New local filter_specs.
8127 (Fcall_interactively): Check for progn as well as let.
8128 Add a gcpro.
8129 (Qprogn): New variable.
8130 (syms_of_callint): Staticpro and init Qprogn.
8131
81322002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8133
8134 * lread.c (Feval_buffer): Doc fix.
8135
81362002-11-04 Dave Love <fx@gnu.org>
8137
8138 * keyboard.c (read_char): Always translate iff
8139 Vkeyboard_translate_table is a char table and c is valid.
8140
8141 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8142 and fix C types.
8143
81442002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8145
8146 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8147
8148 * editfns.c (get_pos_property): Don't hardcode Qfield.
8149
8150 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8151 overlays. Also handle `invisible' prop.
8152
81532002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8154
8155 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8156 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8157
81582002-11-01 Andreas Schwab <schwab@suse.de>
8159
8160 * editfns.c (Fmessage): Revert last change to properly handle %%.
8161
81622002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8163
8164 * xmenu.c (unuse_menu_items): New fun.
8165 (menu_items_inuse): New var.
8166 (syms_of_xmenu): Initialize it.
8167 (init_menu_items): Use it to detect re-entrance.
8168 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8169 (Fx_popup_menu): Remove spurious XSETFRAME.
8170
8171 * editfns.c (find_field): Make an exception for nil fields.
8172
81732002-11-01 Dave Love <fx@gnu.org>
8174
8175 * m/gec63.h: Deleted.
8176
81772002-10-31 Dave Love <fx@gnu.org>
8178
8179 * xterm.c (XTread_socket): Fix last change.
8180 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8181
81822002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8183
8184 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8185
81862002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8187
8188 * editfns.c (overlays_around, get_pos_property): New funs.
8189 (find_field): Use them.
8190 Also be careful not to modify POS before its last use.
8191 (Fmessage): Don't Fformat if there's nothing to format.
8192
81932002-10-30 Dave Love <fx@gnu.org>
8194
8195 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8196 [HAVE_PTY_H]; Include pty.h.
8197
8198 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8199
8200 * xterm.c (Qeql): Declare.
8201 (Vx_keysym_table): New.
8202 (syms_of_xterm): Initialize it.
8203 (XTread_socket): Use it. Deal with ASCII keysyms.
8204 (XSetIMValues) [HAVE_X11R6]: Prototype.
8205
8206 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8207 (lispy_kana_keys): Comment out.
8208 (make_lispy_event) [XK_kana_A]: Comment out.
8209 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8210 Fix sprintf call.
8211
8212 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8213 regexp.h change).
8214 (TERMINFO, LIBS_TERMCAP): Define.
8215
8216 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8217 (bcmp): Define conditional on HAVE_BCMP.
8218 (NO_SIOCTL_H): Don't define.
8219 (TIOCSIGSEND): Don't make conditional on IRIX6.
8220
8221 * s/sol2-5.h: Don't include strings.h.
8222 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8223
8224 * s/irix6-0.h (IRIX6): Don't define.
8225 (bcopy, bcmp, bzero): Don't undef.
8226
8227 * s/irix6-5.h: Don't include strings.h.
8228 (IRIX6): Don't define.
8229 (bcopy, bcmp, bzero): Don't undef.
8230
8231 * syntax.c (Fforward_comment): Doc fix.
8232
82332002-10-29 Kim F. Storm <storm@cua.dk>
8234
8235 * process.c (Fsignal_process): Allow PROCESS to be specified by
8236 name in addition to pid (as integer or string).
8237
82382002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8239
8240 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8241 environments.
8242
82432002-10-27 Kim F. Storm <storm@cua.dk>
8244
8245 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8246
8247 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8248
8249 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8250
8251 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8252
82532002-10-26 Richard M. Stallman <rms@gnu.org>
8254
8255 * editfns.c (Fformat): Detect invalid format letters for floats.
8256
82572002-10-25 Kenichi Handa <handa@m17n.org>
8258
8259 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8260 (x_set_title): Likewise.
8261
82622002-10-25 Juanma Barranquero <lektu@terra.es>
8263
8264 * macgui.h:
8265 * w32gui.h: Remove definition of XColor.
8266
8267 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8268
82692002-10-24 Kim F. Storm <storm@cua.dk>
8270
8271 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8272 Callers changed (supply dummy arg).
8273
8274 * lisp.h (get_window_cursor_type): Update prototype.
8275
8276 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8277 get_window_cursor_type to track system caret.
8278
82792002-10-24 Kim F. Storm <storm@cua.dk>
8280
8281 * process.c (Fformat_network_address): New function.
8282 (syms_of_process): Defsubr it.
8283 (list_processes_1): Use it to format :local/:remote address if
f9711de4 8284 service/host is not set; before Emacs would crash in that case.
048addec
JD
8285 (Fmake_network_process): Don't use Ffind_operation_coding_system
8286 to setup coding system if host or service is not set.
8287
82882002-10-23 Juanma Barranquero <lektu@terra.es>
8289
8290 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8291
8292 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8293 COLORREF.
8294
8295 * macgui.h:
8296 * w32gui.h: Add definition of XColor.
8297
8298 * macfns.c:
8299 * w32fns.c:
8300 * xfaces.c: Remove definition of XColor.
8301
83022002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8303
8304 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8305
8306 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8307 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8308 window if it is dedicated.
8309 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8310 (Vspecial_display_function): Update docstring.
8311
8312 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8313 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8314 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8315
83162002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8317
8318 * casefiddle.c (casify_region): Don't treat a prefix char as part
8319 of a word when at the beginning.
8320
83212002-10-17 Juanma Barranquero <lektu@terra.es>
8322
8323 * lread.c (syms_of_lread): Fix typos.
8324
83252002-10-17 Dave Love <fx@gnu.org>
8326
8327 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8328
83292002-10-16 Richard M. Stallman <rms@gnu.org>
8330
8331 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8332
83332002-10-14 Juanma Barranquero <lektu@terra.es>
8334
8335 * w16select.c (syms_of_win16select): Fix docstring for
8336 `selection-coding-system'.
8337
8338 * w32select.c (syms_of_w32select): Likewise.
8339
83402002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8341
8342 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8343 a backslash-quoted char.
8344 (scan_lists, scan_sexps_forward): Pacify the compiler.
8345
83462002-10-13 Richard M. Stallman <rms@gnu.org>
8347
8348 * window.c (window_scroll): Set immediate_quit.
8349
8350 * print.c (print): When backquote form is the car of a list,
8351 output in old style. Use old_backquote_output to output all
8352 comma forms inside it in old style too.
8353
8354 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8355
83562002-10-11 Markus Rost <rost@math.ohio-state.edu>
8357
8358 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8359 batch mode).
8360
8361 * lread.c (Fload): Doc fix (load-suffixes).
8362
83632002-10-10 Steven Tamm <steventamm@mac.com>
8364
8365 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8366 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8367 Also switch the default to Qnil from Qt.
8368
83692002-10-08 Kenichi Handa <handa@m17n.org>
8370
8371 * coding.c (code_convert_region): When we need more GAP for
8372 conversion, pay attention to the case that coding->produced is not
8373 greater than coding->consumed.
8374
83752002-10-07 Richard M. Stallman <rms@gnu.org>
8376
8377 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8378
83792002-10-06 Andrew Choi <akochoi@shaw.ca>
8380
8381 * macmenu.c (mac_menu_show): Add j to count menu items; match
8382 menu_item_selection to it to find selected item.
8383
83842002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8385
8386 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8387 cases. The correct fix is to pass ReparentNotify to Xt.
8388 The shell widget interprets ConfigureNotify differently depending
8389 on if it has been reparented or not.
8390
83912002-10-05 Markus Rost <rost@math.ohio-state.edu>
8392
8393 * editfns.c (Fformat_time_string): Doc fix.
8394
83952002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8396
8397 * fns.c (Flength): Doc fix.
8398
83992002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8400
8401 * keyboard.c (keyremap): New struct.
8402 (read_key_sequence): Use it: globally replace keytran_foo with
8403 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8404 keytran_next and fkey_next to just `next'.
8405
84062002-10-04 Steven Tamm <steventamm@mac.com>
8407
8408 * macterm.c (keycode_to_xkeysym_table): Change return to be
8409 treated like an X keysym.
8410
84112002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8412
8413 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8414 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8415 This is to also handle x/y changes that occur because of a resize.
8416
84172002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8418
8419 * frame.c (Vdelete_frame_functions): New variable.
8420 (syms_of_frame): Initialize and defvar it.
8421 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8422 it when frame's `tooltip' parameter is non-nil.
8423
8424 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8425
8426 * w32fns.c (x_create_tip_frame): Likewise.
8427
8428 * macfns.c (x_create_tip_frame): Likewise.
8429
84302002-09-30 Kenichi Handa <handa@m17n.org>
8431
8432 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8433 -1 before calling ccl_driver.
8434
8435 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8436 Only when it is non-nil, handle composition sequence.
8437 (setup_coding_system) <0>: Don't force composition handling.
8438
8439 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8440
84412002-09-29 Richard M. Stallman <rms@gnu.org>
8442
8443 * search.c (Freplace_match): Adjust match data for the substitution
8444 just made in the buffer.
8445
8446 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8447 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8448
84492002-09-27 Richard M. Stallman <rms@gnu.org>
8450
8451 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8452 (read_char): Use them. Do all exits thru the end of the function.
8453
84542002-09-27 Kenichi Handa <handa@etl.go.jp>
8455
8456 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8457 is nil.
8458
84592002-09-26 Richard M. Stallman <rms@gnu.org>
8460
8461 * regex.h (__restrict_arr): Don't define if already defined.
8462
8463 * coding.c (run_pre_post_conversion_on_str):
8464 Save and restore Vdeactivate_mark.
8465
84662002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8467
8468 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8469
84702002-09-26 Kenichi Handa <handa@etl.go.jp>
8471
8472 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8473 nonzero, try face's family at first. Otherwise try FAMILY at first.
8474 (choose_face_font): If C is a single byte char or latin-1, call
8475 try_font_list with PREFER_FACE_FAMILY 1.
8476
84772002-09-21 Richard M. Stallman <rms@gnu.org>
8478
8479 * window.c (select_window_1): Don't select frame.
8480 Set frame's selected window only when frame itself is selected.
8481 (Fselect_window): Doc fix.
8482
84832002-09-18 Kim F. Storm <storm@cua.dk>
8484
8485 * process.c (make-network-process): Doc fix (there is no
8486 network-server-log-function hook).
8487
84882002-09-18 Richard M. Stallman <rms@gnu.org>
8489
8490 * print.c (print): Clear out the unused parts of Vprint_number_table.
8491 (syms_of_print): Doc fix for `print-number-table'.
8492
8493 * unexelf.c (unexec): Undo previous change.
8494
84952002-09-17 Andreas Schwab <schwab@suse.de>
8496
8497 * m/alpha.h [LINUX]: Don't define DATA_START.
8498
84992002-09-16 Dave Love <fx@gnu.org>
8500
8501 * unexelf.c (unexec): Deal with .got, reinstating change from
8502 25-08-1999.
8503
85042002-09-13 Richard M. Stallman <rms@gnu.org>
8505
8506 * s/sol2-6.h (UNEXEC): Comment out definition.
8507
8508 * unexsol.c (unexec): Don't downcase first letter of error msg.
8509
8510 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8511
85122002-09-12 Markus Rost <rost@math.ohio-state.edu>
8513
8514 * unexsol.c: Include buffer.h, charset.h, coding.h.
8515
85162002-09-11 Richard M. Stallman <rms@gnu.org>
8517
8518 * unexsol.c: Don't use report_file_error; do it by hand
8519 using dlerror.
8520
8521 * process.c (wait_reading_process_input, both versions):
8522 Before calling turn_on_atimers, call stop_polling.
8523
8524 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8525
8526 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8527 we go to too_near_end, call clear_glyph_matrix.
8528 (redisplay_window): After make_cursor_line_fully_visible,
8529 call clear_glyph_matrix and bypass `goto done'.
8530
8531 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8532 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8533
85342002-09-10 Richard M. Stallman <rms@gnu.org>
8535
8536 * fileio.c (Fdo_auto_save): Catch error making directory.
8537 Only call push_message if we need to.
8538 At the same time, make an unwind-protect to pop it.
8539 Rename local message_p to old_message_p.
8540 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8541 (do_auto_save_unwind): Don't call pop_message.
8542
8543 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8544
8545 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8546
8547 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8548
8549 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8550
85512002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8552
8553 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8554 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8555 (re_match_2_internal): Be more careful with infinite loops.
8556
85572002-09-10 Kim F. Storm <storm@cua.dk>
8558
8559 * macros.c (end_kbd_macro): New function.
8560 (Fend_kbd_macro): Use it.
8561
8562 * macros.h (end_kbd_macro): Declare extern.
8563
8564 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8565 end and save it instead of discarding it.
8566
85672002-09-09 Markus Rost <rost@math.ohio-state.edu>
8568
8569 * s/sol2-6.h: Fix typo. Add comment.
8570
85712002-09-09 Richard M. Stallman <rms@gnu.org>
8572
8573 * regex.c (regnum_t): Use signed int, not unsigned int.
8574
8575 * s/sol2-6.h: New file.
8576
8577 * s/sol2-5.h (UNEXEC): Definition deleted.
8578
85792002-09-08 Kim F. Storm <storm@cua.dk>
8580
8581 * macros.c (executing_macro_index): Change type to EMACS_INT.
8582 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8583
8584 * macros.h (executing_macro_index): Change type to EMACS_INT.
8585
85862002-09-06 Richard M. Stallman <rms@gnu.org>
8587
8588 * casetab.c (set_case_table): Make canon table point to eqv table.
8589
85902002-09-06 Juanma Barranquero <lektu@terra.es>
8591
8592 * coding.c (syms_of_coding): Fix spacing.
8593
8594 * composite.c (Fcompose_region_internal)
8595 (Fcompose_string_internal): Likewise.
8596
8597 * data.c (Flsh): Likewise.
8598
8599 * fontset.c (Fset_fontset_font): Likewise.
8600
8601 * macfns.c (Fx_server_max_request_size): Likewise.
8602
8603 * w16select.c (syms_of_win16select): Likewise.
8604
8605 * w32select.c (syms_of_w32select): Likewise.
8606
8607 * xselect.c (syms_of_xselect): Likewise.
8608
86092002-09-05 Richard M. Stallman <rms@gnu.org>
8610
8611 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
8612 call EXTEND_RANGE_TABLE and return a proper value.
8613 (set_image_of_range): Don't call set_image_of_range_1
8614 if no TRANSLATE or if range includes all of Latin-1.
8615 Only call it for the Latin-1 part of the range.
8616 For other cases, make two separate ranges,
8617 one for the original specified characters and one for
8618 their case-conversions.
8619
86202002-09-04 Richard M. Stallman <rms@gnu.org>
8621
8622 * s/sol2-5.h (UNEXEC): Use unexsol.o.
8623
8624 * window.c (displayed_window_lines): Correct for one-off bug
8625 in HEIGHT on non-window displays.
8626
8627 * regex.c (set_image_of_range_1): New function.
8628 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
8629 Return a value to indicate running out of memory.
8630 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
8631 (extend_range_table_work_area): New subroutine.
8632 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
8633 Different calling conventions, and used from set_image_of_range{,_1}.
8634 (IMMEDIATE_QUIT_CHECK): Definitions moved.
8635
86362002-09-04 Juanma Barranquero <lektu@terra.es>
8637
8638 * makefile.w32-in: All dependencies updated.
8639
86402002-09-01 Richard M. Stallman <rms@gnu.org>
8641
8642 * unexsol.c: New file.
8643
8644 * xfns.c (Qbox): Declare external, don't define.
8645
8646 * xdisp.c (redisplay_window) <force-start case>:
8647 If point is on semi-visible last line, reposition
8648 it at previous line.
8649
8650 * alloc.c (display_malloc_warning): Use display-warning.
8651 (malloc_warning_1): Function deleted.
8652
8653 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
8654
8655 * lread.c (read1): Handle #! by skipping the line.
8656
86572002-08-31 Richard M. Stallman <rms@gnu.org>
8658
8659 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
8660 Don't include LDFLAGS.
8661 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
8662
86632002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
8664
8665 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
8666 member of x_display_info unless we compile for some window system.
8667
86682002-08-31 Kim F. Storm <storm@cua.dk>
8669
8670 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
8671 (get_window_cursor_type): Don't use them.
8672 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
8673
86742002-08-30 Kenichi Handa <handa@etl.go.jp>
8675
8676 * xdisp.c (get_next_display_element): Fix previous change.
8677
86782002-08-30 Andrew Choi <akochoi@shaw.ca>
8679
8680 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
8681 (expose_window): Use it to fix the display of overlapping
8682 rows (merge code from xterm.c).
8683
8684 * macfns.c (Qbox): Add extern declaration.
8685
86862002-08-30 Juanma Barranquero <lektu@terra.es>
8687
8688 * w32fns.c (Qbox): Make extern.
8689 (syms_of_w32fns): Remove initialization of Qbox.
8690
86912002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
8692
8693 * xfns.c (Fx_open_connection): Fix error message.
8694
86952002-08-30 Kim F. Storm <storm@cua.dk>
8696
8697 The following changes consolidates the handling of the cursor
8698 type in xdisp.c, moving duplicate code and functionality from
8699 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
8700
8701 * frame.h (enum text_cursor_kinds): Consolidated here.
8702 Added DEFAULT_CURSOR value.
8703 (struct frame) <desired_cursor, cursor_width>
8704 <blink_off_cursor, blink_off_cursor_width>: New fields.
8705 Consolidated from output_x, output_w32 and output_mac structs.
8706 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8707 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
8708
8709 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
8710 Variables consolidated here.
8711 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
8712 (Vcursor_in_non_selected_windows): Renamed from
8713 cursor_in_non_selected_windows and changed to Lisp_Object.
8714 (syms_of_xdisp): Define and staticpro new and moved variables.
8715 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
8716 consolidated here. Recognize Qhollow setting.
8717 (set_frame_cursor_types): New function to set frame cursor types
8718 based on the frame parameters.
8719 (get_window_cursor_type): New function to calculate new cursor
8720 type and width for the specified window. Based on duplicated
8721 code consolidated here.
8722 Enhancements: cursor-in-non-selected-windows may be a cursor type,
8723 check buffer-local alternate-cursor-type and blink-cursor-alist
8724 before using built-in blink off methods.
8725
8726 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
8727
8728 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
8729 (get_specified_cursor_type, get_window_cursor_type)
8730 (set_frame_cursor_types): Added prototypes.
8731
8732 * macfns.c (x_specified_cursor_type): Removed.
8733 (x_set_cursor_type): Use set_frame_cursor_types.
8734 (Qbar, Qbox): Removed.
8735 (syms_of_macfns): Don't intern or staticpro them.
8736
8737 * macterm.c (x_specified_cursor_type): Remove prototype.
8738 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8739 (x_display_and_set_cursor): Use get_window_cursor_type.
8740 Remove unused local variables cursor_non_selected, active_cursor.
8741 Redraw cursor if hbar cursor width changes.
8742 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
8743
8744 * macterm.h (enum text_cursor_kinds): Removed.
8745 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
8746 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8747 (FRAME_DESIRED_CURSOR): Macro removed.
8748
8749 * w32fns.c (Vblink_cursor_alist): Removed.
8750 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8751 (syms_of_w32fns): Don't intern, staticpro, or define them.
8752 (x_specified_cursor_type): Removed.
8753 (x_set_cursor_type): Use set_frame_cursor_types.
8754
8755 * w32term.c (x_specified_cursor_type): Remove prototype.
8756 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8757 (x_display_and_set_cursor): Use get_window_cursor_type.
8758 Remove unused local variables cursor_off_state.
8759 Redraw cursor if hbar cursor width changes.
8760 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
8761
8762 * w32term.h (enum text_cursor_kinds): Removed.
8763 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
8764 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8765 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8766 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8767 (struct w32_display_info) <x_highlight_frame>: Renamed member from
8768 w32_highlight_frame.
8769
8770 * xfns.c (Vblink_cursor_alist): Removed.
8771 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8772 (syms_of_xfns): Don't intern, staticpro, or define them.
8773 (x_specified_cursor_type): Removed.
8774 (x_set_cursor_type): Use set_frame_cursor_types.
8775
8776 * xterm.c (x_specified_cursor_type): Remove prototype.
8777 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8778 (x_display_and_set_cursor): Use get_window_cursor_type.
8779 Remove unused local variables cursor_off_state.
8780 Redraw cursor if hbar cursor width changes.
8781
8782 * xterm.h (enum text_cursor_kinds): Removed.
8783 (struct output_x) <current_cursor, desired_cursor, cursor_width>
8784 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8785 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8786 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8787 (x_specified_cursor_type): Remove prototype.
8788
87892002-08-28 Richard M. Stallman <rms@gnu.org>
8790
8791 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8792 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8793 (Vblink_cursor_alist): New variable.
8794 (syms_of_w32fns): Initialize and defvar it.
8795 (x_specified_cursor_type): Recognize Qbox for filled box.
8796 Exceptions are hollow boxes.
8797 (Qbox, Qhollow): New variables.
8798 (syms_of_w32fns): Initialize and staticpro them.
8799
8800 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8801 New macros.
8802 (struct w32_output): New fields blink_off_cursor,
8803 blink_off_cursor_width.
8804 (FRAME_CURSOR_WIDTH): New macro.
8805
8806 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8807 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8808
8809 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8810 for bar cursor.
8811
8812 * w32term.c (expose_overlaps): New function.
8813 (expose_window): Use it to fix the display of overlapping rows.
8814
88152002-08-28 Simon Josefsson <jas@extundo.com>
8816
8817 * xfns.c (Fx_open_connection): Improve help when X connection
8818 fails, xhost is insecure and xauth is better.
8819
88202002-08-28 Juanma Barranquero <lektu@terra.es>
8821
8822 * makefile.w32-in: Add missing dependencies on w32term.h and
8823 composite.h.
8824
8825 * emacs.c (USAGE1): Add missing newline.
8826
88272002-08-27 Andrew Choi <akochoi@shaw.ca>
8828
8829 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
8830
88312002-08-27 Richard M. Stallman <rms@gnu.org>
8832
8833 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8834 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8835 (Vblink_cursor_alist): New variable.
8836 (syms_of_xfns): Initialize and defvar it.
8837 (x_specified_cursor_type): Recognize Qbox for filled box.
8838 Exceptions are hollow boxes.
8839 (Qbox, Qhollow): New variables.
8840 (syms_of_xfns): Initialize and staticpro them.
8841
8842 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8843 New macros.
8844 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
8845
8846 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8847 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8848
8849 * emacs.c (main): Handle --script.
8850 (USAGE1): Mention --script.
8851 (standard_args): Define sort order for --script.
8852
88532002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
8854
8855 * xdisp.c (redisplay_updating_p): Variable removed.
8856 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
8857 New variables.
8858 (init_iterator): Don't free realized faces if
8859 inhibit_free_realized_faces is set.
8860 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
8861 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
8862 initialize Qinhibit_free_realized_faces.
8863
8864 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
8865 when iterator is adding glyphs to a glyph matrix.
8866
88672002-08-27 Kenichi Handa <handa@etl.go.jp>
8868
8869 * xdisp.c (get_next_display_element): In unibyte case, don't use
8870 octal form for such eight-bit characters that can be converted to
8871 multibyte char.
8872
88732002-08-26 Kim F. Storm <storm@cua.dk>
8874
8875 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
8876 and background colors. From Joe Buehler (tiny change).
8877
88782002-08-26 Miles Bader <miles@gnu.org>
8879
8880 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
8881
88822002-08-25 Andrew Choi <akochoi@shaw.ca>
8883
8884 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
8885 defined instead of MAC_OSX.
8886
8887 * s/darwin.h (select): Define select to sys_select only if
8888 HAVE_CARBON is defined.
8889 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
8890 (DONT_REOPEN_PTY): #def it.
8891
8892 * macterm.c (XTread_socket): Remove code to call
8893 SendEventToEventTarget for keys with command modifiers when
8894 mac_command_key_is_meta is nil.
8895
88962002-08-24 Andreas Schwab <schwab@suse.de>
8897
8898 * eval.c (Fdefvar): Fix last change.
8899
89002002-08-23 Richard M. Stallman <rms@gnu.org>
8901
8902 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
8903 Record variables in load history as (defvar . VAR).
8904 (Fdefvar): Don't record in load history if no initial value.
8905 (Qdefvar): New variable.
8906 (syms_of_eval): Init and staticpro it.
8907
8908 * lread.c (syms_of_lread): Doc fix.
8909 (build_load_history): Use Fmember to see if a definition
8910 is already in the Vload_history element.
8911
8912 * process.c (Fstart_process): Remove /: from program name.
8913
8914 * emacs.c (decode_env_path): Don't add /: if file name handler
8915 has a `safe-magic' property.
8916
8917 * callproc.c (Fcall_process): Remove /: from program name.
8918
89192002-08-23 Stefan Monnier <monnier@cs.yale.edu>
8920
8921 * regex.c (PATFETCH): Remove the translating fetch.
8922 (PATFETCH_RAW): Rename to PATFETCH.
8923 (set_image_of_range): New fun.
8924 (SET_RANGE_TABLE_WORK_AREA): Use it.
8925 (regex_compile): Don't translate the pattern chars so eagerly.
8926 Only do it when inserting an `exactn' bytecode or when handling
8927 a char-range.
8928 (mutually_exclusive_p): Avoid empty statement.
8929
89302002-08-22 Kim F. Storm <storm@cua.dk>
8931
8932 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
8933 end up on a partially visible line; this reverts a specific part
8934 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
8935 display error which has been reported several times now.
8936 However it introduces the problem that changes was supposed to fix.
8937 See my comments in the source if you want to debug this further.
8938
89392002-08-20 Kenichi Handa <handa@etl.go.jp>
8940
8941 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8942
89432002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
8944
8945 * msdos.c (croak): Add `void' to definition.
8946
c1380aa6 8947 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
8948 Don't define them, they are defined in msdos.c.
8949
8950 * mem-limits.h [MSDOS]: Declare etext.
8951
8952 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
8953 `const' since CORRECT_DIR_SEPS modifies its target.
8954
89552002-08-19 Kim F. Storm <storm@cua.dk>
8956
2fb0ce67 8957 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
8958 KEEP-RECORD to avoid clearing lossage when we just want to clear
8959 the current key sequence (kmacro needs this).
8960
89612002-08-19 Kenichi Handa <handa@localhost>
8962
8963 * composite.c (run_composition_function): Call FUNC if it is fboundp.
8964
8965 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
8966 cons, return Qnil.
8967
89682002-08-17 Richard M. Stallman <rms@gnu.org>
8969
8970 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
8971
8972 * sysdep.c [!VMS]: Include sys/files.h.
8973
8974 * editfns.c (save_restriction_restore): Defend from unchained marker.
8975
8976 * buffer.c (overlays_at): Handle extending vec uniformly.
8977 (overlays_in): Handle extending vec from length 0 as in overlays_at.
8978
89792002-08-15 Andrew Choi <akochoi@shaw.ca>
8980
8981 * mac.c (init_mac_osx_environment): New function.
8982
8983 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
8984
89852002-08-14 Kim F. Storm <storm@cua.dk>
8986
8987 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
8988 executing macro before appending to it (when used from Lisp).
8989 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
8990 which is called prior to each iteration of macro (for kmacro.el).
8991 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
8992
8993 * lisp.h (Fexecute_kbd_macro): Update prototype.
8994
8995 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
8996
89972002-08-14 Kenichi Handa <handa@etl.go.jp>
8998
8999 * xselect.c (QUTF8_STRING): New variable.
9000 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9001 (x_atom_to_symbol): Likewise.
9002 (x_get_local_selection): New argument local_request. If it is
9003 nonzero, call handler_fn with the second arg nil.
9004 (x_handle_selection_request): Call x_get_local_selection with
9005 local_request 0.
9006 (lisp_data_to_selection_data): Don't encode the string here.
9007 (Fx_get_selection_internal): Call x_get_local_selection with
9008 local_request 1.
9009 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9010
9011 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9012
9013 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9014
90152002-08-13 Richard M. Stallman <rms@gnu.org>
9016
9017 * minibuf.c (Fminibufferp): New function.
9018 (syms_of_minibuf): Defsubr it.
9019 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9020
90212002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9022
9023 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9024
90252002-08-12 Richard M. Stallman <rms@gnu.org>
9026
9027 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9028 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9029 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9030 already.
9031
9032 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9033
90342002-08-11 Andrew Choi <akochoi@shaw.ca>
9035
9036 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9037 (Vmac_pass_command_to_system): New variable.
9038 (Vmac_pass_control_to_system): New variable.
9039 (do_mouse_moved): Check wp with is_emacs_window.
9040 (XTread_socket): Check window_ptr with is_emacs_window.
9041 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9042 events back to Mac Toolbox for processing, depending on values of
9043 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9044 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9045 Vmac_pass_control_to_system.
9046
90472002-08-10 Kenichi Handa <handa@etl.go.jp>
9048
9049 * coding.c (unencodable_char_position): New function.
9050 (Funencodable_char_position): New function.
9051 (syms_of_coding): Defsubr Funencodable_char_position.
9052
90532002-08-10 Andrew Choi <akochoi@shaw.ca>
9054
9055 * mac.c (sys_select) [MAC_OSX]: New function.
9056
9057 * macterm.c (MakeMeTheFrontProcess): New function.
9058 (mac_initialize): Call MakeMeTheFrontProcess.
9059
9060 * s/darwin.h: Define select to sys_select.
9061
90622002-08-09 Richard M. Stallman <rms@gnu.org>
9063
9064 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9065
90662002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9067
9068 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9069 end of the buffer.
9070
90712002-08-08 Ken Raeburn <raeburn@mit.edu>
9072
9073 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9074
9075 * puresize.h (BASE_PURESIZE): Increase to 910000.
9076
90772002-08-08 Kenichi Handa <handa@etl.go.jp>
9078
9079 * coding.c (Ffind_operation_coding_system): For write-region, if
9080 VISIT is a filename, make it the target.
9081
90822002-08-07 Richard M. Stallman <rms@gnu.org>
9083
9084 * alloc.c (mark_object): Detect long lists for debugging.
9085 (mark_object_loop_halt): New variable.
9086
9087 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9088
9089 * data.c (Fmake_variable_frame_local): Doc fix.
9090
90912002-08-01 David Ponce <david@dponce.com>
9092
9093 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9094 (malloc_widget_value, free_widget_value)
9095 (w32_free_submenu_strings): Use them.
9096
9097 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9098 (push_menu_pane, push_menu_item, single_keymap_panes)
9099 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9100 (single_submenu, set_frame_menubar)
9101 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9102
9103 (Fx_popup_menu): Don't show pop up menu until preceding one is
9104 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9105
9106 * w32menu.c: Changes adapted from xmenu.c
9107 (set_frame_menubar): First parse all submenus,
9108 then make widget_value trees from them.
9109 Don't allocate any widget_value objects
9110 until we are done with the parsing.
9111 (parse_single_submenu): New function.
9112 (digest_single_submenu): New function.
9113 (single_submenu): Function deleted, replaced by those two.
9114
91152002-08-04 Andrew Choi <akochoi@shaw.ca>
9116
9117 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9118 returns a valid window pointer before proceeding for keyDown and
9119 autoKey events.
9120
91212002-08-03 Andrew Choi <akochoi@shaw.ca>
9122
9123 * macterm.c (USE_CARBON_EVENTS): New macro.
9124 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9125 (x_iconify_frame): Call CollapseWindow.
9126 (Vmac_reverse_ctrl_meta): New variable.
9127 (Vmac_wheel_button_is_mouse_2): New variable.
9128 (init_mac_drag_n_drop): New function.
9129 (mac_do_receive_drag): New function.
9130 (mac_handle_service_event): New function.
9131 (init_service_handler): New function.
9132 (mac_to_emacs_modifiers): New function.
9133 (mac_event_to_emacs_modifiers): New function.
9134 (mac_get_mouse_btn): New function.
9135 (mac_convert_event_ref): New function.
9136 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9137 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9138 mac_get_mouse_btn.
9139 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9140
9141 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9142 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9143 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9144 TOOL_BAR_EVENT for MAC_OS as well.
9145 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9146 as for WINDOWS_NT.
9147 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9148
9149 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9150
91512002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9152
9153 * xdisp.c (forward_to_next_line_start): Fix a condition that
9154 lead to a newline being skipped.
9155
91562002-08-02 Andrew Choi <akochoi@shaw.ca>
9157
9158 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9159
91602002-08-01 Richard M. Stallman <rms@gnu.org>
9161
9162 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9163
91642002-07-31 Andrew Choi <akochoi@shaw.ca>
9165
9166 * macfns.c: #undef init_process before #define-ing it.
9167
9168 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9169 HAVE_CARBON is defined.
9170
91712002-07-31 Richard M. Stallman <rms@gnu.org>
9172
9173 * xmenu.c (set_frame_menubar): First parse all submenus,
9174 then make widget_value trees from them.
9175 Don't allocate any widget_value objects
9176 until we are done with the parsing.
9177 (parse_single_submenu): New function.
9178 (digest_single_submenu): New function.
9179 (single_submenu): Function deleted, replaced by those two.
9180
91812002-07-30 Juanma Barranquero <lektu@terra.es>
9182
9183 * w32proc.c (syms_of_ntproc): Fix docstring of
9184 `w32-get-true-file-attributes'.
9185
91862002-07-28 Richard M. Stallman <rms@gnu.org>
9187
9188 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9189 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9190
9191 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9192
9193 * keyboard.c (make_lispy_event):
9194 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9195 Explicitly clear up_modifier in event->modifiers.
9196
91972002-07-27 Richard M. Stallman <rms@gnu.org>
9198
9199 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9200
9201 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9202 for bar cursor.
9203
92042002-07-26 Kenichi Handa <handa@etl.go.jp>
9205
9206 * coding.c (detect_coding_iso2022): While checking a byte sequence
9207 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9208 it in the normal loop.
9209
92102002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9211
9212 * xterm.c (expose_overlaps): New function.
9213 (expose_window): Use it to fix the display of overlapping rows.
9214
9215 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9216
92172002-07-23 Ken Raeburn <raeburn@gnu.org>
9218
9219 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9220 since it only depends on XUINT.
9221
9222 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9223 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9224 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9225 Macros deleted.
3947677c 9226
77d1daf2
AS
9227 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9228 its value over other approaches.
9229 * sysdep.c (start_of_data): Don't define the function if a macro
9230 form has been defined.
8a8e19a3 9231
048addec
JD
92322002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9233
9234 * xdisp.c (redisplay_updating_p): New variable.
9235 (init_iterator): Don't free realized faces when
9236 redisplay_updating_p is set.
9237 (redisplay_internal): Set redisplay_updating_p while updating
9238 the display.
9239
92402002-07-23 Richard M. Stallman <rms@gnu.org>
9241
9242 * editfns.c (Fmessage): Treat "" like nil.
9243
92442002-07-23 Kenichi Handa <handa@etl.go.jp>
9245
9246 * xdisp.c (face_before_or_after_it_pos):
9247 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9248
92492002-07-22 Juanma Barranquero <lektu@terra.es>
9250
9251 * callproc.c (init_callproc) [DOS_NT]:
9252 Initialize Vshared_game_score_directory to nil.
9253 (syms_of_callproc) [DOS_NT]: Likewise.
9254
92552002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9256
9257 * xdisp.c (display_line): Replace an abort with xassert.
9258
92592002-07-21 Richard M. Stallman <rms@gnu.org>
9260
9261 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9262 and END_UNCHANGED when setting buffer_unchanged_p.
9263 Use current_matrix_up_to_date_p to decide whether to use
9264 try_cursor_movement.
9265
9266 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9267
9268 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9269
9270 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9271 Set to nil if dir does not exist.
9272 (syms_of_callproc): Init unconditionally and simply.
9273
9274 * buffer.c (Fbuffer_list): Doc fix.
9275
92762002-07-21 Ken Raeburn <raeburn@gnu.org>
9277
9278 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9279
9280 * buffer.c (mmap_realloc): When shrinking, make sure number of
9281 pages to unmap is rounded towards zero.
9282
9283 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9284 (XSETINT): Deleted.
9285
9286 * m/att3b.h (XINT): Don't define.
9287 (VALBITS, VALMASK, XTYPE): Deleted.
9288 (DATA_SEG_BITS): Define.
9289 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9290 ARRAY_MARK_FLAG): Deleted.
9291 (DATA_SEG_BITS): Define.
9292 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9293 (DATA_SEG_BITS): Define.
9294
92952002-07-20 Richard M. Stallman <rms@gnu.org>
9296
9297 * print.c (print_error_message): New args CONTEXT and CALLER.
9298 Calls changed.
9299
9300 * lisp.h (print_error_message): Declare new args.
9301
9302 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9303 and CONTEXT to print_error_message, don't print them here.
9304 For a Quit, don't use Vsignaling_function.
9305 Call message_log_maybe_newline.
9306
9307 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9308
93092002-07-20 Kim F. Storm <storm@cua.dk>
9310
9311 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9312
93132002-07-19 Ken Raeburn <raeburn@gnu.org>
9314
9315 * bytecode.c (struct byte_stack): Pointers into byte string now
9316 point to const.
9317 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9318 const.
9319 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9320 * coding.c (encode_eol, detect_coding, detect_eol):
9321 (decode_coding, encode_coding, detect_coding_system):
9322 Source strings now treated as const.
9323 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9324 modify Lisp string contents.
9325 * coding.h (decode_coding, encode_coding, detect_coding,
9326 detect_eol): Declarations updated.
9327 * composite.c (compose_chars_in_text): Treat Lisp string contents
9328 as const.
9329 * dispnew.c (safe_bcopy): Source pointer now points to const.
9330 * lisp.h (STRING_COPYIN): New macro.
9331 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9332 (internal_with_output_to_temp_buffer): Declarations updated.
9333 * print.c (temp_output_buffer_setup):
9334 (internal_with_output_to_temp_buffer): Buffer name argument is now
9335 pointer to const.
9336 * sound.c (struct sound_device): Function pointer field "write"
9337 buffer argument now points to const.
9338 (vox_write): Buffer argument points to const.
9339 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9340 contents as const.
9341 * sysdep.c (emacs_write): Buffer pointer now const.
9342 * term.c (encode_terminal_code): Buffer pointer now const.
9343 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9344 (x_face_list_fonts, x_update_menu_appearance):
9345 (hash_string_case_insensitive): Treat Lisp string contents as const.
9346
93472002-07-19 Juanma Barranquero <lektu@terra.es>
9348
048addec
JD
9349 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9350
9351 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
9352 (Ffile_name_as_directory): Fix argument name in docstring.
9353 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
9354
93552002-07-18 Richard M. Stallman <rms@gnu.org>
9356
9357 * data.c (Fdefalias): Doc fix.
9358
93592002-07-17 Dave Love <fx@gnu.org>
9360
9361 * intervals.h (text_property_stickiness): Use P_.
9362
9363 * ccl.c: Remove `emacs' conditionals.
9364 (ccl_backtrace_table): Fix size spec.
9365 (ccl_driver): Fix type errors.
9366
93672002-07-16 Ken Raeburn <raeburn@gnu.org>
9368
9369 * alloc.c (xstrdup, make_string, make_unibyte_string)
9370 (make_multibyte_string, build_string): String pointer args now
9371 point to const.
9372 * charset.c (find_charset_in_text, c_string_width):
9373 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9374 * fileio.c (report_file_error):
9375 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9376 (count_combining_before, count_combining_after, insert_1_both):
9377 (insert, insert_and_inherit, insert_string):
9378 (insert_before_markers, insert_before_markers_and_inherit):
9379 * lread.c (intern, oblookup, hash_string):
9380 * minibuf.c (temp_echo_area_glyphs):
9381 * search.c (fast_c_string_match_ignore_case):
9382 * sysdep.c (emacs_open, set_file_times):
9383 * xfaces.c (xstricmp):
9384 * xdisp.c (store_frame_title, string_char_and_length):
9385 (message_dolog, message2, message2_nolog, set_message): Likewise.
9386 (set_message_1): Cast message string argument to const pointer.
9387 * editfns.c (general_insert_function): Insertion function now
9388 takes pointer to const for input data.
9389 * charset.h (find_charset_in_text, c_string_width):
9390 (parse_str_as_multibyte): Declarations updated.
9391 * dispextern.h (xstricmp): Declaration updated.
9392 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9393 (count_size_as_multibyte, count_combining_before):
9394 (count_combining_after, insert_1, insert_1_both, message_dolog):
9395 (insert, insert_and_inherit, insert_before_markers)
9396 (insert_before_markers_and_inherit, set_message, message2):
9397 (message2_dolog, build_string, make_string, make_unibyte_string):
9398 (make_multibyte_string, intern, oblookup, report_file_error):
9399 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9400 (emacs_open, xstrdup): Declarations updated.
9401 * systime.h (set_file_times): Declaration updated.
9402
9403 * charset.c (find_charset_in_text, lisp_string_width): Use const
9404 for pointer to lisp string data.
9405 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9406 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9407 * coding.c (Ffind_coding_systems_region_interval):
9408 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9409 (Fmake_directory_internal, Fdelete_directory):
9410 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9411 * fontset.c (font_family_registry, fs_query_fontset):
9412 (list_fontsets):
9413 * frame.c (Fframe_parameter):
9414 * keyboard.c (cmd_error_internal):
9415 * keymap.c (Fdescribe_buffer_bindings):
9416 * lread.c (complete_filename_p, openp):
9417 * minibuf.c (Fminibuffer_complete_word):
9418 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9419 (face_before_or_after_it_pos, next_element_from_string):
9420 (get_overlay_arrow_glyph_row, display_mode_element):
9421 (decode_mode_spec_coding):
9422 * xterm.c (same_x_server): Likewise.
9423
9424 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9425 settings of non-existent fields.
9426
9427 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9428 copy a lisp value.
9429
9430 * lread.c (Fintern_soft): Use string macros instead of
9431 Lisp_String fields.
9432 * keyboard.c (echo_char, parse_modifiers_uncached):
9433 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9434 * textprop.c (validate_interval_range, interval_of): Likewise.
9435
9436 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9437
9438 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9439 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9440 XSTRING()->size_byte.
9441
9442 * lisp.h (SDATA, SREF): Produce rvalue.
9443 (SSET): New macro.
9444 * alloc.c (make_event_array): Use SSET for storing into a string.
9445 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9446 a string.
9447 * casefiddle.c (casify_object): Use SSET.
9448 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9449 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9450 address of string contents.
9451 * data.c (Faref): Use SDATA.
9452 (Faset): Use SDATA, SSET.
9453 * dired.c (directory_files_internal): Use SSET.
9454 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9455 (Fread_file_name): Use SREF, SSET.
9456 * fns.c (concat): Use SSET.
9457 (concat, Fdelete): Use SDATA.
9458 * insdel.c (insert_from_string_1): Use SDATA.
9459 * keyboard.c (Fevent_convert_list): Use SREF.
9460 * lread.c (Fload): Use SDATA, SSET.
9461 * macfns.c (validate_x_resource_name): Use SSET.
9462 * process.c (status_message): Use SSET.
9463 * search.c (wordify): Use SDATA.
9464 (Freplace_match): Use SREF.
9465 * w32fns.c (validate_x_resource_name): Use SSET.
9466 * xfns.c (validate_x_resource_name): Use SSET.
9467 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9468
94692002-07-16 Richard M. Stallman <rms@gnu.org>
9470
9471 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9472
9473 * xdisp.c (reconsider_clip_changes):
9474 Don't test prevent_redisplay_optimizations_p.
9475 (redisplay_internal): Test prevent_redisplay_optimizations_p
9476 along with clip_changed in some cases.
9477 (try_window_id): Likewise.
9478 (redisplay_window): New local var buffer_unchanged_p.
9479
9480 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9481
9482 * process.c (create_process): Test USG_SUBTTY_WORKS.
9483 (process_send_signal): Clean up handling of GID.
9484 Detect errors in ioctls meant to set GID.
9485
9486 * window.c (temp_output_buffer_show):
9487 Don't set prevent_redisplay_optimizations_p.
9488
94892002-07-15 Juanma Barranquero <lektu@terra.es>
9490
9491 * eval.c (Fdefvaralias): Add docstring argument.
9492
94932002-07-15 Ken Raeburn <raeburn@gnu.org>
9494
9495 * lisp.h (STRING_INTERVALS): Produce rvalue.
9496 (STRING_SET_INTERVALS): New macro.
9497 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9498 * fns.c (Fstring_as_multibyte): Likewise.
9499 * intervals.c (balance_possible_root_interval, delete_interval)
9500 (create_root_interval, copy_intervals_to_string): Likewise.
9501 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9502 instead of 0.
9503
95042002-07-14 Ken Raeburn <raeburn@gnu.org>
9505
9506 * lisp.h (STRING_SET_CHARS): New macro.
9507 (SCHARS, SBYTES): Produce rvalues.
9508 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9509 * fns.c (concat): Likewise.
9510 * lread.c (read_vector): Likewise.
9511
9512 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9513 (STRING_SET_UNIBYTE): New macro.
9514 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9515 length of -1) changed to use STRING_SET_UNIBYTE.
9516 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9517 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9518 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9519 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9520 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9521 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9522 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9523 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9524 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9525 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9526 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9527 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9528 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9529 unchanged for now.
9530
95312002-07-13 Kim F. Storm <storm@cua.dk>
9532
9533 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9534
95352002-07-12 Richard M. Stallman <rms@gnu.org>
9536
9537 * fileio.c (Fwrite_region): Doc fix.
9538
9539 * print.c (print_error_message): Don't handle Vsignaling_function here.
9540
9541 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9542 (command_loop_1): Avoid certain actions after memory-full error.
9543
9544 * eval.c (Fsignal): Don't call cancel_hourglass.
9545 For a memory-full error, don't call Vsignal_hook_function
9546 and don't set Vsignaling_function.
9547
9548 * process.c (process_send_signal): Add abort call.
9549
95502002-07-11 Markus Rost <rost@math.ohio-state.edu>
9551
9552 * keymap.c (Fkey_binding): Fix typo.
9553
95542002-07-11 Richard M. Stallman <rms@gnu.org>
9555
9556 * alloc.c (Vmemory_full): New variable.
9557 (Vmemory_signal_data): Renamed from memory_signal_data.
9558 Uses changed.
9559 (syms_of_alloc): Defvar them.
9560 (memory_full, buffer_memory_full): Set Vmemory_full.
9561
9562 * lisp.h (Vmemory_full): Add declaration.
9563 (current_column, indented_beyond_p): Change declaration.
9564
9565 * indent.c (last_known_column): Declare as double, not float.
9566 (current_column, current_column_1, string_display_width)
9567 (position_indentation): Return `double'.
9568 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9569
9570 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9571 (back_to_previous_visible_line_start)
9572 (reseat_at_next_visible_line_start, next_element_from_buffer):
9573 Use `double', not `float', when calling indented_beyond_p.
9574
9575 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9576
9577 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9578
95792002-07-11 Juanma Barranquero <lektu@terra.es>
9580
9581 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
9582 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9583 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9584 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9585 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9586 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
9587
95882002-07-10 Juanma Barranquero <lektu@terra.es>
9589
d814862a
JB
9590 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
9591 All callers changed.
048addec
JD
9592
95932002-07-09 Stefan Monnier <monnier@cs.yale.edu>
9594
9595 * data.c (Fdefalias): Add an optional `docstring' argument.
9596 (set_internal, Fsetq_default): Use XCAR/XCDR.
9597
9598 * composite.c (HASH_VALUE, HASH_KEY):
9599 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
9600
96012002-07-09 Kenichi Handa <handa@etl.go.jp>
9602
9603 * callproc.c (Fcall_process): Fix previous change.
9604
96052002-07-07 Stefan Monnier <monnier@cs.yale.edu>
9606
9607 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9608 Add support for hash-tables.
9609 (Ftry_completion): Return t even if the string appears multiple times.
9610
9611 * fns.c (Fnconc): Use XCDR.
9612 (Fprovide): Use CONSP and XCDR.
9613 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9614 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
9615 (Fmake_hash_table): Accept `:size nil'.
9616 (Fmakehash): Delete: moved to subr.el.
9617 (syms_of_fns): Don't defsubr makehash.
9618
9619 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9620 (HASH_TABLE_SIZE): Move from fns.c.
9621
96222002-07-07 Richard M. Stallman <rms@gnu.org>
9623
9624 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
9625 Instead just return 0 when there is something to be done.
9626 (try_scrolling): If make_cursor_line_fully_visible returns 0,
9627 retry scrolling as if cursor were off the bottom.
9628 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
9629 return CURSOR_MOVEMENT_MUST_SCROLL.
9630 (redisplay_window): If make_cursor_line_fully_visible returns 0,
9631 go to try_to_scroll.
9632
9633 * buffer.c (Fbuffer_local_value): Store current value into its binding
9634 so we get the up-to-date value for the binding that is loaded.
9635
9636 * eval.c (Fdefmacro): Doc fix.
9637
96382002-07-05 Dave Love <fx@gnu.org>
9639
9640 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
9641 correctly.
9642
9643 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
9644 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
9645 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
9646 CCL_LookupCharConstTbl.
9647 (syms_of_ccl): Defvar translation-hash-table-vector.
9648
96492002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9650
9651 * xdisp.c: Remove unused variable `face'.
9652
96532002-07-04 Juanma Barranquero <lektu@terra.es>
9654
9655 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
9656 obsolescence information.
9657
96582002-07-03 Andrew Choi <akochoi@shaw.ca>
9659
9660 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
9661 pattern. Search cache first.
9662 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
9663 for Japanese font.
9664 (XLoadQueryFont): Use it.
9665
96662002-07-02 Richard M. Stallman <rms@gnu.org>
9667
9668 * keymap.c (Fdefine_key): Doc fix.
9669
9670 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
9671
96722002-07-02 Juanma Barranquero <lektu@terra.es>
9673
9674 * keymap.c (syms_of_keymap): Fix typo.
9675
96762002-07-01 Andrew Choi <akochoi@shaw.ca>
9677
9678 * s/darwin.h: Define POSIX_SIGNALS.
9679
9680 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
9681 and FSRefMakePath to convert FSSpec returned with Apple Event to
9682 Posix pathname.
9683 (mac_initialize) [TARGET_API_MAC_CARBON]:
9684 Call init_required_apple_events and disable the `Quit' menu item
9685 provided automatically by the Carbon Toolbox.
9686
96872002-07-01 Dave Love <fx@gnu.org>
9688
9689 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9690 for K&R.
9691
9692 * xterm.c: Fix prototype for K&R.
9693
9694 * term.c (costs_set): Declare static, non-initialized for pcc.
9695
96962002-07-01 Richard M. Stallman <rms@gnu.org>
9697
9698 * keyboard.c (timer_last_idleness_start_time): New variable.
9699 (timer_start_idle): Set that.
9700 (read_key_sequence): Use that to reset timer_idleness_start_time
9701 to previous value.
9702
9703 * window.c (Frecenter): With arg, set optional_new_start.
9704
9705 * xdisp.c (redisplay_internal): Make optional_new_start really work.
9706
9707 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
9708 buffer for completion.
9709
97102002-06-29 Ken Raeburn <raeburn@gnu.org>
9711
9712 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
9713
97142002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9715
9716 * keyboard.c (readable_filtered_events): New function that filters
9717 FOCUS_IN_EVENT depending on parameter.
9718 (readable_events): Calls readable_filtered_events, not filtering
9719 FOCUS_IN_EVENT.
9720 (get_filtered_input_pending): New function, filtering parameter passed
9721 to readable_filtered_events.
9722 (get_input_pending): Calls get_filtered_input_pending, not filtering
9723 FOCUS_IN_EVENT.
9724 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
9725 FOCUS_IN_EVENT.
9726
9727 * xterm.h (struct x_output): Add focus_state.
9728
9729 * xterm.c (x_focus_changed): New function.
9730 (x_detect_focus_change): New function.
9731 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
9732 EnterNotify and LeaveNotify to track X focus changes.
9733
97342002-06-28 Andreas Schwab <schwab@suse.de>
9735
9736 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
9737
97382002-06-27 Kim F. Storm <storm@cua.dk>
9739
9740 * xdisp.c: (mode_line_string_list, mode_line_string_face)
9741 (mode_line_string_face_prop): New variables.
9742 (store_mode_line_string): New function.
9743 (display_mode_element): Use store_mode_line_string to
9744 add mode-line string elements to mode_line_string_list
9745 when mode_line_string_list is non-nil.
9746 (Fformat_mode_line): Now returns propertized string by
9747 default. New arg NO-PROPS to ignore properties.
9748 (decode_mode_spec): Only add two dashes for %- in propertized
9749 mode-line string.
9750 (syms_of_xdisp): Init and staticpro mode_line_string_list.
9751
97522002-06-27 Stefan Monnier <monnier@cs.yale.edu>
9753
9754 * minibuf.c (minibuffer_completion_contents): Add return type.
9755
97562002-06-27 Juanma Barranquero <lektu@terra.es>
9757
9758 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
9759
97602002-06-26 Juanma Barranquero <lektu@terra.es>
9761
9762 * fileio.c (read_file_name_cleanup): Add missing return.
9763
97642002-06-26 Richard M. Stallman <rms@gnu.org>
9765
9766 * window.c (Frecenter): Don't set force_start flag.
9767
9768 * minibuf.c (do_completion, Fminibuffer_complete_word)
9769 (Fminibuffer_completion_help): Complete just the text before point.
9770 (minibuffer_completion_contents): New function.
9771
9772 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
9773
9774 * frame.c (frames_bury_buffer): Function deleted.
9775
97762002-06-25 Miles Bader <miles@gnu.org>
9777
9778 * callint.c (Fcall_interactively): When checking to see if doprnt hit
9779 the end of callint_message, allow for a terminating '\0'.
9780
97812002-06-24 Juanma Barranquero <lektu@terra.es>
9782
9783 * w32select.c: Include composite.h
9784
9785 * w16select.c: Likewise.
9786
97872002-06-24 Kenichi Handa <handa@etl.go.jp>
9788
9789 * callproc.c (Fcall_process): If code detection is necessary,
9790 call detect_coding directly here.
9791
9792 * coding.c (detect_eol): Preserve coding->cmp_data.
9793
9794 * w16select.c (Fw16_get_clipboard_data):
9795 * w32fns.c (w32_to_x_font):
9796 * w32select.c (Fw32_get_clipboard_data):
9797 * xselect.c (selection_data_to_lisp_data):
9798 * xterm.c (XTread_socket): Disable composition handling.
9799
98002002-06-24 Stefan Monnier <monnier@cs.yale.edu>
9801
9802 * print.c (temp_output_buffer_setup): Kill all local variables.
9803
98042002-06-22 Stefan Monnier <monnier@cs.yale.edu>
9805
9806 * lread.c (Fread): Remove redundant and imprecise declaration.
9807
9808 * xfns.c (check_x_display_info): Use check_x_frame.
9809
9810 * .gdbinit (xprintsym): Use the new `xname' field.
9811 (xsymbol): Use it.
9812
98132002-06-22 Jason Rumney <jasonr@gnu.org>
9814
9815 * w32fns.c (file_dialog_callback): New function.
9816 (Fx_file_dialog): Allow selecting directories as well as files.
9817
98182002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9819
9820 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 9821 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
9822
98232002-06-17 Andrew Choi <akochoi@shaw.ca>
9824
9825 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9826 black and white before scrolling. Restore frame background and
9827 foreground color after scrolling.
9828 (do_window_update): Call XClearWindow before calling expose_frame.
9829 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
9830 FRAME_FOREGROUND_PIXEL of frame.
9831
9832 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9833 test Mac command key as <ALT> key.
9834
98352002-06-17 Stefan Monnier <monnier@cs.yale.edu>
9836
9837 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
9838
9839 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
9840 Lookup keys in function-key-map immediately so that key-translation-map
9841 can be applied earlier.
9842 Remove function_key_possible and key_translation_possible, replaced
9843 by checking `keytran_start < t'.
9844
9845 * .gdbinit (xsymbol): Use the new `xname' field.
9846
98472002-06-17 Andrew Choi <akochoi@shaw.ca>
9848
9849 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9850 test Mac command key as <ALT> key.
9851
9852 * mac.c (do_applescript): Call initialize_applescript if necessary
9853 when first called. Dispose of result_desc only when there is no error.
9854 (Fdo_applescript): Use %d format specifier instead of %ld.
9855
98562002-06-16 Andrew Choi <akochoi@shaw.ca>
9857
9858 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
9859 of FrontWindow for cases keyDown and autoKey.
9860
9861 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
9862 Vdefault_fontset to Monaco with mac-roman coding.
9863
9864 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
9865 init_process before and after inclusion of Carbon/Carbon.h, resp.
9866
9867 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
9868 cursor_gc.
9869 (add_font_name_table_entry): New function.
9870 (init_font_name_table): Use add_font_name_table_entry; add italic,
9871 bold, and bold-italic entries for truetype fonts.
9872
9873 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
9874 for Mac too.
9875 (try_font_list) [MAC_OS]: If no font matches given registry, try
9876 fonts with any registry matching face_family.
9877 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
9878
9879 * s/darwin.h: If autoconf detects the Ncurses library, define
9880 LIBS_TERMCAP to -lncurses to use it.
9881
98822002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
9883
9884 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
9885
98862002-06-15 Richard M. Stallman <rms@gnu.org>
9887
9888 * window.c (Fset_window_configuration): Explicitly preserve
9889 the point value that new_current_buffer had at the start.
9890
98912002-06-14 Juanma Barranquero <lektu@terra.es>
9892
9893 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
9894 Fix typos.
9895
98962002-06-14 Kim F. Storm <storm@cua.dk>
9897
9898 * insdel.c (insert_1_both, insert_from_string_1)
9899 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
9900 insert happened in the end_unchanged region. Otherwise, the
9901 redisplay may be confused and duplicate the last line in the
9902 buffer [seen after save-buffer when require-final-newline==t].
9903
99042002-06-13 Jason Rumney <jasonr@gnu.org>
9905
9906 * w32.c (init_environment): Remove EMACSLOCKDIR.
9907 (stat): Swap _S_IFDIR and _S_IFREG.
9908
99092002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9910
9911 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
9912 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
9913 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
9914 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
9915 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
9916 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
9917 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
9918 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
9919 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
9920 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
9921 SELECTION_REQUEST_EVENT, selection_clear_event to
9922 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
9923 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
9924 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
9925 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
9926 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
9927 no_event to NO_EVENT.
9928
99292002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9930
9931 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
9932
99332002-06-12 Stefan Monnier <monnier@cs.yale.edu>
9934
9935 * intervals.c (textget): Don't forget to `return'.
9936 (lookup_char_property): Use XCAR/XCDR.
9937
99382002-06-12 Juanma Barranquero <lektu@terra.es>
9939
9940 * xdisp.c (Fformat_mode_line): Fix typo.
9941
99422002-06-12 Kim F. Storm <storm@cua.dk>
9943
9944 * xdisp.c (Fformat_mode_line): New function.
9945 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
9946 (store_frame_title_char, store_frame_title): Use unconditionally.
9947 (init_xdisp): Defsubr Fformat_mode_line.
9948 Initialize frame_title_buf etc. unconditionally.
9949
99502002-06-11 Stefan Monnier <monnier@cs.yale.edu>
9951
9952 * keyboard.c (read_key_sequence):
9953 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
9954 things through those maps after downcasing events.
9955 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
9956 applies after function-key-map.
9957 Make sure that keytran can be done in the middle in the sequence.
9958 Be careful not to throw away events past the one we downcase.
9959
9960 * lread.c (read_integer): Remove unused var `tem'.
9961 (read1): Fix int/Lisp_Object mixup.
9962
9963 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
9964
99652002-06-11 Richard M. Stallman <rms@gnu.org>
9966
9967 * keyboard.c (readable_events): Ignore any number of
9968 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
9969
99702002-06-09 Miles Bader <miles@gnu.org>
9971
9972 * xfaces.c (Ftty_supports_face_attributes_p): New function.
9973 (parse_rgb_list, tty_lookup_color): New functions.
9974 (tty_defined_color): Use `tty_lookup_color' to do all the work.
9975 (color_distance, Fcolor_distance): New functions.
9976 (TTY_SAME_COLOR_THRESHOLD): New macro.
9977 (Qtty_color_standard_values): New variable.
9978 (syms_of_xfaces): Initialize new vars & functions.
9979
99802002-06-08 Colin Walters <walters@verbum.org>
9981
9982 * textprop.c (Vchar_property_alias_alist): New variable.
9983 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
9984
9985 * intervals.c (lookup_char_property): New function for looking up
9986 overlay and text properties, created from textget.
9987 (textget): Use it.
9988
9989 * intervals.h (lookup_char_property): Declare.
9990 (Vchar_property_alias_alist): Declare.
9991
9992 * buffer.c (Foverlay_get): Use lookup_char_property.
9993
99942002-06-07 Sam Steingold <sds@gnu.org>
9995
9996 * xselect.c (lisp_data_to_selection_data): Fix last change:
9997 *data_ret is not a Lisp string, while unibyte_string is.
9998
99992002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10000
10001 * xselect.c (lisp_data_to_selection_data): Fix last change:
10002 set size_ret.
10003
100042002-06-07 Andreas Schwab <schwab@suse.de>
10005
10006 * m/amdx86-64.h: New file.
10007
100082002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10009
10010 * fns.c (Fstring_make_unibyte): Doc fix.
10011
10012 * xselect.c (lisp_data_to_selection_data): If the requested type
10013 is STRING, call string_make_unibyte to encode the selected text
10014 as a string.
10015
10016 * window.c (Fset_window_hscroll): Doc fix.
10017
100182002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10019
10020 * fileio.c (choose_write_coding_system):
10021 Call select-safe-coding-system properly.
10022
100232002-06-03 Richard M. Stallman <rms@gnu.org>
10024
10025 * xdisp.c (message_with_string): Error if STRING is not a string.
10026
10027 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10028
10029 * fileio.c (choose_write_coding_system): Pass FILE arg to
10030 Vselect_safe_coding_system_function.
10031
100322002-06-03 Ken Raeburn <raeburn@gnu.org>
10033
10034 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10035
100362002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10037
10038 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10039 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10040 * keymap.c (describe_command): Likewise.
10041 * minibuf.c (read_minibuf): Likewise.
10042
10043 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10044 Cast `current_column' return value to int.
10045 (back_to_previous_visible_line_start)
10046 (reseat_at_next_visible_line_start, next_element_from_buffer):
10047 Cast `indented_beyond_p' 3rd arg to float.
10048
10049 * indent.c (last_known_column): Now a float.
10050 (current_column_1, position_indentation, current_column)
10051 (string_display_width): Return float.
10052 (Fcurrent_column): Cast `current_column' return value to int.
10053 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10054 (indented_beyond_p): Third arg now a float.
10055 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10056
10057 * lisp.h (current_column): Now returns float.
10058 (indented_beyond_p): 3rd arg now a float.
10059
100602002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10061
10062 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10063 is Qcompound_text_with_extensions.
10064
10065 * xselect.c (lisp_data_to_selection_data): Always set selection
10066 type as string if x_encode_text returns streingp non-NULL.
10067
10068 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10069
100702002-05-30 Richard M. Stallman <rms@gnu.org>
10071
10072 * window.c (Fset_window_configuration): Correct the handling
10073 of point in current buffer, to work with multiple windows.
10074
100752002-05-29 Colin Walters <walters@verbum.org>
10076
10077 * lread.c (Fread_from_string): Don't depend on order of evaluation
10078 for C function parameters.
10079
100802002-05-28 Richard M. Stallman <rms@gnu.org>
10081
10082 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10083 way for blinked-off state and for a nonselected window.
10084
10085 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10086 instead, see if the new start pos is at beginning of line.
10087
10088 * fileio.c (Fwrite_region): If START is a string, don't
10089 make any annotations.
10090
10091 * eval.c (syms_of_eval): Doc fix.
10092
100932002-05-28 Colin Walters <walters@debian.org>
10094
10095 * emacs.c (USAGE1): Add --no-splash.
10096 (standard_args): Ditto.
10097
100982002-05-28 Colin Walters <walters@gnu.org>
10099
10100 * lread.c (readchar_count): New variable.
10101 (readchar): Increment it.
10102 (unreadchar): Decrement it.
10103 (read_multibyte): Decrement it.
10104 (Vread_with_symbol_positions): New variable.
10105 (Vread_symbol_positions_list): New variable.
10106 (read_internal_start): New function, created from Fread and
10107 Fread_from_string. Handle Vread_symbol_positions_list and
10108 Vread_with_symbol_positions.
10109 (readevalloop, Fread, Fread_from_string): Use it.
10110 (read1): Use readchar_count to add symbol positions to
10111 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10112 (syms_of_lread): DEFVAR_LISP and initialize them.
10113
10114 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10115 (substitute_object_recurse, substitute_object_in_subtree)
10116 (substitute_in_interval): Prototype.
10117 (read_multibyte): Return c if it's less than zero.
10118
101192002-05-28 Kim F. Storm <storm@cua.dk>
10120
10121 * fileio.c (Fread_file_name_internal): Added brute-force
10122 speed up for using predicate file-directory-p.
10123
101242002-05-28 Kim F. Storm <storm@cua.dk>
10125
10126 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10127 New variables.
10128 (syms_of_fileio): DEFVAR_LISP them.
10129 (read_file_name_cleanup): New unwind function.
10130 (Fread_file_name_internal): Only return completions satifying
10131 Vread_file_name_predicate. Temporarily unwind protect and rebind
10132 default-directory while checking completions against the predicate.
10133 (Fread_file_name): Added PREDICATE argument. Specbind it to
10134 Vread_file_name_predicate during completion.
10135 Call Vread_file_name_function to read the file name if non-nil.
10136
10137 * lisp.h (Fread_file_name): Now has 6 args.
10138
10139 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10140 predicate for Fread_file_name when reading directory name.
10141 Supply Qnil for predicate in other calls to Fread_file_name.
10142
101432002-05-26 Miles Bader <miles@gnu.org>
10144
10145 * term.c (tty_capable_p): New function.
10146 * dispextern.h (tty_capable_p): New function declaration.
10147 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10148 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10149
101502002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10151
10152 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10153 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10154 (Vwrite_region_annotate_functions): Docstring fix.
10155
101562002-05-23 Kim F. Storm <storm@cua.dk>
10157
10158 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10159 phys_cursor's hpos is overwritten. This is still not completely
10160 correct, as it doesn't really make sense to use hpos at all to
10161 get the cursor glyph (as that is relative to the width of the
10162 characters on the line, which may have changed during the update).
10163
101642002-05-22 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10167 Lisp_Object.
10168 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10169 Use modified enumfont_t struct.
10170
10171 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10172
10173 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10174 Handle the `hbar' cursor type.
10175 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10176
10177 * w32fns.c (Qhbar): New variable.
10178 (x_specified_cursor_type): Use it.
10179
101802002-05-21 Ken Raeburn <raeburn@gnu.org>
10181
10182 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10183 now, when the address is needed.
10184
101852002-05-21 Colin Walters <walters@gnu.org>
10186
10187 * Makefile.in (shortlisp): Add font-core.el.
10188
101892002-05-20 Richard M. Stallman <rms@gnu.org>
10190
10191 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10192
10193 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10194 equivalent key bindings here.
10195
101962002-05-20 Ken Raeburn <raeburn@gnu.org>
10197
10198 Change symbol structure to contain a lisp object for the symbol
10199 name:
10200 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10201 object field named "xname".
10202 (SYMBOL_NAME): New macro.
10203 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10204 name field.
10205 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10206 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10207 instead of name field.
10208 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10209 SYMBOL_NAME instead of XSYMBOL and name field.
10210 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10211 instead of XSYMBOL and name field.
10212 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10213 and SYMBOL_NAME instead of XSYMBOL and name field.
10214 * coding.c (Fread_coding_system, code_convert_region1)
10215 (code_convert_string1, code_convert_string_norecord)
10216 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10217 XSYMBOL and name field.
10218 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10219 (Fmake_variable_buffer_local, Fmake_local_variable)
10220 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10221 of XSYMBOL and name field.
10222 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10223 XSYMBOL and name field.
10224 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10225 instead of XSYMBOL and name field.
10226 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10227 XSYMBOL and name field.
10228 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10229 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10230 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10231 instead of XSYMBOL and name field.
10232 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10233 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10234 (parse_solitary_modifier, Fexecute_extended_command):
10235 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10236 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10237 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10238 of XSYMBOL and name field.
10239 (describe_command, describe_translation): Use SYMBOL_NAME and
10240 assignment instead of XSYMBOL and name field and XSETSTRING.
10241 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10242 instead of XSYMBOL and name field.
10243 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10244 name field and XSETSTRING.
10245 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10246 of XSYMBOL and name field.
10247 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10248 assignment instead of XSYMBOL and name field and XSETSTRING.
10249 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10250 XSTRING instead of XSYMBOL and name field.
10251 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10252 and XSTRING instead of XSYMBOL and name field.
10253 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10254 and XSTRING instead of XSYMBOL and name field.
10255 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10256 XSTRING instead of XSYMBOL and name field.
10257 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10258 of XSYMBOL and name field.
10259 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10260 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10261
102622002-05-19 Ken Raeburn <raeburn@gnu.org>
10263
10264 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10265 and XCDR real rvalues in most configurations.
10266
10267 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10268 Don't take the address of the cdr part of a cons cell; instead, track
10269 the parent cell and call XSETCDR, or set the variable for the head
10270 of the list if we haven't started down the list yet.
10271
102722002-05-19 Richard M. Stallman <rms@gnu.org>
10273
10274 * doc.c (reread_doc_file): Don't ask for confirmation.
10275
102762002-05-18 Jason Rumney <jasonr@gnu.org>
10277
10278 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10279 (xbm_load_image): Use it.
10280 (xbm_load): Ditto.
10281 (xbm_read_bitmap_data): Reverted to xfns.c version.
10282 From David Ponce <david@dponce.com>.
10283
102842002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10285
10286 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10287 2.02 and later.
10288
102892002-05-16 Juanma Barranquero <lektu@terra.es>
10290
10291 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10292
102932002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10294
10295 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10296 meaningful test.
10297 (read_char_minibuf_menu_prompt): Fix typo.
10298
102992002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10300
10301 * eval.c (Fcommandp): Doc fix.
10302
103032002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10304
10305 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10306 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10307 (Fset_keymap_parent): Gcpro a bit more.
10308 (access_keymap): Gcpro around meta_map call and around the main loop.
10309 (get_keyelt): Gcpro when following indirect references.
10310 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10311 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10312 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10313 Remove useless ad-hoc remap code.
10314
103152002-05-13 Richard M. Stallman <rms@gnu.org>
10316
10317 * search.c (search_buffer): Give up boyer moore search if inverse
10318 translation change charset_base.
10319
103202002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10321
10322 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10323 characters is carried over from the previous block of text, adjust
10324 coding->produced to account for the extra character.
10325
103262002-05-11 Andreas Schwab <schwab@suse.de>
10327
10328 * coding.c (intersection): Keep the elements of the returned list
10329 in the same order as in the first list.
10330
103312002-05-11 Kim F. Storm <storm@cua.dk>
10332
10333 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10334 only update cmm_size if realloc actually succeeds.
10335 Testing with initial size of 2 elements revealed that using
10336 realloc on GNU/Linux would cause a random trap in xmalloc
10337 later on, so I rewrote the code to use malloc/bcopy/free instead
10338 of realloc.
10339
103402002-05-10 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10343
103442002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10345
10346 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10347 parens, to ensure correct evaluation order.
10348
103492002-05-10 Kim F. Storm <storm@cua.dk>
10350
10351 * keymap.c (Vemulation_mode_map_alists): New variable.
10352 (syms_of_keymap): DEFVAR_LISP it.
10353 (current_minor_maps): Process keymap alists in that list before
10354 minor-mode-overriding-map-alist and minor-mode-map-alist.
10355
103562002-05-09 Richard M. Stallman <rms@gnu.org>
10357
10358 * search.c (Freplace_match): Doc fix.
10359
103602002-05-09 Kim F. Storm <storm@cua.dk>
10361
10362 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10363 Enlarge cursor rectangle drawn around image with non-zero relief.
10364
10365 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10366 Enlarge cursor rectangle drawn around image with non-zero relief.
10367
10368 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10369 Enlarge cursor rectangle drawn around image with non-zero relief.
10370
103712002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10372
10373 * xselect.c (lisp_data_to_selection_data): Don't set selection
10374 type if comes from the Lisp object's car. If the selection
10375 contains a pure ASCII text, always return QSTRING as its type.
10376
103772002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10378
10379 * mac.c (mac-cut-function): Doc fix.
10380
103812002-05-05 Richard M. Stallman <rms@gnu.org>
10382
10383 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10384
103852002-05-04 Jason Rumney <jasonr@gnu.org>
10386
10387 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10388 for event-click-count.
10389
10390 * process.c (init_process): Only add server subfeature if we can
10391 use non-blocking I/O.
10392
103932002-05-04 Andrew Choi <akochoi@shaw.ca>
10394
10395 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10396 repeatedly.
10397
103982002-05-03 Jason Rumney <jasonr@gnu.org>
10399
10400 * process.c (Fmake_network_process): Only support server sockets
10401 when we can make them non-blocking.
10402
10403 * s/ms-w32.h (HAVE_SELECT): Define.
10404
10405 * w32.h (FILE_NDELAY): New flag.
10406
10407 * w32.c (sys_getpeername, fcntl): New functions.
10408 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10409
10410 * w32proc.c: include sys/file.h.
10411
104122002-05-03 Colin Walters <walters@verbum.org>
10413
10414 * callproc.c (Vgame_score_directory): Renamed to
10415 Vshared_game_score_directory.
10416
104172002-04-30 Richard M. Stallman <rms@gnu.org>
10418
10419 * s/gnu.h [emacs]: Include stdio.h.
10420 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10421
10422 * eval.c (do_autoload): Error if called while preparing to dump.
10423
10424 * fns.c (Frequire): Error if need to load while preparing to dump.
10425
104262002-04-28 Colin Walters <walters@verbum.org>
10427
10428 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10429 Default to "~/.emacs.d/games".
10430
104312002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10432
10433 * lread.c (openp): Change arg exec_only to predicate.
10434 (build_load_history): Use XCAR/XCDR.
10435 (Flocate_file_internal): New fun.
10436 (syms_of_lread): Defsubr it.
10437 (Fload): Update call to openp.
10438
10439 * lisp.h (openp): Update prototype.
10440
10441 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10442 * w32proc.c (sys_spawnve):
10443 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10444 * w32.c (check_windows_init_file):
10445 * sound.c (Fplay_sound_internal):
10446 * process.c (Fstart_process):
10447 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10448 * mac.c (run_mac_command):
10449 * emacs.c (init_cmdargs):
10450 * callproc.c (Fcall_process): Update call to openp.
10451
10452 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10453
10454 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10455
104562002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10457
10458 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10459 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10460
104612002-04-28 Richard M. Stallman <rms@gnu.org>
10462
10463 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10464
10465 * eval.c (Fcommandp): New arg for_call_interactively.
10466 * lisp.h (Fcommandp): Declare new arg.
10467
104682002-04-28 Jason Rumney <jasonr@gnu.org>
10469
10470 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10471
10472 * w32.c (stat, fstat): Use file index information to generate
10473 inodes for directories where available.
10474
104752002-04-26 Andrew Choi <akochoi@shaw.ca>
10476
10477 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10478 [HAVE_CARBON]: Include Mac object files.
10479
10480 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10481 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10482 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10483 MAC_OSX, and MAC_OS instead of macintosh.
10484
10485 * editfns.c [MAC_OS8]: Include stdio.h.
10486
10487 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10488
10489 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10490 Apple Monaco.
10491
10492 * process.c: Declare QCfamily and QCfilter as extern.
10493 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10494 calling select.
10495
10496 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10497
10498 * tparam.c [MAC_OSX]: Don't define BC and UP.
10499
10500 * config.in [HAVE_CARBON]: Add.
10501
10502 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10503 Move here from mac/src and mac/inc.
10504
10505 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10506
105072002-04-26 Gerd Moellmann <gerd@gnu.org>
10508
10509 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10510 Compute phys_cursor_width from the x position returned
10511 by x_draw_glyhs, which is cheaper.
10512 (x_display_and_set_cursor): Compute the buffer-local value
10513 of `cursor-in-non-selected-windows' only when needed.
10514
105152002-04-25 Gerd Moellmann <gerd@gnu.org>
10516
10517 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10518 cursor on a stretch glyph has a width that depends on
10519 x_stretch_cursor_p.
10520
105212002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10522
10523 * abbrev.c (abbrev-start-location): Doc fix.
10524
10525 * indent.c (Fvertical_motion): Fix last change.
10526
105272002-04-25 Gerd Moellmann <gerd@gnu.org>
10528
10529 * indent.c (Fvertical_motion): Move to the start of the line
10530 containing PT before moving up or down.
10531
105322002-04-24 Gerd Moellmann <gerd@gnu.org>
10533
10534 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10535 case of writing a whole row, more or less analogous to the case of
10536 writing only parts of a row.
10537
10538 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10539 0 for NO_CURSOR.
10540
10541 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10542
105432002-04-23 Colin Walters <walters@verbum.org>
10544
10545 * buffer.c (syms_of_buffer): Doc fix.
10546
105472002-04-23 Gerd Moellmann <gerd@gnu.org>
10548
10549 * xterm.c (notice_overwritten_cursor): Handle the special case
10550 of the cursor being in the first blank non-text line at the
10551 end of a window.
10552
10553 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10554 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10555 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10556 bar cursors only, to make phys_cursor_width contain what its name
10557 suggests.
10558 (notice_overwritten_cursor): Consider the cursor image erased if
10559 the output area intersects the cursor image in y-direction.
10560
105612002-04-23 Simon Marshall <simon@gnu.org>
10562
10563 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10564 to XC_hand2.
10565
105662002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10567
10568 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10569
105702002-04-22 Kim F. Storm <storm@cua.dk>
10571
10572 * textprop.c (remove_properties): Fixed trap for malformed plist.
10573
105742002-04-22 Richard M. Stallman <rms@gnu.org>
10575
10576 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10577
10578 * window.c (make_window): Initialize height_fixed_p,
10579 last_cursor_off_p, and p->cursor_off_p slots.
10580
105812002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10582
10583 * fns.c (use-dialog-box): Doc fix.
10584
105852002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10586
10587 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10588 variables `row', `i' and `area'.
10589 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
10590 toolkit library.
10591
105922002-04-19 Stefan Monnier <monnier@cs.yale.edu>
10593
10594 * xfaces.c (clear_font_table): Don't free the default font of
10595 a frame even if it's on another display.
10596 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
10597 that could be Qt.
10598
105992002-04-19 Juanma Barranquero <lektu@terra.es>
10600
10601 * indent.c (Fmove_to_column): Remove unused local variable
10602 `next_boundary_byte'.
10603 (current_column_1): Likewise.
10604
106052002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10606
10607 * msdos.c (Qhbar): New variable.
10608 (syms_of_msdos): Intern and staticpro it.
10609 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
10610 cursor type.
10611
106122002-04-19 Dave Lambert <dlambert@acm.org>
10613
10614 Theses change implement an underscore-like (`hbar') cursor.
10615
10616 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10617
10618 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
10619 Handle the `hbar' cursor type.
10620 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10621
10622 * xfns.c (Qhbar): New variable.
10623 (syms_of_xfns): Intern and staticpro it.
10624 (x_specified_cursor_type): Handle `hbar' cursor.
10625
10626 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
10627 not defined.
10628
106292002-04-18 Richard M. Stallman <rms@gnu.org>
10630
10631 * textprop.c (remove_properties): New arg LIST allows scanning
10632 either a list or a plist.
10633 (interval_has_some_properties_list): New function, like
10634 interval_has_some_properties using list instead of plist.
10635 All callers changed.
10636 (Fremove_list_of_text_properties): New function.
10637 (syms_of_textprop): Defsubr it.
10638
106392002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10640
10641 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
10642
106432002-04-17 Juanma Barranquero <lektu@terra.es>
10644
10645 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
10646
106472002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10648
10649 * window.c (coordinates_in_window): Don't report on margin area
10650 if its width is zero.
10651
106522002-04-16 Jason Rumney <jasonr@gnu.org>
10653
10654 * w32fns.c (Fx_file_dialog): Decode file name before using.
10655
10656 * w32term.c (construct_drag_n_drop): Likewise.
10657
106582002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
10659
10660 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
10661 store load-history in pure space.
10662
10663 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
10664
106652002-04-16 Stefan Monnier <monnier@cs.yale.edu>
10666
10667 * xterm.c (Qlatin_1, Qutf_8): New vars.
10668 (syms_of_xterm): Initialize them.
10669 (XTread_socket): Eliminate incorrect optimization that tried to avoid
10670 decoding the output of X*LookupString.
10671 Always use latin-1 to decode the output of XLookupString.
10672 Try Xutf8LookupString if XmbLookupString failed.
10673
10674 * region-cache.c (new_region_cache): Use BEG.
10675
106762002-04-16 Gerd Moellmann <gerd@gnu.org>
10677
10678 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
10679 configuration files.
10680 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
10681 returns 0.
10682
106832002-04-15 Andreas Schwab <schwab@suse.de>
10684
10685 * config.in: Regenerated using autoheader.
10686
10687 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
10688 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
10689 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
10690 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
10691 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
10692 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
10693 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
10694 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
10695 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
10696 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
10697 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
10698 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
10699 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
10700 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
10701 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
10702 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
10703 STACK_DIRECTION, now set by autoconf.
10704
107052002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10706
10707 * dispnew.c (marginal_area_string): Sort arguments.
10708
10709 * dispextern.h (marginal_area_string): Add prototype.
10710
107112002-04-13 Richard M. Stallman <rms@gnu.org>
10712
10713 * fileio.c (Finsert_file_contents):
10714 Don't call temp_output_buffer_setup--do just part, by hand.
10715
10716 * coding.c (run_pre_post_conversion_on_str):
10717 Don't call temp_output_buffer_setup--do just part, by hand.
10718
10719 * keyboard.c (command_loop_1): Don't call start_hourglass
10720 or cancel_hourglass when executing a macro.
10721
10722 * marker.c (count_markers): New function.
10723
10724 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
10725 grow without limit. Move recently used elements to the front.
10726
107272002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10728
10729 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
10730
107312002-04-12 Gerd Moellmann <gerd@gnu.org>
10732
10733 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
10734 rows marginal areas.
10735 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
10736 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10737
10738 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
10739
107402002-04-12 Dave Love <fx@gnu.org>
10741
10742 * dispnew.c (marginal_area_string): New.
10743
10744 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
10745 (Qleft_margin, Qright_margin): Declare.
10746 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
10747
10748 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
10749 note_mode_line_highlight and extended.
10750
10751 * keyboard.c (Qleft_margin, Qright_margin): Declare.
10752 (make_lispy_event): Deal with mouse events in margins.
10753
107542002-04-12 Stefan Monnier <monnier@cs.yale.edu>
10755
10756 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
10757
10758 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
10759 than deactivating the mark if tmm is set to `lambda'.
10760 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
10761 Use a single event for HELP_EVENT.
10762 (Fexecute_extended_command): Save last_point_position.
10763
107642002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10765
10766 * lisp.h (Fpropertize): Add prototype.
10767
10768 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
10769
107702002-04-10 Colin Walters <walters@verbum.org>
10771
10772 * config.in: Add HAVE_SHARED_GAME_DIR.
10773
10774 * callproc.c: (Vgame_score_directory): New variable.
10775 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
10776
107772002-04-10 Richard M. Stallman <rms@gnu.org>
10778
10779 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
10780
107812002-04-09 Stefan Monnier <monnier@cs.yale.edu>
10782
10783 * minibuf.c (read_minibuf): Use empty_string.
10784 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
10785 Short-circuit the search as soon as it "failed".
10786 (Fall_completions): Allow lambda forms and lists of strings for alist.
10787 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
10788 when require_match is nil.
10789 (Ftest_completion): Rename from `test_completion' and export to elisp.
10790 Call the predicate also when alist is a list.
10791 Obey Vcompletion_regexp_list.
10792 (do_completion, Fminibuffer_complete_and_exit): Use it.
10793 (Fassoc_string): Rename from `assoc_for_completion'.
10794 Allow list of strings as well and export to elisp.
10795
107962002-04-08 Stefan Monnier <monnier@cs.yale.edu>
10797
10798 * puresize.h (BASE_PURESIZE): Increase to 900KB.
10799
108002002-04-08 Juanma Barranquero <lektu@terra.es>
10801
10802 * w32.c (sys_accept): Don't hide variable `s'.
10803
108042002-04-05 Gerd Moellmann <gerd@gnu.org>
10805
10806 * callint.c (Fcall_interactively): Use INTEGERP instead of
10807 NUMBERP for checking Vhistory_length.
10808
108092002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10810
10811 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
10812 Doc fix to reflect it.
10813
108142002-04-04 Richard M. Stallman <rms@gnu.org>
10815
10816 * xdisp.c (display_mode_element): New arg RISKY.
10817 Disregard text props found or specified within a variable
10818 that isn't marked risky-local-variable.
10819 (Qrisky_local_variable): New variable.
10820 (syms_of_xdisp): Init and staticpro it.
10821
108222002-04-04 Stefan Monnier <monnier@cs.yale.edu>
10823
10824 * undo.c (record_point): New fun.
10825 (record_delete, record_insert): Use it.
10826
108272002-04-03 Juanma Barranquero <lektu@terra.es>
10828
10829 * doc.c (Fdocumentation): Add missing parentheses.
10830 (Fdocumentation_property): Likewise.
10831
108322002-04-03 Stefan Monnier <monnier@cs.yale.edu>
10833
10834 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
10835 data is 0, just return nil.
10836
108372002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
10838
10839 * msdos.c (syms_of_msdos): Fix last change with
10840 mouse_autoselect_window.
10841
108422002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10843
10844 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
10845 mouse_autoselect_window.
10846
108472002-04-02 Stefan Monnier <monnier@cs.yale.edu>
10848
10849 * keyboard.c (make_lispy_event): Handle unknown keysyms together
10850 with system-specific keysyms. Use it also for unknown function keys.
10851
10852 * doc.c (reread_doc_file): Return whether reload was attempted.
10853 (Fdocumentation, Fdocumentation_property): Don't try to reload
10854 if the doc is 0 and only ask once.
10855
10856 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
10857
108582002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
10859
10860 * keyboard.c (read_char): If the event was Qselect_window,
10861 restore timer_idleness_start_time to its previous value.
10862
10863 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
10864
108652002-04-01 Stefan Monnier <monnier@cs.yale.edu>
10866
10867 * region-cache.c (new_region_cache): Use BEG.
10868
10869 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
10870 Use BEG and BEG_BYTE.
10871
10872 * doc.c (get_doc_string): Return nil if the location is wrong.
10873 (reread_doc_file): New fun.
10874 (Fdocumentation, Fdocumentation_property):
10875 Call it if get_doc_string fails.
10876 (Fsnarf_documentation): Make it work for a dumped Emacs.
10877
10878 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
10879 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
10880
10881 * charset.c (Fstring): Allow 0 arguments.
10882
10883 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
10884
10885 * process.c (DATAGRAM_CONN_P, list_processes_1)
10886 (Fprocess_datagram_address, Fset_process_datagram_address)
10887 (Fset_network_process_options, server_accept_connection):
10888 Fix some int/Lisp_Object confusions (thank you union types).
10889
108902002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10891
10892 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
10893
10894 * w32term.c: Likewise.
10895 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
10896
10897 * keyboard.c (Qselect_window): New symbol.
10898 (head_table): Use it.
10899 (keys_of_keyboard): Bound select-window event to handle-select-window.
10900 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
10901
10902 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
10903 (last_window): New variable.
10904 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
10905 (note_mouse_movement): Remove reimplemented code in #if 0.
10906 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
10907 Emacs windows.
10908
10909 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
10910
109112002-03-31 Gerd Moellmann <gerd@gnu.org>
10912
10913 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
10914 Callers changed.
10915
109162002-03-30 Richard M. Stallman <rms@gnu.org>
10917
10918 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
10919 loop whenever it stops making progress.
10920
10921 * widget.c (set_frame_size): Don't call change_frame_size.
10922
109232002-03-30 Gerd Moellmann <gerd@gnu.org>
10924
10925 * dispnew.c (direct_output_for_insert):
10926 Call mark_window_display_accurate.
10927
109282002-03-29 Jason Rumney <jasonr@gnu.org>
10929
10930 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
10931
109322002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
10933
10934 * Makefile.in (lread.o): Depend on coding.h.
10935
10936 * lread.c (openp, Fload): Encode the file name before passing it
10937 to `stat', `access', and `emacs_open'.
10938 (openp): GCPRO the encoded file name. Don't recompute Lisp
10939 strings unnecessarily.
10940
109412002-03-29 Kim F. Storm <storm@cua.dk>
10942
10943 * fns.c (Flax_plist_put): Doc fix.
10944
109452002-03-28 Miles Bader <miles@gnu.org>
10946
10947 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
10948
109492002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10950
10951 * process.c (set-network-process-options): Add usage.
10952 (make-network-process): Doc fix.
10953
109542002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
10955
10956 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
10957
109582002-03-26 Richard M. Stallman <rms@gnu.org>
10959
10960 * fns.c (Fsubstring_no_properties): New function.
10961 (Flax_plist_get, Flax_plist_put): New functions.
10962 (syms_of_fns): defsubr them.
10963
10964 * xdisp.c (update_menu_bar): Test only update_mode_lines;
10965 don't test or alter w->update_mode_line.
10966
10967 * window.c (Fdisplay_buffer): Doc fix.
10968
109692002-03-24 Richard M. Stallman <rms@gnu.org>
10970
10971 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
10972
109732002-03-24 Gerd Moellmann <gerd@gnu.org>
10974
10975 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
10976 (Fdefmacro): Handle `(declare ...)'.
10977 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
10978 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
10979
109802002-03-24 Jason Rumney <jasonr@gnu.org>
10981
10982 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
10983 (xbm_file_p): Add prototypes.
10984 (xbm_format, xbm_image_p): Sync with xfns.c.
10985 (reflect_byte): New function.
10986 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
10987 (xbm_load_image): Create bitmaps with a depth of 1.
10988 (init_xfns): Enable XBM images.
10989
109902002-03-23 Jason Rumney <jasonr@gnu.org>
10991
10992 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
10993 correctly. Do not pass up_modifier to keyboard buffer.
10994
10995 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
10996
109972002-03-22 Stefan Monnier <monnier@cs.yale.edu>
10998
10999 * Makefile.in (bootstrapclean): New target.
11000 (bootstrap-temacs, bootstrap-doc): Remove.
11001 (bootstrap-emacs): Use a bog-standard `temacs'.
11002 Don't bother to build a DOC file.
11003
11004 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11005
11006 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11007 in temacs even if !CANNOT_DUMP.
11008 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11009
11010 * alloc.c (check_pure_size): Only output a warning.
11011
110122002-03-22 Jason Rumney <jasonr@gnu.org>
11013
11014 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11015 supported.
11016
11017 * w32term.c (zv_bits): Declare as short, for word alignment.
11018 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11019 (syms_of_w32term): Define x-use-underline-position-properties.
11020
11021 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11022 (clear_image_cache): Block input, fix logic, clear matrices in
11023 all frames that share this cache.
11024
110252002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11026
11027 * emacs.c (main): Update the Copyright year in the blurb printed
11028 by "emacs --version".
11029
11030 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11031
11032 * xterm.c (XTread_socket): If XK_ISO_Lock and
11033 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11034 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11035
110362002-03-21 Kim F. Storm <storm@cua.dk>
11037
11038 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11039 menu-bar bindings in keymap and local-map properties _are_ used.
11040 But try keymap property first in accordance with 2002-01-03 patch.
11041 Added comment describing why this is not always reliable.
11042 (tool_bar_items): Ditto for tool-bar.
11043
110442002-03-21 Jason Rumney <jasonr@gnu.org>
11045
11046 * w32fns.c (x_clear_image_1): Disable color table code.
11047
110482002-03-21 Kim F. Storm <storm@cua.dk>
11049
11050 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11051 removed the wrong version of the DEFUN macro; fixed it.
11052
11053 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11054 Fmember rather than Fmemq).
11055 (Fprovide): Check that subfeatures is a list.
11056
11057 * process.c (QCfeature, QCdatagram): Removed variables.
11058 (QCtype, Qdatagram): New variables.
11059 (network_process_featurep): Removed function.
11060 (Fmake_network_process): Removed :feature check.
11061 Use :type 'datagram instead of :datagram t to create a datagram
11062 socket. This allows us to add other connection types (e.g. raw
11063 sockets) later in a consistent manner.
11064 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11065 supported subfeatures for feature make-network-process.
11066 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11067 Intern and staticpro QCtype and Qdatagram.
11068 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11069
11070 * xfns.c: (QCtype): Remove duplicate declaration and
11071 initialization (is now declared in process.c).
11072
11073 * w32fns.c: (QCtype): Remove duplicate declaration and
11074 initialization (is now declared in process.c).
11075
110762002-03-21 Richard M. Stallman <rms@gnu.org>
11077
11078 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11079 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11080 when jumping to `fail' to avoid undoing reg changes in the
11081 last iteration of the loop.
11082 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11083
11084 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11085 Depend on process.h.
11086
110872002-03-20 Jason Rumney <jasonr@gnu.org>
11088
11089 Most of the following changes are still conditional on HAVE_IMAGES
11090 which is not set by default on Windows.
11091
11092 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11093
11094 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11095 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11096 (four_corners_best, x_clear_image_1, x_clear_image)
11097 (x_alloc_image_color, postprocess_image)
11098 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11099 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11100 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11101
11102 * w32gui.h (struct XImage): Define.
11103
11104 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11105 extract mouse co-ordinates.
11106
111072002-03-20 Jason Rumney <jasonr@gnu.org>
11108
11109 * w32.c (init_winsock): Dynamically load new server and UDP
11110 socket functions.
11111 (socket_to_fd): New function.
11112 (sys_socket): Use it.
11113 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11114 (sys_recvfrom, sys_sendto): New wrapper functions.
11115
11116 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11117 and initialization.
11118
11119 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11120
111212002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11122
11123 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11124 Don't use "sun" as a variable, it's a predefined constant on Sun
11125 machines.
11126
111272002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11128
11129 * bytecode.c (Fbyte_code): Revert last change.
11130
111312002-03-19 Kim F. Storm <storm@cua.dk>
11132
11133 * makefile.w32-in (LIBS): Add $(WSOCK32).
11134 From David Ponce <dponce@voila.fr>.
11135
111362002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11137
11138 * process.c (wait_reading_process_input): Move variables `pname'
11139 and `pnamelen' down where they are used.
11140
11141 * bytecode.c (Fbyte_code): Discard unused computed value to
11142 prevent gcc warning.
11143
11144 * lisp.h (Fplist_member): Add prototype.
11145
111462002-03-18 Kim F. Storm <storm@cua.dk>
11147
11148 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11149 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11150
11151 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11152 Remove explicit GNU_LINUX settings for datagram support.
11153
111542002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11155
11156 * process.c (Fmake_network_process): Remove unused variable `sa'.
11157 Doc fix. Add usage:.
11158 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11159
111602002-03-17 Richard M. Stallman <rms@gnu.org>
11161
11162 * xdisp.c (cursor_type_changed): New variable.
11163 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11164 Clear it when clearing windows_or_buffers_changed.
11165 (try_cursor_movement, redisplay_window, try_window_id)
11166 (try_window_reusing_current_matrix): Test cursor_type_changed
11167 along with windows_or_buffers_changed.
11168
11169 * window.h (cursor_type_changed): New variable.
11170
11171 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11172 not update_mode_lines, and always set it to 1.
11173
11174 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11175 if no frames needed redrawing.
11176
111772002-03-17 Kim F. Storm <storm@cua.dk>
11178
11179 The following changes add support for network server processes,
11180 datagram connections, and local (unix) sockets.
11181
11182 * process.h (struct Lisp_Process): New member log.
11183 Doc fix: Member command used to indicate stopped network process.
11184 Doc fix: Member childp contains plist for network process.
11185 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11186
11187 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11188 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11189 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11190 New variables.
11191 (NETCONN1_P): New macro.
11192 (DATAGRAM_SOCKETS): New conditional symbol.
11193 (datagram_address): New array.
11194 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11195 (status_message): Use concat3.
11196 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11197 for a stopped network process.
11198 (Fset_process_buffer): Update contact plist for network process.
11199 (Fset_process_filter): Ditto. Don't enable input for stopped
11200 network processes. Server must listen, even if filter is t.
11201 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11202 New functions.
11203 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11204 (Fprocess_contact): Added KEY argument. Handle datagrams.
11205 (list_processes_1): Optionally show only processes with the query
11206 on exit flag set. Dynamically adjust column widths. Omit tty
11207 column if not needed. Report stopped network processes.
11208 Identify server and datagram network processes.
11209 (Flist_processes): New optional arg `query-only'.
11210 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11211 (conv_lisp_to_sockaddr, set_socket_options)
11212 (network_process_featurep, unwind_request_sigio): New helper functions.
11213 (Fprocess_datagram_address, Fset_process_datagram_address):
11214 (Fset_network_process_options): New lisp functions.
11215 (Fopen_network_stream): Removed. Now defined in simple.el.
11216 (Fmake_network_process): New lisp function. Code is based on previous
11217 Fopen_network_stream, but heavily reworked with new property list based
11218 argument list, support for datagrams, server processes, and local
11219 sockets in addition to old client-only functionality.
11220 (server_accept_connection): New function.
11221 (wait_reading_process_input): Use it to handle incoming connects.
11222 Do not enable input on a new connection if process is stopped.
f63fd14e 11223 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
11224 (send_process): Handle datagram sockets.
11225 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11226 network process is indicated by setting command field to t .
11227 (Fprocess_send_eof): No-op if datagram connection.
11228 (Fstatus_notify): Don't read input for a stream server socket or a
11229 stopped network process.
11230 (init_process): Initialize datagram_address array.
11231 (syms_of_process): Intern and staticpro new variables, defsubr new
11232 functions.
11233
112342002-03-16 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11237 startup case.
11238
112392002-03-16 Richard M. Stallman <rms@gnu.org>
11240
11241 * xdisp.c (redisplay_internal, redisplay_windows):
11242 Use list_of_error to call internal_condition_case_1.
11243 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11244 so as to catch all errors with no possibility of debugger redisplay.
11245 (list_of_error): New variable.
11246 (syms_of_xdisp): Init and staticpro it.
11247
11248 * print.c (print_object): Delete `\ ' from printed rep of frame.
11249
112502002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11251
11252 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11253 until its implementation is fixed.
11254
112552002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11256
11257 * xfns.c (png_load): Remove unused variable `gamma_str'.
11258
112592002-03-14 Richard M. Stallman <rms@gnu.org>
11260
11261 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11262
112632002-03-14 Miles Bader <miles@gnu.org>
11264
11265 * intervals.c (adjust_for_invis_intang): New function.
11266 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11267 work for dealing with invisible+intangible regions. Do so before
11268 and after both forward and backward movements, to handle both
11269 front-sticky and rear-sticky cases.
11270 * textprop.c (text_property_stickiness): Function moved here from
11271 `editfns.c'.
11272 * intervals.h (text_property_stickiness): New declaration.
11273 * editfns.c (char_property_eq): Function removed.
11274 (text_property_stickiness): Function moved to `textprop.c'.
11275
112762002-03-13 Jason Rumney <jasonr@gnu.org>
11277
11278 * config.in: Add STRFTIME_NO_POSIX2.
11279
11280 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11281 and %OX when underlying strftime does not.
11282
112832002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11284
11285 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11286 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11287 line) to avoid annoying flicker.
11288 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11289 (XTread_socket): Mark it static.
11290
11291 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11292
112932002-03-13 Kim F. Storm <storm@cua.dk>
11294
11295 * puresize.h (BASE_PURESIZE): Increase to 775000.
11296
112972002-03-12 Juanma Barranquero <lektu@terra.es>
11298
11299 * editfns.c (syms_of_editfns): Fix typo.
11300
113012002-03-12 Gerd Moellmann <gerd@gnu.org>
11302
11303 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11304 Include termopt.h for interrupt_input.
11305
113062002-03-11 Andreas Schwab <schwab@suse.de>
11307
11308 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11309
113102002-03-11 Gerd Moellmann <gerd@gnu.org>
11311
11312 * xterm.c (note_mouse_movement): Put code for
11313 x_autoselect_window_p in #if 0.
11314
11315 * lread.c (Fload): Don't assume that message_with_string uses the
11316 string it is given like a C string.
11317
113182002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11319
11320 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11321
11322 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11323 x_session_have_connection.
11324 (x_initialize): Add call to x_session_initialize.
11325
11326 * termhooks.h (enum event_kind): Add save_session_event.
11327
11328 * keyboard.c: Add Emacs event save_session_event.
11329
11330 * emacs.c (main): Add call to syms_of_xsmfns.
11331
11332 * lisp.h: Declare syms_of_xsmfns as extern.
11333
11334 * config.in: Add HAVE_X_SM.
11335
11336 * Makefile.in (LIBXT): Add -lSM -lICE
11337 if HAVE_X_SM and not USE_X_TOOLKIT.
11338 (XOBJ): New file xsmfns.c added.
11339
11340 * xsmfns.c: New file for X session management.
11341
113422002-03-09 Jason Rumney <jasonr@gnu.org>
11343
11344 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11345 read-only when setting modified time.
11346
113472002-03-08 Gerd Moellmann <gerd@gnu.org>
11348
11349 * xdisp.c (move_it_vertically_backward): At the end of the function,
11350 when moving forward by lines, treat terminal frames specially.
11351
11352 * keyboard.c (echo_char): Make sure to add a separator between
11353 keys even if echo_dash hasn't been called.
11354
11355 * xdisp.c: Use new string macros.
11356 (update_echo_area): Pass number of bytes to message3 instead of
11357 number of chars.
11358 (set_message_1): Don't access a string's size_byte directly.
11359 (decode_mode_spec_coding): Use number of bytes of eoltype string
11360 instead number of chars.
11361
11362 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11363
113642002-03-08 Juanma Barranquero <lektu@terra.es>
11365
11366 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11367 24-bit.
11368
113692002-03-06 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11372
113732002-03-06 Gerd Moellmann <gerd@gnu.org>
11374
11375 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11376 (cancel_echoing, echo_length, echo_truncate): Changed to
11377 work with new kboard definition.
11378 (echo_now): Use message3_nolog instead of message2_nolog.
11379
11380 * alloc.c (mark_kboards): Mark echo_string.
11381
11382 * keyboard.h (ECHOBUFSIZE): Removed.
11383 (struct kboard): Member echoptr removed, member echobuf renamed
11384 to echo_string.
11385
11386 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11387 message3 instead of message2 to display the message using STRING's
11388 text properties.
11389
113902002-03-05 Andreas Schwab <schwab@suse.de>
11391
11392 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11393
113942002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11395
11396 * frame.c (default-frame-alist): Explain that setting it doesn't
11397 affect existing frames.
11398
113992002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11400
11401 * indent.c (skip_invisible): Fix my brain fart.
11402
11403 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11404
114052002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11406
11407 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11408 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11409 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11410 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11411 and variables to use EMACS_INT instead of just int.
11412
11413 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11414
114152002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11416
11417 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11418 environment, pass it down with corrected value.
11419
114202002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11421
11422 * lread.c (read_filtered_event): Do not call start_hourglass
11423 before returning.
11424
114252002-03-04 Juanma Barranquero <lektu@terra.es>
11426
11427 * w32term.c (x_display_and_set_cursor): Fix typo.
11428
114292002-03-03 Richard M. Stallman <rms@gnu.org>
11430
11431 * fileio.c (Fmake_temp_name): Doc fix.
11432
114332002-03-03 Gary Wong <gtw@gnu.org>
11434
11435 * termcap.c [!emacs]: Replace ospeed for building standalone
11436 libtermcap, for binary compatibility.
11437
11438 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11439
114402002-03-03 Richard M. Stallman <rms@gnu.org>
11441
11442 * xrdb.c (file_p): Rename arg `path' to `filename'.
11443
11444 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11445 only if it is an integer.
11446
11447 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11448 If png_get_sRGB gives an answer, call png_set_gamma
11449 using the default image gamma value.
11450
11451 * lread.c (read1): When reading from a file, default string to
11452 multibyte only if it has some multibyte characters.
11453
11454 * print.c (print_object): Output multibyte chars 128...255
11455 using \x even if ! print_escape_multibyte.
11456
11457 * xdisp.c (display_mode_element): Move the places where
11458 bytepos, charpos, this, and lisp_string are set.
11459 Use lisp_string to set bytepos.
11460
11461 * xdisp.c (redisplay_internal):
11462 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11463
11464 * xdisp.c (display_mode_element): Merge properties specified with
11465 :propertize onto those that come with the string.
11466
114672002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11468
11469 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11470 automatic-hscrolling. Users changed.
11471 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11472 Users changed.
11473 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11474
114752002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11476
11477 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11478
114792002-03-02 Kim F. Storm <storm@cua.dk>
11480
11481 * window.c (Fminibuffer_selected_window): New function.
11482 (syms_of_window): Defsubr it.
11483
114842002-03-01 Kim F. Storm <storm@cua.dk>
11485
11486 * window.h (struct window): New member phys_cursor_width.
11487
11488 * window.c (make_window, replace_window): Init phys_cursor_width.
11489
11490 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11491 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11492
11493 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11494 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11495
11496 * lisp.h (GCPRO6): New macro.
11497
11498 * process.c (Fopen_network_stream): Use GCPRO6.
11499
115002002-03-01 Kim F. Storm <storm@cua.dk>
11501
11502 * process.c (Qconnect, Qfailed): New variables.
11503 (syms_of_process): Intern and staticpro them.
11504 (Fprocess_status): Document connect and failed return values.
11505 [NON_BLOCKING_CONNECT]: New conditional.
11506 (connect_wait_mask, num_pending_connects): New variables.
11507 (status_message): Convert Qfailed status.
11508 (Fopen_network_stream): Added support for non-blocking connect.
11509 New optional args: filter, sentinel, non_blocking. Doc updated.
11510 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11511 (deactivate_process): Handle pending non-blocking connect.
11512 (wait_reading_process_input): Poll for status of non-blocking
11513 connects. Exec sentinel directly when connect succeeds.
11514 (status_notify): Don't read process output if not yet connected.
11515
115162002-02-28 Kim F. Storm <storm@cua.dk>
11517
11518 * window.c: (minibuf_selected_window): Renamed from
11519 Vminibuf_selected_window. Users changed.
11520 (syms_of_window): Staticpro it.
11521
115222002-02-26 Kim F. Storm <storm@cua.dk>
11523
11524 The following changes add a new Vminibuf_selected_window variable
11525 which is similar to Vminibuf_scroll_window, but which is only set
11526 on entry to the minibuffer (from a non-minibuffer window):
11527
11528 * window.c: (Vminibuf_selected_window): New variable.
11529 (struct save_window_data): New member minibuf_selected_window.
11530 (Fset_window_configuration): Restore Vminibuf_selected_window.
11531 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11532 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11533 (compare_window_configurations): Compare minibuf_selected_window.
11534
11535 * window.h: (Vminibuf_selected_window): Declare extern.
11536
11537 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11538 entry to minibuffer or on entry from a non-minibuffer window.
11539
11540 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11541 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11542
11543 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11544 instead of Vminibuf_scroll_window when deciding in which window
11545 the region should be highlighted. Consequently, the region remains
11546 highlighteded even when a completion buffer is also displayed.
11547
115482002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11549
11550 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11551
11552 * xselect.c (Qcompound_text_with_extensions): Renamed from
11553 Qcompound_text_no_extensions.
11554 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11555
115562002-02-26 Juanma Barranquero <lektu@terra.es>
11557
11558 * w32proc.c (syms_of_ntproc): Doc fix.
11559
115602002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11561
11562 * intervals.h: Include "dispextern.h" unconditionally.
11563
115642002-02-24 Jason Rumney <jasonr@gnu.org>
11565
11566 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11567 and disp-table.elc.
11568 (lisp): Add emacs-lisp/backquote.elc.
11569
115702002-02-24 Kim F. Storm <storm@cua.dk>
11571
11572 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11573 The validation of the event type was too strict as it didn't
11574 allow string events; buffer names are used in bindings for
11575 menu-bar-select-buffer (see `menu-bar-update-buffers').
11576
115772002-02-23 Kim F. Storm <storm@cua.dk>
11578
11579 The following changes rework my patch of 2002-02-06 which
11580 added command remapping by entering the commands directly into
11581 the keymaps. Now, command remapping uses an explicit `remap'
11582 prefix in the keymaps, i.e. [remap COMMAND].
11583
11584 * keymap.c (Qremap, remap_command_vector): New variables.
11585 (is_command_symbol): Removed function.
11586 (Fdefine_key): No longer accept a symbol for KEY.
11587 Added validation of [remap COMMAND] argument for KEY.
11588 The DEF is no longer required to be a symbol when remapping a command.
11589 (Fremap_command): New function to remap command through keymaps.
11590 (Flookup_key): Perform command remapping initiated by
11591 Fremap_command directly for speed.
11592 (Fkey_binding): Use Fremap_command for command remapping.
11593 (where_is_internal): Handle new command remapping representation.
11594 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
11595 staticpro them. Defsubr Fremap_command.
11596
11597 * keymap.h (Fremap_command): Declare extern.
11598 (is_command_symbol): Remove extern.
11599
11600 * keyboard.c (command_loop_1): Use Fremap_command for command
11601 remapping; now try command remapping for all symbols.
11602
116032002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11604
11605 * coding.h (run_pre_post_conversion_on_str): Add prototype.
11606
116072002-02-23 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
11610 on the string before encoding it.
11611 (Fw32_get_clipboard_data): Run post-read-conversion on the string
11612 after decoding it.
11613
11614 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
11615
116162002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11617
11618 * w32term.c (enter_timestamp): Remove unused static variable to
11619 prevent warning.
11620
11621 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
11622
116232002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11624
11625 * w16select.c (Fw16_get_clipboard_data): Fix last change.
11626
11627 * xselect.c (selection_data_to_lisp_data): Fix last change.
11628
116292002-02-22 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32term.h (struct w32_output): New member menu_command_in_progress.
11632
11633 * w32menu.c (menubar_selection_callback): Free the menu and
11634 clear the menu_command_in_progress flag.
11635
11636 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
11637 (menu_free_timer): New variable.
11638 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
11639 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
11640 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
11641 menu command is in progress.
11642 <WM_COMMAND>: Set the menu_command_in_progress flag.
11643 Kill any menu_free_timer that is running.
11644
11645 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
11646 Call ExtTextOutA rather than ExtTextOut.
11647
116482002-02-22 Eli Zaretskii <eliz@gnu.org>
11649
11650 * puresize.h (BASE_PURESIZE): Increase to 755000.
11651
116522002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11653
11654 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
11655 on the string before encoding it.
11656 (Fw16_get_clipboard_data): Run post-read-conversion on the string
11657 after decoding it.
11658
116592002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11660
11661 Support for ICCCM Extended Segments in X selections:
11662
11663 * xselect.c <Qcompound_text_no_extensions>: New variable.
11664 (syms_of_xselect): Intern and staticpro it.
11665 (selection_data_to_lisp_data): Run post-read-conversion on decoded
11666 selection text.
11667 (lisp_data_to_selection_data): If next-selection-coding-system is
11668 compound-text-no-extensions, set the type of selection to be
11669 compound-text.
11670
11671 * xterm.h (x_encode_text): Update prototype.
11672
11673 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
11674 callers changed. If SELECTIONP is non-zero, run the
11675 pre-write-conversion function before encoding the selection text.
11676
116772002-02-21 Kim F. Storm <storm@cua.dk>
11678
11679 * frame.c (syms_of_frame): Change mouse-highlight default to t.
11680
11681 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
11682 Correct composing of language-change event.
11683
116842002-02-20 Kim F. Storm <storm@cua.dk>
11685
11686 * keyboard.c (menu_bar_items): Don't include keymap or local-map
11687 bindings at PT when building menu (the menu is not updated often
11688 enough for this to work reliable).
11689 (tool_bar_items): Likewise.
11690 (current_active_maps): Removed unused (and buggy) function.
11691
116922002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11693
11694 * xfns.c (gif_load): Use correct width and height for GIF images.
11695
116962002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
11697
11698 * floatfns.c (Fatan): Accept an optional second arg and call
11699 atan2 if passed 2 args.
11700
117012002-02-18 Jason Rumney <jasonr@gnu.org>
11702
11703 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
11704
117052002-02-17 Jason Rumney <jasonr@gnu.org>
11706
11707 * w32term.c (x_autoselect_window_p): New variable.
11708 (syms_of_w32term): DEFVAR_BOOL and initialize it.
11709 (note_mouse_movement): Use it.
11710
11711 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
11712
11713 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
11714
11715 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11716 New variables.
11717 (syms_of_w32fns): Intern and staticpro them.
11718 (x_frame_parms) <"fullscreen">: New parameter.
11719 (x_fullscreen_move, x_set_fullscreen): New functions.
11720 (x_set_frame_parameters): Support Qfullscreen.
11721 (x_real_positions): Save x/y_pixels_diff frame params.
11722 (x_figure_window_size): Support full-screen frames.
11723 (Fx_create_frame): Default the fullscreen parameter.
11724
11725 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
11726 (x_fullscreen_adjust): New functions.
11727 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
11728 fullscreen. Call x_check_fullscreen_move, and set the
11729 want_fullscreen member of output_data.w32
11730 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
11731
11732 * w32term.h: New enum for FULLSCREEN_* constants.
11733 (struct w32_output): New members want_fullscreen, x_pixels_diff,
11734 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
11735 (x-fullscreen-adjust): New prototype.
11736
117372002-02-17 Kim F. Storm <storm@cua.dk>
11738
11739 * frame.c: (Vmouse_highlight): New variable.
11740 (syms_of_frame): DEFVAR_LISP it.
11741
11742 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 11743
048addec 11744 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 11745
048addec
JD
11746 * xterm.c (disable_mouse_highlight): Removed variable.
11747 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11748 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11749 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
11750 and on after keyboard input.
11751 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 11752
048addec 11753 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 11754
048addec
JD
11755 * msdos.c (disable_mouse_highlight): Removed variable.
11756 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11757 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11758 (internal_terminal_init): Initialize mouse_face_hidden.
11759 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
11760 and on after keyboard input.
4f1b1854 11761
048addec 11762 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 11763
048addec
JD
11764 * w32term.c (disable_mouse_highlight): Removed variable.
11765 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
11766 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11767 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
11768 and on after keyboard input.
11769 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 11770
048addec 117712002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 11772
048addec
JD
11773 * msdos.c (last_mouse_window): New variable.
11774 (dos_rawgetc): Fix last change--if the mouse is in the same window
11775 as recorded in last_mouse_window, don't select this window.
5cb6905d 11776
048addec 11777 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 11778
048addec
JD
11779 * msdos.c (x_autoselect_window_p): New variable.
11780 (syms_of_msdos): Defvar it.
11781 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
11782 which the last mouse movement occured, unless it is already selected.
437dfb9f 11783
048addec
JD
11784 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
11785 New variables.
11786 (syms_of_xdisp): DEVFAR them.
11787 (hscroll_window_tree): Use automatic_hscroll_margin and
11788 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 11789
048addec 117902002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 11791
048addec
JD
11792 * xterm.c (x-autoselect-window): New variable.
11793 (note_mouse_movement): Use it.
9f696a00 11794
048addec 11795 * keyboard.c: Do not include "systime.h" twice.
d57966d7 11796
048addec 117972002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 11798
048addec 11799 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 11800
048addec 11801 * alloc.c (NSTATICS): Increase to 1280.
74779f52 11802
048addec 118032002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 11804
048addec 11805 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 11806
048addec
JD
11807 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
11808 (Vx_super_keysym): New variables.
11809 (syms_of_xterm): DEFVAR_LISP them.
11810 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
11811 variables to determine which keys to use for the various modifiers.
a474d59c 11812
048addec 118132002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 11814
048addec
JD
11815 * window.c: (Vmode_line_in_non_selected_windows): Removed.
11816 (mode_line_in_non_selected_windows): New variable.
11817 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 11818
048addec
JD
11819 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
11820 Use mode_line_in_non_selected_windows.
11821 (mode_line_in_non_selected_windows): Declare extern.
11822 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 11823
048addec 118242002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 11825
048addec
JD
11826 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
11827 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
11828 (Fclear_this_command_keys): Doc fixes.
2d10309f 11829
048addec
JD
11830 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
11831 (update_face_from_frame_parameter): Increment face_change_count
11832 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 11833
048addec
JD
11834 * xdisp.c (QCpropertize): New variable.
11835 (mode_line_proptrans_alist): New variable.
11836 (display_mode_element): New arg PROPS; all calls changed.
11837 Implement this, for strings.
11838 Handle literal output of strings by sharing the
11839 main-line code for strings, using local var `literal'.
11840 Handle :propertize feature.
11841 (syms_of_xdisp): Initialze and staticpro QCpropertize and
11842 mode_line_proptrans_alist.
0b1e6b54 11843
048addec 118442002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 11845
048addec
JD
11846 * window.c: (Vmode_line_in_non_selected_windows): New variable.
11847 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 11848
048addec
JD
11849 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
11850 (CURRENT_MODE_LINE_FACE_ID): Use it.
11851 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 11852
048addec
JD
11853 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
11854 to get mode line face.
e17144de 11855
048addec 118562002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11857
048addec
JD
11858 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
11859 variables; cus-start.el doesn't need them anymore.
44368f8f 11860
048addec 118612002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 11862
048addec
JD
11863 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
11864 reduction. This fixes a display problem where stray newlines were
11865 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 11866
048addec 118672002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11868
048addec 11869 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 11870
048addec 11871 * xdisp.c (display_mode_lines): Fix last change.
453c5510 11872
048addec 118732002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 11874
048addec
JD
11875 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
11876 match each other.
11877 (w32_load_system_font): Prevent Cleartype fonts from loading.
11878 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 11879
048addec 118802002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 11881
048addec
JD
11882 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
11883 (CURRENT_MODE_LINE_HEIGHT): Use it.
11884 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11885
048addec
JD
11886 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
11887 (pos_visible_p, handle_face_prop): Likewise.
11888 (display_mode_lines): Likewise, but for the real selected window.
11889 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11890
048addec
JD
11891 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
11892 in non-selected windows.
11893 (realize_basic_faces): Realize it.
11894 (syms_of_term): Intern and staticpro it.
308dd672 11895
048addec 118962002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 11897
048addec
JD
11898 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
11899 Changed mail addresses to emacs-devel@gnu.org.
308dd672 11900
048addec 119012002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 11902
048addec
JD
11903 * fileio.c (Fsubstitute_in_file_name): If the file name includes
11904 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 11905
048addec 11906 * floatfns.c (Fround): Doc fix.
3c1e6b46 11907
048addec 119082002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 11909
048addec 11910 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 11911
048addec 119122002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 11913
048addec 11914 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 11915
048addec 119162002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 11917
048addec
JD
11918 * keymap.c (where_is_internal): Only check whether definition is
11919 remapped if it fulfills is_command_symbol.
0065bb74 11920
048addec 119212002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 11922
048addec 11923 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 11924
048addec 11925 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 11926
048addec 119272002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 11928
048addec
JD
11929 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
11930 defining command remapping. Doc updated.
11931 (Flookup_key): Remap command through keymap if KEY is a symbol.
11932 (is_command_symbol): New function.
11933 (Fkey_binding): Use it. New optional argument NO-REMAP.
11934 Doc updated. Callers changed. Perform command remapping via
11935 recursive call unless that arg is non-nil.
11936 (where_is_internal): New argument no_remap. Callers changed.
11937 Call recursively to find original key bindings for a remapped
11938 comand unless that arg is non-nil.
11939 (Fwhere_is_internal): New optional argument NO-REMAP.
11940 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 11941
048addec
JD
11942 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
11943 (is_command_symbol): Added prototype.
0d8466cc 11944
048addec
JD
11945 * keyboard.c (Vthis_original_command): New variable.
11946 (syms_of_keyboard): DEFVAR_LISP it.
11947 (command_loop_1): Set it, and perform command remapping.
15fff01d 11948
048addec 119492002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 11950
048addec 11951 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 11952
048addec 119532002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 11954
048addec 11955 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 11956
048addec 119572002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 11958
048addec 11959 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 11960
048addec 119612002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 11962
048addec 11963 * filelock.c (S_ISLNK): Define if not defined.
3a232704 11964
048addec 119652002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 11966
048addec 11967 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 11968
048addec
JD
11969 * lread.c (read1): Redesign strategy for force_multibyte and
11970 force_singlebyte. Now is_multibyte records whether read_buffer
11971 is multibyte. Encountering any multibyte character makes it so.
4e02881b 11972
048addec 119732002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 11974
048addec
JD
11975 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
11976 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 11977
048addec 119782002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 11979
048addec
JD
11980 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
11981 latter never being defined on GNU/Linux.
749f499f 11982
048addec 119832002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 11984
048addec
JD
11985 * xfaces.c (realize_default_face): Don't set the weight and slant of
11986 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 11987
048addec 119882002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 11989
048addec
JD
11990 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
11991 Call cancel_hourglass unconditionally.
d0fd26dd 11992
048addec
JD
11993 * eval.c (Fsignal): Remove duplicated declaration of
11994 the variable `display_hourglass_p'.
b4c45162 11995
048addec 119962002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 11997
048addec 11998 * editfns.c (region_limit): Nicer error message.
c95eaa61 11999
048addec
JD
12000 * coding.c (decode_composition_emacs_mule):
12001 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12002
048addec
JD
12003 * callint.c (check_mark): New arg to specify clearer error message.
12004 Callers changed.
c95eaa61 12005
048addec 120062002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12007
048addec 12008 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12009
048addec 120102002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12011
048addec
JD
12012 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12013 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12014 Fix doc-strings.
c95eaa61 12015
048addec 120162002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12017
048addec 12018 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12019
048addec
JD
12020 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12021 and scroll_up_aggressively.
c95eaa61 12022
048addec 120232002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12024
048addec 12025 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12026
048addec 120272002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12028
048addec
JD
12029 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12030 (Fprevious_property_change, Fprevious_single_property_change):
12031 Stay within the narrowed-buffer boundaries.
e2c3786a 12032
048addec 120332002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12034
048addec
JD
12035 * term.c (Ftty_display_color_cells): New function.
12036 (syms_of_term): Defsubr it.
12037 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12038 argument name to DISPLAY. Doc fix.
bf794306 12039
048addec
JD
12040 * dispextern.h: Add prototype for set_tty_color_mode and
12041 tty_setup_colors.
bf794306 12042
048addec 120432002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12044
048addec
JD
12045 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12046 If region left to draw is not what was expected, mark the frame as
12047 garbaged.
62582985 12048
048addec
JD
12049 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12050 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12051
048addec 120522002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12053
048addec
JD
12054 * w32term.c (x_update_window_begin): Only hide caret if
12055 w32_use_visible_system_caret is set.
12056 (x_update_window_end): Only show caret if
12057 w32_use_visible_system_caret is set.
12058 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12059
048addec 12060 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12061
048addec 120622002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12063
048addec
JD
12064 * unexelf.c (unexec): Define n so as to cause compilation error
12065 for the code where people have often written n instead of nn.
1e9a6186 12066
048addec 12067 * .gdbinit (hookpost-run): Defined.
1e9a6186 12068
048addec 120692002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12070
048addec 12071 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12072
048addec 120732002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12074
048addec
JD
12075 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12076 if fullscreen is being set.
7c75be36 12077
048addec 120782002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12079
048addec
JD
12080 * minibuf.c (Fminibuffer_contents)
12081 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12082 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12083
048addec 120842002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12085
048addec 12086 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12087
048addec 120882002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12089
048addec
JD
12090 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12091 height before comparison.
12092 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12093
048addec 120942002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12095
048addec
JD
12096 * w32term.c (w32_system_caret_width): Remove.
12097 (w32_use_visible_system_caret): New user flag.
12098 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12099 Windows reports a screen reader running.
12100 (x_update_window_begin): Hide the system caret.
12101 (x_update_window_end): Show the system caret.
12102 (x_display_and_set_cursor): Don't draw a cursor when
12103 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12104
048addec
JD
12105 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12106 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12107 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12108 the user requests it. Use system default width when creating.
12109 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12110
048addec
JD
12111 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12112 New window messages.
905cc05a 12113
048addec 121142002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12115
048addec 12116 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12117
048addec 121182002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12119
048addec 12120 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12121
048addec 121222002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12123
048addec 12124 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12125
048addec 121262002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12127
048addec
JD
12128 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12129 that Windows returns. If a double check fails, try to guess how
12130 ExtTextOut is going to act.
4d0fa4f3 12131
048addec
JD
12132 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12133 in place of stricmp.
12134 (w32_list_synthesized_fonts): Removed.
12135 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12136 (struct enumfont_t): New element; list.
12137 (enum_font_cb2): List all style and charset variations of a font.
12138 (Fw32_select_font): New optional argument; include_proportional.
12139 Exclude vertical fonts. Exclude proportional fonts unless
12140 include_proportional is non-nil.
12141 (w32_enable_synthesized_fonts): Change to a boolean.
12142 (Fw32_send_sys_command): Doc fix.
493faf20 12143
048addec 121442002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 12145
048addec
JD
12146 * dispnew.c (update_frame): Move the variable `tem' to the block
12147 where it is used.
4971e491 12148
048addec 121492002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 12150
048addec
JD
12151 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12152 call to face-set-after-frame-default.
4971e491 12153
048addec 121542002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 12155
048addec
JD
12156 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12157 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 12158
048addec 121592002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 12160
048addec
JD
12161 * window.c (enlarge_window): When exceeding size of parent,
12162 directly delete all the siblings instead of trying to resize it.
201c831a 12163
048addec 121642002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 12165
048addec 12166 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 12167
048addec 121682002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 12169
048addec 12170 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 12171
048addec 121722002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 12173
048addec
JD
12174 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12175 is invisible. This can happen if cursor is on top line of a
12176 window, and we switch to a buffer with a header line.
d77fbc16 12177
048addec 12178 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 12179
048addec 121802002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 12181
048addec
JD
12182 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12183 `dont_resize' only when used.
61e3b944 12184
048addec 12185 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 12186
048addec 121872002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 12188
048addec
JD
12189 * xdisp.c (display_mode_element): When computing charpos, depend
12190 on multibyteness of elt, not the text in field.
8af01033 12191
048addec 121922002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 12193
048addec
JD
12194 * buffer.c (Fkill_all_local_variables):
12195 Increment `update_mode_lines' only once.
7363986a 12196
048addec 121972002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 12198
048addec
JD
12199 * lisp.h (adjust_after_replace_noundo)
12200 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 12201
048addec 12202 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 12203
048addec 122042002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 12205
048addec
JD
12206 Support for the --color command-line argument and tty-color-mode
12207 frame parameter:
f1a85b89 12208
048addec
JD
12209 * term.c (tty_default_color_capabilities, tty_setup_colors)
12210 (set_tty_color_mode): New functions.
12211 (term_init): Call tty_default_color_capabilities.
12212 (Qtty_color_mode_alist): New variable.
12213 (syms_of_term): Intern and staticpro it.
f1a85b89 12214
048addec
JD
12215 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12216 frames.
12217 (do_switch_frame): For termcap frames, switch the tty
12218 color mode as specified by the frame's parameters.
12219 (Qtty_color_mode): New variable.
12220 (syms_of_frame): Intern and staticpro it.
3a62677f 12221
048addec
JD
12222 * emacs.c (USAGE2): Add the --color option.
12223 (standard_args): Ditto.
72244db2 12224
048addec
JD
122252002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12226
12227 * xterm.h (struct x_output): New members want_fullscreen,
12228 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12229 y_pixels_outer_diff.
12230 New enum for FULLSCREEN_* constants.
12231 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12232 is NULL.
12233 (x_fullscreen_adjust): Add prototype.
3a62677f 12234
048addec
JD
12235 * emacs.c (USAGE2): Add the new full-screen arguments.
12236 (standard_args): Ditto.
3a62677f 12237
048addec
JD
12238 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12239 New variables.
12240 (syms_of_xfns): Intern and staticpro them.
12241 (x_frame_parms) <"fullscreen">: New parameter.
12242 (x_fullscreen_move, x_set_fullscreen): New functions.
12243 (x_set_frame_parameters): Support for Qfullscreen.
12244 (x_real_positions): More accurate computation of the frame position.
12245 (x_figure_window_size): Support full-screen frames.
12246 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 12247
048addec
JD
12248 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12249 (XTread_socket) <Expose>: Call x_check_fullscreen.
12250 <ConfigureNotify>: Don't resize to fullscreen.
12251 Call x_check_fullscreen_move, and set the want_fullscreen member of
12252 output_data.x.
3a62677f 12253
048addec 122542002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 12255
048addec
JD
12256 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12257 for mice with more than 3 buttons.
b8523839 12258
048addec
JD
12259 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12260 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 12261
048addec
JD
12262 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12263 (syms_of_w32fns): DEFVAR_BOOL it.
12264 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 12265
048addec 122662002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 12267
048addec 12268 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 12269
048addec 122702002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 12271
048addec 12272 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 12273
048addec 122742002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 12275
048addec
JD
12276 * .gdbinit (xbuffer): Remove address operator since data is now a
12277 pointer.
c93674bb 12278
048addec 122792002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 12280
048addec 12281 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 12282
048addec 12283 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 12284
048addec 122852002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 12286
048addec
JD
12287 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12288 when checking for multiple frames.
91175673 12289
048addec 122902002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 12291
048addec
JD
12292 * window.c (delete_window): Rewrite the code for changing the
12293 selected window to handle the case where WINDOW is not a leaf.
91175673 12294
048addec 122952002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 12296
048addec
JD
12297 * process.c (send_process): Set src_multibyte to 1 after the call
12298 top setup_coding_system, not before the call.
e0fead5d 12299
048addec 123002002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 12301
048addec
JD
12302 * xmenu.c (set_frame_menubar, xmenu_show):
12303 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 12304
048addec
JD
12305 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12306 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 12307
048addec 123082002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 12309
048addec 12310 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 12311
048addec 12312 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 12313
048addec 12314 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 12315
048addec 123162002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 12317
048addec
JD
12318 * insdel.c (make_gap_larger): Make sure buffer size does not
12319 overflow range of int.
62854fe2 12320
048addec 123212002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 12322
048addec
JD
12323 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12324 OVERLAPS_P.
656f46bb 12325
048addec 12326 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 12327
048addec
JD
12328 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12329 to the left or to the right of the pointer, put it against
12330 the left screen edge.
12331 (x_frame_parms): Add missing braces around initializer.
036e218d 12332
048addec
JD
12333 * w32term.c (x_setup_relief_colors): Don't compute an image's
12334 background color if it doesn't have a Pixmap.
12335 (notice_overwritten_cursor): Don't depend on
12336 output_cursor and updated_area. Compare pixel coordinates with
12337 window's cursor pixel coordinates.
12338 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12339 Call notice_overwritten_cursor with new arg list.
12340 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12341 unconditionally.
12342 (x_draw_image_relief): Use predefined macro instead of
12343 constant when the value of `tool_bar_button_relief' is negative.
036e218d 12344
048addec 12345 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 12346
048addec 123472002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 12348
048addec 12349 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 12350
048addec 123512002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 12352
048addec
JD
12353 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12354 (Fkey_binding): Try the `keymap' property map first.
12355 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12356 minor mode bindings.
90647b07 12357
048addec 123582002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 12359
048addec 12360 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 12361
048addec 123622002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 12363
048addec
JD
12364 * keyboard.c (read_key_sequence): Handle the keymap property
12365 before minor mode maps.
9fbc32aa 12366
048addec
JD
12367 * editfns.c (Fformat): Update thissize from field_width
12368 based on the actual width, in the string case.
036e218d 12369
048addec 123702002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 12371
048addec
JD
12372 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12373 when used as truth value to prevent gcc warnings.
9fbc32aa 12374
048addec
JD
12375 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12376 * w32proc.c: Include <config.h>.
9fbc32aa 12377
048addec 123782002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 12379
048addec
JD
12380 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12381 not EMACS_INT, to make them compatible with DEFVAR_INT.
12382 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 12383
048addec 123842002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12385
048addec
JD
12386 * print.c (print_object): Test print_escape_nonascii only for
12387 unibyte strings.
12388 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12389 when outputting to a multibyte buffer.
9fbc32aa 12390
048addec 123912001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12392
048addec
JD
12393 * print.c (print_object): In multibyte string, use hex escapes.
12394 Use octal only for unibyte strings.
12395 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 12396
048addec
JD
12397 * lread.c (read_escape): New arg BYTEREP for reporting whether
12398 escape forces unibyte or multibyte.
12399 (read1): When reading a string, take note of that info.
0142178a 12400
048addec 124012001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 12402
048addec
JD
12403 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12404 comparison to test lisp value returned by Fget.
d4824a5d 12405
048addec 124062001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 12407
048addec 12408 * lisp.h (max_specpdl_size): Add declaration.
b1356234 12409
048addec 12410 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 12411
048addec
JD
12412 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12413 Handle modifier bits. Correct typo in error message.
99e380ee 12414
048addec 124152001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 12416
048addec
JD
12417 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12418 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12419 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12420 Update calls to Fdefine_abbrev.
12421 (write_abbrev): Update for changed data format.
12422 Don't list "system" abbrevs.
12423 (Fexpand_abbrev): Update use count with new data format.
12424 (describe_abbrev): Update for changed data format.
12425 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 12426
048addec 12427 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 12428
048addec 12429 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 12430
048addec
JD
12431 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12432 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 12433
048addec
JD
12434 * keymap.c (Flookup_key): Error message if key has wrong data type.
12435 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12436 (exclude_key): New variable.
59a86c99 12437
048addec 124382001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 12439
048addec
JD
12440 * xterm.c (x_setup_relief_colors): Don't compute an image's
12441 background color if it doesn't have a Pixmap.
eb77a5f4 12442
048addec
JD
12443 * xterm.c (notice_overwritten_cursor): Don't depend on
12444 output_cursor and updated_area. Compare pixel coordinates with
12445 window's cursor pixel coordinates.
12446 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12447 Call notice_overwritten_cursor with new arg list.
12448 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12449 unconditionally.
eb77a5f4 12450
048addec
JD
12451 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12452 height of the cursor line to the amount to scroll.
eb77a5f4 12453
048addec 124542001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 12455
048addec
JD
12456 * intervals.c (set_point_both): The position after an invisible,
12457 intangible character is not an acceptable stopping point.
bb313871 12458
048addec 124592001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 12460
048addec
JD
12461 * window.c (enlarge_window): In new preserve_before code, convert
12462 CURBEG from lisp object to integer before doing arithmetic.
6052529b 12463
048addec 124642001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 12465
048addec 12466 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 12467
048addec 124682001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 12469
048addec
JD
12470 * keyboard.c (record_char): Ignore duplicate help-echo events only
12471 separated by mouse-movement. When tracking mouse, only record
12472 first and last mouse-movement event in same window.
12473 Don't record mouse-movement events in keyboard macros.
3ce081f5 12474
048addec 124752001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 12476
048addec
JD
12477 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12478 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 12479
048addec
JD
12480 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12481 instead of Fstring_as_unibyte.
9fabb2f5 12482
048addec 124832001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 12484
048addec 12485 The following changes remove mocklisp support:
9fabb2f5 12486
048addec 12487 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 12488
048addec
JD
12489 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12490 `Qmocklisp' and `Qmocklisp_arguments'.
12491 Remove prototype of syms_of_mocklisp.
2fa0eedf 12492
048addec 12493 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 12494
048addec
JD
12495 * callint.c: Do not include mocklisp.h.
12496 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 12497
048addec
JD
12498 * eval.c: Remove variables `Qmocklisp_arguments',
12499 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12500 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12501 Do not test for mocklisp case.
12502 (Fwhile): Remove unused variable `tem'.
12503 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 12504
048addec 12505 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 12506
048addec 12507 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 12508
048addec 12509 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 12510
048addec 125112001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 12512
048addec
JD
12513 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12514 to the left or to the right of the pointer, put it against
12515 the left screen edge.
6108b49c 12516
048addec 125172001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 12518
048addec
JD
12519 * Makefile.in (distclean): Remove .gdbinit if we are building
12520 outside the source tree.
5eea19a4 12521
048addec 125222001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 12523
048addec 12524 * w32.c (emacs_root_dir): New function.
5eea19a4 12525
048addec 12526 * msdos.c (emacs_root_dir): New function.
5eea19a4 12527
048addec
JD
12528 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12529 of the current drive as the fallback for default_directory.
438e57dd 12530
048addec
JD
12531 * dired.c (file_name_completion): Run the elements of
12532 completion-ignored-extensions through ENCODE_FILE.
438e57dd 12533
048addec
JD
12534 * lisp.h (scmp): Remove prototype, since it's now a static
12535 function private to dired.c.
c88e5347 12536
048addec 125372001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 12538
048addec
JD
12539 * dired.c (scmp): Function moved from minibuf.c.
12540 Delete multibyte handling--used only on encoded strings.
59ce1461 12541
048addec 12542 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 12543
048addec 12544 * fns.c (merge): Add QUIT call.
59ce1461 12545
048addec 125462001-12-18 Dave Love <fx@gnu.org>
8727d588 12547
048addec
JD
12548 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12549 language/georgian.el.
8727d588 12550
048addec 125512001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 12552
048addec
JD
12553 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12554 lisp/Makefile.in:DONTCOMPILE.
cc63037e 12555
048addec 125562001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 12557
048addec
JD
12558 * xdisp.c (window_box_height): Do not return negative values.
12559 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 12560
048addec 12561 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 12562
048addec 12563 * term.c (keys): Likewise.
deece6f5 12564
048addec 12565 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 12566
048addec 125672001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 12568
048addec
JD
12569 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12570 patch (COMPOSING_P, not COMPOSING).
28ff4293 12571
048addec 125722001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 12573
048addec 12574 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 12575
048addec
JD
12576 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12577 before calling decode_coding.
9b46de40 12578
048addec 12579 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 12580
048addec
JD
12581 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12582 instead of only for COMPOSITION_DISABLED.
9b46de40 12583
048addec 125842001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 12585
048addec 12586 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 12587
048addec 12588 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 12589
048addec
JD
12590 * buffer.h (struct buffer): New field `display_error_modiff'.
12591 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 12592
048addec 12593 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 12594
048addec
JD
12595 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
12596 Call redisplay_window, but not if display_error_modiff field says no.
12597 (redisplay_window_error): New function.
12598 (displayed_buffer): New variable.
12599 (redisplay_internal, redisplay_windows): Call the new functions
12600 instead of redisplay_window directly.
2cd23960 12601
048addec 126022001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 12603
048addec 12604 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 12605
048addec 126062001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 12607
048addec 12608 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 12609 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 12610 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 12611
048addec 126122001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 12613
048addec
JD
12614 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
12615 parameter have a numeric value all the time.
f6fa0866 12616
048addec 12617 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 12618
048addec 126192001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 12620
048addec 12621 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 12622
048addec
JD
12623 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
12624 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 12625
048addec 126262001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 12627
048addec
JD
12628 * xdisp.c (move_it_vertically_backward): Change heuristic
12629 for the case that we didn't move far enough initially.
91c153e2 12630
048addec
JD
12631 * window.c (Frecenter): Simplify computation in the case of window
12632 system frames and ARG < 0; use window_box_height.
65b7d3e7 12633
048addec 126342001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 12635
048addec
JD
12636 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
12637 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 12638
048addec 126392001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 12640
048addec
JD
12641 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
12642 arg is negative.
be676094 12643
048addec 126442001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 12645
048addec
JD
12646 * m/hp800.h: Split the __hpux conditional into the parts
12647 that are right for GNU/Linux too and the parts that are not.
12648 Use the former if GNU_LINUX.
12649 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 12650
048addec 12651 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 12652
048addec 126532001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 12654
048addec
JD
12655 * macros.c, msdos.c, w16select.c: Change doc-string comments to
12656 `new style' [w/`doc:' keyword].
032a857d 12657
048addec 126582001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 12659
048addec
JD
12660 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
12661 before using.
b6270150 12662
048addec 126632001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 12664
048addec
JD
12665 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
12666 keyword].
98cbb9fa 12667
048addec 126682001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 12669
048addec 12670 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 12671
048addec 12672 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 12673
048addec 126742001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 12675
048addec
JD
12676 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
12677 Add comment to explain where the struct came from.
12678 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
12679 (add_menu_item): Process pop-up menus first to avoid memory leak.
12680 (add_menu_item, w32_menu_display_help): Use `help' field as
12681 Lisp_Object.
12682 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 12683
048addec 126842001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 12685
048addec 12686 * COPYING: Moved back.
fa336b91 12687
048addec
JD
12688 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
12689 Add parentheses around && within ||.
077907d4 12690
048addec 12691 * indent.c (compute_motion): Likewise.
aa2af83a 12692
048addec 12693 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 12694
048addec
JD
12695 * coding.c (setup_coding_system, shrink_encoding_region)
12696 (Fdecode_sjis_char): Likewise.
60a653f1 12697
048addec 126982001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 12699
048addec
JD
12700 * xdisp.c (display_mode_element): Don't read past end of string if
12701 it ends with '%'.
60a653f1 12702
048addec
JD
12703 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
12704 can hold.
60a653f1 12705
048addec
JD
12706 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
12707 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
12708 type changed to Lisp_Object.
12709 (syms_of_data): DEFVAR_LISP them.
60a653f1 12710
048addec 127112001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 12712
048addec
JD
12713 * callproc.c (init_callproc): Set Vdata_directory based on the source
12714 location whenever Emacs was run uninstalled.
60a653f1 12715
048addec 127162001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 12717
048addec
JD
12718 * config.in (HAVE_WORKING_VFORK): New #undefs.
12719 * process.c (create_process):
12720 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
12721 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
12722 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
12723 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
12724 * m/intel386.h (HAVE_VFORK): Likewise.
12725 * m/mips-siemens.h (HAVE_VFORK): Likewise.
12726 * m/mips.h (HAVE_VFORK): Likewise.
12727 * s/freebsd.h (vfork): Remove #define.
12728 * s/lynxos.h (HAVE_VFORK): Remove #undef.
12729 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 12730
048addec 127312001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 12732
048addec
JD
12733 * s/hpux10.h (random): Add undef.
12734 (HAVE_RANDOM): Define it just once.
60a653f1 12735
048addec 127362001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12737
048addec 12738 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 12739
048addec 127402001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12741
048addec
JD
12742 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
12743 scroll bars of the frame before deleting the frame itself. If the
12744 frame has a widget, delete the frame with XtDestroyWidget, and do
12745 not call XDestroyWindow before that.
60a653f1 12746
048addec 127472001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 12748
048addec 12749 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12750
048addec 12751 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12752
048addec 127532001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 12754
048addec
JD
12755 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
12756 excessively large.
60a653f1 12757
048addec
JD
12758 * insdel.c (make_gap_larger): New function.
12759 (make_gap_smaller): New function.
12760 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
12761 Call make_gap_smaller if arg is negative.
60a653f1 12762
048addec 127632001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12764
048addec
JD
12765 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
12766 Pass a dummy argument when calling interrupt_signal.
12767 (parse_menu_item): Mark disabled items before checking for empty def.
12768 (read_char_minibuf_menu_prompt): Make safety more visible.
12769 (read_key_sequence): Add a `first_unbound' variable.
12770 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
12771 unbound prefix as soon as we can detect it.
60a653f1 12772
048addec
JD
12773 * doc.c (Fsnarf_documentation): Add prototype.
12774 (get_doc_string): Handle negative arguments.
12775 (Fdocumentation): Use AREF and ASIZE.
12776 Move the calls to get_doc_string to a single place.
12777 Don't confuse an interactive-spec for a docstring reference.
12778 (Fdocumentation_property): Take advantage of the fact that
12779 get_doc_string now ignores the sign of the docstring position.
60a653f1 12780
048addec 12781 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 12782
048addec 127832001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12784
a64387ee 12785 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 12786
048addec 127872001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12788
048addec
JD
12789 * xterm.c (x_draw_image_relief): Use predefined macro instead of
12790 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 12791
048addec 127922001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 12793
048addec
JD
12794 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
12795 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 12796
048addec 12797 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 12798
048addec 127992001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12800
048addec 12801 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 12802
048addec 128032001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 12804
048addec 12805 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 12806
048addec 128072001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 12808
f63fd14e 12809 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 12810
048addec
JD
12811 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12812 [!WM_MOUSELEAVE]: Define.
60a653f1 12813
048addec
JD
12814 * w32menu.c (current_popup_menu, get_menu_item_info):
12815 (set_menu_item_info): New vars.
12816 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
12817 (w32_menu_show): Set current_popup_menu.
12818 (add_menu_item): Allocate new strings for owner-drawn menu items
12819 and help strings.
12820 Use owner-draw for disabled menu items again.
12821 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
12822 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 12823
048addec
JD
12824 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
12825 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
12826 <WM_EXITMENULOOP>: Free menu strings.
12827 <WM_MOUSELEAVE>: Stop tracking mouse.
12828 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 12829
048addec
JD
12830 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
12831 and mouse face.
60a653f1 12832
048addec 128332001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 12834
048addec
JD
12835 The following changes add left-fringe and right-fringe
12836 frame parameters to adjust fringe widths, or remove one or
12837 both fringes.
60a653f1 12838
048addec
JD
12839 * frame.h (struct frame): Remove trunc_area_pixel_width and
12840 trunc_area_cols fields.
12841 (Qleft_fringe, Qright_fringe): Declare.
12842 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 12843
048addec
JD
12844 * frame.c (Qleft_fringe, Qright_fringe): New vars.
12845 (syms_of_frame): Initialize them.
60a653f1 12846
048addec
JD
12847 * window.c (coordinates_in_window): Handle separate left and right
12848 fringe widths.
60a653f1 12849
048addec
JD
12850 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
12851 and fringe_cols fields.
12852 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
12853 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
12854 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
12855 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
12856 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12857 (x_compute_fringe_widths): Add prototype.
60a653f1 12858
048addec
JD
12859 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12860 fill fringe evenly with small dashes.
f63fd14e 12861 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
12862 clip the new ZV bitmap to avoid jitter between rows.
12863 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12864 background. Don't draw fringe bitmaps if fringe width is zero.
12865 (x_compute_fringe_widths): New function.
12866 (x_new_font, x_set_window_size_1): Use it.
60a653f1 12867
048addec
JD
12868 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
12869 (x_set_frame_parameters): Process `font' parameter before other
12870 parameters as fringe widths depend on it.
12871 (x_set_fringe_width): New function.
12872 (x_figure_window_size): Use x_compute_fringe_widths.
12873 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
12874 parameters.
60a653f1 12875
048addec
JD
12876 * widget.c (set_frame_size): Use x_compute_fringe_widths.
12877 (EmacsFrameSetCharSize): Ditto.
60a653f1 12878
048addec
JD
12879 * w32term.h: Merged changes from xterm.h.
12880 * w32term.c: Merged changes from xterm.c.
12881 * w32fns.c: Merged changes from xfns.c.
60a653f1 12882
048addec 128832001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12884
048addec 12885 * COPYING: Removed.
60a653f1 12886
048addec 128872001-11-29 Dave Love <fx@gnu.org>
60a653f1 12888
048addec
JD
12889 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
12890 extra extra slot.
12891 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 12892
048addec 128932001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12894
048addec
JD
12895 * fileio.c (file-name-coding-system)
12896 (default-file-name-coding-system): Doc fix (links to referenced
12897 variables added).
60a653f1 12898
048addec 128992001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12900
048addec
JD
12901 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
12902 Add dummy uses of gcproN variables.
60a653f1 12903
048addec
JD
12904 * category.c (describe_category, describe_category_1)
12905 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
12906 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 12907
048addec 129082001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 12909
048addec 12910 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 12911
048addec
JD
12912 * Makefile.in (lispdir): New variable, referring to build dir.
12913 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 12914
048addec 129152001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 12916
048addec
JD
12917 * w32menu.c (w32_menu_display_help): Actually add the new argument
12918 OWNER.
60a653f1 12919
048addec 129202001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 12921
048addec
JD
12922 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12923 menu items. From David Ponce <dponce@wanadoo.fr>.
12924 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12925 conditionally.
f63fd14e 12926 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 12927 help event in the owner frame's keyboard buffer.
60a653f1 12928
048addec
JD
12929 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12930 (Fx_show_tip): Don't subtract last width from row width.
12931
12932 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
12933 (w32_read_socket): Use EQ to compare frames.
60a653f1 12934
048addec 129352001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 12936
048addec
JD
12937 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12938 OVERLAPS_P.
60a653f1 12939
048addec 129402001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12941
048addec
JD
12942 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
12943 `gcpro3' and `gcpro4'.
60a653f1 12944
048addec 12945 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 12946
048addec 129472001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12948
048addec 12949 * ccl.c: Use AREF and ASIZE.
60a653f1 12950
048addec 129512001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12952
048addec
JD
12953 * lisp.h (run_hook_list_with_args): Remove.
12954 (LIST_END_P): Fix call to wrong_type_argument.
12955 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 12956
048addec 129572001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12958
048addec
JD
12959 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
12960 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 12961
048addec
JD
12962 * eval.c: Use AREF and ASIZE.
12963 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 12964
048addec
JD
12965 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
12966 which match the end of the file-name.
12967 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
12968 is not a valid env var, but leave it as is instead.
60a653f1 12969
048addec
JD
12970 * keymap.c (access_keymap): Handle t bindings like nil bindings.
12971 Make nil bindings in char-tables transparent.
12972 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 12973
048addec 129742001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 12975
048addec
JD
12976 * textprop.c (set_text_properties_1): Allow START, END in either order.
12977 Do nothing if range is empty.
60a653f1 12978
048addec 12979 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 12980
048addec
JD
12981 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
12982 (clean): Not here.
60a653f1 12983
048addec 129842001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12985
048addec
JD
12986 * textprop.c (set_text_properties_1): Clearly mark that the
12987 interval should not be empty.
60a653f1 12988
048addec
JD
12989 * intervals.c (graft_intervals_into_buffer):
12990 Don't call set_text_properties_1 on an empty interval.
60a653f1 12991
048addec 129922001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 12993
048addec 12994 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 12995
048addec
JD
12996 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
12997 don't lose the data in it.
60a653f1 12998
048addec 129992001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13000
048addec 13001 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13002
c62aec78 13003 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13004
c62aec78 13005 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13006
048addec 130072001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13008
048addec 13009 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13010
048addec 130112001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13012
048addec
JD
13013 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13014 Niemitalo <kon@iki.fi>.
60a653f1 13015
048addec 130162001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13017
048addec 13018 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13019
048addec
JD
13020 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13021 (Fx_show_tip): Block input during frame creation.
13022 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13023
048addec 130242001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13025
048addec
JD
13026 * lread.c (Fload): Detect recursive load error for more than 3
13027 nestings of the same file.
13028 (Vrecursive_load_depth_limit): Variable deleted.
13029 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13030
048addec 130312001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13032
048addec
JD
13033 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13034 mouse position if either left or top is not specified.
60a653f1 13035
048addec
JD
13036 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13037 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13038 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13039 (my_create_tip_window): Assign tip_window.
13040 (x_create_tip_frame): Use same defaults as X.
13041 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13042 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13043
048addec
JD
13044 * w32term.c (x_after_update_window_line): Doc fix.
13045 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13046 frames.
13047 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13048
048addec
JD
13049 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13050 for all Windowed systems.
60a653f1 13051
048addec 130522001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13053
048addec
JD
13054 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13055 realized, use the initial screen colors to clear the screen.
60a653f1 13056
048addec 130572001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13058
048addec
JD
13059 * textprop.c (Fset_text_properties): Remove unused variables
13060 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13061
048addec
JD
13062 * search.c (Freplace_match): Remove unused variable `inslen'.
13063
13064 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13065
130662001-11-22 Jason Rumney <jasonr@gnu.org>
13067
13068 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13069 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13070 (my_create_tip_window): New function.
13071 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13072 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13073
130742001-11-20 Jason Rumney <jasonr@gnu.org>
13075
13076 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13077 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13078
13079 * w32fns.c (Vw32_system_coding_system): Remove.
13080 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13081
130822001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13083
13084 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13085 after build_annotations.
13086
13087 * syntax.c (describe_syntax): Add dummy arg.
13088 (describe_syntax_1): Update call to describe_vector.
13089
13090 * category.c (describe_category): Add dummy arg.
13091 (describe_category_1): Update call to describe_vector.
13092
13093 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13094 (describe_command, describe_translation): Add dummy second param.
13095 (describe_map): Call elt_describer with two arguments.
13096 (describe_vector_princ): Add `fun' parameter.
13097 Call it instead of the hardcoded `princ'.
13098 (describe_vector): Add arg `args'.
13099 Pass it as a new second argument to elt_describer.
60a653f1 13100
048addec 13101 * keymap.h (describe_vector): Update prototype.
60a653f1 13102
048addec
JD
13103 * frame.c: Don't include keymap.h any more.
13104 (keys_of_frame): Remove.
60a653f1 13105
048addec 13106 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13107
048addec 13108 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13109
048addec 131102001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13111
048addec
JD
13112 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13113 if defined, 0 otherwise.
13114 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13115 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13116
048addec 131172001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13118
048addec 13119 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13120
048addec 131212001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13122
048addec
JD
13123 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13124 (x_draw_bar_cursor): If the background color of the glyph under
13125 the cursor equals the frame's cursor color, use the glyph's
13126 foreground color for drawing the bar cursor.
13127 (x_after_update_window_line): Clear internal border in different
13128 circumstances.
13129 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13130 (w32_draw_relief_rect): Correct relief by 1 pixel.
13131 (x_set_glyph_string_background_width):
13132 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13133 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13134 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13135 if cursor_in_non_selected_windows is false.
13136 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13137 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13138 Notice if cursor gets overwritten.
13139 (notice_overwritten_cursor): Renamed from
13140 note_overwritten_text_cursor. Rewritten to take glyph widths
13141 into account, and to take X positions as parameters.
13142 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13143 around call to x_draw_glyphs.
13144 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13145 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13146 color to use for image glyph reliefs.
13147 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13148 (glyph_rect): Remove unused variable `area'.
60a653f1 13149
048addec
JD
13150 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13151 some items.
13152 (x_set_internal_border_width): Set frame garbaged when window
13153 doesn't exist yet.
13154 (Fx_create_frame): Accept zero tool_bar_button_relief.
13155 (x_clear_image_1, four_corners_best, image_background)
13156 (image_background_transparent): New functions.
13157 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13158 (gs_format): Add `:background' entry.
13159 (lookup_image): Set IMG's background color if specified.
13160 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13161 when appropriate.
13162 (x_clear_image_1): Reset `background_valid' and
13163 `background_transparent_valid' fields.
13164 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13165 calculating it here. Set IMG's background_transparent field.
13166 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13167 (enum png_keyword_index): Add PNG_BACKGROUND.
13168 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13169 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13170 (enum gif_keyword_index): Add GIF_BACKGROUND.
13171 (enum gs_keyword_index): Add GS_BACKGROUND.
13172 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13173 Pre-calculate image background color where necessary.
13174 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13175 Use display info's n_cbits entry for screen depth.
13176 (Fx_show_tip): Remove unused variables `buffer', `top',
13177 `left', `max_width' and `max_height'.
60a653f1 13178
048addec 13179 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 13180
048addec 131812001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 13182
048addec 13183 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 13184
048addec 131852001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13186
048addec 13187 * frame.c (Fframe_live_p): Doc fix.
60a653f1 13188
048addec 131892001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 13190
048addec
JD
13191 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13192 (message_dolog_marker3): New static variables hold three markers.
13193 (syms_of_xdisp): Initialize and staticpro them.
13194 (message_dolog): Use message_dolog_marker1..3 instead of
13195 allocating markers each time. Unchain them when done.
60a653f1 13196
048addec 131972001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13198
048addec 13199 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 13200
048addec 132012001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 13202
048addec 13203 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 13204
048addec 132052001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13206
048addec 13207 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 13208
048addec 132092001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 13210
048addec 13211 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 13212
048addec 132132001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 13214
048addec
JD
13215 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13216 with invalid position.
60a653f1 13217
048addec 132182001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 13219
048addec 13220 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 13221
048addec
JD
13222 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13223 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13224 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 13225
048addec 13226 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 13227
048addec 132282001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13229
048addec
JD
13230 * fileio.c (build_annotations): Split off the tail.
13231 (build_annotations_2): New fun. Extracted from build_annotations.
13232 (Fwrite_region): Split the call to build_annotations into two
13233 calls to build_annotations and build_annotations_2.
077907d4 13234
048addec 132352001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 13236
048addec
JD
13237 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13238 clear_waiting_for_input with argument.
1756e2fb 13239
048addec 13240 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 13241
048addec 13242 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 13243
048addec 13244 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 13245
048addec 13246 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 13247
048addec 132482001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 13249
048addec
JD
13250 * fileio.c (choose_write_coding_system): New fun, extracted
13251 from Fwrite_region.
13252 (Fwrite_region): Use it.
fa336b91 13253
048addec
JD
13254 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13255 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13256 (ml_apply, find_handler_clause): Add prototype.
fa336b91 13257
048addec 132582001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 13259
048addec 13260 * config.in: Add #undef HAVE_COFF_H.
fa336b91 13261
048addec
JD
13262 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13263 Required for ISC 4.1.
fa336b91 13264
048addec 132652001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 13266
048addec
JD
13267 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13268 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 13269
048addec 132702001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 13271
048addec
JD
13272 The following changes are made to clean up the various internal
13273 references to the fringes to actually use the term `fringe' for
13274 them. Previously, they were called `flags areas', `bitmap areas',
13275 `left/right side of windows', or implicitly as `flags' or
13276 `bitmaps':
fa336b91 13277
048addec 13278 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 13279 Comments fixed. Use renamed symbols.
06e8f738 13280
f63fd14e 13281 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 13282
048addec
JD
13283 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13284 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13285 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 13286
048addec 13287 * msdos.c: Comment fix.
9ce647f4 13288
048addec 13289 * w32fns.c: Use renamed symbols.
9b784ab8 13290
f63fd14e 13291 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
13292 (fringe_bitmap_type): Renamed from bitmap_type.
13293 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13294 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13295 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 13296
f63fd14e 13297 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
13298 (fringes_extra): Renamed from flags_areas_extra.
13299 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13300 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13301 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13302 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13303 (FRAME_X_LEFT_FRINGE_WIDTH):
13304 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13305 (FRAME_X_RIGHT_FRINGE_WIDTH):
13306 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 13307
048addec 13308 * widget.c: Use renamed symbols.
9f7e52b4 13309
f63fd14e 13310 * window.c: Comment fixes. Use renamed symbols.
048addec 13311 (coordinates-in-window-p): Doc fix.
fa336b91 13312
f63fd14e 13313 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 13314
048addec 13315 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 13316
048addec 13317 * xfns.c: Use renamed symbols.
89512fcd 13318
f63fd14e 13319 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
13320 (fringe_bitmap_type): Renamed from bitmap_type.
13321 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13322 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13323 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 13324
f63fd14e 13325 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
13326 (fringes_extra): Renamed from flags_areas_extra.
13327 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13328 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13329 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13330 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13331 (FRAME_X_LEFT_FRINGE_WIDTH):
13332 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13333 (FRAME_X_RIGHT_FRINGE_WIDTH):
13334 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13335
133362001-11-15 Jason Rumney <jasonr@gnu.org>
13337
13338 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13339 work for most menu items. From David Ponce
13340 <david.ponce@wanadoo.fr>.
13341
133422001-11-15 Gerd Moellmann <gerd@gnu.org>
13343
13344 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13345 Some x_set_* function expect to be called even if old and new
13346 value are equal.
13347
13348 * xdisp.c (build_desired_tool_bar_string): Accept zero
13349 tool_bar_button_relief.
13350
13351 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13352
13353 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13354
13355 * xterm.c (x_draw_bar_cursor): If the background color of the
13356 glyph under the cursor equals the frame's cursor color, use
13357 the glyph's foreground color for drawing the bar cursor.
13358
13359 * dispnew.c (direct_output_forward_char): Fix character/byte
13360 position comparison.
7d18891d 13361
048addec 133622001-11-15 Miles Bader <miles@gnu.org>
d2936d21 13363
048addec
JD
13364 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13365 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13366 Update arguments to find_field.
13367 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13368 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13369 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13370 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 13371
048addec 133722001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 13373
048addec 13374 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 13375
048addec
JD
13376 * dispextern.h (image_background, image_background_transparent):
13377 Conditionalize on HAVE_X_WINDOWS.
7d18891d 13378
048addec 133792001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 13380
048addec 13381 * print.c (Fprin1_to_string): Doc fix.
7d18891d 13382
048addec 13383 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 13384
048addec 13385 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 13386
048addec 13387 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 13388
048addec 13389 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 13390
048addec 13391 * eval.c (syms_of_eval): Doc fix.
7d18891d 13392
048addec 13393 * coding.c (syms_of_coding): Doc fix.
7d18891d 13394
048addec 13395 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 13396
048addec 13397 * dispnew.c (syms_of_display): Doc fix.
9474c847 13398
048addec 13399 * category.c (Fget_unused_category): Doc fix.
9474c847 13400
048addec 13401 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 13402
048addec 134032001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 13404
048addec 13405 * print.c (prin1, print): Doc fix.
e3059a5d 13406
048addec 134072001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 13408
048addec
JD
13409 * fontset.h: Remove declarations of variables
13410 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 13411
048addec
JD
13412 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13413 `Vclip_large_size_font'.
eae936e2 13414
048addec 134152001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 13416
048addec 13417 * w32fns.c: Doc fix.
ddb67bdc 13418
048addec 134192001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 13420
048addec 13421 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 13422
048addec 13423 * fns.c: Doc fix.
6e1b91d7 13424
048addec 13425 * emacs.c: Doc fix.
1c1d3d69 13426
048addec 13427 * coding.c: Doc fix.
1c1d3d69 13428
048addec
JD
13429 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13430 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13431 `new style' [w/`doc:' keyword].
b6f4c7ba 13432
048addec 134332001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 13434
048addec
JD
13435 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13436 LeaveNotify events. Only FocusIn and FocusOut do that now.
13437 (x_display_and_set_cursor): Do display hollow cursors in active
13438 minibuffer windows when they are not selected.
b6f4c7ba 13439
048addec 134402001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 13441
048addec 13442 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
13443 * w32term.c: Change doc-string comments to `new style'
13444 [w/`doc:' keyword]. Doc fixes.
a89f435d 13445
048addec
JD
13446 * w32fns.c: Don't define max.
13447 (Fx_open_connection): Only execute once.
a4cd0cd7 13448
048addec 134492001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 13450
048addec
JD
13451 * ccl.c: Change macros to use do-while block instead of if-else.
13452 Use braces to follow GNU Coding Standards.
eafb659a 13453
048addec 134542001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 13455
048addec 13456 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 13457
048addec 13458 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 13459
048addec
JD
13460 * insdel.c (replace_range): Use adjust_markers_for_replace
13461 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 13462
048addec 13463 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 13464
048addec
JD
13465 * textprop.c (set_text_properties_1): New subroutine
13466 broken out of set_text_properties.
13467 (set_text_properties): Use set_text_properties_1.
91823618 13468
048addec
JD
13469 * intervals.c (graft_intervals_into_buffer):
13470 Use set_text_properties_1 to clear out properties.
91823618 13471
048addec
JD
13472 * search.c (Freplace_match): Use replace_range to insert
13473 and delete. Don't request property inheritance from
13474 surrounding text.
86928dfb 13475
048addec 134762001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 13477
048addec 13478 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 13479 vertical fonts. Allow them if face name is explicitly specified.
048addec 13480 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 13481
048addec 134822001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 13483
048addec
JD
13484 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13485 instead of malloc/free.
a78e0303 13486
048addec 134872001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 13488
048addec
JD
13489 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13490 Coding Standards.
13491 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 13492
048addec 13493 * buffer.c (Fbury_buffer): Likewise.
0c99b139 13494
048addec 13495 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 13496
048addec
JD
13497 * coding.c (encode_coding): Use precomputed value of `src'.
13498 (encode_coding): Remove unused variable `src_end'.
13499 (code_convert_region): Remove unused variables `count'.
830ddd77 13500
048addec 135012001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 13502
048addec
JD
13503 * w32term.c (x_display_and_set_cursor): Do not move system caret
13504 if cursor_glyph is NULL.
55c6d645 13505
048addec 135062001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 13507
048addec 13508 * keymap.c (access_keymap): Fix compilation error.
5de38842 13509
048addec 135102001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 13511
048addec 13512 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 13513
048addec 135142001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 13515
048addec
JD
13516 * intervals.c (graft_intervals_into_buffer):
13517 Remove #ifdef'd-out code.
13518 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 13519
048addec
JD
13520 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13521 code (eval-current-buffer).
13522 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 13523
048addec 135242001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 13525
048addec 13526 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 13527
048addec 135282001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 13529
048addec 13530 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 13531
048addec
JD
13532 * keyboard.c (make_lispy_event): Check integerness and fix
13533 Lisp_Object/int mixup.
17893c65 13534
048addec 135352001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 13536
048addec 13537 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 13538
048addec
JD
13539 * fontset.c (fontset_font_pattern): Remove unused variable
13540 `family_registry'.
d5360cc7 13541
048addec 13542 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 13543
048addec 135442001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 13545
048addec 13546 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 13547
048addec
JD
13548 * buffer.c (Fkill_buffer): Don't delete auto save file
13549 if buffer is modified.
d9d54213 13550
048addec 135512001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 13552
048addec
JD
13553 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13554 CHECK_NUMBER_CDR.
b116830b 13555
048addec 135562001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 13557
048addec 13558 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 13559
048addec 135602001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 13561
048addec 13562 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 13563
048addec 135642001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 13565
048addec 13566 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 13567
048addec 135682001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 13569
048addec
JD
13570 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13571 the program image directly.
982f6c7e 13572
048addec 135732001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 13574
048addec 13575 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 13576
048addec 135772001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 13578
048addec
JD
13579 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13580 and CHECK_BUFFER.
d31053f9 13581
048addec
JD
13582 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13583 (record_char): Likewise.
d31053f9 13584
048addec
JD
13585 * keyboard.c (make_lispy_event): Don't insist a drag event must
13586 move to a different buffer position. Instead, check for moving at
13587 least double_click_fuzz.
982f6c7e 13588
048addec 13589 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 13590
048addec 13591 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 13592
048addec
JD
13593 * indent.c (current_column_1, Fmove_to_column): Separate the code
13594 for display-table glyphs from the code for buffer text, to fix
13595 bugs in the former.
830047fd 13596
048addec 135972001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 13598
048addec
JD
13599 * buffer.c (Fbuffer_local_value): New function.
13600 (syms_of_buffer): Defsubr it.
2df5238c 13601
048addec
JD
13602 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
13603 value of `cursor-in-non-selected-windows'.
4e397688 13604
048addec
JD
13605 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
13606 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
13607 (syms_of_xdisp): Initialize it.
48b0f3ae 13608
048addec 136092001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 13610
048addec 13611 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 13612
048addec
JD
13613 * coding.c: Change doc-string comments to `new style' [w/`doc:'
13614 keyword].
3ecaf7e5 13615
048addec
JD
13616 * eval.c (top_level_value, top_level_set): Remove commented and
13617 #ifdef'd-out code.
13618 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 13619
048addec 136202001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 13621
048addec 13622 * xfns.c: Include unistd.h, if it exists.
8db2e33b 13623
048addec 13624 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 13625
048addec 13626 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 13627
048addec 136282001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 13629
048addec
JD
13630 * lisp.h (CHECK_STRING_CAR): New macro.
13631 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
13632 treating XCAR and XCDR as lvalues.
13633 (openp): Use CHECK_STRING_CAR.
13634 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 13635
048addec 136362001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 13637
048addec
JD
13638 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13639 (SIGMASKTYPE): Define.
1b1acc13 13640
048addec 13641 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 13642
048addec 136432001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 13644
048addec
JD
13645 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
13646 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
13647 Fix typos in comments.
6cb16f95 13648
048addec
JD
13649 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
13650 and #ifdef'd-out code.
13651 Fix and reindent comments.
6cb16f95 13652
048addec 13653 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 13654
048addec
JD
13655 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
13656 argument `i' in macros.
6cb16f95 13657
048addec
JD
13658 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
13659 `i' in macros.
7e9d3c2f 13660
048addec
JD
13661 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
13662 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
13663 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
13664 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
13665 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
13666 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
13667 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
13668 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
13669 in macros.
7e9d3c2f 13670
048addec
JD
13671 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13672 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
13673 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
13674 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
13675 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
13676 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
13677 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
13678 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
13679 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
13680 (remove unused second argument).
7e9d3c2f 13681
048addec 136822001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13683
048addec
JD
13684 * syntax.c (describe_syntax): New wrapper.
13685 (Finternal_describe_syntax_value): Rename from describe_syntax.
13686 Don't insert space at front and \n at the end.
13687 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 13688
048addec
JD
13689 * regex.c (re_wctype): Try to fix some warnings.
13690 (regcomp, regexec): Don't forget the __restrict.
9ba48103 13691
048addec 136922001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 13693
048addec 13694 * textprop.c (Fget_char_property): Doc fix.
9ba48103 13695
048addec 136962001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 13697
048addec 13698 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 13699
048addec 13700 * data.c (Fsetq_default): Ditto.
c22e59e1 13701
048addec 13702 * callint.c (Finteractive): Ditto.
9271ed2c 13703
048addec 137042001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13705
048addec
JD
13706 * macros.c: Don't include keymap.h any more.
13707
137082001-11-01 Richard M. Stallman <rms@gnu.org>
13709
13710 * data.c (Fmake_local_variable): Doc fix.
13711
13712 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
13713 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 13714
048addec 13715 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
13716 bindings along with or instead of the buffer local map.
13717 Make the overriding maps override what they should.
13718
f00691a3 137192001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
13720
13721 * window.c (grow_mini_window): Fix typo in comment.
13722
27188d11
GM
137232001-11-01 Gerd Moellmann <gerd@gnu.org>
13724
7b49b9d2
GM
13725 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
13726 (XTset_vertical_scroll_bar): Likewise.
13727
43f7c3ea
GM
13728 * xfns.c (x_build_heuristic_mask): Use four_corners_best
13729 instead of IMAGE_BACKGROUND.
c22e59e1 13730
b350c2e5
GM
13731 * xfns.c (four_corners_best): Reindent.
13732
c22e59e1 13733 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
13734 Handle :box so that it is possible to specify sexprs.
13735
bf00d461
EZ
137362001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
13737
13738 * s/hpux11.h: New file.
13739
f00691a3 137402001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 13741
2b209b97
PJ
13742 * emacs.c (USAGE1): Show command line option --no-window-system
13743 instead of --no-windows in usage.
13744 (standard_args): Rename --no-windows to --no-window-system.
13745 (bug_reporting_address): Follow Emacs coding conventions.
13746
9dbc9081
PJ
13747 * eval.c (Fcommandp): Doc fix.
13748 Change doc-string comments to `new style' [w/`doc:' keyword].
13749
4e10df59
PJ
13750 * frame.c (Fframe_live_p): Doc fix.
13751
13752 * buffer.c (selective-display-ellipses): Doc fix.
13753
dd387b25
GM
137542001-10-31 Gerd Moellmann <gerd@gnu.org>
13755
fe957e65
GM
13756 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
13757
dd387b25
GM
13758 * xfaces.c (realize_x_face): If C is not a single-byte character,
13759 set the face's colors_copied_bitwise_p instead of the defaulted_p
13760 members which have a different meaning.
13761 (free_face_colors): Do nothing for a face whose colors have been
13762 copied bitwise.
13763
c22e59e1 13764 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 13765
f00691a3 137662001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 13767
687784e8
PJ
13768 * marker.c, mocklisp.c: Change doc-string comments to `new style'
13769 [w/`doc:' keyword].
2e1280f8 13770
b9d9a9b9
GM
137712001-10-31 Gerd Moellmann <gerd@gnu.org>
13772
13773 * fns.c (require_unwind): Return Lisp_Object.
13774
f00691a3 137752001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 13776
fa1361cb
PJ
13777 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
13778 (last-input-char): Revert doc-string to be the same as the
13779 doc-string of `last-input-event'.
13780
6c465a15 13781 * xdisp.c: Fix typos in comments.
48400103 13782
eafa3196
GM
137832001-10-31 Gerd Moellmann <gerd@gnu.org>
13784
13785 * window.c (grow_mini_window): Handle case that the root
13786 window is already smaller than the nominal mininum height.
13787
747d3f2a
SM
137882001-10-30 Stefan Monnier <monnier@cs.yale.edu>
13789
bf9bb76f
SM
13790 * emacs.c (main): Don't call keys_of_macros any more.
13791
13792 * lisp.h (keys_of_macros): Remove.
13793
13794 * macros.c (keys_of_macros): Remove.
13795
747d3f2a
SM
13796 * xfaces.c (Fface_attribute_relative_p): Declare args.
13797
5e905a57
JR
137982001-10-30 Jason Rumney <jasonr@gnu.org>
13799
13800 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
13801 (enum_font_cb2): Ignore fonts with vertical orientation.
13802
3a426197
RS
138032001-10-30 Richard M. Stallman <rms@gnu.org>
13804
13805 * keyboard.c (Finput_pending_p): Doc fix.
13806
a742d646
GM
138072001-10-30 Gerd Moellmann <gerd@gnu.org>
13808
259cf6bc
GM
13809 * xterm.c (x_after_update_window_line): Don't run the code
13810 clearing in borders for rows whose visible height is 0.
13811
3f99f948
GM
13812 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
13813 resized_p flag is set. If not set, use the much less flickering
13814 method previously used.
13815
13816 * dispnew.c (change_frame_size_1): Set frame's resized_p.
13817
13818 * frame.h (struct frame) <resized_p>: New member.
13819
b4a3be43
GM
13820 * lread.c (to_multibyte): Ensure read_buffer is at least twice
13821 as large as the number of bytes to convert.
747d3f2a 13822
a742d646
GM
13823 * lread.c (to_multibyte): New function.
13824 (read1): Use it.
13825
cacbb9e9
EZ
138262001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
13827
13828 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
13829
99cb6b2f
GM
138302001-10-30 Gerd Moellmann <gerd@gnu.org>
13831
327f42ee 13832 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
13833 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
13834 if the row's fill_line_p is set and drawing the last glyph with
13835 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 13836
99cb6b2f
GM
13837 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
13838
8e8223e2
SM
138392001-10-29 Stefan Monnier <monnier@cs.yale.edu>
13840
13841 * xmenu.c: Include coding.h and charset.h.
13842 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
13843 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
13844 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
13845 Explicitly set wv->help. Use `TRUE' rather than `True'.
13846 (menu_help_callback): Use empty_string.
13847
13848 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
13849 (Fx_popup_dialog): Explicitly init f.
13850 (w32_menu_display_help): Use empty_string.
13851
4d083a8f
RS
138522001-10-29 Richard M. Stallman <rms@gnu.org>
13853
b2304472
RS
13854 * fns.c (Frequire): Detect recursive try to require the same
13855 feature 3 or more levels deep, and get error.
13856 (require_unwind): New subroutine.
13857 (require_nesting_list): New variable.
13858 (syms_of_fns): Init and staticpro it.
13859
4d083a8f
RS
13860 * print.c (print_object): Clarify indication of insertion type.
13861
2fe41216
EZ
138622001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
13863
90480000
EZ
13864 * coding.c (syms_of_coding): Document that locale-coding-system is
13865 used for decoding input on X.
13866
2fe41216
EZ
13867 * window.c (Fscroll_left, Fscroll_right): Doc fix.
13868
f00691a3 138692001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
13870
13871 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
13872 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
13873
60ebcfe8
GM
138742001-10-29 Gerd Moellmann <gerd@gnu.org>
13875
9a7bdceb
GM
13876 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
13877 use NO_CURSOR if cursor_in_non_selected_windows is false.
13878
3f08fcd2
GM
13879 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
13880 the slant attribute if FRAME is t.
13881
0ccfdad2
GM
13882 * xfns.c (x_set_internal_border_width): Set frame garbaged
13883 when X window doesn't exist yet.
13884
ef253080
GM
13885 * xterm.c (x_after_update_window_line): Clear internal border
13886 in different circumstances.
b116830b 13887
60ebcfe8
GM
13888 * xterm.c (XTread_socket) <KeyPress>: Don't use
13889 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
13890 <handa@etl.go.jp>.
13891
73d25f9c
EZ
138922001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
13893
13894 * m/ibms390.h: New file. From Adam Thornton
13895 <athornton@sinenomine.net>.
13896
cac1daf0
GM
138972001-10-28 Gerd Moellmann <gerd@gnu.org>
13898
053b3256 13899 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 13900
cac1daf0
GM
13901 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
13902 a loop counter.
13903
f00691a3 139042001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 13905
f9711de4 13906 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 13907
4707d2d0
PJ
13908 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
13909 keyword].
13910 Fix typos in comments.
b116830b 13911
d883731c
PJ
13912 * emacs.c (bug_reporting_address): New function.
13913 Use it when displaying usage message.
13914
04012254
PJ
13915 * minibuf.c (read_minibuf): Remove unused external declaration of
13916 variable `Qread_only'.
13917
13b1a09c
PJ
13918 * keymap.c (access_keymap): Remove unused variable `charset'.
13919
5bbf4378
MB
139202001-10-28 Miles Bader <miles@gnu.org>
13921
13922 * xfaces.c (merge_face_heights): Handle TO being relative as well.
13923 Remove #ifdef'd-out code.
13924 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
13925 (syms_of_xfaces): Initialize them.
13926
1ce1e4ee
JR
139272001-10-27 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
13930 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
13931 position using the system caret.
13932
13933 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
13934 (w32_system_caret_height, w32_system_caret_x)
13935 (w32_system_caret_y): New variables for tracking system caret.
13936 (w32_initialize): Initialize them.
c2d53558 13937 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 13938
c2d53558
SM
13939 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
13940 New messages types.
1ce1e4ee
JR
13941
13942 * w32term.c (note_mouse_highlight): Clear old help_echo.
13943
f00691a3 139442001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 13945
bb4600a4
PJ
13946 * xterm.c: Fix typo in a comment.
13947
7db35a48
PJ
13948 * emacs.c: Fix typos in comments.
13949 Remove unnecessary spaces.
13950 Change doc-string comments to `new style' [w/`doc:' keyword].
13951 (USAGE2): Fix typos in usage string.
13952
a7248e4f
PJ
13953 * xterm.c: Fix typo in a comment.
13954
4e30ce42
PJ
13955 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
13956 emacs.c.
13957
62725a92
GM
139582001-10-27 Gerd Moellmann <gerd@gnu.org>
13959
798dbe1f 13960 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 13961 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
13962 farther backward when target_y was not reached.
13963
62725a92
GM
13964 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
13965 Display errno only if non-zero.
13966 (sound_warning): New function.
13967 (vox_configure): Don't treat failing to set sample rate as error.
13968 (various places): Improve error messages.
13969
d4e34d24
EZ
139702001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
13971
944e6f60
EZ
13972 * fileio.c (Faccess_file): Run the argument filename through
13973 Fexpand_file_name, before using it.
13974
d4e34d24
EZ
13975 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
13976 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
13977
38d2af0c
GM
139782001-10-26 Gerd Moellmann <gerd@gnu.org>
13979
da80a8d5
GM
13980 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
13981
38d2af0c
GM
13982 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13983 Fix clearing in the case of scroll bars on the right.
c2d53558 13984
45de4a6f 139852001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
13986
13987 * w32gui.h (XImage): Add a dummy typedef.
13988
fbd5ceb2
GM
139892001-10-26 Gerd Moellmann <gerd@gnu.org>
13990
c2d53558 13991 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 13992
b23236fb
EZ
139932001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
13994
13995 * frame.c (Fframe_parameter): Fix last change.
13996
5d991fc4
EZ
13997 * fileio.c: Revert last change (which removed old commented-out
13998 version of expand-file-name). Add a comment that explains why
13999 this old version should not be removed.
14000
879eadc3
GM
140012001-10-25 Gerd Moellmann <gerd@gnu.org>
14002
75700ff2
GM
14003 * frame.c (Fframe_parameter): Fix a bug whereby some
14004 ``artificial'' frame parameters, like `minibuffer' were not
14005 obtained by calling Fframe_parameters.
14006
dfe92a6a
GM
14007 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14008 cursor differently.
14009
879eadc3
GM
14010 * xdisp.c (move_it_vertically_backward): Compute line height
14011 differently. Add heuristic to try to be more compatible to 20.x.
14012
e1010ebe
SM
140132001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14014
d73a471b
SM
14015 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14016
d6da5a06
GM
14017 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14018 boolean.
e1010ebe 14019
f66bd220
MB
140202001-10-25 Miles Bader <miles@gnu.org>
14021
14022 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14023 BG is a pointer to a structure, not a structure.
14024 (gif_format, png_format): Add missing commas.
14025
d436d538
RS
140262001-10-24 Richard M. Stallman <rms@gnu.org>
14027
14028 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14029 (syms_of_xfaces): Defsubr it.
d436d538 14030
f00691a3 140312001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14032
14033 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14034 variable `area'.
14035
f00691a3 140362001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14037
c2d53558 14038 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14039
e2a57b34
MB
140402001-10-25 Miles Bader <miles@gnu.org>
14041
14042 * dispextern.h (struct image): Add `background',
14043 `background_valid', and `background_transparent' fields.
14044 (image_background, image_background_transparent): New declarations.
14045 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14046 * xfns.c (image_background, image_background_transparent)
14047 (four_corners_best): New functions.
c2d53558 14048 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14049 (gs_format): Add `:background' entry.
14050 (lookup_image): Set IMG's background color if specified.
14051 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14052 when appropriate.
14053 (x_clear_image_1): Reset `background_valid' and
14054 `background_transparent_valid' fields.
14055 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14056 calculating it here. Set IMG's background_transparent field.
14057 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14058 (enum png_keyword_index): Add PNG_BACKGROUND.
14059 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14060 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14061 (enum gif_keyword_index): Add GIF_BACKGROUND.
14062 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14063 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14064 Pre-calculate image background color where necessary.
14065 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14066 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14067 color to use for image glyph reliefs.
14068
b547b6e8
GM
140692001-10-24 Gerd Moellmann <gerd@gnu.org>
14070
d9e3b8c6
GM
14071 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14072 in full-width rows.
c2d53558 14073
b547b6e8
GM
14074 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14075 Fix clearing of area not covered by scroll bar.
14076
f00691a3 140772001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14078
14079 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14080 and `real_start'.
c2d53558 14081 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14082 (glyph_rect): Remove unused variable `area'.
14083
76cb5e06
GM
140842001-10-24 Gerd Moellmann <gerd@gnu.org>
14085
bdbdebff 14086 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14087
14088 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14089 (row_containing_pos): Take additional argument DY.
14090 Treat rows ending in middle of char differently.
62e33982
GM
14091 (display_line): Handle tabs on window systems differently.
14092
14093 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14094 with additional argument.
14095
14096 * dispextern.h (row_containing_pos): Adjust prototype.
14097
76cb5e06
GM
14098 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14099 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14100 (try_window_id, try_window_reusing_current_matrix)
14101 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14102 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14103
f00691a3 141042001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14105
c9e60620
PJ
14106 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14107 gnuemacs).
14108 (HAVE_BOXES): Fix typo in comment.
14109 (push_menu_pane): Fix typo in comment.
14110
3b552d56
PJ
14111 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14112 of `Qwhen'.
14113 (single_display_prop_string_p): Remove unused local declarations
14114 of `Qwhen' and `Qmargin'.
14115 (string_buffer_position): Remove unused variable `around'.
14116 (store_frame_title): Remove unused variable `width'.
14117
15c565ac
PJ
14118 * window.c: Don't define max.
14119 (coordinates_in_window): Remove unused variable `uy'.
14120
a8818eb9
PJ
14121 * widget.c: Don't define max.
14122
996fee11
PJ
14123 * process.c: Don't define max.
14124 (create_process): Remove unused variable `buffer'.
14125
496e1a5b
GM
141262001-10-23 Gerd Moellmann <gerd@gnu.org>
14127
c2d53558 14128 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14129
5905ae8b
EZ
141302001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14131
14132 * xfaces.c (Finternal_set_lisp_face_attribute)
14133 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14134 frame is on a windowed display.
14135
24db49fb
GM
141362001-10-23 Gerd Moellmann <gerd@gnu.org>
14137
c2d53558
SM
14138 * dispnew.c (sync_window_with_frame_matrix_rows):
14139 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14140 of marginal areas.
14141
c2d53558 14142 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14143
f0487f05
EZ
141442001-10-23 Andreas Schwab <schwab@suse.de>
14145
14146 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14147 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14148
f0a48a01
GM
141492001-10-23 Gerd Moellmann <gerd@gnu.org>
14150
c2d53558 14151 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
14152 REAL_END. Notice if cursor gets overwritten.
14153 (notice_overwritten_cursor): Take X positions as parameters.
14154 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14155 around call to x_draw_glyphs.
14156
f00691a3 141572001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 14158
fc11dff0
PJ
14159 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14160 instead of C) and usage.
a50a10a0 14161
fc11dff0
PJ
14162 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14163 of C) and usage.
a50a10a0
PJ
14164
14165 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14166 `left', `max_width' and `max_height'.
14167
8738febd
GM
141682001-10-23 Gerd Moellmann <gerd@gnu.org>
14169
14170 * xdisp.c (display_line): For a tab continued to the next line,
14171 set row's ends_in_middle_of_char_p.
14172
653c329b
GM
141732001-10-22 Gerd Moellmann <gerd@gnu.org>
14174
14175 * xdisp.c (display_line): Fix computation of continuation lines
14176 width for TABs.
14177
f00691a3 141782001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 14179
7ba51063
PJ
14180 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14181 `Qlaplace'.
14182
f958c5ac
PJ
14183 * fileio.c: Remove unused code.
14184
eb360291
MB
141852001-10-22 Miles Bader <miles@gnu.org>
14186
14187 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14188 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14189 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14190
98515cf0
JR
141912001-10-21 Jason Rumney <jasonr@gnu.org>
14192
14193 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14194
93026d88
EZ
141952001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14196
14197 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14198 (Finsert_string): Avoid the multi-line string literals warning.
14199
c9a95b79
MB
142002001-10-22 Miles Bader <miles@gnu.org>
14201
14202 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14203 (Fdocumentation): Don't use it.
14204 (syms_of_doc): Don't initialize it.
14205
14206 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14207 * print.c (Fwith_output_to_temp_buffer): Likewise.
14208 * window.c (Fsave_window_excursion): Likewise.
c2d53558 14209 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 14210 (Fsave_restriction): Likewise.
c2d53558
SM
14211 * eval.c (Frun_hooks, Frun_hook_with_args)
14212 (Frun_hook_with_args_until_failure)
14213 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14214 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14215 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
14216 (Funwind_protect, Fcondition_case): Likewise.
14217 * coding.c (Ffind_operation_coding_system): Likewise.
14218 * keyboard.c (Ftrack_mouse): Likewise.
14219
a3b10252
MB
142202001-10-21 Miles Bader <miles@gnu.org>
14221
c2d53558 14222 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
14223 (Fmake_hash_table): Add usage: string to doc string.
14224 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 14225 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
14226 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14227 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14228 (Fml_prefix_argument_loop): Likewise.
14229
f00691a3 142302001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 14231
c2d53558 14232 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 14233
c6f73eec
PJ
14234 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14235 style' [w/`doc:' keyword].
14236
14237 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14238 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14239 comments to `new style' [w/`doc:' keyword].
14240
3cf3436e
JR
142412001-10-21 Jason Rumney <jasonr@gnu.org>
14242
14243 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14244
c169b8f1
JR
14245 * w32term.c (remember_mouse_glyph): New function.
14246 (w32_mouse_position): Use it.
14247 (note_mouse_movement): If the mouse moved off the glyph, remember
14248 its new position.
c2d53558 14249
4fdd691b
JR
14250 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14251 (w32_display_info): Add mouse_face_overlay.
14252
c169b8f1
JR
14253 * w32term.c (notice_overwritten_cursor): Renamed from
14254 note_overwritten_text_cursor. Rewritten to take glyph widths into
14255 account.
14256 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14257 (fast_find_string_pos): New function.
14258 (fast_find_position): Return the correct vpos. Add parameter
14259 STOP. In the final row, stop before glyphs having STOP as object.
14260 Don't consider glyphs that are not from a buffer.
14261 (fast_find_position) [0]: Add a presumably more correct version
14262 for after 21.1.
14263 (expose_window_tree, expose_frame): Don't compute intersections here.
14264 (expose_window): Do it here instead.
14265 (expose_window_tree, expose_window, expose_line): Return 1 when
14266 overwriting mouse-face.
14267 (expose_window): If W is the window currently being updated, mark
14268 the frame garbaged.
14269 (expose_frame): If mouse-face was overwritten, redo it.
14270 (x_use_underline_position_properties): New variable.
14271 (syms_of_xterm): DEFVAR_BOOL it.
14272 (x_draw_glyph_string): Add comment to use it in future.
14273 (x_draw_glyph_string): Restore clipping after drawing box.
14274 Fix a computation of the underline position.
14275 (w32_get_glyph_string_clip_rect): Minor cleanup.
14276 (x_fill_stretch_glyph_string): Remove an assertion.
14277 (x_produce_glyphs): Don't convert multibyte characters
14278 to unibyte characters in unibyte buffers.
14279 (cursor_in_mouse_face_p): New function.
14280 (x_draw_stretch_glyph_string): Use it to choose a different GC
14281 when drawing a cursor within highlighted text. Don't draw
14282 background again if it has already been drawn.
14283 (x_draw_glyph_string_box): Don't draw a full-width
14284 box just because the glyph row's full_width_p flag is set.
14285 (x_draw_glyphs): Fix computation of rightmost x for
14286 full-width rows.
14287 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14288 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 14289 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
14290 (x_update_window_end): Handle overwritten mouse face
14291 also for tool bar windows.
14292 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14293 DRAW is DRAW_IMAGE_RAISED.
14294 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
14295 actually redrawn. Make the function static.
14296 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
14297 optimize away highlighting if we pass over that same overlay again.
14298 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14299 to detect a case where we have to highlight a different region
14300 despite not having left the currently highlighted region.
14301 Set mouse_face_overlay in the x_display_info. Avoid changing the
14302 mouse pointer shape when show_mouse_face has already done it, or
14303 there is no need. Handle mouse-face and help-echo in strings.
14304 (glyph_rect): New function.
14305 (w32_mouse_position): Use it to raise the threshold for mouse
14306 movement event generation.
14307 (w32_initialize_display_info): Initialize the x_display_info's
14308 mouse_face_overlay.
14309 (w32_set_vertical_scroll_bar): Don't clear a zero height
14310 or width area.
14311 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14312 a widget to zero height.
14313
3cf3436e 14314 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 14315 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
14316 equivalents in menu_items.
14317 (w32_menu_show): Don't overwrite an item's name with its key
14318 description in case the description is a multibyte string.
14319 (single_submenu): Some cleanup.
14320
14321 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14322 (postprocess_image): New function.
14323 (lookup_image): Call it for all image types except PostScript.
14324 (x_kill_gs_process): Call postprocess_image.
14325 (tiff_error_handler, tiff_warning_handler): New functions.
14326 (tiff_load): Install them as handlers.
14327 (x_kill_gs_process): Recognize if someone has cleared the image
14328 cache under us.
14329 (valid_image_p): Protect better against invalid image
14330 specifications. Previous code could signal an error.
14331 (Fx_hide_tip, Fshow_tip): Doc fix.
14332 (Fv_max_tooltip_size): New variable.
14333 (syns_of_xfns): DEFVAR_LISP it.
14334 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 14335 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
14336 window_width. Use a maximum tooltip size specified by
14337 Vx_max_tooltip_size, if that has valid contents.
14338 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14339 Make sure the tooltip is completely visible.
14340 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14341 (Fx_create_frame): Adjust the frame's height for presence
14342 of the tool bar before calling x_figure_window_size.
14343 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14344 when the window gets smaller.
14345 (x_set_foreground_color): Set frame's cursor_pixel.
14346 (x_set_foreground_color, x_set_background_color): Cleaned up.
14347 (x_set_font): Handle case of x_new_fontset returning the same name
14348 as before, although there was a change in fontsets.
14349
386ca361
MB
143502001-10-21 Miles Bader <miles@gnu.org>
14351
c2d53558 14352 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
14353 (Flogxor): Add usage: string to doc string.
14354 * charset.c (Fstring): Likewise.
14355 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14356 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14357
f00691a3 143582001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 14359
03be2694
PJ
14360 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14361
14362 * alloc.c: Reindent DEFUNs with doc: keywords.
14363
14364 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14365
14ff1ee0
PJ
14366 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14367 keyword].
14368
2f147815 14369See ChangeLog.9 for earlier changes.
6922b018
KH
14370
14371;; Local Variables:
49b3bd82 14372;; coding: iso-2022-7bit
6922b018 14373;; End:
2a34a036 14374
2f147815 14375 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
14376 Copying and distribution of this file, with or without modification,
14377 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
14378
14379;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4