]> code.delx.au - gnu-emacs/blob - src/ChangeLog
7d54241ad0a29ea3430464674af728d5f907bd6e
[gnu-emacs] / src / ChangeLog
1 2000-12-29 Gerd Moellmann <gerd@gnu.org>
2
3 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
4 function.
5 (update_window) [GLYPH_DEBUG]: Call it.
6 (scrolling_window): Prevent including current rows which are below
7 what's displayed in the window.
8
9 * xdisp.c (try_window_reusing_current_matrix)
10 <new start <= old start>: Disable rows in the current matrix
11 which are below the window after scrolling.
12
13 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
14 is zero. It's not worth the complexity.
15 (invisible_text_between_p): Put in #if 0 because unused.
16
17 2000-12-28 Gerd Moellmann <gerd@gnu.org>
18
19 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
20 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
21
22 * keyboard.c (echo_char): If C is an integer, always call
23 push_key_description. Former code could signal an invalid
24 character error.
25
26 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
27 If set, print multibyte text.
28 (Fsingle_key_description): Call push_key_description with
29 FORCE_MULTIBYTE set.
30 (describe_buffer_bindings): Likewise.
31
32 * lisp.h (push_key_description): Add prototype.
33
34 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
35 around the call to redisplay_internal.
36
37 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
38
39 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
40
41 2000-12-28 Kenichi Handa <handa@etl.go.jp>
42
43 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
44 (ccl_driver): New local variable `extra_bytes'.
45
46 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
47
48 * coding.c (setup_coding_system): Initialize
49 coding->spec.ccl.eight_bit_carryover.
50 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
51
52 2000-12-28 Kenichi Handa <handa@etl.go.jp>
53
54 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
55 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
56 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
57 (decode_composition_emacs_mule): New function.
58 (decode_coding_emacs_mule): Decode composition sequence by calling
59 decode_composition_emacs_mule.
60 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
61 (encode_coding_emacs_mule): Changed from macro to function. If
62 a text contains compositions, encode them correctly.
63 (setup_coding_system): Set coding->commong_flags for emacs-mule so
64 that decoding and encoding are required.
65
66 2000-12-27 Gerd Moellmann <gerd@gnu.org>
67
68 * xfaces.c (PT_PER_INCH): New macro.
69 (xlfd_point_size): Compute real point size from font's pixel size.
70 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
71 instead of 72.
72
73 * .gdbinit: Comment out the line pointing to the Lesstif source
74 directory.
75
76 * window.c (Frecenter): Use displayed_window_lines instead
77 of window_internal_height.
78
79 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
80 instead of x-toolkit-scroll-bars-p.
81 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
82
83 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
84 instead of x-toolkit-scroll-bars-p.
85 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
86
87 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
88 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
89 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
90 variables.
91 (add_window_display_history, add_frame_display_history)
92 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
93 (build_frame_matrix_from_leaf_window): Remove unused code.
94 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
95 redisplay history.
96 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
97 (update_window) [GLYPH_DEBUG]: Likewise.
98 (syms_of_display): Defsubr dump-redisplay-history.
99
100 2000-12-23 Gerd Moellmann <gerd@gnu.org>
101
102 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
103 the end of the prompt. Set echo_after_prompt to the offset
104 of echoptr in echobuf.
105
106 * xdisp.c (init_from_display_pos): Pop until the iterator's
107 stack is empty; there may be frames for stretch or images
108 on the stack.
109
110 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
111 (save_or_restore_current_matrix): New function for the same
112 purpose, but more efficient.
113 (adjust_frame_glyphs_for_frame_redisplay): Use it.
114
115 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
116
117 * xdisp.c (syms_of_xdisp): Fix last change.
118
119 2000-12-23 Gerd Moellmann <gerd@gnu.org>
120
121 * xdisp.c (syms_of_xdisp): Doc fix.
122
123 * xdisp.c (redisplay_window): Remove label restore_buffers;
124 use finish_scroll_bars instead to make sure that scroll bars
125 are redeemed. If we don't do this, flickering can result from
126 scroll bars being destroyed and recreated.
127
128 2000-12-22 Jason Rumney <jasonr@gnu.org>
129
130 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
131 in the wrong colors when the foreground is not black.
132 (expose_window): Don't redraw the window that's currently being
133 updated.
134
135 2000-12-22 Gerd Moellmann <gerd@gnu.org>
136
137 * window.c (size_window): When setting the window's too_small_ok
138 flag, compare old size with minimum size depending on WIDTH_P,
139 don't compare with window_min_width.
140
141 * window.c (delete_window): Simplify somewhat.
142 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
143 freeing window matrices. The flag windows_or_buffers_changed is
144 set, so the next redisplay will consider all windows; this should
145 suffice.
146
147 2000-12-22 Kenichi Handa <handa@etl.go.jp>
148
149 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
150
151 * ccl.h (struct ccl_program): New member cr_consumed.
152
153 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
154 (CCL_READ_CHAR): Handle EOL conversion here.
155 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
156
157 2000-12-21 Gerd Moellmann <gerd@gnu.org>
158
159 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
160 GLYPHS.
161
162 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
163 otherwise tabs of different size compare equal.
164
165 * callint.c (Fcall_interactively): Prevent a compiler warning.
166
167 * print.c (print_unwind): Return nil.
168 (PRINTDECLARE): Initialize all local variables.
169 (print_preprocess): Add a default case.
170
171 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
172
173 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
174
175 * window.c (delete_window, Fsplit_window)
176 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
177
178 * dispextern.h (ensure_frame_matrix): Function declaration removed.
179
180 * dispnew.c (ensure_frame_matrix): Removed.
181 (save_frame_matrix, restore_frame_matrix): New functions.
182 (adjust_frame_glyphs_for_frame_redisplay): Use them.
183
184 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
185 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
186
187 2000-12-21 Andrew Innes <andrewi@gnu.org>
188
189 * w32term.c (x_update_begin): Regenerate the palette here, rather
190 than for each window.
191
192 * w32xfns.c (select_palette): Avoid calling SelectPalette if
193 palette is NULL, since this corrupts memory! Also get
194 display_info reference from frame.
195
196 2000-12-21 Jason Rumney <jasonr@gnu.org>
197
198 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
199
200 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
201 to avoid returning without releasing it.
202
203 2000-12-21 Kenichi Handa <handa@etl.go.jp>
204
205 * keymap.c (push_key_description): Don't convert eight-bit-control
206 and eight-bit-graphic to multibyte character.
207
208 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
209 generic character and CODE1 is nil, return the smallest character
210 in CHARSET.
211
212 2000-12-20 Dave Love <fx@gnu.org>
213
214 * s/osf5-0.h (NSIG): Don't redefine.
215
216 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
217
218 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
219 excluding menu-bar and tool-bar.
220 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
221 (menu_item_p): Remove.
222 (where_is_internal_1): Don't ignore menu-items.
223
224 2000-12-20 Gerd Moellmann <gerd@gnu.org>
225
226 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
227 into account.
228
229 * window.c (make_window): Initialize window's min_hscroll.
230 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
231 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
232 to zero.
233 (struct saved_window): New member min_hscroll.
234 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
235 (Fset_window_configuration): Set window's min_hscroll.
236 (save_window_save): Save window's min_hscroll.
237 (compare_window_configurations): Compare min_hscroll values.
238
239 * window.h (struct window): New member min_hscroll.
240
241 * keyboard.c (echo_prompt): Prevent a compiler warning.
242
243 * xdisp.c (try_cursor_movement): Fix last change. The real
244 condition is that PT is at the end of the row, and should
245 be displayed at the start of the next row.
246
247 * xdisp.c (try_cursor_movement): If we end on a partially
248 visible line, end we already decided to scroll, return -1.
249
250 * dispextern.h (ensure_frame_matrix): Add prototype.
251
252 * window.c (delete_window, Fsplit_window)
253 (Fset_window_configuration): Call ensure_frame_matrix.
254
255 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
256 functions.
257 (adjust_frame_glyphs_for_frame_redisplay): If display has been
258 completed, call fake_current_matrices instead of marking frame
259 garbaged.
260
261 2000-12-20 Jason Rumney <jasonr@gnu.org>
262
263 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
264
265 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
266
267 * fns.c (Frequire): Doc fix.
268
269 2000-12-19 Gerd Moellmann <gerd@gnu.org>
270
271 * window.c (window_scroll_pixel_based): Don't use
272 move_it_vertically.
273
274 * dispnew.c (direct_output_for_insert): Fix check for mini-window
275 currently displaying a message.
276
277 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
278 xterm.h.
279 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
280
281 2000-12-18 Andrew Innes <andrewi@gnu.org>
282
283 * w32.c (w32_strerror): New function.
284
285 * w32.h (w32_strerror): New extern.
286
287 * w32fns.c (Fw32_shell_execute): Use it.
288
289 2000-12-18 Gerd Moellmann <gerd@gnu.org>
290
291 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
292
293 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
294
295 * msdos.c (IT_set_face): Obey inverse_video.
296
297 2000-12-18 Kenichi Handa <handa@etl.go.jp>
298
299 * dired.c (directory_files_internal): Always return decoded filenames.
300
301 2000-12-18 Gerd Moellmann <gerd@gnu.org>
302
303 * xterm.c (x_connection_closed): Prevent being called recursively
304 because of an error condition in XtCloseDisplay.
305
306 * xdisp.c (init_iterator): If noninteractive, and the frame's
307 face cache is null, make one.
308
309 * xfns.c (show_busy_cursor): Check for live frames more
310 thoroughly.
311
312 * process.c (wait_reading_process_input): Check for pending
313 input when running timers.
314
315 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
316
317 * msdos.c (IT_write_glyphs): Compute the glyph face from
318 str->face_id.
319
320 2000-12-18 Kenichi Handa <handa@etl.go.jp>
321
322 * process.c (read_process_output): Don't run a filter if the code
323 decoder produces nothing but carryover.
324
325 2000-12-17 Andrew Innes <andrewi@gnu.org>
326
327 * w32.c (sys_rename): Only check errno against EEXIST, and not
328 EACCES, when determining whether rename failed because the target
329 exists. This was resulting in indefinite looping on Windows 9x if
330 the source file was locked by another process.
331
332 * w32fns.c (Ffile_system_info): New function.
333 (syms_of_w32fns): Defsubr it.
334
335 2000-12-17 Gerd Moellmann <gerd@gnu.org>
336
337 * window.c (coordinates_in_window): Fix computation for
338 position on vertical line between mode lines.
339
340 * xfns.c (unwind_create_frame): Return t if frame was deleted.
341 Don't alter tip_frame or tip_window.
342 (unwind_create_tip_frame): Set tip_frame to nil only if frame
343 was deleted.
344
345 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
346 Don't alter tip_frame or tip_window.
347 (unwind_create_tip_frame): Set tip_frame to nil only if frame
348 was deleted.
349
350 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
351
352 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
353 be consistent with the doc string. Reported by NAKAJIMA Mikio
354 <minakaji@osaka.email.ne.jp>.
355
356 2000-12-16 Kenichi Handa <handa@etl.go.jp>
357
358 * xfaces.c (Vface_ignored_fonts): New variable.
359 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
360 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
361
362 2000-12-15 Gerd Moellmann <gerd@gnu.org>
363
364 * dispnew.c (update_window): Detect pending input every nth line
365 updated, i.e. do it depending on real work done, and not on the
366 vpos of the line.
367
368 * xterm.c (expose_window): Don't redraw the window that's
369 currently being updated.
370
371 * window.c (Fset_window_point): Remove test for
372 cursor_in_non_selected_windows.
373
374 * lread.c (read1): Recognize end of file after `\\'.
375
376 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
377 not unwind_create_frame.
378
379 2000-12-15 Dave Love <fx@gnu.org>
380
381 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
382 bcopy & al.
383
384 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
385
386 2000-12-15 Kenichi Handa <handa@etl.go.jp>
387
388 * coding.c (setup_coding_system): Clear all members of the struct
389 coding_system at first.
390 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
391 argument.
392 (code_convert_region): Don't override coding->src_multibyte and
393 coding->dst_multibyte.
394
395 * fns.c (Fmd5): Docstring improved.
396
397 2000-12-15 Miles Bader <miles@gnu.org>
398
399 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
400 are actually marked as mode-lines; otherwise use
401 estimate_mode_line_height.
402
403 2000-12-14 Gerd Moellmann <gerd@gnu.org>
404
405 * editfns.c (Fformat): Prevent a buffer overrun when the format
406 specifies a precision.
407
408 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
409
410 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
411 argument is outside the range [2..3].
412
413 2000-12-14 Andrew Innes <andrewi@gnu.org>
414
415 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
416 nothing to do. Bind inhibit-quit.
417 (tip_frame): Make it a Lisp_Object.
418 (x_create_tip_frame): Set tip_frame after it has been added to
419 Vframe_list.
420 (Fx_show_tip): Don't set tip_frame here.
421 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
422 variables.
423 (unwind_create_frame, unwind_create_tip_frame): New functions.
424 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
425 while a frame is only partially constructed.
426
427 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
428 (x_free_frame_resources): New function.
429 (x_destroy_window): Use it.
430
431 2000-12-14 Gerd Moellmann <gerd@gnu.org>
432
433 * xfns.c (Fx_backspace_delete_keys_p): New function.
434 (syms_of_xfns): Defsubr it.
435
436 * config.in (HAVE_XKBGETKEYBOARD): Add.
437
438 2000-12-14 Kenichi Handa <handa@etl.go.jp>
439
440 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
441 Always store string in multibyte representation in echobuf.
442 (echo_char): Always store string in multibyte representation in
443 echobuf.
444 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
445 (read_key_sequence): Adjusted for the change of echo_prompt.
446
447 * fns.c (Fmd5): Docstring improved.
448
449 * lisp.h (detect_coding_system): Prototype adjusted.
450
451 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
452 (detect_coding_emacs_mule, detect_coding_iso2022,)
453 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
454 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
455 argument MULTIBYTEP. Callers changed.
456 (detect_coding_mask, detect_coding_system): New argument
457 MULTIBYTEP. Callers changed.
458 (decode_coding_string): Set coding->src_multibyte and
459 coding->dst_multibyte before calling detect_coding and detect_eol.
460 Update them after some coding system is detected.
461
462 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
463
464 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
465
466 * keyboard.c (menu_bar_items, tool_bar_items):
467 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
468
469 2000-12-13 Gerd Moellmann <gerd@gnu.org>
470
471 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
472 New variables.
473 (unwind_create_frame, unwind_create_tip_frame): New functions.
474 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
475 while a frame is only partially constructed.
476
477 * xterm.h (x_free_frame_resources): Declare.
478
479 * xterm.c (x_free_frame_resources): New function.
480 (x_destroy_window): Use it.
481
482 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
483 don't interrupt the update for pending input initially, i.e.
484 update at least some lines.
485
486 * keyboard.c (do_mouse_tracking): Make externally visible.
487
488 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
489
490 * xfns.c (gray_bitmap_bits): Declare `char *'.
491
492 2000-12-12 Gerd Moellmann <gerd@gnu.org>
493
494 * xdisp.c (display_tool_bar_line): Make sure that tool bar
495 lines start with a relief line.
496
497 2000-12-12 Dave Love <fx@gnu.org>
498
499 * window.c (Fdisplay_buffer): Doc fix.
500 (Fwindow_list): Remove unused var.
501
502 * buffer.h (mmap_set_vars): Declare.
503
504 * window.h (Fset_window_point): Declare.
505
506 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
507
508 * msdos.c (fast_find_position): Don't overstep the last window row.
509 (IT_note_mouse_highlight): Initialize portion to -1. Remove
510 unused variable `area'. When looking for a row under (X,Y), give
511 up if some of the previous rows is not enabled.
512
513 2000-12-12 Gerd Moellmann <gerd@gnu.org>
514
515 * window.c (Fset_window_point): If displaying cursors in windows
516 other than the selected window, make sure redisplay updates
517 other windows to show the new value of point in the window.
518
519 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
520
521 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
522 the buffer is the sole visible buffer when in the mini-buffer.
523
524 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
525 Bind `inhibit-read-only' to t.
526 (unwind_with_echo_area_buffer): Use AREF.
527
528 * xfns.c (Fx_hide_tip): Simplified.
529
530 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
531 GC_MAKE_GCPROS_NOOPS instead of `1'.
532
533 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
534
535 2000-12-11 Gerd Moellmann <gerd@gnu.org>
536
537 * xfns.c (Fx_hide_tip): Fix last change.
538
539 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
540 nothing to do. Bind inhibit-quit.
541 (tip_frame): Make it a Lisp_Object.
542 (x_create_tip_frame): Set tip_frame after it has been added to
543 Vframe_list.
544 (Fx_show_tip): Don't set tip_frame here.
545
546 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
547
548 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
549 Lisp_Object.
550
551 * dispextern.h: Change external declaration of tip_frame.
552
553 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
554 return an empty string.
555
556 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
557 of the window's update_mode_line flag, since the former is set by
558 force-mode-line-update, not the latter. This makes
559 column-number-mode slightly faster.
560
561 * xdisp.c (try_window_id) <all changes above window start>:
562 Set the cursor.
563
564 2000-12-11 Paul Eggert <eggert@twinsun.com>
565
566 * config.in (HAVE_FTELLO): Remove.
567 (HAVE_FSEEKO): Add.
568 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
569 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
570 HAVE_FTELLO.
571 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
572 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
573
574 2000-12-11 Miles Bader <miles@gnu.org>
575
576 * window.c (displayed_window_lines): Don't round up when
577 converting empty space at bottom to lines.
578 Handle non-newline-terminated final lines properly.
579 (Fwindow_text_height): New function (used to be in lisp).
580 (syms_of_window): Initialize it.
581
582 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
583
584 * syntax.c (scan_lists): Check that the right quote char has the
585 right Sstring syntax when jumping over strings.
586 (init_syntax_once): Use Smax rather than 13.
587
588 2000-12-09 Miles Bader <miles@gnu.org>
589
590 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
591 with PARTIALLY, inverting the sense.
592 (window_scroll_pixel_based): Scroll partially visible lines into
593 place if we hit the beginning or end of the buffer.
594 (displayed_window_lines): Don't include partially visible lines.
595 (Fmove_to_window_line): Skip past any partially visible first line.
596
597 2000-12-08 Gerd Moellmann <gerd@gnu.org>
598
599 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
600
601 * tparam.c (tparam1): Change the way buffers are reallocated to be
602 portable and less obfuscated.
603
604 * termcap.c (tgetent): Change the way buffers are reallocated to
605 be portable and less obfuscated.
606
607 * macros.c (store_kbd_macro_char): Change the way buffers are
608 reallocated to be portable and less obfuscated.
609
610 * lread.c (read1): Change the way buffers are reallocated to be
611 portable and less obfuscated.
612
613 * doc.c (Fsubstitute_command_keys): Change the way buffers
614 are reallocated so that it is portable.
615
616 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
617
618 * dosfns.c (Ffile_system_info): New function.
619 (syms_of_dosfns): Defsubr it.
620
621 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
622
623 * alloc.c (gc_sweep): Add comment.
624
625 2000-12-07 Gerd Moellmann <gerd@gnu.org>
626
627 * sound.c (vox_configure): Change order of ioctls. Don't
628 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
629 Ignore errors when changing volume.
630 (vox_close): Don't reset the device.
631
632 * process.c (read_process_output): Make sure the process marker's
633 position is valid when the process buffer is changed in
634 after-change functions. W3 does that.
635
636 * xfns.c (x_free_gcs): New function.
637
638 * xterm.h (x_free_gcs): Add prototype.
639
640 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
641 freeing GCs here.
642
643 * xterm.c (x_destroy_window): Call x_free_gcs so that
644 resources of non-toolkit X windows will be freed.
645
646 2000-12-07 Andrew Innes <andrewi@gnu.org>
647
648 * w32fns.c (xlfd_charset_of_font): Fix last change.
649
650 2000-12-06 Dave Love <fx@gnu.org>
651
652 * md5.h (__P): Don't define -- it comes from config.h.
653
654 * strftime.c: Change some #if foo to #ifdef foo.
655
656 2000-12-06 Andrew Innes <andrewi@gnu.org>
657
658 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
659
660 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
661 argument.
662 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
663 (w32_list_fonts): Don't choke if pattern doesn't specify a
664 codepage.
665
666 2000-12-06 Gerd Moellmann <gerd@gnu.org>
667
668 * alloc.c (gc_sweep): Prevent symbols read during loadup
669 from being freed.
670
671 * xdisp.c (underlying_face_id): New function.
672 (handle_face_prop, face_before_or_after_it_pos): Use it
673 to determine the face ``under'' a string. Let strings inherit
674 the face of the buffer under them.
675
676 * xfaces.c (face_at_string_position): Update function comment.
677
678 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
679 matrix if the window's left position has changed; we need to
680 redraw it in this case.
681
682 * dispextern.h (struct glyph_matrix): Add member window_left_x.
683
684 * window.c (coordinates_in_window): Check mouse on mode-line or
685 header-line first.
686
687 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
688 advertized by the function documentation.
689
690 * window.c (syms_of_window): Doc fix.
691
692 * sound.c (vox_configure): Set volume for left and right channel.
693 (sound_cleanup): Return nil.
694
695 * xdisp.c (move_it_by_lines): Fix paren typo.
696
697 * xterm.c (x_load_font): Don't use the font's max_bounds for
698 computing the height of the font. If max_bounds' ascent or
699 descent are greater than the font's ascent or descent, this means
700 glyphs overlap, which should be handled now by redisplay.
701
702 * window.c (Veven_window_heights): New variable.
703 (syms_of_window): DEFVAR_LISP it.
704 (Fdisplay_buffer): Check Veven_window_heights before evening the
705 window heights.
706
707 2000-12-06 Miles Bader <miles@gnu.org>
708
709 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
710 update `default-frame-alist' instead of setting no frame parameters.
711
712 2000-12-06 Kenichi Handa <handa@etl.go.jp>
713
714 * composite.c (update_compositions): Fix typo (use the correct
715 variable).
716
717 2000-12-05 Jason Rumney <jasonr@gnu.org>
718
719 * md5.h: Remove underscores from function declarations.
720 (__attribute__, __alignof__) [!__GNUC__]: Define.
721
722 * md5.c: Delay include of md5.h until after namespace cleaning.
723
724 * makefile.w32-in (fns.o): Depend on md5.h
725 (md5.o): New target.
726 (sunfns.o): Remove.
727
728 * makefile.nt: Likewise.
729
730 2000-12-05 Jason Rumney <jasonr@altavista.net>
731
732 * w32term.c (expose_area): Complete last change.
733
734 2000-12-05 Ken Raeburn <raeburn@gnu.org>
735
736 * minibuf.c: Include intervals.h.
737
738 2000-12-05 Jason Rumney <jasonr@gnu.org>
739
740 * w32term.c (x_produce_glyphs): If a font for a component of
741 a composition is not found, use 1 pixel dot ascent and 0 dot
742 descent value to avoid displaying terribly tall empty boxes.
743 (expose_area): Pass x-coordinate relative to the exposed
744 area to x_draw_glyphs instead of a window-relative coordinate.
745
746 2000-12-05 Gerd Moellmann <gerd@gnu.org>
747
748 * xdisp.c (next_element_from_ellipsis): Save face before selective
749 display in saved_face_id, and set face_before_selective_p.
750 (reseat_1): Reset face_before_selective_p.
751 (append_space, extend_face_to_end_of_line): If iterator's
752 face_before_selective_p is set, use the face from saved_face_id.
753 (extend_face_to_end_of_line): For tty frames, make sure to
754 use the right face id when producing spaces at the end of
755 the line.
756
757 * dispextern.h (struct it): Add face_before_selective_p.
758
759 * keyboard.c (record_char): Don't record identical help-echo
760 events in recent_keys.
761
762 * xterm.c [USE_X_TOOLKIT]: Close the display.
763 (xim_close_dpy): Handle case that the display has been closed.
764
765 * xterm.c (x_destroy_window): Reset the frame's X window after
766 destroying it.
767
768 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
769 variable window_width.
770 (line_draw_cost): Fix code skipping over spaces at the end of the
771 line when must_write_spaces is not set.
772 (scrolling_window): Fix code inserting runs in list of all runs.
773
774 2000-12-05 Kenichi Handa <handa@etl.go.jp>
775
776 * coding.c (setup_coding_system): Be sure to initialize
777 coding->category_idx.
778
779 2000-12-04 Gerd Moellmann <gerd@gnu.org>
780
781 * xterm.c (PER_CHAR_METRIC): Removed because not used.
782
783 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
784 area to x_draw_glyphs instead of a window-relative coordinate.
785
786 * fileio.c (auto_save_error): Add parameter ERROR. Show the
787 error in the message.
788
789 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
790 timer after having read a key. It's not good for code reading
791 several keys in a loop, like an input method.
792
793 * fileio.c (Finsert_file_contents): When VISIT is t, don't
794 record undo information for format-decode.
795
796 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
797 current buffer is read-only, not if it isn't.
798
799 * keyboard.c (record_char): Record `help-echo' input events
800 in recent_keys only if they display some help. Don't record
801 `help-echo' events as macro char.
802
803 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
804
805 * editfns.c (save_excursion_restore): Don't move point
806 in another window if it is showing the wrong buffer.
807 Avoid the call to Fwindow_live_p, for speed.
808
809 2000-12-04 Kenichi Handa <handa@etl.go.jp>
810
811 * xfaces.c (struct font_name): New member registry_priority.
812 (split_font_name): Initialize the above member to zero.
813 (concat_font_list): New function.
814 (font_list): Include fonts of all alternative registries.
815 (FONT_POINT_SIZE_QUANTUM): New macro.
816 (better_font_p): Ignore point size difference less than
817 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
818
819 * xterm.c (x_produce_glyphs): If a font for a component of
820 a composition is not found, use 1 pixel dot ascent and 0 dot
821 descent value to avoid displaying terribly tall empty boxes.
822
823 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
824
825 2000-12-03 Ken Raeburn <raeburn@gnu.org>
826
827 * coding.h (code_convert_string1): Declare.
828
829 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
830
831 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
832 Declare.
833
834 2000-12-02 Jason Rumney <jasonr@gnu.org>
835
836 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
837 correctly for single byte character case.
838 (w32_per_char_metric): Do not try to make any assumptions about
839 the metrics of BDF fonts.
840 (x_estimate_mode_line_height): If `mode-line' face
841 hasn't a font, use that of the frame, as drawing glyphs
842 does.
843 (note_mouse_highlight): Change the cursor shape on the vertical
844 border between windows [not enabled].
845
846 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
847
848 * w32fns.c (Fx_create_frame): Reintroduce the call to
849 face-set-after-frame-defaults.
850 (Vx_window_horizontal_drag_shape): New variable.
851 (syms_of_xfns): DEFVAR_LISP it.
852 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
853 enabled].
854
855 2000-12-02 Simon Josefsson <simon@josefsson.org>
856
857 * fns.c (Fmd5): Use a different logic to decide the coding system
858 to use.
859
860 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
861
862 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
863
864 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
865 NULL.
866
867 2000-12-01 Gerd Moellmann <gerd@gnu.org>
868
869 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
870 height for YNegative.
871 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
872 height; also see comment there.
873
874 * window.c (coordinates_in_window): Handle computations for
875 positions on the vertical bar and fringes differently for
876 window-system frames. Consider some pixels near the vertical bar
877 as on the bar if the frame doesn't have vertical scroll bars.
878 Associate positions between mode or header lines with the
879 right window, the left one.
880
881 2000-12-01 Jason Rumney <jasonr@gnu.org>
882
883 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
884
885 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
886 invalid frame.
887
888 2000-12-01 Gerd Moellmann <gerd@gnu.org>
889
890 * window.c (struct saved_window): Add members orig_top and
891 orig_height.
892 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
893 (save_window_save, Fset_window_configuration): Save/restore
894 window's orig_top and orig_height.
895
896 2000-12-01 Jason Rumney <jasonr@gnu.org>
897
898 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
899
900 * w32fns.c (x_set_cursor_color): Fix last change.
901
902 2000-11-30 Gerd Moellmann <gerd@gnu.org>
903
904 * xdisp.c (echo_area_display): If cursor is in the echo area, make
905 sure that the next redisplay displays the minibuffer, so that
906 the cursor will be replaced with what the minibuffer wants.
907
908 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
909 #ifndef instead of using #if.
910 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
911 USE_TOOLKIT_SCROLL_BARS is defined.
912
913 2000-11-30 Jason Rumney <jasonr@gnu.org>
914
915 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
916 x_display_cursor.
917
918 2000-11-30 Gerd Moellmann <gerd@gnu.org>
919
920 * fns.c (Fmd5): Doc fix.
921
922 2000-11-30 Simon Josefsson <simon@josefsson.org>
923
924 * fns.c (Fmd5): New function.
925 (syms_of_fns): Defsubr md5.
926
927 * Makefile.in (obj): Add md5.o
928
929 2000-11-30 Gerd Moellmann <gerd@gnu.org>
930
931 * md5.h, md5.c: New files, taken from glibc.
932
933 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
934
935 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
936 hasn't a font, use that of the frame, as drawing glyphs
937 does.
938
939 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
940
941 * eval.c (Frun_hooks): Allow 0 arguments.
942
943 2000-11-29 Gerd Moellmann <gerd@gnu.org>
944
945 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
946 is over the menu bar widget, say it's not on the frame.
947
948 * xfns.c (Fx_create_frame): Reintroduce the call to
949 face-set-after-frame-defaults.
950
951 * eval.c (Fsignal): Reset handling_signal.
952
953 2000-11-28 Jason Rumney <jasonr@gnu.org>
954
955 * w32menu.c (add_menu_item): Reset menu item text when changing
956 type to radio button.
957
958 2000-11-28 Gerd Moellmann <gerd@gnu.org>
959
960 * xselect.c: Update copyright.
961
962 * window.c (coordinates_in_window): If on a mode or header line,
963 but sufficiently close to its start, return ``on vertical
964 border''. This gives us a way to drag windows horizontally when
965 using toolkit scroll bars.
966
967 * xterm.c (note_mouse_highlight): Change the cursor shape
968 on the vertical border between windows.
969
970 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
971
972 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
973 (syms_of_xfns): DEFVAR_LISP it.
974 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
975
976 * textprop.c (text_read_only): New function.
977 (verify_interval_modification): Use it instead of signaling
978 `text-read-only'. This makes it easier to catch this error
979 with a breakpoint.:
980
981 * xdisp.c (forward_to_next_line_start): Check for newlines,
982 not end of line, which includes CR.
983
984 2000-11-28 Kenichi Handa <handa@etl.go.jp>
985
986 * coding.c (Ffind_coding_systems_region_internal): Be sure to
987 include no-conversion.
988
989 2000-11-27 Jason Rumney <jasonr@gnu.org>
990
991 * w32fns.c (w32_load_system_font): Always mark font as double byte
992 if codepage is unicode.
993
994 2000-11-27 Gerd Moellmann <gerd@gnu.org>
995
996 * xdisp.c (forward_to_next_line_start): If already on a newline,
997 just consume it to avoid unintended skipping over invisible text
998 below.
999
1000 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
1001 `vertical-line', `mode-line' and `header-line' events.
1002
1003 * xdisp.c (try_window_id): Avoid starting to display in the middle
1004 of a character, a TAB for instance. This is easier than to set
1005 up the iterator exactly, and it's not a frequent case, so the
1006 additional effort wouldn't really pay off.
1007
1008 2000-11-26 Andrew Choi <akochoi@i-cable.com>
1009
1010 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
1011 init_window_once.
1012
1013 2000-11-25 Jason Rumney <jasonr@gnu.org>
1014
1015 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
1016 to window_from_coordinates should be pixel coordinates.
1017
1018 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
1019 redisplay handles them properly.
1020
1021 2000-11-25 Miles Bader <miles@gnu.org>
1022
1023 * indent.c (compute_motion): Keep pos_byte in sync with pos.
1024
1025 2000-11-24 Jason Rumney <jasonr@gnu.org>
1026
1027 * w32.c (init_environment): Set LANG environment variable based on
1028 locale settings, if not set.
1029
1030 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
1031 making tool bar smaller. When clearing the frame, also
1032 clear current matrices. Clear frame when tool bar disappears.
1033 Don't use more lines for the tool-bar than is available.
1034 (x_change_window_heights): New function.
1035
1036 2000-11-24 Gerd Moellmann <gerd@gnu.org>
1037
1038 * xdisp.c (init_from_display_pos): If POS says we're already after
1039 an overlay string ending at POS, make sure to pop the iterator
1040 because it will be in front of that overlay string. When POS is
1041 ZV, we've thereby also ``processed'' overlay strings at ZV.
1042
1043 * xfaces.c (lface_from_face_name): Function comment fix.
1044
1045 2000-11-24 Miles Bader <miles@gnu.org>
1046
1047 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
1048 apply `mode-line-inverse-video' -- zero means force display using
1049 the default face, non-zero means display using the specialized face.
1050 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
1051
1052 2000-11-23 Kenichi Handa <handa@etl.go.jp>
1053
1054 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
1055 hard coded `4'.
1056
1057 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1058
1059 * coding.c (decode_coding_emacs_mule): Fix the case of
1060 CODING_EOL_LF, which used uninitialized value of c.
1061
1062 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
1063
1064 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
1065
1066 2000-11-22 Gerd Moellmann <gerd@gnu.org>
1067
1068 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
1069 buffer object.
1070
1071 * frame.h (struct frame): Replace desired_tool_bar_items,
1072 current_tool_bar_items, n_desired_tool_bar_items,
1073 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
1074
1075 * frame.c (make_frame): Change initialization of tool bar
1076 items accordingly.
1077
1078 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
1079 Change references to members deleted from struct frame to use the
1080 new ones.
1081
1082 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
1083 references to members deleted from struct frame to use the new
1084 ones.
1085
1086 * dispnew.c (update_frame): Do nothing with frame's tool bar
1087 items.
1088
1089 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
1090
1091 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
1092 (note_tool_bar_highlight): Change references to members deleted
1093 from struct frame to use the new ones.
1094
1095 2000-11-23 Miles Bader <miles@gnu.org>
1096
1097 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
1098 the face's inverse-video attribute, rather than overriding it.
1099
1100 2000-11-22 Gerd Moellmann <gerd@gnu.org>
1101
1102 * xfns.c (x_set_tool_bar_lines): Clear internal border when
1103 making tool bar smaller.
1104
1105 2000-11-22 Dave Love <fx@gnu.org>
1106
1107 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
1108
1109 2000-11-22 Miles Bader <miles@gnu.org>
1110
1111 * keyboard.c (Vminibuffer_message_timeout): New variable.
1112 (command_loop_1): Use it to determine message timeout.
1113 (syms_of_keyboard): Initialize it.
1114
1115 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
1116
1117 2000-11-22 Kenichi Handa <handa@etl.go.jp>
1118
1119 * sysdep.c: Move the code for declaring h_errno after #include
1120 <netdb.h>.
1121
1122 2000-11-21 Gerd Moellmann <gerd@gnu.org>
1123
1124 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
1125 the menu bar when the tooltip is unmapped.
1126
1127 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
1128 sole visible buffer when we're currently in the mini-buffer, and
1129 give up if so.
1130
1131 2000-11-21 Jason Rumney <jasonr@gnu.org>
1132
1133 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
1134 put on the clipboard.
1135 (Fw32_get_clipboard_data): Compare data on clipboard with saved
1136 copy of what Emacs last put there. If they are the same, do not
1137 use the clipboard copy to avoid losing data due to coding
1138 conversions.
1139
1140 2000-11-22 Miles Bader <miles@gnu.org>
1141
1142 * minibuf.c (Vminibuffer_prompt_properties): New variable.
1143 (syms_of_minibuf): Initialize it.
1144 (read_minibuf): Add properties from Vminibuffer_prompt_properties
1145 to prompt, don't make read-only.
1146
1147 2000-11-21 Gerd Moellmann <gerd@gnu.org>
1148
1149 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
1150 BEFORE/AFTER_POTENTIAL_GC.
1151
1152 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
1153
1154 * buffer.c (mmap_free_1): Avoid a compiler warning.
1155
1156 * term.c, cm.c: Don't try to include termcap.h; see comment there.
1157
1158 2000-11-21 Kenichi Handa <handa@etl.go.jp>
1159
1160 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
1161 ... #endif scope.
1162
1163 2000-11-20 Gerd Moellmann <gerd@gnu.org>
1164
1165 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
1166 screen supports it.
1167
1168 * s/gnu-linux.h: Don't use `#cpu'.
1169
1170 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
1171 not defined in mman.h.
1172
1173 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
1174 variables.
1175 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
1176 and store an index in the XClientMessageEvent. Storing a
1177 Lisp_Object or pointer can fail on a 64 bit system, since X only
1178 transfers 32 bits.
1179 (x_scroll_bar_to_input_event): Get the window from
1180 scroll_bar_windows.
1181
1182 2000-11-20 Dave Love <fx@gnu.org>
1183
1184 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
1185
1186 2000-11-20 Gerd Moellmann <gerd@gnu.org>
1187
1188 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
1189
1190 2000-11-20 Kenichi Handa <handa@etl.go.jp>
1191
1192 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
1193 by WIDTH.
1194
1195 * alloc.c (make_string): Fix previous change. Be sure to make
1196 unibyte string correctly.
1197
1198 2000-11-19 Gerd Moellmann <gerd@gnu.org>
1199
1200 * window.c (Fwindow_list): Change parameter list to be XEmacs
1201 compatible.
1202 (window_list_1): New function.
1203 (window_loop): Use it instead of Fwindow_list.
1204
1205 * sysdep.c (emacs_ospeed): New variable.
1206 (toplevel): Don't declare ospeed extern.
1207 (init_baud_rate): Use emacs_ospeed instead of ospeed.
1208
1209 * termcap.c (ospeed): Remove.
1210 (tputs) [!emacs]: Remove unused code.
1211 (tgetent): Avoid a compiler warning.
1212
1213 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1214 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
1215 SCROLL_BAR_X_WIDGET with additional argument DPY.
1216
1217 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
1218 removed.
1219 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
1220 Take the X display as additional argument.
1221 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
1222 `Widget' is a pointer type that's not easily stored in Lisp_Object
1223 form in a portable way.
1224
1225 * dispnew.c (update_text_area): Fix last change.
1226
1227 2000-11-18 Gerd Moellmann <gerd@gnu.org>
1228
1229 * xdisp.c: Use BINDING_STACK_SIZE throughout.
1230
1231 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
1232 clear current matrices.
1233
1234 * buffer.c (mmap_enlarge): Don't print a message on stderr
1235 if mapping new memory at the end of the existing region fails.
1236
1237 * dispnew.c (update_text_area): Don't skip over equal glyphs
1238 when the last current glyph overlaps the glyph to its right.
1239
1240 2000-11-18 Miles Bader <miles@gnu.org>
1241
1242 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
1243 lines that *end* with "..." too (that's the most common case!).
1244
1245 2000-11-18 Gerd Moellmann <gerd@gnu.org>
1246
1247 * xdisp.c (resize_mini_window): Temporarily change to the
1248 mini-window's buffer if necessary.
1249
1250 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
1251 the tooltip obscures less text under it.
1252
1253 2000-11-17 Gerd Moellmann <gerd@gnu.org>
1254
1255 * puresize.h (BASE_PURESIZE): Increase to 700000.
1256
1257 2000-11-18 Jason Rumney <jasonr@gnu.org>
1258
1259 * w32term.c (w32_draw_bitmap): Use face to set colors.
1260
1261 2000-11-17 Dave Love <fx@gnu.org>
1262
1263 * lread.c (Fload): Fix #ifdef for pcc.
1264
1265 2000-11-17 Gerd Moellmann <gerd@gnu.org>
1266
1267 * xdisp.c (pos_visible_p): Compute the default character height
1268 differently.
1269
1270 2000-11-16 Gerd Moellmann <gerd@gnu.org>
1271
1272 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
1273 knowing the line's height; use the default font's height in that
1274 case.
1275
1276 * xfaces.c (weight_table): Add `demi' with the same meaning as
1277 `demibold'.
1278
1279 2000-11-16 Kenichi Handa <handa@etl.go.jp>
1280
1281 * dispnew.c (null_row): New global static variable.
1282 (clear_glyph_row): Delete local static variable null_row.
1283
1284 2000-11-15 Jason Rumney <jasonr@gnu.org>
1285
1286 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
1287 (w32_alloc_lighter_color): Use new brightness calculations from
1288 xterm.c. Scale delta to be in the range expected by W32.
1289 (w32_draw_relief_rect): Use frame relief colors.
1290
1291 2000-11-15 Gerd Moellmann <gerd@gnu.org>
1292
1293 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
1294 (Qinhibit_default_face_x_resources): New variable.
1295 (syms_of_frame): Initialize it.
1296 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
1297
1298 * xdisp.c (pos_visible_p): Improve function comment.
1299
1300 * lisp.h (BINDING_STACK_SIZE): New macro.
1301
1302 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
1303 reading the directory if readdir returns null and errno is EAGAIN
1304 or EINTR.
1305
1306 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
1307
1308 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
1309 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
1310 Set amount_to_scroll to max of dx and scroll_step so that
1311 scroll-conservatively doesn't defeat scroll-step>1.
1312 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
1313 scroll-conservatively for line-at-a-time scrolling.
1314
1315 2000-11-14 Gerd Moellmann <gerd@gnu.org>
1316
1317 * window.c (Fpos_visible_in_window_p): Call pos_visible with
1318 extra argument.
1319
1320 * xdisp.c (current_mode_line_height, current_header_line_height):
1321 New variables.
1322 (init_xdisp): Initialize them.
1323 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
1324 and use exact mode line heights if it is set.
1325
1326 * lisp.h (pos_visible_p): Change prototype.
1327
1328 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
1329 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
1330 and current_header_line_height first.
1331 (current_mode_line_height, current_header_line_height): Declare
1332 extern.
1333
1334 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
1335
1336 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
1337 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
1338 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
1339
1340 2000-11-14 Miles Bader <miles@gnu.org>
1341
1342 * xterm.c (x_alloc_lighter_color): Include an additive component
1343 too for dark colors, because FACTOR isn't enough.
1344 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
1345 New macros.
1346
1347 2000-11-13 Gerd Moellmann <gerd@gnu.org>
1348
1349 * keyboard.c (show_help_echo): Call message3_nolog with number of
1350 bytes in the help string as 2nd parameter, instead of the number
1351 of characters.
1352
1353 2000-11-13 Miles Bader <miles@gnu.org>
1354
1355 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
1356 (Fload): Use new openp return protocol.
1357 Don't try to use Vload_source_file_function to load .elc files.
1358 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
1359 openp return protocol.
1360 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
1361
1362 2000-11-11 Kenichi Handa <handa@etl.go.jp>
1363
1364 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
1365
1366 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
1367 Defined these macros.
1368 (NLIST_STRUCT): Avoid re-defining it.
1369
1370 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
1371 -I/usr/contrib/X11R6/include.
1372 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
1373
1374 2000-11-10 Jason Rumney <jasonr@gnu.org>
1375
1376 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
1377
1378 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
1379 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
1380
1381 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
1382 (Qw32_charset_vietnamese): New symbol.
1383 (xlfd_charset_of_font): New function.
1384 (w32_load_system_font): Use it.
1385 (x_to_w32_charset): Use Fassoc to find charset info. Special case
1386 when Vw32_charset_info_alist is nil to ensure default face always
1387 has font. Use Fcar and Fcdr for safety.
1388 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
1389 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
1390 pseudo-codepages for special cases.
1391 (w32_to_x_font): New parameter to allow charset portion to be
1392 specified where there is many to one mapping. Callers changed.
1393 (w32_list_fonts): Avoid listing fonts that won't display.
1394
1395 2000-11-10 Gerd Moellmann <gerd@gnu.org>
1396
1397 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
1398 (font_list_1): Renamed from font_list.
1399 (font_list): New function, trying alternative registries from
1400 Vface_alternative_font_registry_alist.
1401 (Finternal_set_alternative_font_registry_alist): New function.
1402 (syms_of_xfaces): Initialize and Staticpro
1403 Vface_alternative_font_registry_alist. Defsubr
1404 Finternal_set_alternative_font_registry_alist.
1405
1406 2000-11-09 Ken Raeburn <raeburn@gnu.org>
1407
1408 * lisp.h (Flooking_at): Declare.
1409
1410 2000-11-09 Gerd Moellmann <gerd@gnu.org>
1411
1412 * dired.c (directory_files_internal): Fix a braino.
1413
1414 * dired.c (directory_files_internal): Add missing GCPRO's.
1415 Some cleanup.
1416
1417 2000-11-08 Gerd Moellmann <gerd@gnu.org>
1418
1419 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
1420 (resize_mini_window): Return quickly if Vresize_mini_window is
1421 nil. Don't return if Vmax_mini_window_height is nil.
1422
1423 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
1424 (syms_of_xdisp): Initialize them.
1425 (resize_mini_window): Act according to the setting of
1426 Vresize_mini_window.
1427 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
1428
1429 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
1430 scroll bar widget after configuring it, so that it will appear at
1431 the right position from the start.
1432 (XTredeem_scroll_bar): Cleaned up.
1433
1434 2000-11-08 Kenichi Handa <handa@etl.go.jp>
1435
1436 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
1437 font is taller than the frame line, we don't have to bias the
1438 division by two.
1439
1440 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
1441
1442 2000-11-07 Dave Love <fx@gnu.org>
1443
1444 * config.in (HAVE_MKSTEMP): Add.
1445
1446 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
1447
1448 2000-11-07 Gerd Moellmann <gerd@gnu.org>
1449
1450 * window.c (Fset_window_configuration): Don't try to preserve
1451 point in the current buffer, if that buffer is displayed in more
1452 than one window.
1453
1454 * xfaces.c (lookup_named_face): If default face isn't realized,
1455 try to realize it. Return -1 if not successful.
1456 (Fx_list_fonts): Handle case that face cannot be determined.
1457 (Fface_font): Likewise.
1458
1459 2000-11-06 Gerd Moellmann <gerd@gnu.org>
1460
1461 * window.c (displayed_window_lines): Detect partially
1462 visible lines at the bottom correctly.
1463
1464 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
1465
1466 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
1467 when ensuring we don't do visit in indirect buffer.
1468
1469 2000-11-06 Kenichi Handa <handa@etl.go.jp>
1470
1471 * composite.h (compose_chars_in_text): Add prototype.
1472
1473 * composite.c (Vcomposition_function_table): New variable.
1474 (Qcomposition_function_table): New variable.
1475 (run_composition_function): Call
1476 Vcompose_chars_after_function with three arguments.
1477 (compose_chars_in_text): New function.
1478 (syms_of_composite): Modified the doc-string of
1479 Vcompose_chars_after_function. Declare composition-function-table
1480 as a lisp variable, and initialize it.
1481
1482 * xfns.c (x_encode_text): Suppress producing escape sequences for
1483 composition.
1484
1485 * xselect.c: Include composite.h.
1486 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
1487
1488 2000-11-05 Andrew Innes <andrewi@gnu.org>
1489
1490 * w32term.c (x_produce_glyphs): Fix typo in enum name.
1491
1492 * sysdep.c (read_input_waiting): Remove extraneous argument to
1493 read_socket_hook.
1494
1495 * w32fns.c (Fx_server_version): Include w32_build_number in the
1496 return list.
1497
1498 * w32heap.c (w32_build_number): New variable.
1499 (cache_system_info): Set it.
1500
1501 * w32heap.h (w32_build_number): Add extern.
1502
1503 * emacs.c (syms_of_emacs): Update docstring for
1504 system-configuration, to reflect the actual usage on MS-Windows.
1505
1506 2000-10-31 Gerd Moellmann <gerd@gnu.org>
1507
1508 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
1509 process idle timers while waiting for another event.
1510
1511 * dispnew.c (update_frame_line): Handle case where spaces in
1512 the default face are colored.
1513
1514 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
1515 window height hasn't changed.
1516
1517 2000-10-31 Jason Rumney <jasonr@gnu.org>
1518
1519 * w32term.c (x_produce_glyphs): Handle composite characters.
1520 (x_draw_glyph_string_foreground)
1521 (x_draw_composite_glyph_string_foreground): Restore old font.
1522
1523 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
1524
1525 * minibuf.c (read_minibuf): Reset the undo history just before
1526 starting the recursive-edit.
1527
1528 2000-10-30 Gerd Moellmann <gerd@gnu.org>
1529
1530 * xfaces.c (menu_face_change_count): New variable.
1531 (Finternal_set_lisp_face_attribute): Increment it for changes
1532 of the `menu' face.
1533 (realize_basic_faces): Reflect changes in the `menu' faces
1534 in menu bars.
1535
1536 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
1537 dy obtained from the iterator's y-position after moving from
1538 scroll_margin_pos to PT; see comment there.
1539
1540 * xdisp.c (safe_eval_handler): Call add_to_log.
1541
1542 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
1543 is not a symbol or string.
1544
1545 * xdisp.c (echo_area_display): Don't perform a display update from
1546 inside redisplay. The update will happen anyway at the end of
1547 redisplay, and it can confuse redisplay (GC messages while
1548 redisplaying, for instance.)
1549
1550 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
1551
1552 * xrdb.c (x_load_resources): Use the class name in the defaults.
1553
1554 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
1555 (regex_compile): Catch bogus \(\1\).
1556
1557 2000-10-30 Gerd Moellmann <gerd@gnu.org>
1558
1559 * xterm.c (x_alloc_nearest_color): Fix last change to compare
1560 RGB values.
1561
1562 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
1563 we have a color cache, check that the cached color equals the
1564 allocated color. If not, clear the color cache.
1565
1566 * window.c (displayed_window_lines): Change buffers if necessary.
1567 Fix computation of displayed lines.
1568
1569 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
1570 update_menu_bindings to DEFVAR_BOOL.
1571
1572 2000-10-30 Kenichi Handa <handa@etl.go.jp>
1573
1574 * search.c (Fset_match_data): Be sure to make search_regs always sane.
1575
1576 * puresize.h (BASE_PURESIZE): Increase to 680000.
1577
1578 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
1579
1580 2000-10-29 Jason Rumney <jasonr@gnu.org>
1581
1582 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
1583
1584 * w32term.c (w32_bdf_per_char_metric): Negate descent.
1585 (w32_cache_char_metrics): Handle possibility that 'x' does not
1586 exist in a BDF font.
1587 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
1588
1589 * w32bdf.h (bdffont): Add nchars.
1590
1591 * w32bdf.c (set_bdf_font_info): Set it.
1592 (w32_BDF_TextOut): Swap byte order of double byte characters.
1593 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
1594
1595 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1596
1597 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
1598 don't override the colors in frame's param_alist, unless they are
1599 unspecified.
1600
1601 * term.c (reassert_line_highlight): If inverse_video is non-zero,
1602 reverse the effect of the highlight flag.
1603
1604 2000-10-27 Ken Raeburn <raeburn@gnu.org>
1605
1606 * window.h (Fwindow_live_p): Declare.
1607
1608 * undo.c (record_delete): Check that last_undo_buffer is really a
1609 buffer before applying XBUFFER to it.
1610
1611 * keymap.c (where_is_internal): Pass lisp object, not integer, to
1612 Faref.
1613
1614 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
1615
1616 * lisp.h (KEYMAPP): New macro.
1617 (get_keymap): Remove.
1618 (get_keymap_1): Rename get_keymap.
1619
1620 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
1621
1622 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
1623
1624 * xmenu.c (single_submenu): Use KEYMAPP.
1625 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
1626 Use KEYMAPP rather than Fkeymapp.
1627
1628 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
1629
1630 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
1631 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
1632 Use KEYMAPP rather than Fkeymapp.
1633 (single_submenu): Use KEYMAPP.
1634 (w32_menu_show, w32_dialog_show): Use TRUE.
1635
1636 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
1637
1638 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
1639 (Fkeymapp): Use KEYMAPP.
1640 (get_keymap): Rename from get_keymap_1. Remove old def.
1641 Return t when autoload=0 and error=0 and the keymap needs autoloading.
1642 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
1643 (Fminor_mode_key_binding): Don't raise an error if the binding
1644 is not a keymap.
1645 (Fuse_global_map, Fuse_local_map): Allow autoloading.
1646 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
1647
1648 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
1649 Allow Vspecial_event_map to be autoloaded.
1650 (menu_bar_items): Fetch the keymap rather than using keymapp.
1651 (menu_bar_one_keymap): No need to follow func-indirect any more.
1652 (parse_menu_item): get_keymap_1 -> get_keymap.
1653 (tool_bar_items): Fetch the keymap rather than using keymapp.
1654 (read_key_sequence): Use KEYMAPP.
1655
1656 * intervals.c (get_local_map): Use get_keymap rather than following
1657 function-indirections explicitly.
1658
1659 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
1660
1661 2000-10-27 Jason Rumney <jasonr@gnu.org>
1662
1663 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
1664 point, as Windows has oversized fonts.
1665
1666 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
1667
1668 2000-10-27 Gerd Moellmann <gerd@gnu.org>
1669
1670 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
1671 (freehook, reallochook): Handle null pointer arguments.
1672 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
1673
1674 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
1675
1676 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
1677 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
1678 Giving in to popular pressure to shut up the compiler with casts.
1679
1680 2000-10-27 Gerd Moellmann <gerd@gnu.org>
1681
1682 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
1683 signed value, and use a default value computed from the font's
1684 maximum descent.
1685
1686 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
1687
1688 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
1689 that specify a negative underline position can still use underlines.
1690
1691 * window.c (Fpos_visible_in_window_p): Make POS default to
1692 WINDOW's point, not the current buffer's point.
1693
1694 2000-10-26 Dave Love <fx@gnu.org>
1695
1696 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
1697 when it's necessary.
1698
1699 2000-10-26 Gerd Moellmann <gerd@gnu.org>
1700
1701 * window.c (size_window): Compute size difference from sum of old
1702 child window sizes instead of from parent's size.
1703
1704 * xdisp.c (pos_visible_p): Change current buffer if necessary.
1705 Handle obscured lines at the top of the window.
1706
1707 * frame.c (Fdelete_frame): Doc fix. Move running the hook
1708 down after the last error condition check.
1709
1710 * frame.c (Fdelete_frame): Run delete-frame-hook.
1711
1712 2000-10-26 Kenichi Handa <handa@etl.go.jp>
1713
1714 * coding.c (decode_coding): Fix previous change (check also
1715 CODING_MODE_LAST_BLOCK).
1716
1717 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
1718
1719 * regex.c: More `unsigned char' -> `re_char' changes.
1720 Also change several `int' into `re_wchar_t'.
1721 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
1722 (PUSH_FAILURE_POINTER): Don't cast any more.
1723 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
1724 We want GCC to complain, since this piece of code makes
1725 re_match non-reentrant, which *should* be fixed.
1726 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
1727 (EXTEND_BUFFER): Use RETALLOC.
1728 (SET_LIST_BIT): Don't cast.
1729 (re_wchar_t): New type.
1730 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
1731 that those two functions will always properly return.
1732 (IMMEDIATE_QUIT_CHECK): Cast to void.
1733 (analyse_first): Use recursion rather than an explicit stack.
1734 (re_compile_fastmap): Can't fail anymore.
1735 (re_search_2): Don't check re_compile_fastmap for failure.
1736 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
1737 Now also sets the new value (passed in a new argument).
1738 (re_match_2_internal): Use it.
1739 Also, use a new var `reg' of type size_t when looping through regs
1740 rather than reuse the inappropriate `mcnt'.
1741
1742 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
1743 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
1744 (where_is_internal): Renamed from Fwhere_is_internal.
1745 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
1746 (Fwhere_is_internal): New function wrapping where_is_internal.
1747 (where_is_internal_1): Handle the case where we're filling the cache.
1748 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
1749
1750 2000-10-25 Miles Bader <miles@gnu.org>
1751
1752 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
1753
1754 2000-10-25 Gerd Moellmann <gerd@gnu.org>
1755
1756 * window.c (pos_fully_visible_p): Removed.
1757 (Fpos_visible_in_window_p): Use pos_visible_p to determine
1758 if position is visible and/or fully visible.
1759
1760 * lisp.h (pos_visible_p): Add prototype.
1761
1762 * xdisp.c (pos_visible_p): New function.
1763
1764 2000-10-25 Kenichi Handa <handa@etl.go.jp>
1765
1766 * process.c (send_process): If OBJECT is t, it means that the data
1767 is from C string, but we should encode it. Before calling
1768 setup_raw_text_coding_system, be sure to flush out data by the
1769 previous coding system.
1770
1771 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
1772
1773 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
1774 assignment of startpos to prev when startpos == pos.
1775
1776 * editfns.c (find_field): Set the field stickiness correctly from
1777 overlay fields. Use renamed `text_property_stickiness'.
1778 (text_property_stickiness): Renamed from `char_property_stickiness'.
1779 Only check text properties, not overlays.
1780 * textprop.c (get_char_property_and_overlay): New function.
1781 (Fget_char_property): Use it.
1782 * intervals.h (get_char_property_and_overlay): Add declaration.
1783
1784 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
1785
1786 * keymap.c: Use AREF, ASET and ASIZE macros.
1787 (Fmake_sparse_keymap): Docstring fix.
1788 (synkey): Remove.
1789 (shadow_lookup): Move up.
1790 Handle the case where lookup-key returns an integer.
1791 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
1792 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
1793 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
1794 Simplify/rewrite the keymap-finding code.
1795 Add check for command shadowing, using shadow_lookup.
1796
1797 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
1798
1799 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
1800 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
1801 a symbol.
1802
1803 2000-10-24 Andrew Innes <andrewi@gnu.org>
1804
1805 * dired.c (directory_files_internal_unwind): New function.
1806 (directory_files_internal): Use it to ensure closedir is called
1807 even if expand-file-name or file-attributes throw, eg. because of
1808 a user interrupt. Also enable immediate_quit while calling
1809 re_search, so that matching can be interrupted as well.
1810
1811 2000-10-24 Andrew Innes <andrewi@gnu.org>
1812
1813 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
1814 NT-Emacs only.
1815 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
1816 so that re_search functions only quit when callers expect them to.
1817
1818 2000-10-24 Kenichi Handa <handa@etl.go.jp>
1819
1820 * regex.c (regex_compile): Change the way of handling a range from
1821 a char less than 256 to a char not less than 256.
1822
1823 2000-10-24 Gerd Moellmann <gerd@gnu.org>
1824
1825 * window.c (size_window): Prevent setting window's width or
1826 height to a negative value (esp. with XSETFASTINT).
1827
1828 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
1829 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
1830 (protect_malloc_state) [GC_MALLOC_CHECK &&
1831 GC_PROTECT_MALLOC_STATE]: New function.
1832 (PROTECT_MALLOC_STATE): New macro.
1833 (__malloc_initialize, morecore, _malloc_internal)
1834 (_free_internal) _realloc_internal): Use it to make _heapinfo
1835 read-only outside of gmalloc.
1836
1837 * keymap.c: Update copyright.
1838
1839 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
1840 a symbol.
1841
1842 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
1843
1844 * filelock.c (unlock_all_files): Use unlock_file to expand each
1845 buffer's file_truename before trying remove its lock file.
1846
1847 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
1848
1849 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
1850 or CRLF, decode EOLs.
1851
1852 2000-10-24 Kenichi Handa <handa@etl.go.jp>
1853
1854 * window.c (Fdisplay_buffer): Fix doc.
1855
1856 2000-10-23 Jason Rumney <jasonr@gnu.org>
1857
1858 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
1859 ASCII font of default fontset on Windows.
1860
1861 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
1862 xterm.c comment below).
1863
1864 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
1865
1866 2000-10-23 Gerd Moellmann <gerd@gnu.org>
1867
1868 * xterm.c (x_connection_closed): Reset handling_signal.
1869
1870 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
1871 null.
1872
1873 2000-10-23 Miles Bader <miles@gnu.org>
1874
1875 * window.c (window_scroll_pixel_based, window_scroll_line_based):
1876 Pass nil for FULLY argument to Fpos_visible_in_window_p to
1877 maintain old behavior.
1878 * minibuf.c (Fminibuffer_complete): Likewise.
1879
1880 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
1881
1882 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
1883 that when a font can't be exactly centered, it errs up rather than
1884 down.
1885
1886 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
1887
1888 * fns.c (Fbase64_decode_string): The decoded result should be
1889 unibyte.
1890
1891 2000-10-23 Andrew Choi <akochoi@i-cable.com>
1892
1893 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
1894
1895 * dispnew.c [macintosh]: Include macterm.h.
1896 (init_display) [macintosh]: Initialization for window system.
1897
1898 * emacs.c (main) [macintosh]: Call syms_of_textprop,
1899 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
1900 syms_of_search, x_term_init, and init_keyboard before calling
1901 init_window_once. Also, call syms_of_xmenu.
1902
1903 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
1904 default fontset to Monaco.
1905
1906 * frame.c [macintosh]: Include macterm.h. Remove declarations of
1907 NewMacWindow and DisposeMacWindow.
1908 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
1909 instead of calling NewMacWindow and setting fields of
1910 f->output_data.mac directly. Call init_frame_faces.
1911 (Fdelete_frame) [macintosh]: Remove unused code.
1912 (Fmodify_frame_parameters) [macintosh]: Call
1913 x_set_frame_parameters instead of mac_set_frame_parameters.
1914
1915 * frame.h [macintosh]: Define menu_bar_lines field in struct
1916 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
1917
1918 * keyboard.c [macintosh]: Include macterm.h.
1919 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
1920 and menu_bar_activate_event type events as for X and NT.
1921 (make_lispy_event) [macintosh]: Construct lisp events of type
1922 MENU_BAR_EVENT as for X and NT.
1923
1924 * sysdep.c [macintosh]: Remove declaration for sys_signal.
1925 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
1926 (sys_subshell) [macintosh]: Remove definition entirely.
1927 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
1928 Vwindow_system_version here. Remove initialization of
1929 Vx_bitmap_file_path.
1930 (read_input_waiting): Correct the number of parameters passed to
1931 read_socket_hook.
1932 Move all Macintosh functions to mac/mac.c.
1933
1934 * term.c [macintosh]: Include macterm.h.
1935
1936 * window.c [macintosh]: Include macterm.h.
1937
1938 * xdisp.c [macintosh]: Include macterm.h. Declare
1939 set_frame_menubar and pending_menu_activation.
1940 (echo_area_display) [macintosh]: Do not return if terminal frame
1941 is the selected frame.
1942 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
1943 Allow only the selected frame to set menu bar.
1944 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
1945 calling FRAME_EXTERNAL_MENU_BAR (f).
1946 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
1947
1948 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
1949 and check_x. Declare XCreateGC. Define x_create_gc and
1950 x_free_gc. Initialize font_sort_order.
1951 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
1952 but call x_list_fonts instead of w32_list_fonts.
1953 (Finternal_face_x_get_resource) [macintosh]: Do not call
1954 display_x_get_resource.
1955 (prepare_face_for_display) [macintosh]: Set xgcv.font.
1956 (realize_x_face) [macintosh]: Load the font if it is specified in
1957 ATTRS.
1958 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
1959 to Qt.
1960
1961 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
1962
1963 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
1964 is nil: since we go to the end of submap anyway, we'd end up
1965 setting nil to nil.
1966 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
1967 doesn't obey autoload.
1968
1969 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1970
1971 * msdos.c (dos_set_window_size): Update screen dimension variables.
1972
1973 2000-10-21 Jason Rumney <jasonr@gnu.org>
1974
1975 * w32term.c (w32_cache_char_metrics): Double check that font is
1976 really fixed pitch before trusting tmPitchAndFamily.
1977
1978 2000-10-21 Andrew Innes <andrewi@gnu.org>
1979
1980 * w32gui.h (w32_char_font_type): Move enum from w32term.c
1981
1982 * w32term.h: Extern decl for w32_cache_char_metrics.
1983
1984 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
1985
1986 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
1987 (w32_unload_font): Free per_char array if present.
1988
1989 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
1990 cached information in emulated XFontStruct to handle common cases
1991 quickly. Do not allocate XCharStruct for return.
1992 (w32_native_per_char_metric): New function.
1993 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
1994 allocating one.
1995 (x_produce_glyphs): Don't get an HDC. Change calls to
1996 w32_per_char_metric to match arg change above. Remove calls to
1997 free results.
1998 (w32_get_glyph_overhangs): Ditto.
1999 (w32_cache_char_metrics): New function.
2000
2001 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
2002 ($(BLD)/casefiddle.$(O)): Remove compile command.
2003 ($(BLD)/gmalloc.$(O)): Remove compile command.
2004 ($(BLD)/dispnew.obj):
2005 ($(BLD)/keyboard.obj):
2006 ($(BLD)/w32inevt.obj):
2007 ($(BLD)/w32bdf.obj):
2008 ($(BLD)/alloc.obj):
2009 ($(BLD)/buffer.obj):
2010 ($(BLD)/editfns.obj):
2011 ($(BLD)/emacs.obj):
2012 ($(BLD)/fileio.obj):
2013 ($(BLD)/fns.obj):
2014 ($(BLD)/indent.obj):
2015 ($(BLD)/insdel.obj):
2016 ($(BLD)/intervals.obj):
2017 ($(BLD)/minibuf.obj):
2018 ($(BLD)/print.obj):
2019 ($(BLD)/scroll.obj):
2020 ($(BLD)/sysdep.obj):
2021 ($(BLD)/textprop.obj):
2022 ($(BLD)/widget.obj):
2023 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
2024 ($(BLD)/term.obj): Add dependency on dispextern.h.
2025
2026 * makefile.nt ($(BLD)\dispnew.obj):
2027 ($(BLD)\keyboard.obj):
2028 ($(BLD)\w32inevt.obj):
2029 ($(BLD)\w32bdf.obj):
2030 ($(BLD)\alloc.obj):
2031 ($(BLD)\buffer.obj):
2032 ($(BLD)\editfns.obj):
2033 ($(BLD)\emacs.obj):
2034 ($(BLD)\fileio.obj):
2035 ($(BLD)\fns.obj):
2036 ($(BLD)\indent.obj):
2037 ($(BLD)\insdel.obj):
2038 ($(BLD)\intervals.obj):
2039 ($(BLD)\minibuf.obj):
2040 ($(BLD)\print.obj):
2041 ($(BLD)\scroll.obj):
2042 ($(BLD)\sysdep.obj):
2043 ($(BLD)\textprop.obj):
2044 ($(BLD)\widget.obj):
2045 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
2046 ($(BLD)\term.obj): Add dependency on dispextern.h
2047
2048 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2049
2050 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
2051 with an additional argument of Qt.
2052
2053 2000-10-21 Miles Bader <miles@gnu.org>
2054
2055 * window.c (pos_fully_visible_in_window_p): New function.
2056 (Fpos_visible_in_window_p): Add FULLY argument.
2057 Use pos_fully_visible_in_window_p.
2058 (window_scroll_pixel_based, window_scroll_line_based): Update
2059 calls to Fpos_visible_in_window_p.
2060 * lisp.h (Fpos_visible_in_window_p): Update prototype
2061
2062 2000-10-20 Gerd Moellmann <gerd@gnu.org>
2063
2064 * alloc.c (toplevel): Conditionalize compilation of mem_*
2065 functions differently.
2066
2067 2000-10-20 Jason Rumney <jasonr@gnu.org>
2068
2069 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
2070 mem_init where it used to be. mem_z etc not defined otherwise.
2071
2072 2000-10-20 Gerd Moellmann <gerd@gnu.org>
2073
2074 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
2075 GC_MALLOC_CHECK.
2076 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
2077 structure definition and related variabled to the top of the file.
2078 Include this code when GC_MALLOC_CHECK is defined.
2079 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
2080 register/unregister allocated region.
2081 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
2082 which isn't allocated.
2083 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
2084 something which is already in use.
2085 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
2086 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
2087 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
2088 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
2089
2090 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
2091 _malloc_internal instead of malloc.
2092 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
2093 of free.
2094
2095 2000-10-20 Andrew Innes <andrewi@gnu.org>
2096
2097 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
2098 Windows.
2099 (my_strftime) <macro>: Don't use macro arg list when redefining as
2100 _strftime_copytm.
2101 (my_strftime) <function>: Supply 0 as ut argument.
2102
2103 2000-10-19 Jason Rumney <jasonr@altavista.net>
2104
2105 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
2106 including dispextern.h, as it stops faces from working.
2107
2108 * w32fns.c (Fx_create_frame): Don't bother calling
2109 face-set-after-frame-default since the caller does it for us
2110 anyway. Clean up calls to x_get_arg to be consistent with X.
2111
2112 * w32term.c (x_produce_glyphs): Handle
2113 unibyte_display_via_language_environment correctly.
2114 (w32_draw_box_rect): Fix the calculation of width and height.
2115
2116 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
2117 as it has stopped working.
2118 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
2119 menu-bar.
2120
2121 2000-10-19 Gerd Moellmann <gerd@gnu.org>
2122
2123 * eval.c (skip_debugger): Prevent a compiler warning.
2124 (Fcondition_case): Likewise.
2125 (Fbacktrace_frame): Use a null interactive spec.
2126
2127 2000-10-19 Kenichi Handa <handa@etl.go.jp>
2128
2129 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
2130
2131 2000-10-18 Gerd Moellmann <gerd@gnu.org>
2132
2133 * strftime.c: Sync with glibc, file version 1.78.
2134 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
2135 should no longer be used according to ISO 8601.
2136
2137 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
2138 no map for meta_prefix_char, don't try to use it as a keymap.
2139 Instead, if T_OK is non-zero, look up a default binding, if any,
2140 otherwise, if T_OK is zero, return nil.
2141
2142 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
2143 (x_to_xcolors, png_load): Use x_query_color.
2144
2145 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
2146 functions.
2147 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
2148 which can be slow.
2149 (x_copy_color, x_alloc_lighter_color): Likewise.
2150
2151 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
2152 (x_query_color, x_query_colors): Add prototype.
2153
2154 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
2155 check_string_bytes only if not noninteractive, increase count to 50.
2156
2157 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
2158
2159 * insdel.c (adjust_markers_for_delete): Handle before-insertion
2160 markers correctly.
2161
2162 2000-10-17 Gerd Moellmann <gerd@gnu.org>
2163
2164 * alloc.c (pure_bytes_used): Renamed from pureptr.
2165 (ALIGN): New macro.
2166 (pure_alloc): New function.
2167 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
2168 Use it.
2169 (Fpurecopy): Use PURE_POINTER_P.
2170
2171 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
2172 PT has moved backward.
2173
2174 * xdisp.c (cursor_row_p): Take continued lines into account.
2175
2176 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
2177 string's size_byte.
2178 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
2179 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
2180 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
2181 string allocated.
2182
2183 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
2184 of selective display off while searching for the next line start.
2185
2186 2000-10-17 Kenichi Handa <handa@etl.go.jp>
2187
2188 * Makefile.in (term.o): Depend on dispextern.h.
2189
2190 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
2191
2192 * keymap.c (keymap_memberp): Ensure that nil is not a member.
2193
2194 2000-10-16 Gerd Moellmann <gerd@gnu.org>
2195
2196 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
2197 the iterator at the beginning, so that they can be set later on,
2198 for instance in reseat_at_next_visible_line_start, without being
2199 overwritten.
2200
2201 * xfns.c (pbm_format): Add :foreground and :background keywords.
2202 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
2203 (xbm_load): Recognize foreground and background color
2204 specifications.
2205
2206 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
2207
2208 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
2209
2210 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
2211 declaration.
2212
2213 * msdos.c (IT_set_face): Compare highlighted face with the default
2214 face, and invert colors if these faces' colors are identical.
2215 (Fmsdos_remember_default_colors): Don't swap foreground and
2216 background colors in initial_colors[].
2217 (IT_set_frame_parameters): Don't swap frame's foreground and
2218 background pixels. If ALIST includes "(reverse . t)", swap
2219 foreground-color and background-color properties in frame's
2220 param_alist. If the original frame's param_alist doesn't specify
2221 the colors, store unspecified-fg and unspecified-bg, reversed if
2222 required.
2223
2224 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
2225 the colors are unspecified and reversed, reverse fore- and back-
2226 ground in the returned value.
2227 (Fframe_parameter): Ditto.
2228
2229 2000-10-16 Gerd Moellmann <gerd@gnu.org>
2230
2231 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
2232 get_last_unchanged_at_beg_row.
2233 (find_first_unchanged_at_end_row): Renamed from
2234 get_first_unchanged_at_end_row.
2235 (find_first_unchanged_at_end_row): Convert assertions to
2236 unconditional tests which abort. When looking for a row in
2237 unchanged text, don't go further back than first_text_row.
2238
2239 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
2240 Don't add in the last line's height when deciding if the new
2241 position is below the scroll margin.
2242
2243 2000-10-16 Miles Bader <miles@gnu.org>
2244
2245 * editfns.c (Fconstrain_to_field): Check carefully for field
2246 boundaries if either OLD_POS or NEW_POS has a non-nil field
2247 property, even if they're the same.
2248
2249 2000-10-16 Kenichi Handa <handa@etl.go.jp>
2250
2251 * xterm.c (x_draw_box_rect): Fix the calculation of width and
2252 height for XFillRectangle.
2253
2254 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
2255
2256 * syntax.c (Fstring_to_syntax): New function extracted from
2257 Fmodify_syntax_entry.
2258 (Fmodify_syntax_entry): Use it and document the ! and | fences.
2259 (skip_chars, Fforward_comment): Remove unused variables.
2260 (syms_of_syntax): Add defsubr for string-to-syntax.
2261 (describe_syntax): Add code for comment and string fences.
2262
2263 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
2264
2265 * keymap.c (access_keymap): Add AUTOLOAD parameter.
2266 Do the meta->esc mapping. Call get_keyelt before returning.
2267 Start scanning from the second element (the first is always `keymap')
2268 to make it easier to detect when we reach a parent map.
2269 Handle the case of inheriting from a symbol whose function is a map.
2270 (Fkeymap_parent): Also handle the `inherit from symbol' case.
2271 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
2272 (get_keyelt, Flookup_key): Update call to access_keymap.
2273 Remove the meta->esc mappings.
2274 (define_as_prefix): Delete old disabled code.
2275 (menu_item_p): New function.
2276 (where_is_internal_1): Skip over the few remaining menu items.
2277 * lisp.h (access_keymap): Update prototype.
2278 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
2279 Update call to access_keymap.
2280 (follow_key, read_key_sequence): Update calls to access_keymap.
2281 Remove the meta->esc mappings.
2282
2283 2000-10-13 Gerd Moellmann <gerd@gnu.org>
2284
2285 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
2286 with additional argument.
2287
2288 * xdisp.c (cursor_row_p): New function.
2289 (try_cursor_movement, display_line): Use it.
2290
2291 * xdisp.c (append_space): Also save/restore iterator's current
2292 character and its length.
2293
2294 * xdisp.c (init_from_display_pos): Add an assertion.
2295 (handle_stop): Don't set iterator's add_overlay_start.
2296 (handle_invisible_prop): Likewise.
2297 (load_overlay_strings): If text under an overlay is invisible,
2298 take both before- and after-strings into account when the iterator
2299 is positioned either at the start or at the end of the overlay.
2300 (forward_to_next_line_start): Rewritten.
2301 (reseat_at_next_visible_line_start): Rewritten.
2302 (set_iterator_to_next): Add parameter RESEAT_P.
2303
2304 * dispextern.h (struct it): Remove member add_overlay_start.
2305 (set_iterator_to_next): Change prototype.
2306
2307 2000-10-13 Kenichi Handa <handa@etl.go.jp>
2308
2309 * coding.c (code_convert_region): Be sure to initialize
2310 coding->category_idx.
2311 (decode_coding_string): Set coding->src_multibyte and
2312 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
2313 (encode_coding_string): Set coding->src_multibyte and
2314 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
2315
2316 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
2317
2318 * xfns.c (Fx_create_frame): Don't bother calling
2319 face-set-after-frame-default since the caller does it for us anyway.
2320
2321 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2322
2323 * window.c (coordinates_in_window): Fix detection of vertical line
2324 on character terminals.
2325
2326 2000-10-12 Gerd Moellmann <gerd@gnu.org>
2327
2328 * editfns.c (save_excursion_save): Additionally record the
2329 selected window.
2330 (save_excursion_restore): If buffer was visible in a window, and a
2331 different window was selected, and the old selected window is
2332 still live, restore point in that window.
2333
2334 2000-10-12 Kenichi Handa <handa@etl.go.jp>
2335
2336 * xterm.c (x_produce_glyphs): Handle
2337 unibyte_display_via_language_environment correctly.
2338
2339 * regex.c (regex_compile): Change the way of handling a range from
2340 unibyte char to multibyte char.
2341
2342 * syntax.c (skip_chars): Change the way of handling a range from
2343 unibyte char to multibyte char.
2344
2345 * process.c (read_process_output): Cancel previous change.
2346
2347 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
2348
2349 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
2350
2351 * charset.c (Ffind_charset_string): Doc fix.
2352 (Ffind_charset_region): Doc fix.
2353
2354 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
2355
2356 * process.c (read_process_output): Fix previous change. Adjust
2357 multibyteness of text to insert in a buffer by
2358 string_make_unibyte/multibyte instead of
2359 Fstring_as_unibyte/multibyte.
2360
2361 2000-10-10 Andreas Schwab <schwab@suse.de>
2362
2363 * alloc.c (mark_object): Remove all workarounds installed on
2364 1993-08-08.
2365
2366 2000-10-10 Kenichi Handa <handa@etl.go.jp>
2367
2368 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
2369 returning.
2370 (base64_encode_1): Make it work for a text of multibyte form.
2371 (Fbase64_decode_region): Allocate sufficient memory for multibyte
2372 case. Don't call str_to_multibyte because base64_decode_1
2373 produces correct multibyte form for eight-bit codes.
2374 (Fbase64_decode_string): Adjusted for the change of
2375 base64_decode_1.
2376 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
2377 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
2378 codes.
2379
2380 * charset.h (CHAR_STRING): Optimized for single byte characters.
2381
2382 2000-10-09 Andreas Schwab <schwab@suse.de>
2383
2384 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
2385 -1 after socket is closed, to fall through to error processing.
2386
2387 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
2388
2389 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
2390 variables. If ALIST includes foreground-color or
2391 background-color, change also the colors of the default face for
2392 this frame.
2393
2394 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2395
2396 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
2397 them extern (they are defined on xfaces.c).
2398 (syms_of_msdos): Don't intern and don't staticpro
2399 Qbackground_color and Qforeground_color.
2400
2401 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
2402
2403 * frame.c (Fframe_parameter): For non-windowed frames, if
2404 f->param_alist says foreground or background color is unspecified,
2405 call tty_color_name to return the color name computed from the
2406 frame's current colors.
2407
2408 2000-10-06 Dave Love <fx@gnu.org>
2409
2410 * terminfo.c (ospeed): Don't declare.
2411
2412 * sysdep.c: Don't include string.h.
2413 (h_errno): Declare conditional also on TRY_AGAIN.
2414
2415 * charset.c (Ffind_charset_string): Doc fix.
2416
2417 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
2418 (Fbase64_decode_region, Fbase64_decode_string): More explicit
2419 error messages.
2420
2421 2000-10-05 Dave Love <fx@gnu.org>
2422
2423 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
2424 position like menu-bar.
2425
2426 2000-10-05 Gerd Moellmann <gerd@gnu.org>
2427
2428 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
2429
2430 * xdisp.c (handle_single_display_prop): Use safe_call1.
2431 (safe_call): Renamed from call_function.
2432 (safe_call1): New function.
2433 (handle_fontified_prop): Use safe_call1 instead of call1.
2434 (safe_eval): Renamed from eval_form.
2435 (safe_eval_handler): Renamed from eval_handler.
2436 (handle_single_display_prop, display_mode_element): Use safe_eval
2437 instead of eval_form.
2438
2439 * xfaces.c (merge_face_heights): Use safe_call instead of
2440 call_function.
2441
2442 * keyboard.c (show_help_echo): Use safe_call instead of
2443 call_function; use safe_eval instead of eval_form.
2444
2445 * lisp.h (safe_call): Renamed from call_function.
2446 (safe_eval): Renamed from eval_form.
2447 (safe_call1): Add prototype.
2448
2449 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
2450
2451 * xfns.c (image_ascent): Rearrange ascent calculation for the
2452 has-a-font case.
2453
2454 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
2455
2456 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
2457 (where_is_internal_1): Don't bother ignoring menu-items any more.
2458
2459 2000-10-04 Gerd Moellmann <gerd@gnu.org>
2460
2461 * keyboard.c (update_menu_bindings): New variable.
2462 (parse_menu_item): Use AREF. If update_menu_bindings
2463 is 0, don't update menu bindings.
2464 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
2465
2466 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
2467
2468 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
2469 to `mark_object'.
2470
2471 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
2472
2473 * syntax.c (forw_comment): Match nestedness of ender/starter.
2474 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
2475 (prev_char_comstart_first): Remove.
2476 (back_comment): Check two-char comment markers more carefully
2477 to better handle overlapping cases like *//* or /* */* */ ...
2478 Match nestedness of ender/starter.
2479
2480 2000-10-02 Dave Love <fx@gnu.org>
2481
2482 * config.in (HAVE_GAI_STRERROR): Add undef.
2483
2484 * process.c (Fopen_network_stream): Use it.
2485
2486 * m/alpha.h (NO_REMAP): Don't define.
2487
2488 2000-10-02 Gerd Moellmann <gerd@gnu.org>
2489
2490 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
2491 return with a string converted to an integer or vice versa when
2492 Vmocklisp_arguments is t.
2493 (Fsignal): Likewise. The function can return for `quit'.
2494 (struct gcpro): Declare member `var' to point to a volatile
2495 Lisp_Object.
2496
2497 * eval.c (error): Prevent compiler warning.
2498
2499 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
2500
2501 * keymap.c (keymap_memberp): New function.
2502 (Fset_keymap_parent): Use it.
2503 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
2504 Use keymap_memberp to avoid creating cycles.
2505 (access_keymap): Use KEYMAPP.
2506
2507 2000-09-30 Gerd Moellmann <gerd@gnu.org>
2508
2509 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
2510 gai_strerror. Make sure xerrno is set if connect fails. Improve
2511 error recovery.
2512
2513 2000-09-29 Jason Rumney <jasonr@gnu.org>
2514
2515 * w32term.c (w32_char_font_type, w32_encode_char)
2516 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
2517 (w32_bdf_per_char_metric): New function.
2518 (w32_per_char_metric): Use it.
2519 (x_draw_glyph_string_background): Always draw background for BDF
2520 glyphs.
2521
2522 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
2523 GDI object which is a scarce resource.
2524
2525 * w32bdf.c (search_file_line): Fix skipping of whitespace.
2526 (get_quoted_string): Fix limit on memchr search.
2527 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
2528 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
2529 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
2530 (get_cached_font_char, cache_char_offset): Use macro
2531 BDF_CODEPOINT_RANGE_COVER_P.
2532 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
2533 (clear_cached_bitmap_slots): New function.
2534 (GET_HEX_VALUE): G-Z, g-z are not hex.
2535 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
2536 (get_bitmap_with_cache): Use new cache implementation.
2537 (create_offscreen_bitmap): New function.
2538 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
2539
2540 * w32term.c (x_produce_glyphs): If the distance from the current
2541 position to the next tab stop is less than a canonical character
2542 width, use the tab stop after that.
2543 (x_draw_glyphs): Handle case START and END are out of bounds more
2544 carefully.
2545 (x_clear_mouse_face): Block/unblock input.
2546 (x_display_and_set_cursor): Don't show a hollow box cursor for
2547 buffers whose cursor_type is nil.
2548
2549 2000-09-29 Gerd Moellmann <gerd@gnu.org>
2550
2551 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
2552 disappears.
2553
2554 * dispextern.h (updating_frame): Declare extern.
2555
2556 2000-09-29 Andreas Schwab <schwab@suse.de>
2557
2558 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
2559
2560 2000-09-29 Gerd Moellmann <gerd@gnu.org>
2561
2562 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
2563 use its function definition.
2564 (tool_bar_items): Likewise.
2565
2566 * lisp.h (fatal): Declare NO_RETURN.
2567
2568 2000-09-29 Kenichi Handa <handa@etl.go.jp>
2569
2570 * keymap.c: Remove the line "#undef NULL".
2571
2572 2000-09-28 Gerd Moellmann <gerd@gnu.org>
2573
2574 * xterm.c (x_make_frame_visible): Try harder to make the frame
2575 visible.
2576
2577 2000-09-28 Dave Love <fx@gnu.org>
2578
2579 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
2580
2581 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
2582
2583 * .gdbinit (xreload): Note its need on GNU/Linux.
2584
2585 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
2586 r_alloc, r_alloc_free.
2587
2588 2000-09-28 Kenichi Handa <handa@etl.go.jp>
2589
2590 * syntax.c (skip_chars): Handle negation correctly.
2591
2592 2000-09-27 Gerd Moellmann <gerd@gnu.org>
2593
2594 * xfaces.c (realize_default_face): Call set_lface_from_font_name
2595 with non-zero FORCE_P argument.
2596
2597 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
2598 Add assertions.
2599
2600 * xdisp.c (window_box_height): Add an assertion.
2601
2602 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
2603 tool-bar than is available.
2604 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
2605
2606 2000-09-27 Dave Love <fx@gnu.org>
2607
2608 * s/irix6-5.h: Now works 64-bit. Tidied.
2609
2610 2000-09-26 Gerd Moellmann <gerd@gnu.org>
2611
2612 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
2613 instead of BITS_PER_INT.
2614 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
2615 EMACS_UINT, respectively.
2616 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
2617
2618 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
2619
2620 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
2621
2622 * window.c (freeze_window_starts): Construct last argument for
2623 foreach_window differently.
2624
2625 * xfns.c (x_decode_color): Don't return a Lisp_Object.
2626
2627 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
2628 EMACS_UINT instead of `int' and `unsigned int'.
2629 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
2630
2631 * frame.h (struct frame): Make the `nothing' member of union
2632 output_data an EMACS_INT.
2633
2634 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
2635 hunting.
2636 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
2637 size in the sdata structure.
2638 (SDATA_NBYTES, SDATA_DATA): New macros.
2639 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
2640 differently for the different layout of the sdata structure.
2641 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
2642 in sdata.
2643 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
2644 Check that size recorded in the string size and size recorded in
2645 the sdata structure agree.
2646
2647 2000-09-25 Dave Love <fx@gnu.org>
2648
2649 * buffer.c: Include stdio.h.
2650
2651 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
2652
2653 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
2654
2655 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
2656 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
2657 size_t.
2658 (__malloc_extra_blocks): Declare as __malloc_size_t.
2659
2660 2000-09-25 Gerd Moellmann <gerd@gnu.org>
2661
2662 * alloc.c (mark_image): Use GC_NILP instead of NILP.
2663
2664 * keyboard.c (show_help_echo): Set help_echo_showing_p.
2665 (read_char): If help-echo is showing, preserve the echo area
2666 when redisplaying.
2667
2668 * xdisp.c (help_echo_showing_p): New variable.
2669 (set_message): Reset it to 0.
2670 (init_xdisp): Initialize help_echo_showing_p.
2671
2672 * dispextern.h (help_echo_showing_p): Declare extern.
2673
2674 * config.in: Fix typo in __GNUC_MINOR__.
2675
2676 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
2677
2678 * s/freebsd.h (POSIX_SIGNALS): Define.
2679
2680 * xterm.c (x_clear_mouse_face): Block/unblock input.
2681
2682 2000-09-24 Dave Love <fx@gnu.org>
2683
2684 * fns.c (base64_encode_1): Fix last change.
2685
2686 2000-09-22 Gerd Moellmann <gerd@gnu.org>
2687
2688 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
2689
2690 * xdisp.c (try_window_reusing_current_matrix): More fixes
2691 for the case window has a header-line.
2692
2693 2000-09-22 Dave Love <fx@gnu.org>
2694
2695 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
2696 a doc string.
2697
2698 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
2699
2700 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
2701
2702 2000-09-21 Gerd Moellmann <gerd@gnu.org>
2703
2704 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
2705 for GCC >= 2.5.
2706
2707 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
2708 NO_RETURN.
2709
2710 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
2711 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
2712 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
2713 warnings.
2714
2715 * marker.c (byte_char_debug_check): Return void.
2716
2717 * xfns.c (Fx_create_frame): Set default frame parameter value
2718 for tool-bar-lines to 1.
2719
2720 * dispnew.c (scrolling_window): Compare y-positions of rows
2721 equal at the start. Some simplification.
2722
2723 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
2724 reused rows' y-position in the case window has a header-line, and
2725 new window start is greater than old window start.
2726
2727 * process.c (process_sent_to): New variable.
2728 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
2729 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
2730 Declare more parameters volatile.
2731
2732 * lread.c (Vrecursive_load_depth_limit): New variable.
2733 (Fload): Check recursive loads whose recursion depth exceeds
2734 Vrecursive_load_depth_limit.
2735 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
2736
2737 2000-09-20 Gerd Moellmann <gerd@gnu.org>
2738
2739 * fileio.c (Fread_file_name): Doc fix.
2740
2741 * editfns.c (Fmessage_or_box): Doc fix.
2742
2743 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
2744
2745 * xfns.c (xbm_scan): Allow C-style comments.
2746
2747 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
2748 symbols are specified, add color translations to the cache.
2749 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
2750 functions.
2751 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
2752 xpm_cache_color.
2753 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
2754 structures to xpm_init_color_cache.
2755
2756 2000-09-19 Gerd Moellmann <gerd@gnu.org>
2757
2758 * dispnew.c (update_window_line): Make sure to always draw
2759 mode-lines.
2760
2761 2000-09-19 Andrew Innes <andrewi@gnu.org>
2762
2763 * makefile.nt (bootstrap-emacs): Don't change directory.
2764
2765 2000-09-19 Kenichi Handa <handa@etl.go.jp>
2766
2767 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
2768
2769 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
2770 If output buffer is too small, signal an appropriated error.
2771
2772 2000-09-18 Dave Love <fx@gnu.org>
2773
2774 * keyboard.c (menu_bar_items, tool_bar_items)
2775 (current_active_maps): Remove redundant get_local_map call.
2776
2777 2000-09-18 Gerd Moellmann <gerd@gnu.org>
2778
2779 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
2780 cursor for buffers whose cursor_type is nil.
2781
2782 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
2783 a feature to implement that is already implemented.
2784 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
2785 warnings.
2786
2787 * xfns.c (x_clear_image_1): New function.
2788 (x_clear_image): Use it.
2789 (x_from_xcolors): Use x_clear_image_1; don't free the image's
2790 mask.
2791
2792 * dispnew.c (update_window): Move test for invisible lines
2793 at the top to update_window_line.
2794 (update_window_line): Handle invisible lines here.
2795
2796 * xfns.c (clear_image_cache): Clear current matrices of all
2797 frames sharing an image cache. Block input while freeing
2798 images. Fix timestamp comparison.
2799 (x_clear_image): Also free the mask.
2800
2801 * xfns.c (lookup_image): Block input while loading the image so
2802 that we won't get interrupted in a state where the image isn't yet
2803 set up completely.
2804 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
2805 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
2806 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
2807 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
2808 input.
2809
2810 2000-09-16 Gerd Moellmann <gerd@gnu.org>
2811
2812 * dispnew.c (update_window): Make sure to make desired rows
2813 current even if they are completely invisible at the top
2814 of a window.
2815
2816 2000-09-15 Gerd Moellmann <gerd@gnu.org>
2817
2818 * xfns.c (lookup_image): Build mask before applying an algorithm.
2819 Recognize algorithm `disabled'.
2820 (cross_disabled_images): New variable.
2821 (COLOR_INTENSITY): New macro.
2822 (x_detect_edges): Use COLOR_INTENSITY.
2823 (x_disable_image): New function.
2824 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
2825
2826 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
2827 disabled state, don't apply an image transformation algorithm if
2828 the user specified an image for the disabled state. Use
2829 `:algorithm disabled' for creating a disabled item's image if the
2830 user hasn't specified an image.
2831
2832 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
2833 allocation functions with the XPM lib.
2834 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
2835 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
2836 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
2837 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
2838 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
2839 functions.
2840 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
2841 functions, if possible, because these handle color allocation
2842 failure more gracefully.
2843 (Fimage_mask_p): New function.
2844
2845 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
2846 (Qedge_detection, Qheuristic): New symbols.
2847 (syms_of_xfns): Initialize new symbols.
2848 (lookup_image): Handle `:mask X', `:algorithm emboss', and
2849 `algorithm (edge-detection ...)'.
2850 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
2851 (tiff_format, gif_format, gs_format): Add `:mask'.
2852 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
2853 (GIF_MASK, GS_MASK): New enumerators.
2854 (x_laplace_read_row, x_laplace_write_row): Functions removed.
2855 (emboss_matrix, laplace_matrix): New variables.
2856 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
2857 (x_edge_detection): New functions.
2858 (x_laplace): Rewritten in terms of x_detect_edges.
2859 (x_build_heuristic_mask): If image has a mask, free it.
2860
2861 2000-09-14 Andrew Innes <andrewi@gnu.org>
2862
2863 * makefile.w32-in: Revert to Unix line endings.
2864
2865 2000-09-14 Andrew Innes <andrewi@gnu.org>
2866
2867 * makefile.w32-in: Standardize indentation somewhat.
2868 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
2869 cater for differences between shells.
2870
2871 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
2872
2873 2000-09-14 Gerd Moellmann <gerd@gnu.org>
2874
2875 * xterm.c (x_produce_glyphs): If the distance from the current
2876 position to the next tab stop is less than a canonical character
2877 width, use the tab stop after that.
2878
2879 2000-09-14 Dave Love <fx@gnu.org>
2880
2881 * buffer.c (alloc_buffer_text): Fix xmalloc call.
2882
2883 2000-09-14 Gerd Moellmann <gerd@gnu.org>
2884
2885 * xdisp.c (handle_fontified_prop): While running fontification
2886 functions, bind `fontification-functions' and
2887 `after-change-functions' to nil.
2888
2889 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
2890 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
2891
2892 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
2893
2894 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
2895 USE_MMAP_FOR_BUFFERS.
2896
2897 * insdel.c (make_gap): Use enlarge_buffer_text.
2898
2899 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
2900 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
2901 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
2902 from former r_alloc_* functions in ralloc.c.
2903 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
2904 variables.
2905 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
2906 (mmap_init) [REL_ALLOC_MMAP]: New function.
2907 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
2908 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
2909 BUFFER_FREE.
2910
2911 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
2912 (enlarge_buffer_text): Add prototype.
2913
2914 * ralloc.c: Remove everything having to do with the use of mmap.
2915
2916 2000-09-13 Gerd Moellmann <gerd@gnu.org>
2917
2918 * sound.c (Fplay_sound): Doc fix.
2919
2920 * keyboard.c: Avoid some more compiler warnings.
2921 (parse_tool_bar_item): Ignore cached key bindings.
2922
2923 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
2924 and allocation of Lisp data.
2925
2926 2000-09-12 Gerd Moellmann <gerd@gnu.org>
2927
2928 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
2929 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
2930 defaults first.
2931
2932 * lread.c (Fload): Put code checking for recursive loads in #if 0.
2933
2934 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
2935
2936 * ccl.c: Comment fixed.
2937 (MAX_MAP_SET_LEVEL): Increased to 30.
2938 (PUSH_MAPPING_STACK): Enclose with do-while block.
2939 (POP_MAPPING_STACK): Likewise.
2940 (stack_idx_of_map_multiple): New variable.
2941 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
2942 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
2943 call the corresponding CCL program by
2944 CCL_CALL_FOR_MAP_INSTRUCTION.
2945 (ccl_driver) <CCL_MapSingle>: Likewise.
2946 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
2947 with the case where looking up process reaches to the end of
2948 map-set, and call CCL programs as the above change.
2949
2950 2000-09-11 Gerd Moellmann <gerd@gnu.org>
2951
2952 * xfns.c (png_load, jpeg_load): Declare some variables volatile
2953 that might be clobbered by longjmp.
2954 (check_x_display_info, x_decode_color, create_frame_xic)
2955 (Fx_display_backing_store, Fx_display_visual_class)
2956 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
2957 warnings.
2958
2959 * lread.c (init_lread): Set Vloads_in_progress to nil.
2960 (Fload): Show list of recursively loaded files, when signaling an
2961 error.
2962
2963 * lread.c (Vloads_in_progress): New variable.
2964 (record_load_unwind): New function.
2965 (Fload): Check for recursive loads.
2966 (syms_of_lread): Initialize Vloads_in_progress.
2967 (read_integer, read1): Avoid some compiler warnings.
2968
2969 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
2970 compiler warnings.
2971
2972 2000-09-11 Miles Bader <miles@gnu.org>
2973
2974 * editfns.c (Fbuffer_string): Doc fix.
2975
2976 2000-09-10 Gerd Moellmann <gerd@gnu.org>
2977
2978 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
2979
2980 2000-09-09 Ken Raeburn <raeburn@gnu.org>
2981
2982 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
2983 whether to include other header files.
2984
2985 2000-09-09 Gerd Moellmann <gerd@gnu.org>
2986
2987 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
2988 by Fmemq as a boolean.
2989
2990 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
2991
2992 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
2993
2994 2000-09-08 Gerd Moellmann <gerd@gnu.org>
2995
2996 * ralloc.c (mmap_fd): Remove initializer which can make it
2997 read-only in a dumped Emacs.
2998 (mmap_fd_1): New variable.
2999 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
3000 restore it from there.
3001 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
3002 unconditionally so that mmap_fd can be initialized there.
3003 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
3004 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
3005 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
3006
3007 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
3008
3009 * xdisp.c (dump_glyph_row): Fix printf format string.
3010 (display_line, move_it_in_display_line_to): Avoid compiler
3011 warnings.
3012
3013 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
3014
3015 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
3016 inheritance.
3017
3018 * xdisp.c (try_window_id): When trying to locate cursor in
3019 unchanged rows at the top, handle the case that we can't find it.
3020
3021 * xterm.c (x_draw_glyphs): Handle case START and END are out
3022 of bounds more carefully.
3023
3024 2000-09-08 Dave Love <fx@gnu.org>
3025
3026 * s/sol2.h (REL_ALLOC_MMAP): Define.
3027 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
3028
3029 * ralloc.c: Don't include string.h (redundant).
3030 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
3031 [!MAP_ANON]: Include fcntl.h.
3032 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
3033 (r_alloc, r_re_alloc, r_alloc_free)
3034 (mmap_enlarge, mmap_set_vars): Use it.
3035 (r_alloc_init_fd): New function.
3036 (__morecore) [SYSTEM_MALLOC]: Don't declare.
3037 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
3038 malloc type.
3039
3040 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
3041 Remove vm-limit.o.
3042
3043 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
3044 change to __NetBSD__.
3045
3046 2000-09-08 Kenichi Handa <handa@etl.go.jp>
3047
3048 * search.c (compile_pattern): Check the multibyteness of cached
3049 string and PATTERN.
3050
3051 2000-09-08 Miles Bader <miles@gnu.org>
3052
3053 * xfaces.c (default_face_vector): Function removed.
3054 (Finternal_merge_in_global_face): Restore old global/local
3055 attribute override order. Use inline loop instead of calling
3056 default_face_vector.
3057
3058 2000-09-07 Gerd Moellmann <gerd@gnu.org>
3059
3060 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
3061 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
3062 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
3063 where necessary, in case POINTER_TYPE is `void'.
3064
3065 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
3066
3067 * frame.c (make_terminal_frame): Initialize frame foreground and
3068 background colors to unspecified, for the initial instance of an
3069 MSDOS frame.
3070
3071 2000-09-07 Gerd Moellmann <gerd@gnu.org>
3072
3073 * ralloc.c (mmap_find): Fix overlap computation.
3074 (mmap_enlarge): Compute nbytes before trying to find an
3075 overlapping region.
3076
3077 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
3078 instead of `!='.
3079
3080 * lread.c (syms_of_lread): Change value of regexp
3081 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
3082
3083 * xmenu.c (xdialog_show): When looking up the selection in
3084 menu_items, take `quote' boundaries into account; this corresponds
3085 to a nil ITEM in x-popup-dialog.
3086
3087 2000-09-07 Kenichi Handa <handa@etl.go.jp>
3088
3089 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
3090 not 0x81.
3091 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
3092
3093 * coding.c (encode_coding_sjis_big5): Use translation table for
3094 encoding, not decoding. Fix the handling of latin-jisx0201.
3095 Check for the charset katakana-jisx0201 too.
3096 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
3097 (detect_coding_sjis): Check the byte sequence more rigidly.
3098
3099 2000-09-07 Gerd Moellmann <gerd@gnu.org>
3100
3101 * xfaces.c (Vparam_value_alist): New variable.
3102 (syms_of_xfaces): Initialize it.
3103 (Finternal_set_lisp_face_attribute): Avoid more consing.
3104
3105 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
3106 specially.
3107 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
3108 (Qbackground_mode): New variable.
3109 (syms_of_frame_1): Initialize Qbackground_mode.
3110
3111 * lisp.h (Qdisplay): Declare extern.
3112
3113 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
3114 change face on all frames, and change the default for new frames.
3115
3116 2000-09-07 Dave Love <fx@gnu.org>
3117
3118 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
3119
3120 2000-09-07 Kenichi Handa <handa@etl.go.jp>
3121
3122 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
3123
3124 * charset.c: Include composite.h
3125 (lisp_string_width): New function.
3126 (Fstring_width): Call lisp_string_width instead of strwidth.
3127
3128 * Makefile.in (charset.o): Depends on composite.h.
3129
3130 * process.c (read_process_output): Before inserting the decoded
3131 text in the buffer, adjust the multibyteness.
3132
3133 2000-09-06 Gerd Moellmann <gerd@gnu.org>
3134
3135 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
3136 buffer's text buffer is null, map new memory.
3137
3138 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
3139 POINTER_TYPE and size_t.
3140 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
3141 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
3142 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
3143 [REL_ALLOC_MMAP]: New macros.
3144 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
3145 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
3146 [REL_ALLOC_MMAP]: New functions.
3147
3148 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
3149 before and after unexec.
3150
3151 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
3152 text buffers if necessary.
3153
3154 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
3155 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
3156 in prototypes.
3157
3158 * config.in (HAVE_MMAP): Add #undef.
3159
3160 2000-09-05 Gerd Moellmann <gerd@gnu.org>
3161
3162 * frame.c (Qdisplay_type): New variable.
3163 (syms_of_frame_1): Initialize it.
3164 (Fframe_parameter): New function that avoids consing.
3165 (syms_of_frame): Defsubr it.
3166
3167 * buffer.c (Fother_buffer): Consider buffers as invisible when
3168 they are displayed in a window on an invisible frame.
3169
3170 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
3171 get-largest-window always return nil.
3172
3173 2000-09-04 Gerd Moellmann <gerd@gnu.org>
3174
3175 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
3176 variable; recognize Emacs 19 elc files.
3177
3178 2000-09-04 Miles Bader <miles@gnu.org>
3179
3180 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
3181 before initially popping up the menu, so the menu doesn't flash
3182 when the face settings are significantly different from the
3183 defaults.
3184
3185 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
3186
3187 * regex.c (WIDE_CHAR_SUPPORT): New macro.
3188 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
3189 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
3190 (BIT_UNIBYTE): Remove.
3191 (re_match_2_internal): Delete corresponding code and streamline the
3192 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
3193 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
3194 (re_wctype_t): New type.
3195 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
3196 (regex_compile): Use them and fix handling of overly long char classes.
3197
3198 2000-09-03 Andrew Innes <andrewi@gnu.org>
3199
3200 * makefile.w32-in: Change to DOS line endings.
3201
3202 * s/ms-w32.h (ORDINARY_LINK): New define.
3203
3204 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
3205 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
3206
3207 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
3208 (distclean): Delete them here instead.
3209
3210 * w32proc.c (compare_env): Convert to uppercase for comparison,
3211 not lowercase, to match how the native Windows shell works.
3212
3213 2000-09-03 Jason Rumney <jasonr@gnu.org>
3214
3215 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
3216 CVS changes the line-ends when checking in/out on DOS/Windows.
3217
3218 * makefile.nt (emacs): Do not change directory to run temacs, as
3219 the load-path is set relative to current directory.
3220
3221 2000-09-03 Miles Bader <miles@gnu.org>
3222
3223 * xterm.c (x_alloc_lighter_color_for_widget): New function.
3224
3225 2000-09-02 Gerd Moellmann <gerd@gnu.org>
3226
3227 * xdisp.c (redisplay_mode_lines): New function.
3228 (display_mode_lines): Return number of mode lines displayed.
3229 (echo_area_display): Use redisplay_mode_lines to draw garbaged
3230 mode lines. Don't temporarily bind redisplay-dont-pause to t.
3231
3232 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
3233 string.h and strings.h.
3234 (index) [HAVE_INDEX]: Add prototype.
3235
3236 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
3237 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
3238
3239 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
3240 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3241
3242 2000-09-01 Gerd Moellmann <gerd@gnu.org>
3243
3244 * lread.c (read1): Accept `?' as symbol constituent, for
3245 compatiblity with XEmacs.
3246
3247 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
3248
3249 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
3250 (struct re_pattern_buffer): Remove newline_anchor.
3251 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
3252 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
3253 (re_max_failures, fail_stack): Use size_t rather than unsigned.
3254 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
3255 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
3256 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
3257 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
3258 Get rid of references to newline_anchor.
3259 (regcomp): Allocate and precompute a fastmap.
3260
3261 2000-08-31 Gerd Moellmann <gerd@gnu.org>
3262
3263 * lread.c (openp): GCPRO local variable `filename'.
3264
3265 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
3266
3267 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
3268
3269 * regex.c: Merge some changes from GNU libc. Add prototypes.
3270 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
3271 Use memcmp and memcpy instead of bcopy and bcmp.
3272 (init_syntax_once): Use ISALNUM.
3273 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
3274 (REG_UNSET_VALUE): Remove. Use NULL instead.
3275 (REG_UNSET, re_match_2_internal): Use NULL.
3276 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
3277 New macros.
3278 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
3279 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
3280 (regex_compile): In handle_interval, return an error rather than try to
3281 unfetch the interval if we can't find the closing brace.
3282 Obey the RE_NO_GNU_OPS syntax bit.
3283 (TOLOWER): New macro.
3284 (regcomp): Use it.
3285 (regexec): Allocate regs.start and regs.end as one block.
3286
3287 2000-08-30 Gerd Moellmann <gerd@gnu.org>
3288
3289 * xdisp.c (echo_area_display): Check display_completed instead
3290 of calling detect_input_pending.
3291
3292 * dispnew.c (update_frame): Only set display_completed here; move
3293 the update_begin and update_end calls here from update_frame_1.
3294 (update_frame_1): Don't set display_completed here, don't call
3295 update_begin/update_end.
3296
3297 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
3298 instead of store_frame_param.
3299
3300 2000-08-29 Gerd Moellmann <gerd@gnu.org>
3301
3302 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
3303 desired window matrix hasn't been displayed, use the current row
3304 instead. Make sure that only those frame rows are updated for
3305 which there exists a corresponding enabled desired row.
3306
3307 2000-08-29 Miles Bader <miles@gnu.org>
3308
3309 * xfaces.c (default_face_vector): New function.
3310 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
3311
3312 2000-08-29 Gerd Moellmann <gerd@gnu.org>
3313
3314 * lread.c (openp): Prevent temporary string passed to
3315 Ffile_readable_p from being garbage collected.
3316
3317 2000-08-28 Dave Love <fx@gnu.org>
3318
3319 * keymap.c (store_in_keymap): Add `static' to declaration.
3320
3321 2000-08-28 Gerd Moellmann <gerd@gnu.org>
3322
3323 * emacs.c, callint.c, doc.c, editfns.c
3324 (toplevel) [HAVE_STRING_H]: Include string.h.
3325 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
3326 (index): Remove prototypes which might conflict with non-standard
3327 definitions of index/strchr.
3328
3329 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
3330 (rindex): Define only if !HAVE_RINDEX.
3331
3332 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
3333
3334 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
3335
3336 2000-08-28 Miles Bader <miles@gnu.org>
3337
3338 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
3339 made inconsistent by a font-related attribute in FROM.
3340 (merge_face_inheritance): Add function comment.
3341
3342 2000-08-28 Kenichi Handa <handa@etl.go.jp>
3343
3344 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
3345 the 4th arg (PREV_EVENT) Qt to suppress input method.
3346
3347 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
3348
3349 * regex.c: Indent cpp directives and remove parens after `defined'.
3350 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
3351 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
3352 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
3353 (re_compile_pattern): Use size_t for length.
3354 (init_syntax_once): Move to a better place.
3355 * regex.h: Merge changes from GNU libc. Indent cpp directives.
3356 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
3357
3358 * syntax.c (back_comment): Detect cases where a comment-starter is
3359 actually inside another comment as in: /* a // b */ c // d \n.
3360 Make it clear that `comstart_pos' is unused for nested comments.
3361
3362 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
3363 (KEYMAPP): New macro.
3364 (Fkeymap_parent, Fset_keymap_parent): Use it.
3365 (fix_submap_inheritance): Mark it static.
3366 (define_as_prefix, describe_buffer_bindings, describe_command)
3367 (describe_translation, describe_map): Complete prototypes.
3368
3369 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
3370
3371 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
3372 to better match the key-lookup behavior.
3373
3374 2000-08-27 Gerd Moellmann <gerd@gnu.org>
3375
3376 * xfaces.c (lface_fully_specified_p): Handle :inherit.
3377 (Finternal_set_lisp_face_attribute): Fix typo in error message.
3378
3379 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
3380
3381 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
3382 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
3383 (xterm.o): Depend on coding.h
3384
3385 2000-08-26 Kenichi Handa <handa@etl.go.jp>
3386
3387 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
3388 the corresponding '#endif'.
3389
3390 2000-08-26 Miles Bader <miles@gnu.org>
3391
3392 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
3393 * xfaces.c (QCinherit): New variable.
3394 (syms_of_xfaces): Initialize it.
3395 (LFACE_INHERIT): New macro.
3396 (Finternal_get_lisp_face_attribute)
3397 (merge_face_vector_with_property)
3398 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
3399 (check_lface_attrs): Allow new types of face height. Check
3400 inherit attribute.
3401 (CYCLE_CHECK): New macro.
3402 (merge_face_inheritance): New function.
3403 (merge_face_vectors): Merge inherited faces too. Add F and
3404 CYCLE_CHECK arguments.
3405 (merge_face_vector_with_property, Finternal_merge_in_global_face)
3406 (lookup_named_face, lookup_derived_face, realize_named_face)
3407 (face_at_string_position, face_at_buffer_position): Supply
3408 new F and CYCLE_CHECK arguments to merge_face_vectors.
3409 (merge_face_heights): New function.
3410 (merge_face_vectors, merge_face_vector_with_property)
3411 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
3412 handle relative face heights.
3413 (lface_same_font_attributes_p): Compare heights using EQ.
3414
3415 2000-08-26 Kenichi Handa <handa@etl.go.jp>
3416
3417 * charset.c (char_to_string): Check the character validity.
3418 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
3419 0.
3420
3421 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
3422
3423 * regex.c (PUSH_FAILURE_COUNT): New macro.
3424 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
3425 Handle popping of a register's or a counter's data.
3426 (POP_FAILURE_POINT): Use the new name.
3427 (re_match_2_internal): Push counter data on the stack for succeed_n,
3428 jump_n and set_number_at and remove misleading dead code in succeed_n.
3429
3430 2000-08-25 Gerd Moellmann <gerd@gnu.org>
3431
3432 * xdisp.c (redisplay_internal): If considering all windows on all
3433 frames, update the display for each frame as soon as possible,
3434 instead of first building all desired matrices for all frames, and
3435 then updating them all.
3436 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
3437
3438 2000-08-24 Gerd Moellmann <gerd@gnu.org>
3439
3440 * bytecode.c (mark_byte_stack): Add a comment.
3441
3442 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
3443 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
3444 a graphical frame.
3445
3446 2000-08-24 Kenichi Handa <handa@etl.go.jp>
3447
3448 * minibuf.c (do_completion): Always use compare-string, not
3449 string-equal because the latter doesn't pay attention to
3450 multibyteness of strings.
3451
3452 * process.c (create_process): Don't setup raw-text coding here.
3453 (Fopen_network_stream): Don't set coding->src_multibyte and
3454 coding->dst_multibyte here.
3455 (read_process_output): For process filter, return unibyte string
3456 if default-enable-multibyte-characters is nil.
3457 (send_process): If OBJECT is multibyte text, be sure to encoded it
3458 by the specified coding system for the process. Otherwise, setup
3459 raw-text coding.
3460 (init_process): Don't initialize default-process-coding-system
3461 here.
3462
3463 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
3464
3465 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
3466 <scroll-down-aggressively>: Likewise.
3467
3468 2000-08-23 Kenichi Handa <handa@etl.go.jp>
3469
3470 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
3471 zero. Set coding->produced_char correctly.
3472
3473 2000-08-22 Andrew Innes <andrewi@gnu.org>
3474
3475 * makefile.w32-in: New file.
3476
3477 * unexw32.c (unexec): Ignore old_name, and use the actual location
3478 of the current executable instead. Base new_name on this.
3479
3480 * w32proc.c (create_child): Remove reference to security
3481 descriptor, which isn't needed and doesn't compile with mingw32.
3482
3483 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3484 up dllimport attributes.
3485 (x_update_window_end): Update prototype.
3486
3487 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
3488 extern, which screws up dllimport attributes.
3489
3490 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3491 up dllimport attributes.
3492
3493 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
3494 screws up dllimport attributes.
3495
3496 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3497 up dllimport attributes.
3498 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
3499 screws up dllimport attributes.
3500
3501 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3502 up dllimport attributes.
3503
3504 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
3505 screws up dllimport attributes.
3506
3507 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
3508 screws up dllimport attributes.
3509
3510 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3511 up dllimport attributes.
3512
3513 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
3514 unnecessary extern, which screws up dllimport attributes.
3515 (main): Ditto.
3516
3517 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3518 up dllimport attributes.
3519
3520 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
3521 unnecessary extern, which screws up dllimport attributes.
3522
3523 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
3524 screws up dllimport attributes.
3525
3526 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3527 up dllimport attributes.
3528
3529 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
3530
3531 * w32bdf.c (search_file_line):
3532 (set_bdf_font_info):
3533 (seek_char):
3534 (w32_get_bdf_glyph):
3535 (w32_BDF_to_x_font): Fix compile warnings.
3536
3537 * w32menu.c: Include keyboard.h before frame.h. Fix compile
3538 warnings.
3539
3540 * w32select.c: Include keyboard.h before frame.h.
3541
3542 * w32fns.c (max): Define macro.
3543 (JOHAB_CHARSET): Define if not known.
3544 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
3545 (Fx_show_tip): Synch with X version.
3546
3547 * w32xfns.c: Include keyboard.h before frame.h.
3548
3549 * w32fns.c: Include keyboard.h before frame.h.
3550
3551 * w32term.c: Include keyboard.h before frame.h.
3552
3553 * fontset.c: Include keyboard.h before frame.h.
3554
3555 * w32inevt.c: Include keyboard.h before frame.h.
3556 (MOUSE_MOVED): Define if not known.
3557
3558 * minibuf.c: Include keyboard.h before frame.h.
3559
3560 * keyboard.c: Include keyboard.h before frame.h.
3561
3562 * indent.c: Include keyboard.h before frame.h.
3563
3564 * dispnew.c: Include keyboard.h before frame.h.
3565
3566 * buffer.c: Include keyboard.h before frame.h.
3567
3568 * alloc.c: Include keyboard.h before frame.h.
3569
3570 * print.c: Include keyboard.h before frame.h.
3571
3572 * process.c: Include keyboard.h before frame.h.
3573
3574 * scroll.c: Include keyboard.h before frame.h.
3575
3576 * sysdep.c: Include keyboard.h before frame.h.
3577
3578 * term.c: Include keyboard.h before frame.h.
3579
3580 * window.c: Include keyboard.h before frame.h.
3581
3582 * xdisp.c: Include keyboard.h before frame.h.
3583 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
3584
3585 * frame.c: Include keyboard.h before frame.h.
3586
3587 * w32heap.h: Undefine min, max.
3588
3589 * w32gui.h: Undefine min, max.
3590
3591 * unexw32.c: Change PUCHAR to PCHAR.
3592 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
3593 (relocate_offset):
3594 (get_section_info):
3595 (copy_executable_and_dump_data): Remove unnecessary static defs.
3596 (copy_executable_and_dump_data): Fix compile warnings.
3597
3598 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
3599
3600 * w32console.c (min): Define macro.
3601 (clear_frame, write_glyphs): Fix compile warning.
3602
3603 * w32proc.c (compare_env):
3604 (find_child_console): Fix compile warning.
3605
3606 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
3607 sys_errlist instead of _sys_errlist.
3608 (get_emacs_configuration_options): New function.
3609
3610 * s/ms-w32.h (sys_nerr): Provide default definition.
3611 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
3612 name with _ prepended.
3613 (NSIG): Define if not known.
3614 (get_emacs_configuration): Provide extern declaration.
3615 (get_emacs_configuration_options): Provide extern declaration.
3616 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
3617
3618 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
3619 (map_w32_filename):
3620 (read_unc_volume): Fix compile warning.
3621
3622 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
3623 definitions from being used.
3624
3625 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
3626
3627 * w32.c (unc_volume_file_attributes):
3628 (open_unc_volume): Make arg const.
3629
3630 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
3631 (read_input_waiting): Remove excess parameter.
3632
3633 * w32.c (init_environment): Call _access.
3634 (check_windows_init_file): Call _close.
3635 (init_user_info): Call _putenv.
3636 (init_environment): Call _putenv and _strdup.
3637 (init_ntproc): Reset volume info cache on startup.
3638
3639 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
3640 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
3641 cannot override the CRT malloc.
3642
3643 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
3644 (LINK_FLAGS): Append to original value of LINK_FLAGS.
3645
3646 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
3647 unless we are linking with a static CRT.
3648 (RVA_TO_PTR): Cast result to unsigned char*.
3649
3650 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
3651 (add_volume_info): Use xstrdup.
3652
3653 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
3654
3655 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
3656 (do_completion, Fminibuffer_complete_word): Use it.
3657 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
3658 var so it can take non-boolean values.
3659
3660 2000-08-21 Gerd Moellmann <gerd@gnu.org>
3661
3662 * editfns.c (find_field): Formatting changes.
3663 (toplevel): Some old-style function forward declarations
3664 changed to prototypes, some new protypes added, some functions
3665 made static.
3666
3667 * lisp.h (set_time_zone_rule): Add prototype.
3668 (use_dialog_box): External declaration.
3669
3670 * keyboard.c (gen_help_event): Add parameter SIZE.
3671 (kbd_buffer_events_waiting): Slightly rewritten.
3672 (clear_event): New function.
3673 (kbd_buffer_get_event): Use it, and clear the input_events of
3674 HELP_EVENTs.
3675 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
3676 don't fill the newly created array with nils.
3677 (toplevel): Convert some old-style function forward declarations
3678 to prototypes.
3679
3680 * keyboard.h (gen_help_event): Change prototype.
3681
3682 * xterm.c (XTread_socket): Change calls to gen_help_event.
3683
3684 * w32term.c (w32_read_socket): Change calls to gen_help_event.
3685
3686 * eval.c (Fmacroexpand): Doc fix.
3687
3688 2000-08-20 Jason Rumney <jasonr@gnu.org>
3689
3690 * w32term.h (x_display_info_for_display): Remove as this function
3691 does not exist on W32.
3692
3693 * w32term.c (help_echo_window): New variable.
3694 (syms_of_w32term): staticpro it.
3695 (note_mode_line_highlight): Set it.
3696 (XTextExtents16): Removed as there is no equivalent on W32.
3697 (x_compute_glyph_string_overhangs): Incomplete body removed, as
3698 the X way of doing this will not work for W32.
3699 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
3700 (x_draw_image_foreground): Avoid drawing outside of the clip area
3701 when image doesn't have a mask.
3702 (note_mouse_highlight): Process overlays in the right order of
3703 priority. Set help_echo_window.
3704 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
3705 because that's more visible for large images.
3706
3707 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
3708 name to single_keymap_panes.
3709 (w32_menu_show): Set wv->title when dealing with titles.
3710 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
3711
3712 2000-08-21 Miles Bader <miles@gnu.org>
3713
3714 * minibuf.c (do_completion): Try again if we rewrite the input
3715 string, but no completion was done, so that any completion message
3716 will be correct.
3717
3718 2000-08-20 Gerd Moellmann <gerd@gnu.org>
3719
3720 * xfaces.c (lface_equal_p): Compare strings differently.
3721 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
3722 (realize_tty_face): Use them.
3723 (syms_of_xfaces): Initialize new variables.
3724 (map_tty_color): New function, extracted from realize_tty_face.
3725 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
3726 foreground or background color, store the new color name in the
3727 realized face; previous code trying to do this had no effect.
3728 (realize_tty_face): Use map_tty_color.
3729 (Fclear_face_cache): Set face_change_count and ensure thorough
3730 redisplay.
3731
3732 2000-08-19 Gerd Moellmann <gerd@gnu.org>
3733
3734 * undo.c (record_first_change, record_marker_adjustment): Don't
3735 use XBUFFER on last_undo_buffer which might not be a buffer.
3736
3737 2000-08-18 Kenichi Handa <handa@etl.go.jp>
3738
3739 * coding.c (decode_coding_string): Set members consumed,
3740 consumed_char, produced, produced_char of *coding correctly. If
3741 decode_coding doesn't consume any byte, don't try anymore.
3742 (encode_coding_string): Likewise.
3743
3744 2000-08-18 Gerd Moellmann <gerd@gnu.org>
3745
3746 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
3747 conditional have void type, for Standard C compilers.
3748
3749 * xdisp.c (redisplay_internal): Compare windows for equality with
3750 EQ, instead of applying XWINDOW to something that might not
3751 be a window.
3752
3753 2000-08-18 Kenichi Handa <handa@etl.go.jp>
3754
3755 * fontset.c (Finternal_char_font): Search only the selected frame
3756 for a window of the current buffer.
3757
3758 2000-08-18 Gerd Moellmann <gerd@gnu.org>
3759
3760 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
3761 Lisp_Objects.
3762
3763 * keyboard.c (kbd_buffer_get_event): Handle the case that the
3764 second half of a HELP_EVENT is found at the start of kbd_buffer.
3765
3766 2000-08-18 Miles Bader <miles@gnu.org>
3767
3768 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
3769
3770 * editfns.c (save_restriction_save): Rewrite to use markers.
3771 (save_restriction_restore): Rewrite to understand new form of data
3772 saved by save_restriction_save.
3773 (Fsave_restriction): Remove cautionary note in doc-string.
3774
3775 2000-08-17 Gerd Moellmann <gerd@gnu.org>
3776
3777 * fileio.c (build_annotations): Add a comment explaining the
3778 return value of format-annotate-function. Replace a spurious call
3779 to Flength with a CONSP test. Call format-annotate-function with
3780 a fifth arg specifying how many times the function is been called
3781 in a row, to let it choose temporary buffers appropriately.
3782
3783 2000-08-17 Dave Love <fx@gnu.org>
3784
3785 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
3786 declare make_temp_name twice.
3787
3788 * lread.c: Prototype readevalloop, load_unwind,
3789 load_descriptor_unwind.
3790 (unreadpure): Give it an arg.
3791
3792 * unexalpha.c: Prototype fatal_unexec, mark_x,
3793 update_dynamic_symbols. Declare unexec as void.
3794
3795 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
3796 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
3797
3798 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
3799 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
3800 DOUG_LEA_MALLOC.
3801
3802 * alloca.c: Use #error.
3803 [POINTER_TYPE]: Use it.
3804
3805 * eval.c (Fdefvar): Doc fix.
3806
3807 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
3808 INITIALIZE_INTERVAL.
3809
3810 * buffer.h: Avoid DECLARE_INTERVALS.
3811
3812 * config.in: Add size_t.
3813
3814 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
3815
3816 * w16select.c (set_clipboard_data): If there's not enough memory
3817 to put text into clipboard, return 1, as Fw16_set_clipboard_data
3818 expects. In case of other failures, return 3.
3819 (system_error_msg): New error message.
3820 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
3821 system_error_msg.
3822
3823 2000-08-16 Gerd Moellmann <gerd@gnu.org>
3824
3825 * term.c (write_glyphs): Also turn off inverse video after turning
3826 off other appearances in case TS_exit_attribute_mode is not equal
3827 to TS_end_standout_mode.
3828 (insert_glyphs): Turn inverse video on/off for each run of glyphs
3829 with the same face.
3830 (turn_off_face): Reset standout_mode only if
3831 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
3832 is equal to TS_end_standout_mode.
3833
3834 2000-08-16 Kenichi Handa <handa@etl.go.jp>
3835
3836 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
3837 sequence at the end of the source block.
3838
3839 * ccl.c (Fccl_program_p): Docstring modified.
3840 (Fccl_execute): Likewise.
3841 (Fccl_execute_on_string): Likewise.
3842
3843 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3844
3845 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
3846
3847 2000-08-16 Kenichi Handa <handa@etl.go.jp>
3848
3849 The following changes are mainly to fix bugs of
3850 encode/decode-coding-string failing if encoding/decoding return
3851 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
3852 variable conversion_buffer.
3853
3854 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
3855 decrement dst_end to avoid buffer overflow in the later call of
3856 string_as_multibyte
3857
3858 * coding.h (conversion_buffer_size, conversion_buffer)
3859 (get_conversion_buffer): Extern deleted.
3860
3861 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
3862 (conversion_buffer, conversion_buffer_size): Variables deleted.
3863 (get_conversion_buffer): Function deleted.
3864 (struct conversion_buffer): New structure.
3865 (MAX_ALLOCA): New macro.
3866 (allocate_conversion_buffer): New macro.
3867 (extend_conversion_buffer, free_conversion_buffer): New functions.
3868 (ccl_coding_driver): Set coding->result.
3869 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
3870 this is the last block of source.
3871 (encode_coding): Likewise. Handle the source block as the last
3872 one only when the whole source text is consumed.
3873 (decode_coding_string): Handle the case that the output buffer is
3874 too small to decode the whole source text. Use
3875 allocate_conversion_buffer, extend_conversion_buffer and
3876 free_conversion_buffer, not get_conversion_buffer.
3877 (encode_coding_string): Likewise.
3878 (init_coding): Function deleted.
3879 (init_coding_once): Delete code to initialize
3880 conversion_buffer_size.
3881
3882 * emacs.c (main): Don't call init_coding.
3883
3884 * msdos.c (IT_write_glyphs): Use a locally declared
3885 conversion_buffer.
3886
3887 * term.c (write_glyphs): Use a locally declared conversion_buffer.
3888 (insert_glyphs): Likewise.
3889
3890 * w32console.c (write_glyphs): Use a locally declared
3891 conversion_buffer.
3892
3893 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
3894
3895 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
3896 member of display_info is NULL.
3897
3898 2000-08-15 Gerd Moellmann <gerd@gnu.org>
3899
3900 * alloc.c (compact_small_strings): Use safe_bcopy, add an
3901 assertion.
3902
3903 * term.c (turn_off_face): Reset standout_mode when resetting
3904 appearances with capability `me'.
3905 (write_glyphs): Switch on inverse video before each face change.
3906
3907 2000-08-14 Dave Love <fx@gnu.org>
3908
3909 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
3910 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
3911 (lisp_free): Declare and make static.
3912
3913 * window.c: Fix embedded comment.
3914 (syms_of_window): Fix doc string.
3915
3916 2000-08-14 Gerd Moellmann <gerd@gnu.org>
3917
3918 * keymap.c (push_key_description): If C without modifiers is < 32,
3919 make sure to print `C-' before `M-', like in the manual.
3920
3921 2000-08-11 Gerd Moellmann <gerd@gnu.org>
3922
3923 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
3924 since they aren't relocated anymore.
3925 (sxhash_string): Make sure returned hash code fits in a Lisp
3926 integer.
3927
3928 * xdisp.c (try_cursor_movement): Fix handling of cursor in
3929 partially visible line which is smaller than the window's
3930 height.
3931
3932 2000-08-11 Kenichi Handa <handa@etl.go.jp>
3933
3934 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
3935 the multibyte form of eight-bit-control characters.
3936 (Fccl_execute_on_string): Initialize ccl->multibyte.
3937
3938 * ccl.h (struct ccl_program): New member multibyte.
3939
3940 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
3941
3942 2000-08-11 Kenichi Handa <handa@etl.go.jp>
3943
3944 * regex.c (regex_compile) <normal_char>: Pay attention to
3945 multibyteness.
3946 (analyse_first) <exactn>: Setup fastmap correctly for
3947 eight-bit-control characters.
3948
3949 2000-08-11 Kenichi Handa <handa@etl.go.jp>
3950
3951 * termhooks.h (enum event_kind): New member
3952 multibyte_char_keystroke.
3953
3954 * keyboard.c (make_lispy_event): Handle the new event type
3955 multibyte_char_keystroke.
3956
3957 * xterm.c: Include coding.h.
3958 (XTread_socket): Work around a bug of XmbLookupString. If the
3959 input is from XIM, decode it according to the current locale. In
3960 that case, generate multibyte_char_keystroke events.
3961
3962 2000-08-11 Kenichi Handa <handa@etl.go.jp>
3963
3964 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
3965 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
3966
3967 2000-08-10 Gerd Moellmann <gerd@gnu.org>
3968
3969 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
3970 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
3971 (move_it_in_display_line_to): Record iterator's ascent and descent
3972 before producing glyphs, and restore them when we know the glyph
3973 doesn't fit on the line.
3974 (move_it_to): Restructured so that it's easier to debug. If
3975 moving to a vpos, and not moving to an x or character position,
3976 stop as soon as the specified vpos is reached; don't move further
3977 into that line because that might change the computed line height.
3978 (try_cursor_movement): New function, extracted from the cursor
3979 movement branch of redisplay_window. If ending on a partially
3980 visible line, don't try to scroll if the cursor line is taller
3981 than the window.
3982 (redisplay_window): Use try_cursor_movement.
3983
3984 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
3985 because that function doesn't cope with variable-height lines.
3986
3987 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
3988 box cursor because that's better visible for large images.
3989
3990 2000-08-10 Miles Bader <miles@gnu.org>
3991
3992 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
3993
3994 2000-08-10 Gerd Moellmann <gerd@gnu.org>
3995
3996 * xdisp.c (Vmessages_buffer_name): New variable.
3997 (message_dolog): Use it.
3998 (syms_of_xdisp): Initialize it.
3999
4000 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4001
4002 * msdos.c (IT_note_mouse_highlight): Update the calls to
4003 overlays_at.
4004 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
4005 redundant now that keyboard.h is included.
4006
4007 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
4008
4009 * keyboard.c (kbd_buffer_events_waiting): New function.
4010
4011 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
4012
4013 * msdos.c: Include keyboard.h.
4014 (XMenuActivate): Empty no_event events from the event buffer. If
4015 no events are left after that, call clear_input_pending.
4016 (mouse_clear_clicks): New function, code moved from mouse_init.
4017 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
4018 mouse driver to ``forget'' any past clicks.
4019
4020 * Makefile.in (msdos.o): Depend on keyboard.h.
4021
4022 2000-08-09 Gerd Moellmann <gerd@gnu.org>
4023
4024 * lisp.h (input_pending): External declaration.
4025
4026 * dispextern.h (Qredisplay_dont_pause): Declare extern.
4027
4028 * xdisp.c (echo_area_display): Display thoroughly if input is
4029 pending. Bind redisplay-dont-pause to t during the redisplay.
4030 in case input is pending.
4031
4032 * dispnew.c (Qredisplay_dont_pause): New variable.
4033 (syms_of_display): Initialize and staticpro it.
4034 (update_frame_1): Don't interrupt the display for pending input if
4035 redisplay_dont_pause is set.
4036
4037 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
4038
4039 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
4040
4041 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
4042
4043 * callproc.c (Fcall_process): Terminate the unwind-protect around
4044 the post-read-conversion of coding system.
4045
4046 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
4047 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
4048 * buffer.h (overlays_at): Update prototype.
4049 * xdisp.c (next_overlay_change): Update call to overlays_at.
4050 * xfaces.c (face_at_buffer_position): Likewise.
4051 * textprop.c (Fget_char_property): Likewise.
4052 * xterm.c (note_mouse_highlight): Likewise.
4053
4054 * minibuf.c (do_completion): Don't consider a simple change of
4055 case as `completion'.
4056
4057 2000-08-08 Ken Raeburn <raeburn@gnu.org>
4058
4059 * keyboard.c (syms_of_keyboard): Initialize
4060 last_point_position_buffer.
4061 * undo.c (record_delete): Make sure last_point_position_buffer is
4062 a buffer before comparing pointers.
4063
4064 * coding.h (decode_coding_string): Declare.
4065
4066 * intervals.h (Fprevious_single_char_property_change): Declare.
4067
4068 * textprop.c (Fprevious_single_char_property_change): Don't do
4069 arithmetic directly on lisp objects.
4070
4071 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
4072 objects.
4073
4074 * keyboard.h (menu_item_eval_property): Declare.
4075
4076 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
4077 reuse as buffer name, instead of recreating (and discarding) every
4078 time a message is logged.
4079 (with_echo_area_buffer): Make callback arg A2 a lisp object.
4080 (current_message_1, truncate_message_1, set_message_1)
4081 (display_echo_area_1, resize_mini_window_1): Signatures changed.
4082 (current_message, truncate_echo_area, display_echo_area)
4083 (resize_echo_area_axactly): Changed calls.
4084
4085 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
4086 Lisp object.
4087 (Ffind_coding_systems_region_internal): First argument to Fappend
4088 must be an integer, not a Lisp object.
4089
4090 2000-08-08 Kenichi Handa <handa@etl.go.jp>
4091
4092 * charset.c (Fchar_width): Doc fix.
4093
4094 2000-08-08 Gerd Moellmann <gerd@gnu.org>
4095
4096 * charset.c (Fstring_width): Doc fix.
4097
4098 2000-08-07 Gerd Moellmann <gerd@gnu.org>
4099
4100 * xdisp.c (start_display): When starting display on a continuation
4101 line, clear ascent and descent members of the iterator structure;
4102 the height of the continued line does not affect the height of the
4103 continuation line.
4104 (make_cursor_line_fully_visible): Do nothing if cursor is on a
4105 line taller than the window.
4106 (redisplay_window) <forced window start>: Handle case that the
4107 middle of the window is not found in any row.
4108 (dump_glyph_row): Show more information.
4109 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
4110 first text line in a glyph matrix.
4111
4112 * xterm.c (x_draw_image_foreground): Avoid drawing outside
4113 of the clip area when image doesn't have a mask.
4114
4115 * fns.c (sweep_weak_table): Fix survival conditions for
4116 key-or-value and key-and-value weakness.
4117
4118 * .gdbinit (xhashtable): New command.
4119
4120 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
4121 tables out of the list of all weak hash tables.
4122
4123 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
4124 a new buffer is created, make sure echo_area_buffer[] references
4125 the new buffer.
4126
4127 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
4128
4129 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
4130 the doc string.
4131
4132 2000-08-07 Kenichi Handa <handa@etl.go.jp>
4133
4134 * syntax.c (skip_chars): Fix previous change. Make the handling
4135 of unibyte string consistent with that of regex search.
4136
4137 2000-08-05 Gerd Moellmann <gerd@gnu.org>
4138
4139 * xmenu.c (popup_get_selection): Use xfree instead of free.
4140
4141 * fileio.c (Finsert_file_contents): Use xfree instead of free.
4142
4143 * editfns.c (Ftranspose_regions): Use xfree instead of free.
4144
4145 * callproc.c (child_setup): Use xfree instead of free.
4146
4147 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
4148 instead of malloc.
4149 (run_mac_command, closedir): Use `xfree' instead of `free'.
4150
4151 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
4152
4153 * eval.c (error): Use xfree instead of free.
4154
4155 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
4156
4157 * fns.c: Replace `illegal' with `invalid'.
4158 (Fmake_hash_table, make_hash_table): Allow table size of 0.
4159
4160 2000-08-05 Kenichi Handa <handa@etl.go.jp>
4161
4162 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
4163 conversion.
4164
4165 2000-08-04 Noah Friedman <friedman@splode.com>
4166
4167 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
4168 docstring.
4169
4170 2000-08-04 Gerd Moellmann <gerd@gnu.org>
4171
4172 * syntax.c (skip_chars): Fix typo in error message.
4173
4174 2000-08-04 Andreas Schwab <schwab@suse.de>
4175
4176 * m/ia64.h: Moved from s/ia64.h.
4177
4178 2000-08-04 Kenichi Handa <handa@etl.go.jp>
4179
4180 * process.c (read_process_output): Big simplification. Handle
4181 composition and post-read-conversion of coding system correctly.
4182 (send_process): Handle composition correctly.
4183
4184 * callproc.c (Fcall_process): Handle post-read-conversion of
4185 coding system if any.
4186
4187 * coding.c (decode_coding_iso2022): More strict check for handling
4188 single shifting.
4189 (coding_restore_composition): Pay attention to the case that
4190 cmp_data is not set properly (because of invalid code in the
4191 source text).
4192 (run_pre_post_conversion_on_str): Include text properties in the
4193 resulting string.
4194 (decode_coding_string): Set members of coding correctly.
4195
4196 2000-08-03 Gerd Moellmann <gerd@gnu.org>
4197
4198 * s/ia64.h: New file.
4199
4200 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
4201 Use NULL instead of 0 at the end of variable argument list of
4202 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
4203 sizeof (int) < sizeof (void *).
4204
4205 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
4206 of variable argument lists of XtVaGetValues and XtVaSetValues.
4207
4208 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
4209 variable argument lists of XtVaGetValues and XtVaSetValues.
4210
4211 2000-08-02 Gerd Moellmann <gerd@gnu.org>
4212
4213 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
4214 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
4215
4216 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
4217 prototype.
4218
4219 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
4220 in call to Fsingle_key_description.
4221
4222 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
4223 Callers changed.
4224
4225 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
4226
4227 * window.c (display_buffer_reuse_frames): New variable.
4228 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
4229 frames displaying BUFFER.
4230 (syms_of_window): Define Lisp variable
4231 display-buffer-reuse-frames.
4232
4233 2000-08-01 Miles Bader <miles@gnu.org>
4234
4235 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
4236 when to constrain NEW_POS (they were pretty screwed up before).
4237
4238 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
4239
4240 * msdos.c (run_msdos_command): Save and restore the master
4241 environment, for the case that child_setup signals an error.
4242 When mirroring slashes in DOS shell commands, don't fail when
4243 argv[2] has embedded blanks.
4244 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
4245 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
4246 (dos_ttraw): Call mouse_setup_buttons.
4247
4248 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
4249 using alloca; free it after run_msdos_command returns.
4250
4251 2000-07-27 Dave Love <fx@gnu.org>
4252
4253 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
4254 define.
4255 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
4256 working.
4257
4258 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
4259
4260 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
4261
4262 * editfns.c (lisp_time_argument): Fix last change.
4263
4264 2000-07-27 Gerd Moellmann <gerd@gnu.org>
4265
4266 * fns.c (Fdelete): Make it work on vectors and strings in addition
4267 to lists.
4268
4269 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
4270 (syms_of_fns): Initialize new variables.
4271 (sweep_weak_table): Handle weakness `key-or-value' and
4272 `key-and-value'.
4273 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
4274 weakness, with t meaning the same as `key-and-value'.
4275
4276 2000-07-27 Kenichi Handa <handa@etl.go.jp>
4277
4278 * coding.h (struct coding_system): Member safe_charset deleted.
4279
4280 * coding.c (Qsafe_charsets): This variable deleted.
4281 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
4282 variables.
4283 (coding_safe_chars): New function.
4284 (CODING_SAFE_CHAR_P): New macro.
4285 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
4286 checking safe_charsets member of the coding system. Caller
4287 changed.
4288 (detect_coding_iso2022): New local variable safe_chars.
4289 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
4290 safe_charsets member of the coding system.
4291 (decode_coding_iso2022): New local variable safe_chars.
4292 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
4293 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
4294 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
4295 (ENCODE_UNSAFE_CHARACTER): New macro.
4296 (encode_coding_iso2022): New local variable safe_chars. Check
4297 unsafe chars.
4298 (setup_coding_system): Delete the code to initialize
4299 coding->safe_charses
4300 (intersection, find_safe_codings): New functions.
4301 (Ffind_coding_systems_region_internal): New function.
4302 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
4303 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
4304 variable and initialize it.
4305
4306 * fns.c (char_table_ref_and_index): New function.
4307
4308 * lisp.h (char_table_ref_and_index): Add prototype.
4309
4310 2000-07-26 Sam Steingold <sds@gnu.org>
4311
4312 * editfns.c (lisp_time_argument): Added third argument `usec'.
4313 (Ffloat_time): New built-in Lisp function.
4314
4315 2000-07-26 Gerd Moellmann <gerd@gnu.org>
4316
4317 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
4318 for the character code.
4319
4320 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
4321 GNU/Linux.
4322
4323 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
4324 if called for a popup menu.
4325 (xmenu_show): Store help string in widget values.
4326
4327 2000-07-26 Dave Love <fx@gnu.org>
4328
4329 * syswait.h: Move some definitions.
4330 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
4331 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
4332 perspicuous definitions.
4333 (WTERMSIG): Fix bit pattern used.
4334
4335 2000-07-26 Kenichi Handa <handa@etl.go.jp>
4336
4337 * print.c (print_object): If vector printing is truncated, print
4338 "..." to indicate it as well as the case of list printing.
4339
4340 2000-07-25 Gerd Moellmann <gerd@gnu.org>
4341
4342 * xdisp.c (next_element_from_display_vector): Improve comments.
4343
4344 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
4345 for the character code, and the rest for the face id as in 20.x.
4346 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
4347
4348 * window.c (window_display_table): Cleaned up.
4349
4350 * syntax.c (Fforward_word): Add last arg nil in call of
4351 Fconstrain_to_field.
4352
4353 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
4354
4355 * fileio.c (Frename_file) [DOS_NT]: If the file names are
4356 identical but for the letter-case, don't call
4357 barf_or_query_if_file_exists.
4358
4359 2000-07-25 Miles Bader <miles@gnu.org>
4360
4361 * editfns.c (find_field): Honor special `boundary' fields.
4362 (Qboundary): New variables.
4363 (syms_of_editfns): Initialize Qboundary.
4364 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
4365 Use scan_buffer instead of find_before_next_newline, because it
4366 allows us to detect the boundary case where there's a newline at
4367 the search limit.
4368 * lisp.h (Fconstrain_to_field): Update external declaration.
4369
4370 2000-07-24 Gerd Moellmann <gerd@gnu.org>
4371
4372 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
4373 if that is nil.
4374
4375 2000-07-24 Dave Love <fx@gnu.org>
4376
4377 * s/sunos4-0.h, s/sol2.h:
4378 (LIBS_TERMCAP): Move from m/sparc.h.
4379
4380 * m/sparc.h (TERMINFO): Moved to system files (probably only
4381 relevant for sunos4 judging by its vintage).
4382 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
4383 __arch64__.
4384
4385 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
4386
4387 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
4388 name to single_keymap_panes.
4389
4390 2000-07-24 Andreas Schwab <schwab@suse.de>
4391
4392 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
4393
4394 2000-07-24 Gerd Moellmann <gerd@gnu.org>
4395
4396 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
4397 parameters instead of using int parameters. Expect FN to accept
4398 EMACS_INT parameters.
4399 (display_echo_area, resize_echo_area_axactly, current_message)
4400 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
4401 with new argument list.
4402 (resize_mini_window_1): New callback function.
4403 (current_message_1, truncate_message_1, set_message_1): Change
4404 parameter lists to the new format expected by
4405 with_echo_area_buffer.
4406
4407 2000-07-24 Kenichi Handa <handa@etl.go.jp>
4408
4409 * fontset.c (fontset_ref): Remove INLINE declaration.
4410 (fontset_ref_via_base): Likewise.
4411 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
4412 to downcase.
4413
4414 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
4415
4416 * msdos.c (IT_note_mouse_highlight): Process overlays in the
4417 correct order of priority. If help echo was found in an overlay,
4418 use that overlay as the object in which the help echo was found.
4419
4420 2000-07-22 Miles Bader <miles@gnu.org>
4421
4422 * textprop.c (Fprevious_single_char_property_change): The initial
4423 property value should be from the position preceding POSITION, not
4424 following it.
4425
4426 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
4427
4428 * coding.c (syms_of_coding): Doc fix for
4429 inhibit-iso-escape-detection.
4430
4431 2000-07-21 Gerd Moellmann <gerd@gnu.org>
4432
4433 * xterm.c (note_mouse_highlight): Process overlays in the right
4434 order of priority.
4435
4436 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
4437
4438 * xterm.c (note_mouse_highlight): If help-echo was found in an
4439 overlay, use that overlay as the object in which the help was
4440 found.
4441
4442 * window.c (foreach_window_1): Fix typo reversing an if-condition.
4443
4444 * window.c (foreach_window): Instead of a fake variable argument
4445 list, take one USER_DATA argument.
4446 (foreach_window_1): Likewise, and call callback functions with two
4447 args, the window and USER_DATA.
4448 (struct check_window_data): New struct.
4449 (check_window_containing): Use it.
4450 (window_from_coordinates): Set up a struct check_window_data for
4451 foreach_window.
4452 (add_window_to_list, freeze_window_start): Change parameters
4453 according to new calling convention.
4454
4455 * window.h (foreach_window): Change prototype.
4456
4457 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
4458
4459 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
4460
4461 * xmenu.c (menu_help_callback): Call show_help_echo with
4462 additional arguments OBJECT and POS.
4463
4464 2000-07-21 Kenichi Handa <handa@etl.go.jp>
4465
4466 * data.c (Faset): Allow storing any multibyte character in a
4467 string. Convert unibyte string to multibyte if necessary.
4468
4469 * xfns.c (x_encode_text): New function.
4470 (x_set_name): Use x_encode_text.
4471 (x_set_title): Likewise.
4472
4473 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
4474
4475 * xterm.h (x_encode_text): Add prototype.
4476
4477 2000-07-20 Dave Love <fx@gnu.org>
4478
4479 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
4480 xfree, not free.
4481
4482 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
4483
4484 * msdos.c (help_echo_window): New variable.
4485 (syms_of_msdos): Initialize and staticpro it.
4486 (IT_note_mode_line_highlight): Set help_echo_window.
4487 (IT_note_mouse_highlight): Ditto.
4488 (dos_rawgetc): Store help_echo_window in the second event produced
4489 for HELP_EVENTs.
4490
4491 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
4492 Record the object that generated the help echo and the position of
4493 that object in help_echo_object and help_echo_pos. Record that
4494 some glyphs in a row are displayed in mouse-face.
4495 (IT_update_begin): Don't clear mouse highlight unless one of the
4496 enabled glyph rows is marked as being displayed in mouse-face.
4497 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
4498 and position recorded in help_echo_object and help_echo_pos to the
4499 event queue.
4500 (IT_menu_display): Accept a new argument PN: the pane number of
4501 the current menu pane. Record the pane number and the item
4502 number of the item which has associated help string.
4503 (XMenuActivate): Update the prototype for help_callback in
4504 function declaration. Call IT_menu_display with the current menu
4505 pane number as an additional argument. Call help_callback with
4506 two additional arguments: the pane number and the item number of
4507 the menu item associated with the help text.
4508 (help_echo_object, help_echo_pos): New variables.
4509 (syms_of_msdos): Initialize them and staticpro help_echo_object.
4510
4511 * msdos.h (XMenuActivate): Update prototype.
4512
4513 2000-07-19 Gerd Moellmann <gerd@gnu.org>
4514
4515 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
4516 Add some more prototypes.
4517
4518 * xterm.c, xterm.h: Add some more prototypes.
4519
4520 * lisp.h (Fnext_single_char_property_change): Add prototype.
4521
4522 * dispnew.c (direct_output_for_insert): Remove confusing
4523 outer local variable mouse_face_overwritten_p.
4524 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
4525
4526 * alloc.c (allocate_string_data): Don't copy old string contents.
4527
4528 2000-07-19 Kenichi Handa <handa@etl.go.jp>
4529
4530 * coding.c (code_convert_region): Delete text properties before
4531 shrinking the conversion region.
4532
4533 2000-07-18 Gerd Moellmann <gerd@gnu.org>
4534
4535 * dispnew.c (update_text_area): Write the whole row if it
4536 has mouse-face in it.
4537
4538 * xfaces.c (face-alternative-font-family-alist): Remove
4539 DEFVAR_LISP; staticpro instead.
4540
4541 * xmenu.c (menu_help_callback): Call show_help_echo with
4542 new arguments.
4543
4544 * keyboard.c (show_help_echo): Add parameter WINDOW.
4545 (read_char): Call show_help_echo with window extracted from Lisp
4546 help event.
4547 (gen_help_event): Add parameter WINDOW.
4548
4549 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
4550
4551 * xterm.c (help_echo_window): New variable.
4552 (note_mouse_highlight, note_tool_bar_highlight): Set
4553 help_echo_window.
4554 (XTread_socket): Pass help_echo_window to gen_help_event.
4555 (syms_of_xterm): Initialize and staticpro help_echo_window.
4556
4557 2000-07-18 Dave Love <fx@gnu.org>
4558
4559 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
4560 systime.h.
4561
4562 2000-07-18 Gerd Moellmann <gerd@gnu.org>
4563
4564 * alloc.c (allocate_string_data): If string had already data
4565 assigned, copy old contents to new string data.
4566
4567 * coding.c (syms_of_coding): Fix typo in spelling of variable
4568 `inhibit-iso-escape-detection'.
4569
4570 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
4571
4572 * Makefile.in: Add dependencies on dispextern.h.
4573 (alloca.o): Don't define malloc and define EMACS_FREE instead of
4574 `free'; both can conflict with system header files.
4575
4576 2000-07-18 Kenichi Handa <handa@etl.go.jp>
4577
4578 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
4579 undefined.
4580
4581 2000-07-18 Dave Love <fx@gnu.org>
4582
4583 * window.c (Fwindow_list): Declare arg `window'.
4584
4585 2000-07-18 Kenichi Handa <handa@etl.go.jp>
4586
4587 * coding.c (setup_coding_system): Don't override the explicitly
4588 specified designations.
4589
4590 2000-07-15 Miles Bader <miles@gnu.org>
4591
4592 * editfns.c (char_property_eq, char_property_stickiness): Renamed
4593 from `text_property_eq' and `text_property_stickiness', respectively.
4594 (find_field, Fconstrain_to_field, char_property_eq)
4595 (char_property_stickiness): Changed to call char-property functions
4596 instead of text-property-only ones.
4597
4598 * textprop.c (Fnext_single_char_property_change): Made a subr (was
4599 `next_single_char_property_change'). Do more error checking, and
4600 cleanup limit behavior.
4601 (Fprevious_single_char_property_change): New function.
4602 (syms_of_textprop): Initialize new subrs.
4603
4604 * xdisp.c (display_prop_end, invisible_text_between_p):
4605 Call Fnext_single_char_property_change instead of
4606 next_single_char_property_change.
4607
4608 2000-07-15 Jason Rumney <jasonr@gnu.org>
4609
4610 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
4611 after menu is finished with.
4612 (add_menu_item): Only consider wv->title as a menu title.
4613 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
4614
4615 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
4616 null title.
4617 (FONT_REGEXP): Remove unused macro, and its sub-components.
4618 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
4619
4620 * w32term.c (help_echo_object, help_echo_pos): New variables.
4621 (note_mode_line_highlight): Store additional information about the
4622 help-echo in help_echo_object and help_echo_pos. Check both
4623 `local-map' and `keymap' properties for changing the cursor
4624 (note_mouse_highlight): Store additional information about the
4625 help-echo in help_echo_object and help_echo_pos.
4626 (note_tool_bar_highlight): Set help_echo_object to nil and
4627 help_echo_pos to -1.
4628 (w32_read_socket): Use gen_help_event instead of filling
4629 input_events manually.
4630 (syms_of_w32term): Staticpro help_echo_object.
4631 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
4632 set, arrange for a mouse-highlight redisplay in
4633 XTframe_up_to_date.
4634 (x_clear_mouse_face): New function.
4635 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
4636 (x_update_window_begin): No need to turn off the mouse
4637 highlight here.
4638 (show_mouse_face): Set the mouse_face_p flag of glyph rows
4639 depending on whether they contain glyphs highlighted in
4640 mouse-face.
4641 (x_fill_stretch_glyph_string): Consume runs of stretch
4642 glyphs instead of a single one.
4643 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
4644 with new argument list.
4645 (x_set_glyph_string_gc): Make sure the face's GC is valid.
4646 (x_append_glyph, x_append_composite_glyph)
4647 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
4648 changes in struct glyph starting 1999-12-27. See comments for
4649 xterm.c on 2000-07-05.
4650
4651 2000-07-14 Sam Steingold <sds@gnu.org>
4652
4653 * xfaces.c (realize_x_face): Fix the last patch:
4654 check `default_face' before dereferencing.
4655
4656 2000-07-14 Dave Love <fx@gnu.org>
4657
4658 * syntax.c (back_comment): Add null default in switch (for pcc).
4659
4660 2000-07-14 Kenichi Handa <handa@etl.go.jp>
4661
4662 * xfaces.c (realize_x_face): Make fontset using the base of the
4663 default_face's fontset, not using the default fontset.
4664
4665 * coding.c (inhibit_iso_escape_detection): New variable.
4666 (syms_of_coding): Make it a Lisp variable.
4667 (detect_coding_iso2022): If inhibit_iso_escape_detection is
4668 nonzero, ignore ISO2022's escape sequence.
4669
4670 2000-07-14 Gerd Moellmann <gerd@gnu.org>
4671
4672 * alloca.c (malloc) [emacs]: Define as xmalloc.
4673
4674 * xfns.c (Fx_show_tip): If frame parameters contain a position,
4675 use that instead of the mouse position. Add parameters DX and DY.
4676
4677 * dispextern.h (Fx_show_tip): Adjust number of parameters
4678 in prototype.
4679
4680 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
4681 if HELP is a function, call it with OBJECT and POS as parameters
4682 to get the help to display.
4683 (gen_help_event, kbd_buffer_store_help_event): New functions.
4684 (kbd_buffer_get_event): Construct the Lisp help-event differently.
4685 (read_char): Call show_help_echo with new parameters.
4686
4687 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
4688 Add prototypes.
4689
4690 * xterm.c (help_echo_object, help_echo_pos): New variables.
4691 (note_mode_line_highlight): Store additional information about the
4692 help-echo in help_echo_object and help_echo_pos. Check both
4693 `local-map' and `keymap' properties for changing the cursor
4694 (note_mouse_highlight): Store additional information about the
4695 help-echo in help_echo_object and help_echo_pos.
4696 (note_tool_bar_highlight): Set help_echo_object to nil and
4697 help_echo_pos to -1.
4698 (XTread_socket): Use gen_help_event instead of filling
4699 input_events manually.
4700 (syms_of_xterm): Staticpro help_echo_object.
4701
4702 * xmenu.c (menu_highlight_callback): Use
4703 kbd_buffer_store_help_event instead of setting up and input_event
4704 structure manually.
4705
4706 * xdisp.c (eval_form): GCPRO argument sexpr.
4707 (call_function): New function.
4708 (handle_single_display_prop): Use call_function and FUNCTIONP
4709 instead of checking whether if font_height is a symbol and
4710 using eval_form.
4711
4712 * eval.c (internal_condition_case_2): New function.
4713
4714 * lisp.h (FUNCTIONP): New macro.
4715 (internal_condition_case_2, call_function): Add prototypes.
4716
4717 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
4718 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
4719 Always set `arg' member of input_events.
4720 (construct_menu_click): Unused function removed.
4721
4722 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
4723
4724 * w32term.c (construct_mouse_click, construct_mouse_wheel)
4725 (construct_drag_n_drop, x_scroll_bar_handle_click)
4726 (w32_read_socket): Always set `arg' member of input_events.
4727
4728 * keyboard.c (show_help_echo): Use eval_form. Add comment.
4729
4730 * lisp.h (eval_form): Add prototype.
4731
4732 * xdisp.c (eval_form): Make it externally visible.
4733
4734 2000-07-13 Gerd Moellmann <gerd@gnu.org>
4735
4736 * xterm.c (x_handle_tool_bar_click): Store the frame in the
4737 frame_or_window slot of TOOL_BAR_EVENT input events instead of
4738 consing. For prefix events, store the frame in the `arg' slot of
4739 the event, otherwise store the key there.
4740 (XTread_socket): Instead of consing, use the frame_or_window slot
4741 of HELP_EVENTs for the frame, and the `arg' slot for the help
4742 string.
4743
4744 * xmenu.c (menu_highlight_callback): Store help string in the
4745 `arg' member of the input event; don't cons.
4746 (menubar_selection_callback): Use the `arg' slot of input events
4747 to queue additional information, instead of consing.
4748
4749 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
4750
4751 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
4752 TOOL_BAR_EVENTs.
4753 (w32_read_socket): Adapt to changes in HELP_EVENTs.
4754
4755 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
4756 input events to queue additional information, instead of consing.
4757
4758 * keyboard.c (kbd_buffer_gcpro): Renamed from
4759 kbd_buffer_frame_or_window. Now used for all Lisp objects
4760 referenced from the input queue.
4761 (kbd_buffer_store_event): Always use structure assignment for
4762 copying input events. Record all Lisp objects referenced from
4763 events in kbd_buffer_gcpro.
4764 (kbd_buffer_get_event): Construct Lisp `help-echo' events
4765 differently from input events. Test for prefix menu_bar_events
4766 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
4767 event in kbd_buffer_gcpro to nil.
4768 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
4769 frame_or_window is equal to its arg member as prefix events.
4770 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
4771 used by an input event to nil.
4772 (init_keyboard): Use two times the size of the input queue
4773 for kbd_buffer_gcpro.
4774 (syms_of_keyboard): Likewise.
4775
4776 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
4777 USER_SIGNAL_EVENT.
4778
4779 * termhooks.h (struct input_event): Add member `arg'.
4780 (MENU_BAR_EVENT): Renamed from menu_bar_event.
4781 (USER_SIGNAL_EVENT): Renamed from user_signal.
4782
4783 * xfaces.c (ASET): Remove definition.
4784
4785 * lisp.h (AREF, ASET, ASIZE): New macros.
4786
4787 * fontset.c (AREF, ASIZE): Remove definitions.
4788
4789 * fns.c (AREF): Remove definition.
4790
4791 * composite.c (AREF): Remove definition.
4792
4793 2000-07-12 Gerd Moellmann <gerd@gnu.org>
4794
4795 * dispnew.c (redraw_overlapped_rows): Add missing local.
4796 (scrolling_window): Remove debug code.
4797
4798 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
4799 Before scrolling, turn off a mouse-highlight in the window
4800 being scrolled.
4801
4802 * xterm.c (x_update_window_end): Add parameter
4803 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
4804 redisplay in XTframe_up_to_date.
4805 (x_clear_mouse_face): New function.
4806 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
4807
4808 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
4809 current glyph row.
4810 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
4811 it when any row is written to that contains glyphs highlighted in
4812 mouse-face.
4813 (update_window): Call the window update end hook with new
4814 parameter MOUSE_FACE_OVERWRITTEN_P.
4815 (direct_output_for_insert): Give up if row contains mouse-face.
4816
4817 * dispextern.h (struct redisplay_interface): Add parameter
4818 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
4819 (clear_mouse_face): New function pointer member.
4820
4821 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
4822
4823 * syntax.c (back_comment): Use one switch rather than a few `if's.
4824 Obey open_paren_in_column_0_is_defun_start.
4825 When reverting to the `slow' method, try to nicely handle the case
4826 of nested comments by checking that the comment-starter we found
4827 does indeed match the comment-ender.
4828 (scan_sexps_forward, scan_sexps_forward):
4829 Ignore excessive opening parenthesis rather than throwing an error.
4830
4831 2000-07-11 Gerd Moellmann <gerd@gnu.org>
4832
4833 * doc.c (Fsubstitute_command_keys): Handle case that a GC
4834 in Fwhere_is_internal or get_keymap_1 relocates string contents.
4835
4836 * dispnew.c (direct_output_forward_char): Give up if currently
4837 displaying a message instead of the minibuffer contents.
4838
4839 * xterm.c (x_update_window_begin): No need to turn off the mouse
4840 highlight here.
4841 (show_mouse_face): Set the mouse_face_p flag of glyph rows
4842 depending on whether they contain glyphs highlighted in
4843 mouse-face.
4844
4845 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
4846 compare the mouse_face_p flags of both rows.
4847
4848 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
4849
4850 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
4851
4852 * keyboard.c (show_help_echo): Accept additional parameter
4853 ok_to_overwrite_keystroke_echo.
4854 (read_char): Call show_help_echo with a zero
4855 ok_to_overwrite_keystroke_echo argument.
4856 * keyboard.h (show_help_echo): Update prototype of
4857 show_help_echo.
4858 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
4859 ok_to_overwrite_keystroke_echo argument.
4860 * w32menu.c (w32_menu_display_help): Call show_help_echo with
4861 non-zero ok_to_overwrite_keystroke_echo argument.
4862
4863 2000-07-10 Gerd Moellmann <gerd@gnu.org>
4864
4865 * xdisp.c (try_window_id): If changes are all below what is
4866 displayed in the window, and point is in the window, we still
4867 might have to find point on the display.
4868
4869 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
4870 glyphs instead of a single one.
4871 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
4872 with new argument list.
4873 (x_set_glyph_string_gc): Make sure the face's GC is valid.
4874
4875 * keymap.c (get_keymap_1): Add comment that this function can GC.
4876 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
4877 comment that functions can GC.
4878 (Fset_keymap_parent): GCPRO arg KEYMAP.
4879
4880 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
4881
4882 * msdos.c (XMenuActivate): After exiting the menu, restore the
4883 echo area message and erase it.
4884
4885 2000-07-10 Kenichi Handa <handa@etl.go.jp>
4886
4887 * fontset.c (Ffontset_info): Make the return value more compatible
4888 with that of Emacs 20.
4889
4890 2000-07-07 Gerd Moellmann <gerd@gnu.org>
4891
4892 * eval.c (Fsignal): Handle case that backtrace_list is null.
4893
4894 2000-07-07 Kenichi Handa <handa@etl.go.jp>
4895
4896 * ccl.c (Fccl_execute): Typo fixed.
4897
4898 2000-07-06 Gerd Moellmann <gerd@gnu.org>
4899
4900 * window.c (window_loop): Add missing gcpro1 local variable.
4901
4902 * window.c (Fwindow_list): Reverse list at the end.
4903 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
4904 means allow windows on OWINDOW's frame, only.
4905 (window_loop): Simplified; use Fwindow_list.
4906
4907 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
4908
4909 2000-07-05 Gerd Moellmann <gerd@gnu.org>
4910
4911 * xterm.c (XTread_socket): Increment handling_signal at the start,
4912 decrement it at the end.
4913
4914 * eval.c (handling_signal): New variable.
4915 (Fsignal): Abort if handling_signal is non-zero.
4916
4917 * lisp.h (handling_signal): External declaration.
4918
4919 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
4920
4921 2000-07-05 Ken Raeburn <raeburn@gnu.org>
4922
4923 Sound support for NetBSD through "Linux emulation" support:
4924 * config.in (HAVE_SOUNDCARD_H): Undef.
4925 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
4926 * Makefile.in (LIBSOUND): New variable.
4927 (LIBES): Include it.
4928 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
4929 <soundcard.h>.
4930 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
4931 elsewhere.
4932 (vox_open): Use DEFAULT_SOUND_DEVICE.
4933 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
4934
4935 2000-07-05 Gerd Moellmann <gerd@gnu.org>
4936
4937 * print.c (print_error_message): If Vsignaling_function is set,
4938 show it in *Messages*.
4939
4940 * lisp.h (Vsignaling_function): External declaration.
4941
4942 * eval.c (Vsignaling_function): New variable.
4943 (Fsignal): Compute it.
4944 (syms_of_eval): Staticpro it.
4945
4946 2000-07-05 Dave Love <fx@gnu.org>
4947
4948 * syswait.h: Use the autoconf recommended approach. Old code
4949 #if'd out in case we need to revert.
4950
4951 * config.in (HAVE_SYS_WAIT_H): Added.
4952
4953 2000-07-05 Andrew Innes <andrewi@gnu.org>
4954
4955 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
4956 when non-NULL instead of __morecore, to take account of buffer
4957 memory. This also solves a problem with spurious memory warnings
4958 on Windows.
4959
4960 * ralloc.c: Make real_morecore non-static.
4961
4962 * eval.c (internal_condition_case): Comment out abort if
4963 interrupt_input_blocked is not zero.
4964
4965 * makefile.nt: Add support for `bootstrap' and related targets.
4966 Include minimal debug info in emacs.exe in release build.
4967 Remove all dependencies on lisp.h, and fixup some others.
4968
4969 * w32.c (init_environment): Install code from 20.7 for providing
4970 default values for environment variables, based on the
4971 executable's own location.
4972 (map_w32_filename): Handle filenames that are longer than
4973 MAX_PATH.
4974 (sys_socket): Install socket inheritance bug fix from 20.7.
4975
4976 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
4977 here via blockinput.h).
4978
4979 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
4980
4981 * w32menu.c (w32_menu_display_help):
4982 * xmenu.c (menu_help_callback): Use show_help_echo.
4983
4984 * keyboard.h (show_help_echo): Declare.
4985
4986 * keyboard.c (show_help_echo): New function, extracted from read_char.
4987 Feval its `msg' argument if it's a cons cell.
4988 (read_char): Use it.
4989 (follow_key): Pass `autoload' to get_keyelt.
4990
4991 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
4992 (note_tool_bar_highlight, XTread_socket):
4993 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
4994 (dos_rawgetc):
4995 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
4996 (note_tool_bar_highlight, w32_read_socket):
4997 Do not gratuitously ignore non-string `help-echo' properties.
4998
4999 2000-07-05 Gerd Moellmann <gerd@gnu.org>
5000
5001 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
5002
5003 * window.c (delete_all_subwindows): Reset Vwindow_list.
5004
5005 * xterm.c (x_append_glyph, x_append_composite_glyph)
5006 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
5007 changes in struct glyph starting 1999-12-27. Some bit-fields of
5008 struct glyph were not set, which made glyphs unequal when compared
5009 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
5010 effects were the result. This also depended on the contents of
5011 memory returned by xmalloc. If flickering happens again, activate
5012 the code in clear_glyph_row that's in #if 0. If the flickering is
5013 gone with that, chances are that it is caused by something
5014 similar.
5015
5016 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
5017
5018 * dispextern.h: Add some comments.
5019
5020 * window.c (add_window_to_list): Add parameter LIST.
5021 (window_list): Order list so that, for each frame, windows are
5022 in canonical order, and so that frames appear in the list in
5023 the order given by Vframe_list.
5024 (next_window): Reverse the handling of NEXT_P.
5025
5026 2000-07-04 Gerd Moellmann <gerd@gnu.org>
5027
5028 * window.c (Vwindow_list): New variable.
5029 (make_window, delete_window): Set Vwindow_list to nil.
5030 (check_window_containing): New function.
5031 (window_from_coordinates): Rewritten.
5032 (add_window_to_list, window_list, candidate_window_p)
5033 (decode_next_window_args, next_window): New functions.
5034 (Fnext_window, Fprevious_window): Rewritten in terms of
5035 next_window.
5036 (Fwindow_list): New function.
5037 (Fother_window): Cleaned up.
5038 (foreach_window): Add a longer "variable argument list". Let
5039 callback function return 0 to indicate that cycling over windows
5040 should stop.
5041 (foreach_window_1): Likewise.
5042 (freeze_window_start): Return int.
5043 (init_window): New function.
5044 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
5045
5046 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
5047 input_event with bzero.
5048 (main): Call init_window.
5049
5050 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
5051 a menu filter.
5052
5053 2000-07-04 Kenichi Handa <handa@etl.go.jp>
5054
5055 * composite.h (make_composition_value_copy): Extern it.
5056
5057 * composite.c (make_composition_value_copy): New function.
5058
5059 * editfns.c (Fformat): While copying text properties, make each
5060 composition property value a copy.
5061
5062 * fns.c (concat): While copying text properties, make each
5063 composition property value a copy.
5064
5065 2000-07-03 Gerd Moellmann <gerd@gnu.org>
5066
5067 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
5068
5069 * fns.c (sweep_weak_table): Mark only objects that are not
5070 marked already.
5071
5072 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
5073 include those frames as candidates which have their focus
5074 redirected to the minibuffer frame.
5075
5076 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
5077
5078 * fns.c (Fputhash): Return `value' rather than nil.
5079
5080 2000-06-30 Gerd Moellmann <gerd@gnu.org>
5081
5082 * frame.c (next_frame): Don't check focus redirection in case
5083 MINIBUF is a window. Doing so excludes frames using MINIBUF
5084 unless their focus is redirected, which contradicts the
5085 specification of next-frame, and leads to infinite loops in
5086 certain situations when cycling through windows with next-window.
5087
5088 2000-06-30 Kenichi Handa <handa@etl.go.jp>
5089
5090 * coding.c (code_convert_region): Even if the length of text is
5091 zero, try to convert it if coding->type is coding_type_ccl.
5092 (decode_coding_string, encode_coding_string): Likewise.
5093
5094 2000-06-28 Gerd Moellmann <gerd@gnu.org>
5095
5096 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
5097 the display if windows_or_buffers_changed.
5098
5099 * dispnew.c (struct row_entry): New structure.
5100 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
5101 (row_table_size, old_lines, new_lines, old_lines_size)
5102 (new_lines_size, run_pool, runs_size, runs): New variables.
5103 (add_row_entry): New function.
5104 (scrolling_window): Use data structures allocated with xmalloc and
5105 held in global variables, instead of allocating them with alloca and
5106 holding them in local variables. Use a larger hash table whose
5107 size depends on glyph matrix sizes. Don't use bzero to clear the
5108 hash table; instead, clear used slots only.
5109
5110 * fns.c (next_almost_prime): Make it externally visible.
5111
5112 * lisp.h (next_almost_prime): Add prototype.
5113
5114 * s/isc4-0.h (sigunblock): Define.
5115
5116 * s/sco5.h (sigunblock): Define.
5117
5118 2000-06-27 Dave Love <fx@gnu.org>
5119
5120 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
5121 (moved to osf5-0.h).
5122 [!NOT_C_CODE]: Protect string.h stuff.
5123
5124 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
5125 (sys_siglist, NSIG): Definitions moved here from osf1.h.
5126
5127 2000-06-27 Gerd Moellmann <gerd@gnu.org>
5128
5129 * xdisp.c (resize_mini_window): Subtract the extra line spacing
5130 below the last line from the needed window height.
5131
5132 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
5133
5134 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
5135 (Fwidget_get): Use it.
5136 (syms_of_fns): Defsubr it.
5137
5138 2000-06-26 Gerd Moellmann <gerd@gnu.org>
5139
5140 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
5141 display info for XIM.
5142 (xim_open_dpy): Likewise.
5143 (xim_close_dpy): Don't free the display info's XIM.
5144
5145 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
5146
5147 * config.in (USE_XIM): New define.
5148
5149 * keymap.c (get_keyelt): For menu-items containing a `:filter
5150 FILTER', apply FILTER to the menu-item's definition to get the
5151 real definition to use.
5152
5153 * lisp.h (QCfilter): External declaration.
5154
5155 * xfns.c (Fimage_size): New function.
5156 (syms_of_xfns): Defsubr it.
5157
5158 2000-06-26 Andreas Schwab <schwab@suse.de>
5159
5160 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
5161 Fstring_as_unibyte.
5162
5163 2000-06-25 Dave Love <fx@gnu.org>
5164
5165 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
5166 tgetnum.
5167
5168 * Makefile.in (blockinput.h): Depend on atimer.h.
5169 (atimer.h): Depend on systime.h.
5170
5171 * blockinput.h: Protect against multiple inclusion. Include
5172 atimer.h.
5173
5174 * atimer.h: Protect against multiple inclusion. Include
5175 systime.h.
5176
5177 * lisp.h (swap_in_global_binding): Declare.
5178
5179 2000-06-24 Ken Raeburn <raeburn@gnu.org>
5180
5181 * process.c (Fopen_network_stream): Turn off atimers for duration
5182 of call to connect. (Patch from Gerd.)
5183
5184 2000-06-23 Dave Love <fx@gnu.org>
5185
5186 * ralloc.c: Maybe include unistd.h
5187
5188 * emacs.c (setgrp): Undefine before defining.
5189 (malloc_warning, set_time_zone_rule, index): Prototype.
5190
5191 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
5192 HAVE_STRUCT_TIMEZONE.
5193
5194 * s/osf1.h: Move string.h hack here from alpha.h and make it
5195 conditional.
5196 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
5197 _XOPEN_SOURCE.
5198 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
5199 (SOCKLEN_TYPE): Don't define.
5200
5201 * m/alpha.h: Remove string.h hack.
5202
5203 * s/osf5-0.h: New file.
5204
5205 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
5206 include time.h, done by systime.h.
5207 [__FreeBSD__]: Remove redundant includes.
5208
5209 * callproc.c (setpgrp): Undefine before defining.
5210 (delete_temp_file): Return Qnil to avoid warning.
5211
5212 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
5213
5214 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
5215 HAVE_X_WINDOWS.
5216
5217 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
5218
5219 * composite.h (compose_text): Declare.
5220
5221 * xterm.c: Don't include sys/types.h unconditionally. Don't
5222 protect its inclusion with !USG (following xmenu.c).
5223
5224 2000-06-23 Gerd Moellmann <gerd@gnu.org>
5225
5226 * xfns.c (x_create_tip_frame): Initialize frame's colors like
5227 in x_create_frame.
5228
5229 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
5230
5231 * coding.c (decode_eol_post_ccl): Special handling for undecided
5232 and inconsistent EOL types.
5233
5234 2000-06-22 Gerd Moellmann <gerd@gnu.org>
5235
5236 * xrdb.c (x_load_resources): Add default resource for scroll bar's
5237 trough color and main window's background color.
5238
5239 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
5240 differently.
5241
5242 * xterm.h (Xt_app_con): External declaration.
5243
5244 * widget.c (EmacsFrameRealize): Fix typo.
5245
5246 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
5247
5248 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
5249 (handle_invisible_prop): Record the start of invisible text in
5250 it->add_overlay_start.
5251 (struct overlay_entry): Add member `overlay'.
5252 (handle_overlay_change): Simplify.
5253 (next_overlay_string): After having processed overlay strings at the
5254 end of the buffer, record that fact in
5255 it->overlay_strings_at_end_processed_p.
5256 (compare_overlay_entries): If before- and after-strings come
5257 from the same overlay, let before-strings come first.
5258 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
5259 (load_overlay_strings): Take it->add_overlay_start into account
5260 when adding overlay strings.
5261
5262 * dispextern.h (struct it): Add member add_overlay_start.
5263
5264 2000-06-22 Dave Love <fx@gnu.org>
5265
5266 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
5267
5268 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
5269
5270 2000-06-22 Kenichi Handa <handa@etl.go.jp>
5271
5272 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
5273 is greater than 0.
5274
5275 2000-06-21 Dave Love <fx@gnu.org>
5276
5277 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
5278
5279 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
5280
5281 * syntax.c (back_comment): Simplify string-parity counting (with
5282 the added benefit of handling multiple string-styles as long as
5283 they are not intertwined).
5284 Jump to the slow code as soon as a comment starter is found in
5285 a "string_lossage" position. Fixes the case: " /* " /* " */.
5286
5287 2000-06-21 Dave Love <fx@gnu.org>
5288
5289 * Makefile.in: Use GETLOADAVG_LIBS.
5290
5291 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
5292 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
5293
5294 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
5295
5296 * syntax.c (describe_syntax): Recognize the `n'estable bit.
5297 (Fforward_comment, scan_lists):
5298 Check the comstyle of single-char comment-starters.
5299 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
5300 we're just at the beginning of the comment (f.ex with (*) ... (*)).
5301 Check the comstyle of single-char comment-starters.
5302 Clarify control-flow around the Scomment case.
5303
5304 2000-06-20 Dave Love <fx@gnu.org>
5305
5306 * fns.c (make_hash_table, maybe_resize_hash_table):
5307 Cast arg of next_almost_prime.
5308
5309 * tparam.c [emacs]: Include lisp.h.
5310
5311 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
5312 and unistd.h.
5313
5314 2000-06-20 Gerd Moellmann <gerd@gnu.org>
5315
5316 * keyboard.c (adjust_point_for_property): Check if display
5317 property should be treated as intangible by looking at its
5318 value.
5319
5320 * xdisp.c (single_display_prop_intangible_p)
5321 (display_prop_intangible_p): New functions.
5322
5323 * dispextern.h (display_prop_intangible_p): Add prototype.
5324
5325 * xdisp.c (dump_glyph_row): Show type of glyph->object.
5326
5327 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
5328 argument to sigprocmask.
5329
5330 * s/sco5.h (sigblock): Redefined to pass a pointer as second
5331 argument to sigprocmask.
5332
5333 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
5334 sigprocmask_set, and pass a pointer to it to sigprocmask.
5335
5336 * sysdep.c (sigprocmask_set): New variable.
5337
5338 * fileio.c (make_temp_name): Don't use `%s' in string passed to
5339 report_file_error.
5340
5341 2000-06-20 Sam Steingold <sds@gnu.org>
5342
5343 * xrdb.c: Don't declare xmalloc, xrealloc.
5344
5345 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
5346
5347 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
5348 (re_comp): Cast gettext return value to avoid complaints when
5349 !HAVE_LIBINTL.
5350
5351 2000-06-20 Dave Love <fx@gnu.org>
5352
5353 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
5354 HAVE_GETTIMEOFDAY.
5355
5356 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
5357
5358 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
5359
5360 * m/alpha.h: Don't declare xmalloc, xrealloc.
5361
5362 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
5363
5364 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
5365
5366 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
5367
5368 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
5369 HAVE_GETWD.
5370
5371 * keyboard.h (poll_for_input_1): Declare.
5372
5373 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
5374
5375 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
5376
5377 * doprnt.c: Don't declare xmalloc, xrealloc.
5378
5379 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
5380 (getenv, ctime, getwd): Removed.
5381 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
5382
5383 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
5384 x_set_tool_bar_lines.
5385
5386 * config.in: Add HAVE_GETWD. Move some definitions above
5387 machine/system includes.
5388
5389 2000-06-20 Kenichi Handa <handa@etl.go.jp>
5390
5391 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
5392
5393 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
5394 contain information about ENCODING.
5395
5396 * fontset.c (FONTSET_ASCII): Use the first element of char table
5397 for an ASCII font, not defalt slot.
5398 (fontset_ref_via_base): If FONTSET doesn't contain information for
5399 C, try the default fontset.
5400 (make_fontset): Don't copy the default fontset.
5401 (fontset_font_pattern): Likewise.
5402 (accumulate_font_info): If ELT is nil, use the corresponding
5403 element in the default fontset.
5404
5405 2000-06-19 Dave Love <fx@gnu.org>
5406
5407 * syntax.c (Fparse_partial_sexp): Doc fix.
5408
5409 * regex.h: Test PROTOTYPES as well as __STDC__.
5410
5411 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
5412 errno, strerror. Put text after #endif in comment.
5413
5414 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
5415 pcc).
5416
5417 * xterm.c (x_frame_of_widget): Likewise.
5418
5419 2000-06-19 Gerd Moellmann <gerd@gnu.org>
5420
5421 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
5422 to Vfundamental_mode_abbrev_table.
5423
5424 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
5425 bogus objects are marked. This slows down GC by ~80 percent, but
5426 it might be worth trying when debugging GC-related problems.
5427 This feature requires conservative stack marking to be enabled.
5428
5429 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
5430 returns XLookupChars, reset `modifiers' to zero.
5431
5432 2000-06-19 Dave Love <fx@gnu.org>
5433
5434 * mktime.c: Unprotoized.
5435
5436 2000-06-19 Richard Stallman <rms@gnu.org>
5437
5438 * data.c (set_internal): If variable is frame-local,
5439 store the new value immediately into the frame parameter alist.
5440
5441 2000-06-19 Ken Raeburn <raeburn@gnu.org>
5442
5443 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
5444 in the custom handler pointer.
5445
5446 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
5447 value, or checks for CHAR_META can fail when Lisp_Object is a
5448 union type.
5449 * keymap.c (get_keyelt): Likewise.
5450
5451 2000-06-19 Kenichi Handa <handa@etl.go.jp>
5452
5453 * ccl.h (struct ccl_program): New member eol_type.
5454 (struct ccl_spec): New member cr_carryover.
5455
5456 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
5457 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
5458
5459 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
5460 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
5461 (decode_eol_post_ccl): New function.
5462 (decode_coding): Don't detect EOL format here for CCL based coding
5463 systems.
5464 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
5465 decode_eol_post_ccl after running the CCL program.
5466 (code_convert_region): Don't detect EOL format here for CCL based
5467 coding systems.
5468 (decode_coding_string): Likewise.
5469
5470 2000-06-18 Ken Raeburn <raeburn@gnu.org>
5471
5472 * charset.c (update_charset_table): Use XINT on "iso_final_char"
5473 when treating it as an integer.
5474
5475 * coding.h (encode_coding_string): Declare.
5476
5477 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
5478 it as an integer.
5479
5480 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
5481 "xkeymap" to avoid shadowing the "enum map_type" value that needs
5482 to be passed to get_local_map.
5483
5484 * sound.c (Fplay_sound): Don't call make_number on
5485 Frun_hook_with_args count argument.
5486
5487 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
5488 for lisp objects in X event structure data field, when lisp
5489 objects are represented with unions.
5490 (x_scroll_bar_to_input_event): Ditto.
5491
5492 2000-06-16 Ken Raeburn <raeburn@gnu.org>
5493
5494 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
5495 termination of string. Fix sense of test whether
5496 Vline_number_display_limit is an integer.
5497
5498 2000-06-16 Gerd Moellmann <gerd@gnu.org>
5499
5500 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
5501 only if HAVE_X_WINDOWS.
5502
5503 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
5504 of titles.
5505
5506 * dispnew.c (update_frame_1): Handle case that cursor vpos is
5507 out of bounds.
5508
5509 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
5510
5511 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
5512 of its headers.
5513
5514 2000-06-15 Kenichi Handa <handa@etl.go.jp>
5515
5516 * coding.c (decode_coding_emacs_mule): Always set src_base at the
5517 start of the while loop.
5518
5519 2000-06-15 Gerd Moellmann <gerd@gnu.org>
5520
5521 * atimer.c (alarm_signal_handler): Add forward declaration.
5522
5523 * data.c (set_internal): Remove debug code.
5524
5525 2000-06-14 Gerd Moellmann <gerd@gnu.org>
5526
5527 * Makefile.in (bootstrap-temacs): Add `-I../src'.
5528
5529 * unexec.c (toplevel) [COFF]: Include coff.h.
5530
5531 * s/lynxos.h: New file.
5532
5533 * keymap.c (Fsingle_key_description): Enclose function key and
5534 event symbol names in angle brackets.
5535
5536 * xdisp.c (setup_echo_area_for_printing): Call
5537 message_log_maybe_newline if message_buf_print is not set.
5538
5539 * print.c (printchar, strout): Don't check message_buf_print
5540 before calling setup_echo_area_for_printing because that
5541 function does something useful even when message_buf_print is
5542 already set.
5543
5544 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
5545 variables.
5546 (ensure_echo_area_buffers): Initialize echo buffer's
5547 truncate lines setting to nil.
5548 (with_echo_area_buffer): Don't set the echo buffer's truncate
5549 lines setting here.
5550 (set_message_1): Set it here instead, based on the value
5551 of message_truncate_lines.
5552 (resize_mini_window): Handle case that lines are truncated.
5553 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
5554 message-truncate-lines.
5555
5556 * keyboard.c (read_char): Bind message-truncate-lines to t
5557 while displaying a help-echo.
5558
5559 * lisp.h (Qmessage_truncate_lines): External declaration.
5560
5561 2000-06-13 Gerd Moellmann <gerd@gnu.org>
5562
5563 * xdisp.c (Vline_number_display_limit): Renamed from
5564 line_number_display_limit.
5565 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
5566 Extend documentation string. Initialize
5567 Vline_number_display_limit to nil meaning no limit.
5568 (decode_mode_spec): Use Vline_number_display_limit with its new
5569 meaning.
5570
5571 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
5572
5573 2000-06-13 Richard Stallman <rms@gnu.org>
5574
5575 * frame.c (Fmodify_frame_parameters): Doc fix.
5576
5577 * xfns.c (x_set_frame_parameters): Comment fix.
5578
5579 * frame.c (store_frame_param): Call swap_in_global_binding if the
5580 variable's current binding was chosen based on this frame.
5581
5582 * data.c (swap_in_global_binding): New function.
5583
5584 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
5585
5586 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
5587 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
5588
5589 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
5590
5591 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
5592
5593 2000-06-12 Jason Rumney <jasonr@gnu.org>
5594
5595 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
5596
5597 * w32.h (EMACS_W32_H): Renamed from _NT_H_
5598
5599 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
5600
5601 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
5602
5603 2000-06-12 Gerd Moellmann <gerd@gnu.org>
5604
5605 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
5606 (syms_of_xfaces): Defsubr Sdump_colors.
5607 (x_free_colors): Don't treat b&w specially on default visual.
5608 (x_free_dpy_colors): New function.
5609 (free_face_colors): Don't check visual class; it's done
5610 in x_free_colors.
5611
5612 * xterm.c (x_frame_of_widget): New function.
5613 (x_alloc_nearest_color_for_widget): Use it.
5614 (x_copy_dpy_color): New function.
5615 (x_destroy_window): Free various colors.
5616
5617 2000-06-12 Kenichi Handa <handa@etl.go.jp>
5618
5619 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
5620
5621 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
5622
5623 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
5624
5625 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
5626
5627 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
5628
5629 2000-06-11 Dave Love <fx@gnu.org>
5630
5631 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
5632
5633 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
5634
5635 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
5636
5637 2000-06-11 Gerd Moellmann <gerd@gnu.org>
5638
5639 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
5640 to `XEvent *'.
5641
5642 2000-06-10 Kenichi Handa <handa@etl.go.jp>
5643
5644 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
5645 (regex_compile): Fix the code for handling the case of single byte
5646 char and multibyte char being mixed in a range within [...].
5647
5648 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
5649 and dst_multibyte members of coding.
5650
5651 * charset.c (update_charset_table): Update the table
5652 bytes_by_char_head.
5653 (init_charset_once): Initialize elements of bytes_by_char_head to
5654 1 except for leading codes for private charases.
5655
5656 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
5657 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
5658 sequence.
5659
5660 2000-06-09 Ken Raeburn <raeburn@gnu.org>
5661
5662 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
5663 access the data it doesn't point to.
5664
5665 2000-06-08 Gerd Moellmann <gerd@gnu.org>
5666
5667 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
5668 will be translated to a switch-frame event when reading the
5669 event queue. This is necessary because Emacs otherwise won't
5670 perform a switch-frame to a new frame until some other event, for
5671 example a keystroke event, forces it to do so. This has various
5672 effects, one visible being that the cursor of a frame created with
5673 C-x 5 2 or switched to with a window manager key binding like
5674 A-TAB stays hollow because selected_window isn't on the newly
5675 focused frame until the switch-frame is performed.
5676
5677 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
5678 generating a switch-frame event if necessary.
5679
5680 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
5681
5682 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
5683 it's an integer.
5684
5685 2000-06-08 Kenichi Handa <handa@etl.go.jp>
5686
5687 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
5688 charset.
5689
5690 2000-06-07 Gerd Moellmann <gerd@gnu.org>
5691
5692 * window.c (displayed_window_lines): Take empty lines at
5693 the bottom of a window into account.
5694
5695 * window.c (displayed_window_lines): New function.
5696 (Fmove_to_window_line): Use displayed_window_lines to determine
5697 the number of lines to move, instead of using the window's height.
5698
5699 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
5700 to stop reading, even if the form read sets point to a different
5701 value when evaluated.
5702
5703 * xdisp.c (display_line): Fix code deciding in which line to
5704 put the cursor.
5705
5706 2000-06-07 Kenichi Handa <handa@etl.go.jp>
5707
5708 * fileio.c (e_write): Free composition data if stored in
5709 coding->cmp_data.
5710
5711 2000-06-06 Gerd Moellmann <gerd@gnu.org>
5712
5713 * xdisp.c (display_line): Set row's and iterator's
5714 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
5715 Set cursor even if row ends in the middle of a character.
5716 (dump_glyph_row): Print values of new flags.
5717 (redisplay_window) <cursor movement in unchanged window>: When
5718 point has been moved forward, and PT is at the end of the cursor
5719 row, don't place the cursor in the next row if the cursor row ends
5720 in the middle of a character or at ZV.
5721
5722 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
5723 (struct glyph_row): Add starts_in_middle_of_char_p and
5724 ends_in_middle_of_char_p.
5725 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
5726 ends_in_middle_of_char_p flag.
5727 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
5728
5729 * term.c (append_glyph): Revert change of 2000-06-06.
5730
5731 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
5732 padding glyph not fitting on line as whole character not
5733 fitting on line.
5734
5735 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
5736 this isn't true for images with `:ascent 100'.
5737
5738 2000-06-06 Kenichi Handa <handa@etl.go.jp>
5739
5740 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
5741 as modified if it is originally unmodified.
5742
5743 * term.c (encode_terminal_code): Change the way to check if
5744 terminal coding does any conversion.
5745 (append_glyph): Set glyph->pixel_width correctly.
5746
5747 * xdisp.c (display_line): While checking line continuation, pay
5748 attention to a padding glyph.
5749
5750 2000-06-05 Gerd Moellmann <gerd@gnu.org>
5751
5752 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
5753
5754 2000-06-05 Dave Love <fx@gnu.org>
5755
5756 * xdisp.c: Include fontset.h.
5757
5758 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
5759
5760 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
5761
5762 * dispnew.c: Conditionally include term.h.
5763
5764 * coding.h: Declare code_convert_string_norecord.
5765
5766 * frame.h (struct frame): Use volatile unconditionally.
5767
5768 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
5769
5770 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
5771
5772 * systime.h: Protect against multiple inclusion.
5773 (timezone) [USG5_4]: Define as time_t.
5774
5775 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
5776 (Foptimize_char_table, make_temp_name): Declare.
5777
5778 * Makefile.in (xdisp.o): Depend on fontset.h.
5779
5780 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
5781
5782 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
5783 (Foptimize_char_table, make_temp_name): Declare.
5784
5785 * s/irix4-0.h:
5786 * s/irix5-0.h:
5787 * s/netbsd.h: Don't define autoconfiscated MATHERR.
5788
5789 2000-06-02 Dave Love <fx@gnu.org>
5790
5791 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
5792
5793 2000-06-02 Gerd Moellmann <gerd@gnu.org>
5794
5795 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
5796 result face, set flags in that face indicating that colors may not
5797 be freed.
5798
5799 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
5800 glyph, use the ASCII NUL character to determine the face.
5801
5802 2000-06-02 Dave Love <fx@gnu.org>
5803
5804 * sysdep.c: Conditionally include stdlib.h, unistd.h.
5805 (VFORK_RETURN_TYPE): Remove.
5806
5807 * config.in: Add NO_MATHERR.
5808
5809 2000-06-01 Dave Love <fx@gnu.org>
5810
5811 * cmds.c (internal_self_insert): Don't check
5812 Vbefore_change_function, Vafter_change_function.
5813
5814 * insdel.c (signal_before_change, signal_after_change): Likewise.
5815
5816 * buffer.c (Vbefore_change_function, Vafter_change_function):
5817 Variables and their initializations deleted.
5818
5819 * callint.c (Fcall_interactively): Doc fix.
5820
5821 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
5822
5823 2000-05-31 Dave Love <fx@gnu.org>
5824
5825 * textprop.c: Revert last change -- duplicated.
5826
5827 2000-05-31 Gerd Moellmann <gerd@gnu.org>
5828
5829 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
5830 in #if 0.
5831
5832 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
5833
5834 2000-05-31 Jason Rumney <jasonr@gnu.org>
5835
5836 * search.c (Fre_search_forward, Fre_search_backward)
5837 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
5838
5839 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
5840
5841 2000-05-30 Jason Rumney <jasonr@gnu.org>
5842
5843 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
5844 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
5845
5846 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
5847 member.
5848
5849 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
5850 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
5851 expand a nil default_filename.
5852
5853 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
5854 pointer to glyph_to_pixel_coords, not a frame.
5855
5856 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
5857 coding.h to dependencies.
5858
5859 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
5860
5861 * w32console.c (glyph_to_pixel_coords): Change first parameter to
5862 window pointer to be consistent with w32term.c and xterm.c.
5863
5864 * w32fns.c: Format and doc changes to bring closer to xfns.c.
5865 (VIETNAMESE_CHARSET): Define if not defined in system headers.
5866 (Qline_spacing, Qcenter): New variables.
5867 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
5868 (x_set_line_spacing): New function.
5869 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
5870 macros.
5871 (x_specified_cursor_type): New function.
5872 (x_set_cursor_type): Use it.
5873 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
5874 and icon strings.
5875 (validate_x_resource_name, x_get_resource_string): Measure lengths
5876 of external strings in bytes.
5877 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
5878 GetTextExtentPoint32 with NULL title.
5879 (Fx_create_frame): Initialize Qline_spacing.
5880 (w32_load_system_font): Initialize font->double_byte_p.
5881 (x_to_w32_charset): Use Vw32_charset_info_alist.
5882 (Image, busy cursor, tooltip functions): Merged changes from
5883 xfns.c. Not yet functional on Windows.
5884
5885 * w32gui.h (W32FontStruct): Add double_byte_p member.
5886
5887 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
5888 (emacs_button_translation): Use it.
5889 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
5890 in `mask' to be set.
5891
5892 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
5893 menu strings.
5894
5895 * w32term.c: Format and doc changes to bring closer to xterm.c.
5896 (w32_char_font_type): New enum.
5897 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
5898 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
5899 (w32_encode_char): New function.
5900 (x_encode_char): Removed.
5901 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
5902 x_encode_char and w32_font_is_double_byte.
5903 (x_produce_image_glyph): Use image_ascent.
5904 (x_produce_glyphs): Use new version of w32_per_char_metric and
5905 handle NULL return value. Allow extra line spacing.
5906 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
5907 (w32_get_glyph_overhangs): Remove unicode_p param. Use
5908 w32_font_type member of glyph instead.
5909 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
5910 (fast_find_position): Make sure not to consider rows not visible
5911 in the window.
5912 (w32_read_socket) [WM_MENUSELECT]: Cannot call
5913 w32_menu_display_help with input blocked, as it can abort.
5914 (x_display_and_set_cursor): Choose cursor depending
5915 on buffer-local value of cursor_type.
5916 (x_draw_bar_cursor): Add parameter WIDTH.
5917
5918 * w32term.h (CP_DEFAULT): Define.
5919 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
5920
5921 2000-05-30 Gerd Moellmann <gerd@gnu.org>
5922
5923 * search.c (Fre_search_forward, Fre_search_backward)
5924 (Fposix_search_backward, Fposix_search_forward): Doc fix.
5925
5926 2000-05-30 Kenichi Handa <handa@etl.go.jp>
5927
5928 * coding.c (detect_coding_iso2022): Fix code for checking
5929 CODING_CATEGORY_MASK_ISO_8_2.
5930
5931 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
5932
5933 * regex.c (PREFETCH_NOLIMIT): New function.
5934 (re_match_2_internal): Use it and adjust the end_match_2 logic.
5935
5936 2000-05-29 Gerd Moellmann <gerd@gnu.org>
5937
5938 * syntax.c (find_defun_start): Move test for
5939 open_paren_in_column_0_is_defun_start outside of the loop.
5940
5941 * xdisp.c (redisplay_window): Really switch buffers when
5942 displaying mode lines, and temporarily set selected_frame to the
5943 frame of the window that's redisplayed.
5944
5945 * xfaces.c (free_realized_faces): Block/unblock input.
5946 (free_realized_multibyte_face): Ditto.
5947
5948 2000-05-29 Dave Love <fx@gnu.org>
5949
5950 * textprop.c (Qkeymap): New variable.
5951 (syms_of_textprop): Intern it.
5952
5953 * keymap.c: Include intervals.h.
5954 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
5955
5956 * Makefile.in (keymap.o): Depend on intervals.h.
5957
5958 * keyboard.c (menu_bar_items, tool_bar_items)
5959 (Fexecute_extended_command): Deal with `keymap' property.
5960 (read_key_sequence): Track map from `keymap' property as well as
5961 `local_map'.
5962
5963 * intervals.c (get_local_map): Extra arg to allow looking for
5964 `keymap' too.
5965
5966 * intervals.h (map_property): New enum.
5967 (get_local_map): Extra arg using it.
5968 (Qkeymap): Declare.
5969
5970 * lisp.h (get_local_map): Don't declare here.
5971
5972 2000-05-29 Kenichi Handa <handa@etl.go.jp>
5973
5974 * Makefile.in (callproc.o): Depend on composite.h.
5975
5976 * callproc.c: Include composite.h.
5977 (Fcall_process): Handle composition correctly.
5978
5979 * coding.h (coding_allocate_composition_data): Extern it.
5980 (coding_restore_composition): Likewise.
5981
5982 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
5983 yet allocated, finish decoding with result
5984 CODING_FINISH_INSUFFICIENT_CMP.
5985 (coding_allocate_composition_data): Make it non-static.
5986 (coding_restore_composition): Likewise.
5987
5988 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
5989
5990 * charset.c (syms_of_charset): Revert last change.
5991
5992 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
5993
5994 * term.c (produce_glyphs): Treat characters from the eight-bit-*
5995 charsets as unibyte, with 1-column screen width. Sent by Kenichi
5996 Handa.
5997
5998 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
5999
6000 * charset.c (syms_of_charset): Set width of character sets
6001 eight-bit-control and eight-bit-graphic to 1 column.
6002
6003 2000-05-26 Gerd Moellmann <gerd@gnu.org>
6004
6005 * config.in (HAVE_SPEED_T): New define.
6006
6007 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
6008 `extern speed_t'.
6009
6010 2000-05-26 Dave Love <fx@gnu.org>
6011
6012 * coding.c (shrink_decoding_region): Initialize eol_conversion.
6013
6014 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
6015 (Fsubr_arity): New function.
6016 (syms_of_data): Install them.
6017
6018 2000-05-26 Kenichi Handa <handa@etl.go.jp>
6019
6020 * charset.c (init_charset_once): Set the table bytes_by_char_head
6021 correctly.
6022
6023 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
6024 the default fontset to what Emacs uses by default.
6025 (check_registry_encoding): This function deleted.
6026 (Fset_fontset_font): Remove the adhoc condition for the default
6027 fontset. Allow cons in FONTNAME.
6028
6029 * fns.c (map_char_table): Ignore char-table entries for
6030 charsets eight-bit-control and eight-bit-graphic.
6031
6032 2000-05-25 Ken Raeburn <raeburn@gnu.org>
6033
6034 * emacs.c (main): Initialize keyboard syms before initializing
6035 window code, so face names are available.
6036
6037 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
6038
6039 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
6040 of an anchor at the beginning of a shy-group.
6041
6042 2000-05-25 Gerd Moellmann <gerd@gnu.org>
6043
6044 * xdisp.c (handle_invisible_prop): Don't try to skip over
6045 invisible text if end of text is already reached.
6046
6047 2000-05-25 Dave Love <fx@gnu.org>
6048
6049 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
6050
6051 * coding.c (encode_eol): Add null statement after label.
6052
6053 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
6054
6055 * w16select.c (Fw16_set_clipboard_data): Fix the change from
6056 2000-05-20.
6057
6058 2000-05-25 Kenichi Handa <handa@etl.go.jp>
6059
6060 * ccl.c (ccl_driver): Fix previous change.
6061
6062 2000-05-25 Kenichi Handa <handa@etl.go.jp>
6063
6064 * coding.c (run_pre_post_conversion_on_str): Set point to the
6065 beginning of buffer before calling coding->post_read_conversion.
6066 (decode_coding_string): Give correct args to
6067 run_pre_post_conversion_on_str.
6068 (encode_coding_string): Likewise.
6069
6070 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
6071 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
6072 eight-bit-graphic correctly.
6073
6074 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
6075
6076 * fileio.c (Finsert_file_contents): Even if a file is not found,
6077 execute codes for setting up coding system. Call
6078 after-insert-file-functions unconditionally.
6079
6080 2000-05-24 Gerd Moellmann <gerd@gnu.org>
6081
6082 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
6083 BSD_PGRPS are not defined.
6084
6085 2000-05-24 Kenichi Handa <handa@etl.go.jp>
6086
6087 * charset.c (update_charset_table): Accept nil in LONG_NAME and
6088 DESCRIPTION.
6089 (syms_of_charset): Avoid building same strings.
6090
6091 2000-05-23 Gerd Moellmann <gerd@gnu.org>
6092
6093 * lread.c (Fload): Add a comment about the meaning of
6094 Vuser_init_file being t.
6095
6096 * puresize.h (BASE_PURESIZE): Increase to 675000.
6097
6098 * s/gnu-linux.h (setpgrp): Don't define it here because this
6099 prevents compilation on GNU/Linux systems with glib 2.2.
6100
6101 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
6102 as setpgid.
6103
6104 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
6105
6106 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
6107 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
6108 version.
6109 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
6110
6111 2000-05-23 Kenichi Handa <handa@etl.go.jp>
6112
6113 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
6114 unconditionally.
6115
6116 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
6117
6118 * term.c (encode_terminal_code): Set coding->src_multibyte
6119 properly.
6120
6121 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
6122
6123 2000-05-22 Kenichi Handa <handa@etl.go.jp>
6124
6125 * keyboard.c (read_char): Allow character codes 128..255 to be
6126 handled by input-method-function.
6127
6128 * insdel.c (adjust_markers_for_replace): Fix previous change.
6129 (adjust_after_replace): If PREV_TEXT is nil, call
6130 adjust_markers_for_insert, not adjust_markers_for_replace.
6131
6132 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
6133
6134 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
6135 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
6136 [HAVE_GRANDPT]: Define.
6137 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
6138
6139 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
6140 like SYSV_PTYS.
6141
6142 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
6143
6144 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
6145
6146 2000-05-20 Kenichi Handa <handa@etl.go.jp>
6147
6148 The following changes are to handle 8-bit characters in a
6149 multibyte buffer/string without facing with byte combining
6150 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
6151 eight-bit-graphic (for 0xA0..0xFF) are introduced.
6152
6153 * Makefile.in (fns.o): Depend on charset.h.
6154
6155 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
6156 convert it to unibyte.
6157 (make_string): Use parse_str_as_multibyte, not chars_in_text.
6158
6159 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
6160 apparent char boundary.
6161 (Fset_buffer_multibyte): Convert 8-bit characters in the range
6162 0x80..0x9F to/from multibyte form.
6163
6164 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
6165 to unibyte.
6166
6167 * callproc.c (Fcall_process): Always encode an argument string if
6168 it is multibyte. Setup src_multibyte and dst_multibyte members of
6169 process_coding properly.
6170
6171 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
6172 SPLIT_NON_ASCII_CHAR.
6173
6174 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
6175 as is.
6176 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
6177
6178 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
6179 variables.
6180 (SPLIT_CHARACTER_SEQ): This macro deleted.
6181 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
6182 valid.
6183 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
6184 and eight-bit-graphic.
6185 (char_to_string): Likewise. Signal an error for too large
6186 character code.
6187 (char_printable_p): Return 0 for 8-bit characters.
6188 (update_charset_table): Update iso_charset_table only when a final
6189 character is non-negative.
6190 (find_charset_in_text): Renamed from find_charset_in_str.
6191 Arguments and return value changed. Callers changed.
6192 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
6193 be -1 if CHARSET is used only internally.
6194 (Fmake_char_internal): Handle new charsets; eight-bit-control and
6195 eight-bit-graphic.
6196 (Fcharset_after): Simplified.
6197 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
6198 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
6199 (multibyte_chars_in_text): Simplified by assuming there's no
6200 invalid multibyte sequence.
6201 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
6202 str_as_unibyte): New functions.
6203 (Fstring): Simpified by assuming that byte combining never
6204 happens.
6205 (init_charset_once): Initialization for
6206 LEADING_CODE_8_BIT_CONTROL.
6207 (syms_of_charset): Intern and staticpro Qeight_bit_control and
6208 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
6209 eight-bit-control and eight-bit-graphic.
6210
6211 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
6212 CHARSET_8_BIT_GRAPHIC): New macros.
6213 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
6214 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
6215 (CHARSET_REVERSE_CHARSET): Likewise.
6216 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
6217 eight-bit-graphic.
6218 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
6219 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
6220 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
6221 encounter an invalid multibyte sequence.
6222 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
6223 sequence is always valid.
6224 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
6225 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
6226 macros.
6227 (CHAR_STRING): For 8-bit characters, call char_to_string.
6228 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
6229 multibyte sequence is always valid.
6230 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
6231 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
6232 str_as_unibyte): Extern them.
6233 (BCOPY_SHORT): Fix a bug.
6234 (CHAR_LEN): This macro deleted. Callers changed to use
6235 CHAR_BYTES.
6236 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
6237 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
6238 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
6239
6240 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
6241 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
6242 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
6243 EMIT_BYTES): New macros.
6244 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
6245 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
6246 macros deleted.
6247 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
6248 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
6249 check the validity of multibyte sequence.
6250 (decode_coding_emacs_mule): New function.
6251 (encode_coding_emacs_mule): New macro.
6252 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
6253 the source.
6254 (DECODE_ISO_CHARACTER): Just return a character code.
6255 (DECODE_COMPOSITION_START): Set coding->result instead of result.
6256 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
6257 EMIT_CHAR to produced decoded characters. Exit the loop only by
6258 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
6259 block here.
6260 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
6261 only position codes for an invalid character.
6262 (encode_designation_at_bol): Return new destination pointer. 5th
6263 arg DSTP is changed to DST.
6264 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
6265 from the source by ONE_MORE_CHAR. Don't handle the case of last
6266 block here.
6267 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
6268 macros deleted.
6269 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
6270 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
6271 TWO_MORE_BYTES to fetch a byte from the source.
6272 (encode_eol): Pay attention to coding->src_multibyte.
6273 (detect_coding, detect_eol): Preserve members src_multibyte and
6274 dst_multibyte.
6275 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
6276 (encoding_buffer_size): Set magnification to 3 for all coding
6277 systems that require encoding.
6278 (ccl_coding_driver): For decoding, be sure that the result is
6279 valid multibyte sequence.
6280 (decode_coding): Initialize coding->errors and coding->result.
6281 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
6282 and raw-text, always call decode_eol. Handle the case of last
6283 block here. If not coding->dst_multibyte, convert the resulting
6284 sequence to unibyte.
6285 (encode_coding): Initialize coding->errors and coding->result.
6286 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
6287 and raw-text, always call encode_eol. Handle the case of last
6288 block here.
6289 (shrink_decoding_region, shrink_encoding_region): Detect cases
6290 that we can't skip data more rigidly.
6291 (code_convert_region): Setup src_multibyte and dst_multibyte
6292 members of coding. For decoding, if the buffer is multibyte,
6293 convert the source sequence to unibyte in advance. For encoding,
6294 if the buffer is multibyte, convert the resulting sequence to
6295 multibyte afterward.
6296 (run_pre_post_conversion_on_str): New function.
6297 (code_convert_string): Deleted and divided into the following two.
6298 (decode_coding_string, encode_coding_string): New functions.
6299 (code_convert_string1, code_convert_string_norecord): Call one of
6300 above.
6301 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
6302 MAKE_NON_ASCII_CHAR.
6303 (Fset_terminal_coding_system_internal,
6304 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
6305 and dst_multibyte members.
6306 (init_coding_once): Initialize iso_code_class with new enum
6307 ISO_control_0 and ISO_control_1.
6308
6309 * coding.h (enum iso_code_class_type): Member ISO_control_code is
6310 devided into ISO_control_0 and ISO_control_1.
6311 (struct coding_system): New members src_multibyte, dst_multibyte,
6312 errors, and result. Delete member fake_multibyte.
6313 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
6314 nonzero.
6315 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
6316 nonzero.
6317
6318 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
6319 (Faset): Likewise.
6320
6321 * editfns.c (Fformat): Be sure to convert 8-bit characters to
6322 multibyte form.
6323 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
6324 combining occurs.
6325 (Ftranspose_region): Delete codes for handling byte combining.
6326
6327 * fileio.c (Finsert_file_contents): Setup src_multibyte and
6328 dst_multibyte members of coding. On handling REPLACE on unibyte
6329 buffer, convert the result of decode_coding to unibyte. On
6330 inserting into a mutibyte buffer, always call code_convert_region.
6331 (e_write): Setup coding->src_multibyte according to the
6332 multibyteness of the source (buffer or string).
6333
6334 * fns.c (concat): Handle 8-bit characters correctly.
6335 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
6336 unibyte in the result.
6337 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
6338 valid multibyte form in the result.
6339 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
6340 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
6341 return -1, signal an error.
6342 (base64_encode_1): New arg MULTIBYTE. Get each character by
6343 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
6344 character is found, return -1.
6345 (Fbase64_decode_region): Delete codes for handling byte-combining.
6346 Treat each decoded byte as a unibyte character.
6347 (Fbase64_decode_string): Return unibyte string.
6348 (Fcompare_strings, concat, string_byte_to_char): Use
6349 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
6350 FETCH_STRING_CHAR_ADVANCE.
6351 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
6352 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
6353
6354 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
6355 SPLIT_NON_ASCII_CHAR.
6356 (fontset_ref_via_base, fontset_set): Likewise
6357
6358 * insdel.c (adjust_markers_for_record_delete): Deleted.
6359 (adjust_markers_for_insert): Argument changed. Caller changed.
6360 (adjust_markers_for_replace): Likewise.
6361 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
6362 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
6363 (copy_text): Delete unused local varialbe c_save. For converting
6364 to multibyte, be sure to make all 8-bit characters in valid
6365 multibyte form.
6366 (count_size_as_multibyte): Handle 8-bit characters correctly.
6367 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
6368 adjust_after_replace, replace_range, del_range_2)
6369 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
6370 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
6371 adjust_after_replace, replace_range, del_range_2) Delete codes for
6372 handling byte combining.
6373 (adjust_before_replace): Deleted.
6374
6375 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
6376 SPLIT_NON_ASCII_CHAR.
6377 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
6378 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
6379 unconditionally.
6380 (Fkey_description): Likewise.
6381
6382 * lread.c (read1): On reading multibyte string, be sure to make
6383 all 8-bit chararacters in valid multibyte form.
6384 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
6385
6386 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
6387 unconditionally.
6388
6389 * process.c (Fstart_process): GCPRO current_dir before calling
6390 Ffind_operation_coding_system. Encode arguments here.
6391 (create_process): Don't encode arguments here. Setup
6392 src_multibyte and dst_multibyte members of struct coding.
6393 (read_process_output): Setup src_multibyte and dst_multibyte
6394 members of struct coding. If the output is to multibyte buffer,
6395 always decode the output of the process. Adjust the
6396 representation of 8-bit characters to the multibyteness of the
6397 output.
6398 (send_process): Setup coding->src_multibyte according to the
6399 multibyteness of the source.
6400
6401 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
6402 unconditionally.
6403 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
6404 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
6405
6406 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
6407 CHAR_LEN.
6408
6409 * w16select.c (Fw16_set_clipboard_data): Setup members
6410 src_multibyte and dst_multibyte of coding. Adjusted for the
6411 change for find_charset_in_str.
6412 (Fw16_get_clipboard_data): Likewise.
6413
6414 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
6415 dst_multibyte of coding.
6416 (x_to_w32_font): Likewise.
6417
6418 * w32select.c (Fw32_set_clipboard_data): Setup members
6419 src_multibyte and dst_multibyte of coding. Adjusted for the
6420 change for find_charset_in_str.
6421 (Fw32_get_clipboard_data): Likewise.
6422
6423 * xdisp.c (get_next_display_element): Handle 8-bit characters
6424 correctly.
6425 (next_element_from_display_vector): Use CHAR_BYTES instead of
6426 CHAR_LEN.
6427 (disp_char_vector): Use SPLIT_CHAR instead of
6428 SPLIT_NON_ASCII_CHAR.
6429
6430 * xselect.c (selection_data_to_lisp_data): Setup members
6431 src_multibyte and dst_multibyte of coding. Adjusted for the
6432 change for find_charset_in_str.
6433 (lisp_data_to_selection_data): Likewise.
6434
6435 2000-05-19 Gerd Moellmann <gerd@gnu.org>
6436
6437 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
6438 buffer.
6439
6440 * dispextern.h (Vimage_types): Add extern declaration.
6441
6442 * xdisp.c (Vimage_types): Moved here from xfns.c.
6443 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
6444
6445 * xfns.c (Vimages_types): Moved to xdisp.c.
6446 (syms_of_xfns): Move `image-types' to xdisp.c.
6447
6448 * w32fns.c (Vimage_types): Removed.
6449 (syms_of_w32fns): Remove `image-types'.
6450
6451 2000-05-18 Kenichi Handa <handa@etl.go.jp>
6452
6453 * fns.c (map_char_table): Pay attention to character number of
6454 charset. Check the validity of charset at the first level. For
6455 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
6456 the default value.
6457
6458 * fontset.c: Include "buffer.h".
6459 (fs_load_font): If the face has fontset, record the face ID in
6460 that fontset.
6461 (Finternal_char_font): New function.
6462 (accumulate_font_info): New function.
6463 (Ffontset_info): Rewritten for the new fontset implementation.
6464 (syms_of_fontset): Register Vdefault_fontset in the first element
6465 of Vfontset_table. Include Vdefault_fontset in
6466 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
6467 function.
6468
6469 2000-05-16 Dave Love <fx@gnu.org>
6470
6471 * m/iris5d.h: Deleted -- unused.
6472
6473 2000-05-16 Gerd Moellmann <gerd@gnu.org>
6474
6475 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
6476 `invalid' instead of `illegal'.
6477
6478 * indent.c (Fmove_to_column): When ending within a tab, insert
6479 spaces first so that markers at the end of the tab get adjusted.
6480
6481 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
6482 buffer list that wasn't selected in that frame.
6483
6484 * filelock.c (get_boot_time): To obtain an 8 char file name, which
6485 is needed on mescaline, use a 2 char prefix, and call
6486 make_temp_name with second arg non-zero.
6487
6488 * fileio.c (make_temp_name): New function, extracted from
6489 Fmake_temp_name.
6490 (Fmake_temp_name): Use it.
6491
6492 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
6493
6494 * window.c (coordinates_in_window): Subtract 1 when computing
6495 right_x.
6496
6497 2000-05-15 Gerd Moellmann <gerd@gnu.org>
6498
6499 * Makefile.in (lisp): Add env.elc.
6500
6501 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
6502
6503 2000-05-12 Gerd Moellmann <gerd@gnu.org>
6504
6505 * search.c (Freplace_match): Handle case of `\N' in the
6506 replacement when there's no group N.
6507
6508 2000-05-11 Gerd Moellmann <gerd@gnu.org>
6509
6510 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
6511 of the message to message_dolog.
6512
6513 * keyboard.c (read_char): Don't clear current message for help
6514 events; let the code handling help events handle this. Change
6515 code detecting help events that should be ignored.
6516
6517 * xdisp.c (handle_single_display_prop): Don't try to set PT if
6518 we're interating over a string.
6519
6520 2000-05-09 Dave Love <fx@gnu.org>
6521
6522 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
6523 that offset before writing. Move gcpro region past call of
6524 Ffile_regular_p.
6525
6526 2000-05-04 Dave Love <fx@gnu.org>
6527
6528 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
6529
6530 2000-05-04 Gerd Moellmann <gerd@gnu.org>
6531
6532 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
6533 of inserted characters when BUF equals the current buffer, and PT
6534 is in front of or equal to FROM.
6535
6536 2000-05-03 Gerd Moellmann <gerd@gnu.org>
6537
6538 * xdisp.c (handle_single_display_prop): If display property value
6539 is invalid, or something not supported on the frame, restore
6540 iterator's position to what it was initially. Make sure to return
6541 0 for invalid and unsupported property values.
6542
6543 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
6544 that x_per_char_metric returns null.
6545
6546 2000-05-02 Gerd Moellmann <gerd@gnu.org>
6547
6548 * xterm.h (struct face): Add forward declaration.
6549 (struct image): Ditto.
6550 (image_ascent): Add prototype.
6551
6552 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6553 (x_draw_image_relief, x_draw_image_foreground_1): Call function
6554 image_ascent instead of using IMAGE_ASCENT.
6555
6556 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
6557 (IMAGE_ASCENT): Removed.
6558
6559 * xfns.c (Qcenter): New variable.
6560 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
6561 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
6562 (image_ascent): New function.
6563 (lookup_image): Recognize `:ascent center'.
6564 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6565 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
6566 (xbm_load): Don't set image's ascent here.
6567 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
6568 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
6569 check ascent values here.
6570 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
6571 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
6572 (syms_of_xfns): Initialize Qcenter.
6573
6574 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
6575 to the limits, increase the limits.
6576
6577 2000-05-01 Kenichi Handa <handa@etl.go.jp>
6578
6579 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
6580 Check Vfont_encoding_alist against the full name of the opened
6581 font.
6582
6583 2000-04-28 Gerd Moellmann <gerd@gnu.org>
6584
6585 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
6586 taller than the window.
6587
6588 2000-04-28 Kenichi Handa <handa@etl.go.jp>
6589
6590 * xfaces.c (realize_x_face): Fix the argument of the second
6591 xassert. BASE_FACE may not be a face for ASCII.
6592
6593 2000-04-27 Gerd Moellmann <gerd@gnu.org>
6594
6595 * print.c (print_object): Treat print-length < 0 as nil.
6596
6597 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
6598
6599 * s/freebsd.h (TERMCAP_OBJ): Removed.
6600 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
6601
6602 * lread.c (read1): Don't treat period followed by certain
6603 characters as symbol start.
6604
6605 * xfns.c (slurp_file): New function.
6606 (xbm_image_p): Handle case of in-memory XBM files.
6607 (xbm_scan): Rewritten to work on memory buffers instead of files.
6608 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
6609 Work on memory buffers instead of files. If DATA is null test
6610 if buffer looks like an in-memory XBM file.
6611 (xbm_load_image): Renamed from xbm_load_image_file. Work on
6612 memory buffers instead of files.
6613 (xbm_file_p): New function.
6614 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
6615
6616 * lread.c (end_of_file_error): New function.
6617 (read1): Call it instead of signaling `end-of-file' directly.
6618
6619 * print.c (print_error_message): Print data of `end-of-file'
6620 with Fprinc instead of Fprin1.
6621
6622 2000-04-26 Ken Raeburn <raeburn@gnu.org>
6623
6624 * window.c (freeze_window_start): Check that minibuffer scroll
6625 window isn't nil before extracting the window structure pointer
6626 from it.
6627
6628 * undo.c (record_delete): If we hit the end of the undo list, stop
6629 picking elements apart.
6630
6631 2000-04-26 Gerd Moellmann <gerd@gnu.org>
6632
6633 * xdisp.c (display_line): If lines are continued, restore
6634 iterator's ascent/descent information to the values before the
6635 first glyph not fitting on the line.
6636
6637 2000-04-25 Gerd Moellmann <gerd@gnu.org>
6638
6639 * xdisp.c (try_window_id) <all changes above window start>: Adjust
6640 positions in glyph matrix. Don't compute new window end
6641 positions.
6642
6643 * dispnew.c (increment_matrix_positions): Renamed from
6644 increment_glyph_matrix_buffer_positions.
6645 (increment_row_positions): Renamed from
6646 increment_glyph_row_buffer_positions.
6647
6648 * dispextern.h: Change names of renamed functions from dispnew.c
6649 in prototypes.
6650
6651 2000-04-24 Gerd Moellmann <gerd@gnu.org>
6652
6653 * fileio.c (Fdo_auto_save): Create directories for auto-save
6654 list file if necessary.
6655
6656 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
6657 from buffer or frame.
6658 (automatic_hscrolling_p): New variable.
6659 (hscroll_windows): Scroll windows horizontally only if automatic
6660 hscrolling is allowed.
6661 (syms_of_xdisp): New variable `automatic-hscrolling'.
6662
6663 * frame.h (struct frame): Add member extra_line_spacing.
6664
6665 * xfns.c (x_set_line_spacing): New function.
6666 (Fx_create_frame): Set line spacing from resources.
6667 (Qline_spacing): New variable.
6668 (syms_of_xfns): Initialize Qline_spacing.
6669
6670 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
6671
6672 * buffer.c (init_buffer_once): Handle extra_line_spacing.
6673 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
6674 (reset_buffer): Don't initialize extra2 and extra3. Initialize
6675 extra_line_spacing from default value.
6676 (init_buffer_once): Initialize default value of extra_line_spacing.
6677
6678 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
6679 and extra3.
6680
6681 * xterm.c (x_produce_glyphs): Remove reference to struct it's
6682 prompt_width. Add extra line spacing.
6683
6684 * term.c (produce_glyphs): Remove reference to struct it's
6685 prompt_width.
6686
6687 * dispextern.h (struct it): Remove member prompt_width, add
6688 extra_line_spacing.
6689
6690 2000-04-22 Gerd Moellmann <gerd@gnu.org>
6691
6692 * dispnew.c (update_frame_line): When writing a whole line, make
6693 sure cursor is in the right row afterwards, otherwise a use of
6694 capability `ch' in cmgoto might leave the cursor in the row below.
6695
6696 2000-04-21 Gerd Moellmann <gerd@gnu.org>
6697
6698 * lisp.h (struct Lisp_Buffer_Cons): Remove.
6699
6700 * keyboard.c (timer_check): Fix typo in comment.
6701
6702 2000-04-21 Kenichi Handa <handa@etl.go.jp>
6703
6704 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
6705 name change: ch -> character.
6706
6707 2000-04-20 Gerd Moellmann <gerd@gnu.org>
6708
6709 * keyboard.c (echo_message_buffer): New variable.
6710 (echo_now): Set echo_message_buffer to the echo area buffer used
6711 to display the echo.
6712 (cancel_echoing): Reset echo_message_buffer to nil.
6713 (read_char): Code rewritten that handles canceling an echo or
6714 echoing a dash, respectively.
6715
6716 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
6717 directory doesn't exist.
6718
6719 2000-04-19 Dave Love <fx@gnu.org>
6720
6721 * fns.c (syms_of_fns): Defsubr mapc.
6722 (concat): Don't allow numeric args.
6723 (Fconcat): Doc change.
6724
6725 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
6726
6727 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
6728 instead define end_match(1|2) more carefully.
6729 Use GET_CHAR_BEFORE_2 for `begline'.
6730
6731 2000-04-19 Gerd Moellmann <gerd@gnu.org>
6732
6733 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
6734 on 64-bit systems where NULL is defined as `0'.
6735
6736 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
6737 the `variable argument list' to make it work on Alpha.
6738
6739 * m/alpha.h (_LP64) [!_LP64]: Define.
6740 (ORDINARY_LINK): Define for NetBSD.
6741
6742 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
6743
6744 2000-04-19 Dave Love <fx@gnu.org>
6745
6746 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
6747 change.
6748
6749 * Makefile.in (LIBS): Don't use.
6750 (GETLOADAVG_OBJ): Define again.
6751 (otherobj): Add GETLOADAVG_OBJ.
6752
6753 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
6754
6755 2000-04-18 Gerd Moellmann <gerd@gnu.org>
6756
6757 * lread.c (read_filtered_event): Cancel and start busy cursor.
6758
6759 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
6760 that the per-character metrics may be null.
6761
6762 2000-04-17 Gerd Moellmann <gerd@gnu.org>
6763
6764 * buffer.c (clone_per_buffer_values): New function.
6765 (Fmake_indirect_buffer): Add optional argument CLONE. Call
6766 clone_per_buffer_values if CLONE is not nil.
6767
6768 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6769
6770 2000-04-16 Dave Love <fx@gnu.org>
6771
6772 * Makefile.in: Remove obsolete localcpp stuff.
6773 (GETLOADAVG_OBJ): Don't define.
6774 (obj): Move LIBOBJS...
6775 (otherobj): ... to here.
6776 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
6777 whitespace-only lines after the continuation (Irix).
6778
6779 2000-04-14 Gerd Moellmann <gerd@gnu.org>
6780
6781 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
6782
6783 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
6784
6785 2000-04-14 Dave Love <fx@gnu.org>
6786
6787 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
6788 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
6789 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
6790 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
6791 NLIST_STRUCT.
6792
6793 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
6794 autoconfiscated HAVE_GETLOADAVG.
6795
6796 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
6797 BROKEN_MKTIME.
6798
6799 2000-04-14 Gerd Moellmann <gerd@gnu.org>
6800
6801 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
6802 (fill_in_lock_file_name): Avoid existing files that aren't
6803 links.
6804
6805 2000-04-14 Dave Love <fx@gnu.org>
6806
6807 * Makefile.in (LIBS, LIBOBJS): New variable.
6808 (INTERVAL_SRC): Convert to make variable.
6809 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
6810 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
6811 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
6812 add LIBOBJS.
6813 (SOME_MACHINE_OBJECTS): Remove interval stuff.
6814 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
6815 (shortlisp): Add facemenu, float-sup, frame.
6816 (SOME_MACHINE_LISP): Remove them from here.
6817 (LIBES): Change unused LDLIBS to autoconf LIBS.
6818
6819 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
6820
6821 2000-04-14 Kenichi Handa <handa@etl.go.jp>
6822
6823 * composite.c (update_compositions): If FROM and TO are not in a
6824 valid range, do nothing.
6825
6826 2000-04-13 Gerd Moellmann <gerd@gnu.org>
6827
6828 * tparam.c (tparam1): Abort when encountering an unknown
6829 `%'-specifier.
6830
6831 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
6832 terminfo.o.
6833
6834 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
6835 as TERMCAP_OBJ.
6836
6837 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
6838
6839 * fileio.c (a_write): Remove redundant semi-colons.
6840 (e_write): Return -1 if failed to write all the data.
6841 This fixes the changes made at 1999-12-15.
6842
6843 2000-04-12 Dave Love <fx@gnu.org>
6844
6845 * fns.c (mapcar1): Test for null vals to support mapc.
6846 (Fmapc): New function.
6847
6848 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
6849
6850 * msdos.c (NUM_MOUSE_BUTTONS): Define.
6851 (IT_frame_up_to_date): Support the buffer local value of
6852 cursor-type, if defined.
6853
6854 2000-04-10 Dave Love <fx@gnu.org>
6855
6856 * editfns.c (preceding-char, following-char): Doc fix.
6857
6858 2000-04-10 Ken Raeburn <raeburn@gnu.org>
6859
6860 * Makefile.in (temacs): Revert 2000-03-12 change.
6861
6862 2000-04-10 Jason Rumney <jasonr@gnu.org>
6863
6864 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
6865
6866 2000-04-10 Gerd Moellmann <gerd@gnu.org>
6867
6868 * xdisp.c (setup_echo_area_for_printing): Choose an echo
6869 area buffer, if it's not set up yet.
6870
6871 * indent.c (compute_motion): Set immediate_quit.
6872
6873 2000-04-09 Gerd Moellmann <gerd@gnu.org>
6874
6875 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
6876 variable.
6877 (realize_tty_face): Suppress boldness if colors are the inverse of
6878 the default colors, and tty_suppress_bold_inverse_default_colors_p
6879 is set.
6880 (Ftty_suppress_bold_inverse_default_colors): New function.
6881 (syms_of_xfaces): Defsubr it.
6882
6883 * buffer.c (Frestore_buffer_modified_p): New function.
6884 (syms_of_buffer): Defsubr it.
6885
6886 2000-04-08 Ken Raeburn <raeburn@gnu.org>
6887
6888 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
6889 charset id (int) argument, not a charset (Lisp_Object).
6890
6891 * coding.h (code_convert_string): Declare.
6892 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
6893 object, as the fourth argument to code_convert_string.
6894
6895 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
6896 value.
6897 (Fset_fontset_font): Use EQ to compare lisp objects.
6898
6899 2000-04-05 Ken Raeburn <raeburn@gnu.org>
6900
6901 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
6902 a pointer that looks like a lisp object.
6903 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
6904 zero, instead see whether it's an integer object, since they can't
6905 have intervals.
6906 (GET_INTERVAL_OBJECT): Simply assign to the destination.
6907
6908 * dispnew.c (allocate_matrices_for_frame_redisplay,
6909 direct_output_forward_char): Use X(U)INT and make_number as needed
6910 to convert between (unsigned) int values and lisp integers.
6911 * keyboard.c (read_key_sequence): Likewise.
6912 * lread.c (substitute_object_recurse): Likewise.
6913 * fns.c (concat, hash_lookup, hash_remove): Likewise.
6914 * minibuf.c (do_completion, Fminibuffer_complete_word,
6915 Fminibuffer_completion_help): Likewise.
6916 * term.c (produce_special_glyphs): Likewise.
6917
6918 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
6919 * print.c (print_preprocess, print_object): Likewise.
6920
6921 * search.c (compile_pattern): Use NILP when checking for nil.
6922
6923 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
6924 __OPTIMIZE__]: Provide a GNU C macro version that handles
6925 lisp-object unions.
6926 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
6927 field, to better cope with ENABLE_CHECKING and calls that modify a
6928 Lisp_Object using its old value.
6929
6930 2000-04-04 Gerd Moellmann <gerd@gnu.org>
6931
6932 * window.c (compare_window_configurations): Signal an error
6933 if parameters C1 or C2 aren't window configurations.
6934
6935 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
6936 AFTER_POTENTIAL_GC calls around calls to functions that can
6937 signal an error and thus invoke the debugger.
6938
6939 2000-04-03 Gerd Moellmann <gerd@gnu.org>
6940
6941 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
6942 an error if decoding fails.
6943
6944 * keyboard.c (lispy_mouse_names): Variable removed.
6945 (Vlispy_mouse_stem): New variable.
6946 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
6947 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
6948 for any mouse button number. Increase size of mouse_syms and
6949 button_down_location as needed. Call modify_event_symbol with
6950 different arguments.
6951 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
6952 Call modify_event_symbol with different arguments.
6953 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
6954 for any button number. Call modify_event_symbol with different
6955 arguments.
6956 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
6957 Accept a string for NAME_ALIST_OR_STEM.
6958
6959 * lisp.h (larger_vector): Add prototype.
6960
6961 * fns.c (larger_vector): Make externally visible.
6962
6963 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
6964
6965 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
6966
6967 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
6968 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
6969 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
6970 we are between str1 and str2.
6971 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
6972 (PATFETCH): Use `TRANSLATE'.
6973 (PATFETCH_RAW): Fetch multibyte char if applicable.
6974 (PATUNFETCH): Remove.
6975 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
6976 When writing a char, write it directly into the pattern buffer rather
6977 than going needlessly through a temp char-array.
6978 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
6979 multibyte magic and remove the useless `#ifdef emacs'.
6980 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
6981 buffer.
6982
6983 * regex.h (struct re_pattern_buffer): Make field `multibyte'
6984 conditional on `emacs'.
6985
6986 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
6987
6988 2000-04-01 Ken Raeburn <raeburn@gnu.org>
6989
6990 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
6991 non-union-type versions of XMARK and friends here, because XMARK
6992 and friends won't work on an integer field if NO_UNION_TYPE is not
6993 defined.
6994 (make_number): Define as a function if it's not defined as a
6995 macro.
6996
6997 * composite.c (run_composite_function): Use NILP when checking for
6998 nil.
6999 (syms_of_composite): Delete local var NARGS, pass an int as first
7000 argument to Fmake_hash_table.
7001
7002 * editfns.c (text_property_stickiness): Use NILP to test
7003 Lisp_Object boolean value.
7004 (Fmessage_or_box): Don't use NILP to test int variable.
7005 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
7006 problems reading from and changing the same lisp value in an
7007 XSETSTRING call.
7008
7009 2000-04-01 Gerd Moellmann <gerd@gnu.org>
7010
7011 * term.c (TN_no_color_video): New variable.
7012 (term_init): Intitialize TN_no_color_video.
7013 (enum no_color_bit): New enumeration.
7014 (MAY_USE_WITH_COLORS_P): New macro.
7015 (turn_on_face): Use it to determine if attributes may be used
7016 combined with colors.
7017
7018 2000-04-01 Ken Raeburn <raeburn@gnu.org>
7019
7020 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
7021 with int lvalues via casts; instead, just yield lisp object
7022 lvalues.
7023 (enlarge_window): Variable sizep now points to Lisp_Object. Use
7024 proper accessor macros.
7025 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
7026 (grow_mini_window): Fix typo getting int value of root->height.
7027
7028 * xdisp.c (compute_string_pos): Fix order of arguments to
7029 string_pos_nchars_ahead.
7030 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
7031 count arg to variable-arg routines like Frun_hook_with_args and
7032 Fformat.
7033 (back_to_previous_visible_line_start)
7034 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
7035 fixed-arg routines like Fget_char_property and Fmake_string.
7036 (reconsider_clip_changes): Use XINT when comparing integer lisp
7037 objects, or passing them as int arguments.
7038 (mark_window_display_accurate, insert_left_trunc_glyphs)
7039 (append_space, extend_face_to_end_of_line): Use make_number when
7040 storing or passing integer values as lisp objects.
7041 (set_cursor_from_row, highlight_trailing_whitespace): Use
7042 INTEGERP, not implicit test against zero, for glyph object.
7043 (try_window_id): Don't use make_number when we want an int value.
7044
7045 * xfaces.c (xlfd_symbolic_value): Make last argument a
7046 Lisp_Object, to be consistent with callers.
7047 (Fbitmap_spec_p): Use XINT to get numeric value of height.
7048 (lface_hash): Apply XFASTINT to lisp values before folding in.
7049
7050 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
7051 fill in window width and height. Pass an int, not a lisp object,
7052 as first arg to Finsert.
7053
7054 2000-04-01 Gerd Moellmann <gerd@gnu.org>
7055
7056 * xfaces.c (realize_basic_faces): Block input while realizing
7057 the faces.
7058
7059 * keyboard.c (lispy_mouse_names): Add additional mouse names.
7060
7061 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
7062
7063 2000-03-31 Gerd Moellmann <gerd@gnu.org>
7064
7065 * xterm.c (x_produce_glyphs): When displaying unibyte text
7066 or ASCII, handle case that per-char metric is null.
7067
7068 2000-03-30 Ken Raeburn <raeburn@gnu.org>
7069
7070 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
7071
7072 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
7073 XSUBR, XBUFFER): Verify correct object type before returning
7074 pointer, using eassert.
7075 * frame.h (XFRAME): Likewise.
7076
7077 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
7078 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
7079 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
7080 type.
7081 * data.c (set_internal): Likewise.
7082 * dispextern.h (WINDOW_WANTS_MODELINE_P,
7083 WINDOW_WANTS_HEADER_LINE_P): Likewise.
7084 * fileio.c (auto_save_1): Likewise.
7085 * insdel.c (check_markers): Likewise.
7086 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
7087 * undo.c (record_insert): Likewise.
7088 * vmsproc.c (child_sig): Likewise.
7089 * window.c (unshow_buffer, window_loop): Likewise.
7090 * xterm.c (x_erase_phys_cursor): Likewise.
7091
7092 2000-03-30 Gerd Moellmann <gerd@gnu.org>
7093
7094 * xfns.c (free_image_cache): Free the cache structure itself
7095 last, after all its members have been freed.
7096
7097 * lisp.h (xstrdup): Add prototype.
7098
7099 * alloc.c (xstrdup): Moved here from xfaces.c.
7100 (allocating_for_lisp): Variable removed.
7101 (lisp_malloc): Block input around the calls to malloc and
7102 mem_insert.
7103
7104 * xfaces.c (realize_tty_face): Use find_symbol_value instead
7105 of Fsymbol_value.
7106 (xstrdup): Moved to alloc.c.
7107
7108 2000-03-29 Ken Raeburn <raeburn@gnu.org>
7109
7110 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
7111
7112 * emacs.c (main): Fix sense of no-loadup test.
7113
7114 * config.in (ENABLE_CHECKING): Undef.
7115
7116 * lisp.h (struct interval): Replace "parent" field with a union of
7117 interval pointer and Lisp_Object; add new bitfield to use as
7118 discriminant. Change other flag fields to bitfields.
7119 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
7120 is defined and the supplied test fails, print a message and
7121 abort.
7122 (eassert): New macro. Use CHECK to provide an assert-like
7123 facility.
7124
7125 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
7126 pointers; abort if the value looks like a lisp object.
7127 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
7128 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
7129 Modify for new interval parent definition.
7130
7131 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
7132 UNMARK_BALANCE_INTERVALS): Update references that need an
7133 addressable lisp object in the interval structure.
7134 (die): New function.
7135 (suppress_checking): New variable.
7136
7137 * intervals.c (interval_start_pos): Just return 0 if there's no
7138 parent object.
7139
7140 2000-03-29 Gerd Moellmann <gerd@gnu.org>
7141
7142 * lread.c (read1): Accept `.' (period) as symbol start like in CL
7143 and earlier Emacs versions.
7144
7145 * keyboard.c (Ftop_level): Cancel busy-cursor.
7146
7147 * eval.c (call_debugger): Cancel busy-cursor.
7148
7149 2000-03-29 Kenichi Handa <handa@etl.go.jp>
7150
7151 * search.c (Freplace_match): Adjust multibyteness of the current
7152 buffer and NEWTEXT. Free allocated memory before signaling an
7153 error.
7154
7155 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
7156
7157 * regex.c (analyse_first): New function obtained by ripping out most
7158 of re_compile_fastmap and generalizing it a little bit so that it
7159 can also just return whether a given (sub)pattern can match the empty
7160 string or not.
7161 (regex_compile): Use `analyse_first' to decide whether the loop-check
7162 needs to be done or not for *, +, *? and +? (the loop check is costly
7163 for non-greedy repetition).
7164 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
7165
7166 2000-03-28 Dave Love <fx@gnu.org>
7167
7168 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
7169 alpha.
7170
7171 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
7172
7173 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
7174
7175 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
7176 an expression.
7177 (enum re_opcode_t): Update description of succeed_n.
7178 (PATFETCH): Always define.
7179 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
7180 operators, char classes, shy-groups and intervals).
7181 Optimize special cases of intervals so as to only use succeed_n and
7182 jump_n when really needed.
7183 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
7184 that we don't have to handle the special cases any more.
7185 Simplify on_failure_jump handling as well.
7186
7187 2000-03-28 Jason Rumney <jasonr@gnu.org>
7188
7189 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
7190
7191 2000-03-27 Gerd Moellmann <gerd@gnu.org>
7192
7193 * s/freebsd.h (GC_SETJMP_WORKS): Define.
7194
7195 * s/msdos.h (GC_SETJMP_WORKS): Define.
7196
7197 * alloc.c (mark_maybe_object): New function.
7198 (mark_memory): Use it.
7199 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
7200 (setjmp_tested_p, longjmp_done): New variables.
7201 (test_setjmp): New function.
7202 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
7203 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
7204
7205 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
7206 to DEC_TEXT_POS and INC_TEXT_POS.
7207
7208 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
7209 with parameter MULTIBYTE_P.
7210
7211 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
7212 MULTIBYTE_P.
7213
7214 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
7215 buffers because it looks for multibyte character byte sequences
7216 which don't exist in unibyte text.
7217
7218 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
7219
7220 * xfaces.c (register_color, unregister_color, unregister_colors)
7221 [DEBUG_X_COLORS]: New functions.
7222 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
7223
7224 * xfns.c (x_set_cursor_color): Get color reference counts right.
7225
7226 * xterm.c (x_copy_color): New function.
7227 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
7228
7229 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
7230 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
7231 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
7232 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
7233 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
7234 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
7235 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
7236 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
7237 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
7238 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
7239
7240 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
7241 names for handling per-buffer variables.
7242
7243 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
7244 instead of MAX_BUFFER_LOCAL_VARS.
7245 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
7246
7247 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
7248
7249 * xfns.c (x_specified_cursor_type): New function.
7250 (x_set_cursor_type): Use it.
7251
7252 * buffer.h (struct buffer): Add cursor_type.
7253
7254 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
7255
7256 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
7257 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
7258 opcode.
7259 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
7260 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
7261 executing it as well as when popping it off the stack to find infinite
7262 loops in non-greedy repetition operators.
7263
7264 2000-03-26 Gerd Moellmann <gerd@gnu.org>
7265
7266 * doc.c (Qfunction_documentation): New variable.
7267 (syms_of_doc): Initialize Qfunction_documentation.
7268 (Fdocumentation): If FUNCTION is a symbol with non-nil
7269 `function-documentation' property, return a documentation derived
7270 from that.
7271
7272 * buffer.c (syms_of_buffer): Add default-cursor-type.
7273 (init_buffer_once): Don't let cursor_type have a local value
7274 in every buffer.
7275
7276 * xterm.c (x_display_and_set_cursor): Choose cursor depending
7277 on buffer-local value of cursor_type.
7278 (x_draw_bar_cursor): Add parameter WIDTH.
7279
7280 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
7281 (init_buffer_once): Set default cursor_type value to t.
7282 Mark cursor_type as local everywhere.
7283 (syms_of_buffer): New per-buffer variable cursor-type.
7284
7285 * buffer.h (struct buffer): Remove member local_var_flags,
7286 add local_flags.
7287 (MAX_BUFFER_LOCAL_VARS): New macro.
7288 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
7289 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
7290 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
7291 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
7292
7293 * print.c (print_object): Use new macros for per-buffer
7294 variables.
7295
7296 * category.c (Fset_category_table): Use new macros for per-buffer
7297 variables.
7298
7299 * buffer.c (buffer_permanent_local_flags): Make a char array.
7300 (max_buffer_local_idx): New variable.
7301 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
7302 for new handling of per-buffer variables.
7303 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
7304 (init_buffer_once): Initialize per-buffer vars differently.
7305 Set max_buffer_local_idx.
7306
7307 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
7308 variables.
7309
7310 * lread.c (defvar_per_buffer): Use new macros for per-buffer
7311 variables.
7312
7313 * data.c (do_symval_forwarding, store_symval_forwarding)
7314 (find_symbol_value, set_internal, default_value, Fset_default)
7315 (Fkill_local_variable, Flocal_variable_p): Use new macros for
7316 per-buffer variables.
7317
7318 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
7319
7320 2000-03-24 Gerd Moellmann <gerd@gnu.org>
7321
7322 * xterm.c (x_term_init): Unblock input around call1 of
7323 Qvendor_specific_keysyms.
7324
7325 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
7326 (find_defun_start): Consider an open parenthesis in column 0
7327 a defun start only if open_paren_in_column_0_is_defun_start is set.
7328 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
7329
7330 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
7331
7332 * eval.c (Fautoload): Add entry in load-history (if after dump).
7333 * lread.c (load-history): Update docstring.
7334
7335 2000-03-24 Gerd Moellmann <gerd@gnu.org>
7336
7337 * indent.c (Fvertical_motion): Always use the current buffer.
7338 Temporarily change the window's buffer, if necessary.
7339
7340 2000-03-23 Gerd Moellmann <gerd@gnu.org>
7341
7342 * xterm.c (fast_find_position): Make sure not to consider rows
7343 not visible in the window.
7344
7345 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
7346
7347 * regex.c (enum syntaxcode): Provide default for non-Emacs.
7348 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
7349
7350 2000-03-22 Jason Rumney <jasonr@gnu.org>
7351
7352 * w32menu.c (single_submenu): Set help string to NULL if none.
7353 (w32_menu_show): Set help string correctly.
7354 (add-menu-item): Set help string in MIIM_DATA for menu item.
7355 Load SetMenuItemInfoA explicitly.
7356 (w32_menu_display_help): New function.
7357
7358 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
7359 (QCdata): Moved to xdisp.c.
7360
7361 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
7362 (Vw32_charset_to_codepage_alist): Removed.
7363 (Vw32_charset_info_alist): New variable.
7364 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
7365 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
7366 greek, hebrew, thai, johab, mac, unicode]): New symbols.
7367 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
7368 with TODO comment.
7369 (w32_codepage_for_font): Use Vw32_charset_info_alist.
7370 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
7371 Define Vw32_charset_info_alist and w32_charset symbols.
7372
7373 2000-03-22 Jason Rumney <jasonr@gnu.org>
7374
7375 * makefile.nt (w32bdf.obj): Update dependencies.
7376
7377 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
7378
7379 * w32fns.c: Include fontset.h after dispextern.h.
7380 (Fx_create_frame): Do not create fontset.
7381 (w32_load_system_font): Doc fix.
7382 (Fx_close_connection): Free full_name if it is not shared.
7383
7384 * w32term.c: Include fontset.h after dispextern.h.
7385 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
7386 updated.
7387 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
7388 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
7389 (w32_font_is_double_byte): New function, needs body.
7390 (x_append_glyph): Set glyph->glyph_not_available_p.
7391 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
7392 it->charset. If it->multibyte_p is zero and it->c is a multibyte
7393 character, convert it to a unibyte character.
7394 (struct glyph_string): Delete member `charset'.
7395 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
7396 calculating it is found.
7397 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
7398 the case that per char metric is not available correctly.
7399 (x_fill_glyph_string): Handle the case that the specific glyph is
7400 not available correctly.
7401 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
7402 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
7403 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
7404 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
7405 fontset. Don't call FS_LOAD_FONT.
7406
7407 2000-03-22 Ken Raeburn <raeburn@gnu.org>
7408
7409 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
7410 (INT_LISPLIKE): New macro.
7411 (NULL_INTERVAL_P): Use it.
7412 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
7413 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
7414 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
7415
7416 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
7417 explicit references to "parent" field of struct interval and
7418 associated unclean type conversions.
7419 * intervals.c (create_root_interval, root_interval, rotate_right,
7420 rotate_left, balance_possible_root_interval, split_interval_right,
7421 split_interval_left, interval_start_pos, find_interval,
7422 next_interval, previous_interval, update_interval,
7423 adjust_intervals_for_insertion, delete_node, delete_interval,
7424 adjust_intervals_for_deletion, merge_interval_right,
7425 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
7426 copy_intervals_to_string): Likewise.
7427 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
7428 Likewise.
7429 * syntax.c (update_syntax_table): Likewise.
7430
7431 * intervals.c (reproduce_tree_obj): New function, like
7432 reproduce_tree but takes a Lisp_Object for the parent. Declare
7433 with prototype.
7434 (graft_intervals_into_buffer): Use it when appropriate.
7435 (reproduce_tree): Declare with prototype.
7436 (balance_possible_root_interval): Check that the parent is a lisp
7437 object before trying to examine its type.
7438
7439 2000-03-22 Gerd Moellmann <gerd@gnu.org>
7440
7441 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
7442 as strings only if both are known to be strings.
7443
7444 * s/openbsd.h (LIBS_TERMCAP): Undef.
7445
7446 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
7447
7448 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
7449 definitions for non-Emacs compilation.
7450 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
7451 outside of `#ifdef emacs'.
7452 (print_partial_compiled_pattern): Update.
7453 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
7454 (re_compile_fastmap): Merge handling of charset and charset_not (for
7455 emacs and non-emacs compilation as well).
7456 Similarly for (not)categoryspec and (not)syntaxspec.
7457 Don't use the fastmap when reaching `anychar' since the added
7458 complexity is not justified.
7459 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
7460 and (not)syntaxspec. Merge (not)categoryspec.
7461
7462 2000-03-22 Kenichi Handa <handa@etl.go.jp>
7463
7464 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
7465 FACE_FOR_CHAR): Define them differently for the configuration of
7466 --without-x.
7467
7468 2000-03-21 Dave Love <fx@gnu.org>
7469
7470 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
7471 doc string.
7472
7473 2000-03-21 Gerd Moellmann <gerd@gnu.org>
7474
7475 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
7476 (lface_fully_specified_p): Don't check contents of
7477 LFACE_FONT_INDEX because that attribute is optional.
7478 (realize_x_face): Remove now unwarranted xassert.
7479
7480 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
7481
7482 The following changes are to make font selection based on
7483 characters, not charset. In addition, they recover fontset
7484 facilities while utilizing the new font selection mechanism.
7485
7486 * Makefile.in (fontset.o): Depend on dispextern.h.
7487
7488 * alloc.c (mark_face_cache): Don't mark face->registry.
7489
7490 * dispextern.h (struct glyph): New member glyph_not_available_p.
7491 Use 22 bits for face_id.
7492 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
7493 (struct face): Delete member registry, new member ascii_face.
7494 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
7495 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
7496 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
7497 (struct it): Delete member charset, new member
7498 glyph_not_available_p.
7499
7500 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
7501 (struct fontset_info, struct fontset_data): Structs removed.
7502 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
7503 Vglobale_fontset_alist, font_idx_temp): Externs removed.
7504 (fs_load_font, fs_query_fontset): Adjusted for new argument.
7505 (fs_free_face_fontset, fontset_font_pattern,
7506 face_suitable_for_char_p, face_for_char,
7507 make_fontset_for_ascii_face): Extern them.
7508 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
7509 (FS_LOAD_FACE_FONT): New macro.
7510
7511 * fontset.c: All codes rewritten or adjusted for the change of
7512 fontset implementation. Now fontset is represented by char table.
7513 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
7514 removed.
7515 (my_strcasecmp): Function removed.
7516 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
7517 variables.
7518 (AREF, ASIZE): New macros.
7519 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
7520 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
7521 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
7522 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
7523 fontset_id_valid_p, font_family_registry, fontset_name,
7524 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
7525 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
7526 New functions.
7527 (fs_load_font): New arg FACE. Caller changed.
7528 (fs_query_fontset): Argument changed. Caller changed.
7529 (Fquery_fontset): call fs_query_fontset.
7530 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
7531 Functions removed.
7532 (clear_fontset_elements, check_registry_encoding,
7533 check_fontset_name): New functions.
7534 (syms_of_fontset): Set char-table-extra-slots property of fontset
7535 to 3. Staticpro and initialize Vfontset_table and
7536 Vdefault_fontset. Defsubr fontset_font and fontset_list.
7537
7538 * frame.h (struct frame): Member `fontset_data' removed.
7539 (FRAME_FONTSET_DATA): Macro removed.
7540
7541 * frame.c (make_frame): Don't allocate f->fontset_data.
7542 (Fdelete_frame): Don't free f->fontset_data.
7543
7544 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
7545
7546 * xdisp.c (charset_at_position): Function removed.
7547 (init_iterator): Don't set member charset of struct `it'.
7548 (handle_face_prop, reseat_to_string, set_iterator_to_next,
7549 next_element_from_display_vector, insert_left_trunc_glyphs):
7550 Likewise.
7551 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
7552 FACE_FOR_CHARSET.
7553 (get_next_display_element, append_space,
7554 extend_face_to_end_of_line): Likewise.
7555
7556 * xfaces.c (Qx_charset_registry, Vface_default_registry):
7557 Variables removed.
7558 (clear_font_table, frame_update_line_height, load_face_font):
7559 Adjusted for the change of fontset implementation.
7560 (load_face_fontset_font): Function removed.
7561 (pixel_point_size): New function.
7562 (font_list): Argument type changed. Caller changed.
7563 (LFACE_FONT): New macro.
7564 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
7565 (set_lface_from_font_name): Type of arg FONTNAME is changed to
7566 Lisp_Object. Determine the font name by actually loading a font
7567 by the specified pattern. Set LFACE_FONT (lface) to the specified
7568 pattern. Even if a font is not found, don't try alternatives.
7569 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
7570 (set_font_frame_param): If `font' is specified in lface, use it.
7571 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
7572 (lface_same_font_attributes_p): Likewise.
7573 (make_realized_face): Arguent changed. Caller changed. Set
7574 face->ascii_face to face itself.
7575 (free_realized_face): Free face->fontset if face is for ASCII.
7576 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
7577 deduce_unibyte_registry, x_charset_registry): Functions removed.
7578 (free_realized_multibyte_face): New function.
7579 (lookup_face, lookup_named_face, lookup_derived_face): Argument
7580 changed. Caller changed.
7581 (try_font_list): Argument type changed.
7582 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
7583 (choose_face_font): Argument changed. Handle fontset properly.
7584 (choose_face_fontset_font): Function removed.
7585 (realize_default_face, realize_named_face): Don't remove the
7586 former face here.
7587 (realize_face): Argument changed. Caller changed. Remove face
7588 with the arg former_face_id in advance. Load font for the new
7589 face.
7590 (realize_x_face): Argument changed. Caller changed. For a
7591 multibyte character, share fontset with base_face. For a single
7592 byte character, make a new realized fontset. Don't load a font
7593 here.
7594 (realize_tty_face): Argument changed. Caller changed.
7595 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
7596 (face_at_buffer_position): Don't check multibyte_p for returning
7597 DEFAULT_FACE_ID.
7598 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
7599 FACE_SUITABLE_FOR_CHARSET_P.
7600 (syms_of_xfaces): Remove code for Qx_charset_registry and
7601 Vface_default_registry.
7602
7603 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
7604 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
7605 (x_per_char_metric): Don't try FONT->default_char. Even if
7606 pcm->width is zero, glyph bits may exist.
7607 (x_encode_char): Always initialize char2b->byte1.
7608 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
7609 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
7610 changed.
7611 (x_append_glyph): Set glyph->glyph_not_available_p.
7612 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
7613 it->charset. Handle the case that per char metric is not
7614 available. If it->multibyte_p is zero and it->c is a multibyte
7615 character, convert it to a unibyte character.
7616 (struct glyph_string): Delete member `charset'.
7617 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
7618 the case that per char metric is not available correctly.
7619 (x_fill_glyph_string): Handle the case that the specific glyph is
7620 not available correctly.
7621 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
7622 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
7623 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
7624 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
7625 fontset. Don't call FS_LOAD_FONT.
7626
7627 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
7628 (x_create_tip_frame): Likewise.
7629 (Fx_close_connection): Free full_name of font_info.
7630
7631 * fns.c (optimize_sub_char_table): New function.
7632 (Foptimize_char_table): New function.
7633 (syms_of_fns): Defsubr Soptimize_char_table.
7634
7635 2000-03-20 Gerd Moellmann <gerd@gnu.org>
7636
7637 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
7638 only if buffer is displayed in some window.
7639
7640 * xdisp.c (handle_single_display_prop): Initialize local `value'.
7641 (try_window_reusing_current_matrix): Don't call scroll run
7642 function if run's current and desired position are the same;
7643 this prevents cursor flickering.
7644
7645 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
7646
7647 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
7648
7649 * regex.c (RE_STRING_CHAR): New macro.
7650 (GET_CHAR_AFER_2): Remove.
7651 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
7652 (enum re_opcode_t): Remove on_failure_jump_exclusive.
7653 (print_partial_compiled_pattern, re_compile_fastmap)
7654 (re_match_2_internal): Remove on_failure_jump_exclusive.
7655 (regex_compile): Turn optimizable P+ loops into PP*, so that the
7656 optimization only need to work for * (ie. can use of_keep_string_jump).
7657 Remove the special case for .*\n since it is now covered by the general
7658 optimization.
7659 (re_search_2): Don't bother with `room'.
7660 (skip_one_char): New function.
7661 (skip_noops): Simplify since `memory' is not needed any more.
7662 (mutually_exclusive_p): Restructure slightly to use `switch' and
7663 add handling for "all" remaining cases.
7664 (re_match_2_internal): Change on_failure_jump_smart to use
7665 on_failure_keep_string_jump (and redirect the end-of-loop jump)
7666 rather than on_failure_jump_exclusive.
7667
7668 2000-03-19 Gerd Moellmann <gerd@gnu.org>
7669
7670 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
7671 number of bits per RGB because it's everywhere used as the depth
7672 of the visual.
7673
7674 * term.c (calculate_costs): Remove code dealing with X frames.
7675
7676 2000-03-19 Richard M. Stallman <rms@gnu.org>
7677
7678 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
7679
7680 2000-03-18 Gerd Moellmann <gerd@gnu.org>
7681
7682 * lread.c (read_integer): Unread the last char not consumed.
7683
7684 2000-03-17 Gerd Moellmann <gerd@gnu.org>
7685
7686 * xterm.c (x_update_window_cursor): Don't update in frames
7687 which are in the process of being deleted.
7688
7689 2000-03-16 Gerd Moellmann <gerd@gnu.org>
7690
7691 * Makefile.in (mostlyclean): Add `*.core'.
7692 (clean): Add `bootstrap-emacs'.
7693
7694 * lread.c (read_integer): New function.
7695 (read1): Support read syntax #o, #x, #b, #r.
7696
7697 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
7698
7699 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
7700 make sure POINTER_TO_OFFSET gives the same value before and after
7701 PREFETCH. Use `dfail' to guarantee "atomic" matching.
7702 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
7703 (debug): Now only active if > 0 rather than if != 0.
7704 (DEBUG_*): Update for the new meaning of `debug'.
7705 (print_partial_compiled_pattern): Add missing `succeed' case. Use
7706 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
7707 in `succeed_n', `jump_n' and `set_number_at'.
7708 (store_op1, store_op2, insert_op1, insert_op2)
7709 (at_begline_loc_p, at_endline_loc_p): Add prototype.
7710 (group_in_compile_stack): Move to after its arg's types are
7711 declared and add a prototype.
7712 (PATFETCH): Define in terms of PATFETCH_RAW.
7713 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
7714 wrapper.
7715 (QUIT): Redefine as a nop except for NTemacs.
7716 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
7717 indentation of the greedy-op and shy-group code.
7718 (at_(beg|end)line_loc_p): Fix argument's types.
7719 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
7720 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
7721 (MATCHING_IN_FIRST_STRING): Remove.
7722 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
7723 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
7724 QUIT unconditionally.
7725
7726 2000-03-15 Gerd Moellmann <gerd@gnu.org>
7727
7728 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
7729 a sole completion.
7730
7731 * process.c (send_process): Add a hint that the function
7732 can call Lisp code to its comment.
7733
7734 * lread.c (load_dangerous_libraries): New variable.
7735 (Vbytecomp_version_regexp): New variable.
7736 (safe_to_load_p): New function.
7737 (Fload): Handle files not compiled with Emacs specially.
7738 (syms_of_lread): New Lisp variable load-dangerous-libraries.
7739
7740 2000-03-14 Gerd Moellmann <gerd@gnu.org>
7741
7742 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
7743
7744 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
7745 support functions only if HAVE_X11R6_XIM is defined.
7746 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
7747
7748 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
7749
7750 * xfns.c (X_I18N_INHIBITED): Don't define.
7751 (create_frame_xic): Remove conditional compilation on
7752 X_I18N_INHIBITED.
7753 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
7754
7755 * config.in (HAVE_X_I18N): Moved here from xterm.h.
7756 (HAVE_X11R6_XIM): Define.
7757
7758 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
7759
7760 * xterm.c (x_term_init): Add support for X resource `synchronous'.
7761 If set, call XSynchronize.
7762
7763 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
7764
7765 * regex.c: Declare a new type `re_char' used throughout the code
7766 for the string char type. It's `const unsigned char' to match the
7767 rest of Emacs. Consistently make sure all pointers to strings use
7768 it and make sure all pointers into the pattern use `unsigned
7769 char'.
7770 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
7771 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
7772 code duplication.
7773
7774 * charset.h (GET_CHAR_AFTER_2): Remove.
7775 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
7776
7777 2000-03-12 Ken Raeburn <raeburn@gnu.org>
7778
7779 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
7780 variable before the invocation of YMF_PASS_LDFLAGS, in case both
7781 of them try to use backquotes.
7782
7783 2000-03-12 Dave Love <fx@gnu.org>
7784
7785 * unexelf.c: Restore changes of 1999-10-19.
7786 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
7787 fix its type and alignment; copy it from current process.
7788
7789 2000-03-12 Gerd Moellmann <gerd@gnu.org>
7790
7791 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
7792 has been found. Fix bug not computing timer's predecessor.
7793
7794 * fileio.c (Fread_file_name): Handle case that DIR contains a
7795 file name.
7796
7797 * window.c (Fsave_window_excursion): Doc fix.
7798
7799 * xfns.c (x_defined_color): Rewritten to use
7800 x_allocate_nearest_color.
7801
7802 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
7803
7804 * msdos.c (vga_installed): New function, code moved from
7805 dos_set_window_size.
7806 (Qbar, Qcursor_type, outside_cursor): New variables.
7807 (syms_of_msdos): Intern and staticpro them.
7808 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
7809 shape used outside Emacs when called for the first time.
7810 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
7811 cursor shape used outside Emacs.
7812 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
7813 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
7814 type has changed.
7815 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
7816 parameters specify the cursor. Make qreverse a global
7817 variable (renamed to Qreverse).
7818
7819 2000-03-09 Gerd Moellmann <gerd@gnu.org>
7820
7821 * fns.c (Fy_or_n_p): Cancel busy-cursor.
7822
7823 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
7824
7825 This is a big redesign of failure-stack and register handling, prompted
7826 by bugs revealed when trying to add shy-groups. Overall, what happened
7827 is that loops are now structured a little differently, groups can be
7828 shy and the code is a little simpler.
7829
7830 * regex.h: Update the copyright.
7831 (RE_SHY_GROUPS): New value.
7832 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
7833 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
7834
7835 * regex.c (enum re_opcode_t): Remove jump_past_alt,
7836 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
7837 on_failure_jump_(exclusive, loop and smart). Also fix the comment
7838 for (start|stop)_memory since they now only take one argument (the
7839 second has becomes unnecessary).
7840 (print_partial_compiled_pattern): Adjust for changes in
7841 re_opcode_t.
7842 (print_compiled_pattern): Use %ld to printf long ints and flush to
7843 make debugging a little easier.
7844 (union fail_stack_elt): Make the integer unsigned.
7845 (struct fail_stack_type): Add a `frame' element.
7846 (INIT_FAIL_STACK): Init `frame' as well.
7847 (POP_PATTERN_OP): New macro for re_compile_fastmap.
7848 (DEBUG_PUSH, DEBUG_POP): Remove.
7849 (NUM_REG_ITEMS): Remove.
7850 (NUM_NONREG_ITEMS): Adjust.
7851 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
7852 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
7853 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
7854 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
7855 macros.
7856 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
7857 address pushed is not the destination of the jump but the source
7858 of it instead.
7859 (NUM_FAILURE_ITEMS): Remove.
7860 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
7861 registers before the actual failure point). Don't hardcode any
7862 meaning for str==NULL anymore.
7863 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
7864 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
7865 Remove.
7866 (REG_UNSET_VALUE): Use NULL (why not?).
7867 (compile_range): Remove declaration since it doesn't exist.
7868 (struct compile_stack_elt_t): Remove inner_group_offset.
7869 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
7870 (regex_grow_registers): Remove dead code.
7871 (FIXUP_ALT_JUMP): New macro.
7872 (regex_compile): Add shy-groups Change loops to use
7873 on_failure_jump_smart&jump instead of
7874 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
7875 initial (dummy_failure_)jump. Remove c1_base (looks like unused
7876 variable to me). Use `jump' instead of `jump_past_alt' and don't
7877 bother with push_dummy_failure in alternatives since it is now
7878 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
7879 emacs' for (re)allocating the stack.
7880 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
7881 from loop when bufp->can_be_null rather than jumping to `done'.
7882 Avoid jumping backwards so as to ensure termination. Use
7883 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
7884 backreferences. Remove dead code in handling of `anychar'.
7885 (skip_noops, mutually_exclusive_p): New functions taken from the
7886 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
7887 improve mutually_exclusive_p to handle ".+\n".
7888 (lowest_active_reg, highest_active_reg,
7889 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
7890 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
7891 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
7892 variables. Push register (in `start_memory') on the stack rather
7893 than storing it in old_reg(start|end). Remove the cycle detection
7894 from `stop_memory', replaced by the use of on_failure_jump_loop
7895 for greedy loops. Add code for the new on_failure_jump_<foo>.
7896 Remove ad-hoc code in `on_failure_jump' to push more registers in
7897 the case of a loop. Take out code from `maybe_pop_jump' into
7898 separate functions and adapt it to the semantics of
7899 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
7900 and push_dummy_failure. Remove dummy_failure handling and
7901 handling of `failures to jump to on_failure_jump' (this last one
7902 was already dead code, it seems).
7903 (group_match_null_string_p, alt_match_null_string_p)
7904 (common_op_match_null_string_p): Remove.
7905
7906 2000-03-08 Dave Love <fx@gnu.org>
7907
7908 * config.in: Don't depend on __STDC__ for volatile.
7909 Add POINTER_TYPE, PTR, PROTOTYPES.
7910
7911 * hftctl.c, strftime.c: Use PROTOTYPES.
7912 * eval.c (find_handler_clause): Likewise.
7913
7914 * mem-limits.h: Use POINTER_TYPE.
7915
7916 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
7917 (memory_warnings): Declare using POINTER_TYPE.
7918
7919 2000-03-08 Gerd Moellmann <gerd@gnu.org>
7920
7921 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
7922
7923 * xdisp.c (display_echo_area): Temporarily inhibit garbage
7924 collection.
7925
7926 * xfns.c: Remove obsolete code in #if 0.
7927 (Fx_focus_frame): New function.
7928
7929 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
7930
7931 * coding.c (coding_category_name): Add coding-category-utf-8,
7932 coding-category-utf-16-be, coding-category-utf-16-le.
7933 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
7934 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
7935 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
7936 (detect_coding_utf_8): New function.
7937 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
7938 UTF_16_LOW_SURROGATE_P): New macros.
7939 (detect_coding_utf_16): New function
7940 (detect_coding_mask): When priorities are specified, skip any
7941 categories that have `nil' coding-system. Fix bug of returning
7942 wrong mask when PRIORITIES is specified and detect_coding_XXX()
7943 returns a mask not set in PRIORITIES.
7944 (detect_eol_type_in_2_octet_form): New function.
7945 (detect_eol): selects detect_eol_type_XXX to call according to
7946 cooding->category_idx.
7947 (detect_coding_system): Remove `nil' coding-system in the result.
7948 (Fupdate_coding_systems_internal): Update all coding-categories.
7949
7950 * coding.h (CODING_CATEGORY_IDX_UTF_8,
7951 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
7952 macros.
7953 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
7954 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
7955 CODING_CATEGORY_IDX_UTF_16_LE.
7956 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
7957 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
7958 (CODING_CATEGORY_MASK_ANY): Include the above macros.
7959 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
7960
7961 2000-03-07 Gerd Moellmann <gerd@gnu.org>
7962
7963 * doc.c (Fdocumentation_property): If value is not a string,
7964 and doesn't refer to etc/DOC, evaluate it to obtain a string.
7965
7966 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
7967 close the display with XtCloseDisplay. This caused a bus error
7968 on OpenWindows.
7969
7970 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
7971 complete but not unique.
7972
7973 2000-03-06 Gerd Moellmann <gerd@gnu.org>
7974
7975 * process.c (send_process): Remove local variable `procname' that
7976 might become invalid when a GC happens. Instead, access the
7977 process name slot directly.
7978
7979 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
7980 orig_height if set.
7981
7982 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
7983 orig_height if set.
7984
7985 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
7986
7987 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
7988 glyph matrices have been freed.
7989
7990 2000-03-05 Gerd Moellmann <gerd@gnu.org>
7991
7992 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
7993 (bootstrap-temacs): Set LC_ALL to C like for temacs.
7994
7995 * xfns.c (QCdata): Moved to xdisp.c.
7996
7997 * xdisp.c (QCdata): Moved here from xfns.c.
7998 (syms_of_xdisp): Initialize QCdata.
7999
8000 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
8001
8002 * window.c (coordinates_in_window): Use
8003 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
8004 FRAME_INTERNAL_BORDER_WIDTH.
8005
8006 * xdisp.c (try_window_id): Recompute unchanged information if
8007 it is obviously invalid.
8008
8009 * xterm.c (x_term_init): Create a colormap if not using the
8010 default visual.
8011
8012 * xterm.h (select_visual): Change prototype.
8013
8014 * xfns.c (select_visual): Rewritten. Recognize user-specified
8015 visual classes.
8016 (visual_classes): New variable.
8017
8018 2000-03-04 Gerd Moellmann <gerd@gnu.org>
8019
8020 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
8021 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
8022 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
8023 (x_decode_color): Don't handle allocation of white and black
8024 specially.
8025 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
8026 XtNcolormap resources.
8027 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
8028 (Fx_create_frame): Initialize color members of x_output structure.
8029 (xpm_load): Pass colormap to XPM lib.
8030
8031 * xfaces.c (x_free_colors): Access colormap of frame using
8032 FRAME_X_COLORMAP. Be paranoid about freeing black and white
8033 when default colormap is used.
8034
8035 * xterm.c (x_term_init): Set Colormap member of x_display_info
8036 structure. Copy colormap if resource `privateColormap' is
8037 specified (PseudoColor only).
8038 (x_setup_relief_color): Access colormap of frame using
8039 FRAME_X_COLORMAP.
8040
8041 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
8042 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
8043
8044 2000-03-04 Jason Rumney <jasonr@gnu.org>
8045
8046 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
8047 other non-platform-specific equivalents.
8048 [WINDOWSNT]: Include w32term.h, fontset.h and define X
8049 specific functions and macros as their w32 equivalents where
8050 non-platform-specifics are not available.
8051 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
8052 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
8053 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
8054 (frame_update_line_height): Use macros to access f->output_data.
8055 (defined_color): Remove FIXME comments; fixed.
8056 (x_face_list_fonts, prepare_face_for_display): Put X specifics
8057 into #ifdef blocks. Add WINDOWSNT blocks.
8058 (Fx_list_fonts): Use macros for accessing font data.
8059 (set_lface_from_font_name): Different default fonts for X and
8060 WINDOWSNT.
8061 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
8062 scalable for backward compatibility.
8063 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
8064 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
8065
8066 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
8067 syms_of_w32faces.
8068
8069 * makefile.nt (w32faces.obj): Remove.
8070 (xfaces.obj): Add.
8071
8072 2000-03-03 Jason Rumney <jasonr@gnu.org>
8073
8074 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
8075 correct parameters.
8076
8077 2000-03-03 Ken Raeburn <raeburn@gnu.org>
8078
8079 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
8080 standard ELF definitions here if the system header does not.
8081
8082 2000-03-03 Gerd Moellmann <gerd@gnu.org>
8083
8084 * xterm.c (PER_CHAR_METRIC): Removed.
8085 (x_per_char_metric_1, x_default_char): New functions.
8086 (x_per_char_metric): If font's default char is invalid, return
8087 metrics of a suitably chosen usable default char.
8088 (x_draw_glyph_string_foreground): If font has an invalid default
8089 char, replace occurrences of unprintable chars with a suitably
8090 chosen usable default char.
8091
8092 2000-03-02 Gerd Moellmann <gerd@gnu.org>
8093
8094 * xterm.c (note_mouse_highlight): Return quickly if frame's
8095 glyph matrices have been freed.
8096
8097 * dispnew.c (free_glyphs): Block input while freeing matrices.
8098
8099 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
8100
8101 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
8102 x_free_colors.
8103
8104 * dispextern.h (x_free_colors): Add prototype.
8105
8106 * xfaces.c (x_free_colors): New function.
8107 (unload_color, free_face_colors): Use it.
8108
8109 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
8110
8111 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
8112
8113 * window.c [MSDOS]: Include msdos.h.
8114
8115 2000-03-02 Dave Love <fx@gnu.org>
8116
8117 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
8118
8119 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
8120 set C_OPTIMIZE_SWITCH for gcc.
8121
8122 2000-03-02 Kenichi Handa <handa@etl.go.jp>
8123
8124 * coding.c (coding_save_composition): Be sure to allocate
8125 composition data area in coding even if there's no composition in
8126 the current run.
8127
8128 2000-03-01 Jason Rumney <jasonr@gnu.org>
8129
8130 * w32term.c: Equivalent changes to those made to xterm.c on
8131 2000-02-25 and 2000-02-24.
8132
8133 * w32fns.c: Equivalent changes to those made to xfns.c on
8134 2000-02-25 and 2000-02-21.
8135
8136 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
8137 correct line-end convention is followed.
8138
8139 * w32menu.c [HAVE_BOXES]: Remove #undef.
8140 (single_keymap_panes): Remove code for simulating checkmarks.
8141 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
8142 Remove code for drawing simulated checkmarks.
8143 (w32_menu_show): make unibyte help string correctly.
8144 (add_menu_item): draw standard Windows checkmarks. Draw radio
8145 buttons as radio buttons if possible.
8146
8147 2000-03-01 Gerd Moellmann <gerd@gnu.org>
8148
8149 * sysdep.c (start_of_text): Don't define this function for NetBSD
8150 with ELF.
8151
8152 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
8153 Don't define.
8154 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
8155 (LINKER): Don't undef if __NetBSD__ is defined.
8156
8157 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
8158
8159 * fileio.c [__NetBSD__]: Define `unix'.
8160
8161 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
8162
8163 2000-02-29 Gerd Moellmann <gerd@gnu.org>
8164
8165 * atimer.c (start_atimer): Don't abort when timers are stopped.
8166 (append_atimer_lists): New function.
8167 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
8168 arbitrary lists of stopped and running atimers.
8169
8170 * atimer.c (cancel_atimer): Handle canceling an atimer when
8171 some timers are stopped.
8172
8173 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
8174 after canceling it.
8175
8176 * fns.c (maybe_resize_hash_table): Handle case of new size
8177 coming out as being the same as old size.
8178
8179 2000-02-27 Jason Rumney <jasonr@gnu.org>
8180
8181 * makefile.nt: Add atimer.h to dependencies.
8182 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
8183 * w32console.c: Only disable window system features for dispextern.h
8184 (initialize_w32_display): Build a display info for the console.
8185 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
8186 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
8187 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
8188 as 2 button mice.
8189 * w32gui.h (struct W32FontStruct): Revert last change after change
8190 to xdisp.c.
8191 * w32menu.c (single_submenu): Set up help string.
8192 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
8193 (w32_dialog_show): Set up help string.
8194 * w32term.c (w32_display_info_for_display): Remove unused function.
8195 (w32_draw_bitmap): Use pre-built bitmaps.
8196 (w32_initialize_display_info): New function to initialize parts of
8197 display info that are common to both GUI and console frames.
8198 (w32_term_init): Use w32_initialize_display_info. Do not set
8199 Vw32_num_mouse_buttons here, as it is not called for console
8200 frames. Build bitmaps for indicating truncated lines etc.
8201 (x_delete_display): Destroy pre-built bitmaps.
8202 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
8203 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
8204
8205 2000-02-27 Dave Love <fx@gnu.org>
8206
8207 * lisp.h: Add a bunch of prototypes.
8208
8209 2000-02-26 Kenichi Handa <handa@etl.go.jp>
8210
8211 * keyboard.c (read_char): Set `usec' correctly.
8212
8213 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
8214
8215 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
8216 `lambda', set reg[RRR] to the map index.
8217 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
8218 reg[RRR] to 0. Otherwise, set it to -1.
8219
8220 2000-02-25 Gerd Moellmann <gerd@gnu.org>
8221
8222 * emacs.c (main): Remove code snippet commented out with `//'.
8223
8224 2000-02-25 Richard M. Stallman <rms@gnu.org>
8225
8226 * fileio.c (Ffile_symlink_p): If result starts with a `/'
8227 and contains a `:', prepend `/:'.
8228
8229 * window.c (select_window_1): If selected_window is nil,
8230 don't "swap out" the buffer's point.
8231 (Fset_window_configuration): Set selected_window to nil
8232 before calling Fselect_window.
8233 (unshow_buffer): Don't set point in buffer from window's point
8234 if another more recently selected window also shows the buffer.
8235
8236 2000-02-25 Gerd Moellmann <gerd@gnu.org>
8237
8238 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
8239
8240 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
8241 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
8242 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
8243 variables.
8244 (DEFAULT_BUSY_CURSOR_DELAY): New define.
8245 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
8246 (hide_busy_cursor): New functions.
8247 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
8248
8249 * minibuf.c (read_minibuf): Cancel busy-cursor.
8250
8251 * keyboard.c (command_loop_1): Call start_busy_cursor before
8252 Fcommand_execute and cancel_busy_cursor after it.
8253 (timer_check): Remove busy-cursor code.
8254 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
8255 cursor timer.
8256
8257 * process.c (wait_reading_process_input): Remove busy-cursor code.
8258
8259 * eval.c (Fsignal): Call cancel_busy_cursor instead of
8260 Fx_hide_busy_cursor.
8261
8262 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
8263 Remove prototyoes.
8264 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
8265
8266 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
8267
8268 * xterm.c (XTread_socket): Remove busy-cursor code.
8269
8270 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
8271 (build_frame_matrix_from_leaf_window): Put code handling
8272 glyph row's not being a slice of a frame row in #if 0.
8273 (sync_window_with_frame_matrix_rows): New function.
8274 (frame_row_to_window): New function.
8275 (mirror_line_dance): Handle copies between windows.
8276
8277 * lread.c (Fload): Use `xfree' instead of `free'.
8278 (init_obarray): Use `xmalloc' instead of `malloc'.
8279
8280 * window.c (Fset_window_buffer): Set WINDOW to the window
8281 after decoding.
8282 (coordinates_in_window): Take frame's internal border width
8283 into account.
8284
8285 2000-02-24 Gerd Moellmann <gerd@gnu.org>
8286
8287 * xterm.c (x_display_and_set_cursor): Display cursor of
8288 non-selected windows depending on the setting of
8289 cursor_in_non_selected_windows.
8290
8291 * xdisp.c (cursor_in_non_selected_windows): New variable.
8292 (syms_of_xdisp): DEFVAR_BOOL it.
8293
8294 2000-02-23 Gerd Moellmann <gerd@gnu.org>
8295
8296 * data.c (Fstring_to_number): If number is greater than what
8297 fits into an integer, return a float.
8298
8299 * eval.c (specbind): Remove references to
8300 keyword_symbols_constant_flag.
8301
8302 * data.c (keyword_symbols_constant_flag): Removed.
8303 (Fmakunbound, set_internal, syms_of_data): Remove references to
8304 keyword_symbols_constant_flag.
8305
8306 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
8307
8308 2000-02-23 Kenichi Handa <handa@etl.go.jp>
8309
8310 * syntax.c (multibyte_syntax_as_symbol): New variable.
8311 (syms_of_syntax): Declare it as a Lisp variable.
8312 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
8313 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
8314 nonzero, treat all multibyte characters as symbol.
8315 (init_syntax_once): Give syntax `word' to all multibyte
8316 characters.
8317
8318 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
8319
8320 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
8321 a deleted frame.
8322
8323 2000-02-21 Gerd Moellmann <gerd@gnu.org>
8324
8325 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
8326
8327 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8328 (x_non_menubar_window_to_frame): Check the busy-cursor window.
8329
8330 2000-02-21 Dave Love <fx@gnu.org>
8331
8332 * frame.c (Vmouse_position_function): New variable.
8333 (Fmouse_position): Use it.
8334 (syms_of_frame): Install it.
8335
8336 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
8337
8338 2000-02-20 Gerd Moellmann <gerd@gnu.org>
8339
8340 * fileio.c (Finsert_file_contents): Unbind the binding of
8341 standard-output done by temp_output_buffer_setup.
8342
8343 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
8344 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
8345 (specbind, unbind_to): Handle most common case of non-constant
8346 symbol with trivial value specially.
8347
8348 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
8349
8350 2000-02-20 Richard M. Stallman <rms@gnu.org>
8351
8352 * data.c (Fmake_variable_buffer_local): Doc fix.
8353 Init found_for_buffer to 0.
8354 (Fmake_variable_frame_local): If the variable has already
8355 been buffer-local, set the check_frame field.
8356
8357 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
8358
8359 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
8360 produced for CODING_MODE_LAST_BLOCK requires.
8361
8362 2000-02-18 Dave Love <fx@gnu.org>
8363
8364 * keyboard.c (echo_keystrokes): Remove declaration.
8365 (Vecho_keystrokes) New variable.
8366 (read_char, record_menu_key, read_key_sequence): Use it to allow
8367 use of float value.
8368 (syms_of_keyboard): Change Vecho_keystrokes declaration.
8369
8370 * lread.c: Undef feature selection macros before defining.
8371
8372 2000-02-18 Gerd Moellmann <gerd@gnu.org>
8373
8374 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
8375 for symbols other than the symbol in question.
8376
8377 2000-02-17 Dave Love <fx@gnu.org>
8378
8379 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
8380
8381 2000-02-17 Gerd Moellmann <gerd@gnu.org>
8382
8383 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
8384
8385 * alloc.c (enum mem_type): Compile unconditionally.
8386
8387 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
8388
8389 * xfaces.c (tty_defined_color): Don't return faulire indication
8390 for unspecified-fg and unspecified-bg pseudo-colors.
8391
8392 2000-02-17 Gerd Moellmann <gerd@gnu.org>
8393
8394 * alloc.c (mark_object): Don't mark symbol names in pure space.
8395 (gc_sweep): Don't unmark symbol names in pure space.
8396
8397 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
8398 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
8399 [GC_MARK_STACK]: New defines.
8400 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
8401 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
8402
8403 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
8404
8405 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
8406 allocate_buffer instead of xmalloc.
8407
8408 * alloc.c (toplevel): Include setjmp.h.
8409 (PURE_POINTER_P): New define.
8410 (enum mem_type) [GC_MARK_STACK]: New enumeration.
8411 (Vdead) [GC_MARK_STACK]: New variable.
8412 (lisp_malloc): Add parameter TYPE, call mem_insert if
8413 GC_MARK_STACK is defined.
8414 (allocate_buffer): New function.
8415 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
8416 (free_float) [GC_MARK_STACK]: Set type to Vdead.
8417 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
8418 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
8419 (MEM_NIL) [GC_MARK_STACK]: New define.
8420 (struct mem_node) [GC_MARK_STACK]: New structure.
8421 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
8422 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
8423 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
8424 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
8425 (mark_stack) [GC_MARK_STACK]: New functions.
8426 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
8427 (clear_marks): Removed.
8428 (gc_sweep): Set free conses' car, free floats' type, free
8429 symbols' function to Vdead. Use lisp_free to free buffers.
8430 (init_alloc_once): Initialize Vdead.
8431 (survives_gc_p): Return non-zero for pure objects.
8432
8433 * alloc.c: Add comments throughout the file.
8434
8435 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
8436 that unblocks alarms.
8437
8438 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
8439 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
8440 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
8441
8442 * frame.c (make_frame): Set frame initiallly to `garbaged'.
8443
8444 2000-02-17 Kenichi Handa <handa@etl.go.jp>
8445
8446 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
8447 avoid infinite error signaling. Allocate sufficient memory for
8448 eol_str in the case that eoltype is Lisp_Int.
8449
8450 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
8451
8452 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
8453 depends on the previous behavior.
8454
8455 2000-02-16 Gerd Moellmann <gerd@gnu.org>
8456
8457 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
8458
8459 2000-02-15 Gerd Moellmann <gerd@gnu.org>
8460
8461 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
8462
8463 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
8464 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
8465 write(2).
8466
8467 2000-02-15 Richard M. Stallman <rms@gnu.org>
8468
8469 * data.c (set_internal): Don't make variable buffer-local
8470 if within a let-binding for the same buffer.
8471 (let_shadows_buffer_binding_p): New function.
8472
8473 * eval.c (specbind): For buffer-local value,
8474 record the current buffer also.
8475 (unbind_to): Cope with that change.
8476
8477 2000-02-15 Gerd Moellmann <gerd@gnu.org>
8478
8479 * window.c (Fsave_window_excursion): Doc fix.
8480
8481 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
8482
8483 * syntax.c (back_comment): Make sure we only consider comment-starters
8484 of the relevant style and return -1 in case of a failure to find the
8485 beginning of the comment.
8486 (Fforward_comment): If back_comment fails, go back to the position just
8487 after the comment-end.
8488 (scan_lists): Add comment describing a very minor bug.
8489
8490 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
8491
8492 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
8493 `completion-regexp-list' in the docstring.
8494
8495 2000-02-14 Dave Love <fx@gnu.org>
8496
8497 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
8498
8499 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
8500
8501 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
8502 to Emacs' syntax. Also fix the comment about set/not-set meanings
8503 since Emacs syntax is not the value 0 any more.
8504 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
8505 since it's now part of RE_SYNTAX_EMACS.
8506
8507 2000-02-12 Dave Love <fx@gnu.org>
8508
8509 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
8510 Alpha.
8511
8512 2000-02-12 Gerd Moellmann <gerd@gnu.org>
8513
8514 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
8515
8516 2000-02-12 Dave Love <fx@gnu.org>
8517
8518 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
8519
8520 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
8521 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
8522 * s/hpux.h: Don't define HAVE_VFORK.
8523
8524 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
8525
8526 * s/nextstep.h: Don't define HAVE_ALLOCA.
8527
8528 * config.in: Add vfork bits.
8529
8530 2000-02-12 Gerd Moellmann <gerd@gnu.org>
8531
8532 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
8533 unwind function to undo the effect of stopping atimers.
8534
8535 * keyboard.c (bind_polling_period): Stop all timers except
8536 poll_timer.
8537
8538 * atimer.c (stopped_atimers): New variable.
8539 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
8540 New functions.
8541
8542 * atimer.h (stop_other_atimers, run_all_atimers)
8543 (unwind_stop_other_atimers): Add function prototypes.
8544
8545 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
8546
8547 2000-02-11 Ken Raeburn <raeburn@gnu.org>
8548
8549 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
8550 library may depend on jpeg.
8551 (atimer.o): Depends on atimer.c.
8552
8553 2000-02-11 Kenichi Handa <handa@etl.go.jp>
8554
8555 * insdel.c (del_range_1): Call update_compositions.
8556 (del_range_both): Call update_compositions just once..
8557
8558 2000-02-10 Dave Love <fx@gnu.org>
8559
8560 * xfns.c (create_frame_xic): Fix initialization of automatic
8561 aggregates for pcc.
8562
8563 2000-02-09 Kenichi Handa <handa@etl.go.jp>
8564
8565 * ccl.c (CCL_MAKE_CHAR): New macro.
8566 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
8567 registers by CCL_MAKE_CHAR before calling translate_char.
8568 <CCL_TranslateCharacterConstTbl> Likewise.
8569
8570 2000-02-08 Dave Love <fx@gnu.org>
8571
8572 * lread.c (__EXTENSIONS__): Define.
8573
8574 2000-02-08 Gerd Moellmann <gerd@gnu.org>
8575
8576 * puresize.h (BASE_PURESIZE): Increase to 650000.
8577
8578 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
8579
8580 * msdos.c (XMenuActivate): Turn off the cursor after displaying
8581 the help message.
8582
8583 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
8584
8585 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
8586 md, mh, mb, mr, and me to the fake termcap entry.
8587
8588 2000-02-06 Ken Raeburn <raeburn@gnu.org>
8589
8590 * sound.c (sound_cleanup): Don't call device close routine if the
8591 function pointer is null.
8592
8593 2000-02-06 Andrew Innes <andrewi@gnu.org>
8594
8595 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
8596 around image definitions and prototypes.
8597 (gamma_correct) [WINDOWSNT]: New prototype.
8598
8599 * w32term.c (x_make_frame_visible): Replace call to
8600 input_poll_signal with poll_for_input.
8601
8602 * window.c [WINDOWSNT]: Include w32term.h.
8603
8604 * xdisp.c [WINDOWSNT]: Include w32term.h.
8605
8606 * makefile.nt: Add dependencies on w32gui.h.
8607 (OBJ1): Include atimer.obj.
8608 ($(BLD)\atimer.obj): New dependency rule.
8609
8610 * w32.c (sigmask): New function (does nothing).
8611 (sigunblock): Ditto.
8612
8613 * frame.c [WINDOWSNT]: Include w32term.h.
8614
8615 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
8616
8617 * lread.c (syms_of_lread): Fix literal newlines.
8618
8619 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
8620 the string constant limit (2048 bytes) in MSVC.
8621 (main): Ditto.
8622
8623 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
8624
8625 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
8626 area.
8627 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
8628 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
8629 dispatch the event.
8630
8631 2000-02-04 Dave Love <fx@gnu.org>
8632
8633 * fileio.c: Remove some unused vars.
8634 (_GNU_SOURCE): Define (for euidaccess).
8635
8636 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
8637
8638 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
8639 gcpro1, gcpro2.
8640 (read_minibuf): Deal with allow_props correctly.
8641
8642 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
8643
8644 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
8645
8646 2000-02-03 Ken Raeburn <raeburn@gnu.org>
8647
8648 * search.c (compile_pattern): If a cache entry has a nil regexp,
8649 fill in that entry instead of clobbering a previously cached
8650 string regexp.
8651
8652 2000-02-02 Ken Raeburn <raeburn@gnu.org>
8653
8654 * puresize.h (BASE_PURESIZE): Increase to 610000.
8655
8656 2000-02-02 Gerd Moellmann <gerd@gnu.org>
8657
8658 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
8659 can GC.
8660
8661 2000-02-02 Kenichi Handa <handa@etl.go.jp>
8662
8663 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
8664 instead of incrementing ic directly.
8665 <CCL_WriteExprConst> Likewise.
8666 <ccl_set_expr>: Set ic to jump_address.
8667
8668 * fileio.c (e_write): Fix the handling of
8669 CODING_FINISH_INSUFFICIENT_SRC.
8670
8671 2000-02-01 Dave Love <fx@gnu.org>
8672
8673 * editfns.c (Fpropertize): Doc fix.
8674
8675 * process.c (Fstart_process): Doc fix.
8676
8677 * eval.c: Fix various doc strings not to duplicate information
8678 from help-manyarg-func-alist.
8679
8680 * window.c (Fset_window_margins): Don't make interactive. Doc
8681 fix.
8682
8683 * doc.c (Vhelp_manyarg_func_alist): New variable.
8684 (Fdocumentation): Use it.
8685 (syms_of_doc): Define it.
8686
8687 2000-01-31 Gerd Moellmann <gerd@gnu.org>
8688
8689 * xterm.c (xim_open_dpy): Remove unused local variable.
8690
8691 * emacs.c (USAGE): Use term `display options' instead of `X
8692 options'.
8693
8694 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
8695 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
8696
8697 * fns.c (sweep_weak_table): New function.
8698 (sweep_weak_hash_tables): Use it. Keep on marking until there
8699 is no more change.
8700
8701 2000-01-30 Gerd Moellmann <gerd@gnu.org>
8702
8703 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
8704 that XTread_socket does not crash by trying to call XNoOp on a
8705 closed display.
8706
8707 2000-01-30 Jason Rumney <jasonr@gnu.org>
8708
8709 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
8710 Change selected_frame to SELECTED_FRAME ().
8711 (w32_console_mouse_position): Remove #ifndef MULE from around
8712 `insist' parameter.
8713
8714 * makefile.nt: Remove dosfns.obj.
8715
8716 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
8717
8718 * w32fns.c (w32_defined_color): Check for valid frame before
8719 applying gamma correction. Eliminate dependency on frame elsewhere.
8720 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
8721 (w32_to_x_font): Use resx and resy not height_in and width_in.
8722 (x_to_w32_font): Doc fix.
8723 (xlfd_strip_height): New function to strip and return font height.
8724 (w32_font_match): Compare height separately from rest of xlfd
8725 spec, using xlfd_strip_height.
8726
8727 * w32term.c (w32_term_init): Swap resx and height_in, resy and
8728 width_in. Use w32_defined_color in place of defined_color.
8729
8730 * w32faces.c: Merge more of DOS and X specifics in preparation for
8731 merge with xfaces.c.
8732 (defined_color): Remove FIXME comment.
8733 (tty_color_name): Provide w32-specific function.
8734 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
8735
8736 * w32console.c (turn_on_face, turn_off_face): Removed.
8737 (w32_face_attributes): New function.
8738 (Global_variables): Reduce scope where possible.
8739 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
8740 fill attribute.
8741 (hl_mode): Don't modify text attributes.
8742 (write_glyphs): Don't do anything if len <= 0. Use
8743 w32_face_attributes to get attributes for drawing. Write
8744 terminating codes using char_attr_normal.
8745 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
8746 (update_begin, update_end): Likewise.
8747 (vga_stdcolor_name): New function.
8748 (initialize_w32_display): Remove char_attr_reverse and char_attr.
8749 (Fset_screen_color): Remove char_attr_reverse.
8750
8751 2000-01-29 Gerd Moellmann <gerd@gnu.org>
8752
8753 * xfns.c (xic_set_preeditarea): Take window parameter and
8754 window-relative pixel-positions.
8755
8756 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
8757 is its frame's selected window.
8758 (xim_instantiate_callback): Likewise.
8759
8760 * xfns.c (x_create_im): Removed.
8761 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
8762 (supported_xim_styles): Renamed from supported_styles.
8763 (best_xim_style): Renamed from best_style.
8764 (create_frame_xic): Renamed from xic_create_frame.
8765 (free_frame_xic): Renamed from xic_destroy_frame.
8766
8767 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
8768
8769 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
8770 our frames, call XFilterEvent with 2nd parameter `None'.
8771 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
8772 returning XBufferOverflow.
8773 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
8774 area.
8775 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
8776 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
8777 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
8778 (xim_initialize, xim_close)
8779 [HAVE_X_I18N && HAVE_X11R6]: New functions.
8780 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
8781 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
8782 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
8783
8784 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
8785 and `xim_styles'.
8786 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
8787 `xic_style' and `xic_xfs'.
8788 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
8789 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
8790 (FRAME_XIM): Removed.
8791
8792 * xfns.c (supported_styles): New variable.
8793 (DEFAULT_STYLE, DEFAULT_FONT): New macros
8794 (xic_create_xfontset, best_style, xic_create_frame)
8795 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
8796 (xic_set_xfontset): New functions.
8797
8798 2000-01-28 Dave Love <fx@gnu.org>
8799
8800 * s/irix6-5.h: Revert last change after change to irix5-0.h.
8801
8802 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
8803
8804 2000-01-28 Gerd Moellmann <gerd@gnu.org>
8805
8806 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
8807 for *scratch* if it already existed.
8808
8809 * emacs.c (USAGE): New macro.
8810 (main): Use it to display usage information.
8811
8812 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
8813
8814 Support for the menu-help feature:
8815
8816 * msdos.h: Change prototypes of XMenuAddSelection and
8817 XMenuActivate.
8818
8819 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
8820 part of the line to the termscript file.
8821 (IT_clear_to_end): Clear the entire line, not just its beginning.
8822 (menu_help_message, prev_menu_help_message): New variables.
8823 (IT_menu_make_room): Make room for the help_text member.
8824 (IT_menu_display): New argument disp_help; all callers changed.
8825 If disp_help is non-zero, store the help text of the active menu
8826 item in menu_help_message.
8827 (XMenuAddPane): Initialize the help_text member to NULL.
8828 (XMenuAddSelection): New argument help_text. Store it in the
8829 XMenu structure.
8830 (XMenuActivate): New argument help_callback. If the value of
8831 menu_help_message has changed since the last time, display the
8832 menu help message text while waiting for the mouse to move. Clear
8833 the echo area before exiting.
8834 (XMenuDestroy): Free the help_text member.
8835
8836 2000-01-27 Gerd Moellmann <gerd@gnu.org>
8837
8838 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
8839 XMenuAddSelection. Pass help callback to XMenuActivate.
8840 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
8841
8842 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
8843
8844 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
8845 and EMACS_SET_USECS.
8846
8847 2000-01-26 Dave Love <fx@gnu.org>
8848
8849 * editfns.c (Fchar_after, Fchar_before): Doc fix.
8850
8851 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
8852 an error may be signalled.
8853
8854 2000-01-26 Gerd Moellmann <gerd@gnu.org>
8855
8856 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
8857 LD_SWITCH_SYSTEM inherited from irix5-0.h.
8858
8859 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
8860
8861 2000-01-25 Gerd Moellmann <gerd@gnu.org>
8862
8863 * charset.c (Fstring): If there is a multibyte char among
8864 the args, always return a multibyte string.
8865
8866 2000-01-25 Gerd Moellmann <gerd@gnu.org>
8867
8868 * sysdep.c (sys_select): Turn atimers off and on instead of
8869 recording and restoring old alarm handler
8870
8871 * process.c (toplevel): Include atimer.h.
8872 (create_process_1): Rewritten.
8873 (create_process): Use atimers instead of alarm.
8874 (wait_reading_process_input) [hpux]: Turn atimers off instead
8875 of turning off SIGALRM.
8876 (wait_reading_process_input): Turn off atimers instead off
8877 calling stop_polling.
8878
8879 * emacs.c (main): Call init_atimer.
8880
8881 * keyboard.c (toplevel): Include systime.h and atimer.h.
8882 (polling_for_input): Removed because unused.
8883 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
8884 (poll_timer): New variable.
8885 (poll_for_input, poll_for_input_1): New functions.
8886 (start_polling, stop_polling): Rewritten.
8887
8888 * keyboard.h (polling_for_input): Removed.
8889
8890 * atimer.h, atimer.c: New files.
8891
8892 * Makefile.in (obj): Add atimer.o.
8893 (atimer.o): New target.
8894
8895 * blockinput.h (pending_atimers): Add extern declaration.
8896 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
8897
8898 * lisp.h (popup_activated_flag): Add extern declaration.
8899
8900 * xmenu.c (popup_activated_flag): Make externally visible.
8901 (popup_activate_callback) [USE_MOTIF]: Increment
8902 popup_activated_flag.
8903 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
8904
8905 * xterm.c (toplevel): Include atimer.h.
8906 (toolkit_scroll_bar_interaction): New variable.
8907 (Fxt_process_timeouts): Removed.
8908 (x_process_timeouts): New function.
8909 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
8910 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
8911 (x_make_frame_visible): Call poll_for_input_1 instead of
8912 input_poll_signal. Don't call alarm.
8913 (x_initialize): Install timer calling x_process_timeouts.
8914
8915 2000-01-24 Dave Love <fx@gnu.org>
8916
8917 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
8918 Don't use -cckr -- apparently not now necessary.
8919
8920 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
8921
8922 * msdos.c (IT_menu_display): Truncate long menu lines at the right
8923 screen boundary.
8924
8925 2000-01-23 Jason Rumney <jasonr@gnu.org>
8926
8927 * w32fns.c (w32_defined_color): Apply gamma correction before
8928 trying to map to the palette.
8929 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
8930 to w32_clear_rect.
8931
8932 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
8933 here. Callers changed to always pass real device context.
8934 (w32_draw_bitmap): Likewise.
8935 (w32_get_glyph_overhangs): Likewise.
8936 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
8937 one.
8938 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
8939 pfnSetScrollInfo and SetScrollRange.
8940 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
8941 back into MULE characters after decoding them.
8942 (x_get_glyph_face_and_encoding): Likewise.
8943 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
8944 GetCharABCWidthsW fails, since this is defined on Windows 9x.
8945 (x_produce_glyphs): Calculate per char metrics for a character
8946 that we know exists in default font when font_not_found_p is true.
8947
8948 2000-01-22 Jason Rumney <jasonr@gnu.org>
8949
8950 * makefile.nt (intervals.obj, composite.obj): New modules.
8951 (composite.h): Added as dependency where appropriate.
8952
8953 * w32gui.h (XGCValue): New struct for emulating X GCs.
8954
8955 * w32term.h (XCharStruct): New struct for emulating X.
8956
8957 * w32console.c (turn_on_face, turn_off_face): New functions.
8958 (change_line_highlight): New prototype for new redisplay.
8959 (write_glyphs): Support multibyte text. Support faces.
8960
8961 * w32faces.c: Complete rewrite for new redisplay based on new
8962 xfaces.c.
8963
8964 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
8965 throughout. struct frame * in place of FRAME_PTR.
8966 Skeleton support for images, toolbars, tooltips from xfns.c.
8967 (Fx_create_frame): Use system default for default scroll bar
8968 width.
8969 (w32_get_arg): Renamed from x_get_arg.
8970 (Fx_file_dialog): New function.
8971 (w32_list_fonts): Check cache before asking system.
8972 (Vw32_enable_synthesized_fonts): New variable.
8973 (Vw32_enable_italics): Obsolete, removed.
8974
8975 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
8976 Use SELECTED_FRAME macro.
8977
8978 * w32menu.c: Add skeleton support for help strings on menus.
8979 (add_menu_item): Native checkbox and radio support added, but not
8980 yet enabled due to bugs.
8981 (push_menu_item): Add parameters type, selection and help.
8982 Callers updated.
8983 Formatting changes to reduce unnecessary diffs with xmenu.c.
8984
8985 * w32select.c (Fw32_set_clipboard_data): Update call to
8986 find_charset_in_str.
8987
8988 * w32term.c: Complete rewrite for new redisplay based on new
8989 xterm.c with necessary sections merged back in from old w32term.c.
8990
8991 2000-01-21 Richard M. Stallman <rms@gnu.org>
8992
8993 * data.c (set_internal): Further fix in same criterion.
8994
8995 2000-01-20 Richard M. Stallman <rms@gnu.org>
8996
8997 * data.c (set_internal): Fix the criteria for whether
8998 to swap out the old cached binding.
8999
9000 2000-01-19 Dave Love <fx@gnu.org>
9001
9002 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
9003
9004 2000-01-18 Kenichi Handa <handa@etl.go.jp>
9005
9006 * regex.c (re_compile_fastmap): While checking a range table for
9007 `charset', skip flag bits for a character class correctly.
9008
9009 2000-01-17 Gerd Moellmann <gerd@gnu.org>
9010
9011 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
9012
9013 * xfns.c (x_window): Call lw_create_widget with new parameter
9014 list.
9015
9016 * widget.c (EmacsFrameSetCharSize): Change size of children first
9017 because of problems with main window geometry management under
9018 Lesstif.
9019
9020 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
9021 MENU_ITEMS_ITEM_.*.
9022 (MENU_ITEMS_ITEM_HELP): New enumerator.
9023 (push_menu_item): Add parameter HELP. Record help in menu_items.
9024 (single_menu_item, single_submenu, list_of_items): Call
9025 push_menu_item with new parameter.
9026 (single_submenu): Set help string in widget value.
9027 (menu_highlight_callback): New function.
9028 (set_frame_menubar): Call lw_create_widget with new
9029 parameter list.
9030 (xmenu_show, xdialog_show): Ditto.
9031
9032 2000-01-13 Gerd Moellmann <gerd@gnu.org>
9033
9034 * sound.c (Fplay_sound): Improve doc string.
9035
9036 2000-01-11 Richard M. Stallman <rms@gnu.org>
9037
9038 * lisp.h (set_internal): Enter the new arg.
9039
9040 * eval.c (specbind): Record buffer-local variables specially,
9041 indicating which buffer's binding was saved.
9042 (unbind_to): Restore buffer-local variables specially
9043 in the proper buffer.
9044
9045 * data.c (set_internal): New arg BUF.
9046
9047 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
9048 * data.c (Fset): Pass new arg to set_internal.
9049 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
9050
9051 2000-01-11 Gerd Moellmann <gerd@gnu.org>
9052
9053 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
9054 xprintsym.
9055
9056 2000-01-11 Richard M. Stallman <rms@gnu.org>
9057
9058 * minibuf.c (Ftry_completion): Doc fix.
9059
9060 2000-01-11 Gerd Moellmann <gerd@gnu.org>
9061
9062 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
9063 vector, too.
9064
9065 2000-01-11 Andreas Schwab <schwab@suse.de>
9066
9067 * coding.c (code_convert_region): Initialize total_skip.
9068
9069 2000-01-08 Dave Love <fx@gnu.org>
9070
9071 * eval.c (Fuser_variable_p): Check customizability too.
9072
9073 2000-01-07 Gerd Moellmann <gerd@gnu.org>
9074
9075 * minibuf.c (Fcompleting_read): Doc fix.
9076
9077 2000-01-05 Gerd Moellmann <gerd@gnu.org>
9078
9079 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
9080 -L /usr/local/lib.
9081
9082 * xfns.c (x_create_im): New function to set IM and IC of a frame.
9083 Check that input style is supported before trying to create an
9084 IC for it.
9085 (x_window): Call x_create_im.
9086
9087 2000-01-04 Gerd Moellmann <gerd@gnu.org>
9088
9089 * xfns.c (current_gif_memory_src): New variable.
9090 (gif_load): Record the address of the current memory source
9091 in current_gif_memory_src.
9092 (gif_read_from_memory): Use current_gif_memory_src.
9093
9094 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
9095 macros statement form.
9096
9097 * sound.c (struct sound): Renamed from struct sound_file.
9098 (struct sound): Add members `data' and `header_size'.
9099 (enum sound_attr): Add SOUND_DATA.
9100 (current_sound, current_sound_device): Variables renamed from
9101 sound_file and sound_device.
9102 (parse_sound): Parse :data.
9103 (parse_sound): Handle sound data in strings.
9104 (find_sound_type): Function renamed from find_sound_file_type.
9105 (wav_init, au_init): Fail if sound's header_size is smaller than
9106 needed header size.
9107 (wav_play, au_play): Play sounds from string data.
9108
9109 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
9110
9111 * lisp.h: Add prototype for allocate_string_data.
9112
9113 * alloc.c (Fgarbage_collect): Return number of live and free
9114 strings.
9115
9116 * alloc.c (mark_buffer): Remove code in #if 0.
9117 (gc_sweep): Ditto.
9118 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
9119 (strings_consed): New variable.
9120 (allocate_string): Set it.
9121 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
9122 (Fmemory_use_counts): Return strings_consed. Use Flist.
9123
9124 * alloc.c: General cleanup in comments etc. Remove conditional
9125 compilation for `standalone'.
9126
9127 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
9128
9129 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
9130 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
9131 (DONT_COPY_FLAG): Removed.
9132 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
9133 (struct sdata, struct sblock): New
9134 (struct string_block): Rewritten.
9135 (STRINGS_IN_STRING_BLOCK): New macro.
9136 (oldest_sblock, current_sblock, total_strings, total_free_strings)
9137 (large_sblocks, string_blocks, string_free_list): New variables.
9138 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
9139 (init_strings): Rewritten.
9140 (allocate_string, allocate_string_data, compact_small_strings)
9141 (free_large_strings, sweep_strings): New functions.
9142 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
9143 (struct string_block_head, current_string_block)
9144 (first_string_block, large_string_blocks, STRING_FULLSIZE)
9145 (STRING_PAD): Removed.
9146 (make_uninit_multibyte_string, make_pure_string): Rewritten.
9147 (Fgarbage_collect): Don't set mark bit in large strings.
9148 (mark_object): Mark strings differently. Mark symbol names
9149 differently.
9150 (survives_gc_p): Test marked strings differently.
9151 (gc_sweep): Sweep strings differently, unmark strings in
9152 symbol names.
9153 (compact_strings): Removed.
9154
9155 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
9156
9157 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
9158 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
9159
9160 2000-01-04 Kenichi Handa <handa@etl.go.jp>
9161
9162 * fileio.c (Finsert_file_contents): Signal error if visiting file
9163 in a non-empty buffer.
9164
9165 * term.c (encode_terminal_code): Fix the previous change.
9166
9167 2000-01-03 Gerd Moellmann <gerd@gnu.org>
9168
9169 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
9170 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
9171
9172 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
9173
9174 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
9175
9176 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
9177 need to test for MSDOS frames.
9178
9179 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
9180
9181 * dosfns.c (unspecified_colors): Remove.
9182 (msdos_stdcolor_idx): Use global variables unspecified_fg and
9183 unspecified_bg.
9184 (msdos_stdcolor_name): Return strings for unspecified fore- and
9185 back-ground colors.
9186
9187 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
9188 (syms_of_xfaces): Remove their staticpro's.
9189 (tty_color_name): Return Lisp strings for unspecified fore- and
9190 back-ground colors.
9191 (Finternal_set_lisp_face_attribute): Remove the special treatment
9192 for Qunspecified_{f,b}g.
9193 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
9194 string.
9195
9196 2000-01-03 Gerd Moellmann <gerd@gnu.org>
9197
9198 * xdisp.c (reseat_at_next_visible_line_start): Position before
9199 newline only if ending up on a newline.
9200 (next_element_from_ellipsis): Return success. Handle case of
9201 displaying no ellipsis. Fix case of ellipsis defined in display
9202 table.
9203 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
9204 returns 0.
9205
9206 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
9207
9208 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
9209 (Fcolor_supported_p): Renamed from face-color-supported-p.
9210
9211 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
9212
9213 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
9214 list of colors renamed to tty-defined-color-alist.
9215 (tty_color_name): Pass the frame to tty-color-by-index.
9216 (realize_tty_face): tty-color-alist is now a function which
9217 accepts the frame as argument.
9218
9219 * term.c (Ftty_display_color_p): Accept an optional argument
9220 FRAME.
9221
9222 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
9223
9224 * term.c (insert_glyphs): Pass glyph, not &glyph, to
9225 encode_terminal_code.
9226
9227 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
9228
9229 * dispnew.c (mode_line_string): Support termcap frames as well.
9230
9231 2000-01-01 Gerd Moellmann <gerd@gnu.org>
9232
9233 * syntax.c (Fforward_word): Undo previous change.
9234
9235 * editfns.c (Fconstrain_to_field): Don't constrain if
9236 inhibit-field-text-motion is non-nil.
9237 (Fline_beginning_position): Undo previous change.
9238 (Fline_end_position): Ditto.
9239
9240 * syntax.c (Fforward_word): Notice field boundaries only if
9241 inhibit-field-text-motion is nil.
9242
9243 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
9244
9245 * editfns.c (Vinhibit_field_text_motion): New variable.
9246 (inhibit-field-text-motion): New DEFVAR_LISP.
9247 (Fline_beginning_position, Fline_end_position): Notice field
9248 boundaries only if inhibit-field-text-motion is nil.
9249
9250 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
9251 All calls adjusted.
9252 (x_build_heuristic_mask): Likewise.
9253 (xbm_load_image_from_file): Change error output.
9254 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
9255 (gif_load, gs_load, x_kill_gs_process): Ditto.
9256
9257 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
9258 color indices when accessing raster pixels.
9259 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
9260 one of :file or :data.
9261 (enum pbm_keyword_index): Add PBM_DATA.
9262 (pbm_format): Add :data.
9263 (pbm_image_p): Allow either :file or :data.
9264 (pbm_read_file): New function.
9265 (pbm_scan_number): Rewritten to read from string.
9266 (pbm_load): Support :data.
9267
9268 See ChangeLog.8 for earlier changes.
9269
9270 ;; Local Variables:
9271 ;; coding: iso-2022-7bit
9272 ;; End: