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