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