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