(Compilation Mode): Document compilation-error-regexp-alist.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b75f8eab
EZ
12001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * lread.c (Fload): Document that the argument is run via
4 substitute-in-file-name.
5
94843cc1
GM
62001-05-31 Gerd Moellmann <gerd@gnu.org>
7
b14659e6
GM
8 * Makefile.in (bootstrap-doc): New target.
9 (bootstrap-emacs): Depend on it.
10
0894672f
GM
11 * fileio.c (Fdo_auto_save): Don't try to create the directory of
12 auto-save-list-file-name when shutting down Emacs, because
13 creating the directory might signal an error, and leaves
14 Emacs in a strange state.
15
94843cc1
GM
16 * term.c: (tty_cursor_hidden): New variable.
17 (update_begin): Don't call tty_hide_cursor. Clean up.
18 (update_end, set_terminal_window, set_scroll_region): Clean up.
19 (ring_bell, reset_terminal_modes): Clean up.
20 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
21 on tty_cursor_hidden.
22 (write_glyphs): Call tty_hide_cursor.
23
db3a49a6
SM
242001-05-30 Stefan Monnier <monnier@cs.yale.edu>
25
26 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
27
8bd189fb
GM
282001-05-30 Gerd Moellmann <gerd@gnu.org>
29
6f1be3b9
GM
30 * xfns.c (enum image_value_type): New enumerator
31 IMAGE_STRING_OR_NIL_VALUE.
32 (parse_image_spec): Handle it.
33 (xbm_format, pbm_format): Use it for :foreground and :background.
34 (xbm_load, pbm_load): Check for nil color names.
35
8bd189fb
GM
36 * xterm.c (note_mouse_highlight): If an overlapping overlay
37 exists, but we find that we highlight the same overlay as before,
38 don't do the highlighting again.
39
7bdba03c
GM
402001-05-29 Gerd Moellmann <gerd@gnu.org>
41
4c329aa8
GM
42 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
43 Protect unibyte strings created by replacing their multibyte
44 equivalents in menu_items.
45
e15e2828
GM
46 * keymap.c (Fsingle_key_description): NUL-terminate the string
47 buffer before calling build_string.
48
7bdba03c
GM
49 * callproc.c (Fcall_process): Deal with decode_coding returning
50 CODING_FINISH_INCONSISTENT_EOL.
51
89c8dc6c
GM
522001-05-28 Gerd Moellmann <gerd@gnu.org>
53
db3a49a6 54 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
55 an item's name with its key description in case the description
56 is a multibyte string.
57
58 * keymap.c (Fsingle_key_description): Create a multibyte string
59 only if necessary.
60
eb04d6cd
GM
61 * macros.c (Fstart_kbd_macro): Doc fix.
62
8bd6307f
GM
63 * xterm.c (cursor_in_mouse_face_p): New function.
64 (x_draw_stretch_glyph_string): Use it to choose a different GC
65 when drawing a cursor within highlighted text.
66
e26c4089
GM
67 * editfns.c (char_property_eq): Put in #if 0.
68
69 * indent.c (string_display_width): Put in #if 0.
70
71 * lread.c (Fload): Remove unused label.
72
89c8dc6c
GM
73 * termcap.c (speeds): Put in #if 0.
74
9a1211f2
GM
752001-05-18 Gerd Moellmann <gerd@gnu.org>
76
29148a3f
GM
77 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
78
9a1211f2
GM
79 * xfaces.c (xlfd_point_size): Don't divide pixel size from
80 transformation matrix by 10.
81
09393d07
GM
822001-05-16 Gerd Moellmann <gerd@gnu.org>
83
84 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
85 only if it's equal to the former foreground pixel color.
db3a49a6 86 (x_set_foreground_color, x_set_background_color)
09393d07
GM
87 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
88
460e6bae
GM
892001-05-16 Dave Love <fx@gnu.org>
90
91 * insdel.c (signal_before_change, signal_after_change): Consider a
92 local change hook which changes the buffer.
99c78ce8
GM
93
94 * process.c (read_process_output): Don't call signal_after_change
95 and update_compositions after insert_from_string_before_markers.
96
dbcf3c03
GM
972001-05-16 Gerd Moellmann <gerd@gnu.org>
98
a90b3d3c
GM
99 * xfaces.c (split_font_name): Use the right field when
100 checking for `[...]' syntax.
101
1b7818b4
GM
102 * buffer.c (copy_overlays): New function.
103 (clone_per_buffer_values): Use it.
104
105 * buffer.h (OVERLAY_PLIST): New macro.
106
9bae8781
GM
107 * keymap.c (Fsingle_key_description): Replace a build_string with
108 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
109
dbcf3c03
GM
110 * fontset.c (Ffontset_info): Check that face is non-null
111 before accessing its fields.
112
8a1ae4dd
GM
1132001-05-15 Gerd Moellmann <gerd@gnu.org>
114
18a0a39e
GM
115 * keyboard.c (read_key_sequence): Prevent generating a fake
116 prefix key twice.
117
e335b66a
GM
118 * xfaces.c (split_font_name): Handle `[...]' for the right
119 font name fields.
120
8a1ae4dd
GM
121 * ccl.c (ccl_driver): Don't copy remaining bytes in case
122 of CCL_STAT_INVALID_CMD.
123
3cf80731
SM
1242001-05-14 Stefan Monnier <monnier@cs.yale.edu>
125
33568849
SM
126 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
127 in <var> has no default value yet.
128
3cf80731
SM
129 * xfaces.c (try_alternative_families): First try the FAMILY.
130 And if nothing is found in the end, try again with scalable fonts.
131 (try_font_list): Let try_alternative_families do a bit more of
132 the work. Only use FAMILY if it is not nil.
133 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
134
933b0249
GM
1352001-05-14 Gerd Moellmann <gerd@gnu.org>
136
58e5af83
GM
137 * xterm.c (note_mouse_highlight): Avoid changing the mouse
138 pointer shape when show_mouse_face has already done it.
33568849 139
58e5af83 140 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
141 full-width rows.
142
7b16a6bf
GM
143 * xfaces.c (split_font_name): Make sure to leave the loop
144 with the right value of `i'.
3cf80731 145
933b0249
GM
146 * xfaces.c (split_font_name): Handle matrix transformations
147 in the pixel and point size fields of XLFD font names.
148 (xlfd_point_size): Likewise.
149
dddcbf00
EZ
1502001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
151
3cf80731 152 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
153 (x_to_w32_font): Add prototype.
154
7689ef0b
EZ
155 * regex.c (malloc, realloc, free) [emacs]: Undefine before
156 redefining, to avoid compiler warnings.
157
e7c15bba
EZ
158 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
159
dddcbf00
EZ
160 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
161 (w32_get_bdf_glyph): Cast between unsigned char and char when
162 passing arguments to subroutines, to shut up compiler warnings.
163 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
164 GET_HEX_VAL.
165
166 * xfaces.c: Include keyboard.h before frame.h, not after it.
167
168 * widget.c: Include keyboard.h before frame.h.
169
170 * w32term.h (struct image, struct face): Forward declaration, to
171 avoid compiler warnings.
172
7bd2d083
GM
1732001-05-11 Gerd Moellmann <gerd@gnu.org>
174
47e72862
GM
175 * keyboard.c (read_key_sequence): Don't modify events when
176 generating fake prefix keys (mode-line, scroll-bar, ...) since
177 this prevents proper processing of such events when pushed back
178 into unread-command-events.
179
dd5f324b
GM
180 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
181 actually redrawn. Make the function static.
182 (note_mouse_highlight): Fix a case where the mouse cursor
183 was changed back to the text cursor.
184
185 * xterm.h (clear_mouse_face): Remove prototype.
186
d88a79d4
GM
187 * xdisp.c (try_window_id): Fix the fix and set the right
188 window_end_vpos.
189
190 * xdisp.c (try_window_id): Fix computation of window end in the
191 case that lines were deleted at the end of the window. Add some
192 more debug_method_adds.
0416532f 193
7bd2d083
GM
194 * xfaces.c (try_alternative_families): New function.
195 (try_font_list): Use it. If ATTRS specifies a family, check
196 fonts from that family first.
197 (choose_face_font): Remove code setting the family part of
198 the pattern to nil.
199
23fca891
GM
2002001-05-10 Gerd Moellmann <gerd@gnu.org>
201
ff9aa2ca
GM
202 * xdisp.c (try_window_id): Fix case of all changes before
203 the window start.
7b2654b5 204
23fca891
GM
205 * xdisp.c (try_window_id): Add some xasserts.
206
e9726794
GM
2072001-05-09 Gerd Moellmann <gerd@gnu.org>
208
209 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
210
9e53a675
GM
2112001-05-09 Dave Love <fx@gnu.org>
212
213 * xdisp.c (GIVE_UP): Fix for K&R C.
214
0d487c52
GM
2152001-05-09 Gerd Moellmann <gerd@gnu.org>
216
fe88d421
GM
217 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
218
0d487c52
GM
219 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
220 back to the text cursor shape without need.
221
1e9fc92e
GM
2222001-05-07 Gerd Moellmann <gerd@gnu.org>
223
a2a6232e
GM
224 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
225
226 * dispextern.h (inverse_video): Declare extern.
227
1e9fc92e
GM
228 * keyboard.c (delete_kboard): Handle the case that selected_frame
229 has been deleted in the course of x_connection_closed.
230
12949a7f
EZ
2312001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
232
7b2654b5
SM
233 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
234 Fix the change from 2001-04-30.
12949a7f 235
2fa2f461
GM
2362001-05-03 Gerd Moellmann <gerd@gnu.org>
237
a779d213
GM
238 * xfns.c (file_dialog_unmap_cb): New function.
239 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
240 where a dialog is closed via the window manager.
241
7b2654b5 242 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
243 the window start or all below the window end mostly rewritten.
244 (redisplay_window): Move the tests if try_window_id is
245 applicable to try_window_id.
246 (GIVE_UP): New macro.
247
3356df63
GM
2482001-05-02 Gerd Moellmann <gerd@gnu.org>
249
a39202f6 250 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
251 currently being updated, mark the frame garbaged.
252 Fix computation of rows intersecting the exposed rectangle.
a39202f6 253 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 254
3356df63
GM
255 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
256 again if it has already been drawn.
257
a9d2fd1d
SM
2582001-05-01 Stefan Monnier <monnier@cs.yale.edu>
259
260 * syntax.c (update_syntax_table): Check that oldi has the same
261 properties as old_prop before deciding not to invalidate.
262
c95fc5f1
GM
2632001-04-30 Gerd Moellmann <gerd@gnu.org>
264
a9793e45
GM
265 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
266 read-only text that is so because of text properties.
267
c95fc5f1 268 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 269 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
270 windows that are components of a Lucid menu bar.
271
5a5d9185
GM
2722001-04-27 Gerd Moellmann <gerd@gnu.org>
273
274 * term.c (turn_on_face): Fix reverse video handling on terminals
275 that don't support colors.
276
ba973f7a
GM
2772001-04-26 Gerd Moellmann <gerd@gnu.org>
278
279 * editfns.c (save_excursion_restore): Don't use XBUFFER on
280 a non-buffer.
281
8c56a983
GM
2822001-04-25 Gerd Moellmann <gerd@gnu.org>
283
a728644c
GM
284 * term.c (toggle_highlight): New function.
285 (turn_on_face): Change handling of reverse video.
286
7b2654b5
SM
287 * process.c (wait_reading_process_input):
288 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 289
bfd8410f
GM
290 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
291 of the number of overlays to check.
292
be2488ca
GM
293 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
294
8c56a983
GM
295 * xdisp.c (try_window_id): Fix a case where window_end_pos
296 and window_end_bytepos were not adjusted.
297
522d42f7
GM
2982001-04-23 Gerd Moellmann <gerd@gnu.org>
299
300 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
301 zero instead of -1.
302
78c1afb6
EZ
3032001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
304
a9d2fd1d
SM
305 * process.c (wait_reading_process_input) [!subprocesses]:
306 Don't reference waiting_for_user_input_p, it's not defined in the
307 branch without async subprocesses support.
78c1afb6 308
a2fab450
GM
3092001-04-19 Gerd Moellmann <gerd@gnu.org>
310
a122a38e
GM
311 * keyboard.c (delete_kboard): Prevent a dangling reference
312 from current_kboard to KB, which is freed.
313
a9d2fd1d
SM
314 * process.c (wait_reading_process_input):
315 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
316 read_key_sequence aware of buffer changes from under it.
317
0f8d6dc7
GM
3182001-04-18 Gerd Moellmann <gerd@gnu.org>
319
eeffb293
GM
320 * xfaces.c (Qscalable_fonts_allowed): New variable.
321 (realizing_basic_faces_p): Removed.
2fa2f461
GM
322 (x_face_list_fonts): Special handling for realizing_basic_faces_p
323 removed.
eeffb293 324 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
325 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
326 for scalable-fonts-allowed to t.
eeffb293 327
0f8d6dc7
GM
328 * fileio.c (Finsert_file_contents): If the file size returned from
329 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 330 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 331
eec2d1de
EZ
3322001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
333
334 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
335 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
336 (__memalign_hook): Make the two prototypes consistent.
337
f4f480bd
GM
3382001-04-17 Gerd Moellmann <gerd@gnu.org>
339
340 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
341 matrix of mini-windows.
342
52283633
SM
3432001-04-12 Stefan Monnier <monnier@cs.yale.edu>
344
345 * intervals.c (find_interval): Don't rebalance during signal handling.
346
ec2423c9
GM
3472001-04-11 Gerd Moellmann <gerd@gnu.org>
348
30cb0001 349 * fns.c: Include blockinput.h.
52283633 350
ec2423c9
GM
351 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
352
719d83ad
GM
3532001-04-10 Gerd Moellmann <gerd@gnu.org>
354
60f8d735
GM
355 * fns.c (Fcompare_strings): Fix return values.
356
afffeb57
GM
357 * window.c (window_scroll): Change the meaning of N to mean
358 N screen-fulls or N lines.
359 (window_scroll_pixel_based, window_scroll_line_based)
360 (scroll_command, Fscroll_other_window): Change accordingly.
361
52283633
SM
362 * window.c (window_scroll_pixel_based, Frecenter):
363 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
364 height of the window.
365
366 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
367 instead of using it.last_visible_y for the height of the window.
52283633 368
719d83ad 369 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 370 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
371
372 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
373 able to write to hidden and system files. From Dan Holmsand
374 <dan@eyebee.com>.
719d83ad 375
8ddf3ee1
GM
376 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
377 Holmsand <dan@eyebee.com>.
719d83ad 378
522ed7fb
GM
3792001-04-09 Gerd Moellmann <gerd@gnu.org>
380
9170e5d4
GM
381 * fns.c (Fplist_get, Fplist_put): Add QUITs.
382
522ed7fb
GM
383 * window.c (window_internal_height): Return 1 less if the
384 window has a header line.
385
386 * xdisp.c (try_window_id): When scrolling on a terminal, take
387 the change of window_internal_height into account.
388
ceeb3d7d
EZ
3892001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
390
391 * gmalloc.c (align): If the argument SIZE would overflow
392 __malloc_ptrdiff_t, fail right away.
393
63685b9d
GM
3942001-04-06 Gerd Moellmann <gerd@gnu.org>
395
396 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
397 Make sure the tooltip is completely visible.
398 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
399
400 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
401
402 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
403
3ffb33bb
DL
4042001-04-06 Dave Love <fx@gnu.org>
405
52283633
SM
406 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
407 Fix test of `from'.
3ffb33bb 408
869fb12c
GM
4092001-04-06 Gerd Moellmann <gerd@gnu.org>
410
52283633 411 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 412
869fb12c
GM
413 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
414
441bf856
GM
4152001-04-05 Gerd Moellmann <gerd@gnu.org>
416
4d664b04
GM
417 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
418
52283633 419 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 420
30ca89f5
GM
421 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
422 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
423
424 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
425 shell widget's position only if it is non-null.
426
52283633
SM
427 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
428 Set f->output_data.x->widget to null after destroying it.
30ca89f5 429
81a81c0f
GM
430 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
431 FILENAME to bring it in synch with the documentation.
432
441bf856
GM
433 * xfaces.c (realizing_basic_faces_p): Renamed from
434 realize_default_face_p.
435 (realize_basic_faces): Set/clear realizing_basic_faces_p.
436 (realize_default_face): Don't set the flag.
437
702a1e8e
GM
4382001-04-04 Gerd Moellmann <gerd@gnu.org>
439
1013f4e3
GM
440 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
441
52283633
SM
442 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
443
1013f4e3
GM
444 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
445 the buffer that was used for echoing.
446
702a1e8e
GM
447 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
448 (first_font_matching): Removed unused function.
449 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
450 (may_use_scalable_font_p): Remove parameter FONT; rename
451 parameter NAME to FONT.
452 (x_face_list_fonts): Fix missing bounds check.
453 (realizing_default_face_p): New variable.
454 (realize_default_face): Set and clear that flag.
455 (x_face_list_fonts): When called during the realization of the
456 default face, and no matching fonts are found when ignoring
457 scalable fonts and fonts matching a regexp from
458 face-ignored-fonts, try without ignoring fonts.
459
f9dbcda4
GM
4602001-04-03 Gerd Moellmann <gerd@gnu.org>
461
ad18ffb1
GM
462 * xfns.c (postprocess_image): New function.
463 (lookup_image): Call it for all image types except PostScript.
464 (x_kill_gs_process): Call postprocess_image.
465
f9dbcda4
GM
466 * xterm.c (x_use_underline_position_properties): New variable.
467 (x_draw_glyph_string): Use it.
468 (syms_of_xterm): DEFVAR_BOOL it.
469
651f03b6
GM
4702001-04-02 Gerd Moellmann <gerd@gnu.org>
471
472 * xterm.c (x_alloc_nearest_color_1): New function.
473 (x_alloc_nearest_color): Use it.
474 (x_color_cells): Take a Display as argument, instead of a frame.
475 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
476 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
477 (x_initialize): Register cvt_string_to_pixel as resource converter
478 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
479
73d75a62
GM
4802001-03-30 Gerd Moellmann <gerd@gnu.org>
481
b2046df8
GM
482 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
483 (set_iterator_to_next): If a string from a display property ends,
484 consider the case that this might also be the end of an
485 overlay string having the display property.
486
52283633 487 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 488
87d8eba4
GM
489 * xdisp.c (reseat_to_string): Undo last change.
490
73d75a62
GM
491 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
492 matrix of a window when the header line changes, when
493 new rows are allocated, or when the width changes.
494
911a2406
EZ
4952001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
496
52283633 497 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 498
aea51abe
EZ
4992001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
500
501 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
502 deprecated.
503
176bc847
GM
5042001-03-29 Gerd Moellmann <gerd@gnu.org>
505
ed31fabf
GM
506 * data.c (Fsubr_interactive_form): New function.
507 (syms_of_data): Defsubr it.
508
176bc847
GM
509 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
510 (live_float_p, live_misc_p): Return 1 only if the offset of the
511 pointer in its block is >= 0.
512
e59d0e9d
GM
5132001-03-28 Paul Eggert <eggert@twinsun.com>
514
515 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
516 microseconds calcuation. Avoid double-rounding problem.
517 In doc string, warn that the result is approximate.
518
f827b862
GM
5192001-03-28 Gerd Moellmann <gerd@gnu.org>
520
30a3f61c
GM
521 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
522 bind `inhibit-eval-during-redisplay' to t.
523
524 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
525
526 * xdisp.c (inhibit_eval_during_redisplay)
527 (Qinhibit_eval_during_redisplay): New variables.
528 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
529 don't eval, return nil instead.
530 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
531 Initialize Qinhibit_eval_during_redisplay.
532
e719f5ae
GM
533 * xdisp.c (reseat_to_string): If STRING is multibyte, set
534 the iterator's multibyte_p flag.
535
deb2613a
GM
536 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
537 instead of setting it to zero; it's incremented for each frame
538 where the menu face is changed.
539
52283633
SM
540 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
541 change bottom shadow accordingly.
542
543 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
544 intersections here.
545 (expose_window): Do it here instead.
52283633 546 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 547
f827b862
GM
548 * bytecode.c (BYTE_CODE_QUIT): New macro.
549 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
550
4bde0ebb
GM
5512001-03-27 Gerd Moellmann <gerd@gnu.org>
552
607ec83c
GM
553 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
554 Give up if matrix starts in an ellipsis.
555 (init_from_display_pos): Do nothing if POS doesn't specify
556 a dpvec_index but the iterator has such a position.
557
0245398f
GM
558 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
559
aba25348
GM
560 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
561 x/y position is (0, 0) after destroying the menu bar, restore
562 its original position.
563
4bde0ebb
GM
564 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
565 (init_from_display_pos): Use it.
566 (try_window_reusing_current_matrix): Don't use cursor_row_p.
567
8cdb267e
GM
5682001-03-26 Gerd Moellmann <gerd@gnu.org>
569
570 * xdisp.c (try_window_id): Undo last change.
571
9948db79
EZ
5722001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
573
574 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
575
576 * buffer.c (syms_of_buffer): Doc fix.
577
2eddf899
GM
5782001-03-26 Gerd Moellmann <gerd@gnu.org>
579
580 * xfaces.c (x_update_menu_appearance): Use local variable
581 popup_path for setting font resources.
582
6c145d35
EZ
5832001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
584
6a65b1b5
EZ
585 * frame.c (Fframe_list): Don't reference tip_frame if
586 HAVE_WINDOW_SYSTEM is not defined.
587
6c145d35
EZ
588 * emacs.c (main): Update the copyright year. From Werner LEMBERG
589 <wl@gnu.org>.
590
d74c1900
GM
5912001-03-25 Gerd Moellmann <gerd@gnu.org>
592
20fbd925
GM
593 * xdisp.c (init_from_display_pos): Test invisible property
594 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 595
927c5b3b
GM
596 * xdisp.c (redisplay_internal) <update one window>: Make sure
597 last_arrow_position and last_arrow_string are set.
598
d74c1900
GM
599 * frame.c (Fframe_list): Don't return a tooltip frame.
600
091f8878
GM
6012001-03-23 Gerd Moellmann <gerd@gnu.org>
602
52283633
SM
603 * xdisp.c (mark_window_display_accurate_1): New function,
604 extracted from mark_window_display_accurate.
605 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
606 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
607 (mark_window_display_accurate): Use it.
608 (redisplay_internal): Use it for the selected window.
609 (redisplay_internal): Avoid duplicate mark_window_display_accurate
610 for the selected frame.
611
ac90c44f
GM
612 * xdisp.c Use make_number, for readability.
613 (try_window_id): Disable rows below the window end.
614 (try_window_reusing_current_matrix): Use cursor_row_p.
615 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
616 of rows.
617 (init_from_display_pos): If POS specifies a position in a display
618 vector, maybe get the iterator set up for that ellipsis.
43c09969 619
091f8878
GM
620 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
621
991786dd
EZ
6222001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
623
624 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
625
6c29b43c
GM
6262001-03-23 Gerd Moellmann <gerd@gnu.org>
627
628 * xfaces.c (x_update_menu_appearance): Use a different path
629 for Lucid popup menus.
630
d8731202
SM
6312001-03-22 Stefan Monnier <monnier@cs.yale.edu>
632
633 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
634
635 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
636 (string_buffer_position): Use `make_number'.
637
f61a541b
GM
6382001-03-22 Gerd Moellmann <gerd@gnu.org>
639
3c9e997b
GM
640 * xfaces.c (x_update_menu_appearance): Renamed from
641 x_set_menu_face_resources. Use different resources for popups.
642
643 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
644 (GC_CHECK_STRING_BYTES): Don't define.
645
364cd450
GM
646 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
647 Removed, together with subroutines.
648 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 649 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 650
d8731202
SM
651 * dispextern.h (x_set_menu_resources_from_menu_face):
652 Remove prototype.
364cd450 653
d8731202 654 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
655 Remove calls to x_set_menu_resources_from_menu_face.
656
d8731202
SM
657 * xfaces.c (xm_set_menu_resources_from_menu_face):
658 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
659
660 * xmenu.c: Include widget.h.
661 (single_submenu): Return int. Some cleanup.
662 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
663
140330de
GM
6642001-03-21 Gerd Moellmann <gerd@gnu.org>
665
666 * xterm.c (x_update_window_end): Handle overwritten mouse face
667 also for tool bar windows.
668 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
669 DRAW is DRAW_IMAGE_RAISED.
670
1741905c
GM
6712001-03-20 Gerd Moellmann <gerd@gnu.org>
672
fa88947e
GM
673 * print.c (syms_of_print): Doc fixes.
674
1741905c
GM
675 * fns.c (Fmd5): Doc fix.
676
ade0bee1
GM
6772001-03-19 Gerd Moellmann <gerd@gnu.org>
678
357e7376
GM
679 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
680 Clear area of the frame not occupied by the scroll bar.
681
c2c097cc
GM
682 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
683 tip frame's root window buffer to *tip* right after creating
684 the frame.
685
ade0bee1
GM
686 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
687 is an integer don't have to be for space characters.
688
88c6e37e
GM
6892001-03-16 Gerd Moellmann <gerd@gnu.org>
690
52283633
SM
691 * indent.c (current_column, current_column_1, Fmove_to_column)
692 (compute_motion): Handle characters from display vectors differently.
88c6e37e 693
c62eed76
KH
6942001-03-15 Kenichi Handa <handa@etl.go.jp>
695
696 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
697 drawing glyph string.
698
c899e7e6
GM
6992001-03-15 Gerd Moellmann <gerd@gnu.org>
700
d0bbfc99
GM
701 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
702 (command_loop_1): Undo last change.
703
03d1a189
GM
704 * xterm.c (fast_find_position): Return the correct vpos.
705
c899e7e6 706 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 707 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
708 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
709 Call store_symval_forwarding with BUF null.
710 (set_internal): Call store_symval_forwarding with the BUF
711 parameter passed to set_internal. Formerly, the value was always
712 set in the current buffer; the buffer recorded in specbind for
713 this case wasn't used.
714 (arith_driver): Reindent.
715
52283633
SM
716 * buffer.c (swap_out_buffer_local_variables):
717 Call store_symval_forwarding with BUF null.
c899e7e6
GM
718
719 * lisp.h (store_symval_forwarding): Change prototype.
720
721 * eval.c (specbind): Call store_symval_forwarding with BUF null.
722
57ac7c81
GM
7232001-03-14 Gerd Moellmann <gerd@gnu.org>
724
697617d9
GM
725 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
726 FOR_DELETION. Avoid resizing the mini-window of the selected
727 frame if FOR_DELETION is set.
728 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
729 (Fmake_frame_invisible): Change calls to do_switch_frame for new
730 signature.
731
732 * window.c (Fset_window_configuration): Change call to
733 do_switch_frame to new format.
734
735 * keyboard.c (quit_throw_to_read_char): Change call to
736 do_switch_frame to new format.
737
738 * lisp.h (do_switch_frame): Change prototype.
739
819dce0f
GM
740 * frame.c (Fframe_parameters): In the `buffer-list' frame
741 parameter, store the buffer list of FRAME, not the list of the
742 selected frame.
743
57ac7c81
GM
744 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
745 box just because the glyph row's full_width_p flag is set.
746
65008712
GM
7472001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
748
749 * xdisp.c (highlight_trailing_whitespace): On character terminals,
750 skip the padding blanks inserted in extend_face_to_end_of_line,
751 before checking for trailing whitespace.
752
159cf431
GM
7532001-03-13 Gerd Moellmann <gerd@gnu.org>
754
52283633 755 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
756 Remove special handling for LessTif/Motif.
757 (toplevel): Don't include Xm/Xm.h.
758
52283633
SM
759 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
760 Remove workaround code for LessTif; it doesn't work anymore.
761
2564ea1b 762 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 763 Xm/ScrollBarP.h.
afcdc0a1 764
52283633
SM
765 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
766 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
767 contemporary LessTif.
768
52283633
SM
769 * xfaces.c (xm_set_menu_resources_from_menu_face):
770 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 771
159cf431
GM
772 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
773 removing button grabs.
774
c6f7429a
KH
7752001-03-13 Kenichi Handa <handa@etl.go.jp>
776
cb82d767
KH
777 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
778 and clip-large-size-font as obsolete.
779
c6f7429a
KH
780 * lread.c (read_multibyte): Check the validity of multibyte
781 sequence. If invalid, return the first byte.
782
760cefb5
GM
7832001-03-12 Gerd Moellmann <gerd@gnu.org>
784
785 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
786 before running the command; timer functions or process
787 filters may have set it.
788
5141f9d0
EZ
7892001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
790
791 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
792 Doc fix.
793
b6a15240
GM
7942001-03-12 Gerd Moellmann <gerd@gnu.org>
795
796 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
797 to sprintf.
798
95522746
GM
7992001-03-09 Gerd Moellmann <gerd@gnu.org>
800
db14cfc5
GM
801 * dispextern.h (string_buffer_position): Add prototype.
802
52283633 803 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
804 (single_display_prop_string_p): New functions.
805
806 * xterm.c (note_mouse_highlight): If there's no help-echo on
807 a string, look at the buffer text ``under'' it.
808
809 * keyboard.c (make_lispy_event): Add string info to the event,
810 analogous to what's done on mode lines.
811 (read_key_sequence): For a click on a string, consider `local-map'
812 and `keymap' of that string.
813
52283633
SM
814 * keyboard.c (make_lispy_event, make_lispy_movement):
815 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
816
817 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
818
819 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
820 POS; return void.
821
95522746
GM
822 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
823 flags argument to emacs_open; it seems to conflict with O_EXCL.
824
898a399d
KH
8252001-03-09 Kenichi Handa <handa@etl.go.jp>
826
28cd4910
KH
827 * composite.h (struct composition): Change types of members;
828 glyph_len to unsigned, width to unsigned short.
898a399d 829
4cdf6a6c
AI
8302001-03-08 Andrew Innes <andrewi@gnu.org>
831
832 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
833 menu titles.
834
129004d3
GM
8352001-03-08 Gerd Moellmann <gerd@gnu.org>
836
221dd3e7
GM
837 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
838 instead of nil.
839
52283633 840 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
841 help-echo in strings.
842 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
843 (fast_find_string_pos): New function.
844
52283633
SM
845 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
846 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
847
848 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
849 Handle `mouse-face'.
850
851 * dispextern.h (face_at_string_position): Change prototype.
852
52283633 853 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 854
129004d3
GM
855 * keyboard.c (make_lispy_event): Avoid generating drag events
856 if the mouse hasn't actually moved to another buffer position.
52283633 857
80c8ab8c
DL
8582001-03-08 Dave Love <fx@gnu.org>
859
129004d3 860 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 861
989521fd
GM
8622001-03-08 Gerd Moellmann <gerd@gnu.org>
863
864 * process.c (Fset_process_window_size): Fix a typo.
865
bb5c338d
KH
8662001-03-08 Kenichi Handa <handa@etl.go.jp>
867
868 * coding.c (detect_coding_sjis): Do more rigid check.
869 (detect_coding_big5): Likewise.
870 (decode_coding_sjis_big5): Likewise.
871 (Fdetect_coding_region): Call detect_coding_system with tailing
872 anchor byte `\0' for more rigid detection.
52283633 873 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
874 (Fdetect_coding_string): Likewise.
875
8b8f9197
SM
8762001-03-07 Stefan Monnier <monnier@cs.yale.edu>
877
878 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
879 a string before extracting its data.
880
3bdf2660
GM
8812001-03-07 Gerd Moellmann <gerd@gnu.org>
882
883 * window.c (Frecenter): Rewrite code handling negative values
884 of ARG on graphical frames.
885
8862001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
887
888 * window.c (displayed_window_lines): If W->start is outside the
889 accessible portion of the buffer, call start_display with BEGV or
890 ZV instead of W->start.
891
471f86b9
GM
8922001-03-07 Gerd Moellmann <gerd@gnu.org>
893
2ab62c6c
GM
894 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
895
471f86b9
GM
896 * process.c (Fset_process_filter): Don't crash if the input
897 file descriptor of PROCESS is closed.
898 (Fset_process_window_size): Likewise.
899
101922c3
GM
9002001-03-06 Kenichi Handa <handa@etl.go.jp>
901
902 * xterm.c (XTflash): Make the timeout of select shorter, and call
903 select repeatedly until the desired time expires.
904
45d051a7
GM
9052001-03-06 Gerd Moellmann <gerd@gnu.org>
906
907 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
908
909 * xfns.c (Fx_create_frame): Clear Vwindow_list.
910
911 * lisp.h (Vwindow_list): Declare extern.
912
8f372c46
EZ
9132001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
914
915 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
916
f16a7aa5
GM
9172001-03-06 Gerd Moellmann <gerd@gnu.org>
918
157ae273
GM
919 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
920 to detect a case where we have to highlight a different region
921 despite not having left the currently highlighted region.
922 Set mouse_face_overlay in the x_display_info.
45d051a7 923 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
924
925 * xterm.h (struct x_display_info): Add mouse_face_overlay.
926
927 * buffer.c (mouse_face_overlay_overlaps): New function.
928
929 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
930 (Qmouse_face): Declare extern.
931
f16a7aa5
GM
932 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
933 if face_change_count is non-zero.
934
827afcac
KH
9352001-03-06 Kenichi Handa <handa@etl.go.jp>
936
937 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
938 that the source is unibyte.
939
14c7242e
DL
9402001-03-05 Dave Love <fx@gnu.org>
941
827afcac 942 * xterm.c (XTmouse_position): Fix typo.
14c7242e 943
c28b847b
GM
9442001-03-05 Gerd Moellmann <gerd@gnu.org>
945
946 * minibuf.c (read_minibuf): Clean up the binding stack if
947 called noninteractively.
948
b86644f2
KH
9492001-03-05 Kenichi Handa <handa@etl.go.jp>
950
951 * coding.c (syms_of_coding): Docstring modified.
952
203682cc 9532001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
954
955 * charset.c (char_to_string): If a single byte char has modifier
956 bits that can't be reflected to the character code, ignore them
45d051a7 957 instead of signaling an error.
b86644f2 958
e30bd7b7
EZ
9592001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
960
961 * s/msdos.h: Update copyright notice.
962
963 * dosfns.h: Update copyright notice.
964
965 * dosfns.c: Update copyright notice.
966
967 * msdos.c: Update copyright notice.
968
b52b65bd
GM
9692001-03-02 Gerd Moellmann <gerd@gnu.org>
970
971 * xterm.c (glyph_rect): New function.
972 (XTmouse_position): Use it to raise the threshold for mouse
973 movement event generation.
974
53c4b1e6
EZ
9752001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
976
977 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
978 specifies (reverse . t), reverse the initial screen colors.
979 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
980 but we are reversing the colors, set bg_set, not fg_set.
981 Likewise for setting background-color and reversing: set fg_set.
982 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
983 in effect.
984
985 * xfaces.c (Finternal_set_lisp_face_attribute)
986 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
987 parameters alist.
988
f964b4d7
GM
9892001-03-02 Gerd Moellmann <gerd@gnu.org>
990
ef53d75e
GM
991 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
992 to a single slash in the middle of file names.
993
52283633 994 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
995 Accept only alphanumeric time zone names.
996
f964b4d7
GM
997 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
998 or width area.
999 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1000 a widget to zero height.
52283633 1001
c3c45f65
GM
10022001-03-01 Gerd Moellmann <gerd@gnu.org>
1003
1004 * window.c (Fwindow_end): Call move_it_past_eol only if
1005 ending up on a partially visible line.
1006
028d739a
DL
10072001-03-01 Dave Love <fx@gnu.org>
1008
1009 * ccl.c (Fccl_execute): Doc fix.
1010
57c5889c
GM
10112001-03-01 Gerd Moellmann <gerd@gnu.org>
1012
35f59f6b
GM
1013 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1014 of the tool bar before calling x_figure_window_size.
1015
f84ff02c
GM
1016 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1017 NULL after destroying it, otherwise XTread_socket can access a
1018 destroyed widget when input is unblocked.
1019
8b8f9197 1020 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1021
57c5889c
GM
1022 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1023 same name as before, although there was a change in fontsets.
1024
224227d1
KR
10252001-02-28 Ken Raeburn <raeburn@gnu.org>
1026
4560730a
KR
1027 * lisp.h (Fframe_parameter): Declare.
1028
224227d1 1029 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1030 Lisp_Object.
224227d1 1031
ece93c02
GM
10322001-02-28 Gerd Moellmann <gerd@gnu.org>
1033
11ef99b9
GM
1034 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1035 NULL instead.
1036
1037 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1038 NULL instead.
1039
ece93c02
GM
1040 * alloc.c (toplevel): Include process.h.
1041 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1042 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1043 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1044 (allocate_vector, allocate_hash_table, allocate_window)
1045 (allocate_frame, allocate_process, allocate_other_vector):
1046 New functions.
ece93c02
GM
1047 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1048 (mark_maybe_pointer): New function.
52283633 1049 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1050 remain and not Lisp_Objects.
1051 (min_heap_address, max_heap_address): New variables.
1052 (mem_find): Return MEM_NIL if START is below min_heap_address or
1053 above max_heap_address.
1054 (mem_insert): Compute min_heap_address and max_heap_address.
1055
1056 * process.c (make_process): Use allocate_process.
1057
1058 * frame.c (make_frame): Use allocate_frame.
1059
1060 * window.c (make_window, make_dummy_parent): Use allocate_window.
1061 (Fcurrent_window_configuration): Use allocate_other_vector.
1062
1063 * lisp.h (allocate_vectorlike): Remove prototype.
1064 (allocate_vector, allocate_other_vector, allocate_frame)
1065 (allocate_window, allocate_process, allocate_hash_table):
1066 Add prototypes.
1067
1068 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1069 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1070
063af457
KH
10712001-02-27 Kenichi Handa <handa@etl.go.jp>
1072
1073 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1074 treat the produced bytes as a valid multibyte sequence.
1075
1076 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1077 (ccl_driver) <CCL_WriteMultibyteChar2>:
1078 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1079 <ccl_finish>: Set ccl->eight_bit_control properly.
1080
1081 * ccl.h (struct ccl_program): New member eight_bit_control.
1082
f58c6494
SM
10832001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1084
1085 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1086 accessible_keymaps_char_table.
1087 (accessible_keymaps_char_table): Obey `is_metized'.
1088 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1089 Lisp_Object.
1090
c596c392
GM
10912001-02-26 Gerd Moellmann <gerd@gnu.org>
1092
1093 * dispnew.c: Check HAVE_TERM_H before including term.h.
1094
425de386
AI
10952001-02-24 Andrew Innes <andrewi@gnu.org>
1096
1097 * makefile.w32-in: Update copyright notice.
1098
2ba11bbd
SM
10992001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1100
1101 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1102
66c56ed1
KH
11032001-02-24 Kenichi Handa <handa@etl.go.jp>
1104
4c1593ce
KH
1105 * Makefile.in (lisp): Add international/utf-8.elc.
1106
66c56ed1
KH
1107 * fontset.c (Fnew_fontset): Fix handling of the case that an
1108 element of FONTLIST is a cons of family and registry.
1109
796ead7e
JR
11102001-02-23 Jason Rumney <jasonr@gnu.org>
1111
1112 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1113 to height unconditionally.
1114
1115 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1116 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1117 (x_insert_glyphs): Call window_box_left to obtain the left
1118 x-coordinate of the area to shift.
1119
1120 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1121 safe_run_hooks.
1122
f6839838
AI
11232001-02-22 Andrew Innes <andrewi@gnu.org>
1124
52283633 1125 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1126 ($(BLD)\dispnew.obj):
1127 ($(BLD)\editfns.obj):
1128 ($(BLD)\fileio.obj):
1129 ($(BLD)\filelock.obj):
1130 ($(BLD)\keyboard.obj):
1131 ($(BLD)\w32proc.obj):
1132 ($(BLD)\process.obj):
1133 ($(BLD)\sysdep.obj): Ditto.
1134
1135 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1136 header files.
52283633
SM
1137 ($(BLD)/dispnew.$(O)):
1138 ($(BLD)/editfns.$(O)):
1139 ($(BLD)/fileio.$(O)):
1140 ($(BLD)/filelock.$(O)):
1141 ($(BLD)/keyboard.$(O)):
1142 ($(BLD)/w32proc.$(O)):
1143 ($(BLD)/process.$(O)):
f6839838
AI
1144 ($(BLD)/sysdep.$(O)): Ditto.
1145
c224f70b
GM
11462001-02-22 Gerd Moellmann <gerd@gnu.org>
1147
51695746
GM
1148 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1149 at the start of the function, check that the \n in it->c is
1150 from the iterator's current position.
52283633 1151
a61b7058
GM
1152 * xdisp.c (handle_single_display_prop): Add parameter
1153 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1154 properties which replace the display of text with something else.
1155 (handle_display_prop): Call handle_single_display_prop with
1156 additional argument saying if we already replaced text display
1157 with something else. Use AREF.
52283633 1158 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1159 (decode_mode_spec_coding): Use AREF and ASIZE.
1160
3473f362
GM
1161 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1162 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1163 * vmstime.h: Files removed.
52283633 1164
2bb58df3
GM
1165 * unexencap.c, unexfx2800.c: Files removed.
1166
c224f70b
GM
1167 * dispnew.c (direct_output_for_insert): Give up if we are showing
1168 a message or just cleared the message because we might need to
1169 resize the echo area window or display an empty echo area.
1170
ffc9ff0c
GM
11712001-02-21 Gerd Moellmann <gerd@gnu.org>
1172
0528abe1
GM
1173 * xdisp.c (redisplay_internal): Do the
1174 mark_window_display_accurate after all windows have been
1175 redisplayed because this call resets flags in buffers which are
1176 needed for proper redisplay.
1177
52283633
SM
1178 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1179 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1180 the old names.
1181
52283633
SM
1182 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1183 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1184
1185 * msdos.h (struct x_output): Rename busy_window to
1186 hourglass_window, busy_p to hourglass_p.
1187
52283633
SM
1188 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1189 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1190
1191 * xfns.c: Rename everything containing *busy_cursor* and similar
1192 to *hourglass*.
1193 (syms_of_w32fns): Rename x-busy-pointer-shape to
1194 x-hourglass-pointer-shape, display-busy-cursor to
1195 display-hourglass, busy-cursor-delay to hourglass-delay.
1196
1197 * w32fns.c: Rename everything containing *busy_cursor* and similar
1198 to *hourglass*.
1199 (syms_of_w32fns): Rename x-busy-pointer-shape to
1200 x-hourglass-pointer-shape, display-busy-cursor to
1201 display-hourglass, busy-cursor-delay to hourglass-delay.
1202
1203 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1204 of its busy_p flag.
1205
1206 * dispextern.h (start_hourglass, cancel_hourglass)
1207 (display_hourglass_p): Renamed from *busy_cursor*.
1208
ab2c5f0a
GM
12092001-02-20 Gerd Moellmann <gerd@gnu.org>
1210
d17e49a8
GM
1211 * keyboard.c (read_char): When an event from unread-command-events
1212 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1213
fa97adf6
GM
1214 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1215 equal to the current buffer.
1216
ab2c5f0a
GM
1217 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1218 nil, otherwise we're left with truncate_lines t when a message
1219 is printed with message-truncate-lines bound to t.
1220
aeac019e
GM
12212001-02-19 Gerd Moellmann <gerd@gnu.org>
1222
c8bc6f65
GM
1223 * window.c (Fmove_to_window_line): Undo last change.
1224 (displayed_window_lines): Call line_bottom_y to determine
1225 the line's bottom position.
1226
1227 * dispextern.h (line_bottom_y): Add prototype.
1228
52283633 1229 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1230 (pos_visible_p): Use it.
1231
980a2d69
GM
1232 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1233 set redisplaying_p to 0 here instead of in Frecursive_edit.
1234 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1235 set redisplaying_p.
1236
52283633 1237 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1238 New variables.
1239 (syms_of_xdisp): Initialize new variables.
1240 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1241 Specbind `inhibit-menubar-update' when updating the menu bar.
1242
65048e97
GM
1243 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1244 safe_run_hooks.
1245
1246 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1247 safe_run_hooks.
1248
a57c4026
GM
1249 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1250 is null.
1251
aeac019e
GM
1252 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1253 to the start of the file.
1254
76846b31
GM
12552001-02-16 Gerd Moellmann <gerd@gnu.org>
1256
f3f053f3 1257 * window.c (set_window_buffer): Fix last change.
52283633 1258
f3f053f3
GM
1259 * window.c (set_window_buffer): Set window's vscroll to 0.
1260
dad75588
GM
1261 * window.c (coordinates_in_window): Increase width of area
1262 where the vertical line can be dragged.
1263
c220b753
GM
1264 * xterm.c (x_set_glyph_string_background_width): Extend the
1265 background face to the end of the drawing area in the text
1266 area, only.
1267
c56b1c1b
GM
1268 * xdisp.c (handle_single_display_prop): Set iterator's position
1269 to where the `display' property starts, like for images.
1270 (dump_glyph): New function.
1271 (dump_glyph_row): Use it. Dump info about marginal areas.
1272
1273 * dispnew.c (direct_output_for_insert): Recognize more cases where
1274 glyphs can be written instead of being inserted.
1275
1276 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1277 the left x-coordinate of the area to shift.
1278
76846b31
GM
1279 * dired.c (directory_files_internal): Set result list to nil
1280 before retrying.
1281
0fc71a77
KH
12822001-02-15 Kenichi Handa <handa@etl.go.jp>
1283
1284 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1285 invalid multibyte sequence, treat *SRC as a character of
1286 eight-bit-graphic.
1287
25078b54
EZ
12882001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1289
1290 * textprop.c (Fset_text_properties): Doc fix.
1291
8399f8a0
GM
12922001-02-15 Gerd Moellmann <gerd@gnu.org>
1293
1294 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1295
9a2a6f73
DL
12962001-02-14 Dave Love <fx@gnu.org>
1297
1298 * coding.c: Doc and message fixes.
1299
bf853fee
AI
13002001-02-14 Andrew Innes <andrewi@gnu.org>
1301
1302 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1303 Emacs frame above the screen size.
1304
78c663d8
GM
13052001-02-14 Gerd Moellmann <gerd@gnu.org>
1306
1307 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1308
7cc9f69f
GM
13092001-02-13 Gerd Moellmann <gerd@gnu.org>
1310
0a411995
GM
1311 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1312 case that TO ends up beyond ZV after running before-change-functions.
1313
5ddc1b75
GM
1314 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1315 the selected window if it is showing the buffer in question.
1316
7cc9f69f
GM
1317 * dired.c (directory_files_internal): Initialize errno.
1318 (toplevel): Include errno.h.
1319
2e6621ca
GM
13202001-02-13 Kenichi Handa <handa@etl.go.jp>
1321
1322 * xfaces.c (best_matching_font): New parameter width_ratio.
1323 Multiply avgwidth by width_ratio.
1324 (choose_face_font): Call best_matching_font with width_ratio
1325 calculated from the column width of C.
1326
60222d69
AI
13272001-02-12 Andrew Innes <andrewi@gnu.org>
1328
1329 The following changes are to draw box lines inside characters area
1330 if line-width is negative.
52283633 1331
60222d69
AI
1332 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1333 face->box_line_width is negative.
1334 (x_produce_stretch_glyph): Likewise.
1335 (x_produce_glyphs): Likewise.
1336 (x_estimate_mode_line_height): Likewise.
1337 (x_draw_glyph_string_background): Likewise.
1338 (x_draw_glyph_string_foreground): Likewise.
1339 (x_draw_composite_glyph_string_foreground): Likewise.
1340 (x_draw_glyph_string_box): Likewise.
1341 (x_draw_image_foreground): Likewise.
1342 (x_draw_image_relief): Likewise.
1343 (x_draw_image_foreground_1): Likewise.
1344 (x_draw_image_glyph_string): Likewise.
1345
9804b846
KH
13462001-02-09 Kenichi Handa <handa@etl.go.jp>
1347
1348 The following changes are to draw box lines inside characters area
1349 if line-width is negative.
52283633 1350
9804b846
KH
1351 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1352 face->box_line_width is negative.
1353 (x_produce_stretch_glyph): Likewise.
1354 (x_produce_glyphs): Likewise.
1355 (x_estimate_mode_line_height): Likewise.
1356 (x_draw_glyph_string_background): Likewise.
1357 (x_draw_glyph_string_foreground): Likewise.
1358 (x_draw_composite_glyph_string_foreground): Likewise.
1359 (x_draw_glyph_string_box): Likewise.
1360 (x_draw_image_foreground): Likewise.
1361 (x_draw_image_relief): Likewise.
1362 (x_draw_image_foreground_1): Likewise.
1363 (x_draw_image_glyph_string): Likewise.
1364
1365 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1366 and :line-width can be negative.
52283633 1367 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1368
49be9f70
JR
13692001-02-09 Jason Rumney <jasonr@gnu.org>
1370
1371 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1372 characters the same as ASCII and latin-1.
1373 (x_display_and_set_cursor): Check for the focus frame's selected
1374 window instead of selected_window.
1375 (x_after_update_window_line): Don't clear if frame's internal
1376 border width is zero.
1377 (x_new_font): Don't change a tooltip's size.
1378 (w32_initialize): Set char_ins_del_ok to 1.
1379
1380 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1381 (x_set_font): If font hasn't changed, avoid recomputing
1382 faces and other things.
52283633
SM
1383 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1384 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1385 (x_create_tip_frame): Prevent changing the tooltip's
1386 background color by specifying a color for the default font
1387 in .Xdefaults.
1388 (Qcancel_timer): New variable.
1389 (syms_of_w32fns): Initialize and staticpro it.
1390 (Fx_hide_tip, Fx_show_tip): Use it.
1391 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1392 the timer.
1393 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1394
1395 * w32.c (init_environment): Duplicate local string before putenv.
1396
555e35d2
SZ
13972001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1398
1399 * charset.c (Fstring): A typo.
1400
19c92c94
KH
14012001-02-09 Kenichi Handa <handa@etl.go.jp>
1402
e47a1c33
KH
1403 * charset.c (Fstring): If all arguments are less than 256, return
1404 a unibyte string.
1405
1406 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1407 return a unibyte string.
1408
19c92c94
KH
1409 * coding.c (code_convert_region): After detecting a coding, if
1410 nothing found, set coding->composing to COMPOSITION_NO.
1411 (decode_coding_string): Likewise.
1412
d8e675f5
SM
14132001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1414
1415 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1416 to avoid overflow.
1417
bd503487
KH
14182001-02-07 Kenichi Handa <handa@etl.go.jp>
1419
1420 * charset.c (parse_str_to_multibyte): New function.
1421
1422 * charset.h (parse_str_to_multibyte): Extern it.
1423
1424 * print.c (print_string): If we are going to print a unibyte
1425 string into a multibyte buffer, convert the string to multibyte by
1426 str_to_multibyte.
1427
a8370d72
AI
14282001-02-06 Andrew Innes <andrewi@gnu.org>
1429
1430 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1431 been created. It seems we can get sent window messages such as
1432 WM_ERASEBKGND before we properly update a frame.
1433
c363a1d6
GM
14342001-02-06 Gerd Moellmann <gerd@gnu.org>
1435
1436 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1437 Avoid some unnecessary cursor positioning.
1438
a08332c0
GM
14392001-02-05 Gerd Moellmann <gerd@gnu.org>
1440
52283633 1441 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1442 (LFACE_AVGWIDTH): New macro.
1443 (LFACEP): Use AREF.
1444 (check_lface_attrs): Check LFACE_AVGWIDTH.
1445 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1446 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1447 (merge_face_vectors): Check LFACE_AVGWIDTH.
1448 (Finternal_make_lisp_face): Use AREF.
1449 (xm_set_menu_resources_from_menu_face)
1450 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1451 (Finternal_lisp_face_empty_p): Use AREF.
1452 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1453 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1454 Compare average widths..
1455 (best_matching_font): Arrange for comparing average widths.
1456
52283633
SM
1457 * dispextern.h (enum lface_attribute_index):
1458 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1459
5cb3c8d4
DL
14602001-02-05 Dave Love <fx@gnu.org>
1461
1462 * puresize.h: Revert last change following loadup.el change.
1463
193fba87
AI
14642001-02-05 Andrew Innes <andrewi@gnu.org>
1465
1466 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1467 invocation of temacs, to work with Windows 2000.
1468 (bootstrap-emacs): Ditto.
1469
e16f52ce
GM
14702001-02-05 Gerd Moellmann <gerd@gnu.org>
1471
7a58ab59
GM
1472 * xterm.c (x_display_and_set_cursor): Check for the focus
1473 frame's selected window instead of selected_window.
1474
e89aaabd
GM
1475 * xdisp.c (try_scrolling): If point is in the line below the
1476 window, make sure to move the iterator at least a canonical
1477 char height down.
1478
52283633 1479 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1480
789ce875
KH
14812001-02-05 Kenichi Handa <handa@etl.go.jp>
1482
52283633
SM
1483 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1484 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1485 (ccl_driver): If the CCL program is terminated because of
1486 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1487 destination instead of throwing them away.
1488
20b28f82
GM
14892001-02-02 Gerd Moellmann <gerd@gnu.org>
1490
79fb38c0
GM
1491 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1492 faces and other things.
1493
20b28f82
GM
1494 * xdisp.c (get_next_display_element): Fix case of empty
1495 display table entry.
1496
5a72551e
EZ
14972001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1498
eb24d0bf
EZ
1499 * editfns.c (Fconstrain_to_field): Doc fix.
1500
6a3f48c7
EZ
1501 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1502 into `thoroughly', to make it consistent with the doc string.
1503
5a72551e
EZ
1504 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1505
01acdb05
GM
15062001-02-01 Gerd Moellmann <gerd@gnu.org>
1507
0353b28f
GM
1508 * search.c (search_buffer): Call set_search_regs with a byte
1509 position, not a character position.
1510
01acdb05
GM
1511 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1512 minibuffer-only,
1513
e86b5133
EZ
15142001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1515
1516 * frame.c (Fmodify_frame_parameters): Doc fix.
1517
7442878f
GM
15182001-01-31 Gerd Moellmann <gerd@gnu.org>
1519
01acdb05
GM
1520 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1521 identifier which is not reserved by Standard C.
52283633 1522
7442878f
GM
1523 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1524
1525 * window.c (enum window_part): New enumeration.
1526 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1527 Qright_bitmap_area.
1528 (coordinates_in_window): Return an enumerator from enum
1529 window_part. Fix handling of right scroll bar.
1530 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1531 `right-fringe' instead of `left-bitmap-area' and
1532 `right-bitmap-area'. Use enumerators from enum window_part
1533 instead of hard-coded integers.
52283633
SM
1534 (check_window_containing, window_from_coordinates):
1535 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1536 (syms_of_window): Replace Qleft_bitmap_area and
1537 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1538
7c132cba
EZ
15392001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1540
1541 * editfns.c (Fformat_time_string): Doc fix.
1542
c359dd9e
SM
15432001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1544
1545 * keymap.c (Fwhere_is_internal): Use the first valid binding
1546 if no ascii binding is found (when firstonly is t).
1547
ce070307
GM
15482001-01-31 Gerd Moellmann <gerd@gnu.org>
1549
b4f30ec5
GM
1550 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1551 instead of Finteractive_p.
1552
1553 * lisp.h (interactive_p): Add prototype.
1554
1555 * eval.c (interactive_p): New function.
1556 (Finteractive_p): Use it.
1557
ce070307
GM
1558 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1559
f57b6e64
DL
15602001-01-31 Dave Love <fx@gnu.org>
1561
d61c7afe
DL
1562 * .gdbinit (hook-run): Define to run xreload.
1563
f57b6e64
DL
1564 * textprop.c (Fset_text_properties): Fix newline in doc string.
1565
eef93f99
GM
15662001-01-30 Gerd Moellmann <gerd@gnu.org>
1567
52283633
SM
1568 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1569 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1570
1571 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1572 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1573 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1574
1575 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1576 height.
1577
d9c1f6f9
DL
15782001-01-30 Dave Love <fx@gnu.org>
1579
1580 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1581 AFTER_POTENTIAL_GC.
1582
e8f044a0
GM
15832001-01-29 Gerd Moellmann <gerd@gnu.org>
1584
52283633
SM
1585 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1586 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1587
8e1db7b3
EZ
15882001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1589
1590 * textprop.c (Fset_text_properties): Doc fix.
1591
4eefd9d2
GM
15922001-01-29 Gerd Moellmann <gerd@gnu.org>
1593
1594 * xdisp.c (forward_to_next_line_start): Remove xassert.
1595
fccb8288
EZ
15962001-01-29 Jason Rumney <jasonr@gnu.org>
1597
4eefd9d2 1598 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1599 returning without releasing it.
1600
76581eab
KH
16012001-01-29 Kenichi Handa <handa@etl.go.jp>
1602
1603 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1604 for '^', '$', and '\0'.
1605
83a96b4d
AC
16062001-01-28 Andrew Choi <akochoi@i-cable.com>
1607
5604ec34
AC
1608 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1609 regex for '^', '$', and '\0'.
1610
83a96b4d
AC
1611 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1612 only if current_sblock has been initialized.
1613
1614 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1615 terminal frame even if it is the only visible frame.
1616
c09a6440
KH
16172001-01-28 Kenichi Handa <handa@etl.go.jp>
1618
1619 * fontset.c (font_family_registry): Even if FONTNAME conform to
1620 XLFD, if it specifies other fields than family and registry,
52283633 1621 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1622 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1623 a signle byte character. Don't set FAMILY part to nil here.
1624 It is handled by the caller choose_face_font.
c09a6440
KH
1625 (Fnew_fontset): Call font_family_registry with FORCE 0.
1626 (Fset_fontset_font): Likewise.
1627
4dcd74e6
GM
16282001-01-27 Gerd Moellmann <gerd@gnu.org>
1629
1630 * xdisp.c (display_line): Don't treat a newline as fitting
1631 on the line.
1632
d2906bf8
GM
16332001-01-26 Gerd Moellmann <gerd@gnu.org>
1634
0130fe1a
GM
1635 * window.c (size_window): Set the window's orig_top to nil when
1636 changing heights, so that a future shrink_mini_window won't
1637 restore a bogus height.
1638
550f0e6a
GM
1639 * frame.c (do_switch_frame): If selected frame has a mini-window,
1640 resize that to exact size.
1641
b7b20fbd
GM
1642 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1643
a47b7816
GM
1644 * xdisp.c (display_line): Simplify check for glyphs fitting
1645 entirely in the line.
1646
d2906bf8
GM
1647 * xfns.c (xic_style): New variable.
1648 (create_frame_xic): Move static variable to global scope for
550f0e6a 1649 the case that `static' gets defined away.
d2906bf8 1650
73df2b1e
KH
16512001-01-26 Kenichi Handa <handa@etl.go.jp>
1652
1653 * coding.c (decode_coding): Set a flag for inhibiting
1654 inconsistent eol.
1655 (code_convert_region): Always set saved_coding_symbol.
1656 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1657 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1658
6613cfc4
GM
16592001-01-25 Gerd Moellmann <gerd@gnu.org>
1660
c5e6e06b
GM
1661 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1662 XClearArea.
1663
1664 * xterm.c (x_after_update_window_line): Don't clear if frame's
1665 internal border width is zero.
1666 (x_clear_area): New function.
1667 (x_after_update_window_line, x_clear_end_of_line)
1668 (x_scroll_bar_create, x_scroll_bar_set_handle)
1669 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1670 instead of XClearArea.
1671
1672 * xterm.h (x_clear_area): Add prototype.
1673
6613cfc4
GM
1674 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1675 which doesn't seem necessary anymore with Lesstif 0.92.
1676
650cc6cc
DL
16772001-01-25 Dave Love <fx@gnu.org>
1678
34ac3367
DL
1679 * puresize.h (BASE_PURESIZE): Up to 720000.
1680
650cc6cc
DL
1681 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1682
5e37dc22
GM
16832001-01-25 Gerd Moellmann <gerd@gnu.org>
1684
e1e441f9
GM
1685 * xdisp.c (echo_area_display): Don't call redisplay_internal
1686 when Emacs is shutting down. We can't run hooks etc. that
1687 would be necessary to do a redisplay.
1688
5e37dc22
GM
1689 * lread.c (read_integer): Use type EMACS_INT instead of int.
1690
0fb94c7f
EZ
16912001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1692
1693 * ccl.c (ccl_driver): Fix last change.
1694
e3778624
KH
16952001-01-25 Kenichi Handa <handa@etl.go.jp>
1696
1697 * ccl.h (sturct ccl_program): New member suppress_error.
1698
bb264518 1699 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1700 insert error message to the output.
1701 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1702
1703 * coding.h (struct coding_system): New member suppress_error.
1704
1705 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1706 (Fset_terminal_coding_system_internal): Set the member
1707 suppress_error to 1.
1708 (Fset_safe_terminal_coding_system_internal): Likewise.
1709
245ed2b1
SM
17102001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1711
1712 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1713 as if it was a `charset'.
1714
f9aaedb6
GM
17152001-01-24 Gerd Moellmann <gerd@gnu.org>
1716
1717 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1718 value in where_is_cache; the next lookup in the cache returns
1719 something bogus if we do.
1720
c3902c3e
EZ
17212001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1722
1723 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1724 if HAVE_WINDOW_SYSTEM isn't defined.
1725
3497f73e
GM
17262001-01-24 Gerd Moellmann <gerd@gnu.org>
1727
e7e41584
GM
1728 * fns.c (sweep_weak_table): Fix code taking items out of
1729 the hash collision chain. Some cleanup.
1730
3497f73e
GM
1731 * xterm.c (x_new_font): Don't change a tooltip's size.
1732
1733 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1734 background color by specifying a color for the default font
1735 in .Xdefaults.
1736
3d48e687
KH
17372001-01-24 Kenichi Handa <handa@etl.go.jp>
1738
96531b20
KH
1739 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1740 a workaround for SunOS 4's cc.
1741 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1742 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1743 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1744 statement.
3d48e687 1745
a30629d2
GM
17462001-01-23 Gerd Moellmann <gerd@gnu.org>
1747
1748 * xterm.c (x_set_window_size_1): New function extracted from
1749 x_set_window_size.
1750 (x_set_window_size): Use it.
1751 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1752 doesn't have a widget, like tooltips.
1753
5a43decf
EZ
17542001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1755
52283633 1756 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 1757
b0e98867
KH
17582001-01-23 Kenichi Handa <handa@etl.go.jp>
1759
1760 * fns.c (Fset_char_table_default): Fix to make sub char-table
1761 correctly.
1762
50606b4c
GM
17632001-01-22 Gerd Moellmann <gerd@gnu.org>
1764
cb2ddc53 1765 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
1766 a desired tool bar string, even if there are no tool bar items.
1767
57c28064
GM
1768 * xdisp.c (Ftool_bar_lines_needed): New function.
1769 (syms_of_xdisp): Defsubr it.
1770
50606b4c
GM
1771 * editfns.c (Fformat): Don't extend text properties from arguments
1772 to padding chars in the result.
1773
2f169c38
EZ
17742001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1775
1776 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1777
0f32f023
AI
17782001-01-20 Andrew Innes <andrewi@gnu.org>
1779
52283633 1780 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
1781 (w32_initialize): Don't set term hooks that aren't actually needed
1782 in windowed mode.
1783
1784 * xfaces.c (realize_default_face):
1785 (realize_face):
1786 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1787
1788 * xdisp.c (handle_single_display_prop): Remove references to
1789 FRAME_W32_CONSOLE_P.
1790
52283633 1791 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
1792
1793 * frame.h (output_method): Remove output_w32_console method.
1794 (FRAME_W32_CONSOLE_P): Remove macro.
1795
1796 * frame.c (Qw32_console): Remove variable.
1797 (Fframep): Remove references to it.
1798 (syms_of_frame): Ditto.
1799 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1800
1801 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1802 redefinition.
1803
7173eada
KH
18042001-01-20 Kenichi Handa <handa@etl.go.jp>
1805
1806 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1807
755b45ce
AI
18082001-01-19 Andrew Innes <andrewi@gnu.org>
1809
1810 * w32.c (init_environment): Add a version-independent site-lisp
1811 directory to EMACSLOADPATH, after the version dependent one.
1812
0a949811
GM
18132001-01-19 Gerd Moellmann <gerd@gnu.org>
1814
8501998a
GM
1815 * editfns.c (Fbuffer_substring): Doc fix.
1816
52283633
SM
1817 * xdisp.c (message_dolog, message2, message2_nolog):
1818 Rename parameter LEN to NBYTES.
0a949811 1819
e6ebcbbe
KH
18202001-01-19 Kenichi Handa <handa@etl.go.jp>
1821
200ecca2
KH
1822 * charset.c (strwidth): Use c_string_width.
1823 (c_string_width): New function.
1824 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1825 Caller changed.
1826
1827 * charset.h (c_string_width, lisp_string_width): Extern them.
1828
52283633 1829 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 1830
e6ebcbbe
KH
1831 * indent.c (check_composition): Check validity of composition.
1832
200ecca2
KH
1833 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1834 characters by calling c_string_width.
1835 (x_consider_frame_title): Get byte length of frame tile string
1836 correctly.
1837 (display_mode_element): Pay attention to width of non-ASCII
1838 characters by calling strwidth.
1839
8692ca92
GM
18402001-01-18 Gerd Moellmann <gerd@gnu.org>
1841
8962e303
GM
1842 * xfns.c (Qcancel_timer): New variable.
1843 (syms_of_xfns): Initialize and staticpro it.
1844 (Fx_hide_tip, Fx_show_tip): Use it.
1845 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1846 the timer.
1847 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1848
91523be9
GM
1849 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1850
1851 * window.h (WINDOW_LIVE_P): New macro.
1852
b0b7ed0e
GM
1853 * window.c (window_size_fixed): New variable.
1854 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1855 the doc string.
1856
06bccf8e
GM
1857 * eval.c (specbind): If binding a per-buffer variable which
1858 doesn't have a buffer-local value in the current buffer, change
1859 the global value by changing the value of the symbol bound in all
1860 buffers not having their own value, to make it consistent with
1861 what happens with other buffer-local variables.
1862
8692ca92
GM
1863 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1864
1865 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1866 when searching for a newline.
1867
bb3a3b50
KH
18682001-01-18 Kenichi Handa <handa@etl.go.jp>
1869
1870 * xdisp.c (display_string): Fix previous change.
1871
c2cc16fa
JR
18722001-01-18 Jason Rumney <jasonr@gnu.org>
1873
1874 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1875 GLYPH_DEBUG is defined.
1876 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1877 true for images with `:ascent 100'.
1878 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1879 meantime, use face MOUSE_FACE_ID.
1880 If first glyph isn't a character glyph, use the ASCII NUL
1881 character to determine the face.
1882 (expose_area): Do not treat left margin specially.
1883 (note_mode_line_highlight): If no local_map, check global keymap.
1884 (note_mouse_highlight): Initialize overlay.
52283633 1885 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
1886 (show_scroll_bars): Remove unused function.
1887 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1888 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1889 Clip to row.
52283633 1890 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
1891 (x_free_frame_resources): Unload relief colors.
1892
9c11f79e
GM
18932001-01-17 Gerd Moellmann <gerd@gnu.org>
1894
3aec8722 1895 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
1896 get_next_display_element when the newline is already found.
1897 This may change the iterator's position, when its current position is
3aec8722
GM
1898 equal to the iterator's stop_charpos.
1899
f3ffc2c3
GM
1900 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1901 zero, use this method only at the end of a line.
1902
52283633 1903 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
1904 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1905 if SCALABLE_FONTS_P is set.
52283633 1906
d26d6fd9
GM
1907 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1908 so that scalable fonts are included.
1909
9c11f79e
GM
1910 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1911 In the cache, use a key containing the information if scalable
1912 fonts are included.
1913 (x_load_font): Adapt to change of keys in the font cache.
1914
19152001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 1916
d26d6fd9
GM
1917 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1918 XListFonts to take advantage of font caching.
1919
9c11f79e
GM
1920 * xterm.c (x_list_fonts): Ensure caching font information when
1921 called for a null frame, which is the case frequently when Emacs
1922 starts.
1923
51446987
GM
19242001-01-17 Gerd Moellmann <gerd@gnu.org>
1925
f864120f
GM
1926 * xfns.c (QCconversion): Replaces QCalgorithm.
1927
1928 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1929
1930 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1931 of :algorithm.
52283633 1932
e37d1417
GM
1933 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1934 not everything could be displayed.
1935
51446987
GM
1936 * line.h, x-list-font.c: Files removed because unused.
1937
9ad4f3e5
AI
19382001-01-17 Andrew Innes <andrewi@gnu.org>
1939
1940 * dired.c (directory_files_internal): Convert result from readdir
1941 to a unibyte string initially, to avoid possible misinterpretation
1942 of some bytes as the internal form of Emacs characters.
1943
2eda09b5
KH
19442001-01-17 Kenichi Handa <handa@etl.go.jp>
1945
1946 * fns.c (concat): Be sure to avoid putting the same `composition'
1947 property on the adjacent regions.
1948
826f3788
GM
19492001-01-16 Gerd Moellmann <gerd@gnu.org>
1950
52283633 1951 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
1952 (Fscroll_right, Fscroll_left): Set it here instead, if called
1953 interactively.
1954
d57b83b3
GM
1955 * buffer.c (Fset_buffer_modified_p): Set buffer's
1956 prevent_redisplay_optimizations_p flag.
1957
826f3788 1958 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
1959 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
1960 with additional arg.
1961
1962 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
1963 Change prototype.
826f3788 1964
826f3788
GM
1965 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1966 FROM_WHERE, for debugging.
1967
261d788b
KH
19682001-01-16 Kenichi Handa <handa@etl.go.jp>
1969
1970 * ccl.c (Fregister_ccl_program): Handle the return value of
1971 resolve_symbol_ccl_program correctly.
52283633 1972 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 1973
bccee4f2
GM
19742001-01-15 Gerd Moellmann <gerd@gnu.org>
1975
e4ded23c
GM
1976 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1977 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
1978
1979 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
1980 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
1981 the display; we didn't open it.
1982
bccee4f2
GM
1983 * dispnew.c (save_or_restore_current_matrices): Function removed.
1984 (save_current_matrix, restore_current_matrix): New functions.
1985 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1986 restore the frame's current matrix. Due to the glyph pointer
1987 setup done in adjust_glyph_matrix, there is no easy way to make
1988 saving the current matrix in the desired matrix generally correct,
1989 so don't try it.
1990
ebeccffa
KH
19912001-01-15 Kenichi Handa <handa@etl.go.jp>
1992
1993 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1994 truncation glyphs.
1995 (display_line): Optimize for wide characters.
e4ded23c 1996 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1997 partially. On ttys, produce more than one truncation glyph for
1998 multi-column characters that don't fit on the line.
1999
64388126
KH
20002001-01-13 Kenichi Handa <handa@etl.go.jp>
2001
52283633
SM
2002 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2003 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2004
8edb0a6f
JR
20052001-01-13 Jason Rumney <jasonr@gnu.org>
2006
2007 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2008 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2009 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2010 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2011
52283633
SM
2012 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2013 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2014 (x_draw_image_glyph_string): Adapt to change of image margins.
2015
2016 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2017 variables.
2018
2019 * w32bdf.c (search_file_line, get_cached_font_char)
2020 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2021
2022 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2023
2024 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2025 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2026 (Fw32_send_sys_command): Remove unused variables.
2027 (w32_msg_pump): Add parentheses.
2028
2029 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2030 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2031 Add parentheses.
2032
4956d1ef
GM
20332001-01-12 Gerd Moellmann <gerd@gnu.org>
2034
b30623be
GM
2035 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2036 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2037 being a pair of margins.
2038 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2039 to DEFVAR_LISP. Extend doc.
2040
2041 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2042 margins.
2043 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2044 pair of integers `(X . Y)', use X for the horizontal and Y for the
2045 vertical margin.
2046 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2047 (parse_image_spec): Check it.
52283633
SM
2048 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2049 (tiff_format, gif_format, gs_format):
2050 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2051
52283633
SM
2052 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2053 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2054 (x_draw_image_glyph_string): Adapt to the change of image margins.
2055
2056 * dispextern.h (struct image): Replace member `margin' with
2057 `hmargin' and `vmargin'.
2058
4554cc79
GM
2059 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2060 and GLYPHS.
2061
2062 * dispnew.c (update_text_area): Put code which decrements the
2063 stop position when the row's face extends to the end of the
3bffc665 2064 line in #if 0.
4554cc79 2065
3cccce8d
GM
2066 * xfns.c (x_set_mouse_color): Fix color allocation.
2067
4956d1ef
GM
2068 * keyboard.c: Call get_local_map with new argument list.
2069
2070 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2071
2072 * intervals.h (enum map_property): Removed.
2073 (get_local_map): Change prototype.
2074
2075 * keymap.c: Call get_local_map with new argument list.
2076 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2077
2c2ff7f2
GM
20782001-01-11 Gerd Moellmann <gerd@gnu.org>
2079
a23887b9
GM
2080 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2081 of the size needed for the tool bar string. For the last image,
2082 use a `display' property that reaches to the end of the string.
2083
a7ee2d2e
GM
2084 * xselect.c (selection_request_dpyinfo): New variable.
2085 (x_handle_selection_request): Set it.
2086 (x_selection_request_lisp_error): Don't call
2087 x_decline_selection_request if selection request's display has
2088 been closed.
2089
52283633
SM
2090 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2091 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2092
457b792c
GM
20932001-01-10 Dave Love <fx@gnu.org>
2094
2095 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2096 ${SOME_MACHINE_LISP}, not ${lisp}.
2097
c1efd260
GM
20982001-01-10 Gerd Moellmann <gerd@gnu.org>
2099
52283633
SM
2100 * xdisp.c (display_line): On ttys, produce more than one truncation
2101 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2102
ac95a621
GM
2103 * xselect.c (x_reply_selection_request): Add a comment.
2104
c1efd260
GM
2105 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2106 XkbGetNames instead of XkbGetKeyboard.
2107
1bfb1345
DL
21082001-01-10 Dave Love <fx@gnu.org>
2109
2110 * sysdep.c (random): Revert the declaration.
2111
38119822
GM
21122001-01-09 Gerd Moellmann <gerd@gnu.org>
2113
52283633
SM
2114 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2115 Call function string_bytes.
35f464a7
GM
2116 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2117
2118 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2119 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2120 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2121 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2122 the current sblock.
2123 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2124 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2125 after sweeping strings, and at the end.
2126 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2127
38119822
GM
2128 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2129 ensure that pop_message is called.
2130
2131 * keyboard.c (Fexecute_extended_command): Use a
2132 record_unwind_protect to ensure that pop_message is called.
2133
2134 * lisp.h (push_message_unwind): Add prototype.
2135
2136 * xdisp.c (push_message_unwind): New function.
2137
2138 * fileio.c (do_auto_save_unwind): Do the pop_message here
2139 instead of in Fdo_auto_save.
2140 (Fdo_auto_save): Don't call pop_message.
2141
f47a9ec4
KR
21422001-01-08 Ken Raeburn <raeburn@gnu.org>
2143
2144 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2145 in inner block.
2146
a758f97d
GM
21472001-01-08 Gerd Moellmann <gerd@gnu.org>
2148
6d0afc03
GM
2149 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2150 when increasing window's vscroll.
2151
a758f97d
GM
2152 * macros.c (Qkbd_macro_termination_hook): New variable.
2153 (syms_of_macros): Initialize and staticpro it.
2154 (pop_kbd_macro): Run kbd-macro-termination-hook.
2155
2156 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2157
1bfb1345 21582001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2159
2160 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2161 arglist, for documentation's sake.
2162
0dac6924
AI
21632001-01-06 Andrew Innes <andrewi@gnu.org>
2164
2165 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2166 of *.pdb.
2167
8182406a
AI
21682001-01-05 Andrew Innes <andrewi@gnu.org>
2169
2170 * term.c (update_end): Don't check updating_frame; for some reason
2171 this can be 0 sometimes, such as after dismissing a popup menu,
2172 and isn't necessary given the explicit frame argument.
2173
3828218c
GM
21742001-01-05 Gerd Moellmann <gerd@gnu.org>
2175
2176 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2177 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2178
2f5ded21
GM
21792001-01-04 Gerd Moellmann <gerd@gnu.org>
2180
52283633 2181 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2182
2183 * xfns.c (x_create_tip_frame): Preserve the value of
2184 face_change_count around the creation of the tip frame.
52283633 2185
2f5ded21
GM
2186 * xfns.c (last_show_tip_args): New variable.
2187 (compute_tip_xy): New function.
2188 (Fx_show_tip): Reuse an existing tip frame, if possible.
2189 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2190
dfad65fa
DL
21912001-01-04 Dave Love <fx@gnu.org>
2192
64d4ec0f
DL
2193 * editfns.c (Fformat): Doc fix.
2194
dfad65fa
DL
2195 * systime.h (set_file_times): Prototype.
2196
2197 * widget.h (EmacsFrameSetCharSize_): Prototype.
2198
2199 * sysdep.c (random, srandom): Declare explicitly.
2200
2201 * dispextern.h (move_it_vertically_backward): Declare.
2202
85fe3b5e
GM
22032001-01-04 Gerd Moellmann <gerd@gnu.org>
2204
0f2ac578
GM
2205 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2206 like in Fx_create_frame.
2207
482cca61
GM
2208 * xfaces.c (set_font_frame_param): Don't do anything for
2209 non-graphical frames.
2210
85fe3b5e
GM
2211 * window.c (Fdelete_other_windows): Set window's window_end_valid
2212 to nil when changing the window's start. Don't change the
2213 window's start when its top position hasn't changed. If we do,
2214 this will set the window's optional_new_start, which act's like a
2215 force_start during redisplay with C-x 1 M-> under particular
2216 circumstances (see report from Per Starback to emacs-pretest-bug
2217 from 2000-12-13.).
2218
3e99d3b4
GM
22192001-01-03 Gerd Moellmann <gerd@gnu.org>
2220
a77dc1ec
GM
2221 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2222 short cut at the start of the function. Add an assertion.
2223 (reseat_at_next_visible_line_start): Add an assertion.
2224
2f3cad6c
GM
2225 * window.c (Frecenter): When changing the window start, set the
2226 window's window_end_valid to nil.
2227 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2228
2229 * dispextern.h (move_it_past_eol): Add prototype.
2230
2231 * xdisp.c (move_it_past_eol): New function.
2232
3e99d3b4
GM
2233 * window.c (Fwindow_end): Doc fix.
2234
22352001-01-03 Dave Love <fx@gnu.org>
2236
52283633 2237 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2238
bafb434c
GM
22392001-01-03 Gerd Moellmann <gerd@gnu.org>
2240
2241 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2242 the enabled_p flag of the glyph row at window_end_vpos to 0.
2243 (handle_single_display_prop): Fix last change.
2244
5297fb00
RS
22452001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2246
2247 * window.c (Frecenter): Doc fix.
2248
13d6a61c
AI
22492001-01-02 Andrew Innes <andrewi@gnu.org>
2250
2251 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2252
2253 * frame.h (output_method): Add output_w32_console method.
2254 (FRAME_W32_CONSOLE_P): New macro.
2255
2256 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2257 use output_w32_console method.
2258 (Qw32_console): New Lisp_Object.
2259 (Fframep): Return it.
2260 (syms_of_frame): Init it.
52283633 2261 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2262
2263 * xfaces.c (realize_default_face): Set face foreground and
2264 background to unspecified for w32_console frames.
2265 (realize_face): Realize face cache for w32_console frames.
2266 (realize_tty_face): Accept w32_console frames.
2267
52283633 2268 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2269 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2270 necessary, even if running interactively.
2271
2272 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2273 w32_console frames.
2274
52283633
SM
2275 * w32term.c (x_update_begin):
2276 (x_update_end):
2277 (x_clear_frame):
2278 (x_ins_del_lines):
2279 (x_change_line_highlight):
2280 (x_delete_glyphs):
2281 (w32_ring_bell):
2282 (x_update_begin):
2283 (x_update_end):
2284 (w32_reassert_line_highlight):
2285 (w32_frame_rehighlight):
13d6a61c
AI
2286 (w32_frame_raise_lower): Do nothing if not w32 frame.
2287
2288 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2289
2290 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2291 system doesn't tell us directly.
2292 (Fx_display_visual_class): Implement properly.
2293
d6bb0c0d
GM
22942001-01-02 Gerd Moellmann <gerd@gnu.org>
2295
2296 * window.c (Frecenter): Handle centering in graphical frames
2297 specially. Centering on the basis of line counts doesn't work
2298 reliably with variable-height lines.
52283633 2299
315f5865
EZ
23002001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2301
2302 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2303 and al[].
2304
52283633 2305 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2306 (update_compositions): Remove unused variable `hook'.
2307
2308 * intervals.c (get_local_map): Remove unused variable `tem'.
2309
2310 * doprnt.c (doprnt1): Remove unused variable `size'.
2311
2312 * fns.c (Flength): Remove unused variable `tail'.
2313 (Fdelete): Remove unused variable `size'.
2314
2315 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2316 and `gcpro2'.
2317
52283633 2318 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2319
2320 * data.c (find_symbol_value): Remove extra 3rd argument in the
2321 call to swap_in_symval_forwarding.
2322
52283633 2323 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2324
2325 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2326 (trivial_regexp_p): Remove unused variable `c'.
2327 (boyer_moore): Remove unused variable `k'.
2328
2329 * indent.c (current_column): Remove unused variable `stopchar'.
2330 (Fcompute_motion): Remove unused variable `contin'.
2331
2332 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2333
2334 * dired.c (directory_files_internal): Fix a typo in a comment.
2335 Remove an unused variable `handler'.
52283633 2336 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2337 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2338 on BSD4_2.
2339
52283633 2340 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2341
2342 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2343 and `buf'.
2344 (Fmarker_insertion_type): Remove unused variable `buf'.
2345
2346 * insdel.c (make_gap): Remove unused variable `result'.
2347
52283633 2348 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2349 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2350 (menu_bar_items): Remove unused function-scope variable `tem'.
2351
2352 * fontset.c (fontset_ref): Remove unused variable `i'.
2353 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2354 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2355 (make_fontset_for_ascii_face): Remove unused variable `name'.
2356 (fs_load_font): Remove unused variable `font_idx'.
52283633 2357 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2358 (list_fontsets): Remove unused variable `tail'.
2359 (Fnew_fontset): Remove unused variables `family' and `registry'.
2360 (accumulate_font_info): Remove unused variable `tmp'.
2361 (Ffontset_font): Remove unused variable `id'.
2362 (syms_of_fontset): Remove unused variable `i'.
2363
2364 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2365 to x_term_init.
2366 (lookup_image): Remove unused variable `file'.
2367 (xbm_load): Remove unused variables `bitmap_data', `height', and
2368 `width'. Remove function-local variable `i', leave the
2369 block-local one.
2370 (gif_load): Remove unused variable `inc'.
2371
52283633 2372 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2373 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2374 leave only the one in the inner block.
2375
2376 * xfaces.c (face_fontset, realize_default_face): Remove unused
2377 variable `fontset'.
2378 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2379
2380 * term.c (encode_terminal_code): Remove unused variable `c'.
2381
2382 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2383 char *' instead of `char *'.
2384
2385 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2386 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2387 (Fchar_category_set): Remove unused variables `val', `charset',
2388 `c1' and `c2'.
2389
52283633
SM
2390 * coding.c (detect_coding_iso2022, setup_coding_system):
2391 Remove unused variable `i'.
315f5865
EZ
2392 (detect_coding_mask): Remove unused variable `idx'.
2393 (detect_coding): Remove unused variable `i'.
2394 (ccl_coding_driver): Remove unused variable `result'.
2395 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2396 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2397 (encode_coding_string): Remove unused variables `gcpro1' and
2398 `saved_coding_symbol'.
2399 (Ffind_coding_systems_region_internal): Remove function-local
2400 variable args[], leave only the block-local one.
2401 (code_convert_region1): Remove unused variable `len'.
2402
2403 * charset.c (char_printable_p): Remove unused variable `chars'.
2404 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2405 (str_to_multibyte): Remove unused variable `c'.
2406
2407 * window.c (size_window): Remove block-local variable `min_size'.
2408
2409 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2410 `header_line_height'.
2411 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2412 enum display_element_type.
2413
1a8a9daf
GM
24142001-01-02 Gerd Moellmann <gerd@gnu.org>
2415
6dde6abc 2416 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2417 statements that call X. Save away the error message in a local copy.
2418
1883b2c6
GM
2419 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2420 the start.
2421
a13be207
GM
2422 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2423 in or at the start of invisible text.
2424
1a8a9daf
GM
2425 * dispnew.c (update_window): Don't check_current_matrix_flags.
2426
3608c0f9
JR
24272001-01-01 Jason Rumney <jasonr@gnu.org>
2428
2429 * w32fns.c (x_figure_window_size): Do not allow new_height and
2430 new_width of frame to override specified values.
2431
abb1acc4
KH
24322000-12-30 Kenichi Handa <handa@etl.go.jp>
2433
52283633 2434 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2435
762a68ec
GM
24362000-12-29 Gerd Moellmann <gerd@gnu.org>
2437
52283633 2438 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2439 (update_window) [GLYPH_DEBUG]: Call it.
2440 (scrolling_window): Prevent including current rows which are below
2441 what's displayed in the window.
2442
2443 * xdisp.c (try_window_reusing_current_matrix)
2444 <new start <= old start>: Disable rows in the current matrix
2445 which are below the window after scrolling.
52283633 2446
762a68ec
GM
2447 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2448 is zero. It's not worth the complexity.
2449 (invisible_text_between_p): Put in #if 0 because unused.
2450
2d5912c1
GM
24512000-12-28 Gerd Moellmann <gerd@gnu.org>
2452
46f6a258
GM
2453 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2454 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2455
89f93679
GM
2456 * keyboard.c (echo_char): If C is an integer, always call
2457 push_key_description. Former code could signal an invalid
2458 character error.
2459
2460 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2461 If set, print multibyte text.
2462 (Fsingle_key_description): Call push_key_description with
2463 FORCE_MULTIBYTE set.
2464 (describe_buffer_bindings): Likewise.
2465
2466 * lisp.h (push_key_description): Add prototype.
2467
c06017fb
GM
2468 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2469 around the call to redisplay_internal.
2470
f1d2ce7f
GM
2471 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2472
2d5912c1
GM
2473 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2474
9371f831
KH
24752000-12-28 Kenichi Handa <handa@etl.go.jp>
2476
2477 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2478 (ccl_driver): New local variable `extra_bytes'.
2479
2480 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2481
52283633
SM
2482 * coding.c (setup_coding_system):
2483 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2484 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2485
0c80628a
KH
24862000-12-28 Kenichi Handa <handa@etl.go.jp>
2487
2488 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2489 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2490 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2491 (decode_composition_emacs_mule): New function.
2492 (decode_coding_emacs_mule): Decode composition sequence by calling
2493 decode_composition_emacs_mule.
2494 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2495 (encode_coding_emacs_mule): Changed from macro to function.
2496 If a text contains compositions, encode them correctly.
0c80628a
KH
2497 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2498 that decoding and encoding are required.
2499
3e32cc27
GM
25002000-12-27 Gerd Moellmann <gerd@gnu.org>
2501
5e25feee
GM
2502 * xfaces.c (PT_PER_INCH): New macro.
2503 (xlfd_point_size): Compute real point size from font's pixel size.
2504 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2505 instead of 72.
2506
892d8fcd
GM
2507 * .gdbinit: Comment out the line pointing to the Lesstif source
2508 directory.
2509
12c8b416
GM
2510 * window.c (Frecenter): Use displayed_window_lines instead
2511 of window_internal_height.
2512
6061fbf0
GM
2513 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2514 instead of x-toolkit-scroll-bars-p.
2515 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2516
2517 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2518 instead of x-toolkit-scroll-bars-p.
2519 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2520
3e32cc27
GM
2521 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2522 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2523 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2524 New variables.
2525 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2526 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2527 (build_frame_matrix_from_leaf_window): Remove unused code.
2528 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2529 redisplay history.
2530 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2531 (update_window) [GLYPH_DEBUG]: Likewise.
2532 (syms_of_display): Defsubr dump-redisplay-history.
2533
31798cfe
GM
25342000-12-23 Gerd Moellmann <gerd@gnu.org>
2535
f717c2ba
GM
2536 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2537 the end of the prompt. Set echo_after_prompt to the offset
2538 of echoptr in echobuf.
2539
aeb2b8fc
GM
2540 * xdisp.c (init_from_display_pos): Pop until the iterator's
2541 stack is empty; there may be frames for stretch or images
2542 on the stack.
2543
31798cfe
GM
2544 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2545 (save_or_restore_current_matrix): New function for the same
2546 purpose, but more efficient.
2547 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2548
f8156156
EZ
25492000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2550
2551 * xdisp.c (syms_of_xdisp): Fix last change.
2552
bdd6d4e8
GM
25532000-12-23 Gerd Moellmann <gerd@gnu.org>
2554
2555 * xdisp.c (syms_of_xdisp): Doc fix.
2556
2557 * xdisp.c (redisplay_window): Remove label restore_buffers;
2558 use finish_scroll_bars instead to make sure that scroll bars
2559 are redeemed. If we don't do this, flickering can result from
2560 scroll bars being destroyed and recreated.
2561
9436cdf9
JR
25622000-12-22 Jason Rumney <jasonr@gnu.org>
2563
2564 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2565 in the wrong colors when the foreground is not black.
2566 (expose_window): Don't redraw the window that's currently being
2567 updated.
2568
951f9df5
GM
25692000-12-22 Gerd Moellmann <gerd@gnu.org>
2570
856ff7a7
GM
2571 * window.c (size_window): When setting the window's too_small_ok
2572 flag, compare old size with minimum size depending on WIDTH_P,
2573 don't compare with window_min_width.
52283633 2574
951f9df5
GM
2575 * window.c (delete_window): Simplify somewhat.
2576 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2577 freeing window matrices. The flag windows_or_buffers_changed is
2578 set, so the next redisplay will consider all windows; this should
2579 suffice.
2580
886bc933
KH
25812000-12-22 Kenichi Handa <handa@etl.go.jp>
2582
2583 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2584
2585 * ccl.h (struct ccl_program): New member cr_consumed.
2586
2587 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2588 (CCL_READ_CHAR): Handle EOL conversion here.
2589 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2590
177f4e88
GM
25912000-12-21 Gerd Moellmann <gerd@gnu.org>
2592
52283633 2593 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2594
2595 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2596 otherwise tabs of different size compare equal.
2597
2598 * callint.c (Fcall_interactively): Prevent a compiler warning.
2599
2600 * print.c (print_unwind): Return nil.
2601 (PRINTDECLARE): Initialize all local variables.
2602 (print_preprocess): Add a default case.
2603
8e15274f
GM
2604 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2605
2606 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2607
52283633 2608 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2609 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2610
2611 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2612
2613 * dispnew.c (ensure_frame_matrix): Removed.
2614 (save_frame_matrix, restore_frame_matrix): New functions.
2615 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2616
2617 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2618 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2619
99012074
AI
26202000-12-21 Andrew Innes <andrewi@gnu.org>
2621
2622 * w32term.c (x_update_begin): Regenerate the palette here, rather
2623 than for each window.
2624
2625 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2626 palette is NULL, since this corrupts memory! Also get
2627 display_info reference from frame.
2628
29ef7d2d
JR
26292000-12-21 Jason Rumney <jasonr@gnu.org>
2630
2631 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2632
2633 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2634 to avoid returning without releasing it.
3e27fa1f 2635
3f9d67a6
KH
26362000-12-21 Kenichi Handa <handa@etl.go.jp>
2637
587fc3f9
KH
2638 * keymap.c (push_key_description): Don't convert eight-bit-control
2639 and eight-bit-graphic to multibyte character.
2640
3f9d67a6
KH
2641 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2642 generic character and CODE1 is nil, return the smallest character
2643 in CHARSET.
2644
774ba8c9
DL
26452000-12-20 Dave Love <fx@gnu.org>
2646
2647 * s/osf5-0.h (NSIG): Don't redefine.
2648
88416888
SM
26492000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2650
2651 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2652 excluding menu-bar and tool-bar.
2653 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2654 (menu_item_p): Remove.
2655 (where_is_internal_1): Don't ignore menu-items.
2656
a6426c6f
GM
26572000-12-20 Gerd Moellmann <gerd@gnu.org>
2658
03ff8aab
GM
2659 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2660 into account.
2661
2662 * window.c (make_window): Initialize window's min_hscroll.
2663 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2664 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2665 to zero.
2666 (struct saved_window): New member min_hscroll.
2667 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2668 (Fset_window_configuration): Set window's min_hscroll.
2669 (save_window_save): Save window's min_hscroll.
2670 (compare_window_configurations): Compare min_hscroll values.
2671
2672 * window.h (struct window): New member min_hscroll.
2673
2674 * keyboard.c (echo_prompt): Prevent a compiler warning.
2675
8de4aaf8
GM
2676 * xdisp.c (try_cursor_movement): Fix last change. The real
2677 condition is that PT is at the end of the row, and should
2678 be displayed at the start of the next row.
52283633 2679
3f7e3031
GM
2680 * xdisp.c (try_cursor_movement): If we end on a partially
2681 visible line, end we already decided to scroll, return -1.
2682
a6426c6f
GM
2683 * dispextern.h (ensure_frame_matrix): Add prototype.
2684
2685 * window.c (delete_window, Fsplit_window)
2686 (Fset_window_configuration): Call ensure_frame_matrix.
2687
52283633
SM
2688 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
2689 New functions.
a6426c6f
GM
2690 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2691 completed, call fake_current_matrices instead of marking frame
2692 garbaged.
2693
57fa2774
JR
26942000-12-20 Jason Rumney <jasonr@gnu.org>
2695
2696 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2697
d925df90
EZ
26982000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2699
2700 * fns.c (Frequire): Doc fix.
2701
7b93a85b
GM
27022000-12-19 Gerd Moellmann <gerd@gnu.org>
2703
52283633 2704 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 2705
c74e645b
GM
2706 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2707 currently displaying a message.
2708
7b93a85b
GM
2709 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2710 xterm.h.
2711 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2712
90d97e64
AI
27132000-12-18 Andrew Innes <andrewi@gnu.org>
2714
2715 * w32.c (w32_strerror): New function.
2716
2717 * w32.h (w32_strerror): New extern.
2718
2719 * w32fns.c (Fw32_shell_execute): Use it.
2720
91c9e6ce
GM
27212000-12-18 Gerd Moellmann <gerd@gnu.org>
2722
2723 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2724
6f4745e2
EZ
27252000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2726
2727 * msdos.c (IT_set_face): Obey inverse_video.
2728
c9e088ce
KH
27292000-12-18 Kenichi Handa <handa@etl.go.jp>
2730
2731 * dired.c (directory_files_internal): Always return decoded filenames.
2732
c3695f5f
GM
27332000-12-18 Gerd Moellmann <gerd@gnu.org>
2734
52d8e4ff
GM
2735 * xterm.c (x_connection_closed): Prevent being called recursively
2736 because of an error condition in XtCloseDisplay.
52283633 2737
62be9979
GM
2738 * xdisp.c (init_iterator): If noninteractive, and the frame's
2739 face cache is null, make one.
2740
52283633 2741 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 2742
c3695f5f
GM
2743 * process.c (wait_reading_process_input): Check for pending
2744 input when running timers.
2745
78555fbe
EZ
27462000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2747
52283633 2748 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 2749
b2b36264
KH
27502000-12-18 Kenichi Handa <handa@etl.go.jp>
2751
2752 * process.c (read_process_output): Don't run a filter if the code
2753 decoder produces nothing but carryover.
2754
9c543fbf
AI
27552000-12-17 Andrew Innes <andrewi@gnu.org>
2756
2757 * w32.c (sys_rename): Only check errno against EEXIST, and not
2758 EACCES, when determining whether rename failed because the target
2759 exists. This was resulting in indefinite looping on Windows 9x if
2760 the source file was locked by another process.
2761
2762 * w32fns.c (Ffile_system_info): New function.
2763 (syms_of_w32fns): Defsubr it.
2764
10c2b5a8
GM
27652000-12-17 Gerd Moellmann <gerd@gnu.org>
2766
b0228ace
GM
2767 * window.c (coordinates_in_window): Fix computation for
2768 position on vertical line between mode lines.
2769
10c2b5a8
GM
2770 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2771 Don't alter tip_frame or tip_window.
2772 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2773 was deleted.
2774
c844a81a
GM
2775 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2776 Don't alter tip_frame or tip_window.
2777 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2778 was deleted.
2779
6c825f8e
EZ
27802000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2781
2782 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2783 be consistent with the doc string. Reported by NAKAJIMA Mikio
2784 <minakaji@osaka.email.ne.jp>.
2785
af4bb4c8
KH
27862000-12-16 Kenichi Handa <handa@etl.go.jp>
2787
2788 * xfaces.c (Vface_ignored_fonts): New variable.
2789 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2790 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2791
8062e53a
GM
27922000-12-15 Gerd Moellmann <gerd@gnu.org>
2793
e87b8809
GM
2794 * dispnew.c (update_window): Detect pending input every nth line
2795 updated, i.e. do it depending on real work done, and not on the
2796 vpos of the line.
2797
2798 * xterm.c (expose_window): Don't redraw the window that's
2799 currently being updated.
2800
a6768cc5
GM
2801 * window.c (Fset_window_point): Remove test for
2802 cursor_in_non_selected_windows.
2803
4ea7fdca
GM
2804 * lread.c (read1): Recognize end of file after `\\'.
2805
8062e53a
GM
2806 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2807 not unwind_create_frame.
2808
bb7959c1
GM
28092000-12-15 Dave Love <fx@gnu.org>
2810
2811 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2812 bcopy & al.
2813
2814 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2815
ced04c42
KH
28162000-12-15 Kenichi Handa <handa@etl.go.jp>
2817
c5443913
KH
2818 * coding.c (setup_coding_system): Clear all members of the struct
2819 coding_system at first.
bc137305
KH
2820 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2821 argument.
2822 (code_convert_region): Don't override coding->src_multibyte and
2823 coding->dst_multibyte.
c5443913 2824
ced04c42
KH
2825 * fns.c (Fmd5): Docstring improved.
2826
c2d7f289
MB
28272000-12-15 Miles Bader <miles@gnu.org>
2828
2829 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2830 are actually marked as mode-lines; otherwise use
2831 estimate_mode_line_height.
2832
9d7d9263
GM
28332000-12-14 Gerd Moellmann <gerd@gnu.org>
2834
2835 * editfns.c (Fformat): Prevent a buffer overrun when the format
2836 specifies a precision.
2837
7cf0153a
EZ
28382000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2839
2840 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2841 argument is outside the range [2..3].
2842
1de0f662
AI
28432000-12-14 Andrew Innes <andrewi@gnu.org>
2844
2845 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2846 nothing to do. Bind inhibit-quit.
2847 (tip_frame): Make it a Lisp_Object.
2848 (x_create_tip_frame): Set tip_frame after it has been added to
2849 Vframe_list.
2850 (Fx_show_tip): Don't set tip_frame here.
52283633 2851 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
2852 (unwind_create_frame, unwind_create_tip_frame): New functions.
2853 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2854 while a frame is only partially constructed.
2855
2856 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2857 (x_free_frame_resources): New function.
2858 (x_destroy_window): Use it.
2859
02387dcc
GM
28602000-12-14 Gerd Moellmann <gerd@gnu.org>
2861
2862 * xfns.c (Fx_backspace_delete_keys_p): New function.
2863 (syms_of_xfns): Defsubr it.
2864
2865 * config.in (HAVE_XKBGETKEYBOARD): Add.
2866
0544ef49
KH
28672000-12-14 Kenichi Handa <handa@etl.go.jp>
2868
98d62747
KH
2869 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2870 Always store string in multibyte representation in echobuf.
2871 (echo_char): Always store string in multibyte representation in
2872 echobuf.
2873 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2874 (read_key_sequence): Adjusted for the change of echo_prompt.
2875
a20193cd
KH
2876 * fns.c (Fmd5): Docstring improved.
2877
191b83b6
KH
2878 * lisp.h (detect_coding_system): Prototype adjusted.
2879
0544ef49
KH
2880 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2881 (detect_coding_emacs_mule, detect_coding_iso2022,)
2882 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
2883 (detect_coding_utf_16, detect_coding_ccl): Make them static.
2884 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
2885 (detect_coding_mask, detect_coding_system): New argument
2886 MULTIBYTEP. Callers changed.
1da1bb05
KH
2887 (decode_coding_string): Set coding->src_multibyte and
2888 coding->dst_multibyte before calling detect_coding and detect_eol.
2889 Update them after some coding system is detected.
52283633 2890
d5b3eb1b
SM
28912000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2892
2893 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2894
2895 * keyboard.c (menu_bar_items, tool_bar_items):
2896 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2897
f7f8bb69
GM
28982000-12-13 Gerd Moellmann <gerd@gnu.org>
2899
52283633 2900 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
2901 New variables.
2902 (unwind_create_frame, unwind_create_tip_frame): New functions.
2903 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2904 while a frame is only partially constructed.
2905
2906 * xterm.h (x_free_frame_resources): Declare.
2907
2908 * xterm.c (x_free_frame_resources): New function.
2909 (x_destroy_window): Use it.
2910
e10da507
GM
2911 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2912 don't interrupt the update for pending input initially, i.e.
2913 update at least some lines.
2914
2915 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 2916
d5b3eb1b 2917 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2918
2919 * xfns.c (gray_bitmap_bits): Declare `char *'.
2920
90aa2856
GM
29212000-12-12 Gerd Moellmann <gerd@gnu.org>
2922
2923 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2924 lines start with a relief line.
2925
a308c9cd
DL
29262000-12-12 Dave Love <fx@gnu.org>
2927
2928 * window.c (Fdisplay_buffer): Doc fix.
2929 (Fwindow_list): Remove unused var.
2930
2931 * buffer.h (mmap_set_vars): Declare.
2932
2933 * window.h (Fset_window_point): Declare.
2934
d575011f
EZ
29352000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2936
bf6282d2 2937 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
2938 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
2939 variable `area'. When looking for a row under (X,Y), give up if some
2940 of the previous rows is not enabled.
d575011f 2941
ecf4d726
GM
29422000-12-12 Gerd Moellmann <gerd@gnu.org>
2943
2ebf6139
GM
2944 * window.c (Fset_window_point): If displaying cursors in windows
2945 other than the selected window, make sure redisplay updates
2946 other windows to show the new value of point in the window.
2947
2948 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2949
bfdb75ee
GM
2950 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2951 the buffer is the sole visible buffer when in the mini-buffer.
2952
52283633 2953 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
2954 Bind `inhibit-read-only' to t.
2955 (unwind_with_echo_area_buffer): Use AREF.
2956
c0006262
GM
2957 * xfns.c (Fx_hide_tip): Simplified.
2958
52283633
SM
2959 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
2960 instead of `1'.
e9a59cad 2961
ecf4d726
GM
2962 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2963
e5959a9a
GM
29642000-12-11 Gerd Moellmann <gerd@gnu.org>
2965
a3642e49 2966 * xfns.c (Fx_hide_tip): Fix last change.
52283633 2967
44b5a125
GM
2968 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2969 nothing to do. Bind inhibit-quit.
2970 (tip_frame): Make it a Lisp_Object.
2971 (x_create_tip_frame): Set tip_frame after it has been added to
2972 Vframe_list.
2973 (Fx_show_tip): Don't set tip_frame here.
2974
2975 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2976
2977 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2978 Lisp_Object.
2979
2980 * dispextern.h: Change external declaration of tip_frame.
2981
d990421f
GM
2982 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2983 return an empty string.
2984
4db87380
GM
2985 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2986 of the window's update_mode_line flag, since the former is set by
2987 force-mode-line-update, not the latter. This makes
2988 column-number-mode slightly faster.
52283633 2989
e5959a9a
GM
2990 * xdisp.c (try_window_id) <all changes above window start>:
2991 Set the cursor.
2992
169fe44e
GM
29932000-12-11 Paul Eggert <eggert@twinsun.com>
2994
2995 * config.in (HAVE_FTELLO): Remove.
2996 (HAVE_FSEEKO): Add.
2997 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2998 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2999 HAVE_FTELLO.
3000 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3001 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3002
59ec59ae
MB
30032000-12-11 Miles Bader <miles@gnu.org>
3004
3005 * window.c (displayed_window_lines): Don't round up when
3006 converting empty space at bottom to lines.
ff904dd6
MB
3007 Handle non-newline-terminated final lines properly.
3008 (Fwindow_text_height): New function (used to be in lisp).
3009 (syms_of_window): Initialize it.
59ec59ae 3010
42ebfa31
SM
30112000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3012
3013 * syntax.c (scan_lists): Check that the right quote char has the
3014 right Sstring syntax when jumping over strings.
3015 (init_syntax_once): Use Smax rather than 13.
3016
5cdb3cf3
MB
30172000-12-09 Miles Bader <miles@gnu.org>
3018
3019 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3020 with PARTIALLY, inverting the sense.
3021 (window_scroll_pixel_based): Scroll partially visible lines into
3022 place if we hit the beginning or end of the buffer.
a12167c5
MB
3023 (displayed_window_lines): Don't include partially visible lines.
3024 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3025
842b2a94
GM
30262000-12-08 Gerd Moellmann <gerd@gnu.org>
3027
3028 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3029
3030 * tparam.c (tparam1): Change the way buffers are reallocated to be
3031 portable and less obfuscated.
3032
3033 * termcap.c (tgetent): Change the way buffers are reallocated to
3034 be portable and less obfuscated.
3035
3036 * macros.c (store_kbd_macro_char): Change the way buffers are
3037 reallocated to be portable and less obfuscated.
3038
3039 * lread.c (read1): Change the way buffers are reallocated to be
3040 portable and less obfuscated.
3041
3042 * doc.c (Fsubstitute_command_keys): Change the way buffers
3043 are reallocated so that it is portable.
3044
137cad7c
EZ
30452000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3046
3047 * dosfns.c (Ffile_system_info): New function.
3048 (syms_of_dosfns): Defsubr it.
3049
5c7f629c
SM
30502000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3051
3052 * alloc.c (gc_sweep): Add comment.
3053
959e647d
GM
30542000-12-07 Gerd Moellmann <gerd@gnu.org>
3055
52283633
SM
3056 * sound.c (vox_configure): Change order of ioctls.
3057 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3058 Ignore errors when changing volume.
3059 (vox_close): Don't reset the device.
3060
926b7e5e
GM
3061 * process.c (read_process_output): Make sure the process marker's
3062 position is valid when the process buffer is changed in
3063 after-change functions. W3 does that.
52283633 3064
959e647d
GM
3065 * xfns.c (x_free_gcs): New function.
3066
3067 * xterm.h (x_free_gcs): Add prototype.
3068
3069 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3070 freeing GCs here.
3071
3072 * xterm.c (x_destroy_window): Call x_free_gcs so that
3073 resources of non-toolkit X windows will be freed.
3074
478ea067
AI
30752000-12-07 Andrew Innes <andrewi@gnu.org>
3076
3077 * w32fns.c (xlfd_charset_of_font): Fix last change.
3078
fbee3231
DL
30792000-12-06 Dave Love <fx@gnu.org>
3080
67292061
DL
3081 * md5.h (__P): Don't define -- it comes from config.h.
3082
fbee3231
DL
3083 * strftime.c: Change some #if foo to #ifdef foo.
3084
4ee87dbb
AI
30852000-12-06 Andrew Innes <andrewi@gnu.org>
3086
3087 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3088
52283633 3089 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3090 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3091 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3092
9765b4a4
GM
30932000-12-06 Gerd Moellmann <gerd@gnu.org>
3094
d285b373
GM
3095 * alloc.c (gc_sweep): Prevent symbols read during loadup
3096 from being freed.
3097
384333ee
GM
3098 * xdisp.c (underlying_face_id): New function.
3099 (handle_face_prop, face_before_or_after_it_pos): Use it
3100 to determine the face ``under'' a string. Let strings inherit
3101 the face of the buffer under them.
3102
3103 * xfaces.c (face_at_string_position): Update function comment.
52283633 3104
d4b72d58
GM
3105 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3106 matrix if the window's left position has changed; we need to
3107 redraw it in this case.
3108
3109 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3110
e1d05387
GM
3111 * window.c (coordinates_in_window): Check mouse on mode-line or
3112 header-line first.
3113
eb1b0c74
GM
3114 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3115 advertized by the function documentation.
3116
d94d636f
GM
3117 * window.c (syms_of_window): Doc fix.
3118
3887b449
GM
3119 * sound.c (vox_configure): Set volume for left and right channel.
3120 (sound_cleanup): Return nil.
3121
efc8f57a
GM
3122 * xdisp.c (move_it_by_lines): Fix paren typo.
3123
9765b4a4
GM
3124 * xterm.c (x_load_font): Don't use the font's max_bounds for
3125 computing the height of the font. If max_bounds' ascent or
3126 descent are greater than the font's ascent or descent, this means
3127 glyphs overlap, which should be handled now by redisplay.
3128
6529ed87
GM
3129 * window.c (Veven_window_heights): New variable.
3130 (syms_of_window): DEFVAR_LISP it.
3131 (Fdisplay_buffer): Check Veven_window_heights before evening the
3132 window heights.
52283633 3133
0eb2ecde
MB
31342000-12-06 Miles Bader <miles@gnu.org>
3135
3136 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3137 update `default-frame-alist' instead of setting no frame parameters.
3138
03d7a167
KH
31392000-12-06 Kenichi Handa <handa@etl.go.jp>
3140
3141 * composite.c (update_compositions): Fix typo (use the correct
3142 variable).
3143
5f8803c2
JR
31442000-12-05 Jason Rumney <jasonr@gnu.org>
3145
3146 * md5.h: Remove underscores from function declarations.
3147 (__attribute__, __alignof__) [!__GNUC__]: Define.
3148
3149 * md5.c: Delay include of md5.h until after namespace cleaning.
3150
c28a075b
JR
3151 * makefile.w32-in (fns.o): Depend on md5.h
3152 (md5.o): New target.
3153 (sunfns.o): Remove.
3154
3155 * makefile.nt: Likewise.
3156
ff3c7056
JR
31572000-12-05 Jason Rumney <jasonr@altavista.net>
3158
3159 * w32term.c (expose_area): Complete last change.
3160
0c21eeeb
KR
31612000-12-05 Ken Raeburn <raeburn@gnu.org>
3162
3163 * minibuf.c: Include intervals.h.
3164
f201d732
JR
31652000-12-05 Jason Rumney <jasonr@gnu.org>
3166
3167 * w32term.c (x_produce_glyphs): If a font for a component of
3168 a composition is not found, use 1 pixel dot ascent and 0 dot
3169 descent value to avoid displaying terribly tall empty boxes.
3170 (expose_area): Pass x-coordinate relative to the exposed
3171 area to x_draw_glyphs instead of a window-relative coordinate.
3172
21999ab9
GM
31732000-12-05 Gerd Moellmann <gerd@gnu.org>
3174
4d2036e4
GM
3175 * xdisp.c (next_element_from_ellipsis): Save face before selective
3176 display in saved_face_id, and set face_before_selective_p.
3177 (reseat_1): Reset face_before_selective_p.
3178 (append_space, extend_face_to_end_of_line): If iterator's
3179 face_before_selective_p is set, use the face from saved_face_id.
3180 (extend_face_to_end_of_line): For tty frames, make sure to
3181 use the right face id when producing spaces at the end of
3182 the line.
3183
3184 * dispextern.h (struct it): Add face_before_selective_p.
3185
52be17cc
GM
3186 * keyboard.c (record_char): Don't record identical help-echo
3187 events in recent_keys.
3188
8a4f36cc
GM
3189 * xterm.c [USE_X_TOOLKIT]: Close the display.
3190 (xim_close_dpy): Handle case that the display has been closed.
3191
57d6e381
GM
3192 * xterm.c (x_destroy_window): Reset the frame's X window after
3193 destroying it.
3194
21999ab9
GM
3195 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3196 variable window_width.
3197 (line_draw_cost): Fix code skipping over spaces at the end of the
3198 line when must_write_spaces is not set.
3199 (scrolling_window): Fix code inserting runs in list of all runs.
3200
91372bb7
KH
32012000-12-05 Kenichi Handa <handa@etl.go.jp>
3202
3203 * coding.c (setup_coding_system): Be sure to initialize
3204 coding->category_idx.
3205
6c083b4c
GM
32062000-12-04 Gerd Moellmann <gerd@gnu.org>
3207
0c68ce6f 3208 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3209
6452929e
GM
3210 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3211 area to x_draw_glyphs instead of a window-relative coordinate.
3212
d7f31e22
GM
3213 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3214 error in the message.
3215
ae18aa3b
GM
3216 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3217 timer after having read a key. It's not good for code reading
3218 several keys in a loop, like an input method.
3219
caa15ef7
GM
3220 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3221 record undo information for format-decode.
3222
3223 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3224 current buffer is read-only, not if it isn't.
3225
6c083b4c
GM
3226 * keyboard.c (record_char): Record `help-echo' input events
3227 in recent_keys only if they display some help. Don't record
3228 `help-echo' events as macro char.
3229
caa15ef7
GM
32302000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3231
3232 * editfns.c (save_excursion_restore): Don't move point
3233 in another window if it is showing the wrong buffer.
3234 Avoid the call to Fwindow_live_p, for speed.
3235
5a13529b
KH
32362000-12-04 Kenichi Handa <handa@etl.go.jp>
3237
e225faa7
KH
3238 * xfaces.c (struct font_name): New member registry_priority.
3239 (split_font_name): Initialize the above member to zero.
3240 (concat_font_list): New function.
3241 (font_list): Include fonts of all alternative registries.
3242 (FONT_POINT_SIZE_QUANTUM): New macro.
3243 (better_font_p): Ignore point size difference less than
3244 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3245
e89648b4
KH
3246 * xterm.c (x_produce_glyphs): If a font for a component of
3247 a composition is not found, use 1 pixel dot ascent and 0 dot
3248 descent value to avoid displaying terribly tall empty boxes.
3249
5a13529b
KH
3250 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3251
d7935eb6
KR
32522000-12-03 Ken Raeburn <raeburn@gnu.org>
3253
3254 * coding.h (code_convert_string1): Declare.
3255
3256 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3257
52283633 3258 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3259
0dd5e255
JR
32602000-12-02 Jason Rumney <jasonr@gnu.org>
3261
3262 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3263 correctly for single byte character case.
3264 (w32_per_char_metric): Do not try to make any assumptions about
3265 the metrics of BDF fonts.
250cfece 3266 (x_estimate_mode_line_height): If `mode-line' face
52283633 3267 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3268 (note_mouse_highlight): Change the cursor shape on the vertical
3269 border between windows [not enabled].
3270
3271 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3272
3273 * w32fns.c (Fx_create_frame): Reintroduce the call to
3274 face-set-after-frame-defaults.
3275 (Vx_window_horizontal_drag_shape): New variable.
3276 (syms_of_xfns): DEFVAR_LISP it.
3277 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3278 enabled].
0dd5e255 3279
b5d8d2ca
GM
32802000-12-02 Simon Josefsson <simon@josefsson.org>
3281
3282 * fns.c (Fmd5): Use a different logic to decide the coding system
3283 to use.
3284
3285 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3286
fbb87147
EZ
32872000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3288
52283633 3289 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3290
447e9da0
GM
32912000-12-01 Gerd Moellmann <gerd@gnu.org>
3292
7708ced0
GM
3293 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3294 height for YNegative.
3295 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3296 height; also see comment there.
3297
447e9da0
GM
3298 * window.c (coordinates_in_window): Handle computations for
3299 positions on the vertical bar and fringes differently for
3300 window-system frames. Consider some pixels near the vertical bar
3301 as on the bar if the frame doesn't have vertical scroll bars.
3302 Associate positions between mode or header lines with the
3303 right window, the left one.
3304
86d1db20
JR
33052000-12-01 Jason Rumney <jasonr@gnu.org>
3306
3307 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3308
3309 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3310 invalid frame.
3311
a1d58e5b
GM
33122000-12-01 Gerd Moellmann <gerd@gnu.org>
3313
52283633 3314 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3315 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3316 (save_window_save, Fset_window_configuration): Save/restore
3317 window's orig_top and orig_height.
3318
89c609af
JR
33192000-12-01 Jason Rumney <jasonr@gnu.org>
3320
4d177746 3321 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3322
89c609af
JR
3323 * w32fns.c (x_set_cursor_color): Fix last change.
3324
eccc05db
GM
33252000-11-30 Gerd Moellmann <gerd@gnu.org>
3326
31b6671b
GM
3327 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3328 sure that the next redisplay displays the minibuffer, so that
3329 the cursor will be replaced with what the minibuffer wants.
3330
eccc05db
GM
3331 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3332 #ifndef instead of using #if.
3333 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3334 USE_TOOLKIT_SCROLL_BARS is defined.
3335
162de750
JR
33362000-11-30 Jason Rumney <jasonr@gnu.org>
3337
3338 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3339 x_display_cursor.
3340
693c4692
GM
33412000-11-30 Gerd Moellmann <gerd@gnu.org>
3342
3343 * fns.c (Fmd5): Doc fix.
3344
b5d8d2ca 33452000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3346
3347 * fns.c (Fmd5): New function.
3348 (syms_of_fns): Defsubr md5.
3349
3350 * Makefile.in (obj): Add md5.o
3351
b02cd40b
GM
33522000-11-30 Gerd Moellmann <gerd@gnu.org>
3353
edfb795e
GM
3354 * md5.h, md5.c: New files, taken from glibc.
3355
df3aedcf
GM
3356 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3357
b02cd40b 3358 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3359 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3360
8b5176cd
SM
33612000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3362
3363 * eval.c (Frun_hooks): Allow 0 arguments.
3364
346598f1
GM
33652000-11-29 Gerd Moellmann <gerd@gnu.org>
3366
f9396e03
GM
3367 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3368 is over the menu bar widget, say it's not on the frame.
3369
4a967a9b
GM
3370 * xfns.c (Fx_create_frame): Reintroduce the call to
3371 face-set-after-frame-defaults.
3372
346598f1
GM
3373 * eval.c (Fsignal): Reset handling_signal.
3374
222456a1
JR
33752000-11-28 Jason Rumney <jasonr@gnu.org>
3376
3377 * w32menu.c (add_menu_item): Reset menu item text when changing
3378 type to radio button.
3379
8049ddc0
GM
33802000-11-28 Gerd Moellmann <gerd@gnu.org>
3381
346598f1 3382 * xselect.c: Update copyright.
f4f4ee4d 3383
bebe4a2c
GM
3384 * window.c (coordinates_in_window): If on a mode or header line,
3385 but sufficiently close to its start, return ``on vertical
3386 border''. This gives us a way to drag windows horizontally when
3387 using toolkit scroll bars.
3388
3389 * xterm.c (note_mouse_highlight): Change the cursor shape
3390 on the vertical border between windows.
3391
3392 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3393
3394 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3395 (syms_of_xfns): DEFVAR_LISP it.
3396 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3397
8d2c2642
GM
3398 * textprop.c (text_read_only): New function.
3399 (verify_interval_modification): Use it instead of signaling
3400 `text-read-only'. This makes it easier to catch this error
52283633 3401 with a breakpoint.:
8d2c2642 3402
52283633 3403 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3404 not end of line, which includes CR.
3405
5a2bae6c
KH
34062000-11-28 Kenichi Handa <handa@etl.go.jp>
3407
3408 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3409 include no-conversion.
3410
ae31f84d
JR
34112000-11-27 Jason Rumney <jasonr@gnu.org>
3412
3413 * w32fns.c (w32_load_system_font): Always mark font as double byte
3414 if codepage is unicode.
3415
67f1cf4c
GM
34162000-11-27 Gerd Moellmann <gerd@gnu.org>
3417
4a74d071 3418 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3419 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3420
902ae620
GM
3421 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3422 `vertical-line', `mode-line' and `header-line' events.
3423
3424 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3425 of a character, a TAB for instance. This is easier than to set
3426 up the iterator exactly, and it's not a frequent case, so the
3427 additional effort wouldn't really pay off.
3428
c1e279c2
AC
34292000-11-26 Andrew Choi <akochoi@i-cable.com>
3430
67f1cf4c 3431 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3432 init_window_once.
3433
a609568a
JR
34342000-11-25 Jason Rumney <jasonr@gnu.org>
3435
52283633
SM
3436 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3437 Args to window_from_coordinates should be pixel coordinates.
48b21762 3438
a609568a
JR
3439 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3440 redisplay handles them properly.
3441
a658d039
MB
34422000-11-25 Miles Bader <miles@gnu.org>
3443
3444 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3445
d3416cca
JR
34462000-11-24 Jason Rumney <jasonr@gnu.org>
3447
3448 * w32.c (init_environment): Set LANG environment variable based on
3449 locale settings, if not set.
3450
3451 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3452 making tool bar smaller. When clearing the frame, also
3453 clear current matrices. Clear frame when tool bar disappears.
3454 Don't use more lines for the tool-bar than is available.
3455 (x_change_window_heights): New function.
3456
ba193890
GM
34572000-11-24 Gerd Moellmann <gerd@gnu.org>
3458
2be8f184
GM
3459 * xdisp.c (init_from_display_pos): If POS says we're already after
3460 an overlay string ending at POS, make sure to pop the iterator
3461 because it will be in front of that overlay string. When POS is
3462 ZV, we've thereby also ``processed'' overlay strings at ZV.
3463
ba193890
GM
3464 * xfaces.c (lface_from_face_name): Function comment fix.
3465
1862a24e
MB
34662000-11-24 Miles Bader <miles@gnu.org>
3467
3468 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3469 apply `mode-line-inverse-video' -- zero means force display using
3470 the default face, non-zero means display using the specialized face.
3471 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3472
f07fa1b8
KH
34732000-11-23 Kenichi Handa <handa@etl.go.jp>
3474
3475 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3476 hard coded `4'.
3477
2bcdf662
EZ
34782000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3479
3480 * coding.c (decode_coding_emacs_mule): Fix the case of
3481 CODING_EOL_LF, which used uninitialized value of c.
3482
ba8299ff
SM
34832000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3484
3485 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3486
f4117c4d
GM
34872000-11-22 Gerd Moellmann <gerd@gnu.org>
3488
03e757c1
GM
3489 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3490 buffer object.
3491
f4117c4d
GM
3492 * frame.h (struct frame): Replace desired_tool_bar_items,
3493 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3494 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3495
3496 * frame.c (make_frame): Change initialization of tool bar
3497 items accordingly.
3498
3499 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3500 Change references to members deleted from struct frame to use the
f4117c4d
GM
3501 new ones.
3502
3503 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3504 references to members deleted from struct frame to use the new ones.
f4117c4d 3505
52283633 3506 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3507
3508 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3509
3510 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3511 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3512 from struct frame to use the new ones.
3513
f8e2f3f2
MB
35142000-11-23 Miles Bader <miles@gnu.org>
3515
3516 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3517 the face's inverse-video attribute, rather than overriding it.
3518
60e8e0a5
GM
35192000-11-22 Gerd Moellmann <gerd@gnu.org>
3520
3521 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3522 making tool bar smaller.
3523
92dd1b29
DL
35242000-11-22 Dave Love <fx@gnu.org>
3525
3526 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3527
e672fdce
MB
35282000-11-22 Miles Bader <miles@gnu.org>
3529
3a17d6cc
MB
3530 * keyboard.c (Vminibuffer_message_timeout): New variable.
3531 (command_loop_1): Use it to determine message timeout.
3532 (syms_of_keyboard): Initialize it.
3533
60e8e0a5 3534 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3535
e9655d81
KH
35362000-11-22 Kenichi Handa <handa@etl.go.jp>
3537
3538 * sysdep.c: Move the code for declaring h_errno after #include
3539 <netdb.h>.
3540
77270fac
GM
35412000-11-21 Gerd Moellmann <gerd@gnu.org>
3542
cd913aae
GM
3543 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3544 the menu bar when the tooltip is unmapped.
3545
77270fac
GM
3546 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3547 sole visible buffer when we're currently in the mini-buffer, and
3548 give up if so.
52283633 3549
556635d6
JR
35502000-11-21 Jason Rumney <jasonr@gnu.org>
3551
3552 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3553 put on the clipboard.
3554 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3555 copy of what Emacs last put there. If they are the same, do not
52283633 3556 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3557
5b7bde64
MB
35582000-11-22 Miles Bader <miles@gnu.org>
3559
3560 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3561 (syms_of_minibuf): Initialize it.
3562 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3563 to prompt, don't make read-only.
3564
ff23e1dd
GM
35652000-11-21 Gerd Moellmann <gerd@gnu.org>
3566
52283633
SM
3567 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3568 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3569
7aaf4388
GM
3570 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3571
f5f47add 3572 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3573
ff23e1dd
GM
3574 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3575
37c35586
KH
35762000-11-21 Kenichi Handa <handa@etl.go.jp>
3577
3578 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3579 ... #endif scope.
3580
ff9ab414
GM
35812000-11-20 Gerd Moellmann <gerd@gnu.org>
3582
52283633 3583 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3584 screen supports it.
3585
29a01b72
GM
3586 * s/gnu-linux.h: Don't use `#cpu'.
3587
09dfdf85
GM
3588 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3589 not defined in mman.h.
3590
52283633 3591 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3592 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3593 and store an index in the XClientMessageEvent. Storing a
3594 Lisp_Object or pointer can fail on a 64 bit system, since X only
3595 transfers 32 bits.
52283633
SM
3596 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3597
81459ac9
DL
35982000-11-20 Dave Love <fx@gnu.org>
3599
3600 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3601
56c13ae6
GM
36022000-11-20 Gerd Moellmann <gerd@gnu.org>
3603
3604 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3605
495a6df3
KH
36062000-11-20 Kenichi Handa <handa@etl.go.jp>
3607
2bcf3714
KH
3608 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3609 by WIDTH.
3610
495a6df3
KH
3611 * alloc.c (make_string): Fix previous change. Be sure to make
3612 unibyte string correctly.
3613
6d950f4c
GM
36142000-11-19 Gerd Moellmann <gerd@gnu.org>
3615
39b39373
GM
3616 * window.c (Fwindow_list): Change parameter list to be XEmacs
3617 compatible.
3618 (window_list_1): New function.
3619 (window_loop): Use it instead of Fwindow_list.
3620
b95b34e5
GM
3621 * sysdep.c (emacs_ospeed): New variable.
3622 (toplevel): Don't declare ospeed extern.
3623 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3624
3625 * termcap.c (ospeed): Remove.
3626 (tputs) [!emacs]: Remove unused code.
3627 (tgetent): Avoid a compiler warning.
3628
e83dc917
GM
3629 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3630 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3631 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3632
3633 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3634 removed.
3635 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3636 Take the X display as additional argument.
3637 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3638 `Widget' is a pointer type that's not easily stored in Lisp_Object
3639 form in a portable way.
52283633 3640
6d950f4c
GM
3641 * dispnew.c (update_text_area): Fix last change.
3642
e47306e6
GM
36432000-11-18 Gerd Moellmann <gerd@gnu.org>
3644
fb3cd89b
GM
3645 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3646
3647 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3648 clear current matrices.
3649
edaa9aed
GM
3650 * buffer.c (mmap_enlarge): Don't print a message on stderr
3651 if mapping new memory at the end of the existing region fails.
3652
e47306e6
GM
3653 * dispnew.c (update_text_area): Don't skip over equal glyphs
3654 when the last current glyph overlaps the glyph to its right.
3655
509633e3
MB
36562000-11-18 Miles Bader <miles@gnu.org>
3657
3658 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3659 lines that *end* with "..." too (that's the most common case!).
3660
d392e9c5
GM
36612000-11-18 Gerd Moellmann <gerd@gnu.org>
3662
67988445
GM
3663 * xdisp.c (resize_mini_window): Temporarily change to the
3664 mini-window's buffer if necessary.
1bfdbe43 3665
d392e9c5
GM
3666 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3667 the tooltip obscures less text under it.
3668
36692000-11-17 Gerd Moellmann <gerd@gnu.org>
3670
3671 * puresize.h (BASE_PURESIZE): Increase to 700000.
3672
92bb977f
JR
36732000-11-18 Jason Rumney <jasonr@gnu.org>
3674
3675 * w32term.c (w32_draw_bitmap): Use face to set colors.
3676
26fbf20b
DL
36772000-11-17 Dave Love <fx@gnu.org>
3678
3679 * lread.c (Fload): Fix #ifdef for pcc.
3680
100b593b
GM
36812000-11-17 Gerd Moellmann <gerd@gnu.org>
3682
3683 * xdisp.c (pos_visible_p): Compute the default character height
3684 differently.
3685
a288d0d1
GM
36862000-11-16 Gerd Moellmann <gerd@gnu.org>
3687
cac94de6 3688 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 3689 knowing the line's height; use the default font's height in that case.
cac94de6 3690
a288d0d1
GM
3691 * xfaces.c (weight_table): Add `demi' with the same meaning as
3692 `demibold'.
3693
981fb6f6
KH
36942000-11-16 Kenichi Handa <handa@etl.go.jp>
3695
2cca872d 3696 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3697 (clear_glyph_row): Delete local static variable null_row.
3698
e5fa381b
JR
36992000-11-15 Jason Rumney <jasonr@gnu.org>
3700
3701 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3702 (w32_alloc_lighter_color): Use new brightness calculations from
3703 xterm.c. Scale delta to be in the range expected by W32.
3704 (w32_draw_relief_rect): Use frame relief colors.
3705
8e42f043
GM
37062000-11-15 Gerd Moellmann <gerd@gnu.org>
3707
6d133d1f
GM
3708 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3709 (Qinhibit_default_face_x_resources): New variable.
3710 (syms_of_frame): Initialize it.
3711 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3712
3713 * xdisp.c (pos_visible_p): Improve function comment.
3714
3715 * lisp.h (BINDING_STACK_SIZE): New macro.
3716
8e42f043
GM
3717 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3718 reading the directory if readdir returns null and errno is EAGAIN
3719 or EINTR.
3720
e8c87124
SM
37212000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3722
3723 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3724 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3725 Set amount_to_scroll to max of dx and scroll_step so that
3726 scroll-conservatively doesn't defeat scroll-step>1.
3727 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3728 scroll-conservatively for line-at-a-time scrolling.
3729
5f0c971d
GM
37302000-11-14 Gerd Moellmann <gerd@gnu.org>
3731
3732 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3733 extra argument.
3734
3735 * xdisp.c (current_mode_line_height, current_header_line_height):
3736 New variables.
3737 (init_xdisp): Initialize them.
3738 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3739 and use exact mode line heights if it is set.
3740
3741 * lisp.h (pos_visible_p): Change prototype.
3742
3743 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3744 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3745 and current_header_line_height first.
52283633
SM
3746 (current_mode_line_height, current_header_line_height):
3747 Declare extern.
5f0c971d 3748
d7361edf
MB
37492000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3750
3751 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3752 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3753 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3754
ee5e440a
MB
37552000-11-14 Miles Bader <miles@gnu.org>
3756
3757 * xterm.c (x_alloc_lighter_color): Include an additive component
3758 too for dark colors, because FACTOR isn't enough.
3759 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3760 New macros.
3761
5ca020fc
GM
37622000-11-13 Gerd Moellmann <gerd@gnu.org>
3763
3764 * keyboard.c (show_help_echo): Call message3_nolog with number of
3765 bytes in the help string as 2nd parameter, instead of the number
3766 of characters.
3767
9d348294
MB
37682000-11-13 Miles Bader <miles@gnu.org>
3769
3770 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3771 (Fload): Use new openp return protocol.
3772 Don't try to use Vload_source_file_function to load .elc files.
3773 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3774 openp return protocol.
3775 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3776
1729bb9a
KH
37772000-11-11 Kenichi Handa <handa@etl.go.jp>
3778
4e677396
KH
3779 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3780
3781 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3782 Defined these macros.
3783 (NLIST_STRUCT): Avoid re-defining it.
3784
1729bb9a
KH
3785 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3786 -I/usr/contrib/X11R6/include.
3787 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3788
a82fe213
JR
37892000-11-10 Jason Rumney <jasonr@gnu.org>
3790
3791 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3792
3793 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3794 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3795
3796 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3797 (Qw32_charset_vietnamese): New symbol.
3798 (xlfd_charset_of_font): New function.
3799 (w32_load_system_font): Use it.
3800 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3801 when Vw32_charset_info_alist is nil to ensure default face always
3802 has font. Use Fcar and Fcdr for safety.
3803 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3804 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3805 pseudo-codepages for special cases.
3806 (w32_to_x_font): New parameter to allow charset portion to be
3807 specified where there is many to one mapping. Callers changed.
3808 (w32_list_fonts): Avoid listing fonts that won't display.
3809
52d89894
GM
38102000-11-10 Gerd Moellmann <gerd@gnu.org>
3811
3812 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3813 (font_list_1): Renamed from font_list.
3814 (font_list): New function, trying alternative registries from
3815 Vface_alternative_font_registry_alist.
3816 (Finternal_set_alternative_font_registry_alist): New function.
3817 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
3818 Vface_alternative_font_registry_alist.
3819 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 3820
651cd3da
KR
38212000-11-09 Ken Raeburn <raeburn@gnu.org>
3822
3823 * lisp.h (Flooking_at): Declare.
3824
388ac098
GM
38252000-11-09 Gerd Moellmann <gerd@gnu.org>
3826
778fbc46 3827 * dired.c (directory_files_internal): Fix a braino.
52283633 3828
388ac098
GM
3829 * dired.c (directory_files_internal): Add missing GCPRO's.
3830 Some cleanup.
3831
ecaedde1
GM
38322000-11-08 Gerd Moellmann <gerd@gnu.org>
3833
f7eb32aa
GM
3834 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3835 (resize_mini_window): Return quickly if Vresize_mini_window is
3836 nil. Don't return if Vmax_mini_window_height is nil.
3837
3838 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3839 (syms_of_xdisp): Initialize them.
3840 (resize_mini_window): Act according to the setting of
3841 Vresize_mini_window.
3842 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3843
ecaedde1
GM
3844 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3845 scroll bar widget after configuring it, so that it will appear at
3846 the right position from the start.
3847 (XTredeem_scroll_bar): Cleaned up.
3848
3747ef2c
KH
38492000-11-08 Kenichi Handa <handa@etl.go.jp>
3850
3851 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3852 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3853 division by two.
3854
3855 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3856
03391420
DL
38572000-11-07 Dave Love <fx@gnu.org>
3858
7758f1c1 3859 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3860
3861 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3862
b5de343d
GM
38632000-11-07 Gerd Moellmann <gerd@gnu.org>
3864
acad3c0b
GM
3865 * window.c (Fset_window_configuration): Don't try to preserve
3866 point in the current buffer, if that buffer is displayed in more
3867 than one window.
3868
b5de343d
GM
3869 * xfaces.c (lookup_named_face): If default face isn't realized,
3870 try to realize it. Return -1 if not successful.
3871 (Fx_list_fonts): Handle case that face cannot be determined.
3872 (Fface_font): Likewise.
3873
cdb1fe49
GM
38742000-11-06 Gerd Moellmann <gerd@gnu.org>
3875
3876 * window.c (displayed_window_lines): Detect partially
3877 visible lines at the bottom correctly.
3878
d3a67486
SM
38792000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3880
3881 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3882 when ensuring we don't do visit in indirect buffer.
3883
ff8dd5d5
KH
38842000-11-06 Kenichi Handa <handa@etl.go.jp>
3885
3886 * composite.h (compose_chars_in_text): Add prototype.
3887
3888 * composite.c (Vcomposition_function_table): New variable.
3889 (Qcomposition_function_table): New variable.
3890 (run_composition_function): Call
3891 Vcompose_chars_after_function with three arguments.
3892 (compose_chars_in_text): New function.
3893 (syms_of_composite): Modified the doc-string of
3894 Vcompose_chars_after_function. Declare composition-function-table
3895 as a lisp variable, and initialize it.
3896
3897 * xfns.c (x_encode_text): Suppress producing escape sequences for
3898 composition.
3899
3900 * xselect.c: Include composite.h.
3901 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3902
d1145f85
AI
39032000-11-05 Andrew Innes <andrewi@gnu.org>
3904
3905 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3906
3907 * sysdep.c (read_input_waiting): Remove extraneous argument to
3908 read_socket_hook.
3909
3910 * w32fns.c (Fx_server_version): Include w32_build_number in the
3911 return list.
3912
3913 * w32heap.c (w32_build_number): New variable.
3914 (cache_system_info): Set it.
3915
3916 * w32heap.h (w32_build_number): Add extern.
3917
3918 * emacs.c (syms_of_emacs): Update docstring for
3919 system-configuration, to reflect the actual usage on MS-Windows.
3920
e85ee976
GM
39212000-10-31 Gerd Moellmann <gerd@gnu.org>
3922
26dcb81b
GM
3923 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3924 process idle timers while waiting for another event.
3925
52283633 3926 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
3927 the default face are colored.
3928
e85ee976
GM
3929 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3930 window height hasn't changed.
3931
01b220b6
JR
39322000-10-31 Jason Rumney <jasonr@gnu.org>
3933
3934 * w32term.c (x_produce_glyphs): Handle composite characters.
3935 (x_draw_glyph_string_foreground)
3936 (x_draw_composite_glyph_string_foreground): Restore old font.
3937
4e6b7204
MB
39382000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3939
3940 * minibuf.c (read_minibuf): Reset the undo history just before
3941 starting the recursive-edit.
3942
d4358b37
GM
39432000-10-30 Gerd Moellmann <gerd@gnu.org>
3944
563f68f1
GM
3945 * xfaces.c (menu_face_change_count): New variable.
3946 (Finternal_set_lisp_face_attribute): Increment it for changes
3947 of the `menu' face.
3948 (realize_basic_faces): Reflect changes in the `menu' faces
3949 in menu bars.
3950
82e274d1
GM
3951 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3952 dy obtained from the iterator's y-position after moving from
3953 scroll_margin_pos to PT; see comment there.
52283633 3954
0dbf9fd2
GM
3955 * xdisp.c (safe_eval_handler): Call add_to_log.
3956
906b3b14
GM
3957 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3958 is not a symbol or string.
3959
d4358b37
GM
3960 * xdisp.c (echo_area_display): Don't perform a display update from
3961 inside redisplay. The update will happen anyway at the end of
3962 redisplay, and it can confuse redisplay (GC messages while
3963 redisplaying, for instance.)
3964
70c825df
SM
39652000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3966
cf9b4b0b
SM
3967 * xrdb.c (x_load_resources): Use the class name in the defaults.
3968
70c825df
SM
3969 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3970 (regex_compile): Catch bogus \(\1\).
3971
a1d34b1e
GM
39722000-10-30 Gerd Moellmann <gerd@gnu.org>
3973
cae71efe
GM
3974 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3975 RGB values.
52283633 3976
35efe0a1
GM
3977 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3978 we have a color cache, check that the cached color equals the
3979 allocated color. If not, clear the color cache.
3980
1d3baf74
GM
3981 * window.c (displayed_window_lines): Change buffers if necessary.
3982 Fix computation of displayed lines.
3983
a1d34b1e
GM
3984 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3985 update_menu_bindings to DEFVAR_BOOL.
3986
70737ea9
KH
39872000-10-30 Kenichi Handa <handa@etl.go.jp>
3988
70c825df 3989 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3990
fa0cb51d
KH
3991 * puresize.h (BASE_PURESIZE): Increase to 680000.
3992
70737ea9
KH
3993 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3994
0e4c08e8
JR
39952000-10-29 Jason Rumney <jasonr@gnu.org>
3996
3997 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3998
3999 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4000 (w32_cache_char_metrics): Handle possibility that 'x' does not
4001 exist in a BDF font.
4002 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4003
4004 * w32bdf.h (bdffont): Add nchars.
4005
4006 * w32bdf.c (set_bdf_font_info): Set it.
4007 (w32_BDF_TextOut): Swap byte order of double byte characters.
4008 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4009
45b84006
EZ
40102000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4011
4012 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4013 don't override the colors in frame's param_alist, unless they are
4014 unspecified.
4015
4016 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4017 reverse the effect of the highlight flag.
4018
caf9deee
KR
40192000-10-27 Ken Raeburn <raeburn@gnu.org>
4020
4021 * window.h (Fwindow_live_p): Declare.
4022
ae0b9b46
KR
4023 * undo.c (record_delete): Check that last_undo_buffer is really a
4024 buffer before applying XBUFFER to it.
4025
4026 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4027 Faref.
4028
02067692
SM
40292000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4030
4031 * lisp.h (KEYMAPP): New macro.
4032 (get_keymap): Remove.
4033 (get_keymap_1): Rename get_keymap.
4034
4035 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4036
4037 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4038
4039 * xmenu.c (single_submenu): Use KEYMAPP.
4040 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4041 Use KEYMAPP rather than Fkeymapp.
4042
4043 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4044
4045 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4046 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4047 Use KEYMAPP rather than Fkeymapp.
4048 (single_submenu): Use KEYMAPP.
4049 (w32_menu_show, w32_dialog_show): Use TRUE.
4050
4051 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4052
4053 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4054 (Fkeymapp): Use KEYMAPP.
4055 (get_keymap): Rename from get_keymap_1. Remove old def.
4056 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4057 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4058 (Fminor_mode_key_binding): Don't raise an error if the binding
4059 is not a keymap.
4060 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4061 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4062
4063 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4064 Allow Vspecial_event_map to be autoloaded.
4065 (menu_bar_items): Fetch the keymap rather than using keymapp.
4066 (menu_bar_one_keymap): No need to follow func-indirect any more.
4067 (parse_menu_item): get_keymap_1 -> get_keymap.
4068 (tool_bar_items): Fetch the keymap rather than using keymapp.
4069 (read_key_sequence): Use KEYMAPP.
4070
4071 * intervals.c (get_local_map): Use get_keymap rather than following
4072 function-indirections explicitly.
4073
4074 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4075
f9d80af3
JR
40762000-10-27 Jason Rumney <jasonr@gnu.org>
4077
4078 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4079 point, as Windows has oversized fonts.
4080
4081 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4082
a3ba27da
GM
40832000-10-27 Gerd Moellmann <gerd@gnu.org>
4084
4085 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4086 (freehook, reallochook): Handle null pointer arguments.
4087 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4088
aa3b80cc
SM
40892000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4090
4091 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4092 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4093 Giving in to popular pressure to shut up the compiler with casts.
4094
e24e84cc
GM
40952000-10-27 Gerd Moellmann <gerd@gnu.org>
4096
4097 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4098 signed value, and use a default value computed from the font's
4099 maximum descent.
4100
05ea7ef2
MB
41012000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4102
4103 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4104 that specify a negative underline position can still use underlines.
4105
4106 * window.c (Fpos_visible_in_window_p): Make POS default to
4107 WINDOW's point, not the current buffer's point.
4108
0b95284b
DL
41092000-10-26 Dave Love <fx@gnu.org>
4110
4111 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4112 when it's necessary.
4113
6c5b90af
GM
41142000-10-26 Gerd Moellmann <gerd@gnu.org>
4115
8b6d9dc9
GM
4116 * window.c (size_window): Compute size difference from sum of old
4117 child window sizes instead of from parent's size.
4118
6bc92b2e
GM
4119 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4120 Handle obscured lines at the top of the window.
4121
4122 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4123 down after the last error condition check.
4124
6c5b90af
GM
4125 * frame.c (Fdelete_frame): Run delete-frame-hook.
4126
42f92d4d
KH
41272000-10-26 Kenichi Handa <handa@etl.go.jp>
4128
4129 * coding.c (decode_coding): Fix previous change (check also
4130 CODING_MODE_LAST_BLOCK).
4131
d97151cb
SM
41322000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4133
e7efc503
SM
4134 * regex.c: More `unsigned char' -> `re_char' changes.
4135 Also change several `int' into `re_wchar_t'.
4136 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4137 (PUSH_FAILURE_POINTER): Don't cast any more.
4138 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4139 We want GCC to complain, since this piece of code makes
4140 re_match non-reentrant, which *should* be fixed.
4141 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4142 (EXTEND_BUFFER): Use RETALLOC.
4143 (SET_LIST_BIT): Don't cast.
4144 (re_wchar_t): New type.
4145 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4146 that those two functions will always properly return.
4147 (IMMEDIATE_QUIT_CHECK): Cast to void.
4148 (analyse_first): Use recursion rather than an explicit stack.
4149 (re_compile_fastmap): Can't fail anymore.
4150 (re_search_2): Don't check re_compile_fastmap for failure.
4151 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4152 Now also sets the new value (passed in a new argument).
4153 (re_match_2_internal): Use it.
4154 Also, use a new var `reg' of type size_t when looping through regs
4155 rather than reuse the inappropriate `mcnt'.
4156
d97151cb
SM
4157 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4158 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4159 (where_is_internal): Renamed from Fwhere_is_internal.
4160 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4161 (Fwhere_is_internal): New function wrapping where_is_internal.
4162 (where_is_internal_1): Handle the case where we're filling the cache.
4163 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4164
d5789b65
MB
41652000-10-25 Miles Bader <miles@gnu.org>
4166
4167 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4168
4ecda532
GM
41692000-10-25 Gerd Moellmann <gerd@gnu.org>
4170
4171 * window.c (pos_fully_visible_p): Removed.
4172 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4173 if position is visible and/or fully visible.
4174
4175 * lisp.h (pos_visible_p): Add prototype.
4176
4177 * xdisp.c (pos_visible_p): New function.
4178
68c3a137
KH
41792000-10-25 Kenichi Handa <handa@etl.go.jp>
4180
4181 * process.c (send_process): If OBJECT is t, it means that the data
4182 is from C string, but we should encode it. Before calling
4183 setup_raw_text_coding_system, be sure to flush out data by the
4184 previous coding system.
4185
7ae1c032
MB
41862000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4187
ff4dcd4b
MB
4188 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4189 assignment of startpos to prev when startpos == pos.
4190
7ae1c032
MB
4191 * editfns.c (find_field): Set the field stickiness correctly from
4192 overlay fields. Use renamed `text_property_stickiness'.
4193 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4194 Only check text properties, not overlays.
7ae1c032
MB
4195 * textprop.c (get_char_property_and_overlay): New function.
4196 (Fget_char_property): Use it.
4197 * intervals.h (get_char_property_and_overlay): Add declaration.
4198
49801145
SM
41992000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4200
4201 * keymap.c: Use AREF, ASET and ASIZE macros.
4202 (Fmake_sparse_keymap): Docstring fix.
4203 (synkey): Remove.
4204 (shadow_lookup): Move up.
4205 Handle the case where lookup-key returns an integer.
4206 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4207 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4208 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4209 Simplify/rewrite the keymap-finding code.
4210 Add check for command shadowing, using shadow_lookup.
4211
39e776cd
SM
42122000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4213
4214 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4215 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4216 a symbol.
4217
2488aba5
AI
42182000-10-24 Andrew Innes <andrewi@gnu.org>
4219
4220 * dired.c (directory_files_internal_unwind): New function.
4221 (directory_files_internal): Use it to ensure closedir is called
4222 even if expand-file-name or file-attributes throw, eg. because of
4223 a user interrupt. Also enable immediate_quit while calling
4224 re_search, so that matching can be interrupted as well.
4225
b94fdf61
AI
42262000-10-24 Andrew Innes <andrewi@gnu.org>
4227
4228 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4229 NT-Emacs only.
4230 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4231 so that re_search functions only quit when callers expect them to.
4232
42332000-10-24 Kenichi Handa <handa@etl.go.jp>
4234
4235 * regex.c (regex_compile): Change the way of handling a range from
4236 a char less than 256 to a char not less than 256.
4237
1946f901
GM
42382000-10-24 Gerd Moellmann <gerd@gnu.org>
4239
7ae2f10f
GM
4240 * window.c (size_window): Prevent setting window's width or
4241 height to a negative value (esp. with XSETFASTINT).
4242
5dcab13e
GM
4243 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4244 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4245 (protect_malloc_state) [GC_MALLOC_CHECK &&
4246 GC_PROTECT_MALLOC_STATE]: New function.
4247 (PROTECT_MALLOC_STATE): New macro.
4248 (__malloc_initialize, morecore, _malloc_internal)
4249 (_free_internal) _realloc_internal): Use it to make _heapinfo
4250 read-only outside of gmalloc.
4251
63e1b552
GM
4252 * keymap.c: Update copyright.
4253
1946f901
GM
4254 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4255 a symbol.
4256
4fa09beb
GM
42572000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4258
4259 * filelock.c (unlock_all_files): Use unlock_file to expand each
4260 buffer's file_truename before trying remove its lock file.
4261
23afac01
EZ
42622000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4263
4264 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4265 or CRLF, decode EOLs.
4266
04448b95
KH
42672000-10-24 Kenichi Handa <handa@etl.go.jp>
4268
4269 * window.c (Fdisplay_buffer): Fix doc.
4270
3090a5a5
JR
42712000-10-23 Jason Rumney <jasonr@gnu.org>
4272
4273 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4274 ASCII font of default fontset on Windows.
4275
4276 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4277 xterm.c comment below).
4278
4279 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4280
a83fee2c
GM
42812000-10-23 Gerd Moellmann <gerd@gnu.org>
4282
4283 * xterm.c (x_connection_closed): Reset handling_signal.
4284
52283633 4285 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4286
6ffdb539
MB
42872000-10-23 Miles Bader <miles@gnu.org>
4288
4289 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4290 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4291 maintain old behavior.
4292 * minibuf.c (Fminibuffer_complete): Likewise.
4293
7f1c969b
MB
42942000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4295
4296 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4297 that when a font can't be exactly centered, it errs up rather than
4298 down.
4299
23afac01 43002000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4301
52283633 4302 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4303
1a578e9b
AC
43042000-10-23 Andrew Choi <akochoi@i-cable.com>
4305
4306 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4307
4308 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4309 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4310
4311 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4312 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4313 syms_of_search, x_term_init, and init_keyboard before calling
4314 init_window_once. Also, call syms_of_xmenu.
4315
4316 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4317 default fontset to Monaco.
4318
4319 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4320 NewMacWindow and DisposeMacWindow.
4321 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4322 instead of calling NewMacWindow and setting fields of
4323 f->output_data.mac directly. Call init_frame_faces.
4324 (Fdelete_frame) [macintosh]: Remove unused code.
4325 (Fmodify_frame_parameters) [macintosh]: Call
4326 x_set_frame_parameters instead of mac_set_frame_parameters.
4327
4328 * frame.h [macintosh]: Define menu_bar_lines field in struct
4329 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4330
4331 * keyboard.c [macintosh]: Include macterm.h.
4332 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4333 and menu_bar_activate_event type events as for X and NT.
4334 (make_lispy_event) [macintosh]: Construct lisp events of type
4335 MENU_BAR_EVENT as for X and NT.
4336
4337 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4338 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4339 (sys_subshell) [macintosh]: Remove definition entirely.
4340 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4341 Vwindow_system_version here. Remove initialization of
4342 Vx_bitmap_file_path.
4343 (read_input_waiting): Correct the number of parameters passed to
4344 read_socket_hook.
4345 Move all Macintosh functions to mac/mac.c.
4346
4347 * term.c [macintosh]: Include macterm.h.
4348
4349 * window.c [macintosh]: Include macterm.h.
4350
4351 * xdisp.c [macintosh]: Include macterm.h. Declare
4352 set_frame_menubar and pending_menu_activation.
4353 (echo_area_display) [macintosh]: Do not return if terminal frame
4354 is the selected frame.
4355 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4356 Allow only the selected frame to set menu bar.
4357 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4358 calling FRAME_EXTERNAL_MENU_BAR (f).
4359 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4360
4361 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4362 and check_x. Declare XCreateGC. Define x_create_gc and
4363 x_free_gc. Initialize font_sort_order.
4364 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4365 but call x_list_fonts instead of w32_list_fonts.
4366 (Finternal_face_x_get_resource) [macintosh]: Do not call
4367 display_x_get_resource.
4368 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4369 (realize_x_face) [macintosh]: Load the font if it is specified in
4370 ATTRS.
52283633 4371 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4372
1ffbabe3
SM
43732000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4374
4375 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4376 is nil: since we go to the end of submap anyway, we'd end up
4377 setting nil to nil.
4378 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4379 doesn't obey autoload.
4380
bed43f1d
EZ
43812000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4382
1ffbabe3 4383 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4384
ea4233a7
JR
43852000-10-21 Jason Rumney <jasonr@gnu.org>
4386
4387 * w32term.c (w32_cache_char_metrics): Double check that font is
4388 really fixed pitch before trusting tmPitchAndFamily.
4389
f3d3c491
AI
43902000-10-21 Andrew Innes <andrewi@gnu.org>
4391
4392 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4393
4394 * w32term.h: Extern decl for w32_cache_char_metrics.
4395
4396 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4397
4398 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4399 (w32_unload_font): Free per_char array if present.
4400
4401 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4402 cached information in emulated XFontStruct to handle common cases
4403 quickly. Do not allocate XCharStruct for return.
4404 (w32_native_per_char_metric): New function.
4405 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4406 allocating one.
4407 (x_produce_glyphs): Don't get an HDC. Change calls to
4408 w32_per_char_metric to match arg change above. Remove calls to
4409 free results.
4410 (w32_get_glyph_overhangs): Ditto.
4411 (w32_cache_char_metrics): New function.
4412
4413 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4414 ($(BLD)/casefiddle.$(O)): Remove compile command.
4415 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4416 ($(BLD)/dispnew.obj):
4417 ($(BLD)/keyboard.obj):
4418 ($(BLD)/w32inevt.obj):
4419 ($(BLD)/w32bdf.obj):
4420 ($(BLD)/alloc.obj):
4421 ($(BLD)/buffer.obj):
4422 ($(BLD)/editfns.obj):
4423 ($(BLD)/emacs.obj):
4424 ($(BLD)/fileio.obj):
4425 ($(BLD)/fns.obj):
4426 ($(BLD)/indent.obj):
4427 ($(BLD)/insdel.obj):
4428 ($(BLD)/intervals.obj):
4429 ($(BLD)/minibuf.obj):
4430 ($(BLD)/print.obj):
4431 ($(BLD)/scroll.obj):
4432 ($(BLD)/sysdep.obj):
4433 ($(BLD)/textprop.obj):
4434 ($(BLD)/widget.obj):
f3d3c491
AI
4435 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4436 ($(BLD)/term.obj): Add dependency on dispextern.h.
4437
52283633
SM
4438 * makefile.nt ($(BLD)\dispnew.obj):
4439 ($(BLD)\keyboard.obj):
4440 ($(BLD)\w32inevt.obj):
4441 ($(BLD)\w32bdf.obj):
4442 ($(BLD)\alloc.obj):
4443 ($(BLD)\buffer.obj):
4444 ($(BLD)\editfns.obj):
4445 ($(BLD)\emacs.obj):
4446 ($(BLD)\fileio.obj):
4447 ($(BLD)\fns.obj):
4448 ($(BLD)\indent.obj):
4449 ($(BLD)\insdel.obj):
4450 ($(BLD)\intervals.obj):
4451 ($(BLD)\minibuf.obj):
4452 ($(BLD)\print.obj):
4453 ($(BLD)\scroll.obj):
4454 ($(BLD)\sysdep.obj):
4455 ($(BLD)\textprop.obj):
4456 ($(BLD)\widget.obj):
f3d3c491
AI
4457 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4458 ($(BLD)\term.obj): Add dependency on dispextern.h
4459
18ad4821
EZ
44602000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4461
4462 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4463 with an additional argument of Qt.
4464
de54681a
MB
44652000-10-21 Miles Bader <miles@gnu.org>
4466
4467 * window.c (pos_fully_visible_in_window_p): New function.
4468 (Fpos_visible_in_window_p): Add FULLY argument.
4469 Use pos_fully_visible_in_window_p.
4470 (window_scroll_pixel_based, window_scroll_line_based): Update
4471 calls to Fpos_visible_in_window_p.
4472 * lisp.h (Fpos_visible_in_window_p): Update prototype
4473
13c844fb
GM
44742000-10-20 Gerd Moellmann <gerd@gnu.org>
4475
4476 * alloc.c (toplevel): Conditionalize compilation of mem_*
4477 functions differently.
52283633 4478
d9506268
JR
44792000-10-20 Jason Rumney <jasonr@gnu.org>
4480
4481 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4482 mem_init where it used to be. mem_z etc not defined otherwise.
4483
8094989b
GM
44842000-10-20 Gerd Moellmann <gerd@gnu.org>
4485
4486 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4487 GC_MALLOC_CHECK.
4488 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4489 structure definition and related variabled to the top of the file.
4490 Include this code when GC_MALLOC_CHECK is defined.
4491 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4492 register/unregister allocated region.
4493 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4494 which isn't allocated.
4495 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4496 something which is already in use.
4497 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4498 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4499 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4500 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4501
4502 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4503 _malloc_internal instead of malloc.
4504 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4505 of free.
4506
ea456eb4
AI
45072000-10-20 Andrew Innes <andrewi@gnu.org>
4508
4509 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4510 Windows.
4511 (my_strftime) <macro>: Don't use macro arg list when redefining as
4512 _strftime_copytm.
4513 (my_strftime) <function>: Supply 0 as ut argument.
4514
e64c3a75
JR
45152000-10-19 Jason Rumney <jasonr@altavista.net>
4516
4517 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4518 including dispextern.h, as it stops faces from working.
4519
4520 * w32fns.c (Fx_create_frame): Don't bother calling
4521 face-set-after-frame-default since the caller does it for us
4522 anyway. Clean up calls to x_get_arg to be consistent with X.
4523
4524 * w32term.c (x_produce_glyphs): Handle
4525 unibyte_display_via_language_environment correctly.
4526 (w32_draw_box_rect): Fix the calculation of width and height.
4527
4528 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4529 as it has stopped working.
4530 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4531 menu-bar.
4532
17401c97
GM
45332000-10-19 Gerd Moellmann <gerd@gnu.org>
4534
4535 * eval.c (skip_debugger): Prevent a compiler warning.
4536 (Fcondition_case): Likewise.
4537 (Fbacktrace_frame): Use a null interactive spec.
4538
773272d8
KH
45392000-10-19 Kenichi Handa <handa@etl.go.jp>
4540
4541 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4542
a42943e9
GM
45432000-10-18 Gerd Moellmann <gerd@gnu.org>
4544
e50517d9
GM
4545 * strftime.c: Sync with glibc, file version 1.78.
4546 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4547 should no longer be used according to ISO 8601.
4548
9035a35a
GM
4549 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4550 no map for meta_prefix_char, don't try to use it as a keymap.
4551 Instead, if T_OK is non-zero, look up a default binding, if any,
4552 otherwise, if T_OK is zero, return nil.
4553
a42943e9
GM
4554 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4555 (x_to_xcolors, png_load): Use x_query_color.
4556
52283633
SM
4557 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4558 New functions.
a42943e9
GM
4559 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4560 which can be slow.
4561 (x_copy_color, x_alloc_lighter_color): Likewise.
4562
4563 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4564 (x_query_color, x_query_colors): Add prototype.
4565
4566 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4567 check_string_bytes only if not noninteractive, increase count to 50.
4568
00de2987
MB
45692000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4570
4571 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4572 markers correctly.
4573
54918e2b
GM
45742000-10-17 Gerd Moellmann <gerd@gnu.org>
4575
1f0b3fd2
GM
4576 * alloc.c (pure_bytes_used): Renamed from pureptr.
4577 (ALIGN): New macro.
4578 (pure_alloc): New function.
4579 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4580 Use it.
4581 (Fpurecopy): Use PURE_POINTER_P.
4582
68c5d1db
GM
4583 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4584 PT has moved backward.
52283633 4585
9a038881
GM
4586 * xdisp.c (cursor_row_p): Take continued lines into account.
4587
361b097f
GM
4588 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4589 string's size_byte.
4590 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4591 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4592 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4593 string allocated.
4594
54918e2b
GM
4595 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4596 of selective display off while searching for the next line start.
4597
03ed0806
KH
45982000-10-17 Kenichi Handa <handa@etl.go.jp>
4599
4600 * Makefile.in (term.o): Depend on dispextern.h.
4601
7e05cdaf
SM
46022000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4603
4604 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4605
a6801fd1
GM
46062000-10-16 Gerd Moellmann <gerd@gnu.org>
4607
483de32b
GM
4608 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4609 the iterator at the beginning, so that they can be set later on,
4610 for instance in reseat_at_next_visible_line_start, without being
4611 overwritten.
4612
a6801fd1
GM
4613 * xfns.c (pbm_format): Add :foreground and :background keywords.
4614 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4615 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4616
dbf1fcc1
EZ
46172000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4618
4619 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4620
52283633 4621 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4622
4623 * msdos.c (IT_set_face): Compare highlighted face with the default
4624 face, and invert colors if these faces' colors are identical.
4625 (Fmsdos_remember_default_colors): Don't swap foreground and
4626 background colors in initial_colors[].
4627 (IT_set_frame_parameters): Don't swap frame's foreground and
4628 background pixels. If ALIST includes "(reverse . t)", swap
4629 foreground-color and background-color properties in frame's
4630 param_alist. If the original frame's param_alist doesn't specify
4631 the colors, store unspecified-fg and unspecified-bg, reversed if
4632 required.
4633
4634 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4635 the colors are unspecified and reversed, reverse fore- and back-
4636 ground in the returned value.
4637 (Fframe_parameter): Ditto.
4638
b41fe2c3 46392000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4640
3a6b59d9
GM
4641 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4642 get_last_unchanged_at_beg_row.
4643 (find_first_unchanged_at_end_row): Renamed from
4644 get_first_unchanged_at_end_row.
4645 (find_first_unchanged_at_end_row): Convert assertions to
4646 unconditional tests which abort. When looking for a row in
4647 unchanged text, don't go further back than first_text_row.
4648
b41fe2c3
GM
4649 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4650 Don't add in the last line's height when deciding if the new
4651 position is below the scroll margin.
9d1af64f 4652
b41fe2c3 46532000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4654
4655 * editfns.c (Fconstrain_to_field): Check carefully for field
4656 boundaries if either OLD_POS or NEW_POS has a non-nil field
4657 property, even if they're the same.
4658
c412cb7b
KH
46592000-10-16 Kenichi Handa <handa@etl.go.jp>
4660
4661 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4662 height for XFillRectangle.
4663
5586f3eb
SM
46642000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4665
4666 * syntax.c (Fstring_to_syntax): New function extracted from
4667 Fmodify_syntax_entry.
4668 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4669 (skip_chars, Fforward_comment): Remove unused variables.
4670 (syms_of_syntax): Add defsubr for string-to-syntax.
4671 (describe_syntax): Add code for comment and string fences.
4672
db785038
SM
46732000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4674
4675 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4676 Do the meta->esc mapping. Call get_keyelt before returning.
4677 Start scanning from the second element (the first is always `keymap')
4678 to make it easier to detect when we reach a parent map.
4679 Handle the case of inheriting from a symbol whose function is a map.
4680 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4681 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4682 (get_keyelt, Flookup_key): Update call to access_keymap.
4683 Remove the meta->esc mappings.
4684 (define_as_prefix): Delete old disabled code.
4685 (menu_item_p): New function.
4686 (where_is_internal_1): Skip over the few remaining menu items.
4687 * lisp.h (access_keymap): Update prototype.
4688 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4689 Update call to access_keymap.
4690 (follow_key, read_key_sequence): Update calls to access_keymap.
4691 Remove the meta->esc mappings.
4692
cafafe0b
GM
46932000-10-13 Gerd Moellmann <gerd@gnu.org>
4694
a2e2a7f6
GM
4695 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4696 with additional argument.
4697
cafafe0b
GM
4698 * xdisp.c (cursor_row_p): New function.
4699 (try_cursor_movement, display_line): Use it.
52283633 4700
cafafe0b
GM
4701 * xdisp.c (append_space): Also save/restore iterator's current
4702 character and its length.
4703
4704 * xdisp.c (init_from_display_pos): Add an assertion.
4705 (handle_stop): Don't set iterator's add_overlay_start.
4706 (handle_invisible_prop): Likewise.
4707 (load_overlay_strings): If text under an overlay is invisible,
4708 take both before- and after-strings into account when the iterator
4709 is positioned either at the start or at the end of the overlay.
4710 (forward_to_next_line_start): Rewritten.
4711 (reseat_at_next_visible_line_start): Rewritten.
4712 (set_iterator_to_next): Add parameter RESEAT_P.
4713
4714 * dispextern.h (struct it): Remove member add_overlay_start.
4715 (set_iterator_to_next): Change prototype.
4716
c744452b
KH
47172000-10-13 Kenichi Handa <handa@etl.go.jp>
4718
4719 * coding.c (code_convert_region): Be sure to initialize
4720 coding->category_idx.
e4a3f4e1
KH
4721 (decode_coding_string): Set coding->src_multibyte and
4722 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4723 (encode_coding_string): Set coding->src_multibyte and
4724 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4725
321fd26f
SM
47262000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4727
4728 * xfns.c (Fx_create_frame): Don't bother calling
4729 face-set-after-frame-default since the caller does it for us anyway.
4730
76832439
EZ
47312000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4732
4733 * window.c (coordinates_in_window): Fix detection of vertical line
4734 on character terminals.
4735
2483cf58
GM
47362000-10-12 Gerd Moellmann <gerd@gnu.org>
4737
4738 * editfns.c (save_excursion_save): Additionally record the
4739 selected window.
4740 (save_excursion_restore): If buffer was visible in a window, and a
4741 different window was selected, and the old selected window is
4742 still live, restore point in that window.
4743
eb991b25
KH
47442000-10-12 Kenichi Handa <handa@etl.go.jp>
4745
8a0eba09
KH
4746 * xterm.c (x_produce_glyphs): Handle
4747 unibyte_display_via_language_environment correctly.
4748
20401fcc
KH
4749 * regex.c (regex_compile): Change the way of handling a range from
4750 unibyte char to multibyte char.
4751
4752 * syntax.c (skip_chars): Change the way of handling a range from
4753 unibyte char to multibyte char.
4754
eb991b25
KH
4755 * process.c (read_process_output): Cancel previous change.
4756
365dd325
EZ
47572000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4758
c1b096cb
EZ
4759 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4760
365dd325
EZ
4761 * charset.c (Ffind_charset_string): Doc fix.
4762 (Ffind_charset_region): Doc fix.
4763
eb483c2b
KH
47642000-10-11 Kenichi Handa <handa@mule.m17n.org>
4765
4766 * process.c (read_process_output): Fix previous change. Adjust
4767 multibyteness of text to insert in a buffer by
52283633 4768 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 4769
b40bfb99
AS
47702000-10-10 Andreas Schwab <schwab@suse.de>
4771
4772 * alloc.c (mark_object): Remove all workarounds installed on
4773 1993-08-08.
4774
caff31d4
KH
47752000-10-10 Kenichi Handa <handa@etl.go.jp>
4776
52283633 4777 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
4778 (base64_encode_1): Make it work for a text of multibyte form.
4779 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4780 case. Don't call str_to_multibyte because base64_decode_1
4781 produces correct multibyte form for eight-bit codes.
52283633 4782 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
4783 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4784 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4785 codes.
4786
4787 * charset.h (CHAR_STRING): Optimized for single byte characters.
4788
cba026ef
AS
47892000-10-09 Andreas Schwab <schwab@suse.de>
4790
4791 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4792 -1 after socket is closed, to fall through to error processing.
4793
1e21fe48
EZ
47942000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4795
4796 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4797 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4798 background-color, change also the colors of the default face for
4799 this frame.
4800
a640322e
EZ
48012000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4802
4803 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4804 them extern (they are defined on xfaces.c).
4805 (syms_of_msdos): Don't intern and don't staticpro
4806 Qbackground_color and Qforeground_color.
4807
a115794c
EZ
48082000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4809
4810 * frame.c (Fframe_parameter): For non-windowed frames, if
4811 f->param_alist says foreground or background color is unspecified,
4812 call tty_color_name to return the color name computed from the
4813 frame's current colors.
4814
f5533b63
DL
48152000-10-06 Dave Love <fx@gnu.org>
4816
4817 * terminfo.c (ospeed): Don't declare.
4818
4819 * sysdep.c: Don't include string.h.
4820 (h_errno): Declare conditional also on TRY_AGAIN.
4821
4822 * charset.c (Ffind_charset_string): Doc fix.
4823
52283633 4824 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
4825 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4826 error messages.
4827
2b06561a
DL
48282000-10-05 Dave Love <fx@gnu.org>
4829
4830 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4831 position like menu-bar.
4832
ca839c85
GM
48332000-10-05 Gerd Moellmann <gerd@gnu.org>
4834
4835 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4836
4837 * xdisp.c (handle_single_display_prop): Use safe_call1.
4838 (safe_call): Renamed from call_function.
4839 (safe_call1): New function.
4840 (handle_fontified_prop): Use safe_call1 instead of call1.
4841 (safe_eval): Renamed from eval_form.
4842 (safe_eval_handler): Renamed from eval_handler.
4843 (handle_single_display_prop, display_mode_element): Use safe_eval
4844 instead of eval_form.
4845
4846 * xfaces.c (merge_face_heights): Use safe_call instead of
4847 call_function.
4848
4849 * keyboard.c (show_help_echo): Use safe_call instead of
4850 call_function; use safe_eval instead of eval_form.
4851
4852 * lisp.h (safe_call): Renamed from call_function.
4853 (safe_eval): Renamed from eval_form.
4854 (safe_call1): Add prototype.
4855
a3489ece
MB
48562000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4857
4858 * xfns.c (image_ascent): Rearrange ascent calculation for the
4859 has-a-font case.
4860
35810b6f
SM
48612000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4862
4863 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4864 (where_is_internal_1): Don't bother ignoring menu-items any more.
4865
3dc78168
GM
48662000-10-04 Gerd Moellmann <gerd@gnu.org>
4867
4868 * keyboard.c (update_menu_bindings): New variable.
4869 (parse_menu_item): Use AREF. If update_menu_bindings
4870 is 0, don't update menu bindings.
4871 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4872
1efc2bb9
EZ
48732000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4874
4875 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4876 to `mark_object'.
4877
3f679f55
SM
48782000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4879
4880 * syntax.c (forw_comment): Match nestedness of ender/starter.
4881 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4882 (prev_char_comstart_first): Remove.
4883 (back_comment): Check two-char comment markers more carefully
4884 to better handle overlapping cases like *//* or /* */* */ ...
4885 Match nestedness of ender/starter.
4886
2021ab61
DL
48872000-10-02 Dave Love <fx@gnu.org>
4888
4889 * config.in (HAVE_GAI_STRERROR): Add undef.
4890
4891 * process.c (Fopen_network_stream): Use it.
4892
4893 * m/alpha.h (NO_REMAP): Don't define.
4894
64e6cc18
GM
48952000-10-02 Gerd Moellmann <gerd@gnu.org>
4896
4897 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4898 return with a string converted to an integer or vice versa when
4899 Vmocklisp_arguments is t.
4900 (Fsignal): Likewise. The function can return for `quit'.
4901 (struct gcpro): Declare member `var' to point to a volatile
4902 Lisp_Object.
4903
4904 * eval.c (error): Prevent compiler warning.
4905
b1904cd9
SM
49062000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4907
4908 * keymap.c (keymap_memberp): New function.
4909 (Fset_keymap_parent): Use it.
4910 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4911 Use keymap_memberp to avoid creating cycles.
4912 (access_keymap): Use KEYMAPP.
4913
71c9ec51
GM
49142000-09-30 Gerd Moellmann <gerd@gnu.org>
4915
4916 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4917 gai_strerror. Make sure xerrno is set if connect fails. Improve
4918 error recovery.
71c9ec51 4919
c70c6b58
JR
49202000-09-29 Jason Rumney <jasonr@gnu.org>
4921
4922 * w32term.c (w32_char_font_type, w32_encode_char)
4923 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4924 (w32_bdf_per_char_metric): New function.
4925 (w32_per_char_metric): Use it.
4926 (x_draw_glyph_string_background): Always draw background for BDF
4927 glyphs.
4928
4929 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4930 GDI object which is a scarce resource.
4931
4932 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4933 (get_quoted_string): Fix limit on memchr search.
4934 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4935 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4936 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4937 (get_cached_font_char, cache_char_offset): Use macro
4938 BDF_CODEPOINT_RANGE_COVER_P.
4939 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4940 (clear_cached_bitmap_slots): New function.
4941 (GET_HEX_VALUE): G-Z, g-z are not hex.
4942 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4943 (get_bitmap_with_cache): Use new cache implementation.
4944 (create_offscreen_bitmap): New function.
4945 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4946
4947 * w32term.c (x_produce_glyphs): If the distance from the current
4948 position to the next tab stop is less than a canonical character
4949 width, use the tab stop after that.
4950 (x_draw_glyphs): Handle case START and END are out of bounds more
4951 carefully.
4952 (x_clear_mouse_face): Block/unblock input.
4953 (x_display_and_set_cursor): Don't show a hollow box cursor for
4954 buffers whose cursor_type is nil.
4955
fe01239f
GM
49562000-09-29 Gerd Moellmann <gerd@gnu.org>
4957
52283633 4958 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
4959
4960 * dispextern.h (updating_frame): Declare extern.
4961
e7c52f1f
AS
49622000-09-29 Andreas Schwab <schwab@suse.de>
4963
4964 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4965
de6e1f7c
GM
49662000-09-29 Gerd Moellmann <gerd@gnu.org>
4967
25126faa
GM
4968 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4969 use its function definition.
4970 (tool_bar_items): Likewise.
4971
de6e1f7c 4972 * lisp.h (fatal): Declare NO_RETURN.
52283633 4973
454ee39b
KH
49742000-09-29 Kenichi Handa <handa@etl.go.jp>
4975
4976 * keymap.c: Remove the line "#undef NULL".
4977
96301c5f
GM
49782000-09-28 Gerd Moellmann <gerd@gnu.org>
4979
52283633 4980 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 4981
efffeeb4
DL
49822000-09-28 Dave Love <fx@gnu.org>
4983
ecb8b666
DL
4984 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4985
dc3cd20f
DL
4986 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4987
4988 * .gdbinit (xreload): Note its need on GNU/Linux.
4989
efffeeb4
DL
4990 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4991 r_alloc, r_alloc_free.
4992
8610d903
KH
49932000-09-28 Kenichi Handa <handa@etl.go.jp>
4994
4995 * syntax.c (skip_chars): Handle negation correctly.
4996
8901d1ac
GM
49972000-09-27 Gerd Moellmann <gerd@gnu.org>
4998
6f22f1ad
GM
4999 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5000 with non-zero FORCE_P argument.
5001
52283633 5002 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5003 Add assertions.
5004
5005 * xdisp.c (window_box_height): Add an assertion.
5006
5007 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5008 tool-bar than is available.
5009 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5010
36f1966f
DL
50112000-09-27 Dave Love <fx@gnu.org>
5012
efffeeb4 5013 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5014
31d929e5
GM
50152000-09-26 Gerd Moellmann <gerd@gnu.org>
5016
c98863bf
GM
5017 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5018 instead of BITS_PER_INT.
5019 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5020 EMACS_UINT, respectively.
5021 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5022
5023 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5024
5025 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5026
77072ab1
GM
5027 * window.c (freeze_window_starts): Construct last argument for
5028 foreach_window differently.
5029
5030 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5031
5032 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5033 EMACS_UINT instead of `int' and `unsigned int'.
5034 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5035
5036 * frame.h (struct frame): Make the `nothing' member of union
5037 output_data an EMACS_INT.
5038
52283633 5039 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5040 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5041 size in the sdata structure.
5042 (SDATA_NBYTES, SDATA_DATA): New macros.
5043 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5044 differently for the different layout of the sdata structure.
5045 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5046 in sdata.
5047 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5048 Check that size recorded in the string size and size recorded in
5049 the sdata structure agree.
5050
3e60b029
DL
50512000-09-25 Dave Love <fx@gnu.org>
5052
5053 * buffer.c: Include stdio.h.
5054
5055 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5056
3e60b029
DL
5057 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5058
5059 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5060 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5061 (__malloc_extra_blocks): Declare as __malloc_size_t.
5062
8ff16b4e
GM
50632000-09-25 Gerd Moellmann <gerd@gnu.org>
5064
755a2ccd
GM
5065 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5066
d8b4516f
GM
5067 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5068 (read_char): If help-echo is showing, preserve the echo area
5069 when redisplaying.
5070
5071 * xdisp.c (help_echo_showing_p): New variable.
5072 (set_message): Reset it to 0.
5073 (init_xdisp): Initialize help_echo_showing_p.
5074
5075 * dispextern.h (help_echo_showing_p): Declare extern.
5076
5077 * config.in: Fix typo in __GNUC_MINOR__.
5078
5079 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5080
b11af2dd
GM
5081 * s/freebsd.h (POSIX_SIGNALS): Define.
5082
8ff16b4e
GM
5083 * xterm.c (x_clear_mouse_face): Block/unblock input.
5084
844eb643
DL
50852000-09-24 Dave Love <fx@gnu.org>
5086
5087 * fns.c (base64_encode_1): Fix last change.
5088
b30ab1b3
GM
50892000-09-22 Gerd Moellmann <gerd@gnu.org>
5090
5091 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5092
5093 * xdisp.c (try_window_reusing_current_matrix): More fixes
5094 for the case window has a header-line.
5095
c6cbe5f0
DL
50962000-09-22 Dave Love <fx@gnu.org>
5097
4c7c1f3f
DL
5098 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5099 a doc string.
5100
5101 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5102
c6cbe5f0
DL
5103 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5104
550a625e
GM
51052000-09-21 Gerd Moellmann <gerd@gnu.org>
5106
4c7c1f3f 5107 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5108 for GCC >= 2.5.
5109
52283633
SM
5110 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5111 Declare NO_RETURN.
fca99116 5112
80d26f99
GM
5113 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5114 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5115 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5116 warnings.
52283633 5117
80d26f99
GM
5118 * marker.c (byte_char_debug_check): Return void.
5119
623a0aae
GM
5120 * xfns.c (Fx_create_frame): Set default frame parameter value
5121 for tool-bar-lines to 1.
5122
5123 * dispnew.c (scrolling_window): Compare y-positions of rows
5124 equal at the start. Some simplification.
5125
5126 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5127 reused rows' y-position in the case window has a header-line, and
5128 new window start is greater than old window start.
5129
42ac0ae5
GM
5130 * process.c (process_sent_to): New variable.
5131 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5132 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5133 Declare more parameters volatile.
5134
550a625e
GM
5135 * lread.c (Vrecursive_load_depth_limit): New variable.
5136 (Fload): Check recursive loads whose recursion depth exceeds
5137 Vrecursive_load_depth_limit.
5138 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5139
8320414c
GM
51402000-09-20 Gerd Moellmann <gerd@gnu.org>
5141
f46c275e
GM
5142 * fileio.c (Fread_file_name): Doc fix.
5143
5144 * editfns.c (Fmessage_or_box): Doc fix.
5145
5146 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5147
b7e11c5b 5148 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5149
8320414c
GM
5150 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5151 symbols are specified, add color translations to the cache.
52283633 5152 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5153 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5154 xpm_cache_color.
5155 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5156 structures to xpm_init_color_cache.
5157
da1608d9
GM
51582000-09-19 Gerd Moellmann <gerd@gnu.org>
5159
52283633 5160 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5161
6badfa25
AI
51622000-09-19 Andrew Innes <andrewi@gnu.org>
5163
5164 * makefile.nt (bootstrap-emacs): Don't change directory.
5165
3a5f42bb
KH
51662000-09-19 Kenichi Handa <handa@etl.go.jp>
5167
1b7649bd
KH
5168 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5169
3a5f42bb
KH
5170 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5171 If output buffer is too small, signal an appropriated error.
5172
9f83cf0b
DL
51732000-09-18 Dave Love <fx@gnu.org>
5174
52283633 5175 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5176 (current_active_maps): Remove redundant get_local_map call.
5177
28c7826c
GM
51782000-09-18 Gerd Moellmann <gerd@gnu.org>
5179
5cefa566
GM
5180 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5181 cursor for buffers whose cursor_type is nil.
52283633 5182
6fed3546
GM
5183 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5184 a feature to implement that is already implemented.
5185 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5186 warnings.
5187
5188 * xfns.c (x_clear_image_1): New function.
5189 (x_clear_image): Use it.
52283633 5190 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5191
05b1f851
GM
5192 * dispnew.c (update_window): Move test for invisible lines
5193 at the top to update_window_line.
5194 (update_window_line): Handle invisible lines here.
5195
f4779de9
GM
5196 * xfns.c (clear_image_cache): Clear current matrices of all
5197 frames sharing an image cache. Block input while freeing
5198 images. Fix timestamp comparison.
5199 (x_clear_image): Also free the mask.
5200
28c7826c
GM
5201 * xfns.c (lookup_image): Block input while loading the image so
5202 that we won't get interrupted in a state where the image isn't yet
5203 set up completely.
5204 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5205 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5206 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5207 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5208
b7412313
GM
52092000-09-16 Gerd Moellmann <gerd@gnu.org>
5210
5211 * dispnew.c (update_window): Make sure to make desired rows
5212 current even if they are completely invisible at the top
5213 of a window.
5214
47e351a3
GM
52152000-09-15 Gerd Moellmann <gerd@gnu.org>
5216
7f8f1edc
GM
5217 * xfns.c (lookup_image): Build mask before applying an algorithm.
5218 Recognize algorithm `disabled'.
5219 (cross_disabled_images): New variable.
5220 (COLOR_INTENSITY): New macro.
5221 (x_detect_edges): Use COLOR_INTENSITY.
5222 (x_disable_image): New function.
5223 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5224
5225 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5226 disabled state, don't apply an image transformation algorithm if
5227 the user specified an image for the disabled state. Use
28c7826c 5228 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5229 user hasn't specified an image.
5230
ebb8f116
GM
5231 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5232 allocation functions with the XPM lib.
5233 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5234 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5235 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5236 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5237 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5238 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5239 functions, if possible, because these handle color allocation
5240 failure more gracefully.
5241 (Fimage_mask_p): New function.
5242
47e351a3
GM
5243 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5244 (Qedge_detection, Qheuristic): New symbols.
5245 (syms_of_xfns): Initialize new symbols.
5246 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5247 `algorithm (edge-detection ...)'.
5248 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5249 (tiff_format, gif_format, gs_format): Add `:mask'.
5250 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5251 (GIF_MASK, GS_MASK): New enumerators.
5252 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5253 (emboss_matrix, laplace_matrix): New variables.
5254 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5255 (x_edge_detection): New functions.
5256 (x_laplace): Rewritten in terms of x_detect_edges.
5257 (x_build_heuristic_mask): If image has a mask, free it.
5258
fe83b953
AI
52592000-09-14 Andrew Innes <andrewi@gnu.org>
5260
5261 * makefile.w32-in: Revert to Unix line endings.
5262
3021e816
AI
52632000-09-14 Andrew Innes <andrewi@gnu.org>
5264
5265 * makefile.w32-in: Standardize indentation somewhat.
5266 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5267 cater for differences between shells.
5268
5269 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5270
2a32b5ea
GM
52712000-09-14 Gerd Moellmann <gerd@gnu.org>
5272
5273 * xterm.c (x_produce_glyphs): If the distance from the current
5274 position to the next tab stop is less than a canonical character
5275 width, use the tab stop after that.
5276
b4331e96
DL
52772000-09-14 Dave Love <fx@gnu.org>
5278
5279 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5280
ef9e4345
GM
52812000-09-14 Gerd Moellmann <gerd@gnu.org>
5282
085536c2
GM
5283 * xdisp.c (handle_fontified_prop): While running fontification
5284 functions, bind `fontification-functions' and
5285 `after-change-functions' to nil.
5286
ef9e4345
GM
5287 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5288 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5289
5290 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5291
5292 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5293 USE_MMAP_FOR_BUFFERS.
5294
5295 * insdel.c (make_gap): Use enlarge_buffer_text.
5296
5297 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5298 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5299 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5300 from former r_alloc_* functions in ralloc.c.
52283633 5301 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5302 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5303 (mmap_init) [REL_ALLOC_MMAP]: New function.
5304 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5305 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5306 BUFFER_FREE.
5307
5308 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5309 (enlarge_buffer_text): Add prototype.
5310
5311 * ralloc.c: Remove everything having to do with the use of mmap.
5312
f8608968
GM
53132000-09-13 Gerd Moellmann <gerd@gnu.org>
5314
2a494b2d
GM
5315 * sound.c (Fplay_sound): Doc fix.
5316
8c907a56
GM
5317 * keyboard.c: Avoid some more compiler warnings.
5318 (parse_tool_bar_item): Ignore cached key bindings.
5319
f8608968
GM
5320 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5321 and allocation of Lisp data.
5322
6ab70e9a
GM
53232000-09-12 Gerd Moellmann <gerd@gnu.org>
5324
d12d0a9b
GM
5325 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5326 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5327 defaults first.
5328
6ab70e9a
GM
5329 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5330
63c36c3c
KH
53312000-09-12 Miyashita Hisashi <himi@meadowy.org>
5332
5333 * ccl.c: Comment fixed.
5334 (MAX_MAP_SET_LEVEL): Increased to 30.
5335 (PUSH_MAPPING_STACK): Enclose with do-while block.
5336 (POP_MAPPING_STACK): Likewise.
5337 (stack_idx_of_map_multiple): New variable.
5338 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5339 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5340 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5341 (ccl_driver) <CCL_MapSingle>: Likewise.
5342 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5343 with the case where looking up process reaches to the end of
5344 map-set, and call CCL programs as the above change.
5345
7ee3bd7b
GM
53462000-09-11 Gerd Moellmann <gerd@gnu.org>
5347
8ec8a5ec
GM
5348 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5349 that might be clobbered by longjmp.
5350 (check_x_display_info, x_decode_color, create_frame_xic)
5351 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5352 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5353
f74b0705
GM
5354 * lread.c (init_lread): Set Vloads_in_progress to nil.
5355 (Fload): Show list of recursively loaded files, when signaling an
5356 error.
5357
7ee3bd7b
GM
5358 * lread.c (Vloads_in_progress): New variable.
5359 (record_load_unwind): New function.
5360 (Fload): Check for recursive loads.
5361 (syms_of_lread): Initialize Vloads_in_progress.
5362 (read_integer, read1): Avoid some compiler warnings.
5363
5364 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5365 compiler warnings.
5366
974e1e5b
MB
53672000-09-11 Miles Bader <miles@gnu.org>
5368
5369 * editfns.c (Fbuffer_string): Doc fix.
5370
9824c4e3
GM
53712000-09-10 Gerd Moellmann <gerd@gnu.org>
5372
5373 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5374
6a72fdd1
KR
53752000-09-09 Ken Raeburn <raeburn@gnu.org>
5376
5377 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5378 whether to include other header files.
5379
28e6fb66
GM
53802000-09-09 Gerd Moellmann <gerd@gnu.org>
5381
52283633 5382 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5383 by Fmemq as a boolean.
28e6fb66 5384
7f8b6551
SM
53852000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5386
5387 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5388
a8710abf
GM
53892000-09-08 Gerd Moellmann <gerd@gnu.org>
5390
d1a02881
GM
5391 * ralloc.c (mmap_fd): Remove initializer which can make it
5392 read-only in a dumped Emacs.
5393 (mmap_fd_1): New variable.
5394 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5395 restore it from there.
5396 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5397 unconditionally so that mmap_fd can be initialized there.
5398 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5399 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5400 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5401
c454aac1
GM
5402 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5403
5404 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5405 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5406
fc653ef2
GM
5407 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5408
3015eec0
GM
5409 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5410 inheritance.
5411
bfe0ee88
GM
5412 * xdisp.c (try_window_id): When trying to locate cursor in
5413 unchanged rows at the top, handle the case that we can't find it.
5414
a8710abf
GM
5415 * xterm.c (x_draw_glyphs): Handle case START and END are out
5416 of bounds more carefully.
5417
6b7d4ae4
DL
54182000-09-08 Dave Love <fx@gnu.org>
5419
423193c5
DL
5420 * s/sol2.h (REL_ALLOC_MMAP): Define.
5421 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5422
5423 * ralloc.c: Don't include string.h (redundant).
5424 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5425 [!MAP_ANON]: Include fcntl.h.
5426 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5427 (r_alloc, r_re_alloc, r_alloc_free)
5428 (mmap_enlarge, mmap_set_vars): Use it.
5429 (r_alloc_init_fd): New function.
5430 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5431 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5432 malloc type.
5433
5434 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5435 Remove vm-limit.o.
5436
6b7d4ae4
DL
5437 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5438 change to __NetBSD__.
5439
44d31981
KH
54402000-09-08 Kenichi Handa <handa@etl.go.jp>
5441
5442 * search.c (compile_pattern): Check the multibyteness of cached
5443 string and PATTERN.
5444
aad40737
MB
54452000-09-08 Miles Bader <miles@gnu.org>
5446
5447 * xfaces.c (default_face_vector): Function removed.
5448 (Finternal_merge_in_global_face): Restore old global/local
5449 attribute override order. Use inline loop instead of calling
5450 default_face_vector.
5451
91a211b5
GM
54522000-09-07 Gerd Moellmann <gerd@gnu.org>
5453
5454 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5455 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5456 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5457 where necessary, in case POINTER_TYPE is `void'.
5458
03419440
EZ
54592000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5460
5461 * frame.c (make_terminal_frame): Initialize frame foreground and
5462 background colors to unspecified, for the initial instance of an
5463 MSDOS frame.
5464
f46f845b
GM
54652000-09-07 Gerd Moellmann <gerd@gnu.org>
5466
24f76fbf
GM
5467 * ralloc.c (mmap_find): Fix overlap computation.
5468 (mmap_enlarge): Compute nbytes before trying to find an
5469 overlapping region.
5470
f46f845b
GM
5471 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5472 instead of `!='.
5473
5474 * lread.c (syms_of_lread): Change value of regexp
5475 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5476
5477 * xmenu.c (xdialog_show): When looking up the selection in
5478 menu_items, take `quote' boundaries into account; this corresponds
5479 to a nil ITEM in x-popup-dialog.
5480
3c014385
KH
54812000-09-07 Kenichi Handa <handa@etl.go.jp>
5482
fd6f711b
KH
5483 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5484 not 0x81.
5485 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5486
3c014385 5487 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5488 encoding, not decoding. Fix the handling of latin-jisx0201.
5489 Check for the charset katakana-jisx0201 too.
3c014385 5490 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5491 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5492
0da3ecef
GM
54932000-09-07 Gerd Moellmann <gerd@gnu.org>
5494
ab0ee409
GM
5495 * xfaces.c (Vparam_value_alist): New variable.
5496 (syms_of_xfaces): Initialize it.
5497 (Finternal_set_lisp_face_attribute): Avoid more consing.
5498
5499 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5500 specially.
5501 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5502 (Qbackground_mode): New variable.
5503 (syms_of_frame_1): Initialize Qbackground_mode.
5504
5505 * lisp.h (Qdisplay): Declare extern.
1091dd67 5506
0da3ecef
GM
5507 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5508 change face on all frames, and change the default for new frames.
5509
b14654b9
DL
55102000-09-07 Dave Love <fx@gnu.org>
5511
5512 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5513
d24fd56f
KH
55142000-09-07 Kenichi Handa <handa@etl.go.jp>
5515
794f3670
KH
5516 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5517
0fddd0dc
KH
5518 * charset.c: Include composite.h
5519 (lisp_string_width): New function.
5520 (Fstring_width): Call lisp_string_width instead of strwidth.
5521
5522 * Makefile.in (charset.o): Depends on composite.h.
5523
d24fd56f
KH
5524 * process.c (read_process_output): Before inserting the decoded
5525 text in the buffer, adjust the multibyteness.
5526
fa0b693c
GM
55272000-09-06 Gerd Moellmann <gerd@gnu.org>
5528
52283633 5529 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5530 buffer's text buffer is null, map new memory.
5531
0a58f946
GM
5532 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5533 POINTER_TYPE and size_t.
5534 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5535 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5536 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5537 [REL_ALLOC_MMAP]: New macros.
5538 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5539 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5540 [REL_ALLOC_MMAP]: New functions.
5541
5542 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5543 before and after unexec.
5544
5545 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5546 text buffers if necessary.
5547
5548 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5549 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5550 in prototypes.
5551
fa0b693c
GM
5552 * config.in (HAVE_MMAP): Add #undef.
5553
877055f6
GM
55542000-09-05 Gerd Moellmann <gerd@gnu.org>
5555
08ba3862
GM
5556 * frame.c (Qdisplay_type): New variable.
5557 (syms_of_frame_1): Initialize it.
5558 (Fframe_parameter): New function that avoids consing.
5559 (syms_of_frame): Defsubr it.
5560
66ffe51c
GM
5561 * buffer.c (Fother_buffer): Consider buffers as invisible when
5562 they are displayed in a window on an invisible frame.
5563
877055f6
GM
5564 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5565 get-largest-window always return nil.
5566
bb970e67
GM
55672000-09-04 Gerd Moellmann <gerd@gnu.org>
5568
5569 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5570 variable; recognize Emacs 19 elc files.
5571
7a3d0e0e
MB
55722000-09-04 Miles Bader <miles@gnu.org>
5573
5574 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5575 before initially popping up the menu, so the menu doesn't flash
52283633 5576 when the face settings are significantly different from the defaults.
7a3d0e0e 5577
14473664
SM
55782000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5579
5580 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5581 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5582 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5583 (BIT_UNIBYTE): Remove.
5584 (re_match_2_internal): Delete corresponding code and streamline the
5585 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5586 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5587 (re_wctype_t): New type.
5588 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5589 (regex_compile): Use them and fix handling of overly long char classes.
5590
c1174479
AI
55912000-09-03 Andrew Innes <andrewi@gnu.org>
5592
f8803e97
AI
5593 * makefile.w32-in: Change to DOS line endings.
5594
c1174479
AI
5595 * s/ms-w32.h (ORDINARY_LINK): New define.
5596
5597 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5598 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5599
5600 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5601 (distclean): Delete them here instead.
5602
44ef7cf6
AI
5603 * w32proc.c (compare_env): Convert to uppercase for comparison,
5604 not lowercase, to match how the native Windows shell works.
5605
49b3bd82
JR
56062000-09-03 Jason Rumney <jasonr@gnu.org>
5607
5608 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5609 CVS changes the line-ends when checking in/out on DOS/Windows.
5610
5611 * makefile.nt (emacs): Do not change directory to run temacs, as
5612 the load-path is set relative to current directory.
5613
a3d35a39
MB
56142000-09-03 Miles Bader <miles@gnu.org>
5615
5616 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5617
d276b0cf
GM
56182000-09-02 Gerd Moellmann <gerd@gnu.org>
5619
715e84c9
GM
5620 * xdisp.c (redisplay_mode_lines): New function.
5621 (display_mode_lines): Return number of mode lines displayed.
5622 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5623 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5624
8892f40b
GM
5625 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5626 string.h and strings.h.
5627 (index) [HAVE_INDEX]: Add prototype.
5628
d276b0cf
GM
5629 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5630 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5631
5632 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5633 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5634
38404229
GM
56352000-09-01 Gerd Moellmann <gerd@gnu.org>
5636
5637 * lread.c (read1): Accept `?' as symbol constituent, for
5638 compatiblity with XEmacs.
5639
c0f9ea08
SM
56402000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5641
5642 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5643 (struct re_pattern_buffer): Remove newline_anchor.
5644 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5645 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5646 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5647 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5648 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5649 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5650 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5651 Get rid of references to newline_anchor.
5652 (regcomp): Allocate and precompute a fastmap.
5653
8c0f83fe
GM
56542000-08-31 Gerd Moellmann <gerd@gnu.org>
5655
5656 * lread.c (openp): GCPRO local variable `filename'.
5657
4bb91c68
SM
56582000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5659
5660 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5661
5662 * regex.c: Merge some changes from GNU libc. Add prototypes.
5663 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5664 Use memcmp and memcpy instead of bcopy and bcmp.
5665 (init_syntax_once): Use ISALNUM.
5666 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5667 (REG_UNSET_VALUE): Remove. Use NULL instead.
5668 (REG_UNSET, re_match_2_internal): Use NULL.
5669 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5670 New macros.
5671 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5672 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5673 (regex_compile): In handle_interval, return an error rather than try to
5674 unfetch the interval if we can't find the closing brace.
5675 Obey the RE_NO_GNU_OPS syntax bit.
5676 (TOLOWER): New macro.
5677 (regcomp): Use it.
5678 (regexec): Allocate regs.start and regs.end as one block.
5679
5226a931
GM
56802000-08-30 Gerd Moellmann <gerd@gnu.org>
5681
868dd24b
GM
5682 * xdisp.c (echo_area_display): Check display_completed instead
5683 of calling detect_input_pending.
5684
5685 * dispnew.c (update_frame): Only set display_completed here; move
5686 the update_begin and update_end calls here from update_frame_1.
5687 (update_frame_1): Don't set display_completed here, don't call
5688 update_begin/update_end.
5689
5226a931
GM
5690 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5691 instead of store_frame_param.
5692
2a8bd25f
GM
56932000-08-29 Gerd Moellmann <gerd@gnu.org>
5694
5695 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5696 desired window matrix hasn't been displayed, use the current row
5697 instead. Make sure that only those frame rows are updated for
5698 which there exists a corresponding enabled desired row.
52283633 5699
ba3478d9
MB
57002000-08-29 Miles Bader <miles@gnu.org>
5701
5702 * xfaces.c (default_face_vector): New function.
5703 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5704
87d0f685
GM
57052000-08-29 Gerd Moellmann <gerd@gnu.org>
5706
5707 * lread.c (openp): Prevent temporary string passed to
5708 Ffile_readable_p from being garbage collected.
5709
6fa86045
DL
57102000-08-28 Dave Love <fx@gnu.org>
5711
5712 * keymap.c (store_in_keymap): Add `static' to declaration.
5713
bb17930d
GM
57142000-08-28 Gerd Moellmann <gerd@gnu.org>
5715
5716 * emacs.c, callint.c, doc.c, editfns.c
5717 (toplevel) [HAVE_STRING_H]: Include string.h.
5718 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5719 (index): Remove prototypes which might conflict with non-standard
5720 definitions of index/strchr.
5721
5722 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5723 (rindex): Define only if !HAVE_RINDEX.
5724
5725 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5726
5727 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5728
87188200
MB
57292000-08-28 Miles Bader <miles@gnu.org>
5730
5731 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5732 made inconsistent by a font-related attribute in FROM.
5733 (merge_face_inheritance): Add function comment.
5734
41a68aef
KH
57352000-08-28 Kenichi Handa <handa@etl.go.jp>
5736
5737 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5738 the 4th arg (PREV_EVENT) Qt to suppress input method.
5739
f7c436c1
SM
57402000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5741
0b32bf0e
SM
5742 * regex.c: Indent cpp directives and remove parens after `defined'.
5743 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5744 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5745 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5746 (re_compile_pattern): Use size_t for length.
5747 (init_syntax_once): Move to a better place.
5748 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5749 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5750
f7c436c1
SM
5751 * syntax.c (back_comment): Detect cases where a comment-starter is
5752 actually inside another comment as in: /* a // b */ c // d \n.
5753 Make it clear that `comstart_pos' is unused for nested comments.
5754
5755 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5756 (KEYMAPP): New macro.
5757 (Fkeymap_parent, Fset_keymap_parent): Use it.
5758 (fix_submap_inheritance): Mark it static.
5759 (define_as_prefix, describe_buffer_bindings, describe_command)
5760 (describe_translation, describe_map): Complete prototypes.
5761
5762 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5763
5764 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5765 to better match the key-lookup behavior.
5766
6288c62f
GM
57672000-08-27 Gerd Moellmann <gerd@gnu.org>
5768
5769 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5770 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5771
e931344e
EZ
57722000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5773
5774 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5775 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5776 (xterm.o): Depend on coding.h
5777
d10dfeef
KH
57782000-08-26 Kenichi Handa <handa@etl.go.jp>
5779
5780 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5781 the corresponding '#endif'.
5782
2d73e8d3
MB
57832000-08-26 Miles Bader <miles@gnu.org>
5784
5785 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5786 * xfaces.c (QCinherit): New variable.
5787 (syms_of_xfaces): Initialize it.
5788 (LFACE_INHERIT): New macro.
5789 (Finternal_get_lisp_face_attribute)
52283633 5790 (merge_face_vector_with_property)
2d73e8d3
MB
5791 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5792 (check_lface_attrs): Allow new types of face height. Check
5793 inherit attribute.
5794 (CYCLE_CHECK): New macro.
5795 (merge_face_inheritance): New function.
5796 (merge_face_vectors): Merge inherited faces too. Add F and
5797 CYCLE_CHECK arguments.
5798 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5799 (lookup_named_face, lookup_derived_face, realize_named_face)
5800 (face_at_string_position, face_at_buffer_position): Supply
5801 new F and CYCLE_CHECK arguments to merge_face_vectors.
5802 (merge_face_heights): New function.
52283633 5803 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
5804 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5805 handle relative face heights.
5806 (lface_same_font_attributes_p): Compare heights using EQ.
5807
6ce974d4
KH
58082000-08-26 Kenichi Handa <handa@etl.go.jp>
5809
5810 * charset.c (char_to_string): Check the character validity.
52283633 5811 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 5812
dc1e502d
SM
58132000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5814
5815 * regex.c (PUSH_FAILURE_COUNT): New macro.
5816 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5817 Handle popping of a register's or a counter's data.
5818 (POP_FAILURE_POINT): Use the new name.
5819 (re_match_2_internal): Push counter data on the stack for succeed_n,
5820 jump_n and set_number_at and remove misleading dead code in succeed_n.
5821
bd9d0f3f
GM
58222000-08-25 Gerd Moellmann <gerd@gnu.org>
5823
5824 * xdisp.c (redisplay_internal): If considering all windows on all
5825 frames, update the display for each frame as soon as possible,
5826 instead of first building all desired matrices for all frames, and
5827 then updating them all.
5828 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5829
aa5b8e15
GM
58302000-08-24 Gerd Moellmann <gerd@gnu.org>
5831
17494071
GM
5832 * bytecode.c (mark_byte_stack): Add a comment.
5833
52283633
SM
5834 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5835 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
5836 a graphical frame.
5837
c543db81
KH
58382000-08-24 Kenichi Handa <handa@etl.go.jp>
5839
d246d5f5
KH
5840 * minibuf.c (do_completion): Always use compare-string, not
5841 string-equal because the latter doesn't pay attention to
5842 multibyteness of strings.
5843
c543db81
KH
5844 * process.c (create_process): Don't setup raw-text coding here.
5845 (Fopen_network_stream): Don't set coding->src_multibyte and
5846 coding->dst_multibyte here.
5847 (read_process_output): For process filter, return unibyte string
5848 if default-enable-multibyte-characters is nil.
5849 (send_process): If OBJECT is multibyte text, be sure to encoded it
5850 by the specified coding system for the process. Otherwise, setup
5851 raw-text coding.
52283633 5852 (init_process): Don't initialize default-process-coding-system here.
c543db81 5853
9b47cfe0
EZ
58542000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5855
5856 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5857 <scroll-down-aggressively>: Likewise.
5858
f5a36960
KH
58592000-08-23 Kenichi Handa <handa@etl.go.jp>
5860
5861 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5862 zero. Set coding->produced_char correctly.
5863
69a7ffa7
AI
58642000-08-22 Andrew Innes <andrewi@gnu.org>
5865
5866 * makefile.w32-in: New file.
5867
5868 * unexw32.c (unexec): Ignore old_name, and use the actual location
5869 of the current executable instead. Base new_name on this.
5870
5871 * w32proc.c (create_child): Remove reference to security
5872 descriptor, which isn't needed and doesn't compile with mingw32.
5873
5874 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5875 up dllimport attributes.
5876 (x_update_window_end): Update prototype.
5877
5878 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5879 extern, which screws up dllimport attributes.
5880
5881 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5882 up dllimport attributes.
5883
5884 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5885 screws up dllimport attributes.
5886
5887 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5888 up dllimport attributes.
5889 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5890 screws up dllimport attributes.
5891
5892 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5893 up dllimport attributes.
5894
5895 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5896 screws up dllimport attributes.
5897
5898 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5899 screws up dllimport attributes.
5900
5901 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5902 up dllimport attributes.
5903
5904 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5905 unnecessary extern, which screws up dllimport attributes.
5906 (main): Ditto.
5907
5908 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5909 up dllimport attributes.
5910
5911 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5912 unnecessary extern, which screws up dllimport attributes.
5913
5914 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5915 screws up dllimport attributes.
5916
5917 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5918 up dllimport attributes.
5919
5920 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5921
52283633
SM
5922 * w32bdf.c (search_file_line):
5923 (set_bdf_font_info):
5924 (seek_char):
5925 (w32_get_bdf_glyph):
69a7ffa7
AI
5926 (w32_BDF_to_x_font): Fix compile warnings.
5927
52283633 5928 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
5929
5930 * w32select.c: Include keyboard.h before frame.h.
5931
5932 * w32fns.c (max): Define macro.
5933 (JOHAB_CHARSET): Define if not known.
5934 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5935 (Fx_show_tip): Synch with X version.
5936
5937 * w32xfns.c: Include keyboard.h before frame.h.
5938
5939 * w32fns.c: Include keyboard.h before frame.h.
5940
5941 * w32term.c: Include keyboard.h before frame.h.
5942
5943 * fontset.c: Include keyboard.h before frame.h.
5944
5945 * w32inevt.c: Include keyboard.h before frame.h.
5946 (MOUSE_MOVED): Define if not known.
5947
5948 * minibuf.c: Include keyboard.h before frame.h.
5949
5950 * keyboard.c: Include keyboard.h before frame.h.
5951
5952 * indent.c: Include keyboard.h before frame.h.
5953
5954 * dispnew.c: Include keyboard.h before frame.h.
5955
5956 * buffer.c: Include keyboard.h before frame.h.
5957
5958 * alloc.c: Include keyboard.h before frame.h.
5959
5960 * print.c: Include keyboard.h before frame.h.
5961
5962 * process.c: Include keyboard.h before frame.h.
5963
5964 * scroll.c: Include keyboard.h before frame.h.
5965
5966 * sysdep.c: Include keyboard.h before frame.h.
5967
5968 * term.c: Include keyboard.h before frame.h.
5969
5970 * window.c: Include keyboard.h before frame.h.
5971
5972 * xdisp.c: Include keyboard.h before frame.h.
5973 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5974
5975 * frame.c: Include keyboard.h before frame.h.
5976
5977 * w32heap.h: Undefine min, max.
5978
5979 * w32gui.h: Undefine min, max.
5980
5981 * unexw32.c: Change PUCHAR to PCHAR.
5982 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
5983 (relocate_offset):
5984 (get_section_info):
69a7ffa7
AI
5985 (copy_executable_and_dump_data): Remove unnecessary static defs.
5986 (copy_executable_and_dump_data): Fix compile warnings.
5987
5988 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5989
5990 * w32console.c (min): Define macro.
5991 (clear_frame, write_glyphs): Fix compile warning.
5992
52283633 5993 * w32proc.c (compare_env):
69a7ffa7
AI
5994 (find_child_console): Fix compile warning.
5995
5996 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5997 sys_errlist instead of _sys_errlist.
5998 (get_emacs_configuration_options): New function.
5999
6000 * s/ms-w32.h (sys_nerr): Provide default definition.
6001 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6002 name with _ prepended.
6003 (NSIG): Define if not known.
6004 (get_emacs_configuration): Provide extern declaration.
6005 (get_emacs_configuration_options): Provide extern declaration.
6006 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6007
6008 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6009 (map_w32_filename):
69a7ffa7
AI
6010 (read_unc_volume): Fix compile warning.
6011
6012 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6013 definitions from being used.
6014
6015 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6016
52283633 6017 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6018 (open_unc_volume): Make arg const.
6019
6020 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6021 (read_input_waiting): Remove excess parameter.
6022
6023 * w32.c (init_environment): Call _access.
6024 (check_windows_init_file): Call _close.
6025 (init_user_info): Call _putenv.
6026 (init_environment): Call _putenv and _strdup.
6027 (init_ntproc): Reset volume info cache on startup.
6028
6029 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6030 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6031 cannot override the CRT malloc.
6032
6033 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6034 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6035
6036 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6037 unless we are linking with a static CRT.
6038 (RVA_TO_PTR): Cast result to unsigned char*.
6039
6040 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6041 (add_volume_info): Use xstrdup.
6042
25060080
SM
60432000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6044
6045 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6046 (do_completion, Fminibuffer_complete_word): Use it.
6047 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6048 var so it can take non-boolean values.
6049
6917e6bb
GM
60502000-08-21 Gerd Moellmann <gerd@gnu.org>
6051
acb7cc89 6052 * editfns.c (find_field): Formatting changes.
52283633 6053 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6054 changed to prototypes, some new protypes added, some functions
6055 made static.
6056
6057 * lisp.h (set_time_zone_rule): Add prototype.
6058 (use_dialog_box): External declaration.
6059
0bbfdc25
GM
6060 * keyboard.c (gen_help_event): Add parameter SIZE.
6061 (kbd_buffer_events_waiting): Slightly rewritten.
6062 (clear_event): New function.
6063 (kbd_buffer_get_event): Use it, and clear the input_events of
6064 HELP_EVENTs.
6065 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6066 don't fill the newly created array with nils.
6067 (toplevel): Convert some old-style function forward declarations
6068 to prototypes.
6069
6070 * keyboard.h (gen_help_event): Change prototype.
6071
6072 * xterm.c (XTread_socket): Change calls to gen_help_event.
6073
6074 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6075
6917e6bb
GM
6076 * eval.c (Fmacroexpand): Doc fix.
6077
e5cd3d11
JR
60782000-08-20 Jason Rumney <jasonr@gnu.org>
6079
6080 * w32term.h (x_display_info_for_display): Remove as this function
6081 does not exist on W32.
6082
6083 * w32term.c (help_echo_window): New variable.
6084 (syms_of_w32term): staticpro it.
6085 (note_mode_line_highlight): Set it.
6086 (XTextExtents16): Removed as there is no equivalent on W32.
6087 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6088 the X way of doing this will not work for W32.
6089 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6090 (x_draw_image_foreground): Avoid drawing outside of the clip area
6091 when image doesn't have a mask.
6092 (note_mouse_highlight): Process overlays in the right order of
6093 priority. Set help_echo_window.
6094 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6095 because that's more visible for large images.
6096
6097 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6098 name to single_keymap_panes.
6099 (w32_menu_show): Set wv->title when dealing with titles.
6100 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6101
6e69ab8c
MB
61022000-08-21 Miles Bader <miles@gnu.org>
6103
6104 * minibuf.c (do_completion): Try again if we rewrite the input
6105 string, but no completion was done, so that any completion message
6106 will be correct.
6107
511bd4eb
GM
61082000-08-20 Gerd Moellmann <gerd@gnu.org>
6109
6110 * xfaces.c (lface_equal_p): Compare strings differently.
6111 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6112 (realize_tty_face): Use them.
6113 (syms_of_xfaces): Initialize new variables.
6114 (map_tty_color): New function, extracted from realize_tty_face.
6115 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6116 foreground or background color, store the new color name in the
6117 realized face; previous code trying to do this had no effect.
6118 (realize_tty_face): Use map_tty_color.
6119 (Fclear_face_cache): Set face_change_count and ensure thorough
6120 redisplay.
6121
1433385f
GM
61222000-08-19 Gerd Moellmann <gerd@gnu.org>
6123
511bd4eb
GM
6124 * undo.c (record_first_change, record_marker_adjustment): Don't
6125 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6126
419ac0a2
KH
61272000-08-18 Kenichi Handa <handa@etl.go.jp>
6128
6129 * coding.c (decode_coding_string): Set members consumed,
6130 consumed_char, produced, produced_char of *coding correctly. If
6131 decode_coding doesn't consume any byte, don't try anymore.
6132 (encode_coding_string): Likewise.
6133
7eb9e30d
GM
61342000-08-18 Gerd Moellmann <gerd@gnu.org>
6135
511bd4eb
GM
6136 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6137 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6138
6139 * xdisp.c (redisplay_internal): Compare windows for equality with
6140 EQ, instead of applying XWINDOW to something that might not
6141 be a window.
52283633 6142
dd34a735
KH
61432000-08-18 Kenichi Handa <handa@etl.go.jp>
6144
6145 * fontset.c (Finternal_char_font): Search only the selected frame
6146 for a window of the current buffer.
6147
385ff9e3
GM
61482000-08-18 Gerd Moellmann <gerd@gnu.org>
6149
511bd4eb 6150 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6151 Lisp_Objects.
6152
385ff9e3
GM
6153 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6154 second half of a HELP_EVENT is found at the start of kbd_buffer.
6155
d6abb4c7
MB
61562000-08-18 Miles Bader <miles@gnu.org>
6157
4618074a
MB
6158 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6159
d6abb4c7
MB
6160 * editfns.c (save_restriction_save): Rewrite to use markers.
6161 (save_restriction_restore): Rewrite to understand new form of data
6162 saved by save_restriction_save.
6163 (Fsave_restriction): Remove cautionary note in doc-string.
6164
a7b28523
GM
61652000-08-17 Gerd Moellmann <gerd@gnu.org>
6166
6167 * fileio.c (build_annotations): Add a comment explaining the
6168 return value of format-annotate-function. Replace a spurious call
6169 to Flength with a CONSP test. Call format-annotate-function with
6170 a fifth arg specifying how many times the function is been called
6171 in a row, to let it choose temporary buffers appropriately.
6172
03c9ed77
DL
61732000-08-17 Dave Love <fx@gnu.org>
6174
6175 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6176 declare make_temp_name twice.
6177
52283633 6178 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6179 (unreadpure): Give it an arg.
6180
6181 * unexalpha.c: Prototype fatal_unexec, mark_x,
6182 update_dynamic_symbols. Declare unexec as void.
6183
6184 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6185 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6186
6187 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6188 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6189
6190 * alloca.c: Use #error.
6191 [POINTER_TYPE]: Use it.
6192
6193 * eval.c (Fdefvar): Doc fix.
6194
6195 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6196 INITIALIZE_INTERVAL.
6197
6198 * buffer.h: Avoid DECLARE_INTERVALS.
6199
6200 * config.in: Add size_t.
6201
aae41d97
EZ
62022000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6203
6204 * w16select.c (set_clipboard_data): If there's not enough memory
6205 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6206 expects. In case of other failures, return 3.
6207 (system_error_msg): New error message.
6208 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6209 system_error_msg.
6210
65aa5e85
GM
62112000-08-16 Gerd Moellmann <gerd@gnu.org>
6212
6213 * term.c (write_glyphs): Also turn off inverse video after turning
6214 off other appearances in case TS_exit_attribute_mode is not equal
6215 to TS_end_standout_mode.
6216 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6217 with the same face.
6218 (turn_off_face): Reset standout_mode only if
6219 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6220 is equal to TS_end_standout_mode.
6221
ece23901
KH
62222000-08-16 Kenichi Handa <handa@etl.go.jp>
6223
9d7bcb2e
KH
6224 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6225 sequence at the end of the source block.
6226
ece23901
KH
6227 * ccl.c (Fccl_program_p): Docstring modified.
6228 (Fccl_execute): Likewise.
6229 (Fccl_execute_on_string): Likewise.
6230
5e30eaa2
EZ
62312000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6232
6233 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6234
290602fd
KH
62352000-08-16 Kenichi Handa <handa@etl.go.jp>
6236
6237 The following changes are mainly to fix bugs of
6238 encode/decode-coding-string failing if encoding/decoding return
6239 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6240 variable conversion_buffer.
6241
6242 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6243 decrement dst_end to avoid buffer overflow in the later call of
6244 string_as_multibyte
6245
6246 * coding.h (conversion_buffer_size, conversion_buffer)
6247 (get_conversion_buffer): Extern deleted.
6248
6249 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6250 (conversion_buffer, conversion_buffer_size): Variables deleted.
6251 (get_conversion_buffer): Function deleted.
6252 (struct conversion_buffer): New structure.
6253 (MAX_ALLOCA): New macro.
6254 (allocate_conversion_buffer): New macro.
6255 (extend_conversion_buffer, free_conversion_buffer): New functions.
6256 (ccl_coding_driver): Set coding->result.
6257 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6258 this is the last block of source.
6259 (encode_coding): Likewise. Handle the source block as the last
6260 one only when the whole source text is consumed.
6261 (decode_coding_string): Handle the case that the output buffer is
6262 too small to decode the whole source text. Use
6263 allocate_conversion_buffer, extend_conversion_buffer and
6264 free_conversion_buffer, not get_conversion_buffer.
6265 (encode_coding_string): Likewise.
6266 (init_coding): Function deleted.
52283633 6267 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6268
6269 * emacs.c (main): Don't call init_coding.
6270
52283633 6271 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6272
6273 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6274 (insert_glyphs): Likewise.
6275
6276 * w32console.c (write_glyphs): Use a locally declared
6277 conversion_buffer.
6278
b9f80d41
EZ
62792000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6280
6281 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6282 member of display_info is NULL.
6283
32dc52f7
GM
62842000-08-15 Gerd Moellmann <gerd@gnu.org>
6285
52283633 6286 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6287
32dc52f7 6288 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6289 appearances with capability `me'.
32dc52f7
GM
6290 (write_glyphs): Switch on inverse video before each face change.
6291
4eb22d33
DL
62922000-08-14 Dave Love <fx@gnu.org>
6293
6294 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6295 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6296 (lisp_free): Declare and make static.
6297
6298 * window.c: Fix embedded comment.
6299 (syms_of_window): Fix doc string.
6300
90cbf47e
GM
63012000-08-14 Gerd Moellmann <gerd@gnu.org>
6302
52283633 6303 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6304 make sure to print `C-' before `M-', like in the manual.
6305
440fc135
GM
63062000-08-11 Gerd Moellmann <gerd@gnu.org>
6307
6308 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6309 since they aren't relocated anymore.
52283633 6310 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6311
6312 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6313 partially visible line which is smaller than the window's height.
440fc135 6314
6e264fad
KH
63152000-08-11 Kenichi Handa <handa@etl.go.jp>
6316
6317 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6318 the multibyte form of eight-bit-control characters.
6e264fad
KH
6319 (Fccl_execute_on_string): Initialize ccl->multibyte.
6320
6321 * ccl.h (struct ccl_program): New member multibyte.
6322
6323 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6324
c371f69a
KH
63252000-08-11 Kenichi Handa <handa@etl.go.jp>
6326
6327 * regex.c (regex_compile) <normal_char>: Pay attention to
6328 multibyteness.
6329 (analyse_first) <exactn>: Setup fastmap correctly for
6330 eight-bit-control characters.
6331
63322000-08-11 Kenichi Handa <handa@etl.go.jp>
6333
52283633 6334 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6335
6336 * keyboard.c (make_lispy_event): Handle the new event type
6337 multibyte_char_keystroke.
6338
6339 * xterm.c: Include coding.h.
6340 (XTread_socket): Work around a bug of XmbLookupString. If the
6341 input is from XIM, decode it according to the current locale. In
6342 that case, generate multibyte_char_keystroke events.
6343
b8ddbe71
KH
63442000-08-11 Kenichi Handa <handa@etl.go.jp>
6345
6346 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6347 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6348
47589c8c
GM
63492000-08-10 Gerd Moellmann <gerd@gnu.org>
6350
6351 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6352 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6353 (move_it_in_display_line_to): Record iterator's ascent and descent
6354 before producing glyphs, and restore them when we know the glyph
6355 doesn't fit on the line.
6356 (move_it_to): Restructured so that it's easier to debug. If
6357 moving to a vpos, and not moving to an x or character position,
6358 stop as soon as the specified vpos is reached; don't move further
6359 into that line because that might change the computed line height.
6360 (try_cursor_movement): New function, extracted from the cursor
6361 movement branch of redisplay_window. If ending on a partially
6362 visible line, don't try to scroll if the cursor line is taller
6363 than the window.
6364 (redisplay_window): Use try_cursor_movement.
6365
6366 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6367 because that function doesn't cope with variable-height lines.
6368
6369 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6370 box cursor because that's better visible for large images.
52283633 6371
c51bacd6
MB
63722000-08-10 Miles Bader <miles@gnu.org>
6373
6374 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6375
bea56df7
GM
63762000-08-10 Gerd Moellmann <gerd@gnu.org>
6377
6378 * xdisp.c (Vmessages_buffer_name): New variable.
6379 (message_dolog): Use it.
6380 (syms_of_xdisp): Initialize it.
6381
99cd7364
EZ
63822000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6383
52283633 6384 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6385 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6386 redundant now that keyboard.h is included.
6387
7d093d56
EZ
63882000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6389
6390 * keyboard.c (kbd_buffer_events_waiting): New function.
6391
6392 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6393
6394 * msdos.c: Include keyboard.h.
6395 (XMenuActivate): Empty no_event events from the event buffer. If
6396 no events are left after that, call clear_input_pending.
6397 (mouse_clear_clicks): New function, code moved from mouse_init.
6398 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6399 mouse driver to ``forget'' any past clicks.
6400
6401 * Makefile.in (msdos.o): Depend on keyboard.h.
6402
41e757a6
GM
64032000-08-09 Gerd Moellmann <gerd@gnu.org>
6404
8e7bd231
GM
6405 * lisp.h (input_pending): External declaration.
6406
6407 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6408
8e7bd231
GM
6409 * xdisp.c (echo_area_display): Display thoroughly if input is
6410 pending. Bind redisplay-dont-pause to t during the redisplay.
6411 in case input is pending.
6412
6413 * dispnew.c (Qredisplay_dont_pause): New variable.
6414 (syms_of_display): Initialize and staticpro it.
6415 (update_frame_1): Don't interrupt the display for pending input if
6416 redisplay_dont_pause is set.
52283633 6417
43028b7e
GM
6418 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6419
41e757a6
GM
6420 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6421
2f2174fa
KH
64222000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6423
6424 * callproc.c (Fcall_process): Terminate the unwind-protect around
6425 the post-read-conversion of coding system.
6426
0a6fd67e
MB
6427 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6428 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6429 * buffer.h (overlays_at): Update prototype.
6430 * xdisp.c (next_overlay_change): Update call to overlays_at.
6431 * xfaces.c (face_at_buffer_position): Likewise.
6432 * textprop.c (Fget_char_property): Likewise.
6433 * xterm.c (note_mouse_highlight): Likewise.
6434
0c80756e
MB
6435 * minibuf.c (do_completion): Don't consider a simple change of
6436 case as `completion'.
6437
975f250a
KR
64382000-08-08 Ken Raeburn <raeburn@gnu.org>
6439
52283633 6440 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6441 * undo.c (record_delete): Make sure last_point_position_buffer is
6442 a buffer before comparing pointers.
6443
6444 * coding.h (decode_coding_string): Declare.
6445
6446 * intervals.h (Fprevious_single_char_property_change): Declare.
6447
6448 * textprop.c (Fprevious_single_char_property_change): Don't do
6449 arithmetic directly on lisp objects.
6450
52283633 6451 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6452
6453 * keyboard.h (menu_item_eval_property): Declare.
6454
6455 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6456 reuse as buffer name, instead of recreating (and discarding) every
6457 time a message is logged.
6458 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6459 (current_message_1, truncate_message_1, set_message_1)
6460 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6461 (current_message, truncate_echo_area, display_echo_area)
6462 (resize_echo_area_axactly): Changed calls.
b347b3fd 6463
975f250a 6464 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6465 Lisp object.
975f250a 6466 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6467 must be an integer, not a Lisp object.
975f250a 6468
46dc9912
KH
64692000-08-08 Kenichi Handa <handa@etl.go.jp>
6470
6471 * charset.c (Fchar_width): Doc fix.
6472
9f6d1a6c
GM
64732000-08-08 Gerd Moellmann <gerd@gnu.org>
6474
6475 * charset.c (Fstring_width): Doc fix.
6476
ff3d9573
GM
64772000-08-07 Gerd Moellmann <gerd@gnu.org>
6478
41e757a6 6479 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6480 line, clear ascent and descent members of the iterator structure;
6481 the height of the continued line does not affect the height of the
6482 continuation line.
6483 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6484 line taller than the window.
6485 (redisplay_window) <forced window start>: Handle case that the
6486 middle of the window is not found in any row.
6487 (dump_glyph_row): Show more information.
6488 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6489 first text line in a glyph matrix.
6490
6491 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6492 of the clip area when image doesn't have a mask.
6493
70fc58b3
GM
6494 * fns.c (sweep_weak_table): Fix survival conditions for
6495 key-or-value and key-and-value weakness.
6496
6497 * .gdbinit (xhashtable): New command.
6498
ac0e96ee
GM
6499 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6500 tables out of the list of all weak hash tables.
6501
ff3d9573
GM
6502 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6503 a new buffer is created, make sure echo_area_buffer[] references
6504 the new buffer.
6505
e0d8827b
EZ
65062000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6507
6508 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6509 the doc string.
6510
c6f35378
KH
65112000-08-07 Kenichi Handa <handa@etl.go.jp>
6512
6513 * syntax.c (skip_chars): Fix previous change. Make the handling
6514 of unibyte string consistent with that of regex search.
6515
1fd4c450
GM
65162000-08-05 Gerd Moellmann <gerd@gnu.org>
6517
e49aa397
GM
6518 * xmenu.c (popup_get_selection): Use xfree instead of free.
6519
6520 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6521
6522 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6523
6524 * callproc.c (child_setup): Use xfree instead of free.
6525
6526 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6527 instead of malloc.
6528 (run_mac_command, closedir): Use `xfree' instead of `free'.
6529
6530 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6531
6532 * eval.c (error): Use xfree instead of free.
6533
1fd4c450
GM
6534 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6535
6536 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6537 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6538
82d497fc
KH
65392000-08-05 Kenichi Handa <handa@etl.go.jp>
6540
6541 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6542 conversion.
6543
59f953a2
NF
65442000-08-04 Noah Friedman <friedman@splode.com>
6545
6546 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6547 docstring.
6548
688351f2
GM
65492000-08-04 Gerd Moellmann <gerd@gnu.org>
6550
6551 * syntax.c (skip_chars): Fix typo in error message.
6552
2dad51cc
AS
65532000-08-04 Andreas Schwab <schwab@suse.de>
6554
6555 * m/ia64.h: Moved from s/ia64.h.
6556
99bb2c60
KH
65572000-08-04 Kenichi Handa <handa@etl.go.jp>
6558
082a1df2
KH
6559 * process.c (read_process_output): Big simplification. Handle
6560 composition and post-read-conversion of coding system correctly.
6561 (send_process): Handle composition correctly.
6562
6563 * callproc.c (Fcall_process): Handle post-read-conversion of
6564 coding system if any.
6565
99bb2c60
KH
6566 * coding.c (decode_coding_iso2022): More strict check for handling
6567 single shifting.
082a1df2
KH
6568 (coding_restore_composition): Pay attention to the case that
6569 cmp_data is not set properly (because of invalid code in the
6570 source text).
6571 (run_pre_post_conversion_on_str): Include text properties in the
6572 resulting string.
6573 (decode_coding_string): Set members of coding correctly.
99bb2c60 6574
f4988be7
GM
65752000-08-03 Gerd Moellmann <gerd@gnu.org>
6576
6577 * s/ia64.h: New file.
6578
6579 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6580 Use NULL instead of 0 at the end of variable argument list of
6581 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6582 sizeof (int) < sizeof (void *).
6583
6584 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6585 of variable argument lists of XtVaGetValues and XtVaSetValues.
6586
6587 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6588 variable argument lists of XtVaGetValues and XtVaSetValues.
6589
ead53494
GM
65902000-08-02 Gerd Moellmann <gerd@gnu.org>
6591
6592 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6593 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6594
6595 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6596 prototype.
6597
6598 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6599 in call to Fsingle_key_description.
6600
6601 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6602 Callers changed.
6603
66042000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6605
6606 * window.c (display_buffer_reuse_frames): New variable.
6607 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6608 frames displaying BUFFER.
52283633 6609 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6610
10b0f752
MB
66112000-08-01 Miles Bader <miles@gnu.org>
6612
6613 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6614 when to constrain NEW_POS (they were pretty screwed up before).
6615
16425c4a
EZ
66162000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6617
6618 * msdos.c (run_msdos_command): Save and restore the master
6619 environment, for the case that child_setup signals an error.
6620 When mirroring slashes in DOS shell commands, don't fail when
6621 argv[2] has embedded blanks.
da288c14
EZ
6622 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6623 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6624 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6625
6626 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6627 using alloca; free it after run_msdos_command returns.
6628
27f73852
DL
66292000-07-27 Dave Love <fx@gnu.org>
6630
52283633
SM
6631 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6632 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6633
6634 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6635
c0261b5e
EZ
66362000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6637
6638 * editfns.c (lisp_time_argument): Fix last change.
6639
b548072f
GM
66402000-07-27 Gerd Moellmann <gerd@gnu.org>
6641
3ab82477
GM
6642 * fns.c (Fdelete): Make it work on vectors and strings in addition
6643 to lists.
6644
b548072f
GM
6645 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6646 (syms_of_fns): Initialize new variables.
52283633 6647 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6648 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6649 weakness, with t meaning the same as `key-and-value'.
6650
91ae8751
KH
66512000-07-27 Kenichi Handa <handa@etl.go.jp>
6652
6653 * coding.h (struct coding_system): Member safe_charset deleted.
6654
6655 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6656 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6657 New variables.
91ae8751
KH
6658 (coding_safe_chars): New function.
6659 (CODING_SAFE_CHAR_P): New macro.
6660 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6661 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
6662 (detect_coding_iso2022): New local variable safe_chars.
6663 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6664 safe_charsets member of the coding system.
6665 (decode_coding_iso2022): New local variable safe_chars.
6666 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6667 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6668 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6669 (ENCODE_UNSAFE_CHARACTER): New macro.
6670 (encode_coding_iso2022): New local variable safe_chars. Check
6671 unsafe chars.
6672 (setup_coding_system): Delete the code to initialize
6673 coding->safe_charses
6674 (intersection, find_safe_codings): New functions.
6675 (Ffind_coding_systems_region_internal): New function.
6676 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6677 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6678 variable and initialize it.
6679
6680 * fns.c (char_table_ref_and_index): New function.
6681
6682 * lisp.h (char_table_ref_and_index): Add prototype.
6683
34a7a267
SS
66842000-07-26 Sam Steingold <sds@gnu.org>
6685
6686 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6687 (Ffloat_time): New built-in Lisp function.
34a7a267 6688
a95cb10a
GM
66892000-07-26 Gerd Moellmann <gerd@gnu.org>
6690
3353ef5a
GM
6691 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6692 for the character code.
6693
6694 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6695 GNU/Linux.
6696
a95cb10a
GM
6697 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6698 if called for a popup menu.
6699 (xmenu_show): Store help string in widget values.
6700
b4a12321
DL
67012000-07-26 Dave Love <fx@gnu.org>
6702
6703 * syswait.h: Move some definitions.
6704 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6705 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6706 perspicuous definitions.
6707 (WTERMSIG): Fix bit pattern used.
6708
13f5ad37
KH
67092000-07-26 Kenichi Handa <handa@etl.go.jp>
6710
6711 * print.c (print_object): If vector printing is truncated, print
6712 "..." to indicate it as well as the case of list printing.
6713
070fe99c
GM
67142000-07-25 Gerd Moellmann <gerd@gnu.org>
6715
969065c3
GM
6716 * xdisp.c (next_element_from_display_vector): Improve comments.
6717
6718 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6719 for the character code, and the rest for the face id as in 20.x.
6720 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6721
6722 * window.c (window_display_table): Cleaned up.
6723
070fe99c
GM
6724 * syntax.c (Fforward_word): Add last arg nil in call of
6725 Fconstrain_to_field.
6726
bad77ef7
EZ
67272000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6728
969065c3 6729 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
6730 identical but for the letter-case, don't call
6731 barf_or_query_if_file_exists.
bad77ef7 6732
c28da489
MB
67332000-07-25 Miles Bader <miles@gnu.org>
6734
6735 * editfns.c (find_field): Honor special `boundary' fields.
6736 (Qboundary): New variables.
6737 (syms_of_editfns): Initialize Qboundary.
6738 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6739 Use scan_buffer instead of find_before_next_newline, because it
6740 allows us to detect the boundary case where there's a newline at
6741 the search limit.
6742 * lisp.h (Fconstrain_to_field): Update external declaration.
6743
e3c31fd5
GM
67442000-07-24 Gerd Moellmann <gerd@gnu.org>
6745
6746 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6747 if that is nil.
c28da489 6748
c66c29a2
DL
67492000-07-24 Dave Love <fx@gnu.org>
6750
6751 * s/sunos4-0.h, s/sol2.h:
6752 (LIBS_TERMCAP): Move from m/sparc.h.
6753
6754 * m/sparc.h (TERMINFO): Moved to system files (probably only
6755 relevant for sunos4 judging by its vintage).
6756 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6757 __arch64__.
6758
fbe0a958
EZ
67592000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6760
6761 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6762 name to single_keymap_panes.
6763
7d88e5c9
AS
67642000-07-24 Andreas Schwab <schwab@suse.de>
6765
6766 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6767
e024b101
GM
67682000-07-24 Gerd Moellmann <gerd@gnu.org>
6769
6770 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6771 parameters instead of using int parameters. Expect FN to accept
6772 EMACS_INT parameters.
6773 (display_echo_area, resize_echo_area_axactly, current_message)
6774 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6775 with new argument list.
6776 (resize_mini_window_1): New callback function.
6777 (current_message_1, truncate_message_1, set_message_1): Change
52283633 6778 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 6779
25c1a9ce
KH
67802000-07-24 Kenichi Handa <handa@etl.go.jp>
6781
6782 * fontset.c (fontset_ref): Remove INLINE declaration.
6783 (fontset_ref_via_base): Likewise.
6784 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6785 to downcase.
6786
7f987ac0
EZ
67872000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6788
6789 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6790 correct order of priority. If help echo was found in an overlay,
6791 use that overlay as the object in which the help echo was found.
6792
e2db3069
MB
67932000-07-22 Miles Bader <miles@gnu.org>
6794
6795 * textprop.c (Fprevious_single_char_property_change): The initial
6796 property value should be from the position preceding POSITION, not
6797 following it.
6798
5e3203e4
EZ
67992000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6800
6801 * coding.c (syms_of_coding): Doc fix for
6802 inhibit-iso-escape-detection.
6803
62145073
GM
68042000-07-21 Gerd Moellmann <gerd@gnu.org>
6805
c20aeb83
GM
6806 * xterm.c (note_mouse_highlight): Process overlays in the right
6807 order of priority.
34a7a267 6808
743934db
GM
6809 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6810
6811 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 6812 overlay, use that overlay as the object in which the help was found.
743934db 6813
d1dc7e43 6814 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6815
62145073
GM
6816 * window.c (foreach_window): Instead of a fake variable argument
6817 list, take one USER_DATA argument.
6818 (foreach_window_1): Likewise, and call callback functions with two
6819 args, the window and USER_DATA.
6820 (struct check_window_data): New struct.
6821 (check_window_containing): Use it.
6822 (window_from_coordinates): Set up a struct check_window_data for
6823 foreach_window.
6824 (add_window_to_list, freeze_window_start): Change parameters
6825 according to new calling convention.
6826
6827 * window.h (foreach_window): Change prototype.
6828
6829 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6830
68312000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6832
6833 * xmenu.c (menu_help_callback): Call show_help_echo with
6834 additional arguments OBJECT and POS.
6835
11270583
KH
68362000-07-21 Kenichi Handa <handa@etl.go.jp>
6837
07b14857
KH
6838 * data.c (Faset): Allow storing any multibyte character in a
6839 string. Convert unibyte string to multibyte if necessary.
6840
11270583
KH
6841 * xfns.c (x_encode_text): New function.
6842 (x_set_name): Use x_encode_text.
6843 (x_set_title): Likewise.
6844
6845 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6846
6847 * xterm.h (x_encode_text): Add prototype.
6848
bc75b4fd
DL
68492000-07-20 Dave Love <fx@gnu.org>
6850
6851 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6852 xfree, not free.
6853
48c14970
EZ
68542000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6855
6856 * msdos.c (help_echo_window): New variable.
6857 (syms_of_msdos): Initialize and staticpro it.
6858 (IT_note_mode_line_highlight): Set help_echo_window.
6859 (IT_note_mouse_highlight): Ditto.
6860 (dos_rawgetc): Store help_echo_window in the second event produced
6861 for HELP_EVENTs.
6862
6863 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6864 Record the object that generated the help echo and the position of
6865 that object in help_echo_object and help_echo_pos. Record that
6866 some glyphs in a row are displayed in mouse-face.
6867 (IT_update_begin): Don't clear mouse highlight unless one of the
6868 enabled glyph rows is marked as being displayed in mouse-face.
6869 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6870 and position recorded in help_echo_object and help_echo_pos to the
6871 event queue.
6872 (IT_menu_display): Accept a new argument PN: the pane number of
6873 the current menu pane. Record the pane number and the item
6874 number of the item which has associated help string.
6875 (XMenuActivate): Update the prototype for help_callback in
6876 function declaration. Call IT_menu_display with the current menu
6877 pane number as an additional argument. Call help_callback with
6878 two additional arguments: the pane number and the item number of
6879 the menu item associated with the help text.
6880 (help_echo_object, help_echo_pos): New variables.
6881 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6882
6883 * msdos.h (XMenuActivate): Update prototype.
6884
4279296d
GM
68852000-07-19 Gerd Moellmann <gerd@gnu.org>
6886
47db06aa
GM
6887 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6888 Add some more prototypes.
6889
6890 * xterm.c, xterm.h: Add some more prototypes.
6891
6892 * lisp.h (Fnext_single_char_property_change): Add prototype.
6893
6894 * dispnew.c (direct_output_for_insert): Remove confusing
6895 outer local variable mouse_face_overwritten_p.
6896 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6897
4279296d
GM
6898 * alloc.c (allocate_string_data): Don't copy old string contents.
6899
670acd62
KH
69002000-07-19 Kenichi Handa <handa@etl.go.jp>
6901
6902 * coding.c (code_convert_region): Delete text properties before
6903 shrinking the conversion region.
6904
7cea38bc
GM
69052000-07-18 Gerd Moellmann <gerd@gnu.org>
6906
dc1cac59
GM
6907 * dispnew.c (update_text_area): Write the whole row if it
6908 has mouse-face in it.
6909
85a8aca9
GM
6910 * xfaces.c (face-alternative-font-family-alist): Remove
6911 DEFVAR_LISP; staticpro instead.
6912
34a7a267 6913 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6914 new arguments.
6915
6916 * keyboard.c (show_help_echo): Add parameter WINDOW.
6917 (read_char): Call show_help_echo with window extracted from Lisp
6918 help event.
6919 (gen_help_event): Add parameter WINDOW.
6920
6921 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6922
6923 * xterm.c (help_echo_window): New variable.
52283633 6924 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
6925 (XTread_socket): Pass help_echo_window to gen_help_event.
6926 (syms_of_xterm): Initialize and staticpro help_echo_window.
6927
f8276b77
DL
69282000-07-18 Dave Love <fx@gnu.org>
6929
52283633 6930 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 6931
088831a6
GM
69322000-07-18 Gerd Moellmann <gerd@gnu.org>
6933
3d6cd763
GM
6934 * alloc.c (allocate_string_data): If string had already data
6935 assigned, copy old contents to new string data.
6936
6937 * coding.c (syms_of_coding): Fix typo in spelling of variable
6938 `inhibit-iso-escape-detection'.
6939
088831a6
GM
6940 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6941
6942 * Makefile.in: Add dependencies on dispextern.h.
6943 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6944 `free'; both can conflict with system header files.
6945
bc8a8d55
KH
69462000-07-18 Kenichi Handa <handa@etl.go.jp>
6947
6948 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6949 undefined.
6950
069f5950
DL
69512000-07-18 Dave Love <fx@gnu.org>
6952
6953 * window.c (Fwindow_list): Declare arg `window'.
6954
aa96c820
KH
69552000-07-18 Kenichi Handa <handa@etl.go.jp>
6956
6957 * coding.c (setup_coding_system): Don't override the explicitly
6958 specified designations.
6959
06be8d32
MB
69602000-07-15 Miles Bader <miles@gnu.org>
6961
6962 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6963 from `text_property_eq' and `text_property_stickiness', respectively.
6964 (find_field, Fconstrain_to_field, char_property_eq)
6965 (char_property_stickiness): Changed to call char-property functions
6966 instead of text-property-only ones.
6967
6968 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6969 `next_single_char_property_change'). Do more error checking, and
6970 cleanup limit behavior.
6971 (Fprevious_single_char_property_change): New function.
6972 (syms_of_textprop): Initialize new subrs.
6973
6974 * xdisp.c (display_prop_end, invisible_text_between_p):
6975 Call Fnext_single_char_property_change instead of
6976 next_single_char_property_change.
6977
3fddcdc3
JR
69782000-07-15 Jason Rumney <jasonr@gnu.org>
6979
6980 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6981 after menu is finished with.
6982 (add_menu_item): Only consider wv->title as a menu title.
6983 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6984
6985 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6986 null title.
6987 (FONT_REGEXP): Remove unused macro, and its sub-components.
6988 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6989
6990 * w32term.c (help_echo_object, help_echo_pos): New variables.
6991 (note_mode_line_highlight): Store additional information about the
6992 help-echo in help_echo_object and help_echo_pos. Check both
6993 `local-map' and `keymap' properties for changing the cursor
6994 (note_mouse_highlight): Store additional information about the
6995 help-echo in help_echo_object and help_echo_pos.
6996 (note_tool_bar_highlight): Set help_echo_object to nil and
6997 help_echo_pos to -1.
6998 (w32_read_socket): Use gen_help_event instead of filling
6999 input_events manually.
7000 (syms_of_w32term): Staticpro help_echo_object.
7001 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7002 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7003 (x_clear_mouse_face): New function.
7004 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7005 (x_update_window_begin): No need to turn off the mouse
7006 highlight here.
7007 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7008 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7009 (x_fill_stretch_glyph_string): Consume runs of stretch
7010 glyphs instead of a single one.
7011 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7012 with new argument list.
7013 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7014 (x_append_glyph, x_append_composite_glyph)
7015 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7016 changes in struct glyph starting 1999-12-27. See comments for
7017 xterm.c on 2000-07-05.
7018
178c5d9c
SS
70192000-07-14 Sam Steingold <sds@gnu.org>
7020
7021 * xfaces.c (realize_x_face): Fix the last patch:
7022 check `default_face' before dereferencing.
7023
6fe533f6
DL
70242000-07-14 Dave Love <fx@gnu.org>
7025
069f5950 7026 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7027
dd7b81cf
KH
70282000-07-14 Kenichi Handa <handa@etl.go.jp>
7029
0693904a 7030 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7031 default_face's fontset, not using the default fontset.
0693904a 7032
dd7b81cf
KH
7033 * coding.c (inhibit_iso_escape_detection): New variable.
7034 (syms_of_coding): Make it a Lisp variable.
7035 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7036 nonzero, ignore ISO2022's escape sequence.
7037
d5aa31d8
GM
70382000-07-14 Gerd Moellmann <gerd@gnu.org>
7039
e5acf0ca
GM
7040 * alloca.c (malloc) [emacs]: Define as xmalloc.
7041
bd23a692
GM
7042 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7043 use that instead of the mouse position. Add parameters DX and DY.
7044
7045 * dispextern.h (Fx_show_tip): Adjust number of parameters
7046 in prototype.
7047
9662da0b
GM
7048 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7049 if HELP is a function, call it with OBJECT and POS as parameters
7050 to get the help to display.
7051 (gen_help_event, kbd_buffer_store_help_event): New functions.
7052 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7053 (read_char): Call show_help_echo with new parameters.
7054
178c5d9c 7055 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7056 Add prototypes.
7057
7058 * xterm.c (help_echo_object, help_echo_pos): New variables.
7059 (note_mode_line_highlight): Store additional information about the
7060 help-echo in help_echo_object and help_echo_pos. Check both
7061 `local-map' and `keymap' properties for changing the cursor
7062 (note_mouse_highlight): Store additional information about the
7063 help-echo in help_echo_object and help_echo_pos.
7064 (note_tool_bar_highlight): Set help_echo_object to nil and
7065 help_echo_pos to -1.
7066 (XTread_socket): Use gen_help_event instead of filling
7067 input_events manually.
7068 (syms_of_xterm): Staticpro help_echo_object.
7069
7070 * xmenu.c (menu_highlight_callback): Use
7071 kbd_buffer_store_help_event instead of setting up and input_event
7072 structure manually.
7073
7074 * xdisp.c (eval_form): GCPRO argument sexpr.
7075 (call_function): New function.
7076 (handle_single_display_prop): Use call_function and FUNCTIONP
7077 instead of checking whether if font_height is a symbol and
7078 using eval_form.
7079
7080 * eval.c (internal_condition_case_2): New function.
7081
7082 * lisp.h (FUNCTIONP): New macro.
7083 (internal_condition_case_2, call_function): Add prototypes.
7084
d5aa31d8
GM
7085 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7086 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7087 Always set `arg' member of input_events.
7088 (construct_menu_click): Unused function removed.
7089
7090 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7091
7092 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7093 (construct_drag_n_drop, x_scroll_bar_handle_click)
7094 (w32_read_socket): Always set `arg' member of input_events.
7095
7096 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7097
7098 * lisp.h (eval_form): Add prototype.
7099
7100 * xdisp.c (eval_form): Make it externally visible.
7101
0f1a9b23
GM
71022000-07-13 Gerd Moellmann <gerd@gnu.org>
7103
7104 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7105 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7106 consing. For prefix events, store the frame in the `arg' slot of
7107 the event, otherwise store the key there.
7108 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7109 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7110
7111 * xmenu.c (menu_highlight_callback): Store help string in the
7112 `arg' member of the input event; don't cons.
7113 (menubar_selection_callback): Use the `arg' slot of input events
7114 to queue additional information, instead of consing.
7115
7116 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7117
7118 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7119 TOOL_BAR_EVENTs.
7120 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7121
7122 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7123 input events to queue additional information, instead of consing.
7124
7125 * keyboard.c (kbd_buffer_gcpro): Renamed from
7126 kbd_buffer_frame_or_window. Now used for all Lisp objects
7127 referenced from the input queue.
7128 (kbd_buffer_store_event): Always use structure assignment for
7129 copying input events. Record all Lisp objects referenced from
7130 events in kbd_buffer_gcpro.
7131 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7132 differently from input events. Test for prefix menu_bar_events
7133 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7134 event in kbd_buffer_gcpro to nil.
7135 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7136 frame_or_window is equal to its arg member as prefix events.
7137 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7138 used by an input event to nil.
7139 (init_keyboard): Use two times the size of the input queue
7140 for kbd_buffer_gcpro.
7141 (syms_of_keyboard): Likewise.
7142
52283633
SM
7143 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7144 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7145
7146 * termhooks.h (struct input_event): Add member `arg'.
7147 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7148 (USER_SIGNAL_EVENT): Renamed from user_signal.
7149
7150 * xfaces.c (ASET): Remove definition.
7151
7152 * lisp.h (AREF, ASET, ASIZE): New macros.
7153
7154 * fontset.c (AREF, ASIZE): Remove definitions.
7155
7156 * fns.c (AREF): Remove definition.
178c5d9c 7157
0f1a9b23
GM
7158 * composite.c (AREF): Remove definition.
7159
712eaef2
GM
71602000-07-12 Gerd Moellmann <gerd@gnu.org>
7161
d8ee7803
GM
7162 * dispnew.c (redraw_overlapped_rows): Add missing local.
7163 (scrolling_window): Remove debug code.
7164
712eaef2
GM
7165 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7166 Before scrolling, turn off a mouse-highlight in the window
7167 being scrolled.
7168
7169 * xterm.c (x_update_window_end): Add parameter
7170 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7171 redisplay in XTframe_up_to_date.
7172 (x_clear_mouse_face): New function.
7173 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7174
7175 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7176 current glyph row.
7177 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7178 it when any row is written to that contains glyphs highlighted in
7179 mouse-face.
7180 (update_window): Call the window update end hook with new
7181 parameter MOUSE_FACE_OVERWRITTEN_P.
7182 (direct_output_for_insert): Give up if row contains mouse-face.
7183
7184 * dispextern.h (struct redisplay_interface): Add parameter
7185 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7186 (clear_mouse_face): New function pointer member.
7187
02010917
SM
71882000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7189
7190 * syntax.c (back_comment): Use one switch rather than a few `if's.
7191 Obey open_paren_in_column_0_is_defun_start.
7192 When reverting to the `slow' method, try to nicely handle the case
7193 of nested comments by checking that the comment-starter we found
7194 does indeed match the comment-ender.
7195 (scan_sexps_forward, scan_sexps_forward):
7196 Ignore excessive opening parenthesis rather than throwing an error.
7197
d76c03ea
GM
71982000-07-11 Gerd Moellmann <gerd@gnu.org>
7199
7200 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7201 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7202
7203 * dispnew.c (direct_output_forward_char): Give up if currently
7204 displaying a message instead of the minibuffer contents.
7205
7206 * xterm.c (x_update_window_begin): No need to turn off the mouse
7207 highlight here.
7208 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7209 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7210
7211 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7212 compare the mouse_face_p flags of both rows.
7213
7214 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7215
d55ead18
EZ
72162000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7217
7218 * keyboard.c (show_help_echo): Accept additional parameter
7219 ok_to_overwrite_keystroke_echo.
7220 (read_char): Call show_help_echo with a zero
7221 ok_to_overwrite_keystroke_echo argument.
52283633 7222 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7223 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7224 ok_to_overwrite_keystroke_echo argument.
7225 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7226 non-zero ok_to_overwrite_keystroke_echo argument.
7227
df75b1a3
GM
72282000-07-10 Gerd Moellmann <gerd@gnu.org>
7229
4b92c49a
GM
7230 * xdisp.c (try_window_id): If changes are all below what is
7231 displayed in the window, and point is in the window, we still
7232 might have to find point on the display.
7233
7234 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7235 glyphs instead of a single one.
7236 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7237 with new argument list.
7238 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7239
df75b1a3
GM
7240 * keymap.c (get_keymap_1): Add comment that this function can GC.
7241 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7242 comment that functions can GC.
7243 (Fset_keymap_parent): GCPRO arg KEYMAP.
7244
4314cf3e
EZ
72452000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7246
7247 * msdos.c (XMenuActivate): After exiting the menu, restore the
7248 echo area message and erase it.
7249
ab49ce15
KH
72502000-07-10 Kenichi Handa <handa@etl.go.jp>
7251
7252 * fontset.c (Ffontset_info): Make the return value more compatible
7253 with that of Emacs 20.
7254
090a072f
GM
72552000-07-07 Gerd Moellmann <gerd@gnu.org>
7256
7257 * eval.c (Fsignal): Handle case that backtrace_list is null.
7258
f92de4a6
KH
72592000-07-07 Kenichi Handa <handa@etl.go.jp>
7260
7261 * ccl.c (Fccl_execute): Typo fixed.
7262
dd8888a1
GM
72632000-07-06 Gerd Moellmann <gerd@gnu.org>
7264
e5c81191 7265 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7266
dd8888a1
GM
7267 * window.c (Fwindow_list): Reverse list at the end.
7268 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7269 means allow windows on OWINDOW's frame, only.
7270 (window_loop): Simplified; use Fwindow_list.
7271
7272 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7273
485266d0
GM
72742000-07-05 Gerd Moellmann <gerd@gnu.org>
7275
7276 * xterm.c (XTread_socket): Increment handling_signal at the start,
7277 decrement it at the end.
7278
7279 * eval.c (handling_signal): New variable.
7280 (Fsignal): Abort if handling_signal is non-zero.
7281
7282 * lisp.h (handling_signal): External declaration.
178c5d9c 7283
485266d0
GM
7284 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7285
80fcd514
KR
72862000-07-05 Ken Raeburn <raeburn@gnu.org>
7287
7288 Sound support for NetBSD through "Linux emulation" support:
7289 * config.in (HAVE_SOUNDCARD_H): Undef.
7290 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7291 * Makefile.in (LIBSOUND): New variable.
7292 (LIBES): Include it.
52283633
SM
7293 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7294 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7295 (vox_open): Use DEFAULT_SOUND_DEVICE.
7296 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7297
d5c5cddd
GM
72982000-07-05 Gerd Moellmann <gerd@gnu.org>
7299
7300 * print.c (print_error_message): If Vsignaling_function is set,
7301 show it in *Messages*.
7302
7303 * lisp.h (Vsignaling_function): External declaration.
7304
7305 * eval.c (Vsignaling_function): New variable.
7306 (Fsignal): Compute it.
7307 (syms_of_eval): Staticpro it.
7308
65171e3a
DL
73092000-07-05 Dave Love <fx@gnu.org>
7310
7311 * syswait.h: Use the autoconf recommended approach. Old code
7312 #if'd out in case we need to revert.
7313
178c5d9c 7314 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7315
e2c46326
AI
73162000-07-05 Andrew Innes <andrewi@gnu.org>
7317
7318 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7319 when non-NULL instead of __morecore, to take account of buffer
7320 memory. This also solves a problem with spurious memory warnings
7321 on Windows.
7322
7323 * ralloc.c: Make real_morecore non-static.
7324
7325 * eval.c (internal_condition_case): Comment out abort if
7326 interrupt_input_blocked is not zero.
7327
7328 * makefile.nt: Add support for `bootstrap' and related targets.
7329 Include minimal debug info in emacs.exe in release build.
7330 Remove all dependencies on lisp.h, and fixup some others.
7331
7332 * w32.c (init_environment): Install code from 20.7 for providing
7333 default values for environment variables, based on the
7334 executable's own location.
52283633 7335 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7336 (sys_socket): Install socket inheritance bug fix from 20.7.
7337
7338 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7339 here via blockinput.h).
7340
a027a91b
SM
73412000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7342
e4b31601
SM
7343 * w32menu.c (w32_menu_display_help):
7344 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7345
7346 * keyboard.h (show_help_echo): Declare.
7347
7348 * keyboard.c (show_help_echo): New function, extracted from read_char.
7349 Feval its `msg' argument if it's a cons cell.
7350 (read_char): Use it.
4cf8d9d5 7351 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7352
178c5d9c 7353 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7354 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7355 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7356 (dos_rawgetc):
7357 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7358 (note_tool_bar_highlight, w32_read_socket):
7359 Do not gratuitously ignore non-string `help-echo' properties.
7360
88d75730
GM
73612000-07-05 Gerd Moellmann <gerd@gnu.org>
7362
969f7e79
GM
7363 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7364
71201b00
GM
7365 * window.c (delete_all_subwindows): Reset Vwindow_list.
7366
88d75730
GM
7367 * xterm.c (x_append_glyph, x_append_composite_glyph)
7368 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7369 changes in struct glyph starting 1999-12-27. Some bit-fields of
7370 struct glyph were not set, which made glyphs unequal when compared
7371 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7372 effects were the result. This also depended on the contents of
7373 memory returned by xmalloc. If flickering happens again, activate
7374 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7375 gone with that, chances are that it is caused by something similar.
88d75730
GM
7376
7377 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7378
88d75730
GM
7379 * dispextern.h: Add some comments.
7380
7381 * window.c (add_window_to_list): Add parameter LIST.
7382 (window_list): Order list so that, for each frame, windows are
7383 in canonical order, and so that frames appear in the list in
7384 the order given by Vframe_list.
7385 (next_window): Reverse the handling of NEXT_P.
7386
53654733
GM
73872000-07-04 Gerd Moellmann <gerd@gnu.org>
7388
87efd256
GM
7389 * window.c (Vwindow_list): New variable.
7390 (make_window, delete_window): Set Vwindow_list to nil.
7391 (check_window_containing): New function.
7392 (window_from_coordinates): Rewritten.
7393 (add_window_to_list, window_list, candidate_window_p)
7394 (decode_next_window_args, next_window): New functions.
52283633 7395 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7396 (Fwindow_list): New function.
7397 (Fother_window): Cleaned up.
7398 (foreach_window): Add a longer "variable argument list". Let
7399 callback function return 0 to indicate that cycling over windows
7400 should stop.
7401 (foreach_window_1): Likewise.
7402 (freeze_window_start): Return int.
7403 (init_window): New function.
7404 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7405
7406 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7407 input_event with bzero.
7408 (main): Call init_window.
7409
53654733
GM
7410 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7411 a menu filter.
7412
4a8c194f
KH
74132000-07-04 Kenichi Handa <handa@etl.go.jp>
7414
7415 * composite.h (make_composition_value_copy): Extern it.
7416
7417 * composite.c (make_composition_value_copy): New function.
7418
7419 * editfns.c (Fformat): While copying text properties, make each
7420 composition property value a copy.
7421
7422 * fns.c (concat): While copying text properties, make each
7423 composition property value a copy.
7424
831a6cb0
GM
74252000-07-03 Gerd Moellmann <gerd@gnu.org>
7426
2f516940
GM
7427 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7428
178c5d9c 7429 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7430 marked already.
7431
831a6cb0
GM
7432 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7433 include those frames as candidates which have their focus
7434 redirected to the minibuffer frame.
7435
d9c4f922
SM
74362000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7437
7438 * fns.c (Fputhash): Return `value' rather than nil.
7439
3780bc22
GM
74402000-06-30 Gerd Moellmann <gerd@gnu.org>
7441
97d176db
GM
7442 * frame.c (next_frame): Don't check focus redirection in case
7443 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7444 unless their focus is redirected, which contradicts the
7445 specification of next-frame, and leads to infinite loops in
7446 certain situations when cycling through windows with next-window.
7447
dca9961d
KH
74482000-06-30 Kenichi Handa <handa@etl.go.jp>
7449
7450 * coding.c (code_convert_region): Even if the length of text is
7451 zero, try to convert it if coding->type is coding_type_ccl.
7452 (decode_coding_string, encode_coding_string): Likewise.
7453
d5483ab1
GM
74542000-06-28 Gerd Moellmann <gerd@gnu.org>
7455
af5c25e1 7456 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7457 the display if windows_or_buffers_changed.
af5c25e1
GM
7458
7459 * dispnew.c (struct row_entry): New structure.
7460 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7461 (row_table_size, old_lines, new_lines, old_lines_size)
7462 (new_lines_size, run_pool, runs_size, runs): New variables.
7463 (add_row_entry): New function.
7464 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7465 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7466 holding them in local variables. Use a larger hash table whose
7467 size depends on glyph matrix sizes. Don't use bzero to clear the
7468 hash table; instead, clear used slots only.
7469
7470 * fns.c (next_almost_prime): Make it externally visible.
7471
7472 * lisp.h (next_almost_prime): Add prototype.
7473
d5483ab1
GM
7474 * s/isc4-0.h (sigunblock): Define.
7475
7476 * s/sco5.h (sigunblock): Define.
7477
93e40f40
DL
74782000-06-27 Dave Love <fx@gnu.org>
7479
7480 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7481 (moved to osf5-0.h).
7482 [!NOT_C_CODE]: Protect string.h stuff.
7483
7484 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7485 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7486
3c4b7685
GM
74872000-06-27 Gerd Moellmann <gerd@gnu.org>
7488
97d176db 7489 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7490 below the last line from the needed window height.
7491
32cad0aa
SM
74922000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7493
7494 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7495 (Fwidget_get): Use it.
7496 (syms_of_fns): Defsubr it.
7497
2c69ced2
GM
74982000-06-26 Gerd Moellmann <gerd@gnu.org>
7499
178c5d9c 7500 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7501 display info for XIM.
7502 (xim_open_dpy): Likewise.
7503 (xim_close_dpy): Don't free the display info's XIM.
7504
7505 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7506
7507 * config.in (USE_XIM): New define.
7508
3fc720e4
GM
7509 * keymap.c (get_keyelt): For menu-items containing a `:filter
7510 FILTER', apply FILTER to the menu-item's definition to get the
7511 real definition to use.
7512
7513 * lisp.h (QCfilter): External declaration.
7514
2c69ced2
GM
7515 * xfns.c (Fimage_size): New function.
7516 (syms_of_xfns): Defsubr it.
7517
f978b2a2
AS
75182000-06-26 Andreas Schwab <schwab@suse.de>
7519
7520 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7521 Fstring_as_unibyte.
7522
94cc7892
DL
75232000-06-25 Dave Love <fx@gnu.org>
7524
52283633 7525 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7526
7527 * Makefile.in (blockinput.h): Depend on atimer.h.
7528 (atimer.h): Depend on systime.h.
7529
52283633 7530 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7531
52283633 7532 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7533
7534 * lisp.h (swap_in_global_binding): Declare.
7535
b8c24556
KR
75362000-06-24 Ken Raeburn <raeburn@gnu.org>
7537
7538 * process.c (Fopen_network_stream): Turn off atimers for duration
7539 of call to connect. (Patch from Gerd.)
7540
8cf8560b
DL
75412000-06-23 Dave Love <fx@gnu.org>
7542
511c7541
DL
7543 * ralloc.c: Maybe include unistd.h
7544
8cf8560b
DL
7545 * emacs.c (setgrp): Undefine before defining.
7546 (malloc_warning, set_time_zone_rule, index): Prototype.
7547
7548 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7549 HAVE_STRUCT_TIMEZONE.
7550
7551 * s/osf1.h: Move string.h hack here from alpha.h and make it
7552 conditional.
7553 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7554 _XOPEN_SOURCE.
7555 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7556 (SOCKLEN_TYPE): Don't define.
7557
7558 * m/alpha.h: Remove string.h hack.
7559
7560 * s/osf5-0.h: New file.
7561
7562 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7563 include time.h, done by systime.h.
7564 [__FreeBSD__]: Remove redundant includes.
7565
3fc720e4 7566 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7567 (delete_temp_file): Return Qnil to avoid warning.
7568
7569 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7570
7571 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7572 HAVE_X_WINDOWS.
7573
7574 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7575
7576 * composite.h (compose_text): Declare.
7577
7578 * xterm.c: Don't include sys/types.h unconditionally. Don't
7579 protect its inclusion with !USG (following xmenu.c).
7580
ea055732
GM
75812000-06-23 Gerd Moellmann <gerd@gnu.org>
7582
7583 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7584 in x_create_frame.
7585
74b01b80
EZ
75862000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7587
7588 * coding.c (decode_eol_post_ccl): Special handling for undecided
7589 and inconsistent EOL types.
7590
64f3a166
GM
75912000-06-22 Gerd Moellmann <gerd@gnu.org>
7592
16cf31f7
GM
7593 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7594 trough color and main window's background color.
7595
52283633 7596 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7597
7598 * xterm.h (Xt_app_con): External declaration.
7599
7600 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7601
486a103d
GM
7602 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7603
64f3a166
GM
7604 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7605 (handle_invisible_prop): Record the start of invisible text in
7606 it->add_overlay_start.
7607 (struct overlay_entry): Add member `overlay'.
7608 (handle_overlay_change): Simplify.
7609 (next_overlay_string): After having processed overlay strings at the
7610 end of the buffer, record that fact in
7611 it->overlay_strings_at_end_processed_p.
7612 (compare_overlay_entries): If before- and after-strings come
7613 from the same overlay, let before-strings come first.
7614 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7615 (load_overlay_strings): Take it->add_overlay_start into account
7616 when adding overlay strings.
7617
7618 * dispextern.h (struct it): Add member add_overlay_start.
7619
bb746ea6
DL
76202000-06-22 Dave Love <fx@gnu.org>
7621
7622 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7623
7624 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7625
a8f573f3
KH
76262000-06-22 Kenichi Handa <handa@etl.go.jp>
7627
7628 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7629 is greater than 0.
7630
9f2bbc92
DL
76312000-06-21 Dave Love <fx@gnu.org>
7632
178c5d9c 7633 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7634
3ee5041c
SM
76352000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7636
7637 * syntax.c (back_comment): Simplify string-parity counting (with
7638 the added benefit of handling multiple string-styles as long as
7639 they are not intertwined).
7640 Jump to the slow code as soon as a comment starter is found in
7641 a "string_lossage" position. Fixes the case: " /* " /* " */.
7642
4c343001
DL
76432000-06-21 Dave Love <fx@gnu.org>
7644
7645 * Makefile.in: Use GETLOADAVG_LIBS.
7646
7647 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7648 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7649
e6365855
SM
76502000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7651
7652 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7653 (Fforward_comment, scan_lists):
7654 Check the comstyle of single-char comment-starters.
7655 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7656 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7657 Check the comstyle of single-char comment-starters.
7658 Clarify control-flow around the Scomment case.
e6365855 7659
5700d2cc
DL
76602000-06-20 Dave Love <fx@gnu.org>
7661
d355bd8a
SM
7662 * fns.c (make_hash_table, maybe_resize_hash_table):
7663 Cast arg of next_almost_prime.
5700d2cc 7664
178c5d9c 7665 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7666
7667 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7668 and unistd.h.
7669
4a27bdfb
GM
76702000-06-20 Gerd Moellmann <gerd@gnu.org>
7671
a61d762c 7672 * keyboard.c (adjust_point_for_property): Check if display
52283633 7673 property should be treated as intangible by looking at its value.
a61d762c 7674
178c5d9c 7675 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7676 (display_prop_intangible_p): New functions.
7677
7678 * dispextern.h (display_prop_intangible_p): Add prototype.
7679
7680 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7681
4a27bdfb
GM
7682 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7683 argument to sigprocmask.
7684
7685 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7686 argument to sigprocmask.
7687
7688 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7689 sigprocmask_set, and pass a pointer to it to sigprocmask.
7690
7691 * sysdep.c (sigprocmask_set): New variable.
7692
7693 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7694 report_file_error.
7695
427ec082
SS
76962000-06-20 Sam Steingold <sds@gnu.org>
7697
7698 * xrdb.c: Don't declare xmalloc, xrealloc.
7699
8972fe79 77002000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7701
7702 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7703 (re_comp): Cast gettext return value to avoid complaints when
7704 !HAVE_LIBINTL.
7705
074b6efe
DL
77062000-06-20 Dave Love <fx@gnu.org>
7707
52283633 7708 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 7709
5700d2cc 7710 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7711
d355bd8a 7712 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7713
7714 * m/alpha.h: Don't declare xmalloc, xrealloc.
7715
0af4f205
DL
7716 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7717
7718 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7719
7720 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7721
7722 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7723 HAVE_GETWD.
7724
074b6efe
DL
7725 * keyboard.h (poll_for_input_1): Declare.
7726
7727 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7728
7729 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7730
7731 * doprnt.c: Don't declare xmalloc, xrealloc.
7732
7733 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7734 (getenv, ctime, getwd): Removed.
7735 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7736
7737 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7738 x_set_tool_bar_lines.
7739
7740 * config.in: Add HAVE_GETWD. Move some definitions above
7741 machine/system includes.
7742
68a5e97b
KH
77432000-06-20 Kenichi Handa <handa@etl.go.jp>
7744
95417e1e
KH
7745 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7746
68a5e97b
KH
7747 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7748 contain information about ENCODING.
7749
7750 * fontset.c (FONTSET_ASCII): Use the first element of char table
7751 for an ASCII font, not defalt slot.
7752 (fontset_ref_via_base): If FONTSET doesn't contain information for
7753 C, try the default fontset.
7754 (make_fontset): Don't copy the default fontset.
7755 (fontset_font_pattern): Likewise.
7756 (accumulate_font_info): If ELT is nil, use the corresponding
7757 element in the default fontset.
7758
3b4fa1b2
DL
77592000-06-19 Dave Love <fx@gnu.org>
7760
943e731c
DL
7761 * syntax.c (Fparse_partial_sexp): Doc fix.
7762
7763 * regex.h: Test PROTOTYPES as well as __STDC__.
7764
3b4fa1b2
DL
7765 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7766 errno, strerror. Put text after #endif in comment.
7767
52283633 7768 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
7769
7770 * xterm.c (x_frame_of_widget): Likewise.
7771
cdf0357b
GM
77722000-06-19 Gerd Moellmann <gerd@gnu.org>
7773
7774 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7775 to Vfundamental_mode_abbrev_table.
7776
7777 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7778 bogus objects are marked. This slows down GC by ~80 percent, but
7779 it might be worth trying when debugging GC-related problems.
7780 This feature requires conservative stack marking to be enabled.
7781
7782 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7783 returns XLookupChars, reset `modifiers' to zero.
7784
998e9f8c
DL
77852000-06-19 Dave Love <fx@gnu.org>
7786
7787 * mktime.c: Unprotoized.
7788
18e21ce8 77892000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7790
7791 * data.c (set_internal): If variable is frame-local,
7792 store the new value immediately into the frame parameter alist.
7793
140c4ac6
KR
77942000-06-19 Ken Raeburn <raeburn@gnu.org>
7795
14358466
KR
7796 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7797 in the custom handler pointer.
7798
140c4ac6
KR
7799 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7800 value, or checks for CHAR_META can fail when Lisp_Object is a
7801 union type.
7802 * keymap.c (get_keyelt): Likewise.
7803
10d7bf84
KH
78042000-06-19 Kenichi Handa <handa@etl.go.jp>
7805
7806 * ccl.h (struct ccl_program): New member eol_type.
7807 (struct ccl_spec): New member cr_carryover.
7808
7809 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7810 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7811
7812 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7813 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7814 (decode_eol_post_ccl): New function.
7815 (decode_coding): Don't detect EOL format here for CCL based coding
7816 systems.
7817 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7818 decode_eol_post_ccl after running the CCL program.
7819 (code_convert_region): Don't detect EOL format here for CCL based
7820 coding systems.
7821 (decode_coding_string): Likewise.
7822
52e386c2
KR
78232000-06-18 Ken Raeburn <raeburn@gnu.org>
7824
7825 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7826 when treating it as an integer.
7827
7828 * coding.h (encode_coding_string): Declare.
7829
7830 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7831 it as an integer.
7832
7833 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7834 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7835 to be passed to get_local_map.
7836
7837 * sound.c (Fplay_sound): Don't call make_number on
7838 Frun_hook_with_args count argument.
7839
7840 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7841 for lisp objects in X event structure data field, when lisp
7842 objects are represented with unions.
7843 (x_scroll_bar_to_input_event): Ditto.
7844
b357b9d4
KR
78452000-06-16 Ken Raeburn <raeburn@gnu.org>
7846
7847 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7848 termination of string. Fix sense of test whether
7849 Vline_number_display_limit is an integer.
b357b9d4 7850
a871441d
GM
78512000-06-16 Gerd Moellmann <gerd@gnu.org>
7852
a9021acd
GM
7853 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7854 only if HAVE_X_WINDOWS.
7855
6344985d
GM
7856 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7857 of titles.
7858
427ec082 7859 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7860 out of bounds.
7861
228b083e
EZ
78622000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7863
7864 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7865 of its headers.
7866
c25b53a2
KH
78672000-06-15 Kenichi Handa <handa@etl.go.jp>
7868
7869 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7870 start of the while loop.
7871
a6981b11
GM
78722000-06-15 Gerd Moellmann <gerd@gnu.org>
7873
e9924e52
GM
7874 * atimer.c (alarm_signal_handler): Add forward declaration.
7875
a6981b11
GM
7876 * data.c (set_internal): Remove debug code.
7877
25fa6deb
GM
78782000-06-14 Gerd Moellmann <gerd@gnu.org>
7879
dce6b995
GM
7880 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7881
9f817ea4
GM
7882 * unexec.c (toplevel) [COFF]: Include coff.h.
7883
7884 * s/lynxos.h: New file.
7885
7886 * keymap.c (Fsingle_key_description): Enclose function key and
7887 event symbol names in angle brackets.
7888
8a4e3c0c
GM
7889 * xdisp.c (setup_echo_area_for_printing): Call
7890 message_log_maybe_newline if message_buf_print is not set.
7891
7892 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7893 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7894 function does something useful even when message_buf_print is
7895 already set.
7896
52283633
SM
7897 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
7898 New variables.
25fa6deb
GM
7899 (ensure_echo_area_buffers): Initialize echo buffer's
7900 truncate lines setting to nil.
7901 (with_echo_area_buffer): Don't set the echo buffer's truncate
7902 lines setting here.
8a4e3c0c 7903 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7904 of message_truncate_lines.
7905 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
7906 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
7907 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
7908
7909 * keyboard.c (read_char): Bind message-truncate-lines to t
7910 while displaying a help-echo.
7911
7912 * lisp.h (Qmessage_truncate_lines): External declaration.
7913
163dcff3
GM
79142000-06-13 Gerd Moellmann <gerd@gnu.org>
7915
1681ead6
GM
7916 * xdisp.c (Vline_number_display_limit): Renamed from
7917 line_number_display_limit.
7918 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7919 Extend documentation string. Initialize
7920 Vline_number_display_limit to nil meaning no limit.
7921 (decode_mode_spec): Use Vline_number_display_limit with its new
7922 meaning.
7923
163dcff3
GM
7924 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7925
18e21ce8 79262000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7927
7928 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7929
163dcff3
GM
7930 * xfns.c (x_set_frame_parameters): Comment fix.
7931
7932 * frame.c (store_frame_param): Call swap_in_global_binding if the
7933 variable's current binding was chosen based on this frame.
7934
7935 * data.c (swap_in_global_binding): New function.
7936
a704139d
EZ
79372000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7938
7939 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7940 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7941
9b6610db
EZ
79422000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7943
7944 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7945
c68833d2
JR
79462000-06-12 Jason Rumney <jasonr@gnu.org>
7947
7948 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7949
7950 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7951
7952 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7953
7954 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7955
ed1056b3
GM
79562000-06-12 Gerd Moellmann <gerd@gnu.org>
7957
7958 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7959 (syms_of_xfaces): Defsubr Sdump_colors.
7960 (x_free_colors): Don't treat b&w specially on default visual.
7961 (x_free_dpy_colors): New function.
7962 (free_face_colors): Don't check visual class; it's done
7963 in x_free_colors.
7964
7965 * xterm.c (x_frame_of_widget): New function.
7966 (x_alloc_nearest_color_for_widget): Use it.
7967 (x_copy_dpy_color): New function.
7968 (x_destroy_window): Free various colors.
7969
5050a2ef
KH
79702000-06-12 Kenichi Handa <handa@etl.go.jp>
7971
7972 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7973
7974 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7975
7976 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7977
7978 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7979
7980 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7981
fb1b041d
DL
79822000-06-11 Dave Love <fx@gnu.org>
7983
7984 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7985
ff96b5f4
EZ
79862000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7987
7988 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7989
db8eeecd
GM
79902000-06-11 Gerd Moellmann <gerd@gnu.org>
7991
ed1056b3 7992 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7993 to `XEvent *'.
7994
49b71c5f
KH
79952000-06-10 Kenichi Handa <handa@etl.go.jp>
7996
c479bd55
KH
7997 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7998 (regex_compile): Fix the code for handling the case of single byte
7999 char and multibyte char being mixed in a range within [...].
8000
ff6a65c2
KH
8001 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8002 and dst_multibyte members of coding.
8003
49b71c5f
KH
8004 * charset.c (update_charset_table): Update the table
8005 bytes_by_char_head.
8006 (init_charset_once): Initialize elements of bytes_by_char_head to
8007 1 except for leading codes for private charases.
8008
8009 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8010 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8011
9e80b57d
KR
80122000-06-09 Ken Raeburn <raeburn@gnu.org>
8013
8014 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8015 access the data it doesn't point to.
8016
f83fe4b4
GM
80172000-06-08 Gerd Moellmann <gerd@gnu.org>
8018
8019 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8020 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8021 event queue. This is necessary because Emacs otherwise won't
8022 perform a switch-frame to a new frame until some other event, for
8023 example a keystroke event, forces it to do so. This has various
8024 effects, one visible being that the cursor of a frame created with
8025 C-x 5 2 or switched to with a window manager key binding like
8026 A-TAB stays hollow because selected_window isn't on the newly
8027 focused frame until the switch-frame is performed.
8028
8029 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8030 generating a switch-frame event if necessary.
8031
8032 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8033
8034 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8035 it's an integer.
8036
0890801b
KH
80372000-06-08 Kenichi Handa <handa@etl.go.jp>
8038
52283633 8039 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8040
173cbca8
GM
80412000-06-07 Gerd Moellmann <gerd@gnu.org>
8042
3091c2a6
GM
8043 * window.c (displayed_window_lines): Take empty lines at
8044 the bottom of a window into account.
427ec082 8045
f38952fe
GM
8046 * window.c (displayed_window_lines): New function.
8047 (Fmove_to_window_line): Use displayed_window_lines to determine
8048 the number of lines to move, instead of using the window's height.
8049
8050 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8051 to stop reading, even if the form read sets point to a different
8052 value when evaluated.
8053
427ec082 8054 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8055 put the cursor.
8056
6ba6c818
KH
80572000-06-07 Kenichi Handa <handa@etl.go.jp>
8058
8059 * fileio.c (e_write): Free composition data if stored in
8060 coding->cmp_data.
8061
5f1aea9a
GM
80622000-06-06 Gerd Moellmann <gerd@gnu.org>
8063
666852af
GM
8064 * xdisp.c (display_line): Set row's and iterator's
8065 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8066 Set cursor even if row ends in the middle of a character.
8067 (dump_glyph_row): Print values of new flags.
8068 (redisplay_window) <cursor movement in unchanged window>: When
8069 point has been moved forward, and PT is at the end of the cursor
8070 row, don't place the cursor in the next row if the cursor row ends
8071 in the middle of a character or at ZV.
8072
8073 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8074 (struct glyph_row): Add starts_in_middle_of_char_p and
8075 ends_in_middle_of_char_p.
8076 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8077 ends_in_middle_of_char_p flag.
8078 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8079
d13f3e2e
GM
8080 * term.c (append_glyph): Revert change of 2000-06-06.
8081
8082 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8083 padding glyph not fitting on line as whole character not
8084 fitting on line.
8085
5f1aea9a
GM
8086 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8087 this isn't true for images with `:ascent 100'.
8088
10cda9b0
KH
80892000-06-06 Kenichi Handa <handa@etl.go.jp>
8090
ed00559d
KH
8091 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8092 as modified if it is originally unmodified.
8093
10cda9b0
KH
8094 * term.c (encode_terminal_code): Change the way to check if
8095 terminal coding does any conversion.
8096 (append_glyph): Set glyph->pixel_width correctly.
8097
8098 * xdisp.c (display_line): While checking line continuation, pay
8099 attention to a padding glyph.
8100
1969fae2
GM
81012000-06-05 Gerd Moellmann <gerd@gnu.org>
8102
8103 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8104
162ccef4
DL
81052000-06-05 Dave Love <fx@gnu.org>
8106
f19f32dd
DL
8107 * xdisp.c: Include fontset.h.
8108
8109 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8110
8111 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8112
8113 * dispnew.c: Conditionally include term.h.
8114
8115 * coding.h: Declare code_convert_string_norecord.
8116
8117 * frame.h (struct frame): Use volatile unconditionally.
8118
8119 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8120
8121 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8122
8123 * systime.h: Protect against multiple inclusion.
8124 (timezone) [USG5_4]: Define as time_t.
8125
8126 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8127 (Foptimize_char_table, make_temp_name): Declare.
8128
8129 * Makefile.in (xdisp.o): Depend on fontset.h.
8130
8131 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8132
8133 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8134 (Foptimize_char_table, make_temp_name): Declare.
8135
427ec082 8136 * s/irix4-0.h:
162ccef4
DL
8137 * s/irix5-0.h:
8138 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8139
2082fe81
DL
81402000-06-02 Dave Love <fx@gnu.org>
8141
8142 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8143
dcf671d2
GM
81442000-06-02 Gerd Moellmann <gerd@gnu.org>
8145
8146 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8147 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8148 be freed.
8149
8150 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8151 glyph, use the ASCII NUL character to determine the face.
8152
d42122a3
DL
81532000-06-02 Dave Love <fx@gnu.org>
8154
8155 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8156 (VFORK_RETURN_TYPE): Remove.
427ec082 8157
d42122a3
DL
8158 * config.in: Add NO_MATHERR.
8159
dd432f16
DL
81602000-06-01 Dave Love <fx@gnu.org>
8161
90aa4ea8
DL
8162 * cmds.c (internal_self_insert): Don't check
8163 Vbefore_change_function, Vafter_change_function.
8164
8165 * insdel.c (signal_before_change, signal_after_change): Likewise.
8166
8167 * buffer.c (Vbefore_change_function, Vafter_change_function):
8168 Variables and their initializations deleted.
8169
2330c9d4
DL
8170 * callint.c (Fcall_interactively): Doc fix.
8171
dd432f16
DL
8172 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8173
bf9e8804
DL
81742000-05-31 Dave Love <fx@gnu.org>
8175
8176 * textprop.c: Revert last change -- duplicated.
8177
3694b4ab
GM
81782000-05-31 Gerd Moellmann <gerd@gnu.org>
8179
8180 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8181 in #if 0.
8182
8183 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8184
f14156cd
JR
81852000-05-31 Jason Rumney <jasonr@gnu.org>
8186
8119aab8
JR
8187 * search.c (Fre_search_forward, Fre_search_backward)
8188 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8189
f14156cd
JR
8190 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8191
4aab9be3
JR
81922000-05-30 Jason Rumney <jasonr@gnu.org>
8193
8194 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8195 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8196
52283633 8197 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8198
8199 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8200 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8201 expand a nil default_filename.
8202
8203 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8204 pointer to glyph_to_pixel_coords, not a frame.
8205
8206 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8207 coding.h to dependencies.
8208
8209 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8210
8211 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8212 window pointer to be consistent with w32term.c and xterm.c.
8213
8214 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8215 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8216 (Qline_spacing, Qcenter): New variables.
8217 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8218 (x_set_line_spacing): New function.
52283633 8219 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8220 (x_specified_cursor_type): New function.
8221 (x_set_cursor_type): Use it.
8222 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8223 and icon strings.
8224 (validate_x_resource_name, x_get_resource_string): Measure lengths
8225 of external strings in bytes.
8226 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8227 GetTextExtentPoint32 with NULL title.
8228 (Fx_create_frame): Initialize Qline_spacing.
8229 (w32_load_system_font): Initialize font->double_byte_p.
8230 (x_to_w32_charset): Use Vw32_charset_info_alist.
8231 (Image, busy cursor, tooltip functions): Merged changes from
8232 xfns.c. Not yet functional on Windows.
8233
8234 * w32gui.h (W32FontStruct): Add double_byte_p member.
8235
8236 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8237 (emacs_button_translation): Use it.
8238 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8239 in `mask' to be set.
8240
8241 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8242 menu strings.
8243
8244 * w32term.c: Format and doc changes to bring closer to xterm.c.
8245 (w32_char_font_type): New enum.
8246 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8247 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8248 (w32_encode_char): New function.
8249 (x_encode_char): Removed.
8250 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8251 x_encode_char and w32_font_is_double_byte.
8252 (x_produce_image_glyph): Use image_ascent.
8253 (x_produce_glyphs): Use new version of w32_per_char_metric and
8254 handle NULL return value. Allow extra line spacing.
8255 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8256 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8257 w32_font_type member of glyph instead.
8258 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8259 (fast_find_position): Make sure not to consider rows not visible
8260 in the window.
8261 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8262 w32_menu_display_help with input blocked, as it can abort.
8263 (x_display_and_set_cursor): Choose cursor depending
8264 on buffer-local value of cursor_type.
8265 (x_draw_bar_cursor): Add parameter WIDTH.
8266
8267 * w32term.h (CP_DEFAULT): Define.
8268 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8269
10fc3187
GM
82702000-05-30 Gerd Moellmann <gerd@gnu.org>
8271
8272 * search.c (Fre_search_forward, Fre_search_backward)
8273 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8274
d0555360
KH
82752000-05-30 Kenichi Handa <handa@etl.go.jp>
8276
8277 * coding.c (detect_coding_iso2022): Fix code for checking
8278 CODING_CATEGORY_MASK_ISO_8_2.
8279
f1ad044f
SM
82802000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8281
8282 * regex.c (PREFETCH_NOLIMIT): New function.
8283 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8284
84ec3b4b
GM
82852000-05-29 Gerd Moellmann <gerd@gnu.org>
8286
66254a13
GM
8287 * syntax.c (find_defun_start): Move test for
8288 open_paren_in_column_0_is_defun_start outside of the loop.
8289
49e70dec
GM
8290 * xdisp.c (redisplay_window): Really switch buffers when
8291 displaying mode lines, and temporarily set selected_frame to the
8292 frame of the window that's redisplayed.
8293
84ec3b4b
GM
8294 * xfaces.c (free_realized_faces): Block/unblock input.
8295 (free_realized_multibyte_face): Ditto.
8296
869a3a14
DL
82972000-05-29 Dave Love <fx@gnu.org>
8298
8299 * textprop.c (Qkeymap): New variable.
8300 (syms_of_textprop): Intern it.
8301
8302 * keymap.c: Include intervals.h.
8303 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8304
8305 * Makefile.in (keymap.o): Depend on intervals.h.
8306
8307 * keyboard.c (menu_bar_items, tool_bar_items)
8308 (Fexecute_extended_command): Deal with `keymap' property.
8309 (read_key_sequence): Track map from `keymap' property as well as
8310 `local_map'.
8311
8312 * intervals.c (get_local_map): Extra arg to allow looking for
8313 `keymap' too.
8314
8315 * intervals.h (map_property): New enum.
8316 (get_local_map): Extra arg using it.
8317 (Qkeymap): Declare.
8318
84ec3b4b 8319 * lisp.h (get_local_map): Don't declare here.
869a3a14 8320
89d0c844
KH
83212000-05-29 Kenichi Handa <handa@etl.go.jp>
8322
8323 * Makefile.in (callproc.o): Depend on composite.h.
8324
8325 * callproc.c: Include composite.h.
8326 (Fcall_process): Handle composition correctly.
8327
8328 * coding.h (coding_allocate_composition_data): Extern it.
8329 (coding_restore_composition): Likewise.
8330
8331 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8332 yet allocated, finish decoding with result
8333 CODING_FINISH_INSUFFICIENT_CMP.
8334 (coding_allocate_composition_data): Make it non-static.
8335 (coding_restore_composition): Likewise.
8336
797a084a
EZ
83372000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8338
8339 * charset.c (syms_of_charset): Revert last change.
8340
cf872af5
EZ
83412000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8342
8343 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8344 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8345 Handa.
cf872af5 8346
5b1ae051
EZ
83472000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8348
8349 * charset.c (syms_of_charset): Set width of character sets
8350 eight-bit-control and eight-bit-graphic to 1 column.
8351
34ec9ebe
GM
83522000-05-26 Gerd Moellmann <gerd@gnu.org>
8353
8354 * config.in (HAVE_SPEED_T): New define.
8355
8356 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8357 `extern speed_t'.
8358
dd854dc2
DL
83592000-05-26 Dave Love <fx@gnu.org>
8360
8361 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8362
8363 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8364 (Fsubr_arity): New function.
8365 (syms_of_data): Install them.
8366
ba9f8f95
KH
83672000-05-26 Kenichi Handa <handa@etl.go.jp>
8368
0f3e0672
KH
8369 * charset.c (init_charset_once): Set the table bytes_by_char_head
8370 correctly.
8371
cebefb44
KH
8372 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8373 the default fontset to what Emacs uses by default.
0f3e0672
KH
8374 (check_registry_encoding): This function deleted.
8375 (Fset_fontset_font): Remove the adhoc condition for the default
8376 fontset. Allow cons in FONTNAME.
cebefb44 8377
0f3e0672
KH
8378 * fns.c (map_char_table): Ignore char-table entries for
8379 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8380
7a18af49
KR
83812000-05-25 Ken Raeburn <raeburn@gnu.org>
8382
8383 * emacs.c (main): Initialize keyboard syms before initializing
8384 window code, so face names are available.
8385
d2af47df
SM
83862000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8387
8388 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8389 of an anchor at the beginning of a shy-group.
8390
fc6a6a4e
GM
83912000-05-25 Gerd Moellmann <gerd@gnu.org>
8392
8393 * xdisp.c (handle_invisible_prop): Don't try to skip over
8394 invisible text if end of text is already reached.
8395
005f0d35
DL
83962000-05-25 Dave Love <fx@gnu.org>
8397
02513cdd
DL
8398 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8399
005f0d35
DL
8400 * coding.c (encode_eol): Add null statement after label.
8401
89f6ca4e
EZ
84022000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8403
8404 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8405 2000-05-20.
8406
a4e1759e
KH
84072000-05-25 Kenichi Handa <handa@etl.go.jp>
8408
8409 * ccl.c (ccl_driver): Fix previous change.
8410
eacfd7fe
KH
84112000-05-25 Kenichi Handa <handa@etl.go.jp>
8412
46ab33a9
KH
8413 * coding.c (run_pre_post_conversion_on_str): Set point to the
8414 beginning of buffer before calling coding->post_read_conversion.
8415 (decode_coding_string): Give correct args to
8416 run_pre_post_conversion_on_str.
8417 (encode_coding_string): Likewise.
8418
eacfd7fe
KH
8419 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8420 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8421 eight-bit-graphic correctly.
8422
f8569325
DL
84232000-05-24 Kenichi HANDA <handa@etl.go.jp>
8424
8425 * fileio.c (Finsert_file_contents): Even if a file is not found,
8426 execute codes for setting up coding system. Call
8427 after-insert-file-functions unconditionally.
8428
04545643
GM
84292000-05-24 Gerd Moellmann <gerd@gnu.org>
8430
8431 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8432 BSD_PGRPS are not defined.
8433
747d90ea
KH
84342000-05-24 Kenichi Handa <handa@etl.go.jp>
8435
8436 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8437 DESCRIPTION.
8438 (syms_of_charset): Avoid building same strings.
8439
716e3b88
GM
84402000-05-23 Gerd Moellmann <gerd@gnu.org>
8441
8442 * lread.c (Fload): Add a comment about the meaning of
8443 Vuser_init_file being t.
8444
8445 * puresize.h (BASE_PURESIZE): Increase to 675000.
8446
8447 * s/gnu-linux.h (setpgrp): Don't define it here because this
8448 prevents compilation on GNU/Linux systems with glib 2.2.
8449
8450 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8451 as setpgid.
427ec082 8452
9aeb39fa
EZ
84532000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8454
8455 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8456 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8457 version.
8458 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8459
29ced61b
KH
84602000-05-23 Kenichi Handa <handa@etl.go.jp>
8461
52283633 8462 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8463
3d80f24d
KH
8464 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8465
52283633 8466 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8467
29ced61b
KH
8468 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8469
d7e00792
KH
84702000-05-22 Kenichi Handa <handa@etl.go.jp>
8471
c9d80d38
KH
8472 * keyboard.c (read_char): Allow character codes 128..255 to be
8473 handled by input-method-function.
8474
d7e00792
KH
8475 * insdel.c (adjust_markers_for_replace): Fix previous change.
8476 (adjust_after_replace): If PREV_TEXT is nil, call
8477 adjust_markers_for_insert, not adjust_markers_for_replace.
8478
087121cc 84792000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8480
087121cc
GM
8481 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8482 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8483 [HAVE_GRANDPT]: Define.
8484 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8485
8486 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8487 like SYSV_PTYS.
8488
8489 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8490
8491 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8492
c9671f81
KH
84932000-05-20 Kenichi Handa <handa@etl.go.jp>
8494
8495 The following changes are to handle 8-bit characters in a
8496 multibyte buffer/string without facing with byte combining
8497 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8498 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8499
8500 * Makefile.in (fns.o): Depend on charset.h.
8501
8502 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8503 convert it to unibyte.
8504 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8505
8506 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8507 apparent char boundary.
8508 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8509 0x80..0x9F to/from multibyte form.
8510
8511 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8512 to unibyte.
8513
8514 * callproc.c (Fcall_process): Always encode an argument string if
8515 it is multibyte. Setup src_multibyte and dst_multibyte members of
8516 process_coding properly.
ce75fd23 8517
c9671f81
KH
8518 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8519 SPLIT_NON_ASCII_CHAR.
8520
8521 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8522 as is.
8523 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8524
52283633 8525 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8526 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8527 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8528 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8529 and eight-bit-graphic.
8530 (char_to_string): Likewise. Signal an error for too large
8531 character code.
8532 (char_printable_p): Return 0 for 8-bit characters.
8533 (update_charset_table): Update iso_charset_table only when a final
8534 character is non-negative.
8535 (find_charset_in_text): Renamed from find_charset_in_str.
8536 Arguments and return value changed. Callers changed.
8537 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8538 be -1 if CHARSET is used only internally.
8539 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8540 eight-bit-graphic.
8541 (Fcharset_after): Simplified.
8542 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8543 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8544 (multibyte_chars_in_text): Simplified by assuming there's no
8545 invalid multibyte sequence.
52283633
SM
8546 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8547 (str_as_unibyte): New functions.
8548 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8549 (init_charset_once): Initialization for
8550 LEADING_CODE_8_BIT_CONTROL.
8551 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8552 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8553 eight-bit-control and eight-bit-graphic.
8554
52283633
SM
8555 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8556 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8557 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8558 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8559 (CHARSET_REVERSE_CHARSET): Likewise.
8560 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8561 eight-bit-graphic.
8562 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8563 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8564 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8565 encounter an invalid multibyte sequence.
8566 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8567 sequence is always valid.
8568 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8569 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8570 (CHAR_STRING): For 8-bit characters, call char_to_string.
8571 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8572 multibyte sequence is always valid.
8573 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8574 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8575 (str_as_unibyte): Extern them.
c9671f81 8576 (BCOPY_SHORT): Fix a bug.
52283633 8577 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8578 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8579 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8580 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8581
bd4bde7f 8582 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8583 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8584 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8585 (EMIT_BYTES): New macros.
8586 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8587 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8588 macros deleted.
8589 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8590 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8591 check the validity of multibyte sequence.
8592 (decode_coding_emacs_mule): New function.
8593 (encode_coding_emacs_mule): New macro.
8594 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8595 the source.
8596 (DECODE_ISO_CHARACTER): Just return a character code.
8597 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8598 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8599 EMIT_CHAR to produced decoded characters. Exit the loop only by
8600 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8601 block here.
8602 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8603 only position codes for an invalid character.
8604 (encode_designation_at_bol): Return new destination pointer. 5th
8605 arg DSTP is changed to DST.
8606 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8607 from the source by ONE_MORE_CHAR. Don't handle the case of last
8608 block here.
8609 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8610 macros deleted.
52283633
SM
8611 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8612 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8613 TWO_MORE_BYTES to fetch a byte from the source.
8614 (encode_eol): Pay attention to coding->src_multibyte.
8615 (detect_coding, detect_eol): Preserve members src_multibyte and
8616 dst_multibyte.
8617 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8618 (encoding_buffer_size): Set magnification to 3 for all coding
8619 systems that require encoding.
8620 (ccl_coding_driver): For decoding, be sure that the result is
8621 valid multibyte sequence.
8622 (decode_coding): Initialize coding->errors and coding->result.
8623 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8624 and raw-text, always call decode_eol. Handle the case of last
8625 block here. If not coding->dst_multibyte, convert the resulting
8626 sequence to unibyte.
8627 (encode_coding): Initialize coding->errors and coding->result.
8628 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8629 and raw-text, always call encode_eol. Handle the case of last
8630 block here.
8631 (shrink_decoding_region, shrink_encoding_region): Detect cases
8632 that we can't skip data more rigidly.
8633 (code_convert_region): Setup src_multibyte and dst_multibyte
8634 members of coding. For decoding, if the buffer is multibyte,
8635 convert the source sequence to unibyte in advance. For encoding,
8636 if the buffer is multibyte, convert the resulting sequence to
8637 multibyte afterward.
8638 (run_pre_post_conversion_on_str): New function.
8639 (code_convert_string): Deleted and divided into the following two.
8640 (decode_coding_string, encode_coding_string): New functions.
8641 (code_convert_string1, code_convert_string_norecord): Call one of
8642 above.
8643 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8644 MAKE_NON_ASCII_CHAR.
52283633
SM
8645 (Fset_terminal_coding_system_internal)
8646 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8647 and dst_multibyte members.
8648 (init_coding_once): Initialize iso_code_class with new enum
8649 ISO_control_0 and ISO_control_1.
8650
8651 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8652 devided into ISO_control_0 and ISO_control_1.
8653 (struct coding_system): New members src_multibyte, dst_multibyte,
8654 errors, and result. Delete member fake_multibyte.
8655 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8656 nonzero.
8657 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8658 nonzero.
8659
8660 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8661 (Faset): Likewise.
8662
8663 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8664 multibyte form.
8665 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8666 combining occurs.
8667 (Ftranspose_region): Delete codes for handling byte combining.
8668
8669 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8670 dst_multibyte members of coding. On handling REPLACE on unibyte
8671 buffer, convert the result of decode_coding to unibyte. On
8672 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8673 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8674 multibyteness of the source (buffer or string).
8675
8676 * fns.c (concat): Handle 8-bit characters correctly.
8677 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8678 unibyte in the result.
8679 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8680 valid multibyte form in the result.
8681 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8682 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8683 return -1, signal an error.
8684 (base64_encode_1): New arg MULTIBYTE. Get each character by
8685 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8686 character is found, return -1.
8687 (Fbase64_decode_region): Delete codes for handling byte-combining.
8688 Treat each decoded byte as a unibyte character.
8689 (Fbase64_decode_string): Return unibyte string.
8690 (Fcompare_strings, concat, string_byte_to_char): Use
8691 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8692 FETCH_STRING_CHAR_ADVANCE.
8693 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8694 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8695
8696 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8697 SPLIT_NON_ASCII_CHAR.
8698 (fontset_ref_via_base, fontset_set): Likewise
8699
8700 * insdel.c (adjust_markers_for_record_delete): Deleted.
8701 (adjust_markers_for_insert): Argument changed. Caller changed.
8702 (adjust_markers_for_replace): Likewise.
52283633
SM
8703 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
8704 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
8705 (copy_text): Delete unused local varialbe c_save. For converting
8706 to multibyte, be sure to make all 8-bit characters in valid
8707 multibyte form.
8708 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
8709 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8710 (adjust_after_replace, replace_range, del_range_2)
c9671f81 8711 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
8712 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8713 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
8714 handling byte combining.
8715 (adjust_before_replace): Deleted.
427ec082 8716
c9671f81
KH
8717 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8718 SPLIT_NON_ASCII_CHAR.
8719 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 8720 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8721 (Fkey_description): Likewise.
8722
8723 * lread.c (read1): On reading multibyte string, be sure to make
8724 all 8-bit chararacters in valid multibyte form.
8725 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8726
8727 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8728 unconditionally.
8729
8730 * process.c (Fstart_process): GCPRO current_dir before calling
8731 Ffind_operation_coding_system. Encode arguments here.
8732 (create_process): Don't encode arguments here. Setup
8733 src_multibyte and dst_multibyte members of struct coding.
8734 (read_process_output): Setup src_multibyte and dst_multibyte
8735 members of struct coding. If the output is to multibyte buffer,
8736 always decode the output of the process. Adjust the
52283633 8737 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
8738 (send_process): Setup coding->src_multibyte according to the
8739 multibyteness of the source.
8740
52283633 8741 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8742 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8743 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8744
52283633 8745 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
8746
8747 * w16select.c (Fw16_set_clipboard_data): Setup members
8748 src_multibyte and dst_multibyte of coding. Adjusted for the
8749 change for find_charset_in_str.
8750 (Fw16_get_clipboard_data): Likewise.
8751
8752 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8753 dst_multibyte of coding.
8754 (x_to_w32_font): Likewise.
8755
8756 * w32select.c (Fw32_set_clipboard_data): Setup members
8757 src_multibyte and dst_multibyte of coding. Adjusted for the
8758 change for find_charset_in_str.
8759 (Fw32_get_clipboard_data): Likewise.
8760
8761 * xdisp.c (get_next_display_element): Handle 8-bit characters
8762 correctly.
52283633
SM
8763 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
8764 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
8765
8766 * xselect.c (selection_data_to_lisp_data): Setup members
8767 src_multibyte and dst_multibyte of coding. Adjusted for the
8768 change for find_charset_in_str.
8769 (lisp_data_to_selection_data): Likewise.
8770
5f64c9e0
GM
87712000-05-19 Gerd Moellmann <gerd@gnu.org>
8772
52283633 8773 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 8774
5f64c9e0
GM
8775 * dispextern.h (Vimage_types): Add extern declaration.
8776
8777 * xdisp.c (Vimage_types): Moved here from xfns.c.
8778 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8779
8780 * xfns.c (Vimages_types): Moved to xdisp.c.
8781 (syms_of_xfns): Move `image-types' to xdisp.c.
8782
8783 * w32fns.c (Vimage_types): Removed.
8784 (syms_of_w32fns): Remove `image-types'.
8785
813086ea
KH
87862000-05-18 Kenichi Handa <handa@etl.go.jp>
8787
8788 * fns.c (map_char_table): Pay attention to character number of
8789 charset. Check the validity of charset at the first level. For
8790 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8791 the default value.
8792
8793 * fontset.c: Include "buffer.h".
8794 (fs_load_font): If the face has fontset, record the face ID in
8795 that fontset.
8796 (Finternal_char_font): New function.
8797 (accumulate_font_info): New function.
8798 (Ffontset_info): Rewritten for the new fontset implementation.
8799 (syms_of_fontset): Register Vdefault_fontset in the first element
8800 of Vfontset_table. Include Vdefault_fontset in
8801 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8802 function.
8803
bdaebbf0
DL
88042000-05-16 Dave Love <fx@gnu.org>
8805
8806 * m/iris5d.h: Deleted -- unused.
8807
cb613bb8
GM
88082000-05-16 Gerd Moellmann <gerd@gnu.org>
8809
b15f3b77
GM
8810 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8811 `invalid' instead of `illegal'.
8812
8813 * indent.c (Fmove_to_column): When ending within a tab, insert
8814 spaces first so that markers at the end of the tab get adjusted.
8815
835c1b36
GM
8816 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8817 buffer list that wasn't selected in that frame.
8818
cb613bb8
GM
8819 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8820 is needed on mescaline, use a 2 char prefix, and call
8821 make_temp_name with second arg non-zero.
8822
8823 * fileio.c (make_temp_name): New function, extracted from
8824 Fmake_temp_name.
8825 (Fmake_temp_name): Use it.
8826
f685bea9
EZ
88272000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8828
52283633 8829 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 8830
a1b8d58b
GM
88312000-05-15 Gerd Moellmann <gerd@gnu.org>
8832
8833 * Makefile.in (lisp): Add env.elc.
8834
8835 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8836
a265079f
GM
88372000-05-12 Gerd Moellmann <gerd@gnu.org>
8838
8839 * search.c (Freplace_match): Handle case of `\N' in the
8840 replacement when there's no group N.
8841
da4496b6
GM
88422000-05-11 Gerd Moellmann <gerd@gnu.org>
8843
0ace421a
GM
8844 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8845 of the message to message_dolog.
8846
1172eb8d
GM
8847 * keyboard.c (read_char): Don't clear current message for help
8848 events; let the code handling help events handle this. Change
8849 code detecting help events that should be ignored.
8850
da4496b6
GM
8851 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8852 we're interating over a string.
8853
0623e40f
DL
88542000-05-09 Dave Love <fx@gnu.org>
8855
8856 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8857 that offset before writing. Move gcpro region past call of
8858 Ffile_regular_p.
8859
bae2503b
DL
88602000-05-04 Dave Love <fx@gnu.org>
8861
8862 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8863
ec82fb2f
GM
88642000-05-04 Gerd Moellmann <gerd@gnu.org>
8865
8866 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8867 of inserted characters when BUF equals the current buffer, and PT
8868 is in front of or equal to FROM.
8869
cbf18892
GM
88702000-05-03 Gerd Moellmann <gerd@gnu.org>
8871
4ff40dd0
GM
8872 * xdisp.c (handle_single_display_prop): If display property value
8873 is invalid, or something not supported on the frame, restore
8874 iterator's position to what it was initially. Make sure to return
8875 0 for invalid and unsupported property values.
8876
cbf18892
GM
8877 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8878 that x_per_char_metric returns null.
8879
1b0672c3
GM
88802000-05-02 Gerd Moellmann <gerd@gnu.org>
8881
576da55d
GM
8882 * xterm.h (struct face): Add forward declaration.
8883 (struct image): Ditto.
8884 (image_ascent): Add prototype.
8885
8886 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8887 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8888 image_ascent instead of using IMAGE_ASCENT.
8889
8890 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8891 (IMAGE_ASCENT): Removed.
8892
8893 * xfns.c (Qcenter): New variable.
8894 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8895 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8896 (image_ascent): New function.
8897 (lookup_image): Recognize `:ascent center'.
8898 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8899 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8900 (xbm_load): Don't set image's ascent here.
8901 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8902 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8903 check ascent values here.
8904 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8905 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8906 (syms_of_xfns): Initialize Qcenter.
8907
1b0672c3
GM
8908 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8909 to the limits, increase the limits.
8910
0d7811ed
KH
89112000-05-01 Kenichi Handa <handa@etl.go.jp>
8912
8913 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 8914 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 8915
a943a5ca
GM
89162000-04-28 Gerd Moellmann <gerd@gnu.org>
8917
8918 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8919 taller than the window.
8920
5dba1e29
KH
89212000-04-28 Kenichi Handa <handa@etl.go.jp>
8922
8923 * xfaces.c (realize_x_face): Fix the argument of the second
8924 xassert. BASE_FACE may not be a face for ASCII.
8925
353964e3
GM
89262000-04-27 Gerd Moellmann <gerd@gnu.org>
8927
c76e04a8
GM
8928 * print.c (print_object): Treat print-length < 0 as nil.
8929
8930 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8931
8932 * s/freebsd.h (TERMCAP_OBJ): Removed.
8933 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8934
8935 * lread.c (read1): Don't treat period followed by certain
8936 characters as symbol start.
8937
8938 * xfns.c (slurp_file): New function.
8939 (xbm_image_p): Handle case of in-memory XBM files.
8940 (xbm_scan): Rewritten to work on memory buffers instead of files.
8941 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8942 Work on memory buffers instead of files. If DATA is null test
8943 if buffer looks like an in-memory XBM file.
8944 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8945 memory buffers instead of files.
8946 (xbm_file_p): New function.
8947 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8948
353964e3
GM
8949 * lread.c (end_of_file_error): New function.
8950 (read1): Call it instead of signaling `end-of-file' directly.
8951
427ec082 8952 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8953 with Fprinc instead of Fprin1.
8954
24d744ac
KR
89552000-04-26 Ken Raeburn <raeburn@gnu.org>
8956
8957 * window.c (freeze_window_start): Check that minibuffer scroll
8958 window isn't nil before extracting the window structure pointer
8959 from it.
8960
8961 * undo.c (record_delete): If we hit the end of the undo list, stop
8962 picking elements apart.
8963
7464346d
GM
89642000-04-26 Gerd Moellmann <gerd@gnu.org>
8965
8966 * xdisp.c (display_line): If lines are continued, restore
8967 iterator's ascent/descent information to the values before the
8968 first glyph not fitting on the line.
8969
612839b6
GM
89702000-04-25 Gerd Moellmann <gerd@gnu.org>
8971
8972 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 8973 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
8974
8975 * dispnew.c (increment_matrix_positions): Renamed from
8976 increment_glyph_matrix_buffer_positions.
8977 (increment_row_positions): Renamed from
8978 increment_glyph_row_buffer_positions.
8979
8980 * dispextern.h: Change names of renamed functions from dispnew.c
8981 in prototypes.
8982
cc181e95
GM
89832000-04-24 Gerd Moellmann <gerd@gnu.org>
8984
abfcc168
GM
8985 * fileio.c (Fdo_auto_save): Create directories for auto-save
8986 list file if necessary.
8987
cc181e95
GM
8988 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8989 from buffer or frame.
8990 (automatic_hscrolling_p): New variable.
8991 (hscroll_windows): Scroll windows horizontally only if automatic
8992 hscrolling is allowed.
8993 (syms_of_xdisp): New variable `automatic-hscrolling'.
8994
8995 * frame.h (struct frame): Add member extra_line_spacing.
8996
8997 * xfns.c (x_set_line_spacing): New function.
8998 (Fx_create_frame): Set line spacing from resources.
8999 (Qline_spacing): New variable.
9000 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9001
cc181e95
GM
9002 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9003
9004 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9005 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9006 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9007 extra_line_spacing from default value.
9008 (init_buffer_once): Initialize default value of extra_line_spacing.
9009
9010 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9011 and extra3.
9012
9013 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9014 prompt_width. Add extra line spacing.
9015
9016 * term.c (produce_glyphs): Remove reference to struct it's
9017 prompt_width.
9018
9019 * dispextern.h (struct it): Remove member prompt_width, add
9020 extra_line_spacing.
9021
58827478
GM
90222000-04-22 Gerd Moellmann <gerd@gnu.org>
9023
9024 * dispnew.c (update_frame_line): When writing a whole line, make
9025 sure cursor is in the right row afterwards, otherwise a use of
9026 capability `ch' in cmgoto might leave the cursor in the row below.
9027
25a87f42
GM
90282000-04-21 Gerd Moellmann <gerd@gnu.org>
9029
9030 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9031
9032 * keyboard.c (timer_check): Fix typo in comment.
9033
54edf5c2
KH
90342000-04-21 Kenichi Handa <handa@etl.go.jp>
9035
9036 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9037 name change: ch -> character.
9038
3a64eef5
GM
90392000-04-20 Gerd Moellmann <gerd@gnu.org>
9040
9041 * keyboard.c (echo_message_buffer): New variable.
9042 (echo_now): Set echo_message_buffer to the echo area buffer used
9043 to display the echo.
9044 (cancel_echoing): Reset echo_message_buffer to nil.
9045 (read_char): Code rewritten that handles canceling an echo or
9046 echoing a dash, respectively.
9047
9048 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9049 directory doesn't exist.
9050
6142fdcb
DL
90512000-04-19 Dave Love <fx@gnu.org>
9052
9053 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9054 (concat): Don't allow numeric args.
9055 (Fconcat): Doc change.
6142fdcb 9056
ac6b5352
SM
90572000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9058
9059 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9060 instead define end_match(1|2) more carefully.
9061 Use GET_CHAR_BEFORE_2 for `begline'.
9062
cb9215e4
GM
90632000-04-19 Gerd Moellmann <gerd@gnu.org>
9064
5e3dac3f
GM
9065 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9066 on 64-bit systems where NULL is defined as `0'.
9067
9068 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9069 the `variable argument list' to make it work on Alpha.
9070
cb9215e4
GM
9071 * m/alpha.h (_LP64) [!_LP64]: Define.
9072 (ORDINARY_LINK): Define for NetBSD.
9073
9074 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9075
f532dca0
DL
90762000-04-19 Dave Love <fx@gnu.org>
9077
c750667e
DL
9078 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9079 change.
9080
9081 * Makefile.in (LIBS): Don't use.
9082 (GETLOADAVG_OBJ): Define again.
9083 (otherobj): Add GETLOADAVG_OBJ.
9084
f532dca0
DL
9085 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9086
1c7e22fd
GM
90872000-04-18 Gerd Moellmann <gerd@gnu.org>
9088
f6d3257b
GM
9089 * lread.c (read_filtered_event): Cancel and start busy cursor.
9090
427ec082 9091 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9092 that the per-character metrics may be null.
9093
e10f64e7
GM
90942000-04-17 Gerd Moellmann <gerd@gnu.org>
9095
0daee095
GM
9096 * buffer.c (clone_per_buffer_values): New function.
9097 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9098 clone_per_buffer_values if CLONE is not nil.
9099
e10f64e7
GM
9100 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9101
38687d43
DL
91022000-04-16 Dave Love <fx@gnu.org>
9103
9104 * Makefile.in: Remove obsolete localcpp stuff.
9105 (GETLOADAVG_OBJ): Don't define.
9106 (obj): Move LIBOBJS...
9107 (otherobj): ... to here.
9108 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9109 whitespace-only lines after the continuation (Irix).
9110
c21c7262
GM
91112000-04-14 Gerd Moellmann <gerd@gnu.org>
9112
9113 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9114
9115 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9116
314767c0
DL
91172000-04-14 Dave Love <fx@gnu.org>
9118
9119 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9120 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9121 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9122 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9123 NLIST_STRUCT.
9124
9125 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9126 autoconfiscated HAVE_GETLOADAVG.
9127
9128 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9129 BROKEN_MKTIME.
9130
a2522dca
GM
91312000-04-14 Gerd Moellmann <gerd@gnu.org>
9132
9133 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9134 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9135
33744b5d
DL
91362000-04-14 Dave Love <fx@gnu.org>
9137
c21c7262 9138 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9139 (INTERVAL_SRC): Convert to make variable.
9140 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9141 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9142 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9143 add LIBOBJS.
9144 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9145 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9146 (shortlisp): Add facemenu, float-sup, frame.
9147 (SOME_MACHINE_LISP): Remove them from here.
9148 (LIBES): Change unused LDLIBS to autoconf LIBS.
9149
9150 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9151
9d3d5916
KH
91522000-04-14 Kenichi Handa <handa@etl.go.jp>
9153
9154 * composite.c (update_compositions): If FROM and TO are not in a
9155 valid range, do nothing.
9156
198e3c7a
GM
91572000-04-13 Gerd Moellmann <gerd@gnu.org>
9158
52283633 9159 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9160
52283633 9161 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9162
9163 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9164 as TERMCAP_OBJ.
9165
055a28c9
EZ
91662000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9167
9168 * fileio.c (a_write): Remove redundant semi-colons.
9169 (e_write): Return -1 if failed to write all the data.
9170 This fixes the changes made at 1999-12-15.
9171
f5c75033
DL
91722000-04-12 Dave Love <fx@gnu.org>
9173
9174 * fns.c (mapcar1): Test for null vals to support mapc.
9175 (Fmapc): New function.
9176
0c3cfc51
EZ
91772000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9178
9179 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9180 (IT_frame_up_to_date): Support the buffer local value of
9181 cursor-type, if defined.
9182
33465a31
DL
91832000-04-10 Dave Love <fx@gnu.org>
9184
9185 * editfns.c (preceding-char, following-char): Doc fix.
9186
6ed56568
KR
91872000-04-10 Ken Raeburn <raeburn@gnu.org>
9188
9189 * Makefile.in (temacs): Revert 2000-03-12 change.
9190
7cf80d4e
JR
91912000-04-10 Jason Rumney <jasonr@gnu.org>
9192
9193 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9194
34f3f342
GM
91952000-04-10 Gerd Moellmann <gerd@gnu.org>
9196
1a1b1895
GM
9197 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9198 area buffer, if it's not set up yet.
9199
34f3f342
GM
9200 * indent.c (compute_motion): Set immediate_quit.
9201
be0dbdab
GM
92022000-04-09 Gerd Moellmann <gerd@gnu.org>
9203
52283633 9204 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9205 (realize_tty_face): Suppress boldness if colors are the inverse of
9206 the default colors, and tty_suppress_bold_inverse_default_colors_p
9207 is set.
9208 (Ftty_suppress_bold_inverse_default_colors): New function.
9209 (syms_of_xfaces): Defsubr it.
9210
be0dbdab
GM
9211 * buffer.c (Frestore_buffer_modified_p): New function.
9212 (syms_of_buffer): Defsubr it.
9213
e8413c3b
KR
92142000-04-08 Ken Raeburn <raeburn@gnu.org>
9215
87f67317
KR
9216 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9217 charset id (int) argument, not a charset (Lisp_Object).
9218
e8413c3b
KR
9219 * coding.h (code_convert_string): Declare.
9220 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9221 object, as the fourth argument to code_convert_string.
9222
52283633 9223 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9224 (Fset_fontset_font): Use EQ to compare lisp objects.
9225
7c752c80
KR
92262000-04-05 Ken Raeburn <raeburn@gnu.org>
9227
c0333abc
KR
9228 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9229 a pointer that looks like a lisp object.
9230 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9231 zero, instead see whether it's an integer object, since they can't
9232 have intervals.
9233 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9234
52283633
SM
9235 * dispnew.c (allocate_matrices_for_frame_redisplay)
9236 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9237 to convert between (unsigned) int values and lisp integers.
9238 * keyboard.c (read_key_sequence): Likewise.
9239 * lread.c (substitute_object_recurse): Likewise.
9240 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9241 * minibuf.c (do_completion, Fminibuffer_complete_word)
9242 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9243 * term.c (produce_special_glyphs): Likewise.
9244
9245 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9246 * print.c (print_preprocess, print_object): Likewise.
9247
9248 * search.c (compile_pattern): Use NILP when checking for nil.
9249
74e49b38
KR
9250 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9251 __OPTIMIZE__]: Provide a GNU C macro version that handles
9252 lisp-object unions.
9253 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9254 field, to better cope with ENABLE_CHECKING and calls that modify a
9255 Lisp_Object using its old value.
9256
685e5ed2
GM
92572000-04-04 Gerd Moellmann <gerd@gnu.org>
9258
c407c570
GM
9259 * window.c (compare_window_configurations): Signal an error
9260 if parameters C1 or C2 aren't window configurations.
9261
685e5ed2
GM
9262 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9263 AFTER_POTENTIAL_GC calls around calls to functions that can
9264 signal an error and thus invoke the debugger.
9265
587a49ab
GM
92662000-04-03 Gerd Moellmann <gerd@gnu.org>
9267
62f20204
GM
9268 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9269 an error if decoding fails.
9270
587a49ab
GM
9271 * keyboard.c (lispy_mouse_names): Variable removed.
9272 (Vlispy_mouse_stem): New variable.
9273 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9274 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9275 for any mouse button number. Increase size of mouse_syms and
9276 button_down_location as needed. Call modify_event_symbol with
9277 different arguments.
9278 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9279 Call modify_event_symbol with different arguments.
9280 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9281 for any button number. Call modify_event_symbol with different
9282 arguments.
9283 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9284 Accept a string for NAME_ALIST_OR_STEM.
9285
9286 * lisp.h (larger_vector): Add prototype.
9287
9288 * fns.c (larger_vector): Make externally visible.
9289
9290 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9291
2d1675e4
SM
92922000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9293
9294 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9295 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9296 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9297 we are between str1 and str2.
9298 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9299 (PATFETCH): Use `TRANSLATE'.
9300 (PATFETCH_RAW): Fetch multibyte char if applicable.
9301 (PATUNFETCH): Remove.
9302 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9303 When writing a char, write it directly into the pattern buffer rather
9304 than going needlessly through a temp char-array.
9305 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9306 multibyte magic and remove the useless `#ifdef emacs'.
9307 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9308 buffer.
9309
9310 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9311 conditional on `emacs'.
9312
9313 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9314
cc2d8c6b
KR
93152000-04-01 Ken Raeburn <raeburn@gnu.org>
9316
9317 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9318 non-union-type versions of XMARK and friends here, because XMARK
9319 and friends won't work on an integer field if NO_UNION_TYPE is not
9320 defined.
52283633 9321 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9322
52283633 9323 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9324 (syms_of_composite): Delete local var NARGS, pass an int as first
9325 argument to Fmake_hash_table.
9326
2387b382
KR
9327 * editfns.c (text_property_stickiness): Use NILP to test
9328 Lisp_Object boolean value.
9329 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9330 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9331 problems reading from and changing the same lisp value in an
9332 XSETSTRING call.
9333
27660e89
GM
93342000-04-01 Gerd Moellmann <gerd@gnu.org>
9335
9336 * term.c (TN_no_color_video): New variable.
9337 (term_init): Intitialize TN_no_color_video.
9338 (enum no_color_bit): New enumeration.
9339 (MAY_USE_WITH_COLORS_P): New macro.
9340 (turn_on_face): Use it to determine if attributes may be used
9341 combined with colors.
9342
3578db3c
KR
93432000-04-01 Ken Raeburn <raeburn@gnu.org>
9344
9345 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9346 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9347 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9348 proper accessor macros.
9349 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9350 (grow_mini_window): Fix typo getting int value of root->height.
9351
6fc556fd
KR
9352 * xdisp.c (compute_string_pos): Fix order of arguments to
9353 string_pos_nchars_ahead.
9354 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9355 count arg to variable-arg routines like Frun_hook_with_args and
9356 Fformat.
587a49ab
GM
9357 (back_to_previous_visible_line_start)
9358 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9359 fixed-arg routines like Fget_char_property and Fmake_string.
9360 (reconsider_clip_changes): Use XINT when comparing integer lisp
9361 objects, or passing them as int arguments.
587a49ab
GM
9362 (mark_window_display_accurate, insert_left_trunc_glyphs)
9363 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9364 storing or passing integer values as lisp objects.
9365 (set_cursor_from_row, highlight_trailing_whitespace): Use
9366 INTEGERP, not implicit test against zero, for glyph object.
9367 (try_window_id): Don't use make_number when we want an int value.
9368
9369 * xfaces.c (xlfd_symbolic_value): Make last argument a
9370 Lisp_Object, to be consistent with callers.
9371 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9372 (lface_hash): Apply XFASTINT to lisp values before folding in.
9373
9374 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9375 fill in window width and height. Pass an int, not a lisp object,
9376 as first arg to Finsert.
9377
6e7b2457
GM
93782000-04-01 Gerd Moellmann <gerd@gnu.org>
9379
610d841e
GM
9380 * xfaces.c (realize_basic_faces): Block input while realizing
9381 the faces.
9382
6e7b2457
GM
9383 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9384
9385 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9386
aa110c0c
GM
93872000-03-31 Gerd Moellmann <gerd@gnu.org>
9388
9389 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9390 or ASCII, handle case that per-char metric is null.
aa110c0c 9391
8801a864
KR
93922000-03-30 Ken Raeburn <raeburn@gnu.org>
9393
c6129d7e
KR
9394 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9395
52283633
SM
9396 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9397 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9398 pointer, using eassert.
9399 * frame.h (XFRAME): Likewise.
9400
52283633
SM
9401 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9402 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9403 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9404 * data.c (set_internal): Likewise.
52283633
SM
9405 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9406 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9407 * fileio.c (auto_save_1): Likewise.
9408 * insdel.c (check_markers): Likewise.
9409 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9410 * undo.c (record_insert): Likewise.
9411 * vmsproc.c (child_sig): Likewise.
9412 * window.c (unshow_buffer, window_loop): Likewise.
9413 * xterm.c (x_erase_phys_cursor): Likewise.
9414
8e7af858
GM
94152000-03-30 Gerd Moellmann <gerd@gnu.org>
9416
9417 * xfns.c (free_image_cache): Free the cache structure itself
9418 last, after all its members have been freed.
9419
9420 * lisp.h (xstrdup): Add prototype.
9421
9422 * alloc.c (xstrdup): Moved here from xfaces.c.
9423 (allocating_for_lisp): Variable removed.
52283633 9424 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9425
9426 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9427 of Fsymbol_value.
9428 (xstrdup): Moved to alloc.c.
9429
e0b8c689
KR
94302000-03-29 Ken Raeburn <raeburn@gnu.org>
9431
b96f9fb7
KR
9432 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9433
9434 * emacs.c (main): Fix sense of no-loadup test.
9435
e0b8c689
KR
9436 * config.in (ENABLE_CHECKING): Undef.
9437
9438 * lisp.h (struct interval): Replace "parent" field with a union of
9439 interval pointer and Lisp_Object; add new bitfield to use as
9440 discriminant. Change other flag fields to bitfields.
9441 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9442 is defined and the supplied test fails, print a message and abort.
9443 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9444
9445 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9446 pointers; abort if the value looks like a lisp object.
52283633
SM
9447 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9448 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9449 Modify for new interval parent definition.
9450
52283633
SM
9451 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9452 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9453 addressable lisp object in the interval structure.
9454 (die): New function.
9455 (suppress_checking): New variable.
9456
9457 * intervals.c (interval_start_pos): Just return 0 if there's no
9458 parent object.
9459
f83c5440
GM
94602000-03-29 Gerd Moellmann <gerd@gnu.org>
9461
9462 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9463 and earlier Emacs versions.
9464
9465 * keyboard.c (Ftop_level): Cancel busy-cursor.
9466
9467 * eval.c (call_debugger): Cancel busy-cursor.
9468
fdce64ff
KH
94692000-03-29 Kenichi Handa <handa@etl.go.jp>
9470
9471 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9472 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9473
f6a3f532
SM
94742000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9475
9476 * regex.c (analyse_first): New function obtained by ripping out most
9477 of re_compile_fastmap and generalizing it a little bit so that it
9478 can also just return whether a given (sub)pattern can match the empty
9479 string or not.
9480 (regex_compile): Use `analyse_first' to decide whether the loop-check
9481 needs to be done or not for *, +, *? and +? (the loop check is costly
9482 for non-greedy repetition).
9483 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9484
e9b309ac
DL
94852000-03-28 Dave Love <fx@gnu.org>
9486
52283633 9487 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9488
e9b309ac
DL
9489 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9490
ed0767d8
SM
94912000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9492
9493 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9494 an expression.
9495 (enum re_opcode_t): Update description of succeed_n.
9496 (PATFETCH): Always define.
9497 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9498 operators, char classes, shy-groups and intervals).
9499 Optimize special cases of intervals so as to only use succeed_n and
9500 jump_n when really needed.
9501 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9502 that we don't have to handle the special cases any more.
9503 Simplify on_failure_jump handling as well.
9504
e11e7e46
JR
95052000-03-28 Jason Rumney <jasonr@gnu.org>
9506
9507 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9508
88faab89
GM
95092000-03-27 Gerd Moellmann <gerd@gnu.org>
9510
182ff242
GM
9511 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9512
9513 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9514
182ff242
GM
9515 * alloc.c (mark_maybe_object): New function.
9516 (mark_memory): Use it.
9517 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9518 (setjmp_tested_p, longjmp_done): New variables.
9519 (test_setjmp): New function.
9520 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9521 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9522
c1005d06
GM
9523 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9524 to DEC_TEXT_POS and INC_TEXT_POS.
9525
9526 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9527 with parameter MULTIBYTE_P.
9528
52283633 9529 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9530
7439e5b9 9531 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9532 buffers because it looks for multibyte character byte sequences
9533 which don't exist in unibyte text.
7439e5b9 9534
d9c545da
GM
9535 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9536
11fd416e 9537 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9538 [DEBUG_X_COLORS]: New functions.
9539 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9540
9541 * xfns.c (x_set_cursor_color): Get color reference counts right.
9542
9543 * xterm.c (x_copy_color): New function.
9544 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9545
9546 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9547 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9548 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9549 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9550 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9551 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9552 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9553 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9554 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9555 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9556
11fd416e
GM
9557 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9558 names for handling per-buffer variables.
d9c545da
GM
9559
9560 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9561 instead of MAX_BUFFER_LOCAL_VARS.
9562 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9563
9564 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9565
88faab89
GM
9566 * xfns.c (x_specified_cursor_type): New function.
9567 (x_set_cursor_type): Use it.
9568
9569 * buffer.h (struct buffer): Add cursor_type.
9570
d80f42b7
SM
95712000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9572
9573 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9574 (print_partial_compiled_pattern, re_compile_fastmap):
9575 Handle new opcode.
d80f42b7
SM
9576 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9577 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9578 executing it as well as when popping it off the stack to find infinite
9579 loops in non-greedy repetition operators.
9580
89e80928
GM
95812000-03-26 Gerd Moellmann <gerd@gnu.org>
9582
3d4ff2dd
GM
9583 * doc.c (Qfunction_documentation): New variable.
9584 (syms_of_doc): Initialize Qfunction_documentation.
9585 (Fdocumentation): If FUNCTION is a symbol with non-nil
9586 `function-documentation' property, return a documentation derived
9587 from that.
9588
bd96bd79
GM
9589 * buffer.c (syms_of_buffer): Add default-cursor-type.
9590 (init_buffer_once): Don't let cursor_type have a local value
9591 in every buffer.
9592
19d1bc27
GM
9593 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9594 on buffer-local value of cursor_type.
9595 (x_draw_bar_cursor): Add parameter WIDTH.
9596
9597 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9598 (init_buffer_once): Set default cursor_type value to t.
9599 Mark cursor_type as local everywhere.
9600 (syms_of_buffer): New per-buffer variable cursor-type.
9601
89e80928
GM
9602 * buffer.h (struct buffer): Remove member local_var_flags,
9603 add local_flags.
9604 (MAX_BUFFER_LOCAL_VARS): New macro.
9605 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9606 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9607 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9608 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9609
52283633 9610 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9611
9612 * category.c (Fset_category_table): Use new macros for per-buffer
9613 variables.
9614
9615 * buffer.c (buffer_permanent_local_flags): Make a char array.
9616 (max_buffer_local_idx): New variable.
9617 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9618 for new handling of per-buffer variables.
9619 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9620 (init_buffer_once): Initialize per-buffer vars differently.
9621 Set max_buffer_local_idx.
9622
9623 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9624 variables.
9625
52283633 9626 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9627
9628 * data.c (do_symval_forwarding, store_symval_forwarding)
9629 (find_symbol_value, set_internal, default_value, Fset_default)
9630 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9631 per-buffer variables.
9632
9633 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9634
9a0dd3dc
GM
96352000-03-24 Gerd Moellmann <gerd@gnu.org>
9636
b68c375f
GM
9637 * xterm.c (x_term_init): Unblock input around call1 of
9638 Qvendor_specific_keysyms.
9639
9a0dd3dc
GM
9640 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9641 (find_defun_start): Consider an open parenthesis in column 0
9642 a defun start only if open_paren_in_column_0_is_defun_start is set.
9643 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9644
7973e637
SM
96452000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9646
9647 * eval.c (Fautoload): Add entry in load-history (if after dump).
9648 * lread.c (load-history): Update docstring.
9649
39210e90
GM
96502000-03-24 Gerd Moellmann <gerd@gnu.org>
9651
9652 * indent.c (Fvertical_motion): Always use the current buffer.
9653 Temporarily change the window's buffer, if necessary.
9654
72db3ab5
GM
96552000-03-23 Gerd Moellmann <gerd@gnu.org>
9656
9657 * xterm.c (fast_find_position): Make sure not to consider rows
9658 not visible in the window.
9659
990b2375
SM
96602000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9661
9662 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9663 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9664
ff4df011
JR
96652000-03-22 Jason Rumney <jasonr@gnu.org>
9666
9667 * w32menu.c (single_submenu): Set help string to NULL if none.
9668 (w32_menu_show): Set help string correctly.
9669 (add-menu-item): Set help string in MIIM_DATA for menu item.
9670 Load SetMenuItemInfoA explicitly.
9671 (w32_menu_display_help): New function.
427ec082 9672
ff4df011
JR
9673 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9674 (QCdata): Moved to xdisp.c.
9675
9676 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9677 (Vw32_charset_to_codepage_alist): Removed.
9678 (Vw32_charset_info_alist): New variable.
52283633
SM
9679 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
9680 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
9681 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
9682 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9683 with TODO comment.
9684 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9685 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9686 Define Vw32_charset_info_alist and w32_charset symbols.
9687
96882000-03-22 Jason Rumney <jasonr@gnu.org>
9689
9690 * makefile.nt (w32bdf.obj): Update dependencies.
9691
9692 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9693
9694 * w32fns.c: Include fontset.h after dispextern.h.
9695 (Fx_create_frame): Do not create fontset.
9696 (w32_load_system_font): Doc fix.
9697 (Fx_close_connection): Free full_name if it is not shared.
9698
9699 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
9700 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
9701 Callers updated.
ff4df011
JR
9702 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9703 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9704 (w32_font_is_double_byte): New function, needs body.
9705 (x_append_glyph): Set glyph->glyph_not_available_p.
9706 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9707 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9708 character, convert it to a unibyte character.
9709 (struct glyph_string): Delete member `charset'.
9710 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9711 calculating it is found.
9712 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9713 the case that per char metric is not available correctly.
9714 (x_fill_glyph_string): Handle the case that the specific glyph is
9715 not available correctly.
9716 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9717 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9718 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9719 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9720 fontset. Don't call FS_LOAD_FONT.
9721
439d5cb4
KR
97222000-03-22 Ken Raeburn <raeburn@gnu.org>
9723
9724 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9725 (INT_LISPLIKE): New macro.
9726 (NULL_INTERVAL_P): Use it.
52283633
SM
9727 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
9728 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
9729 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
9730
9731 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9732 explicit references to "parent" field of struct interval and
9733 associated unclean type conversions.
52283633
SM
9734 * intervals.c (create_root_interval, root_interval, rotate_right)
9735 (rotate_left, balance_possible_root_interval, split_interval_right)
9736 (split_interval_left, interval_start_pos, find_interval)
9737 (next_interval, previous_interval, update_interval)
9738 (adjust_intervals_for_insertion, delete_node, delete_interval)
9739 (adjust_intervals_for_deletion, merge_interval_right)
9740 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
9741 (copy_intervals_to_string): Likewise.
439d5cb4
KR
9742 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9743 Likewise.
9744 * syntax.c (update_syntax_table): Likewise.
9745
9746 * intervals.c (reproduce_tree_obj): New function, like
9747 reproduce_tree but takes a Lisp_Object for the parent. Declare
9748 with prototype.
9749 (graft_intervals_into_buffer): Use it when appropriate.
9750 (reproduce_tree): Declare with prototype.
9751 (balance_possible_root_interval): Check that the parent is a lisp
9752 object before trying to examine its type.
9753
ee1c5b21
GM
97542000-03-22 Gerd Moellmann <gerd@gnu.org>
9755
9756 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9757 as strings only if both are known to be strings.
9758
9759 * s/openbsd.h (LIBS_TERMCAP): Undef.
9760
1fb352e0
SM
97612000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9762
9763 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9764 definitions for non-Emacs compilation.
9765 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9766 outside of `#ifdef emacs'.
9767 (print_partial_compiled_pattern): Update.
9768 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9769 (re_compile_fastmap): Merge handling of charset and charset_not (for
9770 emacs and non-emacs compilation as well).
9771 Similarly for (not)categoryspec and (not)syntaxspec.
9772 Don't use the fastmap when reaching `anychar' since the added
9773 complexity is not justified.
9774 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9775 and (not)syntaxspec. Merge (not)categoryspec.
9776
fdaa1f77
KH
97772000-03-22 Kenichi Handa <handa@etl.go.jp>
9778
52283633
SM
9779 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
9780 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 9781 --without-x.
fdaa1f77 9782
d152fb46
DL
97832000-03-21 Dave Love <fx@gnu.org>
9784
9785 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9786 doc string.
9787
d2cafc8c
GM
97882000-03-21 Gerd Moellmann <gerd@gnu.org>
9789
9790 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9791 (lface_fully_specified_p): Don't check contents of
9792 LFACE_FONT_INDEX because that attribute is optional.
9793 (realize_x_face): Remove now unwarranted xassert.
9794
9111d4b5
KH
97952000-03-21 Kenichi HANDA <handa@etl.go.jp>
9796
9797 The following changes are to make font selection based on
9798 characters, not charset. In addition, they recover fontset
9799 facilities while utilizing the new font selection mechanism.
9800
6c4bfdc0
KH
9801 * Makefile.in (fontset.o): Depend on dispextern.h.
9802
9803 * alloc.c (mark_face_cache): Don't mark face->registry.
9804
9111d4b5
KH
9805 * dispextern.h (struct glyph): New member glyph_not_available_p.
9806 Use 22 bits for face_id.
9807 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9808 (struct face): Delete member registry, new member ascii_face.
9809 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9810 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9811 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 9812 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
9813
9814 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9815 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
9816 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
9817 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 9818 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
9819 (fs_free_face_fontset, fontset_font_pattern)
9820 (face_suitable_for_char_p, face_for_char)
9821 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
9822 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9823 (FS_LOAD_FACE_FONT): New macro.
9824
9825 * fontset.c: All codes rewritten or adjusted for the change of
9826 fontset implementation. Now fontset is represented by char table.
52283633
SM
9827 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
9828 Variables removed.
9111d4b5 9829 (my_strcasecmp): Function removed.
52283633 9830 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 9831 (AREF, ASIZE): New macros.
52283633
SM
9832 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
9833 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
9834 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9835 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
9836 (fontset_id_valid_p, font_family_registry, fontset_name)
9837 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
9838 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
9839 New functions.
9840 (fs_load_font): New arg FACE. Caller changed.
9841 (fs_query_fontset): Argument changed. Caller changed.
9842 (Fquery_fontset): call fs_query_fontset.
9843 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9844 Functions removed.
52283633
SM
9845 (clear_fontset_elements, check_registry_encoding)
9846 (check_fontset_name): New functions.
9111d4b5
KH
9847 (syms_of_fontset): Set char-table-extra-slots property of fontset
9848 to 3. Staticpro and initialize Vfontset_table and
9849 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9850
9851 * frame.h (struct frame): Member `fontset_data' removed.
9852 (FRAME_FONTSET_DATA): Macro removed.
9853
9854 * frame.c (make_frame): Don't allocate f->fontset_data.
9855 (Fdelete_frame): Don't free f->fontset_data.
9856
6c4bfdc0
KH
9857 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9858
9111d4b5
KH
9859 * xdisp.c (charset_at_position): Function removed.
9860 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
9861 (handle_face_prop, reseat_to_string, set_iterator_to_next)
9862 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
9863 Likewise.
9864 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9865 FACE_FOR_CHARSET.
52283633
SM
9866 (get_next_display_element, append_space)
9867 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
9868
9869 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9870 Variables removed.
9871 (clear_font_table, frame_update_line_height, load_face_font):
9872 Adjusted for the change of fontset implementation.
9873 (load_face_fontset_font): Function removed.
9874 (pixel_point_size): New function.
9875 (font_list): Argument type changed. Caller changed.
9876 (LFACE_FONT): New macro.
9877 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9878 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9879 Lisp_Object. Determine the font name by actually loading a font
9880 by the specified pattern. Set LFACE_FONT (lface) to the specified
9881 pattern. Even if a font is not found, don't try alternatives.
9882 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9883 (set_font_frame_param): If `font' is specified in lface, use it.
9884 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9885 (lface_same_font_attributes_p): Likewise.
9886 (make_realized_face): Arguent changed. Caller changed. Set
9887 face->ascii_face to face itself.
9888 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
9889 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
9890 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
9891 (free_realized_multibyte_face): New function.
9892 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9893 changed. Caller changed.
9894 (try_font_list): Argument type changed.
9895 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9896 (choose_face_font): Argument changed. Handle fontset properly.
9897 (choose_face_fontset_font): Function removed.
9898 (realize_default_face, realize_named_face): Don't remove the
9899 former face here.
9900 (realize_face): Argument changed. Caller changed. Remove face
52283633 9901 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
9902 (realize_x_face): Argument changed. Caller changed. For a
9903 multibyte character, share fontset with base_face. For a single
52283633 9904 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
9905 (realize_tty_face): Argument changed. Caller changed.
9906 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9907 (face_at_buffer_position): Don't check multibyte_p for returning
9908 DEFAULT_FACE_ID.
9909 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9910 FACE_SUITABLE_FOR_CHARSET_P.
9911 (syms_of_xfaces): Remove code for Qx_charset_registry and
9912 Vface_default_registry.
9913
6c4bfdc0
KH
9914 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9915 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9916 (x_per_char_metric): Don't try FONT->default_char. Even if
9917 pcm->width is zero, glyph bits may exist.
9918 (x_encode_char): Always initialize char2b->byte1.
9919 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 9920 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
9921 (x_append_glyph): Set glyph->glyph_not_available_p.
9922 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9923 it->charset. Handle the case that per char metric is not
9924 available. If it->multibyte_p is zero and it->c is a multibyte
9925 character, convert it to a unibyte character.
9926 (struct glyph_string): Delete member `charset'.
9927 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9928 the case that per char metric is not available correctly.
9929 (x_fill_glyph_string): Handle the case that the specific glyph is
9930 not available correctly.
9931 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9932 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9933 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9934 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9935 fontset. Don't call FS_LOAD_FONT.
9936
9937 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9938 (x_create_tip_frame): Likewise.
9939 (Fx_close_connection): Free full_name of font_info.
9940
9941 * fns.c (optimize_sub_char_table): New function.
9942 (Foptimize_char_table): New function.
9943 (syms_of_fns): Defsubr Soptimize_char_table.
9944
b33dd3b0
GM
99452000-03-20 Gerd Moellmann <gerd@gnu.org>
9946
9947 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9948 only if buffer is displayed in some window.
9949
9950 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9951 (try_window_reusing_current_matrix): Don't call scroll run
9952 function if run's current and desired position are the same;
9953 this prevents cursor flickering.
9954
4e8a9132
SM
99552000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9956
9957 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9958
9959 * regex.c (RE_STRING_CHAR): New macro.
9960 (GET_CHAR_AFER_2): Remove.
9961 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9962 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9963 (print_partial_compiled_pattern, re_compile_fastmap)
9964 (re_match_2_internal): Remove on_failure_jump_exclusive.
9965 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9966 optimization only need to work for * (ie. can use of_keep_string_jump).
9967 Remove the special case for .*\n since it is now covered by the general
9968 optimization.
9969 (re_search_2): Don't bother with `room'.
9970 (skip_one_char): New function.
9971 (skip_noops): Simplify since `memory' is not needed any more.
9972 (mutually_exclusive_p): Restructure slightly to use `switch' and
9973 add handling for "all" remaining cases.
9974 (re_match_2_internal): Change on_failure_jump_smart to use
9975 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9976 rather than on_failure_jump_exclusive.
9977
2136fdd4
GM
99782000-03-19 Gerd Moellmann <gerd@gnu.org>
9979
9980 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9981 number of bits per RGB because it's everywhere used as the depth
9982 of the visual.
9983
9984 * term.c (calculate_costs): Remove code dealing with X frames.
9985
18e21ce8 99862000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9987
9988 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9989
d7b511c4
GM
99902000-03-18 Gerd Moellmann <gerd@gnu.org>
9991
9992 * lread.c (read_integer): Unread the last char not consumed.
9993
16b5d424
GM
99942000-03-17 Gerd Moellmann <gerd@gnu.org>
9995
9996 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9997 which are in the process of being deleted.
16b5d424 9998
1fa28578
GM
99992000-03-16 Gerd Moellmann <gerd@gnu.org>
10000
83488cce
GM
10001 * Makefile.in (mostlyclean): Add `*.core'.
10002 (clean): Add `bootstrap-emacs'.
10003
1fa28578
GM
10004 * lread.c (read_integer): New function.
10005 (read1): Support read syntax #o, #x, #b, #r.
10006
99633e97
SM
100072000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10008
1fa28578
GM
10009 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10010 make sure POINTER_TO_OFFSET gives the same value before and after
10011 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10012 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10013 (debug): Now only active if > 0 rather than if != 0.
10014 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10015 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10016 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10017 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10018 (store_op1, store_op2, insert_op1, insert_op2)
10019 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10020 (group_in_compile_stack): Move to after its arg's types are
10021 declared and add a prototype.
99633e97 10022 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10023 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10024 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10025 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10026 indentation of the greedy-op and shy-group code.
99633e97
SM
10027 (at_(beg|end)line_loc_p): Fix argument's types.
10028 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10029 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10030 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10031 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10032 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10033 QUIT unconditionally.
99633e97 10034
699238d9
GM
100352000-03-15 Gerd Moellmann <gerd@gnu.org>
10036
10037 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10038 a sole completion.
10039
10040 * process.c (send_process): Add a hint that the function
10041 can call Lisp code to its comment.
10042
10043 * lread.c (load_dangerous_libraries): New variable.
10044 (Vbytecomp_version_regexp): New variable.
10045 (safe_to_load_p): New function.
10046 (Fload): Handle files not compiled with Emacs specially.
10047 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10048
34e23e5a
GM
100492000-03-14 Gerd Moellmann <gerd@gnu.org>
10050
9c763cca
GM
10051 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10052
10053 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10054 support functions only if HAVE_X11R6_XIM is defined.
10055 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10056
10057 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10058
10059 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10060 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10061 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10062
10063 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10064 (HAVE_X11R6_XIM): Define.
10065
10066 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10067
34e23e5a
GM
10068 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10069 If set, call XSynchronize.
10070
66f0296e
SM
100712000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10072
34e23e5a
GM
10073 * regex.c: Declare a new type `re_char' used throughout the code
10074 for the string char type. It's `const unsigned char' to match the
10075 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10076 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10077 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10078 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10079 code duplication.
66f0296e
SM
10080
10081 * charset.h (GET_CHAR_AFTER_2): Remove.
10082 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10083
854a025c
KR
100842000-03-12 Ken Raeburn <raeburn@gnu.org>
10085
10086 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10087 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10088 of them try to use backquotes.
10089
b9d2c7e2
DL
100902000-03-12 Dave Love <fx@gnu.org>
10091
10092 * unexelf.c: Restore changes of 1999-10-19.
10093 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10094 fix its type and alignment; copy it from current process.
10095
5e5dff44
GM
100962000-03-12 Gerd Moellmann <gerd@gnu.org>
10097
9b2f3c38
GM
10098 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10099 has been found. Fix bug not computing timer's predecessor.
10100
427ec082 10101 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10102 file name.
10103
e1cff360
GM
10104 * window.c (Fsave_window_excursion): Doc fix.
10105
52283633 10106 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10107
e411ce4b
EZ
101082000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10109
10110 * msdos.c (vga_installed): New function, code moved from
10111 dos_set_window_size.
10112 (Qbar, Qcursor_type, outside_cursor): New variables.
10113 (syms_of_msdos): Intern and staticpro them.
10114 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10115 shape used outside Emacs when called for the first time.
10116 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10117 cursor shape used outside Emacs.
10118 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10119 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10120 type has changed.
10121 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10122 parameters specify the cursor. Make qreverse a global
10123 variable (renamed to Qreverse).
10124
80460654
GM
101252000-03-09 Gerd Moellmann <gerd@gnu.org>
10126
10127 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10128
95cd4c40
SM
101292000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10130
10131 This is a big redesign of failure-stack and register handling, prompted
10132 by bugs revealed when trying to add shy-groups. Overall, what happened
10133 is that loops are now structured a little differently, groups can be
10134 shy and the code is a little simpler.
10135
10136 * regex.h: Update the copyright.
10137 (RE_SHY_GROUPS): New value.
10138 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10139 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10140
80460654
GM
10141 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10142 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10143 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10144 for (start|stop)_memory since they now only take one argument (the
10145 second has becomes unnecessary).
52283633 10146 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10147 (print_compiled_pattern): Use %ld to printf long ints and flush to
10148 make debugging a little easier.
95cd4c40
SM
10149 (union fail_stack_elt): Make the integer unsigned.
10150 (struct fail_stack_type): Add a `frame' element.
10151 (INIT_FAIL_STACK): Init `frame' as well.
10152 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10153 (DEBUG_PUSH, DEBUG_POP): Remove.
10154 (NUM_REG_ITEMS): Remove.
10155 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10156 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10157 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10158 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10159 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10160 New macros.
80460654
GM
10161 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10162 address pushed is not the destination of the jump but the source
10163 of it instead.
95cd4c40
SM
10164 (NUM_FAILURE_ITEMS): Remove.
10165 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10166 registers before the actual failure point). Don't hardcode any
10167 meaning for str==NULL anymore.
95cd4c40 10168 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10169 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10170 Remove.
95cd4c40
SM
10171 (REG_UNSET_VALUE): Use NULL (why not?).
10172 (compile_range): Remove declaration since it doesn't exist.
10173 (struct compile_stack_elt_t): Remove inner_group_offset.
10174 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10175 (regex_grow_registers): Remove dead code.
10176 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10177 (regex_compile): Add shy-groups Change loops to use
10178 on_failure_jump_smart&jump instead of
10179 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10180 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10181 variable to me). Use `jump' instead of `jump_past_alt' and don't
10182 bother with push_dummy_failure in alternatives since it is now
10183 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10184 emacs' for (re)allocating the stack.
10185 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10186 from loop when bufp->can_be_null rather than jumping to `done'.
10187 Avoid jumping backwards so as to ensure termination. Use
10188 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10189 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10190 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10191 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10192 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10193 (lowest_active_reg, highest_active_reg)
10194 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10195 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10196 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10197 variables. Push register (in `start_memory') on the stack rather
10198 than storing it in old_reg(start|end). Remove the cycle detection
10199 from `stop_memory', replaced by the use of on_failure_jump_loop
10200 for greedy loops. Add code for the new on_failure_jump_<foo>.
10201 Remove ad-hoc code in `on_failure_jump' to push more registers in
10202 the case of a loop. Take out code from `maybe_pop_jump' into
10203 separate functions and adapt it to the semantics of
10204 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10205 and push_dummy_failure. Remove dummy_failure handling and
10206 handling of `failures to jump to on_failure_jump' (this last one
10207 was already dead code, it seems).
10208 (group_match_null_string_p, alt_match_null_string_p)
10209 (common_op_match_null_string_p): Remove.
95cd4c40 10210
7397acc4
DL
102112000-03-08 Dave Love <fx@gnu.org>
10212
10213 * config.in: Don't depend on __STDC__ for volatile.
10214 Add POINTER_TYPE, PTR, PROTOTYPES.
10215
10216 * hftctl.c, strftime.c: Use PROTOTYPES.
10217 * eval.c (find_handler_clause): Likewise.
10218
10219 * mem-limits.h: Use POINTER_TYPE.
10220
10221 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10222 (memory_warnings): Declare using POINTER_TYPE.
10223
5e91ff9e
GM
102242000-03-08 Gerd Moellmann <gerd@gnu.org>
10225
feab4fba
GM
10226 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10227
52283633 10228 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10229
5e91ff9e
GM
10230 * xfns.c: Remove obsolete code in #if 0.
10231 (Fx_focus_frame): New function.
10232
a735b7e1
KH
102332000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10234
10235 * coding.c (coding_category_name): Add coding-category-utf-8,
10236 coding-category-utf-16-be, coding-category-utf-16-le.
10237 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10238 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10239 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10240 (detect_coding_utf_8): New function.
10241 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10242 UTF_16_LOW_SURROGATE_P): New macros.
10243 (detect_coding_utf_16): New function
10244 (detect_coding_mask): When priorities are specified, skip any
10245 categories that have `nil' coding-system. Fix bug of returning
10246 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10247 returns a mask not set in PRIORITIES.
10248 (detect_eol_type_in_2_octet_form): New function.
10249 (detect_eol): selects detect_eol_type_XXX to call according to
10250 cooding->category_idx.
10251 (detect_coding_system): Remove `nil' coding-system in the result.
10252 (Fupdate_coding_systems_internal): Update all coding-categories.
10253
52283633
SM
10254 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10255 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10256 New macros.
10257 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10258 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10259 (CODING_CATEGORY_IDX_UTF_16_LE)
10260 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10261 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10262 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10263 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10264
9994cc69
GM
102652000-03-07 Gerd Moellmann <gerd@gnu.org>
10266
e9b4e5ff
GM
10267 * doc.c (Fdocumentation_property): If value is not a string,
10268 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10269
f7daf1e1
GM
10270 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10271 close the display with XtCloseDisplay. This caused a bus error
10272 on OpenWindows.
10273
9994cc69
GM
10274 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10275 complete but not unique.
10276
4336c705
GM
102772000-03-06 Gerd Moellmann <gerd@gnu.org>
10278
18bb0684
GM
10279 * process.c (send_process): Remove local variable `procname' that
10280 might become invalid when a GC happens. Instead, access the
10281 process name slot directly.
10282
4336c705
GM
10283 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10284 orig_height if set.
10285
10286 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10287 orig_height if set.
10288
515d0d0e
EZ
102892000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10290
10291 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10292 glyph matrices have been freed.
10293
100b3cbb
GM
102942000-03-05 Gerd Moellmann <gerd@gnu.org>
10295
50df5e5a 10296 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10297 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10298
10299 * xfns.c (QCdata): Moved to xdisp.c.
10300
10301 * xdisp.c (QCdata): Moved here from xfns.c.
10302 (syms_of_xdisp): Initialize QCdata.
10303
10304 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10305
10306 * window.c (coordinates_in_window): Use
10307 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10308 FRAME_INTERNAL_BORDER_WIDTH.
10309
100b3cbb 10310 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10311 it is obviously invalid.
100b3cbb
GM
10312
10313 * xterm.c (x_term_init): Create a colormap if not using the
10314 default visual.
10315
10316 * xterm.h (select_visual): Change prototype.
10317
10318 * xfns.c (select_visual): Rewritten. Recognize user-specified
10319 visual classes.
10320 (visual_classes): New variable.
10321
64d739c4
GM
103222000-03-04 Gerd Moellmann <gerd@gnu.org>
10323
10324 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10325 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10326 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10327 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10328 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10329 XtNcolormap resources.
10330 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10331 (Fx_create_frame): Initialize color members of x_output structure.
10332 (xpm_load): Pass colormap to XPM lib.
10333
10334 * xfaces.c (x_free_colors): Access colormap of frame using
10335 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10336 when default colormap is used.
10337
10338 * xterm.c (x_term_init): Set Colormap member of x_display_info
10339 structure. Copy colormap if resource `privateColormap' is
10340 specified (PseudoColor only).
10341 (x_setup_relief_color): Access colormap of frame using
10342 FRAME_X_COLORMAP.
10343
10344 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10345 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10346
c3cee013
JR
103472000-03-04 Jason Rumney <jasonr@gnu.org>
10348
10349 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10350 other non-platform-specific equivalents.
64d739c4 10351 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10352 specific functions and macros as their w32 equivalents where
10353 non-platform-specifics are not available.
10354 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10355 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10356 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10357 (frame_update_line_height): Use macros to access f->output_data.
10358 (defined_color): Remove FIXME comments; fixed.
10359 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10360 into #ifdef blocks. Add WINDOWSNT blocks.
10361 (Fx_list_fonts): Use macros for accessing font data.
10362 (set_lface_from_font_name): Different default fonts for X and
10363 WINDOWSNT.
10364 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10365 scalable for backward compatibility.
64d739c4 10366 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10367 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10368
64d739c4 10369 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10370 syms_of_w32faces.
10371
10372 * makefile.nt (w32faces.obj): Remove.
10373 (xfaces.obj): Add.
10374
807cc41c
JR
103752000-03-03 Jason Rumney <jasonr@gnu.org>
10376
10377 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10378 correct parameters.
10379
0007072a
KR
103802000-03-03 Ken Raeburn <raeburn@gnu.org>
10381
10382 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10383 standard ELF definitions here if the system header does not.
10384
71a6ba55
GM
103852000-03-03 Gerd Moellmann <gerd@gnu.org>
10386
10387 * xterm.c (PER_CHAR_METRIC): Removed.
10388 (x_per_char_metric_1, x_default_char): New functions.
10389 (x_per_char_metric): If font's default char is invalid, return
10390 metrics of a suitably chosen usable default char.
10391 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10392 char, replace occurrences of unprintable chars with a suitably
10393 chosen usable default char.
71a6ba55 10394
900fa1f1
GM
103952000-03-02 Gerd Moellmann <gerd@gnu.org>
10396
42f55fe0
GM
10397 * xterm.c (note_mouse_highlight): Return quickly if frame's
10398 glyph matrices have been freed.
10399
10400 * dispnew.c (free_glyphs): Block input while freeing matrices.
10401
900fa1f1
GM
10402 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10403
52283633
SM
10404 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10405 Use x_free_colors.
900fa1f1
GM
10406
10407 * dispextern.h (x_free_colors): Add prototype.
10408
10409 * xfaces.c (x_free_colors): New function.
10410 (unload_color, free_face_colors): Use it.
10411
2f950292
EZ
104122000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10413
10414 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10415
10416 * window.c [MSDOS]: Include msdos.h.
10417
54d04320
DL
104182000-03-02 Dave Love <fx@gnu.org>
10419
10420 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10421
10422 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10423 set C_OPTIMIZE_SWITCH for gcc.
10424
0ba93ac4
KH
104252000-03-02 Kenichi Handa <handa@etl.go.jp>
10426
10427 * coding.c (coding_save_composition): Be sure to allocate
10428 composition data area in coding even if there's no composition in
10429 the current run.
10430
a2bc11d4
JR
104312000-03-01 Jason Rumney <jasonr@gnu.org>
10432
10433 * w32term.c: Equivalent changes to those made to xterm.c on
10434 2000-02-25 and 2000-02-24.
10435
10436 * w32fns.c: Equivalent changes to those made to xfns.c on
10437 2000-02-25 and 2000-02-21.
10438
10439 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10440 correct line-end convention is followed.
10441
10442 * w32menu.c [HAVE_BOXES]: Remove #undef.
10443 (single_keymap_panes): Remove code for simulating checkmarks.
10444 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10445 Remove code for drawing simulated checkmarks.
10446 (w32_menu_show): make unibyte help string correctly.
10447 (add_menu_item): draw standard Windows checkmarks. Draw radio
10448 buttons as radio buttons if possible.
10449
72d19d75
GM
104502000-03-01 Gerd Moellmann <gerd@gnu.org>
10451
2df636f4
GM
10452 * sysdep.c (start_of_text): Don't define this function for NetBSD
10453 with ELF.
10454
427ec082 10455 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10456 Don't define.
10457 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10458 (LINKER): Don't undef if __NetBSD__ is defined.
10459
10460 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10461
10462 * fileio.c [__NetBSD__]: Define `unix'.
10463
72d19d75
GM
10464 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10465
ed4d0512
GM
104662000-02-29 Gerd Moellmann <gerd@gnu.org>
10467
50b1039f
GM
10468 * atimer.c (start_atimer): Don't abort when timers are stopped.
10469 (append_atimer_lists): New function.
10470 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10471 arbitrary lists of stopped and running atimers.
10472
ed4d0512
GM
10473 * atimer.c (cancel_atimer): Handle canceling an atimer when
10474 some timers are stopped.
10475
10476 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10477 after canceling it.
10478
10479 * fns.c (maybe_resize_hash_table): Handle case of new size
10480 coming out as being the same as old size.
10481
387023ee
JR
104822000-02-27 Jason Rumney <jasonr@gnu.org>
10483
10484 * makefile.nt: Add atimer.h to dependencies.
10485 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10486 * w32console.c: Only disable window system features for dispextern.h
10487 (initialize_w32_display): Build a display info for the console.
10488 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10489 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10490 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10491 as 2 button mice.
10492 * w32gui.h (struct W32FontStruct): Revert last change after change
10493 to xdisp.c.
10494 * w32menu.c (single_submenu): Set up help string.
10495 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10496 (w32_dialog_show): Set up help string.
10497 * w32term.c (w32_display_info_for_display): Remove unused function.
10498 (w32_draw_bitmap): Use pre-built bitmaps.
10499 (w32_initialize_display_info): New function to initialize parts of
10500 display info that are common to both GUI and console frames.
10501 (w32_term_init): Use w32_initialize_display_info. Do not set
10502 Vw32_num_mouse_buttons here, as it is not called for console
10503 frames. Build bitmaps for indicating truncated lines etc.
10504 (x_delete_display): Destroy pre-built bitmaps.
10505 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10506 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10507
4516715a
DL
105082000-02-27 Dave Love <fx@gnu.org>
10509
10510 * lisp.h: Add a bunch of prototypes.
10511
171ca836
KH
105122000-02-26 Kenichi Handa <handa@etl.go.jp>
10513
10514 * keyboard.c (read_char): Set `usec' correctly.
10515
4013921d
KH
105162000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10517
10518 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10519 `lambda', set reg[RRR] to the map index.
10520 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10521 reg[RRR] to 0. Otherwise, set it to -1.
10522
9244a058
GM
105232000-02-25 Gerd Moellmann <gerd@gnu.org>
10524
2df636f4 10525 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10526
18e21ce8 105272000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10528
f43d79c1
GM
10529 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10530 and contains a `:', prepend `/:'.
10531
10532 * window.c (select_window_1): If selected_window is nil,
10533 don't "swap out" the buffer's point.
10534 (Fset_window_configuration): Set selected_window to nil
10535 before calling Fselect_window.
10536 (unshow_buffer): Don't set point in buffer from window's point
10537 if another more recently selected window also shows the buffer.
10538
bed0c171
GM
105392000-02-25 Gerd Moellmann <gerd@gnu.org>
10540
449c3c52
GM
10541 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10542
f5b58615
GM
10543 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10544 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10545 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10546 New variables.
f5b58615
GM
10547 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10548 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10549 (hide_busy_cursor): New functions.
10550 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10551
10552 * minibuf.c (read_minibuf): Cancel busy-cursor.
10553
10554 * keyboard.c (command_loop_1): Call start_busy_cursor before
10555 Fcommand_execute and cancel_busy_cursor after it.
10556 (timer_check): Remove busy-cursor code.
10557 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10558 cursor timer.
10559
10560 * process.c (wait_reading_process_input): Remove busy-cursor code.
10561
10562 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10563 Fx_hide_busy_cursor.
10564
10565 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10566 Remove prototyoes.
10567 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10568
10569 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10570
10571 * xterm.c (XTread_socket): Remove busy-cursor code.
10572
4eb8436f
GM
10573 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10574 (build_frame_matrix_from_leaf_window): Put code handling
10575 glyph row's not being a slice of a frame row in #if 0.
10576 (sync_window_with_frame_matrix_rows): New function.
10577 (frame_row_to_window): New function.
10578 (mirror_line_dance): Handle copies between windows.
10579
3cb65b0e
GM
10580 * lread.c (Fload): Use `xfree' instead of `free'.
10581 (init_obarray): Use `xmalloc' instead of `malloc'.
10582
bed0c171
GM
10583 * window.c (Fset_window_buffer): Set WINDOW to the window
10584 after decoding.
2add4349
GM
10585 (coordinates_in_window): Take frame's internal border width
10586 into account.
bed0c171 10587
42088c12
GM
105882000-02-24 Gerd Moellmann <gerd@gnu.org>
10589
10590 * xterm.c (x_display_and_set_cursor): Display cursor of
10591 non-selected windows depending on the setting of
10592 cursor_in_non_selected_windows.
10593
10594 * xdisp.c (cursor_in_non_selected_windows): New variable.
10595 (syms_of_xdisp): DEFVAR_BOOL it.
10596
d1e103b2
GM
105972000-02-23 Gerd Moellmann <gerd@gnu.org>
10598
723e779c
GM
10599 * data.c (Fstring_to_number): If number is greater than what
10600 fits into an integer, return a float.
10601
d1e103b2
GM
10602 * eval.c (specbind): Remove references to
10603 keyword_symbols_constant_flag.
10604
10605 * data.c (keyword_symbols_constant_flag): Removed.
10606 (Fmakunbound, set_internal, syms_of_data): Remove references to
10607 keyword_symbols_constant_flag.
10608
10609 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10610
214f877f
KH
106112000-02-23 Kenichi Handa <handa@etl.go.jp>
10612
10613 * syntax.c (multibyte_syntax_as_symbol): New variable.
10614 (syms_of_syntax): Declare it as a Lisp variable.
10615 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10616 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10617 nonzero, treat all multibyte characters as symbol.
52283633 10618 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10619
130adcb7
EZ
106202000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10621
3cb65b0e 10622 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10623 a deleted frame.
130adcb7 10624
17cbbf95
GM
106252000-02-21 Gerd Moellmann <gerd@gnu.org>
10626
10627 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10628
10629 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10630 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10631
beb0bc36
DL
106322000-02-21 Dave Love <fx@gnu.org>
10633
10634 * frame.c (Vmouse_position_function): New variable.
10635 (Fmouse_position): Use it.
10636 (syms_of_frame): Install it.
10637
10638 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10639
1d92afcd
GM
106402000-02-20 Gerd Moellmann <gerd@gnu.org>
10641
10642 * fileio.c (Finsert_file_contents): Unbind the binding of
10643 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10644
10645 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10646 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10647 (specbind, unbind_to): Handle most common case of non-constant
10648 symbol with trivial value specially.
10649
10650 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10651
18e21ce8 106522000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10653
10654 * data.c (Fmake_variable_buffer_local): Doc fix.
10655 Init found_for_buffer to 0.
10656 (Fmake_variable_frame_local): If the variable has already
10657 been buffer-local, set the check_frame field.
10658
1d4311c3
EZ
106592000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10660
10661 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10662 produced for CODING_MODE_LAST_BLOCK requires.
10663
2dc95ddd
DL
106642000-02-18 Dave Love <fx@gnu.org>
10665
10666 * keyboard.c (echo_keystrokes): Remove declaration.
10667 (Vecho_keystrokes) New variable.
10668 (read_char, record_menu_key, read_key_sequence): Use it to allow
10669 use of float value.
10670 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10671
10672 * lread.c: Undef feature selection macros before defining.
10673
f0930f35
GM
106742000-02-18 Gerd Moellmann <gerd@gnu.org>
10675
10676 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10677 for symbols other than the symbol in question.
10678
e3d4de90
DL
106792000-02-17 Dave Love <fx@gnu.org>
10680
10681 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10682
0b378936
GM
106832000-02-17 Gerd Moellmann <gerd@gnu.org>
10684
d621caf7
GM
10685 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10686
0b378936
GM
10687 * alloc.c (enum mem_type): Compile unconditionally.
10688
3b451f74
EZ
106892000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10690
10691 * xfaces.c (tty_defined_color): Don't return faulire indication
10692 for unspecified-fg and unspecified-bg pseudo-colors.
10693
10689a01
GM
106942000-02-17 Gerd Moellmann <gerd@gnu.org>
10695
1216f5e4
GM
10696 * alloc.c (mark_object): Don't mark symbol names in pure space.
10697 (gc_sweep): Don't unmark symbol names in pure space.
10698
10699 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10700 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10701 [GC_MARK_STACK]: New defines.
427ec082 10702 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10703 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10704
10705 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10706
10707 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10708 allocate_buffer instead of xmalloc.
10709
10710 * alloc.c (toplevel): Include setjmp.h.
10711 (PURE_POINTER_P): New define.
10712 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10713 (Vdead) [GC_MARK_STACK]: New variable.
10714 (lisp_malloc): Add parameter TYPE, call mem_insert if
10715 GC_MARK_STACK is defined.
10716 (allocate_buffer): New function.
427ec082 10717 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10718 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10719 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10720 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10721 (MEM_NIL) [GC_MARK_STACK]: New define.
10722 (struct mem_node) [GC_MARK_STACK]: New structure.
10723 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10724 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10725 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10726 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10727 (mark_stack) [GC_MARK_STACK]: New functions.
10728 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10729 (clear_marks): Removed.
10730 (gc_sweep): Set free conses' car, free floats' type, free
10731 symbols' function to Vdead. Use lisp_free to free buffers.
10732 (init_alloc_once): Initialize Vdead.
10733 (survives_gc_p): Return non-zero for pure objects.
10734
10735 * alloc.c: Add comments throughout the file.
10736
2503c8b1
GM
10737 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10738 that unblocks alarms.
10739
8389e1e2
GM
10740 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10741 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10742 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10743
10689a01 10744 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10745
bfc17d18
KH
107462000-02-17 Kenichi Handa <handa@etl.go.jp>
10747
4a09dee0
KH
10748 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10749 avoid infinite error signaling. Allocate sufficient memory for
10750 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10751
2b927d02
SM
107522000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10753
10754 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10755 depends on the previous behavior.
10756
b49cb764
GM
107572000-02-16 Gerd Moellmann <gerd@gnu.org>
10758
10759 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10760
99e95407
GM
107612000-02-15 Gerd Moellmann <gerd@gnu.org>
10762
10763 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10764
10765 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10766 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10767 write(2).
10768
6ffd3cf7
RS
107692000-02-15 Richard M. Stallman <rms@gnu.org>
10770
10771 * data.c (set_internal): Don't make variable buffer-local
10772 if within a let-binding for the same buffer.
10773 (let_shadows_buffer_binding_p): New function.
10774
10775 * eval.c (specbind): For buffer-local value,
10776 record the current buffer also.
10777 (unbind_to): Cope with that change.
10778
cad53475
GM
107792000-02-15 Gerd Moellmann <gerd@gnu.org>
10780
10781 * window.c (Fsave_window_excursion): Doc fix.
10782
1aa963c8
SM
107832000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10784
10785 * syntax.c (back_comment): Make sure we only consider comment-starters
10786 of the relevant style and return -1 in case of a failure to find the
10787 beginning of the comment.
10788 (Fforward_comment): If back_comment fails, go back to the position just
10789 after the comment-end.
10790 (scan_lists): Add comment describing a very minor bug.
10791
b9b84fd3
SM
107922000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10793
10794 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10795 `completion-regexp-list' in the docstring.
10796
3a28db80
DL
107972000-02-14 Dave Love <fx@gnu.org>
10798
10799 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10800
fb4a568d
SM
108012000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10802
10803 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10804 to Emacs' syntax. Also fix the comment about set/not-set meanings
10805 since Emacs syntax is not the value 0 any more.
10806 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10807 since it's now part of RE_SYNTAX_EMACS.
10808
1063ebb5
DL
108092000-02-12 Dave Love <fx@gnu.org>
10810
52283633 10811 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 10812
fb07a302
GM
108132000-02-12 Gerd Moellmann <gerd@gnu.org>
10814
10815 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10816
aaf2320c
DL
108172000-02-12 Dave Love <fx@gnu.org>
10818
10819 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10820
10821 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10822 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10823 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10824
10825 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10826
10827 * s/nextstep.h: Don't define HAVE_ALLOCA.
10828
10829 * config.in: Add vfork bits.
10830
eedf8bde
GM
108312000-02-12 Gerd Moellmann <gerd@gnu.org>
10832
10833 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10834 unwind function to undo the effect of stopping atimers.
10835
52283633 10836 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
10837
10838 * atimer.c (stopped_atimers): New variable.
10839 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10840 New functions.
10841
10842 * atimer.h (stop_other_atimers, run_all_atimers)
10843 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10844
eedf8bde
GM
10845 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10846
8476c2f8
KR
108472000-02-11 Ken Raeburn <raeburn@gnu.org>
10848
10849 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10850 library may depend on jpeg.
10851 (atimer.o): Depends on atimer.c.
10852
0e85e4a3
KH
108532000-02-11 Kenichi Handa <handa@etl.go.jp>
10854
10855 * insdel.c (del_range_1): Call update_compositions.
10856 (del_range_both): Call update_compositions just once..
10857
97fa0cc8
DL
108582000-02-10 Dave Love <fx@gnu.org>
10859
10860 * xfns.c (create_frame_xic): Fix initialization of automatic
10861 aggregates for pcc.
10862
25566a3c
KH
108632000-02-09 Kenichi Handa <handa@etl.go.jp>
10864
10865 * ccl.c (CCL_MAKE_CHAR): New macro.
10866 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10867 registers by CCL_MAKE_CHAR before calling translate_char.
10868 <CCL_TranslateCharacterConstTbl> Likewise.
10869
69da54ba
DL
108702000-02-08 Dave Love <fx@gnu.org>
10871
10872 * lread.c (__EXTENSIONS__): Define.
10873
f7136ee8
GM
108742000-02-08 Gerd Moellmann <gerd@gnu.org>
10875
10876 * puresize.h (BASE_PURESIZE): Increase to 650000.
10877
7768790b
EZ
108782000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10879
10880 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10881 the help message.
10882
38fd211b
EZ
108832000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10884
10885 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10886 md, mh, mb, mr, and me to the fake termcap entry.
10887
66e4690f
KR
108882000-02-06 Ken Raeburn <raeburn@gnu.org>
10889
10890 * sound.c (sound_cleanup): Don't call device close routine if the
10891 function pointer is null.
10892
a75dfea0
AI
108932000-02-06 Andrew Innes <andrewi@gnu.org>
10894
10895 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10896 around image definitions and prototypes.
10897 (gamma_correct) [WINDOWSNT]: New prototype.
10898
10899 * w32term.c (x_make_frame_visible): Replace call to
10900 input_poll_signal with poll_for_input.
10901
10902 * window.c [WINDOWSNT]: Include w32term.h.
10903
10904 * xdisp.c [WINDOWSNT]: Include w32term.h.
10905
10906 * makefile.nt: Add dependencies on w32gui.h.
10907 (OBJ1): Include atimer.obj.
10908 ($(BLD)\atimer.obj): New dependency rule.
10909
10910 * w32.c (sigmask): New function (does nothing).
10911 (sigunblock): Ditto.
10912
10913 * frame.c [WINDOWSNT]: Include w32term.h.
10914
10915 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10916
10917 * lread.c (syms_of_lread): Fix literal newlines.
10918
10919 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10920 the string constant limit (2048 bytes) in MSVC.
10921 (main): Ditto.
10922
59ddecde
GM
109232000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10924
52283633 10925 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
10926 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10927 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10928 dispatch the event.
10929
07590973
DL
109302000-02-04 Dave Love <fx@gnu.org>
10931
10932 * fileio.c: Remove some unused vars.
10933 (_GNU_SOURCE): Define (for euidaccess).
10934
10935 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10936
10937 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10938 gcpro1, gcpro2.
10939 (read_minibuf): Deal with allow_props correctly.
10940
649351f9
EZ
109412000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10942
10943 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10944
66e4690f 109452000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10946
10947 * search.c (compile_pattern): If a cache entry has a nil regexp,
10948 fill in that entry instead of clobbering a previously cached
10949 string regexp.
10950
66e4690f 109512000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10952
10953 * puresize.h (BASE_PURESIZE): Increase to 610000.
10954
d240a249
GM
109552000-02-02 Gerd Moellmann <gerd@gnu.org>
10956
10957 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10958 can GC.
10959
ca91fb26
KH
109602000-02-02 Kenichi Handa <handa@etl.go.jp>
10961
25660570
KH
10962 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10963 instead of incrementing ic directly.
10964 <CCL_WriteExprConst> Likewise.
10965 <ccl_set_expr>: Set ic to jump_address.
10966
ca91fb26
KH
10967 * fileio.c (e_write): Fix the handling of
10968 CODING_FINISH_INSUFFICIENT_SRC.
10969
2ede9689
DL
109702000-02-01 Dave Love <fx@gnu.org>
10971
10972 * editfns.c (Fpropertize): Doc fix.
10973
10974 * process.c (Fstart_process): Doc fix.
10975
10976 * eval.c: Fix various doc strings not to duplicate information
10977 from help-manyarg-func-alist.
10978
52283633 10979 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
10980
10981 * doc.c (Vhelp_manyarg_func_alist): New variable.
10982 (Fdocumentation): Use it.
10983 (syms_of_doc): Define it.
10984
b6680a0e
GM
109852000-01-31 Gerd Moellmann <gerd@gnu.org>
10986
2cb750ba
GM
10987 * xterm.c (xim_open_dpy): Remove unused local variable.
10988
52283633 10989 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
10990
10991 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10992 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10993
b6680a0e
GM
10994 * fns.c (sweep_weak_table): New function.
10995 (sweep_weak_hash_tables): Use it. Keep on marking until there
10996 is no more change.
10997
994c5afe
GM
109982000-01-30 Gerd Moellmann <gerd@gnu.org>
10999
11000 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11001 that XTread_socket does not crash by trying to call XNoOp on a
11002 closed display.
427ec082 11003
f00276e3
JR
110042000-01-30 Jason Rumney <jasonr@gnu.org>
11005
11006 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11007 Change selected_frame to SELECTED_FRAME ().
11008 (w32_console_mouse_position): Remove #ifndef MULE from around
11009 `insist' parameter.
11010
11011 * makefile.nt: Remove dosfns.obj.
11012
11013 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11014
11015 * w32fns.c (w32_defined_color): Check for valid frame before
11016 applying gamma correction. Eliminate dependency on frame elsewhere.
11017 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11018 (w32_to_x_font): Use resx and resy not height_in and width_in.
11019 (x_to_w32_font): Doc fix.
11020 (xlfd_strip_height): New function to strip and return font height.
11021 (w32_font_match): Compare height separately from rest of xlfd
11022 spec, using xlfd_strip_height.
11023
11024 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11025 width_in. Use w32_defined_color in place of defined_color.
11026
11027 * w32faces.c: Merge more of DOS and X specifics in preparation for
11028 merge with xfaces.c.
11029 (defined_color): Remove FIXME comment.
11030 (tty_color_name): Provide w32-specific function.
11031 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11032
11033 * w32console.c (turn_on_face, turn_off_face): Removed.
11034 (w32_face_attributes): New function.
11035 (Global_variables): Reduce scope where possible.
11036 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11037 fill attribute.
11038 (hl_mode): Don't modify text attributes.
11039 (write_glyphs): Don't do anything if len <= 0. Use
11040 w32_face_attributes to get attributes for drawing. Write
11041 terminating codes using char_attr_normal.
11042 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11043 (update_begin, update_end): Likewise.
11044 (vga_stdcolor_name): New function.
11045 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11046 (Fset_screen_color): Remove char_attr_reverse.
11047
b08e8bb2
GM
110482000-01-29 Gerd Moellmann <gerd@gnu.org>
11049
11050 * xfns.c (xic_set_preeditarea): Take window parameter and
11051 window-relative pixel-positions.
11052
11053 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11054 is its frame's selected window.
11055 (xim_instantiate_callback): Likewise.
11056
11057 * xfns.c (x_create_im): Removed.
11058 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11059 (supported_xim_styles): Renamed from supported_styles.
11060 (best_xim_style): Renamed from best_style.
11061 (create_frame_xic): Renamed from xic_create_frame.
11062 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11063
b08e8bb2
GM
110642000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11065
11066 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11067 our frames, call XFilterEvent with 2nd parameter `None'.
11068 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11069 returning XBufferOverflow.
52283633 11070 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11071 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11072 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11073 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11074 (xim_initialize, xim_close)
11075 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11076 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11077 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11078 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11079
11080 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11081 and `xim_styles'.
11082 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11083 `xic_style' and `xic_xfs'.
11084 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11085 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11086 (FRAME_XIM): Removed.
11087
11088 * xfns.c (supported_styles): New variable.
11089 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11090 (xic_create_xfontset, best_style, xic_create_frame)
11091 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11092 (xic_set_xfontset): New functions.
11093
142e109c
DL
110942000-01-28 Dave Love <fx@gnu.org>
11095
11096 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11097
11098 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11099
b02786f9
GM
111002000-01-28 Gerd Moellmann <gerd@gnu.org>
11101
d060bc9f
GM
11102 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11103 for *scratch* if it already existed.
11104
b02786f9
GM
11105 * emacs.c (USAGE): New macro.
11106 (main): Use it to display usage information.
11107
2c52d7e4
EZ
111082000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11109
11110 Support for the menu-help feature:
11111
52283633 11112 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11113
11114 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11115 part of the line to the termscript file.
11116 (IT_clear_to_end): Clear the entire line, not just its beginning.
11117 (menu_help_message, prev_menu_help_message): New variables.
11118 (IT_menu_make_room): Make room for the help_text member.
11119 (IT_menu_display): New argument disp_help; all callers changed.
11120 If disp_help is non-zero, store the help text of the active menu
11121 item in menu_help_message.
11122 (XMenuAddPane): Initialize the help_text member to NULL.
11123 (XMenuAddSelection): New argument help_text. Store it in the
11124 XMenu structure.
11125 (XMenuActivate): New argument help_callback. If the value of
11126 menu_help_message has changed since the last time, display the
11127 menu help message text while waiting for the mouse to move. Clear
11128 the echo area before exiting.
11129 (XMenuDestroy): Free the help_text member.
11130
ffe0bcd1
GM
111312000-01-27 Gerd Moellmann <gerd@gnu.org>
11132
11133 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11134 XMenuAddSelection. Pass help callback to XMenuActivate.
11135 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11136
50dbd23f
EZ
111372000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11138
11139 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11140 and EMACS_SET_USECS.
11141
f5941bf8
GM
111422000-01-26 Dave Love <fx@gnu.org>
11143
6c67ddee
DL
11144 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11145
f5941bf8
GM
11146 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11147 an error may be signalled.
11148
9e49c990
GM
111492000-01-26 Gerd Moellmann <gerd@gnu.org>
11150
fc3cb460
GM
11151 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11152 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11153
9e49c990
GM
11154 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11155
d0c037d8
GM
111562000-01-25 Gerd Moellmann <gerd@gnu.org>
11157
11158 * charset.c (Fstring): If there is a multibyte char among
11159 the args, always return a multibyte string.
11160
e12489f9
GM
111612000-01-25 Gerd Moellmann <gerd@gnu.org>
11162
11163 * sysdep.c (sys_select): Turn atimers off and on instead of
11164 recording and restoring old alarm handler
11165
11166 * process.c (toplevel): Include atimer.h.
11167 (create_process_1): Rewritten.
11168 (create_process): Use atimers instead of alarm.
11169 (wait_reading_process_input) [hpux]: Turn atimers off instead
11170 of turning off SIGALRM.
11171 (wait_reading_process_input): Turn off atimers instead off
11172 calling stop_polling.
11173
11174 * emacs.c (main): Call init_atimer.
11175
11176 * keyboard.c (toplevel): Include systime.h and atimer.h.
11177 (polling_for_input): Removed because unused.
11178 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11179 (poll_timer): New variable.
11180 (poll_for_input, poll_for_input_1): New functions.
11181 (start_polling, stop_polling): Rewritten.
11182
11183 * keyboard.h (polling_for_input): Removed.
427ec082 11184
e12489f9
GM
11185 * atimer.h, atimer.c: New files.
11186
11187 * Makefile.in (obj): Add atimer.o.
11188 (atimer.o): New target.
11189
11190 * blockinput.h (pending_atimers): Add extern declaration.
11191 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11192
11193 * lisp.h (popup_activated_flag): Add extern declaration.
11194
11195 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11196 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11197 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11198
11199 * xterm.c (toplevel): Include atimer.h.
11200 (toolkit_scroll_bar_interaction): New variable.
11201 (Fxt_process_timeouts): Removed.
11202 (x_process_timeouts): New function.
11203 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11204 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11205 (x_make_frame_visible): Call poll_for_input_1 instead of
11206 input_poll_signal. Don't call alarm.
11207 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11208
1e5279b9
DL
112092000-01-24 Dave Love <fx@gnu.org>
11210
6c67ddee 11211 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11212 Don't use -cckr -- apparently not now necessary.
11213
edf6aeb8
EZ
112142000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11215
11216 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11217 screen boundary.
11218
9badad41
JR
112192000-01-23 Jason Rumney <jasonr@gnu.org>
11220
11221 * w32fns.c (w32_defined_color): Apply gamma correction before
11222 trying to map to the palette.
11223 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11224 to w32_clear_rect.
11225
11226 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11227 here. Callers changed to always pass real device context.
11228 (w32_draw_bitmap): Likewise.
11229 (w32_get_glyph_overhangs): Likewise.
52283633 11230 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11231 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11232 pfnSetScrollInfo and SetScrollRange.
11233 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11234 back into MULE characters after decoding them.
11235 (x_get_glyph_face_and_encoding): Likewise.
11236 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11237 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11238 (x_produce_glyphs): Calculate per char metrics for a character
11239 that we know exists in default font when font_not_found_p is true.
11240
63bd786b
JR
112412000-01-22 Jason Rumney <jasonr@gnu.org>
11242
11243 * makefile.nt (intervals.obj, composite.obj): New modules.
11244 (composite.h): Added as dependency where appropriate.
11245
11246 * w32gui.h (XGCValue): New struct for emulating X GCs.
11247
11248 * w32term.h (XCharStruct): New struct for emulating X.
11249
11250 * w32console.c (turn_on_face, turn_off_face): New functions.
11251 (change_line_highlight): New prototype for new redisplay.
11252 (write_glyphs): Support multibyte text. Support faces.
11253
52283633 11254 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11255
11256 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11257 throughout. struct frame * in place of FRAME_PTR.
11258 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11259 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11260 (w32_get_arg): Renamed from x_get_arg.
11261 (Fx_file_dialog): New function.
11262 (w32_list_fonts): Check cache before asking system.
11263 (Vw32_enable_synthesized_fonts): New variable.
11264 (Vw32_enable_italics): Obsolete, removed.
11265
11266 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11267 Use SELECTED_FRAME macro.
11268
11269 * w32menu.c: Add skeleton support for help strings on menus.
11270 (add_menu_item): Native checkbox and radio support added, but not
11271 yet enabled due to bugs.
11272 (push_menu_item): Add parameters type, selection and help.
11273 Callers updated.
11274 Formatting changes to reduce unnecessary diffs with xmenu.c.
11275
11276 * w32select.c (Fw32_set_clipboard_data): Update call to
11277 find_charset_in_str.
11278
11279 * w32term.c: Complete rewrite for new redisplay based on new
11280 xterm.c with necessary sections merged back in from old w32term.c.
11281
6ffd3cf7 112822000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11283
11284 * data.c (set_internal): Further fix in same criterion.
11285
6ffd3cf7 112862000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11287
11288 * data.c (set_internal): Fix the criteria for whether
11289 to swap out the old cached binding.
11290
60af03f1
DL
112912000-01-19 Dave Love <fx@gnu.org>
11292
11293 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11294
f9be074f
KH
112952000-01-18 Kenichi Handa <handa@etl.go.jp>
11296
11297 * regex.c (re_compile_fastmap): While checking a range table for
11298 `charset', skip flag bits for a character class correctly.
11299
52b8dbf9
GM
113002000-01-17 Gerd Moellmann <gerd@gnu.org>
11301
d36100c9
GM
11302 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11303
52283633 11304 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11305
11306 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11307 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11308
11309 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11310 MENU_ITEMS_ITEM_.*.
11311 (MENU_ITEMS_ITEM_HELP): New enumerator.
11312 (push_menu_item): Add parameter HELP. Record help in menu_items.
11313 (single_menu_item, single_submenu, list_of_items): Call
11314 push_menu_item with new parameter.
11315 (single_submenu): Set help string in widget value.
11316 (menu_highlight_callback): New function.
11317 (set_frame_menubar): Call lw_create_widget with new
11318 parameter list.
11319 (xmenu_show, xdialog_show): Ditto.
11320
3139018f
GM
113212000-01-13 Gerd Moellmann <gerd@gnu.org>
11322
11323 * sound.c (Fplay_sound): Improve doc string.
11324
83c8f461
RS
113252000-01-11 Richard M. Stallman <rms@gnu.org>
11326
11327 * lisp.h (set_internal): Enter the new arg.
11328
11329 * eval.c (specbind): Record buffer-local variables specially,
11330 indicating which buffer's binding was saved.
11331 (unbind_to): Restore buffer-local variables specially
11332 in the proper buffer.
11333
11334 * data.c (set_internal): New arg BUF.
427ec082 11335
83c8f461
RS
11336 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11337 * data.c (Fset): Pass new arg to set_internal.
11338 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11339
1fab1775
GM
113402000-01-11 Gerd Moellmann <gerd@gnu.org>
11341
52283633 11342 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11343
83c8f461 113442000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11345
11346 * minibuf.c (Ftry_completion): Doc fix.
11347
7a85e4df
GM
113482000-01-11 Gerd Moellmann <gerd@gnu.org>
11349
11350 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11351 vector, too.
11352
a970dae4
AS
113532000-01-11 Andreas Schwab <schwab@suse.de>
11354
11355 * coding.c (code_convert_region): Initialize total_skip.
11356
c65d14ee
DL
113572000-01-08 Dave Love <fx@gnu.org>
11358
11359 * eval.c (Fuser_variable_p): Check customizability too.
11360
834938d2
GM
113612000-01-07 Gerd Moellmann <gerd@gnu.org>
11362
11363 * minibuf.c (Fcompleting_read): Doc fix.
11364
e0303cd6
GM
113652000-01-05 Gerd Moellmann <gerd@gnu.org>
11366
8a26744b
GM
11367 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11368 -L /usr/local/lib.
11369
e0303cd6
GM
11370 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11371 Check that input style is supported before trying to create an
11372 IC for it.
11373 (x_window): Call x_create_im.
427ec082 11374
2e471eb5
GM
113752000-01-04 Gerd Moellmann <gerd@gnu.org>
11376
560a7bd2
GM
11377 * xfns.c (current_gif_memory_src): New variable.
11378 (gif_load): Record the address of the current memory source
11379 in current_gif_memory_src.
11380 (gif_read_from_memory): Use current_gif_memory_src.
11381
f9ee84a3
GM
11382 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11383 macros statement form.
11384
d1299cde
GM
11385 * sound.c (struct sound): Renamed from struct sound_file.
11386 (struct sound): Add members `data' and `header_size'.
11387 (enum sound_attr): Add SOUND_DATA.
11388 (current_sound, current_sound_device): Variables renamed from
11389 sound_file and sound_device.
11390 (parse_sound): Parse :data.
11391 (parse_sound): Handle sound data in strings.
11392 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11393 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11394 needed header size.
11395 (wav_play, au_play): Play sounds from string data.
11396
2e471eb5
GM
11397 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11398
11399 * lisp.h: Add prototype for allocate_string_data.
11400
52283633 11401 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11402
11403 * alloc.c (mark_buffer): Remove code in #if 0.
11404 (gc_sweep): Ditto.
11405 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11406 (strings_consed): New variable.
11407 (allocate_string): Set it.
11408 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11409 (Fmemory_use_counts): Return strings_consed. Use Flist.
11410
11411 * alloc.c: General cleanup in comments etc. Remove conditional
11412 compilation for `standalone'.
11413
11414 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11415
11416 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11417 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11418 (DONT_COPY_FLAG): Removed.
11419 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11420 (struct sdata, struct sblock): New
11421 (struct string_block): Rewritten.
11422 (STRINGS_IN_STRING_BLOCK): New macro.
11423 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11424 (large_sblocks, string_blocks, string_free_list): New variables.
11425 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11426 (init_strings): Rewritten.
11427 (allocate_string, allocate_string_data, compact_small_strings)
11428 (free_large_strings, sweep_strings): New functions.
11429 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11430 (struct string_block_head, current_string_block)
11431 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11432 (STRING_PAD): Removed.
11433 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11434 (Fgarbage_collect): Don't set mark bit in large strings.
11435 (mark_object): Mark strings differently. Mark symbol names
11436 differently.
11437 (survives_gc_p): Test marked strings differently.
427ec082 11438 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11439 symbol names.
11440 (compact_strings): Removed.
11441
42608ba8
EZ
114422000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11443
11444 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11445 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11446
e0a09e1a
KH
114472000-01-04 Kenichi Handa <handa@etl.go.jp>
11448
dd9f0750 11449 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11450 in a non-empty buffer.
dd9f0750 11451
3c0f3b15 11452 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11453
44cd3ae5
GM
114542000-01-03 Gerd Moellmann <gerd@gnu.org>
11455
11456 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11457 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11458
11459 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11460
c182a70f
EZ
114612000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11462
11463 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11464 need to test for MSDOS frames.
11465
24480d5b
EZ
114662000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11467
11468 * dosfns.c (unspecified_colors): Remove.
11469 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11470 unspecified_bg.
11471 (msdos_stdcolor_name): Return strings for unspecified fore- and
11472 back-ground colors.
11473
11474 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11475 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11476 (tty_color_name): Return Lisp strings for unspecified fore- and
11477 back-ground colors.
11478 (Finternal_set_lisp_face_attribute): Remove the special treatment
11479 for Qunspecified_{f,b}g.
52283633 11480 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11481
047f434a
GM
114822000-01-03 Gerd Moellmann <gerd@gnu.org>
11483
11484 * xdisp.c (reseat_at_next_visible_line_start): Position before
11485 newline only if ending up on a newline.
11486 (next_element_from_ellipsis): Return success. Handle case of
52283633 11487 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11488 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11489 returns 0.
11490
d684c676
EZ
114912000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11492
11493 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11494 (Fcolor_supported_p): Renamed from face-color-supported-p.
11495
5fe1d139
EZ
114962000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11497
11498 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11499 list of colors renamed to tty-defined-color-alist.
11500 (tty_color_name): Pass the frame to tty-color-by-index.
11501 (realize_tty_face): tty-color-alist is now a function which
11502 accepts the frame as argument.
11503
52283633 11504 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11505
816be8b8
EZ
115062000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11507
11508 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11509 encode_terminal_code.
11510
b635321e
EZ
115112000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11512
11513 * dispnew.c (mode_line_string): Support termcap frames as well.
11514
9b784e96
GM
115152000-01-01 Gerd Moellmann <gerd@gnu.org>
11516
27189709
GM
11517 * syntax.c (Fforward_word): Undo previous change.
11518
11519 * editfns.c (Fconstrain_to_field): Don't constrain if
11520 inhibit-field-text-motion is non-nil.
11521 (Fline_beginning_position): Undo previous change.
11522 (Fline_end_position): Ditto.
11523
11524 * syntax.c (Fforward_word): Notice field boundaries only if
11525 inhibit-field-text-motion is nil.
11526
11527 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11528
11529 * editfns.c (Vinhibit_field_text_motion): New variable.
11530 (inhibit-field-text-motion): New DEFVAR_LISP.
11531 (Fline_beginning_position, Fline_end_position): Notice field
11532 boundaries only if inhibit-field-text-motion is nil.
11533
45158a91
GM
11534 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11535 All calls adjusted.
11536 (x_build_heuristic_mask): Likewise.
11537 (xbm_load_image_from_file): Change error output.
11538 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11539 (gif_load, gs_load, x_kill_gs_process): Ditto.
11540
9b784e96
GM
11541 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11542 color indices when accessing raster pixels.
63cec32f
GM
11543 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11544 one of :file or :data.
11545 (enum pbm_keyword_index): Add PBM_DATA.
11546 (pbm_format): Add :data.
11547 (pbm_image_p): Allow either :file or :data.
11548 (pbm_read_file): New function.
11549 (pbm_scan_number): Rewritten to read from string.
11550 (pbm_load): Support :data.
9b784e96 11551
2cb085db 11552See ChangeLog.8 for earlier changes.
6922b018
KH
11553
11554;; Local Variables:
49b3bd82 11555;; coding: iso-2022-7bit
6922b018 11556;; End: