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