Added note about display refresh while dialogs and pop-up menus are
[bpt/emacs.git] / src / ChangeLog
CommitLineData
111ed14e
SM
12001-11-26 Stefan Monnier <monnier@cs.yale.edu>
2
3 * keymap.c (access_keymap): Handle t bindings like nil bindings.
4 Make nil bindings in char-tables transparent.
5 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
6
2fa0eedf
RS
72001-11-26 Richard M. Stallman <rms@gnu.org>
8
d1420435
RS
9 * textprop.c (set_text_properties_1): Allow START, END in either order.
10 Do nothing if range is empty.
11
2fa0eedf
RS
12 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
13
ebcbef4e
RS
14 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15 (clean): Not here.
16
5c131048
SM
172001-11-25 Stefan Monnier <monnier@cs.yale.edu>
18
19 * textprop.c (set_text_properties_1): Clearly mark that the
20 interval should not be empty.
21
22 * intervals.c (graft_intervals_into_buffer):
23 Don't call set_text_properties_1 on an empty interval.
24
96d276c3
RS
252001-11-25 Richard M. Stallman <rms@gnu.org>
26
6108b49c
RS
27 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
28
96d276c3
RS
29 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
30 don't lose the data in it.
31
5eea19a4
RS
322001-11-25 Juanma Barranquero <lektu@terra.es>
33
34 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
35
36 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
37
38 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
39
438e57dd
SM
402001-11-25 Stefan Monnier <monnier@cs.yale.edu>
41
42 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
43
c88e5347
EZ
442001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
45
46 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
47 Niemitalo <kon@iki.fi>.
48
59ce1461
JR
492001-11-25 Jason Rumney <jasonr@gnu.org>
50
51 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
52
53 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
54 (Fx_show_tip): Block input during frame creation.
55 (Fx_show_tip, Fx_hide_tip): Enable.
56
8727d588
RS
572001-11-24 Richard M. Stallman <rms@gnu.org>
58
59 * lread.c (Fload): Detect recursive load error for more than 3
60 nestings of the same file.
61 (Vrecursive_load_depth_limit): Variable deleted.
62 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
63
cc63037e
JR
642001-11-24 Jason Rumney <jasonr@gnu.org>
65
66 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
67 mouse position if either left or top is not specified.
68
69 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
70 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
71 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
72 (my_create_tip_window): Assign tip_window.
73 (x_create_tip_frame): Use same defaults as X.
74 (compute_tip_xy): Remove unused variable. Use full screen width.
75 (Fx_show_tip): Do not double height. Call ShowWindow directly.
76
77 * w32term.c (x_after_update_window_line): Doc fix.
78 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
79 frames.
80 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
81
82 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
83 for all Windowed systems.
84
deece6f5
EZ
852001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
86
87 * msdos.c (IT_clear_screen): If the frame's faces are not yet
88 realized, use the initial screen colors to clear the screen.
89
1b944d9c
PJ
902001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
91
28ff4293
PJ
92 * textprop.c (Fset_text_properties): Remove unused variables
93 `unchanged', `prev_changed', `s' and `len'.
94
56167cc5
PJ
95 * search.c (Freplace_match): Remove unused variable `inslen'.
96
1b944d9c
PJ
97 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
98
ca56d953
JR
992001-11-22 Jason Rumney <jasonr@gnu.org>
100
101 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
102 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
103 (my_create_tip_window): New function.
104 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
105 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
106
33399dce
JR
1072001-11-20 Jason Rumney <jasonr@gnu.org>
108
109 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
110 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
111
112 * w32fns.c (Vw32_system_coding_system): Remove.
113 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
114
9b46de40
SM
1152001-11-19 Stefan Monnier <monnier@cs.yale.edu>
116
6710ea06
SM
117 * fileio.c (Fwrite_region): Move choose_write_coding_system to
118 after build_annotations.
119
a395ef6a
SM
120 * syntax.c (describe_syntax): Add dummy arg.
121 (describe_syntax_1): Update call to describe_vector.
122
123 * category.c (describe_category): Add dummy arg.
124 (describe_category_1): Update call to describe_vector.
125
126 * keymap.c (Fdescribe_vector): Add `describer' parameter.
127 (describe_command, describe_translation): Add dummy second param.
128 (describe_map): Call elt_describer with two arguments.
129 (describe_vector_princ): Add `fun' parameter.
130 Call it instead of the hardcoded `princ'.
131 (describe_vector): Add arg `args'.
132 Pass it as a new second argument to elt_describer.
133
134 * keymap.h (describe_vector): Update prototype.
135
9b46de40
SM
136 * frame.c: Don't include keymap.h any more.
137 (keys_of_frame): Remove.
138
139 * lisp.h (keys_of_frame): Remove declaration.
140
141 * emacs.c (main): Don't call `keys_of_frame' any more.
142
aff37336
SS
1432001-11-14 Andreas Schwab <schwab@suse.de>
144
145 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
146 if defined, 0 otherwise.
9b46de40 147 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
148 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
149
b9937f07
RS
1502001-11-19 Richard M. Stallman <rms@gnu.org>
151
152 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
153
2cd23960
JR
1542001-11-18 Jason Rumney <jasonr@gnu.org>
155
156 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
157 (x_draw_bar_cursor): If the background color of the glyph under
158 the cursor equals the frame's cursor color, use the glyph's
159 foreground color for drawing the bar cursor.
160 (x_after_update_window_line): Clear internal border in different
161 circumstances.
162 (w32_set_vertical_scroll_bar): Check for width and height > 0.
163 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
164 (x_set_glyph_string_background_width):
165 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
166 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
167 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
168 if cursor_in_non_selected_windows is false.
9b46de40 169 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
170 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
171 Notice if cursor gets overwritten.
172 (notice_overwritten_cursor): Renamed from
173 note_overwritten_text_cursor. Rewritten to take glyph widths
174 into account, and to take X positions as parameters.
175 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
176 around call to x_draw_glyphs.
177 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
178 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
179 color to use for image glyph reliefs.
180 (x_draw_image_relief): Accept zero tool_bar_button_relief.
181 (glyph_rect): Remove unused variable `area'.
182
183 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
184 some items.
185 (x_set_internal_border_width): Set frame garbaged when window
186 doesn't exist yet.
187 (Fx_create_frame): Accept zero tool_bar_button_relief.
188 (x_clear_image_1, four_corners_best, image_background)
189 (image_background_transparent): New functions.
190 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
191 (gs_format): Add `:background' entry.
192 (lookup_image): Set IMG's background color if specified.
193 (pbm_load, xbm_load_image, png_load): Set IMG's background field
194 when appropriate.
195 (x_clear_image_1): Reset `background_valid' and
196 `background_transparent_valid' fields.
197 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
198 calculating it here. Set IMG's background_transparent field.
199 (enum xpm_keyword_index): Add XPM_BACKGROUND.
200 (enum png_keyword_index): Add PNG_BACKGROUND.
201 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
202 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
203 (enum gif_keyword_index): Add GIF_BACKGROUND.
204 (enum gs_keyword_index): Add GS_BACKGROUND.
205 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
206 Pre-calculate image background color where necessary.
9b46de40
SM
207 (x_create_x_image_and_pixmap, xbm_load, gs_load):
208 Use display info's n_cbits entry for screen depth.
2cd23960
JR
209 (Fx_show_tip): Remove unused variables `buffer', `top',
210 `left', `max_width' and `max_height'.
211
212 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
213
a4184c1c
GM
2142001-11-18 Gerd Moellmann <gerd@gnu.org>
215
216 * puresize.h (BASE_PURESIZE): Increase to 750000.
217
f6fa0866
PJ
2182001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
219
220 * frame.c (Fframe_live_p): Doc fix.
221
f4ca4b00
RS
2222001-11-18 Richard M. Stallman <rms@gnu.org>
223
224 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
225 (message_dolog_marker3): New static variables hold three markers.
226 (syms_of_xdisp): Initialize and staticpro them.
227 (message_dolog): Use message_dolog_marker1..3 instead of
228 allocating markers each time. Unchain them when done.
229
f4e25f94
RS
2302001-11-17 Richard M. Stallman <rms@gnu.org>
231
232 * doc.c (Fsnarf_documentation): Doc fix.
233
91c153e2
AS
2342001-11-17 Andreas Schwab <schwab@suse.de>
235
236 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
237
65b7d3e7
RS
2382001-11-17 Richard M. Stallman <rms@gnu.org>
239
240 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
241
6b5f6311
JR
2422001-11-17 Jason Rumney <jasonr@gnu.org>
243
244 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
245
be676094
GM
2462001-11-17 Gerd Moellmann <gerd@gnu.org>
247
248 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
249 with invalid position.
250
032a857d
RS
2512001-11-16 Richard M. Stallman <rms@gnu.org>
252
253 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
254
255 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
256 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
257 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
258
259 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
260
b6270150
SM
2612001-11-16 Stefan Monnier <monnier@cs.yale.edu>
262
263 * fileio.c (build_annotations): Split off the tail.
264 (build_annotations_2): New fun. Extracted from build_annotations.
265 (Fwrite_region): Split the call to build_annotations into two
266 calls to build_annotations and build_annotations_2.
267
792e5cbd
PJ
2682001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
269
98cbb9fa
PJ
270 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
271 clear_waiting_for_input with argument.
272
273 * xterm.h (x_update_cursor): Remove duplicated prototype.
274
b6270150 275 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 276
ea904403 277 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 278
ea904403 279 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 280
fa336b91
SM
2812001-11-16 Stefan Monnier <monnier@cs.yale.edu>
282
283 * fileio.c (choose_write_coding_system): New fun, extracted
284 from Fwrite_region.
285 (Fwrite_region): Use it.
286
287 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
288 (funcall_lambda, run_hook_with_args): Make static and add prototype.
289 (ml_apply, find_handler_clause): Add prototype.
290
077907d4
EZ
2912001-11-16 Eli Zaretskii <eliz@gnu.org>
292
aa2af83a
EZ
293 * config.in: Add #undef HAVE_COFF_H.
294
077907d4
EZ
295 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
296 Required for ISC 4.1.
297
1756e2fb
EZ
2982001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
299
300 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
301 Andrew Wiseman <a.wiseman@btclick.com>.
302
06e8f738
KS
3032001-11-16 Kim F. Storm <storm@cua.dk>
304
305 The following changes are made to clean up the various internal
306 references to the fringes to actually use the term `fringe' for
307 them. Previously, they were called `flags areas', `bitmap areas',
308 `left/right side of windows', or implicitly as `flags' or
309 `bitmaps':
310
311 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
312 Comments fixed. Use renamed symbols.
fa336b91 313
06e8f738 314 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 315
06e8f738
KS
316 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
317 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
318 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 319
06e8f738 320 * msdos.c: Comment fix.
fa336b91 321
06e8f738 322 * w32fns.c: Use renamed symbols.
fa336b91 323
06e8f738
KS
324 * w32term.c: Comment fixes. Use renamed symbols.
325 (fringe_bitmap_type): Renamed from bitmap_type.
326 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
327 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
328 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 329
06e8f738
KS
330 * w32term.h: Comment fixes. Use renamed symbols.
331 (fringes_extra): Renamed from flags_areas_extra.
332 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
333 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
334 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
335 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
336 (FRAME_X_LEFT_FRINGE_WIDTH):
337 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
338 (FRAME_X_RIGHT_FRINGE_WIDTH):
339 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
340
06e8f738 341 * widget.c: Use renamed symbols.
fa336b91 342
06e8f738
KS
343 * window.c: Comment fixes. Use renamed symbols.
344 (coordinates-in-window-p): Doc fix.
fa336b91 345
06e8f738 346 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 347
06e8f738 348 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 349
06e8f738 350 * xfns.c: Use renamed symbols.
fa336b91 351
06e8f738
KS
352 * xterm.c: Comment fixes. Use renamed symbols.
353 (fringe_bitmap_type): Renamed from bitmap_type.
354 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
355 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
356 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
357
358 * xterm.h: Comment fixes. Use renamed symbols.
359 (fringes_extra): Renamed from flags_areas_extra.
360 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
361 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
362 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
363 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
364 (FRAME_X_LEFT_FRINGE_WIDTH):
365 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
366 (FRAME_X_RIGHT_FRINGE_WIDTH):
367 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 368
9ce647f4
JR
3692001-11-15 Jason Rumney <jasonr@gnu.org>
370
371 * w32menu.c (add-menu-item): Make help_echo and radio buttons
372 work for most menu items. From David Ponce
373 <david.ponce@wanadoo.fr>.
374
9b784ab8
GM
3752001-11-15 Gerd Moellmann <gerd@gnu.org>
376
9f7e52b4
GM
377 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
378 Some x_set_* function expect to be called even if old and new
379 value are equal.
380
381 * xdisp.c (build_desired_tool_bar_string): Accept zero
382 tool_bar_button_relief.
383
384 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
385
386 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 387
34e5d0af
GM
388 * xterm.c (x_draw_bar_cursor): If the background color of the
389 glyph under the cursor equals the frame's cursor color, use
390 the glyph's foreground color for drawing the bar cursor.
391
9b784ab8
GM
392 * dispnew.c (direct_output_forward_char): Fix character/byte
393 position comparison.
394
89512fcd
MB
3952001-11-15 Miles Bader <miles@gnu.org>
396
397 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
398 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
399 Update arguments to find_field.
400 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
401 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
402 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
403 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
404
7d18891d
RS
4052001-11-14 Richard M. Stallman <rms@gnu.org>
406
d2936d21
RS
407 * editfns.c (Fpropertize): Allow call with 1 arg.
408
7d18891d
RS
409 * dispextern.h (image_background, image_background_transparent):
410 Conditionalize on HAVE_X_WINDOWS.
411
4122001-11-13 Richard M. Stallman <rms@gnu.org>
413
414 * print.c (Fprin1_to_string): Doc fix.
415
416 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
417
418 * floatfns.c (Fceiling, Ffloor): Doc fixes.
419
420 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
421
422 * fileio.c (Ffile_accessible_directory_p): Doc fix.
423
424 * eval.c (syms_of_eval): Doc fix.
425
426 * coding.c (syms_of_coding): Doc fix.
427
428 * doc.c (Fsnarf_documentation): Doc fix.
429
430 * dispnew.c (syms_of_display): Doc fix.
431
432 * category.c (Fget_unused_category): Doc fix.
433
434 * buffer.c (syms_of_buffer): Doc fixes.
435
9474c847
EZ
4362001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
437
438 * print.c (prin1, print): Doc fix.
439
e3059a5d
PJ
4402001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
441
2b6f3c2b 442 * fontset.h: Remove declarations of variables
e3059a5d
PJ
443 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
444
445 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
446 `Vclip_large_size_font'.
447
b3700ae7
JR
4482001-11-13 Jason Rumney <jasonr@gnu.org>
449
450 * w32fns.c: Doc fix.
451
eae936e2
PJ
4522001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
453
4bb962be
PJ
454 * xfaces.c (Fface_attributes_as_vector): Doc fix.
455
0a332240
PJ
456 * w32fns.c (Fx_synchronize): Reindent.
457
ddb67bdc
PJ
458 * fns.c: Doc fix.
459
3467c402
PJ
460 * emacs.c: Doc fix.
461
462 * coding.c: Doc fix.
463
6e1b91d7
PJ
464 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
465 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
466 `new style' [w/`doc:' keyword].
467
f6e34773
PJ
468 * xmenu.c (x-popup-menu): Reindent.
469 (x-popup-dialog): Likewise.
470
fa336b91 471 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 472
c2552f79
PJ
473 * xdisp.c (Fdump_tool_bar_row): Reindent.
474
94c7167b
PJ
475 * minibuf.c (Fminibuffer_complete_word): Reindent.
476 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 477 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
478 (Fminibuffer_message): Likewise.
479
462a5e3a
PJ
480 * fns.c (Freverse): Reindent.
481
b8de5714
PJ
482 * eval.c (Fif): Reindent.
483 (Fand): Likewise.
484
deb8e082
PJ
485 * editfns.c (Fuser_real_login_name): Reindent.
486 (Finsert_buffer_substring): Likewise.
487 (Fcompare_buffer_substrings): Likewise.
488 (Fsubst_char_in_region): Likewise.
489
bacf09b4
PJ
490 * dispnew.c (Fsit_for): Reindent.
491 (Fframe_or_buffer_changed_p): Likewise.
492 (Finternal_show_cursor_p): Likewise.
493 (syms_of_display): Likewise.
494
eae936e2
PJ
495 * alloc.c (Flist): Reindent.
496 (Fvector): Likewise.
497
1c1d3d69
RS
4982001-11-12 Richard M. Stallman <rms@gnu.org>
499
500 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
501 LeaveNotify events. Only FocusIn and FocusOut do that now.
502 (x_display_and_set_cursor): Do display hollow cursors in active
503 minibuffer windows when they are not selected.
504
b6f4c7ba
JR
5052001-11-12 Jason Rumney <jasonr@gnu.org>
506
507 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
508 * w32term.c: Change doc-string comments to `new style'.
509 [w/`doc:' keyword]. Doc fixes.
510
511 * w32fns.c: Don't define max.
512 (Fx_open_connection): Only execute once.
513
a89f435d
PJ
5142001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
515
516 * ccl.c: Change macros to use do-while block instead of if-else.
517 Use braces to follow GNU Coding Standards.
518
a4cd0cd7
RS
5192001-11-11 Richard M. Stallman <rms@gnu.org>
520
eafb659a
RS
521 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
522
523 * lread.c (read_escape): Use end_of_file_error for reporting eof.
524
a4cd0cd7
RS
525 * insdel.c (replace_range): Use adjust_markers_for_replace
526 instead of adjust_markers_for_delete and adjust_markers_for_insert.
527
528 * intervals.h: Declare set_text_properties and set_text_properties_1.
529
530 * textprop.c (set_text_properties_1): New subroutine
531 broken out of set_text_properties.
532 (set_text_properties): Use set_text_properties_1.
533
534 * intervals.c (graft_intervals_into_buffer):
535 Use set_text_properties_1 to clear out properties.
536
537 * search.c (Freplace_match): Use replace_range to insert
538 and delete. Don't request property inheritance from
539 surrounding text.
540
91823618
JR
5412001-11-10 Jason Rumney <jasonr@gnu.org>
542
543 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
544 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 545 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 546
86928dfb
GM
5472001-11-10 Gerd Moellmann <gerd@gnu.org>
548
fa336b91 549 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
550 instead of malloc/free.
551
40ef1eda
PJ
5522001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
553
ab8469eb
PJ
554 * xfaces.c (merge_face_vectors): Use braces to follow GNU
555 Coding Standards.
556 (Finternal_set_lisp_face_attribute): Likewise.
557
a78e0303
PJ
558 * buffer.c (Fbury_buffer): Likewise.
559
40ef1eda
PJ
560 * indent.c (current_column_1): Remove unused variable `prev_col'.
561
fabf4a91
PJ
562 * coding.c (encode_coding): Use precomputed value of `src'.
563 (encode_coding): Remove unused variable `src_end'.
564 (code_convert_region): Remove unused variables `count'.
565
0c99b139
JR
5662001-11-07 Jason Rumney <jasonr@gnu.org>
567
568 * w32term.c (x_display_and_set_cursor): Do not move system caret
569 if cursor_glyph is NULL.
570
830ddd77
PJ
5712001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
572
573 * keymap.c (access_keymap): Fix compilation error.
574
55c6d645
MB
5752001-11-07 Miles Bader <miles@gnu.org>
576
577 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
578
5de38842
PJ
5792001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
580
7a4564a4
PJ
581 * intervals.c (graft_intervals_into_buffer):
582 Remove #ifdef'd-out code.
583 (graft_intervals_into_buffer): Remove unused variable `middle'.
584
5de38842
PJ
585 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
586 code (eval-current-buffer).
587 Change doc-string comments to `new style' [w/`doc:' keyword].
588
4fa23df5
RS
5892001-11-06 Richard M. Stallman <rms@gnu.org>
590
591 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
592
7a6a97d7
SM
5932001-11-06 Stefan Monnier <monnier@cs.yale.edu>
594
c191d13c
SM
595 * lread.c (read1): Fix behavior with nested backquoting.
596
7a6a97d7
SM
597 * keyboard.c (make_lispy_event): Check integerness and fix
598 Lisp_Object/int mixup.
599
44dc78e0
PJ
6002001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
601
602 * fns.c (copy_hash_table): Remove unused variable `v'.
603
17893c65
PJ
604 * fontset.c (fontset_font_pattern): Remove unused variable
605 `family_registry'.
606
4d994a79
PJ
607 * indent.c (current_column_1): Remove unused variable `prev_col'.
608
d5360cc7
RS
6092001-11-05 Richard M. Stallman <rms@gnu.org>
610
611 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
612
613 * buffer.c (Fkill_buffer): Don't delete auto save file
614 if buffer is modified.
615
96238a5a
AI
6162001-11-05 Andrew Innes <andrewi@gnu.org>
617
618 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
619 CHECK_NUMBER_CDR.
620
d9d54213
RS
6212001-11-05 Richard M. Stallman <rms@gnu.org>
622
623 * unexelf.c (unexec): Minor changes; clean up comments.
624
b116830b
SS
6252001-11-05 Sam Steingold <sds@gnu.org>
626
627 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
628
3297e2a1
AS
6292001-11-05 Andreas Schwab <schwab@suse.de>
630
631 * sound.c (sound_perror): Save errno from being clobbered.
632
9212319f 6332001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
634
635 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
636 the program image directly.
637
7dd73b78
PJ
6382001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
639
640 * buffer.h (Fbuffer_local_value): Add prototype.
641
982f6c7e
RS
6422001-11-04 Richard M. Stallman <rms@gnu.org>
643
d31053f9
RS
644 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
645 and CHECK_BUFFER.
646
647 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
648 (record_char): Likewise.
649
650 * keyboard.c (make_lispy_event): Don't insist a drag event must
651 move to a different buffer position. Instead, check for moving at
652 least double_click_fuzz.
653
654 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
655
656 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
657
982f6c7e
RS
658 * indent.c (current_column_1, Fmove_to_column): Separate the code
659 for display-table glyphs from the code buffer text, to fix
660 bugs in the former.
661
830047fd
RS
6622001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
663
664 * buffer.c (Fbuffer_local_value): New function.
c191d13c 665 (syms_of_buffer): Defsubr it.
b116830b 666
830047fd
RS
667 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
668 value of `cursor-in-non-selected-windows'.
669
670 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
671 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
672 (syms_of_xdisp): Initialize it.
b116830b 673
2df5238c
PJ
6742001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
675
4e397688
PJ
676 * xfns.c (Fx_create_frame): Doc fix.
677
48b0f3ae
PJ
678 * coding.c: Change doc-string comments to `new style' [w/`doc:'
679 keyword].
680
2df5238c
PJ
681 * eval.c (top_level_value, top_level_set): Remove commented and
682 #ifdef'd-out code.
683 (Fdefvar): Fix usage in doc-string.
684
3ecaf7e5
RS
6852001-11-03 Richard M. Stallman <rms@gnu.org>
686
687 * xfns.c: Include unistd.h, if it exists.
688
689 * editfns.c: Move the include of ctype.h after unistd.h.
690
691 * gmalloc.c: Test BROKEN_PROTOTYPES.
692
8db2e33b
KR
6932001-11-03 Ken Raeburn <raeburn@gnu.org>
694
695 * lisp.h (CHECK_STRING_CAR): New macro.
696 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
697 treating XCAR and XCDR as lvalues.
698 (openp): Use CHECK_STRING_CAR.
699 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
700
aed29b97
EZ
7012001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
702
703 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 704 (SIGMASKTYPE): Define.
aed29b97
EZ
705
706 * syssignal.h (sigunblock): Don't define if already defined.
707
6cb16f95
PJ
7082001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
709
16b45be4
EZ
710 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
711 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
712 Fix typos in comments.
713
020f9b38
PJ
714 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
715 and #ifdef'd-out code.
716 Fix and reindent comments.
717
c191d13c 718 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 719
6cb16f95
PJ
720 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
721 argument `i' in macros.
722
723 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
724 `i' in macros.
725
16b45be4
EZ
726 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
727 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
728 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
729 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
730 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
731 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
732 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
733 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
734 in macros.
735
736 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
737 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
738 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
739 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
740 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
741 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
742 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
743 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
744 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
745 (remove unused second argument).
746
7e9d3c2f
SM
7472001-11-02 Stefan Monnier <monnier@cs.yale.edu>
748
749 * syntax.c (describe_syntax): New wrapper.
750 (Finternal_describe_syntax_value): Rename from describe_syntax.
751 Don't insert space at front and \n at the end.
752 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
753
754 * regex.c (re_wctype): Try to fix some warnings.
755 (regcomp, regexec): Don't forget the __restrict.
756
e6bff182
RS
7572001-11-02 Richard M. Stallman <rms@gnu.org>
758
759 * textprop.c (Fget_char_property): Doc fix.
760
9ba48103
PJ
7612001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
762
763 * process.c (Fstart_process): Add usage to doc-string.
764
765 * data.c (Fsetq_default): Ditto.
766
767 * callint.c (Finteractive): Ditto.
768
c22e59e1
SM
7692001-11-01 Stefan Monnier <monnier@cs.yale.edu>
770
771 * macros.c: Don't include keymap.h any more.
772
9271ed2c
RS
7732001-11-01 Richard M. Stallman <rms@gnu.org>
774
e6bff182
RS
775 * data.c (Fmake_local_variable): Doc fix.
776
777 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
778 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
779
9271ed2c
RS
780 * keymap.c (Fdescribe_buffer_bindings): Print character property
781 bindings along with or instead of the buffer local map.
782 Make the overriding maps override what they should.
783
8b8bd9c6
PJ
7842001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
785
786 * window.c (grow_mini_window): Fix typo in comment.
787
27188d11
GM
7882001-11-01 Gerd Moellmann <gerd@gnu.org>
789
7b49b9d2
GM
790 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
791 (XTset_vertical_scroll_bar): Likewise.
792
43f7c3ea
GM
793 * xfns.c (x_build_heuristic_mask): Use four_corners_best
794 instead of IMAGE_BACKGROUND.
c22e59e1 795
b350c2e5
GM
796 * xfns.c (four_corners_best): Reindent.
797
c22e59e1 798 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
799 Handle :box so that it is possible to specify sexprs.
800
d576358b
PJ
8012001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
802
803 * xfaces.c (Finternal_merge_in_global_face): Reindent.
804 (Fface_font): Ditto.
805 (Finternal_set_alternative_font_registry_alist): Ditto.
806 (Ftty_suppress_bold_inverse_default_colors): Ditto.
807
808 * xfns.c (x-get-resource): Reindent.
809
bf00d461
EZ
8102001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
811
812 * s/hpux11.h: New file.
813
4e10df59
PJ
8142001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
815
2b209b97
PJ
816 * emacs.c (USAGE1): Show command line option --no-window-system
817 instead of --no-windows in usage.
818 (standard_args): Rename --no-windows to --no-window-system.
819 (bug_reporting_address): Follow Emacs coding conventions.
820
9dbc9081
PJ
821 * eval.c (Fcommandp): Doc fix.
822 Change doc-string comments to `new style' [w/`doc:' keyword].
823
4e10df59
PJ
824 * frame.c (Fframe_live_p): Doc fix.
825
826 * buffer.c (selective-display-ellipses): Doc fix.
827
dd387b25
GM
8282001-10-31 Gerd Moellmann <gerd@gnu.org>
829
fe957e65
GM
830 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
831
dd387b25
GM
832 * xfaces.c (realize_x_face): If C is not a single-byte character,
833 set the face's colors_copied_bitwise_p instead of the defaulted_p
834 members which have a different meaning.
835 (free_face_colors): Do nothing for a face whose colors have been
836 copied bitwise.
837
c22e59e1 838 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 839
2e1280f8
PJ
8402001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
841
687784e8
PJ
842 * marker.c, mocklisp.c: Change doc-string comments to `new style'
843 [w/`doc:' keyword].
2e1280f8 844
b9d9a9b9
GM
8452001-10-31 Gerd Moellmann <gerd@gnu.org>
846
847 * fns.c (require_unwind): Return Lisp_Object.
848
48400103
PJ
8492001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
850
fa1361cb
PJ
851 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
852 (last-input-char): Revert doc-string to be the same as the
853 doc-string of `last-input-event'.
854
48400103
PJ
855 * xdisp.c: Fix typos in comments.
856
eafa3196
GM
8572001-10-31 Gerd Moellmann <gerd@gnu.org>
858
859 * window.c (grow_mini_window): Handle case that the root
860 window is already smaller than the nominal mininum height.
861
747d3f2a
SM
8622001-10-30 Stefan Monnier <monnier@cs.yale.edu>
863
bf9bb76f
SM
864 * emacs.c (main): Don't call keys_of_macros any more.
865
866 * lisp.h (keys_of_macros): Remove.
867
868 * macros.c (keys_of_macros): Remove.
869
747d3f2a
SM
870 * xfaces.c (Fface_attribute_relative_p): Declare args.
871
5e905a57
JR
8722001-10-30 Jason Rumney <jasonr@gnu.org>
873
874 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
875 (enum_font_cb2): Ignore fonts with vertical orientation.
876
3a426197
RS
8772001-10-30 Richard M. Stallman <rms@gnu.org>
878
879 * keyboard.c (Finput_pending_p): Doc fix.
880
a742d646
GM
8812001-10-30 Gerd Moellmann <gerd@gnu.org>
882
259cf6bc
GM
883 * xterm.c (x_after_update_window_line): Don't run the code
884 clearing in borders for rows whose visible height is 0.
885
3f99f948
GM
886 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
887 resized_p flag is set. If not set, use the much less flickering
888 method previously used.
889
890 * dispnew.c (change_frame_size_1): Set frame's resized_p.
891
892 * frame.h (struct frame) <resized_p>: New member.
893
b4a3be43
GM
894 * lread.c (to_multibyte): Ensure read_buffer is at least twice
895 as large as the number of bytes to convert.
747d3f2a 896
a742d646
GM
897 * lread.c (to_multibyte): New function.
898 (read1): Use it.
899
cacbb9e9
EZ
9002001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
901
902 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
903
99cb6b2f
GM
9042001-10-30 Gerd Moellmann <gerd@gnu.org>
905
327f42ee 906 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
907 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
908 if the row's fill_line_p is set and drawing the last glyph with
909 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 910
99cb6b2f
GM
911 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
912
8e8223e2
SM
9132001-10-29 Stefan Monnier <monnier@cs.yale.edu>
914
915 * xmenu.c: Include coding.h and charset.h.
916 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
917 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
918 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
919 Explicitly set wv->help. Use `TRUE' rather than `True'.
920 (menu_help_callback): Use empty_string.
921
922 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
923 (Fx_popup_dialog): Explicitly init f.
924 (w32_menu_display_help): Use empty_string.
925
4d083a8f
RS
9262001-10-29 Richard M. Stallman <rms@gnu.org>
927
b2304472
RS
928 * fns.c (Frequire): Detect recursive try to require the same
929 feature 3 or more levels deep, and get error.
930 (require_unwind): New subroutine.
931 (require_nesting_list): New variable.
932 (syms_of_fns): Init and staticpro it.
933
4d083a8f
RS
934 * print.c (print_object): Clarify indication of insertion type.
935
2fe41216
EZ
9362001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
937
90480000
EZ
938 * coding.c (syms_of_coding): Document that locale-coding-system is
939 used for decoding input on X.
940
2fe41216
EZ
941 * window.c (Fscroll_left, Fscroll_right): Doc fix.
942
74e79967
PJ
9432001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
944
945 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
946 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
947
60ebcfe8
GM
9482001-10-29 Gerd Moellmann <gerd@gnu.org>
949
9a7bdceb
GM
950 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
951 use NO_CURSOR if cursor_in_non_selected_windows is false.
952
3f08fcd2
GM
953 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
954 the slant attribute if FRAME is t.
955
0ccfdad2
GM
956 * xfns.c (x_set_internal_border_width): Set frame garbaged
957 when X window doesn't exist yet.
958
ef253080
GM
959 * xterm.c (x_after_update_window_line): Clear internal border
960 in different circumstances.
b116830b 961
60ebcfe8
GM
962 * xterm.c (XTread_socket) <KeyPress>: Don't use
963 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
964 <handa@etl.go.jp>.
965
73d25f9c
EZ
9662001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
967
968 * m/ibms390.h: New file. From Adam Thornton
969 <athornton@sinenomine.net>.
970
cac1daf0
GM
9712001-10-28 Gerd Moellmann <gerd@gnu.org>
972
053b3256 973 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 974
cac1daf0
GM
975 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
976 a loop counter.
977
13b1a09c
PJ
9782001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
979
186486eb
PJ
980 * emacs.c: Use argv[0] instead of emacs when -t was specified.
981
4707d2d0
PJ
982 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
983 keyword].
984 Fix typos in comments.
b116830b 985
d883731c
PJ
986 * emacs.c (bug_reporting_address): New function.
987 Use it when displaying usage message.
988
04012254
PJ
989 * minibuf.c (read_minibuf): Remove unused external declaration of
990 variable `Qread_only'.
991
13b1a09c
PJ
992 * keymap.c (access_keymap): Remove unused variable `charset'.
993
5bbf4378
MB
9942001-10-28 Miles Bader <miles@gnu.org>
995
996 * xfaces.c (merge_face_heights): Handle TO being relative as well.
997 Remove #ifdef'd-out code.
998 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
999 (syms_of_xfaces): Initialize them.
1000
1ce1e4ee
JR
10012001-10-27 Jason Rumney <jasonr@gnu.org>
1002
1003 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1004 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1005 position using the system caret.
1006
1007 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1008 (w32_system_caret_height, w32_system_caret_x)
1009 (w32_system_caret_y): New variables for tracking system caret.
1010 (w32_initialize): Initialize them.
c2d53558 1011 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 1012
c2d53558
SM
1013 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1014 New messages types.
1ce1e4ee
JR
1015
1016 * w32term.c (note_mouse_highlight): Clear old help_echo.
1017
4e30ce42
PJ
10182001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1019
bb4600a4
PJ
1020 * xterm.c: Fix typo in a comment.
1021
7db35a48
PJ
1022 * emacs.c: Fix typos in comments.
1023 Remove unnecessary spaces.
1024 Change doc-string comments to `new style' [w/`doc:' keyword].
1025 (USAGE2): Fix typos in usage string.
1026
a7248e4f
PJ
1027 * xterm.c: Fix typo in a comment.
1028
4e30ce42
PJ
1029 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1030 emacs.c.
1031
62725a92
GM
10322001-10-27 Gerd Moellmann <gerd@gnu.org>
1033
798dbe1f 1034 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 1035 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
1036 farther backward when target_y was not reached.
1037
62725a92
GM
1038 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1039 Display errno only if non-zero.
1040 (sound_warning): New function.
1041 (vox_configure): Don't treat failing to set sample rate as error.
1042 (various places): Improve error messages.
1043
d4e34d24
EZ
10442001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1045
944e6f60
EZ
1046 * fileio.c (Faccess_file): Run the argument filename through
1047 Fexpand_file_name, before using it.
1048
d4e34d24
EZ
1049 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1050 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1051
38d2af0c
GM
10522001-10-26 Gerd Moellmann <gerd@gnu.org>
1053
da80a8d5
GM
1054 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1055
38d2af0c
GM
1056 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1057 Fix clearing in the case of scroll bars on the right.
c2d53558 1058
56f508dd
EZ
10592001-10-26 Juanma Barranquero <lektu@terra.es>
1060
1061 * w32gui.h (XImage): Add a dummy typedef.
1062
fbd5ceb2
GM
10632001-10-26 Gerd Moellmann <gerd@gnu.org>
1064
c2d53558 1065 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 1066
b23236fb
EZ
10672001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1068
1069 * frame.c (Fframe_parameter): Fix last change.
1070
5d991fc4
EZ
1071 * fileio.c: Revert last change (which removed old commented-out
1072 version of expand-file-name). Add a comment that explains why
1073 this old version should not be removed.
1074
879eadc3
GM
10752001-10-25 Gerd Moellmann <gerd@gnu.org>
1076
75700ff2
GM
1077 * frame.c (Fframe_parameter): Fix a bug whereby some
1078 ``artificial'' frame parameters, like `minibuffer' were not
1079 obtained by calling Fframe_parameters.
1080
dfe92a6a
GM
1081 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1082 cursor differently.
1083
879eadc3
GM
1084 * xdisp.c (move_it_vertically_backward): Compute line height
1085 differently. Add heuristic to try to be more compatible to 20.x.
1086
e1010ebe
SM
10872001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1088
d73a471b
SM
1089 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1090
d6da5a06
GM
1091 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1092 boolean.
e1010ebe 1093
f66bd220
MB
10942001-10-25 Miles Bader <miles@gnu.org>
1095
1096 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1097 BG is a pointer to a structure, not a structure.
1098 (gif_format, png_format): Add missing commas.
1099
d436d538
RS
11002001-10-24 Richard M. Stallman <rms@gnu.org>
1101
1102 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 1103 (syms_of_xfaces): Defsubr it.
d436d538 1104
075c507b
PJ
11052001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1106
1107 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1108 variable `area'.
1109
d492b584
PJ
11102001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1111
c2d53558 1112 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 1113
e2a57b34
MB
11142001-10-25 Miles Bader <miles@gnu.org>
1115
1116 * dispextern.h (struct image): Add `background',
1117 `background_valid', and `background_transparent' fields.
1118 (image_background, image_background_transparent): New declarations.
1119 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1120 * xfns.c (image_background, image_background_transparent)
1121 (four_corners_best): New functions.
c2d53558 1122 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
1123 (gs_format): Add `:background' entry.
1124 (lookup_image): Set IMG's background color if specified.
1125 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1126 when appropriate.
1127 (x_clear_image_1): Reset `background_valid' and
1128 `background_transparent_valid' fields.
1129 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1130 calculating it here. Set IMG's background_transparent field.
1131 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1132 (enum png_keyword_index): Add PNG_BACKGROUND.
1133 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1134 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1135 (enum gif_keyword_index): Add GIF_BACKGROUND.
1136 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 1137 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
1138 Pre-calculate image background color where necessary.
1139 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1140 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1141 color to use for image glyph reliefs.
1142
b547b6e8
GM
11432001-10-24 Gerd Moellmann <gerd@gnu.org>
1144
d9e3b8c6
GM
1145 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1146 in full-width rows.
c2d53558 1147
b547b6e8
GM
1148 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1149 Fix clearing of area not covered by scroll bar.
1150
2beb36f9
PJ
11512001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1152
1153 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1154 and `real_start'.
c2d53558 1155 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
1156 (glyph_rect): Remove unused variable `area'.
1157
76cb5e06
GM
11582001-10-24 Gerd Moellmann <gerd@gnu.org>
1159
bdbdebff 1160 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
1161
1162 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1163 (row_containing_pos): Take additional argument DY.
1164 Treat rows ending in middle of char differently.
62e33982
GM
1165 (display_line): Handle tabs on window systems differently.
1166
1167 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1168 with additional argument.
1169
1170 * dispextern.h (row_containing_pos): Adjust prototype.
1171
76cb5e06
GM
1172 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1173 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1174 (try_window_id, try_window_reusing_current_matrix)
1175 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1176 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1177
996fee11
PJ
11782001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1179
c9e60620
PJ
1180 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1181 gnuemacs).
1182 (HAVE_BOXES): Fix typo in comment.
1183 (push_menu_pane): Fix typo in comment.
1184
3b552d56
PJ
1185 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1186 of `Qwhen'.
1187 (single_display_prop_string_p): Remove unused local declarations
1188 of `Qwhen' and `Qmargin'.
1189 (string_buffer_position): Remove unused variable `around'.
1190 (store_frame_title): Remove unused variable `width'.
1191
15c565ac
PJ
1192 * window.c: Don't define max.
1193 (coordinates_in_window): Remove unused variable `uy'.
1194
a8818eb9
PJ
1195 * widget.c: Don't define max.
1196
996fee11
PJ
1197 * process.c: Don't define max.
1198 (create_process): Remove unused variable `buffer'.
1199
496e1a5b
GM
12002001-10-23 Gerd Moellmann <gerd@gnu.org>
1201
c2d53558 1202 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 1203
5905ae8b
EZ
12042001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1205
1206 * xfaces.c (Finternal_set_lisp_face_attribute)
1207 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1208 frame is on a windowed display.
1209
24db49fb
GM
12102001-10-23 Gerd Moellmann <gerd@gnu.org>
1211
c2d53558
SM
1212 * dispnew.c (sync_window_with_frame_matrix_rows):
1213 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
1214 of marginal areas.
1215
c2d53558 1216 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 1217
f0487f05
EZ
12182001-10-23 Andreas Schwab <schwab@suse.de>
1219
1220 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1221 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1222
f0a48a01
GM
12232001-10-23 Gerd Moellmann <gerd@gnu.org>
1224
c2d53558 1225 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
1226 REAL_END. Notice if cursor gets overwritten.
1227 (notice_overwritten_cursor): Take X positions as parameters.
1228 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1229 around call to x_draw_glyphs.
1230
a50a10a0
PJ
12312001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1232
fc11dff0
PJ
1233 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1234 instead of C) and usage.
a50a10a0 1235
fc11dff0
PJ
1236 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1237 of C) and usage.
a50a10a0
PJ
1238
1239 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1240 `left', `max_width' and `max_height'.
1241
8738febd
GM
12422001-10-23 Gerd Moellmann <gerd@gnu.org>
1243
1244 * xdisp.c (display_line): For a tab continued to the next line,
1245 set row's ends_in_middle_of_char_p.
1246
653c329b
GM
12472001-10-22 Gerd Moellmann <gerd@gnu.org>
1248
1249 * xdisp.c (display_line): Fix computation of continuation lines
1250 width for TABs.
1251
f958c5ac
PJ
12522001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1253
7ba51063
PJ
1254 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1255 `Qlaplace'.
1256
f958c5ac
PJ
1257 * fileio.c: Remove unused code.
1258
eb360291
MB
12592001-10-22 Miles Bader <miles@gnu.org>
1260
1261 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1262 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1263 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1264
98515cf0
JR
12652001-10-21 Jason Rumney <jasonr@gnu.org>
1266
1267 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1268
93026d88
EZ
12692001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1270
1271 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1272 (Finsert_string): Avoid the multi-line string literals warning.
1273
c9a95b79
MB
12742001-10-22 Miles Bader <miles@gnu.org>
1275
1276 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1277 (Fdocumentation): Don't use it.
1278 (syms_of_doc): Don't initialize it.
1279
1280 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1281 * print.c (Fwith_output_to_temp_buffer): Likewise.
1282 * window.c (Fsave_window_excursion): Likewise.
c2d53558 1283 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 1284 (Fsave_restriction): Likewise.
c2d53558
SM
1285 * eval.c (Frun_hooks, Frun_hook_with_args)
1286 (Frun_hook_with_args_until_failure)
1287 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1288 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1289 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
1290 (Funwind_protect, Fcondition_case): Likewise.
1291 * coding.c (Ffind_operation_coding_system): Likewise.
1292 * keyboard.c (Ftrack_mouse): Likewise.
1293
a3b10252
MB
12942001-10-21 Miles Bader <miles@gnu.org>
1295
c2d53558 1296 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
1297 (Fmake_hash_table): Add usage: string to doc string.
1298 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 1299 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
1300 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1301 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1302 (Fml_prefix_argument_loop): Likewise.
1303
c6f73eec
PJ
13042001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1305
c2d53558 1306 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 1307
c6f73eec
PJ
1308 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1309 style' [w/`doc:' keyword].
1310
1311 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1312 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1313 comments to `new style' [w/`doc:' keyword].
1314
3cf3436e
JR
13152001-10-21 Jason Rumney <jasonr@gnu.org>
1316
1317 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1318
c169b8f1
JR
1319 * w32term.c (remember_mouse_glyph): New function.
1320 (w32_mouse_position): Use it.
1321 (note_mouse_movement): If the mouse moved off the glyph, remember
1322 its new position.
c2d53558 1323
4fdd691b
JR
1324 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1325 (w32_display_info): Add mouse_face_overlay.
1326
c169b8f1
JR
1327 * w32term.c (notice_overwritten_cursor): Renamed from
1328 note_overwritten_text_cursor. Rewritten to take glyph widths into
1329 account.
1330 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1331 (fast_find_string_pos): New function.
1332 (fast_find_position): Return the correct vpos. Add parameter
1333 STOP. In the final row, stop before glyphs having STOP as object.
1334 Don't consider glyphs that are not from a buffer.
1335 (fast_find_position) [0]: Add a presumably more correct version
1336 for after 21.1.
1337 (expose_window_tree, expose_frame): Don't compute intersections here.
1338 (expose_window): Do it here instead.
1339 (expose_window_tree, expose_window, expose_line): Return 1 when
1340 overwriting mouse-face.
1341 (expose_window): If W is the window currently being updated, mark
1342 the frame garbaged.
1343 (expose_frame): If mouse-face was overwritten, redo it.
1344 (x_use_underline_position_properties): New variable.
1345 (syms_of_xterm): DEFVAR_BOOL it.
1346 (x_draw_glyph_string): Add comment to use it in future.
1347 (x_draw_glyph_string): Restore clipping after drawing box.
1348 Fix a computation of the underline position.
1349 (w32_get_glyph_string_clip_rect): Minor cleanup.
1350 (x_fill_stretch_glyph_string): Remove an assertion.
1351 (x_produce_glyphs): Don't convert multibyte characters
1352 to unibyte characters in unibyte buffers.
1353 (cursor_in_mouse_face_p): New function.
1354 (x_draw_stretch_glyph_string): Use it to choose a different GC
1355 when drawing a cursor within highlighted text. Don't draw
1356 background again if it has already been drawn.
1357 (x_draw_glyph_string_box): Don't draw a full-width
1358 box just because the glyph row's full_width_p flag is set.
1359 (x_draw_glyphs): Fix computation of rightmost x for
1360 full-width rows.
1361 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1362 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1363 change bottom shadow accordingly. Some cleanup.
1364 (x_update_window_end): Handle overwritten mouse face
1365 also for tool bar windows.
1366 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1367 DRAW is DRAW_IMAGE_RAISED.
1368 (clear_mouse_face): Return 1 if text with mouse face was
1369 actually redrawn. Make the function static. Reset
1370 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1371 optimize away highlighting if we pass over that same overlay again.
1372 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1373 to detect a case where we have to highlight a different region
1374 despite not having left the currently highlighted region.
1375 Set mouse_face_overlay in the x_display_info. Avoid changing the
1376 mouse pointer shape when show_mouse_face has already done it, or
1377 there is no need. Handle mouse-face and help-echo in strings.
1378 (glyph_rect): New function.
1379 (w32_mouse_position): Use it to raise the threshold for mouse
1380 movement event generation.
1381 (w32_initialize_display_info): Initialize the x_display_info's
1382 mouse_face_overlay.
1383 (w32_set_vertical_scroll_bar): Don't clear a zero height
1384 or width area.
1385 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1386 a widget to zero height.
1387
3cf3436e 1388 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 1389 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
1390 equivalents in menu_items.
1391 (w32_menu_show): Don't overwrite an item's name with its key
1392 description in case the description is a multibyte string.
1393 (single_submenu): Some cleanup.
1394
1395 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1396 (postprocess_image): New function.
1397 (lookup_image): Call it for all image types except PostScript.
1398 (x_kill_gs_process): Call postprocess_image.
1399 (tiff_error_handler, tiff_warning_handler): New functions.
1400 (tiff_load): Install them as handlers.
1401 (x_kill_gs_process): Recognize if someone has cleared the image
1402 cache under us.
1403 (valid_image_p): Protect better against invalid image
1404 specifications. Previous code could signal an error.
1405 (Fx_hide_tip, Fshow_tip): Doc fix.
1406 (Fv_max_tooltip_size): New variable.
1407 (syns_of_xfns): DEFVAR_LISP it.
1408 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1409 window buffer to *tip* right after creating the frame. Set frame's
1410 window_width. Use a maximum tooltip size specified by
1411 Vx_max_tooltip_size, if that has valid contents.
1412 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1413 Make sure the tooltip is completely visible.
1414 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1415 (Fx_create_frame): Adjust the frame's height for presence
1416 of the tool bar before calling x_figure_window_size.
1417 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1418 when the window gets smaller.
1419 (x_set_foreground_color): Set frame's cursor_pixel.
1420 (x_set_foreground_color, x_set_background_color): Cleaned up.
1421 (x_set_font): Handle case of x_new_fontset returning the same name
1422 as before, although there was a change in fontsets.
1423
386ca361
MB
14242001-10-21 Miles Bader <miles@gnu.org>
1425
c2d53558 1426 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
1427 (Flogxor): Add usage: string to doc string.
1428 * charset.c (Fstring): Likewise.
1429 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1430 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1431
14ff1ee0
PJ
14322001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1433
03be2694
PJ
1434 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1435
1436 * alloc.c: Reindent DEFUNs with doc: keywords.
1437
1438 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1439
14ff1ee0
PJ
1440 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1441 keyword].
1442
71431a0e
GM
14432001-10-20 Gerd Moellmann <gerd@gnu.org>
1444
6aa97356 1445 * (Version 21.1 released.)
71431a0e 1446
39f624fa
PJ
14472001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1448
c2d53558 1449 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
1450
1451 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1452 0 because unused.
1453
1454 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
1455 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1456 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 1457
abcce93a
MB
14582001-10-20 Miles Bader <miles@gnu.org>
1459
1460 The following changes remove the glyph_row `inverse_p' field,
1461 which is never set anymore, due to other changes:
1462
1463 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1464 (reassert_line_highlight, change_line_highlight): Declarations removed.
1465 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
1466 (line_hash_code, row_equal_p, fake_current_matrices)
1467 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
1468 (update_frame_line, update_frame_line, update_frame_line):
1469 Don't use `inverse_p' field.
1470 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1471 change_line_highlight_hook.
1472 (XTreassert_line_highlight, x_change_line_highlight):
1473 Functions removed.
c2d53558 1474 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1475 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1476 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1477 `inverse_p' field.
c2d53558 1478 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1479 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1480 (w32_reassert_line_highlight, x_change_line_highlight):
1481 Functions removed.
1482 * w32console.c (reassert_line_highlight, change_line_highlight):
1483 Functions removed.
1484 (initialize_w32_display): Don't set reassert_line_highlight_hook
1485 or change_line_highlight_hook.
1486 (hl_mode): Function removed.
c2d53558
SM
1487 (reset_terminal_modes, set_terminal_modes, update_begin)
1488 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
1489 (clear_frame, ins_del_lines): Don't call it.
1490 * termhooks.h (reassert_line_highlight_hook)
1491 (change_line_highlight_hook): Declarations removed.
1492 * term.c (reassert_line_highlight_hook)
1493 (change_line_highlight_hook): Variables removed.
1494 (reassert_line_highlight, change_line_highlight): Functions removed.
1495 * msdos.c (IT_reassert_line_highlight)
1496 (IT_change_line_highlight): Functions removed.
1497 (internal_terminal_init): Don't set reassert_line_highlight_hook
1498 or change_line_highlight_hook.
1499 (highlight): Variable removed.
c2d53558 1500 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
1501 (IT_set_terminal_modes): Don't set or use it.
1502
1503 The following changes remove inverse-video support for terminals
1504 that use a `magic cookie' standout mode. Due to changes in the
1505 way mode-lines are displayed, such support no longer works
1506 anyway, and it's probable that almost no one uses such terminals
1507 anymore:
1508
1509 * term.c (standout_requested): Variable removed.
1510 (update_end, highlight_if_desired): Don't use it.
1511 (chars_wasted, copybuf): Variables removed.
1512 (write_standout_marker): Function removed.
c2d53558 1513 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
1514 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1515 Don't use `chars_wasted' or `copybuf'.
1516 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1517 Set `costs_set' to true.
1518 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1519 `chars_wasted'.
1520 (clear_end_of_line): Function removed.
1521 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1522 (clear_to_end): Call `clear_end_of_line' instead of
1523 `clear_end_of_line_raw'.
54800acb
MB
1524 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1525 (term_init): Don't set them.
1526 Turn off any standout/underline modes that require magic cookies.
c2d53558 1527 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
1528 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1529 Remove special processing for magic-cookie standout modes.
1530 (turn_off_face, turn_on_face): Remove special processing for
1531 underline magic-cookie glitch.
abcce93a 1532
0b5f679f
RS
15332001-10-19 Richard M. Stallman <rms@gnu.org>
1534
1535 * eval.c (syms_of_eval): Doc fixes.
1536
5a4a5bd4
GM
15372001-10-19 Gerd Moellmann <gerd@gnu.org>
1538
1539 * xdisp.c (redisplay_internal): Don't clear echo area if the
1540 mini-window is selected.
1541
79f1f96c
MB
15422001-10-19 Miles Bader <miles@gnu.org>
1543
b57c2708
MB
1544 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1545 doesn't take precedence if the affected property's value is nil.
1546
1547 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1548
79f1f96c
MB
1549 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1550 with fields and suggest using `forward-line' to avoid them.
1551 * editfns.c (Fline_beginning_position, Fline_end_position):
1552 Clarify documentation.
1553
ef879104
SM
15542001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1555
1556 * keymap.c (current_minor_maps): `override' only shadows its
1557 correspondent in minor-mode-map-alist, not the whole tail.
1558
97f4db8c
AI
15592001-10-18 Andrew Innes <andrewi@gnu.org>
1560
1561 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1562 optimization. The fontp->encoding array was not being initialized
1563 correctly when compiled with optimizations by MSVC.
1564
e6b70fd8
GM
15652001-10-18 Gerd Moellmann <gerd@gnu.org>
1566
30903479 1567 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 1568
0e804d38
AI
15692001-10-17 Andrew Innes <andrewi@gnu.org>
1570
1571 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1572
1573 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1574 font_info.charset field.
1575
1576 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1577 rather than working it out by calling w32_codepage_for_font for
1578 every glyph.
1579
66e5868a
AI
15802001-10-17 Andrew Innes <andrewi@gnu.org>
1581
1582 * w32term.c (w32_read_socket): Determine clipping rectangle for
1583 the entire frame, including areas covered by scrollbars and the
1584 menubar. This avoids internal arguments about whether a frame is
1585 fully obscured or not.
1586
15b00083
GM
15872001-10-17 Gerd Moellmann <gerd@gnu.org>
1588
23e8bd86
GM
1589 * xdisp.c (try_window_id): Undo last change. Give up if
1590 window ends in strings.
30903479 1591
9c6ba6d1 1592 * xdisp.c (try_window_id): Don't display lines after the window
30903479 1593 end if the rest of the window after the window end was already blank.
23e8bd86 1594
30903479 1595 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
1596 for the release of 21.1.
1597
30903479 1598 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 1599
945220bd
MB
16002001-10-17 Miles Bader <miles@gnu.org>
1601
1602 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1603 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1604 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1605 Change doc-string comments to `new style' [w/`doc:' keyword].
1606 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1607 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1608 out make-docfile.
1609
14242528
MB
16102001-10-16 Miles Bader <miles@gnu.org>
1611
1612 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1613
3ddf952f
GM
16142001-10-16 Gerd Moellmann <gerd@gnu.org>
1615
1616 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1617 *scratch*.
1618
f3fbd155
KR
16192001-10-16 Ken Raeburn <raeburn@gnu.org>
1620
1621 Avoid the assumption that car and cdr slots of cons cells are
1622 addressable lvalues; this allows for easier experimentation with
1623 other lisp implementations that may not permit such accesses for
1624 various reasons. Not quite complete -- buffer.c still needs some
1625 work, and w32/mac files need rechecking -- so compile-time
1626 enforcement is left disabled for now.
1627
1628 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 1629 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
1630 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1631 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1632 (XSETCAR, XSETCDR): New macros.
1633 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1634 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1635 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1636 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1637 XSETCDR.
1638 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
1639 * buffer.c (record_buffer, Fbury_buffer)
1640 (swap_out_buffer_local_variables, recenter_overlay_lists)
1641 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
1642 fields of a cons cell respectively.
1643 * callint.c (quotify_args, Fcall_interactively): Likewise.
1644 * ccl.c (Fregister_code_conversion_map): Likewise.
1645 * coding.c (detect_coding_system): Likewise.
1646 * composite.c (get_composition_id, make_composition_value_copy):
1647 Likewise.
30903479
SM
1648 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1649 (swap_in_symval_forwarding, set_internal, Fset_default)
1650 (Fmake_variable_buffer_local, Fmake_local_variable)
1651 (Fmake_variable_frame_local): Likewise.
f3fbd155 1652 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 1653 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 1654 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
1655 * minibuf.c (get_minibuffer): Likewise.
1656 * search.c (Fmatch_data): Likewise.
1657 * textprop.c (extend_property_ranges): Likewise.
c2d53558 1658 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
1659 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1660 Likewise.
1661 * w32term.c (x_delete_display): Likewise.
1662 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1663 Likewise.
c2d53558 1664 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 1665 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 1666 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
1667 (Fread_file_name): Use XSETCAR.
1668 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1669 CHECK_NUMBER_CDR.
1670 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1671 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1672 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1673 CHECK_NUMBER_CDR.
1674 * keyboard.c (read_char): Alter list traversal to avoid taking the
1675 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1676 (parse_menu_item): Use XSETCAR and XSETCDR.
1677 (reach_char_x_menu_prompt): Use XSETCAR.
1678 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1679 (Fcommand_execute): Use XSETCDR.
1680 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1681 (openp): Change list traversal to avoid using XCAR as lvalue.
1682 (read_list): Use XSETCDR.
1683 * process.c (wait_reading_process_input): Change wait_for_cell
1684 handling to avoid taking addresses of cons cell slots.
30903479
SM
1685 * xselect.c (x_own_selection, x_handle_selection_clear)
1686 (x_clear_frame_selections): Use XSETCDR.
1687 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1688 (x_handle_property_notify, x_get_foreign_selection)
1689 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 1690
502150e5
PJ
16912001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1692
018ba359
PJ
1693 * buffer.c: Put doc strings in comments.
1694
30903479 1695 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 1696
b56ba8de
SS
16972001-10-15 Sam Steingold <sds@gnu.org>
1698
1699 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1700
6a0b793a
PJ
17012001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1702
30903479
SM
1703 * process.c (process-inherit-coding-system-flag)
1704 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
1705 in comment.
1706
a1f17501 1707 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 1708 arguments. Put doc strings in comments.
a65da641
PJ
1709
1710 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 1711
aa601ad0
GM
17122001-10-15 Gerd Moellmann <gerd@gnu.org>
1713
30903479 1714 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 1715
aa601ad0
GM
1716 * window.c (select_window_1): Unfreeze window start. Remove a
1717 doubled test for WINDOW being live.
1718
288148a1
PJ
17192001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1720
dd8d1e71
PJ
1721 * fns.c (Fmapconcat): Fix typo in a doc string.
1722
288148a1
PJ
1723 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1724
9f5eb4a3
GM
17252001-10-15 Gerd Moellmann <gerd@gnu.org>
1726
1727 * xterm.c (x_draw_glyph_string): Restore clipping after
1728 drawing box.
1729
dbae44c8
PJ
17302001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1731
30903479 1732 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 1733
0c88c937
SM
17342001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1735
56378db4
GM
1736 * indent.c (skip_invisible): Use new retval of
1737 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 1738
845e4cf4
SM
1739 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1740 If a parent is reached and noinherit is set, exit immediately.
1741 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1742
0c88c937
SM
1743 * s/ms-w32.h (EXEC_SUFFIXES):
1744 * s/msdos.h (EXEC_SUFFIXES):
1745 * process.h (EXEC_SUFFIXES): Remove.
1746
1747 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1748 (decode_suffixes): Remove.
1749
1750 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
1751 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1752 (invisible_ellipsis_p): Remove.
0c88c937
SM
1753
1754 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1755 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1756 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
1757 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1758 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 1759
d19be8a9
PJ
17602001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1761
04d7d066
PJ
1762 * lisp.h (Ftop_level): Add prototype.
1763
d624284c
PJ
1764 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1765 (XTread_socket): Improve style of comments to follow other
1766 comments.
1767
a87414f9
PJ
1768 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1769 is already prototyped in included lisp.h).
1770
d19be8a9
PJ
1771 * frame.c (Fset_mouse_position): Improve style of comment to
1772 follow other comments.
1773 (Fset_mouse_pixel_position): Improve style of comment to follow
1774 other comments.
1775 (Fmake_frame_visible): Doc fix and typo in comment.
1776 (Fmake_frame_invisible): Doc fix and typo in comment.
1777 (Ficonify_frame): Fix typo in comment.
1778
c061c855
GM
17792001-10-14 Gerd Moellmann <gerd@gnu.org>
1780
37f6b5b6 1781 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 1782 * term.c, alloc.c: Put doc strings in comments.
c061c855 1783
e641b454
GM
17842001-10-13 Gerd Moellmann <gerd@gnu.org>
1785
1786 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1787 Provide definitions for doc strings in comments.
1788
1789 * fns.c: Put doc strings in comments.
1790
51724e26
EZ
17912001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1792
1793 * dired.c (file_name_completion): Ignore a candidate directory if
1794 it matches an element in completion-ignored-extensions that ends
1795 in a slash.
1796 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1797 feature in the doc string.
1798 (Ffile_name_completion): Ditto.
1799
be5fc59b
SM
18002001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1801
5a1373f3
SM
1802 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1803
1804 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1805
1806 * lisp.h (Fprovide): Update prototype.
1807 (Ffeaturep, invisible_p): Remove.
1808
bbc4a3d3 1809 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
1810 (DOLIST, LOOP_PROPVAL): New macros.
1811 (invisible_p, invisible_ellipsis_p): Use them.
1812 (invisible_noellipsis_p): New function.
1813 (syms_of_xdisp): Use empty_string.
1814
1815 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1816
1817 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1818 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1819
1820 * print.c (Fwith_output_to_temp_buffer): Align with
1821 internal_with_output_to_temp_buffer.
1822 (print_preprocess): Use traverse_intervals_noorder.
1823 (print_object): Update call to traverse_intervals.
1824
1825 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1826 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1827
1828 * intervals.c (traverse_intervals_noorder): New function.
1829 (search_for_interval, count_intervals): Use it.
1830 (traverse_intervals): Use less stack space and drop `depth' arg.
1831
1832 * fns.c (Ffeaturep): Add new `subfeature' arg.
1833 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1834 (Qsubfeatures): New var.
1835 (syms_of_fns): Initialize it.
1836
026f408d
SM
1837 * keymap.c (Fkey_description): Use empty_string.
1838 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1839 (syms_of_keymap): Setup inheritance between maps.
1840 Don't export Sdescribe_bindings_internal any more.
1841
be5fc59b
SM
1842 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1843
3365175e
GM
18442001-10-12 Gerd Moellmann <gerd@gnu.org>
1845
1846 * xterm.c (notice_overwritten_cursor): Renamed from
1847 note_overwritten_text_cursor. Rewritten to take glyph widths into
1848 account.
1849
2ab7765c
EZ
18502001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1851
1852 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1853 multi-line strings without a trailing "\n\".
1854
311346bb
PJ
18552001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1856
1857 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1858 defined.
1859
2168e04d
SM
18602001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1861
026f408d
SM
1862 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1863
c0ec53ad
SM
1864 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1865 * w32proc.c (sys_spawnve):
1866 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1867 * w32.c (check_windows_init_file):
1868 * sound.c (Fplay_sound):
026f408d 1869 * emacs.c (init_cmdargs):
c0ec53ad
SM
1870 * process.c (Fstart_process): Update calls to openp.
1871
1872 * callproc.c (Vexec_suffixes): New var.
1873 (Fcall_process): Update call to openp.
1874 (decode_suffixes): New function.
1875 (syms_of_callproc): Init exec-suffixes.
1876
1877 * lread.c (Vload_suffixes, default_suffixes): New vars.
1878 (openp): Take a lisp list of suffixes.
1879 Check for file-name-handlers even if the file was absolute already.
1880 (syms_of_lread): Declare load-suffixes.
1881 (Fload): Fix up call to openp.
1882 Don't bother checking for file-name-handler at the very beginning.
1883
f6333468
SM
1884 * keymap.h (Fcopy_keymap): Don't export.
1885
1886 * lisp.h (empty_string): Declare.
c0ec53ad
SM
1887 (Vload_suffixes, Vexec_suffixes): Declare.
1888 (openp): Update prototype.
f6333468
SM
1889
1890 * emacs.c (empty_string): New var.
1891 (syms_of_emacs): Initialize it.
1892
1893 * search.c (wordify): Use it.
1894
1895 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1896 selected window if it's not displayed there. Handle the case
1897 when the window is dedicated.
1898 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1899
1900 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1901
2168e04d
SM
1902 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1903 Remove left_ok and right_ok.
1904 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1905 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1906 new meaning of b_property.
1907
1908 * syntax.c (update_syntax_table): Simplify.
1909 (Fforward_comment): Don't skip quoted chars when going backward.
1910
13d95cc0
GM
19112001-10-11 Gerd Moellmann <gerd@gnu.org>
1912
beb0990f
GM
1913 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1914 in case I is of some unsigned type, in which case
1915 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1916 comparison becomes bogus.
1917
cb938d46
GM
1918 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1919 (Fuser_full_name): Fix bug treating a float as a fixnum.
1920
1921 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1922
1923 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 1924
13d95cc0
GM
1925 * lisp.h (circular_list_error): Add prototype.
1926
1927 * data.c (Qcircular_list): New variable.
1928 (circular_list_error): New function.
1929 (syms_of_data): Initialize it Qcircular_list.
1930
e35f6ff7
SM
19312001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1932
1933 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1934 casefiddle.c, buffer.c: Include keymap.h.
1935
619632ac
GM
19362001-10-10 Gerd Moellmann <gerd@gnu.org>
1937
1938 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1939 options. From Dave Love <d.love@dl.ac.uk>.
1940
5e5388f6
GM
19412001-10-09 Gerd Moellmann <gerd@gnu.org>
1942
1943 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1944 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1945
14a3dff7
GM
1946 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1947 unsigned char.
1948 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 1949
76ba8daf
AI
19502001-10-08 Andrew Innes <andrewi@gnu.org>
1951
1952 * lisp.h [max]: Undef min and max before redefining them.
1953
1954 * w32gui.h: Do not undef min and max.
1955
1956 * w32heap.h: Do not undef min and max.
1957
1958 * s/ms-w32.h: Do not undef min and max.
1959
166253cb
SM
19602001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1961
1962 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1963
0c4d9527
SS
19642001-10-08 Sam Steingold <sds@gnu.org>
1965
1966 * keymap.c (current-active-maps): Quote newlines (compilation error).
1967
14bfa771
EZ
19682001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1969
1970 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1971 bindings.elc, since otherwise doc strings in bindings.el get wrong
1972 offsets in etc/DOC.
1973
bdb7aa47
SM
19742001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1975
9985827f
SM
1976 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1977
1978 * keyboard.h (map_prompt): Remove.
1979
1980 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 1981 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 1982
bdb7aa47
SM
1983 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1984
1985 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1986
1987 * keyboard.c (map_prompt): Remove.
1988 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1989 Use Fkeymap_prompt.
1990
1991 * keymap.h: New file. Extracted from lisp.h.
1992
9985827f
SM
1993 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1994 (accessible_keymaps_1): New function.
1995 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1996 (Fwhere_is_internal): Use Fcurrent_active_maps.
1997 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1998 Insert in current buffer rather than standard-output.
1999 Don't call `help-mode'. Export to elisp.
2000 (describe_buffer_bindings): New wrapper.
2001 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2002 and Sdescribe_buffer_bindings.
2003
402c9a51
GM
20042001-10-08 Gerd Moellmann <gerd@gnu.org>
2005
9985827f 2006 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
2007 Remove code setting signal handler.
2008
9985827f 2009 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
2010 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2011
3fe81fdf
PJ
20122001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2013
2014 * keyboard.c: Don't define min/max.
2015
55fa7820
GM
20162001-10-08 Gerd Moellmann <gerd@gnu.org>
2017
9985827f 2018 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 2019 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 2020 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 2021 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 2022 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
2023 Don't define min/max.
2024
2025 * lisp.h (min, max): New macros.
2026
55fa7820
GM
2027 * puresize.h (BASE_PURESIZE): Increase to 725000.
2028
1aad31e4
PJ
20292001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2030
9180dc8c
PJ
2031 * xfaces.c (free_frame_menubar): Add prototype.
2032
01f67d2c
PJ
2033 * lisp.h (init_window): Add prototype.
2034
2035 * editfns.c: Include ctype.h.
2036
2037 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 2038 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
2039 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2040 variable `sb'.
2041
5f351ff1
PJ
2042 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2043 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2044 `popup_activated_flag' and `title'.
2045
479dfe87
PJ
2046 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2047
dff49fc8
PJ
2048 * emacs.c (main): Remove extra `;'.
2049
248ac615
PJ
2050 * atimer.h (struct atimer): Fix typos in a comment.
2051
2052 * atimer.c: Fix typo.
2053
af232c7d
PJ
2054 * Makefile.in: Fix typo.
2055
2056 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 2057
d876f455
MB
20582001-10-07 Miles Bader <miles@gnu.org>
2059
2060 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2061
0037e2f2
KR
20622001-10-07 Ken Raeburn <raeburn@gnu.org>
2063
b056f36d
KR
2064 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2065 Lisp_Object.
2066
0037e2f2
KR
2067 * lisp.h (Ffield_end): Declare.
2068
1a4372ef
GM
20692001-10-07 Gerd Moellmann <gerd@gnu.org>
2070
a4a74e8c
GM
2071 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2072
2073 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2074
2075 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2076
2077 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2078
1a4372ef
GM
2079 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2080 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2081
2082 * alloc.c (inhibit_garbage_collection): Simplify.
2083 (Fmemory_use_counts): Ditto.
2084
9985827f 2085 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
2086 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2087 most-negative-fixnum.
2088
9985827f 2089 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
2090 (FIXNUM_OVERFLOW_P): New macros.
2091
4650e362
MB
20922001-10-06 Miles Bader <miles@gnu.org>
2093
2094 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2095 scroll_bar_bottom_shadow_pixel fields.
2096 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2097 for the shadows, and tell the toolkit about them if we succeed.
2098 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2099 Free scroll-bar shadow colors.
2100 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2101 Free scroll-bar shadow colors when the background color changes.
2102 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2103 Initialize scroll-bar shadow-color fields.
2104
ace64e0a
GM
21052001-10-05 Gerd Moellmann <gerd@gnu.org>
2106
2107 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2108
ec66bdc7
MB
21092001-10-05 Miles Bader <miles@gnu.org>
2110
9985827f
SM
2111 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2112 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 2113 New functions (were in simple.el).
9985827f 2114 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
2115 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2116 (syms_of_minibuf): Initialize them.
2117
a0fb4492
GM
21182001-10-05 Gerd Moellmann <gerd@gnu.org>
2119
2120 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2121 (tiff_load): Install them as error and warning handler.
2122
0bcf87c1
AI
21232001-10-04 Andrew Innes <andrewi@gnu.org>
2124
2125 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2126 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 2127 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
2128 (x_to_w32_charset): Handle private format for unknown charsets.
2129 Handle wildcards in charset spec, by ignoring them.
2130 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2131 "*-" prefix from charset.
2132 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2133 handle the truncated font spec form constructed by font_list_1, so
2134 that we correctly identify the charset fields. Don't remove "*-"
2135 prefix from charset.
2136 (w32_list_synthesized_fonts): Fix argument to alloca.
2137
c89e4bc5
GM
21382001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2139
2140 * window.h (MINI_WINDOW_P): Use NILP.
2141
2142 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2143
2144 * termhooks.h (struct input_event): Use proper type for `kind'.
2145
21462001-10-04 Gerd Moellmann <gerd@gnu.org>
2147
2148 This handles unknown keysyms better than before. For example,
2149 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2150 Emacs formerly completely ignored F5. With the change, it derives
2151 a key symbol from the name of the X keysym, `ccaron' in this case.
2152 Reported by Martin Buchholz.
2153
2154 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2155 unknown keysyms.
2156
2157 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2158 that EVENT->code isn't a function key, use the keysym's name.
2159
21602001-10-04 Gerd Moellmann <gerd@gnu.org>
2161
2162 FOREACH is a macro that should make it easier to loop over Lisp
2163 lists with checks for cycles and proper lists.
2164
2165 * lisp.h (LIST_END_P, FOREACH): New macros.
2166
21672001-10-04 Gerd Moellmann <gerd@gnu.org>
2168
2169 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2170 called for a lost connection. Prevent dumping core in this case.
2171 Instead print the X error, and exit. On user request.
2172
2173 * xterm.c (error_msg): New variable.
2174 (x_fatal_error_signal): New function.
2175 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2176 as fatal_error_signal_hook around the call to XtCloseDisplay.
2177
2178 * emacs.c (fatal_error_signal_hook): New variable.
2179 (fatal_error_signal): Call that function.
2180
21812001-10-04 Gerd Moellmann <gerd@gnu.org>
2182
2183 With this, Emacs prints how much pure storage it will
2184 approximately need in case pure storage overflows while dumping.
2185
2186 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2187 New variables.
2188 (init_alloc_once): Initialize new variables.
2189 (PURE_POINTER_P): Use new variables.
2190 (pure_alloc): If pure storage overflows, allocate from the heap.
2191 (check_pure_size): New function.
2192 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2193
2194 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2195 (check_pure_size): Add prototype.
2196
2197 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2198
21992001-10-04 Gerd Moellmann <gerd@gnu.org>
2200
2201 This adds a post-gc-hook that's run with GC inhibited.
2202 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2203
2204 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2205 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2206 (Fgarbage_collect): Run post-gc-hook.
2207
22082001-10-04 Gerd Moellmann <gerd@gnu.org>
2209
2210 This adds `defvaralias' and `indirect-variable'. Changes not
2211 directly related to this feature are there to gain the same
2212 performance again as before variable aliases.
2213
2214 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2215 code to get and set symbol values, to take defvaralias into account.
2216
2217 (Note: the new `constant' bit-flag in symbols would make it
2218 possible to define arbitrary read-only variables, e.g. with
2219 `defconst'.)
2220
2221 Documentation is in lispref/variables.texi. Added to NEWS.
2222
2223 * lisp.h (enum symbol_interned): New enumeration.
2224 (struct Lisp_Symbol): Remove member `obarray', add
2225 `indirect_variable', `constant', and `interned'.
2226 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2227 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2228 (indirect_variable): Add prototype.
2229
2230 * print.c (print_preprocess, print_object): Test internedness of
2231 symbols differently.
2232
2233 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2234 bit-fields.
2235 (init_obarray): Likewise for t and nil.
2236
2237 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2238 (Fdefvaralias): New function.
2239 (specbind): Simplify the test if symbol is a constant.
2240 (syms_of_eval): Defsubr Fdefvaralias.
2241
2242 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2243 (Qcyclic_variable_indirection): New variable.
2244 (Fkeywordp): Check for internedness differently.
2245 (Fmakunbound): Simplify the test if symbol is a constant.
2246 (indirect_variable, Findirect_variable): New functions.
2247 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2248 aliased symbol.
2249 (let_shadows_buffer_binding_p): Check for variable aliases.
2250 (set_internal): Simplify the test if SYMBOL is a constant.
2251 If SYMBOL has a buffer-local value and is an alias, use the aliased
2252 symbol instead.
2253 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2254 Sindirect_variable.
2255
2256 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2257 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2258 set directly.
2259
2260 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2261
2262 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2263 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2264 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2265
ab952a4f
GM
22662001-10-04 Gerd Moellmann <gerd@gnu.org>
2267
2268 * Branch for 21.1.
b56ba8de 2269
ba88ff28
MB
22702001-10-03 Miles Bader <miles@gnu.org>
2271
2272 * callproc.c (syms_of_callproc): Explicitly state in the
2273 documentation for `process-environment' that earlier entries take
2274 precedence over later ones.
2275
ae1a9581
MB
22762001-10-02 Miles Bader <miles@gnu.org>
2277
2278 * textprop.c (Fnext_char_property_change)
2279 (Fprevious_char_property_change): Remove reference to non-existant
2280 argument OBJECT from doc-string.
2281
257e3f57
GM
22822001-10-01 Gerd Moellmann <gerd@gnu.org>
2283
2284 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2285 (try_window_id): Skip back over lines ending in a newline from a
2286 string.
2287
2288 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2289 New bit flag
2290
c1f29759
RS
22912001-10-01 Richard M. Stallman <rms@gnu.org>
2292
2293 * search.c (Freplace_match): Doc fix.
2294
c30dce3d
AI
22952001-09-28 Andrew Innes <andrewi@gnu.org>
2296
2297 * w32menu.c (set_frame_menubar): Take into account that
2298 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2299 <raeburn@gnu.org>.
2300
03be5931
EZ
23012001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2302
2303 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2304
75bec752
PJ
23052001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2306
2307 * s/gnu-linux.h: Fix a typo in comment.
2308
83100e0a
AS
23092001-09-28 Andreas Schwab <schwab@suse.de>
2310
2311 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2312 nocombreloc, in case -z combreloc is the default.
2313
a74b48cf
GM
23142001-09-28 Gerd Moellmann <gerd@gnu.org>
2315
2316 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2317 really going on here.
2318
09c4719e
SM
23192001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2320
2321 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2322
f7d5d963
EZ
23232001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2324
2325 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2326 utf-8, menu-bar, and latin-N.
2327 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2328 unconditionally now.
2329 (lisp): Add latin-N, since they are preloaded.
2330
9240e746
GM
23312001-09-27 Gerd Moellmann <gerd@gnu.org>
2332
14531065
GM
2333 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2334 to the left. Some cleanup.
2335
9240e746
GM
2336 * xdisp.c (display_mode_element): One more case where a string's
2337 multibyteness should be used for display.
2338
edd1e654
GM
23392001-09-26 Gerd Moellmann <gerd@gnu.org>
2340
b02439c8
GM
2341 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2342 reading at EOF.
2343
032906b1 2344 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 2345 of the only temporarily set echoing flag for deciding when
032906b1
GM
2346 the cancel echoing.
2347
2348 * keyboard.c (echo_kboard): Make externally visible.
2349
2350 * lisp.h (echo_kboard): Declare extern.
2351
cb617e7c 2352 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 2353 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
2354 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2355 this round of redisplay if make_cursor_line_fully_visible fails.
2356 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 2357 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
2358
2359 * dispextern.h (required_matrix_width, required_matrix_height):
2360 Add prototypes.
2361
09c4719e
SM
2362 * dispnew.c (required_matrix_width, required_matrix_height):
2363 New functions.
cb617e7c 2364 (allocate_matrices_for_window_redisplay)
09c4719e
SM
2365 (allocate_matrices_for_frame_redisplay: Use them.
2366 Remove parameters CH_DIM.
cb617e7c 2367
edd1e654
GM
2368 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2369 and selected_window to the frame of the window whose mode-lines
2370 are displayed, and to the window itself.
2371 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 2372 here.
edd1e654 2373
924b604c
GM
23742001-09-25 Gerd Moellmann <gerd@gnu.org>
2375
daba7643
GM
2376 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2377 the image cache under us.
2378
b7a22712 2379 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 2380 with a string value, use that string's multibyteness for displaying.
b7a22712 2381
ad648212
GM
2382 * keyboard.c (read_char): Don't clear a message for a switch-frame
2383 event. From Stefan Monnier <monnier@cs.yale.edu>.
2384
9f8531e5
GM
2385 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2386 version for after 21.1.
2387
2388 * xdisp.c (row_containing_pos): Make externally visible.
2389
2390 * dispextern.h (row_containing_pos): Add prototype.
2391
924b604c
GM
2392 * process.c (send_process): Disable composition if from_byte < 0.
2393 From Kenichi Handa <handa@etl.go.jp>.
2394
6f3f0db4
GM
23952001-09-24 Gerd Moellmann <gerd@gnu.org>
2396
c69c0ebc
GM
2397 * xterm.c (refreshicon): Function removed.
2398
d1182bc4
GM
2399 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2400
2401 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2402
2403 * xterm.c (toplevel): Remove includes in #if 0.
2404
6f3f0db4
GM
2405 * process.c (sigchld_handler) [LINUX]: Don't return from
2406 the signal handler at the end of the loop.
2407
59957f85
GM
24082001-09-21 Gerd Moellmann <gerd@gnu.org>
2409
09c4719e
SM
2410 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2411 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 2412
a0528984
EZ
24132001-09-21 Markus Rost <rost@math.ohio-state.edu>
2414
2415 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2416
db92b288
GM
24172001-09-20 Gerd Moellmann <gerd@gnu.org>
2418
3fed8ad5
GM
2419 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2420 since this function can be called during GC.
2421
db92b288
GM
2422 * callproc.c (Fcall_process): Handle errors from pipe(2).
2423 (child_setup): Delete code in #ifdef vipc.
2424
7121b85a
GM
24252001-09-19 Gerd Moellmann <gerd@gnu.org>
2426
72f62cb5
GM
2427 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2428 (display_mode_element): Display the string from decode_mode_spec
2429 depending on its multibyteness.
2430
a2697022
GM
2431 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2432
7121b85a
GM
2433 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2434
bfc97351
GM
24352001-09-18 Gerd Moellmann <gerd@gnu.org>
2436
c9063433
GM
2437 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2438 recursive_edit_unwind.
2439 (recursive_edit_unwind): Set kboard state according to
2440 SINGLE-KBOARD.
2441
3fbdba3e
GM
2442 * buffer.c (modify_overlay): Don't do nothing if START == END;
2443 This can still be a modification, for example when an overlay has
2444 a before-string or after-string.
2445 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2446 an overlay with before-string or after-string.
2447
1270031d
GM
2448 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2449 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2450
bfc97351
GM
2451 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2452 first_unchanged_at_end_row is in front of
2453 last_unchanged_at_beg_row. This code should be removed after the
2454 release of 21.1.
2455
d8a973aa
GM
24562001-09-17 Gerd Moellmann <gerd@gnu.org>
2457
e18c8b8d
GM
2458 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2459 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2460
d8a973aa
GM
2461 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2462 versions >= 2.95.
2463
ed7d6ba4
EZ
24642001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2465
2466 * dired.c (Ffile_attributes): Doc fix.
2467
551629f9
GM
24682001-09-14 Gerd Moellmann <gerd@gnu.org>
2469
2470 * fileio.c (Ffile_symlink_p): Fix last change.
2471
2472 * filelock.c (current_lock_owner): Fix last change.
2473
4c8c7926
GM
24742001-09-13 Gerd Moellmann <gerd@gnu.org>
2475
620c4704
GM
2476 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2477 take that to mean that the buffer is too small.
2478
81c3310d
GM
2479 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2480 that to mean that the buffer is too small.
2481
06fd3792
GM
2482 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2483 current buffer's multibyteness when discarding the iterator's
2484 stack.
2485
4c8c7926
GM
2486 * xfns.c (Fx_window_property): Handle case that property gets
2487 deleted between the two calls to XGetWindowProperty.
2488
9a72e4c1
GM
24892001-09-11 Gerd Moellmann <gerd@gnu.org>
2490
bd819d14 2491 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 2492
a41edd99
GM
2493 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2494 in addition to read-only.
2495
2496 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2497 to t in addition to read-only.
2498
2499 * lisp.h (Qinhibit_modification_hooks): Declare.
2500
2501 * insdel.c (Qinhibit_modification_hooks): New variable.
2502 (syms_of_insdel): Initialize and staticpro it.
2503
d4881c6a
GM
2504 * textprop.c (verify_interval_modification): Don't run
2505 modification-hooks if inhibit_modification_hooks.
2506
2507 * dispnew.c (set_window_cursor_after_update): Fix code
2508 finding glyph row containing cursor when cursor_in_echo_area
2509 is >= 0.
2510
9a72e4c1
GM
2511 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2512 (add_to_log): Use bcopy instead of strcpy.
2513 (init_from_display_pos): Use an explicit loop over bytes in
2514 overlay strings instead of calling index.
2515
f4a374a1
GM
25162001-09-10 Gerd Moellmann <gerd@gnu.org>
2517
300e57bd
GM
2518 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2519
2520 * dispnew.c (direct_output_for_insert): Don't change IT's
2521 stop_charpos to something in front of its current position.
2522
f4a374a1
GM
2523 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2524 `format'.
2525
7e4cbc91
RS
25262001-09-10 Richard M. Stallman <rms@gnu.org>
2527
2528 * frame.c (Fmouse_position): Doc fix.
2529
6afad91e
GM
25302001-09-07 Gerd Moellmann <gerd@gnu.org>
2531
2532 * xdisp.c (init_from_display_pos): Don't compare the result
2533 of calling index with NULL.
2534
f76e0368
GM
25352001-09-06 Gerd Moellmann <gerd@gnu.org>
2536
2537 * xfns.c (x_set_background_color): Don't change the colors
2538 of the X window of scroll bar widgets.
2539
9ead1b60
AI
25402001-09-05 Andrew Innes <andrewi@gnu.org>
2541
2542 * w32fns.c (w32_createwindow): Undo last change.
2543
c3b497b3
GM
25442001-09-05 Gerd Moellmann <gerd@gnu.org>
2545
08e1d6df
GM
2546 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2547
c3b497b3
GM
2548 * xdisp.c (string_buffer_position): Use *single_char_property*
2549 functions instead of the *single_property* functions.
b56ba8de 2550
8f860180
AI
25512001-09-04 Andrew Innes <andrewi@gnu.org>
2552
9a72e4c1
GM
2553 * w32term.c (w32_read_socket): Add more information to debugging
2554 output.
8f860180
AI
2555
2556 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2557 from Emacs frames, so that calls to GetClipBox in w32term.c
2558 correctly report when part of a frame is visible (including
2559 scrollbars, etc). This prevents repeated redrawing of frames when
2560 only a scrollbar is visible.
2561 (w32_wnd_proc): Add more frame information to debugging output.
2562
2ee1aa00
SM
25632001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2564
2565 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2566
e3b22517
GM
25672001-09-03 Gerd Moellmann <gerd@gnu.org>
2568
7e376260
GM
2569 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2570 help-echo for a string which doesn't have help-echo itself, use
2571 get-char-property to obtain the help-echo from the string's buffer
2572 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2573 have mouse-face, look ``under'' the string for mouse-face from an
2574 overlay.
2575 (fast_find_position): Add parameter STOP. In the final row, stop
2576 before glyphs having STOP as object. Don't consider glyphs that
2577 are not from a buffer.
2578
e3b22517
GM
2579 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2580
9a249bba
EZ
25812001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2582
2583 * fns.c (Fmd5): Doc fix.
2584
c9979669
GM
25852001-08-31 Gerd Moellmann <gerd@gnu.org>
2586
2587 * composite.c (update_compositions): Do nothing if
2588 inhibit-modification-hooks is set.
2589
9584e63a
GM
25902001-08-30 Gerd Moellmann <gerd@gnu.org>
2591
986ec8f2 2592 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 2593 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
2594 glyph matrices etc. in a core dump.
2595
92a25631
GM
2596 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2597 (syms_of_xdisp): Initialize them.
2598 (handle_single_display_prop): Don't change point, bind `object',
2599 `position', and `buffer-position' instead to the object having the
2ee1aa00 2600 `display' property, position in the object and position in the buffer.
92a25631 2601
9584e63a
GM
2602 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2603 of the buffer if REPLACE is non-nil.
2604
d38633a3
GM
26052001-08-29 Gerd Moellmann <gerd@gnu.org>
2606
2607 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2608
f4fccc1e
EZ
26092001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2610
2611 * w32term.c (x_set_glyph_string_background_width)
2612 (show_mouse_face): Track the last changes in xterm.c.
2613
eaaa65b0
GM
26142001-08-28 Gerd Moellmann <gerd@gnu.org>
2615
7b0870b2
GM
2616 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2617 string's background width so that multi-line mouse-face is drawn
2618 to the right edge of the window.
2619 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2620 glyphs.
2621
6b6e2422 2622 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 2623 before inserting/writing glyphs.
6b6e2422 2624
eaaa65b0
GM
2625 * xdisp.c (display_mode_element): Use string_byte_to_char to
2626 determine character positions in strings, use chars_in_text
2627 instead of strwidth.
2628 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2629 a matrix as parameter; this is easier to use from GDB.
2630
9ad62cf8
MB
26312001-08-28 Miles Bader <miles@gnu.org>
2632
2ee1aa00
SM
2633 * textprop.c (Fprevious_single_char_property_change)
2634 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 2635
32171635
GM
26362001-08-27 Gerd Moellmann <gerd@gnu.org>
2637
47d57b22
GM
2638 * fileio.c (Finsert_file_contents): Allocate, restore, and
2639 free composition data in the case of REPLACE not being nil.
2640
2641 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2642 there exist overlay strings with newlines at POS.
2643 (text_outside_line_unchanged_p): Return 0 if changes start at
2644 START and overlays exist at START. Likewise for END.
2645 (try_window_id): Give up if init_to_row_end returns 0.
2646
32171635
GM
2647 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2648 unconditionally.
2649
e1249666
GM
26502001-08-24 Gerd Moellmann <gerd@gnu.org>
2651
33954c45
GM
2652 * keymap.c (access_keymap): Return the cdr of the binding of
2653 a generic character instead of its definition (KEY . BINDING).
2654
e1249666
GM
2655 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2656 to 0 also in the REPLACE case.
2657
fb4c6c96
AC
26582001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2659
2660 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2661 open to determine whether file is readable (as for DOS_NT).
2662
59ecf80b
GM
26632001-08-23 Gerd Moellmann <gerd@gnu.org>
2664
2665 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2666 coding.type is coding_type_no_conversion or coding_type_raw_text,
2667 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2668 non-nil instead of just setting enable_multibyte_characters in the
2669 buffer to nil.
2670
40e33037
GM
26712001-08-22 Gerd Moellmann <gerd@gnu.org>
2672
374388c3
GM
2673 * dispextern.h (struct face_cache): Add member
2674 menu_face_changed_p.
2675
2676 * xfaces.c (menu_face_changed_default): New variable.
2677 (menu_face_changed_count): Variable removed.
2678 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2679 the menu_face_changed_default flag, otherwise set the FRAME's
2680 menu_face_changed_p flag if the `menu' face has been changed.
2681 Prevent calling set_font_frame_param if FRAME is t.
2682 (make_face_cache): Initialize cache's menu_face_changed_p
2683 from menu_face_changed_default.
2684 (realize_basic_faces): Look into the frame's face cache to
2685 determine if the menu appearance needs updating.
2686
40e33037
GM
2687 * keymap.c (access_keymap): Fix last change to not consider
2688 IDX when it has modifiers.
2689
859ea4b8
GM
26902001-08-21 Gerd Moellmann <gerd@gnu.org>
2691
2692 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2693 . BINDING) exists, where GENERIC-CHAR is the generic character of
2694 the charset of IDX, return BINDING unless there exists a binding
2695 for IDX itself.
2696
e8660d73
GM
26972001-08-16 Gerd Moellmann <gerd@gnu.org>
2698
cca1b1d7
GM
2699 * xrdb.c (SYSV): Don't define on Solaris 2.
2700 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2701
e8660d73 2702 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 2703 of the screen line, not text line, containing IT's current position.
e8660d73 2704
93aba6fc
GM
27052001-08-15 Gerd Moellmann <gerd@gnu.org>
2706
288d4e06
GM
2707 * window.c (window_scroll_pixel_based): Don't recenter if
2708 PT is partially visible in the window.
2709
3452efc2
SM
2710 * xterm.c (expose_window_tree, expose_window, expose_line):
2711 Return 1 when overwriting mouse-face.
82f053ab
GM
2712 (expose_frame): If mouse-face was overwritten, redo it.
2713
93aba6fc
GM
2714 * xfaces.c (x_update_menu_appearance): Don't call
2715 set_frame_menubar, let the next redisplay do it.
2716
858a55c1
AI
27172001-08-14 Andrew Innes <andrewi@gnu.org>
2718
2719 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2720 drawing glyph string.
2721
3a990b67
EZ
27222001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2723
2724 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2725 running HI-UX/MPP.
2726
04386463
GM
27272001-08-14 Gerd Moellmann <gerd@gnu.org>
2728
2729 * xfaces.c (x_update_menu_appearance): Save and restore value of
2730 interrupt_input_blocked.
2731
3e6385a4
GM
27322001-08-13 Gerd Moellmann <gerd@gnu.org>
2733
b0e619b4
GM
2734 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2735 a line start, move back to the line start.
3452efc2 2736
0de73d5a
GM
2737 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2738 exactly when a mini-buffer is active.
2739
3e6385a4
GM
2740 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2741 in units of 1/8 character on non window-system frames.
2742 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2743
d1b5f629
EZ
27442001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2745
2746 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2747 a doc string.
2748
eaa2319f
GM
27492001-08-09 Gerd Moellmann <gerd@gnu.org>
2750
8e3189f0
GM
2751 * keyboard.c (Vpre_help_message): New variable.
2752 (syms_of_keyboard): Initialize and staticpro it.
2753 (show_help_echo): Record current message before displaying a
2754 help-echo, and restore that message when clearing the help.
2755
eaa2319f
GM
2756 * xfns.c (x_create_im): Remove prototype.
2757
2758 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2759
2760 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 2761
eaa2319f
GM
27622001-08-08 Gerd Moellmann <gerd@gnu.org>
2763
2764 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 2765 windows whose height has changed, disable partially visible lines.
eaa2319f 2766
17fdcfc8
GM
27672001-08-07 Gerd Moellmann <gerd@gnu.org>
2768
22d01aed 2769 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 2770 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 2771
17fdcfc8
GM
2772 * xdisp.c (start_display): Don't try to determine the continuation
2773 lines width if lines are truncated. It's superfluous and leads to
2774 incorrect results if POS is not visible in the window after
2775 reseating the iterator at the previous line start.
2776
8e3fe78e
GM
27772001-08-06 Gerd Moellmann <gerd@gnu.org>
2778
2779 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2780
98a8938c
GM
27812001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2782
2783 * alloc.c (init_stack): Remove declaration.
2784
18f9986a
GM
27852001-08-03 Gerd Moellmann <gerd@gnu.org>
2786
5e1f85e0
GM
2787 * keyboard.c (read_key_sequence): Check that key is an integer
2788 before comparing it with quit_char.
2789 (add_command_key): Use larger_vector.
2790 (read_char_x_menu_prompt): Instead of converting symbol and
2791 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 2792 which cannot be confused with valid events.
5e1f85e0
GM
2793 (read_char): When reading from Vunread_command_events, check for
2794 events of the form (EVENT . disabled) instead of
2795 (EVENT . nil).
2796
18f9986a
GM
2797 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2798 a float, determine the max height from the frame's height.
2799
fbc7f2a6
GM
28002001-08-02 Gerd Moellmann <gerd@gnu.org>
2801
2802 * xdisp.c (redisplay_internal): Take message_cleared_p into
2803 account only if minibuf_level == 0.
2804
81b1a79d
GM
28052001-08-01 Gerd Moellmann <gerd@gnu.org>
2806
e5c60873
GM
2807 * xdisp.c (redisplay_internal): Add a check for the last
2808 displayed message.
3452efc2 2809
6e019995
GM
2810 * xdisp.c (message_cleared_p): New variable.
2811 (clear_message): Set message_cleared_p when clearing the current
2812 message.
2813 (redisplay_internal): Look at message_cleared_p to capture
2814 the case that the echo area should be cleared.
2815
308a74d8
GM
2816 * keyboard.c (command_loop_1): Fix spelling of
2817 resize_echo_area_exactly.
2818
3452efc2 2819 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
2820
2821 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2822
81b1a79d
GM
2823 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2824 current matrix when the window gets smaller.
2825
ada329e6
EZ
28262001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2827
2828 * print.c (strout): Cast the character passed to insert_char to
2829 unsigned char, to avoid sign extension when it is promoted to int.
2830
ed86208c
GM
28312001-07-31 Gerd Moellmann <gerd@gnu.org>
2832
2833 * fileio.c (Finsert_file_contents): Don't treat a return value
2834 of 0 from emacs_read as an IO error.
2835
6594ac22
GM
28362001-07-30 Gerd Moellmann <gerd@gnu.org>
2837
cef68af5
GM
2838 * keyboard.c (abs): New macro.
2839 (double_click_fuzz): New variable.
2840 (make_lispy_event): Use it to determine what makes a double-click.
2841 (syms_of_keyboard): DEFVAR_INT it.
2842
6594ac22
GM
2843 * xmenu.c (set_frame_menubar): Take into account that
2844 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2845 <raeburn@gnu.org>.
2846
75c5350a
GM
28472001-07-27 Gerd Moellmann <gerd@gnu.org>
2848
2849 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2850
2851 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2852 of row's visible height.
2853
2854 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
2855 deal with the first overlay string having an image `display' property.
2856 (try_window_reusing_current_matrix, compute_line_metrics):
2857 Fix computation of row's visible height for the case that part of the
75c5350a
GM
2858 row is invisible above and part of the row is at the same time
2859 invisible below the window.
2860
ac49effe
GM
28612001-07-26 Gerd Moellmann <gerd@gnu.org>
2862
2863 * xfns.c (x-show-tip): Doc fix.
3452efc2 2864
ac49effe
GM
2865 * xfns.c (Vx_max_tooltip_size): New variable.
2866 (syms_of_xfns): DEFVAR_LISP it.
2867 (Fx_show_tip): Set frame's window_width to the width of the
2868 window. Use a maximum tooltip size specified by
2869 Vx_max_tooltip_size, if that has valid contents.
2870 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 2871
8c3b00cb
AI
28722001-07-26 Andrew Innes <andrewi@gnu.org>
2873
2874 * w32term.c (x_display_list): New variable.
2875 (w32_term_init): Set it.
2876
2877 * w32term.h (x_display_list): New extern.
2878
16098288
GM
28792001-07-26 Gerd Moellmann <gerd@gnu.org>
2880
2881 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
2882 is non-nil, instead of when redisplaying_p is non-zero.
2883 See comment there.
16098288
GM
2884 (mark_window_display_accurate_1): Add an assertion.
2885
64c5be50
GM
28862001-07-25 Gerd Moellmann <gerd@gnu.org>
2887
e743f599
GM
2888 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2889
563b384d
GM
2890 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2891 events so that we get a chance of processing expose events.
2892
64c5be50
GM
2893 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2894
296808a5
GM
28952001-07-24 Gerd Moellmann <gerd@gnu.org>
2896
2897 * xfns.c (valid_image_p): Protect better against invalid image
2898 specifications. Previous code could signal an error.
2899
5247262a
GM
29002001-07-23 Gerd Moellmann <gerd@gnu.org>
2901
3452efc2 2902 * indent.c (current_column): Fix column computation in the
f1004faf
GM
2903 presence of display table entries.
2904 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2905
dd42b31a
GM
2906 * dispnew.c (adjust_glyph_matrix): In the optimization for
2907 windows whose height has changed, use the new window height
2908 to compute which rows to invalidate.
2909
9e5a7f2a
GM
2910 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2911 (MAX_10_EXP): New macro.
2912 (Fformat): Use it.
2913
5247262a
GM
2914 * coding.c (code_convert_region): Handle the multibyte case if
2915 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2916
177ab8ce
GM
29172001-07-20 Gerd Moellmann <gerd@gnu.org>
2918
6e07c0a5
GM
2919 * dispextern.h (struct face): Change type of `stipple' to
2920 int; it's an ID.
2921
177ab8ce
GM
2922 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2923
b5b80599
GM
29242001-07-19 Gerd Moellmann <gerd@gnu.org>
2925
4e2a256b
GM
2926 * dispnew.c (update_window): Don't set the cursor at the end
2927 of the update if display update has been paused.
2928
3452efc2 2929 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 2930
c1fd9232
KR
29312001-07-18 Ken Raeburn <raeburn@gnu.org>
2932
2933 * fns.c (Fset_char_table_default): Check that a charset is defined
2934 before checking its dimension.
2935
928a85c1
KR
29362001-07-17 Ken Raeburn <raeburn@gnu.org>
2937
2938 * coding.c (setup_coding_system): Don't do any designation based
2939 on reg_bits if charset is not yet defined.
2940
fb4c6c96 2941 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
2942 pointer, using eassert.
2943
de11c1ea
GM
29442001-07-17 Gerd Moellmann <gerd@gnu.org>
2945
3452efc2
SM
2946 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2947 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 2948
467f1209
GM
29492001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2950
2951 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2952
c3d6be34
GM
29532001-07-16 Gerd Moellmann <gerd@gnu.org>
2954
c1d61a7d
GM
2955 * fileio.c (unwind_read): Function removed.
2956 (read_non_regular, read_non_regular_quit): New functions.
2957 (Finsert_file_contents): When reading from non-regular files,
2958 arrange to catch a `quit' and terminate the loop. Rearrange
2959 code so that a `quit' when reading from a regular file doesn't
2960 insert text in the buffer.
2961
c3d6be34
GM
2962 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2963 Clear faces afterwards.
2964 (clear_font_table): Take a x_display_info parameter. Don't free
2965 fonts being the default font of any frame on the given display.
2966
e06aa1f9
GM
29672001-07-13 Gerd Moellmann <gerd@gnu.org>
2968
2969 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2970 instead of CHAR_STRING which can signal an error.
2971
2972 * charset.c (char_to_string_1): Extracted from char_to_string.
2973 Return -1 instead of signaling an error.
2974 (char_to_string): Use it.
2975
2976 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2977
176c92e6
SM
29782001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2979
2980 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2981 is t, don't try to append anything to it.
2982
1c56232f
EZ
29832001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2984
2985 * dired.c (file_name_completion): Pass dp->d_name to
2986 Fstring_match, not elt, which is always nil here.
2987
1d2b2268
GM
29882001-07-12 Gerd Moellmann <gerd@gnu.org>
2989
2990 * xselect.c (x_decline_selection_request): Handle errors
2991 caused by receivers that have vanished.
2992
2993 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2994 ignoring events on foreign windows in #if 0. Always dispatch
2995 the event after checking it with x_handle_property_notify.
2996
2997 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
2998 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2999 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
3000 (toplevel): Add prototypes for file-local functions.
3001 (x_atom_to_symbol): Remove DPYINFO parameter.
3002
fe5a0162
SM
30032001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3004
3005 * w32menu.c (menubar_selection_callback, w32_menu_show):
3006 Initialize `entry' to nil.
3007 (w32_dialog_show): Remove unused `save_wv' variable.
3008 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3009
a777242c
GM
30102001-07-11 Gerd Moellmann <gerd@gnu.org>
3011
8ee5b6a3
GM
3012 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3013
d0e2444e
GM
3014 * fileio.c (unwind_read): Print a message when discarding inserted
3015 text or switching the buffer to unibyte. Change parameter.
3016 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 3017
a777242c
GM
3018 * fileio.c (unwind_read): New function.
3019 (Finsert_file_contents): Record it as unwind-function for
3020 the case that reading is interrupted by C-g.
3021
ae794295
GM
30222001-07-10 Gerd Moellmann <gerd@gnu.org>
3023
fe5a0162 3024 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
3025 update when scrolling_window returns 0.
3026
6b05fae3
GM
3027 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3028
3029 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 3030 for the case that x_decode_color signals an error.
6b05fae3 3031
ae794295
GM
3032 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3033
bb6e8cee
GM
30342001-07-09 Gerd Moellmann <gerd@gnu.org>
3035
3036 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3037 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3038 around ioctls.
3039
36b40a8a
EZ
30402001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3041
24b97d4b
EZ
3042 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3043 doc string line for dos-timezone-offset.
3044
36b40a8a
EZ
3045 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3046 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
3047 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3048 line for dos-unsupported-char-glyph.
36b40a8a
EZ
3049
3050 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3051
0967b4b0
GM
30522001-07-05 Gerd Moellmann <gerd@gnu.org>
3053
f25cfe53
GM
3054 * sound.c: Include Emacs' header files with #include "...".
3055
0967b4b0
GM
3056 * eval.c (specbind): Additionally record the buffer that was
3057 current when a buffer-local or frame-local variable was bound.
3058
c347a1c3
GM
30592001-07-04 Gerd Moellmann <gerd@gnu.org>
3060
3061 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3062 to unibyte characters in unibyte buffers.
3063
6332ca8a
GM
30642001-07-03 Gerd Moellmann <gerd@gnu.org>
3065
38472d44
GM
3066 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3067 the frame on the binding stack. Change format of entries for
3068 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3069 (unbind_to): Handle unbinding a frame-local variable.
3070
6332ca8a 3071 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 3072 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
3073 (dump_glyph_row): Print row's continuation_lines_width.
3074 (try_window_id): Take the shortcut if ZV is visible in the
3075 window, but there are actually no changes at ZV.
3076
63d1b174
GM
30772001-07-02 Gerd Moellmann <gerd@gnu.org>
3078
4c175203
GM
3079 * xterm.h (x_free_dpy_colors): Add prototype.
3080
3081 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3082 right number of arguments.
3083
0b54ce28
GM
3084 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3085 ($(lwlibdir)TAGS): New target.
4c175203 3086 (TAGS): Fix dependency list.
0b54ce28 3087
63d1b174
GM
3088 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3089 with input blocked.
3090
d827466c
GM
30912001-06-30 Gerd Moellmann <gerd@gnu.org>
3092
3093 * emacs.c (main): Remove extern declaration for sys_nerr, which
3094 isn't used and causes a compilation error with GCC 3.0 on
3095 FreeBSD 4.3.
3096
b5cb1ada
GM
30972001-06-27 Gerd Moellmann <gerd@gnu.org>
3098
a5d3ec3f 3099 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 3100 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
3101 (toplevel): Include <signal.h> and syssignal.h.
3102
b5cb1ada
GM
3103 * sound.c (vox_configure, vox_close): Turn off atimers
3104 around ioctls.
3105
d9bad487
GM
31062001-06-26 Gerd Moellmann <gerd@gnu.org>
3107
fdbb67fe
GM
3108 * keyboard.c (read_char) <non_reread>: Record the previous idle
3109 start time before calling timer_stop_idle.
3110 (read_char) <reread_first>: After processing a help-echo event,
3111 restore the previous idle start time.
3112
d9bad487
GM
3113 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3114 the start of invisible text.
3115 (setup_for_ellipsis): New function.
3116 (next_overlay_string): After all overlay strings have been
3117 processed, display an ellipsis if necessary.
3118 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3119 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3120
3121 * dispextern.h (struct iterator_stack_entry): Add member
3122 display_ellipsis_p.
3123
2b9c25e0
GM
31242001-06-25 Gerd Moellmann <gerd@gnu.org>
3125
80de57df
GM
3126 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3127 on the value of the wait-for-wm frame parameter.
3128
3129 * xterm.h (struct x_output): Add member wait_for_wm.
3130
3131 * xfns.c (Qwait_for_wm): New variable.
3132 (x_frame_parms): Add entry for `wait-for-wm".
3133 (x_set_wait_for_wm): New function.
3134 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3135 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3136
2b9c25e0
GM
3137 * xdisp.c (try_window_id) <all changes below window end>: Don't
3138 take this shortcut if ZV is visible in the window.
3139 (try_window_id): When checking for window start being in changed
3140 text, don't check that the buffer's size has changed.
3141
f772775c
RS
31422001-06-23 Richard M. Stallman <rms@gnu.org>
3143
3144 * minibuf.c (Fcompleting_read): Doc fix.
3145
fa9090b8
GM
31462001-06-19 Gerd Moellmann <gerd@gnu.org>
3147
3148 * composite.c (Ffind_composition_internal): Accept ZV
3149 and a string's end position as POS.
3150
f6f1beba
GM
31512001-06-18 Gerd Moellmann <gerd@gnu.org>
3152
3153 * composite.c (Ffind_composition_internal): Check POS
3154 for validity.
3155
0ae83348
EZ
31562001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3157
3158 * editfns.c (Fmessage_box): If the frame is not under a window
3159 system, output the message in the echo area.
3160
e4cdc335
RS
31612001-06-14 Richard M. Stallman <rms@gnu.org>
3162
3163 * xdisp.c (try_window_id): When EOB is visible, don't treat
3164 insertion at EOB as if it were "off the bottom of the screen."
3165
a55a5f3c
AI
31662001-06-11 Andrew Innes <andrewi@gnu.org>
3167
3168 * w32proc.c (create_child): Add new parameter is_gui_app.
3169 (w32_executable_type): Add new parameter is_gui_app.
3170 (sys_spawnve): Use it.
3171 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3172 SIGQUIT. This matches better how the signals are interpreted by
3173 MSVC compiled programs.
3174 (syms_of_ntproc): Update docstring.
3175
1b85dc1c
SM
31762001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3177
3178 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3179 well otherwise note_mouse_highlight might optimize away highlighting
3180 if we pass over that same overlay again.
3181
b75f8eab
EZ
31822001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3183
3184 * lread.c (Fload): Document that the argument is run via
3185 substitute-in-file-name.
3186
94843cc1
GM
31872001-05-31 Gerd Moellmann <gerd@gnu.org>
3188
b14659e6
GM
3189 * Makefile.in (bootstrap-doc): New target.
3190 (bootstrap-emacs): Depend on it.
3191
0894672f
GM
3192 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3193 auto-save-list-file-name when shutting down Emacs, because
3194 creating the directory might signal an error, and leaves
3195 Emacs in a strange state.
3196
94843cc1
GM
3197 * term.c: (tty_cursor_hidden): New variable.
3198 (update_begin): Don't call tty_hide_cursor. Clean up.
3199 (update_end, set_terminal_window, set_scroll_region): Clean up.
3200 (ring_bell, reset_terminal_modes): Clean up.
3201 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3202 on tty_cursor_hidden.
3203 (write_glyphs): Call tty_hide_cursor.
3204
db3a49a6
SM
32052001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3206
3207 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3208
8bd189fb
GM
32092001-05-30 Gerd Moellmann <gerd@gnu.org>
3210
6f1be3b9
GM
3211 * xfns.c (enum image_value_type): New enumerator
3212 IMAGE_STRING_OR_NIL_VALUE.
3213 (parse_image_spec): Handle it.
3214 (xbm_format, pbm_format): Use it for :foreground and :background.
3215 (xbm_load, pbm_load): Check for nil color names.
3216
8bd189fb
GM
3217 * xterm.c (note_mouse_highlight): If an overlapping overlay
3218 exists, but we find that we highlight the same overlay as before,
3219 don't do the highlighting again.
3220
7bdba03c
GM
32212001-05-29 Gerd Moellmann <gerd@gnu.org>
3222
4c329aa8
GM
3223 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3224 Protect unibyte strings created by replacing their multibyte
3225 equivalents in menu_items.
3226
e15e2828
GM
3227 * keymap.c (Fsingle_key_description): NUL-terminate the string
3228 buffer before calling build_string.
3229
7bdba03c
GM
3230 * callproc.c (Fcall_process): Deal with decode_coding returning
3231 CODING_FINISH_INCONSISTENT_EOL.
3232
89c8dc6c
GM
32332001-05-28 Gerd Moellmann <gerd@gnu.org>
3234
db3a49a6 3235 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
3236 an item's name with its key description in case the description
3237 is a multibyte string.
3238
3239 * keymap.c (Fsingle_key_description): Create a multibyte string
3240 only if necessary.
3241
eb04d6cd
GM
3242 * macros.c (Fstart_kbd_macro): Doc fix.
3243
8bd6307f
GM
3244 * xterm.c (cursor_in_mouse_face_p): New function.
3245 (x_draw_stretch_glyph_string): Use it to choose a different GC
3246 when drawing a cursor within highlighted text.
3247
e26c4089
GM
3248 * editfns.c (char_property_eq): Put in #if 0.
3249
3250 * indent.c (string_display_width): Put in #if 0.
3251
3252 * lread.c (Fload): Remove unused label.
3253
89c8dc6c
GM
3254 * termcap.c (speeds): Put in #if 0.
3255
9a1211f2
GM
32562001-05-18 Gerd Moellmann <gerd@gnu.org>
3257
29148a3f
GM
3258 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3259
9a1211f2
GM
3260 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3261 transformation matrix by 10.
3262
09393d07
GM
32632001-05-16 Gerd Moellmann <gerd@gnu.org>
3264
3265 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3266 only if it's equal to the former foreground pixel color.
db3a49a6 3267 (x_set_foreground_color, x_set_background_color)
09393d07
GM
3268 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3269
460e6bae
GM
32702001-05-16 Dave Love <fx@gnu.org>
3271
3272 * insdel.c (signal_before_change, signal_after_change): Consider a
3273 local change hook which changes the buffer.
99c78ce8
GM
3274
3275 * process.c (read_process_output): Don't call signal_after_change
3276 and update_compositions after insert_from_string_before_markers.
3277
dbcf3c03
GM
32782001-05-16 Gerd Moellmann <gerd@gnu.org>
3279
a90b3d3c
GM
3280 * xfaces.c (split_font_name): Use the right field when
3281 checking for `[...]' syntax.
3282
1b7818b4
GM
3283 * buffer.c (copy_overlays): New function.
3284 (clone_per_buffer_values): Use it.
3285
3286 * buffer.h (OVERLAY_PLIST): New macro.
3287
9bae8781
GM
3288 * keymap.c (Fsingle_key_description): Replace a build_string with
3289 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3290
dbcf3c03
GM
3291 * fontset.c (Ffontset_info): Check that face is non-null
3292 before accessing its fields.
3293
8a1ae4dd
GM
32942001-05-15 Gerd Moellmann <gerd@gnu.org>
3295
18a0a39e
GM
3296 * keyboard.c (read_key_sequence): Prevent generating a fake
3297 prefix key twice.
3298
e335b66a
GM
3299 * xfaces.c (split_font_name): Handle `[...]' for the right
3300 font name fields.
3301
8a1ae4dd
GM
3302 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3303 of CCL_STAT_INVALID_CMD.
3304
3cf80731
SM
33052001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3306
33568849
SM
3307 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3308 in <var> has no default value yet.
3309
3cf80731
SM
3310 * xfaces.c (try_alternative_families): First try the FAMILY.
3311 And if nothing is found in the end, try again with scalable fonts.
3312 (try_font_list): Let try_alternative_families do a bit more of
3313 the work. Only use FAMILY if it is not nil.
3314 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3315
933b0249
GM
33162001-05-14 Gerd Moellmann <gerd@gnu.org>
3317
58e5af83
GM
3318 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3319 pointer shape when show_mouse_face has already done it.
33568849 3320
58e5af83 3321 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
3322 full-width rows.
3323
7b16a6bf
GM
3324 * xfaces.c (split_font_name): Make sure to leave the loop
3325 with the right value of `i'.
3cf80731 3326
933b0249
GM
3327 * xfaces.c (split_font_name): Handle matrix transformations
3328 in the pixel and point size fields of XLFD font names.
3329 (xlfd_point_size): Likewise.
3330
dddcbf00
EZ
33312001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3332
3cf80731 3333 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
3334 (x_to_w32_font): Add prototype.
3335
7689ef0b
EZ
3336 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3337 redefining, to avoid compiler warnings.
3338
e7c15bba
EZ
3339 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3340
dddcbf00
EZ
3341 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3342 (w32_get_bdf_glyph): Cast between unsigned char and char when
3343 passing arguments to subroutines, to shut up compiler warnings.
3344 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3345 GET_HEX_VAL.
3346
3347 * xfaces.c: Include keyboard.h before frame.h, not after it.
3348
3349 * widget.c: Include keyboard.h before frame.h.
3350
3351 * w32term.h (struct image, struct face): Forward declaration, to
3352 avoid compiler warnings.
3353
7bd2d083
GM
33542001-05-11 Gerd Moellmann <gerd@gnu.org>
3355
47e72862
GM
3356 * keyboard.c (read_key_sequence): Don't modify events when
3357 generating fake prefix keys (mode-line, scroll-bar, ...) since
3358 this prevents proper processing of such events when pushed back
3359 into unread-command-events.
3360
dd5f324b
GM
3361 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3362 actually redrawn. Make the function static.
3363 (note_mouse_highlight): Fix a case where the mouse cursor
3364 was changed back to the text cursor.
3365
3366 * xterm.h (clear_mouse_face): Remove prototype.
3367
d88a79d4
GM
3368 * xdisp.c (try_window_id): Fix the fix and set the right
3369 window_end_vpos.
3370
3371 * xdisp.c (try_window_id): Fix computation of window end in the
3372 case that lines were deleted at the end of the window. Add some
3373 more debug_method_adds.
0416532f 3374
7bd2d083
GM
3375 * xfaces.c (try_alternative_families): New function.
3376 (try_font_list): Use it. If ATTRS specifies a family, check
3377 fonts from that family first.
3378 (choose_face_font): Remove code setting the family part of
3379 the pattern to nil.
3380
23fca891
GM
33812001-05-10 Gerd Moellmann <gerd@gnu.org>
3382
ff9aa2ca
GM
3383 * xdisp.c (try_window_id): Fix case of all changes before
3384 the window start.
7b2654b5 3385
23fca891
GM
3386 * xdisp.c (try_window_id): Add some xasserts.
3387
e9726794
GM
33882001-05-09 Gerd Moellmann <gerd@gnu.org>
3389
3390 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3391
9e53a675
GM
33922001-05-09 Dave Love <fx@gnu.org>
3393
3394 * xdisp.c (GIVE_UP): Fix for K&R C.
3395
0d487c52
GM
33962001-05-09 Gerd Moellmann <gerd@gnu.org>
3397
fe88d421
GM
3398 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3399
0d487c52
GM
3400 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3401 back to the text cursor shape without need.
3402
1e9fc92e
GM
34032001-05-07 Gerd Moellmann <gerd@gnu.org>
3404
a2a6232e
GM
3405 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3406
3407 * dispextern.h (inverse_video): Declare extern.
3408
1e9fc92e
GM
3409 * keyboard.c (delete_kboard): Handle the case that selected_frame
3410 has been deleted in the course of x_connection_closed.
3411
12949a7f
EZ
34122001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3413
7b2654b5
SM
3414 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3415 Fix the change from 2001-04-30.
12949a7f 3416
2fa2f461
GM
34172001-05-03 Gerd Moellmann <gerd@gnu.org>
3418
a779d213
GM
3419 * xfns.c (file_dialog_unmap_cb): New function.
3420 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3421 where a dialog is closed via the window manager.
3422
7b2654b5 3423 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
3424 the window start or all below the window end mostly rewritten.
3425 (redisplay_window): Move the tests if try_window_id is
3426 applicable to try_window_id.
3427 (GIVE_UP): New macro.
3428
3356df63
GM
34292001-05-02 Gerd Moellmann <gerd@gnu.org>
3430
a39202f6 3431 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
3432 currently being updated, mark the frame garbaged.
3433 Fix computation of rows intersecting the exposed rectangle.
a39202f6 3434 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 3435
3356df63
GM
3436 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3437 again if it has already been drawn.
3438
a9d2fd1d
SM
34392001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3440
3441 * syntax.c (update_syntax_table): Check that oldi has the same
3442 properties as old_prop before deciding not to invalidate.
3443
c95fc5f1
GM
34442001-04-30 Gerd Moellmann <gerd@gnu.org>
3445
a9793e45
GM
3446 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3447 read-only text that is so because of text properties.
3448
c95fc5f1 3449 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 3450 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
3451 windows that are components of a Lucid menu bar.
3452
5a5d9185
GM
34532001-04-27 Gerd Moellmann <gerd@gnu.org>
3454
3455 * term.c (turn_on_face): Fix reverse video handling on terminals
3456 that don't support colors.
3457
ba973f7a
GM
34582001-04-26 Gerd Moellmann <gerd@gnu.org>
3459
3460 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3461 a non-buffer.
3462
8c56a983
GM
34632001-04-25 Gerd Moellmann <gerd@gnu.org>
3464
a728644c
GM
3465 * term.c (toggle_highlight): New function.
3466 (turn_on_face): Change handling of reverse video.
3467
7b2654b5
SM
3468 * process.c (wait_reading_process_input):
3469 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 3470
bfd8410f
GM
3471 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3472 of the number of overlays to check.
3473
be2488ca
GM
3474 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3475
8c56a983
GM
3476 * xdisp.c (try_window_id): Fix a case where window_end_pos
3477 and window_end_bytepos were not adjusted.
3478
522d42f7
GM
34792001-04-23 Gerd Moellmann <gerd@gnu.org>
3480
3481 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3482 zero instead of -1.
3483
78c1afb6
EZ
34842001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3485
a9d2fd1d
SM
3486 * process.c (wait_reading_process_input) [!subprocesses]:
3487 Don't reference waiting_for_user_input_p, it's not defined in the
3488 branch without async subprocesses support.
78c1afb6 3489
a2fab450
GM
34902001-04-19 Gerd Moellmann <gerd@gnu.org>
3491
a122a38e
GM
3492 * keyboard.c (delete_kboard): Prevent a dangling reference
3493 from current_kboard to KB, which is freed.
3494
a9d2fd1d
SM
3495 * process.c (wait_reading_process_input):
3496 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
3497 read_key_sequence aware of buffer changes from under it.
3498
0f8d6dc7
GM
34992001-04-18 Gerd Moellmann <gerd@gnu.org>
3500
eeffb293
GM
3501 * xfaces.c (Qscalable_fonts_allowed): New variable.
3502 (realizing_basic_faces_p): Removed.
2fa2f461
GM
3503 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3504 removed.
eeffb293 3505 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
3506 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3507 for scalable-fonts-allowed to t.
eeffb293 3508
0f8d6dc7
GM
3509 * fileio.c (Finsert_file_contents): If the file size returned from
3510 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 3511 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 3512
eec2d1de
EZ
35132001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3514
3515 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3516 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3517 (__memalign_hook): Make the two prototypes consistent.
3518
f4f480bd
GM
35192001-04-17 Gerd Moellmann <gerd@gnu.org>
3520
3521 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3522 matrix of mini-windows.
3523
52283633
SM
35242001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3525
3526 * intervals.c (find_interval): Don't rebalance during signal handling.
3527
ec2423c9
GM
35282001-04-11 Gerd Moellmann <gerd@gnu.org>
3529
30cb0001 3530 * fns.c: Include blockinput.h.
52283633 3531
ec2423c9
GM
3532 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3533
719d83ad
GM
35342001-04-10 Gerd Moellmann <gerd@gnu.org>
3535
60f8d735
GM
3536 * fns.c (Fcompare_strings): Fix return values.
3537
afffeb57
GM
3538 * window.c (window_scroll): Change the meaning of N to mean
3539 N screen-fulls or N lines.
3540 (window_scroll_pixel_based, window_scroll_line_based)
3541 (scroll_command, Fscroll_other_window): Change accordingly.
3542
52283633
SM
3543 * window.c (window_scroll_pixel_based, Frecenter):
3544 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
3545 height of the window.
3546
3547 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3548 instead of using it.last_visible_y for the height of the window.
52283633 3549
719d83ad 3550 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 3551 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
3552
3553 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
3554 able to write to hidden and system files. From Dan Holmsand
3555 <dan@eyebee.com>.
719d83ad 3556
8ddf3ee1
GM
3557 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3558 Holmsand <dan@eyebee.com>.
719d83ad 3559
522ed7fb
GM
35602001-04-09 Gerd Moellmann <gerd@gnu.org>
3561
9170e5d4
GM
3562 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3563
522ed7fb
GM
3564 * window.c (window_internal_height): Return 1 less if the
3565 window has a header line.
3566
3567 * xdisp.c (try_window_id): When scrolling on a terminal, take
3568 the change of window_internal_height into account.
3569
ceeb3d7d
EZ
35702001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3571
3572 * gmalloc.c (align): If the argument SIZE would overflow
3573 __malloc_ptrdiff_t, fail right away.
3574
63685b9d
GM
35752001-04-06 Gerd Moellmann <gerd@gnu.org>
3576
3577 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3578 Make sure the tooltip is completely visible.
3579 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3580
3581 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3582
3583 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3584
3ffb33bb
DL
35852001-04-06 Dave Love <fx@gnu.org>
3586
52283633
SM
3587 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3588 Fix test of `from'.
3ffb33bb 3589
869fb12c
GM
35902001-04-06 Gerd Moellmann <gerd@gnu.org>
3591
52283633 3592 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 3593
869fb12c
GM
3594 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3595
441bf856
GM
35962001-04-05 Gerd Moellmann <gerd@gnu.org>
3597
4d664b04
GM
3598 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3599
52283633 3600 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 3601
30ca89f5
GM
3602 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3603 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3604
3605 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3606 shell widget's position only if it is non-null.
3607
52283633
SM
3608 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3609 Set f->output_data.x->widget to null after destroying it.
30ca89f5 3610
81a81c0f
GM
3611 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3612 FILENAME to bring it in synch with the documentation.
3613
441bf856
GM
3614 * xfaces.c (realizing_basic_faces_p): Renamed from
3615 realize_default_face_p.
3616 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3617 (realize_default_face): Don't set the flag.
3618
702a1e8e
GM
36192001-04-04 Gerd Moellmann <gerd@gnu.org>
3620
1013f4e3
GM
3621 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3622
52283633
SM
3623 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3624
1013f4e3
GM
3625 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3626 the buffer that was used for echoing.
3627
702a1e8e
GM
3628 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3629 (first_font_matching): Removed unused function.
3630 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3631 (may_use_scalable_font_p): Remove parameter FONT; rename
3632 parameter NAME to FONT.
3633 (x_face_list_fonts): Fix missing bounds check.
3634 (realizing_default_face_p): New variable.
3635 (realize_default_face): Set and clear that flag.
3636 (x_face_list_fonts): When called during the realization of the
3637 default face, and no matching fonts are found when ignoring
3638 scalable fonts and fonts matching a regexp from
3639 face-ignored-fonts, try without ignoring fonts.
3640
f9dbcda4
GM
36412001-04-03 Gerd Moellmann <gerd@gnu.org>
3642
ad18ffb1
GM
3643 * xfns.c (postprocess_image): New function.
3644 (lookup_image): Call it for all image types except PostScript.
3645 (x_kill_gs_process): Call postprocess_image.
3646
f9dbcda4
GM
3647 * xterm.c (x_use_underline_position_properties): New variable.
3648 (x_draw_glyph_string): Use it.
3649 (syms_of_xterm): DEFVAR_BOOL it.
3650
651f03b6
GM
36512001-04-02 Gerd Moellmann <gerd@gnu.org>
3652
3653 * xterm.c (x_alloc_nearest_color_1): New function.
3654 (x_alloc_nearest_color): Use it.
3655 (x_color_cells): Take a Display as argument, instead of a frame.
3656 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3657 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3658 (x_initialize): Register cvt_string_to_pixel as resource converter
3659 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3660
73d75a62
GM
36612001-03-30 Gerd Moellmann <gerd@gnu.org>
3662
b2046df8
GM
3663 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3664 (set_iterator_to_next): If a string from a display property ends,
3665 consider the case that this might also be the end of an
3666 overlay string having the display property.
3667
52283633 3668 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 3669
87d8eba4
GM
3670 * xdisp.c (reseat_to_string): Undo last change.
3671
73d75a62
GM
3672 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3673 matrix of a window when the header line changes, when
3674 new rows are allocated, or when the width changes.
3675
911a2406
EZ
36762001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3677
52283633 3678 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 3679
aea51abe
EZ
36802001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3681
3682 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3683 deprecated.
3684
176bc847
GM
36852001-03-29 Gerd Moellmann <gerd@gnu.org>
3686
ed31fabf
GM
3687 * data.c (Fsubr_interactive_form): New function.
3688 (syms_of_data): Defsubr it.
3689
176bc847
GM
3690 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3691 (live_float_p, live_misc_p): Return 1 only if the offset of the
3692 pointer in its block is >= 0.
3693
e59d0e9d
GM
36942001-03-28 Paul Eggert <eggert@twinsun.com>
3695
3696 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3697 microseconds calcuation. Avoid double-rounding problem.
3698 In doc string, warn that the result is approximate.
3699
f827b862
GM
37002001-03-28 Gerd Moellmann <gerd@gnu.org>
3701
30a3f61c
GM
3702 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3703 bind `inhibit-eval-during-redisplay' to t.
3704
3705 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3706
3707 * xdisp.c (inhibit_eval_during_redisplay)
3708 (Qinhibit_eval_during_redisplay): New variables.
3709 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3710 don't eval, return nil instead.
3711 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3712 Initialize Qinhibit_eval_during_redisplay.
3713
e719f5ae
GM
3714 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3715 the iterator's multibyte_p flag.
3716
deb2613a
GM
3717 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3718 instead of setting it to zero; it's incremented for each frame
3719 where the menu face is changed.
3720
52283633
SM
3721 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3722 change bottom shadow accordingly.
3723
3724 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
3725 intersections here.
3726 (expose_window): Do it here instead.
52283633 3727 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 3728
f827b862
GM
3729 * bytecode.c (BYTE_CODE_QUIT): New macro.
3730 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3731
4bde0ebb
GM
37322001-03-27 Gerd Moellmann <gerd@gnu.org>
3733
607ec83c
GM
3734 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3735 Give up if matrix starts in an ellipsis.
3736 (init_from_display_pos): Do nothing if POS doesn't specify
3737 a dpvec_index but the iterator has such a position.
3738
0245398f
GM
3739 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3740
aba25348
GM
3741 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3742 x/y position is (0, 0) after destroying the menu bar, restore
3743 its original position.
3744
4bde0ebb
GM
3745 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3746 (init_from_display_pos): Use it.
3747 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3748
8cdb267e
GM
37492001-03-26 Gerd Moellmann <gerd@gnu.org>
3750
3751 * xdisp.c (try_window_id): Undo last change.
3752
9948db79
EZ
37532001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3754
3755 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3756
3757 * buffer.c (syms_of_buffer): Doc fix.
3758
2eddf899
GM
37592001-03-26 Gerd Moellmann <gerd@gnu.org>
3760
3761 * xfaces.c (x_update_menu_appearance): Use local variable
3762 popup_path for setting font resources.
3763
6c145d35
EZ
37642001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3765
6a65b1b5
EZ
3766 * frame.c (Fframe_list): Don't reference tip_frame if
3767 HAVE_WINDOW_SYSTEM is not defined.
3768
6c145d35
EZ
3769 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3770 <wl@gnu.org>.
3771
d74c1900
GM
37722001-03-25 Gerd Moellmann <gerd@gnu.org>
3773
20fbd925
GM
3774 * xdisp.c (init_from_display_pos): Test invisible property
3775 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 3776
927c5b3b
GM
3777 * xdisp.c (redisplay_internal) <update one window>: Make sure
3778 last_arrow_position and last_arrow_string are set.
3779
d74c1900
GM
3780 * frame.c (Fframe_list): Don't return a tooltip frame.
3781
091f8878
GM
37822001-03-23 Gerd Moellmann <gerd@gnu.org>
3783
52283633
SM
3784 * xdisp.c (mark_window_display_accurate_1): New function,
3785 extracted from mark_window_display_accurate.
3786 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
3787 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3788 (mark_window_display_accurate): Use it.
3789 (redisplay_internal): Use it for the selected window.
3790 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3791 for the selected frame.
3792
ac90c44f
GM
3793 * xdisp.c Use make_number, for readability.
3794 (try_window_id): Disable rows below the window end.
3795 (try_window_reusing_current_matrix): Use cursor_row_p.
3796 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3797 of rows.
3798 (init_from_display_pos): If POS specifies a position in a display
3799 vector, maybe get the iterator set up for that ellipsis.
43c09969 3800
091f8878
GM
3801 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3802
991786dd
EZ
38032001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3804
3805 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3806
6c29b43c
GM
38072001-03-23 Gerd Moellmann <gerd@gnu.org>
3808
3809 * xfaces.c (x_update_menu_appearance): Use a different path
3810 for Lucid popup menus.
3811
d8731202
SM
38122001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3813
3814 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3815
3816 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3817 (string_buffer_position): Use `make_number'.
3818
f61a541b
GM
38192001-03-22 Gerd Moellmann <gerd@gnu.org>
3820
3c9e997b
GM
3821 * xfaces.c (x_update_menu_appearance): Renamed from
3822 x_set_menu_face_resources. Use different resources for popups.
3823
3824 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3825 (GC_CHECK_STRING_BYTES): Don't define.
3826
364cd450
GM
3827 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3828 Removed, together with subroutines.
3829 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 3830 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 3831
d8731202
SM
3832 * dispextern.h (x_set_menu_resources_from_menu_face):
3833 Remove prototype.
364cd450 3834
d8731202 3835 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
3836 Remove calls to x_set_menu_resources_from_menu_face.
3837
d8731202
SM
3838 * xfaces.c (xm_set_menu_resources_from_menu_face):
3839 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
3840
3841 * xmenu.c: Include widget.h.
3842 (single_submenu): Return int. Some cleanup.
3843 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3844
140330de
GM
38452001-03-21 Gerd Moellmann <gerd@gnu.org>
3846
3847 * xterm.c (x_update_window_end): Handle overwritten mouse face
3848 also for tool bar windows.
3849 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3850 DRAW is DRAW_IMAGE_RAISED.
3851
1741905c
GM
38522001-03-20 Gerd Moellmann <gerd@gnu.org>
3853
fa88947e
GM
3854 * print.c (syms_of_print): Doc fixes.
3855
1741905c
GM
3856 * fns.c (Fmd5): Doc fix.
3857
ade0bee1
GM
38582001-03-19 Gerd Moellmann <gerd@gnu.org>
3859
357e7376
GM
3860 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3861 Clear area of the frame not occupied by the scroll bar.
3862
c2c097cc
GM
3863 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3864 tip frame's root window buffer to *tip* right after creating
3865 the frame.
3866
ade0bee1
GM
3867 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3868 is an integer don't have to be for space characters.
3869
88c6e37e
GM
38702001-03-16 Gerd Moellmann <gerd@gnu.org>
3871
52283633
SM
3872 * indent.c (current_column, current_column_1, Fmove_to_column)
3873 (compute_motion): Handle characters from display vectors differently.
88c6e37e 3874
c62eed76
KH
38752001-03-15 Kenichi Handa <handa@etl.go.jp>
3876
3877 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3878 drawing glyph string.
3879
c899e7e6
GM
38802001-03-15 Gerd Moellmann <gerd@gnu.org>
3881
d0bbfc99
GM
3882 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3883 (command_loop_1): Undo last change.
3884
03d1a189
GM
3885 * xterm.c (fast_find_position): Return the correct vpos.
3886
c899e7e6 3887 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 3888 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
3889 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3890 Call store_symval_forwarding with BUF null.
3891 (set_internal): Call store_symval_forwarding with the BUF
3892 parameter passed to set_internal. Formerly, the value was always
3893 set in the current buffer; the buffer recorded in specbind for
3894 this case wasn't used.
3895 (arith_driver): Reindent.
3896
52283633
SM
3897 * buffer.c (swap_out_buffer_local_variables):
3898 Call store_symval_forwarding with BUF null.
c899e7e6
GM
3899
3900 * lisp.h (store_symval_forwarding): Change prototype.
3901
3902 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3903
57ac7c81
GM
39042001-03-14 Gerd Moellmann <gerd@gnu.org>
3905
697617d9
GM
3906 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3907 FOR_DELETION. Avoid resizing the mini-window of the selected
3908 frame if FOR_DELETION is set.
3909 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3910 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3911 signature.
3912
3913 * window.c (Fset_window_configuration): Change call to
3914 do_switch_frame to new format.
3915
3916 * keyboard.c (quit_throw_to_read_char): Change call to
3917 do_switch_frame to new format.
3918
3919 * lisp.h (do_switch_frame): Change prototype.
3920
819dce0f
GM
3921 * frame.c (Fframe_parameters): In the `buffer-list' frame
3922 parameter, store the buffer list of FRAME, not the list of the
3923 selected frame.
3924
57ac7c81
GM
3925 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3926 box just because the glyph row's full_width_p flag is set.
3927
65008712
GM
39282001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3929
3930 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3931 skip the padding blanks inserted in extend_face_to_end_of_line,
3932 before checking for trailing whitespace.
3933
159cf431
GM
39342001-03-13 Gerd Moellmann <gerd@gnu.org>
3935
52283633 3936 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
3937 Remove special handling for LessTif/Motif.
3938 (toplevel): Don't include Xm/Xm.h.
3939
52283633
SM
3940 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3941 Remove workaround code for LessTif; it doesn't work anymore.
3942
2564ea1b 3943 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 3944 Xm/ScrollBarP.h.
afcdc0a1 3945
52283633
SM
3946 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3947 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
3948 contemporary LessTif.
3949
52283633
SM
3950 * xfaces.c (xm_set_menu_resources_from_menu_face):
3951 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 3952
159cf431
GM
3953 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3954 removing button grabs.
3955
c6f7429a
KH
39562001-03-13 Kenichi Handa <handa@etl.go.jp>
3957
cb82d767
KH
3958 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3959 and clip-large-size-font as obsolete.
3960
c6f7429a
KH
3961 * lread.c (read_multibyte): Check the validity of multibyte
3962 sequence. If invalid, return the first byte.
3963
760cefb5
GM
39642001-03-12 Gerd Moellmann <gerd@gnu.org>
3965
3966 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3967 before running the command; timer functions or process
3968 filters may have set it.
3969
5141f9d0
EZ
39702001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3971
3972 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3973 Doc fix.
3974
b6a15240
GM
39752001-03-12 Gerd Moellmann <gerd@gnu.org>
3976
3977 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3978 to sprintf.
3979
95522746
GM
39802001-03-09 Gerd Moellmann <gerd@gnu.org>
3981
db14cfc5
GM
3982 * dispextern.h (string_buffer_position): Add prototype.
3983
52283633 3984 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
3985 (single_display_prop_string_p): New functions.
3986
3987 * xterm.c (note_mouse_highlight): If there's no help-echo on
3988 a string, look at the buffer text ``under'' it.
3989
3990 * keyboard.c (make_lispy_event): Add string info to the event,
3991 analogous to what's done on mode lines.
3992 (read_key_sequence): For a click on a string, consider `local-map'
3993 and `keymap' of that string.
3994
52283633
SM
3995 * keyboard.c (make_lispy_event, make_lispy_movement):
3996 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
3997
3998 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3999
4000 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4001 POS; return void.
4002
95522746
GM
4003 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4004 flags argument to emacs_open; it seems to conflict with O_EXCL.
4005
898a399d
KH
40062001-03-09 Kenichi Handa <handa@etl.go.jp>
4007
28cd4910
KH
4008 * composite.h (struct composition): Change types of members;
4009 glyph_len to unsigned, width to unsigned short.
898a399d 4010
4cdf6a6c
AI
40112001-03-08 Andrew Innes <andrewi@gnu.org>
4012
4013 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4014 menu titles.
4015
129004d3
GM
40162001-03-08 Gerd Moellmann <gerd@gnu.org>
4017
221dd3e7
GM
4018 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4019 instead of nil.
4020
52283633 4021 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
4022 help-echo in strings.
4023 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4024 (fast_find_string_pos): New function.
4025
52283633
SM
4026 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4027 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
4028
4029 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4030 Handle `mouse-face'.
4031
4032 * dispextern.h (face_at_string_position): Change prototype.
4033
52283633 4034 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 4035
129004d3
GM
4036 * keyboard.c (make_lispy_event): Avoid generating drag events
4037 if the mouse hasn't actually moved to another buffer position.
52283633 4038
80c8ab8c
DL
40392001-03-08 Dave Love <fx@gnu.org>
4040
129004d3 4041 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 4042
989521fd
GM
40432001-03-08 Gerd Moellmann <gerd@gnu.org>
4044
4045 * process.c (Fset_process_window_size): Fix a typo.
4046
bb5c338d
KH
40472001-03-08 Kenichi Handa <handa@etl.go.jp>
4048
4049 * coding.c (detect_coding_sjis): Do more rigid check.
4050 (detect_coding_big5): Likewise.
4051 (decode_coding_sjis_big5): Likewise.
4052 (Fdetect_coding_region): Call detect_coding_system with tailing
4053 anchor byte `\0' for more rigid detection.
52283633 4054 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
4055 (Fdetect_coding_string): Likewise.
4056
8b8f9197
SM
40572001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4058
4059 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4060 a string before extracting its data.
4061
3bdf2660
GM
40622001-03-07 Gerd Moellmann <gerd@gnu.org>
4063
4064 * window.c (Frecenter): Rewrite code handling negative values
4065 of ARG on graphical frames.
4066
40672001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4068
4069 * window.c (displayed_window_lines): If W->start is outside the
4070 accessible portion of the buffer, call start_display with BEGV or
4071 ZV instead of W->start.
4072
471f86b9
GM
40732001-03-07 Gerd Moellmann <gerd@gnu.org>
4074
2ab62c6c
GM
4075 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4076
471f86b9
GM
4077 * process.c (Fset_process_filter): Don't crash if the input
4078 file descriptor of PROCESS is closed.
4079 (Fset_process_window_size): Likewise.
4080
101922c3
GM
40812001-03-06 Kenichi Handa <handa@etl.go.jp>
4082
4083 * xterm.c (XTflash): Make the timeout of select shorter, and call
4084 select repeatedly until the desired time expires.
4085
45d051a7
GM
40862001-03-06 Gerd Moellmann <gerd@gnu.org>
4087
4088 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4089
4090 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4091
4092 * lisp.h (Vwindow_list): Declare extern.
4093
8f372c46
EZ
40942001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4095
4096 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4097
f16a7aa5
GM
40982001-03-06 Gerd Moellmann <gerd@gnu.org>
4099
157ae273
GM
4100 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4101 to detect a case where we have to highlight a different region
4102 despite not having left the currently highlighted region.
4103 Set mouse_face_overlay in the x_display_info.
45d051a7 4104 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
4105
4106 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4107
4108 * buffer.c (mouse_face_overlay_overlaps): New function.
4109
4110 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4111 (Qmouse_face): Declare extern.
4112
f16a7aa5
GM
4113 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4114 if face_change_count is non-zero.
4115
827afcac
KH
41162001-03-06 Kenichi Handa <handa@etl.go.jp>
4117
4118 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4119 that the source is unibyte.
4120
14c7242e
DL
41212001-03-05 Dave Love <fx@gnu.org>
4122
827afcac 4123 * xterm.c (XTmouse_position): Fix typo.
14c7242e 4124
c28b847b
GM
41252001-03-05 Gerd Moellmann <gerd@gnu.org>
4126
4127 * minibuf.c (read_minibuf): Clean up the binding stack if
4128 called noninteractively.
4129
b86644f2
KH
41302001-03-05 Kenichi Handa <handa@etl.go.jp>
4131
4132 * coding.c (syms_of_coding): Docstring modified.
4133
203682cc 41342001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
4135
4136 * charset.c (char_to_string): If a single byte char has modifier
4137 bits that can't be reflected to the character code, ignore them
45d051a7 4138 instead of signaling an error.
b86644f2 4139
e30bd7b7
EZ
41402001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4141
4142 * s/msdos.h: Update copyright notice.
4143
4144 * dosfns.h: Update copyright notice.
4145
4146 * dosfns.c: Update copyright notice.
4147
4148 * msdos.c: Update copyright notice.
4149
b52b65bd
GM
41502001-03-02 Gerd Moellmann <gerd@gnu.org>
4151
4152 * xterm.c (glyph_rect): New function.
4153 (XTmouse_position): Use it to raise the threshold for mouse
4154 movement event generation.
4155
53c4b1e6
EZ
41562001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4157
4158 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4159 specifies (reverse . t), reverse the initial screen colors.
4160 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
4161 but we are reversing the colors, set bg_set, not fg_set.
4162 Likewise for setting background-color and reversing: set fg_set.
4163 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
4164 in effect.
4165
4166 * xfaces.c (Finternal_set_lisp_face_attribute)
4167 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4168 parameters alist.
4169
f964b4d7
GM
41702001-03-02 Gerd Moellmann <gerd@gnu.org>
4171
ef53d75e
GM
4172 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4173 to a single slash in the middle of file names.
4174
52283633 4175 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
4176 Accept only alphanumeric time zone names.
4177
f964b4d7
GM
4178 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4179 or width area.
4180 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4181 a widget to zero height.
52283633 4182
c3c45f65
GM
41832001-03-01 Gerd Moellmann <gerd@gnu.org>
4184
4185 * window.c (Fwindow_end): Call move_it_past_eol only if
4186 ending up on a partially visible line.
4187
028d739a
DL
41882001-03-01 Dave Love <fx@gnu.org>
4189
4190 * ccl.c (Fccl_execute): Doc fix.
4191
57c5889c
GM
41922001-03-01 Gerd Moellmann <gerd@gnu.org>
4193
35f59f6b
GM
4194 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4195 of the tool bar before calling x_figure_window_size.
4196
f84ff02c
GM
4197 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4198 NULL after destroying it, otherwise XTread_socket can access a
4199 destroyed widget when input is unblocked.
4200
8b8f9197 4201 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 4202
57c5889c
GM
4203 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4204 same name as before, although there was a change in fontsets.
4205
224227d1
KR
42062001-02-28 Ken Raeburn <raeburn@gnu.org>
4207
4560730a
KR
4208 * lisp.h (Fframe_parameter): Declare.
4209
224227d1 4210 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 4211 Lisp_Object.
224227d1 4212
ece93c02
GM
42132001-02-28 Gerd Moellmann <gerd@gnu.org>
4214
11ef99b9
GM
4215 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4216 NULL instead.
4217
4218 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4219 NULL instead.
4220
ece93c02
GM
4221 * alloc.c (toplevel): Include process.h.
4222 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4223 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4224 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
4225 (allocate_vector, allocate_hash_table, allocate_window)
4226 (allocate_frame, allocate_process, allocate_other_vector):
4227 New functions.
ece93c02
GM
4228 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4229 (mark_maybe_pointer): New function.
52283633 4230 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
4231 remain and not Lisp_Objects.
4232 (min_heap_address, max_heap_address): New variables.
4233 (mem_find): Return MEM_NIL if START is below min_heap_address or
4234 above max_heap_address.
4235 (mem_insert): Compute min_heap_address and max_heap_address.
4236
4237 * process.c (make_process): Use allocate_process.
4238
4239 * frame.c (make_frame): Use allocate_frame.
4240
4241 * window.c (make_window, make_dummy_parent): Use allocate_window.
4242 (Fcurrent_window_configuration): Use allocate_other_vector.
4243
4244 * lisp.h (allocate_vectorlike): Remove prototype.
4245 (allocate_vector, allocate_other_vector, allocate_frame)
4246 (allocate_window, allocate_process, allocate_hash_table):
4247 Add prototypes.
4248
4249 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4250 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4251
063af457
KH
42522001-02-27 Kenichi Handa <handa@etl.go.jp>
4253
4254 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4255 treat the produced bytes as a valid multibyte sequence.
4256
4257 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
4258 (ccl_driver) <CCL_WriteMultibyteChar2>:
4259 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
4260 <ccl_finish>: Set ccl->eight_bit_control properly.
4261
4262 * ccl.h (struct ccl_program): New member eight_bit_control.
4263
f58c6494
SM
42642001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4265
4266 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4267 accessible_keymaps_char_table.
4268 (accessible_keymaps_char_table): Obey `is_metized'.
4269 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4270 Lisp_Object.
4271
c596c392
GM
42722001-02-26 Gerd Moellmann <gerd@gnu.org>
4273
4274 * dispnew.c: Check HAVE_TERM_H before including term.h.
4275
425de386
AI
42762001-02-24 Andrew Innes <andrewi@gnu.org>
4277
4278 * makefile.w32-in: Update copyright notice.
4279
2ba11bbd
SM
42802001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4281
4282 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4283
66c56ed1
KH
42842001-02-24 Kenichi Handa <handa@etl.go.jp>
4285
4c1593ce
KH
4286 * Makefile.in (lisp): Add international/utf-8.elc.
4287
66c56ed1
KH
4288 * fontset.c (Fnew_fontset): Fix handling of the case that an
4289 element of FONTLIST is a cons of family and registry.
4290
796ead7e
JR
42912001-02-23 Jason Rumney <jasonr@gnu.org>
4292
4293 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4294 to height unconditionally.
4295
4296 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 4297 background face to the end of the drawing area in the text area, only.
796ead7e
JR
4298 (x_insert_glyphs): Call window_box_left to obtain the left
4299 x-coordinate of the area to shift.
4300
4301 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4302 safe_run_hooks.
4303
f6839838
AI
43042001-02-22 Andrew Innes <andrewi@gnu.org>
4305
52283633 4306 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
4307 ($(BLD)\dispnew.obj):
4308 ($(BLD)\editfns.obj):
4309 ($(BLD)\fileio.obj):
4310 ($(BLD)\filelock.obj):
4311 ($(BLD)\keyboard.obj):
4312 ($(BLD)\w32proc.obj):
4313 ($(BLD)\process.obj):
4314 ($(BLD)\sysdep.obj): Ditto.
4315
4316 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4317 header files.
52283633
SM
4318 ($(BLD)/dispnew.$(O)):
4319 ($(BLD)/editfns.$(O)):
4320 ($(BLD)/fileio.$(O)):
4321 ($(BLD)/filelock.$(O)):
4322 ($(BLD)/keyboard.$(O)):
4323 ($(BLD)/w32proc.$(O)):
4324 ($(BLD)/process.$(O)):
f6839838
AI
4325 ($(BLD)/sysdep.$(O)): Ditto.
4326
c224f70b
GM
43272001-02-22 Gerd Moellmann <gerd@gnu.org>
4328
51695746
GM
4329 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4330 at the start of the function, check that the \n in it->c is
4331 from the iterator's current position.
52283633 4332
a61b7058
GM
4333 * xdisp.c (handle_single_display_prop): Add parameter
4334 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4335 properties which replace the display of text with something else.
4336 (handle_display_prop): Call handle_single_display_prop with
4337 additional argument saying if we already replaced text display
4338 with something else. Use AREF.
52283633 4339 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
4340 (decode_mode_spec_coding): Use AREF and ASIZE.
4341
3473f362
GM
4342 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4343 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4344 * vmstime.h: Files removed.
52283633 4345
2bb58df3
GM
4346 * unexencap.c, unexfx2800.c: Files removed.
4347
c224f70b
GM
4348 * dispnew.c (direct_output_for_insert): Give up if we are showing
4349 a message or just cleared the message because we might need to
4350 resize the echo area window or display an empty echo area.
4351
ffc9ff0c
GM
43522001-02-21 Gerd Moellmann <gerd@gnu.org>
4353
0528abe1
GM
4354 * xdisp.c (redisplay_internal): Do the
4355 mark_window_display_accurate after all windows have been
4356 redisplayed because this call resets flags in buffers which are
4357 needed for proper redisplay.
4358
52283633
SM
4359 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4360 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
4361 the old names.
4362
52283633
SM
4363 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4364 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4365
4366 * msdos.h (struct x_output): Rename busy_window to
4367 hourglass_window, busy_p to hourglass_p.
4368
52283633
SM
4369 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4370 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4371
4372 * xfns.c: Rename everything containing *busy_cursor* and similar
4373 to *hourglass*.
4374 (syms_of_w32fns): Rename x-busy-pointer-shape to
4375 x-hourglass-pointer-shape, display-busy-cursor to
4376 display-hourglass, busy-cursor-delay to hourglass-delay.
4377
4378 * w32fns.c: Rename everything containing *busy_cursor* and similar
4379 to *hourglass*.
4380 (syms_of_w32fns): Rename x-busy-pointer-shape to
4381 x-hourglass-pointer-shape, display-busy-cursor to
4382 display-hourglass, busy-cursor-delay to hourglass-delay.
4383
4384 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4385 of its busy_p flag.
4386
4387 * dispextern.h (start_hourglass, cancel_hourglass)
4388 (display_hourglass_p): Renamed from *busy_cursor*.
4389
ab2c5f0a
GM
43902001-02-20 Gerd Moellmann <gerd@gnu.org>
4391
d17e49a8
GM
4392 * keyboard.c (read_char): When an event from unread-command-events
4393 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4394
fa97adf6
GM
4395 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4396 equal to the current buffer.
4397
ab2c5f0a
GM
4398 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4399 nil, otherwise we're left with truncate_lines t when a message
4400 is printed with message-truncate-lines bound to t.
4401
aeac019e
GM
44022001-02-19 Gerd Moellmann <gerd@gnu.org>
4403
c8bc6f65
GM
4404 * window.c (Fmove_to_window_line): Undo last change.
4405 (displayed_window_lines): Call line_bottom_y to determine
4406 the line's bottom position.
4407
4408 * dispextern.h (line_bottom_y): Add prototype.
4409
52283633 4410 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
4411 (pos_visible_p): Use it.
4412
980a2d69
GM
4413 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4414 set redisplaying_p to 0 here instead of in Frecursive_edit.
4415 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4416 set redisplaying_p.
4417
52283633 4418 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
4419 New variables.
4420 (syms_of_xdisp): Initialize new variables.
4421 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4422 Specbind `inhibit-menubar-update' when updating the menu bar.
4423
65048e97
GM
4424 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4425 safe_run_hooks.
4426
4427 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4428 safe_run_hooks.
4429
a57c4026
GM
4430 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4431 is null.
4432
aeac019e
GM
4433 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4434 to the start of the file.
4435
76846b31
GM
44362001-02-16 Gerd Moellmann <gerd@gnu.org>
4437
f3f053f3 4438 * window.c (set_window_buffer): Fix last change.
52283633 4439
f3f053f3
GM
4440 * window.c (set_window_buffer): Set window's vscroll to 0.
4441
dad75588
GM
4442 * window.c (coordinates_in_window): Increase width of area
4443 where the vertical line can be dragged.
4444
c220b753
GM
4445 * xterm.c (x_set_glyph_string_background_width): Extend the
4446 background face to the end of the drawing area in the text
4447 area, only.
4448
c56b1c1b
GM
4449 * xdisp.c (handle_single_display_prop): Set iterator's position
4450 to where the `display' property starts, like for images.
4451 (dump_glyph): New function.
4452 (dump_glyph_row): Use it. Dump info about marginal areas.
4453
4454 * dispnew.c (direct_output_for_insert): Recognize more cases where
4455 glyphs can be written instead of being inserted.
4456
4457 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4458 the left x-coordinate of the area to shift.
4459
76846b31
GM
4460 * dired.c (directory_files_internal): Set result list to nil
4461 before retrying.
4462
0fc71a77
KH
44632001-02-15 Kenichi Handa <handa@etl.go.jp>
4464
4465 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4466 invalid multibyte sequence, treat *SRC as a character of
4467 eight-bit-graphic.
4468
25078b54
EZ
44692001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4470
4471 * textprop.c (Fset_text_properties): Doc fix.
4472
8399f8a0
GM
44732001-02-15 Gerd Moellmann <gerd@gnu.org>
4474
4475 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4476
9a2a6f73
DL
44772001-02-14 Dave Love <fx@gnu.org>
4478
4479 * coding.c: Doc and message fixes.
4480
bf853fee
AI
44812001-02-14 Andrew Innes <andrewi@gnu.org>
4482
4483 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4484 Emacs frame above the screen size.
4485
78c663d8
GM
44862001-02-14 Gerd Moellmann <gerd@gnu.org>
4487
4488 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4489
7cc9f69f
GM
44902001-02-13 Gerd Moellmann <gerd@gnu.org>
4491
0a411995
GM
4492 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4493 case that TO ends up beyond ZV after running before-change-functions.
4494
5ddc1b75
GM
4495 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4496 the selected window if it is showing the buffer in question.
4497
7cc9f69f
GM
4498 * dired.c (directory_files_internal): Initialize errno.
4499 (toplevel): Include errno.h.
4500
2e6621ca
GM
45012001-02-13 Kenichi Handa <handa@etl.go.jp>
4502
4503 * xfaces.c (best_matching_font): New parameter width_ratio.
4504 Multiply avgwidth by width_ratio.
4505 (choose_face_font): Call best_matching_font with width_ratio
4506 calculated from the column width of C.
4507
60222d69
AI
45082001-02-12 Andrew Innes <andrewi@gnu.org>
4509
4510 The following changes are to draw box lines inside characters area
4511 if line-width is negative.
52283633 4512
60222d69
AI
4513 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4514 face->box_line_width is negative.
4515 (x_produce_stretch_glyph): Likewise.
4516 (x_produce_glyphs): Likewise.
4517 (x_estimate_mode_line_height): Likewise.
4518 (x_draw_glyph_string_background): Likewise.
4519 (x_draw_glyph_string_foreground): Likewise.
4520 (x_draw_composite_glyph_string_foreground): Likewise.
4521 (x_draw_glyph_string_box): Likewise.
4522 (x_draw_image_foreground): Likewise.
4523 (x_draw_image_relief): Likewise.
4524 (x_draw_image_foreground_1): Likewise.
4525 (x_draw_image_glyph_string): Likewise.
4526
9804b846
KH
45272001-02-09 Kenichi Handa <handa@etl.go.jp>
4528
4529 The following changes are to draw box lines inside characters area
4530 if line-width is negative.
52283633 4531
9804b846
KH
4532 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4533 face->box_line_width is negative.
4534 (x_produce_stretch_glyph): Likewise.
4535 (x_produce_glyphs): Likewise.
4536 (x_estimate_mode_line_height): Likewise.
4537 (x_draw_glyph_string_background): Likewise.
4538 (x_draw_glyph_string_foreground): Likewise.
4539 (x_draw_composite_glyph_string_foreground): Likewise.
4540 (x_draw_glyph_string_box): Likewise.
4541 (x_draw_image_foreground): Likewise.
4542 (x_draw_image_relief): Likewise.
4543 (x_draw_image_foreground_1): Likewise.
4544 (x_draw_image_glyph_string): Likewise.
4545
4546 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4547 and :line-width can be negative.
52283633 4548 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 4549
49be9f70
JR
45502001-02-09 Jason Rumney <jasonr@gnu.org>
4551
4552 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4553 characters the same as ASCII and latin-1.
4554 (x_display_and_set_cursor): Check for the focus frame's selected
4555 window instead of selected_window.
4556 (x_after_update_window_line): Don't clear if frame's internal
4557 border width is zero.
4558 (x_new_font): Don't change a tooltip's size.
4559 (w32_initialize): Set char_ins_del_ok to 1.
4560
4561 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4562 (x_set_font): If font hasn't changed, avoid recomputing
4563 faces and other things.
52283633
SM
4564 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4565 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
4566 (x_create_tip_frame): Prevent changing the tooltip's
4567 background color by specifying a color for the default font
4568 in .Xdefaults.
4569 (Qcancel_timer): New variable.
4570 (syms_of_w32fns): Initialize and staticpro it.
4571 (Fx_hide_tip, Fx_show_tip): Use it.
4572 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4573 the timer.
4574 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4575
4576 * w32.c (init_environment): Duplicate local string before putenv.
4577
555e35d2
SZ
45782001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4579
4580 * charset.c (Fstring): A typo.
4581
19c92c94
KH
45822001-02-09 Kenichi Handa <handa@etl.go.jp>
4583
e47a1c33
KH
4584 * charset.c (Fstring): If all arguments are less than 256, return
4585 a unibyte string.
4586
4587 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4588 return a unibyte string.
4589
19c92c94
KH
4590 * coding.c (code_convert_region): After detecting a coding, if
4591 nothing found, set coding->composing to COMPOSITION_NO.
4592 (decode_coding_string): Likewise.
4593
d8e675f5
SM
45942001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4595
4596 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4597 to avoid overflow.
4598
bd503487
KH
45992001-02-07 Kenichi Handa <handa@etl.go.jp>
4600
4601 * charset.c (parse_str_to_multibyte): New function.
4602
4603 * charset.h (parse_str_to_multibyte): Extern it.
4604
4605 * print.c (print_string): If we are going to print a unibyte
4606 string into a multibyte buffer, convert the string to multibyte by
4607 str_to_multibyte.
4608
a8370d72
AI
46092001-02-06 Andrew Innes <andrewi@gnu.org>
4610
4611 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4612 been created. It seems we can get sent window messages such as
4613 WM_ERASEBKGND before we properly update a frame.
4614
c363a1d6
GM
46152001-02-06 Gerd Moellmann <gerd@gnu.org>
4616
4617 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4618 Avoid some unnecessary cursor positioning.
4619
a08332c0
GM
46202001-02-05 Gerd Moellmann <gerd@gnu.org>
4621
52283633 4622 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
4623 (LFACE_AVGWIDTH): New macro.
4624 (LFACEP): Use AREF.
4625 (check_lface_attrs): Check LFACE_AVGWIDTH.
4626 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4627 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4628 (merge_face_vectors): Check LFACE_AVGWIDTH.
4629 (Finternal_make_lisp_face): Use AREF.
4630 (xm_set_menu_resources_from_menu_face)
4631 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4632 (Finternal_lisp_face_empty_p): Use AREF.
4633 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4634 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4635 Compare average widths..
4636 (best_matching_font): Arrange for comparing average widths.
4637
52283633
SM
4638 * dispextern.h (enum lface_attribute_index):
4639 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4640
5cb3c8d4
DL
46412001-02-05 Dave Love <fx@gnu.org>
4642
4643 * puresize.h: Revert last change following loadup.el change.
4644
193fba87
AI
46452001-02-05 Andrew Innes <andrewi@gnu.org>
4646
4647 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4648 invocation of temacs, to work with Windows 2000.
4649 (bootstrap-emacs): Ditto.
4650
e16f52ce
GM
46512001-02-05 Gerd Moellmann <gerd@gnu.org>
4652
7a58ab59
GM
4653 * xterm.c (x_display_and_set_cursor): Check for the focus
4654 frame's selected window instead of selected_window.
4655
e89aaabd
GM
4656 * xdisp.c (try_scrolling): If point is in the line below the
4657 window, make sure to move the iterator at least a canonical
4658 char height down.
4659
52283633 4660 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 4661
789ce875
KH
46622001-02-05 Kenichi Handa <handa@etl.go.jp>
4663
52283633
SM
4664 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4665 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
4666 (ccl_driver): If the CCL program is terminated because of
4667 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4668 destination instead of throwing them away.
4669
20b28f82
GM
46702001-02-02 Gerd Moellmann <gerd@gnu.org>
4671
79fb38c0
GM
4672 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4673 faces and other things.
4674
20b28f82
GM
4675 * xdisp.c (get_next_display_element): Fix case of empty
4676 display table entry.
4677
5a72551e
EZ
46782001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4679
eb24d0bf
EZ
4680 * editfns.c (Fconstrain_to_field): Doc fix.
4681
6a3f48c7
EZ
4682 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4683 into `thoroughly', to make it consistent with the doc string.
4684
5a72551e
EZ
4685 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4686
01acdb05
GM
46872001-02-01 Gerd Moellmann <gerd@gnu.org>
4688
0353b28f
GM
4689 * search.c (search_buffer): Call set_search_regs with a byte
4690 position, not a character position.
4691
01acdb05
GM
4692 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4693 minibuffer-only,
4694
e86b5133
EZ
46952001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4696
4697 * frame.c (Fmodify_frame_parameters): Doc fix.
4698
7442878f
GM
46992001-01-31 Gerd Moellmann <gerd@gnu.org>
4700
01acdb05
GM
4701 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4702 identifier which is not reserved by Standard C.
52283633 4703
7442878f
GM
4704 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4705
4706 * window.c (enum window_part): New enumeration.
4707 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4708 Qright_bitmap_area.
4709 (coordinates_in_window): Return an enumerator from enum
4710 window_part. Fix handling of right scroll bar.
4711 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4712 `right-fringe' instead of `left-bitmap-area' and
4713 `right-bitmap-area'. Use enumerators from enum window_part
4714 instead of hard-coded integers.
52283633
SM
4715 (check_window_containing, window_from_coordinates):
4716 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
4717 (syms_of_window): Replace Qleft_bitmap_area and
4718 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4719
7c132cba
EZ
47202001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4721
4722 * editfns.c (Fformat_time_string): Doc fix.
4723
c359dd9e
SM
47242001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4725
4726 * keymap.c (Fwhere_is_internal): Use the first valid binding
4727 if no ascii binding is found (when firstonly is t).
4728
ce070307
GM
47292001-01-31 Gerd Moellmann <gerd@gnu.org>
4730
b4f30ec5
GM
4731 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4732 instead of Finteractive_p.
4733
4734 * lisp.h (interactive_p): Add prototype.
4735
4736 * eval.c (interactive_p): New function.
4737 (Finteractive_p): Use it.
4738
ce070307
GM
4739 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4740
f57b6e64
DL
47412001-01-31 Dave Love <fx@gnu.org>
4742
d61c7afe
DL
4743 * .gdbinit (hook-run): Define to run xreload.
4744
f57b6e64
DL
4745 * textprop.c (Fset_text_properties): Fix newline in doc string.
4746
eef93f99
GM
47472001-01-30 Gerd Moellmann <gerd@gnu.org>
4748
52283633
SM
4749 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4750 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
4751
4752 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 4753 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
4754 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4755
4756 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4757 height.
4758
d9c1f6f9
DL
47592001-01-30 Dave Love <fx@gnu.org>
4760
4761 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4762 AFTER_POTENTIAL_GC.
4763
e8f044a0
GM
47642001-01-29 Gerd Moellmann <gerd@gnu.org>
4765
52283633
SM
4766 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4767 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 4768
8e1db7b3
EZ
47692001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4770
4771 * textprop.c (Fset_text_properties): Doc fix.
4772
4eefd9d2
GM
47732001-01-29 Gerd Moellmann <gerd@gnu.org>
4774
4775 * xdisp.c (forward_to_next_line_start): Remove xassert.
4776
fccb8288
EZ
47772001-01-29 Jason Rumney <jasonr@gnu.org>
4778
4eefd9d2 4779 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
4780 returning without releasing it.
4781
76581eab
KH
47822001-01-29 Kenichi Handa <handa@etl.go.jp>
4783
4784 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4785 for '^', '$', and '\0'.
4786
83a96b4d
AC
47872001-01-28 Andrew Choi <akochoi@i-cable.com>
4788
5604ec34
AC
4789 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4790 regex for '^', '$', and '\0'.
4791
83a96b4d
AC
4792 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4793 only if current_sblock has been initialized.
4794
4795 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4796 terminal frame even if it is the only visible frame.
4797
c09a6440
KH
47982001-01-28 Kenichi Handa <handa@etl.go.jp>
4799
4800 * fontset.c (font_family_registry): Even if FONTNAME conform to
4801 XLFD, if it specifies other fields than family and registry,
52283633 4802 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 4803 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
4804 a signle byte character. Don't set FAMILY part to nil here.
4805 It is handled by the caller choose_face_font.
c09a6440
KH
4806 (Fnew_fontset): Call font_family_registry with FORCE 0.
4807 (Fset_fontset_font): Likewise.
4808
4dcd74e6
GM
48092001-01-27 Gerd Moellmann <gerd@gnu.org>
4810
4811 * xdisp.c (display_line): Don't treat a newline as fitting
4812 on the line.
4813
d2906bf8
GM
48142001-01-26 Gerd Moellmann <gerd@gnu.org>
4815
0130fe1a
GM
4816 * window.c (size_window): Set the window's orig_top to nil when
4817 changing heights, so that a future shrink_mini_window won't
4818 restore a bogus height.
4819
550f0e6a
GM
4820 * frame.c (do_switch_frame): If selected frame has a mini-window,
4821 resize that to exact size.
4822
b7b20fbd
GM
4823 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4824
a47b7816
GM
4825 * xdisp.c (display_line): Simplify check for glyphs fitting
4826 entirely in the line.
4827
d2906bf8
GM
4828 * xfns.c (xic_style): New variable.
4829 (create_frame_xic): Move static variable to global scope for
550f0e6a 4830 the case that `static' gets defined away.
d2906bf8 4831
73df2b1e
KH
48322001-01-26 Kenichi Handa <handa@etl.go.jp>
4833
4834 * coding.c (decode_coding): Set a flag for inhibiting
4835 inconsistent eol.
4836 (code_convert_region): Always set saved_coding_symbol.
4837 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 4838 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 4839
6613cfc4
GM
48402001-01-25 Gerd Moellmann <gerd@gnu.org>
4841
c5e6e06b
GM
4842 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4843 XClearArea.
4844
4845 * xterm.c (x_after_update_window_line): Don't clear if frame's
4846 internal border width is zero.
4847 (x_clear_area): New function.
4848 (x_after_update_window_line, x_clear_end_of_line)
4849 (x_scroll_bar_create, x_scroll_bar_set_handle)
4850 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4851 instead of XClearArea.
4852
4853 * xterm.h (x_clear_area): Add prototype.
4854
6613cfc4
GM
4855 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4856 which doesn't seem necessary anymore with Lesstif 0.92.
4857
650cc6cc
DL
48582001-01-25 Dave Love <fx@gnu.org>
4859
34ac3367
DL
4860 * puresize.h (BASE_PURESIZE): Up to 720000.
4861
650cc6cc
DL
4862 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4863
5e37dc22
GM
48642001-01-25 Gerd Moellmann <gerd@gnu.org>
4865
e1e441f9
GM
4866 * xdisp.c (echo_area_display): Don't call redisplay_internal
4867 when Emacs is shutting down. We can't run hooks etc. that
4868 would be necessary to do a redisplay.
4869
5e37dc22
GM
4870 * lread.c (read_integer): Use type EMACS_INT instead of int.
4871
0fb94c7f
EZ
48722001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4873
4874 * ccl.c (ccl_driver): Fix last change.
4875
e3778624
KH
48762001-01-25 Kenichi Handa <handa@etl.go.jp>
4877
4878 * ccl.h (sturct ccl_program): New member suppress_error.
4879
bb264518 4880 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
4881 insert error message to the output.
4882 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4883
4884 * coding.h (struct coding_system): New member suppress_error.
4885
4886 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4887 (Fset_terminal_coding_system_internal): Set the member
4888 suppress_error to 1.
4889 (Fset_safe_terminal_coding_system_internal): Likewise.
4890
245ed2b1
SM
48912001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4892
4893 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4894 as if it was a `charset'.
4895
f9aaedb6
GM
48962001-01-24 Gerd Moellmann <gerd@gnu.org>
4897
4898 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4899 value in where_is_cache; the next lookup in the cache returns
4900 something bogus if we do.
4901
c3902c3e
EZ
49022001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4903
4904 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4905 if HAVE_WINDOW_SYSTEM isn't defined.
4906
3497f73e
GM
49072001-01-24 Gerd Moellmann <gerd@gnu.org>
4908
e7e41584
GM
4909 * fns.c (sweep_weak_table): Fix code taking items out of
4910 the hash collision chain. Some cleanup.
4911
3497f73e
GM
4912 * xterm.c (x_new_font): Don't change a tooltip's size.
4913
4914 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4915 background color by specifying a color for the default font
4916 in .Xdefaults.
4917
3d48e687
KH
49182001-01-24 Kenichi Handa <handa@etl.go.jp>
4919
96531b20
KH
4920 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4921 a workaround for SunOS 4's cc.
4922 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4923 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4924 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4925 statement.
3d48e687 4926
a30629d2
GM
49272001-01-23 Gerd Moellmann <gerd@gnu.org>
4928
4929 * xterm.c (x_set_window_size_1): New function extracted from
4930 x_set_window_size.
4931 (x_set_window_size): Use it.
4932 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4933 doesn't have a widget, like tooltips.
4934
5a43decf
EZ
49352001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4936
52283633 4937 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 4938
b0e98867
KH
49392001-01-23 Kenichi Handa <handa@etl.go.jp>
4940
4941 * fns.c (Fset_char_table_default): Fix to make sub char-table
4942 correctly.
4943
50606b4c
GM
49442001-01-22 Gerd Moellmann <gerd@gnu.org>
4945
cb2ddc53 4946 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
4947 a desired tool bar string, even if there are no tool bar items.
4948
57c28064
GM
4949 * xdisp.c (Ftool_bar_lines_needed): New function.
4950 (syms_of_xdisp): Defsubr it.
4951
50606b4c
GM
4952 * editfns.c (Fformat): Don't extend text properties from arguments
4953 to padding chars in the result.
4954
2f169c38
EZ
49552001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4956
4957 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4958
0f32f023
AI
49592001-01-20 Andrew Innes <andrewi@gnu.org>
4960
52283633 4961 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
4962 (w32_initialize): Don't set term hooks that aren't actually needed
4963 in windowed mode.
4964
4965 * xfaces.c (realize_default_face):
4966 (realize_face):
4967 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4968
4969 * xdisp.c (handle_single_display_prop): Remove references to
4970 FRAME_W32_CONSOLE_P.
4971
52283633 4972 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
4973
4974 * frame.h (output_method): Remove output_w32_console method.
4975 (FRAME_W32_CONSOLE_P): Remove macro.
4976
4977 * frame.c (Qw32_console): Remove variable.
4978 (Fframep): Remove references to it.
4979 (syms_of_frame): Ditto.
4980 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4981
4982 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4983 redefinition.
4984
7173eada
KH
49852001-01-20 Kenichi Handa <handa@etl.go.jp>
4986
4987 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4988
755b45ce
AI
49892001-01-19 Andrew Innes <andrewi@gnu.org>
4990
4991 * w32.c (init_environment): Add a version-independent site-lisp
4992 directory to EMACSLOADPATH, after the version dependent one.
4993
0a949811
GM
49942001-01-19 Gerd Moellmann <gerd@gnu.org>
4995
8501998a
GM
4996 * editfns.c (Fbuffer_substring): Doc fix.
4997
52283633
SM
4998 * xdisp.c (message_dolog, message2, message2_nolog):
4999 Rename parameter LEN to NBYTES.
0a949811 5000
e6ebcbbe
KH
50012001-01-19 Kenichi Handa <handa@etl.go.jp>
5002
200ecca2
KH
5003 * charset.c (strwidth): Use c_string_width.
5004 (c_string_width): New function.
5005 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5006 Caller changed.
5007
5008 * charset.h (c_string_width, lisp_string_width): Extern them.
5009
52283633 5010 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 5011
e6ebcbbe
KH
5012 * indent.c (check_composition): Check validity of composition.
5013
200ecca2
KH
5014 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5015 characters by calling c_string_width.
5016 (x_consider_frame_title): Get byte length of frame tile string
5017 correctly.
5018 (display_mode_element): Pay attention to width of non-ASCII
5019 characters by calling strwidth.
5020
8692ca92
GM
50212001-01-18 Gerd Moellmann <gerd@gnu.org>
5022
8962e303
GM
5023 * xfns.c (Qcancel_timer): New variable.
5024 (syms_of_xfns): Initialize and staticpro it.
5025 (Fx_hide_tip, Fx_show_tip): Use it.
5026 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5027 the timer.
5028 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5029
91523be9
GM
5030 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5031
5032 * window.h (WINDOW_LIVE_P): New macro.
5033
b0b7ed0e
GM
5034 * window.c (window_size_fixed): New variable.
5035 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5036 the doc string.
5037
06bccf8e
GM
5038 * eval.c (specbind): If binding a per-buffer variable which
5039 doesn't have a buffer-local value in the current buffer, change
5040 the global value by changing the value of the symbol bound in all
5041 buffers not having their own value, to make it consistent with
5042 what happens with other buffer-local variables.
5043
8692ca92
GM
5044 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5045
5046 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5047 when searching for a newline.
5048
bb3a3b50
KH
50492001-01-18 Kenichi Handa <handa@etl.go.jp>
5050
5051 * xdisp.c (display_string): Fix previous change.
5052
c2cc16fa
JR
50532001-01-18 Jason Rumney <jasonr@gnu.org>
5054
5055 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5056 GLYPH_DEBUG is defined.
5057 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5058 true for images with `:ascent 100'.
5059 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5060 meantime, use face MOUSE_FACE_ID.
5061 If first glyph isn't a character glyph, use the ASCII NUL
5062 character to determine the face.
5063 (expose_area): Do not treat left margin specially.
5064 (note_mode_line_highlight): If no local_map, check global keymap.
5065 (note_mouse_highlight): Initialize overlay.
52283633 5066 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
5067 (show_scroll_bars): Remove unused function.
5068 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5069 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5070 Clip to row.
52283633 5071 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
5072 (x_free_frame_resources): Unload relief colors.
5073
9c11f79e
GM
50742001-01-17 Gerd Moellmann <gerd@gnu.org>
5075
3aec8722 5076 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
5077 get_next_display_element when the newline is already found.
5078 This may change the iterator's position, when its current position is
3aec8722
GM
5079 equal to the iterator's stop_charpos.
5080
f3ffc2c3
GM
5081 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5082 zero, use this method only at the end of a line.
5083
52283633 5084 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
5085 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5086 if SCALABLE_FONTS_P is set.
52283633 5087
d26d6fd9
GM
5088 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5089 so that scalable fonts are included.
5090
9c11f79e
GM
5091 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5092 In the cache, use a key containing the information if scalable
5093 fonts are included.
5094 (x_load_font): Adapt to change of keys in the font cache.
5095
50962001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 5097
d26d6fd9
GM
5098 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5099 XListFonts to take advantage of font caching.
5100
9c11f79e
GM
5101 * xterm.c (x_list_fonts): Ensure caching font information when
5102 called for a null frame, which is the case frequently when Emacs
5103 starts.
5104
51446987
GM
51052001-01-17 Gerd Moellmann <gerd@gnu.org>
5106
f864120f
GM
5107 * xfns.c (QCconversion): Replaces QCalgorithm.
5108
5109 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5110
5111 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5112 of :algorithm.
52283633 5113
e37d1417
GM
5114 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5115 not everything could be displayed.
5116
51446987
GM
5117 * line.h, x-list-font.c: Files removed because unused.
5118
9ad4f3e5
AI
51192001-01-17 Andrew Innes <andrewi@gnu.org>
5120
5121 * dired.c (directory_files_internal): Convert result from readdir
5122 to a unibyte string initially, to avoid possible misinterpretation
5123 of some bytes as the internal form of Emacs characters.
5124
2eda09b5
KH
51252001-01-17 Kenichi Handa <handa@etl.go.jp>
5126
5127 * fns.c (concat): Be sure to avoid putting the same `composition'
5128 property on the adjacent regions.
5129
826f3788
GM
51302001-01-16 Gerd Moellmann <gerd@gnu.org>
5131
52283633 5132 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
5133 (Fscroll_right, Fscroll_left): Set it here instead, if called
5134 interactively.
5135
d57b83b3
GM
5136 * buffer.c (Fset_buffer_modified_p): Set buffer's
5137 prevent_redisplay_optimizations_p flag.
5138
826f3788 5139 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
5140 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5141 with additional arg.
5142
5143 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5144 Change prototype.
826f3788 5145
826f3788
GM
5146 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5147 FROM_WHERE, for debugging.
5148
261d788b
KH
51492001-01-16 Kenichi Handa <handa@etl.go.jp>
5150
5151 * ccl.c (Fregister_ccl_program): Handle the return value of
5152 resolve_symbol_ccl_program correctly.
52283633 5153 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 5154
bccee4f2
GM
51552001-01-15 Gerd Moellmann <gerd@gnu.org>
5156
e4ded23c
GM
5157 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5158 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
5159
5160 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5161 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
5162 the display; we didn't open it.
5163
bccee4f2
GM
5164 * dispnew.c (save_or_restore_current_matrices): Function removed.
5165 (save_current_matrix, restore_current_matrix): New functions.
5166 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5167 restore the frame's current matrix. Due to the glyph pointer
5168 setup done in adjust_glyph_matrix, there is no easy way to make
5169 saving the current matrix in the desired matrix generally correct,
5170 so don't try it.
5171
ebeccffa
KH
51722001-01-15 Kenichi Handa <handa@etl.go.jp>
5173
5174 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5175 truncation glyphs.
5176 (display_line): Optimize for wide characters.
e4ded23c 5177 (display_string): Don't try to display a multi-column character
ebeccffa
KH
5178 partially. On ttys, produce more than one truncation glyph for
5179 multi-column characters that don't fit on the line.
5180
64388126
KH
51812001-01-13 Kenichi Handa <handa@etl.go.jp>
5182
52283633
SM
5183 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5184 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 5185
8edb0a6f
JR
51862001-01-13 Jason Rumney <jasonr@gnu.org>
5187
5188 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5189 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
5190 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5191 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 5192
52283633
SM
5193 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5194 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
5195 (x_draw_image_glyph_string): Adapt to change of image margins.
5196
5197 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5198 variables.
5199
5200 * w32bdf.c (search_file_line, get_cached_font_char)
5201 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5202
5203 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5204
5205 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5206 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5207 (Fw32_send_sys_command): Remove unused variables.
5208 (w32_msg_pump): Add parentheses.
5209
5210 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5211 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5212 Add parentheses.
5213
4956d1ef
GM
52142001-01-12 Gerd Moellmann <gerd@gnu.org>
5215
b30623be
GM
5216 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5217 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5218 being a pair of margins.
5219 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5220 to DEFVAR_LISP. Extend doc.
5221
5222 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5223 margins.
5224 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5225 pair of integers `(X . Y)', use X for the horizontal and Y for the
5226 vertical margin.
5227 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5228 (parse_image_spec): Check it.
52283633
SM
5229 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5230 (tiff_format, gif_format, gs_format):
5231 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 5232
52283633
SM
5233 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5234 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
5235 (x_draw_image_glyph_string): Adapt to the change of image margins.
5236
5237 * dispextern.h (struct image): Replace member `margin' with
5238 `hmargin' and `vmargin'.
5239
4554cc79
GM
5240 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5241 and GLYPHS.
5242
5243 * dispnew.c (update_text_area): Put code which decrements the
5244 stop position when the row's face extends to the end of the
3bffc665 5245 line in #if 0.
4554cc79 5246
3cccce8d
GM
5247 * xfns.c (x_set_mouse_color): Fix color allocation.
5248
4956d1ef
GM
5249 * keyboard.c: Call get_local_map with new argument list.
5250
5251 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5252
5253 * intervals.h (enum map_property): Removed.
5254 (get_local_map): Change prototype.
5255
5256 * keymap.c: Call get_local_map with new argument list.
5257 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5258
2c2ff7f2
GM
52592001-01-11 Gerd Moellmann <gerd@gnu.org>
5260
a23887b9
GM
5261 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5262 of the size needed for the tool bar string. For the last image,
5263 use a `display' property that reaches to the end of the string.
5264
a7ee2d2e
GM
5265 * xselect.c (selection_request_dpyinfo): New variable.
5266 (x_handle_selection_request): Set it.
5267 (x_selection_request_lisp_error): Don't call
5268 x_decline_selection_request if selection request's display has
5269 been closed.
5270
52283633
SM
5271 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5272 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 5273
457b792c
GM
52742001-01-10 Dave Love <fx@gnu.org>
5275
5276 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5277 ${SOME_MACHINE_LISP}, not ${lisp}.
5278
c1efd260
GM
52792001-01-10 Gerd Moellmann <gerd@gnu.org>
5280
52283633
SM
5281 * xdisp.c (display_line): On ttys, produce more than one truncation
5282 glyph for multi-column characters that don't fit on the line.
a98b5ed9 5283
ac95a621
GM
5284 * xselect.c (x_reply_selection_request): Add a comment.
5285
c1efd260
GM
5286 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5287 XkbGetNames instead of XkbGetKeyboard.
5288
1bfb1345
DL
52892001-01-10 Dave Love <fx@gnu.org>
5290
5291 * sysdep.c (random): Revert the declaration.
5292
38119822
GM
52932001-01-09 Gerd Moellmann <gerd@gnu.org>
5294
52283633
SM
5295 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5296 Call function string_bytes.
35f464a7
GM
5297 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5298
5299 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5300 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5301 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5302 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5303 the current sblock.
5304 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5305 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5306 after sweeping strings, and at the end.
5307 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5308
38119822
GM
5309 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5310 ensure that pop_message is called.
5311
5312 * keyboard.c (Fexecute_extended_command): Use a
5313 record_unwind_protect to ensure that pop_message is called.
5314
5315 * lisp.h (push_message_unwind): Add prototype.
5316
5317 * xdisp.c (push_message_unwind): New function.
5318
5319 * fileio.c (do_auto_save_unwind): Do the pop_message here
5320 instead of in Fdo_auto_save.
5321 (Fdo_auto_save): Don't call pop_message.
5322
f47a9ec4
KR
53232001-01-08 Ken Raeburn <raeburn@gnu.org>
5324
5325 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5326 in inner block.
5327
a758f97d
GM
53282001-01-08 Gerd Moellmann <gerd@gnu.org>
5329
6d0afc03
GM
5330 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5331 when increasing window's vscroll.
5332
a758f97d
GM
5333 * macros.c (Qkbd_macro_termination_hook): New variable.
5334 (syms_of_macros): Initialize and staticpro it.
5335 (pop_kbd_macro): Run kbd-macro-termination-hook.
5336
5337 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5338
1bfb1345 53392001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
5340
5341 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5342 arglist, for documentation's sake.
5343
0dac6924
AI
53442001-01-06 Andrew Innes <andrewi@gnu.org>
5345
5346 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5347 of *.pdb.
5348
8182406a
AI
53492001-01-05 Andrew Innes <andrewi@gnu.org>
5350
5351 * term.c (update_end): Don't check updating_frame; for some reason
5352 this can be 0 sometimes, such as after dismissing a popup menu,
5353 and isn't necessary given the explicit frame argument.
5354
3828218c
GM
53552001-01-05 Gerd Moellmann <gerd@gnu.org>
5356
5357 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5358 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5359
2f5ded21
GM
53602001-01-04 Gerd Moellmann <gerd@gnu.org>
5361
52283633 5362 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
5363
5364 * xfns.c (x_create_tip_frame): Preserve the value of
5365 face_change_count around the creation of the tip frame.
52283633 5366
2f5ded21
GM
5367 * xfns.c (last_show_tip_args): New variable.
5368 (compute_tip_xy): New function.
5369 (Fx_show_tip): Reuse an existing tip frame, if possible.
5370 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5371
dfad65fa
DL
53722001-01-04 Dave Love <fx@gnu.org>
5373
64d4ec0f
DL
5374 * editfns.c (Fformat): Doc fix.
5375
dfad65fa
DL
5376 * systime.h (set_file_times): Prototype.
5377
5378 * widget.h (EmacsFrameSetCharSize_): Prototype.
5379
5380 * sysdep.c (random, srandom): Declare explicitly.
5381
5382 * dispextern.h (move_it_vertically_backward): Declare.
5383
85fe3b5e
GM
53842001-01-04 Gerd Moellmann <gerd@gnu.org>
5385
0f2ac578
GM
5386 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5387 like in Fx_create_frame.
5388
482cca61
GM
5389 * xfaces.c (set_font_frame_param): Don't do anything for
5390 non-graphical frames.
5391
85fe3b5e
GM
5392 * window.c (Fdelete_other_windows): Set window's window_end_valid
5393 to nil when changing the window's start. Don't change the
5394 window's start when its top position hasn't changed. If we do,
5395 this will set the window's optional_new_start, which act's like a
5396 force_start during redisplay with C-x 1 M-> under particular
5397 circumstances (see report from Per Starback to emacs-pretest-bug
5398 from 2000-12-13.).
5399
3e99d3b4
GM
54002001-01-03 Gerd Moellmann <gerd@gnu.org>
5401
a77dc1ec
GM
5402 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5403 short cut at the start of the function. Add an assertion.
5404 (reseat_at_next_visible_line_start): Add an assertion.
5405
2f3cad6c
GM
5406 * window.c (Frecenter): When changing the window start, set the
5407 window's window_end_valid to nil.
5408 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5409
5410 * dispextern.h (move_it_past_eol): Add prototype.
5411
5412 * xdisp.c (move_it_past_eol): New function.
5413
3e99d3b4
GM
5414 * window.c (Fwindow_end): Doc fix.
5415
54162001-01-03 Dave Love <fx@gnu.org>
5417
52283633 5418 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 5419
bafb434c
GM
54202001-01-03 Gerd Moellmann <gerd@gnu.org>
5421
5422 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5423 the enabled_p flag of the glyph row at window_end_vpos to 0.
5424 (handle_single_display_prop): Fix last change.
5425
5297fb00
RS
54262001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5427
5428 * window.c (Frecenter): Doc fix.
5429
13d6a61c
AI
54302001-01-02 Andrew Innes <andrewi@gnu.org>
5431
5432 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5433
5434 * frame.h (output_method): Add output_w32_console method.
5435 (FRAME_W32_CONSOLE_P): New macro.
5436
5437 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5438 use output_w32_console method.
5439 (Qw32_console): New Lisp_Object.
5440 (Fframep): Return it.
5441 (syms_of_frame): Init it.
52283633 5442 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
5443
5444 * xfaces.c (realize_default_face): Set face foreground and
5445 background to unspecified for w32_console frames.
5446 (realize_face): Realize face cache for w32_console frames.
5447 (realize_tty_face): Accept w32_console frames.
5448
52283633 5449 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
5450 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5451 necessary, even if running interactively.
5452
5453 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5454 w32_console frames.
5455
52283633
SM
5456 * w32term.c (x_update_begin):
5457 (x_update_end):
5458 (x_clear_frame):
5459 (x_ins_del_lines):
5460 (x_change_line_highlight):
5461 (x_delete_glyphs):
5462 (w32_ring_bell):
5463 (x_update_begin):
5464 (x_update_end):
5465 (w32_reassert_line_highlight):
5466 (w32_frame_rehighlight):
13d6a61c
AI
5467 (w32_frame_raise_lower): Do nothing if not w32 frame.
5468
5469 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5470
5471 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5472 system doesn't tell us directly.
5473 (Fx_display_visual_class): Implement properly.
5474
d6bb0c0d
GM
54752001-01-02 Gerd Moellmann <gerd@gnu.org>
5476
5477 * window.c (Frecenter): Handle centering in graphical frames
5478 specially. Centering on the basis of line counts doesn't work
5479 reliably with variable-height lines.
52283633 5480
315f5865
EZ
54812001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5482
5483 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5484 and al[].
5485
52283633 5486 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
5487 (update_compositions): Remove unused variable `hook'.
5488
5489 * intervals.c (get_local_map): Remove unused variable `tem'.
5490
5491 * doprnt.c (doprnt1): Remove unused variable `size'.
5492
5493 * fns.c (Flength): Remove unused variable `tail'.
5494 (Fdelete): Remove unused variable `size'.
5495
5496 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5497 and `gcpro2'.
5498
52283633 5499 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
5500
5501 * data.c (find_symbol_value): Remove extra 3rd argument in the
5502 call to swap_in_symval_forwarding.
5503
52283633 5504 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
5505
5506 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5507 (trivial_regexp_p): Remove unused variable `c'.
5508 (boyer_moore): Remove unused variable `k'.
5509
5510 * indent.c (current_column): Remove unused variable `stopchar'.
5511 (Fcompute_motion): Remove unused variable `contin'.
5512
5513 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5514
5515 * dired.c (directory_files_internal): Fix a typo in a comment.
5516 Remove an unused variable `handler'.
52283633 5517 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
5518 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5519 on BSD4_2.
5520
52283633 5521 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
5522
5523 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5524 and `buf'.
5525 (Fmarker_insertion_type): Remove unused variable `buf'.
5526
5527 * insdel.c (make_gap): Remove unused variable `result'.
5528
52283633 5529 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
5530 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5531 (menu_bar_items): Remove unused function-scope variable `tem'.
5532
5533 * fontset.c (fontset_ref): Remove unused variable `i'.
5534 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 5535 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
5536 (make_fontset_for_ascii_face): Remove unused variable `name'.
5537 (fs_load_font): Remove unused variable `font_idx'.
52283633 5538 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
5539 (list_fontsets): Remove unused variable `tail'.
5540 (Fnew_fontset): Remove unused variables `family' and `registry'.
5541 (accumulate_font_info): Remove unused variable `tmp'.
5542 (Ffontset_font): Remove unused variable `id'.
5543 (syms_of_fontset): Remove unused variable `i'.
5544
5545 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5546 to x_term_init.
5547 (lookup_image): Remove unused variable `file'.
5548 (xbm_load): Remove unused variables `bitmap_data', `height', and
5549 `width'. Remove function-local variable `i', leave the
5550 block-local one.
5551 (gif_load): Remove unused variable `inc'.
5552
52283633 5553 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
5554 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5555 leave only the one in the inner block.
5556
5557 * xfaces.c (face_fontset, realize_default_face): Remove unused
5558 variable `fontset'.
5559 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5560
5561 * term.c (encode_terminal_code): Remove unused variable `c'.
5562
5563 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5564 char *' instead of `char *'.
5565
5566 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 5567 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
5568 (Fchar_category_set): Remove unused variables `val', `charset',
5569 `c1' and `c2'.
5570
52283633
SM
5571 * coding.c (detect_coding_iso2022, setup_coding_system):
5572 Remove unused variable `i'.
315f5865
EZ
5573 (detect_coding_mask): Remove unused variable `idx'.
5574 (detect_coding): Remove unused variable `i'.
5575 (ccl_coding_driver): Remove unused variable `result'.
5576 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 5577 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
5578 (encode_coding_string): Remove unused variables `gcpro1' and
5579 `saved_coding_symbol'.
5580 (Ffind_coding_systems_region_internal): Remove function-local
5581 variable args[], leave only the block-local one.
5582 (code_convert_region1): Remove unused variable `len'.
5583
5584 * charset.c (char_printable_p): Remove unused variable `chars'.
5585 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5586 (str_to_multibyte): Remove unused variable `c'.
5587
5588 * window.c (size_window): Remove block-local variable `min_size'.
5589
5590 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5591 `header_line_height'.
5592 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5593 enum display_element_type.
5594
1a8a9daf
GM
55952001-01-02 Gerd Moellmann <gerd@gnu.org>
5596
6dde6abc 5597 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
5598 statements that call X. Save away the error message in a local copy.
5599
1883b2c6
GM
5600 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5601 the start.
5602
a13be207
GM
5603 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5604 in or at the start of invisible text.
5605
1a8a9daf
GM
5606 * dispnew.c (update_window): Don't check_current_matrix_flags.
5607
3608c0f9
JR
56082001-01-01 Jason Rumney <jasonr@gnu.org>
5609
5610 * w32fns.c (x_figure_window_size): Do not allow new_height and
5611 new_width of frame to override specified values.
5612
abb1acc4
KH
56132000-12-30 Kenichi Handa <handa@etl.go.jp>
5614
52283633 5615 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 5616
762a68ec
GM
56172000-12-29 Gerd Moellmann <gerd@gnu.org>
5618
52283633 5619 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
5620 (update_window) [GLYPH_DEBUG]: Call it.
5621 (scrolling_window): Prevent including current rows which are below
5622 what's displayed in the window.
5623
5624 * xdisp.c (try_window_reusing_current_matrix)
5625 <new start <= old start>: Disable rows in the current matrix
5626 which are below the window after scrolling.
52283633 5627
762a68ec
GM
5628 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5629 is zero. It's not worth the complexity.
5630 (invisible_text_between_p): Put in #if 0 because unused.
5631
2d5912c1
GM
56322000-12-28 Gerd Moellmann <gerd@gnu.org>
5633
46f6a258
GM
5634 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5635 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5636
89f93679
GM
5637 * keyboard.c (echo_char): If C is an integer, always call
5638 push_key_description. Former code could signal an invalid
5639 character error.
5640
5641 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5642 If set, print multibyte text.
5643 (Fsingle_key_description): Call push_key_description with
5644 FORCE_MULTIBYTE set.
5645 (describe_buffer_bindings): Likewise.
5646
5647 * lisp.h (push_key_description): Add prototype.
5648
c06017fb
GM
5649 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5650 around the call to redisplay_internal.
5651
f1d2ce7f
GM
5652 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5653
2d5912c1
GM
5654 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5655
9371f831
KH
56562000-12-28 Kenichi Handa <handa@etl.go.jp>
5657
5658 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5659 (ccl_driver): New local variable `extra_bytes'.
5660
5661 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5662
52283633
SM
5663 * coding.c (setup_coding_system):
5664 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
5665 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5666
0c80628a
KH
56672000-12-28 Kenichi Handa <handa@etl.go.jp>
5668
5669 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5670 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5671 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5672 (decode_composition_emacs_mule): New function.
5673 (decode_coding_emacs_mule): Decode composition sequence by calling
5674 decode_composition_emacs_mule.
5675 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
5676 (encode_coding_emacs_mule): Changed from macro to function.
5677 If a text contains compositions, encode them correctly.
0c80628a
KH
5678 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5679 that decoding and encoding are required.
5680
3e32cc27
GM
56812000-12-27 Gerd Moellmann <gerd@gnu.org>
5682
5e25feee
GM
5683 * xfaces.c (PT_PER_INCH): New macro.
5684 (xlfd_point_size): Compute real point size from font's pixel size.
5685 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5686 instead of 72.
5687
892d8fcd
GM
5688 * .gdbinit: Comment out the line pointing to the Lesstif source
5689 directory.
5690
12c8b416
GM
5691 * window.c (Frecenter): Use displayed_window_lines instead
5692 of window_internal_height.
5693
6061fbf0
GM
5694 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5695 instead of x-toolkit-scroll-bars-p.
5696 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5697
5698 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5699 instead of x-toolkit-scroll-bars-p.
5700 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 5701
3e32cc27
GM
5702 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5703 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
5704 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5705 New variables.
5706 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
5707 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5708 (build_frame_matrix_from_leaf_window): Remove unused code.
5709 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5710 redisplay history.
5711 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5712 (update_window) [GLYPH_DEBUG]: Likewise.
5713 (syms_of_display): Defsubr dump-redisplay-history.
5714
31798cfe
GM
57152000-12-23 Gerd Moellmann <gerd@gnu.org>
5716
f717c2ba
GM
5717 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5718 the end of the prompt. Set echo_after_prompt to the offset
5719 of echoptr in echobuf.
5720
aeb2b8fc
GM
5721 * xdisp.c (init_from_display_pos): Pop until the iterator's
5722 stack is empty; there may be frames for stretch or images
5723 on the stack.
5724
31798cfe
GM
5725 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5726 (save_or_restore_current_matrix): New function for the same
5727 purpose, but more efficient.
5728 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5729
f8156156
EZ
57302000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5731
5732 * xdisp.c (syms_of_xdisp): Fix last change.
5733
bdd6d4e8
GM
57342000-12-23 Gerd Moellmann <gerd@gnu.org>
5735
5736 * xdisp.c (syms_of_xdisp): Doc fix.
5737
5738 * xdisp.c (redisplay_window): Remove label restore_buffers;
5739 use finish_scroll_bars instead to make sure that scroll bars
5740 are redeemed. If we don't do this, flickering can result from
5741 scroll bars being destroyed and recreated.
5742
9436cdf9
JR
57432000-12-22 Jason Rumney <jasonr@gnu.org>
5744
5745 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5746 in the wrong colors when the foreground is not black.
5747 (expose_window): Don't redraw the window that's currently being
5748 updated.
5749
951f9df5
GM
57502000-12-22 Gerd Moellmann <gerd@gnu.org>
5751
856ff7a7
GM
5752 * window.c (size_window): When setting the window's too_small_ok
5753 flag, compare old size with minimum size depending on WIDTH_P,
5754 don't compare with window_min_width.
52283633 5755
951f9df5
GM
5756 * window.c (delete_window): Simplify somewhat.
5757 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5758 freeing window matrices. The flag windows_or_buffers_changed is
5759 set, so the next redisplay will consider all windows; this should
5760 suffice.
5761
886bc933
KH
57622000-12-22 Kenichi Handa <handa@etl.go.jp>
5763
5764 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5765
5766 * ccl.h (struct ccl_program): New member cr_consumed.
5767
5768 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5769 (CCL_READ_CHAR): Handle EOL conversion here.
5770 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5771
177f4e88
GM
57722000-12-21 Gerd Moellmann <gerd@gnu.org>
5773
52283633 5774 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
5775
5776 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5777 otherwise tabs of different size compare equal.
5778
5779 * callint.c (Fcall_interactively): Prevent a compiler warning.
5780
5781 * print.c (print_unwind): Return nil.
5782 (PRINTDECLARE): Initialize all local variables.
5783 (print_preprocess): Add a default case.
5784
8e15274f
GM
5785 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5786
5787 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5788
52283633 5789 * window.c (delete_window, Fsplit_window)
177f4e88
GM
5790 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5791
5792 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5793
5794 * dispnew.c (ensure_frame_matrix): Removed.
5795 (save_frame_matrix, restore_frame_matrix): New functions.
5796 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5797
5798 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5799 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5800
99012074
AI
58012000-12-21 Andrew Innes <andrewi@gnu.org>
5802
5803 * w32term.c (x_update_begin): Regenerate the palette here, rather
5804 than for each window.
5805
5806 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5807 palette is NULL, since this corrupts memory! Also get
5808 display_info reference from frame.
5809
29ef7d2d
JR
58102000-12-21 Jason Rumney <jasonr@gnu.org>
5811
5812 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5813
5814 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5815 to avoid returning without releasing it.
3e27fa1f 5816
3f9d67a6
KH
58172000-12-21 Kenichi Handa <handa@etl.go.jp>
5818
587fc3f9
KH
5819 * keymap.c (push_key_description): Don't convert eight-bit-control
5820 and eight-bit-graphic to multibyte character.
5821
3f9d67a6
KH
5822 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5823 generic character and CODE1 is nil, return the smallest character
5824 in CHARSET.
5825
774ba8c9
DL
58262000-12-20 Dave Love <fx@gnu.org>
5827
5828 * s/osf5-0.h (NSIG): Don't redefine.
5829
88416888
SM
58302000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5831
5832 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5833 excluding menu-bar and tool-bar.
5834 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5835 (menu_item_p): Remove.
5836 (where_is_internal_1): Don't ignore menu-items.
5837
a6426c6f
GM
58382000-12-20 Gerd Moellmann <gerd@gnu.org>
5839
03ff8aab
GM
5840 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5841 into account.
5842
5843 * window.c (make_window): Initialize window's min_hscroll.
5844 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5845 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5846 to zero.
5847 (struct saved_window): New member min_hscroll.
5848 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5849 (Fset_window_configuration): Set window's min_hscroll.
5850 (save_window_save): Save window's min_hscroll.
5851 (compare_window_configurations): Compare min_hscroll values.
5852
5853 * window.h (struct window): New member min_hscroll.
5854
5855 * keyboard.c (echo_prompt): Prevent a compiler warning.
5856
8de4aaf8
GM
5857 * xdisp.c (try_cursor_movement): Fix last change. The real
5858 condition is that PT is at the end of the row, and should
5859 be displayed at the start of the next row.
52283633 5860
3f7e3031
GM
5861 * xdisp.c (try_cursor_movement): If we end on a partially
5862 visible line, end we already decided to scroll, return -1.
5863
a6426c6f
GM
5864 * dispextern.h (ensure_frame_matrix): Add prototype.
5865
5866 * window.c (delete_window, Fsplit_window)
5867 (Fset_window_configuration): Call ensure_frame_matrix.
5868
52283633
SM
5869 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5870 New functions.
a6426c6f
GM
5871 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5872 completed, call fake_current_matrices instead of marking frame
5873 garbaged.
5874
57fa2774
JR
58752000-12-20 Jason Rumney <jasonr@gnu.org>
5876
5877 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5878
d925df90
EZ
58792000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * fns.c (Frequire): Doc fix.
5882
7b93a85b
GM
58832000-12-19 Gerd Moellmann <gerd@gnu.org>
5884
52283633 5885 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 5886
c74e645b
GM
5887 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5888 currently displaying a message.
5889
7b93a85b
GM
5890 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5891 xterm.h.
5892 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5893
90d97e64
AI
58942000-12-18 Andrew Innes <andrewi@gnu.org>
5895
5896 * w32.c (w32_strerror): New function.
5897
5898 * w32.h (w32_strerror): New extern.
5899
5900 * w32fns.c (Fw32_shell_execute): Use it.
5901
91c9e6ce
GM
59022000-12-18 Gerd Moellmann <gerd@gnu.org>
5903
5904 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5905
6f4745e2
EZ
59062000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5907
5908 * msdos.c (IT_set_face): Obey inverse_video.
5909
c9e088ce
KH
59102000-12-18 Kenichi Handa <handa@etl.go.jp>
5911
5912 * dired.c (directory_files_internal): Always return decoded filenames.
5913
c3695f5f
GM
59142000-12-18 Gerd Moellmann <gerd@gnu.org>
5915
52d8e4ff
GM
5916 * xterm.c (x_connection_closed): Prevent being called recursively
5917 because of an error condition in XtCloseDisplay.
52283633 5918
62be9979
GM
5919 * xdisp.c (init_iterator): If noninteractive, and the frame's
5920 face cache is null, make one.
5921
52283633 5922 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 5923
c3695f5f
GM
5924 * process.c (wait_reading_process_input): Check for pending
5925 input when running timers.
5926
78555fbe
EZ
59272000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5928
52283633 5929 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 5930
b2b36264
KH
59312000-12-18 Kenichi Handa <handa@etl.go.jp>
5932
5933 * process.c (read_process_output): Don't run a filter if the code
5934 decoder produces nothing but carryover.
5935
9c543fbf
AI
59362000-12-17 Andrew Innes <andrewi@gnu.org>
5937
5938 * w32.c (sys_rename): Only check errno against EEXIST, and not
5939 EACCES, when determining whether rename failed because the target
5940 exists. This was resulting in indefinite looping on Windows 9x if
5941 the source file was locked by another process.
5942
5943 * w32fns.c (Ffile_system_info): New function.
5944 (syms_of_w32fns): Defsubr it.
5945
10c2b5a8
GM
59462000-12-17 Gerd Moellmann <gerd@gnu.org>
5947
b0228ace
GM
5948 * window.c (coordinates_in_window): Fix computation for
5949 position on vertical line between mode lines.
5950
10c2b5a8
GM
5951 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5952 Don't alter tip_frame or tip_window.
5953 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5954 was deleted.
5955
c844a81a
GM
5956 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5957 Don't alter tip_frame or tip_window.
5958 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5959 was deleted.
5960
6c825f8e
EZ
59612000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5962
5963 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5964 be consistent with the doc string. Reported by NAKAJIMA Mikio
5965 <minakaji@osaka.email.ne.jp>.
5966
af4bb4c8
KH
59672000-12-16 Kenichi Handa <handa@etl.go.jp>
5968
5969 * xfaces.c (Vface_ignored_fonts): New variable.
5970 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5971 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5972
8062e53a
GM
59732000-12-15 Gerd Moellmann <gerd@gnu.org>
5974
e87b8809
GM
5975 * dispnew.c (update_window): Detect pending input every nth line
5976 updated, i.e. do it depending on real work done, and not on the
5977 vpos of the line.
5978
5979 * xterm.c (expose_window): Don't redraw the window that's
5980 currently being updated.
5981
a6768cc5
GM
5982 * window.c (Fset_window_point): Remove test for
5983 cursor_in_non_selected_windows.
5984
4ea7fdca
GM
5985 * lread.c (read1): Recognize end of file after `\\'.
5986
8062e53a
GM
5987 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5988 not unwind_create_frame.
5989
bb7959c1
GM
59902000-12-15 Dave Love <fx@gnu.org>
5991
5992 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5993 bcopy & al.
5994
5995 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5996
ced04c42
KH
59972000-12-15 Kenichi Handa <handa@etl.go.jp>
5998
c5443913
KH
5999 * coding.c (setup_coding_system): Clear all members of the struct
6000 coding_system at first.
bc137305
KH
6001 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6002 argument.
6003 (code_convert_region): Don't override coding->src_multibyte and
6004 coding->dst_multibyte.
c5443913 6005
ced04c42
KH
6006 * fns.c (Fmd5): Docstring improved.
6007
c2d7f289
MB
60082000-12-15 Miles Bader <miles@gnu.org>
6009
6010 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6011 are actually marked as mode-lines; otherwise use
6012 estimate_mode_line_height.
6013
9d7d9263
GM
60142000-12-14 Gerd Moellmann <gerd@gnu.org>
6015
6016 * editfns.c (Fformat): Prevent a buffer overrun when the format
6017 specifies a precision.
6018
7cf0153a
EZ
60192000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6020
6021 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6022 argument is outside the range [2..3].
6023
1de0f662
AI
60242000-12-14 Andrew Innes <andrewi@gnu.org>
6025
6026 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6027 nothing to do. Bind inhibit-quit.
6028 (tip_frame): Make it a Lisp_Object.
6029 (x_create_tip_frame): Set tip_frame after it has been added to
6030 Vframe_list.
6031 (Fx_show_tip): Don't set tip_frame here.
52283633 6032 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
6033 (unwind_create_frame, unwind_create_tip_frame): New functions.
6034 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6035 while a frame is only partially constructed.
6036
6037 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6038 (x_free_frame_resources): New function.
6039 (x_destroy_window): Use it.
6040
02387dcc
GM
60412000-12-14 Gerd Moellmann <gerd@gnu.org>
6042
6043 * xfns.c (Fx_backspace_delete_keys_p): New function.
6044 (syms_of_xfns): Defsubr it.
6045
6046 * config.in (HAVE_XKBGETKEYBOARD): Add.
6047
0544ef49
KH
60482000-12-14 Kenichi Handa <handa@etl.go.jp>
6049
98d62747
KH
6050 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6051 Always store string in multibyte representation in echobuf.
6052 (echo_char): Always store string in multibyte representation in
6053 echobuf.
6054 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6055 (read_key_sequence): Adjusted for the change of echo_prompt.
6056
a20193cd
KH
6057 * fns.c (Fmd5): Docstring improved.
6058
191b83b6
KH
6059 * lisp.h (detect_coding_system): Prototype adjusted.
6060
0544ef49
KH
6061 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6062 (detect_coding_emacs_mule, detect_coding_iso2022,)
6063 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
6064 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6065 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
6066 (detect_coding_mask, detect_coding_system): New argument
6067 MULTIBYTEP. Callers changed.
1da1bb05
KH
6068 (decode_coding_string): Set coding->src_multibyte and
6069 coding->dst_multibyte before calling detect_coding and detect_eol.
6070 Update them after some coding system is detected.
52283633 6071
d5b3eb1b
SM
60722000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6073
6074 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6075
6076 * keyboard.c (menu_bar_items, tool_bar_items):
6077 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6078
f7f8bb69
GM
60792000-12-13 Gerd Moellmann <gerd@gnu.org>
6080
52283633 6081 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
6082 New variables.
6083 (unwind_create_frame, unwind_create_tip_frame): New functions.
6084 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6085 while a frame is only partially constructed.
6086
6087 * xterm.h (x_free_frame_resources): Declare.
6088
6089 * xterm.c (x_free_frame_resources): New function.
6090 (x_destroy_window): Use it.
6091
e10da507
GM
6092 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6093 don't interrupt the update for pending input initially, i.e.
6094 update at least some lines.
6095
6096 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 6097
d5b3eb1b 6098 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
6099
6100 * xfns.c (gray_bitmap_bits): Declare `char *'.
6101
90aa2856
GM
61022000-12-12 Gerd Moellmann <gerd@gnu.org>
6103
6104 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6105 lines start with a relief line.
6106
a308c9cd
DL
61072000-12-12 Dave Love <fx@gnu.org>
6108
6109 * window.c (Fdisplay_buffer): Doc fix.
6110 (Fwindow_list): Remove unused var.
6111
6112 * buffer.h (mmap_set_vars): Declare.
6113
6114 * window.h (Fset_window_point): Declare.
6115
d575011f
EZ
61162000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6117
bf6282d2 6118 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
6119 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6120 variable `area'. When looking for a row under (X,Y), give up if some
6121 of the previous rows is not enabled.
d575011f 6122
ecf4d726
GM
61232000-12-12 Gerd Moellmann <gerd@gnu.org>
6124
2ebf6139
GM
6125 * window.c (Fset_window_point): If displaying cursors in windows
6126 other than the selected window, make sure redisplay updates
6127 other windows to show the new value of point in the window.
6128
6129 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6130
bfdb75ee
GM
6131 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6132 the buffer is the sole visible buffer when in the mini-buffer.
6133
52283633 6134 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
6135 Bind `inhibit-read-only' to t.
6136 (unwind_with_echo_area_buffer): Use AREF.
6137
c0006262
GM
6138 * xfns.c (Fx_hide_tip): Simplified.
6139
52283633
SM
6140 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6141 instead of `1'.
e9a59cad 6142
ecf4d726
GM
6143 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6144
e5959a9a
GM
61452000-12-11 Gerd Moellmann <gerd@gnu.org>
6146
a3642e49 6147 * xfns.c (Fx_hide_tip): Fix last change.
52283633 6148
44b5a125
GM
6149 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6150 nothing to do. Bind inhibit-quit.
6151 (tip_frame): Make it a Lisp_Object.
6152 (x_create_tip_frame): Set tip_frame after it has been added to
6153 Vframe_list.
6154 (Fx_show_tip): Don't set tip_frame here.
6155
6156 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6157
6158 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6159 Lisp_Object.
6160
6161 * dispextern.h: Change external declaration of tip_frame.
6162
d990421f
GM
6163 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6164 return an empty string.
6165
4db87380
GM
6166 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6167 of the window's update_mode_line flag, since the former is set by
6168 force-mode-line-update, not the latter. This makes
6169 column-number-mode slightly faster.
52283633 6170
e5959a9a
GM
6171 * xdisp.c (try_window_id) <all changes above window start>:
6172 Set the cursor.
6173
169fe44e
GM
61742000-12-11 Paul Eggert <eggert@twinsun.com>
6175
6176 * config.in (HAVE_FTELLO): Remove.
6177 (HAVE_FSEEKO): Add.
6178 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6179 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6180 HAVE_FTELLO.
6181 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6182 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 6183
59ec59ae
MB
61842000-12-11 Miles Bader <miles@gnu.org>
6185
6186 * window.c (displayed_window_lines): Don't round up when
6187 converting empty space at bottom to lines.
ff904dd6
MB
6188 Handle non-newline-terminated final lines properly.
6189 (Fwindow_text_height): New function (used to be in lisp).
6190 (syms_of_window): Initialize it.
59ec59ae 6191
42ebfa31
SM
61922000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6193
6194 * syntax.c (scan_lists): Check that the right quote char has the
6195 right Sstring syntax when jumping over strings.
6196 (init_syntax_once): Use Smax rather than 13.
6197
5cdb3cf3
MB
61982000-12-09 Miles Bader <miles@gnu.org>
6199
6200 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6201 with PARTIALLY, inverting the sense.
6202 (window_scroll_pixel_based): Scroll partially visible lines into
6203 place if we hit the beginning or end of the buffer.
a12167c5
MB
6204 (displayed_window_lines): Don't include partially visible lines.
6205 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 6206
842b2a94
GM
62072000-12-08 Gerd Moellmann <gerd@gnu.org>
6208
6209 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6210
6211 * tparam.c (tparam1): Change the way buffers are reallocated to be
6212 portable and less obfuscated.
6213
6214 * termcap.c (tgetent): Change the way buffers are reallocated to
6215 be portable and less obfuscated.
6216
6217 * macros.c (store_kbd_macro_char): Change the way buffers are
6218 reallocated to be portable and less obfuscated.
6219
6220 * lread.c (read1): Change the way buffers are reallocated to be
6221 portable and less obfuscated.
6222
6223 * doc.c (Fsubstitute_command_keys): Change the way buffers
6224 are reallocated so that it is portable.
6225
137cad7c
EZ
62262000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6227
6228 * dosfns.c (Ffile_system_info): New function.
6229 (syms_of_dosfns): Defsubr it.
6230
5c7f629c
SM
62312000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6232
6233 * alloc.c (gc_sweep): Add comment.
6234
959e647d
GM
62352000-12-07 Gerd Moellmann <gerd@gnu.org>
6236
52283633
SM
6237 * sound.c (vox_configure): Change order of ioctls.
6238 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
6239 Ignore errors when changing volume.
6240 (vox_close): Don't reset the device.
6241
926b7e5e
GM
6242 * process.c (read_process_output): Make sure the process marker's
6243 position is valid when the process buffer is changed in
6244 after-change functions. W3 does that.
52283633 6245
959e647d
GM
6246 * xfns.c (x_free_gcs): New function.
6247
6248 * xterm.h (x_free_gcs): Add prototype.
6249
6250 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6251 freeing GCs here.
6252
6253 * xterm.c (x_destroy_window): Call x_free_gcs so that
6254 resources of non-toolkit X windows will be freed.
6255
478ea067
AI
62562000-12-07 Andrew Innes <andrewi@gnu.org>
6257
6258 * w32fns.c (xlfd_charset_of_font): Fix last change.
6259
fbee3231
DL
62602000-12-06 Dave Love <fx@gnu.org>
6261
67292061
DL
6262 * md5.h (__P): Don't define -- it comes from config.h.
6263
fbee3231
DL
6264 * strftime.c: Change some #if foo to #ifdef foo.
6265
4ee87dbb
AI
62662000-12-06 Andrew Innes <andrewi@gnu.org>
6267
6268 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6269
52283633 6270 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 6271 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 6272 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 6273
9765b4a4
GM
62742000-12-06 Gerd Moellmann <gerd@gnu.org>
6275
d285b373
GM
6276 * alloc.c (gc_sweep): Prevent symbols read during loadup
6277 from being freed.
6278
384333ee
GM
6279 * xdisp.c (underlying_face_id): New function.
6280 (handle_face_prop, face_before_or_after_it_pos): Use it
6281 to determine the face ``under'' a string. Let strings inherit
6282 the face of the buffer under them.
6283
6284 * xfaces.c (face_at_string_position): Update function comment.
52283633 6285
d4b72d58
GM
6286 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6287 matrix if the window's left position has changed; we need to
6288 redraw it in this case.
6289
6290 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6291
e1d05387
GM
6292 * window.c (coordinates_in_window): Check mouse on mode-line or
6293 header-line first.
6294
eb1b0c74
GM
6295 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6296 advertized by the function documentation.
6297
d94d636f
GM
6298 * window.c (syms_of_window): Doc fix.
6299
3887b449
GM
6300 * sound.c (vox_configure): Set volume for left and right channel.
6301 (sound_cleanup): Return nil.
6302
efc8f57a
GM
6303 * xdisp.c (move_it_by_lines): Fix paren typo.
6304
9765b4a4
GM
6305 * xterm.c (x_load_font): Don't use the font's max_bounds for
6306 computing the height of the font. If max_bounds' ascent or
6307 descent are greater than the font's ascent or descent, this means
6308 glyphs overlap, which should be handled now by redisplay.
6309
6529ed87
GM
6310 * window.c (Veven_window_heights): New variable.
6311 (syms_of_window): DEFVAR_LISP it.
6312 (Fdisplay_buffer): Check Veven_window_heights before evening the
6313 window heights.
52283633 6314
0eb2ecde
MB
63152000-12-06 Miles Bader <miles@gnu.org>
6316
6317 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6318 update `default-frame-alist' instead of setting no frame parameters.
6319
03d7a167
KH
63202000-12-06 Kenichi Handa <handa@etl.go.jp>
6321
6322 * composite.c (update_compositions): Fix typo (use the correct
6323 variable).
6324
5f8803c2
JR
63252000-12-05 Jason Rumney <jasonr@gnu.org>
6326
6327 * md5.h: Remove underscores from function declarations.
6328 (__attribute__, __alignof__) [!__GNUC__]: Define.
6329
6330 * md5.c: Delay include of md5.h until after namespace cleaning.
6331
c28a075b
JR
6332 * makefile.w32-in (fns.o): Depend on md5.h
6333 (md5.o): New target.
6334 (sunfns.o): Remove.
6335
6336 * makefile.nt: Likewise.
6337
ff3c7056
JR
63382000-12-05 Jason Rumney <jasonr@altavista.net>
6339
6340 * w32term.c (expose_area): Complete last change.
6341
0c21eeeb
KR
63422000-12-05 Ken Raeburn <raeburn@gnu.org>
6343
6344 * minibuf.c: Include intervals.h.
6345
f201d732
JR
63462000-12-05 Jason Rumney <jasonr@gnu.org>
6347
6348 * w32term.c (x_produce_glyphs): If a font for a component of
6349 a composition is not found, use 1 pixel dot ascent and 0 dot
6350 descent value to avoid displaying terribly tall empty boxes.
6351 (expose_area): Pass x-coordinate relative to the exposed
6352 area to x_draw_glyphs instead of a window-relative coordinate.
6353
21999ab9
GM
63542000-12-05 Gerd Moellmann <gerd@gnu.org>
6355
4d2036e4
GM
6356 * xdisp.c (next_element_from_ellipsis): Save face before selective
6357 display in saved_face_id, and set face_before_selective_p.
6358 (reseat_1): Reset face_before_selective_p.
6359 (append_space, extend_face_to_end_of_line): If iterator's
6360 face_before_selective_p is set, use the face from saved_face_id.
6361 (extend_face_to_end_of_line): For tty frames, make sure to
6362 use the right face id when producing spaces at the end of
6363 the line.
6364
6365 * dispextern.h (struct it): Add face_before_selective_p.
6366
52be17cc
GM
6367 * keyboard.c (record_char): Don't record identical help-echo
6368 events in recent_keys.
6369
8a4f36cc
GM
6370 * xterm.c [USE_X_TOOLKIT]: Close the display.
6371 (xim_close_dpy): Handle case that the display has been closed.
6372
57d6e381
GM
6373 * xterm.c (x_destroy_window): Reset the frame's X window after
6374 destroying it.
6375
21999ab9
GM
6376 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6377 variable window_width.
6378 (line_draw_cost): Fix code skipping over spaces at the end of the
6379 line when must_write_spaces is not set.
6380 (scrolling_window): Fix code inserting runs in list of all runs.
6381
91372bb7
KH
63822000-12-05 Kenichi Handa <handa@etl.go.jp>
6383
6384 * coding.c (setup_coding_system): Be sure to initialize
6385 coding->category_idx.
6386
6c083b4c
GM
63872000-12-04 Gerd Moellmann <gerd@gnu.org>
6388
0c68ce6f 6389 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 6390
6452929e
GM
6391 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6392 area to x_draw_glyphs instead of a window-relative coordinate.
6393
d7f31e22
GM
6394 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6395 error in the message.
6396
ae18aa3b
GM
6397 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6398 timer after having read a key. It's not good for code reading
6399 several keys in a loop, like an input method.
6400
caa15ef7
GM
6401 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6402 record undo information for format-decode.
6403
6404 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6405 current buffer is read-only, not if it isn't.
6406
6c083b4c
GM
6407 * keyboard.c (record_char): Record `help-echo' input events
6408 in recent_keys only if they display some help. Don't record
6409 `help-echo' events as macro char.
6410
caa15ef7
GM
64112000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6412
6413 * editfns.c (save_excursion_restore): Don't move point
6414 in another window if it is showing the wrong buffer.
6415 Avoid the call to Fwindow_live_p, for speed.
6416
5a13529b
KH
64172000-12-04 Kenichi Handa <handa@etl.go.jp>
6418
e225faa7
KH
6419 * xfaces.c (struct font_name): New member registry_priority.
6420 (split_font_name): Initialize the above member to zero.
6421 (concat_font_list): New function.
6422 (font_list): Include fonts of all alternative registries.
6423 (FONT_POINT_SIZE_QUANTUM): New macro.
6424 (better_font_p): Ignore point size difference less than
6425 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6426
e89648b4
KH
6427 * xterm.c (x_produce_glyphs): If a font for a component of
6428 a composition is not found, use 1 pixel dot ascent and 0 dot
6429 descent value to avoid displaying terribly tall empty boxes.
6430
5a13529b
KH
6431 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6432
d7935eb6
KR
64332000-12-03 Ken Raeburn <raeburn@gnu.org>
6434
6435 * coding.h (code_convert_string1): Declare.
6436
6437 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6438
52283633 6439 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 6440
0dd5e255
JR
64412000-12-02 Jason Rumney <jasonr@gnu.org>
6442
6443 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6444 correctly for single byte character case.
6445 (w32_per_char_metric): Do not try to make any assumptions about
6446 the metrics of BDF fonts.
250cfece 6447 (x_estimate_mode_line_height): If `mode-line' face
52283633 6448 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
6449 (note_mouse_highlight): Change the cursor shape on the vertical
6450 border between windows [not enabled].
6451
6452 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6453
6454 * w32fns.c (Fx_create_frame): Reintroduce the call to
6455 face-set-after-frame-defaults.
6456 (Vx_window_horizontal_drag_shape): New variable.
6457 (syms_of_xfns): DEFVAR_LISP it.
6458 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6459 enabled].
0dd5e255 6460
b5d8d2ca
GM
64612000-12-02 Simon Josefsson <simon@josefsson.org>
6462
6463 * fns.c (Fmd5): Use a different logic to decide the coding system
6464 to use.
6465
6466 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6467
fbb87147
EZ
64682000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6469
52283633 6470 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 6471
447e9da0
GM
64722000-12-01 Gerd Moellmann <gerd@gnu.org>
6473
7708ced0
GM
6474 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6475 height for YNegative.
6476 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6477 height; also see comment there.
6478
447e9da0
GM
6479 * window.c (coordinates_in_window): Handle computations for
6480 positions on the vertical bar and fringes differently for
6481 window-system frames. Consider some pixels near the vertical bar
6482 as on the bar if the frame doesn't have vertical scroll bars.
6483 Associate positions between mode or header lines with the
6484 right window, the left one.
6485
86d1db20
JR
64862000-12-01 Jason Rumney <jasonr@gnu.org>
6487
6488 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6489
6490 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6491 invalid frame.
6492
a1d58e5b
GM
64932000-12-01 Gerd Moellmann <gerd@gnu.org>
6494
52283633 6495 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
6496 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6497 (save_window_save, Fset_window_configuration): Save/restore
6498 window's orig_top and orig_height.
6499
89c609af
JR
65002000-12-01 Jason Rumney <jasonr@gnu.org>
6501
4d177746 6502 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 6503
89c609af
JR
6504 * w32fns.c (x_set_cursor_color): Fix last change.
6505
eccc05db
GM
65062000-11-30 Gerd Moellmann <gerd@gnu.org>
6507
31b6671b
GM
6508 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6509 sure that the next redisplay displays the minibuffer, so that
6510 the cursor will be replaced with what the minibuffer wants.
6511
eccc05db
GM
6512 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6513 #ifndef instead of using #if.
6514 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6515 USE_TOOLKIT_SCROLL_BARS is defined.
6516
162de750
JR
65172000-11-30 Jason Rumney <jasonr@gnu.org>
6518
6519 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6520 x_display_cursor.
6521
693c4692
GM
65222000-11-30 Gerd Moellmann <gerd@gnu.org>
6523
6524 * fns.c (Fmd5): Doc fix.
6525
b5d8d2ca 65262000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
6527
6528 * fns.c (Fmd5): New function.
6529 (syms_of_fns): Defsubr md5.
6530
6531 * Makefile.in (obj): Add md5.o
6532
b02cd40b
GM
65332000-11-30 Gerd Moellmann <gerd@gnu.org>
6534
edfb795e
GM
6535 * md5.h, md5.c: New files, taken from glibc.
6536
df3aedcf
GM
6537 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6538
b02cd40b 6539 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 6540 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 6541
8b5176cd
SM
65422000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6543
6544 * eval.c (Frun_hooks): Allow 0 arguments.
6545
346598f1
GM
65462000-11-29 Gerd Moellmann <gerd@gnu.org>
6547
f9396e03
GM
6548 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6549 is over the menu bar widget, say it's not on the frame.
6550
4a967a9b
GM
6551 * xfns.c (Fx_create_frame): Reintroduce the call to
6552 face-set-after-frame-defaults.
6553
346598f1
GM
6554 * eval.c (Fsignal): Reset handling_signal.
6555
222456a1
JR
65562000-11-28 Jason Rumney <jasonr@gnu.org>
6557
6558 * w32menu.c (add_menu_item): Reset menu item text when changing
6559 type to radio button.
6560
8049ddc0
GM
65612000-11-28 Gerd Moellmann <gerd@gnu.org>
6562
346598f1 6563 * xselect.c: Update copyright.
f4f4ee4d 6564
bebe4a2c
GM
6565 * window.c (coordinates_in_window): If on a mode or header line,
6566 but sufficiently close to its start, return ``on vertical
6567 border''. This gives us a way to drag windows horizontally when
6568 using toolkit scroll bars.
6569
6570 * xterm.c (note_mouse_highlight): Change the cursor shape
6571 on the vertical border between windows.
6572
6573 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6574
6575 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6576 (syms_of_xfns): DEFVAR_LISP it.
6577 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6578
8d2c2642
GM
6579 * textprop.c (text_read_only): New function.
6580 (verify_interval_modification): Use it instead of signaling
6581 `text-read-only'. This makes it easier to catch this error
52283633 6582 with a breakpoint.:
8d2c2642 6583
52283633 6584 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
6585 not end of line, which includes CR.
6586
5a2bae6c
KH
65872000-11-28 Kenichi Handa <handa@etl.go.jp>
6588
6589 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6590 include no-conversion.
6591
ae31f84d
JR
65922000-11-27 Jason Rumney <jasonr@gnu.org>
6593
6594 * w32fns.c (w32_load_system_font): Always mark font as double byte
6595 if codepage is unicode.
6596
67f1cf4c
GM
65972000-11-27 Gerd Moellmann <gerd@gnu.org>
6598
4a74d071 6599 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 6600 just consume it to avoid unintended skipping over invisible text below.
4a74d071 6601
902ae620
GM
6602 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6603 `vertical-line', `mode-line' and `header-line' events.
6604
6605 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
6606 of a character, a TAB for instance. This is easier than to set
6607 up the iterator exactly, and it's not a frequent case, so the
6608 additional effort wouldn't really pay off.
6609
c1e279c2
AC
66102000-11-26 Andrew Choi <akochoi@i-cable.com>
6611
67f1cf4c 6612 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
6613 init_window_once.
6614
a609568a
JR
66152000-11-25 Jason Rumney <jasonr@gnu.org>
6616
52283633
SM
6617 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6618 Args to window_from_coordinates should be pixel coordinates.
48b21762 6619
a609568a
JR
6620 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6621 redisplay handles them properly.
6622
a658d039
MB
66232000-11-25 Miles Bader <miles@gnu.org>
6624
6625 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6626
d3416cca
JR
66272000-11-24 Jason Rumney <jasonr@gnu.org>
6628
6629 * w32.c (init_environment): Set LANG environment variable based on
6630 locale settings, if not set.
6631
6632 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6633 making tool bar smaller. When clearing the frame, also
6634 clear current matrices. Clear frame when tool bar disappears.
6635 Don't use more lines for the tool-bar than is available.
6636 (x_change_window_heights): New function.
6637
ba193890
GM
66382000-11-24 Gerd Moellmann <gerd@gnu.org>
6639
2be8f184
GM
6640 * xdisp.c (init_from_display_pos): If POS says we're already after
6641 an overlay string ending at POS, make sure to pop the iterator
6642 because it will be in front of that overlay string. When POS is
6643 ZV, we've thereby also ``processed'' overlay strings at ZV.
6644
ba193890
GM
6645 * xfaces.c (lface_from_face_name): Function comment fix.
6646
1862a24e
MB
66472000-11-24 Miles Bader <miles@gnu.org>
6648
6649 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6650 apply `mode-line-inverse-video' -- zero means force display using
6651 the default face, non-zero means display using the specialized face.
6652 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6653
f07fa1b8
KH
66542000-11-23 Kenichi Handa <handa@etl.go.jp>
6655
6656 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6657 hard coded `4'.
6658
2bcdf662
EZ
66592000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6660
6661 * coding.c (decode_coding_emacs_mule): Fix the case of
6662 CODING_EOL_LF, which used uninitialized value of c.
6663
ba8299ff
SM
66642000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6665
6666 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6667
f4117c4d
GM
66682000-11-22 Gerd Moellmann <gerd@gnu.org>
6669
03e757c1
GM
6670 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6671 buffer object.
6672
f4117c4d
GM
6673 * frame.h (struct frame): Replace desired_tool_bar_items,
6674 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 6675 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
6676
6677 * frame.c (make_frame): Change initialization of tool bar
6678 items accordingly.
6679
6680 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 6681 Change references to members deleted from struct frame to use the
f4117c4d
GM
6682 new ones.
6683
6684 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 6685 references to members deleted from struct frame to use the new ones.
f4117c4d 6686
52283633 6687 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
6688
6689 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6690
6691 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 6692 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
6693 from struct frame to use the new ones.
6694
f8e2f3f2
MB
66952000-11-23 Miles Bader <miles@gnu.org>
6696
6697 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6698 the face's inverse-video attribute, rather than overriding it.
6699
60e8e0a5
GM
67002000-11-22 Gerd Moellmann <gerd@gnu.org>
6701
6702 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6703 making tool bar smaller.
6704
92dd1b29
DL
67052000-11-22 Dave Love <fx@gnu.org>
6706
6707 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6708
e672fdce
MB
67092000-11-22 Miles Bader <miles@gnu.org>
6710
3a17d6cc
MB
6711 * keyboard.c (Vminibuffer_message_timeout): New variable.
6712 (command_loop_1): Use it to determine message timeout.
6713 (syms_of_keyboard): Initialize it.
6714
60e8e0a5 6715 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 6716
e9655d81
KH
67172000-11-22 Kenichi Handa <handa@etl.go.jp>
6718
6719 * sysdep.c: Move the code for declaring h_errno after #include
6720 <netdb.h>.
6721
77270fac
GM
67222000-11-21 Gerd Moellmann <gerd@gnu.org>
6723
cd913aae
GM
6724 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6725 the menu bar when the tooltip is unmapped.
6726
77270fac
GM
6727 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6728 sole visible buffer when we're currently in the mini-buffer, and
6729 give up if so.
52283633 6730
556635d6
JR
67312000-11-21 Jason Rumney <jasonr@gnu.org>
6732
6733 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6734 put on the clipboard.
6735 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6736 copy of what Emacs last put there. If they are the same, do not
52283633 6737 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 6738
5b7bde64
MB
67392000-11-22 Miles Bader <miles@gnu.org>
6740
6741 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6742 (syms_of_minibuf): Initialize it.
6743 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6744 to prompt, don't make read-only.
6745
ff23e1dd
GM
67462000-11-21 Gerd Moellmann <gerd@gnu.org>
6747
52283633
SM
6748 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6749 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 6750
7aaf4388
GM
6751 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6752
f5f47add 6753 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 6754
ff23e1dd
GM
6755 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6756
37c35586
KH
67572000-11-21 Kenichi Handa <handa@etl.go.jp>
6758
6759 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6760 ... #endif scope.
6761
ff9ab414
GM
67622000-11-20 Gerd Moellmann <gerd@gnu.org>
6763
52283633 6764 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
6765 screen supports it.
6766
29a01b72
GM
6767 * s/gnu-linux.h: Don't use `#cpu'.
6768
09dfdf85
GM
6769 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6770 not defined in mman.h.
6771
52283633 6772 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
6773 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6774 and store an index in the XClientMessageEvent. Storing a
6775 Lisp_Object or pointer can fail on a 64 bit system, since X only
6776 transfers 32 bits.
52283633
SM
6777 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6778
81459ac9
DL
67792000-11-20 Dave Love <fx@gnu.org>
6780
6781 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6782
56c13ae6
GM
67832000-11-20 Gerd Moellmann <gerd@gnu.org>
6784
6785 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6786
495a6df3
KH
67872000-11-20 Kenichi Handa <handa@etl.go.jp>
6788
2bcf3714
KH
6789 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6790 by WIDTH.
6791
495a6df3
KH
6792 * alloc.c (make_string): Fix previous change. Be sure to make
6793 unibyte string correctly.
6794
6d950f4c
GM
67952000-11-19 Gerd Moellmann <gerd@gnu.org>
6796
39b39373
GM
6797 * window.c (Fwindow_list): Change parameter list to be XEmacs
6798 compatible.
6799 (window_list_1): New function.
6800 (window_loop): Use it instead of Fwindow_list.
6801
b95b34e5
GM
6802 * sysdep.c (emacs_ospeed): New variable.
6803 (toplevel): Don't declare ospeed extern.
6804 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6805
6806 * termcap.c (ospeed): Remove.
6807 (tputs) [!emacs]: Remove unused code.
6808 (tgetent): Avoid a compiler warning.
6809
e83dc917
GM
6810 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6811 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 6812 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
6813
6814 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6815 removed.
6816 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6817 Take the X display as additional argument.
6818 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6819 `Widget' is a pointer type that's not easily stored in Lisp_Object
6820 form in a portable way.
52283633 6821
6d950f4c
GM
6822 * dispnew.c (update_text_area): Fix last change.
6823
e47306e6
GM
68242000-11-18 Gerd Moellmann <gerd@gnu.org>
6825
fb3cd89b
GM
6826 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6827
6828 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6829 clear current matrices.
6830
edaa9aed
GM
6831 * buffer.c (mmap_enlarge): Don't print a message on stderr
6832 if mapping new memory at the end of the existing region fails.
6833
e47306e6
GM
6834 * dispnew.c (update_text_area): Don't skip over equal glyphs
6835 when the last current glyph overlaps the glyph to its right.
6836
509633e3
MB
68372000-11-18 Miles Bader <miles@gnu.org>
6838
6839 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6840 lines that *end* with "..." too (that's the most common case!).
6841
d392e9c5
GM
68422000-11-18 Gerd Moellmann <gerd@gnu.org>
6843
67988445
GM
6844 * xdisp.c (resize_mini_window): Temporarily change to the
6845 mini-window's buffer if necessary.
1bfdbe43 6846
d392e9c5
GM
6847 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6848 the tooltip obscures less text under it.
6849
68502000-11-17 Gerd Moellmann <gerd@gnu.org>
6851
6852 * puresize.h (BASE_PURESIZE): Increase to 700000.
6853
92bb977f
JR
68542000-11-18 Jason Rumney <jasonr@gnu.org>
6855
6856 * w32term.c (w32_draw_bitmap): Use face to set colors.
6857
26fbf20b
DL
68582000-11-17 Dave Love <fx@gnu.org>
6859
6860 * lread.c (Fload): Fix #ifdef for pcc.
6861
100b593b
GM
68622000-11-17 Gerd Moellmann <gerd@gnu.org>
6863
6864 * xdisp.c (pos_visible_p): Compute the default character height
6865 differently.
6866
a288d0d1
GM
68672000-11-16 Gerd Moellmann <gerd@gnu.org>
6868
cac94de6 6869 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 6870 knowing the line's height; use the default font's height in that case.
cac94de6 6871
a288d0d1
GM
6872 * xfaces.c (weight_table): Add `demi' with the same meaning as
6873 `demibold'.
6874
981fb6f6
KH
68752000-11-16 Kenichi Handa <handa@etl.go.jp>
6876
2cca872d 6877 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
6878 (clear_glyph_row): Delete local static variable null_row.
6879
e5fa381b
JR
68802000-11-15 Jason Rumney <jasonr@gnu.org>
6881
6882 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6883 (w32_alloc_lighter_color): Use new brightness calculations from
6884 xterm.c. Scale delta to be in the range expected by W32.
6885 (w32_draw_relief_rect): Use frame relief colors.
6886
8e42f043
GM
68872000-11-15 Gerd Moellmann <gerd@gnu.org>
6888
6d133d1f
GM
6889 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6890 (Qinhibit_default_face_x_resources): New variable.
6891 (syms_of_frame): Initialize it.
6892 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6893
6894 * xdisp.c (pos_visible_p): Improve function comment.
6895
6896 * lisp.h (BINDING_STACK_SIZE): New macro.
6897
8e42f043
GM
6898 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6899 reading the directory if readdir returns null and errno is EAGAIN
6900 or EINTR.
6901
e8c87124
SM
69022000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6903
6904 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6905 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6906 Set amount_to_scroll to max of dx and scroll_step so that
6907 scroll-conservatively doesn't defeat scroll-step>1.
6908 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6909 scroll-conservatively for line-at-a-time scrolling.
6910
5f0c971d
GM
69112000-11-14 Gerd Moellmann <gerd@gnu.org>
6912
6913 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6914 extra argument.
6915
6916 * xdisp.c (current_mode_line_height, current_header_line_height):
6917 New variables.
6918 (init_xdisp): Initialize them.
6919 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6920 and use exact mode line heights if it is set.
6921
6922 * lisp.h (pos_visible_p): Change prototype.
6923
6924 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6925 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6926 and current_header_line_height first.
52283633
SM
6927 (current_mode_line_height, current_header_line_height):
6928 Declare extern.
5f0c971d 6929
d7361edf
MB
69302000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6931
6932 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6933 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6934 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6935
ee5e440a
MB
69362000-11-14 Miles Bader <miles@gnu.org>
6937
6938 * xterm.c (x_alloc_lighter_color): Include an additive component
6939 too for dark colors, because FACTOR isn't enough.
6940 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6941 New macros.
6942
5ca020fc
GM
69432000-11-13 Gerd Moellmann <gerd@gnu.org>
6944
6945 * keyboard.c (show_help_echo): Call message3_nolog with number of
6946 bytes in the help string as 2nd parameter, instead of the number
6947 of characters.
6948
9d348294
MB
69492000-11-13 Miles Bader <miles@gnu.org>
6950
6951 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6952 (Fload): Use new openp return protocol.
6953 Don't try to use Vload_source_file_function to load .elc files.
6954 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6955 openp return protocol.
6956 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6957
1729bb9a
KH
69582000-11-11 Kenichi Handa <handa@etl.go.jp>
6959
4e677396
KH
6960 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6961
6962 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6963 Defined these macros.
6964 (NLIST_STRUCT): Avoid re-defining it.
6965
1729bb9a
KH
6966 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6967 -I/usr/contrib/X11R6/include.
6968 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6969
a82fe213
JR
69702000-11-10 Jason Rumney <jasonr@gnu.org>
6971
6972 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6973
6974 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6975 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6976
6977 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6978 (Qw32_charset_vietnamese): New symbol.
6979 (xlfd_charset_of_font): New function.
6980 (w32_load_system_font): Use it.
6981 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6982 when Vw32_charset_info_alist is nil to ensure default face always
6983 has font. Use Fcar and Fcdr for safety.
6984 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6985 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6986 pseudo-codepages for special cases.
6987 (w32_to_x_font): New parameter to allow charset portion to be
6988 specified where there is many to one mapping. Callers changed.
6989 (w32_list_fonts): Avoid listing fonts that won't display.
6990
52d89894
GM
69912000-11-10 Gerd Moellmann <gerd@gnu.org>
6992
6993 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6994 (font_list_1): Renamed from font_list.
6995 (font_list): New function, trying alternative registries from
6996 Vface_alternative_font_registry_alist.
6997 (Finternal_set_alternative_font_registry_alist): New function.
6998 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
6999 Vface_alternative_font_registry_alist.
7000 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 7001
651cd3da
KR
70022000-11-09 Ken Raeburn <raeburn@gnu.org>
7003
7004 * lisp.h (Flooking_at): Declare.
7005
388ac098
GM
70062000-11-09 Gerd Moellmann <gerd@gnu.org>
7007
778fbc46 7008 * dired.c (directory_files_internal): Fix a braino.
52283633 7009
388ac098
GM
7010 * dired.c (directory_files_internal): Add missing GCPRO's.
7011 Some cleanup.
7012
ecaedde1
GM
70132000-11-08 Gerd Moellmann <gerd@gnu.org>
7014
f7eb32aa
GM
7015 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7016 (resize_mini_window): Return quickly if Vresize_mini_window is
7017 nil. Don't return if Vmax_mini_window_height is nil.
7018
7019 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7020 (syms_of_xdisp): Initialize them.
7021 (resize_mini_window): Act according to the setting of
7022 Vresize_mini_window.
7023 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7024
ecaedde1
GM
7025 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7026 scroll bar widget after configuring it, so that it will appear at
7027 the right position from the start.
7028 (XTredeem_scroll_bar): Cleaned up.
7029
3747ef2c
KH
70302000-11-08 Kenichi Handa <handa@etl.go.jp>
7031
7032 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 7033 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
7034 division by two.
7035
7036 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7037
03391420
DL
70382000-11-07 Dave Love <fx@gnu.org>
7039
7758f1c1 7040 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
7041
7042 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7043
b5de343d
GM
70442000-11-07 Gerd Moellmann <gerd@gnu.org>
7045
acad3c0b
GM
7046 * window.c (Fset_window_configuration): Don't try to preserve
7047 point in the current buffer, if that buffer is displayed in more
7048 than one window.
7049
b5de343d
GM
7050 * xfaces.c (lookup_named_face): If default face isn't realized,
7051 try to realize it. Return -1 if not successful.
7052 (Fx_list_fonts): Handle case that face cannot be determined.
7053 (Fface_font): Likewise.
7054
cdb1fe49
GM
70552000-11-06 Gerd Moellmann <gerd@gnu.org>
7056
7057 * window.c (displayed_window_lines): Detect partially
7058 visible lines at the bottom correctly.
7059
d3a67486
SM
70602000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7061
7062 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7063 when ensuring we don't do visit in indirect buffer.
7064
ff8dd5d5
KH
70652000-11-06 Kenichi Handa <handa@etl.go.jp>
7066
7067 * composite.h (compose_chars_in_text): Add prototype.
7068
7069 * composite.c (Vcomposition_function_table): New variable.
7070 (Qcomposition_function_table): New variable.
7071 (run_composition_function): Call
7072 Vcompose_chars_after_function with three arguments.
7073 (compose_chars_in_text): New function.
7074 (syms_of_composite): Modified the doc-string of
7075 Vcompose_chars_after_function. Declare composition-function-table
7076 as a lisp variable, and initialize it.
7077
7078 * xfns.c (x_encode_text): Suppress producing escape sequences for
7079 composition.
7080
7081 * xselect.c: Include composite.h.
7082 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7083
d1145f85
AI
70842000-11-05 Andrew Innes <andrewi@gnu.org>
7085
7086 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7087
7088 * sysdep.c (read_input_waiting): Remove extraneous argument to
7089 read_socket_hook.
7090
7091 * w32fns.c (Fx_server_version): Include w32_build_number in the
7092 return list.
7093
7094 * w32heap.c (w32_build_number): New variable.
7095 (cache_system_info): Set it.
7096
7097 * w32heap.h (w32_build_number): Add extern.
7098
7099 * emacs.c (syms_of_emacs): Update docstring for
7100 system-configuration, to reflect the actual usage on MS-Windows.
7101
e85ee976
GM
71022000-10-31 Gerd Moellmann <gerd@gnu.org>
7103
26dcb81b
GM
7104 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7105 process idle timers while waiting for another event.
7106
52283633 7107 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
7108 the default face are colored.
7109
e85ee976
GM
7110 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7111 window height hasn't changed.
7112
01b220b6
JR
71132000-10-31 Jason Rumney <jasonr@gnu.org>
7114
7115 * w32term.c (x_produce_glyphs): Handle composite characters.
7116 (x_draw_glyph_string_foreground)
7117 (x_draw_composite_glyph_string_foreground): Restore old font.
7118
4e6b7204
MB
71192000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7120
7121 * minibuf.c (read_minibuf): Reset the undo history just before
7122 starting the recursive-edit.
7123
d4358b37
GM
71242000-10-30 Gerd Moellmann <gerd@gnu.org>
7125
563f68f1
GM
7126 * xfaces.c (menu_face_change_count): New variable.
7127 (Finternal_set_lisp_face_attribute): Increment it for changes
7128 of the `menu' face.
7129 (realize_basic_faces): Reflect changes in the `menu' faces
7130 in menu bars.
7131
82e274d1
GM
7132 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7133 dy obtained from the iterator's y-position after moving from
7134 scroll_margin_pos to PT; see comment there.
52283633 7135
0dbf9fd2
GM
7136 * xdisp.c (safe_eval_handler): Call add_to_log.
7137
906b3b14
GM
7138 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7139 is not a symbol or string.
7140
d4358b37
GM
7141 * xdisp.c (echo_area_display): Don't perform a display update from
7142 inside redisplay. The update will happen anyway at the end of
7143 redisplay, and it can confuse redisplay (GC messages while
7144 redisplaying, for instance.)
7145
70c825df
SM
71462000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7147
cf9b4b0b
SM
7148 * xrdb.c (x_load_resources): Use the class name in the defaults.
7149
70c825df
SM
7150 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7151 (regex_compile): Catch bogus \(\1\).
7152
a1d34b1e
GM
71532000-10-30 Gerd Moellmann <gerd@gnu.org>
7154
cae71efe
GM
7155 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7156 RGB values.
52283633 7157
35efe0a1
GM
7158 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7159 we have a color cache, check that the cached color equals the
7160 allocated color. If not, clear the color cache.
7161
1d3baf74
GM
7162 * window.c (displayed_window_lines): Change buffers if necessary.
7163 Fix computation of displayed lines.
7164
a1d34b1e
GM
7165 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7166 update_menu_bindings to DEFVAR_BOOL.
7167
70737ea9
KH
71682000-10-30 Kenichi Handa <handa@etl.go.jp>
7169
70c825df 7170 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 7171
fa0cb51d
KH
7172 * puresize.h (BASE_PURESIZE): Increase to 680000.
7173
70737ea9
KH
7174 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7175
0e4c08e8
JR
71762000-10-29 Jason Rumney <jasonr@gnu.org>
7177
7178 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7179
7180 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7181 (w32_cache_char_metrics): Handle possibility that 'x' does not
7182 exist in a BDF font.
7183 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7184
7185 * w32bdf.h (bdffont): Add nchars.
7186
7187 * w32bdf.c (set_bdf_font_info): Set it.
7188 (w32_BDF_TextOut): Swap byte order of double byte characters.
7189 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7190
45b84006
EZ
71912000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7192
7193 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7194 don't override the colors in frame's param_alist, unless they are
7195 unspecified.
7196
7197 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7198 reverse the effect of the highlight flag.
7199
caf9deee
KR
72002000-10-27 Ken Raeburn <raeburn@gnu.org>
7201
7202 * window.h (Fwindow_live_p): Declare.
7203
ae0b9b46
KR
7204 * undo.c (record_delete): Check that last_undo_buffer is really a
7205 buffer before applying XBUFFER to it.
7206
7207 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7208 Faref.
7209
02067692
SM
72102000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7211
7212 * lisp.h (KEYMAPP): New macro.
7213 (get_keymap): Remove.
7214 (get_keymap_1): Rename get_keymap.
7215
7216 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7217
7218 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7219
7220 * xmenu.c (single_submenu): Use KEYMAPP.
7221 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7222 Use KEYMAPP rather than Fkeymapp.
7223
7224 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7225
7226 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7227 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7228 Use KEYMAPP rather than Fkeymapp.
7229 (single_submenu): Use KEYMAPP.
7230 (w32_menu_show, w32_dialog_show): Use TRUE.
7231
7232 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7233
7234 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7235 (Fkeymapp): Use KEYMAPP.
7236 (get_keymap): Rename from get_keymap_1. Remove old def.
7237 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7238 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7239 (Fminor_mode_key_binding): Don't raise an error if the binding
7240 is not a keymap.
7241 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7242 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7243
7244 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7245 Allow Vspecial_event_map to be autoloaded.
7246 (menu_bar_items): Fetch the keymap rather than using keymapp.
7247 (menu_bar_one_keymap): No need to follow func-indirect any more.
7248 (parse_menu_item): get_keymap_1 -> get_keymap.
7249 (tool_bar_items): Fetch the keymap rather than using keymapp.
7250 (read_key_sequence): Use KEYMAPP.
7251
7252 * intervals.c (get_local_map): Use get_keymap rather than following
7253 function-indirections explicitly.
7254
7255 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7256
f9d80af3
JR
72572000-10-27 Jason Rumney <jasonr@gnu.org>
7258
7259 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7260 point, as Windows has oversized fonts.
7261
7262 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7263
a3ba27da
GM
72642000-10-27 Gerd Moellmann <gerd@gnu.org>
7265
7266 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7267 (freehook, reallochook): Handle null pointer arguments.
7268 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7269
aa3b80cc
SM
72702000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7271
7272 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7273 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7274 Giving in to popular pressure to shut up the compiler with casts.
7275
e24e84cc
GM
72762000-10-27 Gerd Moellmann <gerd@gnu.org>
7277
7278 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7279 signed value, and use a default value computed from the font's
7280 maximum descent.
7281
05ea7ef2
MB
72822000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7283
7284 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7285 that specify a negative underline position can still use underlines.
7286
7287 * window.c (Fpos_visible_in_window_p): Make POS default to
7288 WINDOW's point, not the current buffer's point.
7289
0b95284b
DL
72902000-10-26 Dave Love <fx@gnu.org>
7291
7292 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7293 when it's necessary.
7294
6c5b90af
GM
72952000-10-26 Gerd Moellmann <gerd@gnu.org>
7296
8b6d9dc9
GM
7297 * window.c (size_window): Compute size difference from sum of old
7298 child window sizes instead of from parent's size.
7299
6bc92b2e
GM
7300 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7301 Handle obscured lines at the top of the window.
7302
7303 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7304 down after the last error condition check.
7305
6c5b90af
GM
7306 * frame.c (Fdelete_frame): Run delete-frame-hook.
7307
42f92d4d
KH
73082000-10-26 Kenichi Handa <handa@etl.go.jp>
7309
7310 * coding.c (decode_coding): Fix previous change (check also
7311 CODING_MODE_LAST_BLOCK).
7312
d97151cb
SM
73132000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7314
e7efc503
SM
7315 * regex.c: More `unsigned char' -> `re_char' changes.
7316 Also change several `int' into `re_wchar_t'.
7317 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7318 (PUSH_FAILURE_POINTER): Don't cast any more.
7319 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7320 We want GCC to complain, since this piece of code makes
7321 re_match non-reentrant, which *should* be fixed.
7322 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7323 (EXTEND_BUFFER): Use RETALLOC.
7324 (SET_LIST_BIT): Don't cast.
7325 (re_wchar_t): New type.
7326 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7327 that those two functions will always properly return.
7328 (IMMEDIATE_QUIT_CHECK): Cast to void.
7329 (analyse_first): Use recursion rather than an explicit stack.
7330 (re_compile_fastmap): Can't fail anymore.
7331 (re_search_2): Don't check re_compile_fastmap for failure.
7332 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7333 Now also sets the new value (passed in a new argument).
7334 (re_match_2_internal): Use it.
7335 Also, use a new var `reg' of type size_t when looping through regs
7336 rather than reuse the inappropriate `mcnt'.
7337
d97151cb
SM
7338 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7339 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7340 (where_is_internal): Renamed from Fwhere_is_internal.
7341 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7342 (Fwhere_is_internal): New function wrapping where_is_internal.
7343 (where_is_internal_1): Handle the case where we're filling the cache.
7344 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7345
d5789b65
MB
73462000-10-25 Miles Bader <miles@gnu.org>
7347
7348 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7349
4ecda532
GM
73502000-10-25 Gerd Moellmann <gerd@gnu.org>
7351
7352 * window.c (pos_fully_visible_p): Removed.
7353 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7354 if position is visible and/or fully visible.
7355
7356 * lisp.h (pos_visible_p): Add prototype.
7357
7358 * xdisp.c (pos_visible_p): New function.
7359
68c3a137
KH
73602000-10-25 Kenichi Handa <handa@etl.go.jp>
7361
7362 * process.c (send_process): If OBJECT is t, it means that the data
7363 is from C string, but we should encode it. Before calling
7364 setup_raw_text_coding_system, be sure to flush out data by the
7365 previous coding system.
7366
7ae1c032
MB
73672000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7368
ff4dcd4b
MB
7369 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7370 assignment of startpos to prev when startpos == pos.
7371
7ae1c032
MB
7372 * editfns.c (find_field): Set the field stickiness correctly from
7373 overlay fields. Use renamed `text_property_stickiness'.
7374 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 7375 Only check text properties, not overlays.
7ae1c032
MB
7376 * textprop.c (get_char_property_and_overlay): New function.
7377 (Fget_char_property): Use it.
7378 * intervals.h (get_char_property_and_overlay): Add declaration.
7379
49801145
SM
73802000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7381
7382 * keymap.c: Use AREF, ASET and ASIZE macros.
7383 (Fmake_sparse_keymap): Docstring fix.
7384 (synkey): Remove.
7385 (shadow_lookup): Move up.
7386 Handle the case where lookup-key returns an integer.
7387 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7388 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7389 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7390 Simplify/rewrite the keymap-finding code.
7391 Add check for command shadowing, using shadow_lookup.
7392
39e776cd
SM
73932000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7394
7395 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7396 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7397 a symbol.
7398
2488aba5
AI
73992000-10-24 Andrew Innes <andrewi@gnu.org>
7400
7401 * dired.c (directory_files_internal_unwind): New function.
7402 (directory_files_internal): Use it to ensure closedir is called
7403 even if expand-file-name or file-attributes throw, eg. because of
7404 a user interrupt. Also enable immediate_quit while calling
7405 re_search, so that matching can be interrupted as well.
7406
b94fdf61
AI
74072000-10-24 Andrew Innes <andrewi@gnu.org>
7408
7409 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7410 NT-Emacs only.
7411 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7412 so that re_search functions only quit when callers expect them to.
7413
74142000-10-24 Kenichi Handa <handa@etl.go.jp>
7415
7416 * regex.c (regex_compile): Change the way of handling a range from
7417 a char less than 256 to a char not less than 256.
7418
1946f901
GM
74192000-10-24 Gerd Moellmann <gerd@gnu.org>
7420
7ae2f10f
GM
7421 * window.c (size_window): Prevent setting window's width or
7422 height to a negative value (esp. with XSETFASTINT).
7423
5dcab13e
GM
7424 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7425 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7426 (protect_malloc_state) [GC_MALLOC_CHECK &&
7427 GC_PROTECT_MALLOC_STATE]: New function.
7428 (PROTECT_MALLOC_STATE): New macro.
7429 (__malloc_initialize, morecore, _malloc_internal)
7430 (_free_internal) _realloc_internal): Use it to make _heapinfo
7431 read-only outside of gmalloc.
7432
63e1b552
GM
7433 * keymap.c: Update copyright.
7434
1946f901
GM
7435 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7436 a symbol.
7437
4fa09beb
GM
74382000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7439
7440 * filelock.c (unlock_all_files): Use unlock_file to expand each
7441 buffer's file_truename before trying remove its lock file.
7442
23afac01
EZ
74432000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7444
7445 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7446 or CRLF, decode EOLs.
7447
04448b95
KH
74482000-10-24 Kenichi Handa <handa@etl.go.jp>
7449
7450 * window.c (Fdisplay_buffer): Fix doc.
7451
3090a5a5
JR
74522000-10-23 Jason Rumney <jasonr@gnu.org>
7453
7454 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7455 ASCII font of default fontset on Windows.
7456
7457 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7458 xterm.c comment below).
7459
7460 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7461
a83fee2c
GM
74622000-10-23 Gerd Moellmann <gerd@gnu.org>
7463
7464 * xterm.c (x_connection_closed): Reset handling_signal.
7465
52283633 7466 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 7467
6ffdb539
MB
74682000-10-23 Miles Bader <miles@gnu.org>
7469
7470 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7471 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7472 maintain old behavior.
7473 * minibuf.c (Fminibuffer_complete): Likewise.
7474
7f1c969b
MB
74752000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7476
7477 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7478 that when a font can't be exactly centered, it errs up rather than
7479 down.
7480
23afac01 74812000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 7482
52283633 7483 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 7484
1a578e9b
AC
74852000-10-23 Andrew Choi <akochoi@i-cable.com>
7486
7487 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7488
7489 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 7490 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
7491
7492 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7493 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7494 syms_of_search, x_term_init, and init_keyboard before calling
7495 init_window_once. Also, call syms_of_xmenu.
7496
7497 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7498 default fontset to Monaco.
7499
7500 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7501 NewMacWindow and DisposeMacWindow.
7502 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7503 instead of calling NewMacWindow and setting fields of
7504 f->output_data.mac directly. Call init_frame_faces.
7505 (Fdelete_frame) [macintosh]: Remove unused code.
7506 (Fmodify_frame_parameters) [macintosh]: Call
7507 x_set_frame_parameters instead of mac_set_frame_parameters.
7508
7509 * frame.h [macintosh]: Define menu_bar_lines field in struct
7510 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7511
7512 * keyboard.c [macintosh]: Include macterm.h.
7513 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7514 and menu_bar_activate_event type events as for X and NT.
7515 (make_lispy_event) [macintosh]: Construct lisp events of type
7516 MENU_BAR_EVENT as for X and NT.
7517
7518 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7519 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7520 (sys_subshell) [macintosh]: Remove definition entirely.
7521 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7522 Vwindow_system_version here. Remove initialization of
7523 Vx_bitmap_file_path.
7524 (read_input_waiting): Correct the number of parameters passed to
7525 read_socket_hook.
7526 Move all Macintosh functions to mac/mac.c.
7527
7528 * term.c [macintosh]: Include macterm.h.
7529
7530 * window.c [macintosh]: Include macterm.h.
7531
7532 * xdisp.c [macintosh]: Include macterm.h. Declare
7533 set_frame_menubar and pending_menu_activation.
7534 (echo_area_display) [macintosh]: Do not return if terminal frame
7535 is the selected frame.
7536 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7537 Allow only the selected frame to set menu bar.
7538 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7539 calling FRAME_EXTERNAL_MENU_BAR (f).
7540 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7541
7542 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7543 and check_x. Declare XCreateGC. Define x_create_gc and
7544 x_free_gc. Initialize font_sort_order.
7545 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7546 but call x_list_fonts instead of w32_list_fonts.
7547 (Finternal_face_x_get_resource) [macintosh]: Do not call
7548 display_x_get_resource.
7549 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7550 (realize_x_face) [macintosh]: Load the font if it is specified in
7551 ATTRS.
52283633 7552 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 7553
1ffbabe3
SM
75542000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7555
7556 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7557 is nil: since we go to the end of submap anyway, we'd end up
7558 setting nil to nil.
7559 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7560 doesn't obey autoload.
7561
bed43f1d
EZ
75622000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7563
1ffbabe3 7564 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 7565
ea4233a7
JR
75662000-10-21 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32term.c (w32_cache_char_metrics): Double check that font is
7569 really fixed pitch before trusting tmPitchAndFamily.
7570
f3d3c491
AI
75712000-10-21 Andrew Innes <andrewi@gnu.org>
7572
7573 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7574
7575 * w32term.h: Extern decl for w32_cache_char_metrics.
7576
7577 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7578
7579 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7580 (w32_unload_font): Free per_char array if present.
7581
7582 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7583 cached information in emulated XFontStruct to handle common cases
7584 quickly. Do not allocate XCharStruct for return.
7585 (w32_native_per_char_metric): New function.
7586 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7587 allocating one.
7588 (x_produce_glyphs): Don't get an HDC. Change calls to
7589 w32_per_char_metric to match arg change above. Remove calls to
7590 free results.
7591 (w32_get_glyph_overhangs): Ditto.
7592 (w32_cache_char_metrics): New function.
7593
7594 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7595 ($(BLD)/casefiddle.$(O)): Remove compile command.
7596 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
7597 ($(BLD)/dispnew.obj):
7598 ($(BLD)/keyboard.obj):
7599 ($(BLD)/w32inevt.obj):
7600 ($(BLD)/w32bdf.obj):
7601 ($(BLD)/alloc.obj):
7602 ($(BLD)/buffer.obj):
7603 ($(BLD)/editfns.obj):
7604 ($(BLD)/emacs.obj):
7605 ($(BLD)/fileio.obj):
7606 ($(BLD)/fns.obj):
7607 ($(BLD)/indent.obj):
7608 ($(BLD)/insdel.obj):
7609 ($(BLD)/intervals.obj):
7610 ($(BLD)/minibuf.obj):
7611 ($(BLD)/print.obj):
7612 ($(BLD)/scroll.obj):
7613 ($(BLD)/sysdep.obj):
7614 ($(BLD)/textprop.obj):
7615 ($(BLD)/widget.obj):
f3d3c491
AI
7616 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7617 ($(BLD)/term.obj): Add dependency on dispextern.h.
7618
52283633
SM
7619 * makefile.nt ($(BLD)\dispnew.obj):
7620 ($(BLD)\keyboard.obj):
7621 ($(BLD)\w32inevt.obj):
7622 ($(BLD)\w32bdf.obj):
7623 ($(BLD)\alloc.obj):
7624 ($(BLD)\buffer.obj):
7625 ($(BLD)\editfns.obj):
7626 ($(BLD)\emacs.obj):
7627 ($(BLD)\fileio.obj):
7628 ($(BLD)\fns.obj):
7629 ($(BLD)\indent.obj):
7630 ($(BLD)\insdel.obj):
7631 ($(BLD)\intervals.obj):
7632 ($(BLD)\minibuf.obj):
7633 ($(BLD)\print.obj):
7634 ($(BLD)\scroll.obj):
7635 ($(BLD)\sysdep.obj):
7636 ($(BLD)\textprop.obj):
7637 ($(BLD)\widget.obj):
f3d3c491
AI
7638 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7639 ($(BLD)\term.obj): Add dependency on dispextern.h
7640
18ad4821
EZ
76412000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7642
7643 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7644 with an additional argument of Qt.
7645
de54681a
MB
76462000-10-21 Miles Bader <miles@gnu.org>
7647
7648 * window.c (pos_fully_visible_in_window_p): New function.
7649 (Fpos_visible_in_window_p): Add FULLY argument.
7650 Use pos_fully_visible_in_window_p.
7651 (window_scroll_pixel_based, window_scroll_line_based): Update
7652 calls to Fpos_visible_in_window_p.
7653 * lisp.h (Fpos_visible_in_window_p): Update prototype
7654
13c844fb
GM
76552000-10-20 Gerd Moellmann <gerd@gnu.org>
7656
7657 * alloc.c (toplevel): Conditionalize compilation of mem_*
7658 functions differently.
52283633 7659
d9506268
JR
76602000-10-20 Jason Rumney <jasonr@gnu.org>
7661
7662 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7663 mem_init where it used to be. mem_z etc not defined otherwise.
7664
8094989b
GM
76652000-10-20 Gerd Moellmann <gerd@gnu.org>
7666
7667 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7668 GC_MALLOC_CHECK.
7669 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7670 structure definition and related variabled to the top of the file.
7671 Include this code when GC_MALLOC_CHECK is defined.
7672 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7673 register/unregister allocated region.
7674 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7675 which isn't allocated.
7676 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7677 something which is already in use.
7678 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7679 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7680 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7681 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7682
7683 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7684 _malloc_internal instead of malloc.
7685 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7686 of free.
7687
ea456eb4
AI
76882000-10-20 Andrew Innes <andrewi@gnu.org>
7689
7690 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7691 Windows.
7692 (my_strftime) <macro>: Don't use macro arg list when redefining as
7693 _strftime_copytm.
7694 (my_strftime) <function>: Supply 0 as ut argument.
7695
e64c3a75
JR
76962000-10-19 Jason Rumney <jasonr@altavista.net>
7697
7698 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7699 including dispextern.h, as it stops faces from working.
7700
7701 * w32fns.c (Fx_create_frame): Don't bother calling
7702 face-set-after-frame-default since the caller does it for us
7703 anyway. Clean up calls to x_get_arg to be consistent with X.
7704
7705 * w32term.c (x_produce_glyphs): Handle
7706 unibyte_display_via_language_environment correctly.
7707 (w32_draw_box_rect): Fix the calculation of width and height.
7708
7709 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7710 as it has stopped working.
7711 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7712 menu-bar.
7713
17401c97
GM
77142000-10-19 Gerd Moellmann <gerd@gnu.org>
7715
7716 * eval.c (skip_debugger): Prevent a compiler warning.
7717 (Fcondition_case): Likewise.
7718 (Fbacktrace_frame): Use a null interactive spec.
7719
773272d8
KH
77202000-10-19 Kenichi Handa <handa@etl.go.jp>
7721
7722 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7723
a42943e9
GM
77242000-10-18 Gerd Moellmann <gerd@gnu.org>
7725
e50517d9
GM
7726 * strftime.c: Sync with glibc, file version 1.78.
7727 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7728 should no longer be used according to ISO 8601.
7729
9035a35a
GM
7730 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7731 no map for meta_prefix_char, don't try to use it as a keymap.
7732 Instead, if T_OK is non-zero, look up a default binding, if any,
7733 otherwise, if T_OK is zero, return nil.
7734
a42943e9
GM
7735 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7736 (x_to_xcolors, png_load): Use x_query_color.
7737
52283633
SM
7738 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7739 New functions.
a42943e9
GM
7740 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7741 which can be slow.
7742 (x_copy_color, x_alloc_lighter_color): Likewise.
7743
7744 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7745 (x_query_color, x_query_colors): Add prototype.
7746
7747 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7748 check_string_bytes only if not noninteractive, increase count to 50.
7749
00de2987
MB
77502000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7751
7752 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7753 markers correctly.
7754
54918e2b
GM
77552000-10-17 Gerd Moellmann <gerd@gnu.org>
7756
1f0b3fd2
GM
7757 * alloc.c (pure_bytes_used): Renamed from pureptr.
7758 (ALIGN): New macro.
7759 (pure_alloc): New function.
7760 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7761 Use it.
7762 (Fpurecopy): Use PURE_POINTER_P.
7763
68c5d1db
GM
7764 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7765 PT has moved backward.
52283633 7766
9a038881
GM
7767 * xdisp.c (cursor_row_p): Take continued lines into account.
7768
361b097f
GM
7769 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7770 string's size_byte.
7771 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7772 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7773 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7774 string allocated.
7775
54918e2b
GM
7776 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7777 of selective display off while searching for the next line start.
7778
03ed0806
KH
77792000-10-17 Kenichi Handa <handa@etl.go.jp>
7780
7781 * Makefile.in (term.o): Depend on dispextern.h.
7782
7e05cdaf
SM
77832000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7784
7785 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7786
a6801fd1
GM
77872000-10-16 Gerd Moellmann <gerd@gnu.org>
7788
483de32b
GM
7789 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7790 the iterator at the beginning, so that they can be set later on,
7791 for instance in reseat_at_next_visible_line_start, without being
7792 overwritten.
7793
a6801fd1
GM
7794 * xfns.c (pbm_format): Add :foreground and :background keywords.
7795 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 7796 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 7797
dbf1fcc1
EZ
77982000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7799
7800 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7801
52283633 7802 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
7803
7804 * msdos.c (IT_set_face): Compare highlighted face with the default
7805 face, and invert colors if these faces' colors are identical.
7806 (Fmsdos_remember_default_colors): Don't swap foreground and
7807 background colors in initial_colors[].
7808 (IT_set_frame_parameters): Don't swap frame's foreground and
7809 background pixels. If ALIST includes "(reverse . t)", swap
7810 foreground-color and background-color properties in frame's
7811 param_alist. If the original frame's param_alist doesn't specify
7812 the colors, store unspecified-fg and unspecified-bg, reversed if
7813 required.
7814
7815 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7816 the colors are unspecified and reversed, reverse fore- and back-
7817 ground in the returned value.
7818 (Fframe_parameter): Ditto.
7819
b41fe2c3 78202000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 7821
3a6b59d9
GM
7822 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7823 get_last_unchanged_at_beg_row.
7824 (find_first_unchanged_at_end_row): Renamed from
7825 get_first_unchanged_at_end_row.
7826 (find_first_unchanged_at_end_row): Convert assertions to
7827 unconditional tests which abort. When looking for a row in
7828 unchanged text, don't go further back than first_text_row.
7829
b41fe2c3
GM
7830 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7831 Don't add in the last line's height when deciding if the new
7832 position is below the scroll margin.
9d1af64f 7833
b41fe2c3 78342000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
7835
7836 * editfns.c (Fconstrain_to_field): Check carefully for field
7837 boundaries if either OLD_POS or NEW_POS has a non-nil field
7838 property, even if they're the same.
7839
c412cb7b
KH
78402000-10-16 Kenichi Handa <handa@etl.go.jp>
7841
7842 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7843 height for XFillRectangle.
7844
5586f3eb
SM
78452000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7846
7847 * syntax.c (Fstring_to_syntax): New function extracted from
7848 Fmodify_syntax_entry.
7849 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7850 (skip_chars, Fforward_comment): Remove unused variables.
7851 (syms_of_syntax): Add defsubr for string-to-syntax.
7852 (describe_syntax): Add code for comment and string fences.
7853
db785038
SM
78542000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7855
7856 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7857 Do the meta->esc mapping. Call get_keyelt before returning.
7858 Start scanning from the second element (the first is always `keymap')
7859 to make it easier to detect when we reach a parent map.
7860 Handle the case of inheriting from a symbol whose function is a map.
7861 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7862 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7863 (get_keyelt, Flookup_key): Update call to access_keymap.
7864 Remove the meta->esc mappings.
7865 (define_as_prefix): Delete old disabled code.
7866 (menu_item_p): New function.
7867 (where_is_internal_1): Skip over the few remaining menu items.
7868 * lisp.h (access_keymap): Update prototype.
7869 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7870 Update call to access_keymap.
7871 (follow_key, read_key_sequence): Update calls to access_keymap.
7872 Remove the meta->esc mappings.
7873
cafafe0b
GM
78742000-10-13 Gerd Moellmann <gerd@gnu.org>
7875
a2e2a7f6
GM
7876 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7877 with additional argument.
7878
cafafe0b
GM
7879 * xdisp.c (cursor_row_p): New function.
7880 (try_cursor_movement, display_line): Use it.
52283633 7881
cafafe0b
GM
7882 * xdisp.c (append_space): Also save/restore iterator's current
7883 character and its length.
7884
7885 * xdisp.c (init_from_display_pos): Add an assertion.
7886 (handle_stop): Don't set iterator's add_overlay_start.
7887 (handle_invisible_prop): Likewise.
7888 (load_overlay_strings): If text under an overlay is invisible,
7889 take both before- and after-strings into account when the iterator
7890 is positioned either at the start or at the end of the overlay.
7891 (forward_to_next_line_start): Rewritten.
7892 (reseat_at_next_visible_line_start): Rewritten.
7893 (set_iterator_to_next): Add parameter RESEAT_P.
7894
7895 * dispextern.h (struct it): Remove member add_overlay_start.
7896 (set_iterator_to_next): Change prototype.
7897
c744452b
KH
78982000-10-13 Kenichi Handa <handa@etl.go.jp>
7899
7900 * coding.c (code_convert_region): Be sure to initialize
7901 coding->category_idx.
e4a3f4e1
KH
7902 (decode_coding_string): Set coding->src_multibyte and
7903 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7904 (encode_coding_string): Set coding->src_multibyte and
7905 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 7906
321fd26f
SM
79072000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7908
7909 * xfns.c (Fx_create_frame): Don't bother calling
7910 face-set-after-frame-default since the caller does it for us anyway.
7911
76832439
EZ
79122000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7913
7914 * window.c (coordinates_in_window): Fix detection of vertical line
7915 on character terminals.
7916
2483cf58
GM
79172000-10-12 Gerd Moellmann <gerd@gnu.org>
7918
7919 * editfns.c (save_excursion_save): Additionally record the
7920 selected window.
7921 (save_excursion_restore): If buffer was visible in a window, and a
7922 different window was selected, and the old selected window is
7923 still live, restore point in that window.
7924
eb991b25
KH
79252000-10-12 Kenichi Handa <handa@etl.go.jp>
7926
8a0eba09
KH
7927 * xterm.c (x_produce_glyphs): Handle
7928 unibyte_display_via_language_environment correctly.
7929
20401fcc
KH
7930 * regex.c (regex_compile): Change the way of handling a range from
7931 unibyte char to multibyte char.
7932
7933 * syntax.c (skip_chars): Change the way of handling a range from
7934 unibyte char to multibyte char.
7935
eb991b25
KH
7936 * process.c (read_process_output): Cancel previous change.
7937
365dd325
EZ
79382000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7939
c1b096cb
EZ
7940 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7941
365dd325
EZ
7942 * charset.c (Ffind_charset_string): Doc fix.
7943 (Ffind_charset_region): Doc fix.
7944
eb483c2b
KH
79452000-10-11 Kenichi Handa <handa@mule.m17n.org>
7946
7947 * process.c (read_process_output): Fix previous change. Adjust
7948 multibyteness of text to insert in a buffer by
52283633 7949 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 7950
b40bfb99
AS
79512000-10-10 Andreas Schwab <schwab@suse.de>
7952
7953 * alloc.c (mark_object): Remove all workarounds installed on
7954 1993-08-08.
7955
caff31d4
KH
79562000-10-10 Kenichi Handa <handa@etl.go.jp>
7957
52283633 7958 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
7959 (base64_encode_1): Make it work for a text of multibyte form.
7960 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7961 case. Don't call str_to_multibyte because base64_decode_1
7962 produces correct multibyte form for eight-bit codes.
52283633 7963 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
7964 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7965 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7966 codes.
7967
7968 * charset.h (CHAR_STRING): Optimized for single byte characters.
7969
cba026ef
AS
79702000-10-09 Andreas Schwab <schwab@suse.de>
7971
7972 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7973 -1 after socket is closed, to fall through to error processing.
7974
1e21fe48
EZ
79752000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7976
7977 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 7978 variables. If ALIST includes foreground-color or
1e21fe48
EZ
7979 background-color, change also the colors of the default face for
7980 this frame.
7981
a640322e
EZ
79822000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7983
7984 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7985 them extern (they are defined on xfaces.c).
7986 (syms_of_msdos): Don't intern and don't staticpro
7987 Qbackground_color and Qforeground_color.
7988
a115794c
EZ
79892000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7990
7991 * frame.c (Fframe_parameter): For non-windowed frames, if
7992 f->param_alist says foreground or background color is unspecified,
7993 call tty_color_name to return the color name computed from the
7994 frame's current colors.
7995
f5533b63
DL
79962000-10-06 Dave Love <fx@gnu.org>
7997
7998 * terminfo.c (ospeed): Don't declare.
7999
8000 * sysdep.c: Don't include string.h.
8001 (h_errno): Declare conditional also on TRY_AGAIN.
8002
8003 * charset.c (Ffind_charset_string): Doc fix.
8004
52283633 8005 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
8006 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8007 error messages.
8008
2b06561a
DL
80092000-10-05 Dave Love <fx@gnu.org>
8010
8011 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8012 position like menu-bar.
8013
ca839c85
GM
80142000-10-05 Gerd Moellmann <gerd@gnu.org>
8015
8016 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8017
8018 * xdisp.c (handle_single_display_prop): Use safe_call1.
8019 (safe_call): Renamed from call_function.
8020 (safe_call1): New function.
8021 (handle_fontified_prop): Use safe_call1 instead of call1.
8022 (safe_eval): Renamed from eval_form.
8023 (safe_eval_handler): Renamed from eval_handler.
8024 (handle_single_display_prop, display_mode_element): Use safe_eval
8025 instead of eval_form.
8026
8027 * xfaces.c (merge_face_heights): Use safe_call instead of
8028 call_function.
8029
8030 * keyboard.c (show_help_echo): Use safe_call instead of
8031 call_function; use safe_eval instead of eval_form.
8032
8033 * lisp.h (safe_call): Renamed from call_function.
8034 (safe_eval): Renamed from eval_form.
8035 (safe_call1): Add prototype.
8036
a3489ece
MB
80372000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8038
8039 * xfns.c (image_ascent): Rearrange ascent calculation for the
8040 has-a-font case.
8041
35810b6f
SM
80422000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8043
8044 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8045 (where_is_internal_1): Don't bother ignoring menu-items any more.
8046
3dc78168
GM
80472000-10-04 Gerd Moellmann <gerd@gnu.org>
8048
8049 * keyboard.c (update_menu_bindings): New variable.
8050 (parse_menu_item): Use AREF. If update_menu_bindings
8051 is 0, don't update menu bindings.
8052 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8053
1efc2bb9
EZ
80542000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8055
8056 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8057 to `mark_object'.
8058
3f679f55
SM
80592000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8060
8061 * syntax.c (forw_comment): Match nestedness of ender/starter.
8062 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8063 (prev_char_comstart_first): Remove.
8064 (back_comment): Check two-char comment markers more carefully
8065 to better handle overlapping cases like *//* or /* */* */ ...
8066 Match nestedness of ender/starter.
8067
2021ab61
DL
80682000-10-02 Dave Love <fx@gnu.org>
8069
8070 * config.in (HAVE_GAI_STRERROR): Add undef.
8071
8072 * process.c (Fopen_network_stream): Use it.
8073
8074 * m/alpha.h (NO_REMAP): Don't define.
8075
64e6cc18
GM
80762000-10-02 Gerd Moellmann <gerd@gnu.org>
8077
8078 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8079 return with a string converted to an integer or vice versa when
8080 Vmocklisp_arguments is t.
8081 (Fsignal): Likewise. The function can return for `quit'.
8082 (struct gcpro): Declare member `var' to point to a volatile
8083 Lisp_Object.
8084
8085 * eval.c (error): Prevent compiler warning.
8086
b1904cd9
SM
80872000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8088
8089 * keymap.c (keymap_memberp): New function.
8090 (Fset_keymap_parent): Use it.
8091 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8092 Use keymap_memberp to avoid creating cycles.
8093 (access_keymap): Use KEYMAPP.
8094
71c9ec51
GM
80952000-09-30 Gerd Moellmann <gerd@gnu.org>
8096
8097 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
8098 gai_strerror. Make sure xerrno is set if connect fails. Improve
8099 error recovery.
71c9ec51 8100
c70c6b58
JR
81012000-09-29 Jason Rumney <jasonr@gnu.org>
8102
8103 * w32term.c (w32_char_font_type, w32_encode_char)
8104 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8105 (w32_bdf_per_char_metric): New function.
8106 (w32_per_char_metric): Use it.
8107 (x_draw_glyph_string_background): Always draw background for BDF
8108 glyphs.
8109
8110 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8111 GDI object which is a scarce resource.
8112
8113 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8114 (get_quoted_string): Fix limit on memchr search.
8115 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8116 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8117 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8118 (get_cached_font_char, cache_char_offset): Use macro
8119 BDF_CODEPOINT_RANGE_COVER_P.
8120 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8121 (clear_cached_bitmap_slots): New function.
8122 (GET_HEX_VALUE): G-Z, g-z are not hex.
8123 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8124 (get_bitmap_with_cache): Use new cache implementation.
8125 (create_offscreen_bitmap): New function.
8126 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8127
8128 * w32term.c (x_produce_glyphs): If the distance from the current
8129 position to the next tab stop is less than a canonical character
8130 width, use the tab stop after that.
8131 (x_draw_glyphs): Handle case START and END are out of bounds more
8132 carefully.
8133 (x_clear_mouse_face): Block/unblock input.
8134 (x_display_and_set_cursor): Don't show a hollow box cursor for
8135 buffers whose cursor_type is nil.
8136
fe01239f
GM
81372000-09-29 Gerd Moellmann <gerd@gnu.org>
8138
52283633 8139 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
8140
8141 * dispextern.h (updating_frame): Declare extern.
8142
e7c52f1f
AS
81432000-09-29 Andreas Schwab <schwab@suse.de>
8144
8145 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8146
de6e1f7c
GM
81472000-09-29 Gerd Moellmann <gerd@gnu.org>
8148
25126faa
GM
8149 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8150 use its function definition.
8151 (tool_bar_items): Likewise.
8152
de6e1f7c 8153 * lisp.h (fatal): Declare NO_RETURN.
52283633 8154
454ee39b
KH
81552000-09-29 Kenichi Handa <handa@etl.go.jp>
8156
8157 * keymap.c: Remove the line "#undef NULL".
8158
96301c5f
GM
81592000-09-28 Gerd Moellmann <gerd@gnu.org>
8160
52283633 8161 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 8162
efffeeb4
DL
81632000-09-28 Dave Love <fx@gnu.org>
8164
ecb8b666
DL
8165 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8166
dc3cd20f
DL
8167 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8168
8169 * .gdbinit (xreload): Note its need on GNU/Linux.
8170
efffeeb4
DL
8171 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8172 r_alloc, r_alloc_free.
8173
8610d903
KH
81742000-09-28 Kenichi Handa <handa@etl.go.jp>
8175
8176 * syntax.c (skip_chars): Handle negation correctly.
8177
8901d1ac
GM
81782000-09-27 Gerd Moellmann <gerd@gnu.org>
8179
6f22f1ad
GM
8180 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8181 with non-zero FORCE_P argument.
8182
52283633 8183 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
8184 Add assertions.
8185
8186 * xdisp.c (window_box_height): Add an assertion.
8187
8188 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8189 tool-bar than is available.
8190 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8191
36f1966f
DL
81922000-09-27 Dave Love <fx@gnu.org>
8193
efffeeb4 8194 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 8195
31d929e5
GM
81962000-09-26 Gerd Moellmann <gerd@gnu.org>
8197
c98863bf
GM
8198 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8199 instead of BITS_PER_INT.
8200 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8201 EMACS_UINT, respectively.
8202 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8203
8204 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8205
8206 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8207
77072ab1
GM
8208 * window.c (freeze_window_starts): Construct last argument for
8209 foreach_window differently.
8210
8211 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8212
8213 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8214 EMACS_UINT instead of `int' and `unsigned int'.
8215 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8216
8217 * frame.h (struct frame): Make the `nothing' member of union
8218 output_data an EMACS_INT.
8219
52283633 8220 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
8221 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8222 size in the sdata structure.
8223 (SDATA_NBYTES, SDATA_DATA): New macros.
8224 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8225 differently for the different layout of the sdata structure.
8226 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8227 in sdata.
8228 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8229 Check that size recorded in the string size and size recorded in
8230 the sdata structure agree.
8231
3e60b029
DL
82322000-09-25 Dave Love <fx@gnu.org>
8233
8234 * buffer.c: Include stdio.h.
8235
8236 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 8237
3e60b029
DL
8238 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8239
8240 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 8241 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
8242 (__malloc_extra_blocks): Declare as __malloc_size_t.
8243
8ff16b4e
GM
82442000-09-25 Gerd Moellmann <gerd@gnu.org>
8245
755a2ccd
GM
8246 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8247
d8b4516f
GM
8248 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8249 (read_char): If help-echo is showing, preserve the echo area
8250 when redisplaying.
8251
8252 * xdisp.c (help_echo_showing_p): New variable.
8253 (set_message): Reset it to 0.
8254 (init_xdisp): Initialize help_echo_showing_p.
8255
8256 * dispextern.h (help_echo_showing_p): Declare extern.
8257
8258 * config.in: Fix typo in __GNUC_MINOR__.
8259
8260 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8261
b11af2dd
GM
8262 * s/freebsd.h (POSIX_SIGNALS): Define.
8263
8ff16b4e
GM
8264 * xterm.c (x_clear_mouse_face): Block/unblock input.
8265
844eb643
DL
82662000-09-24 Dave Love <fx@gnu.org>
8267
8268 * fns.c (base64_encode_1): Fix last change.
8269
b30ab1b3
GM
82702000-09-22 Gerd Moellmann <gerd@gnu.org>
8271
8272 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8273
8274 * xdisp.c (try_window_reusing_current_matrix): More fixes
8275 for the case window has a header-line.
8276
c6cbe5f0
DL
82772000-09-22 Dave Love <fx@gnu.org>
8278
4c7c1f3f
DL
8279 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8280 a doc string.
8281
8282 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8283
c6cbe5f0
DL
8284 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8285
550a625e
GM
82862000-09-21 Gerd Moellmann <gerd@gnu.org>
8287
4c7c1f3f 8288 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
8289 for GCC >= 2.5.
8290
52283633
SM
8291 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8292 Declare NO_RETURN.
fca99116 8293
80d26f99
GM
8294 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8295 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8296 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8297 warnings.
52283633 8298
80d26f99
GM
8299 * marker.c (byte_char_debug_check): Return void.
8300
623a0aae
GM
8301 * xfns.c (Fx_create_frame): Set default frame parameter value
8302 for tool-bar-lines to 1.
8303
8304 * dispnew.c (scrolling_window): Compare y-positions of rows
8305 equal at the start. Some simplification.
8306
8307 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8308 reused rows' y-position in the case window has a header-line, and
8309 new window start is greater than old window start.
8310
42ac0ae5
GM
8311 * process.c (process_sent_to): New variable.
8312 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8313 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8314 Declare more parameters volatile.
8315
550a625e
GM
8316 * lread.c (Vrecursive_load_depth_limit): New variable.
8317 (Fload): Check recursive loads whose recursion depth exceeds
8318 Vrecursive_load_depth_limit.
8319 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8320
8320414c
GM
83212000-09-20 Gerd Moellmann <gerd@gnu.org>
8322
f46c275e
GM
8323 * fileio.c (Fread_file_name): Doc fix.
8324
8325 * editfns.c (Fmessage_or_box): Doc fix.
8326
8327 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8328
b7e11c5b 8329 * xfns.c (xbm_scan): Allow C-style comments.
52283633 8330
8320414c
GM
8331 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8332 symbols are specified, add color translations to the cache.
52283633 8333 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
8334 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8335 xpm_cache_color.
8336 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8337 structures to xpm_init_color_cache.
8338
da1608d9
GM
83392000-09-19 Gerd Moellmann <gerd@gnu.org>
8340
52283633 8341 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 8342
6badfa25
AI
83432000-09-19 Andrew Innes <andrewi@gnu.org>
8344
8345 * makefile.nt (bootstrap-emacs): Don't change directory.
8346
3a5f42bb
KH
83472000-09-19 Kenichi Handa <handa@etl.go.jp>
8348
1b7649bd
KH
8349 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8350
3a5f42bb
KH
8351 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8352 If output buffer is too small, signal an appropriated error.
8353
9f83cf0b
DL
83542000-09-18 Dave Love <fx@gnu.org>
8355
52283633 8356 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
8357 (current_active_maps): Remove redundant get_local_map call.
8358
28c7826c
GM
83592000-09-18 Gerd Moellmann <gerd@gnu.org>
8360
5cefa566
GM
8361 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8362 cursor for buffers whose cursor_type is nil.
52283633 8363
6fed3546
GM
8364 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8365 a feature to implement that is already implemented.
8366 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8367 warnings.
8368
8369 * xfns.c (x_clear_image_1): New function.
8370 (x_clear_image): Use it.
52283633 8371 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 8372
05b1f851
GM
8373 * dispnew.c (update_window): Move test for invisible lines
8374 at the top to update_window_line.
8375 (update_window_line): Handle invisible lines here.
8376
f4779de9
GM
8377 * xfns.c (clear_image_cache): Clear current matrices of all
8378 frames sharing an image cache. Block input while freeing
8379 images. Fix timestamp comparison.
8380 (x_clear_image): Also free the mask.
8381
28c7826c
GM
8382 * xfns.c (lookup_image): Block input while loading the image so
8383 that we won't get interrupted in a state where the image isn't yet
8384 set up completely.
8385 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8386 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8387 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 8388 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 8389
b7412313
GM
83902000-09-16 Gerd Moellmann <gerd@gnu.org>
8391
8392 * dispnew.c (update_window): Make sure to make desired rows
8393 current even if they are completely invisible at the top
8394 of a window.
8395
47e351a3
GM
83962000-09-15 Gerd Moellmann <gerd@gnu.org>
8397
7f8f1edc
GM
8398 * xfns.c (lookup_image): Build mask before applying an algorithm.
8399 Recognize algorithm `disabled'.
8400 (cross_disabled_images): New variable.
8401 (COLOR_INTENSITY): New macro.
8402 (x_detect_edges): Use COLOR_INTENSITY.
8403 (x_disable_image): New function.
8404 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8405
8406 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8407 disabled state, don't apply an image transformation algorithm if
8408 the user specified an image for the disabled state. Use
28c7826c 8409 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
8410 user hasn't specified an image.
8411
ebb8f116
GM
8412 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8413 allocation functions with the XPM lib.
8414 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8415 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8416 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8417 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 8418 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
8419 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8420 functions, if possible, because these handle color allocation
8421 failure more gracefully.
8422 (Fimage_mask_p): New function.
8423
47e351a3
GM
8424 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8425 (Qedge_detection, Qheuristic): New symbols.
8426 (syms_of_xfns): Initialize new symbols.
8427 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8428 `algorithm (edge-detection ...)'.
8429 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8430 (tiff_format, gif_format, gs_format): Add `:mask'.
8431 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8432 (GIF_MASK, GS_MASK): New enumerators.
8433 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8434 (emboss_matrix, laplace_matrix): New variables.
8435 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8436 (x_edge_detection): New functions.
8437 (x_laplace): Rewritten in terms of x_detect_edges.
8438 (x_build_heuristic_mask): If image has a mask, free it.
8439
fe83b953
AI
84402000-09-14 Andrew Innes <andrewi@gnu.org>
8441
8442 * makefile.w32-in: Revert to Unix line endings.
8443
3021e816
AI
84442000-09-14 Andrew Innes <andrewi@gnu.org>
8445
8446 * makefile.w32-in: Standardize indentation somewhat.
8447 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8448 cater for differences between shells.
8449
8450 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8451
2a32b5ea
GM
84522000-09-14 Gerd Moellmann <gerd@gnu.org>
8453
8454 * xterm.c (x_produce_glyphs): If the distance from the current
8455 position to the next tab stop is less than a canonical character
8456 width, use the tab stop after that.
8457
b4331e96
DL
84582000-09-14 Dave Love <fx@gnu.org>
8459
8460 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8461
ef9e4345
GM
84622000-09-14 Gerd Moellmann <gerd@gnu.org>
8463
085536c2
GM
8464 * xdisp.c (handle_fontified_prop): While running fontification
8465 functions, bind `fontification-functions' and
8466 `after-change-functions' to nil.
8467
ef9e4345
GM
8468 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8469 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8470
8471 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8472
8473 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8474 USE_MMAP_FOR_BUFFERS.
8475
8476 * insdel.c (make_gap): Use enlarge_buffer_text.
8477
8478 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8479 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8480 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8481 from former r_alloc_* functions in ralloc.c.
52283633 8482 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
8483 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8484 (mmap_init) [REL_ALLOC_MMAP]: New function.
8485 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8486 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8487 BUFFER_FREE.
8488
8489 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8490 (enlarge_buffer_text): Add prototype.
8491
8492 * ralloc.c: Remove everything having to do with the use of mmap.
8493
f8608968
GM
84942000-09-13 Gerd Moellmann <gerd@gnu.org>
8495
2a494b2d
GM
8496 * sound.c (Fplay_sound): Doc fix.
8497
8c907a56
GM
8498 * keyboard.c: Avoid some more compiler warnings.
8499 (parse_tool_bar_item): Ignore cached key bindings.
8500
f8608968
GM
8501 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8502 and allocation of Lisp data.
8503
6ab70e9a
GM
85042000-09-12 Gerd Moellmann <gerd@gnu.org>
8505
d12d0a9b
GM
8506 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8507 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8508 defaults first.
8509
6ab70e9a
GM
8510 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8511
63c36c3c
KH
85122000-09-12 Miyashita Hisashi <himi@meadowy.org>
8513
8514 * ccl.c: Comment fixed.
8515 (MAX_MAP_SET_LEVEL): Increased to 30.
8516 (PUSH_MAPPING_STACK): Enclose with do-while block.
8517 (POP_MAPPING_STACK): Likewise.
8518 (stack_idx_of_map_multiple): New variable.
8519 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8520 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 8521 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
8522 (ccl_driver) <CCL_MapSingle>: Likewise.
8523 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8524 with the case where looking up process reaches to the end of
8525 map-set, and call CCL programs as the above change.
8526
7ee3bd7b
GM
85272000-09-11 Gerd Moellmann <gerd@gnu.org>
8528
8ec8a5ec
GM
8529 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8530 that might be clobbered by longjmp.
8531 (check_x_display_info, x_decode_color, create_frame_xic)
8532 (Fx_display_backing_store, Fx_display_visual_class)
52283633 8533 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 8534
f74b0705
GM
8535 * lread.c (init_lread): Set Vloads_in_progress to nil.
8536 (Fload): Show list of recursively loaded files, when signaling an
8537 error.
8538
7ee3bd7b
GM
8539 * lread.c (Vloads_in_progress): New variable.
8540 (record_load_unwind): New function.
8541 (Fload): Check for recursive loads.
8542 (syms_of_lread): Initialize Vloads_in_progress.
8543 (read_integer, read1): Avoid some compiler warnings.
8544
8545 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8546 compiler warnings.
8547
974e1e5b
MB
85482000-09-11 Miles Bader <miles@gnu.org>
8549
8550 * editfns.c (Fbuffer_string): Doc fix.
8551
9824c4e3
GM
85522000-09-10 Gerd Moellmann <gerd@gnu.org>
8553
8554 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8555
6a72fdd1
KR
85562000-09-09 Ken Raeburn <raeburn@gnu.org>
8557
8558 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8559 whether to include other header files.
8560
28e6fb66
GM
85612000-09-09 Gerd Moellmann <gerd@gnu.org>
8562
52283633 8563 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 8564 by Fmemq as a boolean.
28e6fb66 8565
7f8b6551
SM
85662000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8567
8568 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8569
a8710abf
GM
85702000-09-08 Gerd Moellmann <gerd@gnu.org>
8571
d1a02881
GM
8572 * ralloc.c (mmap_fd): Remove initializer which can make it
8573 read-only in a dumped Emacs.
8574 (mmap_fd_1): New variable.
8575 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8576 restore it from there.
8577 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8578 unconditionally so that mmap_fd can be initialized there.
8579 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8580 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8581 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8582
c454aac1
GM
8583 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8584
8585 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 8586 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 8587
fc653ef2
GM
8588 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8589
3015eec0
GM
8590 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8591 inheritance.
8592
bfe0ee88
GM
8593 * xdisp.c (try_window_id): When trying to locate cursor in
8594 unchanged rows at the top, handle the case that we can't find it.
8595
a8710abf
GM
8596 * xterm.c (x_draw_glyphs): Handle case START and END are out
8597 of bounds more carefully.
8598
6b7d4ae4
DL
85992000-09-08 Dave Love <fx@gnu.org>
8600
423193c5
DL
8601 * s/sol2.h (REL_ALLOC_MMAP): Define.
8602 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8603
8604 * ralloc.c: Don't include string.h (redundant).
8605 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8606 [!MAP_ANON]: Include fcntl.h.
8607 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8608 (r_alloc, r_re_alloc, r_alloc_free)
8609 (mmap_enlarge, mmap_set_vars): Use it.
8610 (r_alloc_init_fd): New function.
8611 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8612 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8613 malloc type.
8614
8615 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8616 Remove vm-limit.o.
8617
6b7d4ae4
DL
8618 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8619 change to __NetBSD__.
8620
44d31981
KH
86212000-09-08 Kenichi Handa <handa@etl.go.jp>
8622
8623 * search.c (compile_pattern): Check the multibyteness of cached
8624 string and PATTERN.
8625
aad40737
MB
86262000-09-08 Miles Bader <miles@gnu.org>
8627
8628 * xfaces.c (default_face_vector): Function removed.
8629 (Finternal_merge_in_global_face): Restore old global/local
8630 attribute override order. Use inline loop instead of calling
8631 default_face_vector.
8632
91a211b5
GM
86332000-09-07 Gerd Moellmann <gerd@gnu.org>
8634
8635 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8636 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8637 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8638 where necessary, in case POINTER_TYPE is `void'.
8639
03419440
EZ
86402000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8641
8642 * frame.c (make_terminal_frame): Initialize frame foreground and
8643 background colors to unspecified, for the initial instance of an
8644 MSDOS frame.
8645
f46f845b
GM
86462000-09-07 Gerd Moellmann <gerd@gnu.org>
8647
24f76fbf
GM
8648 * ralloc.c (mmap_find): Fix overlap computation.
8649 (mmap_enlarge): Compute nbytes before trying to find an
8650 overlapping region.
8651
f46f845b
GM
8652 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8653 instead of `!='.
8654
8655 * lread.c (syms_of_lread): Change value of regexp
8656 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8657
8658 * xmenu.c (xdialog_show): When looking up the selection in
8659 menu_items, take `quote' boundaries into account; this corresponds
8660 to a nil ITEM in x-popup-dialog.
8661
3c014385
KH
86622000-09-07 Kenichi Handa <handa@etl.go.jp>
8663
fd6f711b
KH
8664 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8665 not 0x81.
8666 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8667
3c014385 8668 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
8669 encoding, not decoding. Fix the handling of latin-jisx0201.
8670 Check for the charset katakana-jisx0201 too.
3c014385 8671 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 8672 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 8673
0da3ecef
GM
86742000-09-07 Gerd Moellmann <gerd@gnu.org>
8675
ab0ee409
GM
8676 * xfaces.c (Vparam_value_alist): New variable.
8677 (syms_of_xfaces): Initialize it.
8678 (Finternal_set_lisp_face_attribute): Avoid more consing.
8679
8680 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8681 specially.
8682 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8683 (Qbackground_mode): New variable.
8684 (syms_of_frame_1): Initialize Qbackground_mode.
8685
8686 * lisp.h (Qdisplay): Declare extern.
1091dd67 8687
0da3ecef
GM
8688 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8689 change face on all frames, and change the default for new frames.
8690
b14654b9
DL
86912000-09-07 Dave Love <fx@gnu.org>
8692
8693 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8694
d24fd56f
KH
86952000-09-07 Kenichi Handa <handa@etl.go.jp>
8696
794f3670
KH
8697 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8698
0fddd0dc
KH
8699 * charset.c: Include composite.h
8700 (lisp_string_width): New function.
8701 (Fstring_width): Call lisp_string_width instead of strwidth.
8702
8703 * Makefile.in (charset.o): Depends on composite.h.
8704
d24fd56f
KH
8705 * process.c (read_process_output): Before inserting the decoded
8706 text in the buffer, adjust the multibyteness.
8707
fa0b693c
GM
87082000-09-06 Gerd Moellmann <gerd@gnu.org>
8709
52283633 8710 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
8711 buffer's text buffer is null, map new memory.
8712
0a58f946
GM
8713 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8714 POINTER_TYPE and size_t.
8715 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8716 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8717 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8718 [REL_ALLOC_MMAP]: New macros.
8719 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8720 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8721 [REL_ALLOC_MMAP]: New functions.
8722
8723 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8724 before and after unexec.
8725
8726 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8727 text buffers if necessary.
8728
8729 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8730 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8731 in prototypes.
8732
fa0b693c
GM
8733 * config.in (HAVE_MMAP): Add #undef.
8734
877055f6
GM
87352000-09-05 Gerd Moellmann <gerd@gnu.org>
8736
08ba3862
GM
8737 * frame.c (Qdisplay_type): New variable.
8738 (syms_of_frame_1): Initialize it.
8739 (Fframe_parameter): New function that avoids consing.
8740 (syms_of_frame): Defsubr it.
8741
66ffe51c
GM
8742 * buffer.c (Fother_buffer): Consider buffers as invisible when
8743 they are displayed in a window on an invisible frame.
8744
877055f6
GM
8745 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8746 get-largest-window always return nil.
8747
bb970e67
GM
87482000-09-04 Gerd Moellmann <gerd@gnu.org>
8749
8750 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8751 variable; recognize Emacs 19 elc files.
8752
7a3d0e0e
MB
87532000-09-04 Miles Bader <miles@gnu.org>
8754
8755 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8756 before initially popping up the menu, so the menu doesn't flash
52283633 8757 when the face settings are significantly different from the defaults.
7a3d0e0e 8758
14473664
SM
87592000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8760
8761 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8762 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8763 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8764 (BIT_UNIBYTE): Remove.
8765 (re_match_2_internal): Delete corresponding code and streamline the
8766 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8767 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8768 (re_wctype_t): New type.
8769 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8770 (regex_compile): Use them and fix handling of overly long char classes.
8771
c1174479
AI
87722000-09-03 Andrew Innes <andrewi@gnu.org>
8773
f8803e97
AI
8774 * makefile.w32-in: Change to DOS line endings.
8775
c1174479
AI
8776 * s/ms-w32.h (ORDINARY_LINK): New define.
8777
8778 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8779 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8780
8781 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8782 (distclean): Delete them here instead.
8783
44ef7cf6
AI
8784 * w32proc.c (compare_env): Convert to uppercase for comparison,
8785 not lowercase, to match how the native Windows shell works.
8786
49b3bd82
JR
87872000-09-03 Jason Rumney <jasonr@gnu.org>
8788
8789 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8790 CVS changes the line-ends when checking in/out on DOS/Windows.
8791
8792 * makefile.nt (emacs): Do not change directory to run temacs, as
8793 the load-path is set relative to current directory.
8794
a3d35a39
MB
87952000-09-03 Miles Bader <miles@gnu.org>
8796
8797 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8798
d276b0cf
GM
87992000-09-02 Gerd Moellmann <gerd@gnu.org>
8800
715e84c9
GM
8801 * xdisp.c (redisplay_mode_lines): New function.
8802 (display_mode_lines): Return number of mode lines displayed.
8803 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8804 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8805
8892f40b
GM
8806 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8807 string.h and strings.h.
8808 (index) [HAVE_INDEX]: Add prototype.
8809
d276b0cf
GM
8810 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8811 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8812
8813 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8814 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8815
38404229
GM
88162000-09-01 Gerd Moellmann <gerd@gnu.org>
8817
8818 * lread.c (read1): Accept `?' as symbol constituent, for
8819 compatiblity with XEmacs.
8820
c0f9ea08
SM
88212000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8822
8823 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8824 (struct re_pattern_buffer): Remove newline_anchor.
8825 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8826 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8827 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8828 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8829 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8830 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8831 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8832 Get rid of references to newline_anchor.
8833 (regcomp): Allocate and precompute a fastmap.
8834
8c0f83fe
GM
88352000-08-31 Gerd Moellmann <gerd@gnu.org>
8836
8837 * lread.c (openp): GCPRO local variable `filename'.
8838
4bb91c68
SM
88392000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8840
8841 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8842
8843 * regex.c: Merge some changes from GNU libc. Add prototypes.
8844 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8845 Use memcmp and memcpy instead of bcopy and bcmp.
8846 (init_syntax_once): Use ISALNUM.
8847 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8848 (REG_UNSET_VALUE): Remove. Use NULL instead.
8849 (REG_UNSET, re_match_2_internal): Use NULL.
8850 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8851 New macros.
8852 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8853 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8854 (regex_compile): In handle_interval, return an error rather than try to
8855 unfetch the interval if we can't find the closing brace.
8856 Obey the RE_NO_GNU_OPS syntax bit.
8857 (TOLOWER): New macro.
8858 (regcomp): Use it.
8859 (regexec): Allocate regs.start and regs.end as one block.
8860
5226a931
GM
88612000-08-30 Gerd Moellmann <gerd@gnu.org>
8862
868dd24b
GM
8863 * xdisp.c (echo_area_display): Check display_completed instead
8864 of calling detect_input_pending.
8865
8866 * dispnew.c (update_frame): Only set display_completed here; move
8867 the update_begin and update_end calls here from update_frame_1.
8868 (update_frame_1): Don't set display_completed here, don't call
8869 update_begin/update_end.
8870
5226a931
GM
8871 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8872 instead of store_frame_param.
8873
2a8bd25f
GM
88742000-08-29 Gerd Moellmann <gerd@gnu.org>
8875
8876 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8877 desired window matrix hasn't been displayed, use the current row
8878 instead. Make sure that only those frame rows are updated for
8879 which there exists a corresponding enabled desired row.
52283633 8880
ba3478d9
MB
88812000-08-29 Miles Bader <miles@gnu.org>
8882
8883 * xfaces.c (default_face_vector): New function.
8884 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8885
87d0f685
GM
88862000-08-29 Gerd Moellmann <gerd@gnu.org>
8887
8888 * lread.c (openp): Prevent temporary string passed to
8889 Ffile_readable_p from being garbage collected.
8890
6fa86045
DL
88912000-08-28 Dave Love <fx@gnu.org>
8892
8893 * keymap.c (store_in_keymap): Add `static' to declaration.
8894
bb17930d
GM
88952000-08-28 Gerd Moellmann <gerd@gnu.org>
8896
8897 * emacs.c, callint.c, doc.c, editfns.c
8898 (toplevel) [HAVE_STRING_H]: Include string.h.
8899 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8900 (index): Remove prototypes which might conflict with non-standard
8901 definitions of index/strchr.
8902
8903 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8904 (rindex): Define only if !HAVE_RINDEX.
8905
8906 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8907
8908 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8909
87188200
MB
89102000-08-28 Miles Bader <miles@gnu.org>
8911
8912 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8913 made inconsistent by a font-related attribute in FROM.
8914 (merge_face_inheritance): Add function comment.
8915
41a68aef
KH
89162000-08-28 Kenichi Handa <handa@etl.go.jp>
8917
8918 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8919 the 4th arg (PREV_EVENT) Qt to suppress input method.
8920
f7c436c1
SM
89212000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8922
0b32bf0e
SM
8923 * regex.c: Indent cpp directives and remove parens after `defined'.
8924 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8925 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8926 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8927 (re_compile_pattern): Use size_t for length.
8928 (init_syntax_once): Move to a better place.
8929 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8930 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8931
f7c436c1
SM
8932 * syntax.c (back_comment): Detect cases where a comment-starter is
8933 actually inside another comment as in: /* a // b */ c // d \n.
8934 Make it clear that `comstart_pos' is unused for nested comments.
8935
8936 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8937 (KEYMAPP): New macro.
8938 (Fkeymap_parent, Fset_keymap_parent): Use it.
8939 (fix_submap_inheritance): Mark it static.
8940 (define_as_prefix, describe_buffer_bindings, describe_command)
8941 (describe_translation, describe_map): Complete prototypes.
8942
8943 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8944
8945 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8946 to better match the key-lookup behavior.
8947
6288c62f
GM
89482000-08-27 Gerd Moellmann <gerd@gnu.org>
8949
8950 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8951 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8952
e931344e
EZ
89532000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8954
8955 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8956 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8957 (xterm.o): Depend on coding.h
8958
d10dfeef
KH
89592000-08-26 Kenichi Handa <handa@etl.go.jp>
8960
8961 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8962 the corresponding '#endif'.
8963
2d73e8d3
MB
89642000-08-26 Miles Bader <miles@gnu.org>
8965
8966 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8967 * xfaces.c (QCinherit): New variable.
8968 (syms_of_xfaces): Initialize it.
8969 (LFACE_INHERIT): New macro.
8970 (Finternal_get_lisp_face_attribute)
52283633 8971 (merge_face_vector_with_property)
2d73e8d3
MB
8972 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8973 (check_lface_attrs): Allow new types of face height. Check
8974 inherit attribute.
8975 (CYCLE_CHECK): New macro.
8976 (merge_face_inheritance): New function.
8977 (merge_face_vectors): Merge inherited faces too. Add F and
8978 CYCLE_CHECK arguments.
8979 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8980 (lookup_named_face, lookup_derived_face, realize_named_face)
8981 (face_at_string_position, face_at_buffer_position): Supply
8982 new F and CYCLE_CHECK arguments to merge_face_vectors.
8983 (merge_face_heights): New function.
52283633 8984 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
8985 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8986 handle relative face heights.
8987 (lface_same_font_attributes_p): Compare heights using EQ.
8988
6ce974d4
KH
89892000-08-26 Kenichi Handa <handa@etl.go.jp>
8990
8991 * charset.c (char_to_string): Check the character validity.
52283633 8992 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 8993
dc1e502d
SM
89942000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8995
8996 * regex.c (PUSH_FAILURE_COUNT): New macro.
8997 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8998 Handle popping of a register's or a counter's data.
8999 (POP_FAILURE_POINT): Use the new name.
9000 (re_match_2_internal): Push counter data on the stack for succeed_n,
9001 jump_n and set_number_at and remove misleading dead code in succeed_n.
9002
bd9d0f3f
GM
90032000-08-25 Gerd Moellmann <gerd@gnu.org>
9004
9005 * xdisp.c (redisplay_internal): If considering all windows on all
9006 frames, update the display for each frame as soon as possible,
9007 instead of first building all desired matrices for all frames, and
9008 then updating them all.
9009 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9010
aa5b8e15
GM
90112000-08-24 Gerd Moellmann <gerd@gnu.org>
9012
17494071
GM
9013 * bytecode.c (mark_byte_stack): Add a comment.
9014
52283633
SM
9015 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9016 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
9017 a graphical frame.
9018
c543db81
KH
90192000-08-24 Kenichi Handa <handa@etl.go.jp>
9020
d246d5f5
KH
9021 * minibuf.c (do_completion): Always use compare-string, not
9022 string-equal because the latter doesn't pay attention to
9023 multibyteness of strings.
9024
c543db81
KH
9025 * process.c (create_process): Don't setup raw-text coding here.
9026 (Fopen_network_stream): Don't set coding->src_multibyte and
9027 coding->dst_multibyte here.
9028 (read_process_output): For process filter, return unibyte string
9029 if default-enable-multibyte-characters is nil.
9030 (send_process): If OBJECT is multibyte text, be sure to encoded it
9031 by the specified coding system for the process. Otherwise, setup
9032 raw-text coding.
52283633 9033 (init_process): Don't initialize default-process-coding-system here.
c543db81 9034
9b47cfe0
EZ
90352000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9036
9037 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9038 <scroll-down-aggressively>: Likewise.
9039
f5a36960
KH
90402000-08-23 Kenichi Handa <handa@etl.go.jp>
9041
9042 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9043 zero. Set coding->produced_char correctly.
9044
69a7ffa7
AI
90452000-08-22 Andrew Innes <andrewi@gnu.org>
9046
9047 * makefile.w32-in: New file.
9048
9049 * unexw32.c (unexec): Ignore old_name, and use the actual location
9050 of the current executable instead. Base new_name on this.
9051
9052 * w32proc.c (create_child): Remove reference to security
9053 descriptor, which isn't needed and doesn't compile with mingw32.
9054
9055 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9056 up dllimport attributes.
9057 (x_update_window_end): Update prototype.
9058
9059 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9060 extern, which screws up dllimport attributes.
9061
9062 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9063 up dllimport attributes.
9064
9065 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9066 screws up dllimport attributes.
9067
9068 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9069 up dllimport attributes.
9070 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9071 screws up dllimport attributes.
9072
9073 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9074 up dllimport attributes.
9075
9076 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9077 screws up dllimport attributes.
9078
9079 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9080 screws up dllimport attributes.
9081
9082 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9083 up dllimport attributes.
9084
9085 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9086 unnecessary extern, which screws up dllimport attributes.
9087 (main): Ditto.
9088
9089 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9090 up dllimport attributes.
9091
9092 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9093 unnecessary extern, which screws up dllimport attributes.
9094
9095 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9096 screws up dllimport attributes.
9097
9098 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9099 up dllimport attributes.
9100
9101 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9102
52283633
SM
9103 * w32bdf.c (search_file_line):
9104 (set_bdf_font_info):
9105 (seek_char):
9106 (w32_get_bdf_glyph):
69a7ffa7
AI
9107 (w32_BDF_to_x_font): Fix compile warnings.
9108
52283633 9109 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
9110
9111 * w32select.c: Include keyboard.h before frame.h.
9112
9113 * w32fns.c (max): Define macro.
9114 (JOHAB_CHARSET): Define if not known.
9115 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9116 (Fx_show_tip): Synch with X version.
9117
9118 * w32xfns.c: Include keyboard.h before frame.h.
9119
9120 * w32fns.c: Include keyboard.h before frame.h.
9121
9122 * w32term.c: Include keyboard.h before frame.h.
9123
9124 * fontset.c: Include keyboard.h before frame.h.
9125
9126 * w32inevt.c: Include keyboard.h before frame.h.
9127 (MOUSE_MOVED): Define if not known.
9128
9129 * minibuf.c: Include keyboard.h before frame.h.
9130
9131 * keyboard.c: Include keyboard.h before frame.h.
9132
9133 * indent.c: Include keyboard.h before frame.h.
9134
9135 * dispnew.c: Include keyboard.h before frame.h.
9136
9137 * buffer.c: Include keyboard.h before frame.h.
9138
9139 * alloc.c: Include keyboard.h before frame.h.
9140
9141 * print.c: Include keyboard.h before frame.h.
9142
9143 * process.c: Include keyboard.h before frame.h.
9144
9145 * scroll.c: Include keyboard.h before frame.h.
9146
9147 * sysdep.c: Include keyboard.h before frame.h.
9148
9149 * term.c: Include keyboard.h before frame.h.
9150
9151 * window.c: Include keyboard.h before frame.h.
9152
9153 * xdisp.c: Include keyboard.h before frame.h.
9154 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9155
9156 * frame.c: Include keyboard.h before frame.h.
9157
9158 * w32heap.h: Undefine min, max.
9159
9160 * w32gui.h: Undefine min, max.
9161
9162 * unexw32.c: Change PUCHAR to PCHAR.
9163 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
9164 (relocate_offset):
9165 (get_section_info):
69a7ffa7
AI
9166 (copy_executable_and_dump_data): Remove unnecessary static defs.
9167 (copy_executable_and_dump_data): Fix compile warnings.
9168
9169 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9170
9171 * w32console.c (min): Define macro.
9172 (clear_frame, write_glyphs): Fix compile warning.
9173
52283633 9174 * w32proc.c (compare_env):
69a7ffa7
AI
9175 (find_child_console): Fix compile warning.
9176
9177 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9178 sys_errlist instead of _sys_errlist.
9179 (get_emacs_configuration_options): New function.
9180
9181 * s/ms-w32.h (sys_nerr): Provide default definition.
9182 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9183 name with _ prepended.
9184 (NSIG): Define if not known.
9185 (get_emacs_configuration): Provide extern declaration.
9186 (get_emacs_configuration_options): Provide extern declaration.
9187 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9188
9189 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 9190 (map_w32_filename):
69a7ffa7
AI
9191 (read_unc_volume): Fix compile warning.
9192
9193 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9194 definitions from being used.
9195
9196 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9197
52283633 9198 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
9199 (open_unc_volume): Make arg const.
9200
9201 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9202 (read_input_waiting): Remove excess parameter.
9203
9204 * w32.c (init_environment): Call _access.
9205 (check_windows_init_file): Call _close.
9206 (init_user_info): Call _putenv.
9207 (init_environment): Call _putenv and _strdup.
9208 (init_ntproc): Reset volume info cache on startup.
9209
9210 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9211 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9212 cannot override the CRT malloc.
9213
9214 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9215 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9216
9217 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9218 unless we are linking with a static CRT.
9219 (RVA_TO_PTR): Cast result to unsigned char*.
9220
9221 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9222 (add_volume_info): Use xstrdup.
9223
25060080
SM
92242000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9225
9226 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9227 (do_completion, Fminibuffer_complete_word): Use it.
9228 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9229 var so it can take non-boolean values.
9230
6917e6bb
GM
92312000-08-21 Gerd Moellmann <gerd@gnu.org>
9232
acb7cc89 9233 * editfns.c (find_field): Formatting changes.
52283633 9234 (toplevel): Some old-style function forward declarations
acb7cc89
GM
9235 changed to prototypes, some new protypes added, some functions
9236 made static.
9237
9238 * lisp.h (set_time_zone_rule): Add prototype.
9239 (use_dialog_box): External declaration.
9240
0bbfdc25
GM
9241 * keyboard.c (gen_help_event): Add parameter SIZE.
9242 (kbd_buffer_events_waiting): Slightly rewritten.
9243 (clear_event): New function.
9244 (kbd_buffer_get_event): Use it, and clear the input_events of
9245 HELP_EVENTs.
9246 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9247 don't fill the newly created array with nils.
9248 (toplevel): Convert some old-style function forward declarations
9249 to prototypes.
9250
9251 * keyboard.h (gen_help_event): Change prototype.
9252
9253 * xterm.c (XTread_socket): Change calls to gen_help_event.
9254
9255 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9256
6917e6bb
GM
9257 * eval.c (Fmacroexpand): Doc fix.
9258
e5cd3d11
JR
92592000-08-20 Jason Rumney <jasonr@gnu.org>
9260
9261 * w32term.h (x_display_info_for_display): Remove as this function
9262 does not exist on W32.
9263
9264 * w32term.c (help_echo_window): New variable.
9265 (syms_of_w32term): staticpro it.
9266 (note_mode_line_highlight): Set it.
9267 (XTextExtents16): Removed as there is no equivalent on W32.
9268 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9269 the X way of doing this will not work for W32.
9270 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9271 (x_draw_image_foreground): Avoid drawing outside of the clip area
9272 when image doesn't have a mask.
9273 (note_mouse_highlight): Process overlays in the right order of
9274 priority. Set help_echo_window.
9275 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9276 because that's more visible for large images.
9277
9278 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9279 name to single_keymap_panes.
9280 (w32_menu_show): Set wv->title when dealing with titles.
9281 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9282
6e69ab8c
MB
92832000-08-21 Miles Bader <miles@gnu.org>
9284
9285 * minibuf.c (do_completion): Try again if we rewrite the input
9286 string, but no completion was done, so that any completion message
9287 will be correct.
9288
511bd4eb
GM
92892000-08-20 Gerd Moellmann <gerd@gnu.org>
9290
9291 * xfaces.c (lface_equal_p): Compare strings differently.
9292 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9293 (realize_tty_face): Use them.
9294 (syms_of_xfaces): Initialize new variables.
9295 (map_tty_color): New function, extracted from realize_tty_face.
9296 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9297 foreground or background color, store the new color name in the
9298 realized face; previous code trying to do this had no effect.
9299 (realize_tty_face): Use map_tty_color.
9300 (Fclear_face_cache): Set face_change_count and ensure thorough
9301 redisplay.
9302
1433385f
GM
93032000-08-19 Gerd Moellmann <gerd@gnu.org>
9304
511bd4eb
GM
9305 * undo.c (record_first_change, record_marker_adjustment): Don't
9306 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 9307
419ac0a2
KH
93082000-08-18 Kenichi Handa <handa@etl.go.jp>
9309
9310 * coding.c (decode_coding_string): Set members consumed,
9311 consumed_char, produced, produced_char of *coding correctly. If
9312 decode_coding doesn't consume any byte, don't try anymore.
9313 (encode_coding_string): Likewise.
9314
7eb9e30d
GM
93152000-08-18 Gerd Moellmann <gerd@gnu.org>
9316
511bd4eb
GM
9317 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9318 conditional have void type, for Standard C compilers.
7eb9e30d
GM
9319
9320 * xdisp.c (redisplay_internal): Compare windows for equality with
9321 EQ, instead of applying XWINDOW to something that might not
9322 be a window.
52283633 9323
dd34a735
KH
93242000-08-18 Kenichi Handa <handa@etl.go.jp>
9325
9326 * fontset.c (Finternal_char_font): Search only the selected frame
9327 for a window of the current buffer.
9328
385ff9e3
GM
93292000-08-18 Gerd Moellmann <gerd@gnu.org>
9330
511bd4eb 9331 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
9332 Lisp_Objects.
9333
385ff9e3
GM
9334 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9335 second half of a HELP_EVENT is found at the start of kbd_buffer.
9336
d6abb4c7
MB
93372000-08-18 Miles Bader <miles@gnu.org>
9338
4618074a
MB
9339 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9340
d6abb4c7
MB
9341 * editfns.c (save_restriction_save): Rewrite to use markers.
9342 (save_restriction_restore): Rewrite to understand new form of data
9343 saved by save_restriction_save.
9344 (Fsave_restriction): Remove cautionary note in doc-string.
9345
a7b28523
GM
93462000-08-17 Gerd Moellmann <gerd@gnu.org>
9347
9348 * fileio.c (build_annotations): Add a comment explaining the
9349 return value of format-annotate-function. Replace a spurious call
9350 to Flength with a CONSP test. Call format-annotate-function with
9351 a fifth arg specifying how many times the function is been called
9352 in a row, to let it choose temporary buffers appropriately.
9353
03c9ed77
DL
93542000-08-17 Dave Love <fx@gnu.org>
9355
9356 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9357 declare make_temp_name twice.
9358
52283633 9359 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
9360 (unreadpure): Give it an arg.
9361
9362 * unexalpha.c: Prototype fatal_unexec, mark_x,
9363 update_dynamic_symbols. Declare unexec as void.
9364
9365 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9366 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9367
9368 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 9369 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
9370
9371 * alloca.c: Use #error.
9372 [POINTER_TYPE]: Use it.
9373
9374 * eval.c (Fdefvar): Doc fix.
9375
9376 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9377 INITIALIZE_INTERVAL.
9378
9379 * buffer.h: Avoid DECLARE_INTERVALS.
9380
9381 * config.in: Add size_t.
9382
aae41d97
EZ
93832000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9384
9385 * w16select.c (set_clipboard_data): If there's not enough memory
9386 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9387 expects. In case of other failures, return 3.
9388 (system_error_msg): New error message.
9389 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9390 system_error_msg.
9391
65aa5e85
GM
93922000-08-16 Gerd Moellmann <gerd@gnu.org>
9393
9394 * term.c (write_glyphs): Also turn off inverse video after turning
9395 off other appearances in case TS_exit_attribute_mode is not equal
9396 to TS_end_standout_mode.
9397 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9398 with the same face.
9399 (turn_off_face): Reset standout_mode only if
9400 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9401 is equal to TS_end_standout_mode.
9402
ece23901
KH
94032000-08-16 Kenichi Handa <handa@etl.go.jp>
9404
9d7bcb2e
KH
9405 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9406 sequence at the end of the source block.
9407
ece23901
KH
9408 * ccl.c (Fccl_program_p): Docstring modified.
9409 (Fccl_execute): Likewise.
9410 (Fccl_execute_on_string): Likewise.
9411
5e30eaa2
EZ
94122000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9413
9414 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9415
290602fd
KH
94162000-08-16 Kenichi Handa <handa@etl.go.jp>
9417
9418 The following changes are mainly to fix bugs of
9419 encode/decode-coding-string failing if encoding/decoding return
9420 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9421 variable conversion_buffer.
9422
9423 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9424 decrement dst_end to avoid buffer overflow in the later call of
9425 string_as_multibyte
9426
9427 * coding.h (conversion_buffer_size, conversion_buffer)
9428 (get_conversion_buffer): Extern deleted.
9429
9430 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9431 (conversion_buffer, conversion_buffer_size): Variables deleted.
9432 (get_conversion_buffer): Function deleted.
9433 (struct conversion_buffer): New structure.
9434 (MAX_ALLOCA): New macro.
9435 (allocate_conversion_buffer): New macro.
9436 (extend_conversion_buffer, free_conversion_buffer): New functions.
9437 (ccl_coding_driver): Set coding->result.
9438 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9439 this is the last block of source.
9440 (encode_coding): Likewise. Handle the source block as the last
9441 one only when the whole source text is consumed.
9442 (decode_coding_string): Handle the case that the output buffer is
9443 too small to decode the whole source text. Use
9444 allocate_conversion_buffer, extend_conversion_buffer and
9445 free_conversion_buffer, not get_conversion_buffer.
9446 (encode_coding_string): Likewise.
9447 (init_coding): Function deleted.
52283633 9448 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
9449
9450 * emacs.c (main): Don't call init_coding.
9451
52283633 9452 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
9453
9454 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9455 (insert_glyphs): Likewise.
9456
9457 * w32console.c (write_glyphs): Use a locally declared
9458 conversion_buffer.
9459
b9f80d41
EZ
94602000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9461
9462 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9463 member of display_info is NULL.
9464
32dc52f7
GM
94652000-08-15 Gerd Moellmann <gerd@gnu.org>
9466
52283633 9467 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 9468
32dc52f7 9469 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 9470 appearances with capability `me'.
32dc52f7
GM
9471 (write_glyphs): Switch on inverse video before each face change.
9472
4eb22d33
DL
94732000-08-14 Dave Love <fx@gnu.org>
9474
9475 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9476 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9477 (lisp_free): Declare and make static.
9478
9479 * window.c: Fix embedded comment.
9480 (syms_of_window): Fix doc string.
9481
90cbf47e
GM
94822000-08-14 Gerd Moellmann <gerd@gnu.org>
9483
52283633 9484 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
9485 make sure to print `C-' before `M-', like in the manual.
9486
440fc135
GM
94872000-08-11 Gerd Moellmann <gerd@gnu.org>
9488
9489 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9490 since they aren't relocated anymore.
52283633 9491 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
9492
9493 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 9494 partially visible line which is smaller than the window's height.
440fc135 9495
6e264fad
KH
94962000-08-11 Kenichi Handa <handa@etl.go.jp>
9497
9498 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 9499 the multibyte form of eight-bit-control characters.
6e264fad
KH
9500 (Fccl_execute_on_string): Initialize ccl->multibyte.
9501
9502 * ccl.h (struct ccl_program): New member multibyte.
9503
9504 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9505
c371f69a
KH
95062000-08-11 Kenichi Handa <handa@etl.go.jp>
9507
9508 * regex.c (regex_compile) <normal_char>: Pay attention to
9509 multibyteness.
9510 (analyse_first) <exactn>: Setup fastmap correctly for
9511 eight-bit-control characters.
9512
95132000-08-11 Kenichi Handa <handa@etl.go.jp>
9514
52283633 9515 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
9516
9517 * keyboard.c (make_lispy_event): Handle the new event type
9518 multibyte_char_keystroke.
9519
9520 * xterm.c: Include coding.h.
9521 (XTread_socket): Work around a bug of XmbLookupString. If the
9522 input is from XIM, decode it according to the current locale. In
9523 that case, generate multibyte_char_keystroke events.
9524
b8ddbe71
KH
95252000-08-11 Kenichi Handa <handa@etl.go.jp>
9526
9527 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9528 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9529
47589c8c
GM
95302000-08-10 Gerd Moellmann <gerd@gnu.org>
9531
9532 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9533 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9534 (move_it_in_display_line_to): Record iterator's ascent and descent
9535 before producing glyphs, and restore them when we know the glyph
9536 doesn't fit on the line.
9537 (move_it_to): Restructured so that it's easier to debug. If
9538 moving to a vpos, and not moving to an x or character position,
9539 stop as soon as the specified vpos is reached; don't move further
9540 into that line because that might change the computed line height.
9541 (try_cursor_movement): New function, extracted from the cursor
9542 movement branch of redisplay_window. If ending on a partially
9543 visible line, don't try to scroll if the cursor line is taller
9544 than the window.
9545 (redisplay_window): Use try_cursor_movement.
9546
9547 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9548 because that function doesn't cope with variable-height lines.
9549
9550 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9551 box cursor because that's better visible for large images.
52283633 9552
c51bacd6
MB
95532000-08-10 Miles Bader <miles@gnu.org>
9554
9555 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9556
bea56df7
GM
95572000-08-10 Gerd Moellmann <gerd@gnu.org>
9558
9559 * xdisp.c (Vmessages_buffer_name): New variable.
9560 (message_dolog): Use it.
9561 (syms_of_xdisp): Initialize it.
9562
99cd7364
EZ
95632000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9564
52283633 9565 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
9566 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9567 redundant now that keyboard.h is included.
9568
7d093d56
EZ
95692000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9570
9571 * keyboard.c (kbd_buffer_events_waiting): New function.
9572
9573 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9574
9575 * msdos.c: Include keyboard.h.
9576 (XMenuActivate): Empty no_event events from the event buffer. If
9577 no events are left after that, call clear_input_pending.
9578 (mouse_clear_clicks): New function, code moved from mouse_init.
9579 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9580 mouse driver to ``forget'' any past clicks.
9581
9582 * Makefile.in (msdos.o): Depend on keyboard.h.
9583
41e757a6
GM
95842000-08-09 Gerd Moellmann <gerd@gnu.org>
9585
8e7bd231
GM
9586 * lisp.h (input_pending): External declaration.
9587
9588 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 9589
8e7bd231
GM
9590 * xdisp.c (echo_area_display): Display thoroughly if input is
9591 pending. Bind redisplay-dont-pause to t during the redisplay.
9592 in case input is pending.
9593
9594 * dispnew.c (Qredisplay_dont_pause): New variable.
9595 (syms_of_display): Initialize and staticpro it.
9596 (update_frame_1): Don't interrupt the display for pending input if
9597 redisplay_dont_pause is set.
52283633 9598
43028b7e
GM
9599 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9600
41e757a6
GM
9601 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9602
2f2174fa
KH
96032000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9604
9605 * callproc.c (Fcall_process): Terminate the unwind-protect around
9606 the post-read-conversion of coding system.
9607
0a6fd67e
MB
9608 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9609 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9610 * buffer.h (overlays_at): Update prototype.
9611 * xdisp.c (next_overlay_change): Update call to overlays_at.
9612 * xfaces.c (face_at_buffer_position): Likewise.
9613 * textprop.c (Fget_char_property): Likewise.
9614 * xterm.c (note_mouse_highlight): Likewise.
9615
0c80756e
MB
9616 * minibuf.c (do_completion): Don't consider a simple change of
9617 case as `completion'.
9618
975f250a
KR
96192000-08-08 Ken Raeburn <raeburn@gnu.org>
9620
52283633 9621 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
9622 * undo.c (record_delete): Make sure last_point_position_buffer is
9623 a buffer before comparing pointers.
9624
9625 * coding.h (decode_coding_string): Declare.
9626
9627 * intervals.h (Fprevious_single_char_property_change): Declare.
9628
9629 * textprop.c (Fprevious_single_char_property_change): Don't do
9630 arithmetic directly on lisp objects.
9631
52283633 9632 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
9633
9634 * keyboard.h (menu_item_eval_property): Declare.
9635
9636 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9637 reuse as buffer name, instead of recreating (and discarding) every
9638 time a message is logged.
9639 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
9640 (current_message_1, truncate_message_1, set_message_1)
9641 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9642 (current_message, truncate_echo_area, display_echo_area)
9643 (resize_echo_area_axactly): Changed calls.
b347b3fd 9644
975f250a 9645 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 9646 Lisp object.
975f250a 9647 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 9648 must be an integer, not a Lisp object.
975f250a 9649
46dc9912
KH
96502000-08-08 Kenichi Handa <handa@etl.go.jp>
9651
9652 * charset.c (Fchar_width): Doc fix.
9653
9f6d1a6c
GM
96542000-08-08 Gerd Moellmann <gerd@gnu.org>
9655
9656 * charset.c (Fstring_width): Doc fix.
9657
ff3d9573
GM
96582000-08-07 Gerd Moellmann <gerd@gnu.org>
9659
41e757a6 9660 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
9661 line, clear ascent and descent members of the iterator structure;
9662 the height of the continued line does not affect the height of the
9663 continuation line.
9664 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9665 line taller than the window.
9666 (redisplay_window) <forced window start>: Handle case that the
9667 middle of the window is not found in any row.
9668 (dump_glyph_row): Show more information.
9669 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9670 first text line in a glyph matrix.
9671
9672 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9673 of the clip area when image doesn't have a mask.
9674
70fc58b3
GM
9675 * fns.c (sweep_weak_table): Fix survival conditions for
9676 key-or-value and key-and-value weakness.
9677
9678 * .gdbinit (xhashtable): New command.
9679
ac0e96ee
GM
9680 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9681 tables out of the list of all weak hash tables.
9682
ff3d9573
GM
9683 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9684 a new buffer is created, make sure echo_area_buffer[] references
9685 the new buffer.
9686
e0d8827b
EZ
96872000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9688
9689 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9690 the doc string.
9691
c6f35378
KH
96922000-08-07 Kenichi Handa <handa@etl.go.jp>
9693
9694 * syntax.c (skip_chars): Fix previous change. Make the handling
9695 of unibyte string consistent with that of regex search.
9696
1fd4c450
GM
96972000-08-05 Gerd Moellmann <gerd@gnu.org>
9698
e49aa397
GM
9699 * xmenu.c (popup_get_selection): Use xfree instead of free.
9700
9701 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9702
9703 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9704
9705 * callproc.c (child_setup): Use xfree instead of free.
9706
9707 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9708 instead of malloc.
9709 (run_mac_command, closedir): Use `xfree' instead of `free'.
9710
9711 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9712
9713 * eval.c (error): Use xfree instead of free.
9714
1fd4c450
GM
9715 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9716
9717 * fns.c: Replace `illegal' with `invalid'.
e49aa397 9718 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 9719
82d497fc
KH
97202000-08-05 Kenichi Handa <handa@etl.go.jp>
9721
9722 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9723 conversion.
9724
59f953a2
NF
97252000-08-04 Noah Friedman <friedman@splode.com>
9726
9727 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9728 docstring.
9729
688351f2
GM
97302000-08-04 Gerd Moellmann <gerd@gnu.org>
9731
9732 * syntax.c (skip_chars): Fix typo in error message.
9733
2dad51cc
AS
97342000-08-04 Andreas Schwab <schwab@suse.de>
9735
9736 * m/ia64.h: Moved from s/ia64.h.
9737
99bb2c60
KH
97382000-08-04 Kenichi Handa <handa@etl.go.jp>
9739
082a1df2
KH
9740 * process.c (read_process_output): Big simplification. Handle
9741 composition and post-read-conversion of coding system correctly.
9742 (send_process): Handle composition correctly.
9743
9744 * callproc.c (Fcall_process): Handle post-read-conversion of
9745 coding system if any.
9746
99bb2c60
KH
9747 * coding.c (decode_coding_iso2022): More strict check for handling
9748 single shifting.
082a1df2
KH
9749 (coding_restore_composition): Pay attention to the case that
9750 cmp_data is not set properly (because of invalid code in the
9751 source text).
9752 (run_pre_post_conversion_on_str): Include text properties in the
9753 resulting string.
9754 (decode_coding_string): Set members of coding correctly.
99bb2c60 9755
f4988be7
GM
97562000-08-03 Gerd Moellmann <gerd@gnu.org>
9757
9758 * s/ia64.h: New file.
9759
9760 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9761 Use NULL instead of 0 at the end of variable argument list of
9762 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9763 sizeof (int) < sizeof (void *).
9764
9765 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9766 of variable argument lists of XtVaGetValues and XtVaSetValues.
9767
9768 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9769 variable argument lists of XtVaGetValues and XtVaSetValues.
9770
ead53494
GM
97712000-08-02 Gerd Moellmann <gerd@gnu.org>
9772
9773 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9774 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9775
9776 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9777 prototype.
9778
9779 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9780 in call to Fsingle_key_description.
9781
9782 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9783 Callers changed.
9784
97852000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9786
9787 * window.c (display_buffer_reuse_frames): New variable.
9788 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9789 frames displaying BUFFER.
52283633 9790 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 9791
10b0f752
MB
97922000-08-01 Miles Bader <miles@gnu.org>
9793
9794 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9795 when to constrain NEW_POS (they were pretty screwed up before).
9796
16425c4a
EZ
97972000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9798
9799 * msdos.c (run_msdos_command): Save and restore the master
9800 environment, for the case that child_setup signals an error.
9801 When mirroring slashes in DOS shell commands, don't fail when
9802 argv[2] has embedded blanks.
da288c14
EZ
9803 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9804 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9805 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
9806
9807 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9808 using alloca; free it after run_msdos_command returns.
9809
27f73852
DL
98102000-07-27 Dave Love <fx@gnu.org>
9811
52283633
SM
9812 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9813 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
9814
9815 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9816
c0261b5e
EZ
98172000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9818
9819 * editfns.c (lisp_time_argument): Fix last change.
9820
b548072f
GM
98212000-07-27 Gerd Moellmann <gerd@gnu.org>
9822
3ab82477
GM
9823 * fns.c (Fdelete): Make it work on vectors and strings in addition
9824 to lists.
9825
b548072f
GM
9826 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9827 (syms_of_fns): Initialize new variables.
52283633 9828 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
9829 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9830 weakness, with t meaning the same as `key-and-value'.
9831
91ae8751
KH
98322000-07-27 Kenichi Handa <handa@etl.go.jp>
9833
9834 * coding.h (struct coding_system): Member safe_charset deleted.
9835
9836 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
9837 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9838 New variables.
91ae8751
KH
9839 (coding_safe_chars): New function.
9840 (CODING_SAFE_CHAR_P): New macro.
9841 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 9842 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
9843 (detect_coding_iso2022): New local variable safe_chars.
9844 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9845 safe_charsets member of the coding system.
9846 (decode_coding_iso2022): New local variable safe_chars.
9847 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9848 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9849 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9850 (ENCODE_UNSAFE_CHARACTER): New macro.
9851 (encode_coding_iso2022): New local variable safe_chars. Check
9852 unsafe chars.
9853 (setup_coding_system): Delete the code to initialize
9854 coding->safe_charses
9855 (intersection, find_safe_codings): New functions.
9856 (Ffind_coding_systems_region_internal): New function.
9857 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9858 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9859 variable and initialize it.
9860
9861 * fns.c (char_table_ref_and_index): New function.
9862
9863 * lisp.h (char_table_ref_and_index): Add prototype.
9864
34a7a267
SS
98652000-07-26 Sam Steingold <sds@gnu.org>
9866
9867 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 9868 (Ffloat_time): New built-in Lisp function.
34a7a267 9869
a95cb10a
GM
98702000-07-26 Gerd Moellmann <gerd@gnu.org>
9871
3353ef5a
GM
9872 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9873 for the character code.
9874
9875 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9876 GNU/Linux.
9877
a95cb10a
GM
9878 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9879 if called for a popup menu.
9880 (xmenu_show): Store help string in widget values.
9881
b4a12321
DL
98822000-07-26 Dave Love <fx@gnu.org>
9883
9884 * syswait.h: Move some definitions.
9885 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9886 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9887 perspicuous definitions.
9888 (WTERMSIG): Fix bit pattern used.
9889
13f5ad37
KH
98902000-07-26 Kenichi Handa <handa@etl.go.jp>
9891
9892 * print.c (print_object): If vector printing is truncated, print
9893 "..." to indicate it as well as the case of list printing.
9894
070fe99c
GM
98952000-07-25 Gerd Moellmann <gerd@gnu.org>
9896
969065c3
GM
9897 * xdisp.c (next_element_from_display_vector): Improve comments.
9898
9899 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9900 for the character code, and the rest for the face id as in 20.x.
9901 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9902
9903 * window.c (window_display_table): Cleaned up.
9904
070fe99c
GM
9905 * syntax.c (Fforward_word): Add last arg nil in call of
9906 Fconstrain_to_field.
9907
bad77ef7
EZ
99082000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9909
969065c3 9910 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
9911 identical but for the letter-case, don't call
9912 barf_or_query_if_file_exists.
bad77ef7 9913
c28da489
MB
99142000-07-25 Miles Bader <miles@gnu.org>
9915
9916 * editfns.c (find_field): Honor special `boundary' fields.
9917 (Qboundary): New variables.
9918 (syms_of_editfns): Initialize Qboundary.
9919 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9920 Use scan_buffer instead of find_before_next_newline, because it
9921 allows us to detect the boundary case where there's a newline at
9922 the search limit.
9923 * lisp.h (Fconstrain_to_field): Update external declaration.
9924
e3c31fd5
GM
99252000-07-24 Gerd Moellmann <gerd@gnu.org>
9926
9927 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9928 if that is nil.
c28da489 9929
c66c29a2
DL
99302000-07-24 Dave Love <fx@gnu.org>
9931
9932 * s/sunos4-0.h, s/sol2.h:
9933 (LIBS_TERMCAP): Move from m/sparc.h.
9934
9935 * m/sparc.h (TERMINFO): Moved to system files (probably only
9936 relevant for sunos4 judging by its vintage).
9937 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9938 __arch64__.
9939
fbe0a958
EZ
99402000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9941
9942 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9943 name to single_keymap_panes.
9944
7d88e5c9
AS
99452000-07-24 Andreas Schwab <schwab@suse.de>
9946
9947 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9948
e024b101
GM
99492000-07-24 Gerd Moellmann <gerd@gnu.org>
9950
9951 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9952 parameters instead of using int parameters. Expect FN to accept
9953 EMACS_INT parameters.
9954 (display_echo_area, resize_echo_area_axactly, current_message)
9955 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9956 with new argument list.
9957 (resize_mini_window_1): New callback function.
9958 (current_message_1, truncate_message_1, set_message_1): Change
52283633 9959 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 9960
25c1a9ce
KH
99612000-07-24 Kenichi Handa <handa@etl.go.jp>
9962
9963 * fontset.c (fontset_ref): Remove INLINE declaration.
9964 (fontset_ref_via_base): Likewise.
9965 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9966 to downcase.
9967
7f987ac0
EZ
99682000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9969
9970 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9971 correct order of priority. If help echo was found in an overlay,
9972 use that overlay as the object in which the help echo was found.
9973
e2db3069
MB
99742000-07-22 Miles Bader <miles@gnu.org>
9975
9976 * textprop.c (Fprevious_single_char_property_change): The initial
9977 property value should be from the position preceding POSITION, not
9978 following it.
9979
5e3203e4
EZ
99802000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9981
9982 * coding.c (syms_of_coding): Doc fix for
9983 inhibit-iso-escape-detection.
9984
62145073
GM
99852000-07-21 Gerd Moellmann <gerd@gnu.org>
9986
c20aeb83
GM
9987 * xterm.c (note_mouse_highlight): Process overlays in the right
9988 order of priority.
34a7a267 9989
743934db
GM
9990 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9991
9992 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 9993 overlay, use that overlay as the object in which the help was found.
743934db 9994
d1dc7e43 9995 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 9996
62145073
GM
9997 * window.c (foreach_window): Instead of a fake variable argument
9998 list, take one USER_DATA argument.
9999 (foreach_window_1): Likewise, and call callback functions with two
10000 args, the window and USER_DATA.
10001 (struct check_window_data): New struct.
10002 (check_window_containing): Use it.
10003 (window_from_coordinates): Set up a struct check_window_data for
10004 foreach_window.
10005 (add_window_to_list, freeze_window_start): Change parameters
10006 according to new calling convention.
10007
10008 * window.h (foreach_window): Change prototype.
10009
10010 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10011
100122000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10013
10014 * xmenu.c (menu_help_callback): Call show_help_echo with
10015 additional arguments OBJECT and POS.
10016
11270583
KH
100172000-07-21 Kenichi Handa <handa@etl.go.jp>
10018
07b14857
KH
10019 * data.c (Faset): Allow storing any multibyte character in a
10020 string. Convert unibyte string to multibyte if necessary.
10021
11270583
KH
10022 * xfns.c (x_encode_text): New function.
10023 (x_set_name): Use x_encode_text.
10024 (x_set_title): Likewise.
10025
10026 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10027
10028 * xterm.h (x_encode_text): Add prototype.
10029
bc75b4fd
DL
100302000-07-20 Dave Love <fx@gnu.org>
10031
10032 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10033 xfree, not free.
10034
48c14970
EZ
100352000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10036
10037 * msdos.c (help_echo_window): New variable.
10038 (syms_of_msdos): Initialize and staticpro it.
10039 (IT_note_mode_line_highlight): Set help_echo_window.
10040 (IT_note_mouse_highlight): Ditto.
10041 (dos_rawgetc): Store help_echo_window in the second event produced
10042 for HELP_EVENTs.
10043
10044 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10045 Record the object that generated the help echo and the position of
10046 that object in help_echo_object and help_echo_pos. Record that
10047 some glyphs in a row are displayed in mouse-face.
10048 (IT_update_begin): Don't clear mouse highlight unless one of the
10049 enabled glyph rows is marked as being displayed in mouse-face.
10050 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10051 and position recorded in help_echo_object and help_echo_pos to the
10052 event queue.
10053 (IT_menu_display): Accept a new argument PN: the pane number of
10054 the current menu pane. Record the pane number and the item
10055 number of the item which has associated help string.
10056 (XMenuActivate): Update the prototype for help_callback in
10057 function declaration. Call IT_menu_display with the current menu
10058 pane number as an additional argument. Call help_callback with
10059 two additional arguments: the pane number and the item number of
10060 the menu item associated with the help text.
10061 (help_echo_object, help_echo_pos): New variables.
10062 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10063
10064 * msdos.h (XMenuActivate): Update prototype.
10065
4279296d
GM
100662000-07-19 Gerd Moellmann <gerd@gnu.org>
10067
47db06aa
GM
10068 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10069 Add some more prototypes.
10070
10071 * xterm.c, xterm.h: Add some more prototypes.
10072
10073 * lisp.h (Fnext_single_char_property_change): Add prototype.
10074
10075 * dispnew.c (direct_output_for_insert): Remove confusing
10076 outer local variable mouse_face_overwritten_p.
10077 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10078
4279296d
GM
10079 * alloc.c (allocate_string_data): Don't copy old string contents.
10080
670acd62
KH
100812000-07-19 Kenichi Handa <handa@etl.go.jp>
10082
10083 * coding.c (code_convert_region): Delete text properties before
10084 shrinking the conversion region.
10085
7cea38bc
GM
100862000-07-18 Gerd Moellmann <gerd@gnu.org>
10087
dc1cac59
GM
10088 * dispnew.c (update_text_area): Write the whole row if it
10089 has mouse-face in it.
10090
85a8aca9
GM
10091 * xfaces.c (face-alternative-font-family-alist): Remove
10092 DEFVAR_LISP; staticpro instead.
10093
34a7a267 10094 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
10095 new arguments.
10096
10097 * keyboard.c (show_help_echo): Add parameter WINDOW.
10098 (read_char): Call show_help_echo with window extracted from Lisp
10099 help event.
10100 (gen_help_event): Add parameter WINDOW.
10101
10102 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10103
10104 * xterm.c (help_echo_window): New variable.
52283633 10105 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
10106 (XTread_socket): Pass help_echo_window to gen_help_event.
10107 (syms_of_xterm): Initialize and staticpro help_echo_window.
10108
f8276b77
DL
101092000-07-18 Dave Love <fx@gnu.org>
10110
52283633 10111 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 10112
088831a6
GM
101132000-07-18 Gerd Moellmann <gerd@gnu.org>
10114
3d6cd763
GM
10115 * alloc.c (allocate_string_data): If string had already data
10116 assigned, copy old contents to new string data.
10117
10118 * coding.c (syms_of_coding): Fix typo in spelling of variable
10119 `inhibit-iso-escape-detection'.
10120
088831a6
GM
10121 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10122
10123 * Makefile.in: Add dependencies on dispextern.h.
10124 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10125 `free'; both can conflict with system header files.
10126
bc8a8d55
KH
101272000-07-18 Kenichi Handa <handa@etl.go.jp>
10128
10129 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10130 undefined.
10131
069f5950
DL
101322000-07-18 Dave Love <fx@gnu.org>
10133
10134 * window.c (Fwindow_list): Declare arg `window'.
10135
aa96c820
KH
101362000-07-18 Kenichi Handa <handa@etl.go.jp>
10137
10138 * coding.c (setup_coding_system): Don't override the explicitly
10139 specified designations.
10140
06be8d32
MB
101412000-07-15 Miles Bader <miles@gnu.org>
10142
10143 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10144 from `text_property_eq' and `text_property_stickiness', respectively.
10145 (find_field, Fconstrain_to_field, char_property_eq)
10146 (char_property_stickiness): Changed to call char-property functions
10147 instead of text-property-only ones.
10148
10149 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10150 `next_single_char_property_change'). Do more error checking, and
10151 cleanup limit behavior.
10152 (Fprevious_single_char_property_change): New function.
10153 (syms_of_textprop): Initialize new subrs.
10154
10155 * xdisp.c (display_prop_end, invisible_text_between_p):
10156 Call Fnext_single_char_property_change instead of
10157 next_single_char_property_change.
10158
3fddcdc3
JR
101592000-07-15 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10162 after menu is finished with.
10163 (add_menu_item): Only consider wv->title as a menu title.
10164 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10165
10166 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10167 null title.
10168 (FONT_REGEXP): Remove unused macro, and its sub-components.
10169 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10170
10171 * w32term.c (help_echo_object, help_echo_pos): New variables.
10172 (note_mode_line_highlight): Store additional information about the
10173 help-echo in help_echo_object and help_echo_pos. Check both
10174 `local-map' and `keymap' properties for changing the cursor
10175 (note_mouse_highlight): Store additional information about the
10176 help-echo in help_echo_object and help_echo_pos.
10177 (note_tool_bar_highlight): Set help_echo_object to nil and
10178 help_echo_pos to -1.
10179 (w32_read_socket): Use gen_help_event instead of filling
10180 input_events manually.
10181 (syms_of_w32term): Staticpro help_echo_object.
10182 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 10183 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
10184 (x_clear_mouse_face): New function.
10185 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10186 (x_update_window_begin): No need to turn off the mouse
10187 highlight here.
10188 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10189 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
10190 (x_fill_stretch_glyph_string): Consume runs of stretch
10191 glyphs instead of a single one.
10192 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10193 with new argument list.
10194 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10195 (x_append_glyph, x_append_composite_glyph)
10196 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10197 changes in struct glyph starting 1999-12-27. See comments for
10198 xterm.c on 2000-07-05.
10199
178c5d9c
SS
102002000-07-14 Sam Steingold <sds@gnu.org>
10201
10202 * xfaces.c (realize_x_face): Fix the last patch:
10203 check `default_face' before dereferencing.
10204
6fe533f6
DL
102052000-07-14 Dave Love <fx@gnu.org>
10206
069f5950 10207 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 10208
dd7b81cf
KH
102092000-07-14 Kenichi Handa <handa@etl.go.jp>
10210
0693904a 10211 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 10212 default_face's fontset, not using the default fontset.
0693904a 10213
dd7b81cf
KH
10214 * coding.c (inhibit_iso_escape_detection): New variable.
10215 (syms_of_coding): Make it a Lisp variable.
10216 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10217 nonzero, ignore ISO2022's escape sequence.
10218
d5aa31d8
GM
102192000-07-14 Gerd Moellmann <gerd@gnu.org>
10220
e5acf0ca
GM
10221 * alloca.c (malloc) [emacs]: Define as xmalloc.
10222
bd23a692
GM
10223 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10224 use that instead of the mouse position. Add parameters DX and DY.
10225
10226 * dispextern.h (Fx_show_tip): Adjust number of parameters
10227 in prototype.
10228
9662da0b
GM
10229 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10230 if HELP is a function, call it with OBJECT and POS as parameters
10231 to get the help to display.
10232 (gen_help_event, kbd_buffer_store_help_event): New functions.
10233 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10234 (read_char): Call show_help_echo with new parameters.
10235
178c5d9c 10236 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
10237 Add prototypes.
10238
10239 * xterm.c (help_echo_object, help_echo_pos): New variables.
10240 (note_mode_line_highlight): Store additional information about the
10241 help-echo in help_echo_object and help_echo_pos. Check both
10242 `local-map' and `keymap' properties for changing the cursor
10243 (note_mouse_highlight): Store additional information about the
10244 help-echo in help_echo_object and help_echo_pos.
10245 (note_tool_bar_highlight): Set help_echo_object to nil and
10246 help_echo_pos to -1.
10247 (XTread_socket): Use gen_help_event instead of filling
10248 input_events manually.
10249 (syms_of_xterm): Staticpro help_echo_object.
10250
10251 * xmenu.c (menu_highlight_callback): Use
10252 kbd_buffer_store_help_event instead of setting up and input_event
10253 structure manually.
10254
10255 * xdisp.c (eval_form): GCPRO argument sexpr.
10256 (call_function): New function.
10257 (handle_single_display_prop): Use call_function and FUNCTIONP
10258 instead of checking whether if font_height is a symbol and
10259 using eval_form.
10260
10261 * eval.c (internal_condition_case_2): New function.
10262
10263 * lisp.h (FUNCTIONP): New macro.
10264 (internal_condition_case_2, call_function): Add prototypes.
10265
d5aa31d8
GM
10266 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10267 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10268 Always set `arg' member of input_events.
10269 (construct_menu_click): Unused function removed.
10270
10271 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10272
10273 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10274 (construct_drag_n_drop, x_scroll_bar_handle_click)
10275 (w32_read_socket): Always set `arg' member of input_events.
10276
10277 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10278
10279 * lisp.h (eval_form): Add prototype.
10280
10281 * xdisp.c (eval_form): Make it externally visible.
10282
0f1a9b23
GM
102832000-07-13 Gerd Moellmann <gerd@gnu.org>
10284
10285 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10286 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10287 consing. For prefix events, store the frame in the `arg' slot of
10288 the event, otherwise store the key there.
10289 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 10290 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
10291
10292 * xmenu.c (menu_highlight_callback): Store help string in the
10293 `arg' member of the input event; don't cons.
10294 (menubar_selection_callback): Use the `arg' slot of input events
10295 to queue additional information, instead of consing.
10296
10297 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10298
10299 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10300 TOOL_BAR_EVENTs.
10301 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10302
10303 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10304 input events to queue additional information, instead of consing.
10305
10306 * keyboard.c (kbd_buffer_gcpro): Renamed from
10307 kbd_buffer_frame_or_window. Now used for all Lisp objects
10308 referenced from the input queue.
10309 (kbd_buffer_store_event): Always use structure assignment for
10310 copying input events. Record all Lisp objects referenced from
10311 events in kbd_buffer_gcpro.
10312 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10313 differently from input events. Test for prefix menu_bar_events
10314 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10315 event in kbd_buffer_gcpro to nil.
10316 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10317 frame_or_window is equal to its arg member as prefix events.
10318 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10319 used by an input event to nil.
10320 (init_keyboard): Use two times the size of the input queue
10321 for kbd_buffer_gcpro.
10322 (syms_of_keyboard): Likewise.
10323
52283633
SM
10324 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10325 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
10326
10327 * termhooks.h (struct input_event): Add member `arg'.
10328 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10329 (USER_SIGNAL_EVENT): Renamed from user_signal.
10330
10331 * xfaces.c (ASET): Remove definition.
10332
10333 * lisp.h (AREF, ASET, ASIZE): New macros.
10334
10335 * fontset.c (AREF, ASIZE): Remove definitions.
10336
10337 * fns.c (AREF): Remove definition.
178c5d9c 10338
0f1a9b23
GM
10339 * composite.c (AREF): Remove definition.
10340
712eaef2
GM
103412000-07-12 Gerd Moellmann <gerd@gnu.org>
10342
d8ee7803
GM
10343 * dispnew.c (redraw_overlapped_rows): Add missing local.
10344 (scrolling_window): Remove debug code.
10345
712eaef2
GM
10346 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10347 Before scrolling, turn off a mouse-highlight in the window
10348 being scrolled.
10349
10350 * xterm.c (x_update_window_end): Add parameter
10351 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10352 redisplay in XTframe_up_to_date.
10353 (x_clear_mouse_face): New function.
10354 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10355
10356 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10357 current glyph row.
10358 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10359 it when any row is written to that contains glyphs highlighted in
10360 mouse-face.
10361 (update_window): Call the window update end hook with new
10362 parameter MOUSE_FACE_OVERWRITTEN_P.
10363 (direct_output_for_insert): Give up if row contains mouse-face.
10364
10365 * dispextern.h (struct redisplay_interface): Add parameter
10366 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10367 (clear_mouse_face): New function pointer member.
10368
02010917
SM
103692000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10370
10371 * syntax.c (back_comment): Use one switch rather than a few `if's.
10372 Obey open_paren_in_column_0_is_defun_start.
10373 When reverting to the `slow' method, try to nicely handle the case
10374 of nested comments by checking that the comment-starter we found
10375 does indeed match the comment-ender.
10376 (scan_sexps_forward, scan_sexps_forward):
10377 Ignore excessive opening parenthesis rather than throwing an error.
10378
d76c03ea
GM
103792000-07-11 Gerd Moellmann <gerd@gnu.org>
10380
10381 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10382 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10383
10384 * dispnew.c (direct_output_forward_char): Give up if currently
10385 displaying a message instead of the minibuffer contents.
10386
10387 * xterm.c (x_update_window_begin): No need to turn off the mouse
10388 highlight here.
10389 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10390 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
10391
10392 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10393 compare the mouse_face_p flags of both rows.
10394
10395 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10396
d55ead18
EZ
103972000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10398
10399 * keyboard.c (show_help_echo): Accept additional parameter
10400 ok_to_overwrite_keystroke_echo.
10401 (read_char): Call show_help_echo with a zero
10402 ok_to_overwrite_keystroke_echo argument.
52283633 10403 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
10404 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10405 ok_to_overwrite_keystroke_echo argument.
10406 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10407 non-zero ok_to_overwrite_keystroke_echo argument.
10408
df75b1a3
GM
104092000-07-10 Gerd Moellmann <gerd@gnu.org>
10410
4b92c49a
GM
10411 * xdisp.c (try_window_id): If changes are all below what is
10412 displayed in the window, and point is in the window, we still
10413 might have to find point on the display.
10414
10415 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10416 glyphs instead of a single one.
10417 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10418 with new argument list.
10419 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10420
df75b1a3
GM
10421 * keymap.c (get_keymap_1): Add comment that this function can GC.
10422 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10423 comment that functions can GC.
10424 (Fset_keymap_parent): GCPRO arg KEYMAP.
10425
4314cf3e
EZ
104262000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10427
10428 * msdos.c (XMenuActivate): After exiting the menu, restore the
10429 echo area message and erase it.
10430
ab49ce15
KH
104312000-07-10 Kenichi Handa <handa@etl.go.jp>
10432
10433 * fontset.c (Ffontset_info): Make the return value more compatible
10434 with that of Emacs 20.
10435
090a072f
GM
104362000-07-07 Gerd Moellmann <gerd@gnu.org>
10437
10438 * eval.c (Fsignal): Handle case that backtrace_list is null.
10439
f92de4a6
KH
104402000-07-07 Kenichi Handa <handa@etl.go.jp>
10441
10442 * ccl.c (Fccl_execute): Typo fixed.
10443
dd8888a1
GM
104442000-07-06 Gerd Moellmann <gerd@gnu.org>
10445
e5c81191 10446 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 10447
dd8888a1
GM
10448 * window.c (Fwindow_list): Reverse list at the end.
10449 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10450 means allow windows on OWINDOW's frame, only.
10451 (window_loop): Simplified; use Fwindow_list.
10452
10453 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10454
485266d0
GM
104552000-07-05 Gerd Moellmann <gerd@gnu.org>
10456
10457 * xterm.c (XTread_socket): Increment handling_signal at the start,
10458 decrement it at the end.
10459
10460 * eval.c (handling_signal): New variable.
10461 (Fsignal): Abort if handling_signal is non-zero.
10462
10463 * lisp.h (handling_signal): External declaration.
178c5d9c 10464
485266d0
GM
10465 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10466
80fcd514
KR
104672000-07-05 Ken Raeburn <raeburn@gnu.org>
10468
10469 Sound support for NetBSD through "Linux emulation" support:
10470 * config.in (HAVE_SOUNDCARD_H): Undef.
10471 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10472 * Makefile.in (LIBSOUND): New variable.
10473 (LIBES): Include it.
52283633
SM
10474 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10475 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
10476 (vox_open): Use DEFAULT_SOUND_DEVICE.
10477 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10478
d5c5cddd
GM
104792000-07-05 Gerd Moellmann <gerd@gnu.org>
10480
10481 * print.c (print_error_message): If Vsignaling_function is set,
10482 show it in *Messages*.
10483
10484 * lisp.h (Vsignaling_function): External declaration.
10485
10486 * eval.c (Vsignaling_function): New variable.
10487 (Fsignal): Compute it.
10488 (syms_of_eval): Staticpro it.
10489
65171e3a
DL
104902000-07-05 Dave Love <fx@gnu.org>
10491
10492 * syswait.h: Use the autoconf recommended approach. Old code
10493 #if'd out in case we need to revert.
10494
178c5d9c 10495 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 10496
e2c46326
AI
104972000-07-05 Andrew Innes <andrewi@gnu.org>
10498
10499 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10500 when non-NULL instead of __morecore, to take account of buffer
10501 memory. This also solves a problem with spurious memory warnings
10502 on Windows.
10503
10504 * ralloc.c: Make real_morecore non-static.
10505
10506 * eval.c (internal_condition_case): Comment out abort if
10507 interrupt_input_blocked is not zero.
10508
10509 * makefile.nt: Add support for `bootstrap' and related targets.
10510 Include minimal debug info in emacs.exe in release build.
10511 Remove all dependencies on lisp.h, and fixup some others.
10512
10513 * w32.c (init_environment): Install code from 20.7 for providing
10514 default values for environment variables, based on the
10515 executable's own location.
52283633 10516 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
10517 (sys_socket): Install socket inheritance bug fix from 20.7.
10518
10519 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10520 here via blockinput.h).
10521
a027a91b
SM
105222000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10523
e4b31601
SM
10524 * w32menu.c (w32_menu_display_help):
10525 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
10526
10527 * keyboard.h (show_help_echo): Declare.
10528
10529 * keyboard.c (show_help_echo): New function, extracted from read_char.
10530 Feval its `msg' argument if it's a cons cell.
10531 (read_char): Use it.
4cf8d9d5 10532 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 10533
178c5d9c 10534 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 10535 (note_tool_bar_highlight, XTread_socket):
178c5d9c 10536 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
10537 (dos_rawgetc):
10538 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10539 (note_tool_bar_highlight, w32_read_socket):
10540 Do not gratuitously ignore non-string `help-echo' properties.
10541
88d75730
GM
105422000-07-05 Gerd Moellmann <gerd@gnu.org>
10543
969f7e79
GM
10544 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10545
71201b00
GM
10546 * window.c (delete_all_subwindows): Reset Vwindow_list.
10547
88d75730
GM
10548 * xterm.c (x_append_glyph, x_append_composite_glyph)
10549 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10550 changes in struct glyph starting 1999-12-27. Some bit-fields of
10551 struct glyph were not set, which made glyphs unequal when compared
10552 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10553 effects were the result. This also depended on the contents of
10554 memory returned by xmalloc. If flickering happens again, activate
10555 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 10556 gone with that, chances are that it is caused by something similar.
88d75730
GM
10557
10558 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 10559
88d75730
GM
10560 * dispextern.h: Add some comments.
10561
10562 * window.c (add_window_to_list): Add parameter LIST.
10563 (window_list): Order list so that, for each frame, windows are
10564 in canonical order, and so that frames appear in the list in
10565 the order given by Vframe_list.
10566 (next_window): Reverse the handling of NEXT_P.
10567
53654733
GM
105682000-07-04 Gerd Moellmann <gerd@gnu.org>
10569
87efd256
GM
10570 * window.c (Vwindow_list): New variable.
10571 (make_window, delete_window): Set Vwindow_list to nil.
10572 (check_window_containing): New function.
10573 (window_from_coordinates): Rewritten.
10574 (add_window_to_list, window_list, candidate_window_p)
10575 (decode_next_window_args, next_window): New functions.
52283633 10576 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
10577 (Fwindow_list): New function.
10578 (Fother_window): Cleaned up.
10579 (foreach_window): Add a longer "variable argument list". Let
10580 callback function return 0 to indicate that cycling over windows
10581 should stop.
10582 (foreach_window_1): Likewise.
10583 (freeze_window_start): Return int.
10584 (init_window): New function.
10585 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10586
10587 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10588 input_event with bzero.
10589 (main): Call init_window.
10590
53654733
GM
10591 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10592 a menu filter.
10593
4a8c194f
KH
105942000-07-04 Kenichi Handa <handa@etl.go.jp>
10595
10596 * composite.h (make_composition_value_copy): Extern it.
10597
10598 * composite.c (make_composition_value_copy): New function.
10599
10600 * editfns.c (Fformat): While copying text properties, make each
10601 composition property value a copy.
10602
10603 * fns.c (concat): While copying text properties, make each
10604 composition property value a copy.
10605
831a6cb0
GM
106062000-07-03 Gerd Moellmann <gerd@gnu.org>
10607
2f516940
GM
10608 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10609
178c5d9c 10610 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
10611 marked already.
10612
831a6cb0
GM
10613 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10614 include those frames as candidates which have their focus
10615 redirected to the minibuffer frame.
10616
d9c4f922
SM
106172000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10618
10619 * fns.c (Fputhash): Return `value' rather than nil.
10620
3780bc22
GM
106212000-06-30 Gerd Moellmann <gerd@gnu.org>
10622
97d176db
GM
10623 * frame.c (next_frame): Don't check focus redirection in case
10624 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
10625 unless their focus is redirected, which contradicts the
10626 specification of next-frame, and leads to infinite loops in
10627 certain situations when cycling through windows with next-window.
10628
dca9961d
KH
106292000-06-30 Kenichi Handa <handa@etl.go.jp>
10630
10631 * coding.c (code_convert_region): Even if the length of text is
10632 zero, try to convert it if coding->type is coding_type_ccl.
10633 (decode_coding_string, encode_coding_string): Likewise.
10634
d5483ab1
GM
106352000-06-28 Gerd Moellmann <gerd@gnu.org>
10636
af5c25e1 10637 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 10638 the display if windows_or_buffers_changed.
af5c25e1
GM
10639
10640 * dispnew.c (struct row_entry): New structure.
10641 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10642 (row_table_size, old_lines, new_lines, old_lines_size)
10643 (new_lines_size, run_pool, runs_size, runs): New variables.
10644 (add_row_entry): New function.
10645 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 10646 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
10647 holding them in local variables. Use a larger hash table whose
10648 size depends on glyph matrix sizes. Don't use bzero to clear the
10649 hash table; instead, clear used slots only.
10650
10651 * fns.c (next_almost_prime): Make it externally visible.
10652
10653 * lisp.h (next_almost_prime): Add prototype.
10654
d5483ab1
GM
10655 * s/isc4-0.h (sigunblock): Define.
10656
10657 * s/sco5.h (sigunblock): Define.
10658
93e40f40
DL
106592000-06-27 Dave Love <fx@gnu.org>
10660
10661 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10662 (moved to osf5-0.h).
10663 [!NOT_C_CODE]: Protect string.h stuff.
10664
10665 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10666 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10667
3c4b7685
GM
106682000-06-27 Gerd Moellmann <gerd@gnu.org>
10669
97d176db 10670 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
10671 below the last line from the needed window height.
10672
32cad0aa
SM
106732000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10674
10675 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10676 (Fwidget_get): Use it.
10677 (syms_of_fns): Defsubr it.
10678
2c69ced2
GM
106792000-06-26 Gerd Moellmann <gerd@gnu.org>
10680
178c5d9c 10681 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
10682 display info for XIM.
10683 (xim_open_dpy): Likewise.
10684 (xim_close_dpy): Don't free the display info's XIM.
10685
10686 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10687
10688 * config.in (USE_XIM): New define.
10689
3fc720e4
GM
10690 * keymap.c (get_keyelt): For menu-items containing a `:filter
10691 FILTER', apply FILTER to the menu-item's definition to get the
10692 real definition to use.
10693
10694 * lisp.h (QCfilter): External declaration.
10695
2c69ced2
GM
10696 * xfns.c (Fimage_size): New function.
10697 (syms_of_xfns): Defsubr it.
10698
f978b2a2
AS
106992000-06-26 Andreas Schwab <schwab@suse.de>
10700
10701 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10702 Fstring_as_unibyte.
10703
94cc7892
DL
107042000-06-25 Dave Love <fx@gnu.org>
10705
52283633 10706 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
10707
10708 * Makefile.in (blockinput.h): Depend on atimer.h.
10709 (atimer.h): Depend on systime.h.
10710
52283633 10711 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 10712
52283633 10713 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
10714
10715 * lisp.h (swap_in_global_binding): Declare.
10716
b8c24556
KR
107172000-06-24 Ken Raeburn <raeburn@gnu.org>
10718
10719 * process.c (Fopen_network_stream): Turn off atimers for duration
10720 of call to connect. (Patch from Gerd.)
10721
8cf8560b
DL
107222000-06-23 Dave Love <fx@gnu.org>
10723
511c7541
DL
10724 * ralloc.c: Maybe include unistd.h
10725
8cf8560b
DL
10726 * emacs.c (setgrp): Undefine before defining.
10727 (malloc_warning, set_time_zone_rule, index): Prototype.
10728
10729 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10730 HAVE_STRUCT_TIMEZONE.
10731
10732 * s/osf1.h: Move string.h hack here from alpha.h and make it
10733 conditional.
10734 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10735 _XOPEN_SOURCE.
10736 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10737 (SOCKLEN_TYPE): Don't define.
10738
10739 * m/alpha.h: Remove string.h hack.
10740
10741 * s/osf5-0.h: New file.
10742
10743 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10744 include time.h, done by systime.h.
10745 [__FreeBSD__]: Remove redundant includes.
10746
3fc720e4 10747 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
10748 (delete_temp_file): Return Qnil to avoid warning.
10749
10750 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10751
10752 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10753 HAVE_X_WINDOWS.
10754
10755 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10756
10757 * composite.h (compose_text): Declare.
10758
10759 * xterm.c: Don't include sys/types.h unconditionally. Don't
10760 protect its inclusion with !USG (following xmenu.c).
10761
ea055732
GM
107622000-06-23 Gerd Moellmann <gerd@gnu.org>
10763
10764 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10765 in x_create_frame.
10766
74b01b80
EZ
107672000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10768
10769 * coding.c (decode_eol_post_ccl): Special handling for undecided
10770 and inconsistent EOL types.
10771
64f3a166
GM
107722000-06-22 Gerd Moellmann <gerd@gnu.org>
10773
16cf31f7
GM
10774 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10775 trough color and main window's background color.
10776
52283633 10777 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
10778
10779 * xterm.h (Xt_app_con): External declaration.
10780
10781 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 10782
486a103d
GM
10783 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10784
64f3a166
GM
10785 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10786 (handle_invisible_prop): Record the start of invisible text in
10787 it->add_overlay_start.
10788 (struct overlay_entry): Add member `overlay'.
10789 (handle_overlay_change): Simplify.
10790 (next_overlay_string): After having processed overlay strings at the
10791 end of the buffer, record that fact in
10792 it->overlay_strings_at_end_processed_p.
10793 (compare_overlay_entries): If before- and after-strings come
10794 from the same overlay, let before-strings come first.
10795 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10796 (load_overlay_strings): Take it->add_overlay_start into account
10797 when adding overlay strings.
10798
10799 * dispextern.h (struct it): Add member add_overlay_start.
10800
bb746ea6
DL
108012000-06-22 Dave Love <fx@gnu.org>
10802
10803 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10804
10805 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10806
a8f573f3
KH
108072000-06-22 Kenichi Handa <handa@etl.go.jp>
10808
10809 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10810 is greater than 0.
10811
9f2bbc92
DL
108122000-06-21 Dave Love <fx@gnu.org>
10813
178c5d9c 10814 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 10815
3ee5041c
SM
108162000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10817
10818 * syntax.c (back_comment): Simplify string-parity counting (with
10819 the added benefit of handling multiple string-styles as long as
10820 they are not intertwined).
10821 Jump to the slow code as soon as a comment starter is found in
10822 a "string_lossage" position. Fixes the case: " /* " /* " */.
10823
4c343001
DL
108242000-06-21 Dave Love <fx@gnu.org>
10825
10826 * Makefile.in: Use GETLOADAVG_LIBS.
10827
10828 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10829 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10830
e6365855
SM
108312000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10832
10833 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10834 (Fforward_comment, scan_lists):
10835 Check the comstyle of single-char comment-starters.
10836 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10837 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
10838 Check the comstyle of single-char comment-starters.
10839 Clarify control-flow around the Scomment case.
e6365855 10840
5700d2cc
DL
108412000-06-20 Dave Love <fx@gnu.org>
10842
d355bd8a
SM
10843 * fns.c (make_hash_table, maybe_resize_hash_table):
10844 Cast arg of next_almost_prime.
5700d2cc 10845
178c5d9c 10846 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
10847
10848 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10849 and unistd.h.
10850
4a27bdfb
GM
108512000-06-20 Gerd Moellmann <gerd@gnu.org>
10852
a61d762c 10853 * keyboard.c (adjust_point_for_property): Check if display
52283633 10854 property should be treated as intangible by looking at its value.
a61d762c 10855
178c5d9c 10856 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
10857 (display_prop_intangible_p): New functions.
10858
10859 * dispextern.h (display_prop_intangible_p): Add prototype.
10860
10861 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 10862
4a27bdfb
GM
10863 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10864 argument to sigprocmask.
10865
10866 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10867 argument to sigprocmask.
10868
10869 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10870 sigprocmask_set, and pass a pointer to it to sigprocmask.
10871
10872 * sysdep.c (sigprocmask_set): New variable.
10873
10874 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10875 report_file_error.
10876
427ec082
SS
108772000-06-20 Sam Steingold <sds@gnu.org>
10878
10879 * xrdb.c: Don't declare xmalloc, xrealloc.
10880
8972fe79 108812000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
10882
10883 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10884 (re_comp): Cast gettext return value to avoid complaints when
10885 !HAVE_LIBINTL.
10886
074b6efe
DL
108872000-06-20 Dave Love <fx@gnu.org>
10888
52283633 10889 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 10890
5700d2cc 10891 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 10892
d355bd8a 10893 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
10894
10895 * m/alpha.h: Don't declare xmalloc, xrealloc.
10896
0af4f205
DL
10897 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10898
10899 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10900
10901 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10902
10903 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10904 HAVE_GETWD.
10905
074b6efe
DL
10906 * keyboard.h (poll_for_input_1): Declare.
10907
10908 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10909
10910 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10911
10912 * doprnt.c: Don't declare xmalloc, xrealloc.
10913
10914 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10915 (getenv, ctime, getwd): Removed.
10916 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10917
10918 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10919 x_set_tool_bar_lines.
10920
10921 * config.in: Add HAVE_GETWD. Move some definitions above
10922 machine/system includes.
10923
68a5e97b
KH
109242000-06-20 Kenichi Handa <handa@etl.go.jp>
10925
95417e1e
KH
10926 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10927
68a5e97b
KH
10928 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10929 contain information about ENCODING.
10930
10931 * fontset.c (FONTSET_ASCII): Use the first element of char table
10932 for an ASCII font, not defalt slot.
10933 (fontset_ref_via_base): If FONTSET doesn't contain information for
10934 C, try the default fontset.
10935 (make_fontset): Don't copy the default fontset.
10936 (fontset_font_pattern): Likewise.
10937 (accumulate_font_info): If ELT is nil, use the corresponding
10938 element in the default fontset.
10939
3b4fa1b2
DL
109402000-06-19 Dave Love <fx@gnu.org>
10941
943e731c
DL
10942 * syntax.c (Fparse_partial_sexp): Doc fix.
10943
10944 * regex.h: Test PROTOTYPES as well as __STDC__.
10945
3b4fa1b2
DL
10946 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10947 errno, strerror. Put text after #endif in comment.
10948
52283633 10949 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
10950
10951 * xterm.c (x_frame_of_widget): Likewise.
10952
cdf0357b
GM
109532000-06-19 Gerd Moellmann <gerd@gnu.org>
10954
10955 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10956 to Vfundamental_mode_abbrev_table.
10957
10958 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10959 bogus objects are marked. This slows down GC by ~80 percent, but
10960 it might be worth trying when debugging GC-related problems.
10961 This feature requires conservative stack marking to be enabled.
10962
10963 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10964 returns XLookupChars, reset `modifiers' to zero.
10965
998e9f8c
DL
109662000-06-19 Dave Love <fx@gnu.org>
10967
10968 * mktime.c: Unprotoized.
10969
18e21ce8 109702000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
10971
10972 * data.c (set_internal): If variable is frame-local,
10973 store the new value immediately into the frame parameter alist.
10974
140c4ac6
KR
109752000-06-19 Ken Raeburn <raeburn@gnu.org>
10976
14358466
KR
10977 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10978 in the custom handler pointer.
10979
140c4ac6
KR
10980 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10981 value, or checks for CHAR_META can fail when Lisp_Object is a
10982 union type.
10983 * keymap.c (get_keyelt): Likewise.
10984
10d7bf84
KH
109852000-06-19 Kenichi Handa <handa@etl.go.jp>
10986
10987 * ccl.h (struct ccl_program): New member eol_type.
10988 (struct ccl_spec): New member cr_carryover.
10989
10990 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10991 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10992
10993 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10994 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10995 (decode_eol_post_ccl): New function.
10996 (decode_coding): Don't detect EOL format here for CCL based coding
10997 systems.
10998 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10999 decode_eol_post_ccl after running the CCL program.
11000 (code_convert_region): Don't detect EOL format here for CCL based
11001 coding systems.
11002 (decode_coding_string): Likewise.
11003
52e386c2
KR
110042000-06-18 Ken Raeburn <raeburn@gnu.org>
11005
11006 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11007 when treating it as an integer.
11008
11009 * coding.h (encode_coding_string): Declare.
11010
11011 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11012 it as an integer.
11013
11014 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11015 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11016 to be passed to get_local_map.
11017
11018 * sound.c (Fplay_sound): Don't call make_number on
11019 Frun_hook_with_args count argument.
11020
11021 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11022 for lisp objects in X event structure data field, when lisp
11023 objects are represented with unions.
11024 (x_scroll_bar_to_input_event): Ditto.
11025
b357b9d4
KR
110262000-06-16 Ken Raeburn <raeburn@gnu.org>
11027
11028 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
11029 termination of string. Fix sense of test whether
11030 Vline_number_display_limit is an integer.
b357b9d4 11031
a871441d
GM
110322000-06-16 Gerd Moellmann <gerd@gnu.org>
11033
a9021acd
GM
11034 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11035 only if HAVE_X_WINDOWS.
11036
6344985d
GM
11037 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11038 of titles.
11039
427ec082 11040 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
11041 out of bounds.
11042
228b083e
EZ
110432000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11044
11045 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11046 of its headers.
11047
c25b53a2
KH
110482000-06-15 Kenichi Handa <handa@etl.go.jp>
11049
11050 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11051 start of the while loop.
11052
a6981b11
GM
110532000-06-15 Gerd Moellmann <gerd@gnu.org>
11054
e9924e52
GM
11055 * atimer.c (alarm_signal_handler): Add forward declaration.
11056
a6981b11
GM
11057 * data.c (set_internal): Remove debug code.
11058
25fa6deb
GM
110592000-06-14 Gerd Moellmann <gerd@gnu.org>
11060
dce6b995
GM
11061 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11062
9f817ea4
GM
11063 * unexec.c (toplevel) [COFF]: Include coff.h.
11064
11065 * s/lynxos.h: New file.
11066
11067 * keymap.c (Fsingle_key_description): Enclose function key and
11068 event symbol names in angle brackets.
11069
8a4e3c0c
GM
11070 * xdisp.c (setup_echo_area_for_printing): Call
11071 message_log_maybe_newline if message_buf_print is not set.
11072
11073 * print.c (printchar, strout): Don't check message_buf_print
427ec082 11074 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
11075 function does something useful even when message_buf_print is
11076 already set.
11077
52283633
SM
11078 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11079 New variables.
25fa6deb
GM
11080 (ensure_echo_area_buffers): Initialize echo buffer's
11081 truncate lines setting to nil.
11082 (with_echo_area_buffer): Don't set the echo buffer's truncate
11083 lines setting here.
8a4e3c0c 11084 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
11085 of message_truncate_lines.
11086 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
11087 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11088 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
11089
11090 * keyboard.c (read_char): Bind message-truncate-lines to t
11091 while displaying a help-echo.
11092
11093 * lisp.h (Qmessage_truncate_lines): External declaration.
11094
163dcff3
GM
110952000-06-13 Gerd Moellmann <gerd@gnu.org>
11096
1681ead6
GM
11097 * xdisp.c (Vline_number_display_limit): Renamed from
11098 line_number_display_limit.
11099 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11100 Extend documentation string. Initialize
11101 Vline_number_display_limit to nil meaning no limit.
11102 (decode_mode_spec): Use Vline_number_display_limit with its new
11103 meaning.
11104
163dcff3
GM
11105 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11106
18e21ce8 111072000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
11108
11109 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 11110
163dcff3
GM
11111 * xfns.c (x_set_frame_parameters): Comment fix.
11112
11113 * frame.c (store_frame_param): Call swap_in_global_binding if the
11114 variable's current binding was chosen based on this frame.
11115
11116 * data.c (swap_in_global_binding): New function.
11117
a704139d
EZ
111182000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11119
11120 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11121 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11122
9b6610db
EZ
111232000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11124
11125 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11126
c68833d2
JR
111272000-06-12 Jason Rumney <jasonr@gnu.org>
11128
11129 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11130
11131 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11132
11133 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11134
11135 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11136
ed1056b3
GM
111372000-06-12 Gerd Moellmann <gerd@gnu.org>
11138
11139 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11140 (syms_of_xfaces): Defsubr Sdump_colors.
11141 (x_free_colors): Don't treat b&w specially on default visual.
11142 (x_free_dpy_colors): New function.
11143 (free_face_colors): Don't check visual class; it's done
11144 in x_free_colors.
11145
11146 * xterm.c (x_frame_of_widget): New function.
11147 (x_alloc_nearest_color_for_widget): Use it.
11148 (x_copy_dpy_color): New function.
11149 (x_destroy_window): Free various colors.
11150
5050a2ef
KH
111512000-06-12 Kenichi Handa <handa@etl.go.jp>
11152
11153 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11154
11155 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11156
11157 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11158
11159 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11160
11161 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11162
fb1b041d
DL
111632000-06-11 Dave Love <fx@gnu.org>
11164
11165 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11166
ff96b5f4
EZ
111672000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11168
11169 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11170
db8eeecd
GM
111712000-06-11 Gerd Moellmann <gerd@gnu.org>
11172
ed1056b3 11173 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
11174 to `XEvent *'.
11175
49b71c5f
KH
111762000-06-10 Kenichi Handa <handa@etl.go.jp>
11177
c479bd55
KH
11178 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11179 (regex_compile): Fix the code for handling the case of single byte
11180 char and multibyte char being mixed in a range within [...].
11181
ff6a65c2
KH
11182 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11183 and dst_multibyte members of coding.
11184
49b71c5f
KH
11185 * charset.c (update_charset_table): Update the table
11186 bytes_by_char_head.
11187 (init_charset_once): Initialize elements of bytes_by_char_head to
11188 1 except for leading codes for private charases.
11189
11190 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 11191 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 11192
9e80b57d
KR
111932000-06-09 Ken Raeburn <raeburn@gnu.org>
11194
11195 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11196 access the data it doesn't point to.
11197
f83fe4b4
GM
111982000-06-08 Gerd Moellmann <gerd@gnu.org>
11199
11200 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 11201 will be translated to a switch-frame event when reading the
f83fe4b4
GM
11202 event queue. This is necessary because Emacs otherwise won't
11203 perform a switch-frame to a new frame until some other event, for
11204 example a keystroke event, forces it to do so. This has various
11205 effects, one visible being that the cursor of a frame created with
11206 C-x 5 2 or switched to with a window manager key binding like
11207 A-TAB stays hollow because selected_window isn't on the newly
11208 focused frame until the switch-frame is performed.
11209
11210 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11211 generating a switch-frame event if necessary.
11212
11213 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11214
11215 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11216 it's an integer.
11217
0890801b
KH
112182000-06-08 Kenichi Handa <handa@etl.go.jp>
11219
52283633 11220 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 11221
173cbca8
GM
112222000-06-07 Gerd Moellmann <gerd@gnu.org>
11223
3091c2a6
GM
11224 * window.c (displayed_window_lines): Take empty lines at
11225 the bottom of a window into account.
427ec082 11226
f38952fe
GM
11227 * window.c (displayed_window_lines): New function.
11228 (Fmove_to_window_line): Use displayed_window_lines to determine
11229 the number of lines to move, instead of using the window's height.
11230
11231 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11232 to stop reading, even if the form read sets point to a different
11233 value when evaluated.
11234
427ec082 11235 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
11236 put the cursor.
11237
6ba6c818
KH
112382000-06-07 Kenichi Handa <handa@etl.go.jp>
11239
11240 * fileio.c (e_write): Free composition data if stored in
11241 coding->cmp_data.
11242
5f1aea9a
GM
112432000-06-06 Gerd Moellmann <gerd@gnu.org>
11244
666852af
GM
11245 * xdisp.c (display_line): Set row's and iterator's
11246 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11247 Set cursor even if row ends in the middle of a character.
11248 (dump_glyph_row): Print values of new flags.
11249 (redisplay_window) <cursor movement in unchanged window>: When
11250 point has been moved forward, and PT is at the end of the cursor
11251 row, don't place the cursor in the next row if the cursor row ends
11252 in the middle of a character or at ZV.
11253
11254 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11255 (struct glyph_row): Add starts_in_middle_of_char_p and
11256 ends_in_middle_of_char_p.
11257 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11258 ends_in_middle_of_char_p flag.
11259 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11260
d13f3e2e
GM
11261 * term.c (append_glyph): Revert change of 2000-06-06.
11262
11263 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11264 padding glyph not fitting on line as whole character not
11265 fitting on line.
11266
5f1aea9a
GM
11267 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11268 this isn't true for images with `:ascent 100'.
11269
10cda9b0
KH
112702000-06-06 Kenichi Handa <handa@etl.go.jp>
11271
ed00559d
KH
11272 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11273 as modified if it is originally unmodified.
11274
10cda9b0
KH
11275 * term.c (encode_terminal_code): Change the way to check if
11276 terminal coding does any conversion.
11277 (append_glyph): Set glyph->pixel_width correctly.
11278
11279 * xdisp.c (display_line): While checking line continuation, pay
11280 attention to a padding glyph.
11281
1969fae2
GM
112822000-06-05 Gerd Moellmann <gerd@gnu.org>
11283
11284 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11285
162ccef4
DL
112862000-06-05 Dave Love <fx@gnu.org>
11287
f19f32dd
DL
11288 * xdisp.c: Include fontset.h.
11289
11290 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11291
11292 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11293
11294 * dispnew.c: Conditionally include term.h.
11295
11296 * coding.h: Declare code_convert_string_norecord.
11297
11298 * frame.h (struct frame): Use volatile unconditionally.
11299
11300 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11301
11302 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11303
11304 * systime.h: Protect against multiple inclusion.
11305 (timezone) [USG5_4]: Define as time_t.
11306
11307 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11308 (Foptimize_char_table, make_temp_name): Declare.
11309
11310 * Makefile.in (xdisp.o): Depend on fontset.h.
11311
11312 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11313
11314 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11315 (Foptimize_char_table, make_temp_name): Declare.
11316
427ec082 11317 * s/irix4-0.h:
162ccef4
DL
11318 * s/irix5-0.h:
11319 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11320
2082fe81
DL
113212000-06-02 Dave Love <fx@gnu.org>
11322
11323 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11324
dcf671d2
GM
113252000-06-02 Gerd Moellmann <gerd@gnu.org>
11326
11327 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 11328 result face, set flags in that face indicating that colors may not
dcf671d2
GM
11329 be freed.
11330
11331 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11332 glyph, use the ASCII NUL character to determine the face.
11333
d42122a3
DL
113342000-06-02 Dave Love <fx@gnu.org>
11335
11336 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11337 (VFORK_RETURN_TYPE): Remove.
427ec082 11338
d42122a3
DL
11339 * config.in: Add NO_MATHERR.
11340
dd432f16
DL
113412000-06-01 Dave Love <fx@gnu.org>
11342
90aa4ea8
DL
11343 * cmds.c (internal_self_insert): Don't check
11344 Vbefore_change_function, Vafter_change_function.
11345
11346 * insdel.c (signal_before_change, signal_after_change): Likewise.
11347
11348 * buffer.c (Vbefore_change_function, Vafter_change_function):
11349 Variables and their initializations deleted.
11350
2330c9d4
DL
11351 * callint.c (Fcall_interactively): Doc fix.
11352
dd432f16
DL
11353 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11354
bf9e8804
DL
113552000-05-31 Dave Love <fx@gnu.org>
11356
11357 * textprop.c: Revert last change -- duplicated.
11358
3694b4ab
GM
113592000-05-31 Gerd Moellmann <gerd@gnu.org>
11360
11361 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11362 in #if 0.
11363
11364 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11365
f14156cd
JR
113662000-05-31 Jason Rumney <jasonr@gnu.org>
11367
8119aab8
JR
11368 * search.c (Fre_search_forward, Fre_search_backward)
11369 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11370
f14156cd
JR
11371 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11372
4aab9be3
JR
113732000-05-30 Jason Rumney <jasonr@gnu.org>
11374
11375 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11376 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11377
52283633 11378 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
11379
11380 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11381 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11382 expand a nil default_filename.
11383
11384 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11385 pointer to glyph_to_pixel_coords, not a frame.
11386
11387 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11388 coding.h to dependencies.
11389
11390 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11391
11392 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11393 window pointer to be consistent with w32term.c and xterm.c.
11394
11395 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11396 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11397 (Qline_spacing, Qcenter): New variables.
11398 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11399 (x_set_line_spacing): New function.
52283633 11400 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
11401 (x_specified_cursor_type): New function.
11402 (x_set_cursor_type): Use it.
11403 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11404 and icon strings.
11405 (validate_x_resource_name, x_get_resource_string): Measure lengths
11406 of external strings in bytes.
11407 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11408 GetTextExtentPoint32 with NULL title.
11409 (Fx_create_frame): Initialize Qline_spacing.
11410 (w32_load_system_font): Initialize font->double_byte_p.
11411 (x_to_w32_charset): Use Vw32_charset_info_alist.
11412 (Image, busy cursor, tooltip functions): Merged changes from
11413 xfns.c. Not yet functional on Windows.
11414
11415 * w32gui.h (W32FontStruct): Add double_byte_p member.
11416
11417 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11418 (emacs_button_translation): Use it.
11419 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11420 in `mask' to be set.
11421
11422 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11423 menu strings.
11424
11425 * w32term.c: Format and doc changes to bring closer to xterm.c.
11426 (w32_char_font_type): New enum.
11427 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11428 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11429 (w32_encode_char): New function.
11430 (x_encode_char): Removed.
11431 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11432 x_encode_char and w32_font_is_double_byte.
11433 (x_produce_image_glyph): Use image_ascent.
11434 (x_produce_glyphs): Use new version of w32_per_char_metric and
11435 handle NULL return value. Allow extra line spacing.
11436 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11437 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11438 w32_font_type member of glyph instead.
11439 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11440 (fast_find_position): Make sure not to consider rows not visible
11441 in the window.
11442 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11443 w32_menu_display_help with input blocked, as it can abort.
11444 (x_display_and_set_cursor): Choose cursor depending
11445 on buffer-local value of cursor_type.
11446 (x_draw_bar_cursor): Add parameter WIDTH.
11447
11448 * w32term.h (CP_DEFAULT): Define.
11449 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11450
10fc3187
GM
114512000-05-30 Gerd Moellmann <gerd@gnu.org>
11452
11453 * search.c (Fre_search_forward, Fre_search_backward)
11454 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11455
d0555360
KH
114562000-05-30 Kenichi Handa <handa@etl.go.jp>
11457
11458 * coding.c (detect_coding_iso2022): Fix code for checking
11459 CODING_CATEGORY_MASK_ISO_8_2.
11460
f1ad044f
SM
114612000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11462
11463 * regex.c (PREFETCH_NOLIMIT): New function.
11464 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11465
84ec3b4b
GM
114662000-05-29 Gerd Moellmann <gerd@gnu.org>
11467
66254a13
GM
11468 * syntax.c (find_defun_start): Move test for
11469 open_paren_in_column_0_is_defun_start outside of the loop.
11470
49e70dec
GM
11471 * xdisp.c (redisplay_window): Really switch buffers when
11472 displaying mode lines, and temporarily set selected_frame to the
11473 frame of the window that's redisplayed.
11474
84ec3b4b
GM
11475 * xfaces.c (free_realized_faces): Block/unblock input.
11476 (free_realized_multibyte_face): Ditto.
11477
869a3a14
DL
114782000-05-29 Dave Love <fx@gnu.org>
11479
11480 * textprop.c (Qkeymap): New variable.
11481 (syms_of_textprop): Intern it.
11482
11483 * keymap.c: Include intervals.h.
11484 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11485
11486 * Makefile.in (keymap.o): Depend on intervals.h.
11487
11488 * keyboard.c (menu_bar_items, tool_bar_items)
11489 (Fexecute_extended_command): Deal with `keymap' property.
11490 (read_key_sequence): Track map from `keymap' property as well as
11491 `local_map'.
11492
11493 * intervals.c (get_local_map): Extra arg to allow looking for
11494 `keymap' too.
11495
11496 * intervals.h (map_property): New enum.
11497 (get_local_map): Extra arg using it.
11498 (Qkeymap): Declare.
11499
84ec3b4b 11500 * lisp.h (get_local_map): Don't declare here.
869a3a14 11501
89d0c844
KH
115022000-05-29 Kenichi Handa <handa@etl.go.jp>
11503
11504 * Makefile.in (callproc.o): Depend on composite.h.
11505
11506 * callproc.c: Include composite.h.
11507 (Fcall_process): Handle composition correctly.
11508
11509 * coding.h (coding_allocate_composition_data): Extern it.
11510 (coding_restore_composition): Likewise.
11511
11512 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11513 yet allocated, finish decoding with result
11514 CODING_FINISH_INSUFFICIENT_CMP.
11515 (coding_allocate_composition_data): Make it non-static.
11516 (coding_restore_composition): Likewise.
11517
797a084a
EZ
115182000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11519
11520 * charset.c (syms_of_charset): Revert last change.
11521
cf872af5
EZ
115222000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11523
11524 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
11525 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11526 Handa.
cf872af5 11527
5b1ae051
EZ
115282000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11529
11530 * charset.c (syms_of_charset): Set width of character sets
11531 eight-bit-control and eight-bit-graphic to 1 column.
11532
34ec9ebe
GM
115332000-05-26 Gerd Moellmann <gerd@gnu.org>
11534
11535 * config.in (HAVE_SPEED_T): New define.
11536
11537 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11538 `extern speed_t'.
11539
dd854dc2
DL
115402000-05-26 Dave Love <fx@gnu.org>
11541
11542 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11543
11544 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11545 (Fsubr_arity): New function.
11546 (syms_of_data): Install them.
11547
ba9f8f95
KH
115482000-05-26 Kenichi Handa <handa@etl.go.jp>
11549
0f3e0672
KH
11550 * charset.c (init_charset_once): Set the table bytes_by_char_head
11551 correctly.
11552
cebefb44
KH
11553 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11554 the default fontset to what Emacs uses by default.
0f3e0672
KH
11555 (check_registry_encoding): This function deleted.
11556 (Fset_fontset_font): Remove the adhoc condition for the default
11557 fontset. Allow cons in FONTNAME.
cebefb44 11558
0f3e0672
KH
11559 * fns.c (map_char_table): Ignore char-table entries for
11560 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 11561
7a18af49
KR
115622000-05-25 Ken Raeburn <raeburn@gnu.org>
11563
11564 * emacs.c (main): Initialize keyboard syms before initializing
11565 window code, so face names are available.
11566
d2af47df
SM
115672000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11568
11569 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11570 of an anchor at the beginning of a shy-group.
11571
fc6a6a4e
GM
115722000-05-25 Gerd Moellmann <gerd@gnu.org>
11573
11574 * xdisp.c (handle_invisible_prop): Don't try to skip over
11575 invisible text if end of text is already reached.
11576
005f0d35
DL
115772000-05-25 Dave Love <fx@gnu.org>
11578
02513cdd
DL
11579 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11580
005f0d35
DL
11581 * coding.c (encode_eol): Add null statement after label.
11582
89f6ca4e
EZ
115832000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11584
11585 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11586 2000-05-20.
11587
a4e1759e
KH
115882000-05-25 Kenichi Handa <handa@etl.go.jp>
11589
11590 * ccl.c (ccl_driver): Fix previous change.
11591
eacfd7fe
KH
115922000-05-25 Kenichi Handa <handa@etl.go.jp>
11593
46ab33a9
KH
11594 * coding.c (run_pre_post_conversion_on_str): Set point to the
11595 beginning of buffer before calling coding->post_read_conversion.
11596 (decode_coding_string): Give correct args to
11597 run_pre_post_conversion_on_str.
11598 (encode_coding_string): Likewise.
11599
eacfd7fe
KH
11600 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11601 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11602 eight-bit-graphic correctly.
11603
f8569325
DL
116042000-05-24 Kenichi HANDA <handa@etl.go.jp>
11605
11606 * fileio.c (Finsert_file_contents): Even if a file is not found,
11607 execute codes for setting up coding system. Call
11608 after-insert-file-functions unconditionally.
11609
04545643
GM
116102000-05-24 Gerd Moellmann <gerd@gnu.org>
11611
11612 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11613 BSD_PGRPS are not defined.
11614
747d90ea
KH
116152000-05-24 Kenichi Handa <handa@etl.go.jp>
11616
11617 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11618 DESCRIPTION.
11619 (syms_of_charset): Avoid building same strings.
11620
716e3b88
GM
116212000-05-23 Gerd Moellmann <gerd@gnu.org>
11622
11623 * lread.c (Fload): Add a comment about the meaning of
11624 Vuser_init_file being t.
11625
11626 * puresize.h (BASE_PURESIZE): Increase to 675000.
11627
11628 * s/gnu-linux.h (setpgrp): Don't define it here because this
11629 prevents compilation on GNU/Linux systems with glib 2.2.
11630
11631 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11632 as setpgid.
427ec082 11633
9aeb39fa
EZ
116342000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11635
11636 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11637 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11638 version.
11639 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11640
29ced61b
KH
116412000-05-23 Kenichi Handa <handa@etl.go.jp>
11642
52283633 11643 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 11644
3d80f24d
KH
11645 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11646
52283633 11647 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 11648
29ced61b
KH
11649 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11650
d7e00792
KH
116512000-05-22 Kenichi Handa <handa@etl.go.jp>
11652
c9d80d38
KH
11653 * keyboard.c (read_char): Allow character codes 128..255 to be
11654 handled by input-method-function.
11655
d7e00792
KH
11656 * insdel.c (adjust_markers_for_replace): Fix previous change.
11657 (adjust_after_replace): If PREV_TEXT is nil, call
11658 adjust_markers_for_insert, not adjust_markers_for_replace.
11659
087121cc 116602000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 11661
087121cc
GM
11662 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11663 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11664 [HAVE_GRANDPT]: Define.
11665 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11666
11667 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11668 like SYSV_PTYS.
11669
11670 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11671
11672 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11673
c9671f81
KH
116742000-05-20 Kenichi Handa <handa@etl.go.jp>
11675
11676 The following changes are to handle 8-bit characters in a
11677 multibyte buffer/string without facing with byte combining
11678 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11679 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11680
11681 * Makefile.in (fns.o): Depend on charset.h.
11682
11683 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11684 convert it to unibyte.
11685 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11686
11687 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11688 apparent char boundary.
11689 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11690 0x80..0x9F to/from multibyte form.
11691
11692 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11693 to unibyte.
11694
11695 * callproc.c (Fcall_process): Always encode an argument string if
11696 it is multibyte. Setup src_multibyte and dst_multibyte members of
11697 process_coding properly.
ce75fd23 11698
c9671f81
KH
11699 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11700 SPLIT_NON_ASCII_CHAR.
11701
11702 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11703 as is.
11704 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11705
52283633 11706 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 11707 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 11708 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
11709 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11710 and eight-bit-graphic.
11711 (char_to_string): Likewise. Signal an error for too large
11712 character code.
11713 (char_printable_p): Return 0 for 8-bit characters.
11714 (update_charset_table): Update iso_charset_table only when a final
11715 character is non-negative.
11716 (find_charset_in_text): Renamed from find_charset_in_str.
11717 Arguments and return value changed. Callers changed.
11718 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11719 be -1 if CHARSET is used only internally.
11720 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11721 eight-bit-graphic.
11722 (Fcharset_after): Simplified.
11723 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11724 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11725 (multibyte_chars_in_text): Simplified by assuming there's no
11726 invalid multibyte sequence.
52283633
SM
11727 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11728 (str_as_unibyte): New functions.
11729 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
11730 (init_charset_once): Initialization for
11731 LEADING_CODE_8_BIT_CONTROL.
11732 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11733 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11734 eight-bit-control and eight-bit-graphic.
11735
52283633
SM
11736 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11737 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
11738 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11739 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11740 (CHARSET_REVERSE_CHARSET): Likewise.
11741 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11742 eight-bit-graphic.
11743 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11744 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11745 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11746 encounter an invalid multibyte sequence.
11747 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11748 sequence is always valid.
11749 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 11750 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
11751 (CHAR_STRING): For 8-bit characters, call char_to_string.
11752 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11753 multibyte sequence is always valid.
11754 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
11755 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11756 (str_as_unibyte): Extern them.
c9671f81 11757 (BCOPY_SHORT): Fix a bug.
52283633 11758 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
11759 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11760 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11761 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11762
bd4bde7f 11763 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 11764 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
11765 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11766 (EMIT_BYTES): New macros.
11767 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11768 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
11769 macros deleted.
11770 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11771 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11772 check the validity of multibyte sequence.
11773 (decode_coding_emacs_mule): New function.
11774 (encode_coding_emacs_mule): New macro.
11775 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11776 the source.
11777 (DECODE_ISO_CHARACTER): Just return a character code.
11778 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11779 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11780 EMIT_CHAR to produced decoded characters. Exit the loop only by
11781 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11782 block here.
11783 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11784 only position codes for an invalid character.
11785 (encode_designation_at_bol): Return new destination pointer. 5th
11786 arg DSTP is changed to DST.
11787 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11788 from the source by ONE_MORE_CHAR. Don't handle the case of last
11789 block here.
11790 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11791 macros deleted.
52283633
SM
11792 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11793 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
11794 TWO_MORE_BYTES to fetch a byte from the source.
11795 (encode_eol): Pay attention to coding->src_multibyte.
11796 (detect_coding, detect_eol): Preserve members src_multibyte and
11797 dst_multibyte.
11798 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11799 (encoding_buffer_size): Set magnification to 3 for all coding
11800 systems that require encoding.
11801 (ccl_coding_driver): For decoding, be sure that the result is
11802 valid multibyte sequence.
11803 (decode_coding): Initialize coding->errors and coding->result.
11804 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11805 and raw-text, always call decode_eol. Handle the case of last
11806 block here. If not coding->dst_multibyte, convert the resulting
11807 sequence to unibyte.
11808 (encode_coding): Initialize coding->errors and coding->result.
11809 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11810 and raw-text, always call encode_eol. Handle the case of last
11811 block here.
11812 (shrink_decoding_region, shrink_encoding_region): Detect cases
11813 that we can't skip data more rigidly.
11814 (code_convert_region): Setup src_multibyte and dst_multibyte
11815 members of coding. For decoding, if the buffer is multibyte,
11816 convert the source sequence to unibyte in advance. For encoding,
11817 if the buffer is multibyte, convert the resulting sequence to
11818 multibyte afterward.
11819 (run_pre_post_conversion_on_str): New function.
11820 (code_convert_string): Deleted and divided into the following two.
11821 (decode_coding_string, encode_coding_string): New functions.
11822 (code_convert_string1, code_convert_string_norecord): Call one of
11823 above.
11824 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11825 MAKE_NON_ASCII_CHAR.
52283633
SM
11826 (Fset_terminal_coding_system_internal)
11827 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
11828 and dst_multibyte members.
11829 (init_coding_once): Initialize iso_code_class with new enum
11830 ISO_control_0 and ISO_control_1.
11831
11832 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11833 devided into ISO_control_0 and ISO_control_1.
11834 (struct coding_system): New members src_multibyte, dst_multibyte,
11835 errors, and result. Delete member fake_multibyte.
11836 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11837 nonzero.
11838 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11839 nonzero.
11840
11841 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11842 (Faset): Likewise.
11843
11844 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11845 multibyte form.
11846 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11847 combining occurs.
11848 (Ftranspose_region): Delete codes for handling byte combining.
11849
11850 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11851 dst_multibyte members of coding. On handling REPLACE on unibyte
11852 buffer, convert the result of decode_coding to unibyte. On
11853 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 11854 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
11855 multibyteness of the source (buffer or string).
11856
11857 * fns.c (concat): Handle 8-bit characters correctly.
11858 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11859 unibyte in the result.
11860 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11861 valid multibyte form in the result.
11862 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11863 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11864 return -1, signal an error.
11865 (base64_encode_1): New arg MULTIBYTE. Get each character by
11866 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11867 character is found, return -1.
11868 (Fbase64_decode_region): Delete codes for handling byte-combining.
11869 Treat each decoded byte as a unibyte character.
11870 (Fbase64_decode_string): Return unibyte string.
11871 (Fcompare_strings, concat, string_byte_to_char): Use
11872 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11873 FETCH_STRING_CHAR_ADVANCE.
11874 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11875 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11876
11877 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11878 SPLIT_NON_ASCII_CHAR.
11879 (fontset_ref_via_base, fontset_set): Likewise
11880
11881 * insdel.c (adjust_markers_for_record_delete): Deleted.
11882 (adjust_markers_for_insert): Argument changed. Caller changed.
11883 (adjust_markers_for_replace): Likewise.
52283633
SM
11884 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11885 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
11886 (copy_text): Delete unused local varialbe c_save. For converting
11887 to multibyte, be sure to make all 8-bit characters in valid
11888 multibyte form.
11889 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
11890 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11891 (adjust_after_replace, replace_range, del_range_2)
c9671f81 11892 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
11893 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11894 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
11895 handling byte combining.
11896 (adjust_before_replace): Deleted.
427ec082 11897
c9671f81
KH
11898 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11899 SPLIT_NON_ASCII_CHAR.
11900 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 11901 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11902 (Fkey_description): Likewise.
11903
11904 * lread.c (read1): On reading multibyte string, be sure to make
11905 all 8-bit chararacters in valid multibyte form.
11906 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11907
11908 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11909 unconditionally.
11910
11911 * process.c (Fstart_process): GCPRO current_dir before calling
11912 Ffind_operation_coding_system. Encode arguments here.
11913 (create_process): Don't encode arguments here. Setup
11914 src_multibyte and dst_multibyte members of struct coding.
11915 (read_process_output): Setup src_multibyte and dst_multibyte
11916 members of struct coding. If the output is to multibyte buffer,
11917 always decode the output of the process. Adjust the
52283633 11918 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
11919 (send_process): Setup coding->src_multibyte according to the
11920 multibyteness of the source.
11921
52283633 11922 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11923 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11924 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11925
52283633 11926 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
11927
11928 * w16select.c (Fw16_set_clipboard_data): Setup members
11929 src_multibyte and dst_multibyte of coding. Adjusted for the
11930 change for find_charset_in_str.
11931 (Fw16_get_clipboard_data): Likewise.
11932
11933 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11934 dst_multibyte of coding.
11935 (x_to_w32_font): Likewise.
11936
11937 * w32select.c (Fw32_set_clipboard_data): Setup members
11938 src_multibyte and dst_multibyte of coding. Adjusted for the
11939 change for find_charset_in_str.
11940 (Fw32_get_clipboard_data): Likewise.
11941
11942 * xdisp.c (get_next_display_element): Handle 8-bit characters
11943 correctly.
52283633
SM
11944 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11945 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
11946
11947 * xselect.c (selection_data_to_lisp_data): Setup members
11948 src_multibyte and dst_multibyte of coding. Adjusted for the
11949 change for find_charset_in_str.
11950 (lisp_data_to_selection_data): Likewise.
11951
5f64c9e0
GM
119522000-05-19 Gerd Moellmann <gerd@gnu.org>
11953
52283633 11954 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 11955
5f64c9e0
GM
11956 * dispextern.h (Vimage_types): Add extern declaration.
11957
11958 * xdisp.c (Vimage_types): Moved here from xfns.c.
11959 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11960
11961 * xfns.c (Vimages_types): Moved to xdisp.c.
11962 (syms_of_xfns): Move `image-types' to xdisp.c.
11963
11964 * w32fns.c (Vimage_types): Removed.
11965 (syms_of_w32fns): Remove `image-types'.
11966
813086ea
KH
119672000-05-18 Kenichi Handa <handa@etl.go.jp>
11968
11969 * fns.c (map_char_table): Pay attention to character number of
11970 charset. Check the validity of charset at the first level. For
11971 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11972 the default value.
11973
11974 * fontset.c: Include "buffer.h".
11975 (fs_load_font): If the face has fontset, record the face ID in
11976 that fontset.
11977 (Finternal_char_font): New function.
11978 (accumulate_font_info): New function.
11979 (Ffontset_info): Rewritten for the new fontset implementation.
11980 (syms_of_fontset): Register Vdefault_fontset in the first element
11981 of Vfontset_table. Include Vdefault_fontset in
11982 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11983 function.
11984
bdaebbf0
DL
119852000-05-16 Dave Love <fx@gnu.org>
11986
11987 * m/iris5d.h: Deleted -- unused.
11988
cb613bb8
GM
119892000-05-16 Gerd Moellmann <gerd@gnu.org>
11990
b15f3b77
GM
11991 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11992 `invalid' instead of `illegal'.
11993
11994 * indent.c (Fmove_to_column): When ending within a tab, insert
11995 spaces first so that markers at the end of the tab get adjusted.
11996
835c1b36
GM
11997 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11998 buffer list that wasn't selected in that frame.
11999
cb613bb8
GM
12000 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12001 is needed on mescaline, use a 2 char prefix, and call
12002 make_temp_name with second arg non-zero.
12003
12004 * fileio.c (make_temp_name): New function, extracted from
12005 Fmake_temp_name.
12006 (Fmake_temp_name): Use it.
12007
f685bea9
EZ
120082000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12009
52283633 12010 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 12011
a1b8d58b
GM
120122000-05-15 Gerd Moellmann <gerd@gnu.org>
12013
12014 * Makefile.in (lisp): Add env.elc.
12015
12016 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12017
a265079f
GM
120182000-05-12 Gerd Moellmann <gerd@gnu.org>
12019
12020 * search.c (Freplace_match): Handle case of `\N' in the
12021 replacement when there's no group N.
12022
da4496b6
GM
120232000-05-11 Gerd Moellmann <gerd@gnu.org>
12024
0ace421a
GM
12025 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12026 of the message to message_dolog.
12027
1172eb8d
GM
12028 * keyboard.c (read_char): Don't clear current message for help
12029 events; let the code handling help events handle this. Change
12030 code detecting help events that should be ignored.
12031
da4496b6
GM
12032 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12033 we're interating over a string.
12034
0623e40f
DL
120352000-05-09 Dave Love <fx@gnu.org>
12036
12037 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12038 that offset before writing. Move gcpro region past call of
12039 Ffile_regular_p.
12040
bae2503b
DL
120412000-05-04 Dave Love <fx@gnu.org>
12042
12043 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12044
ec82fb2f
GM
120452000-05-04 Gerd Moellmann <gerd@gnu.org>
12046
12047 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12048 of inserted characters when BUF equals the current buffer, and PT
12049 is in front of or equal to FROM.
12050
cbf18892
GM
120512000-05-03 Gerd Moellmann <gerd@gnu.org>
12052
4ff40dd0
GM
12053 * xdisp.c (handle_single_display_prop): If display property value
12054 is invalid, or something not supported on the frame, restore
12055 iterator's position to what it was initially. Make sure to return
12056 0 for invalid and unsupported property values.
12057
cbf18892
GM
12058 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12059 that x_per_char_metric returns null.
12060
1b0672c3
GM
120612000-05-02 Gerd Moellmann <gerd@gnu.org>
12062
576da55d
GM
12063 * xterm.h (struct face): Add forward declaration.
12064 (struct image): Ditto.
12065 (image_ascent): Add prototype.
12066
12067 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12068 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12069 image_ascent instead of using IMAGE_ASCENT.
12070
12071 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12072 (IMAGE_ASCENT): Removed.
12073
12074 * xfns.c (Qcenter): New variable.
12075 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12076 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12077 (image_ascent): New function.
12078 (lookup_image): Recognize `:ascent center'.
12079 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12080 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12081 (xbm_load): Don't set image's ascent here.
12082 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12083 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12084 check ascent values here.
12085 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12086 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12087 (syms_of_xfns): Initialize Qcenter.
12088
1b0672c3
GM
12089 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12090 to the limits, increase the limits.
12091
0d7811ed
KH
120922000-05-01 Kenichi Handa <handa@etl.go.jp>
12093
12094 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 12095 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 12096
a943a5ca
GM
120972000-04-28 Gerd Moellmann <gerd@gnu.org>
12098
12099 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12100 taller than the window.
12101
5dba1e29
KH
121022000-04-28 Kenichi Handa <handa@etl.go.jp>
12103
12104 * xfaces.c (realize_x_face): Fix the argument of the second
12105 xassert. BASE_FACE may not be a face for ASCII.
12106
353964e3
GM
121072000-04-27 Gerd Moellmann <gerd@gnu.org>
12108
c76e04a8
GM
12109 * print.c (print_object): Treat print-length < 0 as nil.
12110
12111 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12112
12113 * s/freebsd.h (TERMCAP_OBJ): Removed.
12114 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12115
12116 * lread.c (read1): Don't treat period followed by certain
12117 characters as symbol start.
12118
12119 * xfns.c (slurp_file): New function.
12120 (xbm_image_p): Handle case of in-memory XBM files.
12121 (xbm_scan): Rewritten to work on memory buffers instead of files.
12122 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12123 Work on memory buffers instead of files. If DATA is null test
12124 if buffer looks like an in-memory XBM file.
12125 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12126 memory buffers instead of files.
12127 (xbm_file_p): New function.
12128 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12129
353964e3
GM
12130 * lread.c (end_of_file_error): New function.
12131 (read1): Call it instead of signaling `end-of-file' directly.
12132
427ec082 12133 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
12134 with Fprinc instead of Fprin1.
12135
24d744ac
KR
121362000-04-26 Ken Raeburn <raeburn@gnu.org>
12137
12138 * window.c (freeze_window_start): Check that minibuffer scroll
12139 window isn't nil before extracting the window structure pointer
12140 from it.
12141
12142 * undo.c (record_delete): If we hit the end of the undo list, stop
12143 picking elements apart.
12144
7464346d
GM
121452000-04-26 Gerd Moellmann <gerd@gnu.org>
12146
12147 * xdisp.c (display_line): If lines are continued, restore
12148 iterator's ascent/descent information to the values before the
12149 first glyph not fitting on the line.
12150
612839b6
GM
121512000-04-25 Gerd Moellmann <gerd@gnu.org>
12152
12153 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 12154 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
12155
12156 * dispnew.c (increment_matrix_positions): Renamed from
12157 increment_glyph_matrix_buffer_positions.
12158 (increment_row_positions): Renamed from
12159 increment_glyph_row_buffer_positions.
12160
12161 * dispextern.h: Change names of renamed functions from dispnew.c
12162 in prototypes.
12163
cc181e95
GM
121642000-04-24 Gerd Moellmann <gerd@gnu.org>
12165
abfcc168
GM
12166 * fileio.c (Fdo_auto_save): Create directories for auto-save
12167 list file if necessary.
12168
cc181e95
GM
12169 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12170 from buffer or frame.
12171 (automatic_hscrolling_p): New variable.
12172 (hscroll_windows): Scroll windows horizontally only if automatic
12173 hscrolling is allowed.
12174 (syms_of_xdisp): New variable `automatic-hscrolling'.
12175
12176 * frame.h (struct frame): Add member extra_line_spacing.
12177
12178 * xfns.c (x_set_line_spacing): New function.
12179 (Fx_create_frame): Set line spacing from resources.
12180 (Qline_spacing): New variable.
12181 (syms_of_xfns): Initialize Qline_spacing.
427ec082 12182
cc181e95
GM
12183 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12184
12185 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12186 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 12187 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
12188 extra_line_spacing from default value.
12189 (init_buffer_once): Initialize default value of extra_line_spacing.
12190
12191 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12192 and extra3.
12193
12194 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12195 prompt_width. Add extra line spacing.
12196
12197 * term.c (produce_glyphs): Remove reference to struct it's
12198 prompt_width.
12199
12200 * dispextern.h (struct it): Remove member prompt_width, add
12201 extra_line_spacing.
12202
58827478
GM
122032000-04-22 Gerd Moellmann <gerd@gnu.org>
12204
12205 * dispnew.c (update_frame_line): When writing a whole line, make
12206 sure cursor is in the right row afterwards, otherwise a use of
12207 capability `ch' in cmgoto might leave the cursor in the row below.
12208
25a87f42
GM
122092000-04-21 Gerd Moellmann <gerd@gnu.org>
12210
12211 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12212
12213 * keyboard.c (timer_check): Fix typo in comment.
12214
54edf5c2
KH
122152000-04-21 Kenichi Handa <handa@etl.go.jp>
12216
12217 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12218 name change: ch -> character.
12219
3a64eef5
GM
122202000-04-20 Gerd Moellmann <gerd@gnu.org>
12221
12222 * keyboard.c (echo_message_buffer): New variable.
12223 (echo_now): Set echo_message_buffer to the echo area buffer used
12224 to display the echo.
12225 (cancel_echoing): Reset echo_message_buffer to nil.
12226 (read_char): Code rewritten that handles canceling an echo or
12227 echoing a dash, respectively.
12228
12229 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12230 directory doesn't exist.
12231
6142fdcb
DL
122322000-04-19 Dave Love <fx@gnu.org>
12233
12234 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
12235 (concat): Don't allow numeric args.
12236 (Fconcat): Doc change.
6142fdcb 12237
ac6b5352
SM
122382000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12239
12240 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12241 instead define end_match(1|2) more carefully.
12242 Use GET_CHAR_BEFORE_2 for `begline'.
12243
cb9215e4
GM
122442000-04-19 Gerd Moellmann <gerd@gnu.org>
12245
5e3dac3f
GM
12246 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12247 on 64-bit systems where NULL is defined as `0'.
12248
12249 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12250 the `variable argument list' to make it work on Alpha.
12251
cb9215e4
GM
12252 * m/alpha.h (_LP64) [!_LP64]: Define.
12253 (ORDINARY_LINK): Define for NetBSD.
12254
12255 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 12256
f532dca0
DL
122572000-04-19 Dave Love <fx@gnu.org>
12258
c750667e
DL
12259 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12260 change.
12261
12262 * Makefile.in (LIBS): Don't use.
12263 (GETLOADAVG_OBJ): Define again.
12264 (otherobj): Add GETLOADAVG_OBJ.
12265
f532dca0
DL
12266 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12267
1c7e22fd
GM
122682000-04-18 Gerd Moellmann <gerd@gnu.org>
12269
f6d3257b
GM
12270 * lread.c (read_filtered_event): Cancel and start busy cursor.
12271
427ec082 12272 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
12273 that the per-character metrics may be null.
12274
e10f64e7
GM
122752000-04-17 Gerd Moellmann <gerd@gnu.org>
12276
0daee095
GM
12277 * buffer.c (clone_per_buffer_values): New function.
12278 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12279 clone_per_buffer_values if CLONE is not nil.
12280
e10f64e7
GM
12281 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12282
38687d43
DL
122832000-04-16 Dave Love <fx@gnu.org>
12284
12285 * Makefile.in: Remove obsolete localcpp stuff.
12286 (GETLOADAVG_OBJ): Don't define.
12287 (obj): Move LIBOBJS...
12288 (otherobj): ... to here.
12289 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12290 whitespace-only lines after the continuation (Irix).
12291
c21c7262
GM
122922000-04-14 Gerd Moellmann <gerd@gnu.org>
12293
12294 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12295
12296 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12297
314767c0
DL
122982000-04-14 Dave Love <fx@gnu.org>
12299
12300 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12301 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12302 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12303 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12304 NLIST_STRUCT.
12305
12306 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12307 autoconfiscated HAVE_GETLOADAVG.
12308
12309 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12310 BROKEN_MKTIME.
12311
a2522dca
GM
123122000-04-14 Gerd Moellmann <gerd@gnu.org>
12313
12314 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 12315 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 12316
33744b5d
DL
123172000-04-14 Dave Love <fx@gnu.org>
12318
c21c7262 12319 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
12320 (INTERVAL_SRC): Convert to make variable.
12321 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12322 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12323 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12324 add LIBOBJS.
12325 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12326 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12327 (shortlisp): Add facemenu, float-sup, frame.
12328 (SOME_MACHINE_LISP): Remove them from here.
12329 (LIBES): Change unused LDLIBS to autoconf LIBS.
12330
12331 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12332
9d3d5916
KH
123332000-04-14 Kenichi Handa <handa@etl.go.jp>
12334
12335 * composite.c (update_compositions): If FROM and TO are not in a
12336 valid range, do nothing.
12337
198e3c7a
GM
123382000-04-13 Gerd Moellmann <gerd@gnu.org>
12339
52283633 12340 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 12341
52283633 12342 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
12343
12344 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12345 as TERMCAP_OBJ.
12346
055a28c9
EZ
123472000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12348
12349 * fileio.c (a_write): Remove redundant semi-colons.
12350 (e_write): Return -1 if failed to write all the data.
12351 This fixes the changes made at 1999-12-15.
12352
f5c75033
DL
123532000-04-12 Dave Love <fx@gnu.org>
12354
12355 * fns.c (mapcar1): Test for null vals to support mapc.
12356 (Fmapc): New function.
12357
0c3cfc51
EZ
123582000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12359
12360 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12361 (IT_frame_up_to_date): Support the buffer local value of
12362 cursor-type, if defined.
12363
33465a31
DL
123642000-04-10 Dave Love <fx@gnu.org>
12365
12366 * editfns.c (preceding-char, following-char): Doc fix.
12367
6ed56568
KR
123682000-04-10 Ken Raeburn <raeburn@gnu.org>
12369
12370 * Makefile.in (temacs): Revert 2000-03-12 change.
12371
7cf80d4e
JR
123722000-04-10 Jason Rumney <jasonr@gnu.org>
12373
12374 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12375
34f3f342
GM
123762000-04-10 Gerd Moellmann <gerd@gnu.org>
12377
1a1b1895
GM
12378 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12379 area buffer, if it's not set up yet.
12380
34f3f342
GM
12381 * indent.c (compute_motion): Set immediate_quit.
12382
be0dbdab
GM
123832000-04-09 Gerd Moellmann <gerd@gnu.org>
12384
52283633 12385 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
12386 (realize_tty_face): Suppress boldness if colors are the inverse of
12387 the default colors, and tty_suppress_bold_inverse_default_colors_p
12388 is set.
12389 (Ftty_suppress_bold_inverse_default_colors): New function.
12390 (syms_of_xfaces): Defsubr it.
12391
be0dbdab
GM
12392 * buffer.c (Frestore_buffer_modified_p): New function.
12393 (syms_of_buffer): Defsubr it.
12394
e8413c3b
KR
123952000-04-08 Ken Raeburn <raeburn@gnu.org>
12396
87f67317
KR
12397 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12398 charset id (int) argument, not a charset (Lisp_Object).
12399
e8413c3b
KR
12400 * coding.h (code_convert_string): Declare.
12401 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12402 object, as the fourth argument to code_convert_string.
12403
52283633 12404 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
12405 (Fset_fontset_font): Use EQ to compare lisp objects.
12406
7c752c80
KR
124072000-04-05 Ken Raeburn <raeburn@gnu.org>
12408
c0333abc
KR
12409 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12410 a pointer that looks like a lisp object.
12411 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12412 zero, instead see whether it's an integer object, since they can't
12413 have intervals.
12414 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12415
52283633
SM
12416 * dispnew.c (allocate_matrices_for_frame_redisplay)
12417 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
12418 to convert between (unsigned) int values and lisp integers.
12419 * keyboard.c (read_key_sequence): Likewise.
12420 * lread.c (substitute_object_recurse): Likewise.
12421 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
12422 * minibuf.c (do_completion, Fminibuffer_complete_word)
12423 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
12424 * term.c (produce_special_glyphs): Likewise.
12425
12426 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12427 * print.c (print_preprocess, print_object): Likewise.
12428
12429 * search.c (compile_pattern): Use NILP when checking for nil.
12430
74e49b38
KR
12431 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12432 __OPTIMIZE__]: Provide a GNU C macro version that handles
12433 lisp-object unions.
12434 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12435 field, to better cope with ENABLE_CHECKING and calls that modify a
12436 Lisp_Object using its old value.
12437
685e5ed2
GM
124382000-04-04 Gerd Moellmann <gerd@gnu.org>
12439
c407c570
GM
12440 * window.c (compare_window_configurations): Signal an error
12441 if parameters C1 or C2 aren't window configurations.
12442
685e5ed2
GM
12443 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12444 AFTER_POTENTIAL_GC calls around calls to functions that can
12445 signal an error and thus invoke the debugger.
12446
587a49ab
GM
124472000-04-03 Gerd Moellmann <gerd@gnu.org>
12448
62f20204
GM
12449 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12450 an error if decoding fails.
12451
587a49ab
GM
12452 * keyboard.c (lispy_mouse_names): Variable removed.
12453 (Vlispy_mouse_stem): New variable.
12454 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12455 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12456 for any mouse button number. Increase size of mouse_syms and
12457 button_down_location as needed. Call modify_event_symbol with
12458 different arguments.
12459 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12460 Call modify_event_symbol with different arguments.
12461 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12462 for any button number. Call modify_event_symbol with different
12463 arguments.
12464 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12465 Accept a string for NAME_ALIST_OR_STEM.
12466
12467 * lisp.h (larger_vector): Add prototype.
12468
12469 * fns.c (larger_vector): Make externally visible.
12470
12471 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12472
2d1675e4
SM
124732000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12474
12475 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12476 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12477 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12478 we are between str1 and str2.
12479 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12480 (PATFETCH): Use `TRANSLATE'.
12481 (PATFETCH_RAW): Fetch multibyte char if applicable.
12482 (PATUNFETCH): Remove.
12483 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12484 When writing a char, write it directly into the pattern buffer rather
12485 than going needlessly through a temp char-array.
12486 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12487 multibyte magic and remove the useless `#ifdef emacs'.
12488 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12489 buffer.
12490
12491 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12492 conditional on `emacs'.
12493
12494 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12495
cc2d8c6b
KR
124962000-04-01 Ken Raeburn <raeburn@gnu.org>
12497
12498 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12499 non-union-type versions of XMARK and friends here, because XMARK
12500 and friends won't work on an integer field if NO_UNION_TYPE is not
12501 defined.
52283633 12502 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 12503
52283633 12504 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
12505 (syms_of_composite): Delete local var NARGS, pass an int as first
12506 argument to Fmake_hash_table.
12507
2387b382
KR
12508 * editfns.c (text_property_stickiness): Use NILP to test
12509 Lisp_Object boolean value.
12510 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
12511 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12512 problems reading from and changing the same lisp value in an
12513 XSETSTRING call.
12514
27660e89
GM
125152000-04-01 Gerd Moellmann <gerd@gnu.org>
12516
12517 * term.c (TN_no_color_video): New variable.
12518 (term_init): Intitialize TN_no_color_video.
12519 (enum no_color_bit): New enumeration.
12520 (MAY_USE_WITH_COLORS_P): New macro.
12521 (turn_on_face): Use it to determine if attributes may be used
12522 combined with colors.
12523
3578db3c
KR
125242000-04-01 Ken Raeburn <raeburn@gnu.org>
12525
12526 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 12527 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
12528 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12529 proper accessor macros.
12530 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12531 (grow_mini_window): Fix typo getting int value of root->height.
12532
6fc556fd
KR
12533 * xdisp.c (compute_string_pos): Fix order of arguments to
12534 string_pos_nchars_ahead.
12535 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12536 count arg to variable-arg routines like Frun_hook_with_args and
12537 Fformat.
587a49ab
GM
12538 (back_to_previous_visible_line_start)
12539 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
12540 fixed-arg routines like Fget_char_property and Fmake_string.
12541 (reconsider_clip_changes): Use XINT when comparing integer lisp
12542 objects, or passing them as int arguments.
587a49ab
GM
12543 (mark_window_display_accurate, insert_left_trunc_glyphs)
12544 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
12545 storing or passing integer values as lisp objects.
12546 (set_cursor_from_row, highlight_trailing_whitespace): Use
12547 INTEGERP, not implicit test against zero, for glyph object.
12548 (try_window_id): Don't use make_number when we want an int value.
12549
12550 * xfaces.c (xlfd_symbolic_value): Make last argument a
12551 Lisp_Object, to be consistent with callers.
12552 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12553 (lface_hash): Apply XFASTINT to lisp values before folding in.
12554
12555 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12556 fill in window width and height. Pass an int, not a lisp object,
12557 as first arg to Finsert.
12558
6e7b2457
GM
125592000-04-01 Gerd Moellmann <gerd@gnu.org>
12560
610d841e
GM
12561 * xfaces.c (realize_basic_faces): Block input while realizing
12562 the faces.
12563
6e7b2457
GM
12564 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12565
12566 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12567
aa110c0c
GM
125682000-03-31 Gerd Moellmann <gerd@gnu.org>
12569
12570 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 12571 or ASCII, handle case that per-char metric is null.
aa110c0c 12572
8801a864
KR
125732000-03-30 Ken Raeburn <raeburn@gnu.org>
12574
c6129d7e
KR
12575 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12576
52283633
SM
12577 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12578 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
12579 pointer, using eassert.
12580 * frame.h (XFRAME): Likewise.
12581
52283633
SM
12582 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12583 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12584 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 12585 * data.c (set_internal): Likewise.
52283633
SM
12586 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12587 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
12588 * fileio.c (auto_save_1): Likewise.
12589 * insdel.c (check_markers): Likewise.
12590 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12591 * undo.c (record_insert): Likewise.
12592 * vmsproc.c (child_sig): Likewise.
12593 * window.c (unshow_buffer, window_loop): Likewise.
12594 * xterm.c (x_erase_phys_cursor): Likewise.
12595
8e7af858
GM
125962000-03-30 Gerd Moellmann <gerd@gnu.org>
12597
12598 * xfns.c (free_image_cache): Free the cache structure itself
12599 last, after all its members have been freed.
12600
12601 * lisp.h (xstrdup): Add prototype.
12602
12603 * alloc.c (xstrdup): Moved here from xfaces.c.
12604 (allocating_for_lisp): Variable removed.
52283633 12605 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
12606
12607 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12608 of Fsymbol_value.
12609 (xstrdup): Moved to alloc.c.
12610
e0b8c689
KR
126112000-03-29 Ken Raeburn <raeburn@gnu.org>
12612
b96f9fb7
KR
12613 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12614
12615 * emacs.c (main): Fix sense of no-loadup test.
12616
e0b8c689
KR
12617 * config.in (ENABLE_CHECKING): Undef.
12618
12619 * lisp.h (struct interval): Replace "parent" field with a union of
12620 interval pointer and Lisp_Object; add new bitfield to use as
12621 discriminant. Change other flag fields to bitfields.
12622 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
12623 is defined and the supplied test fails, print a message and abort.
12624 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
12625
12626 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12627 pointers; abort if the value looks like a lisp object.
52283633
SM
12628 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12629 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
12630 Modify for new interval parent definition.
12631
52283633
SM
12632 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12633 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
12634 addressable lisp object in the interval structure.
12635 (die): New function.
12636 (suppress_checking): New variable.
12637
12638 * intervals.c (interval_start_pos): Just return 0 if there's no
12639 parent object.
12640
f83c5440
GM
126412000-03-29 Gerd Moellmann <gerd@gnu.org>
12642
12643 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12644 and earlier Emacs versions.
12645
12646 * keyboard.c (Ftop_level): Cancel busy-cursor.
12647
12648 * eval.c (call_debugger): Cancel busy-cursor.
12649
fdce64ff
KH
126502000-03-29 Kenichi Handa <handa@etl.go.jp>
12651
12652 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 12653 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 12654
f6a3f532
SM
126552000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12656
12657 * regex.c (analyse_first): New function obtained by ripping out most
12658 of re_compile_fastmap and generalizing it a little bit so that it
12659 can also just return whether a given (sub)pattern can match the empty
12660 string or not.
12661 (regex_compile): Use `analyse_first' to decide whether the loop-check
12662 needs to be done or not for *, +, *? and +? (the loop check is costly
12663 for non-greedy repetition).
12664 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12665
e9b309ac
DL
126662000-03-28 Dave Love <fx@gnu.org>
12667
52283633 12668 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 12669
e9b309ac
DL
12670 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12671
ed0767d8
SM
126722000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12673
12674 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12675 an expression.
12676 (enum re_opcode_t): Update description of succeed_n.
12677 (PATFETCH): Always define.
12678 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12679 operators, char classes, shy-groups and intervals).
12680 Optimize special cases of intervals so as to only use succeed_n and
12681 jump_n when really needed.
12682 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12683 that we don't have to handle the special cases any more.
12684 Simplify on_failure_jump handling as well.
12685
e11e7e46
JR
126862000-03-28 Jason Rumney <jasonr@gnu.org>
12687
12688 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12689
88faab89
GM
126902000-03-27 Gerd Moellmann <gerd@gnu.org>
12691
182ff242
GM
12692 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12693
12694 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 12695
182ff242
GM
12696 * alloc.c (mark_maybe_object): New function.
12697 (mark_memory): Use it.
12698 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12699 (setjmp_tested_p, longjmp_done): New variables.
12700 (test_setjmp): New function.
12701 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12702 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12703
c1005d06
GM
12704 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12705 to DEC_TEXT_POS and INC_TEXT_POS.
12706
12707 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12708 with parameter MULTIBYTE_P.
12709
52283633 12710 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 12711
7439e5b9 12712 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
12713 buffers because it looks for multibyte character byte sequences
12714 which don't exist in unibyte text.
7439e5b9 12715
d9c545da
GM
12716 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12717
11fd416e 12718 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
12719 [DEBUG_X_COLORS]: New functions.
12720 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12721
12722 * xfns.c (x_set_cursor_color): Get color reference counts right.
12723
12724 * xterm.c (x_copy_color): New function.
12725 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12726
12727 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12728 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12729 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12730 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12731 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12732 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12733 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12734 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12735 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12736 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12737
11fd416e
GM
12738 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12739 names for handling per-buffer variables.
d9c545da
GM
12740
12741 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12742 instead of MAX_BUFFER_LOCAL_VARS.
12743 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12744
12745 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12746
88faab89
GM
12747 * xfns.c (x_specified_cursor_type): New function.
12748 (x_set_cursor_type): Use it.
12749
12750 * buffer.h (struct buffer): Add cursor_type.
12751
d80f42b7
SM
127522000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12753
12754 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
12755 (print_partial_compiled_pattern, re_compile_fastmap):
12756 Handle new opcode.
d80f42b7
SM
12757 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12758 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12759 executing it as well as when popping it off the stack to find infinite
12760 loops in non-greedy repetition operators.
12761
89e80928
GM
127622000-03-26 Gerd Moellmann <gerd@gnu.org>
12763
3d4ff2dd
GM
12764 * doc.c (Qfunction_documentation): New variable.
12765 (syms_of_doc): Initialize Qfunction_documentation.
12766 (Fdocumentation): If FUNCTION is a symbol with non-nil
12767 `function-documentation' property, return a documentation derived
12768 from that.
12769
bd96bd79
GM
12770 * buffer.c (syms_of_buffer): Add default-cursor-type.
12771 (init_buffer_once): Don't let cursor_type have a local value
12772 in every buffer.
12773
19d1bc27
GM
12774 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12775 on buffer-local value of cursor_type.
12776 (x_draw_bar_cursor): Add parameter WIDTH.
12777
12778 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12779 (init_buffer_once): Set default cursor_type value to t.
12780 Mark cursor_type as local everywhere.
12781 (syms_of_buffer): New per-buffer variable cursor-type.
12782
89e80928
GM
12783 * buffer.h (struct buffer): Remove member local_var_flags,
12784 add local_flags.
12785 (MAX_BUFFER_LOCAL_VARS): New macro.
12786 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12787 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12788 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12789 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12790
52283633 12791 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
12792
12793 * category.c (Fset_category_table): Use new macros for per-buffer
12794 variables.
12795
12796 * buffer.c (buffer_permanent_local_flags): Make a char array.
12797 (max_buffer_local_idx): New variable.
12798 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12799 for new handling of per-buffer variables.
12800 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12801 (init_buffer_once): Initialize per-buffer vars differently.
12802 Set max_buffer_local_idx.
12803
12804 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12805 variables.
12806
52283633 12807 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
12808
12809 * data.c (do_symval_forwarding, store_symval_forwarding)
12810 (find_symbol_value, set_internal, default_value, Fset_default)
12811 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12812 per-buffer variables.
12813
12814 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12815
9a0dd3dc
GM
128162000-03-24 Gerd Moellmann <gerd@gnu.org>
12817
b68c375f
GM
12818 * xterm.c (x_term_init): Unblock input around call1 of
12819 Qvendor_specific_keysyms.
12820
9a0dd3dc
GM
12821 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12822 (find_defun_start): Consider an open parenthesis in column 0
12823 a defun start only if open_paren_in_column_0_is_defun_start is set.
12824 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12825
7973e637
SM
128262000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12827
12828 * eval.c (Fautoload): Add entry in load-history (if after dump).
12829 * lread.c (load-history): Update docstring.
12830
39210e90
GM
128312000-03-24 Gerd Moellmann <gerd@gnu.org>
12832
12833 * indent.c (Fvertical_motion): Always use the current buffer.
12834 Temporarily change the window's buffer, if necessary.
12835
72db3ab5
GM
128362000-03-23 Gerd Moellmann <gerd@gnu.org>
12837
12838 * xterm.c (fast_find_position): Make sure not to consider rows
12839 not visible in the window.
12840
990b2375
SM
128412000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12842
12843 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12844 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12845
ff4df011
JR
128462000-03-22 Jason Rumney <jasonr@gnu.org>
12847
12848 * w32menu.c (single_submenu): Set help string to NULL if none.
12849 (w32_menu_show): Set help string correctly.
12850 (add-menu-item): Set help string in MIIM_DATA for menu item.
12851 Load SetMenuItemInfoA explicitly.
12852 (w32_menu_display_help): New function.
427ec082 12853
ff4df011
JR
12854 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12855 (QCdata): Moved to xdisp.c.
12856
12857 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12858 (Vw32_charset_to_codepage_alist): Removed.
12859 (Vw32_charset_info_alist): New variable.
52283633
SM
12860 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12861 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12862 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
12863 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12864 with TODO comment.
12865 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12866 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12867 Define Vw32_charset_info_alist and w32_charset symbols.
12868
128692000-03-22 Jason Rumney <jasonr@gnu.org>
12870
12871 * makefile.nt (w32bdf.obj): Update dependencies.
12872
12873 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12874
12875 * w32fns.c: Include fontset.h after dispextern.h.
12876 (Fx_create_frame): Do not create fontset.
12877 (w32_load_system_font): Doc fix.
12878 (Fx_close_connection): Free full_name if it is not shared.
12879
12880 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
12881 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12882 Callers updated.
ff4df011
JR
12883 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12884 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12885 (w32_font_is_double_byte): New function, needs body.
12886 (x_append_glyph): Set glyph->glyph_not_available_p.
12887 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12888 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12889 character, convert it to a unibyte character.
12890 (struct glyph_string): Delete member `charset'.
12891 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12892 calculating it is found.
12893 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12894 the case that per char metric is not available correctly.
12895 (x_fill_glyph_string): Handle the case that the specific glyph is
12896 not available correctly.
12897 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12898 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12899 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12900 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12901 fontset. Don't call FS_LOAD_FONT.
12902
439d5cb4
KR
129032000-03-22 Ken Raeburn <raeburn@gnu.org>
12904
12905 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12906 (INT_LISPLIKE): New macro.
12907 (NULL_INTERVAL_P): Use it.
52283633
SM
12908 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12909 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12910 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
12911
12912 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12913 explicit references to "parent" field of struct interval and
12914 associated unclean type conversions.
52283633
SM
12915 * intervals.c (create_root_interval, root_interval, rotate_right)
12916 (rotate_left, balance_possible_root_interval, split_interval_right)
12917 (split_interval_left, interval_start_pos, find_interval)
12918 (next_interval, previous_interval, update_interval)
12919 (adjust_intervals_for_insertion, delete_node, delete_interval)
12920 (adjust_intervals_for_deletion, merge_interval_right)
12921 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12922 (copy_intervals_to_string): Likewise.
439d5cb4
KR
12923 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12924 Likewise.
12925 * syntax.c (update_syntax_table): Likewise.
12926
12927 * intervals.c (reproduce_tree_obj): New function, like
12928 reproduce_tree but takes a Lisp_Object for the parent. Declare
12929 with prototype.
12930 (graft_intervals_into_buffer): Use it when appropriate.
12931 (reproduce_tree): Declare with prototype.
12932 (balance_possible_root_interval): Check that the parent is a lisp
12933 object before trying to examine its type.
12934
ee1c5b21
GM
129352000-03-22 Gerd Moellmann <gerd@gnu.org>
12936
12937 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12938 as strings only if both are known to be strings.
12939
12940 * s/openbsd.h (LIBS_TERMCAP): Undef.
12941
1fb352e0
SM
129422000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12943
12944 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12945 definitions for non-Emacs compilation.
12946 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12947 outside of `#ifdef emacs'.
12948 (print_partial_compiled_pattern): Update.
12949 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12950 (re_compile_fastmap): Merge handling of charset and charset_not (for
12951 emacs and non-emacs compilation as well).
12952 Similarly for (not)categoryspec and (not)syntaxspec.
12953 Don't use the fastmap when reaching `anychar' since the added
12954 complexity is not justified.
12955 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12956 and (not)syntaxspec. Merge (not)categoryspec.
12957
fdaa1f77
KH
129582000-03-22 Kenichi Handa <handa@etl.go.jp>
12959
52283633
SM
12960 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12961 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 12962 --without-x.
fdaa1f77 12963
d152fb46
DL
129642000-03-21 Dave Love <fx@gnu.org>
12965
12966 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12967 doc string.
12968
d2cafc8c
GM
129692000-03-21 Gerd Moellmann <gerd@gnu.org>
12970
12971 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12972 (lface_fully_specified_p): Don't check contents of
12973 LFACE_FONT_INDEX because that attribute is optional.
12974 (realize_x_face): Remove now unwarranted xassert.
12975
9111d4b5
KH
129762000-03-21 Kenichi HANDA <handa@etl.go.jp>
12977
12978 The following changes are to make font selection based on
12979 characters, not charset. In addition, they recover fontset
12980 facilities while utilizing the new font selection mechanism.
12981
6c4bfdc0
KH
12982 * Makefile.in (fontset.o): Depend on dispextern.h.
12983
12984 * alloc.c (mark_face_cache): Don't mark face->registry.
12985
9111d4b5
KH
12986 * dispextern.h (struct glyph): New member glyph_not_available_p.
12987 Use 22 bits for face_id.
12988 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12989 (struct face): Delete member registry, new member ascii_face.
12990 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12991 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12992 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 12993 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
12994
12995 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12996 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
12997 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12998 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 12999 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
13000 (fs_free_face_fontset, fontset_font_pattern)
13001 (face_suitable_for_char_p, face_for_char)
13002 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
13003 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13004 (FS_LOAD_FACE_FONT): New macro.
13005
13006 * fontset.c: All codes rewritten or adjusted for the change of
13007 fontset implementation. Now fontset is represented by char table.
52283633
SM
13008 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13009 Variables removed.
9111d4b5 13010 (my_strcasecmp): Function removed.
52283633 13011 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 13012 (AREF, ASIZE): New macros.
52283633
SM
13013 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13014 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13015 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13016 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13017 (fontset_id_valid_p, font_family_registry, fontset_name)
13018 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13019 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
13020 New functions.
13021 (fs_load_font): New arg FACE. Caller changed.
13022 (fs_query_fontset): Argument changed. Caller changed.
13023 (Fquery_fontset): call fs_query_fontset.
13024 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13025 Functions removed.
52283633
SM
13026 (clear_fontset_elements, check_registry_encoding)
13027 (check_fontset_name): New functions.
9111d4b5
KH
13028 (syms_of_fontset): Set char-table-extra-slots property of fontset
13029 to 3. Staticpro and initialize Vfontset_table and
13030 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13031
13032 * frame.h (struct frame): Member `fontset_data' removed.
13033 (FRAME_FONTSET_DATA): Macro removed.
13034
13035 * frame.c (make_frame): Don't allocate f->fontset_data.
13036 (Fdelete_frame): Don't free f->fontset_data.
13037
6c4bfdc0
KH
13038 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13039
9111d4b5
KH
13040 * xdisp.c (charset_at_position): Function removed.
13041 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
13042 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13043 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
13044 Likewise.
13045 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13046 FACE_FOR_CHARSET.
52283633
SM
13047 (get_next_display_element, append_space)
13048 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
13049
13050 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13051 Variables removed.
13052 (clear_font_table, frame_update_line_height, load_face_font):
13053 Adjusted for the change of fontset implementation.
13054 (load_face_fontset_font): Function removed.
13055 (pixel_point_size): New function.
13056 (font_list): Argument type changed. Caller changed.
13057 (LFACE_FONT): New macro.
13058 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13059 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13060 Lisp_Object. Determine the font name by actually loading a font
13061 by the specified pattern. Set LFACE_FONT (lface) to the specified
13062 pattern. Even if a font is not found, don't try alternatives.
13063 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13064 (set_font_frame_param): If `font' is specified in lface, use it.
13065 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13066 (lface_same_font_attributes_p): Likewise.
13067 (make_realized_face): Arguent changed. Caller changed. Set
13068 face->ascii_face to face itself.
13069 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
13070 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13071 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
13072 (free_realized_multibyte_face): New function.
13073 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13074 changed. Caller changed.
13075 (try_font_list): Argument type changed.
13076 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13077 (choose_face_font): Argument changed. Handle fontset properly.
13078 (choose_face_fontset_font): Function removed.
13079 (realize_default_face, realize_named_face): Don't remove the
13080 former face here.
13081 (realize_face): Argument changed. Caller changed. Remove face
52283633 13082 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
13083 (realize_x_face): Argument changed. Caller changed. For a
13084 multibyte character, share fontset with base_face. For a single
52283633 13085 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
13086 (realize_tty_face): Argument changed. Caller changed.
13087 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13088 (face_at_buffer_position): Don't check multibyte_p for returning
13089 DEFAULT_FACE_ID.
13090 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13091 FACE_SUITABLE_FOR_CHARSET_P.
13092 (syms_of_xfaces): Remove code for Qx_charset_registry and
13093 Vface_default_registry.
13094
6c4bfdc0
KH
13095 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13096 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
13097 (x_per_char_metric): Don't try FONT->default_char. Even if
13098 pcm->width is zero, glyph bits may exist.
13099 (x_encode_char): Always initialize char2b->byte1.
13100 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 13101 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
13102 (x_append_glyph): Set glyph->glyph_not_available_p.
13103 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13104 it->charset. Handle the case that per char metric is not
13105 available. If it->multibyte_p is zero and it->c is a multibyte
13106 character, convert it to a unibyte character.
13107 (struct glyph_string): Delete member `charset'.
13108 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13109 the case that per char metric is not available correctly.
13110 (x_fill_glyph_string): Handle the case that the specific glyph is
13111 not available correctly.
13112 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13113 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13114 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13115 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13116 fontset. Don't call FS_LOAD_FONT.
13117
13118 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13119 (x_create_tip_frame): Likewise.
13120 (Fx_close_connection): Free full_name of font_info.
13121
13122 * fns.c (optimize_sub_char_table): New function.
13123 (Foptimize_char_table): New function.
13124 (syms_of_fns): Defsubr Soptimize_char_table.
13125
b33dd3b0
GM
131262000-03-20 Gerd Moellmann <gerd@gnu.org>
13127
13128 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13129 only if buffer is displayed in some window.
13130
13131 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13132 (try_window_reusing_current_matrix): Don't call scroll run
13133 function if run's current and desired position are the same;
13134 this prevents cursor flickering.
13135
4e8a9132
SM
131362000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13137
13138 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13139
13140 * regex.c (RE_STRING_CHAR): New macro.
13141 (GET_CHAR_AFER_2): Remove.
13142 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13143 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13144 (print_partial_compiled_pattern, re_compile_fastmap)
13145 (re_match_2_internal): Remove on_failure_jump_exclusive.
13146 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13147 optimization only need to work for * (ie. can use of_keep_string_jump).
13148 Remove the special case for .*\n since it is now covered by the general
13149 optimization.
13150 (re_search_2): Don't bother with `room'.
13151 (skip_one_char): New function.
13152 (skip_noops): Simplify since `memory' is not needed any more.
13153 (mutually_exclusive_p): Restructure slightly to use `switch' and
13154 add handling for "all" remaining cases.
13155 (re_match_2_internal): Change on_failure_jump_smart to use
13156 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13157 rather than on_failure_jump_exclusive.
13158
2136fdd4
GM
131592000-03-19 Gerd Moellmann <gerd@gnu.org>
13160
13161 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13162 number of bits per RGB because it's everywhere used as the depth
13163 of the visual.
13164
13165 * term.c (calculate_costs): Remove code dealing with X frames.
13166
18e21ce8 131672000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
13168
13169 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13170
d7b511c4
GM
131712000-03-18 Gerd Moellmann <gerd@gnu.org>
13172
13173 * lread.c (read_integer): Unread the last char not consumed.
13174
16b5d424
GM
131752000-03-17 Gerd Moellmann <gerd@gnu.org>
13176
13177 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 13178 which are in the process of being deleted.
16b5d424 13179
1fa28578
GM
131802000-03-16 Gerd Moellmann <gerd@gnu.org>
13181
83488cce
GM
13182 * Makefile.in (mostlyclean): Add `*.core'.
13183 (clean): Add `bootstrap-emacs'.
13184
1fa28578
GM
13185 * lread.c (read_integer): New function.
13186 (read1): Support read syntax #o, #x, #b, #r.
13187
99633e97
SM
131882000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13189
1fa28578
GM
13190 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13191 make sure POINTER_TO_OFFSET gives the same value before and after
13192 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
13193 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13194 (debug): Now only active if > 0 rather than if != 0.
13195 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
13196 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13197 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13198 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
13199 (store_op1, store_op2, insert_op1, insert_op2)
13200 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
13201 (group_in_compile_stack): Move to after its arg's types are
13202 declared and add a prototype.
99633e97 13203 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 13204 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 13205 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
13206 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13207 indentation of the greedy-op and shy-group code.
99633e97
SM
13208 (at_(beg|end)line_loc_p): Fix argument's types.
13209 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13210 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13211 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
13212 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13213 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13214 QUIT unconditionally.
99633e97 13215
699238d9
GM
132162000-03-15 Gerd Moellmann <gerd@gnu.org>
13217
13218 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13219 a sole completion.
13220
13221 * process.c (send_process): Add a hint that the function
13222 can call Lisp code to its comment.
13223
13224 * lread.c (load_dangerous_libraries): New variable.
13225 (Vbytecomp_version_regexp): New variable.
13226 (safe_to_load_p): New function.
13227 (Fload): Handle files not compiled with Emacs specially.
13228 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13229
34e23e5a
GM
132302000-03-14 Gerd Moellmann <gerd@gnu.org>
13231
9c763cca
GM
13232 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13233
13234 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13235 support functions only if HAVE_X11R6_XIM is defined.
13236 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13237
13238 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13239
13240 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 13241 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
13242 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13243
13244 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13245 (HAVE_X11R6_XIM): Define.
13246
13247 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13248
34e23e5a
GM
13249 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13250 If set, call XSynchronize.
13251
66f0296e
SM
132522000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13253
34e23e5a
GM
13254 * regex.c: Declare a new type `re_char' used throughout the code
13255 for the string char type. It's `const unsigned char' to match the
13256 rest of Emacs. Consistently make sure all pointers to strings use
52283633 13257 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 13258 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
13259 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13260 code duplication.
66f0296e
SM
13261
13262 * charset.h (GET_CHAR_AFTER_2): Remove.
13263 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13264
854a025c
KR
132652000-03-12 Ken Raeburn <raeburn@gnu.org>
13266
13267 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13268 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13269 of them try to use backquotes.
13270
b9d2c7e2
DL
132712000-03-12 Dave Love <fx@gnu.org>
13272
13273 * unexelf.c: Restore changes of 1999-10-19.
13274 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13275 fix its type and alignment; copy it from current process.
13276
5e5dff44
GM
132772000-03-12 Gerd Moellmann <gerd@gnu.org>
13278
9b2f3c38
GM
13279 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13280 has been found. Fix bug not computing timer's predecessor.
13281
427ec082 13282 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
13283 file name.
13284
e1cff360
GM
13285 * window.c (Fsave_window_excursion): Doc fix.
13286
52283633 13287 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 13288
e411ce4b
EZ
132892000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13290
13291 * msdos.c (vga_installed): New function, code moved from
13292 dos_set_window_size.
13293 (Qbar, Qcursor_type, outside_cursor): New variables.
13294 (syms_of_msdos): Intern and staticpro them.
13295 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13296 shape used outside Emacs when called for the first time.
13297 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13298 cursor shape used outside Emacs.
13299 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13300 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13301 type has changed.
13302 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13303 parameters specify the cursor. Make qreverse a global
13304 variable (renamed to Qreverse).
13305
80460654
GM
133062000-03-09 Gerd Moellmann <gerd@gnu.org>
13307
13308 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13309
95cd4c40
SM
133102000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13311
13312 This is a big redesign of failure-stack and register handling, prompted
13313 by bugs revealed when trying to add shy-groups. Overall, what happened
13314 is that loops are now structured a little differently, groups can be
13315 shy and the code is a little simpler.
13316
13317 * regex.h: Update the copyright.
13318 (RE_SHY_GROUPS): New value.
13319 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13320 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13321
80460654
GM
13322 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13323 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13324 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13325 for (start|stop)_memory since they now only take one argument (the
13326 second has becomes unnecessary).
52283633 13327 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
13328 (print_compiled_pattern): Use %ld to printf long ints and flush to
13329 make debugging a little easier.
95cd4c40
SM
13330 (union fail_stack_elt): Make the integer unsigned.
13331 (struct fail_stack_type): Add a `frame' element.
13332 (INIT_FAIL_STACK): Init `frame' as well.
13333 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13334 (DEBUG_PUSH, DEBUG_POP): Remove.
13335 (NUM_REG_ITEMS): Remove.
13336 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
13337 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13338 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 13339 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
13340 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13341 New macros.
80460654
GM
13342 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13343 address pushed is not the destination of the jump but the source
13344 of it instead.
95cd4c40
SM
13345 (NUM_FAILURE_ITEMS): Remove.
13346 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
13347 registers before the actual failure point). Don't hardcode any
13348 meaning for str==NULL anymore.
95cd4c40 13349 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
13350 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13351 Remove.
95cd4c40
SM
13352 (REG_UNSET_VALUE): Use NULL (why not?).
13353 (compile_range): Remove declaration since it doesn't exist.
13354 (struct compile_stack_elt_t): Remove inner_group_offset.
13355 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13356 (regex_grow_registers): Remove dead code.
13357 (FIXUP_ALT_JUMP): New macro.
80460654
GM
13358 (regex_compile): Add shy-groups Change loops to use
13359 on_failure_jump_smart&jump instead of
13360 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13361 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13362 variable to me). Use `jump' instead of `jump_past_alt' and don't
13363 bother with push_dummy_failure in alternatives since it is now
13364 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13365 emacs' for (re)allocating the stack.
13366 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13367 from loop when bufp->can_be_null rather than jumping to `done'.
13368 Avoid jumping backwards so as to ensure termination. Use
13369 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13370 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 13371 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
13372 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13373 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
13374 (lowest_active_reg, highest_active_reg)
13375 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
13376 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13377 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13378 variables. Push register (in `start_memory') on the stack rather
13379 than storing it in old_reg(start|end). Remove the cycle detection
13380 from `stop_memory', replaced by the use of on_failure_jump_loop
13381 for greedy loops. Add code for the new on_failure_jump_<foo>.
13382 Remove ad-hoc code in `on_failure_jump' to push more registers in
13383 the case of a loop. Take out code from `maybe_pop_jump' into
13384 separate functions and adapt it to the semantics of
13385 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13386 and push_dummy_failure. Remove dummy_failure handling and
13387 handling of `failures to jump to on_failure_jump' (this last one
13388 was already dead code, it seems).
13389 (group_match_null_string_p, alt_match_null_string_p)
13390 (common_op_match_null_string_p): Remove.
95cd4c40 13391
7397acc4
DL
133922000-03-08 Dave Love <fx@gnu.org>
13393
13394 * config.in: Don't depend on __STDC__ for volatile.
13395 Add POINTER_TYPE, PTR, PROTOTYPES.
13396
13397 * hftctl.c, strftime.c: Use PROTOTYPES.
13398 * eval.c (find_handler_clause): Likewise.
13399
13400 * mem-limits.h: Use POINTER_TYPE.
13401
13402 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13403 (memory_warnings): Declare using POINTER_TYPE.
13404
5e91ff9e
GM
134052000-03-08 Gerd Moellmann <gerd@gnu.org>
13406
feab4fba
GM
13407 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13408
52283633 13409 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 13410
5e91ff9e
GM
13411 * xfns.c: Remove obsolete code in #if 0.
13412 (Fx_focus_frame): New function.
13413
a735b7e1
KH
134142000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13415
13416 * coding.c (coding_category_name): Add coding-category-utf-8,
13417 coding-category-utf-16-be, coding-category-utf-16-le.
13418 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13419 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13420 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13421 (detect_coding_utf_8): New function.
13422 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13423 UTF_16_LOW_SURROGATE_P): New macros.
13424 (detect_coding_utf_16): New function
13425 (detect_coding_mask): When priorities are specified, skip any
13426 categories that have `nil' coding-system. Fix bug of returning
13427 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13428 returns a mask not set in PRIORITIES.
13429 (detect_eol_type_in_2_octet_form): New function.
13430 (detect_eol): selects detect_eol_type_XXX to call according to
13431 cooding->category_idx.
13432 (detect_coding_system): Remove `nil' coding-system in the result.
13433 (Fupdate_coding_systems_internal): Update all coding-categories.
13434
52283633
SM
13435 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13436 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13437 New macros.
13438 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13439 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13440 (CODING_CATEGORY_IDX_UTF_16_LE)
13441 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13442 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
13443 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13444 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13445
9994cc69
GM
134462000-03-07 Gerd Moellmann <gerd@gnu.org>
13447
e9b4e5ff
GM
13448 * doc.c (Fdocumentation_property): If value is not a string,
13449 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13450
f7daf1e1
GM
13451 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13452 close the display with XtCloseDisplay. This caused a bus error
13453 on OpenWindows.
13454
9994cc69
GM
13455 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13456 complete but not unique.
13457
4336c705
GM
134582000-03-06 Gerd Moellmann <gerd@gnu.org>
13459
18bb0684
GM
13460 * process.c (send_process): Remove local variable `procname' that
13461 might become invalid when a GC happens. Instead, access the
13462 process name slot directly.
13463
4336c705
GM
13464 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13465 orig_height if set.
13466
13467 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13468 orig_height if set.
13469
515d0d0e
EZ
134702000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13471
13472 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13473 glyph matrices have been freed.
13474
100b3cbb
GM
134752000-03-05 Gerd Moellmann <gerd@gnu.org>
13476
50df5e5a 13477 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 13478 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
13479
13480 * xfns.c (QCdata): Moved to xdisp.c.
13481
13482 * xdisp.c (QCdata): Moved here from xfns.c.
13483 (syms_of_xdisp): Initialize QCdata.
13484
13485 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13486
13487 * window.c (coordinates_in_window): Use
13488 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13489 FRAME_INTERNAL_BORDER_WIDTH.
13490
100b3cbb 13491 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 13492 it is obviously invalid.
100b3cbb
GM
13493
13494 * xterm.c (x_term_init): Create a colormap if not using the
13495 default visual.
13496
13497 * xterm.h (select_visual): Change prototype.
13498
13499 * xfns.c (select_visual): Rewritten. Recognize user-specified
13500 visual classes.
13501 (visual_classes): New variable.
13502
64d739c4
GM
135032000-03-04 Gerd Moellmann <gerd@gnu.org>
13504
13505 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13506 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13507 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 13508 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
13509 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13510 XtNcolormap resources.
13511 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13512 (Fx_create_frame): Initialize color members of x_output structure.
13513 (xpm_load): Pass colormap to XPM lib.
13514
13515 * xfaces.c (x_free_colors): Access colormap of frame using
13516 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13517 when default colormap is used.
13518
13519 * xterm.c (x_term_init): Set Colormap member of x_display_info
13520 structure. Copy colormap if resource `privateColormap' is
13521 specified (PseudoColor only).
13522 (x_setup_relief_color): Access colormap of frame using
13523 FRAME_X_COLORMAP.
13524
13525 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13526 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13527
c3cee013
JR
135282000-03-04 Jason Rumney <jasonr@gnu.org>
13529
13530 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13531 other non-platform-specific equivalents.
64d739c4 13532 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
13533 specific functions and macros as their w32 equivalents where
13534 non-platform-specifics are not available.
13535 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13536 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13537 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13538 (frame_update_line_height): Use macros to access f->output_data.
13539 (defined_color): Remove FIXME comments; fixed.
13540 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13541 into #ifdef blocks. Add WINDOWSNT blocks.
13542 (Fx_list_fonts): Use macros for accessing font data.
13543 (set_lface_from_font_name): Different default fonts for X and
13544 WINDOWSNT.
13545 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13546 scalable for backward compatibility.
64d739c4 13547 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
13548 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13549
64d739c4 13550 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
13551 syms_of_w32faces.
13552
13553 * makefile.nt (w32faces.obj): Remove.
13554 (xfaces.obj): Add.
13555
807cc41c
JR
135562000-03-03 Jason Rumney <jasonr@gnu.org>
13557
13558 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13559 correct parameters.
13560
0007072a
KR
135612000-03-03 Ken Raeburn <raeburn@gnu.org>
13562
13563 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13564 standard ELF definitions here if the system header does not.
13565
71a6ba55
GM
135662000-03-03 Gerd Moellmann <gerd@gnu.org>
13567
13568 * xterm.c (PER_CHAR_METRIC): Removed.
13569 (x_per_char_metric_1, x_default_char): New functions.
13570 (x_per_char_metric): If font's default char is invalid, return
13571 metrics of a suitably chosen usable default char.
13572 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
13573 char, replace occurrences of unprintable chars with a suitably
13574 chosen usable default char.
71a6ba55 13575
900fa1f1
GM
135762000-03-02 Gerd Moellmann <gerd@gnu.org>
13577
42f55fe0
GM
13578 * xterm.c (note_mouse_highlight): Return quickly if frame's
13579 glyph matrices have been freed.
13580
13581 * dispnew.c (free_glyphs): Block input while freeing matrices.
13582
900fa1f1
GM
13583 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13584
52283633
SM
13585 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13586 Use x_free_colors.
900fa1f1
GM
13587
13588 * dispextern.h (x_free_colors): Add prototype.
13589
13590 * xfaces.c (x_free_colors): New function.
13591 (unload_color, free_face_colors): Use it.
13592
2f950292
EZ
135932000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13594
13595 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13596
13597 * window.c [MSDOS]: Include msdos.h.
13598
54d04320
DL
135992000-03-02 Dave Love <fx@gnu.org>
13600
13601 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13602
13603 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13604 set C_OPTIMIZE_SWITCH for gcc.
13605
0ba93ac4
KH
136062000-03-02 Kenichi Handa <handa@etl.go.jp>
13607
13608 * coding.c (coding_save_composition): Be sure to allocate
13609 composition data area in coding even if there's no composition in
13610 the current run.
13611
a2bc11d4
JR
136122000-03-01 Jason Rumney <jasonr@gnu.org>
13613
13614 * w32term.c: Equivalent changes to those made to xterm.c on
13615 2000-02-25 and 2000-02-24.
13616
13617 * w32fns.c: Equivalent changes to those made to xfns.c on
13618 2000-02-25 and 2000-02-21.
13619
13620 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13621 correct line-end convention is followed.
13622
13623 * w32menu.c [HAVE_BOXES]: Remove #undef.
13624 (single_keymap_panes): Remove code for simulating checkmarks.
13625 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13626 Remove code for drawing simulated checkmarks.
13627 (w32_menu_show): make unibyte help string correctly.
13628 (add_menu_item): draw standard Windows checkmarks. Draw radio
13629 buttons as radio buttons if possible.
13630
72d19d75
GM
136312000-03-01 Gerd Moellmann <gerd@gnu.org>
13632
2df636f4
GM
13633 * sysdep.c (start_of_text): Don't define this function for NetBSD
13634 with ELF.
13635
427ec082 13636 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
13637 Don't define.
13638 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13639 (LINKER): Don't undef if __NetBSD__ is defined.
13640
13641 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13642
13643 * fileio.c [__NetBSD__]: Define `unix'.
13644
72d19d75
GM
13645 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13646
ed4d0512
GM
136472000-02-29 Gerd Moellmann <gerd@gnu.org>
13648
50b1039f
GM
13649 * atimer.c (start_atimer): Don't abort when timers are stopped.
13650 (append_atimer_lists): New function.
13651 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13652 arbitrary lists of stopped and running atimers.
13653
ed4d0512
GM
13654 * atimer.c (cancel_atimer): Handle canceling an atimer when
13655 some timers are stopped.
13656
13657 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13658 after canceling it.
13659
13660 * fns.c (maybe_resize_hash_table): Handle case of new size
13661 coming out as being the same as old size.
13662
387023ee
JR
136632000-02-27 Jason Rumney <jasonr@gnu.org>
13664
13665 * makefile.nt: Add atimer.h to dependencies.
13666 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13667 * w32console.c: Only disable window system features for dispextern.h
13668 (initialize_w32_display): Build a display info for the console.
13669 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13670 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13671 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13672 as 2 button mice.
13673 * w32gui.h (struct W32FontStruct): Revert last change after change
13674 to xdisp.c.
13675 * w32menu.c (single_submenu): Set up help string.
13676 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13677 (w32_dialog_show): Set up help string.
13678 * w32term.c (w32_display_info_for_display): Remove unused function.
13679 (w32_draw_bitmap): Use pre-built bitmaps.
13680 (w32_initialize_display_info): New function to initialize parts of
13681 display info that are common to both GUI and console frames.
13682 (w32_term_init): Use w32_initialize_display_info. Do not set
13683 Vw32_num_mouse_buttons here, as it is not called for console
13684 frames. Build bitmaps for indicating truncated lines etc.
13685 (x_delete_display): Destroy pre-built bitmaps.
13686 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13687 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13688
4516715a
DL
136892000-02-27 Dave Love <fx@gnu.org>
13690
13691 * lisp.h: Add a bunch of prototypes.
13692
171ca836
KH
136932000-02-26 Kenichi Handa <handa@etl.go.jp>
13694
13695 * keyboard.c (read_char): Set `usec' correctly.
13696
4013921d
KH
136972000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13698
13699 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13700 `lambda', set reg[RRR] to the map index.
13701 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13702 reg[RRR] to 0. Otherwise, set it to -1.
13703
9244a058
GM
137042000-02-25 Gerd Moellmann <gerd@gnu.org>
13705
2df636f4 13706 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 13707
18e21ce8 137082000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 13709
f43d79c1
GM
13710 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13711 and contains a `:', prepend `/:'.
13712
13713 * window.c (select_window_1): If selected_window is nil,
13714 don't "swap out" the buffer's point.
13715 (Fset_window_configuration): Set selected_window to nil
13716 before calling Fselect_window.
13717 (unshow_buffer): Don't set point in buffer from window's point
13718 if another more recently selected window also shows the buffer.
13719
bed0c171
GM
137202000-02-25 Gerd Moellmann <gerd@gnu.org>
13721
449c3c52
GM
13722 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13723
f5b58615
GM
13724 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13725 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
13726 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13727 New variables.
f5b58615
GM
13728 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13729 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13730 (hide_busy_cursor): New functions.
13731 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13732
13733 * minibuf.c (read_minibuf): Cancel busy-cursor.
13734
13735 * keyboard.c (command_loop_1): Call start_busy_cursor before
13736 Fcommand_execute and cancel_busy_cursor after it.
13737 (timer_check): Remove busy-cursor code.
13738 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13739 cursor timer.
13740
13741 * process.c (wait_reading_process_input): Remove busy-cursor code.
13742
13743 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13744 Fx_hide_busy_cursor.
13745
13746 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13747 Remove prototyoes.
13748 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13749
13750 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13751
13752 * xterm.c (XTread_socket): Remove busy-cursor code.
13753
4eb8436f
GM
13754 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13755 (build_frame_matrix_from_leaf_window): Put code handling
13756 glyph row's not being a slice of a frame row in #if 0.
13757 (sync_window_with_frame_matrix_rows): New function.
13758 (frame_row_to_window): New function.
13759 (mirror_line_dance): Handle copies between windows.
13760
3cb65b0e
GM
13761 * lread.c (Fload): Use `xfree' instead of `free'.
13762 (init_obarray): Use `xmalloc' instead of `malloc'.
13763
bed0c171
GM
13764 * window.c (Fset_window_buffer): Set WINDOW to the window
13765 after decoding.
2add4349
GM
13766 (coordinates_in_window): Take frame's internal border width
13767 into account.
bed0c171 13768
42088c12
GM
137692000-02-24 Gerd Moellmann <gerd@gnu.org>
13770
13771 * xterm.c (x_display_and_set_cursor): Display cursor of
13772 non-selected windows depending on the setting of
13773 cursor_in_non_selected_windows.
13774
13775 * xdisp.c (cursor_in_non_selected_windows): New variable.
13776 (syms_of_xdisp): DEFVAR_BOOL it.
13777
d1e103b2
GM
137782000-02-23 Gerd Moellmann <gerd@gnu.org>
13779
723e779c
GM
13780 * data.c (Fstring_to_number): If number is greater than what
13781 fits into an integer, return a float.
13782
d1e103b2
GM
13783 * eval.c (specbind): Remove references to
13784 keyword_symbols_constant_flag.
13785
13786 * data.c (keyword_symbols_constant_flag): Removed.
13787 (Fmakunbound, set_internal, syms_of_data): Remove references to
13788 keyword_symbols_constant_flag.
13789
13790 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13791
214f877f
KH
137922000-02-23 Kenichi Handa <handa@etl.go.jp>
13793
13794 * syntax.c (multibyte_syntax_as_symbol): New variable.
13795 (syms_of_syntax): Declare it as a Lisp variable.
13796 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13797 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13798 nonzero, treat all multibyte characters as symbol.
52283633 13799 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 13800
130adcb7
EZ
138012000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13802
3cb65b0e 13803 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 13804 a deleted frame.
130adcb7 13805
17cbbf95
GM
138062000-02-21 Gerd Moellmann <gerd@gnu.org>
13807
13808 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13809
13810 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13811 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13812
beb0bc36
DL
138132000-02-21 Dave Love <fx@gnu.org>
13814
13815 * frame.c (Vmouse_position_function): New variable.
13816 (Fmouse_position): Use it.
13817 (syms_of_frame): Install it.
13818
13819 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13820
1d92afcd
GM
138212000-02-20 Gerd Moellmann <gerd@gnu.org>
13822
13823 * fileio.c (Finsert_file_contents): Unbind the binding of
13824 standard-output done by temp_output_buffer_setup.
329eed9f
GM
13825
13826 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13827 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13828 (specbind, unbind_to): Handle most common case of non-constant
13829 symbol with trivial value specially.
13830
13831 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13832
18e21ce8 138332000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
13834
13835 * data.c (Fmake_variable_buffer_local): Doc fix.
13836 Init found_for_buffer to 0.
13837 (Fmake_variable_frame_local): If the variable has already
13838 been buffer-local, set the check_frame field.
13839
1d4311c3
EZ
138402000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13841
13842 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13843 produced for CODING_MODE_LAST_BLOCK requires.
13844
2dc95ddd
DL
138452000-02-18 Dave Love <fx@gnu.org>
13846
13847 * keyboard.c (echo_keystrokes): Remove declaration.
13848 (Vecho_keystrokes) New variable.
13849 (read_char, record_menu_key, read_key_sequence): Use it to allow
13850 use of float value.
13851 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13852
13853 * lread.c: Undef feature selection macros before defining.
13854
f0930f35
GM
138552000-02-18 Gerd Moellmann <gerd@gnu.org>
13856
13857 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13858 for symbols other than the symbol in question.
13859
e3d4de90
DL
138602000-02-17 Dave Love <fx@gnu.org>
13861
13862 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13863
0b378936
GM
138642000-02-17 Gerd Moellmann <gerd@gnu.org>
13865
d621caf7
GM
13866 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13867
0b378936
GM
13868 * alloc.c (enum mem_type): Compile unconditionally.
13869
3b451f74
EZ
138702000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13871
13872 * xfaces.c (tty_defined_color): Don't return faulire indication
13873 for unspecified-fg and unspecified-bg pseudo-colors.
13874
10689a01
GM
138752000-02-17 Gerd Moellmann <gerd@gnu.org>
13876
1216f5e4
GM
13877 * alloc.c (mark_object): Don't mark symbol names in pure space.
13878 (gc_sweep): Don't unmark symbol names in pure space.
13879
13880 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13881 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13882 [GC_MARK_STACK]: New defines.
427ec082 13883 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
13884 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13885
13886 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13887
13888 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13889 allocate_buffer instead of xmalloc.
13890
13891 * alloc.c (toplevel): Include setjmp.h.
13892 (PURE_POINTER_P): New define.
13893 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13894 (Vdead) [GC_MARK_STACK]: New variable.
13895 (lisp_malloc): Add parameter TYPE, call mem_insert if
13896 GC_MARK_STACK is defined.
13897 (allocate_buffer): New function.
427ec082 13898 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
13899 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13900 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13901 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13902 (MEM_NIL) [GC_MARK_STACK]: New define.
13903 (struct mem_node) [GC_MARK_STACK]: New structure.
13904 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13905 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13906 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13907 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13908 (mark_stack) [GC_MARK_STACK]: New functions.
13909 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13910 (clear_marks): Removed.
13911 (gc_sweep): Set free conses' car, free floats' type, free
13912 symbols' function to Vdead. Use lisp_free to free buffers.
13913 (init_alloc_once): Initialize Vdead.
13914 (survives_gc_p): Return non-zero for pure objects.
13915
13916 * alloc.c: Add comments throughout the file.
13917
2503c8b1
GM
13918 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13919 that unblocks alarms.
13920
8389e1e2
GM
13921 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13922 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13923 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13924
10689a01 13925 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 13926
bfc17d18
KH
139272000-02-17 Kenichi Handa <handa@etl.go.jp>
13928
4a09dee0
KH
13929 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13930 avoid infinite error signaling. Allocate sufficient memory for
13931 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 13932
2b927d02
SM
139332000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13934
13935 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13936 depends on the previous behavior.
13937
b49cb764
GM
139382000-02-16 Gerd Moellmann <gerd@gnu.org>
13939
13940 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13941
99e95407
GM
139422000-02-15 Gerd Moellmann <gerd@gnu.org>
13943
13944 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13945
13946 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 13947 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
13948 write(2).
13949
6ffd3cf7
RS
139502000-02-15 Richard M. Stallman <rms@gnu.org>
13951
13952 * data.c (set_internal): Don't make variable buffer-local
13953 if within a let-binding for the same buffer.
13954 (let_shadows_buffer_binding_p): New function.
13955
13956 * eval.c (specbind): For buffer-local value,
13957 record the current buffer also.
13958 (unbind_to): Cope with that change.
13959
cad53475
GM
139602000-02-15 Gerd Moellmann <gerd@gnu.org>
13961
13962 * window.c (Fsave_window_excursion): Doc fix.
13963
1aa963c8
SM
139642000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13965
13966 * syntax.c (back_comment): Make sure we only consider comment-starters
13967 of the relevant style and return -1 in case of a failure to find the
13968 beginning of the comment.
13969 (Fforward_comment): If back_comment fails, go back to the position just
13970 after the comment-end.
13971 (scan_lists): Add comment describing a very minor bug.
13972
b9b84fd3
SM
139732000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13974
13975 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13976 `completion-regexp-list' in the docstring.
13977
3a28db80
DL
139782000-02-14 Dave Love <fx@gnu.org>
13979
13980 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13981
fb4a568d
SM
139822000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13983
13984 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13985 to Emacs' syntax. Also fix the comment about set/not-set meanings
13986 since Emacs syntax is not the value 0 any more.
13987 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13988 since it's now part of RE_SYNTAX_EMACS.
13989
1063ebb5
DL
139902000-02-12 Dave Love <fx@gnu.org>
13991
52283633 13992 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 13993
fb07a302
GM
139942000-02-12 Gerd Moellmann <gerd@gnu.org>
13995
13996 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13997
aaf2320c
DL
139982000-02-12 Dave Love <fx@gnu.org>
13999
14000 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14001
14002 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
14003 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14004 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
14005
14006 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14007
14008 * s/nextstep.h: Don't define HAVE_ALLOCA.
14009
14010 * config.in: Add vfork bits.
14011
eedf8bde
GM
140122000-02-12 Gerd Moellmann <gerd@gnu.org>
14013
14014 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14015 unwind function to undo the effect of stopping atimers.
14016
52283633 14017 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
14018
14019 * atimer.c (stopped_atimers): New variable.
14020 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14021 New functions.
14022
14023 * atimer.h (stop_other_atimers, run_all_atimers)
14024 (unwind_stop_other_atimers): Add function prototypes.
427ec082 14025
eedf8bde
GM
14026 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14027
8476c2f8
KR
140282000-02-11 Ken Raeburn <raeburn@gnu.org>
14029
14030 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14031 library may depend on jpeg.
14032 (atimer.o): Depends on atimer.c.
14033
0e85e4a3
KH
140342000-02-11 Kenichi Handa <handa@etl.go.jp>
14035
14036 * insdel.c (del_range_1): Call update_compositions.
14037 (del_range_both): Call update_compositions just once..
14038
97fa0cc8
DL
140392000-02-10 Dave Love <fx@gnu.org>
14040
14041 * xfns.c (create_frame_xic): Fix initialization of automatic
14042 aggregates for pcc.
14043
25566a3c
KH
140442000-02-09 Kenichi Handa <handa@etl.go.jp>
14045
14046 * ccl.c (CCL_MAKE_CHAR): New macro.
14047 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14048 registers by CCL_MAKE_CHAR before calling translate_char.
14049 <CCL_TranslateCharacterConstTbl> Likewise.
14050
69da54ba
DL
140512000-02-08 Dave Love <fx@gnu.org>
14052
14053 * lread.c (__EXTENSIONS__): Define.
14054
f7136ee8
GM
140552000-02-08 Gerd Moellmann <gerd@gnu.org>
14056
14057 * puresize.h (BASE_PURESIZE): Increase to 650000.
14058
7768790b
EZ
140592000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14060
14061 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14062 the help message.
14063
38fd211b
EZ
140642000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14065
14066 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14067 md, mh, mb, mr, and me to the fake termcap entry.
14068
66e4690f
KR
140692000-02-06 Ken Raeburn <raeburn@gnu.org>
14070
14071 * sound.c (sound_cleanup): Don't call device close routine if the
14072 function pointer is null.
14073
a75dfea0
AI
140742000-02-06 Andrew Innes <andrewi@gnu.org>
14075
14076 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14077 around image definitions and prototypes.
14078 (gamma_correct) [WINDOWSNT]: New prototype.
14079
14080 * w32term.c (x_make_frame_visible): Replace call to
14081 input_poll_signal with poll_for_input.
14082
14083 * window.c [WINDOWSNT]: Include w32term.h.
14084
14085 * xdisp.c [WINDOWSNT]: Include w32term.h.
14086
14087 * makefile.nt: Add dependencies on w32gui.h.
14088 (OBJ1): Include atimer.obj.
14089 ($(BLD)\atimer.obj): New dependency rule.
14090
14091 * w32.c (sigmask): New function (does nothing).
14092 (sigunblock): Ditto.
14093
14094 * frame.c [WINDOWSNT]: Include w32term.h.
14095
14096 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14097
14098 * lread.c (syms_of_lread): Fix literal newlines.
14099
14100 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14101 the string constant limit (2048 bytes) in MSVC.
14102 (main): Ditto.
14103
59ddecde
GM
141042000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14105
52283633 14106 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
14107 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14108 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14109 dispatch the event.
14110
07590973
DL
141112000-02-04 Dave Love <fx@gnu.org>
14112
14113 * fileio.c: Remove some unused vars.
14114 (_GNU_SOURCE): Define (for euidaccess).
14115
14116 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14117
14118 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14119 gcpro1, gcpro2.
14120 (read_minibuf): Deal with allow_props correctly.
14121
649351f9
EZ
141222000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14123
14124 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14125
66e4690f 141262000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
14127
14128 * search.c (compile_pattern): If a cache entry has a nil regexp,
14129 fill in that entry instead of clobbering a previously cached
14130 string regexp.
14131
66e4690f 141322000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
14133
14134 * puresize.h (BASE_PURESIZE): Increase to 610000.
14135
d240a249
GM
141362000-02-02 Gerd Moellmann <gerd@gnu.org>
14137
14138 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14139 can GC.
14140
ca91fb26
KH
141412000-02-02 Kenichi Handa <handa@etl.go.jp>
14142
25660570
KH
14143 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14144 instead of incrementing ic directly.
14145 <CCL_WriteExprConst> Likewise.
14146 <ccl_set_expr>: Set ic to jump_address.
14147
ca91fb26
KH
14148 * fileio.c (e_write): Fix the handling of
14149 CODING_FINISH_INSUFFICIENT_SRC.
14150
2ede9689
DL
141512000-02-01 Dave Love <fx@gnu.org>
14152
14153 * editfns.c (Fpropertize): Doc fix.
14154
14155 * process.c (Fstart_process): Doc fix.
14156
14157 * eval.c: Fix various doc strings not to duplicate information
14158 from help-manyarg-func-alist.
14159
52283633 14160 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
14161
14162 * doc.c (Vhelp_manyarg_func_alist): New variable.
14163 (Fdocumentation): Use it.
14164 (syms_of_doc): Define it.
14165
b6680a0e
GM
141662000-01-31 Gerd Moellmann <gerd@gnu.org>
14167
2cb750ba
GM
14168 * xterm.c (xim_open_dpy): Remove unused local variable.
14169
52283633 14170 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
14171
14172 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14173 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14174
b6680a0e
GM
14175 * fns.c (sweep_weak_table): New function.
14176 (sweep_weak_hash_tables): Use it. Keep on marking until there
14177 is no more change.
14178
994c5afe
GM
141792000-01-30 Gerd Moellmann <gerd@gnu.org>
14180
14181 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14182 that XTread_socket does not crash by trying to call XNoOp on a
14183 closed display.
427ec082 14184
f00276e3
JR
141852000-01-30 Jason Rumney <jasonr@gnu.org>
14186
14187 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14188 Change selected_frame to SELECTED_FRAME ().
14189 (w32_console_mouse_position): Remove #ifndef MULE from around
14190 `insist' parameter.
14191
14192 * makefile.nt: Remove dosfns.obj.
14193
14194 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14195
14196 * w32fns.c (w32_defined_color): Check for valid frame before
14197 applying gamma correction. Eliminate dependency on frame elsewhere.
14198 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14199 (w32_to_x_font): Use resx and resy not height_in and width_in.
14200 (x_to_w32_font): Doc fix.
14201 (xlfd_strip_height): New function to strip and return font height.
14202 (w32_font_match): Compare height separately from rest of xlfd
14203 spec, using xlfd_strip_height.
14204
14205 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14206 width_in. Use w32_defined_color in place of defined_color.
14207
14208 * w32faces.c: Merge more of DOS and X specifics in preparation for
14209 merge with xfaces.c.
14210 (defined_color): Remove FIXME comment.
14211 (tty_color_name): Provide w32-specific function.
14212 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14213
14214 * w32console.c (turn_on_face, turn_off_face): Removed.
14215 (w32_face_attributes): New function.
14216 (Global_variables): Reduce scope where possible.
14217 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14218 fill attribute.
14219 (hl_mode): Don't modify text attributes.
14220 (write_glyphs): Don't do anything if len <= 0. Use
14221 w32_face_attributes to get attributes for drawing. Write
14222 terminating codes using char_attr_normal.
14223 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14224 (update_begin, update_end): Likewise.
14225 (vga_stdcolor_name): New function.
14226 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14227 (Fset_screen_color): Remove char_attr_reverse.
14228
b08e8bb2
GM
142292000-01-29 Gerd Moellmann <gerd@gnu.org>
14230
14231 * xfns.c (xic_set_preeditarea): Take window parameter and
14232 window-relative pixel-positions.
14233
14234 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14235 is its frame's selected window.
14236 (xim_instantiate_callback): Likewise.
14237
14238 * xfns.c (x_create_im): Removed.
14239 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14240 (supported_xim_styles): Renamed from supported_styles.
14241 (best_xim_style): Renamed from best_style.
14242 (create_frame_xic): Renamed from xic_create_frame.
14243 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 14244
b08e8bb2
GM
142452000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14246
14247 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14248 our frames, call XFilterEvent with 2nd parameter `None'.
14249 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14250 returning XBufferOverflow.
52283633 14251 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
14252 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14253 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14254 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14255 (xim_initialize, xim_close)
14256 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14257 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14258 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14259 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14260
14261 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14262 and `xim_styles'.
14263 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14264 `xic_style' and `xic_xfs'.
14265 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14266 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14267 (FRAME_XIM): Removed.
14268
14269 * xfns.c (supported_styles): New variable.
14270 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14271 (xic_create_xfontset, best_style, xic_create_frame)
14272 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14273 (xic_set_xfontset): New functions.
14274
142e109c
DL
142752000-01-28 Dave Love <fx@gnu.org>
14276
14277 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14278
14279 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14280
b02786f9
GM
142812000-01-28 Gerd Moellmann <gerd@gnu.org>
14282
d060bc9f
GM
14283 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14284 for *scratch* if it already existed.
14285
b02786f9
GM
14286 * emacs.c (USAGE): New macro.
14287 (main): Use it to display usage information.
14288
2c52d7e4
EZ
142892000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14290
14291 Support for the menu-help feature:
14292
52283633 14293 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
14294
14295 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14296 part of the line to the termscript file.
14297 (IT_clear_to_end): Clear the entire line, not just its beginning.
14298 (menu_help_message, prev_menu_help_message): New variables.
14299 (IT_menu_make_room): Make room for the help_text member.
14300 (IT_menu_display): New argument disp_help; all callers changed.
14301 If disp_help is non-zero, store the help text of the active menu
14302 item in menu_help_message.
14303 (XMenuAddPane): Initialize the help_text member to NULL.
14304 (XMenuAddSelection): New argument help_text. Store it in the
14305 XMenu structure.
14306 (XMenuActivate): New argument help_callback. If the value of
14307 menu_help_message has changed since the last time, display the
14308 menu help message text while waiting for the mouse to move. Clear
14309 the echo area before exiting.
14310 (XMenuDestroy): Free the help_text member.
14311
ffe0bcd1
GM
143122000-01-27 Gerd Moellmann <gerd@gnu.org>
14313
14314 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14315 XMenuAddSelection. Pass help callback to XMenuActivate.
14316 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14317
50dbd23f
EZ
143182000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14319
14320 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14321 and EMACS_SET_USECS.
14322
f5941bf8
GM
143232000-01-26 Dave Love <fx@gnu.org>
14324
6c67ddee
DL
14325 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14326
f5941bf8
GM
14327 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14328 an error may be signalled.
14329
9e49c990
GM
143302000-01-26 Gerd Moellmann <gerd@gnu.org>
14331
fc3cb460
GM
14332 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14333 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14334
9e49c990
GM
14335 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14336
d0c037d8
GM
143372000-01-25 Gerd Moellmann <gerd@gnu.org>
14338
14339 * charset.c (Fstring): If there is a multibyte char among
14340 the args, always return a multibyte string.
14341
e12489f9
GM
143422000-01-25 Gerd Moellmann <gerd@gnu.org>
14343
14344 * sysdep.c (sys_select): Turn atimers off and on instead of
14345 recording and restoring old alarm handler
14346
14347 * process.c (toplevel): Include atimer.h.
14348 (create_process_1): Rewritten.
14349 (create_process): Use atimers instead of alarm.
14350 (wait_reading_process_input) [hpux]: Turn atimers off instead
14351 of turning off SIGALRM.
14352 (wait_reading_process_input): Turn off atimers instead off
14353 calling stop_polling.
14354
14355 * emacs.c (main): Call init_atimer.
14356
14357 * keyboard.c (toplevel): Include systime.h and atimer.h.
14358 (polling_for_input): Removed because unused.
14359 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14360 (poll_timer): New variable.
14361 (poll_for_input, poll_for_input_1): New functions.
14362 (start_polling, stop_polling): Rewritten.
14363
14364 * keyboard.h (polling_for_input): Removed.
427ec082 14365
e12489f9
GM
14366 * atimer.h, atimer.c: New files.
14367
14368 * Makefile.in (obj): Add atimer.o.
14369 (atimer.o): New target.
14370
14371 * blockinput.h (pending_atimers): Add extern declaration.
14372 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14373
14374 * lisp.h (popup_activated_flag): Add extern declaration.
14375
14376 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 14377 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
14378 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14379
14380 * xterm.c (toplevel): Include atimer.h.
14381 (toolkit_scroll_bar_interaction): New variable.
14382 (Fxt_process_timeouts): Removed.
14383 (x_process_timeouts): New function.
14384 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14385 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14386 (x_make_frame_visible): Call poll_for_input_1 instead of
14387 input_poll_signal. Don't call alarm.
14388 (x_initialize): Install timer calling x_process_timeouts.
427ec082 14389
1e5279b9
DL
143902000-01-24 Dave Love <fx@gnu.org>
14391
6c67ddee 14392 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
14393 Don't use -cckr -- apparently not now necessary.
14394
edf6aeb8
EZ
143952000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14396
14397 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14398 screen boundary.
14399
9badad41
JR
144002000-01-23 Jason Rumney <jasonr@gnu.org>
14401
14402 * w32fns.c (w32_defined_color): Apply gamma correction before
14403 trying to map to the palette.
14404 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14405 to w32_clear_rect.
14406
14407 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14408 here. Callers changed to always pass real device context.
14409 (w32_draw_bitmap): Likewise.
14410 (w32_get_glyph_overhangs): Likewise.
52283633 14411 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
14412 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14413 pfnSetScrollInfo and SetScrollRange.
14414 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14415 back into MULE characters after decoding them.
14416 (x_get_glyph_face_and_encoding): Likewise.
14417 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14418 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14419 (x_produce_glyphs): Calculate per char metrics for a character
14420 that we know exists in default font when font_not_found_p is true.
14421
63bd786b
JR
144222000-01-22 Jason Rumney <jasonr@gnu.org>
14423
14424 * makefile.nt (intervals.obj, composite.obj): New modules.
14425 (composite.h): Added as dependency where appropriate.
14426
14427 * w32gui.h (XGCValue): New struct for emulating X GCs.
14428
14429 * w32term.h (XCharStruct): New struct for emulating X.
14430
14431 * w32console.c (turn_on_face, turn_off_face): New functions.
14432 (change_line_highlight): New prototype for new redisplay.
14433 (write_glyphs): Support multibyte text. Support faces.
14434
52283633 14435 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
14436
14437 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14438 throughout. struct frame * in place of FRAME_PTR.
14439 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 14440 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
14441 (w32_get_arg): Renamed from x_get_arg.
14442 (Fx_file_dialog): New function.
14443 (w32_list_fonts): Check cache before asking system.
14444 (Vw32_enable_synthesized_fonts): New variable.
14445 (Vw32_enable_italics): Obsolete, removed.
14446
14447 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14448 Use SELECTED_FRAME macro.
14449
14450 * w32menu.c: Add skeleton support for help strings on menus.
14451 (add_menu_item): Native checkbox and radio support added, but not
14452 yet enabled due to bugs.
14453 (push_menu_item): Add parameters type, selection and help.
14454 Callers updated.
14455 Formatting changes to reduce unnecessary diffs with xmenu.c.
14456
14457 * w32select.c (Fw32_set_clipboard_data): Update call to
14458 find_charset_in_str.
14459
14460 * w32term.c: Complete rewrite for new redisplay based on new
14461 xterm.c with necessary sections merged back in from old w32term.c.
14462
6ffd3cf7 144632000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
14464
14465 * data.c (set_internal): Further fix in same criterion.
14466
6ffd3cf7 144672000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
14468
14469 * data.c (set_internal): Fix the criteria for whether
14470 to swap out the old cached binding.
14471
60af03f1
DL
144722000-01-19 Dave Love <fx@gnu.org>
14473
14474 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14475
f9be074f
KH
144762000-01-18 Kenichi Handa <handa@etl.go.jp>
14477
14478 * regex.c (re_compile_fastmap): While checking a range table for
14479 `charset', skip flag bits for a character class correctly.
14480
52b8dbf9
GM
144812000-01-17 Gerd Moellmann <gerd@gnu.org>
14482
d36100c9
GM
14483 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14484
52283633 14485 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
14486
14487 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 14488 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
14489
14490 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14491 MENU_ITEMS_ITEM_.*.
14492 (MENU_ITEMS_ITEM_HELP): New enumerator.
14493 (push_menu_item): Add parameter HELP. Record help in menu_items.
14494 (single_menu_item, single_submenu, list_of_items): Call
14495 push_menu_item with new parameter.
14496 (single_submenu): Set help string in widget value.
14497 (menu_highlight_callback): New function.
14498 (set_frame_menubar): Call lw_create_widget with new
14499 parameter list.
14500 (xmenu_show, xdialog_show): Ditto.
14501
3139018f
GM
145022000-01-13 Gerd Moellmann <gerd@gnu.org>
14503
14504 * sound.c (Fplay_sound): Improve doc string.
14505
83c8f461
RS
145062000-01-11 Richard M. Stallman <rms@gnu.org>
14507
14508 * lisp.h (set_internal): Enter the new arg.
14509
14510 * eval.c (specbind): Record buffer-local variables specially,
14511 indicating which buffer's binding was saved.
14512 (unbind_to): Restore buffer-local variables specially
14513 in the proper buffer.
14514
14515 * data.c (set_internal): New arg BUF.
427ec082 14516
83c8f461
RS
14517 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14518 * data.c (Fset): Pass new arg to set_internal.
14519 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 14520
1fab1775
GM
145212000-01-11 Gerd Moellmann <gerd@gnu.org>
14522
52283633 14523 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 14524
83c8f461 145252000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
14526
14527 * minibuf.c (Ftry_completion): Doc fix.
14528
7a85e4df
GM
145292000-01-11 Gerd Moellmann <gerd@gnu.org>
14530
14531 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14532 vector, too.
14533
a970dae4
AS
145342000-01-11 Andreas Schwab <schwab@suse.de>
14535
14536 * coding.c (code_convert_region): Initialize total_skip.
14537
c65d14ee
DL
145382000-01-08 Dave Love <fx@gnu.org>
14539
14540 * eval.c (Fuser_variable_p): Check customizability too.
14541
834938d2
GM
145422000-01-07 Gerd Moellmann <gerd@gnu.org>
14543
14544 * minibuf.c (Fcompleting_read): Doc fix.
14545
e0303cd6
GM
145462000-01-05 Gerd Moellmann <gerd@gnu.org>
14547
8a26744b
GM
14548 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14549 -L /usr/local/lib.
14550
e0303cd6
GM
14551 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14552 Check that input style is supported before trying to create an
14553 IC for it.
14554 (x_window): Call x_create_im.
427ec082 14555
2e471eb5
GM
145562000-01-04 Gerd Moellmann <gerd@gnu.org>
14557
560a7bd2
GM
14558 * xfns.c (current_gif_memory_src): New variable.
14559 (gif_load): Record the address of the current memory source
14560 in current_gif_memory_src.
14561 (gif_read_from_memory): Use current_gif_memory_src.
14562
f9ee84a3
GM
14563 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14564 macros statement form.
14565
d1299cde
GM
14566 * sound.c (struct sound): Renamed from struct sound_file.
14567 (struct sound): Add members `data' and `header_size'.
14568 (enum sound_attr): Add SOUND_DATA.
14569 (current_sound, current_sound_device): Variables renamed from
14570 sound_file and sound_device.
14571 (parse_sound): Parse :data.
14572 (parse_sound): Handle sound data in strings.
14573 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 14574 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
14575 needed header size.
14576 (wav_play, au_play): Play sounds from string data.
14577
2e471eb5
GM
14578 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14579
14580 * lisp.h: Add prototype for allocate_string_data.
14581
52283633 14582 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
14583
14584 * alloc.c (mark_buffer): Remove code in #if 0.
14585 (gc_sweep): Ditto.
14586 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14587 (strings_consed): New variable.
14588 (allocate_string): Set it.
14589 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14590 (Fmemory_use_counts): Return strings_consed. Use Flist.
14591
14592 * alloc.c: General cleanup in comments etc. Remove conditional
14593 compilation for `standalone'.
14594
14595 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14596
14597 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14598 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14599 (DONT_COPY_FLAG): Removed.
14600 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14601 (struct sdata, struct sblock): New
14602 (struct string_block): Rewritten.
14603 (STRINGS_IN_STRING_BLOCK): New macro.
14604 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14605 (large_sblocks, string_blocks, string_free_list): New variables.
14606 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14607 (init_strings): Rewritten.
14608 (allocate_string, allocate_string_data, compact_small_strings)
14609 (free_large_strings, sweep_strings): New functions.
14610 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14611 (struct string_block_head, current_string_block)
14612 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14613 (STRING_PAD): Removed.
14614 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14615 (Fgarbage_collect): Don't set mark bit in large strings.
14616 (mark_object): Mark strings differently. Mark symbol names
14617 differently.
14618 (survives_gc_p): Test marked strings differently.
427ec082 14619 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
14620 symbol names.
14621 (compact_strings): Removed.
14622
42608ba8
EZ
146232000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14624
14625 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14626 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14627
e0a09e1a
KH
146282000-01-04 Kenichi Handa <handa@etl.go.jp>
14629
dd9f0750 14630 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 14631 in a non-empty buffer.
dd9f0750 14632
3c0f3b15 14633 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 14634
44cd3ae5
GM
146352000-01-03 Gerd Moellmann <gerd@gnu.org>
14636
14637 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14638 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14639
14640 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14641
c182a70f
EZ
146422000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14643
14644 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14645 need to test for MSDOS frames.
14646
24480d5b
EZ
146472000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14648
14649 * dosfns.c (unspecified_colors): Remove.
14650 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14651 unspecified_bg.
14652 (msdos_stdcolor_name): Return strings for unspecified fore- and
14653 back-ground colors.
14654
14655 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 14656 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
14657 (tty_color_name): Return Lisp strings for unspecified fore- and
14658 back-ground colors.
14659 (Finternal_set_lisp_face_attribute): Remove the special treatment
14660 for Qunspecified_{f,b}g.
52283633 14661 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 14662
047f434a
GM
146632000-01-03 Gerd Moellmann <gerd@gnu.org>
14664
14665 * xdisp.c (reseat_at_next_visible_line_start): Position before
14666 newline only if ending up on a newline.
14667 (next_element_from_ellipsis): Return success. Handle case of
52283633 14668 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
14669 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14670 returns 0.
14671
d684c676
EZ
146722000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14673
14674 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14675 (Fcolor_supported_p): Renamed from face-color-supported-p.
14676
5fe1d139
EZ
146772000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14678
14679 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14680 list of colors renamed to tty-defined-color-alist.
14681 (tty_color_name): Pass the frame to tty-color-by-index.
14682 (realize_tty_face): tty-color-alist is now a function which
14683 accepts the frame as argument.
14684
52283633 14685 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 14686
816be8b8
EZ
146872000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14688
14689 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14690 encode_terminal_code.
14691
b635321e
EZ
146922000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14693
14694 * dispnew.c (mode_line_string): Support termcap frames as well.
14695
9b784e96
GM
146962000-01-01 Gerd Moellmann <gerd@gnu.org>
14697
27189709
GM
14698 * syntax.c (Fforward_word): Undo previous change.
14699
14700 * editfns.c (Fconstrain_to_field): Don't constrain if
14701 inhibit-field-text-motion is non-nil.
14702 (Fline_beginning_position): Undo previous change.
14703 (Fline_end_position): Ditto.
14704
14705 * syntax.c (Fforward_word): Notice field boundaries only if
14706 inhibit-field-text-motion is nil.
14707
14708 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14709
14710 * editfns.c (Vinhibit_field_text_motion): New variable.
14711 (inhibit-field-text-motion): New DEFVAR_LISP.
14712 (Fline_beginning_position, Fline_end_position): Notice field
14713 boundaries only if inhibit-field-text-motion is nil.
14714
45158a91
GM
14715 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14716 All calls adjusted.
14717 (x_build_heuristic_mask): Likewise.
14718 (xbm_load_image_from_file): Change error output.
14719 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14720 (gif_load, gs_load, x_kill_gs_process): Ditto.
14721
9b784e96
GM
14722 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14723 color indices when accessing raster pixels.
63cec32f
GM
14724 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14725 one of :file or :data.
14726 (enum pbm_keyword_index): Add PBM_DATA.
14727 (pbm_format): Add :data.
14728 (pbm_image_p): Allow either :file or :data.
14729 (pbm_read_file): New function.
14730 (pbm_scan_number): Rewritten to read from string.
14731 (pbm_load): Support :data.
9b784e96 14732
2cb085db 14733See ChangeLog.8 for earlier changes.
6922b018
KH
14734
14735;; Local Variables:
49b3bd82 14736;; coding: iso-2022-7bit
6922b018 14737;; End:
2a34a036
GM
14738
14739 Copyright (C) 2001 Free Software Foundation, Inc.
14740 Copying and distribution of this file, with or without modification,
14741 are permitted provided the copyright notice and this notice are preserved.