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