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