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