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