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