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