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