]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2001-11-28 Richard M. Stallman <rms@gnu.org>
2
3 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
4
5 * Makefile.in (lispdir): New variable, referring to build dir.
6 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
7
8 2001-11-28 Andrew Innes <andrewi@gnu.org>
9
10 * w32menu.c (w32_menu_display_help): Actually add the new argument
11 OWNER.
12
13 2001-11-28 Jason Rumney <jasonr@gnu.org>
14
15 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16 menu items. From David Ponce <dponce@wanadoo.fr>.
17 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18 conditionally.
19 (w32_menu_display_help): New argument OWNER. Rewritten to store a
20 help event in the owner frame's keyboard buffer.
21
22 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
23 (Fx_show_tip): Don't subtract last width from row width.
24
25 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
26 (w32_read_socket): Use EQ to compare frames.
27
28 2001-11-28 Gerd Moellmann <gerd@gnu.org>
29
30 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
31 OVERLAPS_P.
32
33 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
34
35 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
36 `gcpro3' and `gcpro4'.
37
38 * coding.c (decode_coding_string): Remove unused variable
39 `gcpro1'.
40
41 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
42
43 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
44 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
45
46 * eval.c: Use AREF and ASIZE.
47 (Ffetch_bytecode): Add the file name to the error message.
48
49 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
50 which match the end of the file-name.
51 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
52 is not a valid env var, but leave it as is instead.
53
54 * keymap.c (access_keymap): Handle t bindings like nil bindings.
55 Make nil bindings in char-tables transparent.
56 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
57
58 2001-11-26 Richard M. Stallman <rms@gnu.org>
59
60 * textprop.c (set_text_properties_1): Allow START, END in either order.
61 Do nothing if range is empty.
62
63 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
64
65 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
66 (clean): Not here.
67
68 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
69
70 * textprop.c (set_text_properties_1): Clearly mark that the
71 interval should not be empty.
72
73 * intervals.c (graft_intervals_into_buffer):
74 Don't call set_text_properties_1 on an empty interval.
75
76 2001-11-25 Richard M. Stallman <rms@gnu.org>
77
78 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
79
80 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
81 don't lose the data in it.
82
83 2001-11-25 Juanma Barranquero <lektu@terra.es>
84
85 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
86
87 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
88
89 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
90
91 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
92
93 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
94
95 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
96
97 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
98 Niemitalo <kon@iki.fi>.
99
100 2001-11-25 Jason Rumney <jasonr@gnu.org>
101
102 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
103
104 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
105 (Fx_show_tip): Block input during frame creation.
106 (Fx_show_tip, Fx_hide_tip): Enable.
107
108 2001-11-24 Richard M. Stallman <rms@gnu.org>
109
110 * lread.c (Fload): Detect recursive load error for more than 3
111 nestings of the same file.
112 (Vrecursive_load_depth_limit): Variable deleted.
113 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
114
115 2001-11-24 Jason Rumney <jasonr@gnu.org>
116
117 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
118 mouse position if either left or top is not specified.
119
120 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
121 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
122 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
123 (my_create_tip_window): Assign tip_window.
124 (x_create_tip_frame): Use same defaults as X.
125 (compute_tip_xy): Remove unused variable. Use full screen width.
126 (Fx_show_tip): Do not double height. Call ShowWindow directly.
127
128 * w32term.c (x_after_update_window_line): Doc fix.
129 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
130 frames.
131 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
132
133 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
134 for all Windowed systems.
135
136 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
137
138 * msdos.c (IT_clear_screen): If the frame's faces are not yet
139 realized, use the initial screen colors to clear the screen.
140
141 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
142
143 * textprop.c (Fset_text_properties): Remove unused variables
144 `unchanged', `prev_changed', `s' and `len'.
145
146 * search.c (Freplace_match): Remove unused variable `inslen'.
147
148 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
149
150 2001-11-22 Jason Rumney <jasonr@gnu.org>
151
152 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
153 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
154 (my_create_tip_window): New function.
155 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
156 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
157
158 2001-11-20 Jason Rumney <jasonr@gnu.org>
159
160 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
161 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
162
163 * w32fns.c (Vw32_system_coding_system): Remove.
164 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
165
166 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
167
168 * fileio.c (Fwrite_region): Move choose_write_coding_system to
169 after build_annotations.
170
171 * syntax.c (describe_syntax): Add dummy arg.
172 (describe_syntax_1): Update call to describe_vector.
173
174 * category.c (describe_category): Add dummy arg.
175 (describe_category_1): Update call to describe_vector.
176
177 * keymap.c (Fdescribe_vector): Add `describer' parameter.
178 (describe_command, describe_translation): Add dummy second param.
179 (describe_map): Call elt_describer with two arguments.
180 (describe_vector_princ): Add `fun' parameter.
181 Call it instead of the hardcoded `princ'.
182 (describe_vector): Add arg `args'.
183 Pass it as a new second argument to elt_describer.
184
185 * keymap.h (describe_vector): Update prototype.
186
187 * frame.c: Don't include keymap.h any more.
188 (keys_of_frame): Remove.
189
190 * lisp.h (keys_of_frame): Remove declaration.
191
192 * emacs.c (main): Don't call `keys_of_frame' any more.
193
194 2001-11-14 Andreas Schwab <schwab@suse.de>
195
196 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
197 if defined, 0 otherwise.
198 (MAP_FAILED): Define if not defined and use it to test mmap failure.
199 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
200
201 2001-11-19 Richard M. Stallman <rms@gnu.org>
202
203 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
204
205 2001-11-18 Jason Rumney <jasonr@gnu.org>
206
207 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
208 (x_draw_bar_cursor): If the background color of the glyph under
209 the cursor equals the frame's cursor color, use the glyph's
210 foreground color for drawing the bar cursor.
211 (x_after_update_window_line): Clear internal border in different
212 circumstances.
213 (w32_set_vertical_scroll_bar): Check for width and height > 0.
214 (w32_draw_relief_rect): Correct relief by 1 pixel.
215 (x_set_glyph_string_background_width):
216 Set extends_to_end_of_line_p if the row's fill_line_p is set and
217 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
218 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
219 if cursor_in_non_selected_windows is false.
220 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
221 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
222 Notice if cursor gets overwritten.
223 (notice_overwritten_cursor): Renamed from
224 note_overwritten_text_cursor. Rewritten to take glyph widths
225 into account, and to take X positions as parameters.
226 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
227 around call to x_draw_glyphs.
228 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
229 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
230 color to use for image glyph reliefs.
231 (x_draw_image_relief): Accept zero tool_bar_button_relief.
232 (glyph_rect): Remove unused variable `area'.
233
234 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
235 some items.
236 (x_set_internal_border_width): Set frame garbaged when window
237 doesn't exist yet.
238 (Fx_create_frame): Accept zero tool_bar_button_relief.
239 (x_clear_image_1, four_corners_best, image_background)
240 (image_background_transparent): New functions.
241 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
242 (gs_format): Add `:background' entry.
243 (lookup_image): Set IMG's background color if specified.
244 (pbm_load, xbm_load_image, png_load): Set IMG's background field
245 when appropriate.
246 (x_clear_image_1): Reset `background_valid' and
247 `background_transparent_valid' fields.
248 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
249 calculating it here. Set IMG's background_transparent field.
250 (enum xpm_keyword_index): Add XPM_BACKGROUND.
251 (enum png_keyword_index): Add PNG_BACKGROUND.
252 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
253 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
254 (enum gif_keyword_index): Add GIF_BACKGROUND.
255 (enum gs_keyword_index): Add GS_BACKGROUND.
256 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
257 Pre-calculate image background color where necessary.
258 (x_create_x_image_and_pixmap, xbm_load, gs_load):
259 Use display info's n_cbits entry for screen depth.
260 (Fx_show_tip): Remove unused variables `buffer', `top',
261 `left', `max_width' and `max_height'.
262
263 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
264
265 2001-11-18 Gerd Moellmann <gerd@gnu.org>
266
267 * puresize.h (BASE_PURESIZE): Increase to 750000.
268
269 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
270
271 * frame.c (Fframe_live_p): Doc fix.
272
273 2001-11-18 Richard M. Stallman <rms@gnu.org>
274
275 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
276 (message_dolog_marker3): New static variables hold three markers.
277 (syms_of_xdisp): Initialize and staticpro them.
278 (message_dolog): Use message_dolog_marker1..3 instead of
279 allocating markers each time. Unchain them when done.
280
281 2001-11-17 Richard M. Stallman <rms@gnu.org>
282
283 * doc.c (Fsnarf_documentation): Doc fix.
284
285 2001-11-17 Andreas Schwab <schwab@suse.de>
286
287 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
288
289 2001-11-17 Richard M. Stallman <rms@gnu.org>
290
291 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
292
293 2001-11-17 Jason Rumney <jasonr@gnu.org>
294
295 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
296
297 2001-11-17 Gerd Moellmann <gerd@gnu.org>
298
299 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
300 with invalid position.
301
302 2001-11-16 Richard M. Stallman <rms@gnu.org>
303
304 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
305
306 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
307 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
308 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
309
310 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
311
312 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
313
314 * fileio.c (build_annotations): Split off the tail.
315 (build_annotations_2): New fun. Extracted from build_annotations.
316 (Fwrite_region): Split the call to build_annotations into two
317 calls to build_annotations and build_annotations_2.
318
319 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
320
321 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
322 clear_waiting_for_input with argument.
323
324 * xterm.h (x_update_cursor): Remove duplicated prototype.
325
326 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
327
328 * xterm.c (waiting_for_input): Remove unnecessary declaration.
329
330 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
331
332 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
333
334 * fileio.c (choose_write_coding_system): New fun, extracted
335 from Fwrite_region.
336 (Fwrite_region): Use it.
337
338 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
339 (funcall_lambda, run_hook_with_args): Make static and add prototype.
340 (ml_apply, find_handler_clause): Add prototype.
341
342 2001-11-16 Eli Zaretskii <eliz@gnu.org>
343
344 * config.in: Add #undef HAVE_COFF_H.
345
346 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
347 Required for ISC 4.1.
348
349 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
350
351 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
352 Andrew Wiseman <a.wiseman@btclick.com>.
353
354 2001-11-16 Kim F. Storm <storm@cua.dk>
355
356 The following changes are made to clean up the various internal
357 references to the fringes to actually use the term `fringe' for
358 them. Previously, they were called `flags areas', `bitmap areas',
359 `left/right side of windows', or implicitly as `flags' or
360 `bitmaps':
361
362 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
363 Comments fixed. Use renamed symbols.
364
365 * dispnew.c: Comment fix. Use renamed symbols.
366
367 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
368 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
369 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
370
371 * msdos.c: Comment fix.
372
373 * w32fns.c: Use renamed symbols.
374
375 * w32term.c: Comment fixes. Use renamed symbols.
376 (fringe_bitmap_type): Renamed from bitmap_type.
377 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
378 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
379 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
380
381 * w32term.h: Comment fixes. Use renamed symbols.
382 (fringes_extra): Renamed from flags_areas_extra.
383 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
384 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
385 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
386 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
387 (FRAME_X_LEFT_FRINGE_WIDTH):
388 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
389 (FRAME_X_RIGHT_FRINGE_WIDTH):
390 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
391
392 * widget.c: Use renamed symbols.
393
394 * window.c: Comment fixes. Use renamed symbols.
395 (coordinates-in-window-p): Doc fix.
396
397 * xdisp.c: Comment fixes. Use renamed symbols.
398
399 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
400
401 * xfns.c: Use renamed symbols.
402
403 * xterm.c: Comment fixes. Use renamed symbols.
404 (fringe_bitmap_type): Renamed from bitmap_type.
405 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
406 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
407 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
408
409 * xterm.h: Comment fixes. Use renamed symbols.
410 (fringes_extra): Renamed from flags_areas_extra.
411 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
412 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
413 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
414 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
415 (FRAME_X_LEFT_FRINGE_WIDTH):
416 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
417 (FRAME_X_RIGHT_FRINGE_WIDTH):
418 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
419
420 2001-11-15 Jason Rumney <jasonr@gnu.org>
421
422 * w32menu.c (add-menu-item): Make help_echo and radio buttons
423 work for most menu items. From David Ponce
424 <david.ponce@wanadoo.fr>.
425
426 2001-11-15 Gerd Moellmann <gerd@gnu.org>
427
428 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
429 Some x_set_* function expect to be called even if old and new
430 value are equal.
431
432 * xdisp.c (build_desired_tool_bar_string): Accept zero
433 tool_bar_button_relief.
434
435 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
436
437 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
438
439 * xterm.c (x_draw_bar_cursor): If the background color of the
440 glyph under the cursor equals the frame's cursor color, use
441 the glyph's foreground color for drawing the bar cursor.
442
443 * dispnew.c (direct_output_forward_char): Fix character/byte
444 position comparison.
445
446 2001-11-15 Miles Bader <miles@gnu.org>
447
448 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
449 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
450 Update arguments to find_field.
451 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
452 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
453 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
454 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
455
456 2001-11-14 Richard M. Stallman <rms@gnu.org>
457
458 * editfns.c (Fpropertize): Allow call with 1 arg.
459
460 * dispextern.h (image_background, image_background_transparent):
461 Conditionalize on HAVE_X_WINDOWS.
462
463 2001-11-13 Richard M. Stallman <rms@gnu.org>
464
465 * print.c (Fprin1_to_string): Doc fix.
466
467 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
468
469 * floatfns.c (Fceiling, Ffloor): Doc fixes.
470
471 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
472
473 * fileio.c (Ffile_accessible_directory_p): Doc fix.
474
475 * eval.c (syms_of_eval): Doc fix.
476
477 * coding.c (syms_of_coding): Doc fix.
478
479 * doc.c (Fsnarf_documentation): Doc fix.
480
481 * dispnew.c (syms_of_display): Doc fix.
482
483 * category.c (Fget_unused_category): Doc fix.
484
485 * buffer.c (syms_of_buffer): Doc fixes.
486
487 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
488
489 * print.c (prin1, print): Doc fix.
490
491 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
492
493 * fontset.h: Remove declarations of variables
494 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
495
496 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
497 `Vclip_large_size_font'.
498
499 2001-11-13 Jason Rumney <jasonr@gnu.org>
500
501 * w32fns.c: Doc fix.
502
503 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
504
505 * xfaces.c (Fface_attributes_as_vector): Doc fix.
506
507 * w32fns.c (Fx_synchronize): Reindent.
508
509 * fns.c: Doc fix.
510
511 * emacs.c: Doc fix.
512
513 * coding.c: Doc fix.
514
515 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
516 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
517 `new style' [w/`doc:' keyword].
518
519 * xmenu.c (x-popup-menu): Reindent.
520 (x-popup-dialog): Likewise.
521
522 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
523
524 * xdisp.c (Fdump_tool_bar_row): Reindent.
525
526 * minibuf.c (Fminibuffer_complete_word): Reindent.
527 (Fminibuffer_complete_and_exit): Likewise.
528 (Fminibuffer_completion_help): Likewise.
529 (Fminibuffer_message): Likewise.
530
531 * fns.c (Freverse): Reindent.
532
533 * eval.c (Fif): Reindent.
534 (Fand): Likewise.
535
536 * editfns.c (Fuser_real_login_name): Reindent.
537 (Finsert_buffer_substring): Likewise.
538 (Fcompare_buffer_substrings): Likewise.
539 (Fsubst_char_in_region): Likewise.
540
541 * dispnew.c (Fsit_for): Reindent.
542 (Fframe_or_buffer_changed_p): Likewise.
543 (Finternal_show_cursor_p): Likewise.
544 (syms_of_display): Likewise.
545
546 * alloc.c (Flist): Reindent.
547 (Fvector): Likewise.
548
549 2001-11-12 Richard M. Stallman <rms@gnu.org>
550
551 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
552 LeaveNotify events. Only FocusIn and FocusOut do that now.
553 (x_display_and_set_cursor): Do display hollow cursors in active
554 minibuffer windows when they are not selected.
555
556 2001-11-12 Jason Rumney <jasonr@gnu.org>
557
558 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
559 * w32term.c: Change doc-string comments to `new style'.
560 [w/`doc:' keyword]. Doc fixes.
561
562 * w32fns.c: Don't define max.
563 (Fx_open_connection): Only execute once.
564
565 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
566
567 * ccl.c: Change macros to use do-while block instead of if-else.
568 Use braces to follow GNU Coding Standards.
569
570 2001-11-11 Richard M. Stallman <rms@gnu.org>
571
572 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
573
574 * lread.c (read_escape): Use end_of_file_error for reporting eof.
575
576 * insdel.c (replace_range): Use adjust_markers_for_replace
577 instead of adjust_markers_for_delete and adjust_markers_for_insert.
578
579 * intervals.h: Declare set_text_properties and set_text_properties_1.
580
581 * textprop.c (set_text_properties_1): New subroutine
582 broken out of set_text_properties.
583 (set_text_properties): Use set_text_properties_1.
584
585 * intervals.c (graft_intervals_into_buffer):
586 Use set_text_properties_1 to clear out properties.
587
588 * search.c (Freplace_match): Use replace_range to insert
589 and delete. Don't request property inheritance from
590 surrounding text.
591
592 2001-11-10 Jason Rumney <jasonr@gnu.org>
593
594 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
595 vertical fonts. Allow them if face name is explicitly specified.
596 Do not give up if we find a font that cannot be converted to an xlfd.
597
598 2001-11-10 Gerd Moellmann <gerd@gnu.org>
599
600 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
601 instead of malloc/free.
602
603 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
604
605 * xfaces.c (merge_face_vectors): Use braces to follow GNU
606 Coding Standards.
607 (Finternal_set_lisp_face_attribute): Likewise.
608
609 * buffer.c (Fbury_buffer): Likewise.
610
611 * indent.c (current_column_1): Remove unused variable `prev_col'.
612
613 * coding.c (encode_coding): Use precomputed value of `src'.
614 (encode_coding): Remove unused variable `src_end'.
615 (code_convert_region): Remove unused variables `count'.
616
617 2001-11-07 Jason Rumney <jasonr@gnu.org>
618
619 * w32term.c (x_display_and_set_cursor): Do not move system caret
620 if cursor_glyph is NULL.
621
622 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
623
624 * keymap.c (access_keymap): Fix compilation error.
625
626 2001-11-07 Miles Bader <miles@gnu.org>
627
628 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
629
630 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
631
632 * intervals.c (graft_intervals_into_buffer):
633 Remove #ifdef'd-out code.
634 (graft_intervals_into_buffer): Remove unused variable `middle'.
635
636 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
637 code (eval-current-buffer).
638 Change doc-string comments to `new style' [w/`doc:' keyword].
639
640 2001-11-06 Richard M. Stallman <rms@gnu.org>
641
642 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
643
644 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
645
646 * lread.c (read1): Fix behavior with nested backquoting.
647
648 * keyboard.c (make_lispy_event): Check integerness and fix
649 Lisp_Object/int mixup.
650
651 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
652
653 * fns.c (copy_hash_table): Remove unused variable `v'.
654
655 * fontset.c (fontset_font_pattern): Remove unused variable
656 `family_registry'.
657
658 * indent.c (current_column_1): Remove unused variable `prev_col'.
659
660 2001-11-05 Richard M. Stallman <rms@gnu.org>
661
662 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
663
664 * buffer.c (Fkill_buffer): Don't delete auto save file
665 if buffer is modified.
666
667 2001-11-05 Andrew Innes <andrewi@gnu.org>
668
669 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
670 CHECK_NUMBER_CDR.
671
672 2001-11-05 Richard M. Stallman <rms@gnu.org>
673
674 * unexelf.c (unexec): Minor changes; clean up comments.
675
676 2001-11-05 Sam Steingold <sds@gnu.org>
677
678 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
679
680 2001-11-05 Andreas Schwab <schwab@suse.de>
681
682 * sound.c (sound_perror): Save errno from being clobbered.
683
684 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
685
686 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
687 the program image directly.
688
689 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
690
691 * buffer.h (Fbuffer_local_value): Add prototype.
692
693 2001-11-04 Richard M. Stallman <rms@gnu.org>
694
695 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
696 and CHECK_BUFFER.
697
698 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
699 (record_char): Likewise.
700
701 * keyboard.c (make_lispy_event): Don't insist a drag event must
702 move to a different buffer position. Instead, check for moving at
703 least double_click_fuzz.
704
705 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
706
707 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
708
709 * indent.c (current_column_1, Fmove_to_column): Separate the code
710 for display-table glyphs from the code buffer text, to fix
711 bugs in the former.
712
713 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
714
715 * buffer.c (Fbuffer_local_value): New function.
716 (syms_of_buffer): Defsubr it.
717
718 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
719 value of `cursor-in-non-selected-windows'.
720
721 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
722 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
723 (syms_of_xdisp): Initialize it.
724
725 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
726
727 * xfns.c (Fx_create_frame): Doc fix.
728
729 * coding.c: Change doc-string comments to `new style' [w/`doc:'
730 keyword].
731
732 * eval.c (top_level_value, top_level_set): Remove commented and
733 #ifdef'd-out code.
734 (Fdefvar): Fix usage in doc-string.
735
736 2001-11-03 Richard M. Stallman <rms@gnu.org>
737
738 * xfns.c: Include unistd.h, if it exists.
739
740 * editfns.c: Move the include of ctype.h after unistd.h.
741
742 * gmalloc.c: Test BROKEN_PROTOTYPES.
743
744 2001-11-03 Ken Raeburn <raeburn@gnu.org>
745
746 * lisp.h (CHECK_STRING_CAR): New macro.
747 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
748 treating XCAR and XCDR as lvalues.
749 (openp): Use CHECK_STRING_CAR.
750 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
751
752 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
753
754 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
755 (SIGMASKTYPE): Define.
756
757 * syssignal.h (sigunblock): Don't define if already defined.
758
759 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
760
761 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
762 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
763 Fix typos in comments.
764
765 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
766 and #ifdef'd-out code.
767 Fix and reindent comments.
768
769 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
770
771 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
772 argument `i' in macros.
773
774 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
775 `i' in macros.
776
777 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
778 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
779 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
780 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
781 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
782 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
783 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
784 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
785 in macros.
786
787 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
788 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
789 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
790 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
791 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
792 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
793 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
794 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
795 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
796 (remove unused second argument).
797
798 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
799
800 * syntax.c (describe_syntax): New wrapper.
801 (Finternal_describe_syntax_value): Rename from describe_syntax.
802 Don't insert space at front and \n at the end.
803 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
804
805 * regex.c (re_wctype): Try to fix some warnings.
806 (regcomp, regexec): Don't forget the __restrict.
807
808 2001-11-02 Richard M. Stallman <rms@gnu.org>
809
810 * textprop.c (Fget_char_property): Doc fix.
811
812 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
813
814 * process.c (Fstart_process): Add usage to doc-string.
815
816 * data.c (Fsetq_default): Ditto.
817
818 * callint.c (Finteractive): Ditto.
819
820 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
821
822 * macros.c: Don't include keymap.h any more.
823
824 2001-11-01 Richard M. Stallman <rms@gnu.org>
825
826 * data.c (Fmake_local_variable): Doc fix.
827
828 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
829 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
830
831 * keymap.c (Fdescribe_buffer_bindings): Print character property
832 bindings along with or instead of the buffer local map.
833 Make the overriding maps override what they should.
834
835 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
836
837 * window.c (grow_mini_window): Fix typo in comment.
838
839 2001-11-01 Gerd Moellmann <gerd@gnu.org>
840
841 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
842 (XTset_vertical_scroll_bar): Likewise.
843
844 * xfns.c (x_build_heuristic_mask): Use four_corners_best
845 instead of IMAGE_BACKGROUND.
846
847 * xfns.c (four_corners_best): Reindent.
848
849 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
850 Handle :box so that it is possible to specify sexprs.
851
852 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
853
854 * xfaces.c (Finternal_merge_in_global_face): Reindent.
855 (Fface_font): Ditto.
856 (Finternal_set_alternative_font_registry_alist): Ditto.
857 (Ftty_suppress_bold_inverse_default_colors): Ditto.
858
859 * xfns.c (x-get-resource): Reindent.
860
861 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
862
863 * s/hpux11.h: New file.
864
865 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
866
867 * emacs.c (USAGE1): Show command line option --no-window-system
868 instead of --no-windows in usage.
869 (standard_args): Rename --no-windows to --no-window-system.
870 (bug_reporting_address): Follow Emacs coding conventions.
871
872 * eval.c (Fcommandp): Doc fix.
873 Change doc-string comments to `new style' [w/`doc:' keyword].
874
875 * frame.c (Fframe_live_p): Doc fix.
876
877 * buffer.c (selective-display-ellipses): Doc fix.
878
879 2001-10-31 Gerd Moellmann <gerd@gnu.org>
880
881 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
882
883 * xfaces.c (realize_x_face): If C is not a single-byte character,
884 set the face's colors_copied_bitwise_p instead of the defaulted_p
885 members which have a different meaning.
886 (free_face_colors): Do nothing for a face whose colors have been
887 copied bitwise.
888
889 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
890
891 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
892
893 * marker.c, mocklisp.c: Change doc-string comments to `new style'
894 [w/`doc:' keyword].
895
896 2001-10-31 Gerd Moellmann <gerd@gnu.org>
897
898 * fns.c (require_unwind): Return Lisp_Object.
899
900 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
901
902 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
903 (last-input-char): Revert doc-string to be the same as the
904 doc-string of `last-input-event'.
905
906 * xdisp.c: Fix typos in comments.
907
908 2001-10-31 Gerd Moellmann <gerd@gnu.org>
909
910 * window.c (grow_mini_window): Handle case that the root
911 window is already smaller than the nominal mininum height.
912
913 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
914
915 * emacs.c (main): Don't call keys_of_macros any more.
916
917 * lisp.h (keys_of_macros): Remove.
918
919 * macros.c (keys_of_macros): Remove.
920
921 * xfaces.c (Fface_attribute_relative_p): Declare args.
922
923 2001-10-30 Jason Rumney <jasonr@gnu.org>
924
925 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
926 (enum_font_cb2): Ignore fonts with vertical orientation.
927
928 2001-10-30 Richard M. Stallman <rms@gnu.org>
929
930 * keyboard.c (Finput_pending_p): Doc fix.
931
932 2001-10-30 Gerd Moellmann <gerd@gnu.org>
933
934 * xterm.c (x_after_update_window_line): Don't run the code
935 clearing in borders for rows whose visible height is 0.
936
937 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
938 resized_p flag is set. If not set, use the much less flickering
939 method previously used.
940
941 * dispnew.c (change_frame_size_1): Set frame's resized_p.
942
943 * frame.h (struct frame) <resized_p>: New member.
944
945 * lread.c (to_multibyte): Ensure read_buffer is at least twice
946 as large as the number of bytes to convert.
947
948 * lread.c (to_multibyte): New function.
949 (read1): Use it.
950
951 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
952
953 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
954
955 2001-10-30 Gerd Moellmann <gerd@gnu.org>
956
957 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
958 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
959 if the row's fill_line_p is set and drawing the last glyph with
960 DRAW_IMAGE_{RAISED,SUNKEN}.
961
962 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
963
964 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
965
966 * xmenu.c: Include coding.h and charset.h.
967 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
968 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
969 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
970 Explicitly set wv->help. Use `TRUE' rather than `True'.
971 (menu_help_callback): Use empty_string.
972
973 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
974 (Fx_popup_dialog): Explicitly init f.
975 (w32_menu_display_help): Use empty_string.
976
977 2001-10-29 Richard M. Stallman <rms@gnu.org>
978
979 * fns.c (Frequire): Detect recursive try to require the same
980 feature 3 or more levels deep, and get error.
981 (require_unwind): New subroutine.
982 (require_nesting_list): New variable.
983 (syms_of_fns): Init and staticpro it.
984
985 * print.c (print_object): Clarify indication of insertion type.
986
987 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
988
989 * coding.c (syms_of_coding): Document that locale-coding-system is
990 used for decoding input on X.
991
992 * window.c (Fscroll_left, Fscroll_right): Doc fix.
993
994 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
995
996 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
997 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
998
999 2001-10-29 Gerd Moellmann <gerd@gnu.org>
1000
1001 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
1002 use NO_CURSOR if cursor_in_non_selected_windows is false.
1003
1004 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
1005 the slant attribute if FRAME is t.
1006
1007 * xfns.c (x_set_internal_border_width): Set frame garbaged
1008 when X window doesn't exist yet.
1009
1010 * xterm.c (x_after_update_window_line): Clear internal border
1011 in different circumstances.
1012
1013 * xterm.c (XTread_socket) <KeyPress>: Don't use
1014 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
1015 <handa@etl.go.jp>.
1016
1017 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1018
1019 * m/ibms390.h: New file. From Adam Thornton
1020 <athornton@sinenomine.net>.
1021
1022 2001-10-28 Gerd Moellmann <gerd@gnu.org>
1023
1024 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
1025
1026 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1027 a loop counter.
1028
1029 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1030
1031 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1032
1033 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1034 keyword].
1035 Fix typos in comments.
1036
1037 * emacs.c (bug_reporting_address): New function.
1038 Use it when displaying usage message.
1039
1040 * minibuf.c (read_minibuf): Remove unused external declaration of
1041 variable `Qread_only'.
1042
1043 * keymap.c (access_keymap): Remove unused variable `charset'.
1044
1045 2001-10-28 Miles Bader <miles@gnu.org>
1046
1047 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1048 Remove #ifdef'd-out code.
1049 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1050 (syms_of_xfaces): Initialize them.
1051
1052 2001-10-27 Jason Rumney <jasonr@gnu.org>
1053
1054 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1055 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1056 position using the system caret.
1057
1058 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1059 (w32_system_caret_height, w32_system_caret_x)
1060 (w32_system_caret_y): New variables for tracking system caret.
1061 (w32_initialize): Initialize them.
1062 (x_display_and_set_cursor): Make system caret follow the active cursor.
1063
1064 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1065 New messages types.
1066
1067 * w32term.c (note_mouse_highlight): Clear old help_echo.
1068
1069 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1070
1071 * xterm.c: Fix typo in a comment.
1072
1073 * emacs.c: Fix typos in comments.
1074 Remove unnecessary spaces.
1075 Change doc-string comments to `new style' [w/`doc:' keyword].
1076 (USAGE2): Fix typos in usage string.
1077
1078 * xterm.c: Fix typo in a comment.
1079
1080 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1081 emacs.c.
1082
1083 2001-10-27 Gerd Moellmann <gerd@gnu.org>
1084
1085 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
1086 instead of 1/2 line_height in the heuristic for skipping
1087 farther backward when target_y was not reached.
1088
1089 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1090 Display errno only if non-zero.
1091 (sound_warning): New function.
1092 (vox_configure): Don't treat failing to set sample rate as error.
1093 (various places): Improve error messages.
1094
1095 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1096
1097 * fileio.c (Faccess_file): Run the argument filename through
1098 Fexpand_file_name, before using it.
1099
1100 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1101 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1102
1103 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1104
1105 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1106
1107 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1108 Fix clearing in the case of scroll bars on the right.
1109
1110 2001-10-26 Juanma Barranquero <lektu@terra.es>
1111
1112 * w32gui.h (XImage): Add a dummy typedef.
1113
1114 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1115
1116 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
1117
1118 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1119
1120 * frame.c (Fframe_parameter): Fix last change.
1121
1122 * fileio.c: Revert last change (which removed old commented-out
1123 version of expand-file-name). Add a comment that explains why
1124 this old version should not be removed.
1125
1126 2001-10-25 Gerd Moellmann <gerd@gnu.org>
1127
1128 * frame.c (Fframe_parameter): Fix a bug whereby some
1129 ``artificial'' frame parameters, like `minibuffer' were not
1130 obtained by calling Fframe_parameters.
1131
1132 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1133 cursor differently.
1134
1135 * xdisp.c (move_it_vertically_backward): Compute line height
1136 differently. Add heuristic to try to be more compatible to 20.x.
1137
1138 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1139
1140 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1141
1142 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1143 boolean.
1144
1145 2001-10-25 Miles Bader <miles@gnu.org>
1146
1147 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1148 BG is a pointer to a structure, not a structure.
1149 (gif_format, png_format): Add missing commas.
1150
1151 2001-10-24 Richard M. Stallman <rms@gnu.org>
1152
1153 * xfaces.c (Fface_attributes_as_vector): New function.
1154 (syms_of_xfaces): Defsubr it.
1155
1156 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1157
1158 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1159 variable `area'.
1160
1161 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1162
1163 * search.c (scan_newline): Remove unused variable `selective_display'.
1164
1165 2001-10-25 Miles Bader <miles@gnu.org>
1166
1167 * dispextern.h (struct image): Add `background',
1168 `background_valid', and `background_transparent' fields.
1169 (image_background, image_background_transparent): New declarations.
1170 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1171 * xfns.c (image_background, image_background_transparent)
1172 (four_corners_best): New functions.
1173 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1174 (gs_format): Add `:background' entry.
1175 (lookup_image): Set IMG's background color if specified.
1176 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1177 when appropriate.
1178 (x_clear_image_1): Reset `background_valid' and
1179 `background_transparent_valid' fields.
1180 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1181 calculating it here. Set IMG's background_transparent field.
1182 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1183 (enum png_keyword_index): Add PNG_BACKGROUND.
1184 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1185 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1186 (enum gif_keyword_index): Add GIF_BACKGROUND.
1187 (enum gs_keyword_index): Add GS_BACKGROUND.
1188 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1189 Pre-calculate image background color where necessary.
1190 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1191 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1192 color to use for image glyph reliefs.
1193
1194 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1195
1196 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1197 in full-width rows.
1198
1199 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1200 Fix clearing of area not covered by scroll bar.
1201
1202 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1203
1204 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1205 and `real_start'.
1206 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
1207 (glyph_rect): Remove unused variable `area'.
1208
1209 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1210
1211 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
1212
1213 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1214 (row_containing_pos): Take additional argument DY.
1215 Treat rows ending in middle of char differently.
1216 (display_line): Handle tabs on window systems differently.
1217
1218 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1219 with additional argument.
1220
1221 * dispextern.h (row_containing_pos): Adjust prototype.
1222
1223 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1224 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1225 (try_window_id, try_window_reusing_current_matrix)
1226 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1227 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1228
1229 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1230
1231 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1232 gnuemacs).
1233 (HAVE_BOXES): Fix typo in comment.
1234 (push_menu_pane): Fix typo in comment.
1235
1236 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1237 of `Qwhen'.
1238 (single_display_prop_string_p): Remove unused local declarations
1239 of `Qwhen' and `Qmargin'.
1240 (string_buffer_position): Remove unused variable `around'.
1241 (store_frame_title): Remove unused variable `width'.
1242
1243 * window.c: Don't define max.
1244 (coordinates_in_window): Remove unused variable `uy'.
1245
1246 * widget.c: Don't define max.
1247
1248 * process.c: Don't define max.
1249 (create_process): Remove unused variable `buffer'.
1250
1251 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1252
1253 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
1254
1255 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1256
1257 * xfaces.c (Finternal_set_lisp_face_attribute)
1258 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1259 frame is on a windowed display.
1260
1261 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1262
1263 * dispnew.c (sync_window_with_frame_matrix_rows):
1264 Fix handling of windows which aren't full-width, fix handling
1265 of marginal areas.
1266
1267 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
1268
1269 2001-10-23 Andreas Schwab <schwab@suse.de>
1270
1271 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1272 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1273
1274 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1275
1276 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
1277 REAL_END. Notice if cursor gets overwritten.
1278 (notice_overwritten_cursor): Take X positions as parameters.
1279 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1280 around call to x_draw_glyphs.
1281
1282 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1283
1284 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1285 instead of C) and usage.
1286
1287 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1288 of C) and usage.
1289
1290 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1291 `left', `max_width' and `max_height'.
1292
1293 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1294
1295 * xdisp.c (display_line): For a tab continued to the next line,
1296 set row's ends_in_middle_of_char_p.
1297
1298 2001-10-22 Gerd Moellmann <gerd@gnu.org>
1299
1300 * xdisp.c (display_line): Fix computation of continuation lines
1301 width for TABs.
1302
1303 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1304
1305 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1306 `Qlaplace'.
1307
1308 * fileio.c: Remove unused code.
1309
1310 2001-10-22 Miles Bader <miles@gnu.org>
1311
1312 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1313 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1314 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1315
1316 2001-10-21 Jason Rumney <jasonr@gnu.org>
1317
1318 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1319
1320 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1321
1322 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1323 (Finsert_string): Avoid the multi-line string literals warning.
1324
1325 2001-10-22 Miles Bader <miles@gnu.org>
1326
1327 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1328 (Fdocumentation): Don't use it.
1329 (syms_of_doc): Don't initialize it.
1330
1331 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1332 * print.c (Fwith_output_to_temp_buffer): Likewise.
1333 * window.c (Fsave_window_excursion): Likewise.
1334 * editfns.c (Fsave_excursion, Fsave_current_buffer)
1335 (Fsave_restriction): Likewise.
1336 * eval.c (Frun_hooks, Frun_hook_with_args)
1337 (Frun_hook_with_args_until_failure)
1338 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1339 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1340 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
1341 (Funwind_protect, Fcondition_case): Likewise.
1342 * coding.c (Ffind_operation_coding_system): Likewise.
1343 * keyboard.c (Ftrack_mouse): Likewise.
1344
1345 2001-10-21 Miles Bader <miles@gnu.org>
1346
1347 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
1348 (Fmake_hash_table): Add usage: string to doc string.
1349 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
1350 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
1351 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1352 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1353 (Fml_prefix_argument_loop): Likewise.
1354
1355 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1356
1357 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
1358
1359 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1360 style' [w/`doc:' keyword].
1361
1362 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1363 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1364 comments to `new style' [w/`doc:' keyword].
1365
1366 2001-10-21 Jason Rumney <jasonr@gnu.org>
1367
1368 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1369
1370 * w32term.c (remember_mouse_glyph): New function.
1371 (w32_mouse_position): Use it.
1372 (note_mouse_movement): If the mouse moved off the glyph, remember
1373 its new position.
1374
1375 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1376 (w32_display_info): Add mouse_face_overlay.
1377
1378 * w32term.c (notice_overwritten_cursor): Renamed from
1379 note_overwritten_text_cursor. Rewritten to take glyph widths into
1380 account.
1381 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1382 (fast_find_string_pos): New function.
1383 (fast_find_position): Return the correct vpos. Add parameter
1384 STOP. In the final row, stop before glyphs having STOP as object.
1385 Don't consider glyphs that are not from a buffer.
1386 (fast_find_position) [0]: Add a presumably more correct version
1387 for after 21.1.
1388 (expose_window_tree, expose_frame): Don't compute intersections here.
1389 (expose_window): Do it here instead.
1390 (expose_window_tree, expose_window, expose_line): Return 1 when
1391 overwriting mouse-face.
1392 (expose_window): If W is the window currently being updated, mark
1393 the frame garbaged.
1394 (expose_frame): If mouse-face was overwritten, redo it.
1395 (x_use_underline_position_properties): New variable.
1396 (syms_of_xterm): DEFVAR_BOOL it.
1397 (x_draw_glyph_string): Add comment to use it in future.
1398 (x_draw_glyph_string): Restore clipping after drawing box.
1399 Fix a computation of the underline position.
1400 (w32_get_glyph_string_clip_rect): Minor cleanup.
1401 (x_fill_stretch_glyph_string): Remove an assertion.
1402 (x_produce_glyphs): Don't convert multibyte characters
1403 to unibyte characters in unibyte buffers.
1404 (cursor_in_mouse_face_p): New function.
1405 (x_draw_stretch_glyph_string): Use it to choose a different GC
1406 when drawing a cursor within highlighted text. Don't draw
1407 background again if it has already been drawn.
1408 (x_draw_glyph_string_box): Don't draw a full-width
1409 box just because the glyph row's full_width_p flag is set.
1410 (x_draw_glyphs): Fix computation of rightmost x for
1411 full-width rows.
1412 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1413 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1414 change bottom shadow accordingly. Some cleanup.
1415 (x_update_window_end): Handle overwritten mouse face
1416 also for tool bar windows.
1417 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1418 DRAW is DRAW_IMAGE_RAISED.
1419 (clear_mouse_face): Return 1 if text with mouse face was
1420 actually redrawn. Make the function static. Reset
1421 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1422 optimize away highlighting if we pass over that same overlay again.
1423 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1424 to detect a case where we have to highlight a different region
1425 despite not having left the currently highlighted region.
1426 Set mouse_face_overlay in the x_display_info. Avoid changing the
1427 mouse pointer shape when show_mouse_face has already done it, or
1428 there is no need. Handle mouse-face and help-echo in strings.
1429 (glyph_rect): New function.
1430 (w32_mouse_position): Use it to raise the threshold for mouse
1431 movement event generation.
1432 (w32_initialize_display_info): Initialize the x_display_info's
1433 mouse_face_overlay.
1434 (w32_set_vertical_scroll_bar): Don't clear a zero height
1435 or width area.
1436 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1437 a widget to zero height.
1438
1439 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
1440 Protect unibyte strings created by replacing their multibyte
1441 equivalents in menu_items.
1442 (w32_menu_show): Don't overwrite an item's name with its key
1443 description in case the description is a multibyte string.
1444 (single_submenu): Some cleanup.
1445
1446 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1447 (postprocess_image): New function.
1448 (lookup_image): Call it for all image types except PostScript.
1449 (x_kill_gs_process): Call postprocess_image.
1450 (tiff_error_handler, tiff_warning_handler): New functions.
1451 (tiff_load): Install them as handlers.
1452 (x_kill_gs_process): Recognize if someone has cleared the image
1453 cache under us.
1454 (valid_image_p): Protect better against invalid image
1455 specifications. Previous code could signal an error.
1456 (Fx_hide_tip, Fshow_tip): Doc fix.
1457 (Fv_max_tooltip_size): New variable.
1458 (syns_of_xfns): DEFVAR_LISP it.
1459 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1460 window buffer to *tip* right after creating the frame. Set frame's
1461 window_width. Use a maximum tooltip size specified by
1462 Vx_max_tooltip_size, if that has valid contents.
1463 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1464 Make sure the tooltip is completely visible.
1465 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1466 (Fx_create_frame): Adjust the frame's height for presence
1467 of the tool bar before calling x_figure_window_size.
1468 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1469 when the window gets smaller.
1470 (x_set_foreground_color): Set frame's cursor_pixel.
1471 (x_set_foreground_color, x_set_background_color): Cleaned up.
1472 (x_set_font): Handle case of x_new_fontset returning the same name
1473 as before, although there was a change in fontsets.
1474
1475 2001-10-21 Miles Bader <miles@gnu.org>
1476
1477 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
1478 (Flogxor): Add usage: string to doc string.
1479 * charset.c (Fstring): Likewise.
1480 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1481 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1482
1483 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1484
1485 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1486
1487 * alloc.c: Reindent DEFUNs with doc: keywords.
1488
1489 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1490
1491 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1492 keyword].
1493
1494 2001-10-20 Gerd Moellmann <gerd@gnu.org>
1495
1496 * (Version 21.1 released.)
1497
1498 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1499
1500 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
1501
1502 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1503 0 because unused.
1504
1505 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
1506 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1507 Change doc-string comments to `new style' [w/`doc:' keyword].
1508
1509 2001-10-20 Miles Bader <miles@gnu.org>
1510
1511 The following changes remove the glyph_row `inverse_p' field,
1512 which is never set anymore, due to other changes:
1513
1514 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1515 (reassert_line_highlight, change_line_highlight): Declarations removed.
1516 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
1517 (line_hash_code, row_equal_p, fake_current_matrices)
1518 (build_frame_matrix_from_leaf_window, update_frame_line)
1519 (update_frame_line, update_frame_line, update_frame_line):
1520 Don't use `inverse_p' field.
1521 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1522 change_line_highlight_hook.
1523 (XTreassert_line_highlight, x_change_line_highlight):
1524 Functions removed.
1525 (x_fix_overlapping_area, x_write_glyphs, expose_area)
1526 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1527 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1528 `inverse_p' field.
1529 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
1530 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1531 (w32_reassert_line_highlight, x_change_line_highlight):
1532 Functions removed.
1533 * w32console.c (reassert_line_highlight, change_line_highlight):
1534 Functions removed.
1535 (initialize_w32_display): Don't set reassert_line_highlight_hook
1536 or change_line_highlight_hook.
1537 (hl_mode): Function removed.
1538 (reset_terminal_modes, set_terminal_modes, update_begin)
1539 (update_end, w32_face_attributes, initialize_w32_display):
1540 (clear_frame, ins_del_lines): Don't call it.
1541 * termhooks.h (reassert_line_highlight_hook)
1542 (change_line_highlight_hook): Declarations removed.
1543 * term.c (reassert_line_highlight_hook)
1544 (change_line_highlight_hook): Variables removed.
1545 (reassert_line_highlight, change_line_highlight): Functions removed.
1546 * msdos.c (IT_reassert_line_highlight)
1547 (IT_change_line_highlight): Functions removed.
1548 (internal_terminal_init): Don't set reassert_line_highlight_hook
1549 or change_line_highlight_hook.
1550 (highlight): Variable removed.
1551 (IT_set_face, IT_update_begin, IT_update_end)
1552 (IT_set_terminal_modes): Don't set or use it.
1553
1554 The following changes remove inverse-video support for terminals
1555 that use a `magic cookie' standout mode. Due to changes in the
1556 way mode-lines are displayed, such support no longer works
1557 anyway, and it's probable that almost no one uses such terminals
1558 anymore:
1559
1560 * term.c (standout_requested): Variable removed.
1561 (update_end, highlight_if_desired): Don't use it.
1562 (chars_wasted, copybuf): Variables removed.
1563 (write_standout_marker): Function removed.
1564 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
1565 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1566 Don't use `chars_wasted' or `copybuf'.
1567 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1568 Set `costs_set' to true.
1569 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1570 `chars_wasted'.
1571 (clear_end_of_line): Function removed.
1572 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1573 (clear_to_end): Call `clear_end_of_line' instead of
1574 `clear_end_of_line_raw'.
1575 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1576 (term_init): Don't set them.
1577 Turn off any standout/underline modes that require magic cookies.
1578 (ins_del_lines, highlight_if_desired, background_highlight)
1579 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1580 Remove special processing for magic-cookie standout modes.
1581 (turn_off_face, turn_on_face): Remove special processing for
1582 underline magic-cookie glitch.
1583
1584 2001-10-19 Richard M. Stallman <rms@gnu.org>
1585
1586 * eval.c (syms_of_eval): Doc fixes.
1587
1588 2001-10-19 Gerd Moellmann <gerd@gnu.org>
1589
1590 * xdisp.c (redisplay_internal): Don't clear echo area if the
1591 mini-window is selected.
1592
1593 2001-10-19 Miles Bader <miles@gnu.org>
1594
1595 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1596 doesn't take precedence if the affected property's value is nil.
1597
1598 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1599
1600 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1601 with fields and suggest using `forward-line' to avoid them.
1602 * editfns.c (Fline_beginning_position, Fline_end_position):
1603 Clarify documentation.
1604
1605 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1606
1607 * keymap.c (current_minor_maps): `override' only shadows its
1608 correspondent in minor-mode-map-alist, not the whole tail.
1609
1610 2001-10-18 Andrew Innes <andrewi@gnu.org>
1611
1612 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1613 optimization. The fontp->encoding array was not being initialized
1614 correctly when compiled with optimizations by MSVC.
1615
1616 2001-10-18 Gerd Moellmann <gerd@gnu.org>
1617
1618 * xdisp.c (display_line): Indicate empty lines in active mini-window.
1619
1620 2001-10-17 Andrew Innes <andrewi@gnu.org>
1621
1622 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1623
1624 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1625 font_info.charset field.
1626
1627 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1628 rather than working it out by calling w32_codepage_for_font for
1629 every glyph.
1630
1631 2001-10-17 Andrew Innes <andrewi@gnu.org>
1632
1633 * w32term.c (w32_read_socket): Determine clipping rectangle for
1634 the entire frame, including areas covered by scrollbars and the
1635 menubar. This avoids internal arguments about whether a frame is
1636 fully obscured or not.
1637
1638 2001-10-17 Gerd Moellmann <gerd@gnu.org>
1639
1640 * xdisp.c (try_window_id): Undo last change. Give up if
1641 window ends in strings.
1642
1643 * xdisp.c (try_window_id): Don't display lines after the window
1644 end if the rest of the window after the window end was already blank.
1645
1646 * xdisp.c (try_window_id): Remove code that was only there
1647 for the release of 21.1.
1648
1649 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
1650
1651 2001-10-17 Miles Bader <miles@gnu.org>
1652
1653 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1654 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1655 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1656 Change doc-string comments to `new style' [w/`doc:' keyword].
1657 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1658 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1659 out make-docfile.
1660
1661 2001-10-16 Miles Bader <miles@gnu.org>
1662
1663 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1664
1665 2001-10-16 Gerd Moellmann <gerd@gnu.org>
1666
1667 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1668 *scratch*.
1669
1670 2001-10-16 Ken Raeburn <raeburn@gnu.org>
1671
1672 Avoid the assumption that car and cdr slots of cons cells are
1673 addressable lvalues; this allows for easier experimentation with
1674 other lisp implementations that may not permit such accesses for
1675 various reasons. Not quite complete -- buffer.c still needs some
1676 work, and w32/mac files need rechecking -- so compile-time
1677 enforcement is left disabled for now.
1678
1679 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
1680 gcc with a union-based Lisp object rep. Redefine as no-op for now.
1681 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1682 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1683 (XSETCAR, XSETCDR): New macros.
1684 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1685 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1686 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1687 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1688 XSETCDR.
1689 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
1690 * buffer.c (record_buffer, Fbury_buffer)
1691 (swap_out_buffer_local_variables, recenter_overlay_lists)
1692 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
1693 fields of a cons cell respectively.
1694 * callint.c (quotify_args, Fcall_interactively): Likewise.
1695 * ccl.c (Fregister_code_conversion_map): Likewise.
1696 * coding.c (detect_coding_system): Likewise.
1697 * composite.c (get_composition_id, make_composition_value_copy):
1698 Likewise.
1699 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1700 (swap_in_symval_forwarding, set_internal, Fset_default)
1701 (Fmake_variable_buffer_local, Fmake_local_variable)
1702 (Fmake_variable_frame_local): Likewise.
1703 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
1704 * keymap.c (Fset_keymap_parent, store_in_keymap)
1705 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
1706 * minibuf.c (get_minibuffer): Likewise.
1707 * search.c (Fmatch_data): Likewise.
1708 * textprop.c (extend_property_ranges): Likewise.
1709 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
1710 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1711 Likewise.
1712 * w32term.c (x_delete_display): Likewise.
1713 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1714 Likewise.
1715 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
1716 * doc.c (store_function_docstring): Use XSETCARFASTINT.
1717 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
1718 (Fread_file_name): Use XSETCAR.
1719 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1720 CHECK_NUMBER_CDR.
1721 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1722 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1723 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1724 CHECK_NUMBER_CDR.
1725 * keyboard.c (read_char): Alter list traversal to avoid taking the
1726 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1727 (parse_menu_item): Use XSETCAR and XSETCDR.
1728 (reach_char_x_menu_prompt): Use XSETCAR.
1729 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1730 (Fcommand_execute): Use XSETCDR.
1731 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1732 (openp): Change list traversal to avoid using XCAR as lvalue.
1733 (read_list): Use XSETCDR.
1734 * process.c (wait_reading_process_input): Change wait_for_cell
1735 handling to avoid taking addresses of cons cell slots.
1736 * xselect.c (x_own_selection, x_handle_selection_clear)
1737 (x_clear_frame_selections): Use XSETCDR.
1738 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1739 (x_handle_property_notify, x_get_foreign_selection)
1740 (x_handle_selection_notify): Use XSETCAR.
1741
1742 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1743
1744 * buffer.c: Put doc strings in comments.
1745
1746 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
1747
1748 2001-10-15 Sam Steingold <sds@gnu.org>
1749
1750 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1751
1752 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1753
1754 * process.c (process-inherit-coding-system-flag)
1755 (get-buffer-process): Do not confuse make-docfile with doc strings
1756 in comment.
1757
1758 * editfns.c (Fchar_to_string): Make doc string consistent with
1759 arguments. Put doc strings in comments.
1760
1761 * abbrev.c, minibuf.c: Put doc strings in comments.
1762
1763 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1764
1765 * window.c (window_loop): Don't check for Fother_buffer returning nil.
1766
1767 * window.c (select_window_1): Unfreeze window start. Remove a
1768 doubled test for WINDOW being live.
1769
1770 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1771
1772 * fns.c (Fmapconcat): Fix typo in a doc string.
1773
1774 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1775
1776 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1777
1778 * xterm.c (x_draw_glyph_string): Restore clipping after
1779 drawing box.
1780
1781 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1782
1783 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
1784
1785 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1786
1787 * indent.c (skip_invisible): Use new retval of
1788 TEXT_PROP_MEANS_INVISIBLE.
1789
1790 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1791 If a parent is reached and noinherit is set, exit immediately.
1792 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1793
1794 * s/ms-w32.h (EXEC_SUFFIXES):
1795 * s/msdos.h (EXEC_SUFFIXES):
1796 * process.h (EXEC_SUFFIXES): Remove.
1797
1798 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1799 (decode_suffixes): Remove.
1800
1801 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
1802 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1803 (invisible_ellipsis_p): Remove.
1804
1805 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1806 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1807 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
1808 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1809 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
1810
1811 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1812
1813 * lisp.h (Ftop_level): Add prototype.
1814
1815 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1816 (XTread_socket): Improve style of comments to follow other
1817 comments.
1818
1819 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1820 is already prototyped in included lisp.h).
1821
1822 * frame.c (Fset_mouse_position): Improve style of comment to
1823 follow other comments.
1824 (Fset_mouse_pixel_position): Improve style of comment to follow
1825 other comments.
1826 (Fmake_frame_visible): Doc fix and typo in comment.
1827 (Fmake_frame_invisible): Doc fix and typo in comment.
1828 (Ficonify_frame): Fix typo in comment.
1829
1830 2001-10-14 Gerd Moellmann <gerd@gnu.org>
1831
1832 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
1833 * term.c, alloc.c: Put doc strings in comments.
1834
1835 2001-10-13 Gerd Moellmann <gerd@gnu.org>
1836
1837 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1838 Provide definitions for doc strings in comments.
1839
1840 * fns.c: Put doc strings in comments.
1841
1842 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1843
1844 * dired.c (file_name_completion): Ignore a candidate directory if
1845 it matches an element in completion-ignored-extensions that ends
1846 in a slash.
1847 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1848 feature in the doc string.
1849 (Ffile_name_completion): Ditto.
1850
1851 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1852
1853 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1854
1855 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1856
1857 * lisp.h (Fprovide): Update prototype.
1858 (Ffeaturep, invisible_p): Remove.
1859
1860 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
1861 (DOLIST, LOOP_PROPVAL): New macros.
1862 (invisible_p, invisible_ellipsis_p): Use them.
1863 (invisible_noellipsis_p): New function.
1864 (syms_of_xdisp): Use empty_string.
1865
1866 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1867
1868 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1869 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1870
1871 * print.c (Fwith_output_to_temp_buffer): Align with
1872 internal_with_output_to_temp_buffer.
1873 (print_preprocess): Use traverse_intervals_noorder.
1874 (print_object): Update call to traverse_intervals.
1875
1876 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1877 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1878
1879 * intervals.c (traverse_intervals_noorder): New function.
1880 (search_for_interval, count_intervals): Use it.
1881 (traverse_intervals): Use less stack space and drop `depth' arg.
1882
1883 * fns.c (Ffeaturep): Add new `subfeature' arg.
1884 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1885 (Qsubfeatures): New var.
1886 (syms_of_fns): Initialize it.
1887
1888 * keymap.c (Fkey_description): Use empty_string.
1889 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1890 (syms_of_keymap): Setup inheritance between maps.
1891 Don't export Sdescribe_bindings_internal any more.
1892
1893 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1894
1895 2001-10-12 Gerd Moellmann <gerd@gnu.org>
1896
1897 * xterm.c (notice_overwritten_cursor): Renamed from
1898 note_overwritten_text_cursor. Rewritten to take glyph widths into
1899 account.
1900
1901 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1902
1903 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1904 multi-line strings without a trailing "\n\".
1905
1906 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1907
1908 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1909 defined.
1910
1911 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1912
1913 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1914
1915 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1916 * w32proc.c (sys_spawnve):
1917 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1918 * w32.c (check_windows_init_file):
1919 * sound.c (Fplay_sound):
1920 * emacs.c (init_cmdargs):
1921 * process.c (Fstart_process): Update calls to openp.
1922
1923 * callproc.c (Vexec_suffixes): New var.
1924 (Fcall_process): Update call to openp.
1925 (decode_suffixes): New function.
1926 (syms_of_callproc): Init exec-suffixes.
1927
1928 * lread.c (Vload_suffixes, default_suffixes): New vars.
1929 (openp): Take a lisp list of suffixes.
1930 Check for file-name-handlers even if the file was absolute already.
1931 (syms_of_lread): Declare load-suffixes.
1932 (Fload): Fix up call to openp.
1933 Don't bother checking for file-name-handler at the very beginning.
1934
1935 * keymap.h (Fcopy_keymap): Don't export.
1936
1937 * lisp.h (empty_string): Declare.
1938 (Vload_suffixes, Vexec_suffixes): Declare.
1939 (openp): Update prototype.
1940
1941 * emacs.c (empty_string): New var.
1942 (syms_of_emacs): Initialize it.
1943
1944 * search.c (wordify): Use it.
1945
1946 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1947 selected window if it's not displayed there. Handle the case
1948 when the window is dedicated.
1949 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1950
1951 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1952
1953 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1954 Remove left_ok and right_ok.
1955 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1956 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1957 new meaning of b_property.
1958
1959 * syntax.c (update_syntax_table): Simplify.
1960 (Fforward_comment): Don't skip quoted chars when going backward.
1961
1962 2001-10-11 Gerd Moellmann <gerd@gnu.org>
1963
1964 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1965 in case I is of some unsigned type, in which case
1966 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1967 comparison becomes bogus.
1968
1969 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1970 (Fuser_full_name): Fix bug treating a float as a fixnum.
1971
1972 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1973
1974 * lisp.h (make_fixnum_or_float): New macro.
1975
1976 * lisp.h (circular_list_error): Add prototype.
1977
1978 * data.c (Qcircular_list): New variable.
1979 (circular_list_error): New function.
1980 (syms_of_data): Initialize it Qcircular_list.
1981
1982 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1983
1984 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1985 casefiddle.c, buffer.c: Include keymap.h.
1986
1987 2001-10-10 Gerd Moellmann <gerd@gnu.org>
1988
1989 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1990 options. From Dave Love <d.love@dl.ac.uk>.
1991
1992 2001-10-09 Gerd Moellmann <gerd@gnu.org>
1993
1994 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1995 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1996
1997 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1998 unsigned char.
1999 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2000
2001 2001-10-08 Andrew Innes <andrewi@gnu.org>
2002
2003 * lisp.h [max]: Undef min and max before redefining them.
2004
2005 * w32gui.h: Do not undef min and max.
2006
2007 * w32heap.h: Do not undef min and max.
2008
2009 * s/ms-w32.h: Do not undef min and max.
2010
2011 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2012
2013 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
2014
2015 2001-10-08 Sam Steingold <sds@gnu.org>
2016
2017 * keymap.c (current-active-maps): Quote newlines (compilation error).
2018
2019 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2020
2021 * Makefile.in (lisp, shortlisp): Replace bindings.el with
2022 bindings.elc, since otherwise doc strings in bindings.el get wrong
2023 offsets in etc/DOC.
2024
2025 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2026
2027 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2028
2029 * keyboard.h (map_prompt): Remove.
2030
2031 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
2032 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
2033
2034 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2035
2036 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2037
2038 * keyboard.c (map_prompt): Remove.
2039 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2040 Use Fkeymap_prompt.
2041
2042 * keymap.h: New file. Extracted from lisp.h.
2043
2044 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2045 (accessible_keymaps_1): New function.
2046 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2047 (Fwhere_is_internal): Use Fcurrent_active_maps.
2048 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2049 Insert in current buffer rather than standard-output.
2050 Don't call `help-mode'. Export to elisp.
2051 (describe_buffer_bindings): New wrapper.
2052 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2053 and Sdescribe_buffer_bindings.
2054
2055 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2056
2057 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
2058 Remove code setting signal handler.
2059
2060 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
2061 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2062
2063 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2064
2065 * keyboard.c: Don't define min/max.
2066
2067 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2068
2069 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
2070 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
2071 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
2072 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
2073 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
2074 Don't define min/max.
2075
2076 * lisp.h (min, max): New macros.
2077
2078 * puresize.h (BASE_PURESIZE): Increase to 725000.
2079
2080 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2081
2082 * xfaces.c (free_frame_menubar): Add prototype.
2083
2084 * lisp.h (init_window): Add prototype.
2085
2086 * editfns.c: Include ctype.h.
2087
2088 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
2089 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
2090 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2091 variable `sb'.
2092
2093 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2094 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2095 `popup_activated_flag' and `title'.
2096
2097 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2098
2099 * emacs.c (main): Remove extra `;'.
2100
2101 * atimer.h (struct atimer): Fix typos in a comment.
2102
2103 * atimer.c: Fix typo.
2104
2105 * Makefile.in: Fix typo.
2106
2107 * README: Remove obsolete part mentioning removed VMS file.
2108
2109 2001-10-07 Miles Bader <miles@gnu.org>
2110
2111 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2112
2113 2001-10-07 Ken Raeburn <raeburn@gnu.org>
2114
2115 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2116 Lisp_Object.
2117
2118 * lisp.h (Ffield_end): Declare.
2119
2120 2001-10-07 Gerd Moellmann <gerd@gnu.org>
2121
2122 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2123
2124 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2125
2126 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2127
2128 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2129
2130 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2131 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2132
2133 * alloc.c (inhibit_garbage_collection): Simplify.
2134 (Fmemory_use_counts): Ditto.
2135
2136 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
2137 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2138 most-negative-fixnum.
2139
2140 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
2141 (FIXNUM_OVERFLOW_P): New macros.
2142
2143 2001-10-06 Miles Bader <miles@gnu.org>
2144
2145 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2146 scroll_bar_bottom_shadow_pixel fields.
2147 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2148 for the shadows, and tell the toolkit about them if we succeed.
2149 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2150 Free scroll-bar shadow colors.
2151 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2152 Free scroll-bar shadow colors when the background color changes.
2153 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2154 Initialize scroll-bar shadow-color fields.
2155
2156 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2157
2158 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2159
2160 2001-10-05 Miles Bader <miles@gnu.org>
2161
2162 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2163 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
2164 New functions (were in simple.el).
2165 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2166 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2167 (syms_of_minibuf): Initialize them.
2168
2169 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2170
2171 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2172 (tiff_load): Install them as error and warning handler.
2173
2174 2001-10-04 Andrew Innes <andrewi@gnu.org>
2175
2176 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2177 (w32_load_system_font): Don't believe what GetLanguageFontInfo
2178 says; query codepage info directly to determine if font is double byte.
2179 (x_to_w32_charset): Handle private format for unknown charsets.
2180 Handle wildcards in charset spec, by ignoring them.
2181 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2182 "*-" prefix from charset.
2183 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2184 handle the truncated font spec form constructed by font_list_1, so
2185 that we correctly identify the charset fields. Don't remove "*-"
2186 prefix from charset.
2187 (w32_list_synthesized_fonts): Fix argument to alloca.
2188
2189 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2190
2191 * window.h (MINI_WINDOW_P): Use NILP.
2192
2193 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2194
2195 * termhooks.h (struct input_event): Use proper type for `kind'.
2196
2197 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2198
2199 This handles unknown keysyms better than before. For example,
2200 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2201 Emacs formerly completely ignored F5. With the change, it derives
2202 a key symbol from the name of the X keysym, `ccaron' in this case.
2203 Reported by Martin Buchholz.
2204
2205 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2206 unknown keysyms.
2207
2208 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2209 that EVENT->code isn't a function key, use the keysym's name.
2210
2211 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2212
2213 FOREACH is a macro that should make it easier to loop over Lisp
2214 lists with checks for cycles and proper lists.
2215
2216 * lisp.h (LIST_END_P, FOREACH): New macros.
2217
2218 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2219
2220 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2221 called for a lost connection. Prevent dumping core in this case.
2222 Instead print the X error, and exit. On user request.
2223
2224 * xterm.c (error_msg): New variable.
2225 (x_fatal_error_signal): New function.
2226 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2227 as fatal_error_signal_hook around the call to XtCloseDisplay.
2228
2229 * emacs.c (fatal_error_signal_hook): New variable.
2230 (fatal_error_signal): Call that function.
2231
2232 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2233
2234 With this, Emacs prints how much pure storage it will
2235 approximately need in case pure storage overflows while dumping.
2236
2237 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2238 New variables.
2239 (init_alloc_once): Initialize new variables.
2240 (PURE_POINTER_P): Use new variables.
2241 (pure_alloc): If pure storage overflows, allocate from the heap.
2242 (check_pure_size): New function.
2243 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2244
2245 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2246 (check_pure_size): Add prototype.
2247
2248 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2249
2250 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2251
2252 This adds a post-gc-hook that's run with GC inhibited.
2253 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2254
2255 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2256 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2257 (Fgarbage_collect): Run post-gc-hook.
2258
2259 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2260
2261 This adds `defvaralias' and `indirect-variable'. Changes not
2262 directly related to this feature are there to gain the same
2263 performance again as before variable aliases.
2264
2265 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2266 code to get and set symbol values, to take defvaralias into account.
2267
2268 (Note: the new `constant' bit-flag in symbols would make it
2269 possible to define arbitrary read-only variables, e.g. with
2270 `defconst'.)
2271
2272 Documentation is in lispref/variables.texi. Added to NEWS.
2273
2274 * lisp.h (enum symbol_interned): New enumeration.
2275 (struct Lisp_Symbol): Remove member `obarray', add
2276 `indirect_variable', `constant', and `interned'.
2277 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2278 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2279 (indirect_variable): Add prototype.
2280
2281 * print.c (print_preprocess, print_object): Test internedness of
2282 symbols differently.
2283
2284 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2285 bit-fields.
2286 (init_obarray): Likewise for t and nil.
2287
2288 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2289 (Fdefvaralias): New function.
2290 (specbind): Simplify the test if symbol is a constant.
2291 (syms_of_eval): Defsubr Fdefvaralias.
2292
2293 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2294 (Qcyclic_variable_indirection): New variable.
2295 (Fkeywordp): Check for internedness differently.
2296 (Fmakunbound): Simplify the test if symbol is a constant.
2297 (indirect_variable, Findirect_variable): New functions.
2298 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2299 aliased symbol.
2300 (let_shadows_buffer_binding_p): Check for variable aliases.
2301 (set_internal): Simplify the test if SYMBOL is a constant.
2302 If SYMBOL has a buffer-local value and is an alias, use the aliased
2303 symbol instead.
2304 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2305 Sindirect_variable.
2306
2307 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2308 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2309 set directly.
2310
2311 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2312
2313 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2314 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2315 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2316
2317 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2318
2319 * Branch for 21.1.
2320
2321 2001-10-03 Miles Bader <miles@gnu.org>
2322
2323 * callproc.c (syms_of_callproc): Explicitly state in the
2324 documentation for `process-environment' that earlier entries take
2325 precedence over later ones.
2326
2327 2001-10-02 Miles Bader <miles@gnu.org>
2328
2329 * textprop.c (Fnext_char_property_change)
2330 (Fprevious_char_property_change): Remove reference to non-existant
2331 argument OBJECT from doc-string.
2332
2333 2001-10-01 Gerd Moellmann <gerd@gnu.org>
2334
2335 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2336 (try_window_id): Skip back over lines ending in a newline from a
2337 string.
2338
2339 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2340 New bit flag
2341
2342 2001-10-01 Richard M. Stallman <rms@gnu.org>
2343
2344 * search.c (Freplace_match): Doc fix.
2345
2346 2001-09-28 Andrew Innes <andrewi@gnu.org>
2347
2348 * w32menu.c (set_frame_menubar): Take into account that
2349 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2350 <raeburn@gnu.org>.
2351
2352 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2353
2354 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2355
2356 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2357
2358 * s/gnu-linux.h: Fix a typo in comment.
2359
2360 2001-09-28 Andreas Schwab <schwab@suse.de>
2361
2362 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2363 nocombreloc, in case -z combreloc is the default.
2364
2365 2001-09-28 Gerd Moellmann <gerd@gnu.org>
2366
2367 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2368 really going on here.
2369
2370 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2371
2372 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2373
2374 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2375
2376 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2377 utf-8, menu-bar, and latin-N.
2378 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2379 unconditionally now.
2380 (lisp): Add latin-N, since they are preloaded.
2381
2382 2001-09-27 Gerd Moellmann <gerd@gnu.org>
2383
2384 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2385 to the left. Some cleanup.
2386
2387 * xdisp.c (display_mode_element): One more case where a string's
2388 multibyteness should be used for display.
2389
2390 2001-09-26 Gerd Moellmann <gerd@gnu.org>
2391
2392 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2393 reading at EOF.
2394
2395 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
2396 of the only temporarily set echoing flag for deciding when
2397 the cancel echoing.
2398
2399 * keyboard.c (echo_kboard): Make externally visible.
2400
2401 * lisp.h (echo_kboard): Declare extern.
2402
2403 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
2404 fonts_changed_p if we need larger matrices due to vscrolling.
2405 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2406 this round of redisplay if make_cursor_line_fully_visible fails.
2407 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
2408 (try_cursor_movement, try_scrolling): Use them instead of integers.
2409
2410 * dispextern.h (required_matrix_width, required_matrix_height):
2411 Add prototypes.
2412
2413 * dispnew.c (required_matrix_width, required_matrix_height):
2414 New functions.
2415 (allocate_matrices_for_window_redisplay)
2416 (allocate_matrices_for_frame_redisplay: Use them.
2417 Remove parameters CH_DIM.
2418
2419 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2420 and selected_window to the frame of the window whose mode-lines
2421 are displayed, and to the window itself.
2422 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
2423 here.
2424
2425 2001-09-25 Gerd Moellmann <gerd@gnu.org>
2426
2427 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2428 the image cache under us.
2429
2430 * xdisp.c (display_mode_element): If the mode element is a symbol
2431 with a string value, use that string's multibyteness for displaying.
2432
2433 * keyboard.c (read_char): Don't clear a message for a switch-frame
2434 event. From Stefan Monnier <monnier@cs.yale.edu>.
2435
2436 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2437 version for after 21.1.
2438
2439 * xdisp.c (row_containing_pos): Make externally visible.
2440
2441 * dispextern.h (row_containing_pos): Add prototype.
2442
2443 * process.c (send_process): Disable composition if from_byte < 0.
2444 From Kenichi Handa <handa@etl.go.jp>.
2445
2446 2001-09-24 Gerd Moellmann <gerd@gnu.org>
2447
2448 * xterm.c (refreshicon): Function removed.
2449
2450 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2451
2452 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2453
2454 * xterm.c (toplevel): Remove includes in #if 0.
2455
2456 * process.c (sigchld_handler) [LINUX]: Don't return from
2457 the signal handler at the end of the loop.
2458
2459 2001-09-21 Gerd Moellmann <gerd@gnu.org>
2460
2461 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2462 Terminate only if kill returns -1, and errno is ESRCH.
2463
2464 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
2465
2466 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2467
2468 2001-09-20 Gerd Moellmann <gerd@gnu.org>
2469
2470 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2471 since this function can be called during GC.
2472
2473 * callproc.c (Fcall_process): Handle errors from pipe(2).
2474 (child_setup): Delete code in #ifdef vipc.
2475
2476 2001-09-19 Gerd Moellmann <gerd@gnu.org>
2477
2478 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2479 (display_mode_element): Display the string from decode_mode_spec
2480 depending on its multibyteness.
2481
2482 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2483
2484 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2485
2486 2001-09-18 Gerd Moellmann <gerd@gnu.org>
2487
2488 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2489 recursive_edit_unwind.
2490 (recursive_edit_unwind): Set kboard state according to
2491 SINGLE-KBOARD.
2492
2493 * buffer.c (modify_overlay): Don't do nothing if START == END;
2494 This can still be a modification, for example when an overlay has
2495 a before-string or after-string.
2496 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2497 an overlay with before-string or after-string.
2498
2499 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2500 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2501
2502 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2503 first_unchanged_at_end_row is in front of
2504 last_unchanged_at_beg_row. This code should be removed after the
2505 release of 21.1.
2506
2507 2001-09-17 Gerd Moellmann <gerd@gnu.org>
2508
2509 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2510 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2511
2512 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2513 versions >= 2.95.
2514
2515 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2516
2517 * dired.c (Ffile_attributes): Doc fix.
2518
2519 2001-09-14 Gerd Moellmann <gerd@gnu.org>
2520
2521 * fileio.c (Ffile_symlink_p): Fix last change.
2522
2523 * filelock.c (current_lock_owner): Fix last change.
2524
2525 2001-09-13 Gerd Moellmann <gerd@gnu.org>
2526
2527 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2528 take that to mean that the buffer is too small.
2529
2530 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2531 that to mean that the buffer is too small.
2532
2533 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2534 current buffer's multibyteness when discarding the iterator's
2535 stack.
2536
2537 * xfns.c (Fx_window_property): Handle case that property gets
2538 deleted between the two calls to XGetWindowProperty.
2539
2540 2001-09-11 Gerd Moellmann <gerd@gnu.org>
2541
2542 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
2543
2544 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2545 in addition to read-only.
2546
2547 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2548 to t in addition to read-only.
2549
2550 * lisp.h (Qinhibit_modification_hooks): Declare.
2551
2552 * insdel.c (Qinhibit_modification_hooks): New variable.
2553 (syms_of_insdel): Initialize and staticpro it.
2554
2555 * textprop.c (verify_interval_modification): Don't run
2556 modification-hooks if inhibit_modification_hooks.
2557
2558 * dispnew.c (set_window_cursor_after_update): Fix code
2559 finding glyph row containing cursor when cursor_in_echo_area
2560 is >= 0.
2561
2562 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2563 (add_to_log): Use bcopy instead of strcpy.
2564 (init_from_display_pos): Use an explicit loop over bytes in
2565 overlay strings instead of calling index.
2566
2567 2001-09-10 Gerd Moellmann <gerd@gnu.org>
2568
2569 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2570
2571 * dispnew.c (direct_output_for_insert): Don't change IT's
2572 stop_charpos to something in front of its current position.
2573
2574 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2575 `format'.
2576
2577 2001-09-10 Richard M. Stallman <rms@gnu.org>
2578
2579 * frame.c (Fmouse_position): Doc fix.
2580
2581 2001-09-07 Gerd Moellmann <gerd@gnu.org>
2582
2583 * xdisp.c (init_from_display_pos): Don't compare the result
2584 of calling index with NULL.
2585
2586 2001-09-06 Gerd Moellmann <gerd@gnu.org>
2587
2588 * xfns.c (x_set_background_color): Don't change the colors
2589 of the X window of scroll bar widgets.
2590
2591 2001-09-05 Andrew Innes <andrewi@gnu.org>
2592
2593 * w32fns.c (w32_createwindow): Undo last change.
2594
2595 2001-09-05 Gerd Moellmann <gerd@gnu.org>
2596
2597 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2598
2599 * xdisp.c (string_buffer_position): Use *single_char_property*
2600 functions instead of the *single_property* functions.
2601
2602 2001-09-04 Andrew Innes <andrewi@gnu.org>
2603
2604 * w32term.c (w32_read_socket): Add more information to debugging
2605 output.
2606
2607 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2608 from Emacs frames, so that calls to GetClipBox in w32term.c
2609 correctly report when part of a frame is visible (including
2610 scrollbars, etc). This prevents repeated redrawing of frames when
2611 only a scrollbar is visible.
2612 (w32_wnd_proc): Add more frame information to debugging output.
2613
2614 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2615
2616 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2617
2618 2001-09-03 Gerd Moellmann <gerd@gnu.org>
2619
2620 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2621 help-echo for a string which doesn't have help-echo itself, use
2622 get-char-property to obtain the help-echo from the string's buffer
2623 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2624 have mouse-face, look ``under'' the string for mouse-face from an
2625 overlay.
2626 (fast_find_position): Add parameter STOP. In the final row, stop
2627 before glyphs having STOP as object. Don't consider glyphs that
2628 are not from a buffer.
2629
2630 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2631
2632 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2633
2634 * fns.c (Fmd5): Doc fix.
2635
2636 2001-08-31 Gerd Moellmann <gerd@gnu.org>
2637
2638 * composite.c (update_compositions): Do nothing if
2639 inhibit-modification-hooks is set.
2640
2641 2001-08-30 Gerd Moellmann <gerd@gnu.org>
2642
2643 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
2644 and check_message_stack if terminating abnormally. We want
2645 glyph matrices etc. in a core dump.
2646
2647 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2648 (syms_of_xdisp): Initialize them.
2649 (handle_single_display_prop): Don't change point, bind `object',
2650 `position', and `buffer-position' instead to the object having the
2651 `display' property, position in the object and position in the buffer.
2652
2653 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2654 of the buffer if REPLACE is non-nil.
2655
2656 2001-08-29 Gerd Moellmann <gerd@gnu.org>
2657
2658 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2659
2660 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2661
2662 * w32term.c (x_set_glyph_string_background_width)
2663 (show_mouse_face): Track the last changes in xterm.c.
2664
2665 2001-08-28 Gerd Moellmann <gerd@gnu.org>
2666
2667 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2668 string's background width so that multi-line mouse-face is drawn
2669 to the right edge of the window.
2670 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2671 glyphs.
2672
2673 * dispnew.c (direct_output_for_insert): Set updated_area
2674 before inserting/writing glyphs.
2675
2676 * xdisp.c (display_mode_element): Use string_byte_to_char to
2677 determine character positions in strings, use chars_in_text
2678 instead of strwidth.
2679 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2680 a matrix as parameter; this is easier to use from GDB.
2681
2682 2001-08-28 Miles Bader <miles@gnu.org>
2683
2684 * textprop.c (Fprevious_single_char_property_change)
2685 (Fnext_single_char_property_change): Doc fixes.
2686
2687 2001-08-27 Gerd Moellmann <gerd@gnu.org>
2688
2689 * fileio.c (Finsert_file_contents): Allocate, restore, and
2690 free composition data in the case of REPLACE not being nil.
2691
2692 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2693 there exist overlay strings with newlines at POS.
2694 (text_outside_line_unchanged_p): Return 0 if changes start at
2695 START and overlays exist at START. Likewise for END.
2696 (try_window_id): Give up if init_to_row_end returns 0.
2697
2698 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2699 unconditionally.
2700
2701 2001-08-24 Gerd Moellmann <gerd@gnu.org>
2702
2703 * keymap.c (access_keymap): Return the cdr of the binding of
2704 a generic character instead of its definition (KEY . BINDING).
2705
2706 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2707 to 0 also in the REPLACE case.
2708
2709 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2710
2711 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2712 open to determine whether file is readable (as for DOS_NT).
2713
2714 2001-08-23 Gerd Moellmann <gerd@gnu.org>
2715
2716 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2717 coding.type is coding_type_no_conversion or coding_type_raw_text,
2718 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2719 non-nil instead of just setting enable_multibyte_characters in the
2720 buffer to nil.
2721
2722 2001-08-22 Gerd Moellmann <gerd@gnu.org>
2723
2724 * dispextern.h (struct face_cache): Add member
2725 menu_face_changed_p.
2726
2727 * xfaces.c (menu_face_changed_default): New variable.
2728 (menu_face_changed_count): Variable removed.
2729 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2730 the menu_face_changed_default flag, otherwise set the FRAME's
2731 menu_face_changed_p flag if the `menu' face has been changed.
2732 Prevent calling set_font_frame_param if FRAME is t.
2733 (make_face_cache): Initialize cache's menu_face_changed_p
2734 from menu_face_changed_default.
2735 (realize_basic_faces): Look into the frame's face cache to
2736 determine if the menu appearance needs updating.
2737
2738 * keymap.c (access_keymap): Fix last change to not consider
2739 IDX when it has modifiers.
2740
2741 2001-08-21 Gerd Moellmann <gerd@gnu.org>
2742
2743 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2744 . BINDING) exists, where GENERIC-CHAR is the generic character of
2745 the charset of IDX, return BINDING unless there exists a binding
2746 for IDX itself.
2747
2748 2001-08-16 Gerd Moellmann <gerd@gnu.org>
2749
2750 * xrdb.c (SYSV): Don't define on Solaris 2.
2751 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2752
2753 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2754 of the screen line, not text line, containing IT's current position.
2755
2756 2001-08-15 Gerd Moellmann <gerd@gnu.org>
2757
2758 * window.c (window_scroll_pixel_based): Don't recenter if
2759 PT is partially visible in the window.
2760
2761 * xterm.c (expose_window_tree, expose_window, expose_line):
2762 Return 1 when overwriting mouse-face.
2763 (expose_frame): If mouse-face was overwritten, redo it.
2764
2765 * xfaces.c (x_update_menu_appearance): Don't call
2766 set_frame_menubar, let the next redisplay do it.
2767
2768 2001-08-14 Andrew Innes <andrewi@gnu.org>
2769
2770 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2771 drawing glyph string.
2772
2773 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2774
2775 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2776 running HI-UX/MPP.
2777
2778 2001-08-14 Gerd Moellmann <gerd@gnu.org>
2779
2780 * xfaces.c (x_update_menu_appearance): Save and restore value of
2781 interrupt_input_blocked.
2782
2783 2001-08-13 Gerd Moellmann <gerd@gnu.org>
2784
2785 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2786 a line start, move back to the line start.
2787
2788 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2789 exactly when a mini-buffer is active.
2790
2791 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2792 in units of 1/8 character on non window-system frames.
2793 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2794
2795 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2796
2797 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2798 a doc string.
2799
2800 2001-08-09 Gerd Moellmann <gerd@gnu.org>
2801
2802 * keyboard.c (Vpre_help_message): New variable.
2803 (syms_of_keyboard): Initialize and staticpro it.
2804 (show_help_echo): Record current message before displaying a
2805 help-echo, and restore that message when clearing the help.
2806
2807 * xfns.c (x_create_im): Remove prototype.
2808
2809 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2810
2811 * dispnew.c (adjust_glyph_matrix): Undo last change.
2812
2813 2001-08-08 Gerd Moellmann <gerd@gnu.org>
2814
2815 * dispnew.c (adjust_glyph_matrix): In the optimization for
2816 windows whose height has changed, disable partially visible lines.
2817
2818 2001-08-07 Gerd Moellmann <gerd@gnu.org>
2819
2820 * window.c (Frecenter): If ARG < 0, and on a window system
2821 frame, count in some empty lines when we can't move -ARG lines down.
2822
2823 * xdisp.c (start_display): Don't try to determine the continuation
2824 lines width if lines are truncated. It's superfluous and leads to
2825 incorrect results if POS is not visible in the window after
2826 reseating the iterator at the previous line start.
2827
2828 2001-08-06 Gerd Moellmann <gerd@gnu.org>
2829
2830 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2831
2832 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2833
2834 * alloc.c (init_stack): Remove declaration.
2835
2836 2001-08-03 Gerd Moellmann <gerd@gnu.org>
2837
2838 * keyboard.c (read_key_sequence): Check that key is an integer
2839 before comparing it with quit_char.
2840 (add_command_key): Use larger_vector.
2841 (read_char_x_menu_prompt): Instead of converting symbol and
2842 integer events into conses (EVENT . nil), use (EVENT . disabled)
2843 which cannot be confused with valid events.
2844 (read_char): When reading from Vunread_command_events, check for
2845 events of the form (EVENT . disabled) instead of
2846 (EVENT . nil).
2847
2848 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2849 a float, determine the max height from the frame's height.
2850
2851 2001-08-02 Gerd Moellmann <gerd@gnu.org>
2852
2853 * xdisp.c (redisplay_internal): Take message_cleared_p into
2854 account only if minibuf_level == 0.
2855
2856 2001-08-01 Gerd Moellmann <gerd@gnu.org>
2857
2858 * xdisp.c (redisplay_internal): Add a check for the last
2859 displayed message.
2860
2861 * xdisp.c (message_cleared_p): New variable.
2862 (clear_message): Set message_cleared_p when clearing the current
2863 message.
2864 (redisplay_internal): Look at message_cleared_p to capture
2865 the case that the echo area should be cleared.
2866
2867 * keyboard.c (command_loop_1): Fix spelling of
2868 resize_echo_area_exactly.
2869
2870 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
2871
2872 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2873
2874 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2875 current matrix when the window gets smaller.
2876
2877 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2878
2879 * print.c (strout): Cast the character passed to insert_char to
2880 unsigned char, to avoid sign extension when it is promoted to int.
2881
2882 2001-07-31 Gerd Moellmann <gerd@gnu.org>
2883
2884 * fileio.c (Finsert_file_contents): Don't treat a return value
2885 of 0 from emacs_read as an IO error.
2886
2887 2001-07-30 Gerd Moellmann <gerd@gnu.org>
2888
2889 * keyboard.c (abs): New macro.
2890 (double_click_fuzz): New variable.
2891 (make_lispy_event): Use it to determine what makes a double-click.
2892 (syms_of_keyboard): DEFVAR_INT it.
2893
2894 * xmenu.c (set_frame_menubar): Take into account that
2895 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2896 <raeburn@gnu.org>.
2897
2898 2001-07-27 Gerd Moellmann <gerd@gnu.org>
2899
2900 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2901
2902 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2903 of row's visible height.
2904
2905 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
2906 deal with the first overlay string having an image `display' property.
2907 (try_window_reusing_current_matrix, compute_line_metrics):
2908 Fix computation of row's visible height for the case that part of the
2909 row is invisible above and part of the row is at the same time
2910 invisible below the window.
2911
2912 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2913
2914 * xfns.c (x-show-tip): Doc fix.
2915
2916 * xfns.c (Vx_max_tooltip_size): New variable.
2917 (syms_of_xfns): DEFVAR_LISP it.
2918 (Fx_show_tip): Set frame's window_width to the width of the
2919 window. Use a maximum tooltip size specified by
2920 Vx_max_tooltip_size, if that has valid contents.
2921 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2922
2923 2001-07-26 Andrew Innes <andrewi@gnu.org>
2924
2925 * w32term.c (x_display_list): New variable.
2926 (w32_term_init): Set it.
2927
2928 * w32term.h (x_display_list): New extern.
2929
2930 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2931
2932 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
2933 is non-nil, instead of when redisplaying_p is non-zero.
2934 See comment there.
2935 (mark_window_display_accurate_1): Add an assertion.
2936
2937 2001-07-25 Gerd Moellmann <gerd@gnu.org>
2938
2939 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2940
2941 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2942 events so that we get a chance of processing expose events.
2943
2944 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2945
2946 2001-07-24 Gerd Moellmann <gerd@gnu.org>
2947
2948 * xfns.c (valid_image_p): Protect better against invalid image
2949 specifications. Previous code could signal an error.
2950
2951 2001-07-23 Gerd Moellmann <gerd@gnu.org>
2952
2953 * indent.c (current_column): Fix column computation in the
2954 presence of display table entries.
2955 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2956
2957 * dispnew.c (adjust_glyph_matrix): In the optimization for
2958 windows whose height has changed, use the new window height
2959 to compute which rows to invalidate.
2960
2961 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2962 (MAX_10_EXP): New macro.
2963 (Fformat): Use it.
2964
2965 * coding.c (code_convert_region): Handle the multibyte case if
2966 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2967
2968 2001-07-20 Gerd Moellmann <gerd@gnu.org>
2969
2970 * dispextern.h (struct face): Change type of `stipple' to
2971 int; it's an ID.
2972
2973 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2974
2975 2001-07-19 Gerd Moellmann <gerd@gnu.org>
2976
2977 * dispnew.c (update_window): Don't set the cursor at the end
2978 of the update if display update has been paused.
2979
2980 * composite.h (syms_of_composite): Renamed from syms_of_composition.
2981
2982 2001-07-18 Ken Raeburn <raeburn@gnu.org>
2983
2984 * fns.c (Fset_char_table_default): Check that a charset is defined
2985 before checking its dimension.
2986
2987 2001-07-17 Ken Raeburn <raeburn@gnu.org>
2988
2989 * coding.c (setup_coding_system): Don't do any designation based
2990 on reg_bits if charset is not yet defined.
2991
2992 * lisp.h (XVECTOR): Verify correct object type before returning a
2993 pointer, using eassert.
2994
2995 2001-07-17 Gerd Moellmann <gerd@gnu.org>
2996
2997 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2998 Increase to 4096 because of paste problems reported on GNU/Linux.
2999
3000 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
3001
3002 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
3003
3004 2001-07-16 Gerd Moellmann <gerd@gnu.org>
3005
3006 * fileio.c (unwind_read): Function removed.
3007 (read_non_regular, read_non_regular_quit): New functions.
3008 (Finsert_file_contents): When reading from non-regular files,
3009 arrange to catch a `quit' and terminate the loop. Rearrange
3010 code so that a `quit' when reading from a regular file doesn't
3011 insert text in the buffer.
3012
3013 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
3014 Clear faces afterwards.
3015 (clear_font_table): Take a x_display_info parameter. Don't free
3016 fonts being the default font of any frame on the given display.
3017
3018 2001-07-13 Gerd Moellmann <gerd@gnu.org>
3019
3020 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
3021 instead of CHAR_STRING which can signal an error.
3022
3023 * charset.c (char_to_string_1): Extracted from char_to_string.
3024 Return -1 instead of signaling an error.
3025 (char_to_string): Use it.
3026
3027 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3028
3029 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3030
3031 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3032 is t, don't try to append anything to it.
3033
3034 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3035
3036 * dired.c (file_name_completion): Pass dp->d_name to
3037 Fstring_match, not elt, which is always nil here.
3038
3039 2001-07-12 Gerd Moellmann <gerd@gnu.org>
3040
3041 * xselect.c (x_decline_selection_request): Handle errors
3042 caused by receivers that have vanished.
3043
3044 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3045 ignoring events on foreign windows in #if 0. Always dispatch
3046 the event after checking it with x_handle_property_notify.
3047
3048 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
3049 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3050 TRACE macros to facilitate debugging. Add additional trace statements.
3051 (toplevel): Add prototypes for file-local functions.
3052 (x_atom_to_symbol): Remove DPYINFO parameter.
3053
3054 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3055
3056 * w32menu.c (menubar_selection_callback, w32_menu_show):
3057 Initialize `entry' to nil.
3058 (w32_dialog_show): Remove unused `save_wv' variable.
3059 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3060
3061 2001-07-11 Gerd Moellmann <gerd@gnu.org>
3062
3063 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3064
3065 * fileio.c (unwind_read): Print a message when discarding inserted
3066 text or switching the buffer to unibyte. Change parameter.
3067 (Finsert_file_contents): Don't pass VISIT to unwind_read.
3068
3069 * fileio.c (unwind_read): New function.
3070 (Finsert_file_contents): Record it as unwind-function for
3071 the case that reading is interrupted by C-g.
3072
3073 2001-07-10 Gerd Moellmann <gerd@gnu.org>
3074
3075 * dispnew.c (update_window): Don't skip the header-line
3076 update when scrolling_window returns 0.
3077
3078 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3079
3080 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
3081 for the case that x_decode_color signals an error.
3082
3083 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3084
3085 2001-07-09 Gerd Moellmann <gerd@gnu.org>
3086
3087 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3088 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3089 around ioctls.
3090
3091 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3092
3093 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3094 doc string line for dos-timezone-offset.
3095
3096 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3097 inline assembly, to avoid compiler warnings.
3098 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3099 line for dos-unsupported-char-glyph.
3100
3101 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3102
3103 2001-07-05 Gerd Moellmann <gerd@gnu.org>
3104
3105 * sound.c: Include Emacs' header files with #include "...".
3106
3107 * eval.c (specbind): Additionally record the buffer that was
3108 current when a buffer-local or frame-local variable was bound.
3109
3110 2001-07-04 Gerd Moellmann <gerd@gnu.org>
3111
3112 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3113 to unibyte characters in unibyte buffers.
3114
3115 2001-07-03 Gerd Moellmann <gerd@gnu.org>
3116
3117 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3118 the frame on the binding stack. Change format of entries for
3119 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3120 (unbind_to): Handle unbinding a frame-local variable.
3121
3122 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
3123 glyphs and truncation glyphs at the end of a row from its pixel width.
3124 (dump_glyph_row): Print row's continuation_lines_width.
3125 (try_window_id): Take the shortcut if ZV is visible in the
3126 window, but there are actually no changes at ZV.
3127
3128 2001-07-02 Gerd Moellmann <gerd@gnu.org>
3129
3130 * xterm.h (x_free_dpy_colors): Add prototype.
3131
3132 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3133 right number of arguments.
3134
3135 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3136 ($(lwlibdir)TAGS): New target.
3137 (TAGS): Fix dependency list.
3138
3139 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3140 with input blocked.
3141
3142 2001-06-30 Gerd Moellmann <gerd@gnu.org>
3143
3144 * emacs.c (main): Remove extern declaration for sys_nerr, which
3145 isn't used and causes a compilation error with GCC 3.0 on
3146 FreeBSD 4.3.
3147
3148 2001-06-27 Gerd Moellmann <gerd@gnu.org>
3149
3150 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3151 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
3152 (toplevel): Include <signal.h> and syssignal.h.
3153
3154 * sound.c (vox_configure, vox_close): Turn off atimers
3155 around ioctls.
3156
3157 2001-06-26 Gerd Moellmann <gerd@gnu.org>
3158
3159 * keyboard.c (read_char) <non_reread>: Record the previous idle
3160 start time before calling timer_stop_idle.
3161 (read_char) <reread_first>: After processing a help-echo event,
3162 restore the previous idle start time.
3163
3164 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3165 the start of invisible text.
3166 (setup_for_ellipsis): New function.
3167 (next_overlay_string): After all overlay strings have been
3168 processed, display an ellipsis if necessary.
3169 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3170 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3171
3172 * dispextern.h (struct iterator_stack_entry): Add member
3173 display_ellipsis_p.
3174
3175 2001-06-25 Gerd Moellmann <gerd@gnu.org>
3176
3177 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3178 on the value of the wait-for-wm frame parameter.
3179
3180 * xterm.h (struct x_output): Add member wait_for_wm.
3181
3182 * xfns.c (Qwait_for_wm): New variable.
3183 (x_frame_parms): Add entry for `wait-for-wm".
3184 (x_set_wait_for_wm): New function.
3185 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3186 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3187
3188 * xdisp.c (try_window_id) <all changes below window end>: Don't
3189 take this shortcut if ZV is visible in the window.
3190 (try_window_id): When checking for window start being in changed
3191 text, don't check that the buffer's size has changed.
3192
3193 2001-06-23 Richard M. Stallman <rms@gnu.org>
3194
3195 * minibuf.c (Fcompleting_read): Doc fix.
3196
3197 2001-06-19 Gerd Moellmann <gerd@gnu.org>
3198
3199 * composite.c (Ffind_composition_internal): Accept ZV
3200 and a string's end position as POS.
3201
3202 2001-06-18 Gerd Moellmann <gerd@gnu.org>
3203
3204 * composite.c (Ffind_composition_internal): Check POS
3205 for validity.
3206
3207 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3208
3209 * editfns.c (Fmessage_box): If the frame is not under a window
3210 system, output the message in the echo area.
3211
3212 2001-06-14 Richard M. Stallman <rms@gnu.org>
3213
3214 * xdisp.c (try_window_id): When EOB is visible, don't treat
3215 insertion at EOB as if it were "off the bottom of the screen."
3216
3217 2001-06-11 Andrew Innes <andrewi@gnu.org>
3218
3219 * w32proc.c (create_child): Add new parameter is_gui_app.
3220 (w32_executable_type): Add new parameter is_gui_app.
3221 (sys_spawnve): Use it.
3222 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3223 SIGQUIT. This matches better how the signals are interpreted by
3224 MSVC compiled programs.
3225 (syms_of_ntproc): Update docstring.
3226
3227 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3228
3229 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3230 well otherwise note_mouse_highlight might optimize away highlighting
3231 if we pass over that same overlay again.
3232
3233 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3234
3235 * lread.c (Fload): Document that the argument is run via
3236 substitute-in-file-name.
3237
3238 2001-05-31 Gerd Moellmann <gerd@gnu.org>
3239
3240 * Makefile.in (bootstrap-doc): New target.
3241 (bootstrap-emacs): Depend on it.
3242
3243 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3244 auto-save-list-file-name when shutting down Emacs, because
3245 creating the directory might signal an error, and leaves
3246 Emacs in a strange state.
3247
3248 * term.c: (tty_cursor_hidden): New variable.
3249 (update_begin): Don't call tty_hide_cursor. Clean up.
3250 (update_end, set_terminal_window, set_scroll_region): Clean up.
3251 (ring_bell, reset_terminal_modes): Clean up.
3252 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3253 on tty_cursor_hidden.
3254 (write_glyphs): Call tty_hide_cursor.
3255
3256 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3257
3258 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3259
3260 2001-05-30 Gerd Moellmann <gerd@gnu.org>
3261
3262 * xfns.c (enum image_value_type): New enumerator
3263 IMAGE_STRING_OR_NIL_VALUE.
3264 (parse_image_spec): Handle it.
3265 (xbm_format, pbm_format): Use it for :foreground and :background.
3266 (xbm_load, pbm_load): Check for nil color names.
3267
3268 * xterm.c (note_mouse_highlight): If an overlapping overlay
3269 exists, but we find that we highlight the same overlay as before,
3270 don't do the highlighting again.
3271
3272 2001-05-29 Gerd Moellmann <gerd@gnu.org>
3273
3274 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3275 Protect unibyte strings created by replacing their multibyte
3276 equivalents in menu_items.
3277
3278 * keymap.c (Fsingle_key_description): NUL-terminate the string
3279 buffer before calling build_string.
3280
3281 * callproc.c (Fcall_process): Deal with decode_coding returning
3282 CODING_FINISH_INCONSISTENT_EOL.
3283
3284 2001-05-28 Gerd Moellmann <gerd@gnu.org>
3285
3286 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3287 an item's name with its key description in case the description
3288 is a multibyte string.
3289
3290 * keymap.c (Fsingle_key_description): Create a multibyte string
3291 only if necessary.
3292
3293 * macros.c (Fstart_kbd_macro): Doc fix.
3294
3295 * xterm.c (cursor_in_mouse_face_p): New function.
3296 (x_draw_stretch_glyph_string): Use it to choose a different GC
3297 when drawing a cursor within highlighted text.
3298
3299 * editfns.c (char_property_eq): Put in #if 0.
3300
3301 * indent.c (string_display_width): Put in #if 0.
3302
3303 * lread.c (Fload): Remove unused label.
3304
3305 * termcap.c (speeds): Put in #if 0.
3306
3307 2001-05-18 Gerd Moellmann <gerd@gnu.org>
3308
3309 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3310
3311 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3312 transformation matrix by 10.
3313
3314 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3315
3316 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3317 only if it's equal to the former foreground pixel color.
3318 (x_set_foreground_color, x_set_background_color)
3319 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3320
3321 2001-05-16 Dave Love <fx@gnu.org>
3322
3323 * insdel.c (signal_before_change, signal_after_change): Consider a
3324 local change hook which changes the buffer.
3325
3326 * process.c (read_process_output): Don't call signal_after_change
3327 and update_compositions after insert_from_string_before_markers.
3328
3329 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3330
3331 * xfaces.c (split_font_name): Use the right field when
3332 checking for `[...]' syntax.
3333
3334 * buffer.c (copy_overlays): New function.
3335 (clone_per_buffer_values): Use it.
3336
3337 * buffer.h (OVERLAY_PLIST): New macro.
3338
3339 * keymap.c (Fsingle_key_description): Replace a build_string with
3340 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3341
3342 * fontset.c (Ffontset_info): Check that face is non-null
3343 before accessing its fields.
3344
3345 2001-05-15 Gerd Moellmann <gerd@gnu.org>
3346
3347 * keyboard.c (read_key_sequence): Prevent generating a fake
3348 prefix key twice.
3349
3350 * xfaces.c (split_font_name): Handle `[...]' for the right
3351 font name fields.
3352
3353 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3354 of CCL_STAT_INVALID_CMD.
3355
3356 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3357
3358 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3359 in <var> has no default value yet.
3360
3361 * xfaces.c (try_alternative_families): First try the FAMILY.
3362 And if nothing is found in the end, try again with scalable fonts.
3363 (try_font_list): Let try_alternative_families do a bit more of
3364 the work. Only use FAMILY if it is not nil.
3365 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3366
3367 2001-05-14 Gerd Moellmann <gerd@gnu.org>
3368
3369 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3370 pointer shape when show_mouse_face has already done it.
3371
3372 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
3373 full-width rows.
3374
3375 * xfaces.c (split_font_name): Make sure to leave the loop
3376 with the right value of `i'.
3377
3378 * xfaces.c (split_font_name): Handle matrix transformations
3379 in the pixel and point size fields of XLFD font names.
3380 (xlfd_point_size): Likewise.
3381
3382 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3383
3384 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
3385 (x_to_w32_font): Add prototype.
3386
3387 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3388 redefining, to avoid compiler warnings.
3389
3390 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3391
3392 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3393 (w32_get_bdf_glyph): Cast between unsigned char and char when
3394 passing arguments to subroutines, to shut up compiler warnings.
3395 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3396 GET_HEX_VAL.
3397
3398 * xfaces.c: Include keyboard.h before frame.h, not after it.
3399
3400 * widget.c: Include keyboard.h before frame.h.
3401
3402 * w32term.h (struct image, struct face): Forward declaration, to
3403 avoid compiler warnings.
3404
3405 2001-05-11 Gerd Moellmann <gerd@gnu.org>
3406
3407 * keyboard.c (read_key_sequence): Don't modify events when
3408 generating fake prefix keys (mode-line, scroll-bar, ...) since
3409 this prevents proper processing of such events when pushed back
3410 into unread-command-events.
3411
3412 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3413 actually redrawn. Make the function static.
3414 (note_mouse_highlight): Fix a case where the mouse cursor
3415 was changed back to the text cursor.
3416
3417 * xterm.h (clear_mouse_face): Remove prototype.
3418
3419 * xdisp.c (try_window_id): Fix the fix and set the right
3420 window_end_vpos.
3421
3422 * xdisp.c (try_window_id): Fix computation of window end in the
3423 case that lines were deleted at the end of the window. Add some
3424 more debug_method_adds.
3425
3426 * xfaces.c (try_alternative_families): New function.
3427 (try_font_list): Use it. If ATTRS specifies a family, check
3428 fonts from that family first.
3429 (choose_face_font): Remove code setting the family part of
3430 the pattern to nil.
3431
3432 2001-05-10 Gerd Moellmann <gerd@gnu.org>
3433
3434 * xdisp.c (try_window_id): Fix case of all changes before
3435 the window start.
3436
3437 * xdisp.c (try_window_id): Add some xasserts.
3438
3439 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3440
3441 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3442
3443 2001-05-09 Dave Love <fx@gnu.org>
3444
3445 * xdisp.c (GIVE_UP): Fix for K&R C.
3446
3447 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3448
3449 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3450
3451 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3452 back to the text cursor shape without need.
3453
3454 2001-05-07 Gerd Moellmann <gerd@gnu.org>
3455
3456 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3457
3458 * dispextern.h (inverse_video): Declare extern.
3459
3460 * keyboard.c (delete_kboard): Handle the case that selected_frame
3461 has been deleted in the course of x_connection_closed.
3462
3463 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3464
3465 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3466 Fix the change from 2001-04-30.
3467
3468 2001-05-03 Gerd Moellmann <gerd@gnu.org>
3469
3470 * xfns.c (file_dialog_unmap_cb): New function.
3471 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3472 where a dialog is closed via the window manager.
3473
3474 * xdisp.c (try_window_id): Cases of changes all in front of
3475 the window start or all below the window end mostly rewritten.
3476 (redisplay_window): Move the tests if try_window_id is
3477 applicable to try_window_id.
3478 (GIVE_UP): New macro.
3479
3480 2001-05-02 Gerd Moellmann <gerd@gnu.org>
3481
3482 * xterm.c (expose_window): Return int. If W is the window
3483 currently being updated, mark the frame garbaged.
3484 Fix computation of rows intersecting the exposed rectangle.
3485 (expose_window_tree): Stop when expose_window returns 0.
3486
3487 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3488 again if it has already been drawn.
3489
3490 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3491
3492 * syntax.c (update_syntax_table): Check that oldi has the same
3493 properties as old_prop before deciding not to invalidate.
3494
3495 2001-04-30 Gerd Moellmann <gerd@gnu.org>
3496
3497 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3498 read-only text that is so because of text properties.
3499
3500 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
3501 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
3502 windows that are components of a Lucid menu bar.
3503
3504 2001-04-27 Gerd Moellmann <gerd@gnu.org>
3505
3506 * term.c (turn_on_face): Fix reverse video handling on terminals
3507 that don't support colors.
3508
3509 2001-04-26 Gerd Moellmann <gerd@gnu.org>
3510
3511 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3512 a non-buffer.
3513
3514 2001-04-25 Gerd Moellmann <gerd@gnu.org>
3515
3516 * term.c (toggle_highlight): New function.
3517 (turn_on_face): Change handling of reverse video.
3518
3519 * process.c (wait_reading_process_input):
3520 Call record_asynch_buffer_change only if a timer really changed buffers.
3521
3522 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3523 of the number of overlays to check.
3524
3525 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3526
3527 * xdisp.c (try_window_id): Fix a case where window_end_pos
3528 and window_end_bytepos were not adjusted.
3529
3530 2001-04-23 Gerd Moellmann <gerd@gnu.org>
3531
3532 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3533 zero instead of -1.
3534
3535 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3536
3537 * process.c (wait_reading_process_input) [!subprocesses]:
3538 Don't reference waiting_for_user_input_p, it's not defined in the
3539 branch without async subprocesses support.
3540
3541 2001-04-19 Gerd Moellmann <gerd@gnu.org>
3542
3543 * keyboard.c (delete_kboard): Prevent a dangling reference
3544 from current_kboard to KB, which is freed.
3545
3546 * process.c (wait_reading_process_input):
3547 Call record_asynch_buffer_change after running timers, to make
3548 read_key_sequence aware of buffer changes from under it.
3549
3550 2001-04-18 Gerd Moellmann <gerd@gnu.org>
3551
3552 * xfaces.c (Qscalable_fonts_allowed): New variable.
3553 (realizing_basic_faces_p): Removed.
3554 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3555 removed.
3556 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
3557 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3558 for scalable-fonts-allowed to t.
3559
3560 * fileio.c (Finsert_file_contents): If the file size returned from
3561 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
3562 read from files on a procfs whose contents are generated dynamically.
3563
3564 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3565
3566 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3567 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3568 (__memalign_hook): Make the two prototypes consistent.
3569
3570 2001-04-17 Gerd Moellmann <gerd@gnu.org>
3571
3572 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3573 matrix of mini-windows.
3574
3575 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3576
3577 * intervals.c (find_interval): Don't rebalance during signal handling.
3578
3579 2001-04-11 Gerd Moellmann <gerd@gnu.org>
3580
3581 * fns.c: Include blockinput.h.
3582
3583 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3584
3585 2001-04-10 Gerd Moellmann <gerd@gnu.org>
3586
3587 * fns.c (Fcompare_strings): Fix return values.
3588
3589 * window.c (window_scroll): Change the meaning of N to mean
3590 N screen-fulls or N lines.
3591 (window_scroll_pixel_based, window_scroll_line_based)
3592 (scroll_command, Fscroll_other_window): Change accordingly.
3593
3594 * window.c (window_scroll_pixel_based, Frecenter):
3595 Call window_box_height instead of using it.last_visible_y for the
3596 height of the window.
3597
3598 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3599 instead of using it.last_visible_y for the height of the window.
3600
3601 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
3602 From Dan Holmsand <dan@eyebee.com>.
3603
3604 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
3605 able to write to hidden and system files. From Dan Holmsand
3606 <dan@eyebee.com>.
3607
3608 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3609 Holmsand <dan@eyebee.com>.
3610
3611 2001-04-09 Gerd Moellmann <gerd@gnu.org>
3612
3613 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3614
3615 * window.c (window_internal_height): Return 1 less if the
3616 window has a header line.
3617
3618 * xdisp.c (try_window_id): When scrolling on a terminal, take
3619 the change of window_internal_height into account.
3620
3621 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3622
3623 * gmalloc.c (align): If the argument SIZE would overflow
3624 __malloc_ptrdiff_t, fail right away.
3625
3626 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3627
3628 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3629 Make sure the tooltip is completely visible.
3630 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3631
3632 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3633
3634 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3635
3636 2001-04-06 Dave Love <fx@gnu.org>
3637
3638 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3639 Fix test of `from'.
3640
3641 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3642
3643 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
3644
3645 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3646
3647 2001-04-05 Gerd Moellmann <gerd@gnu.org>
3648
3649 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3650
3651 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
3652
3653 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3654 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3655
3656 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3657 shell widget's position only if it is non-null.
3658
3659 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3660 Set f->output_data.x->widget to null after destroying it.
3661
3662 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3663 FILENAME to bring it in synch with the documentation.
3664
3665 * xfaces.c (realizing_basic_faces_p): Renamed from
3666 realize_default_face_p.
3667 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3668 (realize_default_face): Don't set the flag.
3669
3670 2001-04-04 Gerd Moellmann <gerd@gnu.org>
3671
3672 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3673
3674 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3675
3676 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3677 the buffer that was used for echoing.
3678
3679 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3680 (first_font_matching): Removed unused function.
3681 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3682 (may_use_scalable_font_p): Remove parameter FONT; rename
3683 parameter NAME to FONT.
3684 (x_face_list_fonts): Fix missing bounds check.
3685 (realizing_default_face_p): New variable.
3686 (realize_default_face): Set and clear that flag.
3687 (x_face_list_fonts): When called during the realization of the
3688 default face, and no matching fonts are found when ignoring
3689 scalable fonts and fonts matching a regexp from
3690 face-ignored-fonts, try without ignoring fonts.
3691
3692 2001-04-03 Gerd Moellmann <gerd@gnu.org>
3693
3694 * xfns.c (postprocess_image): New function.
3695 (lookup_image): Call it for all image types except PostScript.
3696 (x_kill_gs_process): Call postprocess_image.
3697
3698 * xterm.c (x_use_underline_position_properties): New variable.
3699 (x_draw_glyph_string): Use it.
3700 (syms_of_xterm): DEFVAR_BOOL it.
3701
3702 2001-04-02 Gerd Moellmann <gerd@gnu.org>
3703
3704 * xterm.c (x_alloc_nearest_color_1): New function.
3705 (x_alloc_nearest_color): Use it.
3706 (x_color_cells): Take a Display as argument, instead of a frame.
3707 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3708 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3709 (x_initialize): Register cvt_string_to_pixel as resource converter
3710 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3711
3712 2001-03-30 Gerd Moellmann <gerd@gnu.org>
3713
3714 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3715 (set_iterator_to_next): If a string from a display property ends,
3716 consider the case that this might also be the end of an
3717 overlay string having the display property.
3718
3719 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
3720
3721 * xdisp.c (reseat_to_string): Undo last change.
3722
3723 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3724 matrix of a window when the header line changes, when
3725 new rows are allocated, or when the width changes.
3726
3727 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3728
3729 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
3730
3731 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3732
3733 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3734 deprecated.
3735
3736 2001-03-29 Gerd Moellmann <gerd@gnu.org>
3737
3738 * data.c (Fsubr_interactive_form): New function.
3739 (syms_of_data): Defsubr it.
3740
3741 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3742 (live_float_p, live_misc_p): Return 1 only if the offset of the
3743 pointer in its block is >= 0.
3744
3745 2001-03-28 Paul Eggert <eggert@twinsun.com>
3746
3747 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3748 microseconds calcuation. Avoid double-rounding problem.
3749 In doc string, warn that the result is approximate.
3750
3751 2001-03-28 Gerd Moellmann <gerd@gnu.org>
3752
3753 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3754 bind `inhibit-eval-during-redisplay' to t.
3755
3756 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3757
3758 * xdisp.c (inhibit_eval_during_redisplay)
3759 (Qinhibit_eval_during_redisplay): New variables.
3760 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3761 don't eval, return nil instead.
3762 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3763 Initialize Qinhibit_eval_during_redisplay.
3764
3765 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3766 the iterator's multibyte_p flag.
3767
3768 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3769 instead of setting it to zero; it's incremented for each frame
3770 where the menu face is changed.
3771
3772 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3773 change bottom shadow accordingly.
3774
3775 * xterm.c (expose_window_tree, expose_frame): Don't compute
3776 intersections here.
3777 (expose_window): Do it here instead.
3778 (x_draw_glyph_string): Fix a computation of the underline position.
3779
3780 * bytecode.c (BYTE_CODE_QUIT): New macro.
3781 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3782
3783 2001-03-27 Gerd Moellmann <gerd@gnu.org>
3784
3785 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3786 Give up if matrix starts in an ellipsis.
3787 (init_from_display_pos): Do nothing if POS doesn't specify
3788 a dpvec_index but the iterator has such a position.
3789
3790 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3791
3792 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3793 x/y position is (0, 0) after destroying the menu bar, restore
3794 its original position.
3795
3796 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3797 (init_from_display_pos): Use it.
3798 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3799
3800 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3801
3802 * xdisp.c (try_window_id): Undo last change.
3803
3804 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3805
3806 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3807
3808 * buffer.c (syms_of_buffer): Doc fix.
3809
3810 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3811
3812 * xfaces.c (x_update_menu_appearance): Use local variable
3813 popup_path for setting font resources.
3814
3815 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3816
3817 * frame.c (Fframe_list): Don't reference tip_frame if
3818 HAVE_WINDOW_SYSTEM is not defined.
3819
3820 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3821 <wl@gnu.org>.
3822
3823 2001-03-25 Gerd Moellmann <gerd@gnu.org>
3824
3825 * xdisp.c (init_from_display_pos): Test invisible property
3826 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
3827
3828 * xdisp.c (redisplay_internal) <update one window>: Make sure
3829 last_arrow_position and last_arrow_string are set.
3830
3831 * frame.c (Fframe_list): Don't return a tooltip frame.
3832
3833 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3834
3835 * xdisp.c (mark_window_display_accurate_1): New function,
3836 extracted from mark_window_display_accurate.
3837 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
3838 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3839 (mark_window_display_accurate): Use it.
3840 (redisplay_internal): Use it for the selected window.
3841 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3842 for the selected frame.
3843
3844 * xdisp.c Use make_number, for readability.
3845 (try_window_id): Disable rows below the window end.
3846 (try_window_reusing_current_matrix): Use cursor_row_p.
3847 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3848 of rows.
3849 (init_from_display_pos): If POS specifies a position in a display
3850 vector, maybe get the iterator set up for that ellipsis.
3851
3852 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3853
3854 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3855
3856 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3857
3858 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3859
3860 * xfaces.c (x_update_menu_appearance): Use a different path
3861 for Lucid popup menus.
3862
3863 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3864
3865 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3866
3867 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3868 (string_buffer_position): Use `make_number'.
3869
3870 2001-03-22 Gerd Moellmann <gerd@gnu.org>
3871
3872 * xfaces.c (x_update_menu_appearance): Renamed from
3873 x_set_menu_face_resources. Use different resources for popups.
3874
3875 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3876 (GC_CHECK_STRING_BYTES): Don't define.
3877
3878 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3879 Removed, together with subroutines.
3880 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
3881 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
3882
3883 * dispextern.h (x_set_menu_resources_from_menu_face):
3884 Remove prototype.
3885
3886 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
3887 Remove calls to x_set_menu_resources_from_menu_face.
3888
3889 * xfaces.c (xm_set_menu_resources_from_menu_face):
3890 Remove #ifndef LESSTIF_VERSION.
3891
3892 * xmenu.c: Include widget.h.
3893 (single_submenu): Return int. Some cleanup.
3894 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3895
3896 2001-03-21 Gerd Moellmann <gerd@gnu.org>
3897
3898 * xterm.c (x_update_window_end): Handle overwritten mouse face
3899 also for tool bar windows.
3900 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3901 DRAW is DRAW_IMAGE_RAISED.
3902
3903 2001-03-20 Gerd Moellmann <gerd@gnu.org>
3904
3905 * print.c (syms_of_print): Doc fixes.
3906
3907 * fns.c (Fmd5): Doc fix.
3908
3909 2001-03-19 Gerd Moellmann <gerd@gnu.org>
3910
3911 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3912 Clear area of the frame not occupied by the scroll bar.
3913
3914 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3915 tip frame's root window buffer to *tip* right after creating
3916 the frame.
3917
3918 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3919 is an integer don't have to be for space characters.
3920
3921 2001-03-16 Gerd Moellmann <gerd@gnu.org>
3922
3923 * indent.c (current_column, current_column_1, Fmove_to_column)
3924 (compute_motion): Handle characters from display vectors differently.
3925
3926 2001-03-15 Kenichi Handa <handa@etl.go.jp>
3927
3928 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3929 drawing glyph string.
3930
3931 2001-03-15 Gerd Moellmann <gerd@gnu.org>
3932
3933 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3934 (command_loop_1): Undo last change.
3935
3936 * xterm.c (fast_find_position): Return the correct vpos.
3937
3938 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
3939 non-null, set a per-buffer value in BUF instead of the current buffer.
3940 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3941 Call store_symval_forwarding with BUF null.
3942 (set_internal): Call store_symval_forwarding with the BUF
3943 parameter passed to set_internal. Formerly, the value was always
3944 set in the current buffer; the buffer recorded in specbind for
3945 this case wasn't used.
3946 (arith_driver): Reindent.
3947
3948 * buffer.c (swap_out_buffer_local_variables):
3949 Call store_symval_forwarding with BUF null.
3950
3951 * lisp.h (store_symval_forwarding): Change prototype.
3952
3953 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3954
3955 2001-03-14 Gerd Moellmann <gerd@gnu.org>
3956
3957 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3958 FOR_DELETION. Avoid resizing the mini-window of the selected
3959 frame if FOR_DELETION is set.
3960 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3961 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3962 signature.
3963
3964 * window.c (Fset_window_configuration): Change call to
3965 do_switch_frame to new format.
3966
3967 * keyboard.c (quit_throw_to_read_char): Change call to
3968 do_switch_frame to new format.
3969
3970 * lisp.h (do_switch_frame): Change prototype.
3971
3972 * frame.c (Fframe_parameters): In the `buffer-list' frame
3973 parameter, store the buffer list of FRAME, not the list of the
3974 selected frame.
3975
3976 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3977 box just because the glyph row's full_width_p flag is set.
3978
3979 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3980
3981 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3982 skip the padding blanks inserted in extend_face_to_end_of_line,
3983 before checking for trailing whitespace.
3984
3985 2001-03-13 Gerd Moellmann <gerd@gnu.org>
3986
3987 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
3988 Remove special handling for LessTif/Motif.
3989 (toplevel): Don't include Xm/Xm.h.
3990
3991 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3992 Remove workaround code for LessTif; it doesn't work anymore.
3993
3994 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
3995 Xm/ScrollBarP.h.
3996
3997 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3998 Don't access private scroll bar data; it's no longer necessary with
3999 contemporary LessTif.
4000
4001 * xfaces.c (xm_set_menu_resources_from_menu_face):
4002 Change #if 0 to #ifndef LESSTIF_VERSION.
4003
4004 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
4005 removing button grabs.
4006
4007 2001-03-13 Kenichi Handa <handa@etl.go.jp>
4008
4009 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
4010 and clip-large-size-font as obsolete.
4011
4012 * lread.c (read_multibyte): Check the validity of multibyte
4013 sequence. If invalid, return the first byte.
4014
4015 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4016
4017 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
4018 before running the command; timer functions or process
4019 filters may have set it.
4020
4021 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4022
4023 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4024 Doc fix.
4025
4026 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4027
4028 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4029 to sprintf.
4030
4031 2001-03-09 Gerd Moellmann <gerd@gnu.org>
4032
4033 * dispextern.h (string_buffer_position): Add prototype.
4034
4035 * xdisp.c (string_buffer_position, display_prop_string_p)
4036 (single_display_prop_string_p): New functions.
4037
4038 * xterm.c (note_mouse_highlight): If there's no help-echo on
4039 a string, look at the buffer text ``under'' it.
4040
4041 * keyboard.c (make_lispy_event): Add string info to the event,
4042 analogous to what's done on mode lines.
4043 (read_key_sequence): For a click on a string, consider `local-map'
4044 and `keymap' of that string.
4045
4046 * keyboard.c (make_lispy_event, make_lispy_movement):
4047 Adjust calls to buffer_posn_from_coords to new format.
4048
4049 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4050
4051 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4052 POS; return void.
4053
4054 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4055 flags argument to emacs_open; it seems to conflict with O_EXCL.
4056
4057 2001-03-09 Kenichi Handa <handa@etl.go.jp>
4058
4059 * composite.h (struct composition): Change types of members;
4060 glyph_len to unsigned, width to unsigned short.
4061
4062 2001-03-08 Andrew Innes <andrewi@gnu.org>
4063
4064 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4065 menu titles.
4066
4067 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4068
4069 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4070 instead of nil.
4071
4072 * xterm.c (note_mouse_highlight): Handle mouse-face and
4073 help-echo in strings.
4074 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4075 (fast_find_string_pos): New function.
4076
4077 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4078 (display_string): Call face_at_string_position with new parameter.
4079
4080 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4081 Handle `mouse-face'.
4082
4083 * dispextern.h (face_at_string_position): Change prototype.
4084
4085 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
4086
4087 * keyboard.c (make_lispy_event): Avoid generating drag events
4088 if the mouse hasn't actually moved to another buffer position.
4089
4090 2001-03-08 Dave Love <fx@gnu.org>
4091
4092 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
4093
4094 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4095
4096 * process.c (Fset_process_window_size): Fix a typo.
4097
4098 2001-03-08 Kenichi Handa <handa@etl.go.jp>
4099
4100 * coding.c (detect_coding_sjis): Do more rigid check.
4101 (detect_coding_big5): Likewise.
4102 (decode_coding_sjis_big5): Likewise.
4103 (Fdetect_coding_region): Call detect_coding_system with tailing
4104 anchor byte `\0' for more rigid detection.
4105 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
4106 (Fdetect_coding_string): Likewise.
4107
4108 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4109
4110 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4111 a string before extracting its data.
4112
4113 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4114
4115 * window.c (Frecenter): Rewrite code handling negative values
4116 of ARG on graphical frames.
4117
4118 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4119
4120 * window.c (displayed_window_lines): If W->start is outside the
4121 accessible portion of the buffer, call start_display with BEGV or
4122 ZV instead of W->start.
4123
4124 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4125
4126 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4127
4128 * process.c (Fset_process_filter): Don't crash if the input
4129 file descriptor of PROCESS is closed.
4130 (Fset_process_window_size): Likewise.
4131
4132 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4133
4134 * xterm.c (XTflash): Make the timeout of select shorter, and call
4135 select repeatedly until the desired time expires.
4136
4137 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4138
4139 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4140
4141 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4142
4143 * lisp.h (Vwindow_list): Declare extern.
4144
4145 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4146
4147 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4148
4149 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4150
4151 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4152 to detect a case where we have to highlight a different region
4153 despite not having left the currently highlighted region.
4154 Set mouse_face_overlay in the x_display_info.
4155 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
4156
4157 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4158
4159 * buffer.c (mouse_face_overlay_overlaps): New function.
4160
4161 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4162 (Qmouse_face): Declare extern.
4163
4164 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4165 if face_change_count is non-zero.
4166
4167 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4168
4169 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4170 that the source is unibyte.
4171
4172 2001-03-05 Dave Love <fx@gnu.org>
4173
4174 * xterm.c (XTmouse_position): Fix typo.
4175
4176 2001-03-05 Gerd Moellmann <gerd@gnu.org>
4177
4178 * minibuf.c (read_minibuf): Clean up the binding stack if
4179 called noninteractively.
4180
4181 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4182
4183 * coding.c (syms_of_coding): Docstring modified.
4184
4185 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4186
4187 * charset.c (char_to_string): If a single byte char has modifier
4188 bits that can't be reflected to the character code, ignore them
4189 instead of signaling an error.
4190
4191 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4192
4193 * s/msdos.h: Update copyright notice.
4194
4195 * dosfns.h: Update copyright notice.
4196
4197 * dosfns.c: Update copyright notice.
4198
4199 * msdos.c: Update copyright notice.
4200
4201 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4202
4203 * xterm.c (glyph_rect): New function.
4204 (XTmouse_position): Use it to raise the threshold for mouse
4205 movement event generation.
4206
4207 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4208
4209 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4210 specifies (reverse . t), reverse the initial screen colors.
4211 (IT_set_frame_parameters): If the property is foreground-color,
4212 but we are reversing the colors, set bg_set, not fg_set.
4213 Likewise for setting background-color and reversing: set fg_set.
4214 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
4215 in effect.
4216
4217 * xfaces.c (Finternal_set_lisp_face_attribute)
4218 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4219 parameters alist.
4220
4221 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4222
4223 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4224 to a single slash in the middle of file names.
4225
4226 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
4227 Accept only alphanumeric time zone names.
4228
4229 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4230 or width area.
4231 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4232 a widget to zero height.
4233
4234 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4235
4236 * window.c (Fwindow_end): Call move_it_past_eol only if
4237 ending up on a partially visible line.
4238
4239 2001-03-01 Dave Love <fx@gnu.org>
4240
4241 * ccl.c (Fccl_execute): Doc fix.
4242
4243 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4244
4245 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4246 of the tool bar before calling x_figure_window_size.
4247
4248 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4249 NULL after destroying it, otherwise XTread_socket can access a
4250 destroyed widget when input is unblocked.
4251
4252 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
4253
4254 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4255 same name as before, although there was a change in fontsets.
4256
4257 2001-02-28 Ken Raeburn <raeburn@gnu.org>
4258
4259 * lisp.h (Fframe_parameter): Declare.
4260
4261 * window.c (set_window_buffer): Field vscroll is an int, not a
4262 Lisp_Object.
4263
4264 2001-02-28 Gerd Moellmann <gerd@gnu.org>
4265
4266 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4267 NULL instead.
4268
4269 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4270 NULL instead.
4271
4272 * alloc.c (toplevel): Include process.h.
4273 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4274 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4275 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
4276 (allocate_vector, allocate_hash_table, allocate_window)
4277 (allocate_frame, allocate_process, allocate_other_vector):
4278 New functions.
4279 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4280 (mark_maybe_pointer): New function.
4281 (mark_memory): Also mark Lisp data to which only pointers
4282 remain and not Lisp_Objects.
4283 (min_heap_address, max_heap_address): New variables.
4284 (mem_find): Return MEM_NIL if START is below min_heap_address or
4285 above max_heap_address.
4286 (mem_insert): Compute min_heap_address and max_heap_address.
4287
4288 * process.c (make_process): Use allocate_process.
4289
4290 * frame.c (make_frame): Use allocate_frame.
4291
4292 * window.c (make_window, make_dummy_parent): Use allocate_window.
4293 (Fcurrent_window_configuration): Use allocate_other_vector.
4294
4295 * lisp.h (allocate_vectorlike): Remove prototype.
4296 (allocate_vector, allocate_other_vector, allocate_frame)
4297 (allocate_window, allocate_process, allocate_hash_table):
4298 Add prototypes.
4299
4300 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4301 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4302
4303 2001-02-27 Kenichi Handa <handa@etl.go.jp>
4304
4305 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4306 treat the produced bytes as a valid multibyte sequence.
4307
4308 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
4309 (ccl_driver) <CCL_WriteMultibyteChar2>:
4310 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
4311 <ccl_finish>: Set ccl->eight_bit_control properly.
4312
4313 * ccl.h (struct ccl_program): New member eight_bit_control.
4314
4315 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4316
4317 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4318 accessible_keymaps_char_table.
4319 (accessible_keymaps_char_table): Obey `is_metized'.
4320 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4321 Lisp_Object.
4322
4323 2001-02-26 Gerd Moellmann <gerd@gnu.org>
4324
4325 * dispnew.c: Check HAVE_TERM_H before including term.h.
4326
4327 2001-02-24 Andrew Innes <andrewi@gnu.org>
4328
4329 * makefile.w32-in: Update copyright notice.
4330
4331 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4332
4333 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4334
4335 2001-02-24 Kenichi Handa <handa@etl.go.jp>
4336
4337 * Makefile.in (lisp): Add international/utf-8.elc.
4338
4339 * fontset.c (Fnew_fontset): Fix handling of the case that an
4340 element of FONTLIST is a cons of family and registry.
4341
4342 2001-02-23 Jason Rumney <jasonr@gnu.org>
4343
4344 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4345 to height unconditionally.
4346
4347 * w32term.c (x_set_glyph_string_background_width): Extend the
4348 background face to the end of the drawing area in the text area, only.
4349 (x_insert_glyphs): Call window_box_left to obtain the left
4350 x-coordinate of the area to shift.
4351
4352 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4353 safe_run_hooks.
4354
4355 2001-02-22 Andrew Innes <andrewi@gnu.org>
4356
4357 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
4358 ($(BLD)\dispnew.obj):
4359 ($(BLD)\editfns.obj):
4360 ($(BLD)\fileio.obj):
4361 ($(BLD)\filelock.obj):
4362 ($(BLD)\keyboard.obj):
4363 ($(BLD)\w32proc.obj):
4364 ($(BLD)\process.obj):
4365 ($(BLD)\sysdep.obj): Ditto.
4366
4367 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4368 header files.
4369 ($(BLD)/dispnew.$(O)):
4370 ($(BLD)/editfns.$(O)):
4371 ($(BLD)/fileio.$(O)):
4372 ($(BLD)/filelock.$(O)):
4373 ($(BLD)/keyboard.$(O)):
4374 ($(BLD)/w32proc.$(O)):
4375 ($(BLD)/process.$(O)):
4376 ($(BLD)/sysdep.$(O)): Ditto.
4377
4378 2001-02-22 Gerd Moellmann <gerd@gnu.org>
4379
4380 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4381 at the start of the function, check that the \n in it->c is
4382 from the iterator's current position.
4383
4384 * xdisp.c (handle_single_display_prop): Add parameter
4385 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4386 properties which replace the display of text with something else.
4387 (handle_display_prop): Call handle_single_display_prop with
4388 additional argument saying if we already replaced text display
4389 with something else. Use AREF.
4390 (with_echo_area_buffer_unwind_data, display_menu_bar)
4391 (decode_mode_spec_coding): Use AREF and ASIZE.
4392
4393 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4394 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4395 * vmstime.h: Files removed.
4396
4397 * unexencap.c, unexfx2800.c: Files removed.
4398
4399 * dispnew.c (direct_output_for_insert): Give up if we are showing
4400 a message or just cleared the message because we might need to
4401 resize the echo area window or display an empty echo area.
4402
4403 2001-02-21 Gerd Moellmann <gerd@gnu.org>
4404
4405 * xdisp.c (redisplay_internal): Do the
4406 mark_window_display_accurate after all windows have been
4407 redisplayed because this call resets flags in buffers which are
4408 needed for proper redisplay.
4409
4410 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4411 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
4412 the old names.
4413
4414 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4415 busy_window to hourglass_window, busy_p to hourglass_p.
4416
4417 * msdos.h (struct x_output): Rename busy_window to
4418 hourglass_window, busy_p to hourglass_p.
4419
4420 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4421 busy_window to hourglass_window, busy_p to hourglass_p.
4422
4423 * xfns.c: Rename everything containing *busy_cursor* and similar
4424 to *hourglass*.
4425 (syms_of_w32fns): Rename x-busy-pointer-shape to
4426 x-hourglass-pointer-shape, display-busy-cursor to
4427 display-hourglass, busy-cursor-delay to hourglass-delay.
4428
4429 * w32fns.c: Rename everything containing *busy_cursor* and similar
4430 to *hourglass*.
4431 (syms_of_w32fns): Rename x-busy-pointer-shape to
4432 x-hourglass-pointer-shape, display-busy-cursor to
4433 display-hourglass, busy-cursor-delay to hourglass-delay.
4434
4435 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4436 of its busy_p flag.
4437
4438 * dispextern.h (start_hourglass, cancel_hourglass)
4439 (display_hourglass_p): Renamed from *busy_cursor*.
4440
4441 2001-02-20 Gerd Moellmann <gerd@gnu.org>
4442
4443 * keyboard.c (read_char): When an event from unread-command-events
4444 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4445
4446 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4447 equal to the current buffer.
4448
4449 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4450 nil, otherwise we're left with truncate_lines t when a message
4451 is printed with message-truncate-lines bound to t.
4452
4453 2001-02-19 Gerd Moellmann <gerd@gnu.org>
4454
4455 * window.c (Fmove_to_window_line): Undo last change.
4456 (displayed_window_lines): Call line_bottom_y to determine
4457 the line's bottom position.
4458
4459 * dispextern.h (line_bottom_y): Add prototype.
4460
4461 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
4462 (pos_visible_p): Use it.
4463
4464 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4465 set redisplaying_p to 0 here instead of in Frecursive_edit.
4466 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4467 set redisplaying_p.
4468
4469 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
4470 New variables.
4471 (syms_of_xdisp): Initialize new variables.
4472 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4473 Specbind `inhibit-menubar-update' when updating the menu bar.
4474
4475 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4476 safe_run_hooks.
4477
4478 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4479 safe_run_hooks.
4480
4481 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4482 is null.
4483
4484 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4485 to the start of the file.
4486
4487 2001-02-16 Gerd Moellmann <gerd@gnu.org>
4488
4489 * window.c (set_window_buffer): Fix last change.
4490
4491 * window.c (set_window_buffer): Set window's vscroll to 0.
4492
4493 * window.c (coordinates_in_window): Increase width of area
4494 where the vertical line can be dragged.
4495
4496 * xterm.c (x_set_glyph_string_background_width): Extend the
4497 background face to the end of the drawing area in the text
4498 area, only.
4499
4500 * xdisp.c (handle_single_display_prop): Set iterator's position
4501 to where the `display' property starts, like for images.
4502 (dump_glyph): New function.
4503 (dump_glyph_row): Use it. Dump info about marginal areas.
4504
4505 * dispnew.c (direct_output_for_insert): Recognize more cases where
4506 glyphs can be written instead of being inserted.
4507
4508 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4509 the left x-coordinate of the area to shift.
4510
4511 * dired.c (directory_files_internal): Set result list to nil
4512 before retrying.
4513
4514 2001-02-15 Kenichi Handa <handa@etl.go.jp>
4515
4516 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4517 invalid multibyte sequence, treat *SRC as a character of
4518 eight-bit-graphic.
4519
4520 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4521
4522 * textprop.c (Fset_text_properties): Doc fix.
4523
4524 2001-02-15 Gerd Moellmann <gerd@gnu.org>
4525
4526 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4527
4528 2001-02-14 Dave Love <fx@gnu.org>
4529
4530 * coding.c: Doc and message fixes.
4531
4532 2001-02-14 Andrew Innes <andrewi@gnu.org>
4533
4534 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4535 Emacs frame above the screen size.
4536
4537 2001-02-14 Gerd Moellmann <gerd@gnu.org>
4538
4539 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4540
4541 2001-02-13 Gerd Moellmann <gerd@gnu.org>
4542
4543 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4544 case that TO ends up beyond ZV after running before-change-functions.
4545
4546 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4547 the selected window if it is showing the buffer in question.
4548
4549 * dired.c (directory_files_internal): Initialize errno.
4550 (toplevel): Include errno.h.
4551
4552 2001-02-13 Kenichi Handa <handa@etl.go.jp>
4553
4554 * xfaces.c (best_matching_font): New parameter width_ratio.
4555 Multiply avgwidth by width_ratio.
4556 (choose_face_font): Call best_matching_font with width_ratio
4557 calculated from the column width of C.
4558
4559 2001-02-12 Andrew Innes <andrewi@gnu.org>
4560
4561 The following changes are to draw box lines inside characters area
4562 if line-width is negative.
4563
4564 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4565 face->box_line_width is negative.
4566 (x_produce_stretch_glyph): Likewise.
4567 (x_produce_glyphs): Likewise.
4568 (x_estimate_mode_line_height): Likewise.
4569 (x_draw_glyph_string_background): Likewise.
4570 (x_draw_glyph_string_foreground): Likewise.
4571 (x_draw_composite_glyph_string_foreground): Likewise.
4572 (x_draw_glyph_string_box): Likewise.
4573 (x_draw_image_foreground): Likewise.
4574 (x_draw_image_relief): Likewise.
4575 (x_draw_image_foreground_1): Likewise.
4576 (x_draw_image_glyph_string): Likewise.
4577
4578 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4579
4580 The following changes are to draw box lines inside characters area
4581 if line-width is negative.
4582
4583 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4584 face->box_line_width is negative.
4585 (x_produce_stretch_glyph): Likewise.
4586 (x_produce_glyphs): Likewise.
4587 (x_estimate_mode_line_height): Likewise.
4588 (x_draw_glyph_string_background): Likewise.
4589 (x_draw_glyph_string_foreground): Likewise.
4590 (x_draw_composite_glyph_string_foreground): Likewise.
4591 (x_draw_glyph_string_box): Likewise.
4592 (x_draw_image_foreground): Likewise.
4593 (x_draw_image_relief): Likewise.
4594 (x_draw_image_foreground_1): Likewise.
4595 (x_draw_image_glyph_string): Likewise.
4596
4597 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4598 and :line-width can be negative.
4599 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
4600
4601 2001-02-09 Jason Rumney <jasonr@gnu.org>
4602
4603 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4604 characters the same as ASCII and latin-1.
4605 (x_display_and_set_cursor): Check for the focus frame's selected
4606 window instead of selected_window.
4607 (x_after_update_window_line): Don't clear if frame's internal
4608 border width is zero.
4609 (x_new_font): Don't change a tooltip's size.
4610 (w32_initialize): Set char_ins_del_ok to 1.
4611
4612 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4613 (x_set_font): If font hasn't changed, avoid recomputing
4614 faces and other things.
4615 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4616 (Fx_create_frame): Add the tool bar height to the frame height.
4617 (x_create_tip_frame): Prevent changing the tooltip's
4618 background color by specifying a color for the default font
4619 in .Xdefaults.
4620 (Qcancel_timer): New variable.
4621 (syms_of_w32fns): Initialize and staticpro it.
4622 (Fx_hide_tip, Fx_show_tip): Use it.
4623 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4624 the timer.
4625 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4626
4627 * w32.c (init_environment): Duplicate local string before putenv.
4628
4629 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4630
4631 * charset.c (Fstring): A typo.
4632
4633 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4634
4635 * charset.c (Fstring): If all arguments are less than 256, return
4636 a unibyte string.
4637
4638 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4639 return a unibyte string.
4640
4641 * coding.c (code_convert_region): After detecting a coding, if
4642 nothing found, set coding->composing to COMPOSITION_NO.
4643 (decode_coding_string): Likewise.
4644
4645 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4646
4647 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4648 to avoid overflow.
4649
4650 2001-02-07 Kenichi Handa <handa@etl.go.jp>
4651
4652 * charset.c (parse_str_to_multibyte): New function.
4653
4654 * charset.h (parse_str_to_multibyte): Extern it.
4655
4656 * print.c (print_string): If we are going to print a unibyte
4657 string into a multibyte buffer, convert the string to multibyte by
4658 str_to_multibyte.
4659
4660 2001-02-06 Andrew Innes <andrewi@gnu.org>
4661
4662 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4663 been created. It seems we can get sent window messages such as
4664 WM_ERASEBKGND before we properly update a frame.
4665
4666 2001-02-06 Gerd Moellmann <gerd@gnu.org>
4667
4668 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4669 Avoid some unnecessary cursor positioning.
4670
4671 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4672
4673 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
4674 (LFACE_AVGWIDTH): New macro.
4675 (LFACEP): Use AREF.
4676 (check_lface_attrs): Check LFACE_AVGWIDTH.
4677 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4678 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4679 (merge_face_vectors): Check LFACE_AVGWIDTH.
4680 (Finternal_make_lisp_face): Use AREF.
4681 (xm_set_menu_resources_from_menu_face)
4682 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4683 (Finternal_lisp_face_empty_p): Use AREF.
4684 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4685 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4686 Compare average widths..
4687 (best_matching_font): Arrange for comparing average widths.
4688
4689 * dispextern.h (enum lface_attribute_index):
4690 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4691
4692 2001-02-05 Dave Love <fx@gnu.org>
4693
4694 * puresize.h: Revert last change following loadup.el change.
4695
4696 2001-02-05 Andrew Innes <andrewi@gnu.org>
4697
4698 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4699 invocation of temacs, to work with Windows 2000.
4700 (bootstrap-emacs): Ditto.
4701
4702 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4703
4704 * xterm.c (x_display_and_set_cursor): Check for the focus
4705 frame's selected window instead of selected_window.
4706
4707 * xdisp.c (try_scrolling): If point is in the line below the
4708 window, make sure to move the iterator at least a canonical
4709 char height down.
4710
4711 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
4712
4713 2001-02-05 Kenichi Handa <handa@etl.go.jp>
4714
4715 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4716 If invalid, execute CCL_INVALID_CMD.
4717 (ccl_driver): If the CCL program is terminated because of
4718 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4719 destination instead of throwing them away.
4720
4721 2001-02-02 Gerd Moellmann <gerd@gnu.org>
4722
4723 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4724 faces and other things.
4725
4726 * xdisp.c (get_next_display_element): Fix case of empty
4727 display table entry.
4728
4729 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4730
4731 * editfns.c (Fconstrain_to_field): Doc fix.
4732
4733 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4734 into `thoroughly', to make it consistent with the doc string.
4735
4736 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4737
4738 2001-02-01 Gerd Moellmann <gerd@gnu.org>
4739
4740 * search.c (search_buffer): Call set_search_regs with a byte
4741 position, not a character position.
4742
4743 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4744 minibuffer-only,
4745
4746 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4747
4748 * frame.c (Fmodify_frame_parameters): Doc fix.
4749
4750 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4751
4752 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4753 identifier which is not reserved by Standard C.
4754
4755 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4756
4757 * window.c (enum window_part): New enumeration.
4758 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4759 Qright_bitmap_area.
4760 (coordinates_in_window): Return an enumerator from enum
4761 window_part. Fix handling of right scroll bar.
4762 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4763 `right-fringe' instead of `left-bitmap-area' and
4764 `right-bitmap-area'. Use enumerators from enum window_part
4765 instead of hard-coded integers.
4766 (check_window_containing, window_from_coordinates):
4767 Use enumerators from enum window_part instead of hard-coded integers.
4768 (syms_of_window): Replace Qleft_bitmap_area and
4769 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4770
4771 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4772
4773 * editfns.c (Fformat_time_string): Doc fix.
4774
4775 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4776
4777 * keymap.c (Fwhere_is_internal): Use the first valid binding
4778 if no ascii binding is found (when firstonly is t).
4779
4780 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4781
4782 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4783 instead of Finteractive_p.
4784
4785 * lisp.h (interactive_p): Add prototype.
4786
4787 * eval.c (interactive_p): New function.
4788 (Finteractive_p): Use it.
4789
4790 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4791
4792 2001-01-31 Dave Love <fx@gnu.org>
4793
4794 * .gdbinit (hook-run): Define to run xreload.
4795
4796 * textprop.c (Fset_text_properties): Fix newline in doc string.
4797
4798 2001-01-30 Gerd Moellmann <gerd@gnu.org>
4799
4800 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4801 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
4802
4803 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
4804 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
4805 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4806
4807 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4808 height.
4809
4810 2001-01-30 Dave Love <fx@gnu.org>
4811
4812 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4813 AFTER_POTENTIAL_GC.
4814
4815 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4816
4817 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4818 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
4819
4820 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4821
4822 * textprop.c (Fset_text_properties): Doc fix.
4823
4824 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4825
4826 * xdisp.c (forward_to_next_line_start): Remove xassert.
4827
4828 2001-01-29 Jason Rumney <jasonr@gnu.org>
4829
4830 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
4831 returning without releasing it.
4832
4833 2001-01-29 Kenichi Handa <handa@etl.go.jp>
4834
4835 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4836 for '^', '$', and '\0'.
4837
4838 2001-01-28 Andrew Choi <akochoi@i-cable.com>
4839
4840 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4841 regex for '^', '$', and '\0'.
4842
4843 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4844 only if current_sblock has been initialized.
4845
4846 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4847 terminal frame even if it is the only visible frame.
4848
4849 2001-01-28 Kenichi Handa <handa@etl.go.jp>
4850
4851 * fontset.c (font_family_registry): Even if FONTNAME conform to
4852 XLFD, if it specifies other fields than family and registry,
4853 return FONTANME. New argument FORCE if nonzero cancel that feature.
4854 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
4855 a signle byte character. Don't set FAMILY part to nil here.
4856 It is handled by the caller choose_face_font.
4857 (Fnew_fontset): Call font_family_registry with FORCE 0.
4858 (Fset_fontset_font): Likewise.
4859
4860 2001-01-27 Gerd Moellmann <gerd@gnu.org>
4861
4862 * xdisp.c (display_line): Don't treat a newline as fitting
4863 on the line.
4864
4865 2001-01-26 Gerd Moellmann <gerd@gnu.org>
4866
4867 * window.c (size_window): Set the window's orig_top to nil when
4868 changing heights, so that a future shrink_mini_window won't
4869 restore a bogus height.
4870
4871 * frame.c (do_switch_frame): If selected frame has a mini-window,
4872 resize that to exact size.
4873
4874 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4875
4876 * xdisp.c (display_line): Simplify check for glyphs fitting
4877 entirely in the line.
4878
4879 * xfns.c (xic_style): New variable.
4880 (create_frame_xic): Move static variable to global scope for
4881 the case that `static' gets defined away.
4882
4883 2001-01-26 Kenichi Handa <handa@etl.go.jp>
4884
4885 * coding.c (decode_coding): Set a flag for inhibiting
4886 inconsistent eol.
4887 (code_convert_region): Always set saved_coding_symbol.
4888 (decode_coding_string): Likewise. Update coding->symbol when we
4889 encounter a inconsistent eol by the same way as code_convert_region.
4890
4891 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4892
4893 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4894 XClearArea.
4895
4896 * xterm.c (x_after_update_window_line): Don't clear if frame's
4897 internal border width is zero.
4898 (x_clear_area): New function.
4899 (x_after_update_window_line, x_clear_end_of_line)
4900 (x_scroll_bar_create, x_scroll_bar_set_handle)
4901 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4902 instead of XClearArea.
4903
4904 * xterm.h (x_clear_area): Add prototype.
4905
4906 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4907 which doesn't seem necessary anymore with Lesstif 0.92.
4908
4909 2001-01-25 Dave Love <fx@gnu.org>
4910
4911 * puresize.h (BASE_PURESIZE): Up to 720000.
4912
4913 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4914
4915 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4916
4917 * xdisp.c (echo_area_display): Don't call redisplay_internal
4918 when Emacs is shutting down. We can't run hooks etc. that
4919 would be necessary to do a redisplay.
4920
4921 * lread.c (read_integer): Use type EMACS_INT instead of int.
4922
4923 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4924
4925 * ccl.c (ccl_driver): Fix last change.
4926
4927 2001-01-25 Kenichi Handa <handa@etl.go.jp>
4928
4929 * ccl.h (sturct ccl_program): New member suppress_error.
4930
4931 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
4932 insert error message to the output.
4933 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4934
4935 * coding.h (struct coding_system): New member suppress_error.
4936
4937 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4938 (Fset_terminal_coding_system_internal): Set the member
4939 suppress_error to 1.
4940 (Fset_safe_terminal_coding_system_internal): Likewise.
4941
4942 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4943
4944 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4945 as if it was a `charset'.
4946
4947 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4948
4949 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4950 value in where_is_cache; the next lookup in the cache returns
4951 something bogus if we do.
4952
4953 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4954
4955 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4956 if HAVE_WINDOW_SYSTEM isn't defined.
4957
4958 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4959
4960 * fns.c (sweep_weak_table): Fix code taking items out of
4961 the hash collision chain. Some cleanup.
4962
4963 * xterm.c (x_new_font): Don't change a tooltip's size.
4964
4965 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4966 background color by specifying a color for the default font
4967 in .Xdefaults.
4968
4969 2001-01-24 Kenichi Handa <handa@etl.go.jp>
4970
4971 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4972 a workaround for SunOS 4's cc.
4973 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4974 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4975 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4976 statement.
4977
4978 2001-01-23 Gerd Moellmann <gerd@gnu.org>
4979
4980 * xterm.c (x_set_window_size_1): New function extracted from
4981 x_set_window_size.
4982 (x_set_window_size): Use it.
4983 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4984 doesn't have a widget, like tooltips.
4985
4986 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4987
4988 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4989
4990 2001-01-23 Kenichi Handa <handa@etl.go.jp>
4991
4992 * fns.c (Fset_char_table_default): Fix to make sub char-table
4993 correctly.
4994
4995 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4996
4997 * xdisp.c (build_desired_tool_bar_string): Make sure we have
4998 a desired tool bar string, even if there are no tool bar items.
4999
5000 * xdisp.c (Ftool_bar_lines_needed): New function.
5001 (syms_of_xdisp): Defsubr it.
5002
5003 * editfns.c (Fformat): Don't extend text properties from arguments
5004 to padding chars in the result.
5005
5006 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5007
5008 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
5009
5010 2001-01-20 Andrew Innes <andrewi@gnu.org>
5011
5012 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
5013 (w32_initialize): Don't set term hooks that aren't actually needed
5014 in windowed mode.
5015
5016 * xfaces.c (realize_default_face):
5017 (realize_face):
5018 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
5019
5020 * xdisp.c (handle_single_display_prop): Remove references to
5021 FRAME_W32_CONSOLE_P.
5022
5023 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
5024
5025 * frame.h (output_method): Remove output_w32_console method.
5026 (FRAME_W32_CONSOLE_P): Remove macro.
5027
5028 * frame.c (Qw32_console): Remove variable.
5029 (Fframep): Remove references to it.
5030 (syms_of_frame): Ditto.
5031 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5032
5033 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5034 redefinition.
5035
5036 2001-01-20 Kenichi Handa <handa@etl.go.jp>
5037
5038 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5039
5040 2001-01-19 Andrew Innes <andrewi@gnu.org>
5041
5042 * w32.c (init_environment): Add a version-independent site-lisp
5043 directory to EMACSLOADPATH, after the version dependent one.
5044
5045 2001-01-19 Gerd Moellmann <gerd@gnu.org>
5046
5047 * editfns.c (Fbuffer_substring): Doc fix.
5048
5049 * xdisp.c (message_dolog, message2, message2_nolog):
5050 Rename parameter LEN to NBYTES.
5051
5052 2001-01-19 Kenichi Handa <handa@etl.go.jp>
5053
5054 * charset.c (strwidth): Use c_string_width.
5055 (c_string_width): New function.
5056 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5057 Caller changed.
5058
5059 * charset.h (c_string_width, lisp_string_width): Extern them.
5060
5061 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
5062
5063 * indent.c (check_composition): Check validity of composition.
5064
5065 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5066 characters by calling c_string_width.
5067 (x_consider_frame_title): Get byte length of frame tile string
5068 correctly.
5069 (display_mode_element): Pay attention to width of non-ASCII
5070 characters by calling strwidth.
5071
5072 2001-01-18 Gerd Moellmann <gerd@gnu.org>
5073
5074 * xfns.c (Qcancel_timer): New variable.
5075 (syms_of_xfns): Initialize and staticpro it.
5076 (Fx_hide_tip, Fx_show_tip): Use it.
5077 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5078 the timer.
5079 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5080
5081 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5082
5083 * window.h (WINDOW_LIVE_P): New macro.
5084
5085 * window.c (window_size_fixed): New variable.
5086 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5087 the doc string.
5088
5089 * eval.c (specbind): If binding a per-buffer variable which
5090 doesn't have a buffer-local value in the current buffer, change
5091 the global value by changing the value of the symbol bound in all
5092 buffers not having their own value, to make it consistent with
5093 what happens with other buffer-local variables.
5094
5095 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5096
5097 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5098 when searching for a newline.
5099
5100 2001-01-18 Kenichi Handa <handa@etl.go.jp>
5101
5102 * xdisp.c (display_string): Fix previous change.
5103
5104 2001-01-18 Jason Rumney <jasonr@gnu.org>
5105
5106 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5107 GLYPH_DEBUG is defined.
5108 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5109 true for images with `:ascent 100'.
5110 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5111 meantime, use face MOUSE_FACE_ID.
5112 If first glyph isn't a character glyph, use the ASCII NUL
5113 character to determine the face.
5114 (expose_area): Do not treat left margin specially.
5115 (note_mode_line_highlight): If no local_map, check global keymap.
5116 (note_mouse_highlight): Initialize overlay.
5117 (clear_mouse_face): Don't return if tip_frame is non-nil.
5118 (show_scroll_bars): Remove unused function.
5119 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5120 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5121 Clip to row.
5122 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
5123 (x_free_frame_resources): Unload relief colors.
5124
5125 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5126
5127 * xdisp.c (forward_to_next_line_start): Avoid calling
5128 get_next_display_element when the newline is already found.
5129 This may change the iterator's position, when its current position is
5130 equal to the iterator's stop_charpos.
5131
5132 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5133 zero, use this method only at the end of a line.
5134
5135 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
5136 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5137 if SCALABLE_FONTS_P is set.
5138
5139 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5140 so that scalable fonts are included.
5141
5142 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5143 In the cache, use a key containing the information if scalable
5144 fonts are included.
5145 (x_load_font): Adapt to change of keys in the font cache.
5146
5147 2001-01-17 Kim F. Storm <storm@filanet.dk>
5148
5149 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5150 XListFonts to take advantage of font caching.
5151
5152 * xterm.c (x_list_fonts): Ensure caching font information when
5153 called for a null frame, which is the case frequently when Emacs
5154 starts.
5155
5156 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5157
5158 * xfns.c (QCconversion): Replaces QCalgorithm.
5159
5160 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5161
5162 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5163 of :algorithm.
5164
5165 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5166 not everything could be displayed.
5167
5168 * line.h, x-list-font.c: Files removed because unused.
5169
5170 2001-01-17 Andrew Innes <andrewi@gnu.org>
5171
5172 * dired.c (directory_files_internal): Convert result from readdir
5173 to a unibyte string initially, to avoid possible misinterpretation
5174 of some bytes as the internal form of Emacs characters.
5175
5176 2001-01-17 Kenichi Handa <handa@etl.go.jp>
5177
5178 * fns.c (concat): Be sure to avoid putting the same `composition'
5179 property on the adjacent regions.
5180
5181 2001-01-16 Gerd Moellmann <gerd@gnu.org>
5182
5183 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
5184 (Fscroll_right, Fscroll_left): Set it here instead, if called
5185 interactively.
5186
5187 * buffer.c (Fset_buffer_modified_p): Set buffer's
5188 prevent_redisplay_optimizations_p flag.
5189
5190 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
5191 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5192 with additional arg.
5193
5194 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5195 Change prototype.
5196
5197 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5198 FROM_WHERE, for debugging.
5199
5200 2001-01-16 Kenichi Handa <handa@etl.go.jp>
5201
5202 * ccl.c (Fregister_ccl_program): Handle the return value of
5203 resolve_symbol_ccl_program correctly.
5204 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
5205
5206 2001-01-15 Gerd Moellmann <gerd@gnu.org>
5207
5208 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5209 has gone in the meantime, use face MOUSE_FACE_ID.
5210
5211 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5212 If x_display_info_for_display returns null, don't try to close
5213 the display; we didn't open it.
5214
5215 * dispnew.c (save_or_restore_current_matrices): Function removed.
5216 (save_current_matrix, restore_current_matrix): New functions.
5217 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5218 restore the frame's current matrix. Due to the glyph pointer
5219 setup done in adjust_glyph_matrix, there is no easy way to make
5220 saving the current matrix in the desired matrix generally correct,
5221 so don't try it.
5222
5223 2001-01-15 Kenichi Handa <handa@etl.go.jp>
5224
5225 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5226 truncation glyphs.
5227 (display_line): Optimize for wide characters.
5228 (display_string): Don't try to display a multi-column character
5229 partially. On ttys, produce more than one truncation glyph for
5230 multi-column characters that don't fit on the line.
5231
5232 2001-01-13 Kenichi Handa <handa@etl.go.jp>
5233
5234 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5235 Define it instead of WORDS_BIGENDIAN. Caller changed.
5236
5237 2001-01-13 Jason Rumney <jasonr@gnu.org>
5238
5239 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5240 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
5241 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5242 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
5243
5244 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5245 (x_draw_image_relief, x_draw_image_foreground_1)
5246 (x_draw_image_glyph_string): Adapt to change of image margins.
5247
5248 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5249 variables.
5250
5251 * w32bdf.c (search_file_line, get_cached_font_char)
5252 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5253
5254 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5255
5256 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5257 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5258 (Fw32_send_sys_command): Remove unused variables.
5259 (w32_msg_pump): Add parentheses.
5260
5261 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5262 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5263 Add parentheses.
5264
5265 2001-01-12 Gerd Moellmann <gerd@gnu.org>
5266
5267 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5268 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5269 being a pair of margins.
5270 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5271 to DEFVAR_LISP. Extend doc.
5272
5273 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5274 margins.
5275 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5276 pair of integers `(X . Y)', use X for the horizontal and Y for the
5277 vertical margin.
5278 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5279 (parse_image_spec): Check it.
5280 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5281 (tiff_format, gif_format, gs_format):
5282 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
5283
5284 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5285 (x_draw_image_relief, x_draw_image_foreground_1)
5286 (x_draw_image_glyph_string): Adapt to the change of image margins.
5287
5288 * dispextern.h (struct image): Replace member `margin' with
5289 `hmargin' and `vmargin'.
5290
5291 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5292 and GLYPHS.
5293
5294 * dispnew.c (update_text_area): Put code which decrements the
5295 stop position when the row's face extends to the end of the
5296 line in #if 0.
5297
5298 * xfns.c (x_set_mouse_color): Fix color allocation.
5299
5300 * keyboard.c: Call get_local_map with new argument list.
5301
5302 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5303
5304 * intervals.h (enum map_property): Removed.
5305 (get_local_map): Change prototype.
5306
5307 * keymap.c: Call get_local_map with new argument list.
5308 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5309
5310 2001-01-11 Gerd Moellmann <gerd@gnu.org>
5311
5312 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5313 of the size needed for the tool bar string. For the last image,
5314 use a `display' property that reaches to the end of the string.
5315
5316 * xselect.c (selection_request_dpyinfo): New variable.
5317 (x_handle_selection_request): Set it.
5318 (x_selection_request_lisp_error): Don't call
5319 x_decline_selection_request if selection request's display has
5320 been closed.
5321
5322 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5323 Do the unregister_colors before calling XFreeColors.
5324
5325 2001-01-10 Dave Love <fx@gnu.org>
5326
5327 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5328 ${SOME_MACHINE_LISP}, not ${lisp}.
5329
5330 2001-01-10 Gerd Moellmann <gerd@gnu.org>
5331
5332 * xdisp.c (display_line): On ttys, produce more than one truncation
5333 glyph for multi-column characters that don't fit on the line.
5334
5335 * xselect.c (x_reply_selection_request): Add a comment.
5336
5337 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5338 XkbGetNames instead of XkbGetKeyboard.
5339
5340 2001-01-10 Dave Love <fx@gnu.org>
5341
5342 * sysdep.c (random): Revert the declaration.
5343
5344 2001-01-09 Gerd Moellmann <gerd@gnu.org>
5345
5346 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5347 Call function string_bytes.
5348 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5349
5350 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5351 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5352 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5353 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5354 the current sblock.
5355 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5356 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5357 after sweeping strings, and at the end.
5358 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5359
5360 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5361 ensure that pop_message is called.
5362
5363 * keyboard.c (Fexecute_extended_command): Use a
5364 record_unwind_protect to ensure that pop_message is called.
5365
5366 * lisp.h (push_message_unwind): Add prototype.
5367
5368 * xdisp.c (push_message_unwind): New function.
5369
5370 * fileio.c (do_auto_save_unwind): Do the pop_message here
5371 instead of in Fdo_auto_save.
5372 (Fdo_auto_save): Don't call pop_message.
5373
5374 2001-01-08 Ken Raeburn <raeburn@gnu.org>
5375
5376 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5377 in inner block.
5378
5379 2001-01-08 Gerd Moellmann <gerd@gnu.org>
5380
5381 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5382 when increasing window's vscroll.
5383
5384 * macros.c (Qkbd_macro_termination_hook): New variable.
5385 (syms_of_macros): Initialize and staticpro it.
5386 (pop_kbd_macro): Run kbd-macro-termination-hook.
5387
5388 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5389
5390 2001-01-07 Dave Love <fx@gnu.org>
5391
5392 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5393 arglist, for documentation's sake.
5394
5395 2001-01-06 Andrew Innes <andrewi@gnu.org>
5396
5397 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5398 of *.pdb.
5399
5400 2001-01-05 Andrew Innes <andrewi@gnu.org>
5401
5402 * term.c (update_end): Don't check updating_frame; for some reason
5403 this can be 0 sometimes, such as after dismissing a popup menu,
5404 and isn't necessary given the explicit frame argument.
5405
5406 2001-01-05 Gerd Moellmann <gerd@gnu.org>
5407
5408 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5409 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5410
5411 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5412
5413 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
5414
5415 * xfns.c (x_create_tip_frame): Preserve the value of
5416 face_change_count around the creation of the tip frame.
5417
5418 * xfns.c (last_show_tip_args): New variable.
5419 (compute_tip_xy): New function.
5420 (Fx_show_tip): Reuse an existing tip frame, if possible.
5421 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5422
5423 2001-01-04 Dave Love <fx@gnu.org>
5424
5425 * editfns.c (Fformat): Doc fix.
5426
5427 * systime.h (set_file_times): Prototype.
5428
5429 * widget.h (EmacsFrameSetCharSize_): Prototype.
5430
5431 * sysdep.c (random, srandom): Declare explicitly.
5432
5433 * dispextern.h (move_it_vertically_backward): Declare.
5434
5435 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5436
5437 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5438 like in Fx_create_frame.
5439
5440 * xfaces.c (set_font_frame_param): Don't do anything for
5441 non-graphical frames.
5442
5443 * window.c (Fdelete_other_windows): Set window's window_end_valid
5444 to nil when changing the window's start. Don't change the
5445 window's start when its top position hasn't changed. If we do,
5446 this will set the window's optional_new_start, which act's like a
5447 force_start during redisplay with C-x 1 M-> under particular
5448 circumstances (see report from Per Starback to emacs-pretest-bug
5449 from 2000-12-13.).
5450
5451 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5452
5453 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5454 short cut at the start of the function. Add an assertion.
5455 (reseat_at_next_visible_line_start): Add an assertion.
5456
5457 * window.c (Frecenter): When changing the window start, set the
5458 window's window_end_valid to nil.
5459 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5460
5461 * dispextern.h (move_it_past_eol): Add prototype.
5462
5463 * xdisp.c (move_it_past_eol): New function.
5464
5465 * window.c (Fwindow_end): Doc fix.
5466
5467 2001-01-03 Dave Love <fx@gnu.org>
5468
5469 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
5470
5471 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5472
5473 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5474 the enabled_p flag of the glyph row at window_end_vpos to 0.
5475 (handle_single_display_prop): Fix last change.
5476
5477 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5478
5479 * window.c (Frecenter): Doc fix.
5480
5481 2001-01-02 Andrew Innes <andrewi@gnu.org>
5482
5483 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5484
5485 * frame.h (output_method): Add output_w32_console method.
5486 (FRAME_W32_CONSOLE_P): New macro.
5487
5488 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5489 use output_w32_console method.
5490 (Qw32_console): New Lisp_Object.
5491 (Fframep): Return it.
5492 (syms_of_frame): Init it.
5493 (Fframe_parameters): Report w32console as font for w32_console frames.
5494
5495 * xfaces.c (realize_default_face): Set face foreground and
5496 background to unspecified for w32_console frames.
5497 (realize_face): Realize face cache for w32_console frames.
5498 (realize_tty_face): Accept w32_console frames.
5499
5500 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
5501 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5502 necessary, even if running interactively.
5503
5504 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5505 w32_console frames.
5506
5507 * w32term.c (x_update_begin):
5508 (x_update_end):
5509 (x_clear_frame):
5510 (x_ins_del_lines):
5511 (x_change_line_highlight):
5512 (x_delete_glyphs):
5513 (w32_ring_bell):
5514 (x_update_begin):
5515 (x_update_end):
5516 (w32_reassert_line_highlight):
5517 (w32_frame_rehighlight):
5518 (w32_frame_raise_lower): Do nothing if not w32 frame.
5519
5520 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5521
5522 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5523 system doesn't tell us directly.
5524 (Fx_display_visual_class): Implement properly.
5525
5526 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5527
5528 * window.c (Frecenter): Handle centering in graphical frames
5529 specially. Centering on the basis of line counts doesn't work
5530 reliably with variable-height lines.
5531
5532 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5533
5534 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5535 and al[].
5536
5537 * composite.c (run_composition_function): Remove unused var `val'.
5538 (update_compositions): Remove unused variable `hook'.
5539
5540 * intervals.c (get_local_map): Remove unused variable `tem'.
5541
5542 * doprnt.c (doprnt1): Remove unused variable `size'.
5543
5544 * fns.c (Flength): Remove unused variable `tail'.
5545 (Fdelete): Remove unused variable `size'.
5546
5547 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5548 and `gcpro2'.
5549
5550 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
5551
5552 * data.c (find_symbol_value): Remove extra 3rd argument in the
5553 call to swap_in_symval_forwarding.
5554
5555 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
5556
5557 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5558 (trivial_regexp_p): Remove unused variable `c'.
5559 (boyer_moore): Remove unused variable `k'.
5560
5561 * indent.c (current_column): Remove unused variable `stopchar'.
5562 (Fcompute_motion): Remove unused variable `contin'.
5563
5564 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5565
5566 * dired.c (directory_files_internal): Fix a typo in a comment.
5567 Remove an unused variable `handler'.
5568 (file_name_completion): Remove unused function-scope variable `dp'.
5569 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5570 on BSD4_2.
5571
5572 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
5573
5574 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5575 and `buf'.
5576 (Fmarker_insertion_type): Remove unused variable `buf'.
5577
5578 * insdel.c (make_gap): Remove unused variable `result'.
5579
5580 * keyboard.c (record_char): Remove unused function-scope var `help'.
5581 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5582 (menu_bar_items): Remove unused function-scope variable `tem'.
5583
5584 * fontset.c (fontset_ref): Remove unused variable `i'.
5585 (fontset_set): Remove unused variables `j' and `tmp'.
5586 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
5587 (make_fontset_for_ascii_face): Remove unused variable `name'.
5588 (fs_load_font): Remove unused variable `font_idx'.
5589 (fs_query_fontset): Remove unused function-local variable `fontset'.
5590 (list_fontsets): Remove unused variable `tail'.
5591 (Fnew_fontset): Remove unused variables `family' and `registry'.
5592 (accumulate_font_info): Remove unused variable `tmp'.
5593 (Ffontset_font): Remove unused variable `id'.
5594 (syms_of_fontset): Remove unused variable `i'.
5595
5596 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5597 to x_term_init.
5598 (lookup_image): Remove unused variable `file'.
5599 (xbm_load): Remove unused variables `bitmap_data', `height', and
5600 `width'. Remove function-local variable `i', leave the
5601 block-local one.
5602 (gif_load): Remove unused variable `inc'.
5603
5604 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
5605 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5606 leave only the one in the inner block.
5607
5608 * xfaces.c (face_fontset, realize_default_face): Remove unused
5609 variable `fontset'.
5610 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5611
5612 * term.c (encode_terminal_code): Remove unused variable `c'.
5613
5614 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5615 char *' instead of `char *'.
5616
5617 * category.c (Fcategory_docstring): Remove unused variable `doc'.
5618 (Fget_unused_category): Remove unused variable `docstring_vector'.
5619 (Fchar_category_set): Remove unused variables `val', `charset',
5620 `c1' and `c2'.
5621
5622 * coding.c (detect_coding_iso2022, setup_coding_system):
5623 Remove unused variable `i'.
5624 (detect_coding_mask): Remove unused variable `idx'.
5625 (detect_coding): Remove unused variable `i'.
5626 (ccl_coding_driver): Remove unused variable `result'.
5627 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
5628 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
5629 (encode_coding_string): Remove unused variables `gcpro1' and
5630 `saved_coding_symbol'.
5631 (Ffind_coding_systems_region_internal): Remove function-local
5632 variable args[], leave only the block-local one.
5633 (code_convert_region1): Remove unused variable `len'.
5634
5635 * charset.c (char_printable_p): Remove unused variable `chars'.
5636 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5637 (str_to_multibyte): Remove unused variable `c'.
5638
5639 * window.c (size_window): Remove block-local variable `min_size'.
5640
5641 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5642 `header_line_height'.
5643 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5644 enum display_element_type.
5645
5646 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5647
5648 * xterm.c (x_connection_closed): Catch X errors around all
5649 statements that call X. Save away the error message in a local copy.
5650
5651 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5652 the start.
5653
5654 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5655 in or at the start of invisible text.
5656
5657 * dispnew.c (update_window): Don't check_current_matrix_flags.
5658
5659 2001-01-01 Jason Rumney <jasonr@gnu.org>
5660
5661 * w32fns.c (x_figure_window_size): Do not allow new_height and
5662 new_width of frame to override specified values.
5663
5664 2000-12-30 Kenichi Handa <handa@etl.go.jp>
5665
5666 * composite.c (find_composition): Fix a code for searching backward.
5667
5668 2000-12-29 Gerd Moellmann <gerd@gnu.org>
5669
5670 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
5671 (update_window) [GLYPH_DEBUG]: Call it.
5672 (scrolling_window): Prevent including current rows which are below
5673 what's displayed in the window.
5674
5675 * xdisp.c (try_window_reusing_current_matrix)
5676 <new start <= old start>: Disable rows in the current matrix
5677 which are below the window after scrolling.
5678
5679 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5680 is zero. It's not worth the complexity.
5681 (invisible_text_between_p): Put in #if 0 because unused.
5682
5683 2000-12-28 Gerd Moellmann <gerd@gnu.org>
5684
5685 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5686 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5687
5688 * keyboard.c (echo_char): If C is an integer, always call
5689 push_key_description. Former code could signal an invalid
5690 character error.
5691
5692 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5693 If set, print multibyte text.
5694 (Fsingle_key_description): Call push_key_description with
5695 FORCE_MULTIBYTE set.
5696 (describe_buffer_bindings): Likewise.
5697
5698 * lisp.h (push_key_description): Add prototype.
5699
5700 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5701 around the call to redisplay_internal.
5702
5703 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5704
5705 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5706
5707 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5708
5709 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5710 (ccl_driver): New local variable `extra_bytes'.
5711
5712 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5713
5714 * coding.c (setup_coding_system):
5715 Initialize coding->spec.ccl.eight_bit_carryover.
5716 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5717
5718 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5719
5720 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5721 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5722 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5723 (decode_composition_emacs_mule): New function.
5724 (decode_coding_emacs_mule): Decode composition sequence by calling
5725 decode_composition_emacs_mule.
5726 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
5727 (encode_coding_emacs_mule): Changed from macro to function.
5728 If a text contains compositions, encode them correctly.
5729 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5730 that decoding and encoding are required.
5731
5732 2000-12-27 Gerd Moellmann <gerd@gnu.org>
5733
5734 * xfaces.c (PT_PER_INCH): New macro.
5735 (xlfd_point_size): Compute real point size from font's pixel size.
5736 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5737 instead of 72.
5738
5739 * .gdbinit: Comment out the line pointing to the Lesstif source
5740 directory.
5741
5742 * window.c (Frecenter): Use displayed_window_lines instead
5743 of window_internal_height.
5744
5745 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5746 instead of x-toolkit-scroll-bars-p.
5747 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5748
5749 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5750 instead of x-toolkit-scroll-bars-p.
5751 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5752
5753 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5754 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
5755 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5756 New variables.
5757 (add_window_display_history, add_frame_display_history)
5758 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5759 (build_frame_matrix_from_leaf_window): Remove unused code.
5760 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5761 redisplay history.
5762 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5763 (update_window) [GLYPH_DEBUG]: Likewise.
5764 (syms_of_display): Defsubr dump-redisplay-history.
5765
5766 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5767
5768 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5769 the end of the prompt. Set echo_after_prompt to the offset
5770 of echoptr in echobuf.
5771
5772 * xdisp.c (init_from_display_pos): Pop until the iterator's
5773 stack is empty; there may be frames for stretch or images
5774 on the stack.
5775
5776 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5777 (save_or_restore_current_matrix): New function for the same
5778 purpose, but more efficient.
5779 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5780
5781 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5782
5783 * xdisp.c (syms_of_xdisp): Fix last change.
5784
5785 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5786
5787 * xdisp.c (syms_of_xdisp): Doc fix.
5788
5789 * xdisp.c (redisplay_window): Remove label restore_buffers;
5790 use finish_scroll_bars instead to make sure that scroll bars
5791 are redeemed. If we don't do this, flickering can result from
5792 scroll bars being destroyed and recreated.
5793
5794 2000-12-22 Jason Rumney <jasonr@gnu.org>
5795
5796 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5797 in the wrong colors when the foreground is not black.
5798 (expose_window): Don't redraw the window that's currently being
5799 updated.
5800
5801 2000-12-22 Gerd Moellmann <gerd@gnu.org>
5802
5803 * window.c (size_window): When setting the window's too_small_ok
5804 flag, compare old size with minimum size depending on WIDTH_P,
5805 don't compare with window_min_width.
5806
5807 * window.c (delete_window): Simplify somewhat.
5808 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5809 freeing window matrices. The flag windows_or_buffers_changed is
5810 set, so the next redisplay will consider all windows; this should
5811 suffice.
5812
5813 2000-12-22 Kenichi Handa <handa@etl.go.jp>
5814
5815 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5816
5817 * ccl.h (struct ccl_program): New member cr_consumed.
5818
5819 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5820 (CCL_READ_CHAR): Handle EOL conversion here.
5821 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5822
5823 2000-12-21 Gerd Moellmann <gerd@gnu.org>
5824
5825 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
5826
5827 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5828 otherwise tabs of different size compare equal.
5829
5830 * callint.c (Fcall_interactively): Prevent a compiler warning.
5831
5832 * print.c (print_unwind): Return nil.
5833 (PRINTDECLARE): Initialize all local variables.
5834 (print_preprocess): Add a default case.
5835
5836 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5837
5838 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5839
5840 * window.c (delete_window, Fsplit_window)
5841 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5842
5843 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5844
5845 * dispnew.c (ensure_frame_matrix): Removed.
5846 (save_frame_matrix, restore_frame_matrix): New functions.
5847 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5848
5849 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5850 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5851
5852 2000-12-21 Andrew Innes <andrewi@gnu.org>
5853
5854 * w32term.c (x_update_begin): Regenerate the palette here, rather
5855 than for each window.
5856
5857 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5858 palette is NULL, since this corrupts memory! Also get
5859 display_info reference from frame.
5860
5861 2000-12-21 Jason Rumney <jasonr@gnu.org>
5862
5863 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5864
5865 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5866 to avoid returning without releasing it.
5867
5868 2000-12-21 Kenichi Handa <handa@etl.go.jp>
5869
5870 * keymap.c (push_key_description): Don't convert eight-bit-control
5871 and eight-bit-graphic to multibyte character.
5872
5873 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5874 generic character and CODE1 is nil, return the smallest character
5875 in CHARSET.
5876
5877 2000-12-20 Dave Love <fx@gnu.org>
5878
5879 * s/osf5-0.h (NSIG): Don't redefine.
5880
5881 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5882
5883 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5884 excluding menu-bar and tool-bar.
5885 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5886 (menu_item_p): Remove.
5887 (where_is_internal_1): Don't ignore menu-items.
5888
5889 2000-12-20 Gerd Moellmann <gerd@gnu.org>
5890
5891 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5892 into account.
5893
5894 * window.c (make_window): Initialize window's min_hscroll.
5895 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5896 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5897 to zero.
5898 (struct saved_window): New member min_hscroll.
5899 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5900 (Fset_window_configuration): Set window's min_hscroll.
5901 (save_window_save): Save window's min_hscroll.
5902 (compare_window_configurations): Compare min_hscroll values.
5903
5904 * window.h (struct window): New member min_hscroll.
5905
5906 * keyboard.c (echo_prompt): Prevent a compiler warning.
5907
5908 * xdisp.c (try_cursor_movement): Fix last change. The real
5909 condition is that PT is at the end of the row, and should
5910 be displayed at the start of the next row.
5911
5912 * xdisp.c (try_cursor_movement): If we end on a partially
5913 visible line, end we already decided to scroll, return -1.
5914
5915 * dispextern.h (ensure_frame_matrix): Add prototype.
5916
5917 * window.c (delete_window, Fsplit_window)
5918 (Fset_window_configuration): Call ensure_frame_matrix.
5919
5920 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5921 New functions.
5922 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5923 completed, call fake_current_matrices instead of marking frame
5924 garbaged.
5925
5926 2000-12-20 Jason Rumney <jasonr@gnu.org>
5927
5928 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5929
5930 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5931
5932 * fns.c (Frequire): Doc fix.
5933
5934 2000-12-19 Gerd Moellmann <gerd@gnu.org>
5935
5936 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
5937
5938 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5939 currently displaying a message.
5940
5941 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5942 xterm.h.
5943 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5944
5945 2000-12-18 Andrew Innes <andrewi@gnu.org>
5946
5947 * w32.c (w32_strerror): New function.
5948
5949 * w32.h (w32_strerror): New extern.
5950
5951 * w32fns.c (Fw32_shell_execute): Use it.
5952
5953 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5954
5955 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5956
5957 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5958
5959 * msdos.c (IT_set_face): Obey inverse_video.
5960
5961 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5962
5963 * dired.c (directory_files_internal): Always return decoded filenames.
5964
5965 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5966
5967 * xterm.c (x_connection_closed): Prevent being called recursively
5968 because of an error condition in XtCloseDisplay.
5969
5970 * xdisp.c (init_iterator): If noninteractive, and the frame's
5971 face cache is null, make one.
5972
5973 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5974
5975 * process.c (wait_reading_process_input): Check for pending
5976 input when running timers.
5977
5978 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5979
5980 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
5981
5982 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5983
5984 * process.c (read_process_output): Don't run a filter if the code
5985 decoder produces nothing but carryover.
5986
5987 2000-12-17 Andrew Innes <andrewi@gnu.org>
5988
5989 * w32.c (sys_rename): Only check errno against EEXIST, and not
5990 EACCES, when determining whether rename failed because the target
5991 exists. This was resulting in indefinite looping on Windows 9x if
5992 the source file was locked by another process.
5993
5994 * w32fns.c (Ffile_system_info): New function.
5995 (syms_of_w32fns): Defsubr it.
5996
5997 2000-12-17 Gerd Moellmann <gerd@gnu.org>
5998
5999 * window.c (coordinates_in_window): Fix computation for
6000 position on vertical line between mode lines.
6001
6002 * xfns.c (unwind_create_frame): Return t if frame was deleted.
6003 Don't alter tip_frame or tip_window.
6004 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6005 was deleted.
6006
6007 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
6008 Don't alter tip_frame or tip_window.
6009 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6010 was deleted.
6011
6012 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
6013
6014 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
6015 be consistent with the doc string. Reported by NAKAJIMA Mikio
6016 <minakaji@osaka.email.ne.jp>.
6017
6018 2000-12-16 Kenichi Handa <handa@etl.go.jp>
6019
6020 * xfaces.c (Vface_ignored_fonts): New variable.
6021 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
6022 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
6023
6024 2000-12-15 Gerd Moellmann <gerd@gnu.org>
6025
6026 * dispnew.c (update_window): Detect pending input every nth line
6027 updated, i.e. do it depending on real work done, and not on the
6028 vpos of the line.
6029
6030 * xterm.c (expose_window): Don't redraw the window that's
6031 currently being updated.
6032
6033 * window.c (Fset_window_point): Remove test for
6034 cursor_in_non_selected_windows.
6035
6036 * lread.c (read1): Recognize end of file after `\\'.
6037
6038 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6039 not unwind_create_frame.
6040
6041 2000-12-15 Dave Love <fx@gnu.org>
6042
6043 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6044 bcopy & al.
6045
6046 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6047
6048 2000-12-15 Kenichi Handa <handa@etl.go.jp>
6049
6050 * coding.c (setup_coding_system): Clear all members of the struct
6051 coding_system at first.
6052 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6053 argument.
6054 (code_convert_region): Don't override coding->src_multibyte and
6055 coding->dst_multibyte.
6056
6057 * fns.c (Fmd5): Docstring improved.
6058
6059 2000-12-15 Miles Bader <miles@gnu.org>
6060
6061 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6062 are actually marked as mode-lines; otherwise use
6063 estimate_mode_line_height.
6064
6065 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6066
6067 * editfns.c (Fformat): Prevent a buffer overrun when the format
6068 specifies a precision.
6069
6070 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6071
6072 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6073 argument is outside the range [2..3].
6074
6075 2000-12-14 Andrew Innes <andrewi@gnu.org>
6076
6077 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6078 nothing to do. Bind inhibit-quit.
6079 (tip_frame): Make it a Lisp_Object.
6080 (x_create_tip_frame): Set tip_frame after it has been added to
6081 Vframe_list.
6082 (Fx_show_tip): Don't set tip_frame here.
6083 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
6084 (unwind_create_frame, unwind_create_tip_frame): New functions.
6085 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6086 while a frame is only partially constructed.
6087
6088 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6089 (x_free_frame_resources): New function.
6090 (x_destroy_window): Use it.
6091
6092 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6093
6094 * xfns.c (Fx_backspace_delete_keys_p): New function.
6095 (syms_of_xfns): Defsubr it.
6096
6097 * config.in (HAVE_XKBGETKEYBOARD): Add.
6098
6099 2000-12-14 Kenichi Handa <handa@etl.go.jp>
6100
6101 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6102 Always store string in multibyte representation in echobuf.
6103 (echo_char): Always store string in multibyte representation in
6104 echobuf.
6105 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6106 (read_key_sequence): Adjusted for the change of echo_prompt.
6107
6108 * fns.c (Fmd5): Docstring improved.
6109
6110 * lisp.h (detect_coding_system): Prototype adjusted.
6111
6112 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6113 (detect_coding_emacs_mule, detect_coding_iso2022,)
6114 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
6115 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6116 New argument MULTIBYTEP. Callers changed.
6117 (detect_coding_mask, detect_coding_system): New argument
6118 MULTIBYTEP. Callers changed.
6119 (decode_coding_string): Set coding->src_multibyte and
6120 coding->dst_multibyte before calling detect_coding and detect_eol.
6121 Update them after some coding system is detected.
6122
6123 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6124
6125 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6126
6127 * keyboard.c (menu_bar_items, tool_bar_items):
6128 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6129
6130 2000-12-13 Gerd Moellmann <gerd@gnu.org>
6131
6132 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6133 New variables.
6134 (unwind_create_frame, unwind_create_tip_frame): New functions.
6135 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6136 while a frame is only partially constructed.
6137
6138 * xterm.h (x_free_frame_resources): Declare.
6139
6140 * xterm.c (x_free_frame_resources): New function.
6141 (x_destroy_window): Use it.
6142
6143 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6144 don't interrupt the update for pending input initially, i.e.
6145 update at least some lines.
6146
6147 * keyboard.c (do_mouse_tracking): Make externally visible.
6148
6149 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
6150
6151 * xfns.c (gray_bitmap_bits): Declare `char *'.
6152
6153 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6154
6155 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6156 lines start with a relief line.
6157
6158 2000-12-12 Dave Love <fx@gnu.org>
6159
6160 * window.c (Fdisplay_buffer): Doc fix.
6161 (Fwindow_list): Remove unused var.
6162
6163 * buffer.h (mmap_set_vars): Declare.
6164
6165 * window.h (Fset_window_point): Declare.
6166
6167 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6168
6169 * msdos.c (fast_find_position): Don't overstep the last window row.
6170 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6171 variable `area'. When looking for a row under (X,Y), give up if some
6172 of the previous rows is not enabled.
6173
6174 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6175
6176 * window.c (Fset_window_point): If displaying cursors in windows
6177 other than the selected window, make sure redisplay updates
6178 other windows to show the new value of point in the window.
6179
6180 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6181
6182 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6183 the buffer is the sole visible buffer when in the mini-buffer.
6184
6185 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
6186 Bind `inhibit-read-only' to t.
6187 (unwind_with_echo_area_buffer): Use AREF.
6188
6189 * xfns.c (Fx_hide_tip): Simplified.
6190
6191 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6192 instead of `1'.
6193
6194 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6195
6196 2000-12-11 Gerd Moellmann <gerd@gnu.org>
6197
6198 * xfns.c (Fx_hide_tip): Fix last change.
6199
6200 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6201 nothing to do. Bind inhibit-quit.
6202 (tip_frame): Make it a Lisp_Object.
6203 (x_create_tip_frame): Set tip_frame after it has been added to
6204 Vframe_list.
6205 (Fx_show_tip): Don't set tip_frame here.
6206
6207 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6208
6209 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6210 Lisp_Object.
6211
6212 * dispextern.h: Change external declaration of tip_frame.
6213
6214 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6215 return an empty string.
6216
6217 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6218 of the window's update_mode_line flag, since the former is set by
6219 force-mode-line-update, not the latter. This makes
6220 column-number-mode slightly faster.
6221
6222 * xdisp.c (try_window_id) <all changes above window start>:
6223 Set the cursor.
6224
6225 2000-12-11 Paul Eggert <eggert@twinsun.com>
6226
6227 * config.in (HAVE_FTELLO): Remove.
6228 (HAVE_FSEEKO): Add.
6229 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6230 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6231 HAVE_FTELLO.
6232 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6233 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
6234
6235 2000-12-11 Miles Bader <miles@gnu.org>
6236
6237 * window.c (displayed_window_lines): Don't round up when
6238 converting empty space at bottom to lines.
6239 Handle non-newline-terminated final lines properly.
6240 (Fwindow_text_height): New function (used to be in lisp).
6241 (syms_of_window): Initialize it.
6242
6243 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6244
6245 * syntax.c (scan_lists): Check that the right quote char has the
6246 right Sstring syntax when jumping over strings.
6247 (init_syntax_once): Use Smax rather than 13.
6248
6249 2000-12-09 Miles Bader <miles@gnu.org>
6250
6251 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6252 with PARTIALLY, inverting the sense.
6253 (window_scroll_pixel_based): Scroll partially visible lines into
6254 place if we hit the beginning or end of the buffer.
6255 (displayed_window_lines): Don't include partially visible lines.
6256 (Fmove_to_window_line): Skip past any partially visible first line.
6257
6258 2000-12-08 Gerd Moellmann <gerd@gnu.org>
6259
6260 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6261
6262 * tparam.c (tparam1): Change the way buffers are reallocated to be
6263 portable and less obfuscated.
6264
6265 * termcap.c (tgetent): Change the way buffers are reallocated to
6266 be portable and less obfuscated.
6267
6268 * macros.c (store_kbd_macro_char): Change the way buffers are
6269 reallocated to be portable and less obfuscated.
6270
6271 * lread.c (read1): Change the way buffers are reallocated to be
6272 portable and less obfuscated.
6273
6274 * doc.c (Fsubstitute_command_keys): Change the way buffers
6275 are reallocated so that it is portable.
6276
6277 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6278
6279 * dosfns.c (Ffile_system_info): New function.
6280 (syms_of_dosfns): Defsubr it.
6281
6282 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6283
6284 * alloc.c (gc_sweep): Add comment.
6285
6286 2000-12-07 Gerd Moellmann <gerd@gnu.org>
6287
6288 * sound.c (vox_configure): Change order of ioctls.
6289 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
6290 Ignore errors when changing volume.
6291 (vox_close): Don't reset the device.
6292
6293 * process.c (read_process_output): Make sure the process marker's
6294 position is valid when the process buffer is changed in
6295 after-change functions. W3 does that.
6296
6297 * xfns.c (x_free_gcs): New function.
6298
6299 * xterm.h (x_free_gcs): Add prototype.
6300
6301 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6302 freeing GCs here.
6303
6304 * xterm.c (x_destroy_window): Call x_free_gcs so that
6305 resources of non-toolkit X windows will be freed.
6306
6307 2000-12-07 Andrew Innes <andrewi@gnu.org>
6308
6309 * w32fns.c (xlfd_charset_of_font): Fix last change.
6310
6311 2000-12-06 Dave Love <fx@gnu.org>
6312
6313 * md5.h (__P): Don't define -- it comes from config.h.
6314
6315 * strftime.c: Change some #if foo to #ifdef foo.
6316
6317 2000-12-06 Andrew Innes <andrewi@gnu.org>
6318
6319 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6320
6321 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
6322 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
6323 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
6324
6325 2000-12-06 Gerd Moellmann <gerd@gnu.org>
6326
6327 * alloc.c (gc_sweep): Prevent symbols read during loadup
6328 from being freed.
6329
6330 * xdisp.c (underlying_face_id): New function.
6331 (handle_face_prop, face_before_or_after_it_pos): Use it
6332 to determine the face ``under'' a string. Let strings inherit
6333 the face of the buffer under them.
6334
6335 * xfaces.c (face_at_string_position): Update function comment.
6336
6337 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6338 matrix if the window's left position has changed; we need to
6339 redraw it in this case.
6340
6341 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6342
6343 * window.c (coordinates_in_window): Check mouse on mode-line or
6344 header-line first.
6345
6346 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6347 advertized by the function documentation.
6348
6349 * window.c (syms_of_window): Doc fix.
6350
6351 * sound.c (vox_configure): Set volume for left and right channel.
6352 (sound_cleanup): Return nil.
6353
6354 * xdisp.c (move_it_by_lines): Fix paren typo.
6355
6356 * xterm.c (x_load_font): Don't use the font's max_bounds for
6357 computing the height of the font. If max_bounds' ascent or
6358 descent are greater than the font's ascent or descent, this means
6359 glyphs overlap, which should be handled now by redisplay.
6360
6361 * window.c (Veven_window_heights): New variable.
6362 (syms_of_window): DEFVAR_LISP it.
6363 (Fdisplay_buffer): Check Veven_window_heights before evening the
6364 window heights.
6365
6366 2000-12-06 Miles Bader <miles@gnu.org>
6367
6368 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6369 update `default-frame-alist' instead of setting no frame parameters.
6370
6371 2000-12-06 Kenichi Handa <handa@etl.go.jp>
6372
6373 * composite.c (update_compositions): Fix typo (use the correct
6374 variable).
6375
6376 2000-12-05 Jason Rumney <jasonr@gnu.org>
6377
6378 * md5.h: Remove underscores from function declarations.
6379 (__attribute__, __alignof__) [!__GNUC__]: Define.
6380
6381 * md5.c: Delay include of md5.h until after namespace cleaning.
6382
6383 * makefile.w32-in (fns.o): Depend on md5.h
6384 (md5.o): New target.
6385 (sunfns.o): Remove.
6386
6387 * makefile.nt: Likewise.
6388
6389 2000-12-05 Jason Rumney <jasonr@altavista.net>
6390
6391 * w32term.c (expose_area): Complete last change.
6392
6393 2000-12-05 Ken Raeburn <raeburn@gnu.org>
6394
6395 * minibuf.c: Include intervals.h.
6396
6397 2000-12-05 Jason Rumney <jasonr@gnu.org>
6398
6399 * w32term.c (x_produce_glyphs): If a font for a component of
6400 a composition is not found, use 1 pixel dot ascent and 0 dot
6401 descent value to avoid displaying terribly tall empty boxes.
6402 (expose_area): Pass x-coordinate relative to the exposed
6403 area to x_draw_glyphs instead of a window-relative coordinate.
6404
6405 2000-12-05 Gerd Moellmann <gerd@gnu.org>
6406
6407 * xdisp.c (next_element_from_ellipsis): Save face before selective
6408 display in saved_face_id, and set face_before_selective_p.
6409 (reseat_1): Reset face_before_selective_p.
6410 (append_space, extend_face_to_end_of_line): If iterator's
6411 face_before_selective_p is set, use the face from saved_face_id.
6412 (extend_face_to_end_of_line): For tty frames, make sure to
6413 use the right face id when producing spaces at the end of
6414 the line.
6415
6416 * dispextern.h (struct it): Add face_before_selective_p.
6417
6418 * keyboard.c (record_char): Don't record identical help-echo
6419 events in recent_keys.
6420
6421 * xterm.c [USE_X_TOOLKIT]: Close the display.
6422 (xim_close_dpy): Handle case that the display has been closed.
6423
6424 * xterm.c (x_destroy_window): Reset the frame's X window after
6425 destroying it.
6426
6427 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6428 variable window_width.
6429 (line_draw_cost): Fix code skipping over spaces at the end of the
6430 line when must_write_spaces is not set.
6431 (scrolling_window): Fix code inserting runs in list of all runs.
6432
6433 2000-12-05 Kenichi Handa <handa@etl.go.jp>
6434
6435 * coding.c (setup_coding_system): Be sure to initialize
6436 coding->category_idx.
6437
6438 2000-12-04 Gerd Moellmann <gerd@gnu.org>
6439
6440 * xterm.c (PER_CHAR_METRIC): Removed because not used.
6441
6442 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6443 area to x_draw_glyphs instead of a window-relative coordinate.
6444
6445 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6446 error in the message.
6447
6448 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6449 timer after having read a key. It's not good for code reading
6450 several keys in a loop, like an input method.
6451
6452 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6453 record undo information for format-decode.
6454
6455 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6456 current buffer is read-only, not if it isn't.
6457
6458 * keyboard.c (record_char): Record `help-echo' input events
6459 in recent_keys only if they display some help. Don't record
6460 `help-echo' events as macro char.
6461
6462 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6463
6464 * editfns.c (save_excursion_restore): Don't move point
6465 in another window if it is showing the wrong buffer.
6466 Avoid the call to Fwindow_live_p, for speed.
6467
6468 2000-12-04 Kenichi Handa <handa@etl.go.jp>
6469
6470 * xfaces.c (struct font_name): New member registry_priority.
6471 (split_font_name): Initialize the above member to zero.
6472 (concat_font_list): New function.
6473 (font_list): Include fonts of all alternative registries.
6474 (FONT_POINT_SIZE_QUANTUM): New macro.
6475 (better_font_p): Ignore point size difference less than
6476 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6477
6478 * xterm.c (x_produce_glyphs): If a font for a component of
6479 a composition is not found, use 1 pixel dot ascent and 0 dot
6480 descent value to avoid displaying terribly tall empty boxes.
6481
6482 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6483
6484 2000-12-03 Ken Raeburn <raeburn@gnu.org>
6485
6486 * coding.h (code_convert_string1): Declare.
6487
6488 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6489
6490 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
6491
6492 2000-12-02 Jason Rumney <jasonr@gnu.org>
6493
6494 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6495 correctly for single byte character case.
6496 (w32_per_char_metric): Do not try to make any assumptions about
6497 the metrics of BDF fonts.
6498 (x_estimate_mode_line_height): If `mode-line' face
6499 hasn't a font, use that of the frame, as drawing glyphs does.
6500 (note_mouse_highlight): Change the cursor shape on the vertical
6501 border between windows [not enabled].
6502
6503 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6504
6505 * w32fns.c (Fx_create_frame): Reintroduce the call to
6506 face-set-after-frame-defaults.
6507 (Vx_window_horizontal_drag_shape): New variable.
6508 (syms_of_xfns): DEFVAR_LISP it.
6509 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6510 enabled].
6511
6512 2000-12-02 Simon Josefsson <simon@josefsson.org>
6513
6514 * fns.c (Fmd5): Use a different logic to decide the coding system
6515 to use.
6516
6517 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6518
6519 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6520
6521 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
6522
6523 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6524
6525 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6526 height for YNegative.
6527 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6528 height; also see comment there.
6529
6530 * window.c (coordinates_in_window): Handle computations for
6531 positions on the vertical bar and fringes differently for
6532 window-system frames. Consider some pixels near the vertical bar
6533 as on the bar if the frame doesn't have vertical scroll bars.
6534 Associate positions between mode or header lines with the
6535 right window, the left one.
6536
6537 2000-12-01 Jason Rumney <jasonr@gnu.org>
6538
6539 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6540
6541 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6542 invalid frame.
6543
6544 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6545
6546 * window.c (struct saved_window): Add members orig_top and orig_height.
6547 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6548 (save_window_save, Fset_window_configuration): Save/restore
6549 window's orig_top and orig_height.
6550
6551 2000-12-01 Jason Rumney <jasonr@gnu.org>
6552
6553 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
6554
6555 * w32fns.c (x_set_cursor_color): Fix last change.
6556
6557 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6558
6559 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6560 sure that the next redisplay displays the minibuffer, so that
6561 the cursor will be replaced with what the minibuffer wants.
6562
6563 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6564 #ifndef instead of using #if.
6565 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6566 USE_TOOLKIT_SCROLL_BARS is defined.
6567
6568 2000-11-30 Jason Rumney <jasonr@gnu.org>
6569
6570 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6571 x_display_cursor.
6572
6573 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6574
6575 * fns.c (Fmd5): Doc fix.
6576
6577 2000-11-30 Simon Josefsson <simon@josefsson.org>
6578
6579 * fns.c (Fmd5): New function.
6580 (syms_of_fns): Defsubr md5.
6581
6582 * Makefile.in (obj): Add md5.o
6583
6584 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6585
6586 * md5.h, md5.c: New files, taken from glibc.
6587
6588 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6589
6590 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
6591 hasn't a font, use that of the frame, as drawing glyphs does.
6592
6593 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6594
6595 * eval.c (Frun_hooks): Allow 0 arguments.
6596
6597 2000-11-29 Gerd Moellmann <gerd@gnu.org>
6598
6599 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6600 is over the menu bar widget, say it's not on the frame.
6601
6602 * xfns.c (Fx_create_frame): Reintroduce the call to
6603 face-set-after-frame-defaults.
6604
6605 * eval.c (Fsignal): Reset handling_signal.
6606
6607 2000-11-28 Jason Rumney <jasonr@gnu.org>
6608
6609 * w32menu.c (add_menu_item): Reset menu item text when changing
6610 type to radio button.
6611
6612 2000-11-28 Gerd Moellmann <gerd@gnu.org>
6613
6614 * xselect.c: Update copyright.
6615
6616 * window.c (coordinates_in_window): If on a mode or header line,
6617 but sufficiently close to its start, return ``on vertical
6618 border''. This gives us a way to drag windows horizontally when
6619 using toolkit scroll bars.
6620
6621 * xterm.c (note_mouse_highlight): Change the cursor shape
6622 on the vertical border between windows.
6623
6624 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6625
6626 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6627 (syms_of_xfns): DEFVAR_LISP it.
6628 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6629
6630 * textprop.c (text_read_only): New function.
6631 (verify_interval_modification): Use it instead of signaling
6632 `text-read-only'. This makes it easier to catch this error
6633 with a breakpoint.:
6634
6635 * xdisp.c (forward_to_next_line_start): Check for newlines,
6636 not end of line, which includes CR.
6637
6638 2000-11-28 Kenichi Handa <handa@etl.go.jp>
6639
6640 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6641 include no-conversion.
6642
6643 2000-11-27 Jason Rumney <jasonr@gnu.org>
6644
6645 * w32fns.c (w32_load_system_font): Always mark font as double byte
6646 if codepage is unicode.
6647
6648 2000-11-27 Gerd Moellmann <gerd@gnu.org>
6649
6650 * xdisp.c (forward_to_next_line_start): If already on a newline,
6651 just consume it to avoid unintended skipping over invisible text below.
6652
6653 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6654 `vertical-line', `mode-line' and `header-line' events.
6655
6656 * xdisp.c (try_window_id): Avoid starting to display in the middle
6657 of a character, a TAB for instance. This is easier than to set
6658 up the iterator exactly, and it's not a frequent case, so the
6659 additional effort wouldn't really pay off.
6660
6661 2000-11-26 Andrew Choi <akochoi@i-cable.com>
6662
6663 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
6664 init_window_once.
6665
6666 2000-11-25 Jason Rumney <jasonr@gnu.org>
6667
6668 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6669 Args to window_from_coordinates should be pixel coordinates.
6670
6671 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6672 redisplay handles them properly.
6673
6674 2000-11-25 Miles Bader <miles@gnu.org>
6675
6676 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6677
6678 2000-11-24 Jason Rumney <jasonr@gnu.org>
6679
6680 * w32.c (init_environment): Set LANG environment variable based on
6681 locale settings, if not set.
6682
6683 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6684 making tool bar smaller. When clearing the frame, also
6685 clear current matrices. Clear frame when tool bar disappears.
6686 Don't use more lines for the tool-bar than is available.
6687 (x_change_window_heights): New function.
6688
6689 2000-11-24 Gerd Moellmann <gerd@gnu.org>
6690
6691 * xdisp.c (init_from_display_pos): If POS says we're already after
6692 an overlay string ending at POS, make sure to pop the iterator
6693 because it will be in front of that overlay string. When POS is
6694 ZV, we've thereby also ``processed'' overlay strings at ZV.
6695
6696 * xfaces.c (lface_from_face_name): Function comment fix.
6697
6698 2000-11-24 Miles Bader <miles@gnu.org>
6699
6700 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6701 apply `mode-line-inverse-video' -- zero means force display using
6702 the default face, non-zero means display using the specialized face.
6703 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6704
6705 2000-11-23 Kenichi Handa <handa@etl.go.jp>
6706
6707 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6708 hard coded `4'.
6709
6710 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6711
6712 * coding.c (decode_coding_emacs_mule): Fix the case of
6713 CODING_EOL_LF, which used uninitialized value of c.
6714
6715 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6716
6717 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6718
6719 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6720
6721 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6722 buffer object.
6723
6724 * frame.h (struct frame): Replace desired_tool_bar_items,
6725 current_tool_bar_items, n_desired_tool_bar_items,
6726 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
6727
6728 * frame.c (make_frame): Change initialization of tool bar
6729 items accordingly.
6730
6731 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
6732 Change references to members deleted from struct frame to use the
6733 new ones.
6734
6735 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
6736 references to members deleted from struct frame to use the new ones.
6737
6738 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
6739
6740 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6741
6742 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
6743 (note_tool_bar_highlight): Change references to members deleted
6744 from struct frame to use the new ones.
6745
6746 2000-11-23 Miles Bader <miles@gnu.org>
6747
6748 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6749 the face's inverse-video attribute, rather than overriding it.
6750
6751 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6752
6753 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6754 making tool bar smaller.
6755
6756 2000-11-22 Dave Love <fx@gnu.org>
6757
6758 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6759
6760 2000-11-22 Miles Bader <miles@gnu.org>
6761
6762 * keyboard.c (Vminibuffer_message_timeout): New variable.
6763 (command_loop_1): Use it to determine message timeout.
6764 (syms_of_keyboard): Initialize it.
6765
6766 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
6767
6768 2000-11-22 Kenichi Handa <handa@etl.go.jp>
6769
6770 * sysdep.c: Move the code for declaring h_errno after #include
6771 <netdb.h>.
6772
6773 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6774
6775 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6776 the menu bar when the tooltip is unmapped.
6777
6778 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6779 sole visible buffer when we're currently in the mini-buffer, and
6780 give up if so.
6781
6782 2000-11-21 Jason Rumney <jasonr@gnu.org>
6783
6784 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6785 put on the clipboard.
6786 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6787 copy of what Emacs last put there. If they are the same, do not
6788 use the clipboard copy to avoid losing data due to coding conversions.
6789
6790 2000-11-22 Miles Bader <miles@gnu.org>
6791
6792 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6793 (syms_of_minibuf): Initialize it.
6794 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6795 to prompt, don't make read-only.
6796
6797 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6798
6799 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6800 Add BEFORE/AFTER_POTENTIAL_GC.
6801
6802 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6803
6804 * buffer.c (mmap_free_1): Avoid a compiler warning.
6805
6806 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6807
6808 2000-11-21 Kenichi Handa <handa@etl.go.jp>
6809
6810 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6811 ... #endif scope.
6812
6813 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6814
6815 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
6816 screen supports it.
6817
6818 * s/gnu-linux.h: Don't use `#cpu'.
6819
6820 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6821 not defined in mman.h.
6822
6823 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
6824 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6825 and store an index in the XClientMessageEvent. Storing a
6826 Lisp_Object or pointer can fail on a 64 bit system, since X only
6827 transfers 32 bits.
6828 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6829
6830 2000-11-20 Dave Love <fx@gnu.org>
6831
6832 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6833
6834 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6835
6836 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6837
6838 2000-11-20 Kenichi Handa <handa@etl.go.jp>
6839
6840 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6841 by WIDTH.
6842
6843 * alloc.c (make_string): Fix previous change. Be sure to make
6844 unibyte string correctly.
6845
6846 2000-11-19 Gerd Moellmann <gerd@gnu.org>
6847
6848 * window.c (Fwindow_list): Change parameter list to be XEmacs
6849 compatible.
6850 (window_list_1): New function.
6851 (window_loop): Use it instead of Fwindow_list.
6852
6853 * sysdep.c (emacs_ospeed): New variable.
6854 (toplevel): Don't declare ospeed extern.
6855 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6856
6857 * termcap.c (ospeed): Remove.
6858 (tputs) [!emacs]: Remove unused code.
6859 (tgetent): Avoid a compiler warning.
6860
6861 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6862 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
6863 SCROLL_BAR_X_WIDGET with additional argument DPY.
6864
6865 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6866 removed.
6867 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6868 Take the X display as additional argument.
6869 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6870 `Widget' is a pointer type that's not easily stored in Lisp_Object
6871 form in a portable way.
6872
6873 * dispnew.c (update_text_area): Fix last change.
6874
6875 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6876
6877 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6878
6879 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6880 clear current matrices.
6881
6882 * buffer.c (mmap_enlarge): Don't print a message on stderr
6883 if mapping new memory at the end of the existing region fails.
6884
6885 * dispnew.c (update_text_area): Don't skip over equal glyphs
6886 when the last current glyph overlaps the glyph to its right.
6887
6888 2000-11-18 Miles Bader <miles@gnu.org>
6889
6890 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6891 lines that *end* with "..." too (that's the most common case!).
6892
6893 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6894
6895 * xdisp.c (resize_mini_window): Temporarily change to the
6896 mini-window's buffer if necessary.
6897
6898 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6899 the tooltip obscures less text under it.
6900
6901 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6902
6903 * puresize.h (BASE_PURESIZE): Increase to 700000.
6904
6905 2000-11-18 Jason Rumney <jasonr@gnu.org>
6906
6907 * w32term.c (w32_draw_bitmap): Use face to set colors.
6908
6909 2000-11-17 Dave Love <fx@gnu.org>
6910
6911 * lread.c (Fload): Fix #ifdef for pcc.
6912
6913 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6914
6915 * xdisp.c (pos_visible_p): Compute the default character height
6916 differently.
6917
6918 2000-11-16 Gerd Moellmann <gerd@gnu.org>
6919
6920 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
6921 knowing the line's height; use the default font's height in that case.
6922
6923 * xfaces.c (weight_table): Add `demi' with the same meaning as
6924 `demibold'.
6925
6926 2000-11-16 Kenichi Handa <handa@etl.go.jp>
6927
6928 * dispnew.c (null_row): New global static variable.
6929 (clear_glyph_row): Delete local static variable null_row.
6930
6931 2000-11-15 Jason Rumney <jasonr@gnu.org>
6932
6933 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6934 (w32_alloc_lighter_color): Use new brightness calculations from
6935 xterm.c. Scale delta to be in the range expected by W32.
6936 (w32_draw_relief_rect): Use frame relief colors.
6937
6938 2000-11-15 Gerd Moellmann <gerd@gnu.org>
6939
6940 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6941 (Qinhibit_default_face_x_resources): New variable.
6942 (syms_of_frame): Initialize it.
6943 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6944
6945 * xdisp.c (pos_visible_p): Improve function comment.
6946
6947 * lisp.h (BINDING_STACK_SIZE): New macro.
6948
6949 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6950 reading the directory if readdir returns null and errno is EAGAIN
6951 or EINTR.
6952
6953 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6954
6955 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6956 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6957 Set amount_to_scroll to max of dx and scroll_step so that
6958 scroll-conservatively doesn't defeat scroll-step>1.
6959 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6960 scroll-conservatively for line-at-a-time scrolling.
6961
6962 2000-11-14 Gerd Moellmann <gerd@gnu.org>
6963
6964 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6965 extra argument.
6966
6967 * xdisp.c (current_mode_line_height, current_header_line_height):
6968 New variables.
6969 (init_xdisp): Initialize them.
6970 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6971 and use exact mode line heights if it is set.
6972
6973 * lisp.h (pos_visible_p): Change prototype.
6974
6975 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6976 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6977 and current_header_line_height first.
6978 (current_mode_line_height, current_header_line_height):
6979 Declare extern.
6980
6981 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6982
6983 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6984 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6985 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6986
6987 2000-11-14 Miles Bader <miles@gnu.org>
6988
6989 * xterm.c (x_alloc_lighter_color): Include an additive component
6990 too for dark colors, because FACTOR isn't enough.
6991 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6992 New macros.
6993
6994 2000-11-13 Gerd Moellmann <gerd@gnu.org>
6995
6996 * keyboard.c (show_help_echo): Call message3_nolog with number of
6997 bytes in the help string as 2nd parameter, instead of the number
6998 of characters.
6999
7000 2000-11-13 Miles Bader <miles@gnu.org>
7001
7002 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
7003 (Fload): Use new openp return protocol.
7004 Don't try to use Vload_source_file_function to load .elc files.
7005 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
7006 openp return protocol.
7007 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
7008
7009 2000-11-11 Kenichi Handa <handa@etl.go.jp>
7010
7011 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
7012
7013 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
7014 Defined these macros.
7015 (NLIST_STRUCT): Avoid re-defining it.
7016
7017 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
7018 -I/usr/contrib/X11R6/include.
7019 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
7020
7021 2000-11-10 Jason Rumney <jasonr@gnu.org>
7022
7023 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
7024
7025 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
7026 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7027
7028 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7029 (Qw32_charset_vietnamese): New symbol.
7030 (xlfd_charset_of_font): New function.
7031 (w32_load_system_font): Use it.
7032 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7033 when Vw32_charset_info_alist is nil to ensure default face always
7034 has font. Use Fcar and Fcdr for safety.
7035 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7036 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7037 pseudo-codepages for special cases.
7038 (w32_to_x_font): New parameter to allow charset portion to be
7039 specified where there is many to one mapping. Callers changed.
7040 (w32_list_fonts): Avoid listing fonts that won't display.
7041
7042 2000-11-10 Gerd Moellmann <gerd@gnu.org>
7043
7044 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7045 (font_list_1): Renamed from font_list.
7046 (font_list): New function, trying alternative registries from
7047 Vface_alternative_font_registry_alist.
7048 (Finternal_set_alternative_font_registry_alist): New function.
7049 (syms_of_xfaces): Initialize and Staticpro
7050 Vface_alternative_font_registry_alist.
7051 Defsubr Finternal_set_alternative_font_registry_alist.
7052
7053 2000-11-09 Ken Raeburn <raeburn@gnu.org>
7054
7055 * lisp.h (Flooking_at): Declare.
7056
7057 2000-11-09 Gerd Moellmann <gerd@gnu.org>
7058
7059 * dired.c (directory_files_internal): Fix a braino.
7060
7061 * dired.c (directory_files_internal): Add missing GCPRO's.
7062 Some cleanup.
7063
7064 2000-11-08 Gerd Moellmann <gerd@gnu.org>
7065
7066 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7067 (resize_mini_window): Return quickly if Vresize_mini_window is
7068 nil. Don't return if Vmax_mini_window_height is nil.
7069
7070 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7071 (syms_of_xdisp): Initialize them.
7072 (resize_mini_window): Act according to the setting of
7073 Vresize_mini_window.
7074 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7075
7076 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7077 scroll bar widget after configuring it, so that it will appear at
7078 the right position from the start.
7079 (XTredeem_scroll_bar): Cleaned up.
7080
7081 2000-11-08 Kenichi Handa <handa@etl.go.jp>
7082
7083 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
7084 font is taller than the frame line, we don't have to bias the
7085 division by two.
7086
7087 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7088
7089 2000-11-07 Dave Love <fx@gnu.org>
7090
7091 * config.in (HAVE_MKSTEMP): Add.
7092
7093 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7094
7095 2000-11-07 Gerd Moellmann <gerd@gnu.org>
7096
7097 * window.c (Fset_window_configuration): Don't try to preserve
7098 point in the current buffer, if that buffer is displayed in more
7099 than one window.
7100
7101 * xfaces.c (lookup_named_face): If default face isn't realized,
7102 try to realize it. Return -1 if not successful.
7103 (Fx_list_fonts): Handle case that face cannot be determined.
7104 (Fface_font): Likewise.
7105
7106 2000-11-06 Gerd Moellmann <gerd@gnu.org>
7107
7108 * window.c (displayed_window_lines): Detect partially
7109 visible lines at the bottom correctly.
7110
7111 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7112
7113 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7114 when ensuring we don't do visit in indirect buffer.
7115
7116 2000-11-06 Kenichi Handa <handa@etl.go.jp>
7117
7118 * composite.h (compose_chars_in_text): Add prototype.
7119
7120 * composite.c (Vcomposition_function_table): New variable.
7121 (Qcomposition_function_table): New variable.
7122 (run_composition_function): Call
7123 Vcompose_chars_after_function with three arguments.
7124 (compose_chars_in_text): New function.
7125 (syms_of_composite): Modified the doc-string of
7126 Vcompose_chars_after_function. Declare composition-function-table
7127 as a lisp variable, and initialize it.
7128
7129 * xfns.c (x_encode_text): Suppress producing escape sequences for
7130 composition.
7131
7132 * xselect.c: Include composite.h.
7133 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7134
7135 2000-11-05 Andrew Innes <andrewi@gnu.org>
7136
7137 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7138
7139 * sysdep.c (read_input_waiting): Remove extraneous argument to
7140 read_socket_hook.
7141
7142 * w32fns.c (Fx_server_version): Include w32_build_number in the
7143 return list.
7144
7145 * w32heap.c (w32_build_number): New variable.
7146 (cache_system_info): Set it.
7147
7148 * w32heap.h (w32_build_number): Add extern.
7149
7150 * emacs.c (syms_of_emacs): Update docstring for
7151 system-configuration, to reflect the actual usage on MS-Windows.
7152
7153 2000-10-31 Gerd Moellmann <gerd@gnu.org>
7154
7155 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7156 process idle timers while waiting for another event.
7157
7158 * dispnew.c (update_frame_line): Handle case where spaces in
7159 the default face are colored.
7160
7161 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7162 window height hasn't changed.
7163
7164 2000-10-31 Jason Rumney <jasonr@gnu.org>
7165
7166 * w32term.c (x_produce_glyphs): Handle composite characters.
7167 (x_draw_glyph_string_foreground)
7168 (x_draw_composite_glyph_string_foreground): Restore old font.
7169
7170 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7171
7172 * minibuf.c (read_minibuf): Reset the undo history just before
7173 starting the recursive-edit.
7174
7175 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7176
7177 * xfaces.c (menu_face_change_count): New variable.
7178 (Finternal_set_lisp_face_attribute): Increment it for changes
7179 of the `menu' face.
7180 (realize_basic_faces): Reflect changes in the `menu' faces
7181 in menu bars.
7182
7183 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7184 dy obtained from the iterator's y-position after moving from
7185 scroll_margin_pos to PT; see comment there.
7186
7187 * xdisp.c (safe_eval_handler): Call add_to_log.
7188
7189 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7190 is not a symbol or string.
7191
7192 * xdisp.c (echo_area_display): Don't perform a display update from
7193 inside redisplay. The update will happen anyway at the end of
7194 redisplay, and it can confuse redisplay (GC messages while
7195 redisplaying, for instance.)
7196
7197 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7198
7199 * xrdb.c (x_load_resources): Use the class name in the defaults.
7200
7201 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7202 (regex_compile): Catch bogus \(\1\).
7203
7204 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7205
7206 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7207 RGB values.
7208
7209 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7210 we have a color cache, check that the cached color equals the
7211 allocated color. If not, clear the color cache.
7212
7213 * window.c (displayed_window_lines): Change buffers if necessary.
7214 Fix computation of displayed lines.
7215
7216 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7217 update_menu_bindings to DEFVAR_BOOL.
7218
7219 2000-10-30 Kenichi Handa <handa@etl.go.jp>
7220
7221 * search.c (Fset_match_data): Be sure to make search_regs always sane.
7222
7223 * puresize.h (BASE_PURESIZE): Increase to 680000.
7224
7225 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7226
7227 2000-10-29 Jason Rumney <jasonr@gnu.org>
7228
7229 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7230
7231 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7232 (w32_cache_char_metrics): Handle possibility that 'x' does not
7233 exist in a BDF font.
7234 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7235
7236 * w32bdf.h (bdffont): Add nchars.
7237
7238 * w32bdf.c (set_bdf_font_info): Set it.
7239 (w32_BDF_TextOut): Swap byte order of double byte characters.
7240 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7241
7242 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7243
7244 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7245 don't override the colors in frame's param_alist, unless they are
7246 unspecified.
7247
7248 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7249 reverse the effect of the highlight flag.
7250
7251 2000-10-27 Ken Raeburn <raeburn@gnu.org>
7252
7253 * window.h (Fwindow_live_p): Declare.
7254
7255 * undo.c (record_delete): Check that last_undo_buffer is really a
7256 buffer before applying XBUFFER to it.
7257
7258 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7259 Faref.
7260
7261 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7262
7263 * lisp.h (KEYMAPP): New macro.
7264 (get_keymap): Remove.
7265 (get_keymap_1): Rename get_keymap.
7266
7267 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7268
7269 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7270
7271 * xmenu.c (single_submenu): Use KEYMAPP.
7272 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7273 Use KEYMAPP rather than Fkeymapp.
7274
7275 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7276
7277 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7278 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7279 Use KEYMAPP rather than Fkeymapp.
7280 (single_submenu): Use KEYMAPP.
7281 (w32_menu_show, w32_dialog_show): Use TRUE.
7282
7283 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7284
7285 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7286 (Fkeymapp): Use KEYMAPP.
7287 (get_keymap): Rename from get_keymap_1. Remove old def.
7288 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7289 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7290 (Fminor_mode_key_binding): Don't raise an error if the binding
7291 is not a keymap.
7292 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7293 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7294
7295 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7296 Allow Vspecial_event_map to be autoloaded.
7297 (menu_bar_items): Fetch the keymap rather than using keymapp.
7298 (menu_bar_one_keymap): No need to follow func-indirect any more.
7299 (parse_menu_item): get_keymap_1 -> get_keymap.
7300 (tool_bar_items): Fetch the keymap rather than using keymapp.
7301 (read_key_sequence): Use KEYMAPP.
7302
7303 * intervals.c (get_local_map): Use get_keymap rather than following
7304 function-indirections explicitly.
7305
7306 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7307
7308 2000-10-27 Jason Rumney <jasonr@gnu.org>
7309
7310 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7311 point, as Windows has oversized fonts.
7312
7313 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7314
7315 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7316
7317 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7318 (freehook, reallochook): Handle null pointer arguments.
7319 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7320
7321 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7322
7323 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7324 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7325 Giving in to popular pressure to shut up the compiler with casts.
7326
7327 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7328
7329 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7330 signed value, and use a default value computed from the font's
7331 maximum descent.
7332
7333 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7334
7335 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7336 that specify a negative underline position can still use underlines.
7337
7338 * window.c (Fpos_visible_in_window_p): Make POS default to
7339 WINDOW's point, not the current buffer's point.
7340
7341 2000-10-26 Dave Love <fx@gnu.org>
7342
7343 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7344 when it's necessary.
7345
7346 2000-10-26 Gerd Moellmann <gerd@gnu.org>
7347
7348 * window.c (size_window): Compute size difference from sum of old
7349 child window sizes instead of from parent's size.
7350
7351 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7352 Handle obscured lines at the top of the window.
7353
7354 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7355 down after the last error condition check.
7356
7357 * frame.c (Fdelete_frame): Run delete-frame-hook.
7358
7359 2000-10-26 Kenichi Handa <handa@etl.go.jp>
7360
7361 * coding.c (decode_coding): Fix previous change (check also
7362 CODING_MODE_LAST_BLOCK).
7363
7364 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7365
7366 * regex.c: More `unsigned char' -> `re_char' changes.
7367 Also change several `int' into `re_wchar_t'.
7368 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7369 (PUSH_FAILURE_POINTER): Don't cast any more.
7370 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7371 We want GCC to complain, since this piece of code makes
7372 re_match non-reentrant, which *should* be fixed.
7373 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7374 (EXTEND_BUFFER): Use RETALLOC.
7375 (SET_LIST_BIT): Don't cast.
7376 (re_wchar_t): New type.
7377 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7378 that those two functions will always properly return.
7379 (IMMEDIATE_QUIT_CHECK): Cast to void.
7380 (analyse_first): Use recursion rather than an explicit stack.
7381 (re_compile_fastmap): Can't fail anymore.
7382 (re_search_2): Don't check re_compile_fastmap for failure.
7383 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7384 Now also sets the new value (passed in a new argument).
7385 (re_match_2_internal): Use it.
7386 Also, use a new var `reg' of type size_t when looping through regs
7387 rather than reuse the inappropriate `mcnt'.
7388
7389 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7390 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7391 (where_is_internal): Renamed from Fwhere_is_internal.
7392 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7393 (Fwhere_is_internal): New function wrapping where_is_internal.
7394 (where_is_internal_1): Handle the case where we're filling the cache.
7395 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7396
7397 2000-10-25 Miles Bader <miles@gnu.org>
7398
7399 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7400
7401 2000-10-25 Gerd Moellmann <gerd@gnu.org>
7402
7403 * window.c (pos_fully_visible_p): Removed.
7404 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7405 if position is visible and/or fully visible.
7406
7407 * lisp.h (pos_visible_p): Add prototype.
7408
7409 * xdisp.c (pos_visible_p): New function.
7410
7411 2000-10-25 Kenichi Handa <handa@etl.go.jp>
7412
7413 * process.c (send_process): If OBJECT is t, it means that the data
7414 is from C string, but we should encode it. Before calling
7415 setup_raw_text_coding_system, be sure to flush out data by the
7416 previous coding system.
7417
7418 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7419
7420 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7421 assignment of startpos to prev when startpos == pos.
7422
7423 * editfns.c (find_field): Set the field stickiness correctly from
7424 overlay fields. Use renamed `text_property_stickiness'.
7425 (text_property_stickiness): Renamed from `char_property_stickiness'.
7426 Only check text properties, not overlays.
7427 * textprop.c (get_char_property_and_overlay): New function.
7428 (Fget_char_property): Use it.
7429 * intervals.h (get_char_property_and_overlay): Add declaration.
7430
7431 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7432
7433 * keymap.c: Use AREF, ASET and ASIZE macros.
7434 (Fmake_sparse_keymap): Docstring fix.
7435 (synkey): Remove.
7436 (shadow_lookup): Move up.
7437 Handle the case where lookup-key returns an integer.
7438 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7439 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7440 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7441 Simplify/rewrite the keymap-finding code.
7442 Add check for command shadowing, using shadow_lookup.
7443
7444 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7445
7446 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7447 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7448 a symbol.
7449
7450 2000-10-24 Andrew Innes <andrewi@gnu.org>
7451
7452 * dired.c (directory_files_internal_unwind): New function.
7453 (directory_files_internal): Use it to ensure closedir is called
7454 even if expand-file-name or file-attributes throw, eg. because of
7455 a user interrupt. Also enable immediate_quit while calling
7456 re_search, so that matching can be interrupted as well.
7457
7458 2000-10-24 Andrew Innes <andrewi@gnu.org>
7459
7460 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7461 NT-Emacs only.
7462 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7463 so that re_search functions only quit when callers expect them to.
7464
7465 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7466
7467 * regex.c (regex_compile): Change the way of handling a range from
7468 a char less than 256 to a char not less than 256.
7469
7470 2000-10-24 Gerd Moellmann <gerd@gnu.org>
7471
7472 * window.c (size_window): Prevent setting window's width or
7473 height to a negative value (esp. with XSETFASTINT).
7474
7475 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7476 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7477 (protect_malloc_state) [GC_MALLOC_CHECK &&
7478 GC_PROTECT_MALLOC_STATE]: New function.
7479 (PROTECT_MALLOC_STATE): New macro.
7480 (__malloc_initialize, morecore, _malloc_internal)
7481 (_free_internal) _realloc_internal): Use it to make _heapinfo
7482 read-only outside of gmalloc.
7483
7484 * keymap.c: Update copyright.
7485
7486 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7487 a symbol.
7488
7489 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7490
7491 * filelock.c (unlock_all_files): Use unlock_file to expand each
7492 buffer's file_truename before trying remove its lock file.
7493
7494 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7495
7496 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7497 or CRLF, decode EOLs.
7498
7499 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7500
7501 * window.c (Fdisplay_buffer): Fix doc.
7502
7503 2000-10-23 Jason Rumney <jasonr@gnu.org>
7504
7505 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7506 ASCII font of default fontset on Windows.
7507
7508 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7509 xterm.c comment below).
7510
7511 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7512
7513 2000-10-23 Gerd Moellmann <gerd@gnu.org>
7514
7515 * xterm.c (x_connection_closed): Reset handling_signal.
7516
7517 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
7518
7519 2000-10-23 Miles Bader <miles@gnu.org>
7520
7521 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7522 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7523 maintain old behavior.
7524 * minibuf.c (Fminibuffer_complete): Likewise.
7525
7526 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7527
7528 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7529 that when a font can't be exactly centered, it errs up rather than
7530 down.
7531
7532 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
7533
7534 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
7535
7536 2000-10-23 Andrew Choi <akochoi@i-cable.com>
7537
7538 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7539
7540 * dispnew.c [macintosh]: Include macterm.h.
7541 (init_display) [macintosh]: Initialization for window system.
7542
7543 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7544 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7545 syms_of_search, x_term_init, and init_keyboard before calling
7546 init_window_once. Also, call syms_of_xmenu.
7547
7548 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7549 default fontset to Monaco.
7550
7551 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7552 NewMacWindow and DisposeMacWindow.
7553 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7554 instead of calling NewMacWindow and setting fields of
7555 f->output_data.mac directly. Call init_frame_faces.
7556 (Fdelete_frame) [macintosh]: Remove unused code.
7557 (Fmodify_frame_parameters) [macintosh]: Call
7558 x_set_frame_parameters instead of mac_set_frame_parameters.
7559
7560 * frame.h [macintosh]: Define menu_bar_lines field in struct
7561 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7562
7563 * keyboard.c [macintosh]: Include macterm.h.
7564 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7565 and menu_bar_activate_event type events as for X and NT.
7566 (make_lispy_event) [macintosh]: Construct lisp events of type
7567 MENU_BAR_EVENT as for X and NT.
7568
7569 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7570 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7571 (sys_subshell) [macintosh]: Remove definition entirely.
7572 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7573 Vwindow_system_version here. Remove initialization of
7574 Vx_bitmap_file_path.
7575 (read_input_waiting): Correct the number of parameters passed to
7576 read_socket_hook.
7577 Move all Macintosh functions to mac/mac.c.
7578
7579 * term.c [macintosh]: Include macterm.h.
7580
7581 * window.c [macintosh]: Include macterm.h.
7582
7583 * xdisp.c [macintosh]: Include macterm.h. Declare
7584 set_frame_menubar and pending_menu_activation.
7585 (echo_area_display) [macintosh]: Do not return if terminal frame
7586 is the selected frame.
7587 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7588 Allow only the selected frame to set menu bar.
7589 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7590 calling FRAME_EXTERNAL_MENU_BAR (f).
7591 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7592
7593 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7594 and check_x. Declare XCreateGC. Define x_create_gc and
7595 x_free_gc. Initialize font_sort_order.
7596 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7597 but call x_list_fonts instead of w32_list_fonts.
7598 (Finternal_face_x_get_resource) [macintosh]: Do not call
7599 display_x_get_resource.
7600 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7601 (realize_x_face) [macintosh]: Load the font if it is specified in
7602 ATTRS.
7603 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
7604
7605 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7606
7607 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7608 is nil: since we go to the end of submap anyway, we'd end up
7609 setting nil to nil.
7610 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7611 doesn't obey autoload.
7612
7613 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7614
7615 * msdos.c (dos_set_window_size): Update screen dimension variables.
7616
7617 2000-10-21 Jason Rumney <jasonr@gnu.org>
7618
7619 * w32term.c (w32_cache_char_metrics): Double check that font is
7620 really fixed pitch before trusting tmPitchAndFamily.
7621
7622 2000-10-21 Andrew Innes <andrewi@gnu.org>
7623
7624 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7625
7626 * w32term.h: Extern decl for w32_cache_char_metrics.
7627
7628 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7629
7630 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7631 (w32_unload_font): Free per_char array if present.
7632
7633 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7634 cached information in emulated XFontStruct to handle common cases
7635 quickly. Do not allocate XCharStruct for return.
7636 (w32_native_per_char_metric): New function.
7637 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7638 allocating one.
7639 (x_produce_glyphs): Don't get an HDC. Change calls to
7640 w32_per_char_metric to match arg change above. Remove calls to
7641 free results.
7642 (w32_get_glyph_overhangs): Ditto.
7643 (w32_cache_char_metrics): New function.
7644
7645 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7646 ($(BLD)/casefiddle.$(O)): Remove compile command.
7647 ($(BLD)/gmalloc.$(O)): Remove compile command.
7648 ($(BLD)/dispnew.obj):
7649 ($(BLD)/keyboard.obj):
7650 ($(BLD)/w32inevt.obj):
7651 ($(BLD)/w32bdf.obj):
7652 ($(BLD)/alloc.obj):
7653 ($(BLD)/buffer.obj):
7654 ($(BLD)/editfns.obj):
7655 ($(BLD)/emacs.obj):
7656 ($(BLD)/fileio.obj):
7657 ($(BLD)/fns.obj):
7658 ($(BLD)/indent.obj):
7659 ($(BLD)/insdel.obj):
7660 ($(BLD)/intervals.obj):
7661 ($(BLD)/minibuf.obj):
7662 ($(BLD)/print.obj):
7663 ($(BLD)/scroll.obj):
7664 ($(BLD)/sysdep.obj):
7665 ($(BLD)/textprop.obj):
7666 ($(BLD)/widget.obj):
7667 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7668 ($(BLD)/term.obj): Add dependency on dispextern.h.
7669
7670 * makefile.nt ($(BLD)\dispnew.obj):
7671 ($(BLD)\keyboard.obj):
7672 ($(BLD)\w32inevt.obj):
7673 ($(BLD)\w32bdf.obj):
7674 ($(BLD)\alloc.obj):
7675 ($(BLD)\buffer.obj):
7676 ($(BLD)\editfns.obj):
7677 ($(BLD)\emacs.obj):
7678 ($(BLD)\fileio.obj):
7679 ($(BLD)\fns.obj):
7680 ($(BLD)\indent.obj):
7681 ($(BLD)\insdel.obj):
7682 ($(BLD)\intervals.obj):
7683 ($(BLD)\minibuf.obj):
7684 ($(BLD)\print.obj):
7685 ($(BLD)\scroll.obj):
7686 ($(BLD)\sysdep.obj):
7687 ($(BLD)\textprop.obj):
7688 ($(BLD)\widget.obj):
7689 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7690 ($(BLD)\term.obj): Add dependency on dispextern.h
7691
7692 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7693
7694 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7695 with an additional argument of Qt.
7696
7697 2000-10-21 Miles Bader <miles@gnu.org>
7698
7699 * window.c (pos_fully_visible_in_window_p): New function.
7700 (Fpos_visible_in_window_p): Add FULLY argument.
7701 Use pos_fully_visible_in_window_p.
7702 (window_scroll_pixel_based, window_scroll_line_based): Update
7703 calls to Fpos_visible_in_window_p.
7704 * lisp.h (Fpos_visible_in_window_p): Update prototype
7705
7706 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7707
7708 * alloc.c (toplevel): Conditionalize compilation of mem_*
7709 functions differently.
7710
7711 2000-10-20 Jason Rumney <jasonr@gnu.org>
7712
7713 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7714 mem_init where it used to be. mem_z etc not defined otherwise.
7715
7716 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7717
7718 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7719 GC_MALLOC_CHECK.
7720 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7721 structure definition and related variabled to the top of the file.
7722 Include this code when GC_MALLOC_CHECK is defined.
7723 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7724 register/unregister allocated region.
7725 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7726 which isn't allocated.
7727 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7728 something which is already in use.
7729 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7730 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7731 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7732 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7733
7734 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7735 _malloc_internal instead of malloc.
7736 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7737 of free.
7738
7739 2000-10-20 Andrew Innes <andrewi@gnu.org>
7740
7741 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7742 Windows.
7743 (my_strftime) <macro>: Don't use macro arg list when redefining as
7744 _strftime_copytm.
7745 (my_strftime) <function>: Supply 0 as ut argument.
7746
7747 2000-10-19 Jason Rumney <jasonr@altavista.net>
7748
7749 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7750 including dispextern.h, as it stops faces from working.
7751
7752 * w32fns.c (Fx_create_frame): Don't bother calling
7753 face-set-after-frame-default since the caller does it for us
7754 anyway. Clean up calls to x_get_arg to be consistent with X.
7755
7756 * w32term.c (x_produce_glyphs): Handle
7757 unibyte_display_via_language_environment correctly.
7758 (w32_draw_box_rect): Fix the calculation of width and height.
7759
7760 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7761 as it has stopped working.
7762 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7763 menu-bar.
7764
7765 2000-10-19 Gerd Moellmann <gerd@gnu.org>
7766
7767 * eval.c (skip_debugger): Prevent a compiler warning.
7768 (Fcondition_case): Likewise.
7769 (Fbacktrace_frame): Use a null interactive spec.
7770
7771 2000-10-19 Kenichi Handa <handa@etl.go.jp>
7772
7773 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7774
7775 2000-10-18 Gerd Moellmann <gerd@gnu.org>
7776
7777 * strftime.c: Sync with glibc, file version 1.78.
7778 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7779 should no longer be used according to ISO 8601.
7780
7781 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7782 no map for meta_prefix_char, don't try to use it as a keymap.
7783 Instead, if T_OK is non-zero, look up a default binding, if any,
7784 otherwise, if T_OK is zero, return nil.
7785
7786 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7787 (x_to_xcolors, png_load): Use x_query_color.
7788
7789 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7790 New functions.
7791 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7792 which can be slow.
7793 (x_copy_color, x_alloc_lighter_color): Likewise.
7794
7795 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7796 (x_query_color, x_query_colors): Add prototype.
7797
7798 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7799 check_string_bytes only if not noninteractive, increase count to 50.
7800
7801 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7802
7803 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7804 markers correctly.
7805
7806 2000-10-17 Gerd Moellmann <gerd@gnu.org>
7807
7808 * alloc.c (pure_bytes_used): Renamed from pureptr.
7809 (ALIGN): New macro.
7810 (pure_alloc): New function.
7811 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7812 Use it.
7813 (Fpurecopy): Use PURE_POINTER_P.
7814
7815 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7816 PT has moved backward.
7817
7818 * xdisp.c (cursor_row_p): Take continued lines into account.
7819
7820 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7821 string's size_byte.
7822 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7823 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7824 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7825 string allocated.
7826
7827 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7828 of selective display off while searching for the next line start.
7829
7830 2000-10-17 Kenichi Handa <handa@etl.go.jp>
7831
7832 * Makefile.in (term.o): Depend on dispextern.h.
7833
7834 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7835
7836 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7837
7838 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7839
7840 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7841 the iterator at the beginning, so that they can be set later on,
7842 for instance in reseat_at_next_visible_line_start, without being
7843 overwritten.
7844
7845 * xfns.c (pbm_format): Add :foreground and :background keywords.
7846 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
7847 (xbm_load): Recognize foreground and background color specifications.
7848
7849 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7850
7851 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7852
7853 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
7854
7855 * msdos.c (IT_set_face): Compare highlighted face with the default
7856 face, and invert colors if these faces' colors are identical.
7857 (Fmsdos_remember_default_colors): Don't swap foreground and
7858 background colors in initial_colors[].
7859 (IT_set_frame_parameters): Don't swap frame's foreground and
7860 background pixels. If ALIST includes "(reverse . t)", swap
7861 foreground-color and background-color properties in frame's
7862 param_alist. If the original frame's param_alist doesn't specify
7863 the colors, store unspecified-fg and unspecified-bg, reversed if
7864 required.
7865
7866 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7867 the colors are unspecified and reversed, reverse fore- and back-
7868 ground in the returned value.
7869 (Fframe_parameter): Ditto.
7870
7871 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7872
7873 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7874 get_last_unchanged_at_beg_row.
7875 (find_first_unchanged_at_end_row): Renamed from
7876 get_first_unchanged_at_end_row.
7877 (find_first_unchanged_at_end_row): Convert assertions to
7878 unconditional tests which abort. When looking for a row in
7879 unchanged text, don't go further back than first_text_row.
7880
7881 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7882 Don't add in the last line's height when deciding if the new
7883 position is below the scroll margin.
7884
7885 2000-10-16 Miles Bader <miles@gnu.org>
7886
7887 * editfns.c (Fconstrain_to_field): Check carefully for field
7888 boundaries if either OLD_POS or NEW_POS has a non-nil field
7889 property, even if they're the same.
7890
7891 2000-10-16 Kenichi Handa <handa@etl.go.jp>
7892
7893 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7894 height for XFillRectangle.
7895
7896 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7897
7898 * syntax.c (Fstring_to_syntax): New function extracted from
7899 Fmodify_syntax_entry.
7900 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7901 (skip_chars, Fforward_comment): Remove unused variables.
7902 (syms_of_syntax): Add defsubr for string-to-syntax.
7903 (describe_syntax): Add code for comment and string fences.
7904
7905 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7906
7907 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7908 Do the meta->esc mapping. Call get_keyelt before returning.
7909 Start scanning from the second element (the first is always `keymap')
7910 to make it easier to detect when we reach a parent map.
7911 Handle the case of inheriting from a symbol whose function is a map.
7912 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7913 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7914 (get_keyelt, Flookup_key): Update call to access_keymap.
7915 Remove the meta->esc mappings.
7916 (define_as_prefix): Delete old disabled code.
7917 (menu_item_p): New function.
7918 (where_is_internal_1): Skip over the few remaining menu items.
7919 * lisp.h (access_keymap): Update prototype.
7920 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7921 Update call to access_keymap.
7922 (follow_key, read_key_sequence): Update calls to access_keymap.
7923 Remove the meta->esc mappings.
7924
7925 2000-10-13 Gerd Moellmann <gerd@gnu.org>
7926
7927 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7928 with additional argument.
7929
7930 * xdisp.c (cursor_row_p): New function.
7931 (try_cursor_movement, display_line): Use it.
7932
7933 * xdisp.c (append_space): Also save/restore iterator's current
7934 character and its length.
7935
7936 * xdisp.c (init_from_display_pos): Add an assertion.
7937 (handle_stop): Don't set iterator's add_overlay_start.
7938 (handle_invisible_prop): Likewise.
7939 (load_overlay_strings): If text under an overlay is invisible,
7940 take both before- and after-strings into account when the iterator
7941 is positioned either at the start or at the end of the overlay.
7942 (forward_to_next_line_start): Rewritten.
7943 (reseat_at_next_visible_line_start): Rewritten.
7944 (set_iterator_to_next): Add parameter RESEAT_P.
7945
7946 * dispextern.h (struct it): Remove member add_overlay_start.
7947 (set_iterator_to_next): Change prototype.
7948
7949 2000-10-13 Kenichi Handa <handa@etl.go.jp>
7950
7951 * coding.c (code_convert_region): Be sure to initialize
7952 coding->category_idx.
7953 (decode_coding_string): Set coding->src_multibyte and
7954 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7955 (encode_coding_string): Set coding->src_multibyte and
7956 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
7957
7958 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7959
7960 * xfns.c (Fx_create_frame): Don't bother calling
7961 face-set-after-frame-default since the caller does it for us anyway.
7962
7963 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7964
7965 * window.c (coordinates_in_window): Fix detection of vertical line
7966 on character terminals.
7967
7968 2000-10-12 Gerd Moellmann <gerd@gnu.org>
7969
7970 * editfns.c (save_excursion_save): Additionally record the
7971 selected window.
7972 (save_excursion_restore): If buffer was visible in a window, and a
7973 different window was selected, and the old selected window is
7974 still live, restore point in that window.
7975
7976 2000-10-12 Kenichi Handa <handa@etl.go.jp>
7977
7978 * xterm.c (x_produce_glyphs): Handle
7979 unibyte_display_via_language_environment correctly.
7980
7981 * regex.c (regex_compile): Change the way of handling a range from
7982 unibyte char to multibyte char.
7983
7984 * syntax.c (skip_chars): Change the way of handling a range from
7985 unibyte char to multibyte char.
7986
7987 * process.c (read_process_output): Cancel previous change.
7988
7989 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7990
7991 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7992
7993 * charset.c (Ffind_charset_string): Doc fix.
7994 (Ffind_charset_region): Doc fix.
7995
7996 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
7997
7998 * process.c (read_process_output): Fix previous change. Adjust
7999 multibyteness of text to insert in a buffer by
8000 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
8001
8002 2000-10-10 Andreas Schwab <schwab@suse.de>
8003
8004 * alloc.c (mark_object): Remove all workarounds installed on
8005 1993-08-08.
8006
8007 2000-10-10 Kenichi Handa <handa@etl.go.jp>
8008
8009 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
8010 (base64_encode_1): Make it work for a text of multibyte form.
8011 (Fbase64_decode_region): Allocate sufficient memory for multibyte
8012 case. Don't call str_to_multibyte because base64_decode_1
8013 produces correct multibyte form for eight-bit codes.
8014 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
8015 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
8016 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
8017 codes.
8018
8019 * charset.h (CHAR_STRING): Optimized for single byte characters.
8020
8021 2000-10-09 Andreas Schwab <schwab@suse.de>
8022
8023 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
8024 -1 after socket is closed, to fall through to error processing.
8025
8026 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8027
8028 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
8029 variables. If ALIST includes foreground-color or
8030 background-color, change also the colors of the default face for
8031 this frame.
8032
8033 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8034
8035 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8036 them extern (they are defined on xfaces.c).
8037 (syms_of_msdos): Don't intern and don't staticpro
8038 Qbackground_color and Qforeground_color.
8039
8040 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8041
8042 * frame.c (Fframe_parameter): For non-windowed frames, if
8043 f->param_alist says foreground or background color is unspecified,
8044 call tty_color_name to return the color name computed from the
8045 frame's current colors.
8046
8047 2000-10-06 Dave Love <fx@gnu.org>
8048
8049 * terminfo.c (ospeed): Don't declare.
8050
8051 * sysdep.c: Don't include string.h.
8052 (h_errno): Declare conditional also on TRY_AGAIN.
8053
8054 * charset.c (Ffind_charset_string): Doc fix.
8055
8056 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
8057 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8058 error messages.
8059
8060 2000-10-05 Dave Love <fx@gnu.org>
8061
8062 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8063 position like menu-bar.
8064
8065 2000-10-05 Gerd Moellmann <gerd@gnu.org>
8066
8067 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8068
8069 * xdisp.c (handle_single_display_prop): Use safe_call1.
8070 (safe_call): Renamed from call_function.
8071 (safe_call1): New function.
8072 (handle_fontified_prop): Use safe_call1 instead of call1.
8073 (safe_eval): Renamed from eval_form.
8074 (safe_eval_handler): Renamed from eval_handler.
8075 (handle_single_display_prop, display_mode_element): Use safe_eval
8076 instead of eval_form.
8077
8078 * xfaces.c (merge_face_heights): Use safe_call instead of
8079 call_function.
8080
8081 * keyboard.c (show_help_echo): Use safe_call instead of
8082 call_function; use safe_eval instead of eval_form.
8083
8084 * lisp.h (safe_call): Renamed from call_function.
8085 (safe_eval): Renamed from eval_form.
8086 (safe_call1): Add prototype.
8087
8088 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8089
8090 * xfns.c (image_ascent): Rearrange ascent calculation for the
8091 has-a-font case.
8092
8093 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8094
8095 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8096 (where_is_internal_1): Don't bother ignoring menu-items any more.
8097
8098 2000-10-04 Gerd Moellmann <gerd@gnu.org>
8099
8100 * keyboard.c (update_menu_bindings): New variable.
8101 (parse_menu_item): Use AREF. If update_menu_bindings
8102 is 0, don't update menu bindings.
8103 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8104
8105 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8106
8107 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8108 to `mark_object'.
8109
8110 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8111
8112 * syntax.c (forw_comment): Match nestedness of ender/starter.
8113 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8114 (prev_char_comstart_first): Remove.
8115 (back_comment): Check two-char comment markers more carefully
8116 to better handle overlapping cases like *//* or /* */* */ ...
8117 Match nestedness of ender/starter.
8118
8119 2000-10-02 Dave Love <fx@gnu.org>
8120
8121 * config.in (HAVE_GAI_STRERROR): Add undef.
8122
8123 * process.c (Fopen_network_stream): Use it.
8124
8125 * m/alpha.h (NO_REMAP): Don't define.
8126
8127 2000-10-02 Gerd Moellmann <gerd@gnu.org>
8128
8129 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8130 return with a string converted to an integer or vice versa when
8131 Vmocklisp_arguments is t.
8132 (Fsignal): Likewise. The function can return for `quit'.
8133 (struct gcpro): Declare member `var' to point to a volatile
8134 Lisp_Object.
8135
8136 * eval.c (error): Prevent compiler warning.
8137
8138 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8139
8140 * keymap.c (keymap_memberp): New function.
8141 (Fset_keymap_parent): Use it.
8142 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8143 Use keymap_memberp to avoid creating cycles.
8144 (access_keymap): Use KEYMAPP.
8145
8146 2000-09-30 Gerd Moellmann <gerd@gnu.org>
8147
8148 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
8149 gai_strerror. Make sure xerrno is set if connect fails. Improve
8150 error recovery.
8151
8152 2000-09-29 Jason Rumney <jasonr@gnu.org>
8153
8154 * w32term.c (w32_char_font_type, w32_encode_char)
8155 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8156 (w32_bdf_per_char_metric): New function.
8157 (w32_per_char_metric): Use it.
8158 (x_draw_glyph_string_background): Always draw background for BDF
8159 glyphs.
8160
8161 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8162 GDI object which is a scarce resource.
8163
8164 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8165 (get_quoted_string): Fix limit on memchr search.
8166 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8167 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8168 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8169 (get_cached_font_char, cache_char_offset): Use macro
8170 BDF_CODEPOINT_RANGE_COVER_P.
8171 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8172 (clear_cached_bitmap_slots): New function.
8173 (GET_HEX_VALUE): G-Z, g-z are not hex.
8174 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8175 (get_bitmap_with_cache): Use new cache implementation.
8176 (create_offscreen_bitmap): New function.
8177 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8178
8179 * w32term.c (x_produce_glyphs): If the distance from the current
8180 position to the next tab stop is less than a canonical character
8181 width, use the tab stop after that.
8182 (x_draw_glyphs): Handle case START and END are out of bounds more
8183 carefully.
8184 (x_clear_mouse_face): Block/unblock input.
8185 (x_display_and_set_cursor): Don't show a hollow box cursor for
8186 buffers whose cursor_type is nil.
8187
8188 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8189
8190 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
8191
8192 * dispextern.h (updating_frame): Declare extern.
8193
8194 2000-09-29 Andreas Schwab <schwab@suse.de>
8195
8196 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8197
8198 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8199
8200 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8201 use its function definition.
8202 (tool_bar_items): Likewise.
8203
8204 * lisp.h (fatal): Declare NO_RETURN.
8205
8206 2000-09-29 Kenichi Handa <handa@etl.go.jp>
8207
8208 * keymap.c: Remove the line "#undef NULL".
8209
8210 2000-09-28 Gerd Moellmann <gerd@gnu.org>
8211
8212 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
8213
8214 2000-09-28 Dave Love <fx@gnu.org>
8215
8216 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8217
8218 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8219
8220 * .gdbinit (xreload): Note its need on GNU/Linux.
8221
8222 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8223 r_alloc, r_alloc_free.
8224
8225 2000-09-28 Kenichi Handa <handa@etl.go.jp>
8226
8227 * syntax.c (skip_chars): Handle negation correctly.
8228
8229 2000-09-27 Gerd Moellmann <gerd@gnu.org>
8230
8231 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8232 with non-zero FORCE_P argument.
8233
8234 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8235 Add assertions.
8236
8237 * xdisp.c (window_box_height): Add an assertion.
8238
8239 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8240 tool-bar than is available.
8241 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8242
8243 2000-09-27 Dave Love <fx@gnu.org>
8244
8245 * s/irix6-5.h: Now works 64-bit. Tidied.
8246
8247 2000-09-26 Gerd Moellmann <gerd@gnu.org>
8248
8249 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8250 instead of BITS_PER_INT.
8251 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8252 EMACS_UINT, respectively.
8253 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8254
8255 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8256
8257 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8258
8259 * window.c (freeze_window_starts): Construct last argument for
8260 foreach_window differently.
8261
8262 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8263
8264 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8265 EMACS_UINT instead of `int' and `unsigned int'.
8266 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8267
8268 * frame.h (struct frame): Make the `nothing' member of union
8269 output_data an EMACS_INT.
8270
8271 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
8272 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8273 size in the sdata structure.
8274 (SDATA_NBYTES, SDATA_DATA): New macros.
8275 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8276 differently for the different layout of the sdata structure.
8277 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8278 in sdata.
8279 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8280 Check that size recorded in the string size and size recorded in
8281 the sdata structure agree.
8282
8283 2000-09-25 Dave Love <fx@gnu.org>
8284
8285 * buffer.c: Include stdio.h.
8286
8287 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
8288
8289 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8290
8291 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
8292 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
8293 (__malloc_extra_blocks): Declare as __malloc_size_t.
8294
8295 2000-09-25 Gerd Moellmann <gerd@gnu.org>
8296
8297 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8298
8299 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8300 (read_char): If help-echo is showing, preserve the echo area
8301 when redisplaying.
8302
8303 * xdisp.c (help_echo_showing_p): New variable.
8304 (set_message): Reset it to 0.
8305 (init_xdisp): Initialize help_echo_showing_p.
8306
8307 * dispextern.h (help_echo_showing_p): Declare extern.
8308
8309 * config.in: Fix typo in __GNUC_MINOR__.
8310
8311 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8312
8313 * s/freebsd.h (POSIX_SIGNALS): Define.
8314
8315 * xterm.c (x_clear_mouse_face): Block/unblock input.
8316
8317 2000-09-24 Dave Love <fx@gnu.org>
8318
8319 * fns.c (base64_encode_1): Fix last change.
8320
8321 2000-09-22 Gerd Moellmann <gerd@gnu.org>
8322
8323 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8324
8325 * xdisp.c (try_window_reusing_current_matrix): More fixes
8326 for the case window has a header-line.
8327
8328 2000-09-22 Dave Love <fx@gnu.org>
8329
8330 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8331 a doc string.
8332
8333 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8334
8335 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8336
8337 2000-09-21 Gerd Moellmann <gerd@gnu.org>
8338
8339 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
8340 for GCC >= 2.5.
8341
8342 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8343 Declare NO_RETURN.
8344
8345 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8346 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8347 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8348 warnings.
8349
8350 * marker.c (byte_char_debug_check): Return void.
8351
8352 * xfns.c (Fx_create_frame): Set default frame parameter value
8353 for tool-bar-lines to 1.
8354
8355 * dispnew.c (scrolling_window): Compare y-positions of rows
8356 equal at the start. Some simplification.
8357
8358 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8359 reused rows' y-position in the case window has a header-line, and
8360 new window start is greater than old window start.
8361
8362 * process.c (process_sent_to): New variable.
8363 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8364 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8365 Declare more parameters volatile.
8366
8367 * lread.c (Vrecursive_load_depth_limit): New variable.
8368 (Fload): Check recursive loads whose recursion depth exceeds
8369 Vrecursive_load_depth_limit.
8370 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8371
8372 2000-09-20 Gerd Moellmann <gerd@gnu.org>
8373
8374 * fileio.c (Fread_file_name): Doc fix.
8375
8376 * editfns.c (Fmessage_or_box): Doc fix.
8377
8378 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8379
8380 * xfns.c (xbm_scan): Allow C-style comments.
8381
8382 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8383 symbols are specified, add color translations to the cache.
8384 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8385 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8386 xpm_cache_color.
8387 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8388 structures to xpm_init_color_cache.
8389
8390 2000-09-19 Gerd Moellmann <gerd@gnu.org>
8391
8392 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
8393
8394 2000-09-19 Andrew Innes <andrewi@gnu.org>
8395
8396 * makefile.nt (bootstrap-emacs): Don't change directory.
8397
8398 2000-09-19 Kenichi Handa <handa@etl.go.jp>
8399
8400 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8401
8402 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8403 If output buffer is too small, signal an appropriated error.
8404
8405 2000-09-18 Dave Love <fx@gnu.org>
8406
8407 * keyboard.c (menu_bar_items, tool_bar_items)
8408 (current_active_maps): Remove redundant get_local_map call.
8409
8410 2000-09-18 Gerd Moellmann <gerd@gnu.org>
8411
8412 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8413 cursor for buffers whose cursor_type is nil.
8414
8415 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8416 a feature to implement that is already implemented.
8417 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8418 warnings.
8419
8420 * xfns.c (x_clear_image_1): New function.
8421 (x_clear_image): Use it.
8422 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
8423
8424 * dispnew.c (update_window): Move test for invisible lines
8425 at the top to update_window_line.
8426 (update_window_line): Handle invisible lines here.
8427
8428 * xfns.c (clear_image_cache): Clear current matrices of all
8429 frames sharing an image cache. Block input while freeing
8430 images. Fix timestamp comparison.
8431 (x_clear_image): Also free the mask.
8432
8433 * xfns.c (lookup_image): Block input while loading the image so
8434 that we won't get interrupted in a state where the image isn't yet
8435 set up completely.
8436 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8437 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8438 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
8439 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
8440
8441 2000-09-16 Gerd Moellmann <gerd@gnu.org>
8442
8443 * dispnew.c (update_window): Make sure to make desired rows
8444 current even if they are completely invisible at the top
8445 of a window.
8446
8447 2000-09-15 Gerd Moellmann <gerd@gnu.org>
8448
8449 * xfns.c (lookup_image): Build mask before applying an algorithm.
8450 Recognize algorithm `disabled'.
8451 (cross_disabled_images): New variable.
8452 (COLOR_INTENSITY): New macro.
8453 (x_detect_edges): Use COLOR_INTENSITY.
8454 (x_disable_image): New function.
8455 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8456
8457 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8458 disabled state, don't apply an image transformation algorithm if
8459 the user specified an image for the disabled state. Use
8460 `:algorithm disabled' for creating a disabled item's image if the
8461 user hasn't specified an image.
8462
8463 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8464 allocation functions with the XPM lib.
8465 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8466 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8467 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8468 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
8469 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
8470 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8471 functions, if possible, because these handle color allocation
8472 failure more gracefully.
8473 (Fimage_mask_p): New function.
8474
8475 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8476 (Qedge_detection, Qheuristic): New symbols.
8477 (syms_of_xfns): Initialize new symbols.
8478 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8479 `algorithm (edge-detection ...)'.
8480 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8481 (tiff_format, gif_format, gs_format): Add `:mask'.
8482 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8483 (GIF_MASK, GS_MASK): New enumerators.
8484 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8485 (emboss_matrix, laplace_matrix): New variables.
8486 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8487 (x_edge_detection): New functions.
8488 (x_laplace): Rewritten in terms of x_detect_edges.
8489 (x_build_heuristic_mask): If image has a mask, free it.
8490
8491 2000-09-14 Andrew Innes <andrewi@gnu.org>
8492
8493 * makefile.w32-in: Revert to Unix line endings.
8494
8495 2000-09-14 Andrew Innes <andrewi@gnu.org>
8496
8497 * makefile.w32-in: Standardize indentation somewhat.
8498 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8499 cater for differences between shells.
8500
8501 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8502
8503 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8504
8505 * xterm.c (x_produce_glyphs): If the distance from the current
8506 position to the next tab stop is less than a canonical character
8507 width, use the tab stop after that.
8508
8509 2000-09-14 Dave Love <fx@gnu.org>
8510
8511 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8512
8513 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8514
8515 * xdisp.c (handle_fontified_prop): While running fontification
8516 functions, bind `fontification-functions' and
8517 `after-change-functions' to nil.
8518
8519 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8520 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8521
8522 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8523
8524 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8525 USE_MMAP_FOR_BUFFERS.
8526
8527 * insdel.c (make_gap): Use enlarge_buffer_text.
8528
8529 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8530 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8531 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8532 from former r_alloc_* functions in ralloc.c.
8533 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
8534 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8535 (mmap_init) [REL_ALLOC_MMAP]: New function.
8536 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8537 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8538 BUFFER_FREE.
8539
8540 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8541 (enlarge_buffer_text): Add prototype.
8542
8543 * ralloc.c: Remove everything having to do with the use of mmap.
8544
8545 2000-09-13 Gerd Moellmann <gerd@gnu.org>
8546
8547 * sound.c (Fplay_sound): Doc fix.
8548
8549 * keyboard.c: Avoid some more compiler warnings.
8550 (parse_tool_bar_item): Ignore cached key bindings.
8551
8552 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8553 and allocation of Lisp data.
8554
8555 2000-09-12 Gerd Moellmann <gerd@gnu.org>
8556
8557 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8558 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8559 defaults first.
8560
8561 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8562
8563 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
8564
8565 * ccl.c: Comment fixed.
8566 (MAX_MAP_SET_LEVEL): Increased to 30.
8567 (PUSH_MAPPING_STACK): Enclose with do-while block.
8568 (POP_MAPPING_STACK): Likewise.
8569 (stack_idx_of_map_multiple): New variable.
8570 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8571 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
8572 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
8573 (ccl_driver) <CCL_MapSingle>: Likewise.
8574 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8575 with the case where looking up process reaches to the end of
8576 map-set, and call CCL programs as the above change.
8577
8578 2000-09-11 Gerd Moellmann <gerd@gnu.org>
8579
8580 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8581 that might be clobbered by longjmp.
8582 (check_x_display_info, x_decode_color, create_frame_xic)
8583 (Fx_display_backing_store, Fx_display_visual_class)
8584 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8585
8586 * lread.c (init_lread): Set Vloads_in_progress to nil.
8587 (Fload): Show list of recursively loaded files, when signaling an
8588 error.
8589
8590 * lread.c (Vloads_in_progress): New variable.
8591 (record_load_unwind): New function.
8592 (Fload): Check for recursive loads.
8593 (syms_of_lread): Initialize Vloads_in_progress.
8594 (read_integer, read1): Avoid some compiler warnings.
8595
8596 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8597 compiler warnings.
8598
8599 2000-09-11 Miles Bader <miles@gnu.org>
8600
8601 * editfns.c (Fbuffer_string): Doc fix.
8602
8603 2000-09-10 Gerd Moellmann <gerd@gnu.org>
8604
8605 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8606
8607 2000-09-09 Ken Raeburn <raeburn@gnu.org>
8608
8609 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8610 whether to include other header files.
8611
8612 2000-09-09 Gerd Moellmann <gerd@gnu.org>
8613
8614 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
8615 by Fmemq as a boolean.
8616
8617 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8618
8619 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8620
8621 2000-09-08 Gerd Moellmann <gerd@gnu.org>
8622
8623 * ralloc.c (mmap_fd): Remove initializer which can make it
8624 read-only in a dumped Emacs.
8625 (mmap_fd_1): New variable.
8626 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8627 restore it from there.
8628 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8629 unconditionally so that mmap_fd can be initialized there.
8630 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8631 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8632 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8633
8634 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8635
8636 * xdisp.c (dump_glyph_row): Fix printf format string.
8637 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
8638
8639 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8640
8641 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8642 inheritance.
8643
8644 * xdisp.c (try_window_id): When trying to locate cursor in
8645 unchanged rows at the top, handle the case that we can't find it.
8646
8647 * xterm.c (x_draw_glyphs): Handle case START and END are out
8648 of bounds more carefully.
8649
8650 2000-09-08 Dave Love <fx@gnu.org>
8651
8652 * s/sol2.h (REL_ALLOC_MMAP): Define.
8653 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8654
8655 * ralloc.c: Don't include string.h (redundant).
8656 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8657 [!MAP_ANON]: Include fcntl.h.
8658 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8659 (r_alloc, r_re_alloc, r_alloc_free)
8660 (mmap_enlarge, mmap_set_vars): Use it.
8661 (r_alloc_init_fd): New function.
8662 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8663 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8664 malloc type.
8665
8666 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8667 Remove vm-limit.o.
8668
8669 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8670 change to __NetBSD__.
8671
8672 2000-09-08 Kenichi Handa <handa@etl.go.jp>
8673
8674 * search.c (compile_pattern): Check the multibyteness of cached
8675 string and PATTERN.
8676
8677 2000-09-08 Miles Bader <miles@gnu.org>
8678
8679 * xfaces.c (default_face_vector): Function removed.
8680 (Finternal_merge_in_global_face): Restore old global/local
8681 attribute override order. Use inline loop instead of calling
8682 default_face_vector.
8683
8684 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8685
8686 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8687 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8688 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8689 where necessary, in case POINTER_TYPE is `void'.
8690
8691 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8692
8693 * frame.c (make_terminal_frame): Initialize frame foreground and
8694 background colors to unspecified, for the initial instance of an
8695 MSDOS frame.
8696
8697 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8698
8699 * ralloc.c (mmap_find): Fix overlap computation.
8700 (mmap_enlarge): Compute nbytes before trying to find an
8701 overlapping region.
8702
8703 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8704 instead of `!='.
8705
8706 * lread.c (syms_of_lread): Change value of regexp
8707 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8708
8709 * xmenu.c (xdialog_show): When looking up the selection in
8710 menu_items, take `quote' boundaries into account; this corresponds
8711 to a nil ITEM in x-popup-dialog.
8712
8713 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8714
8715 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8716 not 0x81.
8717 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8718
8719 * coding.c (encode_coding_sjis_big5): Use translation table for
8720 encoding, not decoding. Fix the handling of latin-jisx0201.
8721 Check for the charset katakana-jisx0201 too.
8722 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
8723 (detect_coding_sjis): Check the byte sequence more rigidly.
8724
8725 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8726
8727 * xfaces.c (Vparam_value_alist): New variable.
8728 (syms_of_xfaces): Initialize it.
8729 (Finternal_set_lisp_face_attribute): Avoid more consing.
8730
8731 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8732 specially.
8733 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8734 (Qbackground_mode): New variable.
8735 (syms_of_frame_1): Initialize Qbackground_mode.
8736
8737 * lisp.h (Qdisplay): Declare extern.
8738
8739 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8740 change face on all frames, and change the default for new frames.
8741
8742 2000-09-07 Dave Love <fx@gnu.org>
8743
8744 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8745
8746 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8747
8748 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8749
8750 * charset.c: Include composite.h
8751 (lisp_string_width): New function.
8752 (Fstring_width): Call lisp_string_width instead of strwidth.
8753
8754 * Makefile.in (charset.o): Depends on composite.h.
8755
8756 * process.c (read_process_output): Before inserting the decoded
8757 text in the buffer, adjust the multibyteness.
8758
8759 2000-09-06 Gerd Moellmann <gerd@gnu.org>
8760
8761 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
8762 buffer's text buffer is null, map new memory.
8763
8764 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8765 POINTER_TYPE and size_t.
8766 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8767 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8768 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8769 [REL_ALLOC_MMAP]: New macros.
8770 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8771 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8772 [REL_ALLOC_MMAP]: New functions.
8773
8774 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8775 before and after unexec.
8776
8777 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8778 text buffers if necessary.
8779
8780 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8781 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8782 in prototypes.
8783
8784 * config.in (HAVE_MMAP): Add #undef.
8785
8786 2000-09-05 Gerd Moellmann <gerd@gnu.org>
8787
8788 * frame.c (Qdisplay_type): New variable.
8789 (syms_of_frame_1): Initialize it.
8790 (Fframe_parameter): New function that avoids consing.
8791 (syms_of_frame): Defsubr it.
8792
8793 * buffer.c (Fother_buffer): Consider buffers as invisible when
8794 they are displayed in a window on an invisible frame.
8795
8796 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8797 get-largest-window always return nil.
8798
8799 2000-09-04 Gerd Moellmann <gerd@gnu.org>
8800
8801 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8802 variable; recognize Emacs 19 elc files.
8803
8804 2000-09-04 Miles Bader <miles@gnu.org>
8805
8806 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8807 before initially popping up the menu, so the menu doesn't flash
8808 when the face settings are significantly different from the defaults.
8809
8810 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8811
8812 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8813 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8814 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8815 (BIT_UNIBYTE): Remove.
8816 (re_match_2_internal): Delete corresponding code and streamline the
8817 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8818 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8819 (re_wctype_t): New type.
8820 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8821 (regex_compile): Use them and fix handling of overly long char classes.
8822
8823 2000-09-03 Andrew Innes <andrewi@gnu.org>
8824
8825 * makefile.w32-in: Change to DOS line endings.
8826
8827 * s/ms-w32.h (ORDINARY_LINK): New define.
8828
8829 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8830 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8831
8832 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8833 (distclean): Delete them here instead.
8834
8835 * w32proc.c (compare_env): Convert to uppercase for comparison,
8836 not lowercase, to match how the native Windows shell works.
8837
8838 2000-09-03 Jason Rumney <jasonr@gnu.org>
8839
8840 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8841 CVS changes the line-ends when checking in/out on DOS/Windows.
8842
8843 * makefile.nt (emacs): Do not change directory to run temacs, as
8844 the load-path is set relative to current directory.
8845
8846 2000-09-03 Miles Bader <miles@gnu.org>
8847
8848 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8849
8850 2000-09-02 Gerd Moellmann <gerd@gnu.org>
8851
8852 * xdisp.c (redisplay_mode_lines): New function.
8853 (display_mode_lines): Return number of mode lines displayed.
8854 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8855 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8856
8857 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8858 string.h and strings.h.
8859 (index) [HAVE_INDEX]: Add prototype.
8860
8861 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8862 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8863
8864 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8865 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8866
8867 2000-09-01 Gerd Moellmann <gerd@gnu.org>
8868
8869 * lread.c (read1): Accept `?' as symbol constituent, for
8870 compatiblity with XEmacs.
8871
8872 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8873
8874 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8875 (struct re_pattern_buffer): Remove newline_anchor.
8876 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8877 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8878 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8879 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8880 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8881 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8882 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8883 Get rid of references to newline_anchor.
8884 (regcomp): Allocate and precompute a fastmap.
8885
8886 2000-08-31 Gerd Moellmann <gerd@gnu.org>
8887
8888 * lread.c (openp): GCPRO local variable `filename'.
8889
8890 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8891
8892 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8893
8894 * regex.c: Merge some changes from GNU libc. Add prototypes.
8895 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8896 Use memcmp and memcpy instead of bcopy and bcmp.
8897 (init_syntax_once): Use ISALNUM.
8898 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8899 (REG_UNSET_VALUE): Remove. Use NULL instead.
8900 (REG_UNSET, re_match_2_internal): Use NULL.
8901 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8902 New macros.
8903 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8904 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8905 (regex_compile): In handle_interval, return an error rather than try to
8906 unfetch the interval if we can't find the closing brace.
8907 Obey the RE_NO_GNU_OPS syntax bit.
8908 (TOLOWER): New macro.
8909 (regcomp): Use it.
8910 (regexec): Allocate regs.start and regs.end as one block.
8911
8912 2000-08-30 Gerd Moellmann <gerd@gnu.org>
8913
8914 * xdisp.c (echo_area_display): Check display_completed instead
8915 of calling detect_input_pending.
8916
8917 * dispnew.c (update_frame): Only set display_completed here; move
8918 the update_begin and update_end calls here from update_frame_1.
8919 (update_frame_1): Don't set display_completed here, don't call
8920 update_begin/update_end.
8921
8922 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8923 instead of store_frame_param.
8924
8925 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8926
8927 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8928 desired window matrix hasn't been displayed, use the current row
8929 instead. Make sure that only those frame rows are updated for
8930 which there exists a corresponding enabled desired row.
8931
8932 2000-08-29 Miles Bader <miles@gnu.org>
8933
8934 * xfaces.c (default_face_vector): New function.
8935 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8936
8937 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8938
8939 * lread.c (openp): Prevent temporary string passed to
8940 Ffile_readable_p from being garbage collected.
8941
8942 2000-08-28 Dave Love <fx@gnu.org>
8943
8944 * keymap.c (store_in_keymap): Add `static' to declaration.
8945
8946 2000-08-28 Gerd Moellmann <gerd@gnu.org>
8947
8948 * emacs.c, callint.c, doc.c, editfns.c
8949 (toplevel) [HAVE_STRING_H]: Include string.h.
8950 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8951 (index): Remove prototypes which might conflict with non-standard
8952 definitions of index/strchr.
8953
8954 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8955 (rindex): Define only if !HAVE_RINDEX.
8956
8957 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8958
8959 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8960
8961 2000-08-28 Miles Bader <miles@gnu.org>
8962
8963 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8964 made inconsistent by a font-related attribute in FROM.
8965 (merge_face_inheritance): Add function comment.
8966
8967 2000-08-28 Kenichi Handa <handa@etl.go.jp>
8968
8969 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8970 the 4th arg (PREV_EVENT) Qt to suppress input method.
8971
8972 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8973
8974 * regex.c: Indent cpp directives and remove parens after `defined'.
8975 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8976 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8977 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8978 (re_compile_pattern): Use size_t for length.
8979 (init_syntax_once): Move to a better place.
8980 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8981 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8982
8983 * syntax.c (back_comment): Detect cases where a comment-starter is
8984 actually inside another comment as in: /* a // b */ c // d \n.
8985 Make it clear that `comstart_pos' is unused for nested comments.
8986
8987 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8988 (KEYMAPP): New macro.
8989 (Fkeymap_parent, Fset_keymap_parent): Use it.
8990 (fix_submap_inheritance): Mark it static.
8991 (define_as_prefix, describe_buffer_bindings, describe_command)
8992 (describe_translation, describe_map): Complete prototypes.
8993
8994 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8995
8996 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8997 to better match the key-lookup behavior.
8998
8999 2000-08-27 Gerd Moellmann <gerd@gnu.org>
9000
9001 * xfaces.c (lface_fully_specified_p): Handle :inherit.
9002 (Finternal_set_lisp_face_attribute): Fix typo in error message.
9003
9004 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
9005
9006 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
9007 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
9008 (xterm.o): Depend on coding.h
9009
9010 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9011
9012 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
9013 the corresponding '#endif'.
9014
9015 2000-08-26 Miles Bader <miles@gnu.org>
9016
9017 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
9018 * xfaces.c (QCinherit): New variable.
9019 (syms_of_xfaces): Initialize it.
9020 (LFACE_INHERIT): New macro.
9021 (Finternal_get_lisp_face_attribute)
9022 (merge_face_vector_with_property)
9023 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
9024 (check_lface_attrs): Allow new types of face height. Check
9025 inherit attribute.
9026 (CYCLE_CHECK): New macro.
9027 (merge_face_inheritance): New function.
9028 (merge_face_vectors): Merge inherited faces too. Add F and
9029 CYCLE_CHECK arguments.
9030 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9031 (lookup_named_face, lookup_derived_face, realize_named_face)
9032 (face_at_string_position, face_at_buffer_position): Supply
9033 new F and CYCLE_CHECK arguments to merge_face_vectors.
9034 (merge_face_heights): New function.
9035 (merge_face_vectors, merge_face_vector_with_property)
9036 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9037 handle relative face heights.
9038 (lface_same_font_attributes_p): Compare heights using EQ.
9039
9040 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9041
9042 * charset.c (char_to_string): Check the character validity.
9043 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
9044
9045 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9046
9047 * regex.c (PUSH_FAILURE_COUNT): New macro.
9048 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9049 Handle popping of a register's or a counter's data.
9050 (POP_FAILURE_POINT): Use the new name.
9051 (re_match_2_internal): Push counter data on the stack for succeed_n,
9052 jump_n and set_number_at and remove misleading dead code in succeed_n.
9053
9054 2000-08-25 Gerd Moellmann <gerd@gnu.org>
9055
9056 * xdisp.c (redisplay_internal): If considering all windows on all
9057 frames, update the display for each frame as soon as possible,
9058 instead of first building all desired matrices for all frames, and
9059 then updating them all.
9060 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9061
9062 2000-08-24 Gerd Moellmann <gerd@gnu.org>
9063
9064 * bytecode.c (mark_byte_stack): Add a comment.
9065
9066 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9067 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
9068 a graphical frame.
9069
9070 2000-08-24 Kenichi Handa <handa@etl.go.jp>
9071
9072 * minibuf.c (do_completion): Always use compare-string, not
9073 string-equal because the latter doesn't pay attention to
9074 multibyteness of strings.
9075
9076 * process.c (create_process): Don't setup raw-text coding here.
9077 (Fopen_network_stream): Don't set coding->src_multibyte and
9078 coding->dst_multibyte here.
9079 (read_process_output): For process filter, return unibyte string
9080 if default-enable-multibyte-characters is nil.
9081 (send_process): If OBJECT is multibyte text, be sure to encoded it
9082 by the specified coding system for the process. Otherwise, setup
9083 raw-text coding.
9084 (init_process): Don't initialize default-process-coding-system here.
9085
9086 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9087
9088 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9089 <scroll-down-aggressively>: Likewise.
9090
9091 2000-08-23 Kenichi Handa <handa@etl.go.jp>
9092
9093 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9094 zero. Set coding->produced_char correctly.
9095
9096 2000-08-22 Andrew Innes <andrewi@gnu.org>
9097
9098 * makefile.w32-in: New file.
9099
9100 * unexw32.c (unexec): Ignore old_name, and use the actual location
9101 of the current executable instead. Base new_name on this.
9102
9103 * w32proc.c (create_child): Remove reference to security
9104 descriptor, which isn't needed and doesn't compile with mingw32.
9105
9106 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9107 up dllimport attributes.
9108 (x_update_window_end): Update prototype.
9109
9110 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9111 extern, which screws up dllimport attributes.
9112
9113 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9114 up dllimport attributes.
9115
9116 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9117 screws up dllimport attributes.
9118
9119 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9120 up dllimport attributes.
9121 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9122 screws up dllimport attributes.
9123
9124 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9125 up dllimport attributes.
9126
9127 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9128 screws up dllimport attributes.
9129
9130 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9131 screws up dllimport attributes.
9132
9133 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9134 up dllimport attributes.
9135
9136 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9137 unnecessary extern, which screws up dllimport attributes.
9138 (main): Ditto.
9139
9140 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9141 up dllimport attributes.
9142
9143 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9144 unnecessary extern, which screws up dllimport attributes.
9145
9146 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9147 screws up dllimport attributes.
9148
9149 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9150 up dllimport attributes.
9151
9152 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9153
9154 * w32bdf.c (search_file_line):
9155 (set_bdf_font_info):
9156 (seek_char):
9157 (w32_get_bdf_glyph):
9158 (w32_BDF_to_x_font): Fix compile warnings.
9159
9160 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
9161
9162 * w32select.c: Include keyboard.h before frame.h.
9163
9164 * w32fns.c (max): Define macro.
9165 (JOHAB_CHARSET): Define if not known.
9166 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9167 (Fx_show_tip): Synch with X version.
9168
9169 * w32xfns.c: Include keyboard.h before frame.h.
9170
9171 * w32fns.c: Include keyboard.h before frame.h.
9172
9173 * w32term.c: Include keyboard.h before frame.h.
9174
9175 * fontset.c: Include keyboard.h before frame.h.
9176
9177 * w32inevt.c: Include keyboard.h before frame.h.
9178 (MOUSE_MOVED): Define if not known.
9179
9180 * minibuf.c: Include keyboard.h before frame.h.
9181
9182 * keyboard.c: Include keyboard.h before frame.h.
9183
9184 * indent.c: Include keyboard.h before frame.h.
9185
9186 * dispnew.c: Include keyboard.h before frame.h.
9187
9188 * buffer.c: Include keyboard.h before frame.h.
9189
9190 * alloc.c: Include keyboard.h before frame.h.
9191
9192 * print.c: Include keyboard.h before frame.h.
9193
9194 * process.c: Include keyboard.h before frame.h.
9195
9196 * scroll.c: Include keyboard.h before frame.h.
9197
9198 * sysdep.c: Include keyboard.h before frame.h.
9199
9200 * term.c: Include keyboard.h before frame.h.
9201
9202 * window.c: Include keyboard.h before frame.h.
9203
9204 * xdisp.c: Include keyboard.h before frame.h.
9205 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9206
9207 * frame.c: Include keyboard.h before frame.h.
9208
9209 * w32heap.h: Undefine min, max.
9210
9211 * w32gui.h: Undefine min, max.
9212
9213 * unexw32.c: Change PUCHAR to PCHAR.
9214 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
9215 (relocate_offset):
9216 (get_section_info):
9217 (copy_executable_and_dump_data): Remove unnecessary static defs.
9218 (copy_executable_and_dump_data): Fix compile warnings.
9219
9220 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9221
9222 * w32console.c (min): Define macro.
9223 (clear_frame, write_glyphs): Fix compile warning.
9224
9225 * w32proc.c (compare_env):
9226 (find_child_console): Fix compile warning.
9227
9228 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9229 sys_errlist instead of _sys_errlist.
9230 (get_emacs_configuration_options): New function.
9231
9232 * s/ms-w32.h (sys_nerr): Provide default definition.
9233 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9234 name with _ prepended.
9235 (NSIG): Define if not known.
9236 (get_emacs_configuration): Provide extern declaration.
9237 (get_emacs_configuration_options): Provide extern declaration.
9238 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9239
9240 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
9241 (map_w32_filename):
9242 (read_unc_volume): Fix compile warning.
9243
9244 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9245 definitions from being used.
9246
9247 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9248
9249 * w32.c (unc_volume_file_attributes):
9250 (open_unc_volume): Make arg const.
9251
9252 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9253 (read_input_waiting): Remove excess parameter.
9254
9255 * w32.c (init_environment): Call _access.
9256 (check_windows_init_file): Call _close.
9257 (init_user_info): Call _putenv.
9258 (init_environment): Call _putenv and _strdup.
9259 (init_ntproc): Reset volume info cache on startup.
9260
9261 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9262 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9263 cannot override the CRT malloc.
9264
9265 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9266 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9267
9268 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9269 unless we are linking with a static CRT.
9270 (RVA_TO_PTR): Cast result to unsigned char*.
9271
9272 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9273 (add_volume_info): Use xstrdup.
9274
9275 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9276
9277 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9278 (do_completion, Fminibuffer_complete_word): Use it.
9279 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9280 var so it can take non-boolean values.
9281
9282 2000-08-21 Gerd Moellmann <gerd@gnu.org>
9283
9284 * editfns.c (find_field): Formatting changes.
9285 (toplevel): Some old-style function forward declarations
9286 changed to prototypes, some new protypes added, some functions
9287 made static.
9288
9289 * lisp.h (set_time_zone_rule): Add prototype.
9290 (use_dialog_box): External declaration.
9291
9292 * keyboard.c (gen_help_event): Add parameter SIZE.
9293 (kbd_buffer_events_waiting): Slightly rewritten.
9294 (clear_event): New function.
9295 (kbd_buffer_get_event): Use it, and clear the input_events of
9296 HELP_EVENTs.
9297 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9298 don't fill the newly created array with nils.
9299 (toplevel): Convert some old-style function forward declarations
9300 to prototypes.
9301
9302 * keyboard.h (gen_help_event): Change prototype.
9303
9304 * xterm.c (XTread_socket): Change calls to gen_help_event.
9305
9306 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9307
9308 * eval.c (Fmacroexpand): Doc fix.
9309
9310 2000-08-20 Jason Rumney <jasonr@gnu.org>
9311
9312 * w32term.h (x_display_info_for_display): Remove as this function
9313 does not exist on W32.
9314
9315 * w32term.c (help_echo_window): New variable.
9316 (syms_of_w32term): staticpro it.
9317 (note_mode_line_highlight): Set it.
9318 (XTextExtents16): Removed as there is no equivalent on W32.
9319 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9320 the X way of doing this will not work for W32.
9321 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9322 (x_draw_image_foreground): Avoid drawing outside of the clip area
9323 when image doesn't have a mask.
9324 (note_mouse_highlight): Process overlays in the right order of
9325 priority. Set help_echo_window.
9326 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9327 because that's more visible for large images.
9328
9329 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9330 name to single_keymap_panes.
9331 (w32_menu_show): Set wv->title when dealing with titles.
9332 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9333
9334 2000-08-21 Miles Bader <miles@gnu.org>
9335
9336 * minibuf.c (do_completion): Try again if we rewrite the input
9337 string, but no completion was done, so that any completion message
9338 will be correct.
9339
9340 2000-08-20 Gerd Moellmann <gerd@gnu.org>
9341
9342 * xfaces.c (lface_equal_p): Compare strings differently.
9343 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9344 (realize_tty_face): Use them.
9345 (syms_of_xfaces): Initialize new variables.
9346 (map_tty_color): New function, extracted from realize_tty_face.
9347 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9348 foreground or background color, store the new color name in the
9349 realized face; previous code trying to do this had no effect.
9350 (realize_tty_face): Use map_tty_color.
9351 (Fclear_face_cache): Set face_change_count and ensure thorough
9352 redisplay.
9353
9354 2000-08-19 Gerd Moellmann <gerd@gnu.org>
9355
9356 * undo.c (record_first_change, record_marker_adjustment): Don't
9357 use XBUFFER on last_undo_buffer which might not be a buffer.
9358
9359 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9360
9361 * coding.c (decode_coding_string): Set members consumed,
9362 consumed_char, produced, produced_char of *coding correctly. If
9363 decode_coding doesn't consume any byte, don't try anymore.
9364 (encode_coding_string): Likewise.
9365
9366 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9367
9368 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9369 conditional have void type, for Standard C compilers.
9370
9371 * xdisp.c (redisplay_internal): Compare windows for equality with
9372 EQ, instead of applying XWINDOW to something that might not
9373 be a window.
9374
9375 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9376
9377 * fontset.c (Finternal_char_font): Search only the selected frame
9378 for a window of the current buffer.
9379
9380 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9381
9382 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
9383 Lisp_Objects.
9384
9385 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9386 second half of a HELP_EVENT is found at the start of kbd_buffer.
9387
9388 2000-08-18 Miles Bader <miles@gnu.org>
9389
9390 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9391
9392 * editfns.c (save_restriction_save): Rewrite to use markers.
9393 (save_restriction_restore): Rewrite to understand new form of data
9394 saved by save_restriction_save.
9395 (Fsave_restriction): Remove cautionary note in doc-string.
9396
9397 2000-08-17 Gerd Moellmann <gerd@gnu.org>
9398
9399 * fileio.c (build_annotations): Add a comment explaining the
9400 return value of format-annotate-function. Replace a spurious call
9401 to Flength with a CONSP test. Call format-annotate-function with
9402 a fifth arg specifying how many times the function is been called
9403 in a row, to let it choose temporary buffers appropriately.
9404
9405 2000-08-17 Dave Love <fx@gnu.org>
9406
9407 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9408 declare make_temp_name twice.
9409
9410 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
9411 (unreadpure): Give it an arg.
9412
9413 * unexalpha.c: Prototype fatal_unexec, mark_x,
9414 update_dynamic_symbols. Declare unexec as void.
9415
9416 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9417 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9418
9419 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
9420 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
9421
9422 * alloca.c: Use #error.
9423 [POINTER_TYPE]: Use it.
9424
9425 * eval.c (Fdefvar): Doc fix.
9426
9427 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9428 INITIALIZE_INTERVAL.
9429
9430 * buffer.h: Avoid DECLARE_INTERVALS.
9431
9432 * config.in: Add size_t.
9433
9434 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9435
9436 * w16select.c (set_clipboard_data): If there's not enough memory
9437 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9438 expects. In case of other failures, return 3.
9439 (system_error_msg): New error message.
9440 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9441 system_error_msg.
9442
9443 2000-08-16 Gerd Moellmann <gerd@gnu.org>
9444
9445 * term.c (write_glyphs): Also turn off inverse video after turning
9446 off other appearances in case TS_exit_attribute_mode is not equal
9447 to TS_end_standout_mode.
9448 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9449 with the same face.
9450 (turn_off_face): Reset standout_mode only if
9451 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9452 is equal to TS_end_standout_mode.
9453
9454 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9455
9456 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9457 sequence at the end of the source block.
9458
9459 * ccl.c (Fccl_program_p): Docstring modified.
9460 (Fccl_execute): Likewise.
9461 (Fccl_execute_on_string): Likewise.
9462
9463 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9464
9465 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9466
9467 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9468
9469 The following changes are mainly to fix bugs of
9470 encode/decode-coding-string failing if encoding/decoding return
9471 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9472 variable conversion_buffer.
9473
9474 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9475 decrement dst_end to avoid buffer overflow in the later call of
9476 string_as_multibyte
9477
9478 * coding.h (conversion_buffer_size, conversion_buffer)
9479 (get_conversion_buffer): Extern deleted.
9480
9481 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9482 (conversion_buffer, conversion_buffer_size): Variables deleted.
9483 (get_conversion_buffer): Function deleted.
9484 (struct conversion_buffer): New structure.
9485 (MAX_ALLOCA): New macro.
9486 (allocate_conversion_buffer): New macro.
9487 (extend_conversion_buffer, free_conversion_buffer): New functions.
9488 (ccl_coding_driver): Set coding->result.
9489 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9490 this is the last block of source.
9491 (encode_coding): Likewise. Handle the source block as the last
9492 one only when the whole source text is consumed.
9493 (decode_coding_string): Handle the case that the output buffer is
9494 too small to decode the whole source text. Use
9495 allocate_conversion_buffer, extend_conversion_buffer and
9496 free_conversion_buffer, not get_conversion_buffer.
9497 (encode_coding_string): Likewise.
9498 (init_coding): Function deleted.
9499 (init_coding_once): Delete code to initialize conversion_buffer_size.
9500
9501 * emacs.c (main): Don't call init_coding.
9502
9503 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
9504
9505 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9506 (insert_glyphs): Likewise.
9507
9508 * w32console.c (write_glyphs): Use a locally declared
9509 conversion_buffer.
9510
9511 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9512
9513 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9514 member of display_info is NULL.
9515
9516 2000-08-15 Gerd Moellmann <gerd@gnu.org>
9517
9518 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
9519
9520 * term.c (turn_off_face): Reset standout_mode when resetting
9521 appearances with capability `me'.
9522 (write_glyphs): Switch on inverse video before each face change.
9523
9524 2000-08-14 Dave Love <fx@gnu.org>
9525
9526 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9527 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9528 (lisp_free): Declare and make static.
9529
9530 * window.c: Fix embedded comment.
9531 (syms_of_window): Fix doc string.
9532
9533 2000-08-14 Gerd Moellmann <gerd@gnu.org>
9534
9535 * keymap.c (push_key_description): If C without modifiers is < 32,
9536 make sure to print `C-' before `M-', like in the manual.
9537
9538 2000-08-11 Gerd Moellmann <gerd@gnu.org>
9539
9540 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9541 since they aren't relocated anymore.
9542 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
9543
9544 * xdisp.c (try_cursor_movement): Fix handling of cursor in
9545 partially visible line which is smaller than the window's height.
9546
9547 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9548
9549 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
9550 the multibyte form of eight-bit-control characters.
9551 (Fccl_execute_on_string): Initialize ccl->multibyte.
9552
9553 * ccl.h (struct ccl_program): New member multibyte.
9554
9555 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9556
9557 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9558
9559 * regex.c (regex_compile) <normal_char>: Pay attention to
9560 multibyteness.
9561 (analyse_first) <exactn>: Setup fastmap correctly for
9562 eight-bit-control characters.
9563
9564 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9565
9566 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
9567
9568 * keyboard.c (make_lispy_event): Handle the new event type
9569 multibyte_char_keystroke.
9570
9571 * xterm.c: Include coding.h.
9572 (XTread_socket): Work around a bug of XmbLookupString. If the
9573 input is from XIM, decode it according to the current locale. In
9574 that case, generate multibyte_char_keystroke events.
9575
9576 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9577
9578 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9579 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9580
9581 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9582
9583 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9584 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9585 (move_it_in_display_line_to): Record iterator's ascent and descent
9586 before producing glyphs, and restore them when we know the glyph
9587 doesn't fit on the line.
9588 (move_it_to): Restructured so that it's easier to debug. If
9589 moving to a vpos, and not moving to an x or character position,
9590 stop as soon as the specified vpos is reached; don't move further
9591 into that line because that might change the computed line height.
9592 (try_cursor_movement): New function, extracted from the cursor
9593 movement branch of redisplay_window. If ending on a partially
9594 visible line, don't try to scroll if the cursor line is taller
9595 than the window.
9596 (redisplay_window): Use try_cursor_movement.
9597
9598 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9599 because that function doesn't cope with variable-height lines.
9600
9601 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9602 box cursor because that's better visible for large images.
9603
9604 2000-08-10 Miles Bader <miles@gnu.org>
9605
9606 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9607
9608 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9609
9610 * xdisp.c (Vmessages_buffer_name): New variable.
9611 (message_dolog): Use it.
9612 (syms_of_xdisp): Initialize it.
9613
9614 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9615
9616 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
9617 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9618 redundant now that keyboard.h is included.
9619
9620 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9621
9622 * keyboard.c (kbd_buffer_events_waiting): New function.
9623
9624 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9625
9626 * msdos.c: Include keyboard.h.
9627 (XMenuActivate): Empty no_event events from the event buffer. If
9628 no events are left after that, call clear_input_pending.
9629 (mouse_clear_clicks): New function, code moved from mouse_init.
9630 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9631 mouse driver to ``forget'' any past clicks.
9632
9633 * Makefile.in (msdos.o): Depend on keyboard.h.
9634
9635 2000-08-09 Gerd Moellmann <gerd@gnu.org>
9636
9637 * lisp.h (input_pending): External declaration.
9638
9639 * dispextern.h (Qredisplay_dont_pause): Declare extern.
9640
9641 * xdisp.c (echo_area_display): Display thoroughly if input is
9642 pending. Bind redisplay-dont-pause to t during the redisplay.
9643 in case input is pending.
9644
9645 * dispnew.c (Qredisplay_dont_pause): New variable.
9646 (syms_of_display): Initialize and staticpro it.
9647 (update_frame_1): Don't interrupt the display for pending input if
9648 redisplay_dont_pause is set.
9649
9650 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9651
9652 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9653
9654 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9655
9656 * callproc.c (Fcall_process): Terminate the unwind-protect around
9657 the post-read-conversion of coding system.
9658
9659 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9660 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9661 * buffer.h (overlays_at): Update prototype.
9662 * xdisp.c (next_overlay_change): Update call to overlays_at.
9663 * xfaces.c (face_at_buffer_position): Likewise.
9664 * textprop.c (Fget_char_property): Likewise.
9665 * xterm.c (note_mouse_highlight): Likewise.
9666
9667 * minibuf.c (do_completion): Don't consider a simple change of
9668 case as `completion'.
9669
9670 2000-08-08 Ken Raeburn <raeburn@gnu.org>
9671
9672 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
9673 * undo.c (record_delete): Make sure last_point_position_buffer is
9674 a buffer before comparing pointers.
9675
9676 * coding.h (decode_coding_string): Declare.
9677
9678 * intervals.h (Fprevious_single_char_property_change): Declare.
9679
9680 * textprop.c (Fprevious_single_char_property_change): Don't do
9681 arithmetic directly on lisp objects.
9682
9683 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
9684
9685 * keyboard.h (menu_item_eval_property): Declare.
9686
9687 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9688 reuse as buffer name, instead of recreating (and discarding) every
9689 time a message is logged.
9690 (with_echo_area_buffer): Make callback arg A2 a lisp object.
9691 (current_message_1, truncate_message_1, set_message_1)
9692 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9693 (current_message, truncate_echo_area, display_echo_area)
9694 (resize_echo_area_axactly): Changed calls.
9695
9696 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
9697 Lisp object.
9698 (Ffind_coding_systems_region_internal): First argument to Fappend
9699 must be an integer, not a Lisp object.
9700
9701 2000-08-08 Kenichi Handa <handa@etl.go.jp>
9702
9703 * charset.c (Fchar_width): Doc fix.
9704
9705 2000-08-08 Gerd Moellmann <gerd@gnu.org>
9706
9707 * charset.c (Fstring_width): Doc fix.
9708
9709 2000-08-07 Gerd Moellmann <gerd@gnu.org>
9710
9711 * xdisp.c (start_display): When starting display on a continuation
9712 line, clear ascent and descent members of the iterator structure;
9713 the height of the continued line does not affect the height of the
9714 continuation line.
9715 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9716 line taller than the window.
9717 (redisplay_window) <forced window start>: Handle case that the
9718 middle of the window is not found in any row.
9719 (dump_glyph_row): Show more information.
9720 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9721 first text line in a glyph matrix.
9722
9723 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9724 of the clip area when image doesn't have a mask.
9725
9726 * fns.c (sweep_weak_table): Fix survival conditions for
9727 key-or-value and key-and-value weakness.
9728
9729 * .gdbinit (xhashtable): New command.
9730
9731 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9732 tables out of the list of all weak hash tables.
9733
9734 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9735 a new buffer is created, make sure echo_area_buffer[] references
9736 the new buffer.
9737
9738 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9739
9740 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9741 the doc string.
9742
9743 2000-08-07 Kenichi Handa <handa@etl.go.jp>
9744
9745 * syntax.c (skip_chars): Fix previous change. Make the handling
9746 of unibyte string consistent with that of regex search.
9747
9748 2000-08-05 Gerd Moellmann <gerd@gnu.org>
9749
9750 * xmenu.c (popup_get_selection): Use xfree instead of free.
9751
9752 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9753
9754 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9755
9756 * callproc.c (child_setup): Use xfree instead of free.
9757
9758 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9759 instead of malloc.
9760 (run_mac_command, closedir): Use `xfree' instead of `free'.
9761
9762 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9763
9764 * eval.c (error): Use xfree instead of free.
9765
9766 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9767
9768 * fns.c: Replace `illegal' with `invalid'.
9769 (Fmake_hash_table, make_hash_table): Allow table size of 0.
9770
9771 2000-08-05 Kenichi Handa <handa@etl.go.jp>
9772
9773 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9774 conversion.
9775
9776 2000-08-04 Noah Friedman <friedman@splode.com>
9777
9778 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9779 docstring.
9780
9781 2000-08-04 Gerd Moellmann <gerd@gnu.org>
9782
9783 * syntax.c (skip_chars): Fix typo in error message.
9784
9785 2000-08-04 Andreas Schwab <schwab@suse.de>
9786
9787 * m/ia64.h: Moved from s/ia64.h.
9788
9789 2000-08-04 Kenichi Handa <handa@etl.go.jp>
9790
9791 * process.c (read_process_output): Big simplification. Handle
9792 composition and post-read-conversion of coding system correctly.
9793 (send_process): Handle composition correctly.
9794
9795 * callproc.c (Fcall_process): Handle post-read-conversion of
9796 coding system if any.
9797
9798 * coding.c (decode_coding_iso2022): More strict check for handling
9799 single shifting.
9800 (coding_restore_composition): Pay attention to the case that
9801 cmp_data is not set properly (because of invalid code in the
9802 source text).
9803 (run_pre_post_conversion_on_str): Include text properties in the
9804 resulting string.
9805 (decode_coding_string): Set members of coding correctly.
9806
9807 2000-08-03 Gerd Moellmann <gerd@gnu.org>
9808
9809 * s/ia64.h: New file.
9810
9811 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9812 Use NULL instead of 0 at the end of variable argument list of
9813 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9814 sizeof (int) < sizeof (void *).
9815
9816 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9817 of variable argument lists of XtVaGetValues and XtVaSetValues.
9818
9819 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9820 variable argument lists of XtVaGetValues and XtVaSetValues.
9821
9822 2000-08-02 Gerd Moellmann <gerd@gnu.org>
9823
9824 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9825 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9826
9827 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9828 prototype.
9829
9830 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9831 in call to Fsingle_key_description.
9832
9833 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9834 Callers changed.
9835
9836 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9837
9838 * window.c (display_buffer_reuse_frames): New variable.
9839 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9840 frames displaying BUFFER.
9841 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
9842
9843 2000-08-01 Miles Bader <miles@gnu.org>
9844
9845 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9846 when to constrain NEW_POS (they were pretty screwed up before).
9847
9848 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9849
9850 * msdos.c (run_msdos_command): Save and restore the master
9851 environment, for the case that child_setup signals an error.
9852 When mirroring slashes in DOS shell commands, don't fail when
9853 argv[2] has embedded blanks.
9854 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9855 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9856 (dos_ttraw): Call mouse_setup_buttons.
9857
9858 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9859 using alloca; free it after run_msdos_command returns.
9860
9861 2000-07-27 Dave Love <fx@gnu.org>
9862
9863 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9864 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
9865
9866 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9867
9868 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9869
9870 * editfns.c (lisp_time_argument): Fix last change.
9871
9872 2000-07-27 Gerd Moellmann <gerd@gnu.org>
9873
9874 * fns.c (Fdelete): Make it work on vectors and strings in addition
9875 to lists.
9876
9877 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9878 (syms_of_fns): Initialize new variables.
9879 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
9880 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9881 weakness, with t meaning the same as `key-and-value'.
9882
9883 2000-07-27 Kenichi Handa <handa@etl.go.jp>
9884
9885 * coding.h (struct coding_system): Member safe_charset deleted.
9886
9887 * coding.c (Qsafe_charsets): This variable deleted.
9888 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9889 New variables.
9890 (coding_safe_chars): New function.
9891 (CODING_SAFE_CHAR_P): New macro.
9892 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
9893 checking safe_charsets member of the coding system. Caller changed.
9894 (detect_coding_iso2022): New local variable safe_chars.
9895 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9896 safe_charsets member of the coding system.
9897 (decode_coding_iso2022): New local variable safe_chars.
9898 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9899 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9900 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9901 (ENCODE_UNSAFE_CHARACTER): New macro.
9902 (encode_coding_iso2022): New local variable safe_chars. Check
9903 unsafe chars.
9904 (setup_coding_system): Delete the code to initialize
9905 coding->safe_charses
9906 (intersection, find_safe_codings): New functions.
9907 (Ffind_coding_systems_region_internal): New function.
9908 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9909 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9910 variable and initialize it.
9911
9912 * fns.c (char_table_ref_and_index): New function.
9913
9914 * lisp.h (char_table_ref_and_index): Add prototype.
9915
9916 2000-07-26 Sam Steingold <sds@gnu.org>
9917
9918 * editfns.c (lisp_time_argument): Added third argument `usec'.
9919 (Ffloat_time): New built-in Lisp function.
9920
9921 2000-07-26 Gerd Moellmann <gerd@gnu.org>
9922
9923 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9924 for the character code.
9925
9926 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9927 GNU/Linux.
9928
9929 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9930 if called for a popup menu.
9931 (xmenu_show): Store help string in widget values.
9932
9933 2000-07-26 Dave Love <fx@gnu.org>
9934
9935 * syswait.h: Move some definitions.
9936 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9937 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9938 perspicuous definitions.
9939 (WTERMSIG): Fix bit pattern used.
9940
9941 2000-07-26 Kenichi Handa <handa@etl.go.jp>
9942
9943 * print.c (print_object): If vector printing is truncated, print
9944 "..." to indicate it as well as the case of list printing.
9945
9946 2000-07-25 Gerd Moellmann <gerd@gnu.org>
9947
9948 * xdisp.c (next_element_from_display_vector): Improve comments.
9949
9950 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9951 for the character code, and the rest for the face id as in 20.x.
9952 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9953
9954 * window.c (window_display_table): Cleaned up.
9955
9956 * syntax.c (Fforward_word): Add last arg nil in call of
9957 Fconstrain_to_field.
9958
9959 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9960
9961 * fileio.c (Frename_file) [DOS_NT]: If the file names are
9962 identical but for the letter-case, don't call
9963 barf_or_query_if_file_exists.
9964
9965 2000-07-25 Miles Bader <miles@gnu.org>
9966
9967 * editfns.c (find_field): Honor special `boundary' fields.
9968 (Qboundary): New variables.
9969 (syms_of_editfns): Initialize Qboundary.
9970 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9971 Use scan_buffer instead of find_before_next_newline, because it
9972 allows us to detect the boundary case where there's a newline at
9973 the search limit.
9974 * lisp.h (Fconstrain_to_field): Update external declaration.
9975
9976 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9977
9978 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9979 if that is nil.
9980
9981 2000-07-24 Dave Love <fx@gnu.org>
9982
9983 * s/sunos4-0.h, s/sol2.h:
9984 (LIBS_TERMCAP): Move from m/sparc.h.
9985
9986 * m/sparc.h (TERMINFO): Moved to system files (probably only
9987 relevant for sunos4 judging by its vintage).
9988 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9989 __arch64__.
9990
9991 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9992
9993 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9994 name to single_keymap_panes.
9995
9996 2000-07-24 Andreas Schwab <schwab@suse.de>
9997
9998 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9999
10000 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10001
10002 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
10003 parameters instead of using int parameters. Expect FN to accept
10004 EMACS_INT parameters.
10005 (display_echo_area, resize_echo_area_axactly, current_message)
10006 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
10007 with new argument list.
10008 (resize_mini_window_1): New callback function.
10009 (current_message_1, truncate_message_1, set_message_1): Change
10010 parameter lists to the new format expected by with_echo_area_buffer.
10011
10012 2000-07-24 Kenichi Handa <handa@etl.go.jp>
10013
10014 * fontset.c (fontset_ref): Remove INLINE declaration.
10015 (fontset_ref_via_base): Likewise.
10016 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
10017 to downcase.
10018
10019 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
10020
10021 * msdos.c (IT_note_mouse_highlight): Process overlays in the
10022 correct order of priority. If help echo was found in an overlay,
10023 use that overlay as the object in which the help echo was found.
10024
10025 2000-07-22 Miles Bader <miles@gnu.org>
10026
10027 * textprop.c (Fprevious_single_char_property_change): The initial
10028 property value should be from the position preceding POSITION, not
10029 following it.
10030
10031 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10032
10033 * coding.c (syms_of_coding): Doc fix for
10034 inhibit-iso-escape-detection.
10035
10036 2000-07-21 Gerd Moellmann <gerd@gnu.org>
10037
10038 * xterm.c (note_mouse_highlight): Process overlays in the right
10039 order of priority.
10040
10041 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10042
10043 * xterm.c (note_mouse_highlight): If help-echo was found in an
10044 overlay, use that overlay as the object in which the help was found.
10045
10046 * window.c (foreach_window_1): Fix typo reversing an if-condition.
10047
10048 * window.c (foreach_window): Instead of a fake variable argument
10049 list, take one USER_DATA argument.
10050 (foreach_window_1): Likewise, and call callback functions with two
10051 args, the window and USER_DATA.
10052 (struct check_window_data): New struct.
10053 (check_window_containing): Use it.
10054 (window_from_coordinates): Set up a struct check_window_data for
10055 foreach_window.
10056 (add_window_to_list, freeze_window_start): Change parameters
10057 according to new calling convention.
10058
10059 * window.h (foreach_window): Change prototype.
10060
10061 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10062
10063 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10064
10065 * xmenu.c (menu_help_callback): Call show_help_echo with
10066 additional arguments OBJECT and POS.
10067
10068 2000-07-21 Kenichi Handa <handa@etl.go.jp>
10069
10070 * data.c (Faset): Allow storing any multibyte character in a
10071 string. Convert unibyte string to multibyte if necessary.
10072
10073 * xfns.c (x_encode_text): New function.
10074 (x_set_name): Use x_encode_text.
10075 (x_set_title): Likewise.
10076
10077 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10078
10079 * xterm.h (x_encode_text): Add prototype.
10080
10081 2000-07-20 Dave Love <fx@gnu.org>
10082
10083 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10084 xfree, not free.
10085
10086 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10087
10088 * msdos.c (help_echo_window): New variable.
10089 (syms_of_msdos): Initialize and staticpro it.
10090 (IT_note_mode_line_highlight): Set help_echo_window.
10091 (IT_note_mouse_highlight): Ditto.
10092 (dos_rawgetc): Store help_echo_window in the second event produced
10093 for HELP_EVENTs.
10094
10095 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10096 Record the object that generated the help echo and the position of
10097 that object in help_echo_object and help_echo_pos. Record that
10098 some glyphs in a row are displayed in mouse-face.
10099 (IT_update_begin): Don't clear mouse highlight unless one of the
10100 enabled glyph rows is marked as being displayed in mouse-face.
10101 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10102 and position recorded in help_echo_object and help_echo_pos to the
10103 event queue.
10104 (IT_menu_display): Accept a new argument PN: the pane number of
10105 the current menu pane. Record the pane number and the item
10106 number of the item which has associated help string.
10107 (XMenuActivate): Update the prototype for help_callback in
10108 function declaration. Call IT_menu_display with the current menu
10109 pane number as an additional argument. Call help_callback with
10110 two additional arguments: the pane number and the item number of
10111 the menu item associated with the help text.
10112 (help_echo_object, help_echo_pos): New variables.
10113 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10114
10115 * msdos.h (XMenuActivate): Update prototype.
10116
10117 2000-07-19 Gerd Moellmann <gerd@gnu.org>
10118
10119 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10120 Add some more prototypes.
10121
10122 * xterm.c, xterm.h: Add some more prototypes.
10123
10124 * lisp.h (Fnext_single_char_property_change): Add prototype.
10125
10126 * dispnew.c (direct_output_for_insert): Remove confusing
10127 outer local variable mouse_face_overwritten_p.
10128 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10129
10130 * alloc.c (allocate_string_data): Don't copy old string contents.
10131
10132 2000-07-19 Kenichi Handa <handa@etl.go.jp>
10133
10134 * coding.c (code_convert_region): Delete text properties before
10135 shrinking the conversion region.
10136
10137 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10138
10139 * dispnew.c (update_text_area): Write the whole row if it
10140 has mouse-face in it.
10141
10142 * xfaces.c (face-alternative-font-family-alist): Remove
10143 DEFVAR_LISP; staticpro instead.
10144
10145 * xmenu.c (menu_help_callback): Call show_help_echo with
10146 new arguments.
10147
10148 * keyboard.c (show_help_echo): Add parameter WINDOW.
10149 (read_char): Call show_help_echo with window extracted from Lisp
10150 help event.
10151 (gen_help_event): Add parameter WINDOW.
10152
10153 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10154
10155 * xterm.c (help_echo_window): New variable.
10156 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
10157 (XTread_socket): Pass help_echo_window to gen_help_event.
10158 (syms_of_xterm): Initialize and staticpro help_echo_window.
10159
10160 2000-07-18 Dave Love <fx@gnu.org>
10161
10162 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
10163
10164 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10165
10166 * alloc.c (allocate_string_data): If string had already data
10167 assigned, copy old contents to new string data.
10168
10169 * coding.c (syms_of_coding): Fix typo in spelling of variable
10170 `inhibit-iso-escape-detection'.
10171
10172 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10173
10174 * Makefile.in: Add dependencies on dispextern.h.
10175 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10176 `free'; both can conflict with system header files.
10177
10178 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10179
10180 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10181 undefined.
10182
10183 2000-07-18 Dave Love <fx@gnu.org>
10184
10185 * window.c (Fwindow_list): Declare arg `window'.
10186
10187 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10188
10189 * coding.c (setup_coding_system): Don't override the explicitly
10190 specified designations.
10191
10192 2000-07-15 Miles Bader <miles@gnu.org>
10193
10194 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10195 from `text_property_eq' and `text_property_stickiness', respectively.
10196 (find_field, Fconstrain_to_field, char_property_eq)
10197 (char_property_stickiness): Changed to call char-property functions
10198 instead of text-property-only ones.
10199
10200 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10201 `next_single_char_property_change'). Do more error checking, and
10202 cleanup limit behavior.
10203 (Fprevious_single_char_property_change): New function.
10204 (syms_of_textprop): Initialize new subrs.
10205
10206 * xdisp.c (display_prop_end, invisible_text_between_p):
10207 Call Fnext_single_char_property_change instead of
10208 next_single_char_property_change.
10209
10210 2000-07-15 Jason Rumney <jasonr@gnu.org>
10211
10212 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10213 after menu is finished with.
10214 (add_menu_item): Only consider wv->title as a menu title.
10215 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10216
10217 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10218 null title.
10219 (FONT_REGEXP): Remove unused macro, and its sub-components.
10220 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10221
10222 * w32term.c (help_echo_object, help_echo_pos): New variables.
10223 (note_mode_line_highlight): Store additional information about the
10224 help-echo in help_echo_object and help_echo_pos. Check both
10225 `local-map' and `keymap' properties for changing the cursor
10226 (note_mouse_highlight): Store additional information about the
10227 help-echo in help_echo_object and help_echo_pos.
10228 (note_tool_bar_highlight): Set help_echo_object to nil and
10229 help_echo_pos to -1.
10230 (w32_read_socket): Use gen_help_event instead of filling
10231 input_events manually.
10232 (syms_of_w32term): Staticpro help_echo_object.
10233 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
10234 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
10235 (x_clear_mouse_face): New function.
10236 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10237 (x_update_window_begin): No need to turn off the mouse
10238 highlight here.
10239 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10240 depending on whether they contain glyphs highlighted in mouse-face.
10241 (x_fill_stretch_glyph_string): Consume runs of stretch
10242 glyphs instead of a single one.
10243 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10244 with new argument list.
10245 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10246 (x_append_glyph, x_append_composite_glyph)
10247 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10248 changes in struct glyph starting 1999-12-27. See comments for
10249 xterm.c on 2000-07-05.
10250
10251 2000-07-14 Sam Steingold <sds@gnu.org>
10252
10253 * xfaces.c (realize_x_face): Fix the last patch:
10254 check `default_face' before dereferencing.
10255
10256 2000-07-14 Dave Love <fx@gnu.org>
10257
10258 * syntax.c (back_comment): Add null default in switch (for pcc).
10259
10260 2000-07-14 Kenichi Handa <handa@etl.go.jp>
10261
10262 * xfaces.c (realize_x_face): Make fontset using the base of the
10263 default_face's fontset, not using the default fontset.
10264
10265 * coding.c (inhibit_iso_escape_detection): New variable.
10266 (syms_of_coding): Make it a Lisp variable.
10267 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10268 nonzero, ignore ISO2022's escape sequence.
10269
10270 2000-07-14 Gerd Moellmann <gerd@gnu.org>
10271
10272 * alloca.c (malloc) [emacs]: Define as xmalloc.
10273
10274 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10275 use that instead of the mouse position. Add parameters DX and DY.
10276
10277 * dispextern.h (Fx_show_tip): Adjust number of parameters
10278 in prototype.
10279
10280 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10281 if HELP is a function, call it with OBJECT and POS as parameters
10282 to get the help to display.
10283 (gen_help_event, kbd_buffer_store_help_event): New functions.
10284 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10285 (read_char): Call show_help_echo with new parameters.
10286
10287 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
10288 Add prototypes.
10289
10290 * xterm.c (help_echo_object, help_echo_pos): New variables.
10291 (note_mode_line_highlight): Store additional information about the
10292 help-echo in help_echo_object and help_echo_pos. Check both
10293 `local-map' and `keymap' properties for changing the cursor
10294 (note_mouse_highlight): Store additional information about the
10295 help-echo in help_echo_object and help_echo_pos.
10296 (note_tool_bar_highlight): Set help_echo_object to nil and
10297 help_echo_pos to -1.
10298 (XTread_socket): Use gen_help_event instead of filling
10299 input_events manually.
10300 (syms_of_xterm): Staticpro help_echo_object.
10301
10302 * xmenu.c (menu_highlight_callback): Use
10303 kbd_buffer_store_help_event instead of setting up and input_event
10304 structure manually.
10305
10306 * xdisp.c (eval_form): GCPRO argument sexpr.
10307 (call_function): New function.
10308 (handle_single_display_prop): Use call_function and FUNCTIONP
10309 instead of checking whether if font_height is a symbol and
10310 using eval_form.
10311
10312 * eval.c (internal_condition_case_2): New function.
10313
10314 * lisp.h (FUNCTIONP): New macro.
10315 (internal_condition_case_2, call_function): Add prototypes.
10316
10317 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10318 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10319 Always set `arg' member of input_events.
10320 (construct_menu_click): Unused function removed.
10321
10322 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10323
10324 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10325 (construct_drag_n_drop, x_scroll_bar_handle_click)
10326 (w32_read_socket): Always set `arg' member of input_events.
10327
10328 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10329
10330 * lisp.h (eval_form): Add prototype.
10331
10332 * xdisp.c (eval_form): Make it externally visible.
10333
10334 2000-07-13 Gerd Moellmann <gerd@gnu.org>
10335
10336 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10337 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10338 consing. For prefix events, store the frame in the `arg' slot of
10339 the event, otherwise store the key there.
10340 (XTread_socket): Instead of consing, use the frame_or_window slot
10341 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
10342
10343 * xmenu.c (menu_highlight_callback): Store help string in the
10344 `arg' member of the input event; don't cons.
10345 (menubar_selection_callback): Use the `arg' slot of input events
10346 to queue additional information, instead of consing.
10347
10348 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10349
10350 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10351 TOOL_BAR_EVENTs.
10352 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10353
10354 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10355 input events to queue additional information, instead of consing.
10356
10357 * keyboard.c (kbd_buffer_gcpro): Renamed from
10358 kbd_buffer_frame_or_window. Now used for all Lisp objects
10359 referenced from the input queue.
10360 (kbd_buffer_store_event): Always use structure assignment for
10361 copying input events. Record all Lisp objects referenced from
10362 events in kbd_buffer_gcpro.
10363 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10364 differently from input events. Test for prefix menu_bar_events
10365 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10366 event in kbd_buffer_gcpro to nil.
10367 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10368 frame_or_window is equal to its arg member as prefix events.
10369 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10370 used by an input event to nil.
10371 (init_keyboard): Use two times the size of the input queue
10372 for kbd_buffer_gcpro.
10373 (syms_of_keyboard): Likewise.
10374
10375 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10376 Use USER_SIGNAL_EVENT.
10377
10378 * termhooks.h (struct input_event): Add member `arg'.
10379 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10380 (USER_SIGNAL_EVENT): Renamed from user_signal.
10381
10382 * xfaces.c (ASET): Remove definition.
10383
10384 * lisp.h (AREF, ASET, ASIZE): New macros.
10385
10386 * fontset.c (AREF, ASIZE): Remove definitions.
10387
10388 * fns.c (AREF): Remove definition.
10389
10390 * composite.c (AREF): Remove definition.
10391
10392 2000-07-12 Gerd Moellmann <gerd@gnu.org>
10393
10394 * dispnew.c (redraw_overlapped_rows): Add missing local.
10395 (scrolling_window): Remove debug code.
10396
10397 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10398 Before scrolling, turn off a mouse-highlight in the window
10399 being scrolled.
10400
10401 * xterm.c (x_update_window_end): Add parameter
10402 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10403 redisplay in XTframe_up_to_date.
10404 (x_clear_mouse_face): New function.
10405 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10406
10407 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10408 current glyph row.
10409 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10410 it when any row is written to that contains glyphs highlighted in
10411 mouse-face.
10412 (update_window): Call the window update end hook with new
10413 parameter MOUSE_FACE_OVERWRITTEN_P.
10414 (direct_output_for_insert): Give up if row contains mouse-face.
10415
10416 * dispextern.h (struct redisplay_interface): Add parameter
10417 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10418 (clear_mouse_face): New function pointer member.
10419
10420 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10421
10422 * syntax.c (back_comment): Use one switch rather than a few `if's.
10423 Obey open_paren_in_column_0_is_defun_start.
10424 When reverting to the `slow' method, try to nicely handle the case
10425 of nested comments by checking that the comment-starter we found
10426 does indeed match the comment-ender.
10427 (scan_sexps_forward, scan_sexps_forward):
10428 Ignore excessive opening parenthesis rather than throwing an error.
10429
10430 2000-07-11 Gerd Moellmann <gerd@gnu.org>
10431
10432 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10433 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10434
10435 * dispnew.c (direct_output_forward_char): Give up if currently
10436 displaying a message instead of the minibuffer contents.
10437
10438 * xterm.c (x_update_window_begin): No need to turn off the mouse
10439 highlight here.
10440 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10441 depending on whether they contain glyphs highlighted in mouse-face.
10442
10443 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10444 compare the mouse_face_p flags of both rows.
10445
10446 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10447
10448 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10449
10450 * keyboard.c (show_help_echo): Accept additional parameter
10451 ok_to_overwrite_keystroke_echo.
10452 (read_char): Call show_help_echo with a zero
10453 ok_to_overwrite_keystroke_echo argument.
10454 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
10455 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10456 ok_to_overwrite_keystroke_echo argument.
10457 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10458 non-zero ok_to_overwrite_keystroke_echo argument.
10459
10460 2000-07-10 Gerd Moellmann <gerd@gnu.org>
10461
10462 * xdisp.c (try_window_id): If changes are all below what is
10463 displayed in the window, and point is in the window, we still
10464 might have to find point on the display.
10465
10466 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10467 glyphs instead of a single one.
10468 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10469 with new argument list.
10470 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10471
10472 * keymap.c (get_keymap_1): Add comment that this function can GC.
10473 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10474 comment that functions can GC.
10475 (Fset_keymap_parent): GCPRO arg KEYMAP.
10476
10477 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10478
10479 * msdos.c (XMenuActivate): After exiting the menu, restore the
10480 echo area message and erase it.
10481
10482 2000-07-10 Kenichi Handa <handa@etl.go.jp>
10483
10484 * fontset.c (Ffontset_info): Make the return value more compatible
10485 with that of Emacs 20.
10486
10487 2000-07-07 Gerd Moellmann <gerd@gnu.org>
10488
10489 * eval.c (Fsignal): Handle case that backtrace_list is null.
10490
10491 2000-07-07 Kenichi Handa <handa@etl.go.jp>
10492
10493 * ccl.c (Fccl_execute): Typo fixed.
10494
10495 2000-07-06 Gerd Moellmann <gerd@gnu.org>
10496
10497 * window.c (window_loop): Add missing gcpro1 local variable.
10498
10499 * window.c (Fwindow_list): Reverse list at the end.
10500 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10501 means allow windows on OWINDOW's frame, only.
10502 (window_loop): Simplified; use Fwindow_list.
10503
10504 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10505
10506 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10507
10508 * xterm.c (XTread_socket): Increment handling_signal at the start,
10509 decrement it at the end.
10510
10511 * eval.c (handling_signal): New variable.
10512 (Fsignal): Abort if handling_signal is non-zero.
10513
10514 * lisp.h (handling_signal): External declaration.
10515
10516 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10517
10518 2000-07-05 Ken Raeburn <raeburn@gnu.org>
10519
10520 Sound support for NetBSD through "Linux emulation" support:
10521 * config.in (HAVE_SOUNDCARD_H): Undef.
10522 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10523 * Makefile.in (LIBSOUND): New variable.
10524 (LIBES): Include it.
10525 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10526 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
10527 (vox_open): Use DEFAULT_SOUND_DEVICE.
10528 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10529
10530 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10531
10532 * print.c (print_error_message): If Vsignaling_function is set,
10533 show it in *Messages*.
10534
10535 * lisp.h (Vsignaling_function): External declaration.
10536
10537 * eval.c (Vsignaling_function): New variable.
10538 (Fsignal): Compute it.
10539 (syms_of_eval): Staticpro it.
10540
10541 2000-07-05 Dave Love <fx@gnu.org>
10542
10543 * syswait.h: Use the autoconf recommended approach. Old code
10544 #if'd out in case we need to revert.
10545
10546 * config.in (HAVE_SYS_WAIT_H): Added.
10547
10548 2000-07-05 Andrew Innes <andrewi@gnu.org>
10549
10550 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10551 when non-NULL instead of __morecore, to take account of buffer
10552 memory. This also solves a problem with spurious memory warnings
10553 on Windows.
10554
10555 * ralloc.c: Make real_morecore non-static.
10556
10557 * eval.c (internal_condition_case): Comment out abort if
10558 interrupt_input_blocked is not zero.
10559
10560 * makefile.nt: Add support for `bootstrap' and related targets.
10561 Include minimal debug info in emacs.exe in release build.
10562 Remove all dependencies on lisp.h, and fixup some others.
10563
10564 * w32.c (init_environment): Install code from 20.7 for providing
10565 default values for environment variables, based on the
10566 executable's own location.
10567 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
10568 (sys_socket): Install socket inheritance bug fix from 20.7.
10569
10570 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10571 here via blockinput.h).
10572
10573 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10574
10575 * w32menu.c (w32_menu_display_help):
10576 * xmenu.c (menu_help_callback): Use show_help_echo.
10577
10578 * keyboard.h (show_help_echo): Declare.
10579
10580 * keyboard.c (show_help_echo): New function, extracted from read_char.
10581 Feval its `msg' argument if it's a cons cell.
10582 (read_char): Use it.
10583 (follow_key): Pass `autoload' to get_keyelt.
10584
10585 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
10586 (note_tool_bar_highlight, XTread_socket):
10587 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
10588 (dos_rawgetc):
10589 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10590 (note_tool_bar_highlight, w32_read_socket):
10591 Do not gratuitously ignore non-string `help-echo' properties.
10592
10593 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10594
10595 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10596
10597 * window.c (delete_all_subwindows): Reset Vwindow_list.
10598
10599 * xterm.c (x_append_glyph, x_append_composite_glyph)
10600 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10601 changes in struct glyph starting 1999-12-27. Some bit-fields of
10602 struct glyph were not set, which made glyphs unequal when compared
10603 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10604 effects were the result. This also depended on the contents of
10605 memory returned by xmalloc. If flickering happens again, activate
10606 the code in clear_glyph_row that's in #if 0. If the flickering is
10607 gone with that, chances are that it is caused by something similar.
10608
10609 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
10610
10611 * dispextern.h: Add some comments.
10612
10613 * window.c (add_window_to_list): Add parameter LIST.
10614 (window_list): Order list so that, for each frame, windows are
10615 in canonical order, and so that frames appear in the list in
10616 the order given by Vframe_list.
10617 (next_window): Reverse the handling of NEXT_P.
10618
10619 2000-07-04 Gerd Moellmann <gerd@gnu.org>
10620
10621 * window.c (Vwindow_list): New variable.
10622 (make_window, delete_window): Set Vwindow_list to nil.
10623 (check_window_containing): New function.
10624 (window_from_coordinates): Rewritten.
10625 (add_window_to_list, window_list, candidate_window_p)
10626 (decode_next_window_args, next_window): New functions.
10627 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
10628 (Fwindow_list): New function.
10629 (Fother_window): Cleaned up.
10630 (foreach_window): Add a longer "variable argument list". Let
10631 callback function return 0 to indicate that cycling over windows
10632 should stop.
10633 (foreach_window_1): Likewise.
10634 (freeze_window_start): Return int.
10635 (init_window): New function.
10636 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10637
10638 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10639 input_event with bzero.
10640 (main): Call init_window.
10641
10642 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10643 a menu filter.
10644
10645 2000-07-04 Kenichi Handa <handa@etl.go.jp>
10646
10647 * composite.h (make_composition_value_copy): Extern it.
10648
10649 * composite.c (make_composition_value_copy): New function.
10650
10651 * editfns.c (Fformat): While copying text properties, make each
10652 composition property value a copy.
10653
10654 * fns.c (concat): While copying text properties, make each
10655 composition property value a copy.
10656
10657 2000-07-03 Gerd Moellmann <gerd@gnu.org>
10658
10659 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10660
10661 * fns.c (sweep_weak_table): Mark only objects that are not
10662 marked already.
10663
10664 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10665 include those frames as candidates which have their focus
10666 redirected to the minibuffer frame.
10667
10668 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10669
10670 * fns.c (Fputhash): Return `value' rather than nil.
10671
10672 2000-06-30 Gerd Moellmann <gerd@gnu.org>
10673
10674 * frame.c (next_frame): Don't check focus redirection in case
10675 MINIBUF is a window. Doing so excludes frames using MINIBUF
10676 unless their focus is redirected, which contradicts the
10677 specification of next-frame, and leads to infinite loops in
10678 certain situations when cycling through windows with next-window.
10679
10680 2000-06-30 Kenichi Handa <handa@etl.go.jp>
10681
10682 * coding.c (code_convert_region): Even if the length of text is
10683 zero, try to convert it if coding->type is coding_type_ccl.
10684 (decode_coding_string, encode_coding_string): Likewise.
10685
10686 2000-06-28 Gerd Moellmann <gerd@gnu.org>
10687
10688 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
10689 the display if windows_or_buffers_changed.
10690
10691 * dispnew.c (struct row_entry): New structure.
10692 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10693 (row_table_size, old_lines, new_lines, old_lines_size)
10694 (new_lines_size, run_pool, runs_size, runs): New variables.
10695 (add_row_entry): New function.
10696 (scrolling_window): Use data structures allocated with xmalloc and
10697 held in global variables, instead of allocating them with alloca and
10698 holding them in local variables. Use a larger hash table whose
10699 size depends on glyph matrix sizes. Don't use bzero to clear the
10700 hash table; instead, clear used slots only.
10701
10702 * fns.c (next_almost_prime): Make it externally visible.
10703
10704 * lisp.h (next_almost_prime): Add prototype.
10705
10706 * s/isc4-0.h (sigunblock): Define.
10707
10708 * s/sco5.h (sigunblock): Define.
10709
10710 2000-06-27 Dave Love <fx@gnu.org>
10711
10712 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10713 (moved to osf5-0.h).
10714 [!NOT_C_CODE]: Protect string.h stuff.
10715
10716 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10717 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10718
10719 2000-06-27 Gerd Moellmann <gerd@gnu.org>
10720
10721 * xdisp.c (resize_mini_window): Subtract the extra line spacing
10722 below the last line from the needed window height.
10723
10724 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10725
10726 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10727 (Fwidget_get): Use it.
10728 (syms_of_fns): Defsubr it.
10729
10730 2000-06-26 Gerd Moellmann <gerd@gnu.org>
10731
10732 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
10733 display info for XIM.
10734 (xim_open_dpy): Likewise.
10735 (xim_close_dpy): Don't free the display info's XIM.
10736
10737 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10738
10739 * config.in (USE_XIM): New define.
10740
10741 * keymap.c (get_keyelt): For menu-items containing a `:filter
10742 FILTER', apply FILTER to the menu-item's definition to get the
10743 real definition to use.
10744
10745 * lisp.h (QCfilter): External declaration.
10746
10747 * xfns.c (Fimage_size): New function.
10748 (syms_of_xfns): Defsubr it.
10749
10750 2000-06-26 Andreas Schwab <schwab@suse.de>
10751
10752 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10753 Fstring_as_unibyte.
10754
10755 2000-06-25 Dave Love <fx@gnu.org>
10756
10757 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
10758
10759 * Makefile.in (blockinput.h): Depend on atimer.h.
10760 (atimer.h): Depend on systime.h.
10761
10762 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
10763
10764 * atimer.h: Protect against multiple inclusion. Include systime.h.
10765
10766 * lisp.h (swap_in_global_binding): Declare.
10767
10768 2000-06-24 Ken Raeburn <raeburn@gnu.org>
10769
10770 * process.c (Fopen_network_stream): Turn off atimers for duration
10771 of call to connect. (Patch from Gerd.)
10772
10773 2000-06-23 Dave Love <fx@gnu.org>
10774
10775 * ralloc.c: Maybe include unistd.h
10776
10777 * emacs.c (setgrp): Undefine before defining.
10778 (malloc_warning, set_time_zone_rule, index): Prototype.
10779
10780 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10781 HAVE_STRUCT_TIMEZONE.
10782
10783 * s/osf1.h: Move string.h hack here from alpha.h and make it
10784 conditional.
10785 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10786 _XOPEN_SOURCE.
10787 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10788 (SOCKLEN_TYPE): Don't define.
10789
10790 * m/alpha.h: Remove string.h hack.
10791
10792 * s/osf5-0.h: New file.
10793
10794 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10795 include time.h, done by systime.h.
10796 [__FreeBSD__]: Remove redundant includes.
10797
10798 * callproc.c (setpgrp): Undefine before defining.
10799 (delete_temp_file): Return Qnil to avoid warning.
10800
10801 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10802
10803 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10804 HAVE_X_WINDOWS.
10805
10806 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10807
10808 * composite.h (compose_text): Declare.
10809
10810 * xterm.c: Don't include sys/types.h unconditionally. Don't
10811 protect its inclusion with !USG (following xmenu.c).
10812
10813 2000-06-23 Gerd Moellmann <gerd@gnu.org>
10814
10815 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10816 in x_create_frame.
10817
10818 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10819
10820 * coding.c (decode_eol_post_ccl): Special handling for undecided
10821 and inconsistent EOL types.
10822
10823 2000-06-22 Gerd Moellmann <gerd@gnu.org>
10824
10825 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10826 trough color and main window's background color.
10827
10828 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
10829
10830 * xterm.h (Xt_app_con): External declaration.
10831
10832 * widget.c (EmacsFrameRealize): Fix typo.
10833
10834 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10835
10836 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10837 (handle_invisible_prop): Record the start of invisible text in
10838 it->add_overlay_start.
10839 (struct overlay_entry): Add member `overlay'.
10840 (handle_overlay_change): Simplify.
10841 (next_overlay_string): After having processed overlay strings at the
10842 end of the buffer, record that fact in
10843 it->overlay_strings_at_end_processed_p.
10844 (compare_overlay_entries): If before- and after-strings come
10845 from the same overlay, let before-strings come first.
10846 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10847 (load_overlay_strings): Take it->add_overlay_start into account
10848 when adding overlay strings.
10849
10850 * dispextern.h (struct it): Add member add_overlay_start.
10851
10852 2000-06-22 Dave Love <fx@gnu.org>
10853
10854 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10855
10856 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10857
10858 2000-06-22 Kenichi Handa <handa@etl.go.jp>
10859
10860 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10861 is greater than 0.
10862
10863 2000-06-21 Dave Love <fx@gnu.org>
10864
10865 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
10866
10867 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10868
10869 * syntax.c (back_comment): Simplify string-parity counting (with
10870 the added benefit of handling multiple string-styles as long as
10871 they are not intertwined).
10872 Jump to the slow code as soon as a comment starter is found in
10873 a "string_lossage" position. Fixes the case: " /* " /* " */.
10874
10875 2000-06-21 Dave Love <fx@gnu.org>
10876
10877 * Makefile.in: Use GETLOADAVG_LIBS.
10878
10879 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10880 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10881
10882 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10883
10884 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10885 (Fforward_comment, scan_lists):
10886 Check the comstyle of single-char comment-starters.
10887 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10888 we're just at the beginning of the comment (f.ex with (*) ... (*)).
10889 Check the comstyle of single-char comment-starters.
10890 Clarify control-flow around the Scomment case.
10891
10892 2000-06-20 Dave Love <fx@gnu.org>
10893
10894 * fns.c (make_hash_table, maybe_resize_hash_table):
10895 Cast arg of next_almost_prime.
10896
10897 * tparam.c [emacs]: Include lisp.h.
10898
10899 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10900 and unistd.h.
10901
10902 2000-06-20 Gerd Moellmann <gerd@gnu.org>
10903
10904 * keyboard.c (adjust_point_for_property): Check if display
10905 property should be treated as intangible by looking at its value.
10906
10907 * xdisp.c (single_display_prop_intangible_p)
10908 (display_prop_intangible_p): New functions.
10909
10910 * dispextern.h (display_prop_intangible_p): Add prototype.
10911
10912 * xdisp.c (dump_glyph_row): Show type of glyph->object.
10913
10914 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10915 argument to sigprocmask.
10916
10917 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10918 argument to sigprocmask.
10919
10920 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10921 sigprocmask_set, and pass a pointer to it to sigprocmask.
10922
10923 * sysdep.c (sigprocmask_set): New variable.
10924
10925 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10926 report_file_error.
10927
10928 2000-06-20 Sam Steingold <sds@gnu.org>
10929
10930 * xrdb.c: Don't declare xmalloc, xrealloc.
10931
10932 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10933
10934 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10935 (re_comp): Cast gettext return value to avoid complaints when
10936 !HAVE_LIBINTL.
10937
10938 2000-06-20 Dave Love <fx@gnu.org>
10939
10940 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
10941
10942 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
10943
10944 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
10945
10946 * m/alpha.h: Don't declare xmalloc, xrealloc.
10947
10948 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10949
10950 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10951
10952 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10953
10954 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10955 HAVE_GETWD.
10956
10957 * keyboard.h (poll_for_input_1): Declare.
10958
10959 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10960
10961 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10962
10963 * doprnt.c: Don't declare xmalloc, xrealloc.
10964
10965 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10966 (getenv, ctime, getwd): Removed.
10967 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10968
10969 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10970 x_set_tool_bar_lines.
10971
10972 * config.in: Add HAVE_GETWD. Move some definitions above
10973 machine/system includes.
10974
10975 2000-06-20 Kenichi Handa <handa@etl.go.jp>
10976
10977 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10978
10979 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10980 contain information about ENCODING.
10981
10982 * fontset.c (FONTSET_ASCII): Use the first element of char table
10983 for an ASCII font, not defalt slot.
10984 (fontset_ref_via_base): If FONTSET doesn't contain information for
10985 C, try the default fontset.
10986 (make_fontset): Don't copy the default fontset.
10987 (fontset_font_pattern): Likewise.
10988 (accumulate_font_info): If ELT is nil, use the corresponding
10989 element in the default fontset.
10990
10991 2000-06-19 Dave Love <fx@gnu.org>
10992
10993 * syntax.c (Fparse_partial_sexp): Doc fix.
10994
10995 * regex.h: Test PROTOTYPES as well as __STDC__.
10996
10997 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10998 errno, strerror. Put text after #endif in comment.
10999
11000 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
11001
11002 * xterm.c (x_frame_of_widget): Likewise.
11003
11004 2000-06-19 Gerd Moellmann <gerd@gnu.org>
11005
11006 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
11007 to Vfundamental_mode_abbrev_table.
11008
11009 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
11010 bogus objects are marked. This slows down GC by ~80 percent, but
11011 it might be worth trying when debugging GC-related problems.
11012 This feature requires conservative stack marking to be enabled.
11013
11014 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
11015 returns XLookupChars, reset `modifiers' to zero.
11016
11017 2000-06-19 Dave Love <fx@gnu.org>
11018
11019 * mktime.c: Unprotoized.
11020
11021 2000-06-19 Richard Stallman <rms@gnu.org>
11022
11023 * data.c (set_internal): If variable is frame-local,
11024 store the new value immediately into the frame parameter alist.
11025
11026 2000-06-19 Ken Raeburn <raeburn@gnu.org>
11027
11028 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11029 in the custom handler pointer.
11030
11031 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11032 value, or checks for CHAR_META can fail when Lisp_Object is a
11033 union type.
11034 * keymap.c (get_keyelt): Likewise.
11035
11036 2000-06-19 Kenichi Handa <handa@etl.go.jp>
11037
11038 * ccl.h (struct ccl_program): New member eol_type.
11039 (struct ccl_spec): New member cr_carryover.
11040
11041 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11042 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11043
11044 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11045 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11046 (decode_eol_post_ccl): New function.
11047 (decode_coding): Don't detect EOL format here for CCL based coding
11048 systems.
11049 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11050 decode_eol_post_ccl after running the CCL program.
11051 (code_convert_region): Don't detect EOL format here for CCL based
11052 coding systems.
11053 (decode_coding_string): Likewise.
11054
11055 2000-06-18 Ken Raeburn <raeburn@gnu.org>
11056
11057 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11058 when treating it as an integer.
11059
11060 * coding.h (encode_coding_string): Declare.
11061
11062 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11063 it as an integer.
11064
11065 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11066 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11067 to be passed to get_local_map.
11068
11069 * sound.c (Fplay_sound): Don't call make_number on
11070 Frun_hook_with_args count argument.
11071
11072 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11073 for lisp objects in X event structure data field, when lisp
11074 objects are represented with unions.
11075 (x_scroll_bar_to_input_event): Ditto.
11076
11077 2000-06-16 Ken Raeburn <raeburn@gnu.org>
11078
11079 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
11080 termination of string. Fix sense of test whether
11081 Vline_number_display_limit is an integer.
11082
11083 2000-06-16 Gerd Moellmann <gerd@gnu.org>
11084
11085 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11086 only if HAVE_X_WINDOWS.
11087
11088 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11089 of titles.
11090
11091 * dispnew.c (update_frame_1): Handle case that cursor vpos is
11092 out of bounds.
11093
11094 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11095
11096 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11097 of its headers.
11098
11099 2000-06-15 Kenichi Handa <handa@etl.go.jp>
11100
11101 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11102 start of the while loop.
11103
11104 2000-06-15 Gerd Moellmann <gerd@gnu.org>
11105
11106 * atimer.c (alarm_signal_handler): Add forward declaration.
11107
11108 * data.c (set_internal): Remove debug code.
11109
11110 2000-06-14 Gerd Moellmann <gerd@gnu.org>
11111
11112 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11113
11114 * unexec.c (toplevel) [COFF]: Include coff.h.
11115
11116 * s/lynxos.h: New file.
11117
11118 * keymap.c (Fsingle_key_description): Enclose function key and
11119 event symbol names in angle brackets.
11120
11121 * xdisp.c (setup_echo_area_for_printing): Call
11122 message_log_maybe_newline if message_buf_print is not set.
11123
11124 * print.c (printchar, strout): Don't check message_buf_print
11125 before calling setup_echo_area_for_printing because that
11126 function does something useful even when message_buf_print is
11127 already set.
11128
11129 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11130 New variables.
11131 (ensure_echo_area_buffers): Initialize echo buffer's
11132 truncate lines setting to nil.
11133 (with_echo_area_buffer): Don't set the echo buffer's truncate
11134 lines setting here.
11135 (set_message_1): Set it here instead, based on the value
11136 of message_truncate_lines.
11137 (resize_mini_window): Handle case that lines are truncated.
11138 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11139 DEFVAR_BOOL message-truncate-lines.
11140
11141 * keyboard.c (read_char): Bind message-truncate-lines to t
11142 while displaying a help-echo.
11143
11144 * lisp.h (Qmessage_truncate_lines): External declaration.
11145
11146 2000-06-13 Gerd Moellmann <gerd@gnu.org>
11147
11148 * xdisp.c (Vline_number_display_limit): Renamed from
11149 line_number_display_limit.
11150 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11151 Extend documentation string. Initialize
11152 Vline_number_display_limit to nil meaning no limit.
11153 (decode_mode_spec): Use Vline_number_display_limit with its new
11154 meaning.
11155
11156 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11157
11158 2000-06-13 Richard Stallman <rms@gnu.org>
11159
11160 * frame.c (Fmodify_frame_parameters): Doc fix.
11161
11162 * xfns.c (x_set_frame_parameters): Comment fix.
11163
11164 * frame.c (store_frame_param): Call swap_in_global_binding if the
11165 variable's current binding was chosen based on this frame.
11166
11167 * data.c (swap_in_global_binding): New function.
11168
11169 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11170
11171 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11172 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11173
11174 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11175
11176 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11177
11178 2000-06-12 Jason Rumney <jasonr@gnu.org>
11179
11180 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11181
11182 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11183
11184 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11185
11186 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11187
11188 2000-06-12 Gerd Moellmann <gerd@gnu.org>
11189
11190 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11191 (syms_of_xfaces): Defsubr Sdump_colors.
11192 (x_free_colors): Don't treat b&w specially on default visual.
11193 (x_free_dpy_colors): New function.
11194 (free_face_colors): Don't check visual class; it's done
11195 in x_free_colors.
11196
11197 * xterm.c (x_frame_of_widget): New function.
11198 (x_alloc_nearest_color_for_widget): Use it.
11199 (x_copy_dpy_color): New function.
11200 (x_destroy_window): Free various colors.
11201
11202 2000-06-12 Kenichi Handa <handa@etl.go.jp>
11203
11204 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11205
11206 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11207
11208 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11209
11210 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11211
11212 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11213
11214 2000-06-11 Dave Love <fx@gnu.org>
11215
11216 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11217
11218 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11219
11220 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11221
11222 2000-06-11 Gerd Moellmann <gerd@gnu.org>
11223
11224 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
11225 to `XEvent *'.
11226
11227 2000-06-10 Kenichi Handa <handa@etl.go.jp>
11228
11229 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11230 (regex_compile): Fix the code for handling the case of single byte
11231 char and multibyte char being mixed in a range within [...].
11232
11233 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11234 and dst_multibyte members of coding.
11235
11236 * charset.c (update_charset_table): Update the table
11237 bytes_by_char_head.
11238 (init_charset_once): Initialize elements of bytes_by_char_head to
11239 1 except for leading codes for private charases.
11240
11241 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
11242 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
11243
11244 2000-06-09 Ken Raeburn <raeburn@gnu.org>
11245
11246 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11247 access the data it doesn't point to.
11248
11249 2000-06-08 Gerd Moellmann <gerd@gnu.org>
11250
11251 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
11252 will be translated to a switch-frame event when reading the
11253 event queue. This is necessary because Emacs otherwise won't
11254 perform a switch-frame to a new frame until some other event, for
11255 example a keystroke event, forces it to do so. This has various
11256 effects, one visible being that the cursor of a frame created with
11257 C-x 5 2 or switched to with a window manager key binding like
11258 A-TAB stays hollow because selected_window isn't on the newly
11259 focused frame until the switch-frame is performed.
11260
11261 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11262 generating a switch-frame event if necessary.
11263
11264 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11265
11266 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11267 it's an integer.
11268
11269 2000-06-08 Kenichi Handa <handa@etl.go.jp>
11270
11271 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
11272
11273 2000-06-07 Gerd Moellmann <gerd@gnu.org>
11274
11275 * window.c (displayed_window_lines): Take empty lines at
11276 the bottom of a window into account.
11277
11278 * window.c (displayed_window_lines): New function.
11279 (Fmove_to_window_line): Use displayed_window_lines to determine
11280 the number of lines to move, instead of using the window's height.
11281
11282 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11283 to stop reading, even if the form read sets point to a different
11284 value when evaluated.
11285
11286 * xdisp.c (display_line): Fix code deciding in which line to
11287 put the cursor.
11288
11289 2000-06-07 Kenichi Handa <handa@etl.go.jp>
11290
11291 * fileio.c (e_write): Free composition data if stored in
11292 coding->cmp_data.
11293
11294 2000-06-06 Gerd Moellmann <gerd@gnu.org>
11295
11296 * xdisp.c (display_line): Set row's and iterator's
11297 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11298 Set cursor even if row ends in the middle of a character.
11299 (dump_glyph_row): Print values of new flags.
11300 (redisplay_window) <cursor movement in unchanged window>: When
11301 point has been moved forward, and PT is at the end of the cursor
11302 row, don't place the cursor in the next row if the cursor row ends
11303 in the middle of a character or at ZV.
11304
11305 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11306 (struct glyph_row): Add starts_in_middle_of_char_p and
11307 ends_in_middle_of_char_p.
11308 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11309 ends_in_middle_of_char_p flag.
11310 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11311
11312 * term.c (append_glyph): Revert change of 2000-06-06.
11313
11314 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11315 padding glyph not fitting on line as whole character not
11316 fitting on line.
11317
11318 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11319 this isn't true for images with `:ascent 100'.
11320
11321 2000-06-06 Kenichi Handa <handa@etl.go.jp>
11322
11323 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11324 as modified if it is originally unmodified.
11325
11326 * term.c (encode_terminal_code): Change the way to check if
11327 terminal coding does any conversion.
11328 (append_glyph): Set glyph->pixel_width correctly.
11329
11330 * xdisp.c (display_line): While checking line continuation, pay
11331 attention to a padding glyph.
11332
11333 2000-06-05 Gerd Moellmann <gerd@gnu.org>
11334
11335 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11336
11337 2000-06-05 Dave Love <fx@gnu.org>
11338
11339 * xdisp.c: Include fontset.h.
11340
11341 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11342
11343 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11344
11345 * dispnew.c: Conditionally include term.h.
11346
11347 * coding.h: Declare code_convert_string_norecord.
11348
11349 * frame.h (struct frame): Use volatile unconditionally.
11350
11351 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11352
11353 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11354
11355 * systime.h: Protect against multiple inclusion.
11356 (timezone) [USG5_4]: Define as time_t.
11357
11358 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11359 (Foptimize_char_table, make_temp_name): Declare.
11360
11361 * Makefile.in (xdisp.o): Depend on fontset.h.
11362
11363 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11364
11365 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11366 (Foptimize_char_table, make_temp_name): Declare.
11367
11368 * s/irix4-0.h:
11369 * s/irix5-0.h:
11370 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11371
11372 2000-06-02 Dave Love <fx@gnu.org>
11373
11374 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11375
11376 2000-06-02 Gerd Moellmann <gerd@gnu.org>
11377
11378 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
11379 result face, set flags in that face indicating that colors may not
11380 be freed.
11381
11382 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11383 glyph, use the ASCII NUL character to determine the face.
11384
11385 2000-06-02 Dave Love <fx@gnu.org>
11386
11387 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11388 (VFORK_RETURN_TYPE): Remove.
11389
11390 * config.in: Add NO_MATHERR.
11391
11392 2000-06-01 Dave Love <fx@gnu.org>
11393
11394 * cmds.c (internal_self_insert): Don't check
11395 Vbefore_change_function, Vafter_change_function.
11396
11397 * insdel.c (signal_before_change, signal_after_change): Likewise.
11398
11399 * buffer.c (Vbefore_change_function, Vafter_change_function):
11400 Variables and their initializations deleted.
11401
11402 * callint.c (Fcall_interactively): Doc fix.
11403
11404 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11405
11406 2000-05-31 Dave Love <fx@gnu.org>
11407
11408 * textprop.c: Revert last change -- duplicated.
11409
11410 2000-05-31 Gerd Moellmann <gerd@gnu.org>
11411
11412 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11413 in #if 0.
11414
11415 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11416
11417 2000-05-31 Jason Rumney <jasonr@gnu.org>
11418
11419 * search.c (Fre_search_forward, Fre_search_backward)
11420 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11421
11422 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11423
11424 2000-05-30 Jason Rumney <jasonr@gnu.org>
11425
11426 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11427 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11428
11429 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
11430
11431 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11432 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11433 expand a nil default_filename.
11434
11435 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11436 pointer to glyph_to_pixel_coords, not a frame.
11437
11438 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11439 coding.h to dependencies.
11440
11441 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11442
11443 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11444 window pointer to be consistent with w32term.c and xterm.c.
11445
11446 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11447 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11448 (Qline_spacing, Qcenter): New variables.
11449 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11450 (x_set_line_spacing): New function.
11451 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
11452 (x_specified_cursor_type): New function.
11453 (x_set_cursor_type): Use it.
11454 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11455 and icon strings.
11456 (validate_x_resource_name, x_get_resource_string): Measure lengths
11457 of external strings in bytes.
11458 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11459 GetTextExtentPoint32 with NULL title.
11460 (Fx_create_frame): Initialize Qline_spacing.
11461 (w32_load_system_font): Initialize font->double_byte_p.
11462 (x_to_w32_charset): Use Vw32_charset_info_alist.
11463 (Image, busy cursor, tooltip functions): Merged changes from
11464 xfns.c. Not yet functional on Windows.
11465
11466 * w32gui.h (W32FontStruct): Add double_byte_p member.
11467
11468 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11469 (emacs_button_translation): Use it.
11470 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11471 in `mask' to be set.
11472
11473 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11474 menu strings.
11475
11476 * w32term.c: Format and doc changes to bring closer to xterm.c.
11477 (w32_char_font_type): New enum.
11478 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11479 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11480 (w32_encode_char): New function.
11481 (x_encode_char): Removed.
11482 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11483 x_encode_char and w32_font_is_double_byte.
11484 (x_produce_image_glyph): Use image_ascent.
11485 (x_produce_glyphs): Use new version of w32_per_char_metric and
11486 handle NULL return value. Allow extra line spacing.
11487 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11488 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11489 w32_font_type member of glyph instead.
11490 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11491 (fast_find_position): Make sure not to consider rows not visible
11492 in the window.
11493 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11494 w32_menu_display_help with input blocked, as it can abort.
11495 (x_display_and_set_cursor): Choose cursor depending
11496 on buffer-local value of cursor_type.
11497 (x_draw_bar_cursor): Add parameter WIDTH.
11498
11499 * w32term.h (CP_DEFAULT): Define.
11500 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11501
11502 2000-05-30 Gerd Moellmann <gerd@gnu.org>
11503
11504 * search.c (Fre_search_forward, Fre_search_backward)
11505 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11506
11507 2000-05-30 Kenichi Handa <handa@etl.go.jp>
11508
11509 * coding.c (detect_coding_iso2022): Fix code for checking
11510 CODING_CATEGORY_MASK_ISO_8_2.
11511
11512 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11513
11514 * regex.c (PREFETCH_NOLIMIT): New function.
11515 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11516
11517 2000-05-29 Gerd Moellmann <gerd@gnu.org>
11518
11519 * syntax.c (find_defun_start): Move test for
11520 open_paren_in_column_0_is_defun_start outside of the loop.
11521
11522 * xdisp.c (redisplay_window): Really switch buffers when
11523 displaying mode lines, and temporarily set selected_frame to the
11524 frame of the window that's redisplayed.
11525
11526 * xfaces.c (free_realized_faces): Block/unblock input.
11527 (free_realized_multibyte_face): Ditto.
11528
11529 2000-05-29 Dave Love <fx@gnu.org>
11530
11531 * textprop.c (Qkeymap): New variable.
11532 (syms_of_textprop): Intern it.
11533
11534 * keymap.c: Include intervals.h.
11535 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11536
11537 * Makefile.in (keymap.o): Depend on intervals.h.
11538
11539 * keyboard.c (menu_bar_items, tool_bar_items)
11540 (Fexecute_extended_command): Deal with `keymap' property.
11541 (read_key_sequence): Track map from `keymap' property as well as
11542 `local_map'.
11543
11544 * intervals.c (get_local_map): Extra arg to allow looking for
11545 `keymap' too.
11546
11547 * intervals.h (map_property): New enum.
11548 (get_local_map): Extra arg using it.
11549 (Qkeymap): Declare.
11550
11551 * lisp.h (get_local_map): Don't declare here.
11552
11553 2000-05-29 Kenichi Handa <handa@etl.go.jp>
11554
11555 * Makefile.in (callproc.o): Depend on composite.h.
11556
11557 * callproc.c: Include composite.h.
11558 (Fcall_process): Handle composition correctly.
11559
11560 * coding.h (coding_allocate_composition_data): Extern it.
11561 (coding_restore_composition): Likewise.
11562
11563 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11564 yet allocated, finish decoding with result
11565 CODING_FINISH_INSUFFICIENT_CMP.
11566 (coding_allocate_composition_data): Make it non-static.
11567 (coding_restore_composition): Likewise.
11568
11569 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11570
11571 * charset.c (syms_of_charset): Revert last change.
11572
11573 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11574
11575 * term.c (produce_glyphs): Treat characters from the eight-bit-*
11576 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11577 Handa.
11578
11579 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11580
11581 * charset.c (syms_of_charset): Set width of character sets
11582 eight-bit-control and eight-bit-graphic to 1 column.
11583
11584 2000-05-26 Gerd Moellmann <gerd@gnu.org>
11585
11586 * config.in (HAVE_SPEED_T): New define.
11587
11588 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11589 `extern speed_t'.
11590
11591 2000-05-26 Dave Love <fx@gnu.org>
11592
11593 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11594
11595 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11596 (Fsubr_arity): New function.
11597 (syms_of_data): Install them.
11598
11599 2000-05-26 Kenichi Handa <handa@etl.go.jp>
11600
11601 * charset.c (init_charset_once): Set the table bytes_by_char_head
11602 correctly.
11603
11604 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11605 the default fontset to what Emacs uses by default.
11606 (check_registry_encoding): This function deleted.
11607 (Fset_fontset_font): Remove the adhoc condition for the default
11608 fontset. Allow cons in FONTNAME.
11609
11610 * fns.c (map_char_table): Ignore char-table entries for
11611 charsets eight-bit-control and eight-bit-graphic.
11612
11613 2000-05-25 Ken Raeburn <raeburn@gnu.org>
11614
11615 * emacs.c (main): Initialize keyboard syms before initializing
11616 window code, so face names are available.
11617
11618 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11619
11620 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11621 of an anchor at the beginning of a shy-group.
11622
11623 2000-05-25 Gerd Moellmann <gerd@gnu.org>
11624
11625 * xdisp.c (handle_invisible_prop): Don't try to skip over
11626 invisible text if end of text is already reached.
11627
11628 2000-05-25 Dave Love <fx@gnu.org>
11629
11630 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11631
11632 * coding.c (encode_eol): Add null statement after label.
11633
11634 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11635
11636 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11637 2000-05-20.
11638
11639 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11640
11641 * ccl.c (ccl_driver): Fix previous change.
11642
11643 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11644
11645 * coding.c (run_pre_post_conversion_on_str): Set point to the
11646 beginning of buffer before calling coding->post_read_conversion.
11647 (decode_coding_string): Give correct args to
11648 run_pre_post_conversion_on_str.
11649 (encode_coding_string): Likewise.
11650
11651 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11652 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11653 eight-bit-graphic correctly.
11654
11655 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
11656
11657 * fileio.c (Finsert_file_contents): Even if a file is not found,
11658 execute codes for setting up coding system. Call
11659 after-insert-file-functions unconditionally.
11660
11661 2000-05-24 Gerd Moellmann <gerd@gnu.org>
11662
11663 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11664 BSD_PGRPS are not defined.
11665
11666 2000-05-24 Kenichi Handa <handa@etl.go.jp>
11667
11668 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11669 DESCRIPTION.
11670 (syms_of_charset): Avoid building same strings.
11671
11672 2000-05-23 Gerd Moellmann <gerd@gnu.org>
11673
11674 * lread.c (Fload): Add a comment about the meaning of
11675 Vuser_init_file being t.
11676
11677 * puresize.h (BASE_PURESIZE): Increase to 675000.
11678
11679 * s/gnu-linux.h (setpgrp): Don't define it here because this
11680 prevents compilation on GNU/Linux systems with glib 2.2.
11681
11682 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11683 as setpgid.
11684
11685 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11686
11687 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11688 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11689 version.
11690 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11691
11692 2000-05-23 Kenichi Handa <handa@etl.go.jp>
11693
11694 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11695
11696 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11697
11698 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
11699
11700 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11701
11702 2000-05-22 Kenichi Handa <handa@etl.go.jp>
11703
11704 * keyboard.c (read_char): Allow character codes 128..255 to be
11705 handled by input-method-function.
11706
11707 * insdel.c (adjust_markers_for_replace): Fix previous change.
11708 (adjust_after_replace): If PREV_TEXT is nil, call
11709 adjust_markers_for_insert, not adjust_markers_for_replace.
11710
11711 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
11712
11713 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11714 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11715 [HAVE_GRANDPT]: Define.
11716 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11717
11718 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11719 like SYSV_PTYS.
11720
11721 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11722
11723 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11724
11725 2000-05-20 Kenichi Handa <handa@etl.go.jp>
11726
11727 The following changes are to handle 8-bit characters in a
11728 multibyte buffer/string without facing with byte combining
11729 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11730 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11731
11732 * Makefile.in (fns.o): Depend on charset.h.
11733
11734 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11735 convert it to unibyte.
11736 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11737
11738 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11739 apparent char boundary.
11740 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11741 0x80..0x9F to/from multibyte form.
11742
11743 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11744 to unibyte.
11745
11746 * callproc.c (Fcall_process): Always encode an argument string if
11747 it is multibyte. Setup src_multibyte and dst_multibyte members of
11748 process_coding properly.
11749
11750 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11751 SPLIT_NON_ASCII_CHAR.
11752
11753 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11754 as is.
11755 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11756
11757 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
11758 (SPLIT_CHARACTER_SEQ): This macro deleted.
11759 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
11760 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11761 and eight-bit-graphic.
11762 (char_to_string): Likewise. Signal an error for too large
11763 character code.
11764 (char_printable_p): Return 0 for 8-bit characters.
11765 (update_charset_table): Update iso_charset_table only when a final
11766 character is non-negative.
11767 (find_charset_in_text): Renamed from find_charset_in_str.
11768 Arguments and return value changed. Callers changed.
11769 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11770 be -1 if CHARSET is used only internally.
11771 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11772 eight-bit-graphic.
11773 (Fcharset_after): Simplified.
11774 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11775 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11776 (multibyte_chars_in_text): Simplified by assuming there's no
11777 invalid multibyte sequence.
11778 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11779 (str_as_unibyte): New functions.
11780 (Fstring): Simpified by assuming that byte combining never happens.
11781 (init_charset_once): Initialization for
11782 LEADING_CODE_8_BIT_CONTROL.
11783 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11784 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11785 eight-bit-control and eight-bit-graphic.
11786
11787 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11788 (CHARSET_8_BIT_GRAPHIC): New macros.
11789 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11790 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11791 (CHARSET_REVERSE_CHARSET): Likewise.
11792 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11793 eight-bit-graphic.
11794 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11795 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11796 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11797 encounter an invalid multibyte sequence.
11798 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11799 sequence is always valid.
11800 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
11801 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
11802 (CHAR_STRING): For 8-bit characters, call char_to_string.
11803 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11804 multibyte sequence is always valid.
11805 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
11806 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11807 (str_as_unibyte): Extern them.
11808 (BCOPY_SHORT): Fix a bug.
11809 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
11810 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11811 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11812 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11813
11814 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
11815 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
11816 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11817 (EMIT_BYTES): New macros.
11818 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11819 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
11820 macros deleted.
11821 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11822 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11823 check the validity of multibyte sequence.
11824 (decode_coding_emacs_mule): New function.
11825 (encode_coding_emacs_mule): New macro.
11826 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11827 the source.
11828 (DECODE_ISO_CHARACTER): Just return a character code.
11829 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11830 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11831 EMIT_CHAR to produced decoded characters. Exit the loop only by
11832 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11833 block here.
11834 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11835 only position codes for an invalid character.
11836 (encode_designation_at_bol): Return new destination pointer. 5th
11837 arg DSTP is changed to DST.
11838 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11839 from the source by ONE_MORE_CHAR. Don't handle the case of last
11840 block here.
11841 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11842 macros deleted.
11843 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11844 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
11845 TWO_MORE_BYTES to fetch a byte from the source.
11846 (encode_eol): Pay attention to coding->src_multibyte.
11847 (detect_coding, detect_eol): Preserve members src_multibyte and
11848 dst_multibyte.
11849 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11850 (encoding_buffer_size): Set magnification to 3 for all coding
11851 systems that require encoding.
11852 (ccl_coding_driver): For decoding, be sure that the result is
11853 valid multibyte sequence.
11854 (decode_coding): Initialize coding->errors and coding->result.
11855 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11856 and raw-text, always call decode_eol. Handle the case of last
11857 block here. If not coding->dst_multibyte, convert the resulting
11858 sequence to unibyte.
11859 (encode_coding): Initialize coding->errors and coding->result.
11860 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11861 and raw-text, always call encode_eol. Handle the case of last
11862 block here.
11863 (shrink_decoding_region, shrink_encoding_region): Detect cases
11864 that we can't skip data more rigidly.
11865 (code_convert_region): Setup src_multibyte and dst_multibyte
11866 members of coding. For decoding, if the buffer is multibyte,
11867 convert the source sequence to unibyte in advance. For encoding,
11868 if the buffer is multibyte, convert the resulting sequence to
11869 multibyte afterward.
11870 (run_pre_post_conversion_on_str): New function.
11871 (code_convert_string): Deleted and divided into the following two.
11872 (decode_coding_string, encode_coding_string): New functions.
11873 (code_convert_string1, code_convert_string_norecord): Call one of
11874 above.
11875 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11876 MAKE_NON_ASCII_CHAR.
11877 (Fset_terminal_coding_system_internal)
11878 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
11879 and dst_multibyte members.
11880 (init_coding_once): Initialize iso_code_class with new enum
11881 ISO_control_0 and ISO_control_1.
11882
11883 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11884 devided into ISO_control_0 and ISO_control_1.
11885 (struct coding_system): New members src_multibyte, dst_multibyte,
11886 errors, and result. Delete member fake_multibyte.
11887 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11888 nonzero.
11889 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11890 nonzero.
11891
11892 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11893 (Faset): Likewise.
11894
11895 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11896 multibyte form.
11897 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11898 combining occurs.
11899 (Ftranspose_region): Delete codes for handling byte combining.
11900
11901 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11902 dst_multibyte members of coding. On handling REPLACE on unibyte
11903 buffer, convert the result of decode_coding to unibyte. On
11904 inserting into a mutibyte buffer, always call code_convert_region.
11905 (e_write): Setup coding->src_multibyte according to the
11906 multibyteness of the source (buffer or string).
11907
11908 * fns.c (concat): Handle 8-bit characters correctly.
11909 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11910 unibyte in the result.
11911 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11912 valid multibyte form in the result.
11913 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11914 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11915 return -1, signal an error.
11916 (base64_encode_1): New arg MULTIBYTE. Get each character by
11917 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11918 character is found, return -1.
11919 (Fbase64_decode_region): Delete codes for handling byte-combining.
11920 Treat each decoded byte as a unibyte character.
11921 (Fbase64_decode_string): Return unibyte string.
11922 (Fcompare_strings, concat, string_byte_to_char): Use
11923 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11924 FETCH_STRING_CHAR_ADVANCE.
11925 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11926 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11927
11928 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11929 SPLIT_NON_ASCII_CHAR.
11930 (fontset_ref_via_base, fontset_set): Likewise
11931
11932 * insdel.c (adjust_markers_for_record_delete): Deleted.
11933 (adjust_markers_for_insert): Argument changed. Caller changed.
11934 (adjust_markers_for_replace): Likewise.
11935 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11936 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
11937 (copy_text): Delete unused local varialbe c_save. For converting
11938 to multibyte, be sure to make all 8-bit characters in valid
11939 multibyte form.
11940 (count_size_as_multibyte): Handle 8-bit characters correctly.
11941 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11942 (adjust_after_replace, replace_range, del_range_2)
11943 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
11944 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11945 (adjust_after_replace, replace_range, del_range_2) Delete codes for
11946 handling byte combining.
11947 (adjust_before_replace): Deleted.
11948
11949 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11950 SPLIT_NON_ASCII_CHAR.
11951 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11952 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11953 (Fkey_description): Likewise.
11954
11955 * lread.c (read1): On reading multibyte string, be sure to make
11956 all 8-bit chararacters in valid multibyte form.
11957 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11958
11959 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11960 unconditionally.
11961
11962 * process.c (Fstart_process): GCPRO current_dir before calling
11963 Ffind_operation_coding_system. Encode arguments here.
11964 (create_process): Don't encode arguments here. Setup
11965 src_multibyte and dst_multibyte members of struct coding.
11966 (read_process_output): Setup src_multibyte and dst_multibyte
11967 members of struct coding. If the output is to multibyte buffer,
11968 always decode the output of the process. Adjust the
11969 representation of 8-bit characters to the multibyteness of the output.
11970 (send_process): Setup coding->src_multibyte according to the
11971 multibyteness of the source.
11972
11973 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11974 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11975 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11976
11977 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
11978
11979 * w16select.c (Fw16_set_clipboard_data): Setup members
11980 src_multibyte and dst_multibyte of coding. Adjusted for the
11981 change for find_charset_in_str.
11982 (Fw16_get_clipboard_data): Likewise.
11983
11984 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11985 dst_multibyte of coding.
11986 (x_to_w32_font): Likewise.
11987
11988 * w32select.c (Fw32_set_clipboard_data): Setup members
11989 src_multibyte and dst_multibyte of coding. Adjusted for the
11990 change for find_charset_in_str.
11991 (Fw32_get_clipboard_data): Likewise.
11992
11993 * xdisp.c (get_next_display_element): Handle 8-bit characters
11994 correctly.
11995 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11996 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11997
11998 * xselect.c (selection_data_to_lisp_data): Setup members
11999 src_multibyte and dst_multibyte of coding. Adjusted for the
12000 change for find_charset_in_str.
12001 (lisp_data_to_selection_data): Likewise.
12002
12003 2000-05-19 Gerd Moellmann <gerd@gnu.org>
12004
12005 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
12006
12007 * dispextern.h (Vimage_types): Add extern declaration.
12008
12009 * xdisp.c (Vimage_types): Moved here from xfns.c.
12010 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
12011
12012 * xfns.c (Vimages_types): Moved to xdisp.c.
12013 (syms_of_xfns): Move `image-types' to xdisp.c.
12014
12015 * w32fns.c (Vimage_types): Removed.
12016 (syms_of_w32fns): Remove `image-types'.
12017
12018 2000-05-18 Kenichi Handa <handa@etl.go.jp>
12019
12020 * fns.c (map_char_table): Pay attention to character number of
12021 charset. Check the validity of charset at the first level. For
12022 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
12023 the default value.
12024
12025 * fontset.c: Include "buffer.h".
12026 (fs_load_font): If the face has fontset, record the face ID in
12027 that fontset.
12028 (Finternal_char_font): New function.
12029 (accumulate_font_info): New function.
12030 (Ffontset_info): Rewritten for the new fontset implementation.
12031 (syms_of_fontset): Register Vdefault_fontset in the first element
12032 of Vfontset_table. Include Vdefault_fontset in
12033 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12034 function.
12035
12036 2000-05-16 Dave Love <fx@gnu.org>
12037
12038 * m/iris5d.h: Deleted -- unused.
12039
12040 2000-05-16 Gerd Moellmann <gerd@gnu.org>
12041
12042 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12043 `invalid' instead of `illegal'.
12044
12045 * indent.c (Fmove_to_column): When ending within a tab, insert
12046 spaces first so that markers at the end of the tab get adjusted.
12047
12048 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12049 buffer list that wasn't selected in that frame.
12050
12051 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12052 is needed on mescaline, use a 2 char prefix, and call
12053 make_temp_name with second arg non-zero.
12054
12055 * fileio.c (make_temp_name): New function, extracted from
12056 Fmake_temp_name.
12057 (Fmake_temp_name): Use it.
12058
12059 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12060
12061 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
12062
12063 2000-05-15 Gerd Moellmann <gerd@gnu.org>
12064
12065 * Makefile.in (lisp): Add env.elc.
12066
12067 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12068
12069 2000-05-12 Gerd Moellmann <gerd@gnu.org>
12070
12071 * search.c (Freplace_match): Handle case of `\N' in the
12072 replacement when there's no group N.
12073
12074 2000-05-11 Gerd Moellmann <gerd@gnu.org>
12075
12076 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12077 of the message to message_dolog.
12078
12079 * keyboard.c (read_char): Don't clear current message for help
12080 events; let the code handling help events handle this. Change
12081 code detecting help events that should be ignored.
12082
12083 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12084 we're interating over a string.
12085
12086 2000-05-09 Dave Love <fx@gnu.org>
12087
12088 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12089 that offset before writing. Move gcpro region past call of
12090 Ffile_regular_p.
12091
12092 2000-05-04 Dave Love <fx@gnu.org>
12093
12094 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12095
12096 2000-05-04 Gerd Moellmann <gerd@gnu.org>
12097
12098 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12099 of inserted characters when BUF equals the current buffer, and PT
12100 is in front of or equal to FROM.
12101
12102 2000-05-03 Gerd Moellmann <gerd@gnu.org>
12103
12104 * xdisp.c (handle_single_display_prop): If display property value
12105 is invalid, or something not supported on the frame, restore
12106 iterator's position to what it was initially. Make sure to return
12107 0 for invalid and unsupported property values.
12108
12109 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12110 that x_per_char_metric returns null.
12111
12112 2000-05-02 Gerd Moellmann <gerd@gnu.org>
12113
12114 * xterm.h (struct face): Add forward declaration.
12115 (struct image): Ditto.
12116 (image_ascent): Add prototype.
12117
12118 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12119 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12120 image_ascent instead of using IMAGE_ASCENT.
12121
12122 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12123 (IMAGE_ASCENT): Removed.
12124
12125 * xfns.c (Qcenter): New variable.
12126 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12127 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12128 (image_ascent): New function.
12129 (lookup_image): Recognize `:ascent center'.
12130 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12131 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12132 (xbm_load): Don't set image's ascent here.
12133 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12134 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12135 check ascent values here.
12136 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12137 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12138 (syms_of_xfns): Initialize Qcenter.
12139
12140 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12141 to the limits, increase the limits.
12142
12143 2000-05-01 Kenichi Handa <handa@etl.go.jp>
12144
12145 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
12146 Check Vfont_encoding_alist against the full name of the opened font.
12147
12148 2000-04-28 Gerd Moellmann <gerd@gnu.org>
12149
12150 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12151 taller than the window.
12152
12153 2000-04-28 Kenichi Handa <handa@etl.go.jp>
12154
12155 * xfaces.c (realize_x_face): Fix the argument of the second
12156 xassert. BASE_FACE may not be a face for ASCII.
12157
12158 2000-04-27 Gerd Moellmann <gerd@gnu.org>
12159
12160 * print.c (print_object): Treat print-length < 0 as nil.
12161
12162 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12163
12164 * s/freebsd.h (TERMCAP_OBJ): Removed.
12165 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12166
12167 * lread.c (read1): Don't treat period followed by certain
12168 characters as symbol start.
12169
12170 * xfns.c (slurp_file): New function.
12171 (xbm_image_p): Handle case of in-memory XBM files.
12172 (xbm_scan): Rewritten to work on memory buffers instead of files.
12173 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12174 Work on memory buffers instead of files. If DATA is null test
12175 if buffer looks like an in-memory XBM file.
12176 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12177 memory buffers instead of files.
12178 (xbm_file_p): New function.
12179 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12180
12181 * lread.c (end_of_file_error): New function.
12182 (read1): Call it instead of signaling `end-of-file' directly.
12183
12184 * print.c (print_error_message): Print data of `end-of-file'
12185 with Fprinc instead of Fprin1.
12186
12187 2000-04-26 Ken Raeburn <raeburn@gnu.org>
12188
12189 * window.c (freeze_window_start): Check that minibuffer scroll
12190 window isn't nil before extracting the window structure pointer
12191 from it.
12192
12193 * undo.c (record_delete): If we hit the end of the undo list, stop
12194 picking elements apart.
12195
12196 2000-04-26 Gerd Moellmann <gerd@gnu.org>
12197
12198 * xdisp.c (display_line): If lines are continued, restore
12199 iterator's ascent/descent information to the values before the
12200 first glyph not fitting on the line.
12201
12202 2000-04-25 Gerd Moellmann <gerd@gnu.org>
12203
12204 * xdisp.c (try_window_id) <all changes above window start>: Adjust
12205 positions in glyph matrix. Don't compute new window end positions.
12206
12207 * dispnew.c (increment_matrix_positions): Renamed from
12208 increment_glyph_matrix_buffer_positions.
12209 (increment_row_positions): Renamed from
12210 increment_glyph_row_buffer_positions.
12211
12212 * dispextern.h: Change names of renamed functions from dispnew.c
12213 in prototypes.
12214
12215 2000-04-24 Gerd Moellmann <gerd@gnu.org>
12216
12217 * fileio.c (Fdo_auto_save): Create directories for auto-save
12218 list file if necessary.
12219
12220 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12221 from buffer or frame.
12222 (automatic_hscrolling_p): New variable.
12223 (hscroll_windows): Scroll windows horizontally only if automatic
12224 hscrolling is allowed.
12225 (syms_of_xdisp): New variable `automatic-hscrolling'.
12226
12227 * frame.h (struct frame): Add member extra_line_spacing.
12228
12229 * xfns.c (x_set_line_spacing): New function.
12230 (Fx_create_frame): Set line spacing from resources.
12231 (Qline_spacing): New variable.
12232 (syms_of_xfns): Initialize Qline_spacing.
12233
12234 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12235
12236 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12237 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
12238 (reset_buffer): Don't initialize extra2 and extra3. Initialize
12239 extra_line_spacing from default value.
12240 (init_buffer_once): Initialize default value of extra_line_spacing.
12241
12242 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12243 and extra3.
12244
12245 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12246 prompt_width. Add extra line spacing.
12247
12248 * term.c (produce_glyphs): Remove reference to struct it's
12249 prompt_width.
12250
12251 * dispextern.h (struct it): Remove member prompt_width, add
12252 extra_line_spacing.
12253
12254 2000-04-22 Gerd Moellmann <gerd@gnu.org>
12255
12256 * dispnew.c (update_frame_line): When writing a whole line, make
12257 sure cursor is in the right row afterwards, otherwise a use of
12258 capability `ch' in cmgoto might leave the cursor in the row below.
12259
12260 2000-04-21 Gerd Moellmann <gerd@gnu.org>
12261
12262 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12263
12264 * keyboard.c (timer_check): Fix typo in comment.
12265
12266 2000-04-21 Kenichi Handa <handa@etl.go.jp>
12267
12268 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12269 name change: ch -> character.
12270
12271 2000-04-20 Gerd Moellmann <gerd@gnu.org>
12272
12273 * keyboard.c (echo_message_buffer): New variable.
12274 (echo_now): Set echo_message_buffer to the echo area buffer used
12275 to display the echo.
12276 (cancel_echoing): Reset echo_message_buffer to nil.
12277 (read_char): Code rewritten that handles canceling an echo or
12278 echoing a dash, respectively.
12279
12280 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12281 directory doesn't exist.
12282
12283 2000-04-19 Dave Love <fx@gnu.org>
12284
12285 * fns.c (syms_of_fns): Defsubr mapc.
12286 (concat): Don't allow numeric args.
12287 (Fconcat): Doc change.
12288
12289 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12290
12291 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12292 instead define end_match(1|2) more carefully.
12293 Use GET_CHAR_BEFORE_2 for `begline'.
12294
12295 2000-04-19 Gerd Moellmann <gerd@gnu.org>
12296
12297 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12298 on 64-bit systems where NULL is defined as `0'.
12299
12300 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12301 the `variable argument list' to make it work on Alpha.
12302
12303 * m/alpha.h (_LP64) [!_LP64]: Define.
12304 (ORDINARY_LINK): Define for NetBSD.
12305
12306 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
12307
12308 2000-04-19 Dave Love <fx@gnu.org>
12309
12310 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12311 change.
12312
12313 * Makefile.in (LIBS): Don't use.
12314 (GETLOADAVG_OBJ): Define again.
12315 (otherobj): Add GETLOADAVG_OBJ.
12316
12317 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12318
12319 2000-04-18 Gerd Moellmann <gerd@gnu.org>
12320
12321 * lread.c (read_filtered_event): Cancel and start busy cursor.
12322
12323 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
12324 that the per-character metrics may be null.
12325
12326 2000-04-17 Gerd Moellmann <gerd@gnu.org>
12327
12328 * buffer.c (clone_per_buffer_values): New function.
12329 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12330 clone_per_buffer_values if CLONE is not nil.
12331
12332 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12333
12334 2000-04-16 Dave Love <fx@gnu.org>
12335
12336 * Makefile.in: Remove obsolete localcpp stuff.
12337 (GETLOADAVG_OBJ): Don't define.
12338 (obj): Move LIBOBJS...
12339 (otherobj): ... to here.
12340 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12341 whitespace-only lines after the continuation (Irix).
12342
12343 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12344
12345 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12346
12347 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12348
12349 2000-04-14 Dave Love <fx@gnu.org>
12350
12351 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12352 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12353 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12354 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12355 NLIST_STRUCT.
12356
12357 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12358 autoconfiscated HAVE_GETLOADAVG.
12359
12360 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12361 BROKEN_MKTIME.
12362
12363 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12364
12365 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
12366 (fill_in_lock_file_name): Avoid existing files that aren't links.
12367
12368 2000-04-14 Dave Love <fx@gnu.org>
12369
12370 * Makefile.in (LIBS, LIBOBJS): New variable.
12371 (INTERVAL_SRC): Convert to make variable.
12372 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12373 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12374 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12375 add LIBOBJS.
12376 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12377 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12378 (shortlisp): Add facemenu, float-sup, frame.
12379 (SOME_MACHINE_LISP): Remove them from here.
12380 (LIBES): Change unused LDLIBS to autoconf LIBS.
12381
12382 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12383
12384 2000-04-14 Kenichi Handa <handa@etl.go.jp>
12385
12386 * composite.c (update_compositions): If FROM and TO are not in a
12387 valid range, do nothing.
12388
12389 2000-04-13 Gerd Moellmann <gerd@gnu.org>
12390
12391 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
12392
12393 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
12394
12395 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12396 as TERMCAP_OBJ.
12397
12398 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12399
12400 * fileio.c (a_write): Remove redundant semi-colons.
12401 (e_write): Return -1 if failed to write all the data.
12402 This fixes the changes made at 1999-12-15.
12403
12404 2000-04-12 Dave Love <fx@gnu.org>
12405
12406 * fns.c (mapcar1): Test for null vals to support mapc.
12407 (Fmapc): New function.
12408
12409 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12410
12411 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12412 (IT_frame_up_to_date): Support the buffer local value of
12413 cursor-type, if defined.
12414
12415 2000-04-10 Dave Love <fx@gnu.org>
12416
12417 * editfns.c (preceding-char, following-char): Doc fix.
12418
12419 2000-04-10 Ken Raeburn <raeburn@gnu.org>
12420
12421 * Makefile.in (temacs): Revert 2000-03-12 change.
12422
12423 2000-04-10 Jason Rumney <jasonr@gnu.org>
12424
12425 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12426
12427 2000-04-10 Gerd Moellmann <gerd@gnu.org>
12428
12429 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12430 area buffer, if it's not set up yet.
12431
12432 * indent.c (compute_motion): Set immediate_quit.
12433
12434 2000-04-09 Gerd Moellmann <gerd@gnu.org>
12435
12436 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
12437 (realize_tty_face): Suppress boldness if colors are the inverse of
12438 the default colors, and tty_suppress_bold_inverse_default_colors_p
12439 is set.
12440 (Ftty_suppress_bold_inverse_default_colors): New function.
12441 (syms_of_xfaces): Defsubr it.
12442
12443 * buffer.c (Frestore_buffer_modified_p): New function.
12444 (syms_of_buffer): Defsubr it.
12445
12446 2000-04-08 Ken Raeburn <raeburn@gnu.org>
12447
12448 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12449 charset id (int) argument, not a charset (Lisp_Object).
12450
12451 * coding.h (code_convert_string): Declare.
12452 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12453 object, as the fourth argument to code_convert_string.
12454
12455 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
12456 (Fset_fontset_font): Use EQ to compare lisp objects.
12457
12458 2000-04-05 Ken Raeburn <raeburn@gnu.org>
12459
12460 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12461 a pointer that looks like a lisp object.
12462 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12463 zero, instead see whether it's an integer object, since they can't
12464 have intervals.
12465 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12466
12467 * dispnew.c (allocate_matrices_for_frame_redisplay)
12468 (direct_output_forward_char): Use X(U)INT and make_number as needed
12469 to convert between (unsigned) int values and lisp integers.
12470 * keyboard.c (read_key_sequence): Likewise.
12471 * lread.c (substitute_object_recurse): Likewise.
12472 * fns.c (concat, hash_lookup, hash_remove): Likewise.
12473 * minibuf.c (do_completion, Fminibuffer_complete_word)
12474 (Fminibuffer_completion_help): Likewise.
12475 * term.c (produce_special_glyphs): Likewise.
12476
12477 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12478 * print.c (print_preprocess, print_object): Likewise.
12479
12480 * search.c (compile_pattern): Use NILP when checking for nil.
12481
12482 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12483 __OPTIMIZE__]: Provide a GNU C macro version that handles
12484 lisp-object unions.
12485 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12486 field, to better cope with ENABLE_CHECKING and calls that modify a
12487 Lisp_Object using its old value.
12488
12489 2000-04-04 Gerd Moellmann <gerd@gnu.org>
12490
12491 * window.c (compare_window_configurations): Signal an error
12492 if parameters C1 or C2 aren't window configurations.
12493
12494 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12495 AFTER_POTENTIAL_GC calls around calls to functions that can
12496 signal an error and thus invoke the debugger.
12497
12498 2000-04-03 Gerd Moellmann <gerd@gnu.org>
12499
12500 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12501 an error if decoding fails.
12502
12503 * keyboard.c (lispy_mouse_names): Variable removed.
12504 (Vlispy_mouse_stem): New variable.
12505 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12506 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12507 for any mouse button number. Increase size of mouse_syms and
12508 button_down_location as needed. Call modify_event_symbol with
12509 different arguments.
12510 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12511 Call modify_event_symbol with different arguments.
12512 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12513 for any button number. Call modify_event_symbol with different
12514 arguments.
12515 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12516 Accept a string for NAME_ALIST_OR_STEM.
12517
12518 * lisp.h (larger_vector): Add prototype.
12519
12520 * fns.c (larger_vector): Make externally visible.
12521
12522 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12523
12524 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12525
12526 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12527 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12528 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12529 we are between str1 and str2.
12530 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12531 (PATFETCH): Use `TRANSLATE'.
12532 (PATFETCH_RAW): Fetch multibyte char if applicable.
12533 (PATUNFETCH): Remove.
12534 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12535 When writing a char, write it directly into the pattern buffer rather
12536 than going needlessly through a temp char-array.
12537 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12538 multibyte magic and remove the useless `#ifdef emacs'.
12539 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12540 buffer.
12541
12542 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12543 conditional on `emacs'.
12544
12545 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12546
12547 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12548
12549 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12550 non-union-type versions of XMARK and friends here, because XMARK
12551 and friends won't work on an integer field if NO_UNION_TYPE is not
12552 defined.
12553 (make_number): Define as a function if it's not defined as a macro.
12554
12555 * composite.c (run_composite_function): Use NILP when checking for nil.
12556 (syms_of_composite): Delete local var NARGS, pass an int as first
12557 argument to Fmake_hash_table.
12558
12559 * editfns.c (text_property_stickiness): Use NILP to test
12560 Lisp_Object boolean value.
12561 (Fmessage_or_box): Don't use NILP to test int variable.
12562 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12563 problems reading from and changing the same lisp value in an
12564 XSETSTRING call.
12565
12566 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12567
12568 * term.c (TN_no_color_video): New variable.
12569 (term_init): Intitialize TN_no_color_video.
12570 (enum no_color_bit): New enumeration.
12571 (MAY_USE_WITH_COLORS_P): New macro.
12572 (turn_on_face): Use it to determine if attributes may be used
12573 combined with colors.
12574
12575 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12576
12577 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
12578 with int lvalues via casts; instead, just yield lisp object lvalues.
12579 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12580 proper accessor macros.
12581 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12582 (grow_mini_window): Fix typo getting int value of root->height.
12583
12584 * xdisp.c (compute_string_pos): Fix order of arguments to
12585 string_pos_nchars_ahead.
12586 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12587 count arg to variable-arg routines like Frun_hook_with_args and
12588 Fformat.
12589 (back_to_previous_visible_line_start)
12590 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
12591 fixed-arg routines like Fget_char_property and Fmake_string.
12592 (reconsider_clip_changes): Use XINT when comparing integer lisp
12593 objects, or passing them as int arguments.
12594 (mark_window_display_accurate, insert_left_trunc_glyphs)
12595 (append_space, extend_face_to_end_of_line): Use make_number when
12596 storing or passing integer values as lisp objects.
12597 (set_cursor_from_row, highlight_trailing_whitespace): Use
12598 INTEGERP, not implicit test against zero, for glyph object.
12599 (try_window_id): Don't use make_number when we want an int value.
12600
12601 * xfaces.c (xlfd_symbolic_value): Make last argument a
12602 Lisp_Object, to be consistent with callers.
12603 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12604 (lface_hash): Apply XFASTINT to lisp values before folding in.
12605
12606 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12607 fill in window width and height. Pass an int, not a lisp object,
12608 as first arg to Finsert.
12609
12610 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12611
12612 * xfaces.c (realize_basic_faces): Block input while realizing
12613 the faces.
12614
12615 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12616
12617 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12618
12619 2000-03-31 Gerd Moellmann <gerd@gnu.org>
12620
12621 * xterm.c (x_produce_glyphs): When displaying unibyte text
12622 or ASCII, handle case that per-char metric is null.
12623
12624 2000-03-30 Ken Raeburn <raeburn@gnu.org>
12625
12626 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12627
12628 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12629 (XSUBR, XBUFFER): Verify correct object type before returning
12630 pointer, using eassert.
12631 * frame.h (XFRAME): Likewise.
12632
12633 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12634 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12635 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
12636 * data.c (set_internal): Likewise.
12637 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12638 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12639 * fileio.c (auto_save_1): Likewise.
12640 * insdel.c (check_markers): Likewise.
12641 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12642 * undo.c (record_insert): Likewise.
12643 * vmsproc.c (child_sig): Likewise.
12644 * window.c (unshow_buffer, window_loop): Likewise.
12645 * xterm.c (x_erase_phys_cursor): Likewise.
12646
12647 2000-03-30 Gerd Moellmann <gerd@gnu.org>
12648
12649 * xfns.c (free_image_cache): Free the cache structure itself
12650 last, after all its members have been freed.
12651
12652 * lisp.h (xstrdup): Add prototype.
12653
12654 * alloc.c (xstrdup): Moved here from xfaces.c.
12655 (allocating_for_lisp): Variable removed.
12656 (lisp_malloc): Block input around the calls to malloc and mem_insert.
12657
12658 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12659 of Fsymbol_value.
12660 (xstrdup): Moved to alloc.c.
12661
12662 2000-03-29 Ken Raeburn <raeburn@gnu.org>
12663
12664 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12665
12666 * emacs.c (main): Fix sense of no-loadup test.
12667
12668 * config.in (ENABLE_CHECKING): Undef.
12669
12670 * lisp.h (struct interval): Replace "parent" field with a union of
12671 interval pointer and Lisp_Object; add new bitfield to use as
12672 discriminant. Change other flag fields to bitfields.
12673 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
12674 is defined and the supplied test fails, print a message and abort.
12675 (eassert): New macro. Use CHECK to provide an assert-like facility.
12676
12677 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12678 pointers; abort if the value looks like a lisp object.
12679 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12680 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
12681 Modify for new interval parent definition.
12682
12683 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12684 (UNMARK_BALANCE_INTERVALS): Update references that need an
12685 addressable lisp object in the interval structure.
12686 (die): New function.
12687 (suppress_checking): New variable.
12688
12689 * intervals.c (interval_start_pos): Just return 0 if there's no
12690 parent object.
12691
12692 2000-03-29 Gerd Moellmann <gerd@gnu.org>
12693
12694 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12695 and earlier Emacs versions.
12696
12697 * keyboard.c (Ftop_level): Cancel busy-cursor.
12698
12699 * eval.c (call_debugger): Cancel busy-cursor.
12700
12701 2000-03-29 Kenichi Handa <handa@etl.go.jp>
12702
12703 * search.c (Freplace_match): Adjust multibyteness of the current
12704 buffer and NEWTEXT. Free allocated memory before signaling an error.
12705
12706 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12707
12708 * regex.c (analyse_first): New function obtained by ripping out most
12709 of re_compile_fastmap and generalizing it a little bit so that it
12710 can also just return whether a given (sub)pattern can match the empty
12711 string or not.
12712 (regex_compile): Use `analyse_first' to decide whether the loop-check
12713 needs to be done or not for *, +, *? and +? (the loop check is costly
12714 for non-greedy repetition).
12715 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12716
12717 2000-03-28 Dave Love <fx@gnu.org>
12718
12719 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
12720
12721 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12722
12723 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12724
12725 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12726 an expression.
12727 (enum re_opcode_t): Update description of succeed_n.
12728 (PATFETCH): Always define.
12729 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12730 operators, char classes, shy-groups and intervals).
12731 Optimize special cases of intervals so as to only use succeed_n and
12732 jump_n when really needed.
12733 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12734 that we don't have to handle the special cases any more.
12735 Simplify on_failure_jump handling as well.
12736
12737 2000-03-28 Jason Rumney <jasonr@gnu.org>
12738
12739 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12740
12741 2000-03-27 Gerd Moellmann <gerd@gnu.org>
12742
12743 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12744
12745 * s/msdos.h (GC_SETJMP_WORKS): Define.
12746
12747 * alloc.c (mark_maybe_object): New function.
12748 (mark_memory): Use it.
12749 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12750 (setjmp_tested_p, longjmp_done): New variables.
12751 (test_setjmp): New function.
12752 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12753 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12754
12755 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12756 to DEC_TEXT_POS and INC_TEXT_POS.
12757
12758 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12759 with parameter MULTIBYTE_P.
12760
12761 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
12762
12763 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
12764 buffers because it looks for multibyte character byte sequences
12765 which don't exist in unibyte text.
12766
12767 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12768
12769 * xfaces.c (register_color, unregister_color, unregister_colors)
12770 [DEBUG_X_COLORS]: New functions.
12771 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12772
12773 * xfns.c (x_set_cursor_color): Get color reference counts right.
12774
12775 * xterm.c (x_copy_color): New function.
12776 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12777
12778 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12779 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12780 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12781 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12782 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12783 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12784 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12785 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12786 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12787 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12788
12789 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12790 names for handling per-buffer variables.
12791
12792 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12793 instead of MAX_BUFFER_LOCAL_VARS.
12794 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12795
12796 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12797
12798 * xfns.c (x_specified_cursor_type): New function.
12799 (x_set_cursor_type): Use it.
12800
12801 * buffer.h (struct buffer): Add cursor_type.
12802
12803 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12804
12805 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
12806 (print_partial_compiled_pattern, re_compile_fastmap):
12807 Handle new opcode.
12808 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12809 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12810 executing it as well as when popping it off the stack to find infinite
12811 loops in non-greedy repetition operators.
12812
12813 2000-03-26 Gerd Moellmann <gerd@gnu.org>
12814
12815 * doc.c (Qfunction_documentation): New variable.
12816 (syms_of_doc): Initialize Qfunction_documentation.
12817 (Fdocumentation): If FUNCTION is a symbol with non-nil
12818 `function-documentation' property, return a documentation derived
12819 from that.
12820
12821 * buffer.c (syms_of_buffer): Add default-cursor-type.
12822 (init_buffer_once): Don't let cursor_type have a local value
12823 in every buffer.
12824
12825 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12826 on buffer-local value of cursor_type.
12827 (x_draw_bar_cursor): Add parameter WIDTH.
12828
12829 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12830 (init_buffer_once): Set default cursor_type value to t.
12831 Mark cursor_type as local everywhere.
12832 (syms_of_buffer): New per-buffer variable cursor-type.
12833
12834 * buffer.h (struct buffer): Remove member local_var_flags,
12835 add local_flags.
12836 (MAX_BUFFER_LOCAL_VARS): New macro.
12837 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12838 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12839 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12840 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12841
12842 * print.c (print_object): Use new macros for per-buffer variables.
12843
12844 * category.c (Fset_category_table): Use new macros for per-buffer
12845 variables.
12846
12847 * buffer.c (buffer_permanent_local_flags): Make a char array.
12848 (max_buffer_local_idx): New variable.
12849 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12850 for new handling of per-buffer variables.
12851 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12852 (init_buffer_once): Initialize per-buffer vars differently.
12853 Set max_buffer_local_idx.
12854
12855 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12856 variables.
12857
12858 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
12859
12860 * data.c (do_symval_forwarding, store_symval_forwarding)
12861 (find_symbol_value, set_internal, default_value, Fset_default)
12862 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12863 per-buffer variables.
12864
12865 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12866
12867 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12868
12869 * xterm.c (x_term_init): Unblock input around call1 of
12870 Qvendor_specific_keysyms.
12871
12872 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12873 (find_defun_start): Consider an open parenthesis in column 0
12874 a defun start only if open_paren_in_column_0_is_defun_start is set.
12875 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12876
12877 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12878
12879 * eval.c (Fautoload): Add entry in load-history (if after dump).
12880 * lread.c (load-history): Update docstring.
12881
12882 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12883
12884 * indent.c (Fvertical_motion): Always use the current buffer.
12885 Temporarily change the window's buffer, if necessary.
12886
12887 2000-03-23 Gerd Moellmann <gerd@gnu.org>
12888
12889 * xterm.c (fast_find_position): Make sure not to consider rows
12890 not visible in the window.
12891
12892 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12893
12894 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12895 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12896
12897 2000-03-22 Jason Rumney <jasonr@gnu.org>
12898
12899 * w32menu.c (single_submenu): Set help string to NULL if none.
12900 (w32_menu_show): Set help string correctly.
12901 (add-menu-item): Set help string in MIIM_DATA for menu item.
12902 Load SetMenuItemInfoA explicitly.
12903 (w32_menu_display_help): New function.
12904
12905 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12906 (QCdata): Moved to xdisp.c.
12907
12908 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12909 (Vw32_charset_to_codepage_alist): Removed.
12910 (Vw32_charset_info_alist): New variable.
12911 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12912 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12913 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
12914 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12915 with TODO comment.
12916 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12917 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12918 Define Vw32_charset_info_alist and w32_charset symbols.
12919
12920 2000-03-22 Jason Rumney <jasonr@gnu.org>
12921
12922 * makefile.nt (w32bdf.obj): Update dependencies.
12923
12924 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12925
12926 * w32fns.c: Include fontset.h after dispextern.h.
12927 (Fx_create_frame): Do not create fontset.
12928 (w32_load_system_font): Doc fix.
12929 (Fx_close_connection): Free full_name if it is not shared.
12930
12931 * w32term.c: Include fontset.h after dispextern.h.
12932 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12933 Callers updated.
12934 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12935 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12936 (w32_font_is_double_byte): New function, needs body.
12937 (x_append_glyph): Set glyph->glyph_not_available_p.
12938 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12939 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12940 character, convert it to a unibyte character.
12941 (struct glyph_string): Delete member `charset'.
12942 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12943 calculating it is found.
12944 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12945 the case that per char metric is not available correctly.
12946 (x_fill_glyph_string): Handle the case that the specific glyph is
12947 not available correctly.
12948 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12949 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12950 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12951 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12952 fontset. Don't call FS_LOAD_FONT.
12953
12954 2000-03-22 Ken Raeburn <raeburn@gnu.org>
12955
12956 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12957 (INT_LISPLIKE): New macro.
12958 (NULL_INTERVAL_P): Use it.
12959 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12960 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12961 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
12962
12963 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12964 explicit references to "parent" field of struct interval and
12965 associated unclean type conversions.
12966 * intervals.c (create_root_interval, root_interval, rotate_right)
12967 (rotate_left, balance_possible_root_interval, split_interval_right)
12968 (split_interval_left, interval_start_pos, find_interval)
12969 (next_interval, previous_interval, update_interval)
12970 (adjust_intervals_for_insertion, delete_node, delete_interval)
12971 (adjust_intervals_for_deletion, merge_interval_right)
12972 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12973 (copy_intervals_to_string): Likewise.
12974 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12975 Likewise.
12976 * syntax.c (update_syntax_table): Likewise.
12977
12978 * intervals.c (reproduce_tree_obj): New function, like
12979 reproduce_tree but takes a Lisp_Object for the parent. Declare
12980 with prototype.
12981 (graft_intervals_into_buffer): Use it when appropriate.
12982 (reproduce_tree): Declare with prototype.
12983 (balance_possible_root_interval): Check that the parent is a lisp
12984 object before trying to examine its type.
12985
12986 2000-03-22 Gerd Moellmann <gerd@gnu.org>
12987
12988 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12989 as strings only if both are known to be strings.
12990
12991 * s/openbsd.h (LIBS_TERMCAP): Undef.
12992
12993 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12994
12995 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12996 definitions for non-Emacs compilation.
12997 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12998 outside of `#ifdef emacs'.
12999 (print_partial_compiled_pattern): Update.
13000 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
13001 (re_compile_fastmap): Merge handling of charset and charset_not (for
13002 emacs and non-emacs compilation as well).
13003 Similarly for (not)categoryspec and (not)syntaxspec.
13004 Don't use the fastmap when reaching `anychar' since the added
13005 complexity is not justified.
13006 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
13007 and (not)syntaxspec. Merge (not)categoryspec.
13008
13009 2000-03-22 Kenichi Handa <handa@etl.go.jp>
13010
13011 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
13012 (FACE_FOR_CHAR): Define them differently for the configuration of
13013 --without-x.
13014
13015 2000-03-21 Dave Love <fx@gnu.org>
13016
13017 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
13018 doc string.
13019
13020 2000-03-21 Gerd Moellmann <gerd@gnu.org>
13021
13022 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
13023 (lface_fully_specified_p): Don't check contents of
13024 LFACE_FONT_INDEX because that attribute is optional.
13025 (realize_x_face): Remove now unwarranted xassert.
13026
13027 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
13028
13029 The following changes are to make font selection based on
13030 characters, not charset. In addition, they recover fontset
13031 facilities while utilizing the new font selection mechanism.
13032
13033 * Makefile.in (fontset.o): Depend on dispextern.h.
13034
13035 * alloc.c (mark_face_cache): Don't mark face->registry.
13036
13037 * dispextern.h (struct glyph): New member glyph_not_available_p.
13038 Use 22 bits for face_id.
13039 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13040 (struct face): Delete member registry, new member ascii_face.
13041 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13042 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13043 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
13044 (struct it): Delete member charset, new member glyph_not_available_p.
13045
13046 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13047 (struct fontset_info, struct fontset_data): Structs removed.
13048 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13049 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
13050 (fs_load_font, fs_query_fontset): Adjusted for new argument.
13051 (fs_free_face_fontset, fontset_font_pattern)
13052 (face_suitable_for_char_p, face_for_char)
13053 (make_fontset_for_ascii_face): Extern them.
13054 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13055 (FS_LOAD_FACE_FONT): New macro.
13056
13057 * fontset.c: All codes rewritten or adjusted for the change of
13058 fontset implementation. Now fontset is represented by char table.
13059 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13060 Variables removed.
13061 (my_strcasecmp): Function removed.
13062 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
13063 (AREF, ASIZE): New macros.
13064 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13065 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13066 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13067 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13068 (fontset_id_valid_p, font_family_registry, fontset_name)
13069 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13070 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
13071 New functions.
13072 (fs_load_font): New arg FACE. Caller changed.
13073 (fs_query_fontset): Argument changed. Caller changed.
13074 (Fquery_fontset): call fs_query_fontset.
13075 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13076 Functions removed.
13077 (clear_fontset_elements, check_registry_encoding)
13078 (check_fontset_name): New functions.
13079 (syms_of_fontset): Set char-table-extra-slots property of fontset
13080 to 3. Staticpro and initialize Vfontset_table and
13081 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13082
13083 * frame.h (struct frame): Member `fontset_data' removed.
13084 (FRAME_FONTSET_DATA): Macro removed.
13085
13086 * frame.c (make_frame): Don't allocate f->fontset_data.
13087 (Fdelete_frame): Don't free f->fontset_data.
13088
13089 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13090
13091 * xdisp.c (charset_at_position): Function removed.
13092 (init_iterator): Don't set member charset of struct `it'.
13093 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13094 (next_element_from_display_vector, insert_left_trunc_glyphs):
13095 Likewise.
13096 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13097 FACE_FOR_CHARSET.
13098 (get_next_display_element, append_space)
13099 (extend_face_to_end_of_line): Likewise.
13100
13101 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13102 Variables removed.
13103 (clear_font_table, frame_update_line_height, load_face_font):
13104 Adjusted for the change of fontset implementation.
13105 (load_face_fontset_font): Function removed.
13106 (pixel_point_size): New function.
13107 (font_list): Argument type changed. Caller changed.
13108 (LFACE_FONT): New macro.
13109 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13110 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13111 Lisp_Object. Determine the font name by actually loading a font
13112 by the specified pattern. Set LFACE_FONT (lface) to the specified
13113 pattern. Even if a font is not found, don't try alternatives.
13114 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13115 (set_font_frame_param): If `font' is specified in lface, use it.
13116 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13117 (lface_same_font_attributes_p): Likewise.
13118 (make_realized_face): Arguent changed. Caller changed. Set
13119 face->ascii_face to face itself.
13120 (free_realized_face): Free face->fontset if face is for ASCII.
13121 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13122 (deduce_unibyte_registry, x_charset_registry): Functions removed.
13123 (free_realized_multibyte_face): New function.
13124 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13125 changed. Caller changed.
13126 (try_font_list): Argument type changed.
13127 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13128 (choose_face_font): Argument changed. Handle fontset properly.
13129 (choose_face_fontset_font): Function removed.
13130 (realize_default_face, realize_named_face): Don't remove the
13131 former face here.
13132 (realize_face): Argument changed. Caller changed. Remove face
13133 with the arg former_face_id in advance. Load font for the new face.
13134 (realize_x_face): Argument changed. Caller changed. For a
13135 multibyte character, share fontset with base_face. For a single
13136 byte character, make a new realized fontset. Don't load a font here.
13137 (realize_tty_face): Argument changed. Caller changed.
13138 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13139 (face_at_buffer_position): Don't check multibyte_p for returning
13140 DEFAULT_FACE_ID.
13141 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13142 FACE_SUITABLE_FOR_CHARSET_P.
13143 (syms_of_xfaces): Remove code for Qx_charset_registry and
13144 Vface_default_registry.
13145
13146 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13147 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
13148 (x_per_char_metric): Don't try FONT->default_char. Even if
13149 pcm->width is zero, glyph bits may exist.
13150 (x_encode_char): Always initialize char2b->byte1.
13151 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
13152 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
13153 (x_append_glyph): Set glyph->glyph_not_available_p.
13154 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13155 it->charset. Handle the case that per char metric is not
13156 available. If it->multibyte_p is zero and it->c is a multibyte
13157 character, convert it to a unibyte character.
13158 (struct glyph_string): Delete member `charset'.
13159 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13160 the case that per char metric is not available correctly.
13161 (x_fill_glyph_string): Handle the case that the specific glyph is
13162 not available correctly.
13163 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13164 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13165 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13166 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13167 fontset. Don't call FS_LOAD_FONT.
13168
13169 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13170 (x_create_tip_frame): Likewise.
13171 (Fx_close_connection): Free full_name of font_info.
13172
13173 * fns.c (optimize_sub_char_table): New function.
13174 (Foptimize_char_table): New function.
13175 (syms_of_fns): Defsubr Soptimize_char_table.
13176
13177 2000-03-20 Gerd Moellmann <gerd@gnu.org>
13178
13179 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13180 only if buffer is displayed in some window.
13181
13182 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13183 (try_window_reusing_current_matrix): Don't call scroll run
13184 function if run's current and desired position are the same;
13185 this prevents cursor flickering.
13186
13187 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13188
13189 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13190
13191 * regex.c (RE_STRING_CHAR): New macro.
13192 (GET_CHAR_AFER_2): Remove.
13193 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13194 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13195 (print_partial_compiled_pattern, re_compile_fastmap)
13196 (re_match_2_internal): Remove on_failure_jump_exclusive.
13197 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13198 optimization only need to work for * (ie. can use of_keep_string_jump).
13199 Remove the special case for .*\n since it is now covered by the general
13200 optimization.
13201 (re_search_2): Don't bother with `room'.
13202 (skip_one_char): New function.
13203 (skip_noops): Simplify since `memory' is not needed any more.
13204 (mutually_exclusive_p): Restructure slightly to use `switch' and
13205 add handling for "all" remaining cases.
13206 (re_match_2_internal): Change on_failure_jump_smart to use
13207 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13208 rather than on_failure_jump_exclusive.
13209
13210 2000-03-19 Gerd Moellmann <gerd@gnu.org>
13211
13212 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13213 number of bits per RGB because it's everywhere used as the depth
13214 of the visual.
13215
13216 * term.c (calculate_costs): Remove code dealing with X frames.
13217
13218 2000-03-19 Richard M. Stallman <rms@gnu.org>
13219
13220 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13221
13222 2000-03-18 Gerd Moellmann <gerd@gnu.org>
13223
13224 * lread.c (read_integer): Unread the last char not consumed.
13225
13226 2000-03-17 Gerd Moellmann <gerd@gnu.org>
13227
13228 * xterm.c (x_update_window_cursor): Don't update in frames
13229 which are in the process of being deleted.
13230
13231 2000-03-16 Gerd Moellmann <gerd@gnu.org>
13232
13233 * Makefile.in (mostlyclean): Add `*.core'.
13234 (clean): Add `bootstrap-emacs'.
13235
13236 * lread.c (read_integer): New function.
13237 (read1): Support read syntax #o, #x, #b, #r.
13238
13239 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13240
13241 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13242 make sure POINTER_TO_OFFSET gives the same value before and after
13243 PREFETCH. Use `dfail' to guarantee "atomic" matching.
13244 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13245 (debug): Now only active if > 0 rather than if != 0.
13246 (DEBUG_*): Update for the new meaning of `debug'.
13247 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13248 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13249 in `succeed_n', `jump_n' and `set_number_at'.
13250 (store_op1, store_op2, insert_op1, insert_op2)
13251 (at_begline_loc_p, at_endline_loc_p): Add prototype.
13252 (group_in_compile_stack): Move to after its arg's types are
13253 declared and add a prototype.
13254 (PATFETCH): Define in terms of PATFETCH_RAW.
13255 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
13256 (QUIT): Redefine as a nop except for NTemacs.
13257 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13258 indentation of the greedy-op and shy-group code.
13259 (at_(beg|end)line_loc_p): Fix argument's types.
13260 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13261 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13262 (MATCHING_IN_FIRST_STRING): Remove.
13263 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13264 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13265 QUIT unconditionally.
13266
13267 2000-03-15 Gerd Moellmann <gerd@gnu.org>
13268
13269 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13270 a sole completion.
13271
13272 * process.c (send_process): Add a hint that the function
13273 can call Lisp code to its comment.
13274
13275 * lread.c (load_dangerous_libraries): New variable.
13276 (Vbytecomp_version_regexp): New variable.
13277 (safe_to_load_p): New function.
13278 (Fload): Handle files not compiled with Emacs specially.
13279 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13280
13281 2000-03-14 Gerd Moellmann <gerd@gnu.org>
13282
13283 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13284
13285 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13286 support functions only if HAVE_X11R6_XIM is defined.
13287 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13288
13289 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13290
13291 * xfns.c (X_I18N_INHIBITED): Don't define.
13292 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
13293 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13294
13295 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13296 (HAVE_X11R6_XIM): Define.
13297
13298 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13299
13300 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13301 If set, call XSynchronize.
13302
13303 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13304
13305 * regex.c: Declare a new type `re_char' used throughout the code
13306 for the string char type. It's `const unsigned char' to match the
13307 rest of Emacs. Consistently make sure all pointers to strings use
13308 it and make sure all pointers into the pattern use `unsigned char'.
13309 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
13310 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13311 code duplication.
13312
13313 * charset.h (GET_CHAR_AFTER_2): Remove.
13314 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13315
13316 2000-03-12 Ken Raeburn <raeburn@gnu.org>
13317
13318 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13319 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13320 of them try to use backquotes.
13321
13322 2000-03-12 Dave Love <fx@gnu.org>
13323
13324 * unexelf.c: Restore changes of 1999-10-19.
13325 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13326 fix its type and alignment; copy it from current process.
13327
13328 2000-03-12 Gerd Moellmann <gerd@gnu.org>
13329
13330 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13331 has been found. Fix bug not computing timer's predecessor.
13332
13333 * fileio.c (Fread_file_name): Handle case that DIR contains a
13334 file name.
13335
13336 * window.c (Fsave_window_excursion): Doc fix.
13337
13338 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
13339
13340 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13341
13342 * msdos.c (vga_installed): New function, code moved from
13343 dos_set_window_size.
13344 (Qbar, Qcursor_type, outside_cursor): New variables.
13345 (syms_of_msdos): Intern and staticpro them.
13346 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13347 shape used outside Emacs when called for the first time.
13348 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13349 cursor shape used outside Emacs.
13350 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13351 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13352 type has changed.
13353 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13354 parameters specify the cursor. Make qreverse a global
13355 variable (renamed to Qreverse).
13356
13357 2000-03-09 Gerd Moellmann <gerd@gnu.org>
13358
13359 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13360
13361 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13362
13363 This is a big redesign of failure-stack and register handling, prompted
13364 by bugs revealed when trying to add shy-groups. Overall, what happened
13365 is that loops are now structured a little differently, groups can be
13366 shy and the code is a little simpler.
13367
13368 * regex.h: Update the copyright.
13369 (RE_SHY_GROUPS): New value.
13370 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13371 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13372
13373 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13374 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13375 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13376 for (start|stop)_memory since they now only take one argument (the
13377 second has becomes unnecessary).
13378 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
13379 (print_compiled_pattern): Use %ld to printf long ints and flush to
13380 make debugging a little easier.
13381 (union fail_stack_elt): Make the integer unsigned.
13382 (struct fail_stack_type): Add a `frame' element.
13383 (INIT_FAIL_STACK): Init `frame' as well.
13384 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13385 (DEBUG_PUSH, DEBUG_POP): Remove.
13386 (NUM_REG_ITEMS): Remove.
13387 (NUM_NONREG_ITEMS): Adjust.
13388 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13389 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
13390 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
13391 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13392 New macros.
13393 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13394 address pushed is not the destination of the jump but the source
13395 of it instead.
13396 (NUM_FAILURE_ITEMS): Remove.
13397 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
13398 registers before the actual failure point). Don't hardcode any
13399 meaning for str==NULL anymore.
13400 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
13401 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13402 Remove.
13403 (REG_UNSET_VALUE): Use NULL (why not?).
13404 (compile_range): Remove declaration since it doesn't exist.
13405 (struct compile_stack_elt_t): Remove inner_group_offset.
13406 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13407 (regex_grow_registers): Remove dead code.
13408 (FIXUP_ALT_JUMP): New macro.
13409 (regex_compile): Add shy-groups Change loops to use
13410 on_failure_jump_smart&jump instead of
13411 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13412 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13413 variable to me). Use `jump' instead of `jump_past_alt' and don't
13414 bother with push_dummy_failure in alternatives since it is now
13415 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13416 emacs' for (re)allocating the stack.
13417 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13418 from loop when bufp->can_be_null rather than jumping to `done'.
13419 Avoid jumping backwards so as to ensure termination. Use
13420 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13421 backreferences. Remove dead code in handling of `anychar'.
13422 (skip_noops, mutually_exclusive_p): New functions taken from the
13423 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13424 improve mutually_exclusive_p to handle ".+\n".
13425 (lowest_active_reg, highest_active_reg)
13426 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
13427 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13428 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13429 variables. Push register (in `start_memory') on the stack rather
13430 than storing it in old_reg(start|end). Remove the cycle detection
13431 from `stop_memory', replaced by the use of on_failure_jump_loop
13432 for greedy loops. Add code for the new on_failure_jump_<foo>.
13433 Remove ad-hoc code in `on_failure_jump' to push more registers in
13434 the case of a loop. Take out code from `maybe_pop_jump' into
13435 separate functions and adapt it to the semantics of
13436 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13437 and push_dummy_failure. Remove dummy_failure handling and
13438 handling of `failures to jump to on_failure_jump' (this last one
13439 was already dead code, it seems).
13440 (group_match_null_string_p, alt_match_null_string_p)
13441 (common_op_match_null_string_p): Remove.
13442
13443 2000-03-08 Dave Love <fx@gnu.org>
13444
13445 * config.in: Don't depend on __STDC__ for volatile.
13446 Add POINTER_TYPE, PTR, PROTOTYPES.
13447
13448 * hftctl.c, strftime.c: Use PROTOTYPES.
13449 * eval.c (find_handler_clause): Likewise.
13450
13451 * mem-limits.h: Use POINTER_TYPE.
13452
13453 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13454 (memory_warnings): Declare using POINTER_TYPE.
13455
13456 2000-03-08 Gerd Moellmann <gerd@gnu.org>
13457
13458 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13459
13460 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
13461
13462 * xfns.c: Remove obsolete code in #if 0.
13463 (Fx_focus_frame): New function.
13464
13465 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13466
13467 * coding.c (coding_category_name): Add coding-category-utf-8,
13468 coding-category-utf-16-be, coding-category-utf-16-le.
13469 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13470 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13471 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13472 (detect_coding_utf_8): New function.
13473 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13474 UTF_16_LOW_SURROGATE_P): New macros.
13475 (detect_coding_utf_16): New function
13476 (detect_coding_mask): When priorities are specified, skip any
13477 categories that have `nil' coding-system. Fix bug of returning
13478 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13479 returns a mask not set in PRIORITIES.
13480 (detect_eol_type_in_2_octet_form): New function.
13481 (detect_eol): selects detect_eol_type_XXX to call according to
13482 cooding->category_idx.
13483 (detect_coding_system): Remove `nil' coding-system in the result.
13484 (Fupdate_coding_systems_internal): Update all coding-categories.
13485
13486 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13487 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13488 New macros.
13489 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13490 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13491 (CODING_CATEGORY_IDX_UTF_16_LE)
13492 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13493 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
13494 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13495 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13496
13497 2000-03-07 Gerd Moellmann <gerd@gnu.org>
13498
13499 * doc.c (Fdocumentation_property): If value is not a string,
13500 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13501
13502 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13503 close the display with XtCloseDisplay. This caused a bus error
13504 on OpenWindows.
13505
13506 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13507 complete but not unique.
13508
13509 2000-03-06 Gerd Moellmann <gerd@gnu.org>
13510
13511 * process.c (send_process): Remove local variable `procname' that
13512 might become invalid when a GC happens. Instead, access the
13513 process name slot directly.
13514
13515 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13516 orig_height if set.
13517
13518 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13519 orig_height if set.
13520
13521 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13522
13523 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13524 glyph matrices have been freed.
13525
13526 2000-03-05 Gerd Moellmann <gerd@gnu.org>
13527
13528 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
13529 (bootstrap-temacs): Set LC_ALL to C like for temacs.
13530
13531 * xfns.c (QCdata): Moved to xdisp.c.
13532
13533 * xdisp.c (QCdata): Moved here from xfns.c.
13534 (syms_of_xdisp): Initialize QCdata.
13535
13536 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13537
13538 * window.c (coordinates_in_window): Use
13539 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13540 FRAME_INTERNAL_BORDER_WIDTH.
13541
13542 * xdisp.c (try_window_id): Recompute unchanged information if
13543 it is obviously invalid.
13544
13545 * xterm.c (x_term_init): Create a colormap if not using the
13546 default visual.
13547
13548 * xterm.h (select_visual): Change prototype.
13549
13550 * xfns.c (select_visual): Rewritten. Recognize user-specified
13551 visual classes.
13552 (visual_classes): New variable.
13553
13554 2000-03-04 Gerd Moellmann <gerd@gnu.org>
13555
13556 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13557 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13558 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
13559 (x_decode_color): Don't handle allocation of white and black specially.
13560 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13561 XtNcolormap resources.
13562 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13563 (Fx_create_frame): Initialize color members of x_output structure.
13564 (xpm_load): Pass colormap to XPM lib.
13565
13566 * xfaces.c (x_free_colors): Access colormap of frame using
13567 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13568 when default colormap is used.
13569
13570 * xterm.c (x_term_init): Set Colormap member of x_display_info
13571 structure. Copy colormap if resource `privateColormap' is
13572 specified (PseudoColor only).
13573 (x_setup_relief_color): Access colormap of frame using
13574 FRAME_X_COLORMAP.
13575
13576 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13577 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13578
13579 2000-03-04 Jason Rumney <jasonr@gnu.org>
13580
13581 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13582 other non-platform-specific equivalents.
13583 [WINDOWSNT]: Include w32term.h, fontset.h and define X
13584 specific functions and macros as their w32 equivalents where
13585 non-platform-specifics are not available.
13586 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13587 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13588 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13589 (frame_update_line_height): Use macros to access f->output_data.
13590 (defined_color): Remove FIXME comments; fixed.
13591 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13592 into #ifdef blocks. Add WINDOWSNT blocks.
13593 (Fx_list_fonts): Use macros for accessing font data.
13594 (set_lface_from_font_name): Different default fonts for X and
13595 WINDOWSNT.
13596 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13597 scalable for backward compatibility.
13598 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
13599 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13600
13601 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
13602 syms_of_w32faces.
13603
13604 * makefile.nt (w32faces.obj): Remove.
13605 (xfaces.obj): Add.
13606
13607 2000-03-03 Jason Rumney <jasonr@gnu.org>
13608
13609 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13610 correct parameters.
13611
13612 2000-03-03 Ken Raeburn <raeburn@gnu.org>
13613
13614 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13615 standard ELF definitions here if the system header does not.
13616
13617 2000-03-03 Gerd Moellmann <gerd@gnu.org>
13618
13619 * xterm.c (PER_CHAR_METRIC): Removed.
13620 (x_per_char_metric_1, x_default_char): New functions.
13621 (x_per_char_metric): If font's default char is invalid, return
13622 metrics of a suitably chosen usable default char.
13623 (x_draw_glyph_string_foreground): If font has an invalid default
13624 char, replace occurrences of unprintable chars with a suitably
13625 chosen usable default char.
13626
13627 2000-03-02 Gerd Moellmann <gerd@gnu.org>
13628
13629 * xterm.c (note_mouse_highlight): Return quickly if frame's
13630 glyph matrices have been freed.
13631
13632 * dispnew.c (free_glyphs): Block input while freeing matrices.
13633
13634 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13635
13636 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13637 Use x_free_colors.
13638
13639 * dispextern.h (x_free_colors): Add prototype.
13640
13641 * xfaces.c (x_free_colors): New function.
13642 (unload_color, free_face_colors): Use it.
13643
13644 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13645
13646 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13647
13648 * window.c [MSDOS]: Include msdos.h.
13649
13650 2000-03-02 Dave Love <fx@gnu.org>
13651
13652 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13653
13654 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13655 set C_OPTIMIZE_SWITCH for gcc.
13656
13657 2000-03-02 Kenichi Handa <handa@etl.go.jp>
13658
13659 * coding.c (coding_save_composition): Be sure to allocate
13660 composition data area in coding even if there's no composition in
13661 the current run.
13662
13663 2000-03-01 Jason Rumney <jasonr@gnu.org>
13664
13665 * w32term.c: Equivalent changes to those made to xterm.c on
13666 2000-02-25 and 2000-02-24.
13667
13668 * w32fns.c: Equivalent changes to those made to xfns.c on
13669 2000-02-25 and 2000-02-21.
13670
13671 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13672 correct line-end convention is followed.
13673
13674 * w32menu.c [HAVE_BOXES]: Remove #undef.
13675 (single_keymap_panes): Remove code for simulating checkmarks.
13676 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13677 Remove code for drawing simulated checkmarks.
13678 (w32_menu_show): make unibyte help string correctly.
13679 (add_menu_item): draw standard Windows checkmarks. Draw radio
13680 buttons as radio buttons if possible.
13681
13682 2000-03-01 Gerd Moellmann <gerd@gnu.org>
13683
13684 * sysdep.c (start_of_text): Don't define this function for NetBSD
13685 with ELF.
13686
13687 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
13688 Don't define.
13689 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13690 (LINKER): Don't undef if __NetBSD__ is defined.
13691
13692 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13693
13694 * fileio.c [__NetBSD__]: Define `unix'.
13695
13696 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13697
13698 2000-02-29 Gerd Moellmann <gerd@gnu.org>
13699
13700 * atimer.c (start_atimer): Don't abort when timers are stopped.
13701 (append_atimer_lists): New function.
13702 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13703 arbitrary lists of stopped and running atimers.
13704
13705 * atimer.c (cancel_atimer): Handle canceling an atimer when
13706 some timers are stopped.
13707
13708 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13709 after canceling it.
13710
13711 * fns.c (maybe_resize_hash_table): Handle case of new size
13712 coming out as being the same as old size.
13713
13714 2000-02-27 Jason Rumney <jasonr@gnu.org>
13715
13716 * makefile.nt: Add atimer.h to dependencies.
13717 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13718 * w32console.c: Only disable window system features for dispextern.h
13719 (initialize_w32_display): Build a display info for the console.
13720 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13721 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13722 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13723 as 2 button mice.
13724 * w32gui.h (struct W32FontStruct): Revert last change after change
13725 to xdisp.c.
13726 * w32menu.c (single_submenu): Set up help string.
13727 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13728 (w32_dialog_show): Set up help string.
13729 * w32term.c (w32_display_info_for_display): Remove unused function.
13730 (w32_draw_bitmap): Use pre-built bitmaps.
13731 (w32_initialize_display_info): New function to initialize parts of
13732 display info that are common to both GUI and console frames.
13733 (w32_term_init): Use w32_initialize_display_info. Do not set
13734 Vw32_num_mouse_buttons here, as it is not called for console
13735 frames. Build bitmaps for indicating truncated lines etc.
13736 (x_delete_display): Destroy pre-built bitmaps.
13737 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13738 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13739
13740 2000-02-27 Dave Love <fx@gnu.org>
13741
13742 * lisp.h: Add a bunch of prototypes.
13743
13744 2000-02-26 Kenichi Handa <handa@etl.go.jp>
13745
13746 * keyboard.c (read_char): Set `usec' correctly.
13747
13748 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13749
13750 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13751 `lambda', set reg[RRR] to the map index.
13752 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13753 reg[RRR] to 0. Otherwise, set it to -1.
13754
13755 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13756
13757 * emacs.c (main): Remove code snippet commented out with `//'.
13758
13759 2000-02-25 Richard M. Stallman <rms@gnu.org>
13760
13761 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13762 and contains a `:', prepend `/:'.
13763
13764 * window.c (select_window_1): If selected_window is nil,
13765 don't "swap out" the buffer's point.
13766 (Fset_window_configuration): Set selected_window to nil
13767 before calling Fselect_window.
13768 (unshow_buffer): Don't set point in buffer from window's point
13769 if another more recently selected window also shows the buffer.
13770
13771 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13772
13773 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13774
13775 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13776 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
13777 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13778 New variables.
13779 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13780 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13781 (hide_busy_cursor): New functions.
13782 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13783
13784 * minibuf.c (read_minibuf): Cancel busy-cursor.
13785
13786 * keyboard.c (command_loop_1): Call start_busy_cursor before
13787 Fcommand_execute and cancel_busy_cursor after it.
13788 (timer_check): Remove busy-cursor code.
13789 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13790 cursor timer.
13791
13792 * process.c (wait_reading_process_input): Remove busy-cursor code.
13793
13794 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13795 Fx_hide_busy_cursor.
13796
13797 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13798 Remove prototyoes.
13799 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13800
13801 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13802
13803 * xterm.c (XTread_socket): Remove busy-cursor code.
13804
13805 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13806 (build_frame_matrix_from_leaf_window): Put code handling
13807 glyph row's not being a slice of a frame row in #if 0.
13808 (sync_window_with_frame_matrix_rows): New function.
13809 (frame_row_to_window): New function.
13810 (mirror_line_dance): Handle copies between windows.
13811
13812 * lread.c (Fload): Use `xfree' instead of `free'.
13813 (init_obarray): Use `xmalloc' instead of `malloc'.
13814
13815 * window.c (Fset_window_buffer): Set WINDOW to the window
13816 after decoding.
13817 (coordinates_in_window): Take frame's internal border width
13818 into account.
13819
13820 2000-02-24 Gerd Moellmann <gerd@gnu.org>
13821
13822 * xterm.c (x_display_and_set_cursor): Display cursor of
13823 non-selected windows depending on the setting of
13824 cursor_in_non_selected_windows.
13825
13826 * xdisp.c (cursor_in_non_selected_windows): New variable.
13827 (syms_of_xdisp): DEFVAR_BOOL it.
13828
13829 2000-02-23 Gerd Moellmann <gerd@gnu.org>
13830
13831 * data.c (Fstring_to_number): If number is greater than what
13832 fits into an integer, return a float.
13833
13834 * eval.c (specbind): Remove references to
13835 keyword_symbols_constant_flag.
13836
13837 * data.c (keyword_symbols_constant_flag): Removed.
13838 (Fmakunbound, set_internal, syms_of_data): Remove references to
13839 keyword_symbols_constant_flag.
13840
13841 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13842
13843 2000-02-23 Kenichi Handa <handa@etl.go.jp>
13844
13845 * syntax.c (multibyte_syntax_as_symbol): New variable.
13846 (syms_of_syntax): Declare it as a Lisp variable.
13847 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13848 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13849 nonzero, treat all multibyte characters as symbol.
13850 (init_syntax_once): Give syntax `word' to all multibyte characters.
13851
13852 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13853
13854 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
13855 a deleted frame.
13856
13857 2000-02-21 Gerd Moellmann <gerd@gnu.org>
13858
13859 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13860
13861 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13862 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13863
13864 2000-02-21 Dave Love <fx@gnu.org>
13865
13866 * frame.c (Vmouse_position_function): New variable.
13867 (Fmouse_position): Use it.
13868 (syms_of_frame): Install it.
13869
13870 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13871
13872 2000-02-20 Gerd Moellmann <gerd@gnu.org>
13873
13874 * fileio.c (Finsert_file_contents): Unbind the binding of
13875 standard-output done by temp_output_buffer_setup.
13876
13877 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13878 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13879 (specbind, unbind_to): Handle most common case of non-constant
13880 symbol with trivial value specially.
13881
13882 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13883
13884 2000-02-20 Richard M. Stallman <rms@gnu.org>
13885
13886 * data.c (Fmake_variable_buffer_local): Doc fix.
13887 Init found_for_buffer to 0.
13888 (Fmake_variable_frame_local): If the variable has already
13889 been buffer-local, set the check_frame field.
13890
13891 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13892
13893 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13894 produced for CODING_MODE_LAST_BLOCK requires.
13895
13896 2000-02-18 Dave Love <fx@gnu.org>
13897
13898 * keyboard.c (echo_keystrokes): Remove declaration.
13899 (Vecho_keystrokes) New variable.
13900 (read_char, record_menu_key, read_key_sequence): Use it to allow
13901 use of float value.
13902 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13903
13904 * lread.c: Undef feature selection macros before defining.
13905
13906 2000-02-18 Gerd Moellmann <gerd@gnu.org>
13907
13908 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13909 for symbols other than the symbol in question.
13910
13911 2000-02-17 Dave Love <fx@gnu.org>
13912
13913 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13914
13915 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13916
13917 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13918
13919 * alloc.c (enum mem_type): Compile unconditionally.
13920
13921 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13922
13923 * xfaces.c (tty_defined_color): Don't return faulire indication
13924 for unspecified-fg and unspecified-bg pseudo-colors.
13925
13926 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13927
13928 * alloc.c (mark_object): Don't mark symbol names in pure space.
13929 (gc_sweep): Don't unmark symbol names in pure space.
13930
13931 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13932 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13933 [GC_MARK_STACK]: New defines.
13934 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
13935 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13936
13937 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13938
13939 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13940 allocate_buffer instead of xmalloc.
13941
13942 * alloc.c (toplevel): Include setjmp.h.
13943 (PURE_POINTER_P): New define.
13944 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13945 (Vdead) [GC_MARK_STACK]: New variable.
13946 (lisp_malloc): Add parameter TYPE, call mem_insert if
13947 GC_MARK_STACK is defined.
13948 (allocate_buffer): New function.
13949 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
13950 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13951 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13952 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13953 (MEM_NIL) [GC_MARK_STACK]: New define.
13954 (struct mem_node) [GC_MARK_STACK]: New structure.
13955 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13956 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13957 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13958 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13959 (mark_stack) [GC_MARK_STACK]: New functions.
13960 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13961 (clear_marks): Removed.
13962 (gc_sweep): Set free conses' car, free floats' type, free
13963 symbols' function to Vdead. Use lisp_free to free buffers.
13964 (init_alloc_once): Initialize Vdead.
13965 (survives_gc_p): Return non-zero for pure objects.
13966
13967 * alloc.c: Add comments throughout the file.
13968
13969 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13970 that unblocks alarms.
13971
13972 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13973 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13974 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13975
13976 * frame.c (make_frame): Set frame initiallly to `garbaged'.
13977
13978 2000-02-17 Kenichi Handa <handa@etl.go.jp>
13979
13980 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13981 avoid infinite error signaling. Allocate sufficient memory for
13982 eol_str in the case that eoltype is Lisp_Int.
13983
13984 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13985
13986 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13987 depends on the previous behavior.
13988
13989 2000-02-16 Gerd Moellmann <gerd@gnu.org>
13990
13991 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13992
13993 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13994
13995 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13996
13997 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
13998 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
13999 write(2).
14000
14001 2000-02-15 Richard M. Stallman <rms@gnu.org>
14002
14003 * data.c (set_internal): Don't make variable buffer-local
14004 if within a let-binding for the same buffer.
14005 (let_shadows_buffer_binding_p): New function.
14006
14007 * eval.c (specbind): For buffer-local value,
14008 record the current buffer also.
14009 (unbind_to): Cope with that change.
14010
14011 2000-02-15 Gerd Moellmann <gerd@gnu.org>
14012
14013 * window.c (Fsave_window_excursion): Doc fix.
14014
14015 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
14016
14017 * syntax.c (back_comment): Make sure we only consider comment-starters
14018 of the relevant style and return -1 in case of a failure to find the
14019 beginning of the comment.
14020 (Fforward_comment): If back_comment fails, go back to the position just
14021 after the comment-end.
14022 (scan_lists): Add comment describing a very minor bug.
14023
14024 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14025
14026 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14027 `completion-regexp-list' in the docstring.
14028
14029 2000-02-14 Dave Love <fx@gnu.org>
14030
14031 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14032
14033 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14034
14035 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14036 to Emacs' syntax. Also fix the comment about set/not-set meanings
14037 since Emacs syntax is not the value 0 any more.
14038 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14039 since it's now part of RE_SYNTAX_EMACS.
14040
14041 2000-02-12 Dave Love <fx@gnu.org>
14042
14043 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
14044
14045 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14046
14047 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14048
14049 2000-02-12 Dave Love <fx@gnu.org>
14050
14051 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14052
14053 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
14054 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14055 * s/hpux.h: Don't define HAVE_VFORK.
14056
14057 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14058
14059 * s/nextstep.h: Don't define HAVE_ALLOCA.
14060
14061 * config.in: Add vfork bits.
14062
14063 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14064
14065 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14066 unwind function to undo the effect of stopping atimers.
14067
14068 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
14069
14070 * atimer.c (stopped_atimers): New variable.
14071 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14072 New functions.
14073
14074 * atimer.h (stop_other_atimers, run_all_atimers)
14075 (unwind_stop_other_atimers): Add function prototypes.
14076
14077 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14078
14079 2000-02-11 Ken Raeburn <raeburn@gnu.org>
14080
14081 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14082 library may depend on jpeg.
14083 (atimer.o): Depends on atimer.c.
14084
14085 2000-02-11 Kenichi Handa <handa@etl.go.jp>
14086
14087 * insdel.c (del_range_1): Call update_compositions.
14088 (del_range_both): Call update_compositions just once..
14089
14090 2000-02-10 Dave Love <fx@gnu.org>
14091
14092 * xfns.c (create_frame_xic): Fix initialization of automatic
14093 aggregates for pcc.
14094
14095 2000-02-09 Kenichi Handa <handa@etl.go.jp>
14096
14097 * ccl.c (CCL_MAKE_CHAR): New macro.
14098 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14099 registers by CCL_MAKE_CHAR before calling translate_char.
14100 <CCL_TranslateCharacterConstTbl> Likewise.
14101
14102 2000-02-08 Dave Love <fx@gnu.org>
14103
14104 * lread.c (__EXTENSIONS__): Define.
14105
14106 2000-02-08 Gerd Moellmann <gerd@gnu.org>
14107
14108 * puresize.h (BASE_PURESIZE): Increase to 650000.
14109
14110 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14111
14112 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14113 the help message.
14114
14115 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14116
14117 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14118 md, mh, mb, mr, and me to the fake termcap entry.
14119
14120 2000-02-06 Ken Raeburn <raeburn@gnu.org>
14121
14122 * sound.c (sound_cleanup): Don't call device close routine if the
14123 function pointer is null.
14124
14125 2000-02-06 Andrew Innes <andrewi@gnu.org>
14126
14127 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14128 around image definitions and prototypes.
14129 (gamma_correct) [WINDOWSNT]: New prototype.
14130
14131 * w32term.c (x_make_frame_visible): Replace call to
14132 input_poll_signal with poll_for_input.
14133
14134 * window.c [WINDOWSNT]: Include w32term.h.
14135
14136 * xdisp.c [WINDOWSNT]: Include w32term.h.
14137
14138 * makefile.nt: Add dependencies on w32gui.h.
14139 (OBJ1): Include atimer.obj.
14140 ($(BLD)\atimer.obj): New dependency rule.
14141
14142 * w32.c (sigmask): New function (does nothing).
14143 (sigunblock): Ditto.
14144
14145 * frame.c [WINDOWSNT]: Include w32term.h.
14146
14147 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14148
14149 * lread.c (syms_of_lread): Fix literal newlines.
14150
14151 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14152 the string constant limit (2048 bytes) in MSVC.
14153 (main): Ditto.
14154
14155 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14156
14157 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
14158 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14159 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14160 dispatch the event.
14161
14162 2000-02-04 Dave Love <fx@gnu.org>
14163
14164 * fileio.c: Remove some unused vars.
14165 (_GNU_SOURCE): Define (for euidaccess).
14166
14167 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14168
14169 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14170 gcpro1, gcpro2.
14171 (read_minibuf): Deal with allow_props correctly.
14172
14173 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14174
14175 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14176
14177 2000-02-03 Ken Raeburn <raeburn@gnu.org>
14178
14179 * search.c (compile_pattern): If a cache entry has a nil regexp,
14180 fill in that entry instead of clobbering a previously cached
14181 string regexp.
14182
14183 2000-02-02 Ken Raeburn <raeburn@gnu.org>
14184
14185 * puresize.h (BASE_PURESIZE): Increase to 610000.
14186
14187 2000-02-02 Gerd Moellmann <gerd@gnu.org>
14188
14189 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14190 can GC.
14191
14192 2000-02-02 Kenichi Handa <handa@etl.go.jp>
14193
14194 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14195 instead of incrementing ic directly.
14196 <CCL_WriteExprConst> Likewise.
14197 <ccl_set_expr>: Set ic to jump_address.
14198
14199 * fileio.c (e_write): Fix the handling of
14200 CODING_FINISH_INSUFFICIENT_SRC.
14201
14202 2000-02-01 Dave Love <fx@gnu.org>
14203
14204 * editfns.c (Fpropertize): Doc fix.
14205
14206 * process.c (Fstart_process): Doc fix.
14207
14208 * eval.c: Fix various doc strings not to duplicate information
14209 from help-manyarg-func-alist.
14210
14211 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
14212
14213 * doc.c (Vhelp_manyarg_func_alist): New variable.
14214 (Fdocumentation): Use it.
14215 (syms_of_doc): Define it.
14216
14217 2000-01-31 Gerd Moellmann <gerd@gnu.org>
14218
14219 * xterm.c (xim_open_dpy): Remove unused local variable.
14220
14221 * emacs.c (USAGE): Use term `display options' instead of `X options'.
14222
14223 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14224 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14225
14226 * fns.c (sweep_weak_table): New function.
14227 (sweep_weak_hash_tables): Use it. Keep on marking until there
14228 is no more change.
14229
14230 2000-01-30 Gerd Moellmann <gerd@gnu.org>
14231
14232 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14233 that XTread_socket does not crash by trying to call XNoOp on a
14234 closed display.
14235
14236 2000-01-30 Jason Rumney <jasonr@gnu.org>
14237
14238 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14239 Change selected_frame to SELECTED_FRAME ().
14240 (w32_console_mouse_position): Remove #ifndef MULE from around
14241 `insist' parameter.
14242
14243 * makefile.nt: Remove dosfns.obj.
14244
14245 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14246
14247 * w32fns.c (w32_defined_color): Check for valid frame before
14248 applying gamma correction. Eliminate dependency on frame elsewhere.
14249 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14250 (w32_to_x_font): Use resx and resy not height_in and width_in.
14251 (x_to_w32_font): Doc fix.
14252 (xlfd_strip_height): New function to strip and return font height.
14253 (w32_font_match): Compare height separately from rest of xlfd
14254 spec, using xlfd_strip_height.
14255
14256 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14257 width_in. Use w32_defined_color in place of defined_color.
14258
14259 * w32faces.c: Merge more of DOS and X specifics in preparation for
14260 merge with xfaces.c.
14261 (defined_color): Remove FIXME comment.
14262 (tty_color_name): Provide w32-specific function.
14263 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14264
14265 * w32console.c (turn_on_face, turn_off_face): Removed.
14266 (w32_face_attributes): New function.
14267 (Global_variables): Reduce scope where possible.
14268 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14269 fill attribute.
14270 (hl_mode): Don't modify text attributes.
14271 (write_glyphs): Don't do anything if len <= 0. Use
14272 w32_face_attributes to get attributes for drawing. Write
14273 terminating codes using char_attr_normal.
14274 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14275 (update_begin, update_end): Likewise.
14276 (vga_stdcolor_name): New function.
14277 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14278 (Fset_screen_color): Remove char_attr_reverse.
14279
14280 2000-01-29 Gerd Moellmann <gerd@gnu.org>
14281
14282 * xfns.c (xic_set_preeditarea): Take window parameter and
14283 window-relative pixel-positions.
14284
14285 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14286 is its frame's selected window.
14287 (xim_instantiate_callback): Likewise.
14288
14289 * xfns.c (x_create_im): Removed.
14290 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14291 (supported_xim_styles): Renamed from supported_styles.
14292 (best_xim_style): Renamed from best_style.
14293 (create_frame_xic): Renamed from xic_create_frame.
14294 (free_frame_xic): Renamed from xic_destroy_frame.
14295
14296 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14297
14298 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14299 our frames, call XFilterEvent with 2nd parameter `None'.
14300 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14301 returning XBufferOverflow.
14302 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
14303 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14304 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14305 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14306 (xim_initialize, xim_close)
14307 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14308 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14309 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14310 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14311
14312 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14313 and `xim_styles'.
14314 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14315 `xic_style' and `xic_xfs'.
14316 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14317 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14318 (FRAME_XIM): Removed.
14319
14320 * xfns.c (supported_styles): New variable.
14321 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14322 (xic_create_xfontset, best_style, xic_create_frame)
14323 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14324 (xic_set_xfontset): New functions.
14325
14326 2000-01-28 Dave Love <fx@gnu.org>
14327
14328 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14329
14330 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14331
14332 2000-01-28 Gerd Moellmann <gerd@gnu.org>
14333
14334 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14335 for *scratch* if it already existed.
14336
14337 * emacs.c (USAGE): New macro.
14338 (main): Use it to display usage information.
14339
14340 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14341
14342 Support for the menu-help feature:
14343
14344 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
14345
14346 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14347 part of the line to the termscript file.
14348 (IT_clear_to_end): Clear the entire line, not just its beginning.
14349 (menu_help_message, prev_menu_help_message): New variables.
14350 (IT_menu_make_room): Make room for the help_text member.
14351 (IT_menu_display): New argument disp_help; all callers changed.
14352 If disp_help is non-zero, store the help text of the active menu
14353 item in menu_help_message.
14354 (XMenuAddPane): Initialize the help_text member to NULL.
14355 (XMenuAddSelection): New argument help_text. Store it in the
14356 XMenu structure.
14357 (XMenuActivate): New argument help_callback. If the value of
14358 menu_help_message has changed since the last time, display the
14359 menu help message text while waiting for the mouse to move. Clear
14360 the echo area before exiting.
14361 (XMenuDestroy): Free the help_text member.
14362
14363 2000-01-27 Gerd Moellmann <gerd@gnu.org>
14364
14365 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14366 XMenuAddSelection. Pass help callback to XMenuActivate.
14367 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14368
14369 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14370
14371 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14372 and EMACS_SET_USECS.
14373
14374 2000-01-26 Dave Love <fx@gnu.org>
14375
14376 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14377
14378 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14379 an error may be signalled.
14380
14381 2000-01-26 Gerd Moellmann <gerd@gnu.org>
14382
14383 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14384 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14385
14386 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14387
14388 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14389
14390 * charset.c (Fstring): If there is a multibyte char among
14391 the args, always return a multibyte string.
14392
14393 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14394
14395 * sysdep.c (sys_select): Turn atimers off and on instead of
14396 recording and restoring old alarm handler
14397
14398 * process.c (toplevel): Include atimer.h.
14399 (create_process_1): Rewritten.
14400 (create_process): Use atimers instead of alarm.
14401 (wait_reading_process_input) [hpux]: Turn atimers off instead
14402 of turning off SIGALRM.
14403 (wait_reading_process_input): Turn off atimers instead off
14404 calling stop_polling.
14405
14406 * emacs.c (main): Call init_atimer.
14407
14408 * keyboard.c (toplevel): Include systime.h and atimer.h.
14409 (polling_for_input): Removed because unused.
14410 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14411 (poll_timer): New variable.
14412 (poll_for_input, poll_for_input_1): New functions.
14413 (start_polling, stop_polling): Rewritten.
14414
14415 * keyboard.h (polling_for_input): Removed.
14416
14417 * atimer.h, atimer.c: New files.
14418
14419 * Makefile.in (obj): Add atimer.o.
14420 (atimer.o): New target.
14421
14422 * blockinput.h (pending_atimers): Add extern declaration.
14423 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14424
14425 * lisp.h (popup_activated_flag): Add extern declaration.
14426
14427 * xmenu.c (popup_activated_flag): Make externally visible.
14428 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
14429 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14430
14431 * xterm.c (toplevel): Include atimer.h.
14432 (toolkit_scroll_bar_interaction): New variable.
14433 (Fxt_process_timeouts): Removed.
14434 (x_process_timeouts): New function.
14435 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14436 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14437 (x_make_frame_visible): Call poll_for_input_1 instead of
14438 input_poll_signal. Don't call alarm.
14439 (x_initialize): Install timer calling x_process_timeouts.
14440
14441 2000-01-24 Dave Love <fx@gnu.org>
14442
14443 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
14444 Don't use -cckr -- apparently not now necessary.
14445
14446 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14447
14448 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14449 screen boundary.
14450
14451 2000-01-23 Jason Rumney <jasonr@gnu.org>
14452
14453 * w32fns.c (w32_defined_color): Apply gamma correction before
14454 trying to map to the palette.
14455 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14456 to w32_clear_rect.
14457
14458 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14459 here. Callers changed to always pass real device context.
14460 (w32_draw_bitmap): Likewise.
14461 (w32_get_glyph_overhangs): Likewise.
14462 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
14463 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14464 pfnSetScrollInfo and SetScrollRange.
14465 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14466 back into MULE characters after decoding them.
14467 (x_get_glyph_face_and_encoding): Likewise.
14468 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14469 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14470 (x_produce_glyphs): Calculate per char metrics for a character
14471 that we know exists in default font when font_not_found_p is true.
14472
14473 2000-01-22 Jason Rumney <jasonr@gnu.org>
14474
14475 * makefile.nt (intervals.obj, composite.obj): New modules.
14476 (composite.h): Added as dependency where appropriate.
14477
14478 * w32gui.h (XGCValue): New struct for emulating X GCs.
14479
14480 * w32term.h (XCharStruct): New struct for emulating X.
14481
14482 * w32console.c (turn_on_face, turn_off_face): New functions.
14483 (change_line_highlight): New prototype for new redisplay.
14484 (write_glyphs): Support multibyte text. Support faces.
14485
14486 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
14487
14488 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14489 throughout. struct frame * in place of FRAME_PTR.
14490 Skeleton support for images, toolbars, tooltips from xfns.c.
14491 (Fx_create_frame): Use system default for default scroll bar width.
14492 (w32_get_arg): Renamed from x_get_arg.
14493 (Fx_file_dialog): New function.
14494 (w32_list_fonts): Check cache before asking system.
14495 (Vw32_enable_synthesized_fonts): New variable.
14496 (Vw32_enable_italics): Obsolete, removed.
14497
14498 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14499 Use SELECTED_FRAME macro.
14500
14501 * w32menu.c: Add skeleton support for help strings on menus.
14502 (add_menu_item): Native checkbox and radio support added, but not
14503 yet enabled due to bugs.
14504 (push_menu_item): Add parameters type, selection and help.
14505 Callers updated.
14506 Formatting changes to reduce unnecessary diffs with xmenu.c.
14507
14508 * w32select.c (Fw32_set_clipboard_data): Update call to
14509 find_charset_in_str.
14510
14511 * w32term.c: Complete rewrite for new redisplay based on new
14512 xterm.c with necessary sections merged back in from old w32term.c.
14513
14514 2000-01-21 Richard M. Stallman <rms@gnu.org>
14515
14516 * data.c (set_internal): Further fix in same criterion.
14517
14518 2000-01-20 Richard M. Stallman <rms@gnu.org>
14519
14520 * data.c (set_internal): Fix the criteria for whether
14521 to swap out the old cached binding.
14522
14523 2000-01-19 Dave Love <fx@gnu.org>
14524
14525 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14526
14527 2000-01-18 Kenichi Handa <handa@etl.go.jp>
14528
14529 * regex.c (re_compile_fastmap): While checking a range table for
14530 `charset', skip flag bits for a character class correctly.
14531
14532 2000-01-17 Gerd Moellmann <gerd@gnu.org>
14533
14534 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14535
14536 * xfns.c (x_window): Call lw_create_widget with new parameter list.
14537
14538 * widget.c (EmacsFrameSetCharSize): Change size of children first
14539 because of problems with main window geometry management under Lesstif.
14540
14541 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14542 MENU_ITEMS_ITEM_.*.
14543 (MENU_ITEMS_ITEM_HELP): New enumerator.
14544 (push_menu_item): Add parameter HELP. Record help in menu_items.
14545 (single_menu_item, single_submenu, list_of_items): Call
14546 push_menu_item with new parameter.
14547 (single_submenu): Set help string in widget value.
14548 (menu_highlight_callback): New function.
14549 (set_frame_menubar): Call lw_create_widget with new
14550 parameter list.
14551 (xmenu_show, xdialog_show): Ditto.
14552
14553 2000-01-13 Gerd Moellmann <gerd@gnu.org>
14554
14555 * sound.c (Fplay_sound): Improve doc string.
14556
14557 2000-01-11 Richard M. Stallman <rms@gnu.org>
14558
14559 * lisp.h (set_internal): Enter the new arg.
14560
14561 * eval.c (specbind): Record buffer-local variables specially,
14562 indicating which buffer's binding was saved.
14563 (unbind_to): Restore buffer-local variables specially
14564 in the proper buffer.
14565
14566 * data.c (set_internal): New arg BUF.
14567
14568 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14569 * data.c (Fset): Pass new arg to set_internal.
14570 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
14571
14572 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14573
14574 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
14575
14576 2000-01-11 Richard M. Stallman <rms@gnu.org>
14577
14578 * minibuf.c (Ftry_completion): Doc fix.
14579
14580 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14581
14582 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14583 vector, too.
14584
14585 2000-01-11 Andreas Schwab <schwab@suse.de>
14586
14587 * coding.c (code_convert_region): Initialize total_skip.
14588
14589 2000-01-08 Dave Love <fx@gnu.org>
14590
14591 * eval.c (Fuser_variable_p): Check customizability too.
14592
14593 2000-01-07 Gerd Moellmann <gerd@gnu.org>
14594
14595 * minibuf.c (Fcompleting_read): Doc fix.
14596
14597 2000-01-05 Gerd Moellmann <gerd@gnu.org>
14598
14599 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14600 -L /usr/local/lib.
14601
14602 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14603 Check that input style is supported before trying to create an
14604 IC for it.
14605 (x_window): Call x_create_im.
14606
14607 2000-01-04 Gerd Moellmann <gerd@gnu.org>
14608
14609 * xfns.c (current_gif_memory_src): New variable.
14610 (gif_load): Record the address of the current memory source
14611 in current_gif_memory_src.
14612 (gif_read_from_memory): Use current_gif_memory_src.
14613
14614 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14615 macros statement form.
14616
14617 * sound.c (struct sound): Renamed from struct sound_file.
14618 (struct sound): Add members `data' and `header_size'.
14619 (enum sound_attr): Add SOUND_DATA.
14620 (current_sound, current_sound_device): Variables renamed from
14621 sound_file and sound_device.
14622 (parse_sound): Parse :data.
14623 (parse_sound): Handle sound data in strings.
14624 (find_sound_type): Function renamed from find_sound_file_type.
14625 (wav_init, au_init): Fail if sound's header_size is smaller than
14626 needed header size.
14627 (wav_play, au_play): Play sounds from string data.
14628
14629 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14630
14631 * lisp.h: Add prototype for allocate_string_data.
14632
14633 * alloc.c (Fgarbage_collect): Return number of live and free strings.
14634
14635 * alloc.c (mark_buffer): Remove code in #if 0.
14636 (gc_sweep): Ditto.
14637 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14638 (strings_consed): New variable.
14639 (allocate_string): Set it.
14640 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14641 (Fmemory_use_counts): Return strings_consed. Use Flist.
14642
14643 * alloc.c: General cleanup in comments etc. Remove conditional
14644 compilation for `standalone'.
14645
14646 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14647
14648 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14649 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14650 (DONT_COPY_FLAG): Removed.
14651 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14652 (struct sdata, struct sblock): New
14653 (struct string_block): Rewritten.
14654 (STRINGS_IN_STRING_BLOCK): New macro.
14655 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14656 (large_sblocks, string_blocks, string_free_list): New variables.
14657 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14658 (init_strings): Rewritten.
14659 (allocate_string, allocate_string_data, compact_small_strings)
14660 (free_large_strings, sweep_strings): New functions.
14661 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14662 (struct string_block_head, current_string_block)
14663 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14664 (STRING_PAD): Removed.
14665 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14666 (Fgarbage_collect): Don't set mark bit in large strings.
14667 (mark_object): Mark strings differently. Mark symbol names
14668 differently.
14669 (survives_gc_p): Test marked strings differently.
14670 (gc_sweep): Sweep strings differently, unmark strings in
14671 symbol names.
14672 (compact_strings): Removed.
14673
14674 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14675
14676 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14677 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14678
14679 2000-01-04 Kenichi Handa <handa@etl.go.jp>
14680
14681 * fileio.c (Finsert_file_contents): Signal error if visiting file
14682 in a non-empty buffer.
14683
14684 * term.c (encode_terminal_code): Fix the previous change.
14685
14686 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14687
14688 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14689 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14690
14691 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14692
14693 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14694
14695 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14696 need to test for MSDOS frames.
14697
14698 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14699
14700 * dosfns.c (unspecified_colors): Remove.
14701 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14702 unspecified_bg.
14703 (msdos_stdcolor_name): Return strings for unspecified fore- and
14704 back-ground colors.
14705
14706 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
14707 (syms_of_xfaces): Remove their staticpro's.
14708 (tty_color_name): Return Lisp strings for unspecified fore- and
14709 back-ground colors.
14710 (Finternal_set_lisp_face_attribute): Remove the special treatment
14711 for Qunspecified_{f,b}g.
14712 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
14713
14714 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14715
14716 * xdisp.c (reseat_at_next_visible_line_start): Position before
14717 newline only if ending up on a newline.
14718 (next_element_from_ellipsis): Return success. Handle case of
14719 displaying no ellipsis. Fix case of ellipsis defined in display table.
14720 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14721 returns 0.
14722
14723 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14724
14725 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14726 (Fcolor_supported_p): Renamed from face-color-supported-p.
14727
14728 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14729
14730 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14731 list of colors renamed to tty-defined-color-alist.
14732 (tty_color_name): Pass the frame to tty-color-by-index.
14733 (realize_tty_face): tty-color-alist is now a function which
14734 accepts the frame as argument.
14735
14736 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
14737
14738 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14739
14740 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14741 encode_terminal_code.
14742
14743 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14744
14745 * dispnew.c (mode_line_string): Support termcap frames as well.
14746
14747 2000-01-01 Gerd Moellmann <gerd@gnu.org>
14748
14749 * syntax.c (Fforward_word): Undo previous change.
14750
14751 * editfns.c (Fconstrain_to_field): Don't constrain if
14752 inhibit-field-text-motion is non-nil.
14753 (Fline_beginning_position): Undo previous change.
14754 (Fline_end_position): Ditto.
14755
14756 * syntax.c (Fforward_word): Notice field boundaries only if
14757 inhibit-field-text-motion is nil.
14758
14759 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14760
14761 * editfns.c (Vinhibit_field_text_motion): New variable.
14762 (inhibit-field-text-motion): New DEFVAR_LISP.
14763 (Fline_beginning_position, Fline_end_position): Notice field
14764 boundaries only if inhibit-field-text-motion is nil.
14765
14766 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14767 All calls adjusted.
14768 (x_build_heuristic_mask): Likewise.
14769 (xbm_load_image_from_file): Change error output.
14770 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14771 (gif_load, gs_load, x_kill_gs_process): Ditto.
14772
14773 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14774 color indices when accessing raster pixels.
14775 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14776 one of :file or :data.
14777 (enum pbm_keyword_index): Add PBM_DATA.
14778 (pbm_format): Add :data.
14779 (pbm_image_p): Allow either :file or :data.
14780 (pbm_read_file): New function.
14781 (pbm_scan_number): Rewritten to read from string.
14782 (pbm_load): Support :data.
14783
14784 See ChangeLog.8 for earlier changes.
14785
14786 ;; Local Variables:
14787 ;; coding: iso-2022-7bit
14788 ;; End:
14789
14790 Copyright (C) 2001 Free Software Foundation, Inc.
14791 Copying and distribution of this file, with or without modification,
14792 are permitted provided the copyright notice and this notice are preserved.