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