(x_draw_glyphs): Don't call notice_overwritten_cursor if
[bpt/emacs.git] / src / ChangeLog
1 2001-11-28 Gerd Moellmann <gerd@gnu.org>
2
3 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4 OVERLAPS_P.
5
6 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7
8 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
9 `gcpro3' and `gcpro4'.
10
11 * coding.c (decode_coding_string): Remove unused variable
12 `gcpro1'.
13
14 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
15
16 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
17 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
18
19 * eval.c: Use AREF and ASIZE.
20 (Ffetch_bytecode): Add the file name to the error message.
21
22 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23 which match the end of the file-name.
24 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25 is not a valid env var, but leave it as is instead.
26
27 * keymap.c (access_keymap): Handle t bindings like nil bindings.
28 Make nil bindings in char-tables transparent.
29 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
30
31 2001-11-26 Richard M. Stallman <rms@gnu.org>
32
33 * textprop.c (set_text_properties_1): Allow START, END in either order.
34 Do nothing if range is empty.
35
36 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
37
38 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
39 (clean): Not here.
40
41 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
42
43 * textprop.c (set_text_properties_1): Clearly mark that the
44 interval should not be empty.
45
46 * intervals.c (graft_intervals_into_buffer):
47 Don't call set_text_properties_1 on an empty interval.
48
49 2001-11-25 Richard M. Stallman <rms@gnu.org>
50
51 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
52
53 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
54 don't lose the data in it.
55
56 2001-11-25 Juanma Barranquero <lektu@terra.es>
57
58 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
59
60 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
61
62 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
63
64 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
65
66 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
67
68 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
69
70 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
71 Niemitalo <kon@iki.fi>.
72
73 2001-11-25 Jason Rumney <jasonr@gnu.org>
74
75 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
76
77 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
78 (Fx_show_tip): Block input during frame creation.
79 (Fx_show_tip, Fx_hide_tip): Enable.
80
81 2001-11-24 Richard M. Stallman <rms@gnu.org>
82
83 * lread.c (Fload): Detect recursive load error for more than 3
84 nestings of the same file.
85 (Vrecursive_load_depth_limit): Variable deleted.
86 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
87
88 2001-11-24 Jason Rumney <jasonr@gnu.org>
89
90 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
91 mouse position if either left or top is not specified.
92
93 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
94 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
95 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
96 (my_create_tip_window): Assign tip_window.
97 (x_create_tip_frame): Use same defaults as X.
98 (compute_tip_xy): Remove unused variable. Use full screen width.
99 (Fx_show_tip): Do not double height. Call ShowWindow directly.
100
101 * w32term.c (x_after_update_window_line): Doc fix.
102 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
103 frames.
104 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
105
106 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
107 for all Windowed systems.
108
109 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
110
111 * msdos.c (IT_clear_screen): If the frame's faces are not yet
112 realized, use the initial screen colors to clear the screen.
113
114 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
115
116 * textprop.c (Fset_text_properties): Remove unused variables
117 `unchanged', `prev_changed', `s' and `len'.
118
119 * search.c (Freplace_match): Remove unused variable `inslen'.
120
121 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
122
123 2001-11-22 Jason Rumney <jasonr@gnu.org>
124
125 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
126 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
127 (my_create_tip_window): New function.
128 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
129 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
130
131 2001-11-20 Jason Rumney <jasonr@gnu.org>
132
133 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
134 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
135
136 * w32fns.c (Vw32_system_coding_system): Remove.
137 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
138
139 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
140
141 * fileio.c (Fwrite_region): Move choose_write_coding_system to
142 after build_annotations.
143
144 * syntax.c (describe_syntax): Add dummy arg.
145 (describe_syntax_1): Update call to describe_vector.
146
147 * category.c (describe_category): Add dummy arg.
148 (describe_category_1): Update call to describe_vector.
149
150 * keymap.c (Fdescribe_vector): Add `describer' parameter.
151 (describe_command, describe_translation): Add dummy second param.
152 (describe_map): Call elt_describer with two arguments.
153 (describe_vector_princ): Add `fun' parameter.
154 Call it instead of the hardcoded `princ'.
155 (describe_vector): Add arg `args'.
156 Pass it as a new second argument to elt_describer.
157
158 * keymap.h (describe_vector): Update prototype.
159
160 * frame.c: Don't include keymap.h any more.
161 (keys_of_frame): Remove.
162
163 * lisp.h (keys_of_frame): Remove declaration.
164
165 * emacs.c (main): Don't call `keys_of_frame' any more.
166
167 2001-11-14 Andreas Schwab <schwab@suse.de>
168
169 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
170 if defined, 0 otherwise.
171 (MAP_FAILED): Define if not defined and use it to test mmap failure.
172 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
173
174 2001-11-19 Richard M. Stallman <rms@gnu.org>
175
176 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
177
178 2001-11-18 Jason Rumney <jasonr@gnu.org>
179
180 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
181 (x_draw_bar_cursor): If the background color of the glyph under
182 the cursor equals the frame's cursor color, use the glyph's
183 foreground color for drawing the bar cursor.
184 (x_after_update_window_line): Clear internal border in different
185 circumstances.
186 (w32_set_vertical_scroll_bar): Check for width and height > 0.
187 (w32_draw_relief_rect): Correct relief by 1 pixel.
188 (x_set_glyph_string_background_width):
189 Set extends_to_end_of_line_p if the row's fill_line_p is set and
190 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
191 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
192 if cursor_in_non_selected_windows is false.
193 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
194 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
195 Notice if cursor gets overwritten.
196 (notice_overwritten_cursor): Renamed from
197 note_overwritten_text_cursor. Rewritten to take glyph widths
198 into account, and to take X positions as parameters.
199 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
200 around call to x_draw_glyphs.
201 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
202 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
203 color to use for image glyph reliefs.
204 (x_draw_image_relief): Accept zero tool_bar_button_relief.
205 (glyph_rect): Remove unused variable `area'.
206
207 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
208 some items.
209 (x_set_internal_border_width): Set frame garbaged when window
210 doesn't exist yet.
211 (Fx_create_frame): Accept zero tool_bar_button_relief.
212 (x_clear_image_1, four_corners_best, image_background)
213 (image_background_transparent): New functions.
214 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
215 (gs_format): Add `:background' entry.
216 (lookup_image): Set IMG's background color if specified.
217 (pbm_load, xbm_load_image, png_load): Set IMG's background field
218 when appropriate.
219 (x_clear_image_1): Reset `background_valid' and
220 `background_transparent_valid' fields.
221 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
222 calculating it here. Set IMG's background_transparent field.
223 (enum xpm_keyword_index): Add XPM_BACKGROUND.
224 (enum png_keyword_index): Add PNG_BACKGROUND.
225 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
226 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
227 (enum gif_keyword_index): Add GIF_BACKGROUND.
228 (enum gs_keyword_index): Add GS_BACKGROUND.
229 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
230 Pre-calculate image background color where necessary.
231 (x_create_x_image_and_pixmap, xbm_load, gs_load):
232 Use display info's n_cbits entry for screen depth.
233 (Fx_show_tip): Remove unused variables `buffer', `top',
234 `left', `max_width' and `max_height'.
235
236 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
237
238 2001-11-18 Gerd Moellmann <gerd@gnu.org>
239
240 * puresize.h (BASE_PURESIZE): Increase to 750000.
241
242 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
243
244 * frame.c (Fframe_live_p): Doc fix.
245
246 2001-11-18 Richard M. Stallman <rms@gnu.org>
247
248 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
249 (message_dolog_marker3): New static variables hold three markers.
250 (syms_of_xdisp): Initialize and staticpro them.
251 (message_dolog): Use message_dolog_marker1..3 instead of
252 allocating markers each time. Unchain them when done.
253
254 2001-11-17 Richard M. Stallman <rms@gnu.org>
255
256 * doc.c (Fsnarf_documentation): Doc fix.
257
258 2001-11-17 Andreas Schwab <schwab@suse.de>
259
260 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
261
262 2001-11-17 Richard M. Stallman <rms@gnu.org>
263
264 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
265
266 2001-11-17 Jason Rumney <jasonr@gnu.org>
267
268 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
269
270 2001-11-17 Gerd Moellmann <gerd@gnu.org>
271
272 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
273 with invalid position.
274
275 2001-11-16 Richard M. Stallman <rms@gnu.org>
276
277 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
278
279 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
280 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
281 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
282
283 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
284
285 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
286
287 * fileio.c (build_annotations): Split off the tail.
288 (build_annotations_2): New fun. Extracted from build_annotations.
289 (Fwrite_region): Split the call to build_annotations into two
290 calls to build_annotations and build_annotations_2.
291
292 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
293
294 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
295 clear_waiting_for_input with argument.
296
297 * xterm.h (x_update_cursor): Remove duplicated prototype.
298
299 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
300
301 * xterm.c (waiting_for_input): Remove unnecessary declaration.
302
303 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
304
305 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
306
307 * fileio.c (choose_write_coding_system): New fun, extracted
308 from Fwrite_region.
309 (Fwrite_region): Use it.
310
311 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
312 (funcall_lambda, run_hook_with_args): Make static and add prototype.
313 (ml_apply, find_handler_clause): Add prototype.
314
315 2001-11-16 Eli Zaretskii <eliz@gnu.org>
316
317 * config.in: Add #undef HAVE_COFF_H.
318
319 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
320 Required for ISC 4.1.
321
322 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
323
324 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
325 Andrew Wiseman <a.wiseman@btclick.com>.
326
327 2001-11-16 Kim F. Storm <storm@cua.dk>
328
329 The following changes are made to clean up the various internal
330 references to the fringes to actually use the term `fringe' for
331 them. Previously, they were called `flags areas', `bitmap areas',
332 `left/right side of windows', or implicitly as `flags' or
333 `bitmaps':
334
335 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
336 Comments fixed. Use renamed symbols.
337
338 * dispnew.c: Comment fix. Use renamed symbols.
339
340 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
341 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
342 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
343
344 * msdos.c: Comment fix.
345
346 * w32fns.c: Use renamed symbols.
347
348 * w32term.c: Comment fixes. Use renamed symbols.
349 (fringe_bitmap_type): Renamed from bitmap_type.
350 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
351 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
352 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
353
354 * w32term.h: Comment fixes. Use renamed symbols.
355 (fringes_extra): Renamed from flags_areas_extra.
356 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
357 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
358 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
359 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
360 (FRAME_X_LEFT_FRINGE_WIDTH):
361 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
362 (FRAME_X_RIGHT_FRINGE_WIDTH):
363 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
364
365 * widget.c: Use renamed symbols.
366
367 * window.c: Comment fixes. Use renamed symbols.
368 (coordinates-in-window-p): Doc fix.
369
370 * xdisp.c: Comment fixes. Use renamed symbols.
371
372 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
373
374 * xfns.c: Use renamed symbols.
375
376 * xterm.c: Comment fixes. Use renamed symbols.
377 (fringe_bitmap_type): Renamed from bitmap_type.
378 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
379 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
380 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
381
382 * xterm.h: Comment fixes. Use renamed symbols.
383 (fringes_extra): Renamed from flags_areas_extra.
384 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
385 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
386 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
387 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
388 (FRAME_X_LEFT_FRINGE_WIDTH):
389 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
390 (FRAME_X_RIGHT_FRINGE_WIDTH):
391 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
392
393 2001-11-15 Jason Rumney <jasonr@gnu.org>
394
395 * w32menu.c (add-menu-item): Make help_echo and radio buttons
396 work for most menu items. From David Ponce
397 <david.ponce@wanadoo.fr>.
398
399 2001-11-15 Gerd Moellmann <gerd@gnu.org>
400
401 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
402 Some x_set_* function expect to be called even if old and new
403 value are equal.
404
405 * xdisp.c (build_desired_tool_bar_string): Accept zero
406 tool_bar_button_relief.
407
408 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
409
410 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
411
412 * xterm.c (x_draw_bar_cursor): If the background color of the
413 glyph under the cursor equals the frame's cursor color, use
414 the glyph's foreground color for drawing the bar cursor.
415
416 * dispnew.c (direct_output_forward_char): Fix character/byte
417 position comparison.
418
419 2001-11-15 Miles Bader <miles@gnu.org>
420
421 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
422 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
423 Update arguments to find_field.
424 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
425 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
426 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
427 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
428
429 2001-11-14 Richard M. Stallman <rms@gnu.org>
430
431 * editfns.c (Fpropertize): Allow call with 1 arg.
432
433 * dispextern.h (image_background, image_background_transparent):
434 Conditionalize on HAVE_X_WINDOWS.
435
436 2001-11-13 Richard M. Stallman <rms@gnu.org>
437
438 * print.c (Fprin1_to_string): Doc fix.
439
440 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
441
442 * floatfns.c (Fceiling, Ffloor): Doc fixes.
443
444 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
445
446 * fileio.c (Ffile_accessible_directory_p): Doc fix.
447
448 * eval.c (syms_of_eval): Doc fix.
449
450 * coding.c (syms_of_coding): Doc fix.
451
452 * doc.c (Fsnarf_documentation): Doc fix.
453
454 * dispnew.c (syms_of_display): Doc fix.
455
456 * category.c (Fget_unused_category): Doc fix.
457
458 * buffer.c (syms_of_buffer): Doc fixes.
459
460 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
461
462 * print.c (prin1, print): Doc fix.
463
464 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
465
466 * fontset.h: Remove declarations of variables
467 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
468
469 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
470 `Vclip_large_size_font'.
471
472 2001-11-13 Jason Rumney <jasonr@gnu.org>
473
474 * w32fns.c: Doc fix.
475
476 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
477
478 * xfaces.c (Fface_attributes_as_vector): Doc fix.
479
480 * w32fns.c (Fx_synchronize): Reindent.
481
482 * fns.c: Doc fix.
483
484 * emacs.c: Doc fix.
485
486 * coding.c: Doc fix.
487
488 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
489 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
490 `new style' [w/`doc:' keyword].
491
492 * xmenu.c (x-popup-menu): Reindent.
493 (x-popup-dialog): Likewise.
494
495 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
496
497 * xdisp.c (Fdump_tool_bar_row): Reindent.
498
499 * minibuf.c (Fminibuffer_complete_word): Reindent.
500 (Fminibuffer_complete_and_exit): Likewise.
501 (Fminibuffer_completion_help): Likewise.
502 (Fminibuffer_message): Likewise.
503
504 * fns.c (Freverse): Reindent.
505
506 * eval.c (Fif): Reindent.
507 (Fand): Likewise.
508
509 * editfns.c (Fuser_real_login_name): Reindent.
510 (Finsert_buffer_substring): Likewise.
511 (Fcompare_buffer_substrings): Likewise.
512 (Fsubst_char_in_region): Likewise.
513
514 * dispnew.c (Fsit_for): Reindent.
515 (Fframe_or_buffer_changed_p): Likewise.
516 (Finternal_show_cursor_p): Likewise.
517 (syms_of_display): Likewise.
518
519 * alloc.c (Flist): Reindent.
520 (Fvector): Likewise.
521
522 2001-11-12 Richard M. Stallman <rms@gnu.org>
523
524 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
525 LeaveNotify events. Only FocusIn and FocusOut do that now.
526 (x_display_and_set_cursor): Do display hollow cursors in active
527 minibuffer windows when they are not selected.
528
529 2001-11-12 Jason Rumney <jasonr@gnu.org>
530
531 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
532 * w32term.c: Change doc-string comments to `new style'.
533 [w/`doc:' keyword]. Doc fixes.
534
535 * w32fns.c: Don't define max.
536 (Fx_open_connection): Only execute once.
537
538 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
539
540 * ccl.c: Change macros to use do-while block instead of if-else.
541 Use braces to follow GNU Coding Standards.
542
543 2001-11-11 Richard M. Stallman <rms@gnu.org>
544
545 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
546
547 * lread.c (read_escape): Use end_of_file_error for reporting eof.
548
549 * insdel.c (replace_range): Use adjust_markers_for_replace
550 instead of adjust_markers_for_delete and adjust_markers_for_insert.
551
552 * intervals.h: Declare set_text_properties and set_text_properties_1.
553
554 * textprop.c (set_text_properties_1): New subroutine
555 broken out of set_text_properties.
556 (set_text_properties): Use set_text_properties_1.
557
558 * intervals.c (graft_intervals_into_buffer):
559 Use set_text_properties_1 to clear out properties.
560
561 * search.c (Freplace_match): Use replace_range to insert
562 and delete. Don't request property inheritance from
563 surrounding text.
564
565 2001-11-10 Jason Rumney <jasonr@gnu.org>
566
567 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
568 vertical fonts. Allow them if face name is explicitly specified.
569 Do not give up if we find a font that cannot be converted to an xlfd.
570
571 2001-11-10 Gerd Moellmann <gerd@gnu.org>
572
573 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
574 instead of malloc/free.
575
576 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
577
578 * xfaces.c (merge_face_vectors): Use braces to follow GNU
579 Coding Standards.
580 (Finternal_set_lisp_face_attribute): Likewise.
581
582 * buffer.c (Fbury_buffer): Likewise.
583
584 * indent.c (current_column_1): Remove unused variable `prev_col'.
585
586 * coding.c (encode_coding): Use precomputed value of `src'.
587 (encode_coding): Remove unused variable `src_end'.
588 (code_convert_region): Remove unused variables `count'.
589
590 2001-11-07 Jason Rumney <jasonr@gnu.org>
591
592 * w32term.c (x_display_and_set_cursor): Do not move system caret
593 if cursor_glyph is NULL.
594
595 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
596
597 * keymap.c (access_keymap): Fix compilation error.
598
599 2001-11-07 Miles Bader <miles@gnu.org>
600
601 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
602
603 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
604
605 * intervals.c (graft_intervals_into_buffer):
606 Remove #ifdef'd-out code.
607 (graft_intervals_into_buffer): Remove unused variable `middle'.
608
609 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
610 code (eval-current-buffer).
611 Change doc-string comments to `new style' [w/`doc:' keyword].
612
613 2001-11-06 Richard M. Stallman <rms@gnu.org>
614
615 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
616
617 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
618
619 * lread.c (read1): Fix behavior with nested backquoting.
620
621 * keyboard.c (make_lispy_event): Check integerness and fix
622 Lisp_Object/int mixup.
623
624 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
625
626 * fns.c (copy_hash_table): Remove unused variable `v'.
627
628 * fontset.c (fontset_font_pattern): Remove unused variable
629 `family_registry'.
630
631 * indent.c (current_column_1): Remove unused variable `prev_col'.
632
633 2001-11-05 Richard M. Stallman <rms@gnu.org>
634
635 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
636
637 * buffer.c (Fkill_buffer): Don't delete auto save file
638 if buffer is modified.
639
640 2001-11-05 Andrew Innes <andrewi@gnu.org>
641
642 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
643 CHECK_NUMBER_CDR.
644
645 2001-11-05 Richard M. Stallman <rms@gnu.org>
646
647 * unexelf.c (unexec): Minor changes; clean up comments.
648
649 2001-11-05 Sam Steingold <sds@gnu.org>
650
651 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
652
653 2001-11-05 Andreas Schwab <schwab@suse.de>
654
655 * sound.c (sound_perror): Save errno from being clobbered.
656
657 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
658
659 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
660 the program image directly.
661
662 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
663
664 * buffer.h (Fbuffer_local_value): Add prototype.
665
666 2001-11-04 Richard M. Stallman <rms@gnu.org>
667
668 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
669 and CHECK_BUFFER.
670
671 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
672 (record_char): Likewise.
673
674 * keyboard.c (make_lispy_event): Don't insist a drag event must
675 move to a different buffer position. Instead, check for moving at
676 least double_click_fuzz.
677
678 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
679
680 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
681
682 * indent.c (current_column_1, Fmove_to_column): Separate the code
683 for display-table glyphs from the code buffer text, to fix
684 bugs in the former.
685
686 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
687
688 * buffer.c (Fbuffer_local_value): New function.
689 (syms_of_buffer): Defsubr it.
690
691 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
692 value of `cursor-in-non-selected-windows'.
693
694 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
695 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
696 (syms_of_xdisp): Initialize it.
697
698 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
699
700 * xfns.c (Fx_create_frame): Doc fix.
701
702 * coding.c: Change doc-string comments to `new style' [w/`doc:'
703 keyword].
704
705 * eval.c (top_level_value, top_level_set): Remove commented and
706 #ifdef'd-out code.
707 (Fdefvar): Fix usage in doc-string.
708
709 2001-11-03 Richard M. Stallman <rms@gnu.org>
710
711 * xfns.c: Include unistd.h, if it exists.
712
713 * editfns.c: Move the include of ctype.h after unistd.h.
714
715 * gmalloc.c: Test BROKEN_PROTOTYPES.
716
717 2001-11-03 Ken Raeburn <raeburn@gnu.org>
718
719 * lisp.h (CHECK_STRING_CAR): New macro.
720 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
721 treating XCAR and XCDR as lvalues.
722 (openp): Use CHECK_STRING_CAR.
723 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
724
725 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
726
727 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
728 (SIGMASKTYPE): Define.
729
730 * syssignal.h (sigunblock): Don't define if already defined.
731
732 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
733
734 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
735 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
736 Fix typos in comments.
737
738 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
739 and #ifdef'd-out code.
740 Fix and reindent comments.
741
742 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
743
744 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
745 argument `i' in macros.
746
747 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
748 `i' in macros.
749
750 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
751 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
752 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
753 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
754 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
755 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
756 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
757 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
758 in macros.
759
760 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
761 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
762 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
763 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
764 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
765 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
766 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
767 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
768 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
769 (remove unused second argument).
770
771 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
772
773 * syntax.c (describe_syntax): New wrapper.
774 (Finternal_describe_syntax_value): Rename from describe_syntax.
775 Don't insert space at front and \n at the end.
776 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
777
778 * regex.c (re_wctype): Try to fix some warnings.
779 (regcomp, regexec): Don't forget the __restrict.
780
781 2001-11-02 Richard M. Stallman <rms@gnu.org>
782
783 * textprop.c (Fget_char_property): Doc fix.
784
785 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
786
787 * process.c (Fstart_process): Add usage to doc-string.
788
789 * data.c (Fsetq_default): Ditto.
790
791 * callint.c (Finteractive): Ditto.
792
793 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
794
795 * macros.c: Don't include keymap.h any more.
796
797 2001-11-01 Richard M. Stallman <rms@gnu.org>
798
799 * data.c (Fmake_local_variable): Doc fix.
800
801 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
802 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
803
804 * keymap.c (Fdescribe_buffer_bindings): Print character property
805 bindings along with or instead of the buffer local map.
806 Make the overriding maps override what they should.
807
808 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
809
810 * window.c (grow_mini_window): Fix typo in comment.
811
812 2001-11-01 Gerd Moellmann <gerd@gnu.org>
813
814 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
815 (XTset_vertical_scroll_bar): Likewise.
816
817 * xfns.c (x_build_heuristic_mask): Use four_corners_best
818 instead of IMAGE_BACKGROUND.
819
820 * xfns.c (four_corners_best): Reindent.
821
822 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
823 Handle :box so that it is possible to specify sexprs.
824
825 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
826
827 * xfaces.c (Finternal_merge_in_global_face): Reindent.
828 (Fface_font): Ditto.
829 (Finternal_set_alternative_font_registry_alist): Ditto.
830 (Ftty_suppress_bold_inverse_default_colors): Ditto.
831
832 * xfns.c (x-get-resource): Reindent.
833
834 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
835
836 * s/hpux11.h: New file.
837
838 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
839
840 * emacs.c (USAGE1): Show command line option --no-window-system
841 instead of --no-windows in usage.
842 (standard_args): Rename --no-windows to --no-window-system.
843 (bug_reporting_address): Follow Emacs coding conventions.
844
845 * eval.c (Fcommandp): Doc fix.
846 Change doc-string comments to `new style' [w/`doc:' keyword].
847
848 * frame.c (Fframe_live_p): Doc fix.
849
850 * buffer.c (selective-display-ellipses): Doc fix.
851
852 2001-10-31 Gerd Moellmann <gerd@gnu.org>
853
854 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
855
856 * xfaces.c (realize_x_face): If C is not a single-byte character,
857 set the face's colors_copied_bitwise_p instead of the defaulted_p
858 members which have a different meaning.
859 (free_face_colors): Do nothing for a face whose colors have been
860 copied bitwise.
861
862 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
863
864 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
865
866 * marker.c, mocklisp.c: Change doc-string comments to `new style'
867 [w/`doc:' keyword].
868
869 2001-10-31 Gerd Moellmann <gerd@gnu.org>
870
871 * fns.c (require_unwind): Return Lisp_Object.
872
873 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
874
875 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
876 (last-input-char): Revert doc-string to be the same as the
877 doc-string of `last-input-event'.
878
879 * xdisp.c: Fix typos in comments.
880
881 2001-10-31 Gerd Moellmann <gerd@gnu.org>
882
883 * window.c (grow_mini_window): Handle case that the root
884 window is already smaller than the nominal mininum height.
885
886 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
887
888 * emacs.c (main): Don't call keys_of_macros any more.
889
890 * lisp.h (keys_of_macros): Remove.
891
892 * macros.c (keys_of_macros): Remove.
893
894 * xfaces.c (Fface_attribute_relative_p): Declare args.
895
896 2001-10-30 Jason Rumney <jasonr@gnu.org>
897
898 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
899 (enum_font_cb2): Ignore fonts with vertical orientation.
900
901 2001-10-30 Richard M. Stallman <rms@gnu.org>
902
903 * keyboard.c (Finput_pending_p): Doc fix.
904
905 2001-10-30 Gerd Moellmann <gerd@gnu.org>
906
907 * xterm.c (x_after_update_window_line): Don't run the code
908 clearing in borders for rows whose visible height is 0.
909
910 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
911 resized_p flag is set. If not set, use the much less flickering
912 method previously used.
913
914 * dispnew.c (change_frame_size_1): Set frame's resized_p.
915
916 * frame.h (struct frame) <resized_p>: New member.
917
918 * lread.c (to_multibyte): Ensure read_buffer is at least twice
919 as large as the number of bytes to convert.
920
921 * lread.c (to_multibyte): New function.
922 (read1): Use it.
923
924 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
925
926 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
927
928 2001-10-30 Gerd Moellmann <gerd@gnu.org>
929
930 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
931 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
932 if the row's fill_line_p is set and drawing the last glyph with
933 DRAW_IMAGE_{RAISED,SUNKEN}.
934
935 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
936
937 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
938
939 * xmenu.c: Include coding.h and charset.h.
940 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
941 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
942 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
943 Explicitly set wv->help. Use `TRUE' rather than `True'.
944 (menu_help_callback): Use empty_string.
945
946 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
947 (Fx_popup_dialog): Explicitly init f.
948 (w32_menu_display_help): Use empty_string.
949
950 2001-10-29 Richard M. Stallman <rms@gnu.org>
951
952 * fns.c (Frequire): Detect recursive try to require the same
953 feature 3 or more levels deep, and get error.
954 (require_unwind): New subroutine.
955 (require_nesting_list): New variable.
956 (syms_of_fns): Init and staticpro it.
957
958 * print.c (print_object): Clarify indication of insertion type.
959
960 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
961
962 * coding.c (syms_of_coding): Document that locale-coding-system is
963 used for decoding input on X.
964
965 * window.c (Fscroll_left, Fscroll_right): Doc fix.
966
967 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
968
969 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
970 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
971
972 2001-10-29 Gerd Moellmann <gerd@gnu.org>
973
974 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
975 use NO_CURSOR if cursor_in_non_selected_windows is false.
976
977 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
978 the slant attribute if FRAME is t.
979
980 * xfns.c (x_set_internal_border_width): Set frame garbaged
981 when X window doesn't exist yet.
982
983 * xterm.c (x_after_update_window_line): Clear internal border
984 in different circumstances.
985
986 * xterm.c (XTread_socket) <KeyPress>: Don't use
987 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
988 <handa@etl.go.jp>.
989
990 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
991
992 * m/ibms390.h: New file. From Adam Thornton
993 <athornton@sinenomine.net>.
994
995 2001-10-28 Gerd Moellmann <gerd@gnu.org>
996
997 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
998
999 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1000 a loop counter.
1001
1002 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1003
1004 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1005
1006 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1007 keyword].
1008 Fix typos in comments.
1009
1010 * emacs.c (bug_reporting_address): New function.
1011 Use it when displaying usage message.
1012
1013 * minibuf.c (read_minibuf): Remove unused external declaration of
1014 variable `Qread_only'.
1015
1016 * keymap.c (access_keymap): Remove unused variable `charset'.
1017
1018 2001-10-28 Miles Bader <miles@gnu.org>
1019
1020 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1021 Remove #ifdef'd-out code.
1022 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1023 (syms_of_xfaces): Initialize them.
1024
1025 2001-10-27 Jason Rumney <jasonr@gnu.org>
1026
1027 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1028 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1029 position using the system caret.
1030
1031 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1032 (w32_system_caret_height, w32_system_caret_x)
1033 (w32_system_caret_y): New variables for tracking system caret.
1034 (w32_initialize): Initialize them.
1035 (x_display_and_set_cursor): Make system caret follow the active cursor.
1036
1037 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1038 New messages types.
1039
1040 * w32term.c (note_mouse_highlight): Clear old help_echo.
1041
1042 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1043
1044 * xterm.c: Fix typo in a comment.
1045
1046 * emacs.c: Fix typos in comments.
1047 Remove unnecessary spaces.
1048 Change doc-string comments to `new style' [w/`doc:' keyword].
1049 (USAGE2): Fix typos in usage string.
1050
1051 * xterm.c: Fix typo in a comment.
1052
1053 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1054 emacs.c.
1055
1056 2001-10-27 Gerd Moellmann <gerd@gnu.org>
1057
1058 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
1059 instead of 1/2 line_height in the heuristic for skipping
1060 farther backward when target_y was not reached.
1061
1062 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1063 Display errno only if non-zero.
1064 (sound_warning): New function.
1065 (vox_configure): Don't treat failing to set sample rate as error.
1066 (various places): Improve error messages.
1067
1068 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1069
1070 * fileio.c (Faccess_file): Run the argument filename through
1071 Fexpand_file_name, before using it.
1072
1073 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1074 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1075
1076 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1077
1078 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1079
1080 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1081 Fix clearing in the case of scroll bars on the right.
1082
1083 2001-10-26 Juanma Barranquero <lektu@terra.es>
1084
1085 * w32gui.h (XImage): Add a dummy typedef.
1086
1087 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1088
1089 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
1090
1091 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1092
1093 * frame.c (Fframe_parameter): Fix last change.
1094
1095 * fileio.c: Revert last change (which removed old commented-out
1096 version of expand-file-name). Add a comment that explains why
1097 this old version should not be removed.
1098
1099 2001-10-25 Gerd Moellmann <gerd@gnu.org>
1100
1101 * frame.c (Fframe_parameter): Fix a bug whereby some
1102 ``artificial'' frame parameters, like `minibuffer' were not
1103 obtained by calling Fframe_parameters.
1104
1105 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1106 cursor differently.
1107
1108 * xdisp.c (move_it_vertically_backward): Compute line height
1109 differently. Add heuristic to try to be more compatible to 20.x.
1110
1111 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1112
1113 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1114
1115 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1116 boolean.
1117
1118 2001-10-25 Miles Bader <miles@gnu.org>
1119
1120 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1121 BG is a pointer to a structure, not a structure.
1122 (gif_format, png_format): Add missing commas.
1123
1124 2001-10-24 Richard M. Stallman <rms@gnu.org>
1125
1126 * xfaces.c (Fface_attributes_as_vector): New function.
1127 (syms_of_xfaces): Defsubr it.
1128
1129 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1130
1131 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1132 variable `area'.
1133
1134 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1135
1136 * search.c (scan_newline): Remove unused variable `selective_display'.
1137
1138 2001-10-25 Miles Bader <miles@gnu.org>
1139
1140 * dispextern.h (struct image): Add `background',
1141 `background_valid', and `background_transparent' fields.
1142 (image_background, image_background_transparent): New declarations.
1143 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1144 * xfns.c (image_background, image_background_transparent)
1145 (four_corners_best): New functions.
1146 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1147 (gs_format): Add `:background' entry.
1148 (lookup_image): Set IMG's background color if specified.
1149 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1150 when appropriate.
1151 (x_clear_image_1): Reset `background_valid' and
1152 `background_transparent_valid' fields.
1153 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1154 calculating it here. Set IMG's background_transparent field.
1155 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1156 (enum png_keyword_index): Add PNG_BACKGROUND.
1157 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1158 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1159 (enum gif_keyword_index): Add GIF_BACKGROUND.
1160 (enum gs_keyword_index): Add GS_BACKGROUND.
1161 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1162 Pre-calculate image background color where necessary.
1163 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1164 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1165 color to use for image glyph reliefs.
1166
1167 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1168
1169 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1170 in full-width rows.
1171
1172 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1173 Fix clearing of area not covered by scroll bar.
1174
1175 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1176
1177 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1178 and `real_start'.
1179 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
1180 (glyph_rect): Remove unused variable `area'.
1181
1182 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1183
1184 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
1185
1186 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1187 (row_containing_pos): Take additional argument DY.
1188 Treat rows ending in middle of char differently.
1189 (display_line): Handle tabs on window systems differently.
1190
1191 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1192 with additional argument.
1193
1194 * dispextern.h (row_containing_pos): Adjust prototype.
1195
1196 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1197 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1198 (try_window_id, try_window_reusing_current_matrix)
1199 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1200 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1201
1202 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1203
1204 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1205 gnuemacs).
1206 (HAVE_BOXES): Fix typo in comment.
1207 (push_menu_pane): Fix typo in comment.
1208
1209 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1210 of `Qwhen'.
1211 (single_display_prop_string_p): Remove unused local declarations
1212 of `Qwhen' and `Qmargin'.
1213 (string_buffer_position): Remove unused variable `around'.
1214 (store_frame_title): Remove unused variable `width'.
1215
1216 * window.c: Don't define max.
1217 (coordinates_in_window): Remove unused variable `uy'.
1218
1219 * widget.c: Don't define max.
1220
1221 * process.c: Don't define max.
1222 (create_process): Remove unused variable `buffer'.
1223
1224 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1225
1226 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
1227
1228 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1229
1230 * xfaces.c (Finternal_set_lisp_face_attribute)
1231 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1232 frame is on a windowed display.
1233
1234 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1235
1236 * dispnew.c (sync_window_with_frame_matrix_rows):
1237 Fix handling of windows which aren't full-width, fix handling
1238 of marginal areas.
1239
1240 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
1241
1242 2001-10-23 Andreas Schwab <schwab@suse.de>
1243
1244 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1245 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1246
1247 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1248
1249 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
1250 REAL_END. Notice if cursor gets overwritten.
1251 (notice_overwritten_cursor): Take X positions as parameters.
1252 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1253 around call to x_draw_glyphs.
1254
1255 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1256
1257 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1258 instead of C) and usage.
1259
1260 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1261 of C) and usage.
1262
1263 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1264 `left', `max_width' and `max_height'.
1265
1266 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1267
1268 * xdisp.c (display_line): For a tab continued to the next line,
1269 set row's ends_in_middle_of_char_p.
1270
1271 2001-10-22 Gerd Moellmann <gerd@gnu.org>
1272
1273 * xdisp.c (display_line): Fix computation of continuation lines
1274 width for TABs.
1275
1276 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1277
1278 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1279 `Qlaplace'.
1280
1281 * fileio.c: Remove unused code.
1282
1283 2001-10-22 Miles Bader <miles@gnu.org>
1284
1285 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1286 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1287 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1288
1289 2001-10-21 Jason Rumney <jasonr@gnu.org>
1290
1291 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1292
1293 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1294
1295 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1296 (Finsert_string): Avoid the multi-line string literals warning.
1297
1298 2001-10-22 Miles Bader <miles@gnu.org>
1299
1300 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1301 (Fdocumentation): Don't use it.
1302 (syms_of_doc): Don't initialize it.
1303
1304 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1305 * print.c (Fwith_output_to_temp_buffer): Likewise.
1306 * window.c (Fsave_window_excursion): Likewise.
1307 * editfns.c (Fsave_excursion, Fsave_current_buffer)
1308 (Fsave_restriction): Likewise.
1309 * eval.c (Frun_hooks, Frun_hook_with_args)
1310 (Frun_hook_with_args_until_failure)
1311 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1312 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1313 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
1314 (Funwind_protect, Fcondition_case): Likewise.
1315 * coding.c (Ffind_operation_coding_system): Likewise.
1316 * keyboard.c (Ftrack_mouse): Likewise.
1317
1318 2001-10-21 Miles Bader <miles@gnu.org>
1319
1320 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
1321 (Fmake_hash_table): Add usage: string to doc string.
1322 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
1323 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
1324 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1325 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1326 (Fml_prefix_argument_loop): Likewise.
1327
1328 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1329
1330 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
1331
1332 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1333 style' [w/`doc:' keyword].
1334
1335 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1336 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1337 comments to `new style' [w/`doc:' keyword].
1338
1339 2001-10-21 Jason Rumney <jasonr@gnu.org>
1340
1341 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1342
1343 * w32term.c (remember_mouse_glyph): New function.
1344 (w32_mouse_position): Use it.
1345 (note_mouse_movement): If the mouse moved off the glyph, remember
1346 its new position.
1347
1348 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1349 (w32_display_info): Add mouse_face_overlay.
1350
1351 * w32term.c (notice_overwritten_cursor): Renamed from
1352 note_overwritten_text_cursor. Rewritten to take glyph widths into
1353 account.
1354 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1355 (fast_find_string_pos): New function.
1356 (fast_find_position): Return the correct vpos. Add parameter
1357 STOP. In the final row, stop before glyphs having STOP as object.
1358 Don't consider glyphs that are not from a buffer.
1359 (fast_find_position) [0]: Add a presumably more correct version
1360 for after 21.1.
1361 (expose_window_tree, expose_frame): Don't compute intersections here.
1362 (expose_window): Do it here instead.
1363 (expose_window_tree, expose_window, expose_line): Return 1 when
1364 overwriting mouse-face.
1365 (expose_window): If W is the window currently being updated, mark
1366 the frame garbaged.
1367 (expose_frame): If mouse-face was overwritten, redo it.
1368 (x_use_underline_position_properties): New variable.
1369 (syms_of_xterm): DEFVAR_BOOL it.
1370 (x_draw_glyph_string): Add comment to use it in future.
1371 (x_draw_glyph_string): Restore clipping after drawing box.
1372 Fix a computation of the underline position.
1373 (w32_get_glyph_string_clip_rect): Minor cleanup.
1374 (x_fill_stretch_glyph_string): Remove an assertion.
1375 (x_produce_glyphs): Don't convert multibyte characters
1376 to unibyte characters in unibyte buffers.
1377 (cursor_in_mouse_face_p): New function.
1378 (x_draw_stretch_glyph_string): Use it to choose a different GC
1379 when drawing a cursor within highlighted text. Don't draw
1380 background again if it has already been drawn.
1381 (x_draw_glyph_string_box): Don't draw a full-width
1382 box just because the glyph row's full_width_p flag is set.
1383 (x_draw_glyphs): Fix computation of rightmost x for
1384 full-width rows.
1385 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1386 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1387 change bottom shadow accordingly. Some cleanup.
1388 (x_update_window_end): Handle overwritten mouse face
1389 also for tool bar windows.
1390 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1391 DRAW is DRAW_IMAGE_RAISED.
1392 (clear_mouse_face): Return 1 if text with mouse face was
1393 actually redrawn. Make the function static. Reset
1394 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1395 optimize away highlighting if we pass over that same overlay again.
1396 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1397 to detect a case where we have to highlight a different region
1398 despite not having left the currently highlighted region.
1399 Set mouse_face_overlay in the x_display_info. Avoid changing the
1400 mouse pointer shape when show_mouse_face has already done it, or
1401 there is no need. Handle mouse-face and help-echo in strings.
1402 (glyph_rect): New function.
1403 (w32_mouse_position): Use it to raise the threshold for mouse
1404 movement event generation.
1405 (w32_initialize_display_info): Initialize the x_display_info's
1406 mouse_face_overlay.
1407 (w32_set_vertical_scroll_bar): Don't clear a zero height
1408 or width area.
1409 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1410 a widget to zero height.
1411
1412 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
1413 Protect unibyte strings created by replacing their multibyte
1414 equivalents in menu_items.
1415 (w32_menu_show): Don't overwrite an item's name with its key
1416 description in case the description is a multibyte string.
1417 (single_submenu): Some cleanup.
1418
1419 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1420 (postprocess_image): New function.
1421 (lookup_image): Call it for all image types except PostScript.
1422 (x_kill_gs_process): Call postprocess_image.
1423 (tiff_error_handler, tiff_warning_handler): New functions.
1424 (tiff_load): Install them as handlers.
1425 (x_kill_gs_process): Recognize if someone has cleared the image
1426 cache under us.
1427 (valid_image_p): Protect better against invalid image
1428 specifications. Previous code could signal an error.
1429 (Fx_hide_tip, Fshow_tip): Doc fix.
1430 (Fv_max_tooltip_size): New variable.
1431 (syns_of_xfns): DEFVAR_LISP it.
1432 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1433 window buffer to *tip* right after creating the frame. Set frame's
1434 window_width. Use a maximum tooltip size specified by
1435 Vx_max_tooltip_size, if that has valid contents.
1436 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1437 Make sure the tooltip is completely visible.
1438 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1439 (Fx_create_frame): Adjust the frame's height for presence
1440 of the tool bar before calling x_figure_window_size.
1441 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1442 when the window gets smaller.
1443 (x_set_foreground_color): Set frame's cursor_pixel.
1444 (x_set_foreground_color, x_set_background_color): Cleaned up.
1445 (x_set_font): Handle case of x_new_fontset returning the same name
1446 as before, although there was a change in fontsets.
1447
1448 2001-10-21 Miles Bader <miles@gnu.org>
1449
1450 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
1451 (Flogxor): Add usage: string to doc string.
1452 * charset.c (Fstring): Likewise.
1453 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1454 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1455
1456 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1457
1458 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1459
1460 * alloc.c: Reindent DEFUNs with doc: keywords.
1461
1462 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1463
1464 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1465 keyword].
1466
1467 2001-10-20 Gerd Moellmann <gerd@gnu.org>
1468
1469 * (Version 21.1 released.)
1470
1471 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1472
1473 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
1474
1475 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1476 0 because unused.
1477
1478 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
1479 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1480 Change doc-string comments to `new style' [w/`doc:' keyword].
1481
1482 2001-10-20 Miles Bader <miles@gnu.org>
1483
1484 The following changes remove the glyph_row `inverse_p' field,
1485 which is never set anymore, due to other changes:
1486
1487 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1488 (reassert_line_highlight, change_line_highlight): Declarations removed.
1489 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
1490 (line_hash_code, row_equal_p, fake_current_matrices)
1491 (build_frame_matrix_from_leaf_window, update_frame_line)
1492 (update_frame_line, update_frame_line, update_frame_line):
1493 Don't use `inverse_p' field.
1494 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1495 change_line_highlight_hook.
1496 (XTreassert_line_highlight, x_change_line_highlight):
1497 Functions removed.
1498 (x_fix_overlapping_area, x_write_glyphs, expose_area)
1499 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1500 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1501 `inverse_p' field.
1502 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
1503 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1504 (w32_reassert_line_highlight, x_change_line_highlight):
1505 Functions removed.
1506 * w32console.c (reassert_line_highlight, change_line_highlight):
1507 Functions removed.
1508 (initialize_w32_display): Don't set reassert_line_highlight_hook
1509 or change_line_highlight_hook.
1510 (hl_mode): Function removed.
1511 (reset_terminal_modes, set_terminal_modes, update_begin)
1512 (update_end, w32_face_attributes, initialize_w32_display):
1513 (clear_frame, ins_del_lines): Don't call it.
1514 * termhooks.h (reassert_line_highlight_hook)
1515 (change_line_highlight_hook): Declarations removed.
1516 * term.c (reassert_line_highlight_hook)
1517 (change_line_highlight_hook): Variables removed.
1518 (reassert_line_highlight, change_line_highlight): Functions removed.
1519 * msdos.c (IT_reassert_line_highlight)
1520 (IT_change_line_highlight): Functions removed.
1521 (internal_terminal_init): Don't set reassert_line_highlight_hook
1522 or change_line_highlight_hook.
1523 (highlight): Variable removed.
1524 (IT_set_face, IT_update_begin, IT_update_end)
1525 (IT_set_terminal_modes): Don't set or use it.
1526
1527 The following changes remove inverse-video support for terminals
1528 that use a `magic cookie' standout mode. Due to changes in the
1529 way mode-lines are displayed, such support no longer works
1530 anyway, and it's probable that almost no one uses such terminals
1531 anymore:
1532
1533 * term.c (standout_requested): Variable removed.
1534 (update_end, highlight_if_desired): Don't use it.
1535 (chars_wasted, copybuf): Variables removed.
1536 (write_standout_marker): Function removed.
1537 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
1538 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1539 Don't use `chars_wasted' or `copybuf'.
1540 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1541 Set `costs_set' to true.
1542 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1543 `chars_wasted'.
1544 (clear_end_of_line): Function removed.
1545 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1546 (clear_to_end): Call `clear_end_of_line' instead of
1547 `clear_end_of_line_raw'.
1548 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1549 (term_init): Don't set them.
1550 Turn off any standout/underline modes that require magic cookies.
1551 (ins_del_lines, highlight_if_desired, background_highlight)
1552 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1553 Remove special processing for magic-cookie standout modes.
1554 (turn_off_face, turn_on_face): Remove special processing for
1555 underline magic-cookie glitch.
1556
1557 2001-10-19 Richard M. Stallman <rms@gnu.org>
1558
1559 * eval.c (syms_of_eval): Doc fixes.
1560
1561 2001-10-19 Gerd Moellmann <gerd@gnu.org>
1562
1563 * xdisp.c (redisplay_internal): Don't clear echo area if the
1564 mini-window is selected.
1565
1566 2001-10-19 Miles Bader <miles@gnu.org>
1567
1568 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1569 doesn't take precedence if the affected property's value is nil.
1570
1571 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1572
1573 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1574 with fields and suggest using `forward-line' to avoid them.
1575 * editfns.c (Fline_beginning_position, Fline_end_position):
1576 Clarify documentation.
1577
1578 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1579
1580 * keymap.c (current_minor_maps): `override' only shadows its
1581 correspondent in minor-mode-map-alist, not the whole tail.
1582
1583 2001-10-18 Andrew Innes <andrewi@gnu.org>
1584
1585 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1586 optimization. The fontp->encoding array was not being initialized
1587 correctly when compiled with optimizations by MSVC.
1588
1589 2001-10-18 Gerd Moellmann <gerd@gnu.org>
1590
1591 * xdisp.c (display_line): Indicate empty lines in active mini-window.
1592
1593 2001-10-17 Andrew Innes <andrewi@gnu.org>
1594
1595 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1596
1597 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1598 font_info.charset field.
1599
1600 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1601 rather than working it out by calling w32_codepage_for_font for
1602 every glyph.
1603
1604 2001-10-17 Andrew Innes <andrewi@gnu.org>
1605
1606 * w32term.c (w32_read_socket): Determine clipping rectangle for
1607 the entire frame, including areas covered by scrollbars and the
1608 menubar. This avoids internal arguments about whether a frame is
1609 fully obscured or not.
1610
1611 2001-10-17 Gerd Moellmann <gerd@gnu.org>
1612
1613 * xdisp.c (try_window_id): Undo last change. Give up if
1614 window ends in strings.
1615
1616 * xdisp.c (try_window_id): Don't display lines after the window
1617 end if the rest of the window after the window end was already blank.
1618
1619 * xdisp.c (try_window_id): Remove code that was only there
1620 for the release of 21.1.
1621
1622 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
1623
1624 2001-10-17 Miles Bader <miles@gnu.org>
1625
1626 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1627 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1628 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1629 Change doc-string comments to `new style' [w/`doc:' keyword].
1630 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1631 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1632 out make-docfile.
1633
1634 2001-10-16 Miles Bader <miles@gnu.org>
1635
1636 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1637
1638 2001-10-16 Gerd Moellmann <gerd@gnu.org>
1639
1640 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1641 *scratch*.
1642
1643 2001-10-16 Ken Raeburn <raeburn@gnu.org>
1644
1645 Avoid the assumption that car and cdr slots of cons cells are
1646 addressable lvalues; this allows for easier experimentation with
1647 other lisp implementations that may not permit such accesses for
1648 various reasons. Not quite complete -- buffer.c still needs some
1649 work, and w32/mac files need rechecking -- so compile-time
1650 enforcement is left disabled for now.
1651
1652 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
1653 gcc with a union-based Lisp object rep. Redefine as no-op for now.
1654 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1655 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1656 (XSETCAR, XSETCDR): New macros.
1657 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1658 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1659 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1660 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1661 XSETCDR.
1662 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
1663 * buffer.c (record_buffer, Fbury_buffer)
1664 (swap_out_buffer_local_variables, recenter_overlay_lists)
1665 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
1666 fields of a cons cell respectively.
1667 * callint.c (quotify_args, Fcall_interactively): Likewise.
1668 * ccl.c (Fregister_code_conversion_map): Likewise.
1669 * coding.c (detect_coding_system): Likewise.
1670 * composite.c (get_composition_id, make_composition_value_copy):
1671 Likewise.
1672 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1673 (swap_in_symval_forwarding, set_internal, Fset_default)
1674 (Fmake_variable_buffer_local, Fmake_local_variable)
1675 (Fmake_variable_frame_local): Likewise.
1676 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
1677 * keymap.c (Fset_keymap_parent, store_in_keymap)
1678 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
1679 * minibuf.c (get_minibuffer): Likewise.
1680 * search.c (Fmatch_data): Likewise.
1681 * textprop.c (extend_property_ranges): Likewise.
1682 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
1683 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1684 Likewise.
1685 * w32term.c (x_delete_display): Likewise.
1686 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1687 Likewise.
1688 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
1689 * doc.c (store_function_docstring): Use XSETCARFASTINT.
1690 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
1691 (Fread_file_name): Use XSETCAR.
1692 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1693 CHECK_NUMBER_CDR.
1694 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1695 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1696 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1697 CHECK_NUMBER_CDR.
1698 * keyboard.c (read_char): Alter list traversal to avoid taking the
1699 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1700 (parse_menu_item): Use XSETCAR and XSETCDR.
1701 (reach_char_x_menu_prompt): Use XSETCAR.
1702 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1703 (Fcommand_execute): Use XSETCDR.
1704 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1705 (openp): Change list traversal to avoid using XCAR as lvalue.
1706 (read_list): Use XSETCDR.
1707 * process.c (wait_reading_process_input): Change wait_for_cell
1708 handling to avoid taking addresses of cons cell slots.
1709 * xselect.c (x_own_selection, x_handle_selection_clear)
1710 (x_clear_frame_selections): Use XSETCDR.
1711 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1712 (x_handle_property_notify, x_get_foreign_selection)
1713 (x_handle_selection_notify): Use XSETCAR.
1714
1715 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1716
1717 * buffer.c: Put doc strings in comments.
1718
1719 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
1720
1721 2001-10-15 Sam Steingold <sds@gnu.org>
1722
1723 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1724
1725 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1726
1727 * process.c (process-inherit-coding-system-flag)
1728 (get-buffer-process): Do not confuse make-docfile with doc strings
1729 in comment.
1730
1731 * editfns.c (Fchar_to_string): Make doc string consistent with
1732 arguments. Put doc strings in comments.
1733
1734 * abbrev.c, minibuf.c: Put doc strings in comments.
1735
1736 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1737
1738 * window.c (window_loop): Don't check for Fother_buffer returning nil.
1739
1740 * window.c (select_window_1): Unfreeze window start. Remove a
1741 doubled test for WINDOW being live.
1742
1743 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1744
1745 * fns.c (Fmapconcat): Fix typo in a doc string.
1746
1747 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1748
1749 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1750
1751 * xterm.c (x_draw_glyph_string): Restore clipping after
1752 drawing box.
1753
1754 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1755
1756 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
1757
1758 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1759
1760 * indent.c (skip_invisible): Use new retval of
1761 TEXT_PROP_MEANS_INVISIBLE.
1762
1763 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1764 If a parent is reached and noinherit is set, exit immediately.
1765 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1766
1767 * s/ms-w32.h (EXEC_SUFFIXES):
1768 * s/msdos.h (EXEC_SUFFIXES):
1769 * process.h (EXEC_SUFFIXES): Remove.
1770
1771 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1772 (decode_suffixes): Remove.
1773
1774 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
1775 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1776 (invisible_ellipsis_p): Remove.
1777
1778 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1779 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1780 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
1781 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1782 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
1783
1784 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1785
1786 * lisp.h (Ftop_level): Add prototype.
1787
1788 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1789 (XTread_socket): Improve style of comments to follow other
1790 comments.
1791
1792 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1793 is already prototyped in included lisp.h).
1794
1795 * frame.c (Fset_mouse_position): Improve style of comment to
1796 follow other comments.
1797 (Fset_mouse_pixel_position): Improve style of comment to follow
1798 other comments.
1799 (Fmake_frame_visible): Doc fix and typo in comment.
1800 (Fmake_frame_invisible): Doc fix and typo in comment.
1801 (Ficonify_frame): Fix typo in comment.
1802
1803 2001-10-14 Gerd Moellmann <gerd@gnu.org>
1804
1805 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
1806 * term.c, alloc.c: Put doc strings in comments.
1807
1808 2001-10-13 Gerd Moellmann <gerd@gnu.org>
1809
1810 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1811 Provide definitions for doc strings in comments.
1812
1813 * fns.c: Put doc strings in comments.
1814
1815 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1816
1817 * dired.c (file_name_completion): Ignore a candidate directory if
1818 it matches an element in completion-ignored-extensions that ends
1819 in a slash.
1820 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1821 feature in the doc string.
1822 (Ffile_name_completion): Ditto.
1823
1824 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1825
1826 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1827
1828 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1829
1830 * lisp.h (Fprovide): Update prototype.
1831 (Ffeaturep, invisible_p): Remove.
1832
1833 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
1834 (DOLIST, LOOP_PROPVAL): New macros.
1835 (invisible_p, invisible_ellipsis_p): Use them.
1836 (invisible_noellipsis_p): New function.
1837 (syms_of_xdisp): Use empty_string.
1838
1839 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1840
1841 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1842 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1843
1844 * print.c (Fwith_output_to_temp_buffer): Align with
1845 internal_with_output_to_temp_buffer.
1846 (print_preprocess): Use traverse_intervals_noorder.
1847 (print_object): Update call to traverse_intervals.
1848
1849 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1850 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1851
1852 * intervals.c (traverse_intervals_noorder): New function.
1853 (search_for_interval, count_intervals): Use it.
1854 (traverse_intervals): Use less stack space and drop `depth' arg.
1855
1856 * fns.c (Ffeaturep): Add new `subfeature' arg.
1857 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1858 (Qsubfeatures): New var.
1859 (syms_of_fns): Initialize it.
1860
1861 * keymap.c (Fkey_description): Use empty_string.
1862 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1863 (syms_of_keymap): Setup inheritance between maps.
1864 Don't export Sdescribe_bindings_internal any more.
1865
1866 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1867
1868 2001-10-12 Gerd Moellmann <gerd@gnu.org>
1869
1870 * xterm.c (notice_overwritten_cursor): Renamed from
1871 note_overwritten_text_cursor. Rewritten to take glyph widths into
1872 account.
1873
1874 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1875
1876 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1877 multi-line strings without a trailing "\n\".
1878
1879 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1880
1881 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1882 defined.
1883
1884 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1885
1886 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1887
1888 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1889 * w32proc.c (sys_spawnve):
1890 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1891 * w32.c (check_windows_init_file):
1892 * sound.c (Fplay_sound):
1893 * emacs.c (init_cmdargs):
1894 * process.c (Fstart_process): Update calls to openp.
1895
1896 * callproc.c (Vexec_suffixes): New var.
1897 (Fcall_process): Update call to openp.
1898 (decode_suffixes): New function.
1899 (syms_of_callproc): Init exec-suffixes.
1900
1901 * lread.c (Vload_suffixes, default_suffixes): New vars.
1902 (openp): Take a lisp list of suffixes.
1903 Check for file-name-handlers even if the file was absolute already.
1904 (syms_of_lread): Declare load-suffixes.
1905 (Fload): Fix up call to openp.
1906 Don't bother checking for file-name-handler at the very beginning.
1907
1908 * keymap.h (Fcopy_keymap): Don't export.
1909
1910 * lisp.h (empty_string): Declare.
1911 (Vload_suffixes, Vexec_suffixes): Declare.
1912 (openp): Update prototype.
1913
1914 * emacs.c (empty_string): New var.
1915 (syms_of_emacs): Initialize it.
1916
1917 * search.c (wordify): Use it.
1918
1919 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1920 selected window if it's not displayed there. Handle the case
1921 when the window is dedicated.
1922 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1923
1924 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1925
1926 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1927 Remove left_ok and right_ok.
1928 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1929 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1930 new meaning of b_property.
1931
1932 * syntax.c (update_syntax_table): Simplify.
1933 (Fforward_comment): Don't skip quoted chars when going backward.
1934
1935 2001-10-11 Gerd Moellmann <gerd@gnu.org>
1936
1937 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1938 in case I is of some unsigned type, in which case
1939 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1940 comparison becomes bogus.
1941
1942 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1943 (Fuser_full_name): Fix bug treating a float as a fixnum.
1944
1945 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1946
1947 * lisp.h (make_fixnum_or_float): New macro.
1948
1949 * lisp.h (circular_list_error): Add prototype.
1950
1951 * data.c (Qcircular_list): New variable.
1952 (circular_list_error): New function.
1953 (syms_of_data): Initialize it Qcircular_list.
1954
1955 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1956
1957 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1958 casefiddle.c, buffer.c: Include keymap.h.
1959
1960 2001-10-10 Gerd Moellmann <gerd@gnu.org>
1961
1962 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1963 options. From Dave Love <d.love@dl.ac.uk>.
1964
1965 2001-10-09 Gerd Moellmann <gerd@gnu.org>
1966
1967 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1968 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1969
1970 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1971 unsigned char.
1972 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1973
1974 2001-10-08 Andrew Innes <andrewi@gnu.org>
1975
1976 * lisp.h [max]: Undef min and max before redefining them.
1977
1978 * w32gui.h: Do not undef min and max.
1979
1980 * w32heap.h: Do not undef min and max.
1981
1982 * s/ms-w32.h: Do not undef min and max.
1983
1984 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1985
1986 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1987
1988 2001-10-08 Sam Steingold <sds@gnu.org>
1989
1990 * keymap.c (current-active-maps): Quote newlines (compilation error).
1991
1992 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1993
1994 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1995 bindings.elc, since otherwise doc strings in bindings.el get wrong
1996 offsets in etc/DOC.
1997
1998 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1999
2000 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2001
2002 * keyboard.h (map_prompt): Remove.
2003
2004 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
2005 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
2006
2007 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2008
2009 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2010
2011 * keyboard.c (map_prompt): Remove.
2012 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2013 Use Fkeymap_prompt.
2014
2015 * keymap.h: New file. Extracted from lisp.h.
2016
2017 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2018 (accessible_keymaps_1): New function.
2019 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2020 (Fwhere_is_internal): Use Fcurrent_active_maps.
2021 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2022 Insert in current buffer rather than standard-output.
2023 Don't call `help-mode'. Export to elisp.
2024 (describe_buffer_bindings): New wrapper.
2025 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2026 and Sdescribe_buffer_bindings.
2027
2028 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2029
2030 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
2031 Remove code setting signal handler.
2032
2033 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
2034 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2035
2036 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2037
2038 * keyboard.c: Don't define min/max.
2039
2040 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2041
2042 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
2043 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
2044 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
2045 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
2046 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
2047 Don't define min/max.
2048
2049 * lisp.h (min, max): New macros.
2050
2051 * puresize.h (BASE_PURESIZE): Increase to 725000.
2052
2053 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2054
2055 * xfaces.c (free_frame_menubar): Add prototype.
2056
2057 * lisp.h (init_window): Add prototype.
2058
2059 * editfns.c: Include ctype.h.
2060
2061 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
2062 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
2063 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2064 variable `sb'.
2065
2066 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2067 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2068 `popup_activated_flag' and `title'.
2069
2070 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2071
2072 * emacs.c (main): Remove extra `;'.
2073
2074 * atimer.h (struct atimer): Fix typos in a comment.
2075
2076 * atimer.c: Fix typo.
2077
2078 * Makefile.in: Fix typo.
2079
2080 * README: Remove obsolete part mentioning removed VMS file.
2081
2082 2001-10-07 Miles Bader <miles@gnu.org>
2083
2084 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2085
2086 2001-10-07 Ken Raeburn <raeburn@gnu.org>
2087
2088 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2089 Lisp_Object.
2090
2091 * lisp.h (Ffield_end): Declare.
2092
2093 2001-10-07 Gerd Moellmann <gerd@gnu.org>
2094
2095 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2096
2097 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2098
2099 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2100
2101 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2102
2103 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2104 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2105
2106 * alloc.c (inhibit_garbage_collection): Simplify.
2107 (Fmemory_use_counts): Ditto.
2108
2109 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
2110 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2111 most-negative-fixnum.
2112
2113 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
2114 (FIXNUM_OVERFLOW_P): New macros.
2115
2116 2001-10-06 Miles Bader <miles@gnu.org>
2117
2118 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2119 scroll_bar_bottom_shadow_pixel fields.
2120 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2121 for the shadows, and tell the toolkit about them if we succeed.
2122 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2123 Free scroll-bar shadow colors.
2124 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2125 Free scroll-bar shadow colors when the background color changes.
2126 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2127 Initialize scroll-bar shadow-color fields.
2128
2129 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2130
2131 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2132
2133 2001-10-05 Miles Bader <miles@gnu.org>
2134
2135 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2136 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
2137 New functions (were in simple.el).
2138 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2139 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2140 (syms_of_minibuf): Initialize them.
2141
2142 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2143
2144 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2145 (tiff_load): Install them as error and warning handler.
2146
2147 2001-10-04 Andrew Innes <andrewi@gnu.org>
2148
2149 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2150 (w32_load_system_font): Don't believe what GetLanguageFontInfo
2151 says; query codepage info directly to determine if font is double byte.
2152 (x_to_w32_charset): Handle private format for unknown charsets.
2153 Handle wildcards in charset spec, by ignoring them.
2154 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2155 "*-" prefix from charset.
2156 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2157 handle the truncated font spec form constructed by font_list_1, so
2158 that we correctly identify the charset fields. Don't remove "*-"
2159 prefix from charset.
2160 (w32_list_synthesized_fonts): Fix argument to alloca.
2161
2162 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2163
2164 * window.h (MINI_WINDOW_P): Use NILP.
2165
2166 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2167
2168 * termhooks.h (struct input_event): Use proper type for `kind'.
2169
2170 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2171
2172 This handles unknown keysyms better than before. For example,
2173 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2174 Emacs formerly completely ignored F5. With the change, it derives
2175 a key symbol from the name of the X keysym, `ccaron' in this case.
2176 Reported by Martin Buchholz.
2177
2178 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2179 unknown keysyms.
2180
2181 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2182 that EVENT->code isn't a function key, use the keysym's name.
2183
2184 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2185
2186 FOREACH is a macro that should make it easier to loop over Lisp
2187 lists with checks for cycles and proper lists.
2188
2189 * lisp.h (LIST_END_P, FOREACH): New macros.
2190
2191 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2192
2193 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2194 called for a lost connection. Prevent dumping core in this case.
2195 Instead print the X error, and exit. On user request.
2196
2197 * xterm.c (error_msg): New variable.
2198 (x_fatal_error_signal): New function.
2199 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2200 as fatal_error_signal_hook around the call to XtCloseDisplay.
2201
2202 * emacs.c (fatal_error_signal_hook): New variable.
2203 (fatal_error_signal): Call that function.
2204
2205 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2206
2207 With this, Emacs prints how much pure storage it will
2208 approximately need in case pure storage overflows while dumping.
2209
2210 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2211 New variables.
2212 (init_alloc_once): Initialize new variables.
2213 (PURE_POINTER_P): Use new variables.
2214 (pure_alloc): If pure storage overflows, allocate from the heap.
2215 (check_pure_size): New function.
2216 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2217
2218 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2219 (check_pure_size): Add prototype.
2220
2221 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2222
2223 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2224
2225 This adds a post-gc-hook that's run with GC inhibited.
2226 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2227
2228 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2229 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2230 (Fgarbage_collect): Run post-gc-hook.
2231
2232 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2233
2234 This adds `defvaralias' and `indirect-variable'. Changes not
2235 directly related to this feature are there to gain the same
2236 performance again as before variable aliases.
2237
2238 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2239 code to get and set symbol values, to take defvaralias into account.
2240
2241 (Note: the new `constant' bit-flag in symbols would make it
2242 possible to define arbitrary read-only variables, e.g. with
2243 `defconst'.)
2244
2245 Documentation is in lispref/variables.texi. Added to NEWS.
2246
2247 * lisp.h (enum symbol_interned): New enumeration.
2248 (struct Lisp_Symbol): Remove member `obarray', add
2249 `indirect_variable', `constant', and `interned'.
2250 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2251 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2252 (indirect_variable): Add prototype.
2253
2254 * print.c (print_preprocess, print_object): Test internedness of
2255 symbols differently.
2256
2257 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2258 bit-fields.
2259 (init_obarray): Likewise for t and nil.
2260
2261 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2262 (Fdefvaralias): New function.
2263 (specbind): Simplify the test if symbol is a constant.
2264 (syms_of_eval): Defsubr Fdefvaralias.
2265
2266 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2267 (Qcyclic_variable_indirection): New variable.
2268 (Fkeywordp): Check for internedness differently.
2269 (Fmakunbound): Simplify the test if symbol is a constant.
2270 (indirect_variable, Findirect_variable): New functions.
2271 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2272 aliased symbol.
2273 (let_shadows_buffer_binding_p): Check for variable aliases.
2274 (set_internal): Simplify the test if SYMBOL is a constant.
2275 If SYMBOL has a buffer-local value and is an alias, use the aliased
2276 symbol instead.
2277 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2278 Sindirect_variable.
2279
2280 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2281 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2282 set directly.
2283
2284 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2285
2286 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2287 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2288 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2289
2290 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2291
2292 * Branch for 21.1.
2293
2294 2001-10-03 Miles Bader <miles@gnu.org>
2295
2296 * callproc.c (syms_of_callproc): Explicitly state in the
2297 documentation for `process-environment' that earlier entries take
2298 precedence over later ones.
2299
2300 2001-10-02 Miles Bader <miles@gnu.org>
2301
2302 * textprop.c (Fnext_char_property_change)
2303 (Fprevious_char_property_change): Remove reference to non-existant
2304 argument OBJECT from doc-string.
2305
2306 2001-10-01 Gerd Moellmann <gerd@gnu.org>
2307
2308 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2309 (try_window_id): Skip back over lines ending in a newline from a
2310 string.
2311
2312 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2313 New bit flag
2314
2315 2001-10-01 Richard M. Stallman <rms@gnu.org>
2316
2317 * search.c (Freplace_match): Doc fix.
2318
2319 2001-09-28 Andrew Innes <andrewi@gnu.org>
2320
2321 * w32menu.c (set_frame_menubar): Take into account that
2322 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2323 <raeburn@gnu.org>.
2324
2325 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2326
2327 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2328
2329 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2330
2331 * s/gnu-linux.h: Fix a typo in comment.
2332
2333 2001-09-28 Andreas Schwab <schwab@suse.de>
2334
2335 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2336 nocombreloc, in case -z combreloc is the default.
2337
2338 2001-09-28 Gerd Moellmann <gerd@gnu.org>
2339
2340 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2341 really going on here.
2342
2343 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2344
2345 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2346
2347 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2348
2349 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2350 utf-8, menu-bar, and latin-N.
2351 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2352 unconditionally now.
2353 (lisp): Add latin-N, since they are preloaded.
2354
2355 2001-09-27 Gerd Moellmann <gerd@gnu.org>
2356
2357 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2358 to the left. Some cleanup.
2359
2360 * xdisp.c (display_mode_element): One more case where a string's
2361 multibyteness should be used for display.
2362
2363 2001-09-26 Gerd Moellmann <gerd@gnu.org>
2364
2365 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2366 reading at EOF.
2367
2368 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
2369 of the only temporarily set echoing flag for deciding when
2370 the cancel echoing.
2371
2372 * keyboard.c (echo_kboard): Make externally visible.
2373
2374 * lisp.h (echo_kboard): Declare extern.
2375
2376 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
2377 fonts_changed_p if we need larger matrices due to vscrolling.
2378 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2379 this round of redisplay if make_cursor_line_fully_visible fails.
2380 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
2381 (try_cursor_movement, try_scrolling): Use them instead of integers.
2382
2383 * dispextern.h (required_matrix_width, required_matrix_height):
2384 Add prototypes.
2385
2386 * dispnew.c (required_matrix_width, required_matrix_height):
2387 New functions.
2388 (allocate_matrices_for_window_redisplay)
2389 (allocate_matrices_for_frame_redisplay: Use them.
2390 Remove parameters CH_DIM.
2391
2392 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2393 and selected_window to the frame of the window whose mode-lines
2394 are displayed, and to the window itself.
2395 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
2396 here.
2397
2398 2001-09-25 Gerd Moellmann <gerd@gnu.org>
2399
2400 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2401 the image cache under us.
2402
2403 * xdisp.c (display_mode_element): If the mode element is a symbol
2404 with a string value, use that string's multibyteness for displaying.
2405
2406 * keyboard.c (read_char): Don't clear a message for a switch-frame
2407 event. From Stefan Monnier <monnier@cs.yale.edu>.
2408
2409 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2410 version for after 21.1.
2411
2412 * xdisp.c (row_containing_pos): Make externally visible.
2413
2414 * dispextern.h (row_containing_pos): Add prototype.
2415
2416 * process.c (send_process): Disable composition if from_byte < 0.
2417 From Kenichi Handa <handa@etl.go.jp>.
2418
2419 2001-09-24 Gerd Moellmann <gerd@gnu.org>
2420
2421 * xterm.c (refreshicon): Function removed.
2422
2423 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2424
2425 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2426
2427 * xterm.c (toplevel): Remove includes in #if 0.
2428
2429 * process.c (sigchld_handler) [LINUX]: Don't return from
2430 the signal handler at the end of the loop.
2431
2432 2001-09-21 Gerd Moellmann <gerd@gnu.org>
2433
2434 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2435 Terminate only if kill returns -1, and errno is ESRCH.
2436
2437 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
2438
2439 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2440
2441 2001-09-20 Gerd Moellmann <gerd@gnu.org>
2442
2443 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2444 since this function can be called during GC.
2445
2446 * callproc.c (Fcall_process): Handle errors from pipe(2).
2447 (child_setup): Delete code in #ifdef vipc.
2448
2449 2001-09-19 Gerd Moellmann <gerd@gnu.org>
2450
2451 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2452 (display_mode_element): Display the string from decode_mode_spec
2453 depending on its multibyteness.
2454
2455 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2456
2457 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2458
2459 2001-09-18 Gerd Moellmann <gerd@gnu.org>
2460
2461 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2462 recursive_edit_unwind.
2463 (recursive_edit_unwind): Set kboard state according to
2464 SINGLE-KBOARD.
2465
2466 * buffer.c (modify_overlay): Don't do nothing if START == END;
2467 This can still be a modification, for example when an overlay has
2468 a before-string or after-string.
2469 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2470 an overlay with before-string or after-string.
2471
2472 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2473 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2474
2475 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2476 first_unchanged_at_end_row is in front of
2477 last_unchanged_at_beg_row. This code should be removed after the
2478 release of 21.1.
2479
2480 2001-09-17 Gerd Moellmann <gerd@gnu.org>
2481
2482 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2483 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2484
2485 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2486 versions >= 2.95.
2487
2488 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2489
2490 * dired.c (Ffile_attributes): Doc fix.
2491
2492 2001-09-14 Gerd Moellmann <gerd@gnu.org>
2493
2494 * fileio.c (Ffile_symlink_p): Fix last change.
2495
2496 * filelock.c (current_lock_owner): Fix last change.
2497
2498 2001-09-13 Gerd Moellmann <gerd@gnu.org>
2499
2500 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2501 take that to mean that the buffer is too small.
2502
2503 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2504 that to mean that the buffer is too small.
2505
2506 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2507 current buffer's multibyteness when discarding the iterator's
2508 stack.
2509
2510 * xfns.c (Fx_window_property): Handle case that property gets
2511 deleted between the two calls to XGetWindowProperty.
2512
2513 2001-09-11 Gerd Moellmann <gerd@gnu.org>
2514
2515 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
2516
2517 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2518 in addition to read-only.
2519
2520 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2521 to t in addition to read-only.
2522
2523 * lisp.h (Qinhibit_modification_hooks): Declare.
2524
2525 * insdel.c (Qinhibit_modification_hooks): New variable.
2526 (syms_of_insdel): Initialize and staticpro it.
2527
2528 * textprop.c (verify_interval_modification): Don't run
2529 modification-hooks if inhibit_modification_hooks.
2530
2531 * dispnew.c (set_window_cursor_after_update): Fix code
2532 finding glyph row containing cursor when cursor_in_echo_area
2533 is >= 0.
2534
2535 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2536 (add_to_log): Use bcopy instead of strcpy.
2537 (init_from_display_pos): Use an explicit loop over bytes in
2538 overlay strings instead of calling index.
2539
2540 2001-09-10 Gerd Moellmann <gerd@gnu.org>
2541
2542 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2543
2544 * dispnew.c (direct_output_for_insert): Don't change IT's
2545 stop_charpos to something in front of its current position.
2546
2547 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2548 `format'.
2549
2550 2001-09-10 Richard M. Stallman <rms@gnu.org>
2551
2552 * frame.c (Fmouse_position): Doc fix.
2553
2554 2001-09-07 Gerd Moellmann <gerd@gnu.org>
2555
2556 * xdisp.c (init_from_display_pos): Don't compare the result
2557 of calling index with NULL.
2558
2559 2001-09-06 Gerd Moellmann <gerd@gnu.org>
2560
2561 * xfns.c (x_set_background_color): Don't change the colors
2562 of the X window of scroll bar widgets.
2563
2564 2001-09-05 Andrew Innes <andrewi@gnu.org>
2565
2566 * w32fns.c (w32_createwindow): Undo last change.
2567
2568 2001-09-05 Gerd Moellmann <gerd@gnu.org>
2569
2570 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2571
2572 * xdisp.c (string_buffer_position): Use *single_char_property*
2573 functions instead of the *single_property* functions.
2574
2575 2001-09-04 Andrew Innes <andrewi@gnu.org>
2576
2577 * w32term.c (w32_read_socket): Add more information to debugging
2578 output.
2579
2580 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2581 from Emacs frames, so that calls to GetClipBox in w32term.c
2582 correctly report when part of a frame is visible (including
2583 scrollbars, etc). This prevents repeated redrawing of frames when
2584 only a scrollbar is visible.
2585 (w32_wnd_proc): Add more frame information to debugging output.
2586
2587 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2588
2589 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2590
2591 2001-09-03 Gerd Moellmann <gerd@gnu.org>
2592
2593 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2594 help-echo for a string which doesn't have help-echo itself, use
2595 get-char-property to obtain the help-echo from the string's buffer
2596 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2597 have mouse-face, look ``under'' the string for mouse-face from an
2598 overlay.
2599 (fast_find_position): Add parameter STOP. In the final row, stop
2600 before glyphs having STOP as object. Don't consider glyphs that
2601 are not from a buffer.
2602
2603 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2604
2605 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2606
2607 * fns.c (Fmd5): Doc fix.
2608
2609 2001-08-31 Gerd Moellmann <gerd@gnu.org>
2610
2611 * composite.c (update_compositions): Do nothing if
2612 inhibit-modification-hooks is set.
2613
2614 2001-08-30 Gerd Moellmann <gerd@gnu.org>
2615
2616 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
2617 and check_message_stack if terminating abnormally. We want
2618 glyph matrices etc. in a core dump.
2619
2620 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2621 (syms_of_xdisp): Initialize them.
2622 (handle_single_display_prop): Don't change point, bind `object',
2623 `position', and `buffer-position' instead to the object having the
2624 `display' property, position in the object and position in the buffer.
2625
2626 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2627 of the buffer if REPLACE is non-nil.
2628
2629 2001-08-29 Gerd Moellmann <gerd@gnu.org>
2630
2631 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2632
2633 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2634
2635 * w32term.c (x_set_glyph_string_background_width)
2636 (show_mouse_face): Track the last changes in xterm.c.
2637
2638 2001-08-28 Gerd Moellmann <gerd@gnu.org>
2639
2640 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2641 string's background width so that multi-line mouse-face is drawn
2642 to the right edge of the window.
2643 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2644 glyphs.
2645
2646 * dispnew.c (direct_output_for_insert): Set updated_area
2647 before inserting/writing glyphs.
2648
2649 * xdisp.c (display_mode_element): Use string_byte_to_char to
2650 determine character positions in strings, use chars_in_text
2651 instead of strwidth.
2652 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2653 a matrix as parameter; this is easier to use from GDB.
2654
2655 2001-08-28 Miles Bader <miles@gnu.org>
2656
2657 * textprop.c (Fprevious_single_char_property_change)
2658 (Fnext_single_char_property_change): Doc fixes.
2659
2660 2001-08-27 Gerd Moellmann <gerd@gnu.org>
2661
2662 * fileio.c (Finsert_file_contents): Allocate, restore, and
2663 free composition data in the case of REPLACE not being nil.
2664
2665 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2666 there exist overlay strings with newlines at POS.
2667 (text_outside_line_unchanged_p): Return 0 if changes start at
2668 START and overlays exist at START. Likewise for END.
2669 (try_window_id): Give up if init_to_row_end returns 0.
2670
2671 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2672 unconditionally.
2673
2674 2001-08-24 Gerd Moellmann <gerd@gnu.org>
2675
2676 * keymap.c (access_keymap): Return the cdr of the binding of
2677 a generic character instead of its definition (KEY . BINDING).
2678
2679 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2680 to 0 also in the REPLACE case.
2681
2682 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2683
2684 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2685 open to determine whether file is readable (as for DOS_NT).
2686
2687 2001-08-23 Gerd Moellmann <gerd@gnu.org>
2688
2689 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2690 coding.type is coding_type_no_conversion or coding_type_raw_text,
2691 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2692 non-nil instead of just setting enable_multibyte_characters in the
2693 buffer to nil.
2694
2695 2001-08-22 Gerd Moellmann <gerd@gnu.org>
2696
2697 * dispextern.h (struct face_cache): Add member
2698 menu_face_changed_p.
2699
2700 * xfaces.c (menu_face_changed_default): New variable.
2701 (menu_face_changed_count): Variable removed.
2702 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2703 the menu_face_changed_default flag, otherwise set the FRAME's
2704 menu_face_changed_p flag if the `menu' face has been changed.
2705 Prevent calling set_font_frame_param if FRAME is t.
2706 (make_face_cache): Initialize cache's menu_face_changed_p
2707 from menu_face_changed_default.
2708 (realize_basic_faces): Look into the frame's face cache to
2709 determine if the menu appearance needs updating.
2710
2711 * keymap.c (access_keymap): Fix last change to not consider
2712 IDX when it has modifiers.
2713
2714 2001-08-21 Gerd Moellmann <gerd@gnu.org>
2715
2716 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2717 . BINDING) exists, where GENERIC-CHAR is the generic character of
2718 the charset of IDX, return BINDING unless there exists a binding
2719 for IDX itself.
2720
2721 2001-08-16 Gerd Moellmann <gerd@gnu.org>
2722
2723 * xrdb.c (SYSV): Don't define on Solaris 2.
2724 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2725
2726 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2727 of the screen line, not text line, containing IT's current position.
2728
2729 2001-08-15 Gerd Moellmann <gerd@gnu.org>
2730
2731 * window.c (window_scroll_pixel_based): Don't recenter if
2732 PT is partially visible in the window.
2733
2734 * xterm.c (expose_window_tree, expose_window, expose_line):
2735 Return 1 when overwriting mouse-face.
2736 (expose_frame): If mouse-face was overwritten, redo it.
2737
2738 * xfaces.c (x_update_menu_appearance): Don't call
2739 set_frame_menubar, let the next redisplay do it.
2740
2741 2001-08-14 Andrew Innes <andrewi@gnu.org>
2742
2743 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2744 drawing glyph string.
2745
2746 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2747
2748 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2749 running HI-UX/MPP.
2750
2751 2001-08-14 Gerd Moellmann <gerd@gnu.org>
2752
2753 * xfaces.c (x_update_menu_appearance): Save and restore value of
2754 interrupt_input_blocked.
2755
2756 2001-08-13 Gerd Moellmann <gerd@gnu.org>
2757
2758 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2759 a line start, move back to the line start.
2760
2761 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2762 exactly when a mini-buffer is active.
2763
2764 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2765 in units of 1/8 character on non window-system frames.
2766 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2767
2768 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2769
2770 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2771 a doc string.
2772
2773 2001-08-09 Gerd Moellmann <gerd@gnu.org>
2774
2775 * keyboard.c (Vpre_help_message): New variable.
2776 (syms_of_keyboard): Initialize and staticpro it.
2777 (show_help_echo): Record current message before displaying a
2778 help-echo, and restore that message when clearing the help.
2779
2780 * xfns.c (x_create_im): Remove prototype.
2781
2782 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2783
2784 * dispnew.c (adjust_glyph_matrix): Undo last change.
2785
2786 2001-08-08 Gerd Moellmann <gerd@gnu.org>
2787
2788 * dispnew.c (adjust_glyph_matrix): In the optimization for
2789 windows whose height has changed, disable partially visible lines.
2790
2791 2001-08-07 Gerd Moellmann <gerd@gnu.org>
2792
2793 * window.c (Frecenter): If ARG < 0, and on a window system
2794 frame, count in some empty lines when we can't move -ARG lines down.
2795
2796 * xdisp.c (start_display): Don't try to determine the continuation
2797 lines width if lines are truncated. It's superfluous and leads to
2798 incorrect results if POS is not visible in the window after
2799 reseating the iterator at the previous line start.
2800
2801 2001-08-06 Gerd Moellmann <gerd@gnu.org>
2802
2803 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2804
2805 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2806
2807 * alloc.c (init_stack): Remove declaration.
2808
2809 2001-08-03 Gerd Moellmann <gerd@gnu.org>
2810
2811 * keyboard.c (read_key_sequence): Check that key is an integer
2812 before comparing it with quit_char.
2813 (add_command_key): Use larger_vector.
2814 (read_char_x_menu_prompt): Instead of converting symbol and
2815 integer events into conses (EVENT . nil), use (EVENT . disabled)
2816 which cannot be confused with valid events.
2817 (read_char): When reading from Vunread_command_events, check for
2818 events of the form (EVENT . disabled) instead of
2819 (EVENT . nil).
2820
2821 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2822 a float, determine the max height from the frame's height.
2823
2824 2001-08-02 Gerd Moellmann <gerd@gnu.org>
2825
2826 * xdisp.c (redisplay_internal): Take message_cleared_p into
2827 account only if minibuf_level == 0.
2828
2829 2001-08-01 Gerd Moellmann <gerd@gnu.org>
2830
2831 * xdisp.c (redisplay_internal): Add a check for the last
2832 displayed message.
2833
2834 * xdisp.c (message_cleared_p): New variable.
2835 (clear_message): Set message_cleared_p when clearing the current
2836 message.
2837 (redisplay_internal): Look at message_cleared_p to capture
2838 the case that the echo area should be cleared.
2839
2840 * keyboard.c (command_loop_1): Fix spelling of
2841 resize_echo_area_exactly.
2842
2843 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
2844
2845 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2846
2847 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2848 current matrix when the window gets smaller.
2849
2850 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2851
2852 * print.c (strout): Cast the character passed to insert_char to
2853 unsigned char, to avoid sign extension when it is promoted to int.
2854
2855 2001-07-31 Gerd Moellmann <gerd@gnu.org>
2856
2857 * fileio.c (Finsert_file_contents): Don't treat a return value
2858 of 0 from emacs_read as an IO error.
2859
2860 2001-07-30 Gerd Moellmann <gerd@gnu.org>
2861
2862 * keyboard.c (abs): New macro.
2863 (double_click_fuzz): New variable.
2864 (make_lispy_event): Use it to determine what makes a double-click.
2865 (syms_of_keyboard): DEFVAR_INT it.
2866
2867 * xmenu.c (set_frame_menubar): Take into account that
2868 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2869 <raeburn@gnu.org>.
2870
2871 2001-07-27 Gerd Moellmann <gerd@gnu.org>
2872
2873 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2874
2875 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2876 of row's visible height.
2877
2878 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
2879 deal with the first overlay string having an image `display' property.
2880 (try_window_reusing_current_matrix, compute_line_metrics):
2881 Fix computation of row's visible height for the case that part of the
2882 row is invisible above and part of the row is at the same time
2883 invisible below the window.
2884
2885 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2886
2887 * xfns.c (x-show-tip): Doc fix.
2888
2889 * xfns.c (Vx_max_tooltip_size): New variable.
2890 (syms_of_xfns): DEFVAR_LISP it.
2891 (Fx_show_tip): Set frame's window_width to the width of the
2892 window. Use a maximum tooltip size specified by
2893 Vx_max_tooltip_size, if that has valid contents.
2894 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2895
2896 2001-07-26 Andrew Innes <andrewi@gnu.org>
2897
2898 * w32term.c (x_display_list): New variable.
2899 (w32_term_init): Set it.
2900
2901 * w32term.h (x_display_list): New extern.
2902
2903 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2904
2905 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
2906 is non-nil, instead of when redisplaying_p is non-zero.
2907 See comment there.
2908 (mark_window_display_accurate_1): Add an assertion.
2909
2910 2001-07-25 Gerd Moellmann <gerd@gnu.org>
2911
2912 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2913
2914 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2915 events so that we get a chance of processing expose events.
2916
2917 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2918
2919 2001-07-24 Gerd Moellmann <gerd@gnu.org>
2920
2921 * xfns.c (valid_image_p): Protect better against invalid image
2922 specifications. Previous code could signal an error.
2923
2924 2001-07-23 Gerd Moellmann <gerd@gnu.org>
2925
2926 * indent.c (current_column): Fix column computation in the
2927 presence of display table entries.
2928 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2929
2930 * dispnew.c (adjust_glyph_matrix): In the optimization for
2931 windows whose height has changed, use the new window height
2932 to compute which rows to invalidate.
2933
2934 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2935 (MAX_10_EXP): New macro.
2936 (Fformat): Use it.
2937
2938 * coding.c (code_convert_region): Handle the multibyte case if
2939 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2940
2941 2001-07-20 Gerd Moellmann <gerd@gnu.org>
2942
2943 * dispextern.h (struct face): Change type of `stipple' to
2944 int; it's an ID.
2945
2946 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2947
2948 2001-07-19 Gerd Moellmann <gerd@gnu.org>
2949
2950 * dispnew.c (update_window): Don't set the cursor at the end
2951 of the update if display update has been paused.
2952
2953 * composite.h (syms_of_composite): Renamed from syms_of_composition.
2954
2955 2001-07-18 Ken Raeburn <raeburn@gnu.org>
2956
2957 * fns.c (Fset_char_table_default): Check that a charset is defined
2958 before checking its dimension.
2959
2960 2001-07-17 Ken Raeburn <raeburn@gnu.org>
2961
2962 * coding.c (setup_coding_system): Don't do any designation based
2963 on reg_bits if charset is not yet defined.
2964
2965 * lisp.h (XVECTOR): Verify correct object type before returning a
2966 pointer, using eassert.
2967
2968 2001-07-17 Gerd Moellmann <gerd@gnu.org>
2969
2970 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2971 Increase to 4096 because of paste problems reported on GNU/Linux.
2972
2973 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2974
2975 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2976
2977 2001-07-16 Gerd Moellmann <gerd@gnu.org>
2978
2979 * fileio.c (unwind_read): Function removed.
2980 (read_non_regular, read_non_regular_quit): New functions.
2981 (Finsert_file_contents): When reading from non-regular files,
2982 arrange to catch a `quit' and terminate the loop. Rearrange
2983 code so that a `quit' when reading from a regular file doesn't
2984 insert text in the buffer.
2985
2986 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2987 Clear faces afterwards.
2988 (clear_font_table): Take a x_display_info parameter. Don't free
2989 fonts being the default font of any frame on the given display.
2990
2991 2001-07-13 Gerd Moellmann <gerd@gnu.org>
2992
2993 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2994 instead of CHAR_STRING which can signal an error.
2995
2996 * charset.c (char_to_string_1): Extracted from char_to_string.
2997 Return -1 instead of signaling an error.
2998 (char_to_string): Use it.
2999
3000 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3001
3002 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3003
3004 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3005 is t, don't try to append anything to it.
3006
3007 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3008
3009 * dired.c (file_name_completion): Pass dp->d_name to
3010 Fstring_match, not elt, which is always nil here.
3011
3012 2001-07-12 Gerd Moellmann <gerd@gnu.org>
3013
3014 * xselect.c (x_decline_selection_request): Handle errors
3015 caused by receivers that have vanished.
3016
3017 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3018 ignoring events on foreign windows in #if 0. Always dispatch
3019 the event after checking it with x_handle_property_notify.
3020
3021 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
3022 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3023 TRACE macros to facilitate debugging. Add additional trace statements.
3024 (toplevel): Add prototypes for file-local functions.
3025 (x_atom_to_symbol): Remove DPYINFO parameter.
3026
3027 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3028
3029 * w32menu.c (menubar_selection_callback, w32_menu_show):
3030 Initialize `entry' to nil.
3031 (w32_dialog_show): Remove unused `save_wv' variable.
3032 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3033
3034 2001-07-11 Gerd Moellmann <gerd@gnu.org>
3035
3036 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3037
3038 * fileio.c (unwind_read): Print a message when discarding inserted
3039 text or switching the buffer to unibyte. Change parameter.
3040 (Finsert_file_contents): Don't pass VISIT to unwind_read.
3041
3042 * fileio.c (unwind_read): New function.
3043 (Finsert_file_contents): Record it as unwind-function for
3044 the case that reading is interrupted by C-g.
3045
3046 2001-07-10 Gerd Moellmann <gerd@gnu.org>
3047
3048 * dispnew.c (update_window): Don't skip the header-line
3049 update when scrolling_window returns 0.
3050
3051 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3052
3053 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
3054 for the case that x_decode_color signals an error.
3055
3056 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3057
3058 2001-07-09 Gerd Moellmann <gerd@gnu.org>
3059
3060 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3061 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3062 around ioctls.
3063
3064 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3065
3066 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3067 doc string line for dos-timezone-offset.
3068
3069 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3070 inline assembly, to avoid compiler warnings.
3071 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3072 line for dos-unsupported-char-glyph.
3073
3074 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3075
3076 2001-07-05 Gerd Moellmann <gerd@gnu.org>
3077
3078 * sound.c: Include Emacs' header files with #include "...".
3079
3080 * eval.c (specbind): Additionally record the buffer that was
3081 current when a buffer-local or frame-local variable was bound.
3082
3083 2001-07-04 Gerd Moellmann <gerd@gnu.org>
3084
3085 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3086 to unibyte characters in unibyte buffers.
3087
3088 2001-07-03 Gerd Moellmann <gerd@gnu.org>
3089
3090 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3091 the frame on the binding stack. Change format of entries for
3092 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3093 (unbind_to): Handle unbinding a frame-local variable.
3094
3095 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
3096 glyphs and truncation glyphs at the end of a row from its pixel width.
3097 (dump_glyph_row): Print row's continuation_lines_width.
3098 (try_window_id): Take the shortcut if ZV is visible in the
3099 window, but there are actually no changes at ZV.
3100
3101 2001-07-02 Gerd Moellmann <gerd@gnu.org>
3102
3103 * xterm.h (x_free_dpy_colors): Add prototype.
3104
3105 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3106 right number of arguments.
3107
3108 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3109 ($(lwlibdir)TAGS): New target.
3110 (TAGS): Fix dependency list.
3111
3112 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3113 with input blocked.
3114
3115 2001-06-30 Gerd Moellmann <gerd@gnu.org>
3116
3117 * emacs.c (main): Remove extern declaration for sys_nerr, which
3118 isn't used and causes a compilation error with GCC 3.0 on
3119 FreeBSD 4.3.
3120
3121 2001-06-27 Gerd Moellmann <gerd@gnu.org>
3122
3123 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3124 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
3125 (toplevel): Include <signal.h> and syssignal.h.
3126
3127 * sound.c (vox_configure, vox_close): Turn off atimers
3128 around ioctls.
3129
3130 2001-06-26 Gerd Moellmann <gerd@gnu.org>
3131
3132 * keyboard.c (read_char) <non_reread>: Record the previous idle
3133 start time before calling timer_stop_idle.
3134 (read_char) <reread_first>: After processing a help-echo event,
3135 restore the previous idle start time.
3136
3137 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3138 the start of invisible text.
3139 (setup_for_ellipsis): New function.
3140 (next_overlay_string): After all overlay strings have been
3141 processed, display an ellipsis if necessary.
3142 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3143 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3144
3145 * dispextern.h (struct iterator_stack_entry): Add member
3146 display_ellipsis_p.
3147
3148 2001-06-25 Gerd Moellmann <gerd@gnu.org>
3149
3150 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3151 on the value of the wait-for-wm frame parameter.
3152
3153 * xterm.h (struct x_output): Add member wait_for_wm.
3154
3155 * xfns.c (Qwait_for_wm): New variable.
3156 (x_frame_parms): Add entry for `wait-for-wm".
3157 (x_set_wait_for_wm): New function.
3158 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3159 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3160
3161 * xdisp.c (try_window_id) <all changes below window end>: Don't
3162 take this shortcut if ZV is visible in the window.
3163 (try_window_id): When checking for window start being in changed
3164 text, don't check that the buffer's size has changed.
3165
3166 2001-06-23 Richard M. Stallman <rms@gnu.org>
3167
3168 * minibuf.c (Fcompleting_read): Doc fix.
3169
3170 2001-06-19 Gerd Moellmann <gerd@gnu.org>
3171
3172 * composite.c (Ffind_composition_internal): Accept ZV
3173 and a string's end position as POS.
3174
3175 2001-06-18 Gerd Moellmann <gerd@gnu.org>
3176
3177 * composite.c (Ffind_composition_internal): Check POS
3178 for validity.
3179
3180 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3181
3182 * editfns.c (Fmessage_box): If the frame is not under a window
3183 system, output the message in the echo area.
3184
3185 2001-06-14 Richard M. Stallman <rms@gnu.org>
3186
3187 * xdisp.c (try_window_id): When EOB is visible, don't treat
3188 insertion at EOB as if it were "off the bottom of the screen."
3189
3190 2001-06-11 Andrew Innes <andrewi@gnu.org>
3191
3192 * w32proc.c (create_child): Add new parameter is_gui_app.
3193 (w32_executable_type): Add new parameter is_gui_app.
3194 (sys_spawnve): Use it.
3195 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3196 SIGQUIT. This matches better how the signals are interpreted by
3197 MSVC compiled programs.
3198 (syms_of_ntproc): Update docstring.
3199
3200 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3201
3202 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3203 well otherwise note_mouse_highlight might optimize away highlighting
3204 if we pass over that same overlay again.
3205
3206 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3207
3208 * lread.c (Fload): Document that the argument is run via
3209 substitute-in-file-name.
3210
3211 2001-05-31 Gerd Moellmann <gerd@gnu.org>
3212
3213 * Makefile.in (bootstrap-doc): New target.
3214 (bootstrap-emacs): Depend on it.
3215
3216 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3217 auto-save-list-file-name when shutting down Emacs, because
3218 creating the directory might signal an error, and leaves
3219 Emacs in a strange state.
3220
3221 * term.c: (tty_cursor_hidden): New variable.
3222 (update_begin): Don't call tty_hide_cursor. Clean up.
3223 (update_end, set_terminal_window, set_scroll_region): Clean up.
3224 (ring_bell, reset_terminal_modes): Clean up.
3225 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3226 on tty_cursor_hidden.
3227 (write_glyphs): Call tty_hide_cursor.
3228
3229 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3230
3231 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3232
3233 2001-05-30 Gerd Moellmann <gerd@gnu.org>
3234
3235 * xfns.c (enum image_value_type): New enumerator
3236 IMAGE_STRING_OR_NIL_VALUE.
3237 (parse_image_spec): Handle it.
3238 (xbm_format, pbm_format): Use it for :foreground and :background.
3239 (xbm_load, pbm_load): Check for nil color names.
3240
3241 * xterm.c (note_mouse_highlight): If an overlapping overlay
3242 exists, but we find that we highlight the same overlay as before,
3243 don't do the highlighting again.
3244
3245 2001-05-29 Gerd Moellmann <gerd@gnu.org>
3246
3247 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3248 Protect unibyte strings created by replacing their multibyte
3249 equivalents in menu_items.
3250
3251 * keymap.c (Fsingle_key_description): NUL-terminate the string
3252 buffer before calling build_string.
3253
3254 * callproc.c (Fcall_process): Deal with decode_coding returning
3255 CODING_FINISH_INCONSISTENT_EOL.
3256
3257 2001-05-28 Gerd Moellmann <gerd@gnu.org>
3258
3259 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3260 an item's name with its key description in case the description
3261 is a multibyte string.
3262
3263 * keymap.c (Fsingle_key_description): Create a multibyte string
3264 only if necessary.
3265
3266 * macros.c (Fstart_kbd_macro): Doc fix.
3267
3268 * xterm.c (cursor_in_mouse_face_p): New function.
3269 (x_draw_stretch_glyph_string): Use it to choose a different GC
3270 when drawing a cursor within highlighted text.
3271
3272 * editfns.c (char_property_eq): Put in #if 0.
3273
3274 * indent.c (string_display_width): Put in #if 0.
3275
3276 * lread.c (Fload): Remove unused label.
3277
3278 * termcap.c (speeds): Put in #if 0.
3279
3280 2001-05-18 Gerd Moellmann <gerd@gnu.org>
3281
3282 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3283
3284 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3285 transformation matrix by 10.
3286
3287 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3288
3289 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3290 only if it's equal to the former foreground pixel color.
3291 (x_set_foreground_color, x_set_background_color)
3292 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3293
3294 2001-05-16 Dave Love <fx@gnu.org>
3295
3296 * insdel.c (signal_before_change, signal_after_change): Consider a
3297 local change hook which changes the buffer.
3298
3299 * process.c (read_process_output): Don't call signal_after_change
3300 and update_compositions after insert_from_string_before_markers.
3301
3302 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3303
3304 * xfaces.c (split_font_name): Use the right field when
3305 checking for `[...]' syntax.
3306
3307 * buffer.c (copy_overlays): New function.
3308 (clone_per_buffer_values): Use it.
3309
3310 * buffer.h (OVERLAY_PLIST): New macro.
3311
3312 * keymap.c (Fsingle_key_description): Replace a build_string with
3313 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3314
3315 * fontset.c (Ffontset_info): Check that face is non-null
3316 before accessing its fields.
3317
3318 2001-05-15 Gerd Moellmann <gerd@gnu.org>
3319
3320 * keyboard.c (read_key_sequence): Prevent generating a fake
3321 prefix key twice.
3322
3323 * xfaces.c (split_font_name): Handle `[...]' for the right
3324 font name fields.
3325
3326 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3327 of CCL_STAT_INVALID_CMD.
3328
3329 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3330
3331 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3332 in <var> has no default value yet.
3333
3334 * xfaces.c (try_alternative_families): First try the FAMILY.
3335 And if nothing is found in the end, try again with scalable fonts.
3336 (try_font_list): Let try_alternative_families do a bit more of
3337 the work. Only use FAMILY if it is not nil.
3338 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3339
3340 2001-05-14 Gerd Moellmann <gerd@gnu.org>
3341
3342 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3343 pointer shape when show_mouse_face has already done it.
3344
3345 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
3346 full-width rows.
3347
3348 * xfaces.c (split_font_name): Make sure to leave the loop
3349 with the right value of `i'.
3350
3351 * xfaces.c (split_font_name): Handle matrix transformations
3352 in the pixel and point size fields of XLFD font names.
3353 (xlfd_point_size): Likewise.
3354
3355 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3356
3357 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
3358 (x_to_w32_font): Add prototype.
3359
3360 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3361 redefining, to avoid compiler warnings.
3362
3363 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3364
3365 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3366 (w32_get_bdf_glyph): Cast between unsigned char and char when
3367 passing arguments to subroutines, to shut up compiler warnings.
3368 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3369 GET_HEX_VAL.
3370
3371 * xfaces.c: Include keyboard.h before frame.h, not after it.
3372
3373 * widget.c: Include keyboard.h before frame.h.
3374
3375 * w32term.h (struct image, struct face): Forward declaration, to
3376 avoid compiler warnings.
3377
3378 2001-05-11 Gerd Moellmann <gerd@gnu.org>
3379
3380 * keyboard.c (read_key_sequence): Don't modify events when
3381 generating fake prefix keys (mode-line, scroll-bar, ...) since
3382 this prevents proper processing of such events when pushed back
3383 into unread-command-events.
3384
3385 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3386 actually redrawn. Make the function static.
3387 (note_mouse_highlight): Fix a case where the mouse cursor
3388 was changed back to the text cursor.
3389
3390 * xterm.h (clear_mouse_face): Remove prototype.
3391
3392 * xdisp.c (try_window_id): Fix the fix and set the right
3393 window_end_vpos.
3394
3395 * xdisp.c (try_window_id): Fix computation of window end in the
3396 case that lines were deleted at the end of the window. Add some
3397 more debug_method_adds.
3398
3399 * xfaces.c (try_alternative_families): New function.
3400 (try_font_list): Use it. If ATTRS specifies a family, check
3401 fonts from that family first.
3402 (choose_face_font): Remove code setting the family part of
3403 the pattern to nil.
3404
3405 2001-05-10 Gerd Moellmann <gerd@gnu.org>
3406
3407 * xdisp.c (try_window_id): Fix case of all changes before
3408 the window start.
3409
3410 * xdisp.c (try_window_id): Add some xasserts.
3411
3412 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3413
3414 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3415
3416 2001-05-09 Dave Love <fx@gnu.org>
3417
3418 * xdisp.c (GIVE_UP): Fix for K&R C.
3419
3420 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3421
3422 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3423
3424 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3425 back to the text cursor shape without need.
3426
3427 2001-05-07 Gerd Moellmann <gerd@gnu.org>
3428
3429 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3430
3431 * dispextern.h (inverse_video): Declare extern.
3432
3433 * keyboard.c (delete_kboard): Handle the case that selected_frame
3434 has been deleted in the course of x_connection_closed.
3435
3436 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3437
3438 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3439 Fix the change from 2001-04-30.
3440
3441 2001-05-03 Gerd Moellmann <gerd@gnu.org>
3442
3443 * xfns.c (file_dialog_unmap_cb): New function.
3444 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3445 where a dialog is closed via the window manager.
3446
3447 * xdisp.c (try_window_id): Cases of changes all in front of
3448 the window start or all below the window end mostly rewritten.
3449 (redisplay_window): Move the tests if try_window_id is
3450 applicable to try_window_id.
3451 (GIVE_UP): New macro.
3452
3453 2001-05-02 Gerd Moellmann <gerd@gnu.org>
3454
3455 * xterm.c (expose_window): Return int. If W is the window
3456 currently being updated, mark the frame garbaged.
3457 Fix computation of rows intersecting the exposed rectangle.
3458 (expose_window_tree): Stop when expose_window returns 0.
3459
3460 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3461 again if it has already been drawn.
3462
3463 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3464
3465 * syntax.c (update_syntax_table): Check that oldi has the same
3466 properties as old_prop before deciding not to invalidate.
3467
3468 2001-04-30 Gerd Moellmann <gerd@gnu.org>
3469
3470 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3471 read-only text that is so because of text properties.
3472
3473 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
3474 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
3475 windows that are components of a Lucid menu bar.
3476
3477 2001-04-27 Gerd Moellmann <gerd@gnu.org>
3478
3479 * term.c (turn_on_face): Fix reverse video handling on terminals
3480 that don't support colors.
3481
3482 2001-04-26 Gerd Moellmann <gerd@gnu.org>
3483
3484 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3485 a non-buffer.
3486
3487 2001-04-25 Gerd Moellmann <gerd@gnu.org>
3488
3489 * term.c (toggle_highlight): New function.
3490 (turn_on_face): Change handling of reverse video.
3491
3492 * process.c (wait_reading_process_input):
3493 Call record_asynch_buffer_change only if a timer really changed buffers.
3494
3495 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3496 of the number of overlays to check.
3497
3498 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3499
3500 * xdisp.c (try_window_id): Fix a case where window_end_pos
3501 and window_end_bytepos were not adjusted.
3502
3503 2001-04-23 Gerd Moellmann <gerd@gnu.org>
3504
3505 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3506 zero instead of -1.
3507
3508 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3509
3510 * process.c (wait_reading_process_input) [!subprocesses]:
3511 Don't reference waiting_for_user_input_p, it's not defined in the
3512 branch without async subprocesses support.
3513
3514 2001-04-19 Gerd Moellmann <gerd@gnu.org>
3515
3516 * keyboard.c (delete_kboard): Prevent a dangling reference
3517 from current_kboard to KB, which is freed.
3518
3519 * process.c (wait_reading_process_input):
3520 Call record_asynch_buffer_change after running timers, to make
3521 read_key_sequence aware of buffer changes from under it.
3522
3523 2001-04-18 Gerd Moellmann <gerd@gnu.org>
3524
3525 * xfaces.c (Qscalable_fonts_allowed): New variable.
3526 (realizing_basic_faces_p): Removed.
3527 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3528 removed.
3529 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
3530 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3531 for scalable-fonts-allowed to t.
3532
3533 * fileio.c (Finsert_file_contents): If the file size returned from
3534 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
3535 read from files on a procfs whose contents are generated dynamically.
3536
3537 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3538
3539 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3540 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3541 (__memalign_hook): Make the two prototypes consistent.
3542
3543 2001-04-17 Gerd Moellmann <gerd@gnu.org>
3544
3545 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3546 matrix of mini-windows.
3547
3548 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3549
3550 * intervals.c (find_interval): Don't rebalance during signal handling.
3551
3552 2001-04-11 Gerd Moellmann <gerd@gnu.org>
3553
3554 * fns.c: Include blockinput.h.
3555
3556 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3557
3558 2001-04-10 Gerd Moellmann <gerd@gnu.org>
3559
3560 * fns.c (Fcompare_strings): Fix return values.
3561
3562 * window.c (window_scroll): Change the meaning of N to mean
3563 N screen-fulls or N lines.
3564 (window_scroll_pixel_based, window_scroll_line_based)
3565 (scroll_command, Fscroll_other_window): Change accordingly.
3566
3567 * window.c (window_scroll_pixel_based, Frecenter):
3568 Call window_box_height instead of using it.last_visible_y for the
3569 height of the window.
3570
3571 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3572 instead of using it.last_visible_y for the height of the window.
3573
3574 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
3575 From Dan Holmsand <dan@eyebee.com>.
3576
3577 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
3578 able to write to hidden and system files. From Dan Holmsand
3579 <dan@eyebee.com>.
3580
3581 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3582 Holmsand <dan@eyebee.com>.
3583
3584 2001-04-09 Gerd Moellmann <gerd@gnu.org>
3585
3586 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3587
3588 * window.c (window_internal_height): Return 1 less if the
3589 window has a header line.
3590
3591 * xdisp.c (try_window_id): When scrolling on a terminal, take
3592 the change of window_internal_height into account.
3593
3594 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3595
3596 * gmalloc.c (align): If the argument SIZE would overflow
3597 __malloc_ptrdiff_t, fail right away.
3598
3599 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3600
3601 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3602 Make sure the tooltip is completely visible.
3603 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3604
3605 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3606
3607 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3608
3609 2001-04-06 Dave Love <fx@gnu.org>
3610
3611 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3612 Fix test of `from'.
3613
3614 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3615
3616 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
3617
3618 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3619
3620 2001-04-05 Gerd Moellmann <gerd@gnu.org>
3621
3622 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3623
3624 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
3625
3626 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3627 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3628
3629 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3630 shell widget's position only if it is non-null.
3631
3632 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3633 Set f->output_data.x->widget to null after destroying it.
3634
3635 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3636 FILENAME to bring it in synch with the documentation.
3637
3638 * xfaces.c (realizing_basic_faces_p): Renamed from
3639 realize_default_face_p.
3640 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3641 (realize_default_face): Don't set the flag.
3642
3643 2001-04-04 Gerd Moellmann <gerd@gnu.org>
3644
3645 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3646
3647 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3648
3649 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3650 the buffer that was used for echoing.
3651
3652 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3653 (first_font_matching): Removed unused function.
3654 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3655 (may_use_scalable_font_p): Remove parameter FONT; rename
3656 parameter NAME to FONT.
3657 (x_face_list_fonts): Fix missing bounds check.
3658 (realizing_default_face_p): New variable.
3659 (realize_default_face): Set and clear that flag.
3660 (x_face_list_fonts): When called during the realization of the
3661 default face, and no matching fonts are found when ignoring
3662 scalable fonts and fonts matching a regexp from
3663 face-ignored-fonts, try without ignoring fonts.
3664
3665 2001-04-03 Gerd Moellmann <gerd@gnu.org>
3666
3667 * xfns.c (postprocess_image): New function.
3668 (lookup_image): Call it for all image types except PostScript.
3669 (x_kill_gs_process): Call postprocess_image.
3670
3671 * xterm.c (x_use_underline_position_properties): New variable.
3672 (x_draw_glyph_string): Use it.
3673 (syms_of_xterm): DEFVAR_BOOL it.
3674
3675 2001-04-02 Gerd Moellmann <gerd@gnu.org>
3676
3677 * xterm.c (x_alloc_nearest_color_1): New function.
3678 (x_alloc_nearest_color): Use it.
3679 (x_color_cells): Take a Display as argument, instead of a frame.
3680 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3681 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3682 (x_initialize): Register cvt_string_to_pixel as resource converter
3683 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3684
3685 2001-03-30 Gerd Moellmann <gerd@gnu.org>
3686
3687 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3688 (set_iterator_to_next): If a string from a display property ends,
3689 consider the case that this might also be the end of an
3690 overlay string having the display property.
3691
3692 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
3693
3694 * xdisp.c (reseat_to_string): Undo last change.
3695
3696 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3697 matrix of a window when the header line changes, when
3698 new rows are allocated, or when the width changes.
3699
3700 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3701
3702 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
3703
3704 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3705
3706 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3707 deprecated.
3708
3709 2001-03-29 Gerd Moellmann <gerd@gnu.org>
3710
3711 * data.c (Fsubr_interactive_form): New function.
3712 (syms_of_data): Defsubr it.
3713
3714 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3715 (live_float_p, live_misc_p): Return 1 only if the offset of the
3716 pointer in its block is >= 0.
3717
3718 2001-03-28 Paul Eggert <eggert@twinsun.com>
3719
3720 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3721 microseconds calcuation. Avoid double-rounding problem.
3722 In doc string, warn that the result is approximate.
3723
3724 2001-03-28 Gerd Moellmann <gerd@gnu.org>
3725
3726 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3727 bind `inhibit-eval-during-redisplay' to t.
3728
3729 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3730
3731 * xdisp.c (inhibit_eval_during_redisplay)
3732 (Qinhibit_eval_during_redisplay): New variables.
3733 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3734 don't eval, return nil instead.
3735 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3736 Initialize Qinhibit_eval_during_redisplay.
3737
3738 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3739 the iterator's multibyte_p flag.
3740
3741 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3742 instead of setting it to zero; it's incremented for each frame
3743 where the menu face is changed.
3744
3745 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3746 change bottom shadow accordingly.
3747
3748 * xterm.c (expose_window_tree, expose_frame): Don't compute
3749 intersections here.
3750 (expose_window): Do it here instead.
3751 (x_draw_glyph_string): Fix a computation of the underline position.
3752
3753 * bytecode.c (BYTE_CODE_QUIT): New macro.
3754 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3755
3756 2001-03-27 Gerd Moellmann <gerd@gnu.org>
3757
3758 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3759 Give up if matrix starts in an ellipsis.
3760 (init_from_display_pos): Do nothing if POS doesn't specify
3761 a dpvec_index but the iterator has such a position.
3762
3763 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3764
3765 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3766 x/y position is (0, 0) after destroying the menu bar, restore
3767 its original position.
3768
3769 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3770 (init_from_display_pos): Use it.
3771 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3772
3773 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3774
3775 * xdisp.c (try_window_id): Undo last change.
3776
3777 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3778
3779 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3780
3781 * buffer.c (syms_of_buffer): Doc fix.
3782
3783 2001-03-26 Gerd Moellmann <gerd@gnu.org>
3784
3785 * xfaces.c (x_update_menu_appearance): Use local variable
3786 popup_path for setting font resources.
3787
3788 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3789
3790 * frame.c (Fframe_list): Don't reference tip_frame if
3791 HAVE_WINDOW_SYSTEM is not defined.
3792
3793 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3794 <wl@gnu.org>.
3795
3796 2001-03-25 Gerd Moellmann <gerd@gnu.org>
3797
3798 * xdisp.c (init_from_display_pos): Test invisible property
3799 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
3800
3801 * xdisp.c (redisplay_internal) <update one window>: Make sure
3802 last_arrow_position and last_arrow_string are set.
3803
3804 * frame.c (Fframe_list): Don't return a tooltip frame.
3805
3806 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3807
3808 * xdisp.c (mark_window_display_accurate_1): New function,
3809 extracted from mark_window_display_accurate.
3810 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
3811 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3812 (mark_window_display_accurate): Use it.
3813 (redisplay_internal): Use it for the selected window.
3814 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3815 for the selected frame.
3816
3817 * xdisp.c Use make_number, for readability.
3818 (try_window_id): Disable rows below the window end.
3819 (try_window_reusing_current_matrix): Use cursor_row_p.
3820 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3821 of rows.
3822 (init_from_display_pos): If POS specifies a position in a display
3823 vector, maybe get the iterator set up for that ellipsis.
3824
3825 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3826
3827 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3828
3829 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3830
3831 2001-03-23 Gerd Moellmann <gerd@gnu.org>
3832
3833 * xfaces.c (x_update_menu_appearance): Use a different path
3834 for Lucid popup menus.
3835
3836 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3837
3838 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3839
3840 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3841 (string_buffer_position): Use `make_number'.
3842
3843 2001-03-22 Gerd Moellmann <gerd@gnu.org>
3844
3845 * xfaces.c (x_update_menu_appearance): Renamed from
3846 x_set_menu_face_resources. Use different resources for popups.
3847
3848 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3849 (GC_CHECK_STRING_BYTES): Don't define.
3850
3851 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3852 Removed, together with subroutines.
3853 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
3854 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
3855
3856 * dispextern.h (x_set_menu_resources_from_menu_face):
3857 Remove prototype.
3858
3859 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
3860 Remove calls to x_set_menu_resources_from_menu_face.
3861
3862 * xfaces.c (xm_set_menu_resources_from_menu_face):
3863 Remove #ifndef LESSTIF_VERSION.
3864
3865 * xmenu.c: Include widget.h.
3866 (single_submenu): Return int. Some cleanup.
3867 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3868
3869 2001-03-21 Gerd Moellmann <gerd@gnu.org>
3870
3871 * xterm.c (x_update_window_end): Handle overwritten mouse face
3872 also for tool bar windows.
3873 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3874 DRAW is DRAW_IMAGE_RAISED.
3875
3876 2001-03-20 Gerd Moellmann <gerd@gnu.org>
3877
3878 * print.c (syms_of_print): Doc fixes.
3879
3880 * fns.c (Fmd5): Doc fix.
3881
3882 2001-03-19 Gerd Moellmann <gerd@gnu.org>
3883
3884 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3885 Clear area of the frame not occupied by the scroll bar.
3886
3887 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3888 tip frame's root window buffer to *tip* right after creating
3889 the frame.
3890
3891 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3892 is an integer don't have to be for space characters.
3893
3894 2001-03-16 Gerd Moellmann <gerd@gnu.org>
3895
3896 * indent.c (current_column, current_column_1, Fmove_to_column)
3897 (compute_motion): Handle characters from display vectors differently.
3898
3899 2001-03-15 Kenichi Handa <handa@etl.go.jp>
3900
3901 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3902 drawing glyph string.
3903
3904 2001-03-15 Gerd Moellmann <gerd@gnu.org>
3905
3906 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3907 (command_loop_1): Undo last change.
3908
3909 * xterm.c (fast_find_position): Return the correct vpos.
3910
3911 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
3912 non-null, set a per-buffer value in BUF instead of the current buffer.
3913 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3914 Call store_symval_forwarding with BUF null.
3915 (set_internal): Call store_symval_forwarding with the BUF
3916 parameter passed to set_internal. Formerly, the value was always
3917 set in the current buffer; the buffer recorded in specbind for
3918 this case wasn't used.
3919 (arith_driver): Reindent.
3920
3921 * buffer.c (swap_out_buffer_local_variables):
3922 Call store_symval_forwarding with BUF null.
3923
3924 * lisp.h (store_symval_forwarding): Change prototype.
3925
3926 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3927
3928 2001-03-14 Gerd Moellmann <gerd@gnu.org>
3929
3930 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3931 FOR_DELETION. Avoid resizing the mini-window of the selected
3932 frame if FOR_DELETION is set.
3933 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3934 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3935 signature.
3936
3937 * window.c (Fset_window_configuration): Change call to
3938 do_switch_frame to new format.
3939
3940 * keyboard.c (quit_throw_to_read_char): Change call to
3941 do_switch_frame to new format.
3942
3943 * lisp.h (do_switch_frame): Change prototype.
3944
3945 * frame.c (Fframe_parameters): In the `buffer-list' frame
3946 parameter, store the buffer list of FRAME, not the list of the
3947 selected frame.
3948
3949 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3950 box just because the glyph row's full_width_p flag is set.
3951
3952 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3953
3954 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3955 skip the padding blanks inserted in extend_face_to_end_of_line,
3956 before checking for trailing whitespace.
3957
3958 2001-03-13 Gerd Moellmann <gerd@gnu.org>
3959
3960 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
3961 Remove special handling for LessTif/Motif.
3962 (toplevel): Don't include Xm/Xm.h.
3963
3964 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3965 Remove workaround code for LessTif; it doesn't work anymore.
3966
3967 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
3968 Xm/ScrollBarP.h.
3969
3970 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3971 Don't access private scroll bar data; it's no longer necessary with
3972 contemporary LessTif.
3973
3974 * xfaces.c (xm_set_menu_resources_from_menu_face):
3975 Change #if 0 to #ifndef LESSTIF_VERSION.
3976
3977 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3978 removing button grabs.
3979
3980 2001-03-13 Kenichi Handa <handa@etl.go.jp>
3981
3982 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3983 and clip-large-size-font as obsolete.
3984
3985 * lread.c (read_multibyte): Check the validity of multibyte
3986 sequence. If invalid, return the first byte.
3987
3988 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3989
3990 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3991 before running the command; timer functions or process
3992 filters may have set it.
3993
3994 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3995
3996 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3997 Doc fix.
3998
3999 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4000
4001 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4002 to sprintf.
4003
4004 2001-03-09 Gerd Moellmann <gerd@gnu.org>
4005
4006 * dispextern.h (string_buffer_position): Add prototype.
4007
4008 * xdisp.c (string_buffer_position, display_prop_string_p)
4009 (single_display_prop_string_p): New functions.
4010
4011 * xterm.c (note_mouse_highlight): If there's no help-echo on
4012 a string, look at the buffer text ``under'' it.
4013
4014 * keyboard.c (make_lispy_event): Add string info to the event,
4015 analogous to what's done on mode lines.
4016 (read_key_sequence): For a click on a string, consider `local-map'
4017 and `keymap' of that string.
4018
4019 * keyboard.c (make_lispy_event, make_lispy_movement):
4020 Adjust calls to buffer_posn_from_coords to new format.
4021
4022 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4023
4024 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4025 POS; return void.
4026
4027 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4028 flags argument to emacs_open; it seems to conflict with O_EXCL.
4029
4030 2001-03-09 Kenichi Handa <handa@etl.go.jp>
4031
4032 * composite.h (struct composition): Change types of members;
4033 glyph_len to unsigned, width to unsigned short.
4034
4035 2001-03-08 Andrew Innes <andrewi@gnu.org>
4036
4037 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4038 menu titles.
4039
4040 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4041
4042 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4043 instead of nil.
4044
4045 * xterm.c (note_mouse_highlight): Handle mouse-face and
4046 help-echo in strings.
4047 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4048 (fast_find_string_pos): New function.
4049
4050 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4051 (display_string): Call face_at_string_position with new parameter.
4052
4053 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4054 Handle `mouse-face'.
4055
4056 * dispextern.h (face_at_string_position): Change prototype.
4057
4058 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
4059
4060 * keyboard.c (make_lispy_event): Avoid generating drag events
4061 if the mouse hasn't actually moved to another buffer position.
4062
4063 2001-03-08 Dave Love <fx@gnu.org>
4064
4065 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
4066
4067 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4068
4069 * process.c (Fset_process_window_size): Fix a typo.
4070
4071 2001-03-08 Kenichi Handa <handa@etl.go.jp>
4072
4073 * coding.c (detect_coding_sjis): Do more rigid check.
4074 (detect_coding_big5): Likewise.
4075 (decode_coding_sjis_big5): Likewise.
4076 (Fdetect_coding_region): Call detect_coding_system with tailing
4077 anchor byte `\0' for more rigid detection.
4078 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
4079 (Fdetect_coding_string): Likewise.
4080
4081 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4082
4083 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4084 a string before extracting its data.
4085
4086 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4087
4088 * window.c (Frecenter): Rewrite code handling negative values
4089 of ARG on graphical frames.
4090
4091 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4092
4093 * window.c (displayed_window_lines): If W->start is outside the
4094 accessible portion of the buffer, call start_display with BEGV or
4095 ZV instead of W->start.
4096
4097 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4098
4099 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4100
4101 * process.c (Fset_process_filter): Don't crash if the input
4102 file descriptor of PROCESS is closed.
4103 (Fset_process_window_size): Likewise.
4104
4105 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4106
4107 * xterm.c (XTflash): Make the timeout of select shorter, and call
4108 select repeatedly until the desired time expires.
4109
4110 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4111
4112 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4113
4114 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4115
4116 * lisp.h (Vwindow_list): Declare extern.
4117
4118 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4119
4120 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4121
4122 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4123
4124 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4125 to detect a case where we have to highlight a different region
4126 despite not having left the currently highlighted region.
4127 Set mouse_face_overlay in the x_display_info.
4128 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
4129
4130 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4131
4132 * buffer.c (mouse_face_overlay_overlaps): New function.
4133
4134 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4135 (Qmouse_face): Declare extern.
4136
4137 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4138 if face_change_count is non-zero.
4139
4140 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4141
4142 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4143 that the source is unibyte.
4144
4145 2001-03-05 Dave Love <fx@gnu.org>
4146
4147 * xterm.c (XTmouse_position): Fix typo.
4148
4149 2001-03-05 Gerd Moellmann <gerd@gnu.org>
4150
4151 * minibuf.c (read_minibuf): Clean up the binding stack if
4152 called noninteractively.
4153
4154 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4155
4156 * coding.c (syms_of_coding): Docstring modified.
4157
4158 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4159
4160 * charset.c (char_to_string): If a single byte char has modifier
4161 bits that can't be reflected to the character code, ignore them
4162 instead of signaling an error.
4163
4164 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4165
4166 * s/msdos.h: Update copyright notice.
4167
4168 * dosfns.h: Update copyright notice.
4169
4170 * dosfns.c: Update copyright notice.
4171
4172 * msdos.c: Update copyright notice.
4173
4174 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4175
4176 * xterm.c (glyph_rect): New function.
4177 (XTmouse_position): Use it to raise the threshold for mouse
4178 movement event generation.
4179
4180 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4181
4182 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4183 specifies (reverse . t), reverse the initial screen colors.
4184 (IT_set_frame_parameters): If the property is foreground-color,
4185 but we are reversing the colors, set bg_set, not fg_set.
4186 Likewise for setting background-color and reversing: set fg_set.
4187 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
4188 in effect.
4189
4190 * xfaces.c (Finternal_set_lisp_face_attribute)
4191 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4192 parameters alist.
4193
4194 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4195
4196 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4197 to a single slash in the middle of file names.
4198
4199 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
4200 Accept only alphanumeric time zone names.
4201
4202 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4203 or width area.
4204 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4205 a widget to zero height.
4206
4207 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4208
4209 * window.c (Fwindow_end): Call move_it_past_eol only if
4210 ending up on a partially visible line.
4211
4212 2001-03-01 Dave Love <fx@gnu.org>
4213
4214 * ccl.c (Fccl_execute): Doc fix.
4215
4216 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4217
4218 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4219 of the tool bar before calling x_figure_window_size.
4220
4221 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4222 NULL after destroying it, otherwise XTread_socket can access a
4223 destroyed widget when input is unblocked.
4224
4225 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
4226
4227 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4228 same name as before, although there was a change in fontsets.
4229
4230 2001-02-28 Ken Raeburn <raeburn@gnu.org>
4231
4232 * lisp.h (Fframe_parameter): Declare.
4233
4234 * window.c (set_window_buffer): Field vscroll is an int, not a
4235 Lisp_Object.
4236
4237 2001-02-28 Gerd Moellmann <gerd@gnu.org>
4238
4239 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4240 NULL instead.
4241
4242 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4243 NULL instead.
4244
4245 * alloc.c (toplevel): Include process.h.
4246 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4247 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4248 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
4249 (allocate_vector, allocate_hash_table, allocate_window)
4250 (allocate_frame, allocate_process, allocate_other_vector):
4251 New functions.
4252 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4253 (mark_maybe_pointer): New function.
4254 (mark_memory): Also mark Lisp data to which only pointers
4255 remain and not Lisp_Objects.
4256 (min_heap_address, max_heap_address): New variables.
4257 (mem_find): Return MEM_NIL if START is below min_heap_address or
4258 above max_heap_address.
4259 (mem_insert): Compute min_heap_address and max_heap_address.
4260
4261 * process.c (make_process): Use allocate_process.
4262
4263 * frame.c (make_frame): Use allocate_frame.
4264
4265 * window.c (make_window, make_dummy_parent): Use allocate_window.
4266 (Fcurrent_window_configuration): Use allocate_other_vector.
4267
4268 * lisp.h (allocate_vectorlike): Remove prototype.
4269 (allocate_vector, allocate_other_vector, allocate_frame)
4270 (allocate_window, allocate_process, allocate_hash_table):
4271 Add prototypes.
4272
4273 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4274 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4275
4276 2001-02-27 Kenichi Handa <handa@etl.go.jp>
4277
4278 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4279 treat the produced bytes as a valid multibyte sequence.
4280
4281 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
4282 (ccl_driver) <CCL_WriteMultibyteChar2>:
4283 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
4284 <ccl_finish>: Set ccl->eight_bit_control properly.
4285
4286 * ccl.h (struct ccl_program): New member eight_bit_control.
4287
4288 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4289
4290 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4291 accessible_keymaps_char_table.
4292 (accessible_keymaps_char_table): Obey `is_metized'.
4293 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4294 Lisp_Object.
4295
4296 2001-02-26 Gerd Moellmann <gerd@gnu.org>
4297
4298 * dispnew.c: Check HAVE_TERM_H before including term.h.
4299
4300 2001-02-24 Andrew Innes <andrewi@gnu.org>
4301
4302 * makefile.w32-in: Update copyright notice.
4303
4304 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4305
4306 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4307
4308 2001-02-24 Kenichi Handa <handa@etl.go.jp>
4309
4310 * Makefile.in (lisp): Add international/utf-8.elc.
4311
4312 * fontset.c (Fnew_fontset): Fix handling of the case that an
4313 element of FONTLIST is a cons of family and registry.
4314
4315 2001-02-23 Jason Rumney <jasonr@gnu.org>
4316
4317 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4318 to height unconditionally.
4319
4320 * w32term.c (x_set_glyph_string_background_width): Extend the
4321 background face to the end of the drawing area in the text area, only.
4322 (x_insert_glyphs): Call window_box_left to obtain the left
4323 x-coordinate of the area to shift.
4324
4325 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4326 safe_run_hooks.
4327
4328 2001-02-22 Andrew Innes <andrewi@gnu.org>
4329
4330 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
4331 ($(BLD)\dispnew.obj):
4332 ($(BLD)\editfns.obj):
4333 ($(BLD)\fileio.obj):
4334 ($(BLD)\filelock.obj):
4335 ($(BLD)\keyboard.obj):
4336 ($(BLD)\w32proc.obj):
4337 ($(BLD)\process.obj):
4338 ($(BLD)\sysdep.obj): Ditto.
4339
4340 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4341 header files.
4342 ($(BLD)/dispnew.$(O)):
4343 ($(BLD)/editfns.$(O)):
4344 ($(BLD)/fileio.$(O)):
4345 ($(BLD)/filelock.$(O)):
4346 ($(BLD)/keyboard.$(O)):
4347 ($(BLD)/w32proc.$(O)):
4348 ($(BLD)/process.$(O)):
4349 ($(BLD)/sysdep.$(O)): Ditto.
4350
4351 2001-02-22 Gerd Moellmann <gerd@gnu.org>
4352
4353 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4354 at the start of the function, check that the \n in it->c is
4355 from the iterator's current position.
4356
4357 * xdisp.c (handle_single_display_prop): Add parameter
4358 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4359 properties which replace the display of text with something else.
4360 (handle_display_prop): Call handle_single_display_prop with
4361 additional argument saying if we already replaced text display
4362 with something else. Use AREF.
4363 (with_echo_area_buffer_unwind_data, display_menu_bar)
4364 (decode_mode_spec_coding): Use AREF and ASIZE.
4365
4366 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4367 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4368 * vmstime.h: Files removed.
4369
4370 * unexencap.c, unexfx2800.c: Files removed.
4371
4372 * dispnew.c (direct_output_for_insert): Give up if we are showing
4373 a message or just cleared the message because we might need to
4374 resize the echo area window or display an empty echo area.
4375
4376 2001-02-21 Gerd Moellmann <gerd@gnu.org>
4377
4378 * xdisp.c (redisplay_internal): Do the
4379 mark_window_display_accurate after all windows have been
4380 redisplayed because this call resets flags in buffers which are
4381 needed for proper redisplay.
4382
4383 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4384 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
4385 the old names.
4386
4387 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4388 busy_window to hourglass_window, busy_p to hourglass_p.
4389
4390 * msdos.h (struct x_output): Rename busy_window to
4391 hourglass_window, busy_p to hourglass_p.
4392
4393 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4394 busy_window to hourglass_window, busy_p to hourglass_p.
4395
4396 * xfns.c: Rename everything containing *busy_cursor* and similar
4397 to *hourglass*.
4398 (syms_of_w32fns): Rename x-busy-pointer-shape to
4399 x-hourglass-pointer-shape, display-busy-cursor to
4400 display-hourglass, busy-cursor-delay to hourglass-delay.
4401
4402 * w32fns.c: Rename everything containing *busy_cursor* and similar
4403 to *hourglass*.
4404 (syms_of_w32fns): Rename x-busy-pointer-shape to
4405 x-hourglass-pointer-shape, display-busy-cursor to
4406 display-hourglass, busy-cursor-delay to hourglass-delay.
4407
4408 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4409 of its busy_p flag.
4410
4411 * dispextern.h (start_hourglass, cancel_hourglass)
4412 (display_hourglass_p): Renamed from *busy_cursor*.
4413
4414 2001-02-20 Gerd Moellmann <gerd@gnu.org>
4415
4416 * keyboard.c (read_char): When an event from unread-command-events
4417 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4418
4419 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4420 equal to the current buffer.
4421
4422 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4423 nil, otherwise we're left with truncate_lines t when a message
4424 is printed with message-truncate-lines bound to t.
4425
4426 2001-02-19 Gerd Moellmann <gerd@gnu.org>
4427
4428 * window.c (Fmove_to_window_line): Undo last change.
4429 (displayed_window_lines): Call line_bottom_y to determine
4430 the line's bottom position.
4431
4432 * dispextern.h (line_bottom_y): Add prototype.
4433
4434 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
4435 (pos_visible_p): Use it.
4436
4437 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4438 set redisplaying_p to 0 here instead of in Frecursive_edit.
4439 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4440 set redisplaying_p.
4441
4442 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
4443 New variables.
4444 (syms_of_xdisp): Initialize new variables.
4445 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4446 Specbind `inhibit-menubar-update' when updating the menu bar.
4447
4448 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4449 safe_run_hooks.
4450
4451 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4452 safe_run_hooks.
4453
4454 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4455 is null.
4456
4457 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4458 to the start of the file.
4459
4460 2001-02-16 Gerd Moellmann <gerd@gnu.org>
4461
4462 * window.c (set_window_buffer): Fix last change.
4463
4464 * window.c (set_window_buffer): Set window's vscroll to 0.
4465
4466 * window.c (coordinates_in_window): Increase width of area
4467 where the vertical line can be dragged.
4468
4469 * xterm.c (x_set_glyph_string_background_width): Extend the
4470 background face to the end of the drawing area in the text
4471 area, only.
4472
4473 * xdisp.c (handle_single_display_prop): Set iterator's position
4474 to where the `display' property starts, like for images.
4475 (dump_glyph): New function.
4476 (dump_glyph_row): Use it. Dump info about marginal areas.
4477
4478 * dispnew.c (direct_output_for_insert): Recognize more cases where
4479 glyphs can be written instead of being inserted.
4480
4481 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4482 the left x-coordinate of the area to shift.
4483
4484 * dired.c (directory_files_internal): Set result list to nil
4485 before retrying.
4486
4487 2001-02-15 Kenichi Handa <handa@etl.go.jp>
4488
4489 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4490 invalid multibyte sequence, treat *SRC as a character of
4491 eight-bit-graphic.
4492
4493 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4494
4495 * textprop.c (Fset_text_properties): Doc fix.
4496
4497 2001-02-15 Gerd Moellmann <gerd@gnu.org>
4498
4499 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4500
4501 2001-02-14 Dave Love <fx@gnu.org>
4502
4503 * coding.c: Doc and message fixes.
4504
4505 2001-02-14 Andrew Innes <andrewi@gnu.org>
4506
4507 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4508 Emacs frame above the screen size.
4509
4510 2001-02-14 Gerd Moellmann <gerd@gnu.org>
4511
4512 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4513
4514 2001-02-13 Gerd Moellmann <gerd@gnu.org>
4515
4516 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4517 case that TO ends up beyond ZV after running before-change-functions.
4518
4519 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4520 the selected window if it is showing the buffer in question.
4521
4522 * dired.c (directory_files_internal): Initialize errno.
4523 (toplevel): Include errno.h.
4524
4525 2001-02-13 Kenichi Handa <handa@etl.go.jp>
4526
4527 * xfaces.c (best_matching_font): New parameter width_ratio.
4528 Multiply avgwidth by width_ratio.
4529 (choose_face_font): Call best_matching_font with width_ratio
4530 calculated from the column width of C.
4531
4532 2001-02-12 Andrew Innes <andrewi@gnu.org>
4533
4534 The following changes are to draw box lines inside characters area
4535 if line-width is negative.
4536
4537 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4538 face->box_line_width is negative.
4539 (x_produce_stretch_glyph): Likewise.
4540 (x_produce_glyphs): Likewise.
4541 (x_estimate_mode_line_height): Likewise.
4542 (x_draw_glyph_string_background): Likewise.
4543 (x_draw_glyph_string_foreground): Likewise.
4544 (x_draw_composite_glyph_string_foreground): Likewise.
4545 (x_draw_glyph_string_box): Likewise.
4546 (x_draw_image_foreground): Likewise.
4547 (x_draw_image_relief): Likewise.
4548 (x_draw_image_foreground_1): Likewise.
4549 (x_draw_image_glyph_string): Likewise.
4550
4551 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4552
4553 The following changes are to draw box lines inside characters area
4554 if line-width is negative.
4555
4556 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4557 face->box_line_width is negative.
4558 (x_produce_stretch_glyph): Likewise.
4559 (x_produce_glyphs): Likewise.
4560 (x_estimate_mode_line_height): Likewise.
4561 (x_draw_glyph_string_background): Likewise.
4562 (x_draw_glyph_string_foreground): Likewise.
4563 (x_draw_composite_glyph_string_foreground): Likewise.
4564 (x_draw_glyph_string_box): Likewise.
4565 (x_draw_image_foreground): Likewise.
4566 (x_draw_image_relief): Likewise.
4567 (x_draw_image_foreground_1): Likewise.
4568 (x_draw_image_glyph_string): Likewise.
4569
4570 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4571 and :line-width can be negative.
4572 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
4573
4574 2001-02-09 Jason Rumney <jasonr@gnu.org>
4575
4576 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4577 characters the same as ASCII and latin-1.
4578 (x_display_and_set_cursor): Check for the focus frame's selected
4579 window instead of selected_window.
4580 (x_after_update_window_line): Don't clear if frame's internal
4581 border width is zero.
4582 (x_new_font): Don't change a tooltip's size.
4583 (w32_initialize): Set char_ins_del_ok to 1.
4584
4585 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4586 (x_set_font): If font hasn't changed, avoid recomputing
4587 faces and other things.
4588 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4589 (Fx_create_frame): Add the tool bar height to the frame height.
4590 (x_create_tip_frame): Prevent changing the tooltip's
4591 background color by specifying a color for the default font
4592 in .Xdefaults.
4593 (Qcancel_timer): New variable.
4594 (syms_of_w32fns): Initialize and staticpro it.
4595 (Fx_hide_tip, Fx_show_tip): Use it.
4596 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4597 the timer.
4598 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4599
4600 * w32.c (init_environment): Duplicate local string before putenv.
4601
4602 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4603
4604 * charset.c (Fstring): A typo.
4605
4606 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4607
4608 * charset.c (Fstring): If all arguments are less than 256, return
4609 a unibyte string.
4610
4611 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4612 return a unibyte string.
4613
4614 * coding.c (code_convert_region): After detecting a coding, if
4615 nothing found, set coding->composing to COMPOSITION_NO.
4616 (decode_coding_string): Likewise.
4617
4618 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4619
4620 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4621 to avoid overflow.
4622
4623 2001-02-07 Kenichi Handa <handa@etl.go.jp>
4624
4625 * charset.c (parse_str_to_multibyte): New function.
4626
4627 * charset.h (parse_str_to_multibyte): Extern it.
4628
4629 * print.c (print_string): If we are going to print a unibyte
4630 string into a multibyte buffer, convert the string to multibyte by
4631 str_to_multibyte.
4632
4633 2001-02-06 Andrew Innes <andrewi@gnu.org>
4634
4635 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4636 been created. It seems we can get sent window messages such as
4637 WM_ERASEBKGND before we properly update a frame.
4638
4639 2001-02-06 Gerd Moellmann <gerd@gnu.org>
4640
4641 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4642 Avoid some unnecessary cursor positioning.
4643
4644 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4645
4646 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
4647 (LFACE_AVGWIDTH): New macro.
4648 (LFACEP): Use AREF.
4649 (check_lface_attrs): Check LFACE_AVGWIDTH.
4650 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4651 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4652 (merge_face_vectors): Check LFACE_AVGWIDTH.
4653 (Finternal_make_lisp_face): Use AREF.
4654 (xm_set_menu_resources_from_menu_face)
4655 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4656 (Finternal_lisp_face_empty_p): Use AREF.
4657 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4658 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4659 Compare average widths..
4660 (best_matching_font): Arrange for comparing average widths.
4661
4662 * dispextern.h (enum lface_attribute_index):
4663 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4664
4665 2001-02-05 Dave Love <fx@gnu.org>
4666
4667 * puresize.h: Revert last change following loadup.el change.
4668
4669 2001-02-05 Andrew Innes <andrewi@gnu.org>
4670
4671 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4672 invocation of temacs, to work with Windows 2000.
4673 (bootstrap-emacs): Ditto.
4674
4675 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4676
4677 * xterm.c (x_display_and_set_cursor): Check for the focus
4678 frame's selected window instead of selected_window.
4679
4680 * xdisp.c (try_scrolling): If point is in the line below the
4681 window, make sure to move the iterator at least a canonical
4682 char height down.
4683
4684 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
4685
4686 2001-02-05 Kenichi Handa <handa@etl.go.jp>
4687
4688 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4689 If invalid, execute CCL_INVALID_CMD.
4690 (ccl_driver): If the CCL program is terminated because of
4691 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4692 destination instead of throwing them away.
4693
4694 2001-02-02 Gerd Moellmann <gerd@gnu.org>
4695
4696 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4697 faces and other things.
4698
4699 * xdisp.c (get_next_display_element): Fix case of empty
4700 display table entry.
4701
4702 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4703
4704 * editfns.c (Fconstrain_to_field): Doc fix.
4705
4706 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4707 into `thoroughly', to make it consistent with the doc string.
4708
4709 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4710
4711 2001-02-01 Gerd Moellmann <gerd@gnu.org>
4712
4713 * search.c (search_buffer): Call set_search_regs with a byte
4714 position, not a character position.
4715
4716 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4717 minibuffer-only,
4718
4719 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4720
4721 * frame.c (Fmodify_frame_parameters): Doc fix.
4722
4723 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4724
4725 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4726 identifier which is not reserved by Standard C.
4727
4728 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4729
4730 * window.c (enum window_part): New enumeration.
4731 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4732 Qright_bitmap_area.
4733 (coordinates_in_window): Return an enumerator from enum
4734 window_part. Fix handling of right scroll bar.
4735 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4736 `right-fringe' instead of `left-bitmap-area' and
4737 `right-bitmap-area'. Use enumerators from enum window_part
4738 instead of hard-coded integers.
4739 (check_window_containing, window_from_coordinates):
4740 Use enumerators from enum window_part instead of hard-coded integers.
4741 (syms_of_window): Replace Qleft_bitmap_area and
4742 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4743
4744 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4745
4746 * editfns.c (Fformat_time_string): Doc fix.
4747
4748 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4749
4750 * keymap.c (Fwhere_is_internal): Use the first valid binding
4751 if no ascii binding is found (when firstonly is t).
4752
4753 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4754
4755 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4756 instead of Finteractive_p.
4757
4758 * lisp.h (interactive_p): Add prototype.
4759
4760 * eval.c (interactive_p): New function.
4761 (Finteractive_p): Use it.
4762
4763 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4764
4765 2001-01-31 Dave Love <fx@gnu.org>
4766
4767 * .gdbinit (hook-run): Define to run xreload.
4768
4769 * textprop.c (Fset_text_properties): Fix newline in doc string.
4770
4771 2001-01-30 Gerd Moellmann <gerd@gnu.org>
4772
4773 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4774 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
4775
4776 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
4777 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
4778 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4779
4780 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4781 height.
4782
4783 2001-01-30 Dave Love <fx@gnu.org>
4784
4785 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4786 AFTER_POTENTIAL_GC.
4787
4788 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4789
4790 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4791 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
4792
4793 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4794
4795 * textprop.c (Fset_text_properties): Doc fix.
4796
4797 2001-01-29 Gerd Moellmann <gerd@gnu.org>
4798
4799 * xdisp.c (forward_to_next_line_start): Remove xassert.
4800
4801 2001-01-29 Jason Rumney <jasonr@gnu.org>
4802
4803 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
4804 returning without releasing it.
4805
4806 2001-01-29 Kenichi Handa <handa@etl.go.jp>
4807
4808 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4809 for '^', '$', and '\0'.
4810
4811 2001-01-28 Andrew Choi <akochoi@i-cable.com>
4812
4813 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4814 regex for '^', '$', and '\0'.
4815
4816 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4817 only if current_sblock has been initialized.
4818
4819 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4820 terminal frame even if it is the only visible frame.
4821
4822 2001-01-28 Kenichi Handa <handa@etl.go.jp>
4823
4824 * fontset.c (font_family_registry): Even if FONTNAME conform to
4825 XLFD, if it specifies other fields than family and registry,
4826 return FONTANME. New argument FORCE if nonzero cancel that feature.
4827 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
4828 a signle byte character. Don't set FAMILY part to nil here.
4829 It is handled by the caller choose_face_font.
4830 (Fnew_fontset): Call font_family_registry with FORCE 0.
4831 (Fset_fontset_font): Likewise.
4832
4833 2001-01-27 Gerd Moellmann <gerd@gnu.org>
4834
4835 * xdisp.c (display_line): Don't treat a newline as fitting
4836 on the line.
4837
4838 2001-01-26 Gerd Moellmann <gerd@gnu.org>
4839
4840 * window.c (size_window): Set the window's orig_top to nil when
4841 changing heights, so that a future shrink_mini_window won't
4842 restore a bogus height.
4843
4844 * frame.c (do_switch_frame): If selected frame has a mini-window,
4845 resize that to exact size.
4846
4847 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4848
4849 * xdisp.c (display_line): Simplify check for glyphs fitting
4850 entirely in the line.
4851
4852 * xfns.c (xic_style): New variable.
4853 (create_frame_xic): Move static variable to global scope for
4854 the case that `static' gets defined away.
4855
4856 2001-01-26 Kenichi Handa <handa@etl.go.jp>
4857
4858 * coding.c (decode_coding): Set a flag for inhibiting
4859 inconsistent eol.
4860 (code_convert_region): Always set saved_coding_symbol.
4861 (decode_coding_string): Likewise. Update coding->symbol when we
4862 encounter a inconsistent eol by the same way as code_convert_region.
4863
4864 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4865
4866 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4867 XClearArea.
4868
4869 * xterm.c (x_after_update_window_line): Don't clear if frame's
4870 internal border width is zero.
4871 (x_clear_area): New function.
4872 (x_after_update_window_line, x_clear_end_of_line)
4873 (x_scroll_bar_create, x_scroll_bar_set_handle)
4874 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4875 instead of XClearArea.
4876
4877 * xterm.h (x_clear_area): Add prototype.
4878
4879 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4880 which doesn't seem necessary anymore with Lesstif 0.92.
4881
4882 2001-01-25 Dave Love <fx@gnu.org>
4883
4884 * puresize.h (BASE_PURESIZE): Up to 720000.
4885
4886 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4887
4888 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4889
4890 * xdisp.c (echo_area_display): Don't call redisplay_internal
4891 when Emacs is shutting down. We can't run hooks etc. that
4892 would be necessary to do a redisplay.
4893
4894 * lread.c (read_integer): Use type EMACS_INT instead of int.
4895
4896 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4897
4898 * ccl.c (ccl_driver): Fix last change.
4899
4900 2001-01-25 Kenichi Handa <handa@etl.go.jp>
4901
4902 * ccl.h (sturct ccl_program): New member suppress_error.
4903
4904 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
4905 insert error message to the output.
4906 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4907
4908 * coding.h (struct coding_system): New member suppress_error.
4909
4910 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4911 (Fset_terminal_coding_system_internal): Set the member
4912 suppress_error to 1.
4913 (Fset_safe_terminal_coding_system_internal): Likewise.
4914
4915 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4916
4917 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4918 as if it was a `charset'.
4919
4920 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4921
4922 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4923 value in where_is_cache; the next lookup in the cache returns
4924 something bogus if we do.
4925
4926 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4927
4928 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4929 if HAVE_WINDOW_SYSTEM isn't defined.
4930
4931 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4932
4933 * fns.c (sweep_weak_table): Fix code taking items out of
4934 the hash collision chain. Some cleanup.
4935
4936 * xterm.c (x_new_font): Don't change a tooltip's size.
4937
4938 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4939 background color by specifying a color for the default font
4940 in .Xdefaults.
4941
4942 2001-01-24 Kenichi Handa <handa@etl.go.jp>
4943
4944 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4945 a workaround for SunOS 4's cc.
4946 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4947 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4948 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4949 statement.
4950
4951 2001-01-23 Gerd Moellmann <gerd@gnu.org>
4952
4953 * xterm.c (x_set_window_size_1): New function extracted from
4954 x_set_window_size.
4955 (x_set_window_size): Use it.
4956 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4957 doesn't have a widget, like tooltips.
4958
4959 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4960
4961 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4962
4963 2001-01-23 Kenichi Handa <handa@etl.go.jp>
4964
4965 * fns.c (Fset_char_table_default): Fix to make sub char-table
4966 correctly.
4967
4968 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4969
4970 * xdisp.c (build_desired_tool_bar_string): Make sure we have
4971 a desired tool bar string, even if there are no tool bar items.
4972
4973 * xdisp.c (Ftool_bar_lines_needed): New function.
4974 (syms_of_xdisp): Defsubr it.
4975
4976 * editfns.c (Fformat): Don't extend text properties from arguments
4977 to padding chars in the result.
4978
4979 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4980
4981 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4982
4983 2001-01-20 Andrew Innes <andrewi@gnu.org>
4984
4985 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
4986 (w32_initialize): Don't set term hooks that aren't actually needed
4987 in windowed mode.
4988
4989 * xfaces.c (realize_default_face):
4990 (realize_face):
4991 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4992
4993 * xdisp.c (handle_single_display_prop): Remove references to
4994 FRAME_W32_CONSOLE_P.
4995
4996 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
4997
4998 * frame.h (output_method): Remove output_w32_console method.
4999 (FRAME_W32_CONSOLE_P): Remove macro.
5000
5001 * frame.c (Qw32_console): Remove variable.
5002 (Fframep): Remove references to it.
5003 (syms_of_frame): Ditto.
5004 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5005
5006 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5007 redefinition.
5008
5009 2001-01-20 Kenichi Handa <handa@etl.go.jp>
5010
5011 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5012
5013 2001-01-19 Andrew Innes <andrewi@gnu.org>
5014
5015 * w32.c (init_environment): Add a version-independent site-lisp
5016 directory to EMACSLOADPATH, after the version dependent one.
5017
5018 2001-01-19 Gerd Moellmann <gerd@gnu.org>
5019
5020 * editfns.c (Fbuffer_substring): Doc fix.
5021
5022 * xdisp.c (message_dolog, message2, message2_nolog):
5023 Rename parameter LEN to NBYTES.
5024
5025 2001-01-19 Kenichi Handa <handa@etl.go.jp>
5026
5027 * charset.c (strwidth): Use c_string_width.
5028 (c_string_width): New function.
5029 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5030 Caller changed.
5031
5032 * charset.h (c_string_width, lisp_string_width): Extern them.
5033
5034 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
5035
5036 * indent.c (check_composition): Check validity of composition.
5037
5038 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5039 characters by calling c_string_width.
5040 (x_consider_frame_title): Get byte length of frame tile string
5041 correctly.
5042 (display_mode_element): Pay attention to width of non-ASCII
5043 characters by calling strwidth.
5044
5045 2001-01-18 Gerd Moellmann <gerd@gnu.org>
5046
5047 * xfns.c (Qcancel_timer): New variable.
5048 (syms_of_xfns): Initialize and staticpro it.
5049 (Fx_hide_tip, Fx_show_tip): Use it.
5050 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5051 the timer.
5052 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5053
5054 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5055
5056 * window.h (WINDOW_LIVE_P): New macro.
5057
5058 * window.c (window_size_fixed): New variable.
5059 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5060 the doc string.
5061
5062 * eval.c (specbind): If binding a per-buffer variable which
5063 doesn't have a buffer-local value in the current buffer, change
5064 the global value by changing the value of the symbol bound in all
5065 buffers not having their own value, to make it consistent with
5066 what happens with other buffer-local variables.
5067
5068 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5069
5070 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5071 when searching for a newline.
5072
5073 2001-01-18 Kenichi Handa <handa@etl.go.jp>
5074
5075 * xdisp.c (display_string): Fix previous change.
5076
5077 2001-01-18 Jason Rumney <jasonr@gnu.org>
5078
5079 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5080 GLYPH_DEBUG is defined.
5081 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5082 true for images with `:ascent 100'.
5083 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5084 meantime, use face MOUSE_FACE_ID.
5085 If first glyph isn't a character glyph, use the ASCII NUL
5086 character to determine the face.
5087 (expose_area): Do not treat left margin specially.
5088 (note_mode_line_highlight): If no local_map, check global keymap.
5089 (note_mouse_highlight): Initialize overlay.
5090 (clear_mouse_face): Don't return if tip_frame is non-nil.
5091 (show_scroll_bars): Remove unused function.
5092 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5093 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5094 Clip to row.
5095 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
5096 (x_free_frame_resources): Unload relief colors.
5097
5098 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5099
5100 * xdisp.c (forward_to_next_line_start): Avoid calling
5101 get_next_display_element when the newline is already found.
5102 This may change the iterator's position, when its current position is
5103 equal to the iterator's stop_charpos.
5104
5105 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5106 zero, use this method only at the end of a line.
5107
5108 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
5109 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5110 if SCALABLE_FONTS_P is set.
5111
5112 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5113 so that scalable fonts are included.
5114
5115 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5116 In the cache, use a key containing the information if scalable
5117 fonts are included.
5118 (x_load_font): Adapt to change of keys in the font cache.
5119
5120 2001-01-17 Kim F. Storm <storm@filanet.dk>
5121
5122 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5123 XListFonts to take advantage of font caching.
5124
5125 * xterm.c (x_list_fonts): Ensure caching font information when
5126 called for a null frame, which is the case frequently when Emacs
5127 starts.
5128
5129 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5130
5131 * xfns.c (QCconversion): Replaces QCalgorithm.
5132
5133 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5134
5135 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5136 of :algorithm.
5137
5138 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5139 not everything could be displayed.
5140
5141 * line.h, x-list-font.c: Files removed because unused.
5142
5143 2001-01-17 Andrew Innes <andrewi@gnu.org>
5144
5145 * dired.c (directory_files_internal): Convert result from readdir
5146 to a unibyte string initially, to avoid possible misinterpretation
5147 of some bytes as the internal form of Emacs characters.
5148
5149 2001-01-17 Kenichi Handa <handa@etl.go.jp>
5150
5151 * fns.c (concat): Be sure to avoid putting the same `composition'
5152 property on the adjacent regions.
5153
5154 2001-01-16 Gerd Moellmann <gerd@gnu.org>
5155
5156 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
5157 (Fscroll_right, Fscroll_left): Set it here instead, if called
5158 interactively.
5159
5160 * buffer.c (Fset_buffer_modified_p): Set buffer's
5161 prevent_redisplay_optimizations_p flag.
5162
5163 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
5164 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5165 with additional arg.
5166
5167 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5168 Change prototype.
5169
5170 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5171 FROM_WHERE, for debugging.
5172
5173 2001-01-16 Kenichi Handa <handa@etl.go.jp>
5174
5175 * ccl.c (Fregister_ccl_program): Handle the return value of
5176 resolve_symbol_ccl_program correctly.
5177 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
5178
5179 2001-01-15 Gerd Moellmann <gerd@gnu.org>
5180
5181 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5182 has gone in the meantime, use face MOUSE_FACE_ID.
5183
5184 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5185 If x_display_info_for_display returns null, don't try to close
5186 the display; we didn't open it.
5187
5188 * dispnew.c (save_or_restore_current_matrices): Function removed.
5189 (save_current_matrix, restore_current_matrix): New functions.
5190 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5191 restore the frame's current matrix. Due to the glyph pointer
5192 setup done in adjust_glyph_matrix, there is no easy way to make
5193 saving the current matrix in the desired matrix generally correct,
5194 so don't try it.
5195
5196 2001-01-15 Kenichi Handa <handa@etl.go.jp>
5197
5198 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5199 truncation glyphs.
5200 (display_line): Optimize for wide characters.
5201 (display_string): Don't try to display a multi-column character
5202 partially. On ttys, produce more than one truncation glyph for
5203 multi-column characters that don't fit on the line.
5204
5205 2001-01-13 Kenichi Handa <handa@etl.go.jp>
5206
5207 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5208 Define it instead of WORDS_BIGENDIAN. Caller changed.
5209
5210 2001-01-13 Jason Rumney <jasonr@gnu.org>
5211
5212 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5213 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
5214 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5215 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
5216
5217 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5218 (x_draw_image_relief, x_draw_image_foreground_1)
5219 (x_draw_image_glyph_string): Adapt to change of image margins.
5220
5221 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5222 variables.
5223
5224 * w32bdf.c (search_file_line, get_cached_font_char)
5225 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5226
5227 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5228
5229 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5230 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5231 (Fw32_send_sys_command): Remove unused variables.
5232 (w32_msg_pump): Add parentheses.
5233
5234 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5235 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5236 Add parentheses.
5237
5238 2001-01-12 Gerd Moellmann <gerd@gnu.org>
5239
5240 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5241 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5242 being a pair of margins.
5243 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5244 to DEFVAR_LISP. Extend doc.
5245
5246 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5247 margins.
5248 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5249 pair of integers `(X . Y)', use X for the horizontal and Y for the
5250 vertical margin.
5251 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5252 (parse_image_spec): Check it.
5253 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5254 (tiff_format, gif_format, gs_format):
5255 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
5256
5257 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5258 (x_draw_image_relief, x_draw_image_foreground_1)
5259 (x_draw_image_glyph_string): Adapt to the change of image margins.
5260
5261 * dispextern.h (struct image): Replace member `margin' with
5262 `hmargin' and `vmargin'.
5263
5264 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5265 and GLYPHS.
5266
5267 * dispnew.c (update_text_area): Put code which decrements the
5268 stop position when the row's face extends to the end of the
5269 line in #if 0.
5270
5271 * xfns.c (x_set_mouse_color): Fix color allocation.
5272
5273 * keyboard.c: Call get_local_map with new argument list.
5274
5275 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5276
5277 * intervals.h (enum map_property): Removed.
5278 (get_local_map): Change prototype.
5279
5280 * keymap.c: Call get_local_map with new argument list.
5281 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5282
5283 2001-01-11 Gerd Moellmann <gerd@gnu.org>
5284
5285 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5286 of the size needed for the tool bar string. For the last image,
5287 use a `display' property that reaches to the end of the string.
5288
5289 * xselect.c (selection_request_dpyinfo): New variable.
5290 (x_handle_selection_request): Set it.
5291 (x_selection_request_lisp_error): Don't call
5292 x_decline_selection_request if selection request's display has
5293 been closed.
5294
5295 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5296 Do the unregister_colors before calling XFreeColors.
5297
5298 2001-01-10 Dave Love <fx@gnu.org>
5299
5300 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5301 ${SOME_MACHINE_LISP}, not ${lisp}.
5302
5303 2001-01-10 Gerd Moellmann <gerd@gnu.org>
5304
5305 * xdisp.c (display_line): On ttys, produce more than one truncation
5306 glyph for multi-column characters that don't fit on the line.
5307
5308 * xselect.c (x_reply_selection_request): Add a comment.
5309
5310 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5311 XkbGetNames instead of XkbGetKeyboard.
5312
5313 2001-01-10 Dave Love <fx@gnu.org>
5314
5315 * sysdep.c (random): Revert the declaration.
5316
5317 2001-01-09 Gerd Moellmann <gerd@gnu.org>
5318
5319 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5320 Call function string_bytes.
5321 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5322
5323 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5324 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5325 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5326 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5327 the current sblock.
5328 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5329 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5330 after sweeping strings, and at the end.
5331 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5332
5333 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5334 ensure that pop_message is called.
5335
5336 * keyboard.c (Fexecute_extended_command): Use a
5337 record_unwind_protect to ensure that pop_message is called.
5338
5339 * lisp.h (push_message_unwind): Add prototype.
5340
5341 * xdisp.c (push_message_unwind): New function.
5342
5343 * fileio.c (do_auto_save_unwind): Do the pop_message here
5344 instead of in Fdo_auto_save.
5345 (Fdo_auto_save): Don't call pop_message.
5346
5347 2001-01-08 Ken Raeburn <raeburn@gnu.org>
5348
5349 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5350 in inner block.
5351
5352 2001-01-08 Gerd Moellmann <gerd@gnu.org>
5353
5354 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5355 when increasing window's vscroll.
5356
5357 * macros.c (Qkbd_macro_termination_hook): New variable.
5358 (syms_of_macros): Initialize and staticpro it.
5359 (pop_kbd_macro): Run kbd-macro-termination-hook.
5360
5361 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5362
5363 2001-01-07 Dave Love <fx@gnu.org>
5364
5365 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5366 arglist, for documentation's sake.
5367
5368 2001-01-06 Andrew Innes <andrewi@gnu.org>
5369
5370 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5371 of *.pdb.
5372
5373 2001-01-05 Andrew Innes <andrewi@gnu.org>
5374
5375 * term.c (update_end): Don't check updating_frame; for some reason
5376 this can be 0 sometimes, such as after dismissing a popup menu,
5377 and isn't necessary given the explicit frame argument.
5378
5379 2001-01-05 Gerd Moellmann <gerd@gnu.org>
5380
5381 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5382 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5383
5384 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5385
5386 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
5387
5388 * xfns.c (x_create_tip_frame): Preserve the value of
5389 face_change_count around the creation of the tip frame.
5390
5391 * xfns.c (last_show_tip_args): New variable.
5392 (compute_tip_xy): New function.
5393 (Fx_show_tip): Reuse an existing tip frame, if possible.
5394 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5395
5396 2001-01-04 Dave Love <fx@gnu.org>
5397
5398 * editfns.c (Fformat): Doc fix.
5399
5400 * systime.h (set_file_times): Prototype.
5401
5402 * widget.h (EmacsFrameSetCharSize_): Prototype.
5403
5404 * sysdep.c (random, srandom): Declare explicitly.
5405
5406 * dispextern.h (move_it_vertically_backward): Declare.
5407
5408 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5409
5410 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5411 like in Fx_create_frame.
5412
5413 * xfaces.c (set_font_frame_param): Don't do anything for
5414 non-graphical frames.
5415
5416 * window.c (Fdelete_other_windows): Set window's window_end_valid
5417 to nil when changing the window's start. Don't change the
5418 window's start when its top position hasn't changed. If we do,
5419 this will set the window's optional_new_start, which act's like a
5420 force_start during redisplay with C-x 1 M-> under particular
5421 circumstances (see report from Per Starback to emacs-pretest-bug
5422 from 2000-12-13.).
5423
5424 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5425
5426 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5427 short cut at the start of the function. Add an assertion.
5428 (reseat_at_next_visible_line_start): Add an assertion.
5429
5430 * window.c (Frecenter): When changing the window start, set the
5431 window's window_end_valid to nil.
5432 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5433
5434 * dispextern.h (move_it_past_eol): Add prototype.
5435
5436 * xdisp.c (move_it_past_eol): New function.
5437
5438 * window.c (Fwindow_end): Doc fix.
5439
5440 2001-01-03 Dave Love <fx@gnu.org>
5441
5442 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
5443
5444 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5445
5446 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5447 the enabled_p flag of the glyph row at window_end_vpos to 0.
5448 (handle_single_display_prop): Fix last change.
5449
5450 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5451
5452 * window.c (Frecenter): Doc fix.
5453
5454 2001-01-02 Andrew Innes <andrewi@gnu.org>
5455
5456 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5457
5458 * frame.h (output_method): Add output_w32_console method.
5459 (FRAME_W32_CONSOLE_P): New macro.
5460
5461 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5462 use output_w32_console method.
5463 (Qw32_console): New Lisp_Object.
5464 (Fframep): Return it.
5465 (syms_of_frame): Init it.
5466 (Fframe_parameters): Report w32console as font for w32_console frames.
5467
5468 * xfaces.c (realize_default_face): Set face foreground and
5469 background to unspecified for w32_console frames.
5470 (realize_face): Realize face cache for w32_console frames.
5471 (realize_tty_face): Accept w32_console frames.
5472
5473 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
5474 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5475 necessary, even if running interactively.
5476
5477 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5478 w32_console frames.
5479
5480 * w32term.c (x_update_begin):
5481 (x_update_end):
5482 (x_clear_frame):
5483 (x_ins_del_lines):
5484 (x_change_line_highlight):
5485 (x_delete_glyphs):
5486 (w32_ring_bell):
5487 (x_update_begin):
5488 (x_update_end):
5489 (w32_reassert_line_highlight):
5490 (w32_frame_rehighlight):
5491 (w32_frame_raise_lower): Do nothing if not w32 frame.
5492
5493 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5494
5495 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5496 system doesn't tell us directly.
5497 (Fx_display_visual_class): Implement properly.
5498
5499 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5500
5501 * window.c (Frecenter): Handle centering in graphical frames
5502 specially. Centering on the basis of line counts doesn't work
5503 reliably with variable-height lines.
5504
5505 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5506
5507 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5508 and al[].
5509
5510 * composite.c (run_composition_function): Remove unused var `val'.
5511 (update_compositions): Remove unused variable `hook'.
5512
5513 * intervals.c (get_local_map): Remove unused variable `tem'.
5514
5515 * doprnt.c (doprnt1): Remove unused variable `size'.
5516
5517 * fns.c (Flength): Remove unused variable `tail'.
5518 (Fdelete): Remove unused variable `size'.
5519
5520 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5521 and `gcpro2'.
5522
5523 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
5524
5525 * data.c (find_symbol_value): Remove extra 3rd argument in the
5526 call to swap_in_symval_forwarding.
5527
5528 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
5529
5530 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5531 (trivial_regexp_p): Remove unused variable `c'.
5532 (boyer_moore): Remove unused variable `k'.
5533
5534 * indent.c (current_column): Remove unused variable `stopchar'.
5535 (Fcompute_motion): Remove unused variable `contin'.
5536
5537 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5538
5539 * dired.c (directory_files_internal): Fix a typo in a comment.
5540 Remove an unused variable `handler'.
5541 (file_name_completion): Remove unused function-scope variable `dp'.
5542 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5543 on BSD4_2.
5544
5545 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
5546
5547 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5548 and `buf'.
5549 (Fmarker_insertion_type): Remove unused variable `buf'.
5550
5551 * insdel.c (make_gap): Remove unused variable `result'.
5552
5553 * keyboard.c (record_char): Remove unused function-scope var `help'.
5554 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5555 (menu_bar_items): Remove unused function-scope variable `tem'.
5556
5557 * fontset.c (fontset_ref): Remove unused variable `i'.
5558 (fontset_set): Remove unused variables `j' and `tmp'.
5559 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
5560 (make_fontset_for_ascii_face): Remove unused variable `name'.
5561 (fs_load_font): Remove unused variable `font_idx'.
5562 (fs_query_fontset): Remove unused function-local variable `fontset'.
5563 (list_fontsets): Remove unused variable `tail'.
5564 (Fnew_fontset): Remove unused variables `family' and `registry'.
5565 (accumulate_font_info): Remove unused variable `tmp'.
5566 (Ffontset_font): Remove unused variable `id'.
5567 (syms_of_fontset): Remove unused variable `i'.
5568
5569 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5570 to x_term_init.
5571 (lookup_image): Remove unused variable `file'.
5572 (xbm_load): Remove unused variables `bitmap_data', `height', and
5573 `width'. Remove function-local variable `i', leave the
5574 block-local one.
5575 (gif_load): Remove unused variable `inc'.
5576
5577 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
5578 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5579 leave only the one in the inner block.
5580
5581 * xfaces.c (face_fontset, realize_default_face): Remove unused
5582 variable `fontset'.
5583 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5584
5585 * term.c (encode_terminal_code): Remove unused variable `c'.
5586
5587 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5588 char *' instead of `char *'.
5589
5590 * category.c (Fcategory_docstring): Remove unused variable `doc'.
5591 (Fget_unused_category): Remove unused variable `docstring_vector'.
5592 (Fchar_category_set): Remove unused variables `val', `charset',
5593 `c1' and `c2'.
5594
5595 * coding.c (detect_coding_iso2022, setup_coding_system):
5596 Remove unused variable `i'.
5597 (detect_coding_mask): Remove unused variable `idx'.
5598 (detect_coding): Remove unused variable `i'.
5599 (ccl_coding_driver): Remove unused variable `result'.
5600 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
5601 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
5602 (encode_coding_string): Remove unused variables `gcpro1' and
5603 `saved_coding_symbol'.
5604 (Ffind_coding_systems_region_internal): Remove function-local
5605 variable args[], leave only the block-local one.
5606 (code_convert_region1): Remove unused variable `len'.
5607
5608 * charset.c (char_printable_p): Remove unused variable `chars'.
5609 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5610 (str_to_multibyte): Remove unused variable `c'.
5611
5612 * window.c (size_window): Remove block-local variable `min_size'.
5613
5614 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5615 `header_line_height'.
5616 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5617 enum display_element_type.
5618
5619 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5620
5621 * xterm.c (x_connection_closed): Catch X errors around all
5622 statements that call X. Save away the error message in a local copy.
5623
5624 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5625 the start.
5626
5627 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5628 in or at the start of invisible text.
5629
5630 * dispnew.c (update_window): Don't check_current_matrix_flags.
5631
5632 2001-01-01 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32fns.c (x_figure_window_size): Do not allow new_height and
5635 new_width of frame to override specified values.
5636
5637 2000-12-30 Kenichi Handa <handa@etl.go.jp>
5638
5639 * composite.c (find_composition): Fix a code for searching backward.
5640
5641 2000-12-29 Gerd Moellmann <gerd@gnu.org>
5642
5643 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
5644 (update_window) [GLYPH_DEBUG]: Call it.
5645 (scrolling_window): Prevent including current rows which are below
5646 what's displayed in the window.
5647
5648 * xdisp.c (try_window_reusing_current_matrix)
5649 <new start <= old start>: Disable rows in the current matrix
5650 which are below the window after scrolling.
5651
5652 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5653 is zero. It's not worth the complexity.
5654 (invisible_text_between_p): Put in #if 0 because unused.
5655
5656 2000-12-28 Gerd Moellmann <gerd@gnu.org>
5657
5658 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5659 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5660
5661 * keyboard.c (echo_char): If C is an integer, always call
5662 push_key_description. Former code could signal an invalid
5663 character error.
5664
5665 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5666 If set, print multibyte text.
5667 (Fsingle_key_description): Call push_key_description with
5668 FORCE_MULTIBYTE set.
5669 (describe_buffer_bindings): Likewise.
5670
5671 * lisp.h (push_key_description): Add prototype.
5672
5673 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5674 around the call to redisplay_internal.
5675
5676 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5677
5678 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5679
5680 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5681
5682 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5683 (ccl_driver): New local variable `extra_bytes'.
5684
5685 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5686
5687 * coding.c (setup_coding_system):
5688 Initialize coding->spec.ccl.eight_bit_carryover.
5689 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5690
5691 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5692
5693 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5694 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5695 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5696 (decode_composition_emacs_mule): New function.
5697 (decode_coding_emacs_mule): Decode composition sequence by calling
5698 decode_composition_emacs_mule.
5699 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
5700 (encode_coding_emacs_mule): Changed from macro to function.
5701 If a text contains compositions, encode them correctly.
5702 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5703 that decoding and encoding are required.
5704
5705 2000-12-27 Gerd Moellmann <gerd@gnu.org>
5706
5707 * xfaces.c (PT_PER_INCH): New macro.
5708 (xlfd_point_size): Compute real point size from font's pixel size.
5709 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5710 instead of 72.
5711
5712 * .gdbinit: Comment out the line pointing to the Lesstif source
5713 directory.
5714
5715 * window.c (Frecenter): Use displayed_window_lines instead
5716 of window_internal_height.
5717
5718 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5719 instead of x-toolkit-scroll-bars-p.
5720 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5721
5722 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5723 instead of x-toolkit-scroll-bars-p.
5724 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5725
5726 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5727 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
5728 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5729 New variables.
5730 (add_window_display_history, add_frame_display_history)
5731 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5732 (build_frame_matrix_from_leaf_window): Remove unused code.
5733 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5734 redisplay history.
5735 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5736 (update_window) [GLYPH_DEBUG]: Likewise.
5737 (syms_of_display): Defsubr dump-redisplay-history.
5738
5739 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5740
5741 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5742 the end of the prompt. Set echo_after_prompt to the offset
5743 of echoptr in echobuf.
5744
5745 * xdisp.c (init_from_display_pos): Pop until the iterator's
5746 stack is empty; there may be frames for stretch or images
5747 on the stack.
5748
5749 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5750 (save_or_restore_current_matrix): New function for the same
5751 purpose, but more efficient.
5752 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5753
5754 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5755
5756 * xdisp.c (syms_of_xdisp): Fix last change.
5757
5758 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5759
5760 * xdisp.c (syms_of_xdisp): Doc fix.
5761
5762 * xdisp.c (redisplay_window): Remove label restore_buffers;
5763 use finish_scroll_bars instead to make sure that scroll bars
5764 are redeemed. If we don't do this, flickering can result from
5765 scroll bars being destroyed and recreated.
5766
5767 2000-12-22 Jason Rumney <jasonr@gnu.org>
5768
5769 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5770 in the wrong colors when the foreground is not black.
5771 (expose_window): Don't redraw the window that's currently being
5772 updated.
5773
5774 2000-12-22 Gerd Moellmann <gerd@gnu.org>
5775
5776 * window.c (size_window): When setting the window's too_small_ok
5777 flag, compare old size with minimum size depending on WIDTH_P,
5778 don't compare with window_min_width.
5779
5780 * window.c (delete_window): Simplify somewhat.
5781 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5782 freeing window matrices. The flag windows_or_buffers_changed is
5783 set, so the next redisplay will consider all windows; this should
5784 suffice.
5785
5786 2000-12-22 Kenichi Handa <handa@etl.go.jp>
5787
5788 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5789
5790 * ccl.h (struct ccl_program): New member cr_consumed.
5791
5792 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5793 (CCL_READ_CHAR): Handle EOL conversion here.
5794 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5795
5796 2000-12-21 Gerd Moellmann <gerd@gnu.org>
5797
5798 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
5799
5800 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5801 otherwise tabs of different size compare equal.
5802
5803 * callint.c (Fcall_interactively): Prevent a compiler warning.
5804
5805 * print.c (print_unwind): Return nil.
5806 (PRINTDECLARE): Initialize all local variables.
5807 (print_preprocess): Add a default case.
5808
5809 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5810
5811 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5812
5813 * window.c (delete_window, Fsplit_window)
5814 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5815
5816 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5817
5818 * dispnew.c (ensure_frame_matrix): Removed.
5819 (save_frame_matrix, restore_frame_matrix): New functions.
5820 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5821
5822 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5823 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5824
5825 2000-12-21 Andrew Innes <andrewi@gnu.org>
5826
5827 * w32term.c (x_update_begin): Regenerate the palette here, rather
5828 than for each window.
5829
5830 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5831 palette is NULL, since this corrupts memory! Also get
5832 display_info reference from frame.
5833
5834 2000-12-21 Jason Rumney <jasonr@gnu.org>
5835
5836 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5837
5838 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5839 to avoid returning without releasing it.
5840
5841 2000-12-21 Kenichi Handa <handa@etl.go.jp>
5842
5843 * keymap.c (push_key_description): Don't convert eight-bit-control
5844 and eight-bit-graphic to multibyte character.
5845
5846 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5847 generic character and CODE1 is nil, return the smallest character
5848 in CHARSET.
5849
5850 2000-12-20 Dave Love <fx@gnu.org>
5851
5852 * s/osf5-0.h (NSIG): Don't redefine.
5853
5854 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5855
5856 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5857 excluding menu-bar and tool-bar.
5858 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5859 (menu_item_p): Remove.
5860 (where_is_internal_1): Don't ignore menu-items.
5861
5862 2000-12-20 Gerd Moellmann <gerd@gnu.org>
5863
5864 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5865 into account.
5866
5867 * window.c (make_window): Initialize window's min_hscroll.
5868 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5869 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5870 to zero.
5871 (struct saved_window): New member min_hscroll.
5872 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5873 (Fset_window_configuration): Set window's min_hscroll.
5874 (save_window_save): Save window's min_hscroll.
5875 (compare_window_configurations): Compare min_hscroll values.
5876
5877 * window.h (struct window): New member min_hscroll.
5878
5879 * keyboard.c (echo_prompt): Prevent a compiler warning.
5880
5881 * xdisp.c (try_cursor_movement): Fix last change. The real
5882 condition is that PT is at the end of the row, and should
5883 be displayed at the start of the next row.
5884
5885 * xdisp.c (try_cursor_movement): If we end on a partially
5886 visible line, end we already decided to scroll, return -1.
5887
5888 * dispextern.h (ensure_frame_matrix): Add prototype.
5889
5890 * window.c (delete_window, Fsplit_window)
5891 (Fset_window_configuration): Call ensure_frame_matrix.
5892
5893 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5894 New functions.
5895 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5896 completed, call fake_current_matrices instead of marking frame
5897 garbaged.
5898
5899 2000-12-20 Jason Rumney <jasonr@gnu.org>
5900
5901 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5902
5903 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5904
5905 * fns.c (Frequire): Doc fix.
5906
5907 2000-12-19 Gerd Moellmann <gerd@gnu.org>
5908
5909 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
5910
5911 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5912 currently displaying a message.
5913
5914 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5915 xterm.h.
5916 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5917
5918 2000-12-18 Andrew Innes <andrewi@gnu.org>
5919
5920 * w32.c (w32_strerror): New function.
5921
5922 * w32.h (w32_strerror): New extern.
5923
5924 * w32fns.c (Fw32_shell_execute): Use it.
5925
5926 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5927
5928 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5929
5930 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5931
5932 * msdos.c (IT_set_face): Obey inverse_video.
5933
5934 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5935
5936 * dired.c (directory_files_internal): Always return decoded filenames.
5937
5938 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5939
5940 * xterm.c (x_connection_closed): Prevent being called recursively
5941 because of an error condition in XtCloseDisplay.
5942
5943 * xdisp.c (init_iterator): If noninteractive, and the frame's
5944 face cache is null, make one.
5945
5946 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5947
5948 * process.c (wait_reading_process_input): Check for pending
5949 input when running timers.
5950
5951 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5952
5953 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
5954
5955 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5956
5957 * process.c (read_process_output): Don't run a filter if the code
5958 decoder produces nothing but carryover.
5959
5960 2000-12-17 Andrew Innes <andrewi@gnu.org>
5961
5962 * w32.c (sys_rename): Only check errno against EEXIST, and not
5963 EACCES, when determining whether rename failed because the target
5964 exists. This was resulting in indefinite looping on Windows 9x if
5965 the source file was locked by another process.
5966
5967 * w32fns.c (Ffile_system_info): New function.
5968 (syms_of_w32fns): Defsubr it.
5969
5970 2000-12-17 Gerd Moellmann <gerd@gnu.org>
5971
5972 * window.c (coordinates_in_window): Fix computation for
5973 position on vertical line between mode lines.
5974
5975 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5976 Don't alter tip_frame or tip_window.
5977 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5978 was deleted.
5979
5980 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5981 Don't alter tip_frame or tip_window.
5982 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5983 was deleted.
5984
5985 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5986
5987 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5988 be consistent with the doc string. Reported by NAKAJIMA Mikio
5989 <minakaji@osaka.email.ne.jp>.
5990
5991 2000-12-16 Kenichi Handa <handa@etl.go.jp>
5992
5993 * xfaces.c (Vface_ignored_fonts): New variable.
5994 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5995 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5996
5997 2000-12-15 Gerd Moellmann <gerd@gnu.org>
5998
5999 * dispnew.c (update_window): Detect pending input every nth line
6000 updated, i.e. do it depending on real work done, and not on the
6001 vpos of the line.
6002
6003 * xterm.c (expose_window): Don't redraw the window that's
6004 currently being updated.
6005
6006 * window.c (Fset_window_point): Remove test for
6007 cursor_in_non_selected_windows.
6008
6009 * lread.c (read1): Recognize end of file after `\\'.
6010
6011 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6012 not unwind_create_frame.
6013
6014 2000-12-15 Dave Love <fx@gnu.org>
6015
6016 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6017 bcopy & al.
6018
6019 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6020
6021 2000-12-15 Kenichi Handa <handa@etl.go.jp>
6022
6023 * coding.c (setup_coding_system): Clear all members of the struct
6024 coding_system at first.
6025 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6026 argument.
6027 (code_convert_region): Don't override coding->src_multibyte and
6028 coding->dst_multibyte.
6029
6030 * fns.c (Fmd5): Docstring improved.
6031
6032 2000-12-15 Miles Bader <miles@gnu.org>
6033
6034 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6035 are actually marked as mode-lines; otherwise use
6036 estimate_mode_line_height.
6037
6038 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6039
6040 * editfns.c (Fformat): Prevent a buffer overrun when the format
6041 specifies a precision.
6042
6043 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6044
6045 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6046 argument is outside the range [2..3].
6047
6048 2000-12-14 Andrew Innes <andrewi@gnu.org>
6049
6050 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6051 nothing to do. Bind inhibit-quit.
6052 (tip_frame): Make it a Lisp_Object.
6053 (x_create_tip_frame): Set tip_frame after it has been added to
6054 Vframe_list.
6055 (Fx_show_tip): Don't set tip_frame here.
6056 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
6057 (unwind_create_frame, unwind_create_tip_frame): New functions.
6058 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6059 while a frame is only partially constructed.
6060
6061 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6062 (x_free_frame_resources): New function.
6063 (x_destroy_window): Use it.
6064
6065 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6066
6067 * xfns.c (Fx_backspace_delete_keys_p): New function.
6068 (syms_of_xfns): Defsubr it.
6069
6070 * config.in (HAVE_XKBGETKEYBOARD): Add.
6071
6072 2000-12-14 Kenichi Handa <handa@etl.go.jp>
6073
6074 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6075 Always store string in multibyte representation in echobuf.
6076 (echo_char): Always store string in multibyte representation in
6077 echobuf.
6078 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6079 (read_key_sequence): Adjusted for the change of echo_prompt.
6080
6081 * fns.c (Fmd5): Docstring improved.
6082
6083 * lisp.h (detect_coding_system): Prototype adjusted.
6084
6085 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6086 (detect_coding_emacs_mule, detect_coding_iso2022,)
6087 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
6088 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6089 New argument MULTIBYTEP. Callers changed.
6090 (detect_coding_mask, detect_coding_system): New argument
6091 MULTIBYTEP. Callers changed.
6092 (decode_coding_string): Set coding->src_multibyte and
6093 coding->dst_multibyte before calling detect_coding and detect_eol.
6094 Update them after some coding system is detected.
6095
6096 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6097
6098 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6099
6100 * keyboard.c (menu_bar_items, tool_bar_items):
6101 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6102
6103 2000-12-13 Gerd Moellmann <gerd@gnu.org>
6104
6105 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6106 New variables.
6107 (unwind_create_frame, unwind_create_tip_frame): New functions.
6108 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6109 while a frame is only partially constructed.
6110
6111 * xterm.h (x_free_frame_resources): Declare.
6112
6113 * xterm.c (x_free_frame_resources): New function.
6114 (x_destroy_window): Use it.
6115
6116 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6117 don't interrupt the update for pending input initially, i.e.
6118 update at least some lines.
6119
6120 * keyboard.c (do_mouse_tracking): Make externally visible.
6121
6122 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
6123
6124 * xfns.c (gray_bitmap_bits): Declare `char *'.
6125
6126 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6127
6128 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6129 lines start with a relief line.
6130
6131 2000-12-12 Dave Love <fx@gnu.org>
6132
6133 * window.c (Fdisplay_buffer): Doc fix.
6134 (Fwindow_list): Remove unused var.
6135
6136 * buffer.h (mmap_set_vars): Declare.
6137
6138 * window.h (Fset_window_point): Declare.
6139
6140 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6141
6142 * msdos.c (fast_find_position): Don't overstep the last window row.
6143 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6144 variable `area'. When looking for a row under (X,Y), give up if some
6145 of the previous rows is not enabled.
6146
6147 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6148
6149 * window.c (Fset_window_point): If displaying cursors in windows
6150 other than the selected window, make sure redisplay updates
6151 other windows to show the new value of point in the window.
6152
6153 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6154
6155 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6156 the buffer is the sole visible buffer when in the mini-buffer.
6157
6158 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
6159 Bind `inhibit-read-only' to t.
6160 (unwind_with_echo_area_buffer): Use AREF.
6161
6162 * xfns.c (Fx_hide_tip): Simplified.
6163
6164 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6165 instead of `1'.
6166
6167 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6168
6169 2000-12-11 Gerd Moellmann <gerd@gnu.org>
6170
6171 * xfns.c (Fx_hide_tip): Fix last change.
6172
6173 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6174 nothing to do. Bind inhibit-quit.
6175 (tip_frame): Make it a Lisp_Object.
6176 (x_create_tip_frame): Set tip_frame after it has been added to
6177 Vframe_list.
6178 (Fx_show_tip): Don't set tip_frame here.
6179
6180 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6181
6182 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6183 Lisp_Object.
6184
6185 * dispextern.h: Change external declaration of tip_frame.
6186
6187 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6188 return an empty string.
6189
6190 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6191 of the window's update_mode_line flag, since the former is set by
6192 force-mode-line-update, not the latter. This makes
6193 column-number-mode slightly faster.
6194
6195 * xdisp.c (try_window_id) <all changes above window start>:
6196 Set the cursor.
6197
6198 2000-12-11 Paul Eggert <eggert@twinsun.com>
6199
6200 * config.in (HAVE_FTELLO): Remove.
6201 (HAVE_FSEEKO): Add.
6202 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6203 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6204 HAVE_FTELLO.
6205 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6206 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
6207
6208 2000-12-11 Miles Bader <miles@gnu.org>
6209
6210 * window.c (displayed_window_lines): Don't round up when
6211 converting empty space at bottom to lines.
6212 Handle non-newline-terminated final lines properly.
6213 (Fwindow_text_height): New function (used to be in lisp).
6214 (syms_of_window): Initialize it.
6215
6216 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6217
6218 * syntax.c (scan_lists): Check that the right quote char has the
6219 right Sstring syntax when jumping over strings.
6220 (init_syntax_once): Use Smax rather than 13.
6221
6222 2000-12-09 Miles Bader <miles@gnu.org>
6223
6224 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6225 with PARTIALLY, inverting the sense.
6226 (window_scroll_pixel_based): Scroll partially visible lines into
6227 place if we hit the beginning or end of the buffer.
6228 (displayed_window_lines): Don't include partially visible lines.
6229 (Fmove_to_window_line): Skip past any partially visible first line.
6230
6231 2000-12-08 Gerd Moellmann <gerd@gnu.org>
6232
6233 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6234
6235 * tparam.c (tparam1): Change the way buffers are reallocated to be
6236 portable and less obfuscated.
6237
6238 * termcap.c (tgetent): Change the way buffers are reallocated to
6239 be portable and less obfuscated.
6240
6241 * macros.c (store_kbd_macro_char): Change the way buffers are
6242 reallocated to be portable and less obfuscated.
6243
6244 * lread.c (read1): Change the way buffers are reallocated to be
6245 portable and less obfuscated.
6246
6247 * doc.c (Fsubstitute_command_keys): Change the way buffers
6248 are reallocated so that it is portable.
6249
6250 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6251
6252 * dosfns.c (Ffile_system_info): New function.
6253 (syms_of_dosfns): Defsubr it.
6254
6255 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6256
6257 * alloc.c (gc_sweep): Add comment.
6258
6259 2000-12-07 Gerd Moellmann <gerd@gnu.org>
6260
6261 * sound.c (vox_configure): Change order of ioctls.
6262 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
6263 Ignore errors when changing volume.
6264 (vox_close): Don't reset the device.
6265
6266 * process.c (read_process_output): Make sure the process marker's
6267 position is valid when the process buffer is changed in
6268 after-change functions. W3 does that.
6269
6270 * xfns.c (x_free_gcs): New function.
6271
6272 * xterm.h (x_free_gcs): Add prototype.
6273
6274 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6275 freeing GCs here.
6276
6277 * xterm.c (x_destroy_window): Call x_free_gcs so that
6278 resources of non-toolkit X windows will be freed.
6279
6280 2000-12-07 Andrew Innes <andrewi@gnu.org>
6281
6282 * w32fns.c (xlfd_charset_of_font): Fix last change.
6283
6284 2000-12-06 Dave Love <fx@gnu.org>
6285
6286 * md5.h (__P): Don't define -- it comes from config.h.
6287
6288 * strftime.c: Change some #if foo to #ifdef foo.
6289
6290 2000-12-06 Andrew Innes <andrewi@gnu.org>
6291
6292 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6293
6294 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
6295 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
6296 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
6297
6298 2000-12-06 Gerd Moellmann <gerd@gnu.org>
6299
6300 * alloc.c (gc_sweep): Prevent symbols read during loadup
6301 from being freed.
6302
6303 * xdisp.c (underlying_face_id): New function.
6304 (handle_face_prop, face_before_or_after_it_pos): Use it
6305 to determine the face ``under'' a string. Let strings inherit
6306 the face of the buffer under them.
6307
6308 * xfaces.c (face_at_string_position): Update function comment.
6309
6310 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6311 matrix if the window's left position has changed; we need to
6312 redraw it in this case.
6313
6314 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6315
6316 * window.c (coordinates_in_window): Check mouse on mode-line or
6317 header-line first.
6318
6319 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6320 advertized by the function documentation.
6321
6322 * window.c (syms_of_window): Doc fix.
6323
6324 * sound.c (vox_configure): Set volume for left and right channel.
6325 (sound_cleanup): Return nil.
6326
6327 * xdisp.c (move_it_by_lines): Fix paren typo.
6328
6329 * xterm.c (x_load_font): Don't use the font's max_bounds for
6330 computing the height of the font. If max_bounds' ascent or
6331 descent are greater than the font's ascent or descent, this means
6332 glyphs overlap, which should be handled now by redisplay.
6333
6334 * window.c (Veven_window_heights): New variable.
6335 (syms_of_window): DEFVAR_LISP it.
6336 (Fdisplay_buffer): Check Veven_window_heights before evening the
6337 window heights.
6338
6339 2000-12-06 Miles Bader <miles@gnu.org>
6340
6341 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6342 update `default-frame-alist' instead of setting no frame parameters.
6343
6344 2000-12-06 Kenichi Handa <handa@etl.go.jp>
6345
6346 * composite.c (update_compositions): Fix typo (use the correct
6347 variable).
6348
6349 2000-12-05 Jason Rumney <jasonr@gnu.org>
6350
6351 * md5.h: Remove underscores from function declarations.
6352 (__attribute__, __alignof__) [!__GNUC__]: Define.
6353
6354 * md5.c: Delay include of md5.h until after namespace cleaning.
6355
6356 * makefile.w32-in (fns.o): Depend on md5.h
6357 (md5.o): New target.
6358 (sunfns.o): Remove.
6359
6360 * makefile.nt: Likewise.
6361
6362 2000-12-05 Jason Rumney <jasonr@altavista.net>
6363
6364 * w32term.c (expose_area): Complete last change.
6365
6366 2000-12-05 Ken Raeburn <raeburn@gnu.org>
6367
6368 * minibuf.c: Include intervals.h.
6369
6370 2000-12-05 Jason Rumney <jasonr@gnu.org>
6371
6372 * w32term.c (x_produce_glyphs): If a font for a component of
6373 a composition is not found, use 1 pixel dot ascent and 0 dot
6374 descent value to avoid displaying terribly tall empty boxes.
6375 (expose_area): Pass x-coordinate relative to the exposed
6376 area to x_draw_glyphs instead of a window-relative coordinate.
6377
6378 2000-12-05 Gerd Moellmann <gerd@gnu.org>
6379
6380 * xdisp.c (next_element_from_ellipsis): Save face before selective
6381 display in saved_face_id, and set face_before_selective_p.
6382 (reseat_1): Reset face_before_selective_p.
6383 (append_space, extend_face_to_end_of_line): If iterator's
6384 face_before_selective_p is set, use the face from saved_face_id.
6385 (extend_face_to_end_of_line): For tty frames, make sure to
6386 use the right face id when producing spaces at the end of
6387 the line.
6388
6389 * dispextern.h (struct it): Add face_before_selective_p.
6390
6391 * keyboard.c (record_char): Don't record identical help-echo
6392 events in recent_keys.
6393
6394 * xterm.c [USE_X_TOOLKIT]: Close the display.
6395 (xim_close_dpy): Handle case that the display has been closed.
6396
6397 * xterm.c (x_destroy_window): Reset the frame's X window after
6398 destroying it.
6399
6400 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6401 variable window_width.
6402 (line_draw_cost): Fix code skipping over spaces at the end of the
6403 line when must_write_spaces is not set.
6404 (scrolling_window): Fix code inserting runs in list of all runs.
6405
6406 2000-12-05 Kenichi Handa <handa@etl.go.jp>
6407
6408 * coding.c (setup_coding_system): Be sure to initialize
6409 coding->category_idx.
6410
6411 2000-12-04 Gerd Moellmann <gerd@gnu.org>
6412
6413 * xterm.c (PER_CHAR_METRIC): Removed because not used.
6414
6415 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6416 area to x_draw_glyphs instead of a window-relative coordinate.
6417
6418 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6419 error in the message.
6420
6421 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6422 timer after having read a key. It's not good for code reading
6423 several keys in a loop, like an input method.
6424
6425 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6426 record undo information for format-decode.
6427
6428 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6429 current buffer is read-only, not if it isn't.
6430
6431 * keyboard.c (record_char): Record `help-echo' input events
6432 in recent_keys only if they display some help. Don't record
6433 `help-echo' events as macro char.
6434
6435 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6436
6437 * editfns.c (save_excursion_restore): Don't move point
6438 in another window if it is showing the wrong buffer.
6439 Avoid the call to Fwindow_live_p, for speed.
6440
6441 2000-12-04 Kenichi Handa <handa@etl.go.jp>
6442
6443 * xfaces.c (struct font_name): New member registry_priority.
6444 (split_font_name): Initialize the above member to zero.
6445 (concat_font_list): New function.
6446 (font_list): Include fonts of all alternative registries.
6447 (FONT_POINT_SIZE_QUANTUM): New macro.
6448 (better_font_p): Ignore point size difference less than
6449 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6450
6451 * xterm.c (x_produce_glyphs): If a font for a component of
6452 a composition is not found, use 1 pixel dot ascent and 0 dot
6453 descent value to avoid displaying terribly tall empty boxes.
6454
6455 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6456
6457 2000-12-03 Ken Raeburn <raeburn@gnu.org>
6458
6459 * coding.h (code_convert_string1): Declare.
6460
6461 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6462
6463 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
6464
6465 2000-12-02 Jason Rumney <jasonr@gnu.org>
6466
6467 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6468 correctly for single byte character case.
6469 (w32_per_char_metric): Do not try to make any assumptions about
6470 the metrics of BDF fonts.
6471 (x_estimate_mode_line_height): If `mode-line' face
6472 hasn't a font, use that of the frame, as drawing glyphs does.
6473 (note_mouse_highlight): Change the cursor shape on the vertical
6474 border between windows [not enabled].
6475
6476 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6477
6478 * w32fns.c (Fx_create_frame): Reintroduce the call to
6479 face-set-after-frame-defaults.
6480 (Vx_window_horizontal_drag_shape): New variable.
6481 (syms_of_xfns): DEFVAR_LISP it.
6482 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6483 enabled].
6484
6485 2000-12-02 Simon Josefsson <simon@josefsson.org>
6486
6487 * fns.c (Fmd5): Use a different logic to decide the coding system
6488 to use.
6489
6490 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6491
6492 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6493
6494 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
6495
6496 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6497
6498 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6499 height for YNegative.
6500 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6501 height; also see comment there.
6502
6503 * window.c (coordinates_in_window): Handle computations for
6504 positions on the vertical bar and fringes differently for
6505 window-system frames. Consider some pixels near the vertical bar
6506 as on the bar if the frame doesn't have vertical scroll bars.
6507 Associate positions between mode or header lines with the
6508 right window, the left one.
6509
6510 2000-12-01 Jason Rumney <jasonr@gnu.org>
6511
6512 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6513
6514 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6515 invalid frame.
6516
6517 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6518
6519 * window.c (struct saved_window): Add members orig_top and orig_height.
6520 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6521 (save_window_save, Fset_window_configuration): Save/restore
6522 window's orig_top and orig_height.
6523
6524 2000-12-01 Jason Rumney <jasonr@gnu.org>
6525
6526 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
6527
6528 * w32fns.c (x_set_cursor_color): Fix last change.
6529
6530 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6531
6532 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6533 sure that the next redisplay displays the minibuffer, so that
6534 the cursor will be replaced with what the minibuffer wants.
6535
6536 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6537 #ifndef instead of using #if.
6538 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6539 USE_TOOLKIT_SCROLL_BARS is defined.
6540
6541 2000-11-30 Jason Rumney <jasonr@gnu.org>
6542
6543 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6544 x_display_cursor.
6545
6546 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6547
6548 * fns.c (Fmd5): Doc fix.
6549
6550 2000-11-30 Simon Josefsson <simon@josefsson.org>
6551
6552 * fns.c (Fmd5): New function.
6553 (syms_of_fns): Defsubr md5.
6554
6555 * Makefile.in (obj): Add md5.o
6556
6557 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6558
6559 * md5.h, md5.c: New files, taken from glibc.
6560
6561 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6562
6563 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
6564 hasn't a font, use that of the frame, as drawing glyphs does.
6565
6566 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6567
6568 * eval.c (Frun_hooks): Allow 0 arguments.
6569
6570 2000-11-29 Gerd Moellmann <gerd@gnu.org>
6571
6572 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6573 is over the menu bar widget, say it's not on the frame.
6574
6575 * xfns.c (Fx_create_frame): Reintroduce the call to
6576 face-set-after-frame-defaults.
6577
6578 * eval.c (Fsignal): Reset handling_signal.
6579
6580 2000-11-28 Jason Rumney <jasonr@gnu.org>
6581
6582 * w32menu.c (add_menu_item): Reset menu item text when changing
6583 type to radio button.
6584
6585 2000-11-28 Gerd Moellmann <gerd@gnu.org>
6586
6587 * xselect.c: Update copyright.
6588
6589 * window.c (coordinates_in_window): If on a mode or header line,
6590 but sufficiently close to its start, return ``on vertical
6591 border''. This gives us a way to drag windows horizontally when
6592 using toolkit scroll bars.
6593
6594 * xterm.c (note_mouse_highlight): Change the cursor shape
6595 on the vertical border between windows.
6596
6597 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6598
6599 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6600 (syms_of_xfns): DEFVAR_LISP it.
6601 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6602
6603 * textprop.c (text_read_only): New function.
6604 (verify_interval_modification): Use it instead of signaling
6605 `text-read-only'. This makes it easier to catch this error
6606 with a breakpoint.:
6607
6608 * xdisp.c (forward_to_next_line_start): Check for newlines,
6609 not end of line, which includes CR.
6610
6611 2000-11-28 Kenichi Handa <handa@etl.go.jp>
6612
6613 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6614 include no-conversion.
6615
6616 2000-11-27 Jason Rumney <jasonr@gnu.org>
6617
6618 * w32fns.c (w32_load_system_font): Always mark font as double byte
6619 if codepage is unicode.
6620
6621 2000-11-27 Gerd Moellmann <gerd@gnu.org>
6622
6623 * xdisp.c (forward_to_next_line_start): If already on a newline,
6624 just consume it to avoid unintended skipping over invisible text below.
6625
6626 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6627 `vertical-line', `mode-line' and `header-line' events.
6628
6629 * xdisp.c (try_window_id): Avoid starting to display in the middle
6630 of a character, a TAB for instance. This is easier than to set
6631 up the iterator exactly, and it's not a frequent case, so the
6632 additional effort wouldn't really pay off.
6633
6634 2000-11-26 Andrew Choi <akochoi@i-cable.com>
6635
6636 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
6637 init_window_once.
6638
6639 2000-11-25 Jason Rumney <jasonr@gnu.org>
6640
6641 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6642 Args to window_from_coordinates should be pixel coordinates.
6643
6644 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6645 redisplay handles them properly.
6646
6647 2000-11-25 Miles Bader <miles@gnu.org>
6648
6649 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6650
6651 2000-11-24 Jason Rumney <jasonr@gnu.org>
6652
6653 * w32.c (init_environment): Set LANG environment variable based on
6654 locale settings, if not set.
6655
6656 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6657 making tool bar smaller. When clearing the frame, also
6658 clear current matrices. Clear frame when tool bar disappears.
6659 Don't use more lines for the tool-bar than is available.
6660 (x_change_window_heights): New function.
6661
6662 2000-11-24 Gerd Moellmann <gerd@gnu.org>
6663
6664 * xdisp.c (init_from_display_pos): If POS says we're already after
6665 an overlay string ending at POS, make sure to pop the iterator
6666 because it will be in front of that overlay string. When POS is
6667 ZV, we've thereby also ``processed'' overlay strings at ZV.
6668
6669 * xfaces.c (lface_from_face_name): Function comment fix.
6670
6671 2000-11-24 Miles Bader <miles@gnu.org>
6672
6673 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6674 apply `mode-line-inverse-video' -- zero means force display using
6675 the default face, non-zero means display using the specialized face.
6676 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6677
6678 2000-11-23 Kenichi Handa <handa@etl.go.jp>
6679
6680 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6681 hard coded `4'.
6682
6683 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6684
6685 * coding.c (decode_coding_emacs_mule): Fix the case of
6686 CODING_EOL_LF, which used uninitialized value of c.
6687
6688 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6689
6690 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6691
6692 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6693
6694 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6695 buffer object.
6696
6697 * frame.h (struct frame): Replace desired_tool_bar_items,
6698 current_tool_bar_items, n_desired_tool_bar_items,
6699 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
6700
6701 * frame.c (make_frame): Change initialization of tool bar
6702 items accordingly.
6703
6704 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
6705 Change references to members deleted from struct frame to use the
6706 new ones.
6707
6708 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
6709 references to members deleted from struct frame to use the new ones.
6710
6711 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
6712
6713 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6714
6715 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
6716 (note_tool_bar_highlight): Change references to members deleted
6717 from struct frame to use the new ones.
6718
6719 2000-11-23 Miles Bader <miles@gnu.org>
6720
6721 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6722 the face's inverse-video attribute, rather than overriding it.
6723
6724 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6725
6726 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6727 making tool bar smaller.
6728
6729 2000-11-22 Dave Love <fx@gnu.org>
6730
6731 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6732
6733 2000-11-22 Miles Bader <miles@gnu.org>
6734
6735 * keyboard.c (Vminibuffer_message_timeout): New variable.
6736 (command_loop_1): Use it to determine message timeout.
6737 (syms_of_keyboard): Initialize it.
6738
6739 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
6740
6741 2000-11-22 Kenichi Handa <handa@etl.go.jp>
6742
6743 * sysdep.c: Move the code for declaring h_errno after #include
6744 <netdb.h>.
6745
6746 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6747
6748 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6749 the menu bar when the tooltip is unmapped.
6750
6751 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6752 sole visible buffer when we're currently in the mini-buffer, and
6753 give up if so.
6754
6755 2000-11-21 Jason Rumney <jasonr@gnu.org>
6756
6757 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6758 put on the clipboard.
6759 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6760 copy of what Emacs last put there. If they are the same, do not
6761 use the clipboard copy to avoid losing data due to coding conversions.
6762
6763 2000-11-22 Miles Bader <miles@gnu.org>
6764
6765 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6766 (syms_of_minibuf): Initialize it.
6767 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6768 to prompt, don't make read-only.
6769
6770 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6771
6772 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6773 Add BEFORE/AFTER_POTENTIAL_GC.
6774
6775 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6776
6777 * buffer.c (mmap_free_1): Avoid a compiler warning.
6778
6779 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6780
6781 2000-11-21 Kenichi Handa <handa@etl.go.jp>
6782
6783 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6784 ... #endif scope.
6785
6786 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6787
6788 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
6789 screen supports it.
6790
6791 * s/gnu-linux.h: Don't use `#cpu'.
6792
6793 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6794 not defined in mman.h.
6795
6796 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
6797 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6798 and store an index in the XClientMessageEvent. Storing a
6799 Lisp_Object or pointer can fail on a 64 bit system, since X only
6800 transfers 32 bits.
6801 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6802
6803 2000-11-20 Dave Love <fx@gnu.org>
6804
6805 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6806
6807 2000-11-20 Gerd Moellmann <gerd@gnu.org>
6808
6809 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6810
6811 2000-11-20 Kenichi Handa <handa@etl.go.jp>
6812
6813 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6814 by WIDTH.
6815
6816 * alloc.c (make_string): Fix previous change. Be sure to make
6817 unibyte string correctly.
6818
6819 2000-11-19 Gerd Moellmann <gerd@gnu.org>
6820
6821 * window.c (Fwindow_list): Change parameter list to be XEmacs
6822 compatible.
6823 (window_list_1): New function.
6824 (window_loop): Use it instead of Fwindow_list.
6825
6826 * sysdep.c (emacs_ospeed): New variable.
6827 (toplevel): Don't declare ospeed extern.
6828 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6829
6830 * termcap.c (ospeed): Remove.
6831 (tputs) [!emacs]: Remove unused code.
6832 (tgetent): Avoid a compiler warning.
6833
6834 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6835 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
6836 SCROLL_BAR_X_WIDGET with additional argument DPY.
6837
6838 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6839 removed.
6840 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6841 Take the X display as additional argument.
6842 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6843 `Widget' is a pointer type that's not easily stored in Lisp_Object
6844 form in a portable way.
6845
6846 * dispnew.c (update_text_area): Fix last change.
6847
6848 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6849
6850 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6851
6852 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6853 clear current matrices.
6854
6855 * buffer.c (mmap_enlarge): Don't print a message on stderr
6856 if mapping new memory at the end of the existing region fails.
6857
6858 * dispnew.c (update_text_area): Don't skip over equal glyphs
6859 when the last current glyph overlaps the glyph to its right.
6860
6861 2000-11-18 Miles Bader <miles@gnu.org>
6862
6863 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6864 lines that *end* with "..." too (that's the most common case!).
6865
6866 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6867
6868 * xdisp.c (resize_mini_window): Temporarily change to the
6869 mini-window's buffer if necessary.
6870
6871 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6872 the tooltip obscures less text under it.
6873
6874 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6875
6876 * puresize.h (BASE_PURESIZE): Increase to 700000.
6877
6878 2000-11-18 Jason Rumney <jasonr@gnu.org>
6879
6880 * w32term.c (w32_draw_bitmap): Use face to set colors.
6881
6882 2000-11-17 Dave Love <fx@gnu.org>
6883
6884 * lread.c (Fload): Fix #ifdef for pcc.
6885
6886 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6887
6888 * xdisp.c (pos_visible_p): Compute the default character height
6889 differently.
6890
6891 2000-11-16 Gerd Moellmann <gerd@gnu.org>
6892
6893 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
6894 knowing the line's height; use the default font's height in that case.
6895
6896 * xfaces.c (weight_table): Add `demi' with the same meaning as
6897 `demibold'.
6898
6899 2000-11-16 Kenichi Handa <handa@etl.go.jp>
6900
6901 * dispnew.c (null_row): New global static variable.
6902 (clear_glyph_row): Delete local static variable null_row.
6903
6904 2000-11-15 Jason Rumney <jasonr@gnu.org>
6905
6906 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6907 (w32_alloc_lighter_color): Use new brightness calculations from
6908 xterm.c. Scale delta to be in the range expected by W32.
6909 (w32_draw_relief_rect): Use frame relief colors.
6910
6911 2000-11-15 Gerd Moellmann <gerd@gnu.org>
6912
6913 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6914 (Qinhibit_default_face_x_resources): New variable.
6915 (syms_of_frame): Initialize it.
6916 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6917
6918 * xdisp.c (pos_visible_p): Improve function comment.
6919
6920 * lisp.h (BINDING_STACK_SIZE): New macro.
6921
6922 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6923 reading the directory if readdir returns null and errno is EAGAIN
6924 or EINTR.
6925
6926 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6927
6928 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6929 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6930 Set amount_to_scroll to max of dx and scroll_step so that
6931 scroll-conservatively doesn't defeat scroll-step>1.
6932 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6933 scroll-conservatively for line-at-a-time scrolling.
6934
6935 2000-11-14 Gerd Moellmann <gerd@gnu.org>
6936
6937 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6938 extra argument.
6939
6940 * xdisp.c (current_mode_line_height, current_header_line_height):
6941 New variables.
6942 (init_xdisp): Initialize them.
6943 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6944 and use exact mode line heights if it is set.
6945
6946 * lisp.h (pos_visible_p): Change prototype.
6947
6948 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6949 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6950 and current_header_line_height first.
6951 (current_mode_line_height, current_header_line_height):
6952 Declare extern.
6953
6954 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6955
6956 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6957 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6958 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6959
6960 2000-11-14 Miles Bader <miles@gnu.org>
6961
6962 * xterm.c (x_alloc_lighter_color): Include an additive component
6963 too for dark colors, because FACTOR isn't enough.
6964 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6965 New macros.
6966
6967 2000-11-13 Gerd Moellmann <gerd@gnu.org>
6968
6969 * keyboard.c (show_help_echo): Call message3_nolog with number of
6970 bytes in the help string as 2nd parameter, instead of the number
6971 of characters.
6972
6973 2000-11-13 Miles Bader <miles@gnu.org>
6974
6975 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6976 (Fload): Use new openp return protocol.
6977 Don't try to use Vload_source_file_function to load .elc files.
6978 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6979 openp return protocol.
6980 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6981
6982 2000-11-11 Kenichi Handa <handa@etl.go.jp>
6983
6984 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6985
6986 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6987 Defined these macros.
6988 (NLIST_STRUCT): Avoid re-defining it.
6989
6990 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6991 -I/usr/contrib/X11R6/include.
6992 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6993
6994 2000-11-10 Jason Rumney <jasonr@gnu.org>
6995
6996 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6997
6998 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6999 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7000
7001 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7002 (Qw32_charset_vietnamese): New symbol.
7003 (xlfd_charset_of_font): New function.
7004 (w32_load_system_font): Use it.
7005 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7006 when Vw32_charset_info_alist is nil to ensure default face always
7007 has font. Use Fcar and Fcdr for safety.
7008 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7009 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7010 pseudo-codepages for special cases.
7011 (w32_to_x_font): New parameter to allow charset portion to be
7012 specified where there is many to one mapping. Callers changed.
7013 (w32_list_fonts): Avoid listing fonts that won't display.
7014
7015 2000-11-10 Gerd Moellmann <gerd@gnu.org>
7016
7017 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7018 (font_list_1): Renamed from font_list.
7019 (font_list): New function, trying alternative registries from
7020 Vface_alternative_font_registry_alist.
7021 (Finternal_set_alternative_font_registry_alist): New function.
7022 (syms_of_xfaces): Initialize and Staticpro
7023 Vface_alternative_font_registry_alist.
7024 Defsubr Finternal_set_alternative_font_registry_alist.
7025
7026 2000-11-09 Ken Raeburn <raeburn@gnu.org>
7027
7028 * lisp.h (Flooking_at): Declare.
7029
7030 2000-11-09 Gerd Moellmann <gerd@gnu.org>
7031
7032 * dired.c (directory_files_internal): Fix a braino.
7033
7034 * dired.c (directory_files_internal): Add missing GCPRO's.
7035 Some cleanup.
7036
7037 2000-11-08 Gerd Moellmann <gerd@gnu.org>
7038
7039 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7040 (resize_mini_window): Return quickly if Vresize_mini_window is
7041 nil. Don't return if Vmax_mini_window_height is nil.
7042
7043 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7044 (syms_of_xdisp): Initialize them.
7045 (resize_mini_window): Act according to the setting of
7046 Vresize_mini_window.
7047 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7048
7049 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7050 scroll bar widget after configuring it, so that it will appear at
7051 the right position from the start.
7052 (XTredeem_scroll_bar): Cleaned up.
7053
7054 2000-11-08 Kenichi Handa <handa@etl.go.jp>
7055
7056 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
7057 font is taller than the frame line, we don't have to bias the
7058 division by two.
7059
7060 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7061
7062 2000-11-07 Dave Love <fx@gnu.org>
7063
7064 * config.in (HAVE_MKSTEMP): Add.
7065
7066 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7067
7068 2000-11-07 Gerd Moellmann <gerd@gnu.org>
7069
7070 * window.c (Fset_window_configuration): Don't try to preserve
7071 point in the current buffer, if that buffer is displayed in more
7072 than one window.
7073
7074 * xfaces.c (lookup_named_face): If default face isn't realized,
7075 try to realize it. Return -1 if not successful.
7076 (Fx_list_fonts): Handle case that face cannot be determined.
7077 (Fface_font): Likewise.
7078
7079 2000-11-06 Gerd Moellmann <gerd@gnu.org>
7080
7081 * window.c (displayed_window_lines): Detect partially
7082 visible lines at the bottom correctly.
7083
7084 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7085
7086 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7087 when ensuring we don't do visit in indirect buffer.
7088
7089 2000-11-06 Kenichi Handa <handa@etl.go.jp>
7090
7091 * composite.h (compose_chars_in_text): Add prototype.
7092
7093 * composite.c (Vcomposition_function_table): New variable.
7094 (Qcomposition_function_table): New variable.
7095 (run_composition_function): Call
7096 Vcompose_chars_after_function with three arguments.
7097 (compose_chars_in_text): New function.
7098 (syms_of_composite): Modified the doc-string of
7099 Vcompose_chars_after_function. Declare composition-function-table
7100 as a lisp variable, and initialize it.
7101
7102 * xfns.c (x_encode_text): Suppress producing escape sequences for
7103 composition.
7104
7105 * xselect.c: Include composite.h.
7106 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7107
7108 2000-11-05 Andrew Innes <andrewi@gnu.org>
7109
7110 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7111
7112 * sysdep.c (read_input_waiting): Remove extraneous argument to
7113 read_socket_hook.
7114
7115 * w32fns.c (Fx_server_version): Include w32_build_number in the
7116 return list.
7117
7118 * w32heap.c (w32_build_number): New variable.
7119 (cache_system_info): Set it.
7120
7121 * w32heap.h (w32_build_number): Add extern.
7122
7123 * emacs.c (syms_of_emacs): Update docstring for
7124 system-configuration, to reflect the actual usage on MS-Windows.
7125
7126 2000-10-31 Gerd Moellmann <gerd@gnu.org>
7127
7128 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7129 process idle timers while waiting for another event.
7130
7131 * dispnew.c (update_frame_line): Handle case where spaces in
7132 the default face are colored.
7133
7134 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7135 window height hasn't changed.
7136
7137 2000-10-31 Jason Rumney <jasonr@gnu.org>
7138
7139 * w32term.c (x_produce_glyphs): Handle composite characters.
7140 (x_draw_glyph_string_foreground)
7141 (x_draw_composite_glyph_string_foreground): Restore old font.
7142
7143 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7144
7145 * minibuf.c (read_minibuf): Reset the undo history just before
7146 starting the recursive-edit.
7147
7148 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7149
7150 * xfaces.c (menu_face_change_count): New variable.
7151 (Finternal_set_lisp_face_attribute): Increment it for changes
7152 of the `menu' face.
7153 (realize_basic_faces): Reflect changes in the `menu' faces
7154 in menu bars.
7155
7156 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7157 dy obtained from the iterator's y-position after moving from
7158 scroll_margin_pos to PT; see comment there.
7159
7160 * xdisp.c (safe_eval_handler): Call add_to_log.
7161
7162 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7163 is not a symbol or string.
7164
7165 * xdisp.c (echo_area_display): Don't perform a display update from
7166 inside redisplay. The update will happen anyway at the end of
7167 redisplay, and it can confuse redisplay (GC messages while
7168 redisplaying, for instance.)
7169
7170 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7171
7172 * xrdb.c (x_load_resources): Use the class name in the defaults.
7173
7174 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7175 (regex_compile): Catch bogus \(\1\).
7176
7177 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7178
7179 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7180 RGB values.
7181
7182 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7183 we have a color cache, check that the cached color equals the
7184 allocated color. If not, clear the color cache.
7185
7186 * window.c (displayed_window_lines): Change buffers if necessary.
7187 Fix computation of displayed lines.
7188
7189 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7190 update_menu_bindings to DEFVAR_BOOL.
7191
7192 2000-10-30 Kenichi Handa <handa@etl.go.jp>
7193
7194 * search.c (Fset_match_data): Be sure to make search_regs always sane.
7195
7196 * puresize.h (BASE_PURESIZE): Increase to 680000.
7197
7198 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7199
7200 2000-10-29 Jason Rumney <jasonr@gnu.org>
7201
7202 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7203
7204 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7205 (w32_cache_char_metrics): Handle possibility that 'x' does not
7206 exist in a BDF font.
7207 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7208
7209 * w32bdf.h (bdffont): Add nchars.
7210
7211 * w32bdf.c (set_bdf_font_info): Set it.
7212 (w32_BDF_TextOut): Swap byte order of double byte characters.
7213 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7214
7215 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7216
7217 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7218 don't override the colors in frame's param_alist, unless they are
7219 unspecified.
7220
7221 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7222 reverse the effect of the highlight flag.
7223
7224 2000-10-27 Ken Raeburn <raeburn@gnu.org>
7225
7226 * window.h (Fwindow_live_p): Declare.
7227
7228 * undo.c (record_delete): Check that last_undo_buffer is really a
7229 buffer before applying XBUFFER to it.
7230
7231 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7232 Faref.
7233
7234 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7235
7236 * lisp.h (KEYMAPP): New macro.
7237 (get_keymap): Remove.
7238 (get_keymap_1): Rename get_keymap.
7239
7240 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7241
7242 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7243
7244 * xmenu.c (single_submenu): Use KEYMAPP.
7245 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7246 Use KEYMAPP rather than Fkeymapp.
7247
7248 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7249
7250 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7251 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7252 Use KEYMAPP rather than Fkeymapp.
7253 (single_submenu): Use KEYMAPP.
7254 (w32_menu_show, w32_dialog_show): Use TRUE.
7255
7256 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7257
7258 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7259 (Fkeymapp): Use KEYMAPP.
7260 (get_keymap): Rename from get_keymap_1. Remove old def.
7261 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7262 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7263 (Fminor_mode_key_binding): Don't raise an error if the binding
7264 is not a keymap.
7265 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7266 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7267
7268 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7269 Allow Vspecial_event_map to be autoloaded.
7270 (menu_bar_items): Fetch the keymap rather than using keymapp.
7271 (menu_bar_one_keymap): No need to follow func-indirect any more.
7272 (parse_menu_item): get_keymap_1 -> get_keymap.
7273 (tool_bar_items): Fetch the keymap rather than using keymapp.
7274 (read_key_sequence): Use KEYMAPP.
7275
7276 * intervals.c (get_local_map): Use get_keymap rather than following
7277 function-indirections explicitly.
7278
7279 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7280
7281 2000-10-27 Jason Rumney <jasonr@gnu.org>
7282
7283 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7284 point, as Windows has oversized fonts.
7285
7286 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7287
7288 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7289
7290 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7291 (freehook, reallochook): Handle null pointer arguments.
7292 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7293
7294 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7295
7296 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7297 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7298 Giving in to popular pressure to shut up the compiler with casts.
7299
7300 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7301
7302 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7303 signed value, and use a default value computed from the font's
7304 maximum descent.
7305
7306 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7307
7308 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7309 that specify a negative underline position can still use underlines.
7310
7311 * window.c (Fpos_visible_in_window_p): Make POS default to
7312 WINDOW's point, not the current buffer's point.
7313
7314 2000-10-26 Dave Love <fx@gnu.org>
7315
7316 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7317 when it's necessary.
7318
7319 2000-10-26 Gerd Moellmann <gerd@gnu.org>
7320
7321 * window.c (size_window): Compute size difference from sum of old
7322 child window sizes instead of from parent's size.
7323
7324 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7325 Handle obscured lines at the top of the window.
7326
7327 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7328 down after the last error condition check.
7329
7330 * frame.c (Fdelete_frame): Run delete-frame-hook.
7331
7332 2000-10-26 Kenichi Handa <handa@etl.go.jp>
7333
7334 * coding.c (decode_coding): Fix previous change (check also
7335 CODING_MODE_LAST_BLOCK).
7336
7337 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7338
7339 * regex.c: More `unsigned char' -> `re_char' changes.
7340 Also change several `int' into `re_wchar_t'.
7341 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7342 (PUSH_FAILURE_POINTER): Don't cast any more.
7343 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7344 We want GCC to complain, since this piece of code makes
7345 re_match non-reentrant, which *should* be fixed.
7346 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7347 (EXTEND_BUFFER): Use RETALLOC.
7348 (SET_LIST_BIT): Don't cast.
7349 (re_wchar_t): New type.
7350 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7351 that those two functions will always properly return.
7352 (IMMEDIATE_QUIT_CHECK): Cast to void.
7353 (analyse_first): Use recursion rather than an explicit stack.
7354 (re_compile_fastmap): Can't fail anymore.
7355 (re_search_2): Don't check re_compile_fastmap for failure.
7356 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7357 Now also sets the new value (passed in a new argument).
7358 (re_match_2_internal): Use it.
7359 Also, use a new var `reg' of type size_t when looping through regs
7360 rather than reuse the inappropriate `mcnt'.
7361
7362 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7363 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7364 (where_is_internal): Renamed from Fwhere_is_internal.
7365 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7366 (Fwhere_is_internal): New function wrapping where_is_internal.
7367 (where_is_internal_1): Handle the case where we're filling the cache.
7368 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7369
7370 2000-10-25 Miles Bader <miles@gnu.org>
7371
7372 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7373
7374 2000-10-25 Gerd Moellmann <gerd@gnu.org>
7375
7376 * window.c (pos_fully_visible_p): Removed.
7377 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7378 if position is visible and/or fully visible.
7379
7380 * lisp.h (pos_visible_p): Add prototype.
7381
7382 * xdisp.c (pos_visible_p): New function.
7383
7384 2000-10-25 Kenichi Handa <handa@etl.go.jp>
7385
7386 * process.c (send_process): If OBJECT is t, it means that the data
7387 is from C string, but we should encode it. Before calling
7388 setup_raw_text_coding_system, be sure to flush out data by the
7389 previous coding system.
7390
7391 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7392
7393 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7394 assignment of startpos to prev when startpos == pos.
7395
7396 * editfns.c (find_field): Set the field stickiness correctly from
7397 overlay fields. Use renamed `text_property_stickiness'.
7398 (text_property_stickiness): Renamed from `char_property_stickiness'.
7399 Only check text properties, not overlays.
7400 * textprop.c (get_char_property_and_overlay): New function.
7401 (Fget_char_property): Use it.
7402 * intervals.h (get_char_property_and_overlay): Add declaration.
7403
7404 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7405
7406 * keymap.c: Use AREF, ASET and ASIZE macros.
7407 (Fmake_sparse_keymap): Docstring fix.
7408 (synkey): Remove.
7409 (shadow_lookup): Move up.
7410 Handle the case where lookup-key returns an integer.
7411 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7412 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7413 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7414 Simplify/rewrite the keymap-finding code.
7415 Add check for command shadowing, using shadow_lookup.
7416
7417 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7418
7419 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7420 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7421 a symbol.
7422
7423 2000-10-24 Andrew Innes <andrewi@gnu.org>
7424
7425 * dired.c (directory_files_internal_unwind): New function.
7426 (directory_files_internal): Use it to ensure closedir is called
7427 even if expand-file-name or file-attributes throw, eg. because of
7428 a user interrupt. Also enable immediate_quit while calling
7429 re_search, so that matching can be interrupted as well.
7430
7431 2000-10-24 Andrew Innes <andrewi@gnu.org>
7432
7433 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7434 NT-Emacs only.
7435 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7436 so that re_search functions only quit when callers expect them to.
7437
7438 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7439
7440 * regex.c (regex_compile): Change the way of handling a range from
7441 a char less than 256 to a char not less than 256.
7442
7443 2000-10-24 Gerd Moellmann <gerd@gnu.org>
7444
7445 * window.c (size_window): Prevent setting window's width or
7446 height to a negative value (esp. with XSETFASTINT).
7447
7448 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7449 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7450 (protect_malloc_state) [GC_MALLOC_CHECK &&
7451 GC_PROTECT_MALLOC_STATE]: New function.
7452 (PROTECT_MALLOC_STATE): New macro.
7453 (__malloc_initialize, morecore, _malloc_internal)
7454 (_free_internal) _realloc_internal): Use it to make _heapinfo
7455 read-only outside of gmalloc.
7456
7457 * keymap.c: Update copyright.
7458
7459 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7460 a symbol.
7461
7462 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7463
7464 * filelock.c (unlock_all_files): Use unlock_file to expand each
7465 buffer's file_truename before trying remove its lock file.
7466
7467 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7468
7469 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7470 or CRLF, decode EOLs.
7471
7472 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7473
7474 * window.c (Fdisplay_buffer): Fix doc.
7475
7476 2000-10-23 Jason Rumney <jasonr@gnu.org>
7477
7478 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7479 ASCII font of default fontset on Windows.
7480
7481 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7482 xterm.c comment below).
7483
7484 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7485
7486 2000-10-23 Gerd Moellmann <gerd@gnu.org>
7487
7488 * xterm.c (x_connection_closed): Reset handling_signal.
7489
7490 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
7491
7492 2000-10-23 Miles Bader <miles@gnu.org>
7493
7494 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7495 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7496 maintain old behavior.
7497 * minibuf.c (Fminibuffer_complete): Likewise.
7498
7499 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7500
7501 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7502 that when a font can't be exactly centered, it errs up rather than
7503 down.
7504
7505 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
7506
7507 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
7508
7509 2000-10-23 Andrew Choi <akochoi@i-cable.com>
7510
7511 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7512
7513 * dispnew.c [macintosh]: Include macterm.h.
7514 (init_display) [macintosh]: Initialization for window system.
7515
7516 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7517 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7518 syms_of_search, x_term_init, and init_keyboard before calling
7519 init_window_once. Also, call syms_of_xmenu.
7520
7521 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7522 default fontset to Monaco.
7523
7524 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7525 NewMacWindow and DisposeMacWindow.
7526 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7527 instead of calling NewMacWindow and setting fields of
7528 f->output_data.mac directly. Call init_frame_faces.
7529 (Fdelete_frame) [macintosh]: Remove unused code.
7530 (Fmodify_frame_parameters) [macintosh]: Call
7531 x_set_frame_parameters instead of mac_set_frame_parameters.
7532
7533 * frame.h [macintosh]: Define menu_bar_lines field in struct
7534 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7535
7536 * keyboard.c [macintosh]: Include macterm.h.
7537 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7538 and menu_bar_activate_event type events as for X and NT.
7539 (make_lispy_event) [macintosh]: Construct lisp events of type
7540 MENU_BAR_EVENT as for X and NT.
7541
7542 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7543 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7544 (sys_subshell) [macintosh]: Remove definition entirely.
7545 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7546 Vwindow_system_version here. Remove initialization of
7547 Vx_bitmap_file_path.
7548 (read_input_waiting): Correct the number of parameters passed to
7549 read_socket_hook.
7550 Move all Macintosh functions to mac/mac.c.
7551
7552 * term.c [macintosh]: Include macterm.h.
7553
7554 * window.c [macintosh]: Include macterm.h.
7555
7556 * xdisp.c [macintosh]: Include macterm.h. Declare
7557 set_frame_menubar and pending_menu_activation.
7558 (echo_area_display) [macintosh]: Do not return if terminal frame
7559 is the selected frame.
7560 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7561 Allow only the selected frame to set menu bar.
7562 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7563 calling FRAME_EXTERNAL_MENU_BAR (f).
7564 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7565
7566 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7567 and check_x. Declare XCreateGC. Define x_create_gc and
7568 x_free_gc. Initialize font_sort_order.
7569 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7570 but call x_list_fonts instead of w32_list_fonts.
7571 (Finternal_face_x_get_resource) [macintosh]: Do not call
7572 display_x_get_resource.
7573 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7574 (realize_x_face) [macintosh]: Load the font if it is specified in
7575 ATTRS.
7576 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
7577
7578 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7579
7580 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7581 is nil: since we go to the end of submap anyway, we'd end up
7582 setting nil to nil.
7583 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7584 doesn't obey autoload.
7585
7586 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7587
7588 * msdos.c (dos_set_window_size): Update screen dimension variables.
7589
7590 2000-10-21 Jason Rumney <jasonr@gnu.org>
7591
7592 * w32term.c (w32_cache_char_metrics): Double check that font is
7593 really fixed pitch before trusting tmPitchAndFamily.
7594
7595 2000-10-21 Andrew Innes <andrewi@gnu.org>
7596
7597 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7598
7599 * w32term.h: Extern decl for w32_cache_char_metrics.
7600
7601 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7602
7603 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7604 (w32_unload_font): Free per_char array if present.
7605
7606 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7607 cached information in emulated XFontStruct to handle common cases
7608 quickly. Do not allocate XCharStruct for return.
7609 (w32_native_per_char_metric): New function.
7610 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7611 allocating one.
7612 (x_produce_glyphs): Don't get an HDC. Change calls to
7613 w32_per_char_metric to match arg change above. Remove calls to
7614 free results.
7615 (w32_get_glyph_overhangs): Ditto.
7616 (w32_cache_char_metrics): New function.
7617
7618 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7619 ($(BLD)/casefiddle.$(O)): Remove compile command.
7620 ($(BLD)/gmalloc.$(O)): Remove compile command.
7621 ($(BLD)/dispnew.obj):
7622 ($(BLD)/keyboard.obj):
7623 ($(BLD)/w32inevt.obj):
7624 ($(BLD)/w32bdf.obj):
7625 ($(BLD)/alloc.obj):
7626 ($(BLD)/buffer.obj):
7627 ($(BLD)/editfns.obj):
7628 ($(BLD)/emacs.obj):
7629 ($(BLD)/fileio.obj):
7630 ($(BLD)/fns.obj):
7631 ($(BLD)/indent.obj):
7632 ($(BLD)/insdel.obj):
7633 ($(BLD)/intervals.obj):
7634 ($(BLD)/minibuf.obj):
7635 ($(BLD)/print.obj):
7636 ($(BLD)/scroll.obj):
7637 ($(BLD)/sysdep.obj):
7638 ($(BLD)/textprop.obj):
7639 ($(BLD)/widget.obj):
7640 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7641 ($(BLD)/term.obj): Add dependency on dispextern.h.
7642
7643 * makefile.nt ($(BLD)\dispnew.obj):
7644 ($(BLD)\keyboard.obj):
7645 ($(BLD)\w32inevt.obj):
7646 ($(BLD)\w32bdf.obj):
7647 ($(BLD)\alloc.obj):
7648 ($(BLD)\buffer.obj):
7649 ($(BLD)\editfns.obj):
7650 ($(BLD)\emacs.obj):
7651 ($(BLD)\fileio.obj):
7652 ($(BLD)\fns.obj):
7653 ($(BLD)\indent.obj):
7654 ($(BLD)\insdel.obj):
7655 ($(BLD)\intervals.obj):
7656 ($(BLD)\minibuf.obj):
7657 ($(BLD)\print.obj):
7658 ($(BLD)\scroll.obj):
7659 ($(BLD)\sysdep.obj):
7660 ($(BLD)\textprop.obj):
7661 ($(BLD)\widget.obj):
7662 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7663 ($(BLD)\term.obj): Add dependency on dispextern.h
7664
7665 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7666
7667 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7668 with an additional argument of Qt.
7669
7670 2000-10-21 Miles Bader <miles@gnu.org>
7671
7672 * window.c (pos_fully_visible_in_window_p): New function.
7673 (Fpos_visible_in_window_p): Add FULLY argument.
7674 Use pos_fully_visible_in_window_p.
7675 (window_scroll_pixel_based, window_scroll_line_based): Update
7676 calls to Fpos_visible_in_window_p.
7677 * lisp.h (Fpos_visible_in_window_p): Update prototype
7678
7679 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7680
7681 * alloc.c (toplevel): Conditionalize compilation of mem_*
7682 functions differently.
7683
7684 2000-10-20 Jason Rumney <jasonr@gnu.org>
7685
7686 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7687 mem_init where it used to be. mem_z etc not defined otherwise.
7688
7689 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7690
7691 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7692 GC_MALLOC_CHECK.
7693 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7694 structure definition and related variabled to the top of the file.
7695 Include this code when GC_MALLOC_CHECK is defined.
7696 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7697 register/unregister allocated region.
7698 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7699 which isn't allocated.
7700 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7701 something which is already in use.
7702 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7703 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7704 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7705 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7706
7707 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7708 _malloc_internal instead of malloc.
7709 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7710 of free.
7711
7712 2000-10-20 Andrew Innes <andrewi@gnu.org>
7713
7714 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7715 Windows.
7716 (my_strftime) <macro>: Don't use macro arg list when redefining as
7717 _strftime_copytm.
7718 (my_strftime) <function>: Supply 0 as ut argument.
7719
7720 2000-10-19 Jason Rumney <jasonr@altavista.net>
7721
7722 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7723 including dispextern.h, as it stops faces from working.
7724
7725 * w32fns.c (Fx_create_frame): Don't bother calling
7726 face-set-after-frame-default since the caller does it for us
7727 anyway. Clean up calls to x_get_arg to be consistent with X.
7728
7729 * w32term.c (x_produce_glyphs): Handle
7730 unibyte_display_via_language_environment correctly.
7731 (w32_draw_box_rect): Fix the calculation of width and height.
7732
7733 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7734 as it has stopped working.
7735 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7736 menu-bar.
7737
7738 2000-10-19 Gerd Moellmann <gerd@gnu.org>
7739
7740 * eval.c (skip_debugger): Prevent a compiler warning.
7741 (Fcondition_case): Likewise.
7742 (Fbacktrace_frame): Use a null interactive spec.
7743
7744 2000-10-19 Kenichi Handa <handa@etl.go.jp>
7745
7746 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7747
7748 2000-10-18 Gerd Moellmann <gerd@gnu.org>
7749
7750 * strftime.c: Sync with glibc, file version 1.78.
7751 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7752 should no longer be used according to ISO 8601.
7753
7754 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7755 no map for meta_prefix_char, don't try to use it as a keymap.
7756 Instead, if T_OK is non-zero, look up a default binding, if any,
7757 otherwise, if T_OK is zero, return nil.
7758
7759 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7760 (x_to_xcolors, png_load): Use x_query_color.
7761
7762 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7763 New functions.
7764 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7765 which can be slow.
7766 (x_copy_color, x_alloc_lighter_color): Likewise.
7767
7768 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7769 (x_query_color, x_query_colors): Add prototype.
7770
7771 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7772 check_string_bytes only if not noninteractive, increase count to 50.
7773
7774 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7775
7776 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7777 markers correctly.
7778
7779 2000-10-17 Gerd Moellmann <gerd@gnu.org>
7780
7781 * alloc.c (pure_bytes_used): Renamed from pureptr.
7782 (ALIGN): New macro.
7783 (pure_alloc): New function.
7784 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7785 Use it.
7786 (Fpurecopy): Use PURE_POINTER_P.
7787
7788 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7789 PT has moved backward.
7790
7791 * xdisp.c (cursor_row_p): Take continued lines into account.
7792
7793 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7794 string's size_byte.
7795 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7796 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7797 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7798 string allocated.
7799
7800 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7801 of selective display off while searching for the next line start.
7802
7803 2000-10-17 Kenichi Handa <handa@etl.go.jp>
7804
7805 * Makefile.in (term.o): Depend on dispextern.h.
7806
7807 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7808
7809 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7810
7811 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7812
7813 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7814 the iterator at the beginning, so that they can be set later on,
7815 for instance in reseat_at_next_visible_line_start, without being
7816 overwritten.
7817
7818 * xfns.c (pbm_format): Add :foreground and :background keywords.
7819 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
7820 (xbm_load): Recognize foreground and background color specifications.
7821
7822 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7823
7824 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7825
7826 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
7827
7828 * msdos.c (IT_set_face): Compare highlighted face with the default
7829 face, and invert colors if these faces' colors are identical.
7830 (Fmsdos_remember_default_colors): Don't swap foreground and
7831 background colors in initial_colors[].
7832 (IT_set_frame_parameters): Don't swap frame's foreground and
7833 background pixels. If ALIST includes "(reverse . t)", swap
7834 foreground-color and background-color properties in frame's
7835 param_alist. If the original frame's param_alist doesn't specify
7836 the colors, store unspecified-fg and unspecified-bg, reversed if
7837 required.
7838
7839 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7840 the colors are unspecified and reversed, reverse fore- and back-
7841 ground in the returned value.
7842 (Fframe_parameter): Ditto.
7843
7844 2000-10-16 Gerd Moellmann <gerd@gnu.org>
7845
7846 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7847 get_last_unchanged_at_beg_row.
7848 (find_first_unchanged_at_end_row): Renamed from
7849 get_first_unchanged_at_end_row.
7850 (find_first_unchanged_at_end_row): Convert assertions to
7851 unconditional tests which abort. When looking for a row in
7852 unchanged text, don't go further back than first_text_row.
7853
7854 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7855 Don't add in the last line's height when deciding if the new
7856 position is below the scroll margin.
7857
7858 2000-10-16 Miles Bader <miles@gnu.org>
7859
7860 * editfns.c (Fconstrain_to_field): Check carefully for field
7861 boundaries if either OLD_POS or NEW_POS has a non-nil field
7862 property, even if they're the same.
7863
7864 2000-10-16 Kenichi Handa <handa@etl.go.jp>
7865
7866 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7867 height for XFillRectangle.
7868
7869 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7870
7871 * syntax.c (Fstring_to_syntax): New function extracted from
7872 Fmodify_syntax_entry.
7873 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7874 (skip_chars, Fforward_comment): Remove unused variables.
7875 (syms_of_syntax): Add defsubr for string-to-syntax.
7876 (describe_syntax): Add code for comment and string fences.
7877
7878 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7879
7880 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7881 Do the meta->esc mapping. Call get_keyelt before returning.
7882 Start scanning from the second element (the first is always `keymap')
7883 to make it easier to detect when we reach a parent map.
7884 Handle the case of inheriting from a symbol whose function is a map.
7885 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7886 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7887 (get_keyelt, Flookup_key): Update call to access_keymap.
7888 Remove the meta->esc mappings.
7889 (define_as_prefix): Delete old disabled code.
7890 (menu_item_p): New function.
7891 (where_is_internal_1): Skip over the few remaining menu items.
7892 * lisp.h (access_keymap): Update prototype.
7893 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7894 Update call to access_keymap.
7895 (follow_key, read_key_sequence): Update calls to access_keymap.
7896 Remove the meta->esc mappings.
7897
7898 2000-10-13 Gerd Moellmann <gerd@gnu.org>
7899
7900 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7901 with additional argument.
7902
7903 * xdisp.c (cursor_row_p): New function.
7904 (try_cursor_movement, display_line): Use it.
7905
7906 * xdisp.c (append_space): Also save/restore iterator's current
7907 character and its length.
7908
7909 * xdisp.c (init_from_display_pos): Add an assertion.
7910 (handle_stop): Don't set iterator's add_overlay_start.
7911 (handle_invisible_prop): Likewise.
7912 (load_overlay_strings): If text under an overlay is invisible,
7913 take both before- and after-strings into account when the iterator
7914 is positioned either at the start or at the end of the overlay.
7915 (forward_to_next_line_start): Rewritten.
7916 (reseat_at_next_visible_line_start): Rewritten.
7917 (set_iterator_to_next): Add parameter RESEAT_P.
7918
7919 * dispextern.h (struct it): Remove member add_overlay_start.
7920 (set_iterator_to_next): Change prototype.
7921
7922 2000-10-13 Kenichi Handa <handa@etl.go.jp>
7923
7924 * coding.c (code_convert_region): Be sure to initialize
7925 coding->category_idx.
7926 (decode_coding_string): Set coding->src_multibyte and
7927 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7928 (encode_coding_string): Set coding->src_multibyte and
7929 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
7930
7931 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7932
7933 * xfns.c (Fx_create_frame): Don't bother calling
7934 face-set-after-frame-default since the caller does it for us anyway.
7935
7936 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7937
7938 * window.c (coordinates_in_window): Fix detection of vertical line
7939 on character terminals.
7940
7941 2000-10-12 Gerd Moellmann <gerd@gnu.org>
7942
7943 * editfns.c (save_excursion_save): Additionally record the
7944 selected window.
7945 (save_excursion_restore): If buffer was visible in a window, and a
7946 different window was selected, and the old selected window is
7947 still live, restore point in that window.
7948
7949 2000-10-12 Kenichi Handa <handa@etl.go.jp>
7950
7951 * xterm.c (x_produce_glyphs): Handle
7952 unibyte_display_via_language_environment correctly.
7953
7954 * regex.c (regex_compile): Change the way of handling a range from
7955 unibyte char to multibyte char.
7956
7957 * syntax.c (skip_chars): Change the way of handling a range from
7958 unibyte char to multibyte char.
7959
7960 * process.c (read_process_output): Cancel previous change.
7961
7962 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7963
7964 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7965
7966 * charset.c (Ffind_charset_string): Doc fix.
7967 (Ffind_charset_region): Doc fix.
7968
7969 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
7970
7971 * process.c (read_process_output): Fix previous change. Adjust
7972 multibyteness of text to insert in a buffer by
7973 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
7974
7975 2000-10-10 Andreas Schwab <schwab@suse.de>
7976
7977 * alloc.c (mark_object): Remove all workarounds installed on
7978 1993-08-08.
7979
7980 2000-10-10 Kenichi Handa <handa@etl.go.jp>
7981
7982 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
7983 (base64_encode_1): Make it work for a text of multibyte form.
7984 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7985 case. Don't call str_to_multibyte because base64_decode_1
7986 produces correct multibyte form for eight-bit codes.
7987 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
7988 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7989 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7990 codes.
7991
7992 * charset.h (CHAR_STRING): Optimized for single byte characters.
7993
7994 2000-10-09 Andreas Schwab <schwab@suse.de>
7995
7996 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7997 -1 after socket is closed, to fall through to error processing.
7998
7999 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8000
8001 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
8002 variables. If ALIST includes foreground-color or
8003 background-color, change also the colors of the default face for
8004 this frame.
8005
8006 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8007
8008 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8009 them extern (they are defined on xfaces.c).
8010 (syms_of_msdos): Don't intern and don't staticpro
8011 Qbackground_color and Qforeground_color.
8012
8013 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8014
8015 * frame.c (Fframe_parameter): For non-windowed frames, if
8016 f->param_alist says foreground or background color is unspecified,
8017 call tty_color_name to return the color name computed from the
8018 frame's current colors.
8019
8020 2000-10-06 Dave Love <fx@gnu.org>
8021
8022 * terminfo.c (ospeed): Don't declare.
8023
8024 * sysdep.c: Don't include string.h.
8025 (h_errno): Declare conditional also on TRY_AGAIN.
8026
8027 * charset.c (Ffind_charset_string): Doc fix.
8028
8029 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
8030 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8031 error messages.
8032
8033 2000-10-05 Dave Love <fx@gnu.org>
8034
8035 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8036 position like menu-bar.
8037
8038 2000-10-05 Gerd Moellmann <gerd@gnu.org>
8039
8040 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8041
8042 * xdisp.c (handle_single_display_prop): Use safe_call1.
8043 (safe_call): Renamed from call_function.
8044 (safe_call1): New function.
8045 (handle_fontified_prop): Use safe_call1 instead of call1.
8046 (safe_eval): Renamed from eval_form.
8047 (safe_eval_handler): Renamed from eval_handler.
8048 (handle_single_display_prop, display_mode_element): Use safe_eval
8049 instead of eval_form.
8050
8051 * xfaces.c (merge_face_heights): Use safe_call instead of
8052 call_function.
8053
8054 * keyboard.c (show_help_echo): Use safe_call instead of
8055 call_function; use safe_eval instead of eval_form.
8056
8057 * lisp.h (safe_call): Renamed from call_function.
8058 (safe_eval): Renamed from eval_form.
8059 (safe_call1): Add prototype.
8060
8061 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8062
8063 * xfns.c (image_ascent): Rearrange ascent calculation for the
8064 has-a-font case.
8065
8066 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8067
8068 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8069 (where_is_internal_1): Don't bother ignoring menu-items any more.
8070
8071 2000-10-04 Gerd Moellmann <gerd@gnu.org>
8072
8073 * keyboard.c (update_menu_bindings): New variable.
8074 (parse_menu_item): Use AREF. If update_menu_bindings
8075 is 0, don't update menu bindings.
8076 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8077
8078 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8079
8080 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8081 to `mark_object'.
8082
8083 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8084
8085 * syntax.c (forw_comment): Match nestedness of ender/starter.
8086 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8087 (prev_char_comstart_first): Remove.
8088 (back_comment): Check two-char comment markers more carefully
8089 to better handle overlapping cases like *//* or /* */* */ ...
8090 Match nestedness of ender/starter.
8091
8092 2000-10-02 Dave Love <fx@gnu.org>
8093
8094 * config.in (HAVE_GAI_STRERROR): Add undef.
8095
8096 * process.c (Fopen_network_stream): Use it.
8097
8098 * m/alpha.h (NO_REMAP): Don't define.
8099
8100 2000-10-02 Gerd Moellmann <gerd@gnu.org>
8101
8102 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8103 return with a string converted to an integer or vice versa when
8104 Vmocklisp_arguments is t.
8105 (Fsignal): Likewise. The function can return for `quit'.
8106 (struct gcpro): Declare member `var' to point to a volatile
8107 Lisp_Object.
8108
8109 * eval.c (error): Prevent compiler warning.
8110
8111 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8112
8113 * keymap.c (keymap_memberp): New function.
8114 (Fset_keymap_parent): Use it.
8115 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8116 Use keymap_memberp to avoid creating cycles.
8117 (access_keymap): Use KEYMAPP.
8118
8119 2000-09-30 Gerd Moellmann <gerd@gnu.org>
8120
8121 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
8122 gai_strerror. Make sure xerrno is set if connect fails. Improve
8123 error recovery.
8124
8125 2000-09-29 Jason Rumney <jasonr@gnu.org>
8126
8127 * w32term.c (w32_char_font_type, w32_encode_char)
8128 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8129 (w32_bdf_per_char_metric): New function.
8130 (w32_per_char_metric): Use it.
8131 (x_draw_glyph_string_background): Always draw background for BDF
8132 glyphs.
8133
8134 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8135 GDI object which is a scarce resource.
8136
8137 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8138 (get_quoted_string): Fix limit on memchr search.
8139 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8140 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8141 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8142 (get_cached_font_char, cache_char_offset): Use macro
8143 BDF_CODEPOINT_RANGE_COVER_P.
8144 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8145 (clear_cached_bitmap_slots): New function.
8146 (GET_HEX_VALUE): G-Z, g-z are not hex.
8147 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8148 (get_bitmap_with_cache): Use new cache implementation.
8149 (create_offscreen_bitmap): New function.
8150 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8151
8152 * w32term.c (x_produce_glyphs): If the distance from the current
8153 position to the next tab stop is less than a canonical character
8154 width, use the tab stop after that.
8155 (x_draw_glyphs): Handle case START and END are out of bounds more
8156 carefully.
8157 (x_clear_mouse_face): Block/unblock input.
8158 (x_display_and_set_cursor): Don't show a hollow box cursor for
8159 buffers whose cursor_type is nil.
8160
8161 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8162
8163 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
8164
8165 * dispextern.h (updating_frame): Declare extern.
8166
8167 2000-09-29 Andreas Schwab <schwab@suse.de>
8168
8169 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8170
8171 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8172
8173 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8174 use its function definition.
8175 (tool_bar_items): Likewise.
8176
8177 * lisp.h (fatal): Declare NO_RETURN.
8178
8179 2000-09-29 Kenichi Handa <handa@etl.go.jp>
8180
8181 * keymap.c: Remove the line "#undef NULL".
8182
8183 2000-09-28 Gerd Moellmann <gerd@gnu.org>
8184
8185 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
8186
8187 2000-09-28 Dave Love <fx@gnu.org>
8188
8189 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8190
8191 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8192
8193 * .gdbinit (xreload): Note its need on GNU/Linux.
8194
8195 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8196 r_alloc, r_alloc_free.
8197
8198 2000-09-28 Kenichi Handa <handa@etl.go.jp>
8199
8200 * syntax.c (skip_chars): Handle negation correctly.
8201
8202 2000-09-27 Gerd Moellmann <gerd@gnu.org>
8203
8204 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8205 with non-zero FORCE_P argument.
8206
8207 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8208 Add assertions.
8209
8210 * xdisp.c (window_box_height): Add an assertion.
8211
8212 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8213 tool-bar than is available.
8214 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8215
8216 2000-09-27 Dave Love <fx@gnu.org>
8217
8218 * s/irix6-5.h: Now works 64-bit. Tidied.
8219
8220 2000-09-26 Gerd Moellmann <gerd@gnu.org>
8221
8222 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8223 instead of BITS_PER_INT.
8224 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8225 EMACS_UINT, respectively.
8226 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8227
8228 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8229
8230 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8231
8232 * window.c (freeze_window_starts): Construct last argument for
8233 foreach_window differently.
8234
8235 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8236
8237 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8238 EMACS_UINT instead of `int' and `unsigned int'.
8239 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8240
8241 * frame.h (struct frame): Make the `nothing' member of union
8242 output_data an EMACS_INT.
8243
8244 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
8245 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8246 size in the sdata structure.
8247 (SDATA_NBYTES, SDATA_DATA): New macros.
8248 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8249 differently for the different layout of the sdata structure.
8250 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8251 in sdata.
8252 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8253 Check that size recorded in the string size and size recorded in
8254 the sdata structure agree.
8255
8256 2000-09-25 Dave Love <fx@gnu.org>
8257
8258 * buffer.c: Include stdio.h.
8259
8260 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
8261
8262 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8263
8264 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
8265 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
8266 (__malloc_extra_blocks): Declare as __malloc_size_t.
8267
8268 2000-09-25 Gerd Moellmann <gerd@gnu.org>
8269
8270 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8271
8272 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8273 (read_char): If help-echo is showing, preserve the echo area
8274 when redisplaying.
8275
8276 * xdisp.c (help_echo_showing_p): New variable.
8277 (set_message): Reset it to 0.
8278 (init_xdisp): Initialize help_echo_showing_p.
8279
8280 * dispextern.h (help_echo_showing_p): Declare extern.
8281
8282 * config.in: Fix typo in __GNUC_MINOR__.
8283
8284 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8285
8286 * s/freebsd.h (POSIX_SIGNALS): Define.
8287
8288 * xterm.c (x_clear_mouse_face): Block/unblock input.
8289
8290 2000-09-24 Dave Love <fx@gnu.org>
8291
8292 * fns.c (base64_encode_1): Fix last change.
8293
8294 2000-09-22 Gerd Moellmann <gerd@gnu.org>
8295
8296 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8297
8298 * xdisp.c (try_window_reusing_current_matrix): More fixes
8299 for the case window has a header-line.
8300
8301 2000-09-22 Dave Love <fx@gnu.org>
8302
8303 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8304 a doc string.
8305
8306 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8307
8308 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8309
8310 2000-09-21 Gerd Moellmann <gerd@gnu.org>
8311
8312 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
8313 for GCC >= 2.5.
8314
8315 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8316 Declare NO_RETURN.
8317
8318 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8319 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8320 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8321 warnings.
8322
8323 * marker.c (byte_char_debug_check): Return void.
8324
8325 * xfns.c (Fx_create_frame): Set default frame parameter value
8326 for tool-bar-lines to 1.
8327
8328 * dispnew.c (scrolling_window): Compare y-positions of rows
8329 equal at the start. Some simplification.
8330
8331 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8332 reused rows' y-position in the case window has a header-line, and
8333 new window start is greater than old window start.
8334
8335 * process.c (process_sent_to): New variable.
8336 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8337 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8338 Declare more parameters volatile.
8339
8340 * lread.c (Vrecursive_load_depth_limit): New variable.
8341 (Fload): Check recursive loads whose recursion depth exceeds
8342 Vrecursive_load_depth_limit.
8343 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8344
8345 2000-09-20 Gerd Moellmann <gerd@gnu.org>
8346
8347 * fileio.c (Fread_file_name): Doc fix.
8348
8349 * editfns.c (Fmessage_or_box): Doc fix.
8350
8351 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8352
8353 * xfns.c (xbm_scan): Allow C-style comments.
8354
8355 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8356 symbols are specified, add color translations to the cache.
8357 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8358 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8359 xpm_cache_color.
8360 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8361 structures to xpm_init_color_cache.
8362
8363 2000-09-19 Gerd Moellmann <gerd@gnu.org>
8364
8365 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
8366
8367 2000-09-19 Andrew Innes <andrewi@gnu.org>
8368
8369 * makefile.nt (bootstrap-emacs): Don't change directory.
8370
8371 2000-09-19 Kenichi Handa <handa@etl.go.jp>
8372
8373 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8374
8375 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8376 If output buffer is too small, signal an appropriated error.
8377
8378 2000-09-18 Dave Love <fx@gnu.org>
8379
8380 * keyboard.c (menu_bar_items, tool_bar_items)
8381 (current_active_maps): Remove redundant get_local_map call.
8382
8383 2000-09-18 Gerd Moellmann <gerd@gnu.org>
8384
8385 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8386 cursor for buffers whose cursor_type is nil.
8387
8388 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8389 a feature to implement that is already implemented.
8390 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8391 warnings.
8392
8393 * xfns.c (x_clear_image_1): New function.
8394 (x_clear_image): Use it.
8395 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
8396
8397 * dispnew.c (update_window): Move test for invisible lines
8398 at the top to update_window_line.
8399 (update_window_line): Handle invisible lines here.
8400
8401 * xfns.c (clear_image_cache): Clear current matrices of all
8402 frames sharing an image cache. Block input while freeing
8403 images. Fix timestamp comparison.
8404 (x_clear_image): Also free the mask.
8405
8406 * xfns.c (lookup_image): Block input while loading the image so
8407 that we won't get interrupted in a state where the image isn't yet
8408 set up completely.
8409 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8410 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8411 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
8412 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
8413
8414 2000-09-16 Gerd Moellmann <gerd@gnu.org>
8415
8416 * dispnew.c (update_window): Make sure to make desired rows
8417 current even if they are completely invisible at the top
8418 of a window.
8419
8420 2000-09-15 Gerd Moellmann <gerd@gnu.org>
8421
8422 * xfns.c (lookup_image): Build mask before applying an algorithm.
8423 Recognize algorithm `disabled'.
8424 (cross_disabled_images): New variable.
8425 (COLOR_INTENSITY): New macro.
8426 (x_detect_edges): Use COLOR_INTENSITY.
8427 (x_disable_image): New function.
8428 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8429
8430 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8431 disabled state, don't apply an image transformation algorithm if
8432 the user specified an image for the disabled state. Use
8433 `:algorithm disabled' for creating a disabled item's image if the
8434 user hasn't specified an image.
8435
8436 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8437 allocation functions with the XPM lib.
8438 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8439 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8440 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8441 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
8442 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
8443 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8444 functions, if possible, because these handle color allocation
8445 failure more gracefully.
8446 (Fimage_mask_p): New function.
8447
8448 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8449 (Qedge_detection, Qheuristic): New symbols.
8450 (syms_of_xfns): Initialize new symbols.
8451 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8452 `algorithm (edge-detection ...)'.
8453 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8454 (tiff_format, gif_format, gs_format): Add `:mask'.
8455 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8456 (GIF_MASK, GS_MASK): New enumerators.
8457 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8458 (emboss_matrix, laplace_matrix): New variables.
8459 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8460 (x_edge_detection): New functions.
8461 (x_laplace): Rewritten in terms of x_detect_edges.
8462 (x_build_heuristic_mask): If image has a mask, free it.
8463
8464 2000-09-14 Andrew Innes <andrewi@gnu.org>
8465
8466 * makefile.w32-in: Revert to Unix line endings.
8467
8468 2000-09-14 Andrew Innes <andrewi@gnu.org>
8469
8470 * makefile.w32-in: Standardize indentation somewhat.
8471 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8472 cater for differences between shells.
8473
8474 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8475
8476 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8477
8478 * xterm.c (x_produce_glyphs): If the distance from the current
8479 position to the next tab stop is less than a canonical character
8480 width, use the tab stop after that.
8481
8482 2000-09-14 Dave Love <fx@gnu.org>
8483
8484 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8485
8486 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8487
8488 * xdisp.c (handle_fontified_prop): While running fontification
8489 functions, bind `fontification-functions' and
8490 `after-change-functions' to nil.
8491
8492 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8493 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8494
8495 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8496
8497 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8498 USE_MMAP_FOR_BUFFERS.
8499
8500 * insdel.c (make_gap): Use enlarge_buffer_text.
8501
8502 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8503 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8504 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8505 from former r_alloc_* functions in ralloc.c.
8506 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
8507 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8508 (mmap_init) [REL_ALLOC_MMAP]: New function.
8509 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8510 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8511 BUFFER_FREE.
8512
8513 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8514 (enlarge_buffer_text): Add prototype.
8515
8516 * ralloc.c: Remove everything having to do with the use of mmap.
8517
8518 2000-09-13 Gerd Moellmann <gerd@gnu.org>
8519
8520 * sound.c (Fplay_sound): Doc fix.
8521
8522 * keyboard.c: Avoid some more compiler warnings.
8523 (parse_tool_bar_item): Ignore cached key bindings.
8524
8525 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8526 and allocation of Lisp data.
8527
8528 2000-09-12 Gerd Moellmann <gerd@gnu.org>
8529
8530 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8531 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8532 defaults first.
8533
8534 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8535
8536 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
8537
8538 * ccl.c: Comment fixed.
8539 (MAX_MAP_SET_LEVEL): Increased to 30.
8540 (PUSH_MAPPING_STACK): Enclose with do-while block.
8541 (POP_MAPPING_STACK): Likewise.
8542 (stack_idx_of_map_multiple): New variable.
8543 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8544 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
8545 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
8546 (ccl_driver) <CCL_MapSingle>: Likewise.
8547 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8548 with the case where looking up process reaches to the end of
8549 map-set, and call CCL programs as the above change.
8550
8551 2000-09-11 Gerd Moellmann <gerd@gnu.org>
8552
8553 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8554 that might be clobbered by longjmp.
8555 (check_x_display_info, x_decode_color, create_frame_xic)
8556 (Fx_display_backing_store, Fx_display_visual_class)
8557 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8558
8559 * lread.c (init_lread): Set Vloads_in_progress to nil.
8560 (Fload): Show list of recursively loaded files, when signaling an
8561 error.
8562
8563 * lread.c (Vloads_in_progress): New variable.
8564 (record_load_unwind): New function.
8565 (Fload): Check for recursive loads.
8566 (syms_of_lread): Initialize Vloads_in_progress.
8567 (read_integer, read1): Avoid some compiler warnings.
8568
8569 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8570 compiler warnings.
8571
8572 2000-09-11 Miles Bader <miles@gnu.org>
8573
8574 * editfns.c (Fbuffer_string): Doc fix.
8575
8576 2000-09-10 Gerd Moellmann <gerd@gnu.org>
8577
8578 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8579
8580 2000-09-09 Ken Raeburn <raeburn@gnu.org>
8581
8582 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8583 whether to include other header files.
8584
8585 2000-09-09 Gerd Moellmann <gerd@gnu.org>
8586
8587 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
8588 by Fmemq as a boolean.
8589
8590 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8591
8592 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8593
8594 2000-09-08 Gerd Moellmann <gerd@gnu.org>
8595
8596 * ralloc.c (mmap_fd): Remove initializer which can make it
8597 read-only in a dumped Emacs.
8598 (mmap_fd_1): New variable.
8599 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8600 restore it from there.
8601 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8602 unconditionally so that mmap_fd can be initialized there.
8603 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8604 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8605 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8606
8607 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8608
8609 * xdisp.c (dump_glyph_row): Fix printf format string.
8610 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
8611
8612 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8613
8614 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8615 inheritance.
8616
8617 * xdisp.c (try_window_id): When trying to locate cursor in
8618 unchanged rows at the top, handle the case that we can't find it.
8619
8620 * xterm.c (x_draw_glyphs): Handle case START and END are out
8621 of bounds more carefully.
8622
8623 2000-09-08 Dave Love <fx@gnu.org>
8624
8625 * s/sol2.h (REL_ALLOC_MMAP): Define.
8626 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8627
8628 * ralloc.c: Don't include string.h (redundant).
8629 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8630 [!MAP_ANON]: Include fcntl.h.
8631 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8632 (r_alloc, r_re_alloc, r_alloc_free)
8633 (mmap_enlarge, mmap_set_vars): Use it.
8634 (r_alloc_init_fd): New function.
8635 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8636 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8637 malloc type.
8638
8639 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8640 Remove vm-limit.o.
8641
8642 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8643 change to __NetBSD__.
8644
8645 2000-09-08 Kenichi Handa <handa@etl.go.jp>
8646
8647 * search.c (compile_pattern): Check the multibyteness of cached
8648 string and PATTERN.
8649
8650 2000-09-08 Miles Bader <miles@gnu.org>
8651
8652 * xfaces.c (default_face_vector): Function removed.
8653 (Finternal_merge_in_global_face): Restore old global/local
8654 attribute override order. Use inline loop instead of calling
8655 default_face_vector.
8656
8657 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8658
8659 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8660 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8661 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8662 where necessary, in case POINTER_TYPE is `void'.
8663
8664 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8665
8666 * frame.c (make_terminal_frame): Initialize frame foreground and
8667 background colors to unspecified, for the initial instance of an
8668 MSDOS frame.
8669
8670 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8671
8672 * ralloc.c (mmap_find): Fix overlap computation.
8673 (mmap_enlarge): Compute nbytes before trying to find an
8674 overlapping region.
8675
8676 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8677 instead of `!='.
8678
8679 * lread.c (syms_of_lread): Change value of regexp
8680 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8681
8682 * xmenu.c (xdialog_show): When looking up the selection in
8683 menu_items, take `quote' boundaries into account; this corresponds
8684 to a nil ITEM in x-popup-dialog.
8685
8686 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8687
8688 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8689 not 0x81.
8690 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8691
8692 * coding.c (encode_coding_sjis_big5): Use translation table for
8693 encoding, not decoding. Fix the handling of latin-jisx0201.
8694 Check for the charset katakana-jisx0201 too.
8695 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
8696 (detect_coding_sjis): Check the byte sequence more rigidly.
8697
8698 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8699
8700 * xfaces.c (Vparam_value_alist): New variable.
8701 (syms_of_xfaces): Initialize it.
8702 (Finternal_set_lisp_face_attribute): Avoid more consing.
8703
8704 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8705 specially.
8706 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8707 (Qbackground_mode): New variable.
8708 (syms_of_frame_1): Initialize Qbackground_mode.
8709
8710 * lisp.h (Qdisplay): Declare extern.
8711
8712 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8713 change face on all frames, and change the default for new frames.
8714
8715 2000-09-07 Dave Love <fx@gnu.org>
8716
8717 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8718
8719 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8720
8721 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8722
8723 * charset.c: Include composite.h
8724 (lisp_string_width): New function.
8725 (Fstring_width): Call lisp_string_width instead of strwidth.
8726
8727 * Makefile.in (charset.o): Depends on composite.h.
8728
8729 * process.c (read_process_output): Before inserting the decoded
8730 text in the buffer, adjust the multibyteness.
8731
8732 2000-09-06 Gerd Moellmann <gerd@gnu.org>
8733
8734 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
8735 buffer's text buffer is null, map new memory.
8736
8737 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8738 POINTER_TYPE and size_t.
8739 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8740 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8741 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8742 [REL_ALLOC_MMAP]: New macros.
8743 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8744 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8745 [REL_ALLOC_MMAP]: New functions.
8746
8747 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8748 before and after unexec.
8749
8750 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8751 text buffers if necessary.
8752
8753 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8754 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8755 in prototypes.
8756
8757 * config.in (HAVE_MMAP): Add #undef.
8758
8759 2000-09-05 Gerd Moellmann <gerd@gnu.org>
8760
8761 * frame.c (Qdisplay_type): New variable.
8762 (syms_of_frame_1): Initialize it.
8763 (Fframe_parameter): New function that avoids consing.
8764 (syms_of_frame): Defsubr it.
8765
8766 * buffer.c (Fother_buffer): Consider buffers as invisible when
8767 they are displayed in a window on an invisible frame.
8768
8769 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8770 get-largest-window always return nil.
8771
8772 2000-09-04 Gerd Moellmann <gerd@gnu.org>
8773
8774 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8775 variable; recognize Emacs 19 elc files.
8776
8777 2000-09-04 Miles Bader <miles@gnu.org>
8778
8779 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8780 before initially popping up the menu, so the menu doesn't flash
8781 when the face settings are significantly different from the defaults.
8782
8783 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8784
8785 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8786 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8787 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8788 (BIT_UNIBYTE): Remove.
8789 (re_match_2_internal): Delete corresponding code and streamline the
8790 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8791 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8792 (re_wctype_t): New type.
8793 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8794 (regex_compile): Use them and fix handling of overly long char classes.
8795
8796 2000-09-03 Andrew Innes <andrewi@gnu.org>
8797
8798 * makefile.w32-in: Change to DOS line endings.
8799
8800 * s/ms-w32.h (ORDINARY_LINK): New define.
8801
8802 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8803 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8804
8805 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8806 (distclean): Delete them here instead.
8807
8808 * w32proc.c (compare_env): Convert to uppercase for comparison,
8809 not lowercase, to match how the native Windows shell works.
8810
8811 2000-09-03 Jason Rumney <jasonr@gnu.org>
8812
8813 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8814 CVS changes the line-ends when checking in/out on DOS/Windows.
8815
8816 * makefile.nt (emacs): Do not change directory to run temacs, as
8817 the load-path is set relative to current directory.
8818
8819 2000-09-03 Miles Bader <miles@gnu.org>
8820
8821 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8822
8823 2000-09-02 Gerd Moellmann <gerd@gnu.org>
8824
8825 * xdisp.c (redisplay_mode_lines): New function.
8826 (display_mode_lines): Return number of mode lines displayed.
8827 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8828 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8829
8830 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8831 string.h and strings.h.
8832 (index) [HAVE_INDEX]: Add prototype.
8833
8834 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8835 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8836
8837 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8838 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8839
8840 2000-09-01 Gerd Moellmann <gerd@gnu.org>
8841
8842 * lread.c (read1): Accept `?' as symbol constituent, for
8843 compatiblity with XEmacs.
8844
8845 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8846
8847 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8848 (struct re_pattern_buffer): Remove newline_anchor.
8849 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8850 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8851 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8852 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8853 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8854 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8855 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8856 Get rid of references to newline_anchor.
8857 (regcomp): Allocate and precompute a fastmap.
8858
8859 2000-08-31 Gerd Moellmann <gerd@gnu.org>
8860
8861 * lread.c (openp): GCPRO local variable `filename'.
8862
8863 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8864
8865 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8866
8867 * regex.c: Merge some changes from GNU libc. Add prototypes.
8868 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8869 Use memcmp and memcpy instead of bcopy and bcmp.
8870 (init_syntax_once): Use ISALNUM.
8871 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8872 (REG_UNSET_VALUE): Remove. Use NULL instead.
8873 (REG_UNSET, re_match_2_internal): Use NULL.
8874 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8875 New macros.
8876 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8877 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8878 (regex_compile): In handle_interval, return an error rather than try to
8879 unfetch the interval if we can't find the closing brace.
8880 Obey the RE_NO_GNU_OPS syntax bit.
8881 (TOLOWER): New macro.
8882 (regcomp): Use it.
8883 (regexec): Allocate regs.start and regs.end as one block.
8884
8885 2000-08-30 Gerd Moellmann <gerd@gnu.org>
8886
8887 * xdisp.c (echo_area_display): Check display_completed instead
8888 of calling detect_input_pending.
8889
8890 * dispnew.c (update_frame): Only set display_completed here; move
8891 the update_begin and update_end calls here from update_frame_1.
8892 (update_frame_1): Don't set display_completed here, don't call
8893 update_begin/update_end.
8894
8895 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8896 instead of store_frame_param.
8897
8898 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8899
8900 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8901 desired window matrix hasn't been displayed, use the current row
8902 instead. Make sure that only those frame rows are updated for
8903 which there exists a corresponding enabled desired row.
8904
8905 2000-08-29 Miles Bader <miles@gnu.org>
8906
8907 * xfaces.c (default_face_vector): New function.
8908 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8909
8910 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8911
8912 * lread.c (openp): Prevent temporary string passed to
8913 Ffile_readable_p from being garbage collected.
8914
8915 2000-08-28 Dave Love <fx@gnu.org>
8916
8917 * keymap.c (store_in_keymap): Add `static' to declaration.
8918
8919 2000-08-28 Gerd Moellmann <gerd@gnu.org>
8920
8921 * emacs.c, callint.c, doc.c, editfns.c
8922 (toplevel) [HAVE_STRING_H]: Include string.h.
8923 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8924 (index): Remove prototypes which might conflict with non-standard
8925 definitions of index/strchr.
8926
8927 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8928 (rindex): Define only if !HAVE_RINDEX.
8929
8930 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8931
8932 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8933
8934 2000-08-28 Miles Bader <miles@gnu.org>
8935
8936 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8937 made inconsistent by a font-related attribute in FROM.
8938 (merge_face_inheritance): Add function comment.
8939
8940 2000-08-28 Kenichi Handa <handa@etl.go.jp>
8941
8942 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8943 the 4th arg (PREV_EVENT) Qt to suppress input method.
8944
8945 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8946
8947 * regex.c: Indent cpp directives and remove parens after `defined'.
8948 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8949 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8950 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8951 (re_compile_pattern): Use size_t for length.
8952 (init_syntax_once): Move to a better place.
8953 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8954 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8955
8956 * syntax.c (back_comment): Detect cases where a comment-starter is
8957 actually inside another comment as in: /* a // b */ c // d \n.
8958 Make it clear that `comstart_pos' is unused for nested comments.
8959
8960 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8961 (KEYMAPP): New macro.
8962 (Fkeymap_parent, Fset_keymap_parent): Use it.
8963 (fix_submap_inheritance): Mark it static.
8964 (define_as_prefix, describe_buffer_bindings, describe_command)
8965 (describe_translation, describe_map): Complete prototypes.
8966
8967 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8968
8969 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8970 to better match the key-lookup behavior.
8971
8972 2000-08-27 Gerd Moellmann <gerd@gnu.org>
8973
8974 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8975 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8976
8977 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8978
8979 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8980 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8981 (xterm.o): Depend on coding.h
8982
8983 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8984
8985 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8986 the corresponding '#endif'.
8987
8988 2000-08-26 Miles Bader <miles@gnu.org>
8989
8990 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8991 * xfaces.c (QCinherit): New variable.
8992 (syms_of_xfaces): Initialize it.
8993 (LFACE_INHERIT): New macro.
8994 (Finternal_get_lisp_face_attribute)
8995 (merge_face_vector_with_property)
8996 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8997 (check_lface_attrs): Allow new types of face height. Check
8998 inherit attribute.
8999 (CYCLE_CHECK): New macro.
9000 (merge_face_inheritance): New function.
9001 (merge_face_vectors): Merge inherited faces too. Add F and
9002 CYCLE_CHECK arguments.
9003 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9004 (lookup_named_face, lookup_derived_face, realize_named_face)
9005 (face_at_string_position, face_at_buffer_position): Supply
9006 new F and CYCLE_CHECK arguments to merge_face_vectors.
9007 (merge_face_heights): New function.
9008 (merge_face_vectors, merge_face_vector_with_property)
9009 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9010 handle relative face heights.
9011 (lface_same_font_attributes_p): Compare heights using EQ.
9012
9013 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9014
9015 * charset.c (char_to_string): Check the character validity.
9016 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
9017
9018 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9019
9020 * regex.c (PUSH_FAILURE_COUNT): New macro.
9021 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9022 Handle popping of a register's or a counter's data.
9023 (POP_FAILURE_POINT): Use the new name.
9024 (re_match_2_internal): Push counter data on the stack for succeed_n,
9025 jump_n and set_number_at and remove misleading dead code in succeed_n.
9026
9027 2000-08-25 Gerd Moellmann <gerd@gnu.org>
9028
9029 * xdisp.c (redisplay_internal): If considering all windows on all
9030 frames, update the display for each frame as soon as possible,
9031 instead of first building all desired matrices for all frames, and
9032 then updating them all.
9033 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9034
9035 2000-08-24 Gerd Moellmann <gerd@gnu.org>
9036
9037 * bytecode.c (mark_byte_stack): Add a comment.
9038
9039 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9040 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
9041 a graphical frame.
9042
9043 2000-08-24 Kenichi Handa <handa@etl.go.jp>
9044
9045 * minibuf.c (do_completion): Always use compare-string, not
9046 string-equal because the latter doesn't pay attention to
9047 multibyteness of strings.
9048
9049 * process.c (create_process): Don't setup raw-text coding here.
9050 (Fopen_network_stream): Don't set coding->src_multibyte and
9051 coding->dst_multibyte here.
9052 (read_process_output): For process filter, return unibyte string
9053 if default-enable-multibyte-characters is nil.
9054 (send_process): If OBJECT is multibyte text, be sure to encoded it
9055 by the specified coding system for the process. Otherwise, setup
9056 raw-text coding.
9057 (init_process): Don't initialize default-process-coding-system here.
9058
9059 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9060
9061 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9062 <scroll-down-aggressively>: Likewise.
9063
9064 2000-08-23 Kenichi Handa <handa@etl.go.jp>
9065
9066 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9067 zero. Set coding->produced_char correctly.
9068
9069 2000-08-22 Andrew Innes <andrewi@gnu.org>
9070
9071 * makefile.w32-in: New file.
9072
9073 * unexw32.c (unexec): Ignore old_name, and use the actual location
9074 of the current executable instead. Base new_name on this.
9075
9076 * w32proc.c (create_child): Remove reference to security
9077 descriptor, which isn't needed and doesn't compile with mingw32.
9078
9079 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9080 up dllimport attributes.
9081 (x_update_window_end): Update prototype.
9082
9083 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9084 extern, which screws up dllimport attributes.
9085
9086 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9087 up dllimport attributes.
9088
9089 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9090 screws up dllimport attributes.
9091
9092 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9093 up dllimport attributes.
9094 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9095 screws up dllimport attributes.
9096
9097 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9098 up dllimport attributes.
9099
9100 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9101 screws up dllimport attributes.
9102
9103 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9104 screws up dllimport attributes.
9105
9106 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9107 up dllimport attributes.
9108
9109 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9110 unnecessary extern, which screws up dllimport attributes.
9111 (main): Ditto.
9112
9113 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9114 up dllimport attributes.
9115
9116 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9117 unnecessary extern, which screws up dllimport attributes.
9118
9119 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9120 screws up dllimport attributes.
9121
9122 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9123 up dllimport attributes.
9124
9125 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9126
9127 * w32bdf.c (search_file_line):
9128 (set_bdf_font_info):
9129 (seek_char):
9130 (w32_get_bdf_glyph):
9131 (w32_BDF_to_x_font): Fix compile warnings.
9132
9133 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
9134
9135 * w32select.c: Include keyboard.h before frame.h.
9136
9137 * w32fns.c (max): Define macro.
9138 (JOHAB_CHARSET): Define if not known.
9139 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9140 (Fx_show_tip): Synch with X version.
9141
9142 * w32xfns.c: Include keyboard.h before frame.h.
9143
9144 * w32fns.c: Include keyboard.h before frame.h.
9145
9146 * w32term.c: Include keyboard.h before frame.h.
9147
9148 * fontset.c: Include keyboard.h before frame.h.
9149
9150 * w32inevt.c: Include keyboard.h before frame.h.
9151 (MOUSE_MOVED): Define if not known.
9152
9153 * minibuf.c: Include keyboard.h before frame.h.
9154
9155 * keyboard.c: Include keyboard.h before frame.h.
9156
9157 * indent.c: Include keyboard.h before frame.h.
9158
9159 * dispnew.c: Include keyboard.h before frame.h.
9160
9161 * buffer.c: Include keyboard.h before frame.h.
9162
9163 * alloc.c: Include keyboard.h before frame.h.
9164
9165 * print.c: Include keyboard.h before frame.h.
9166
9167 * process.c: Include keyboard.h before frame.h.
9168
9169 * scroll.c: Include keyboard.h before frame.h.
9170
9171 * sysdep.c: Include keyboard.h before frame.h.
9172
9173 * term.c: Include keyboard.h before frame.h.
9174
9175 * window.c: Include keyboard.h before frame.h.
9176
9177 * xdisp.c: Include keyboard.h before frame.h.
9178 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9179
9180 * frame.c: Include keyboard.h before frame.h.
9181
9182 * w32heap.h: Undefine min, max.
9183
9184 * w32gui.h: Undefine min, max.
9185
9186 * unexw32.c: Change PUCHAR to PCHAR.
9187 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
9188 (relocate_offset):
9189 (get_section_info):
9190 (copy_executable_and_dump_data): Remove unnecessary static defs.
9191 (copy_executable_and_dump_data): Fix compile warnings.
9192
9193 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9194
9195 * w32console.c (min): Define macro.
9196 (clear_frame, write_glyphs): Fix compile warning.
9197
9198 * w32proc.c (compare_env):
9199 (find_child_console): Fix compile warning.
9200
9201 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9202 sys_errlist instead of _sys_errlist.
9203 (get_emacs_configuration_options): New function.
9204
9205 * s/ms-w32.h (sys_nerr): Provide default definition.
9206 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9207 name with _ prepended.
9208 (NSIG): Define if not known.
9209 (get_emacs_configuration): Provide extern declaration.
9210 (get_emacs_configuration_options): Provide extern declaration.
9211 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9212
9213 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
9214 (map_w32_filename):
9215 (read_unc_volume): Fix compile warning.
9216
9217 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9218 definitions from being used.
9219
9220 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9221
9222 * w32.c (unc_volume_file_attributes):
9223 (open_unc_volume): Make arg const.
9224
9225 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9226 (read_input_waiting): Remove excess parameter.
9227
9228 * w32.c (init_environment): Call _access.
9229 (check_windows_init_file): Call _close.
9230 (init_user_info): Call _putenv.
9231 (init_environment): Call _putenv and _strdup.
9232 (init_ntproc): Reset volume info cache on startup.
9233
9234 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9235 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9236 cannot override the CRT malloc.
9237
9238 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9239 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9240
9241 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9242 unless we are linking with a static CRT.
9243 (RVA_TO_PTR): Cast result to unsigned char*.
9244
9245 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9246 (add_volume_info): Use xstrdup.
9247
9248 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9249
9250 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9251 (do_completion, Fminibuffer_complete_word): Use it.
9252 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9253 var so it can take non-boolean values.
9254
9255 2000-08-21 Gerd Moellmann <gerd@gnu.org>
9256
9257 * editfns.c (find_field): Formatting changes.
9258 (toplevel): Some old-style function forward declarations
9259 changed to prototypes, some new protypes added, some functions
9260 made static.
9261
9262 * lisp.h (set_time_zone_rule): Add prototype.
9263 (use_dialog_box): External declaration.
9264
9265 * keyboard.c (gen_help_event): Add parameter SIZE.
9266 (kbd_buffer_events_waiting): Slightly rewritten.
9267 (clear_event): New function.
9268 (kbd_buffer_get_event): Use it, and clear the input_events of
9269 HELP_EVENTs.
9270 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9271 don't fill the newly created array with nils.
9272 (toplevel): Convert some old-style function forward declarations
9273 to prototypes.
9274
9275 * keyboard.h (gen_help_event): Change prototype.
9276
9277 * xterm.c (XTread_socket): Change calls to gen_help_event.
9278
9279 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9280
9281 * eval.c (Fmacroexpand): Doc fix.
9282
9283 2000-08-20 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32term.h (x_display_info_for_display): Remove as this function
9286 does not exist on W32.
9287
9288 * w32term.c (help_echo_window): New variable.
9289 (syms_of_w32term): staticpro it.
9290 (note_mode_line_highlight): Set it.
9291 (XTextExtents16): Removed as there is no equivalent on W32.
9292 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9293 the X way of doing this will not work for W32.
9294 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9295 (x_draw_image_foreground): Avoid drawing outside of the clip area
9296 when image doesn't have a mask.
9297 (note_mouse_highlight): Process overlays in the right order of
9298 priority. Set help_echo_window.
9299 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9300 because that's more visible for large images.
9301
9302 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9303 name to single_keymap_panes.
9304 (w32_menu_show): Set wv->title when dealing with titles.
9305 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9306
9307 2000-08-21 Miles Bader <miles@gnu.org>
9308
9309 * minibuf.c (do_completion): Try again if we rewrite the input
9310 string, but no completion was done, so that any completion message
9311 will be correct.
9312
9313 2000-08-20 Gerd Moellmann <gerd@gnu.org>
9314
9315 * xfaces.c (lface_equal_p): Compare strings differently.
9316 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9317 (realize_tty_face): Use them.
9318 (syms_of_xfaces): Initialize new variables.
9319 (map_tty_color): New function, extracted from realize_tty_face.
9320 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9321 foreground or background color, store the new color name in the
9322 realized face; previous code trying to do this had no effect.
9323 (realize_tty_face): Use map_tty_color.
9324 (Fclear_face_cache): Set face_change_count and ensure thorough
9325 redisplay.
9326
9327 2000-08-19 Gerd Moellmann <gerd@gnu.org>
9328
9329 * undo.c (record_first_change, record_marker_adjustment): Don't
9330 use XBUFFER on last_undo_buffer which might not be a buffer.
9331
9332 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9333
9334 * coding.c (decode_coding_string): Set members consumed,
9335 consumed_char, produced, produced_char of *coding correctly. If
9336 decode_coding doesn't consume any byte, don't try anymore.
9337 (encode_coding_string): Likewise.
9338
9339 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9340
9341 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9342 conditional have void type, for Standard C compilers.
9343
9344 * xdisp.c (redisplay_internal): Compare windows for equality with
9345 EQ, instead of applying XWINDOW to something that might not
9346 be a window.
9347
9348 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9349
9350 * fontset.c (Finternal_char_font): Search only the selected frame
9351 for a window of the current buffer.
9352
9353 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9354
9355 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
9356 Lisp_Objects.
9357
9358 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9359 second half of a HELP_EVENT is found at the start of kbd_buffer.
9360
9361 2000-08-18 Miles Bader <miles@gnu.org>
9362
9363 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9364
9365 * editfns.c (save_restriction_save): Rewrite to use markers.
9366 (save_restriction_restore): Rewrite to understand new form of data
9367 saved by save_restriction_save.
9368 (Fsave_restriction): Remove cautionary note in doc-string.
9369
9370 2000-08-17 Gerd Moellmann <gerd@gnu.org>
9371
9372 * fileio.c (build_annotations): Add a comment explaining the
9373 return value of format-annotate-function. Replace a spurious call
9374 to Flength with a CONSP test. Call format-annotate-function with
9375 a fifth arg specifying how many times the function is been called
9376 in a row, to let it choose temporary buffers appropriately.
9377
9378 2000-08-17 Dave Love <fx@gnu.org>
9379
9380 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9381 declare make_temp_name twice.
9382
9383 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
9384 (unreadpure): Give it an arg.
9385
9386 * unexalpha.c: Prototype fatal_unexec, mark_x,
9387 update_dynamic_symbols. Declare unexec as void.
9388
9389 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9390 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9391
9392 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
9393 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
9394
9395 * alloca.c: Use #error.
9396 [POINTER_TYPE]: Use it.
9397
9398 * eval.c (Fdefvar): Doc fix.
9399
9400 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9401 INITIALIZE_INTERVAL.
9402
9403 * buffer.h: Avoid DECLARE_INTERVALS.
9404
9405 * config.in: Add size_t.
9406
9407 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9408
9409 * w16select.c (set_clipboard_data): If there's not enough memory
9410 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9411 expects. In case of other failures, return 3.
9412 (system_error_msg): New error message.
9413 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9414 system_error_msg.
9415
9416 2000-08-16 Gerd Moellmann <gerd@gnu.org>
9417
9418 * term.c (write_glyphs): Also turn off inverse video after turning
9419 off other appearances in case TS_exit_attribute_mode is not equal
9420 to TS_end_standout_mode.
9421 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9422 with the same face.
9423 (turn_off_face): Reset standout_mode only if
9424 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9425 is equal to TS_end_standout_mode.
9426
9427 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9428
9429 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9430 sequence at the end of the source block.
9431
9432 * ccl.c (Fccl_program_p): Docstring modified.
9433 (Fccl_execute): Likewise.
9434 (Fccl_execute_on_string): Likewise.
9435
9436 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9437
9438 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9439
9440 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9441
9442 The following changes are mainly to fix bugs of
9443 encode/decode-coding-string failing if encoding/decoding return
9444 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9445 variable conversion_buffer.
9446
9447 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9448 decrement dst_end to avoid buffer overflow in the later call of
9449 string_as_multibyte
9450
9451 * coding.h (conversion_buffer_size, conversion_buffer)
9452 (get_conversion_buffer): Extern deleted.
9453
9454 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9455 (conversion_buffer, conversion_buffer_size): Variables deleted.
9456 (get_conversion_buffer): Function deleted.
9457 (struct conversion_buffer): New structure.
9458 (MAX_ALLOCA): New macro.
9459 (allocate_conversion_buffer): New macro.
9460 (extend_conversion_buffer, free_conversion_buffer): New functions.
9461 (ccl_coding_driver): Set coding->result.
9462 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9463 this is the last block of source.
9464 (encode_coding): Likewise. Handle the source block as the last
9465 one only when the whole source text is consumed.
9466 (decode_coding_string): Handle the case that the output buffer is
9467 too small to decode the whole source text. Use
9468 allocate_conversion_buffer, extend_conversion_buffer and
9469 free_conversion_buffer, not get_conversion_buffer.
9470 (encode_coding_string): Likewise.
9471 (init_coding): Function deleted.
9472 (init_coding_once): Delete code to initialize conversion_buffer_size.
9473
9474 * emacs.c (main): Don't call init_coding.
9475
9476 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
9477
9478 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9479 (insert_glyphs): Likewise.
9480
9481 * w32console.c (write_glyphs): Use a locally declared
9482 conversion_buffer.
9483
9484 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9485
9486 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9487 member of display_info is NULL.
9488
9489 2000-08-15 Gerd Moellmann <gerd@gnu.org>
9490
9491 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
9492
9493 * term.c (turn_off_face): Reset standout_mode when resetting
9494 appearances with capability `me'.
9495 (write_glyphs): Switch on inverse video before each face change.
9496
9497 2000-08-14 Dave Love <fx@gnu.org>
9498
9499 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9500 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9501 (lisp_free): Declare and make static.
9502
9503 * window.c: Fix embedded comment.
9504 (syms_of_window): Fix doc string.
9505
9506 2000-08-14 Gerd Moellmann <gerd@gnu.org>
9507
9508 * keymap.c (push_key_description): If C without modifiers is < 32,
9509 make sure to print `C-' before `M-', like in the manual.
9510
9511 2000-08-11 Gerd Moellmann <gerd@gnu.org>
9512
9513 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9514 since they aren't relocated anymore.
9515 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
9516
9517 * xdisp.c (try_cursor_movement): Fix handling of cursor in
9518 partially visible line which is smaller than the window's height.
9519
9520 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9521
9522 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
9523 the multibyte form of eight-bit-control characters.
9524 (Fccl_execute_on_string): Initialize ccl->multibyte.
9525
9526 * ccl.h (struct ccl_program): New member multibyte.
9527
9528 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9529
9530 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9531
9532 * regex.c (regex_compile) <normal_char>: Pay attention to
9533 multibyteness.
9534 (analyse_first) <exactn>: Setup fastmap correctly for
9535 eight-bit-control characters.
9536
9537 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9538
9539 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
9540
9541 * keyboard.c (make_lispy_event): Handle the new event type
9542 multibyte_char_keystroke.
9543
9544 * xterm.c: Include coding.h.
9545 (XTread_socket): Work around a bug of XmbLookupString. If the
9546 input is from XIM, decode it according to the current locale. In
9547 that case, generate multibyte_char_keystroke events.
9548
9549 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9550
9551 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9552 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9553
9554 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9555
9556 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9557 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9558 (move_it_in_display_line_to): Record iterator's ascent and descent
9559 before producing glyphs, and restore them when we know the glyph
9560 doesn't fit on the line.
9561 (move_it_to): Restructured so that it's easier to debug. If
9562 moving to a vpos, and not moving to an x or character position,
9563 stop as soon as the specified vpos is reached; don't move further
9564 into that line because that might change the computed line height.
9565 (try_cursor_movement): New function, extracted from the cursor
9566 movement branch of redisplay_window. If ending on a partially
9567 visible line, don't try to scroll if the cursor line is taller
9568 than the window.
9569 (redisplay_window): Use try_cursor_movement.
9570
9571 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9572 because that function doesn't cope with variable-height lines.
9573
9574 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9575 box cursor because that's better visible for large images.
9576
9577 2000-08-10 Miles Bader <miles@gnu.org>
9578
9579 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9580
9581 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9582
9583 * xdisp.c (Vmessages_buffer_name): New variable.
9584 (message_dolog): Use it.
9585 (syms_of_xdisp): Initialize it.
9586
9587 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9588
9589 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
9590 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9591 redundant now that keyboard.h is included.
9592
9593 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9594
9595 * keyboard.c (kbd_buffer_events_waiting): New function.
9596
9597 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9598
9599 * msdos.c: Include keyboard.h.
9600 (XMenuActivate): Empty no_event events from the event buffer. If
9601 no events are left after that, call clear_input_pending.
9602 (mouse_clear_clicks): New function, code moved from mouse_init.
9603 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9604 mouse driver to ``forget'' any past clicks.
9605
9606 * Makefile.in (msdos.o): Depend on keyboard.h.
9607
9608 2000-08-09 Gerd Moellmann <gerd@gnu.org>
9609
9610 * lisp.h (input_pending): External declaration.
9611
9612 * dispextern.h (Qredisplay_dont_pause): Declare extern.
9613
9614 * xdisp.c (echo_area_display): Display thoroughly if input is
9615 pending. Bind redisplay-dont-pause to t during the redisplay.
9616 in case input is pending.
9617
9618 * dispnew.c (Qredisplay_dont_pause): New variable.
9619 (syms_of_display): Initialize and staticpro it.
9620 (update_frame_1): Don't interrupt the display for pending input if
9621 redisplay_dont_pause is set.
9622
9623 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9624
9625 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9626
9627 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9628
9629 * callproc.c (Fcall_process): Terminate the unwind-protect around
9630 the post-read-conversion of coding system.
9631
9632 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9633 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9634 * buffer.h (overlays_at): Update prototype.
9635 * xdisp.c (next_overlay_change): Update call to overlays_at.
9636 * xfaces.c (face_at_buffer_position): Likewise.
9637 * textprop.c (Fget_char_property): Likewise.
9638 * xterm.c (note_mouse_highlight): Likewise.
9639
9640 * minibuf.c (do_completion): Don't consider a simple change of
9641 case as `completion'.
9642
9643 2000-08-08 Ken Raeburn <raeburn@gnu.org>
9644
9645 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
9646 * undo.c (record_delete): Make sure last_point_position_buffer is
9647 a buffer before comparing pointers.
9648
9649 * coding.h (decode_coding_string): Declare.
9650
9651 * intervals.h (Fprevious_single_char_property_change): Declare.
9652
9653 * textprop.c (Fprevious_single_char_property_change): Don't do
9654 arithmetic directly on lisp objects.
9655
9656 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
9657
9658 * keyboard.h (menu_item_eval_property): Declare.
9659
9660 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9661 reuse as buffer name, instead of recreating (and discarding) every
9662 time a message is logged.
9663 (with_echo_area_buffer): Make callback arg A2 a lisp object.
9664 (current_message_1, truncate_message_1, set_message_1)
9665 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9666 (current_message, truncate_echo_area, display_echo_area)
9667 (resize_echo_area_axactly): Changed calls.
9668
9669 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
9670 Lisp object.
9671 (Ffind_coding_systems_region_internal): First argument to Fappend
9672 must be an integer, not a Lisp object.
9673
9674 2000-08-08 Kenichi Handa <handa@etl.go.jp>
9675
9676 * charset.c (Fchar_width): Doc fix.
9677
9678 2000-08-08 Gerd Moellmann <gerd@gnu.org>
9679
9680 * charset.c (Fstring_width): Doc fix.
9681
9682 2000-08-07 Gerd Moellmann <gerd@gnu.org>
9683
9684 * xdisp.c (start_display): When starting display on a continuation
9685 line, clear ascent and descent members of the iterator structure;
9686 the height of the continued line does not affect the height of the
9687 continuation line.
9688 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9689 line taller than the window.
9690 (redisplay_window) <forced window start>: Handle case that the
9691 middle of the window is not found in any row.
9692 (dump_glyph_row): Show more information.
9693 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9694 first text line in a glyph matrix.
9695
9696 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9697 of the clip area when image doesn't have a mask.
9698
9699 * fns.c (sweep_weak_table): Fix survival conditions for
9700 key-or-value and key-and-value weakness.
9701
9702 * .gdbinit (xhashtable): New command.
9703
9704 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9705 tables out of the list of all weak hash tables.
9706
9707 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9708 a new buffer is created, make sure echo_area_buffer[] references
9709 the new buffer.
9710
9711 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9712
9713 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9714 the doc string.
9715
9716 2000-08-07 Kenichi Handa <handa@etl.go.jp>
9717
9718 * syntax.c (skip_chars): Fix previous change. Make the handling
9719 of unibyte string consistent with that of regex search.
9720
9721 2000-08-05 Gerd Moellmann <gerd@gnu.org>
9722
9723 * xmenu.c (popup_get_selection): Use xfree instead of free.
9724
9725 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9726
9727 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9728
9729 * callproc.c (child_setup): Use xfree instead of free.
9730
9731 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9732 instead of malloc.
9733 (run_mac_command, closedir): Use `xfree' instead of `free'.
9734
9735 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9736
9737 * eval.c (error): Use xfree instead of free.
9738
9739 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9740
9741 * fns.c: Replace `illegal' with `invalid'.
9742 (Fmake_hash_table, make_hash_table): Allow table size of 0.
9743
9744 2000-08-05 Kenichi Handa <handa@etl.go.jp>
9745
9746 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9747 conversion.
9748
9749 2000-08-04 Noah Friedman <friedman@splode.com>
9750
9751 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9752 docstring.
9753
9754 2000-08-04 Gerd Moellmann <gerd@gnu.org>
9755
9756 * syntax.c (skip_chars): Fix typo in error message.
9757
9758 2000-08-04 Andreas Schwab <schwab@suse.de>
9759
9760 * m/ia64.h: Moved from s/ia64.h.
9761
9762 2000-08-04 Kenichi Handa <handa@etl.go.jp>
9763
9764 * process.c (read_process_output): Big simplification. Handle
9765 composition and post-read-conversion of coding system correctly.
9766 (send_process): Handle composition correctly.
9767
9768 * callproc.c (Fcall_process): Handle post-read-conversion of
9769 coding system if any.
9770
9771 * coding.c (decode_coding_iso2022): More strict check for handling
9772 single shifting.
9773 (coding_restore_composition): Pay attention to the case that
9774 cmp_data is not set properly (because of invalid code in the
9775 source text).
9776 (run_pre_post_conversion_on_str): Include text properties in the
9777 resulting string.
9778 (decode_coding_string): Set members of coding correctly.
9779
9780 2000-08-03 Gerd Moellmann <gerd@gnu.org>
9781
9782 * s/ia64.h: New file.
9783
9784 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9785 Use NULL instead of 0 at the end of variable argument list of
9786 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9787 sizeof (int) < sizeof (void *).
9788
9789 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9790 of variable argument lists of XtVaGetValues and XtVaSetValues.
9791
9792 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9793 variable argument lists of XtVaGetValues and XtVaSetValues.
9794
9795 2000-08-02 Gerd Moellmann <gerd@gnu.org>
9796
9797 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9798 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9799
9800 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9801 prototype.
9802
9803 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9804 in call to Fsingle_key_description.
9805
9806 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9807 Callers changed.
9808
9809 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9810
9811 * window.c (display_buffer_reuse_frames): New variable.
9812 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9813 frames displaying BUFFER.
9814 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
9815
9816 2000-08-01 Miles Bader <miles@gnu.org>
9817
9818 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9819 when to constrain NEW_POS (they were pretty screwed up before).
9820
9821 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9822
9823 * msdos.c (run_msdos_command): Save and restore the master
9824 environment, for the case that child_setup signals an error.
9825 When mirroring slashes in DOS shell commands, don't fail when
9826 argv[2] has embedded blanks.
9827 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9828 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9829 (dos_ttraw): Call mouse_setup_buttons.
9830
9831 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9832 using alloca; free it after run_msdos_command returns.
9833
9834 2000-07-27 Dave Love <fx@gnu.org>
9835
9836 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9837 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
9838
9839 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9840
9841 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9842
9843 * editfns.c (lisp_time_argument): Fix last change.
9844
9845 2000-07-27 Gerd Moellmann <gerd@gnu.org>
9846
9847 * fns.c (Fdelete): Make it work on vectors and strings in addition
9848 to lists.
9849
9850 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9851 (syms_of_fns): Initialize new variables.
9852 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
9853 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9854 weakness, with t meaning the same as `key-and-value'.
9855
9856 2000-07-27 Kenichi Handa <handa@etl.go.jp>
9857
9858 * coding.h (struct coding_system): Member safe_charset deleted.
9859
9860 * coding.c (Qsafe_charsets): This variable deleted.
9861 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9862 New variables.
9863 (coding_safe_chars): New function.
9864 (CODING_SAFE_CHAR_P): New macro.
9865 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
9866 checking safe_charsets member of the coding system. Caller changed.
9867 (detect_coding_iso2022): New local variable safe_chars.
9868 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9869 safe_charsets member of the coding system.
9870 (decode_coding_iso2022): New local variable safe_chars.
9871 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9872 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9873 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9874 (ENCODE_UNSAFE_CHARACTER): New macro.
9875 (encode_coding_iso2022): New local variable safe_chars. Check
9876 unsafe chars.
9877 (setup_coding_system): Delete the code to initialize
9878 coding->safe_charses
9879 (intersection, find_safe_codings): New functions.
9880 (Ffind_coding_systems_region_internal): New function.
9881 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9882 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9883 variable and initialize it.
9884
9885 * fns.c (char_table_ref_and_index): New function.
9886
9887 * lisp.h (char_table_ref_and_index): Add prototype.
9888
9889 2000-07-26 Sam Steingold <sds@gnu.org>
9890
9891 * editfns.c (lisp_time_argument): Added third argument `usec'.
9892 (Ffloat_time): New built-in Lisp function.
9893
9894 2000-07-26 Gerd Moellmann <gerd@gnu.org>
9895
9896 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9897 for the character code.
9898
9899 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9900 GNU/Linux.
9901
9902 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9903 if called for a popup menu.
9904 (xmenu_show): Store help string in widget values.
9905
9906 2000-07-26 Dave Love <fx@gnu.org>
9907
9908 * syswait.h: Move some definitions.
9909 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9910 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9911 perspicuous definitions.
9912 (WTERMSIG): Fix bit pattern used.
9913
9914 2000-07-26 Kenichi Handa <handa@etl.go.jp>
9915
9916 * print.c (print_object): If vector printing is truncated, print
9917 "..." to indicate it as well as the case of list printing.
9918
9919 2000-07-25 Gerd Moellmann <gerd@gnu.org>
9920
9921 * xdisp.c (next_element_from_display_vector): Improve comments.
9922
9923 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9924 for the character code, and the rest for the face id as in 20.x.
9925 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9926
9927 * window.c (window_display_table): Cleaned up.
9928
9929 * syntax.c (Fforward_word): Add last arg nil in call of
9930 Fconstrain_to_field.
9931
9932 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9933
9934 * fileio.c (Frename_file) [DOS_NT]: If the file names are
9935 identical but for the letter-case, don't call
9936 barf_or_query_if_file_exists.
9937
9938 2000-07-25 Miles Bader <miles@gnu.org>
9939
9940 * editfns.c (find_field): Honor special `boundary' fields.
9941 (Qboundary): New variables.
9942 (syms_of_editfns): Initialize Qboundary.
9943 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9944 Use scan_buffer instead of find_before_next_newline, because it
9945 allows us to detect the boundary case where there's a newline at
9946 the search limit.
9947 * lisp.h (Fconstrain_to_field): Update external declaration.
9948
9949 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9950
9951 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9952 if that is nil.
9953
9954 2000-07-24 Dave Love <fx@gnu.org>
9955
9956 * s/sunos4-0.h, s/sol2.h:
9957 (LIBS_TERMCAP): Move from m/sparc.h.
9958
9959 * m/sparc.h (TERMINFO): Moved to system files (probably only
9960 relevant for sunos4 judging by its vintage).
9961 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9962 __arch64__.
9963
9964 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9965
9966 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9967 name to single_keymap_panes.
9968
9969 2000-07-24 Andreas Schwab <schwab@suse.de>
9970
9971 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9972
9973 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9974
9975 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9976 parameters instead of using int parameters. Expect FN to accept
9977 EMACS_INT parameters.
9978 (display_echo_area, resize_echo_area_axactly, current_message)
9979 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9980 with new argument list.
9981 (resize_mini_window_1): New callback function.
9982 (current_message_1, truncate_message_1, set_message_1): Change
9983 parameter lists to the new format expected by with_echo_area_buffer.
9984
9985 2000-07-24 Kenichi Handa <handa@etl.go.jp>
9986
9987 * fontset.c (fontset_ref): Remove INLINE declaration.
9988 (fontset_ref_via_base): Likewise.
9989 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9990 to downcase.
9991
9992 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9993
9994 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9995 correct order of priority. If help echo was found in an overlay,
9996 use that overlay as the object in which the help echo was found.
9997
9998 2000-07-22 Miles Bader <miles@gnu.org>
9999
10000 * textprop.c (Fprevious_single_char_property_change): The initial
10001 property value should be from the position preceding POSITION, not
10002 following it.
10003
10004 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10005
10006 * coding.c (syms_of_coding): Doc fix for
10007 inhibit-iso-escape-detection.
10008
10009 2000-07-21 Gerd Moellmann <gerd@gnu.org>
10010
10011 * xterm.c (note_mouse_highlight): Process overlays in the right
10012 order of priority.
10013
10014 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10015
10016 * xterm.c (note_mouse_highlight): If help-echo was found in an
10017 overlay, use that overlay as the object in which the help was found.
10018
10019 * window.c (foreach_window_1): Fix typo reversing an if-condition.
10020
10021 * window.c (foreach_window): Instead of a fake variable argument
10022 list, take one USER_DATA argument.
10023 (foreach_window_1): Likewise, and call callback functions with two
10024 args, the window and USER_DATA.
10025 (struct check_window_data): New struct.
10026 (check_window_containing): Use it.
10027 (window_from_coordinates): Set up a struct check_window_data for
10028 foreach_window.
10029 (add_window_to_list, freeze_window_start): Change parameters
10030 according to new calling convention.
10031
10032 * window.h (foreach_window): Change prototype.
10033
10034 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10035
10036 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10037
10038 * xmenu.c (menu_help_callback): Call show_help_echo with
10039 additional arguments OBJECT and POS.
10040
10041 2000-07-21 Kenichi Handa <handa@etl.go.jp>
10042
10043 * data.c (Faset): Allow storing any multibyte character in a
10044 string. Convert unibyte string to multibyte if necessary.
10045
10046 * xfns.c (x_encode_text): New function.
10047 (x_set_name): Use x_encode_text.
10048 (x_set_title): Likewise.
10049
10050 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10051
10052 * xterm.h (x_encode_text): Add prototype.
10053
10054 2000-07-20 Dave Love <fx@gnu.org>
10055
10056 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10057 xfree, not free.
10058
10059 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10060
10061 * msdos.c (help_echo_window): New variable.
10062 (syms_of_msdos): Initialize and staticpro it.
10063 (IT_note_mode_line_highlight): Set help_echo_window.
10064 (IT_note_mouse_highlight): Ditto.
10065 (dos_rawgetc): Store help_echo_window in the second event produced
10066 for HELP_EVENTs.
10067
10068 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10069 Record the object that generated the help echo and the position of
10070 that object in help_echo_object and help_echo_pos. Record that
10071 some glyphs in a row are displayed in mouse-face.
10072 (IT_update_begin): Don't clear mouse highlight unless one of the
10073 enabled glyph rows is marked as being displayed in mouse-face.
10074 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10075 and position recorded in help_echo_object and help_echo_pos to the
10076 event queue.
10077 (IT_menu_display): Accept a new argument PN: the pane number of
10078 the current menu pane. Record the pane number and the item
10079 number of the item which has associated help string.
10080 (XMenuActivate): Update the prototype for help_callback in
10081 function declaration. Call IT_menu_display with the current menu
10082 pane number as an additional argument. Call help_callback with
10083 two additional arguments: the pane number and the item number of
10084 the menu item associated with the help text.
10085 (help_echo_object, help_echo_pos): New variables.
10086 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10087
10088 * msdos.h (XMenuActivate): Update prototype.
10089
10090 2000-07-19 Gerd Moellmann <gerd@gnu.org>
10091
10092 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10093 Add some more prototypes.
10094
10095 * xterm.c, xterm.h: Add some more prototypes.
10096
10097 * lisp.h (Fnext_single_char_property_change): Add prototype.
10098
10099 * dispnew.c (direct_output_for_insert): Remove confusing
10100 outer local variable mouse_face_overwritten_p.
10101 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10102
10103 * alloc.c (allocate_string_data): Don't copy old string contents.
10104
10105 2000-07-19 Kenichi Handa <handa@etl.go.jp>
10106
10107 * coding.c (code_convert_region): Delete text properties before
10108 shrinking the conversion region.
10109
10110 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10111
10112 * dispnew.c (update_text_area): Write the whole row if it
10113 has mouse-face in it.
10114
10115 * xfaces.c (face-alternative-font-family-alist): Remove
10116 DEFVAR_LISP; staticpro instead.
10117
10118 * xmenu.c (menu_help_callback): Call show_help_echo with
10119 new arguments.
10120
10121 * keyboard.c (show_help_echo): Add parameter WINDOW.
10122 (read_char): Call show_help_echo with window extracted from Lisp
10123 help event.
10124 (gen_help_event): Add parameter WINDOW.
10125
10126 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10127
10128 * xterm.c (help_echo_window): New variable.
10129 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
10130 (XTread_socket): Pass help_echo_window to gen_help_event.
10131 (syms_of_xterm): Initialize and staticpro help_echo_window.
10132
10133 2000-07-18 Dave Love <fx@gnu.org>
10134
10135 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
10136
10137 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10138
10139 * alloc.c (allocate_string_data): If string had already data
10140 assigned, copy old contents to new string data.
10141
10142 * coding.c (syms_of_coding): Fix typo in spelling of variable
10143 `inhibit-iso-escape-detection'.
10144
10145 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10146
10147 * Makefile.in: Add dependencies on dispextern.h.
10148 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10149 `free'; both can conflict with system header files.
10150
10151 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10152
10153 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10154 undefined.
10155
10156 2000-07-18 Dave Love <fx@gnu.org>
10157
10158 * window.c (Fwindow_list): Declare arg `window'.
10159
10160 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10161
10162 * coding.c (setup_coding_system): Don't override the explicitly
10163 specified designations.
10164
10165 2000-07-15 Miles Bader <miles@gnu.org>
10166
10167 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10168 from `text_property_eq' and `text_property_stickiness', respectively.
10169 (find_field, Fconstrain_to_field, char_property_eq)
10170 (char_property_stickiness): Changed to call char-property functions
10171 instead of text-property-only ones.
10172
10173 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10174 `next_single_char_property_change'). Do more error checking, and
10175 cleanup limit behavior.
10176 (Fprevious_single_char_property_change): New function.
10177 (syms_of_textprop): Initialize new subrs.
10178
10179 * xdisp.c (display_prop_end, invisible_text_between_p):
10180 Call Fnext_single_char_property_change instead of
10181 next_single_char_property_change.
10182
10183 2000-07-15 Jason Rumney <jasonr@gnu.org>
10184
10185 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10186 after menu is finished with.
10187 (add_menu_item): Only consider wv->title as a menu title.
10188 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10189
10190 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10191 null title.
10192 (FONT_REGEXP): Remove unused macro, and its sub-components.
10193 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10194
10195 * w32term.c (help_echo_object, help_echo_pos): New variables.
10196 (note_mode_line_highlight): Store additional information about the
10197 help-echo in help_echo_object and help_echo_pos. Check both
10198 `local-map' and `keymap' properties for changing the cursor
10199 (note_mouse_highlight): Store additional information about the
10200 help-echo in help_echo_object and help_echo_pos.
10201 (note_tool_bar_highlight): Set help_echo_object to nil and
10202 help_echo_pos to -1.
10203 (w32_read_socket): Use gen_help_event instead of filling
10204 input_events manually.
10205 (syms_of_w32term): Staticpro help_echo_object.
10206 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
10207 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
10208 (x_clear_mouse_face): New function.
10209 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10210 (x_update_window_begin): No need to turn off the mouse
10211 highlight here.
10212 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10213 depending on whether they contain glyphs highlighted in mouse-face.
10214 (x_fill_stretch_glyph_string): Consume runs of stretch
10215 glyphs instead of a single one.
10216 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10217 with new argument list.
10218 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10219 (x_append_glyph, x_append_composite_glyph)
10220 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10221 changes in struct glyph starting 1999-12-27. See comments for
10222 xterm.c on 2000-07-05.
10223
10224 2000-07-14 Sam Steingold <sds@gnu.org>
10225
10226 * xfaces.c (realize_x_face): Fix the last patch:
10227 check `default_face' before dereferencing.
10228
10229 2000-07-14 Dave Love <fx@gnu.org>
10230
10231 * syntax.c (back_comment): Add null default in switch (for pcc).
10232
10233 2000-07-14 Kenichi Handa <handa@etl.go.jp>
10234
10235 * xfaces.c (realize_x_face): Make fontset using the base of the
10236 default_face's fontset, not using the default fontset.
10237
10238 * coding.c (inhibit_iso_escape_detection): New variable.
10239 (syms_of_coding): Make it a Lisp variable.
10240 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10241 nonzero, ignore ISO2022's escape sequence.
10242
10243 2000-07-14 Gerd Moellmann <gerd@gnu.org>
10244
10245 * alloca.c (malloc) [emacs]: Define as xmalloc.
10246
10247 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10248 use that instead of the mouse position. Add parameters DX and DY.
10249
10250 * dispextern.h (Fx_show_tip): Adjust number of parameters
10251 in prototype.
10252
10253 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10254 if HELP is a function, call it with OBJECT and POS as parameters
10255 to get the help to display.
10256 (gen_help_event, kbd_buffer_store_help_event): New functions.
10257 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10258 (read_char): Call show_help_echo with new parameters.
10259
10260 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
10261 Add prototypes.
10262
10263 * xterm.c (help_echo_object, help_echo_pos): New variables.
10264 (note_mode_line_highlight): Store additional information about the
10265 help-echo in help_echo_object and help_echo_pos. Check both
10266 `local-map' and `keymap' properties for changing the cursor
10267 (note_mouse_highlight): Store additional information about the
10268 help-echo in help_echo_object and help_echo_pos.
10269 (note_tool_bar_highlight): Set help_echo_object to nil and
10270 help_echo_pos to -1.
10271 (XTread_socket): Use gen_help_event instead of filling
10272 input_events manually.
10273 (syms_of_xterm): Staticpro help_echo_object.
10274
10275 * xmenu.c (menu_highlight_callback): Use
10276 kbd_buffer_store_help_event instead of setting up and input_event
10277 structure manually.
10278
10279 * xdisp.c (eval_form): GCPRO argument sexpr.
10280 (call_function): New function.
10281 (handle_single_display_prop): Use call_function and FUNCTIONP
10282 instead of checking whether if font_height is a symbol and
10283 using eval_form.
10284
10285 * eval.c (internal_condition_case_2): New function.
10286
10287 * lisp.h (FUNCTIONP): New macro.
10288 (internal_condition_case_2, call_function): Add prototypes.
10289
10290 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10291 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10292 Always set `arg' member of input_events.
10293 (construct_menu_click): Unused function removed.
10294
10295 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10296
10297 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10298 (construct_drag_n_drop, x_scroll_bar_handle_click)
10299 (w32_read_socket): Always set `arg' member of input_events.
10300
10301 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10302
10303 * lisp.h (eval_form): Add prototype.
10304
10305 * xdisp.c (eval_form): Make it externally visible.
10306
10307 2000-07-13 Gerd Moellmann <gerd@gnu.org>
10308
10309 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10310 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10311 consing. For prefix events, store the frame in the `arg' slot of
10312 the event, otherwise store the key there.
10313 (XTread_socket): Instead of consing, use the frame_or_window slot
10314 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
10315
10316 * xmenu.c (menu_highlight_callback): Store help string in the
10317 `arg' member of the input event; don't cons.
10318 (menubar_selection_callback): Use the `arg' slot of input events
10319 to queue additional information, instead of consing.
10320
10321 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10322
10323 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10324 TOOL_BAR_EVENTs.
10325 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10326
10327 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10328 input events to queue additional information, instead of consing.
10329
10330 * keyboard.c (kbd_buffer_gcpro): Renamed from
10331 kbd_buffer_frame_or_window. Now used for all Lisp objects
10332 referenced from the input queue.
10333 (kbd_buffer_store_event): Always use structure assignment for
10334 copying input events. Record all Lisp objects referenced from
10335 events in kbd_buffer_gcpro.
10336 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10337 differently from input events. Test for prefix menu_bar_events
10338 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10339 event in kbd_buffer_gcpro to nil.
10340 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10341 frame_or_window is equal to its arg member as prefix events.
10342 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10343 used by an input event to nil.
10344 (init_keyboard): Use two times the size of the input queue
10345 for kbd_buffer_gcpro.
10346 (syms_of_keyboard): Likewise.
10347
10348 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10349 Use USER_SIGNAL_EVENT.
10350
10351 * termhooks.h (struct input_event): Add member `arg'.
10352 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10353 (USER_SIGNAL_EVENT): Renamed from user_signal.
10354
10355 * xfaces.c (ASET): Remove definition.
10356
10357 * lisp.h (AREF, ASET, ASIZE): New macros.
10358
10359 * fontset.c (AREF, ASIZE): Remove definitions.
10360
10361 * fns.c (AREF): Remove definition.
10362
10363 * composite.c (AREF): Remove definition.
10364
10365 2000-07-12 Gerd Moellmann <gerd@gnu.org>
10366
10367 * dispnew.c (redraw_overlapped_rows): Add missing local.
10368 (scrolling_window): Remove debug code.
10369
10370 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10371 Before scrolling, turn off a mouse-highlight in the window
10372 being scrolled.
10373
10374 * xterm.c (x_update_window_end): Add parameter
10375 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10376 redisplay in XTframe_up_to_date.
10377 (x_clear_mouse_face): New function.
10378 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10379
10380 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10381 current glyph row.
10382 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10383 it when any row is written to that contains glyphs highlighted in
10384 mouse-face.
10385 (update_window): Call the window update end hook with new
10386 parameter MOUSE_FACE_OVERWRITTEN_P.
10387 (direct_output_for_insert): Give up if row contains mouse-face.
10388
10389 * dispextern.h (struct redisplay_interface): Add parameter
10390 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10391 (clear_mouse_face): New function pointer member.
10392
10393 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10394
10395 * syntax.c (back_comment): Use one switch rather than a few `if's.
10396 Obey open_paren_in_column_0_is_defun_start.
10397 When reverting to the `slow' method, try to nicely handle the case
10398 of nested comments by checking that the comment-starter we found
10399 does indeed match the comment-ender.
10400 (scan_sexps_forward, scan_sexps_forward):
10401 Ignore excessive opening parenthesis rather than throwing an error.
10402
10403 2000-07-11 Gerd Moellmann <gerd@gnu.org>
10404
10405 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10406 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10407
10408 * dispnew.c (direct_output_forward_char): Give up if currently
10409 displaying a message instead of the minibuffer contents.
10410
10411 * xterm.c (x_update_window_begin): No need to turn off the mouse
10412 highlight here.
10413 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10414 depending on whether they contain glyphs highlighted in mouse-face.
10415
10416 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10417 compare the mouse_face_p flags of both rows.
10418
10419 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10420
10421 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10422
10423 * keyboard.c (show_help_echo): Accept additional parameter
10424 ok_to_overwrite_keystroke_echo.
10425 (read_char): Call show_help_echo with a zero
10426 ok_to_overwrite_keystroke_echo argument.
10427 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
10428 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10429 ok_to_overwrite_keystroke_echo argument.
10430 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10431 non-zero ok_to_overwrite_keystroke_echo argument.
10432
10433 2000-07-10 Gerd Moellmann <gerd@gnu.org>
10434
10435 * xdisp.c (try_window_id): If changes are all below what is
10436 displayed in the window, and point is in the window, we still
10437 might have to find point on the display.
10438
10439 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10440 glyphs instead of a single one.
10441 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10442 with new argument list.
10443 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10444
10445 * keymap.c (get_keymap_1): Add comment that this function can GC.
10446 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10447 comment that functions can GC.
10448 (Fset_keymap_parent): GCPRO arg KEYMAP.
10449
10450 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10451
10452 * msdos.c (XMenuActivate): After exiting the menu, restore the
10453 echo area message and erase it.
10454
10455 2000-07-10 Kenichi Handa <handa@etl.go.jp>
10456
10457 * fontset.c (Ffontset_info): Make the return value more compatible
10458 with that of Emacs 20.
10459
10460 2000-07-07 Gerd Moellmann <gerd@gnu.org>
10461
10462 * eval.c (Fsignal): Handle case that backtrace_list is null.
10463
10464 2000-07-07 Kenichi Handa <handa@etl.go.jp>
10465
10466 * ccl.c (Fccl_execute): Typo fixed.
10467
10468 2000-07-06 Gerd Moellmann <gerd@gnu.org>
10469
10470 * window.c (window_loop): Add missing gcpro1 local variable.
10471
10472 * window.c (Fwindow_list): Reverse list at the end.
10473 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10474 means allow windows on OWINDOW's frame, only.
10475 (window_loop): Simplified; use Fwindow_list.
10476
10477 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10478
10479 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10480
10481 * xterm.c (XTread_socket): Increment handling_signal at the start,
10482 decrement it at the end.
10483
10484 * eval.c (handling_signal): New variable.
10485 (Fsignal): Abort if handling_signal is non-zero.
10486
10487 * lisp.h (handling_signal): External declaration.
10488
10489 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10490
10491 2000-07-05 Ken Raeburn <raeburn@gnu.org>
10492
10493 Sound support for NetBSD through "Linux emulation" support:
10494 * config.in (HAVE_SOUNDCARD_H): Undef.
10495 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10496 * Makefile.in (LIBSOUND): New variable.
10497 (LIBES): Include it.
10498 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10499 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
10500 (vox_open): Use DEFAULT_SOUND_DEVICE.
10501 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10502
10503 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10504
10505 * print.c (print_error_message): If Vsignaling_function is set,
10506 show it in *Messages*.
10507
10508 * lisp.h (Vsignaling_function): External declaration.
10509
10510 * eval.c (Vsignaling_function): New variable.
10511 (Fsignal): Compute it.
10512 (syms_of_eval): Staticpro it.
10513
10514 2000-07-05 Dave Love <fx@gnu.org>
10515
10516 * syswait.h: Use the autoconf recommended approach. Old code
10517 #if'd out in case we need to revert.
10518
10519 * config.in (HAVE_SYS_WAIT_H): Added.
10520
10521 2000-07-05 Andrew Innes <andrewi@gnu.org>
10522
10523 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10524 when non-NULL instead of __morecore, to take account of buffer
10525 memory. This also solves a problem with spurious memory warnings
10526 on Windows.
10527
10528 * ralloc.c: Make real_morecore non-static.
10529
10530 * eval.c (internal_condition_case): Comment out abort if
10531 interrupt_input_blocked is not zero.
10532
10533 * makefile.nt: Add support for `bootstrap' and related targets.
10534 Include minimal debug info in emacs.exe in release build.
10535 Remove all dependencies on lisp.h, and fixup some others.
10536
10537 * w32.c (init_environment): Install code from 20.7 for providing
10538 default values for environment variables, based on the
10539 executable's own location.
10540 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
10541 (sys_socket): Install socket inheritance bug fix from 20.7.
10542
10543 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10544 here via blockinput.h).
10545
10546 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10547
10548 * w32menu.c (w32_menu_display_help):
10549 * xmenu.c (menu_help_callback): Use show_help_echo.
10550
10551 * keyboard.h (show_help_echo): Declare.
10552
10553 * keyboard.c (show_help_echo): New function, extracted from read_char.
10554 Feval its `msg' argument if it's a cons cell.
10555 (read_char): Use it.
10556 (follow_key): Pass `autoload' to get_keyelt.
10557
10558 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
10559 (note_tool_bar_highlight, XTread_socket):
10560 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
10561 (dos_rawgetc):
10562 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10563 (note_tool_bar_highlight, w32_read_socket):
10564 Do not gratuitously ignore non-string `help-echo' properties.
10565
10566 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10567
10568 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10569
10570 * window.c (delete_all_subwindows): Reset Vwindow_list.
10571
10572 * xterm.c (x_append_glyph, x_append_composite_glyph)
10573 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10574 changes in struct glyph starting 1999-12-27. Some bit-fields of
10575 struct glyph were not set, which made glyphs unequal when compared
10576 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10577 effects were the result. This also depended on the contents of
10578 memory returned by xmalloc. If flickering happens again, activate
10579 the code in clear_glyph_row that's in #if 0. If the flickering is
10580 gone with that, chances are that it is caused by something similar.
10581
10582 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
10583
10584 * dispextern.h: Add some comments.
10585
10586 * window.c (add_window_to_list): Add parameter LIST.
10587 (window_list): Order list so that, for each frame, windows are
10588 in canonical order, and so that frames appear in the list in
10589 the order given by Vframe_list.
10590 (next_window): Reverse the handling of NEXT_P.
10591
10592 2000-07-04 Gerd Moellmann <gerd@gnu.org>
10593
10594 * window.c (Vwindow_list): New variable.
10595 (make_window, delete_window): Set Vwindow_list to nil.
10596 (check_window_containing): New function.
10597 (window_from_coordinates): Rewritten.
10598 (add_window_to_list, window_list, candidate_window_p)
10599 (decode_next_window_args, next_window): New functions.
10600 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
10601 (Fwindow_list): New function.
10602 (Fother_window): Cleaned up.
10603 (foreach_window): Add a longer "variable argument list". Let
10604 callback function return 0 to indicate that cycling over windows
10605 should stop.
10606 (foreach_window_1): Likewise.
10607 (freeze_window_start): Return int.
10608 (init_window): New function.
10609 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10610
10611 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10612 input_event with bzero.
10613 (main): Call init_window.
10614
10615 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10616 a menu filter.
10617
10618 2000-07-04 Kenichi Handa <handa@etl.go.jp>
10619
10620 * composite.h (make_composition_value_copy): Extern it.
10621
10622 * composite.c (make_composition_value_copy): New function.
10623
10624 * editfns.c (Fformat): While copying text properties, make each
10625 composition property value a copy.
10626
10627 * fns.c (concat): While copying text properties, make each
10628 composition property value a copy.
10629
10630 2000-07-03 Gerd Moellmann <gerd@gnu.org>
10631
10632 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10633
10634 * fns.c (sweep_weak_table): Mark only objects that are not
10635 marked already.
10636
10637 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10638 include those frames as candidates which have their focus
10639 redirected to the minibuffer frame.
10640
10641 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10642
10643 * fns.c (Fputhash): Return `value' rather than nil.
10644
10645 2000-06-30 Gerd Moellmann <gerd@gnu.org>
10646
10647 * frame.c (next_frame): Don't check focus redirection in case
10648 MINIBUF is a window. Doing so excludes frames using MINIBUF
10649 unless their focus is redirected, which contradicts the
10650 specification of next-frame, and leads to infinite loops in
10651 certain situations when cycling through windows with next-window.
10652
10653 2000-06-30 Kenichi Handa <handa@etl.go.jp>
10654
10655 * coding.c (code_convert_region): Even if the length of text is
10656 zero, try to convert it if coding->type is coding_type_ccl.
10657 (decode_coding_string, encode_coding_string): Likewise.
10658
10659 2000-06-28 Gerd Moellmann <gerd@gnu.org>
10660
10661 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
10662 the display if windows_or_buffers_changed.
10663
10664 * dispnew.c (struct row_entry): New structure.
10665 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10666 (row_table_size, old_lines, new_lines, old_lines_size)
10667 (new_lines_size, run_pool, runs_size, runs): New variables.
10668 (add_row_entry): New function.
10669 (scrolling_window): Use data structures allocated with xmalloc and
10670 held in global variables, instead of allocating them with alloca and
10671 holding them in local variables. Use a larger hash table whose
10672 size depends on glyph matrix sizes. Don't use bzero to clear the
10673 hash table; instead, clear used slots only.
10674
10675 * fns.c (next_almost_prime): Make it externally visible.
10676
10677 * lisp.h (next_almost_prime): Add prototype.
10678
10679 * s/isc4-0.h (sigunblock): Define.
10680
10681 * s/sco5.h (sigunblock): Define.
10682
10683 2000-06-27 Dave Love <fx@gnu.org>
10684
10685 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10686 (moved to osf5-0.h).
10687 [!NOT_C_CODE]: Protect string.h stuff.
10688
10689 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10690 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10691
10692 2000-06-27 Gerd Moellmann <gerd@gnu.org>
10693
10694 * xdisp.c (resize_mini_window): Subtract the extra line spacing
10695 below the last line from the needed window height.
10696
10697 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10698
10699 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10700 (Fwidget_get): Use it.
10701 (syms_of_fns): Defsubr it.
10702
10703 2000-06-26 Gerd Moellmann <gerd@gnu.org>
10704
10705 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
10706 display info for XIM.
10707 (xim_open_dpy): Likewise.
10708 (xim_close_dpy): Don't free the display info's XIM.
10709
10710 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10711
10712 * config.in (USE_XIM): New define.
10713
10714 * keymap.c (get_keyelt): For menu-items containing a `:filter
10715 FILTER', apply FILTER to the menu-item's definition to get the
10716 real definition to use.
10717
10718 * lisp.h (QCfilter): External declaration.
10719
10720 * xfns.c (Fimage_size): New function.
10721 (syms_of_xfns): Defsubr it.
10722
10723 2000-06-26 Andreas Schwab <schwab@suse.de>
10724
10725 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10726 Fstring_as_unibyte.
10727
10728 2000-06-25 Dave Love <fx@gnu.org>
10729
10730 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
10731
10732 * Makefile.in (blockinput.h): Depend on atimer.h.
10733 (atimer.h): Depend on systime.h.
10734
10735 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
10736
10737 * atimer.h: Protect against multiple inclusion. Include systime.h.
10738
10739 * lisp.h (swap_in_global_binding): Declare.
10740
10741 2000-06-24 Ken Raeburn <raeburn@gnu.org>
10742
10743 * process.c (Fopen_network_stream): Turn off atimers for duration
10744 of call to connect. (Patch from Gerd.)
10745
10746 2000-06-23 Dave Love <fx@gnu.org>
10747
10748 * ralloc.c: Maybe include unistd.h
10749
10750 * emacs.c (setgrp): Undefine before defining.
10751 (malloc_warning, set_time_zone_rule, index): Prototype.
10752
10753 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10754 HAVE_STRUCT_TIMEZONE.
10755
10756 * s/osf1.h: Move string.h hack here from alpha.h and make it
10757 conditional.
10758 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10759 _XOPEN_SOURCE.
10760 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10761 (SOCKLEN_TYPE): Don't define.
10762
10763 * m/alpha.h: Remove string.h hack.
10764
10765 * s/osf5-0.h: New file.
10766
10767 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10768 include time.h, done by systime.h.
10769 [__FreeBSD__]: Remove redundant includes.
10770
10771 * callproc.c (setpgrp): Undefine before defining.
10772 (delete_temp_file): Return Qnil to avoid warning.
10773
10774 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10775
10776 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10777 HAVE_X_WINDOWS.
10778
10779 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10780
10781 * composite.h (compose_text): Declare.
10782
10783 * xterm.c: Don't include sys/types.h unconditionally. Don't
10784 protect its inclusion with !USG (following xmenu.c).
10785
10786 2000-06-23 Gerd Moellmann <gerd@gnu.org>
10787
10788 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10789 in x_create_frame.
10790
10791 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10792
10793 * coding.c (decode_eol_post_ccl): Special handling for undecided
10794 and inconsistent EOL types.
10795
10796 2000-06-22 Gerd Moellmann <gerd@gnu.org>
10797
10798 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10799 trough color and main window's background color.
10800
10801 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
10802
10803 * xterm.h (Xt_app_con): External declaration.
10804
10805 * widget.c (EmacsFrameRealize): Fix typo.
10806
10807 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10808
10809 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10810 (handle_invisible_prop): Record the start of invisible text in
10811 it->add_overlay_start.
10812 (struct overlay_entry): Add member `overlay'.
10813 (handle_overlay_change): Simplify.
10814 (next_overlay_string): After having processed overlay strings at the
10815 end of the buffer, record that fact in
10816 it->overlay_strings_at_end_processed_p.
10817 (compare_overlay_entries): If before- and after-strings come
10818 from the same overlay, let before-strings come first.
10819 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10820 (load_overlay_strings): Take it->add_overlay_start into account
10821 when adding overlay strings.
10822
10823 * dispextern.h (struct it): Add member add_overlay_start.
10824
10825 2000-06-22 Dave Love <fx@gnu.org>
10826
10827 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10828
10829 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10830
10831 2000-06-22 Kenichi Handa <handa@etl.go.jp>
10832
10833 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10834 is greater than 0.
10835
10836 2000-06-21 Dave Love <fx@gnu.org>
10837
10838 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
10839
10840 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10841
10842 * syntax.c (back_comment): Simplify string-parity counting (with
10843 the added benefit of handling multiple string-styles as long as
10844 they are not intertwined).
10845 Jump to the slow code as soon as a comment starter is found in
10846 a "string_lossage" position. Fixes the case: " /* " /* " */.
10847
10848 2000-06-21 Dave Love <fx@gnu.org>
10849
10850 * Makefile.in: Use GETLOADAVG_LIBS.
10851
10852 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10853 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10854
10855 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10856
10857 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10858 (Fforward_comment, scan_lists):
10859 Check the comstyle of single-char comment-starters.
10860 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10861 we're just at the beginning of the comment (f.ex with (*) ... (*)).
10862 Check the comstyle of single-char comment-starters.
10863 Clarify control-flow around the Scomment case.
10864
10865 2000-06-20 Dave Love <fx@gnu.org>
10866
10867 * fns.c (make_hash_table, maybe_resize_hash_table):
10868 Cast arg of next_almost_prime.
10869
10870 * tparam.c [emacs]: Include lisp.h.
10871
10872 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10873 and unistd.h.
10874
10875 2000-06-20 Gerd Moellmann <gerd@gnu.org>
10876
10877 * keyboard.c (adjust_point_for_property): Check if display
10878 property should be treated as intangible by looking at its value.
10879
10880 * xdisp.c (single_display_prop_intangible_p)
10881 (display_prop_intangible_p): New functions.
10882
10883 * dispextern.h (display_prop_intangible_p): Add prototype.
10884
10885 * xdisp.c (dump_glyph_row): Show type of glyph->object.
10886
10887 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10888 argument to sigprocmask.
10889
10890 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10891 argument to sigprocmask.
10892
10893 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10894 sigprocmask_set, and pass a pointer to it to sigprocmask.
10895
10896 * sysdep.c (sigprocmask_set): New variable.
10897
10898 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10899 report_file_error.
10900
10901 2000-06-20 Sam Steingold <sds@gnu.org>
10902
10903 * xrdb.c: Don't declare xmalloc, xrealloc.
10904
10905 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10906
10907 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10908 (re_comp): Cast gettext return value to avoid complaints when
10909 !HAVE_LIBINTL.
10910
10911 2000-06-20 Dave Love <fx@gnu.org>
10912
10913 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
10914
10915 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
10916
10917 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
10918
10919 * m/alpha.h: Don't declare xmalloc, xrealloc.
10920
10921 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10922
10923 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10924
10925 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10926
10927 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10928 HAVE_GETWD.
10929
10930 * keyboard.h (poll_for_input_1): Declare.
10931
10932 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10933
10934 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10935
10936 * doprnt.c: Don't declare xmalloc, xrealloc.
10937
10938 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10939 (getenv, ctime, getwd): Removed.
10940 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10941
10942 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10943 x_set_tool_bar_lines.
10944
10945 * config.in: Add HAVE_GETWD. Move some definitions above
10946 machine/system includes.
10947
10948 2000-06-20 Kenichi Handa <handa@etl.go.jp>
10949
10950 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10951
10952 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10953 contain information about ENCODING.
10954
10955 * fontset.c (FONTSET_ASCII): Use the first element of char table
10956 for an ASCII font, not defalt slot.
10957 (fontset_ref_via_base): If FONTSET doesn't contain information for
10958 C, try the default fontset.
10959 (make_fontset): Don't copy the default fontset.
10960 (fontset_font_pattern): Likewise.
10961 (accumulate_font_info): If ELT is nil, use the corresponding
10962 element in the default fontset.
10963
10964 2000-06-19 Dave Love <fx@gnu.org>
10965
10966 * syntax.c (Fparse_partial_sexp): Doc fix.
10967
10968 * regex.h: Test PROTOTYPES as well as __STDC__.
10969
10970 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10971 errno, strerror. Put text after #endif in comment.
10972
10973 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
10974
10975 * xterm.c (x_frame_of_widget): Likewise.
10976
10977 2000-06-19 Gerd Moellmann <gerd@gnu.org>
10978
10979 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10980 to Vfundamental_mode_abbrev_table.
10981
10982 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10983 bogus objects are marked. This slows down GC by ~80 percent, but
10984 it might be worth trying when debugging GC-related problems.
10985 This feature requires conservative stack marking to be enabled.
10986
10987 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10988 returns XLookupChars, reset `modifiers' to zero.
10989
10990 2000-06-19 Dave Love <fx@gnu.org>
10991
10992 * mktime.c: Unprotoized.
10993
10994 2000-06-19 Richard Stallman <rms@gnu.org>
10995
10996 * data.c (set_internal): If variable is frame-local,
10997 store the new value immediately into the frame parameter alist.
10998
10999 2000-06-19 Ken Raeburn <raeburn@gnu.org>
11000
11001 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11002 in the custom handler pointer.
11003
11004 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11005 value, or checks for CHAR_META can fail when Lisp_Object is a
11006 union type.
11007 * keymap.c (get_keyelt): Likewise.
11008
11009 2000-06-19 Kenichi Handa <handa@etl.go.jp>
11010
11011 * ccl.h (struct ccl_program): New member eol_type.
11012 (struct ccl_spec): New member cr_carryover.
11013
11014 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11015 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11016
11017 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11018 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11019 (decode_eol_post_ccl): New function.
11020 (decode_coding): Don't detect EOL format here for CCL based coding
11021 systems.
11022 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11023 decode_eol_post_ccl after running the CCL program.
11024 (code_convert_region): Don't detect EOL format here for CCL based
11025 coding systems.
11026 (decode_coding_string): Likewise.
11027
11028 2000-06-18 Ken Raeburn <raeburn@gnu.org>
11029
11030 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11031 when treating it as an integer.
11032
11033 * coding.h (encode_coding_string): Declare.
11034
11035 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11036 it as an integer.
11037
11038 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11039 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11040 to be passed to get_local_map.
11041
11042 * sound.c (Fplay_sound): Don't call make_number on
11043 Frun_hook_with_args count argument.
11044
11045 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11046 for lisp objects in X event structure data field, when lisp
11047 objects are represented with unions.
11048 (x_scroll_bar_to_input_event): Ditto.
11049
11050 2000-06-16 Ken Raeburn <raeburn@gnu.org>
11051
11052 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
11053 termination of string. Fix sense of test whether
11054 Vline_number_display_limit is an integer.
11055
11056 2000-06-16 Gerd Moellmann <gerd@gnu.org>
11057
11058 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11059 only if HAVE_X_WINDOWS.
11060
11061 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11062 of titles.
11063
11064 * dispnew.c (update_frame_1): Handle case that cursor vpos is
11065 out of bounds.
11066
11067 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11068
11069 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11070 of its headers.
11071
11072 2000-06-15 Kenichi Handa <handa@etl.go.jp>
11073
11074 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11075 start of the while loop.
11076
11077 2000-06-15 Gerd Moellmann <gerd@gnu.org>
11078
11079 * atimer.c (alarm_signal_handler): Add forward declaration.
11080
11081 * data.c (set_internal): Remove debug code.
11082
11083 2000-06-14 Gerd Moellmann <gerd@gnu.org>
11084
11085 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11086
11087 * unexec.c (toplevel) [COFF]: Include coff.h.
11088
11089 * s/lynxos.h: New file.
11090
11091 * keymap.c (Fsingle_key_description): Enclose function key and
11092 event symbol names in angle brackets.
11093
11094 * xdisp.c (setup_echo_area_for_printing): Call
11095 message_log_maybe_newline if message_buf_print is not set.
11096
11097 * print.c (printchar, strout): Don't check message_buf_print
11098 before calling setup_echo_area_for_printing because that
11099 function does something useful even when message_buf_print is
11100 already set.
11101
11102 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11103 New variables.
11104 (ensure_echo_area_buffers): Initialize echo buffer's
11105 truncate lines setting to nil.
11106 (with_echo_area_buffer): Don't set the echo buffer's truncate
11107 lines setting here.
11108 (set_message_1): Set it here instead, based on the value
11109 of message_truncate_lines.
11110 (resize_mini_window): Handle case that lines are truncated.
11111 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11112 DEFVAR_BOOL message-truncate-lines.
11113
11114 * keyboard.c (read_char): Bind message-truncate-lines to t
11115 while displaying a help-echo.
11116
11117 * lisp.h (Qmessage_truncate_lines): External declaration.
11118
11119 2000-06-13 Gerd Moellmann <gerd@gnu.org>
11120
11121 * xdisp.c (Vline_number_display_limit): Renamed from
11122 line_number_display_limit.
11123 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11124 Extend documentation string. Initialize
11125 Vline_number_display_limit to nil meaning no limit.
11126 (decode_mode_spec): Use Vline_number_display_limit with its new
11127 meaning.
11128
11129 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11130
11131 2000-06-13 Richard Stallman <rms@gnu.org>
11132
11133 * frame.c (Fmodify_frame_parameters): Doc fix.
11134
11135 * xfns.c (x_set_frame_parameters): Comment fix.
11136
11137 * frame.c (store_frame_param): Call swap_in_global_binding if the
11138 variable's current binding was chosen based on this frame.
11139
11140 * data.c (swap_in_global_binding): New function.
11141
11142 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11143
11144 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11145 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11146
11147 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11148
11149 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11150
11151 2000-06-12 Jason Rumney <jasonr@gnu.org>
11152
11153 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11154
11155 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11156
11157 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11158
11159 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11160
11161 2000-06-12 Gerd Moellmann <gerd@gnu.org>
11162
11163 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11164 (syms_of_xfaces): Defsubr Sdump_colors.
11165 (x_free_colors): Don't treat b&w specially on default visual.
11166 (x_free_dpy_colors): New function.
11167 (free_face_colors): Don't check visual class; it's done
11168 in x_free_colors.
11169
11170 * xterm.c (x_frame_of_widget): New function.
11171 (x_alloc_nearest_color_for_widget): Use it.
11172 (x_copy_dpy_color): New function.
11173 (x_destroy_window): Free various colors.
11174
11175 2000-06-12 Kenichi Handa <handa@etl.go.jp>
11176
11177 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11178
11179 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11180
11181 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11182
11183 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11184
11185 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11186
11187 2000-06-11 Dave Love <fx@gnu.org>
11188
11189 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11190
11191 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11192
11193 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11194
11195 2000-06-11 Gerd Moellmann <gerd@gnu.org>
11196
11197 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
11198 to `XEvent *'.
11199
11200 2000-06-10 Kenichi Handa <handa@etl.go.jp>
11201
11202 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11203 (regex_compile): Fix the code for handling the case of single byte
11204 char and multibyte char being mixed in a range within [...].
11205
11206 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11207 and dst_multibyte members of coding.
11208
11209 * charset.c (update_charset_table): Update the table
11210 bytes_by_char_head.
11211 (init_charset_once): Initialize elements of bytes_by_char_head to
11212 1 except for leading codes for private charases.
11213
11214 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
11215 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
11216
11217 2000-06-09 Ken Raeburn <raeburn@gnu.org>
11218
11219 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11220 access the data it doesn't point to.
11221
11222 2000-06-08 Gerd Moellmann <gerd@gnu.org>
11223
11224 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
11225 will be translated to a switch-frame event when reading the
11226 event queue. This is necessary because Emacs otherwise won't
11227 perform a switch-frame to a new frame until some other event, for
11228 example a keystroke event, forces it to do so. This has various
11229 effects, one visible being that the cursor of a frame created with
11230 C-x 5 2 or switched to with a window manager key binding like
11231 A-TAB stays hollow because selected_window isn't on the newly
11232 focused frame until the switch-frame is performed.
11233
11234 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11235 generating a switch-frame event if necessary.
11236
11237 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11238
11239 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11240 it's an integer.
11241
11242 2000-06-08 Kenichi Handa <handa@etl.go.jp>
11243
11244 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
11245
11246 2000-06-07 Gerd Moellmann <gerd@gnu.org>
11247
11248 * window.c (displayed_window_lines): Take empty lines at
11249 the bottom of a window into account.
11250
11251 * window.c (displayed_window_lines): New function.
11252 (Fmove_to_window_line): Use displayed_window_lines to determine
11253 the number of lines to move, instead of using the window's height.
11254
11255 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11256 to stop reading, even if the form read sets point to a different
11257 value when evaluated.
11258
11259 * xdisp.c (display_line): Fix code deciding in which line to
11260 put the cursor.
11261
11262 2000-06-07 Kenichi Handa <handa@etl.go.jp>
11263
11264 * fileio.c (e_write): Free composition data if stored in
11265 coding->cmp_data.
11266
11267 2000-06-06 Gerd Moellmann <gerd@gnu.org>
11268
11269 * xdisp.c (display_line): Set row's and iterator's
11270 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11271 Set cursor even if row ends in the middle of a character.
11272 (dump_glyph_row): Print values of new flags.
11273 (redisplay_window) <cursor movement in unchanged window>: When
11274 point has been moved forward, and PT is at the end of the cursor
11275 row, don't place the cursor in the next row if the cursor row ends
11276 in the middle of a character or at ZV.
11277
11278 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11279 (struct glyph_row): Add starts_in_middle_of_char_p and
11280 ends_in_middle_of_char_p.
11281 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11282 ends_in_middle_of_char_p flag.
11283 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11284
11285 * term.c (append_glyph): Revert change of 2000-06-06.
11286
11287 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11288 padding glyph not fitting on line as whole character not
11289 fitting on line.
11290
11291 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11292 this isn't true for images with `:ascent 100'.
11293
11294 2000-06-06 Kenichi Handa <handa@etl.go.jp>
11295
11296 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11297 as modified if it is originally unmodified.
11298
11299 * term.c (encode_terminal_code): Change the way to check if
11300 terminal coding does any conversion.
11301 (append_glyph): Set glyph->pixel_width correctly.
11302
11303 * xdisp.c (display_line): While checking line continuation, pay
11304 attention to a padding glyph.
11305
11306 2000-06-05 Gerd Moellmann <gerd@gnu.org>
11307
11308 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11309
11310 2000-06-05 Dave Love <fx@gnu.org>
11311
11312 * xdisp.c: Include fontset.h.
11313
11314 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11315
11316 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11317
11318 * dispnew.c: Conditionally include term.h.
11319
11320 * coding.h: Declare code_convert_string_norecord.
11321
11322 * frame.h (struct frame): Use volatile unconditionally.
11323
11324 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11325
11326 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11327
11328 * systime.h: Protect against multiple inclusion.
11329 (timezone) [USG5_4]: Define as time_t.
11330
11331 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11332 (Foptimize_char_table, make_temp_name): Declare.
11333
11334 * Makefile.in (xdisp.o): Depend on fontset.h.
11335
11336 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11337
11338 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11339 (Foptimize_char_table, make_temp_name): Declare.
11340
11341 * s/irix4-0.h:
11342 * s/irix5-0.h:
11343 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11344
11345 2000-06-02 Dave Love <fx@gnu.org>
11346
11347 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11348
11349 2000-06-02 Gerd Moellmann <gerd@gnu.org>
11350
11351 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
11352 result face, set flags in that face indicating that colors may not
11353 be freed.
11354
11355 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11356 glyph, use the ASCII NUL character to determine the face.
11357
11358 2000-06-02 Dave Love <fx@gnu.org>
11359
11360 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11361 (VFORK_RETURN_TYPE): Remove.
11362
11363 * config.in: Add NO_MATHERR.
11364
11365 2000-06-01 Dave Love <fx@gnu.org>
11366
11367 * cmds.c (internal_self_insert): Don't check
11368 Vbefore_change_function, Vafter_change_function.
11369
11370 * insdel.c (signal_before_change, signal_after_change): Likewise.
11371
11372 * buffer.c (Vbefore_change_function, Vafter_change_function):
11373 Variables and their initializations deleted.
11374
11375 * callint.c (Fcall_interactively): Doc fix.
11376
11377 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11378
11379 2000-05-31 Dave Love <fx@gnu.org>
11380
11381 * textprop.c: Revert last change -- duplicated.
11382
11383 2000-05-31 Gerd Moellmann <gerd@gnu.org>
11384
11385 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11386 in #if 0.
11387
11388 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11389
11390 2000-05-31 Jason Rumney <jasonr@gnu.org>
11391
11392 * search.c (Fre_search_forward, Fre_search_backward)
11393 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11394
11395 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11396
11397 2000-05-30 Jason Rumney <jasonr@gnu.org>
11398
11399 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11400 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11401
11402 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
11403
11404 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11405 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11406 expand a nil default_filename.
11407
11408 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11409 pointer to glyph_to_pixel_coords, not a frame.
11410
11411 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11412 coding.h to dependencies.
11413
11414 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11415
11416 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11417 window pointer to be consistent with w32term.c and xterm.c.
11418
11419 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11420 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11421 (Qline_spacing, Qcenter): New variables.
11422 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11423 (x_set_line_spacing): New function.
11424 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
11425 (x_specified_cursor_type): New function.
11426 (x_set_cursor_type): Use it.
11427 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11428 and icon strings.
11429 (validate_x_resource_name, x_get_resource_string): Measure lengths
11430 of external strings in bytes.
11431 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11432 GetTextExtentPoint32 with NULL title.
11433 (Fx_create_frame): Initialize Qline_spacing.
11434 (w32_load_system_font): Initialize font->double_byte_p.
11435 (x_to_w32_charset): Use Vw32_charset_info_alist.
11436 (Image, busy cursor, tooltip functions): Merged changes from
11437 xfns.c. Not yet functional on Windows.
11438
11439 * w32gui.h (W32FontStruct): Add double_byte_p member.
11440
11441 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11442 (emacs_button_translation): Use it.
11443 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11444 in `mask' to be set.
11445
11446 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11447 menu strings.
11448
11449 * w32term.c: Format and doc changes to bring closer to xterm.c.
11450 (w32_char_font_type): New enum.
11451 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11452 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11453 (w32_encode_char): New function.
11454 (x_encode_char): Removed.
11455 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11456 x_encode_char and w32_font_is_double_byte.
11457 (x_produce_image_glyph): Use image_ascent.
11458 (x_produce_glyphs): Use new version of w32_per_char_metric and
11459 handle NULL return value. Allow extra line spacing.
11460 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11461 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11462 w32_font_type member of glyph instead.
11463 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11464 (fast_find_position): Make sure not to consider rows not visible
11465 in the window.
11466 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11467 w32_menu_display_help with input blocked, as it can abort.
11468 (x_display_and_set_cursor): Choose cursor depending
11469 on buffer-local value of cursor_type.
11470 (x_draw_bar_cursor): Add parameter WIDTH.
11471
11472 * w32term.h (CP_DEFAULT): Define.
11473 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11474
11475 2000-05-30 Gerd Moellmann <gerd@gnu.org>
11476
11477 * search.c (Fre_search_forward, Fre_search_backward)
11478 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11479
11480 2000-05-30 Kenichi Handa <handa@etl.go.jp>
11481
11482 * coding.c (detect_coding_iso2022): Fix code for checking
11483 CODING_CATEGORY_MASK_ISO_8_2.
11484
11485 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11486
11487 * regex.c (PREFETCH_NOLIMIT): New function.
11488 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11489
11490 2000-05-29 Gerd Moellmann <gerd@gnu.org>
11491
11492 * syntax.c (find_defun_start): Move test for
11493 open_paren_in_column_0_is_defun_start outside of the loop.
11494
11495 * xdisp.c (redisplay_window): Really switch buffers when
11496 displaying mode lines, and temporarily set selected_frame to the
11497 frame of the window that's redisplayed.
11498
11499 * xfaces.c (free_realized_faces): Block/unblock input.
11500 (free_realized_multibyte_face): Ditto.
11501
11502 2000-05-29 Dave Love <fx@gnu.org>
11503
11504 * textprop.c (Qkeymap): New variable.
11505 (syms_of_textprop): Intern it.
11506
11507 * keymap.c: Include intervals.h.
11508 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11509
11510 * Makefile.in (keymap.o): Depend on intervals.h.
11511
11512 * keyboard.c (menu_bar_items, tool_bar_items)
11513 (Fexecute_extended_command): Deal with `keymap' property.
11514 (read_key_sequence): Track map from `keymap' property as well as
11515 `local_map'.
11516
11517 * intervals.c (get_local_map): Extra arg to allow looking for
11518 `keymap' too.
11519
11520 * intervals.h (map_property): New enum.
11521 (get_local_map): Extra arg using it.
11522 (Qkeymap): Declare.
11523
11524 * lisp.h (get_local_map): Don't declare here.
11525
11526 2000-05-29 Kenichi Handa <handa@etl.go.jp>
11527
11528 * Makefile.in (callproc.o): Depend on composite.h.
11529
11530 * callproc.c: Include composite.h.
11531 (Fcall_process): Handle composition correctly.
11532
11533 * coding.h (coding_allocate_composition_data): Extern it.
11534 (coding_restore_composition): Likewise.
11535
11536 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11537 yet allocated, finish decoding with result
11538 CODING_FINISH_INSUFFICIENT_CMP.
11539 (coding_allocate_composition_data): Make it non-static.
11540 (coding_restore_composition): Likewise.
11541
11542 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11543
11544 * charset.c (syms_of_charset): Revert last change.
11545
11546 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11547
11548 * term.c (produce_glyphs): Treat characters from the eight-bit-*
11549 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11550 Handa.
11551
11552 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11553
11554 * charset.c (syms_of_charset): Set width of character sets
11555 eight-bit-control and eight-bit-graphic to 1 column.
11556
11557 2000-05-26 Gerd Moellmann <gerd@gnu.org>
11558
11559 * config.in (HAVE_SPEED_T): New define.
11560
11561 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11562 `extern speed_t'.
11563
11564 2000-05-26 Dave Love <fx@gnu.org>
11565
11566 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11567
11568 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11569 (Fsubr_arity): New function.
11570 (syms_of_data): Install them.
11571
11572 2000-05-26 Kenichi Handa <handa@etl.go.jp>
11573
11574 * charset.c (init_charset_once): Set the table bytes_by_char_head
11575 correctly.
11576
11577 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11578 the default fontset to what Emacs uses by default.
11579 (check_registry_encoding): This function deleted.
11580 (Fset_fontset_font): Remove the adhoc condition for the default
11581 fontset. Allow cons in FONTNAME.
11582
11583 * fns.c (map_char_table): Ignore char-table entries for
11584 charsets eight-bit-control and eight-bit-graphic.
11585
11586 2000-05-25 Ken Raeburn <raeburn@gnu.org>
11587
11588 * emacs.c (main): Initialize keyboard syms before initializing
11589 window code, so face names are available.
11590
11591 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11592
11593 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11594 of an anchor at the beginning of a shy-group.
11595
11596 2000-05-25 Gerd Moellmann <gerd@gnu.org>
11597
11598 * xdisp.c (handle_invisible_prop): Don't try to skip over
11599 invisible text if end of text is already reached.
11600
11601 2000-05-25 Dave Love <fx@gnu.org>
11602
11603 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11604
11605 * coding.c (encode_eol): Add null statement after label.
11606
11607 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11608
11609 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11610 2000-05-20.
11611
11612 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11613
11614 * ccl.c (ccl_driver): Fix previous change.
11615
11616 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11617
11618 * coding.c (run_pre_post_conversion_on_str): Set point to the
11619 beginning of buffer before calling coding->post_read_conversion.
11620 (decode_coding_string): Give correct args to
11621 run_pre_post_conversion_on_str.
11622 (encode_coding_string): Likewise.
11623
11624 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11625 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11626 eight-bit-graphic correctly.
11627
11628 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
11629
11630 * fileio.c (Finsert_file_contents): Even if a file is not found,
11631 execute codes for setting up coding system. Call
11632 after-insert-file-functions unconditionally.
11633
11634 2000-05-24 Gerd Moellmann <gerd@gnu.org>
11635
11636 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11637 BSD_PGRPS are not defined.
11638
11639 2000-05-24 Kenichi Handa <handa@etl.go.jp>
11640
11641 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11642 DESCRIPTION.
11643 (syms_of_charset): Avoid building same strings.
11644
11645 2000-05-23 Gerd Moellmann <gerd@gnu.org>
11646
11647 * lread.c (Fload): Add a comment about the meaning of
11648 Vuser_init_file being t.
11649
11650 * puresize.h (BASE_PURESIZE): Increase to 675000.
11651
11652 * s/gnu-linux.h (setpgrp): Don't define it here because this
11653 prevents compilation on GNU/Linux systems with glib 2.2.
11654
11655 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11656 as setpgid.
11657
11658 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11659
11660 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11661 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11662 version.
11663 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11664
11665 2000-05-23 Kenichi Handa <handa@etl.go.jp>
11666
11667 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11668
11669 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11670
11671 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
11672
11673 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11674
11675 2000-05-22 Kenichi Handa <handa@etl.go.jp>
11676
11677 * keyboard.c (read_char): Allow character codes 128..255 to be
11678 handled by input-method-function.
11679
11680 * insdel.c (adjust_markers_for_replace): Fix previous change.
11681 (adjust_after_replace): If PREV_TEXT is nil, call
11682 adjust_markers_for_insert, not adjust_markers_for_replace.
11683
11684 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
11685
11686 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11687 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11688 [HAVE_GRANDPT]: Define.
11689 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11690
11691 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11692 like SYSV_PTYS.
11693
11694 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11695
11696 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11697
11698 2000-05-20 Kenichi Handa <handa@etl.go.jp>
11699
11700 The following changes are to handle 8-bit characters in a
11701 multibyte buffer/string without facing with byte combining
11702 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11703 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11704
11705 * Makefile.in (fns.o): Depend on charset.h.
11706
11707 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11708 convert it to unibyte.
11709 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11710
11711 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11712 apparent char boundary.
11713 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11714 0x80..0x9F to/from multibyte form.
11715
11716 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11717 to unibyte.
11718
11719 * callproc.c (Fcall_process): Always encode an argument string if
11720 it is multibyte. Setup src_multibyte and dst_multibyte members of
11721 process_coding properly.
11722
11723 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11724 SPLIT_NON_ASCII_CHAR.
11725
11726 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11727 as is.
11728 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11729
11730 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
11731 (SPLIT_CHARACTER_SEQ): This macro deleted.
11732 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
11733 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11734 and eight-bit-graphic.
11735 (char_to_string): Likewise. Signal an error for too large
11736 character code.
11737 (char_printable_p): Return 0 for 8-bit characters.
11738 (update_charset_table): Update iso_charset_table only when a final
11739 character is non-negative.
11740 (find_charset_in_text): Renamed from find_charset_in_str.
11741 Arguments and return value changed. Callers changed.
11742 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11743 be -1 if CHARSET is used only internally.
11744 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11745 eight-bit-graphic.
11746 (Fcharset_after): Simplified.
11747 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11748 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11749 (multibyte_chars_in_text): Simplified by assuming there's no
11750 invalid multibyte sequence.
11751 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11752 (str_as_unibyte): New functions.
11753 (Fstring): Simpified by assuming that byte combining never happens.
11754 (init_charset_once): Initialization for
11755 LEADING_CODE_8_BIT_CONTROL.
11756 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11757 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11758 eight-bit-control and eight-bit-graphic.
11759
11760 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11761 (CHARSET_8_BIT_GRAPHIC): New macros.
11762 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11763 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11764 (CHARSET_REVERSE_CHARSET): Likewise.
11765 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11766 eight-bit-graphic.
11767 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11768 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11769 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11770 encounter an invalid multibyte sequence.
11771 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11772 sequence is always valid.
11773 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
11774 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
11775 (CHAR_STRING): For 8-bit characters, call char_to_string.
11776 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11777 multibyte sequence is always valid.
11778 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
11779 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11780 (str_as_unibyte): Extern them.
11781 (BCOPY_SHORT): Fix a bug.
11782 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
11783 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11784 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11785 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11786
11787 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
11788 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
11789 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11790 (EMIT_BYTES): New macros.
11791 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11792 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
11793 macros deleted.
11794 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11795 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11796 check the validity of multibyte sequence.
11797 (decode_coding_emacs_mule): New function.
11798 (encode_coding_emacs_mule): New macro.
11799 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11800 the source.
11801 (DECODE_ISO_CHARACTER): Just return a character code.
11802 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11803 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11804 EMIT_CHAR to produced decoded characters. Exit the loop only by
11805 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11806 block here.
11807 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11808 only position codes for an invalid character.
11809 (encode_designation_at_bol): Return new destination pointer. 5th
11810 arg DSTP is changed to DST.
11811 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11812 from the source by ONE_MORE_CHAR. Don't handle the case of last
11813 block here.
11814 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11815 macros deleted.
11816 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11817 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
11818 TWO_MORE_BYTES to fetch a byte from the source.
11819 (encode_eol): Pay attention to coding->src_multibyte.
11820 (detect_coding, detect_eol): Preserve members src_multibyte and
11821 dst_multibyte.
11822 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11823 (encoding_buffer_size): Set magnification to 3 for all coding
11824 systems that require encoding.
11825 (ccl_coding_driver): For decoding, be sure that the result is
11826 valid multibyte sequence.
11827 (decode_coding): Initialize coding->errors and coding->result.
11828 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11829 and raw-text, always call decode_eol. Handle the case of last
11830 block here. If not coding->dst_multibyte, convert the resulting
11831 sequence to unibyte.
11832 (encode_coding): Initialize coding->errors and coding->result.
11833 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11834 and raw-text, always call encode_eol. Handle the case of last
11835 block here.
11836 (shrink_decoding_region, shrink_encoding_region): Detect cases
11837 that we can't skip data more rigidly.
11838 (code_convert_region): Setup src_multibyte and dst_multibyte
11839 members of coding. For decoding, if the buffer is multibyte,
11840 convert the source sequence to unibyte in advance. For encoding,
11841 if the buffer is multibyte, convert the resulting sequence to
11842 multibyte afterward.
11843 (run_pre_post_conversion_on_str): New function.
11844 (code_convert_string): Deleted and divided into the following two.
11845 (decode_coding_string, encode_coding_string): New functions.
11846 (code_convert_string1, code_convert_string_norecord): Call one of
11847 above.
11848 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11849 MAKE_NON_ASCII_CHAR.
11850 (Fset_terminal_coding_system_internal)
11851 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
11852 and dst_multibyte members.
11853 (init_coding_once): Initialize iso_code_class with new enum
11854 ISO_control_0 and ISO_control_1.
11855
11856 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11857 devided into ISO_control_0 and ISO_control_1.
11858 (struct coding_system): New members src_multibyte, dst_multibyte,
11859 errors, and result. Delete member fake_multibyte.
11860 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11861 nonzero.
11862 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11863 nonzero.
11864
11865 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11866 (Faset): Likewise.
11867
11868 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11869 multibyte form.
11870 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11871 combining occurs.
11872 (Ftranspose_region): Delete codes for handling byte combining.
11873
11874 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11875 dst_multibyte members of coding. On handling REPLACE on unibyte
11876 buffer, convert the result of decode_coding to unibyte. On
11877 inserting into a mutibyte buffer, always call code_convert_region.
11878 (e_write): Setup coding->src_multibyte according to the
11879 multibyteness of the source (buffer or string).
11880
11881 * fns.c (concat): Handle 8-bit characters correctly.
11882 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11883 unibyte in the result.
11884 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11885 valid multibyte form in the result.
11886 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11887 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11888 return -1, signal an error.
11889 (base64_encode_1): New arg MULTIBYTE. Get each character by
11890 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11891 character is found, return -1.
11892 (Fbase64_decode_region): Delete codes for handling byte-combining.
11893 Treat each decoded byte as a unibyte character.
11894 (Fbase64_decode_string): Return unibyte string.
11895 (Fcompare_strings, concat, string_byte_to_char): Use
11896 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11897 FETCH_STRING_CHAR_ADVANCE.
11898 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11899 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11900
11901 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11902 SPLIT_NON_ASCII_CHAR.
11903 (fontset_ref_via_base, fontset_set): Likewise
11904
11905 * insdel.c (adjust_markers_for_record_delete): Deleted.
11906 (adjust_markers_for_insert): Argument changed. Caller changed.
11907 (adjust_markers_for_replace): Likewise.
11908 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11909 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
11910 (copy_text): Delete unused local varialbe c_save. For converting
11911 to multibyte, be sure to make all 8-bit characters in valid
11912 multibyte form.
11913 (count_size_as_multibyte): Handle 8-bit characters correctly.
11914 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11915 (adjust_after_replace, replace_range, del_range_2)
11916 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
11917 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11918 (adjust_after_replace, replace_range, del_range_2) Delete codes for
11919 handling byte combining.
11920 (adjust_before_replace): Deleted.
11921
11922 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11923 SPLIT_NON_ASCII_CHAR.
11924 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11925 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11926 (Fkey_description): Likewise.
11927
11928 * lread.c (read1): On reading multibyte string, be sure to make
11929 all 8-bit chararacters in valid multibyte form.
11930 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11931
11932 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11933 unconditionally.
11934
11935 * process.c (Fstart_process): GCPRO current_dir before calling
11936 Ffind_operation_coding_system. Encode arguments here.
11937 (create_process): Don't encode arguments here. Setup
11938 src_multibyte and dst_multibyte members of struct coding.
11939 (read_process_output): Setup src_multibyte and dst_multibyte
11940 members of struct coding. If the output is to multibyte buffer,
11941 always decode the output of the process. Adjust the
11942 representation of 8-bit characters to the multibyteness of the output.
11943 (send_process): Setup coding->src_multibyte according to the
11944 multibyteness of the source.
11945
11946 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11947 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11948 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11949
11950 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
11951
11952 * w16select.c (Fw16_set_clipboard_data): Setup members
11953 src_multibyte and dst_multibyte of coding. Adjusted for the
11954 change for find_charset_in_str.
11955 (Fw16_get_clipboard_data): Likewise.
11956
11957 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11958 dst_multibyte of coding.
11959 (x_to_w32_font): Likewise.
11960
11961 * w32select.c (Fw32_set_clipboard_data): Setup members
11962 src_multibyte and dst_multibyte of coding. Adjusted for the
11963 change for find_charset_in_str.
11964 (Fw32_get_clipboard_data): Likewise.
11965
11966 * xdisp.c (get_next_display_element): Handle 8-bit characters
11967 correctly.
11968 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11969 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11970
11971 * xselect.c (selection_data_to_lisp_data): Setup members
11972 src_multibyte and dst_multibyte of coding. Adjusted for the
11973 change for find_charset_in_str.
11974 (lisp_data_to_selection_data): Likewise.
11975
11976 2000-05-19 Gerd Moellmann <gerd@gnu.org>
11977
11978 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
11979
11980 * dispextern.h (Vimage_types): Add extern declaration.
11981
11982 * xdisp.c (Vimage_types): Moved here from xfns.c.
11983 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11984
11985 * xfns.c (Vimages_types): Moved to xdisp.c.
11986 (syms_of_xfns): Move `image-types' to xdisp.c.
11987
11988 * w32fns.c (Vimage_types): Removed.
11989 (syms_of_w32fns): Remove `image-types'.
11990
11991 2000-05-18 Kenichi Handa <handa@etl.go.jp>
11992
11993 * fns.c (map_char_table): Pay attention to character number of
11994 charset. Check the validity of charset at the first level. For
11995 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11996 the default value.
11997
11998 * fontset.c: Include "buffer.h".
11999 (fs_load_font): If the face has fontset, record the face ID in
12000 that fontset.
12001 (Finternal_char_font): New function.
12002 (accumulate_font_info): New function.
12003 (Ffontset_info): Rewritten for the new fontset implementation.
12004 (syms_of_fontset): Register Vdefault_fontset in the first element
12005 of Vfontset_table. Include Vdefault_fontset in
12006 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12007 function.
12008
12009 2000-05-16 Dave Love <fx@gnu.org>
12010
12011 * m/iris5d.h: Deleted -- unused.
12012
12013 2000-05-16 Gerd Moellmann <gerd@gnu.org>
12014
12015 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12016 `invalid' instead of `illegal'.
12017
12018 * indent.c (Fmove_to_column): When ending within a tab, insert
12019 spaces first so that markers at the end of the tab get adjusted.
12020
12021 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12022 buffer list that wasn't selected in that frame.
12023
12024 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12025 is needed on mescaline, use a 2 char prefix, and call
12026 make_temp_name with second arg non-zero.
12027
12028 * fileio.c (make_temp_name): New function, extracted from
12029 Fmake_temp_name.
12030 (Fmake_temp_name): Use it.
12031
12032 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12033
12034 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
12035
12036 2000-05-15 Gerd Moellmann <gerd@gnu.org>
12037
12038 * Makefile.in (lisp): Add env.elc.
12039
12040 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12041
12042 2000-05-12 Gerd Moellmann <gerd@gnu.org>
12043
12044 * search.c (Freplace_match): Handle case of `\N' in the
12045 replacement when there's no group N.
12046
12047 2000-05-11 Gerd Moellmann <gerd@gnu.org>
12048
12049 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12050 of the message to message_dolog.
12051
12052 * keyboard.c (read_char): Don't clear current message for help
12053 events; let the code handling help events handle this. Change
12054 code detecting help events that should be ignored.
12055
12056 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12057 we're interating over a string.
12058
12059 2000-05-09 Dave Love <fx@gnu.org>
12060
12061 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12062 that offset before writing. Move gcpro region past call of
12063 Ffile_regular_p.
12064
12065 2000-05-04 Dave Love <fx@gnu.org>
12066
12067 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12068
12069 2000-05-04 Gerd Moellmann <gerd@gnu.org>
12070
12071 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12072 of inserted characters when BUF equals the current buffer, and PT
12073 is in front of or equal to FROM.
12074
12075 2000-05-03 Gerd Moellmann <gerd@gnu.org>
12076
12077 * xdisp.c (handle_single_display_prop): If display property value
12078 is invalid, or something not supported on the frame, restore
12079 iterator's position to what it was initially. Make sure to return
12080 0 for invalid and unsupported property values.
12081
12082 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12083 that x_per_char_metric returns null.
12084
12085 2000-05-02 Gerd Moellmann <gerd@gnu.org>
12086
12087 * xterm.h (struct face): Add forward declaration.
12088 (struct image): Ditto.
12089 (image_ascent): Add prototype.
12090
12091 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12092 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12093 image_ascent instead of using IMAGE_ASCENT.
12094
12095 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12096 (IMAGE_ASCENT): Removed.
12097
12098 * xfns.c (Qcenter): New variable.
12099 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12100 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12101 (image_ascent): New function.
12102 (lookup_image): Recognize `:ascent center'.
12103 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12104 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12105 (xbm_load): Don't set image's ascent here.
12106 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12107 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12108 check ascent values here.
12109 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12110 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12111 (syms_of_xfns): Initialize Qcenter.
12112
12113 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12114 to the limits, increase the limits.
12115
12116 2000-05-01 Kenichi Handa <handa@etl.go.jp>
12117
12118 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
12119 Check Vfont_encoding_alist against the full name of the opened font.
12120
12121 2000-04-28 Gerd Moellmann <gerd@gnu.org>
12122
12123 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12124 taller than the window.
12125
12126 2000-04-28 Kenichi Handa <handa@etl.go.jp>
12127
12128 * xfaces.c (realize_x_face): Fix the argument of the second
12129 xassert. BASE_FACE may not be a face for ASCII.
12130
12131 2000-04-27 Gerd Moellmann <gerd@gnu.org>
12132
12133 * print.c (print_object): Treat print-length < 0 as nil.
12134
12135 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12136
12137 * s/freebsd.h (TERMCAP_OBJ): Removed.
12138 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12139
12140 * lread.c (read1): Don't treat period followed by certain
12141 characters as symbol start.
12142
12143 * xfns.c (slurp_file): New function.
12144 (xbm_image_p): Handle case of in-memory XBM files.
12145 (xbm_scan): Rewritten to work on memory buffers instead of files.
12146 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12147 Work on memory buffers instead of files. If DATA is null test
12148 if buffer looks like an in-memory XBM file.
12149 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12150 memory buffers instead of files.
12151 (xbm_file_p): New function.
12152 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12153
12154 * lread.c (end_of_file_error): New function.
12155 (read1): Call it instead of signaling `end-of-file' directly.
12156
12157 * print.c (print_error_message): Print data of `end-of-file'
12158 with Fprinc instead of Fprin1.
12159
12160 2000-04-26 Ken Raeburn <raeburn@gnu.org>
12161
12162 * window.c (freeze_window_start): Check that minibuffer scroll
12163 window isn't nil before extracting the window structure pointer
12164 from it.
12165
12166 * undo.c (record_delete): If we hit the end of the undo list, stop
12167 picking elements apart.
12168
12169 2000-04-26 Gerd Moellmann <gerd@gnu.org>
12170
12171 * xdisp.c (display_line): If lines are continued, restore
12172 iterator's ascent/descent information to the values before the
12173 first glyph not fitting on the line.
12174
12175 2000-04-25 Gerd Moellmann <gerd@gnu.org>
12176
12177 * xdisp.c (try_window_id) <all changes above window start>: Adjust
12178 positions in glyph matrix. Don't compute new window end positions.
12179
12180 * dispnew.c (increment_matrix_positions): Renamed from
12181 increment_glyph_matrix_buffer_positions.
12182 (increment_row_positions): Renamed from
12183 increment_glyph_row_buffer_positions.
12184
12185 * dispextern.h: Change names of renamed functions from dispnew.c
12186 in prototypes.
12187
12188 2000-04-24 Gerd Moellmann <gerd@gnu.org>
12189
12190 * fileio.c (Fdo_auto_save): Create directories for auto-save
12191 list file if necessary.
12192
12193 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12194 from buffer or frame.
12195 (automatic_hscrolling_p): New variable.
12196 (hscroll_windows): Scroll windows horizontally only if automatic
12197 hscrolling is allowed.
12198 (syms_of_xdisp): New variable `automatic-hscrolling'.
12199
12200 * frame.h (struct frame): Add member extra_line_spacing.
12201
12202 * xfns.c (x_set_line_spacing): New function.
12203 (Fx_create_frame): Set line spacing from resources.
12204 (Qline_spacing): New variable.
12205 (syms_of_xfns): Initialize Qline_spacing.
12206
12207 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12208
12209 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12210 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
12211 (reset_buffer): Don't initialize extra2 and extra3. Initialize
12212 extra_line_spacing from default value.
12213 (init_buffer_once): Initialize default value of extra_line_spacing.
12214
12215 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12216 and extra3.
12217
12218 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12219 prompt_width. Add extra line spacing.
12220
12221 * term.c (produce_glyphs): Remove reference to struct it's
12222 prompt_width.
12223
12224 * dispextern.h (struct it): Remove member prompt_width, add
12225 extra_line_spacing.
12226
12227 2000-04-22 Gerd Moellmann <gerd@gnu.org>
12228
12229 * dispnew.c (update_frame_line): When writing a whole line, make
12230 sure cursor is in the right row afterwards, otherwise a use of
12231 capability `ch' in cmgoto might leave the cursor in the row below.
12232
12233 2000-04-21 Gerd Moellmann <gerd@gnu.org>
12234
12235 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12236
12237 * keyboard.c (timer_check): Fix typo in comment.
12238
12239 2000-04-21 Kenichi Handa <handa@etl.go.jp>
12240
12241 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12242 name change: ch -> character.
12243
12244 2000-04-20 Gerd Moellmann <gerd@gnu.org>
12245
12246 * keyboard.c (echo_message_buffer): New variable.
12247 (echo_now): Set echo_message_buffer to the echo area buffer used
12248 to display the echo.
12249 (cancel_echoing): Reset echo_message_buffer to nil.
12250 (read_char): Code rewritten that handles canceling an echo or
12251 echoing a dash, respectively.
12252
12253 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12254 directory doesn't exist.
12255
12256 2000-04-19 Dave Love <fx@gnu.org>
12257
12258 * fns.c (syms_of_fns): Defsubr mapc.
12259 (concat): Don't allow numeric args.
12260 (Fconcat): Doc change.
12261
12262 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12263
12264 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12265 instead define end_match(1|2) more carefully.
12266 Use GET_CHAR_BEFORE_2 for `begline'.
12267
12268 2000-04-19 Gerd Moellmann <gerd@gnu.org>
12269
12270 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12271 on 64-bit systems where NULL is defined as `0'.
12272
12273 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12274 the `variable argument list' to make it work on Alpha.
12275
12276 * m/alpha.h (_LP64) [!_LP64]: Define.
12277 (ORDINARY_LINK): Define for NetBSD.
12278
12279 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
12280
12281 2000-04-19 Dave Love <fx@gnu.org>
12282
12283 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12284 change.
12285
12286 * Makefile.in (LIBS): Don't use.
12287 (GETLOADAVG_OBJ): Define again.
12288 (otherobj): Add GETLOADAVG_OBJ.
12289
12290 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12291
12292 2000-04-18 Gerd Moellmann <gerd@gnu.org>
12293
12294 * lread.c (read_filtered_event): Cancel and start busy cursor.
12295
12296 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
12297 that the per-character metrics may be null.
12298
12299 2000-04-17 Gerd Moellmann <gerd@gnu.org>
12300
12301 * buffer.c (clone_per_buffer_values): New function.
12302 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12303 clone_per_buffer_values if CLONE is not nil.
12304
12305 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12306
12307 2000-04-16 Dave Love <fx@gnu.org>
12308
12309 * Makefile.in: Remove obsolete localcpp stuff.
12310 (GETLOADAVG_OBJ): Don't define.
12311 (obj): Move LIBOBJS...
12312 (otherobj): ... to here.
12313 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12314 whitespace-only lines after the continuation (Irix).
12315
12316 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12317
12318 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12319
12320 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12321
12322 2000-04-14 Dave Love <fx@gnu.org>
12323
12324 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12325 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12326 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12327 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12328 NLIST_STRUCT.
12329
12330 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12331 autoconfiscated HAVE_GETLOADAVG.
12332
12333 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12334 BROKEN_MKTIME.
12335
12336 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12337
12338 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
12339 (fill_in_lock_file_name): Avoid existing files that aren't links.
12340
12341 2000-04-14 Dave Love <fx@gnu.org>
12342
12343 * Makefile.in (LIBS, LIBOBJS): New variable.
12344 (INTERVAL_SRC): Convert to make variable.
12345 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12346 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12347 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12348 add LIBOBJS.
12349 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12350 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12351 (shortlisp): Add facemenu, float-sup, frame.
12352 (SOME_MACHINE_LISP): Remove them from here.
12353 (LIBES): Change unused LDLIBS to autoconf LIBS.
12354
12355 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12356
12357 2000-04-14 Kenichi Handa <handa@etl.go.jp>
12358
12359 * composite.c (update_compositions): If FROM and TO are not in a
12360 valid range, do nothing.
12361
12362 2000-04-13 Gerd Moellmann <gerd@gnu.org>
12363
12364 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
12365
12366 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
12367
12368 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12369 as TERMCAP_OBJ.
12370
12371 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12372
12373 * fileio.c (a_write): Remove redundant semi-colons.
12374 (e_write): Return -1 if failed to write all the data.
12375 This fixes the changes made at 1999-12-15.
12376
12377 2000-04-12 Dave Love <fx@gnu.org>
12378
12379 * fns.c (mapcar1): Test for null vals to support mapc.
12380 (Fmapc): New function.
12381
12382 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12383
12384 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12385 (IT_frame_up_to_date): Support the buffer local value of
12386 cursor-type, if defined.
12387
12388 2000-04-10 Dave Love <fx@gnu.org>
12389
12390 * editfns.c (preceding-char, following-char): Doc fix.
12391
12392 2000-04-10 Ken Raeburn <raeburn@gnu.org>
12393
12394 * Makefile.in (temacs): Revert 2000-03-12 change.
12395
12396 2000-04-10 Jason Rumney <jasonr@gnu.org>
12397
12398 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12399
12400 2000-04-10 Gerd Moellmann <gerd@gnu.org>
12401
12402 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12403 area buffer, if it's not set up yet.
12404
12405 * indent.c (compute_motion): Set immediate_quit.
12406
12407 2000-04-09 Gerd Moellmann <gerd@gnu.org>
12408
12409 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
12410 (realize_tty_face): Suppress boldness if colors are the inverse of
12411 the default colors, and tty_suppress_bold_inverse_default_colors_p
12412 is set.
12413 (Ftty_suppress_bold_inverse_default_colors): New function.
12414 (syms_of_xfaces): Defsubr it.
12415
12416 * buffer.c (Frestore_buffer_modified_p): New function.
12417 (syms_of_buffer): Defsubr it.
12418
12419 2000-04-08 Ken Raeburn <raeburn@gnu.org>
12420
12421 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12422 charset id (int) argument, not a charset (Lisp_Object).
12423
12424 * coding.h (code_convert_string): Declare.
12425 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12426 object, as the fourth argument to code_convert_string.
12427
12428 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
12429 (Fset_fontset_font): Use EQ to compare lisp objects.
12430
12431 2000-04-05 Ken Raeburn <raeburn@gnu.org>
12432
12433 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12434 a pointer that looks like a lisp object.
12435 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12436 zero, instead see whether it's an integer object, since they can't
12437 have intervals.
12438 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12439
12440 * dispnew.c (allocate_matrices_for_frame_redisplay)
12441 (direct_output_forward_char): Use X(U)INT and make_number as needed
12442 to convert between (unsigned) int values and lisp integers.
12443 * keyboard.c (read_key_sequence): Likewise.
12444 * lread.c (substitute_object_recurse): Likewise.
12445 * fns.c (concat, hash_lookup, hash_remove): Likewise.
12446 * minibuf.c (do_completion, Fminibuffer_complete_word)
12447 (Fminibuffer_completion_help): Likewise.
12448 * term.c (produce_special_glyphs): Likewise.
12449
12450 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12451 * print.c (print_preprocess, print_object): Likewise.
12452
12453 * search.c (compile_pattern): Use NILP when checking for nil.
12454
12455 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12456 __OPTIMIZE__]: Provide a GNU C macro version that handles
12457 lisp-object unions.
12458 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12459 field, to better cope with ENABLE_CHECKING and calls that modify a
12460 Lisp_Object using its old value.
12461
12462 2000-04-04 Gerd Moellmann <gerd@gnu.org>
12463
12464 * window.c (compare_window_configurations): Signal an error
12465 if parameters C1 or C2 aren't window configurations.
12466
12467 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12468 AFTER_POTENTIAL_GC calls around calls to functions that can
12469 signal an error and thus invoke the debugger.
12470
12471 2000-04-03 Gerd Moellmann <gerd@gnu.org>
12472
12473 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12474 an error if decoding fails.
12475
12476 * keyboard.c (lispy_mouse_names): Variable removed.
12477 (Vlispy_mouse_stem): New variable.
12478 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12479 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12480 for any mouse button number. Increase size of mouse_syms and
12481 button_down_location as needed. Call modify_event_symbol with
12482 different arguments.
12483 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12484 Call modify_event_symbol with different arguments.
12485 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12486 for any button number. Call modify_event_symbol with different
12487 arguments.
12488 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12489 Accept a string for NAME_ALIST_OR_STEM.
12490
12491 * lisp.h (larger_vector): Add prototype.
12492
12493 * fns.c (larger_vector): Make externally visible.
12494
12495 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12496
12497 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12498
12499 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12500 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12501 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12502 we are between str1 and str2.
12503 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12504 (PATFETCH): Use `TRANSLATE'.
12505 (PATFETCH_RAW): Fetch multibyte char if applicable.
12506 (PATUNFETCH): Remove.
12507 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12508 When writing a char, write it directly into the pattern buffer rather
12509 than going needlessly through a temp char-array.
12510 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12511 multibyte magic and remove the useless `#ifdef emacs'.
12512 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12513 buffer.
12514
12515 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12516 conditional on `emacs'.
12517
12518 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12519
12520 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12521
12522 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12523 non-union-type versions of XMARK and friends here, because XMARK
12524 and friends won't work on an integer field if NO_UNION_TYPE is not
12525 defined.
12526 (make_number): Define as a function if it's not defined as a macro.
12527
12528 * composite.c (run_composite_function): Use NILP when checking for nil.
12529 (syms_of_composite): Delete local var NARGS, pass an int as first
12530 argument to Fmake_hash_table.
12531
12532 * editfns.c (text_property_stickiness): Use NILP to test
12533 Lisp_Object boolean value.
12534 (Fmessage_or_box): Don't use NILP to test int variable.
12535 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12536 problems reading from and changing the same lisp value in an
12537 XSETSTRING call.
12538
12539 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12540
12541 * term.c (TN_no_color_video): New variable.
12542 (term_init): Intitialize TN_no_color_video.
12543 (enum no_color_bit): New enumeration.
12544 (MAY_USE_WITH_COLORS_P): New macro.
12545 (turn_on_face): Use it to determine if attributes may be used
12546 combined with colors.
12547
12548 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12549
12550 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
12551 with int lvalues via casts; instead, just yield lisp object lvalues.
12552 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12553 proper accessor macros.
12554 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12555 (grow_mini_window): Fix typo getting int value of root->height.
12556
12557 * xdisp.c (compute_string_pos): Fix order of arguments to
12558 string_pos_nchars_ahead.
12559 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12560 count arg to variable-arg routines like Frun_hook_with_args and
12561 Fformat.
12562 (back_to_previous_visible_line_start)
12563 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
12564 fixed-arg routines like Fget_char_property and Fmake_string.
12565 (reconsider_clip_changes): Use XINT when comparing integer lisp
12566 objects, or passing them as int arguments.
12567 (mark_window_display_accurate, insert_left_trunc_glyphs)
12568 (append_space, extend_face_to_end_of_line): Use make_number when
12569 storing or passing integer values as lisp objects.
12570 (set_cursor_from_row, highlight_trailing_whitespace): Use
12571 INTEGERP, not implicit test against zero, for glyph object.
12572 (try_window_id): Don't use make_number when we want an int value.
12573
12574 * xfaces.c (xlfd_symbolic_value): Make last argument a
12575 Lisp_Object, to be consistent with callers.
12576 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12577 (lface_hash): Apply XFASTINT to lisp values before folding in.
12578
12579 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12580 fill in window width and height. Pass an int, not a lisp object,
12581 as first arg to Finsert.
12582
12583 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12584
12585 * xfaces.c (realize_basic_faces): Block input while realizing
12586 the faces.
12587
12588 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12589
12590 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12591
12592 2000-03-31 Gerd Moellmann <gerd@gnu.org>
12593
12594 * xterm.c (x_produce_glyphs): When displaying unibyte text
12595 or ASCII, handle case that per-char metric is null.
12596
12597 2000-03-30 Ken Raeburn <raeburn@gnu.org>
12598
12599 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12600
12601 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12602 (XSUBR, XBUFFER): Verify correct object type before returning
12603 pointer, using eassert.
12604 * frame.h (XFRAME): Likewise.
12605
12606 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12607 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12608 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
12609 * data.c (set_internal): Likewise.
12610 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12611 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12612 * fileio.c (auto_save_1): Likewise.
12613 * insdel.c (check_markers): Likewise.
12614 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12615 * undo.c (record_insert): Likewise.
12616 * vmsproc.c (child_sig): Likewise.
12617 * window.c (unshow_buffer, window_loop): Likewise.
12618 * xterm.c (x_erase_phys_cursor): Likewise.
12619
12620 2000-03-30 Gerd Moellmann <gerd@gnu.org>
12621
12622 * xfns.c (free_image_cache): Free the cache structure itself
12623 last, after all its members have been freed.
12624
12625 * lisp.h (xstrdup): Add prototype.
12626
12627 * alloc.c (xstrdup): Moved here from xfaces.c.
12628 (allocating_for_lisp): Variable removed.
12629 (lisp_malloc): Block input around the calls to malloc and mem_insert.
12630
12631 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12632 of Fsymbol_value.
12633 (xstrdup): Moved to alloc.c.
12634
12635 2000-03-29 Ken Raeburn <raeburn@gnu.org>
12636
12637 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12638
12639 * emacs.c (main): Fix sense of no-loadup test.
12640
12641 * config.in (ENABLE_CHECKING): Undef.
12642
12643 * lisp.h (struct interval): Replace "parent" field with a union of
12644 interval pointer and Lisp_Object; add new bitfield to use as
12645 discriminant. Change other flag fields to bitfields.
12646 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
12647 is defined and the supplied test fails, print a message and abort.
12648 (eassert): New macro. Use CHECK to provide an assert-like facility.
12649
12650 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12651 pointers; abort if the value looks like a lisp object.
12652 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12653 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
12654 Modify for new interval parent definition.
12655
12656 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12657 (UNMARK_BALANCE_INTERVALS): Update references that need an
12658 addressable lisp object in the interval structure.
12659 (die): New function.
12660 (suppress_checking): New variable.
12661
12662 * intervals.c (interval_start_pos): Just return 0 if there's no
12663 parent object.
12664
12665 2000-03-29 Gerd Moellmann <gerd@gnu.org>
12666
12667 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12668 and earlier Emacs versions.
12669
12670 * keyboard.c (Ftop_level): Cancel busy-cursor.
12671
12672 * eval.c (call_debugger): Cancel busy-cursor.
12673
12674 2000-03-29 Kenichi Handa <handa@etl.go.jp>
12675
12676 * search.c (Freplace_match): Adjust multibyteness of the current
12677 buffer and NEWTEXT. Free allocated memory before signaling an error.
12678
12679 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12680
12681 * regex.c (analyse_first): New function obtained by ripping out most
12682 of re_compile_fastmap and generalizing it a little bit so that it
12683 can also just return whether a given (sub)pattern can match the empty
12684 string or not.
12685 (regex_compile): Use `analyse_first' to decide whether the loop-check
12686 needs to be done or not for *, +, *? and +? (the loop check is costly
12687 for non-greedy repetition).
12688 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12689
12690 2000-03-28 Dave Love <fx@gnu.org>
12691
12692 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
12693
12694 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12695
12696 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12697
12698 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12699 an expression.
12700 (enum re_opcode_t): Update description of succeed_n.
12701 (PATFETCH): Always define.
12702 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12703 operators, char classes, shy-groups and intervals).
12704 Optimize special cases of intervals so as to only use succeed_n and
12705 jump_n when really needed.
12706 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12707 that we don't have to handle the special cases any more.
12708 Simplify on_failure_jump handling as well.
12709
12710 2000-03-28 Jason Rumney <jasonr@gnu.org>
12711
12712 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12713
12714 2000-03-27 Gerd Moellmann <gerd@gnu.org>
12715
12716 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12717
12718 * s/msdos.h (GC_SETJMP_WORKS): Define.
12719
12720 * alloc.c (mark_maybe_object): New function.
12721 (mark_memory): Use it.
12722 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12723 (setjmp_tested_p, longjmp_done): New variables.
12724 (test_setjmp): New function.
12725 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12726 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12727
12728 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12729 to DEC_TEXT_POS and INC_TEXT_POS.
12730
12731 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12732 with parameter MULTIBYTE_P.
12733
12734 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
12735
12736 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
12737 buffers because it looks for multibyte character byte sequences
12738 which don't exist in unibyte text.
12739
12740 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12741
12742 * xfaces.c (register_color, unregister_color, unregister_colors)
12743 [DEBUG_X_COLORS]: New functions.
12744 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12745
12746 * xfns.c (x_set_cursor_color): Get color reference counts right.
12747
12748 * xterm.c (x_copy_color): New function.
12749 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12750
12751 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12752 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12753 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12754 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12755 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12756 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12757 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12758 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12759 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12760 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12761
12762 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12763 names for handling per-buffer variables.
12764
12765 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12766 instead of MAX_BUFFER_LOCAL_VARS.
12767 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12768
12769 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12770
12771 * xfns.c (x_specified_cursor_type): New function.
12772 (x_set_cursor_type): Use it.
12773
12774 * buffer.h (struct buffer): Add cursor_type.
12775
12776 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12777
12778 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
12779 (print_partial_compiled_pattern, re_compile_fastmap):
12780 Handle new opcode.
12781 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12782 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12783 executing it as well as when popping it off the stack to find infinite
12784 loops in non-greedy repetition operators.
12785
12786 2000-03-26 Gerd Moellmann <gerd@gnu.org>
12787
12788 * doc.c (Qfunction_documentation): New variable.
12789 (syms_of_doc): Initialize Qfunction_documentation.
12790 (Fdocumentation): If FUNCTION is a symbol with non-nil
12791 `function-documentation' property, return a documentation derived
12792 from that.
12793
12794 * buffer.c (syms_of_buffer): Add default-cursor-type.
12795 (init_buffer_once): Don't let cursor_type have a local value
12796 in every buffer.
12797
12798 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12799 on buffer-local value of cursor_type.
12800 (x_draw_bar_cursor): Add parameter WIDTH.
12801
12802 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12803 (init_buffer_once): Set default cursor_type value to t.
12804 Mark cursor_type as local everywhere.
12805 (syms_of_buffer): New per-buffer variable cursor-type.
12806
12807 * buffer.h (struct buffer): Remove member local_var_flags,
12808 add local_flags.
12809 (MAX_BUFFER_LOCAL_VARS): New macro.
12810 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12811 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12812 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12813 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12814
12815 * print.c (print_object): Use new macros for per-buffer variables.
12816
12817 * category.c (Fset_category_table): Use new macros for per-buffer
12818 variables.
12819
12820 * buffer.c (buffer_permanent_local_flags): Make a char array.
12821 (max_buffer_local_idx): New variable.
12822 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12823 for new handling of per-buffer variables.
12824 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12825 (init_buffer_once): Initialize per-buffer vars differently.
12826 Set max_buffer_local_idx.
12827
12828 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12829 variables.
12830
12831 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
12832
12833 * data.c (do_symval_forwarding, store_symval_forwarding)
12834 (find_symbol_value, set_internal, default_value, Fset_default)
12835 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12836 per-buffer variables.
12837
12838 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12839
12840 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12841
12842 * xterm.c (x_term_init): Unblock input around call1 of
12843 Qvendor_specific_keysyms.
12844
12845 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12846 (find_defun_start): Consider an open parenthesis in column 0
12847 a defun start only if open_paren_in_column_0_is_defun_start is set.
12848 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12849
12850 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12851
12852 * eval.c (Fautoload): Add entry in load-history (if after dump).
12853 * lread.c (load-history): Update docstring.
12854
12855 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12856
12857 * indent.c (Fvertical_motion): Always use the current buffer.
12858 Temporarily change the window's buffer, if necessary.
12859
12860 2000-03-23 Gerd Moellmann <gerd@gnu.org>
12861
12862 * xterm.c (fast_find_position): Make sure not to consider rows
12863 not visible in the window.
12864
12865 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12866
12867 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12868 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12869
12870 2000-03-22 Jason Rumney <jasonr@gnu.org>
12871
12872 * w32menu.c (single_submenu): Set help string to NULL if none.
12873 (w32_menu_show): Set help string correctly.
12874 (add-menu-item): Set help string in MIIM_DATA for menu item.
12875 Load SetMenuItemInfoA explicitly.
12876 (w32_menu_display_help): New function.
12877
12878 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12879 (QCdata): Moved to xdisp.c.
12880
12881 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12882 (Vw32_charset_to_codepage_alist): Removed.
12883 (Vw32_charset_info_alist): New variable.
12884 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12885 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12886 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
12887 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12888 with TODO comment.
12889 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12890 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12891 Define Vw32_charset_info_alist and w32_charset symbols.
12892
12893 2000-03-22 Jason Rumney <jasonr@gnu.org>
12894
12895 * makefile.nt (w32bdf.obj): Update dependencies.
12896
12897 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12898
12899 * w32fns.c: Include fontset.h after dispextern.h.
12900 (Fx_create_frame): Do not create fontset.
12901 (w32_load_system_font): Doc fix.
12902 (Fx_close_connection): Free full_name if it is not shared.
12903
12904 * w32term.c: Include fontset.h after dispextern.h.
12905 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12906 Callers updated.
12907 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12908 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12909 (w32_font_is_double_byte): New function, needs body.
12910 (x_append_glyph): Set glyph->glyph_not_available_p.
12911 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12912 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12913 character, convert it to a unibyte character.
12914 (struct glyph_string): Delete member `charset'.
12915 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12916 calculating it is found.
12917 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12918 the case that per char metric is not available correctly.
12919 (x_fill_glyph_string): Handle the case that the specific glyph is
12920 not available correctly.
12921 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12922 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12923 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12924 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12925 fontset. Don't call FS_LOAD_FONT.
12926
12927 2000-03-22 Ken Raeburn <raeburn@gnu.org>
12928
12929 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12930 (INT_LISPLIKE): New macro.
12931 (NULL_INTERVAL_P): Use it.
12932 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12933 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12934 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
12935
12936 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12937 explicit references to "parent" field of struct interval and
12938 associated unclean type conversions.
12939 * intervals.c (create_root_interval, root_interval, rotate_right)
12940 (rotate_left, balance_possible_root_interval, split_interval_right)
12941 (split_interval_left, interval_start_pos, find_interval)
12942 (next_interval, previous_interval, update_interval)
12943 (adjust_intervals_for_insertion, delete_node, delete_interval)
12944 (adjust_intervals_for_deletion, merge_interval_right)
12945 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12946 (copy_intervals_to_string): Likewise.
12947 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12948 Likewise.
12949 * syntax.c (update_syntax_table): Likewise.
12950
12951 * intervals.c (reproduce_tree_obj): New function, like
12952 reproduce_tree but takes a Lisp_Object for the parent. Declare
12953 with prototype.
12954 (graft_intervals_into_buffer): Use it when appropriate.
12955 (reproduce_tree): Declare with prototype.
12956 (balance_possible_root_interval): Check that the parent is a lisp
12957 object before trying to examine its type.
12958
12959 2000-03-22 Gerd Moellmann <gerd@gnu.org>
12960
12961 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12962 as strings only if both are known to be strings.
12963
12964 * s/openbsd.h (LIBS_TERMCAP): Undef.
12965
12966 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12967
12968 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12969 definitions for non-Emacs compilation.
12970 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12971 outside of `#ifdef emacs'.
12972 (print_partial_compiled_pattern): Update.
12973 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12974 (re_compile_fastmap): Merge handling of charset and charset_not (for
12975 emacs and non-emacs compilation as well).
12976 Similarly for (not)categoryspec and (not)syntaxspec.
12977 Don't use the fastmap when reaching `anychar' since the added
12978 complexity is not justified.
12979 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12980 and (not)syntaxspec. Merge (not)categoryspec.
12981
12982 2000-03-22 Kenichi Handa <handa@etl.go.jp>
12983
12984 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12985 (FACE_FOR_CHAR): Define them differently for the configuration of
12986 --without-x.
12987
12988 2000-03-21 Dave Love <fx@gnu.org>
12989
12990 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12991 doc string.
12992
12993 2000-03-21 Gerd Moellmann <gerd@gnu.org>
12994
12995 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12996 (lface_fully_specified_p): Don't check contents of
12997 LFACE_FONT_INDEX because that attribute is optional.
12998 (realize_x_face): Remove now unwarranted xassert.
12999
13000 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
13001
13002 The following changes are to make font selection based on
13003 characters, not charset. In addition, they recover fontset
13004 facilities while utilizing the new font selection mechanism.
13005
13006 * Makefile.in (fontset.o): Depend on dispextern.h.
13007
13008 * alloc.c (mark_face_cache): Don't mark face->registry.
13009
13010 * dispextern.h (struct glyph): New member glyph_not_available_p.
13011 Use 22 bits for face_id.
13012 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13013 (struct face): Delete member registry, new member ascii_face.
13014 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13015 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13016 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
13017 (struct it): Delete member charset, new member glyph_not_available_p.
13018
13019 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13020 (struct fontset_info, struct fontset_data): Structs removed.
13021 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13022 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
13023 (fs_load_font, fs_query_fontset): Adjusted for new argument.
13024 (fs_free_face_fontset, fontset_font_pattern)
13025 (face_suitable_for_char_p, face_for_char)
13026 (make_fontset_for_ascii_face): Extern them.
13027 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13028 (FS_LOAD_FACE_FONT): New macro.
13029
13030 * fontset.c: All codes rewritten or adjusted for the change of
13031 fontset implementation. Now fontset is represented by char table.
13032 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13033 Variables removed.
13034 (my_strcasecmp): Function removed.
13035 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
13036 (AREF, ASIZE): New macros.
13037 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13038 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13039 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13040 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13041 (fontset_id_valid_p, font_family_registry, fontset_name)
13042 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13043 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
13044 New functions.
13045 (fs_load_font): New arg FACE. Caller changed.
13046 (fs_query_fontset): Argument changed. Caller changed.
13047 (Fquery_fontset): call fs_query_fontset.
13048 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13049 Functions removed.
13050 (clear_fontset_elements, check_registry_encoding)
13051 (check_fontset_name): New functions.
13052 (syms_of_fontset): Set char-table-extra-slots property of fontset
13053 to 3. Staticpro and initialize Vfontset_table and
13054 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13055
13056 * frame.h (struct frame): Member `fontset_data' removed.
13057 (FRAME_FONTSET_DATA): Macro removed.
13058
13059 * frame.c (make_frame): Don't allocate f->fontset_data.
13060 (Fdelete_frame): Don't free f->fontset_data.
13061
13062 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13063
13064 * xdisp.c (charset_at_position): Function removed.
13065 (init_iterator): Don't set member charset of struct `it'.
13066 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13067 (next_element_from_display_vector, insert_left_trunc_glyphs):
13068 Likewise.
13069 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13070 FACE_FOR_CHARSET.
13071 (get_next_display_element, append_space)
13072 (extend_face_to_end_of_line): Likewise.
13073
13074 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13075 Variables removed.
13076 (clear_font_table, frame_update_line_height, load_face_font):
13077 Adjusted for the change of fontset implementation.
13078 (load_face_fontset_font): Function removed.
13079 (pixel_point_size): New function.
13080 (font_list): Argument type changed. Caller changed.
13081 (LFACE_FONT): New macro.
13082 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13083 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13084 Lisp_Object. Determine the font name by actually loading a font
13085 by the specified pattern. Set LFACE_FONT (lface) to the specified
13086 pattern. Even if a font is not found, don't try alternatives.
13087 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13088 (set_font_frame_param): If `font' is specified in lface, use it.
13089 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13090 (lface_same_font_attributes_p): Likewise.
13091 (make_realized_face): Arguent changed. Caller changed. Set
13092 face->ascii_face to face itself.
13093 (free_realized_face): Free face->fontset if face is for ASCII.
13094 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13095 (deduce_unibyte_registry, x_charset_registry): Functions removed.
13096 (free_realized_multibyte_face): New function.
13097 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13098 changed. Caller changed.
13099 (try_font_list): Argument type changed.
13100 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13101 (choose_face_font): Argument changed. Handle fontset properly.
13102 (choose_face_fontset_font): Function removed.
13103 (realize_default_face, realize_named_face): Don't remove the
13104 former face here.
13105 (realize_face): Argument changed. Caller changed. Remove face
13106 with the arg former_face_id in advance. Load font for the new face.
13107 (realize_x_face): Argument changed. Caller changed. For a
13108 multibyte character, share fontset with base_face. For a single
13109 byte character, make a new realized fontset. Don't load a font here.
13110 (realize_tty_face): Argument changed. Caller changed.
13111 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13112 (face_at_buffer_position): Don't check multibyte_p for returning
13113 DEFAULT_FACE_ID.
13114 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13115 FACE_SUITABLE_FOR_CHARSET_P.
13116 (syms_of_xfaces): Remove code for Qx_charset_registry and
13117 Vface_default_registry.
13118
13119 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13120 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
13121 (x_per_char_metric): Don't try FONT->default_char. Even if
13122 pcm->width is zero, glyph bits may exist.
13123 (x_encode_char): Always initialize char2b->byte1.
13124 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
13125 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
13126 (x_append_glyph): Set glyph->glyph_not_available_p.
13127 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13128 it->charset. Handle the case that per char metric is not
13129 available. If it->multibyte_p is zero and it->c is a multibyte
13130 character, convert it to a unibyte character.
13131 (struct glyph_string): Delete member `charset'.
13132 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13133 the case that per char metric is not available correctly.
13134 (x_fill_glyph_string): Handle the case that the specific glyph is
13135 not available correctly.
13136 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13137 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13138 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13139 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13140 fontset. Don't call FS_LOAD_FONT.
13141
13142 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13143 (x_create_tip_frame): Likewise.
13144 (Fx_close_connection): Free full_name of font_info.
13145
13146 * fns.c (optimize_sub_char_table): New function.
13147 (Foptimize_char_table): New function.
13148 (syms_of_fns): Defsubr Soptimize_char_table.
13149
13150 2000-03-20 Gerd Moellmann <gerd@gnu.org>
13151
13152 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13153 only if buffer is displayed in some window.
13154
13155 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13156 (try_window_reusing_current_matrix): Don't call scroll run
13157 function if run's current and desired position are the same;
13158 this prevents cursor flickering.
13159
13160 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13161
13162 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13163
13164 * regex.c (RE_STRING_CHAR): New macro.
13165 (GET_CHAR_AFER_2): Remove.
13166 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13167 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13168 (print_partial_compiled_pattern, re_compile_fastmap)
13169 (re_match_2_internal): Remove on_failure_jump_exclusive.
13170 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13171 optimization only need to work for * (ie. can use of_keep_string_jump).
13172 Remove the special case for .*\n since it is now covered by the general
13173 optimization.
13174 (re_search_2): Don't bother with `room'.
13175 (skip_one_char): New function.
13176 (skip_noops): Simplify since `memory' is not needed any more.
13177 (mutually_exclusive_p): Restructure slightly to use `switch' and
13178 add handling for "all" remaining cases.
13179 (re_match_2_internal): Change on_failure_jump_smart to use
13180 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13181 rather than on_failure_jump_exclusive.
13182
13183 2000-03-19 Gerd Moellmann <gerd@gnu.org>
13184
13185 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13186 number of bits per RGB because it's everywhere used as the depth
13187 of the visual.
13188
13189 * term.c (calculate_costs): Remove code dealing with X frames.
13190
13191 2000-03-19 Richard M. Stallman <rms@gnu.org>
13192
13193 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13194
13195 2000-03-18 Gerd Moellmann <gerd@gnu.org>
13196
13197 * lread.c (read_integer): Unread the last char not consumed.
13198
13199 2000-03-17 Gerd Moellmann <gerd@gnu.org>
13200
13201 * xterm.c (x_update_window_cursor): Don't update in frames
13202 which are in the process of being deleted.
13203
13204 2000-03-16 Gerd Moellmann <gerd@gnu.org>
13205
13206 * Makefile.in (mostlyclean): Add `*.core'.
13207 (clean): Add `bootstrap-emacs'.
13208
13209 * lread.c (read_integer): New function.
13210 (read1): Support read syntax #o, #x, #b, #r.
13211
13212 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13213
13214 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13215 make sure POINTER_TO_OFFSET gives the same value before and after
13216 PREFETCH. Use `dfail' to guarantee "atomic" matching.
13217 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13218 (debug): Now only active if > 0 rather than if != 0.
13219 (DEBUG_*): Update for the new meaning of `debug'.
13220 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13221 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13222 in `succeed_n', `jump_n' and `set_number_at'.
13223 (store_op1, store_op2, insert_op1, insert_op2)
13224 (at_begline_loc_p, at_endline_loc_p): Add prototype.
13225 (group_in_compile_stack): Move to after its arg's types are
13226 declared and add a prototype.
13227 (PATFETCH): Define in terms of PATFETCH_RAW.
13228 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
13229 (QUIT): Redefine as a nop except for NTemacs.
13230 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13231 indentation of the greedy-op and shy-group code.
13232 (at_(beg|end)line_loc_p): Fix argument's types.
13233 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13234 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13235 (MATCHING_IN_FIRST_STRING): Remove.
13236 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13237 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13238 QUIT unconditionally.
13239
13240 2000-03-15 Gerd Moellmann <gerd@gnu.org>
13241
13242 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13243 a sole completion.
13244
13245 * process.c (send_process): Add a hint that the function
13246 can call Lisp code to its comment.
13247
13248 * lread.c (load_dangerous_libraries): New variable.
13249 (Vbytecomp_version_regexp): New variable.
13250 (safe_to_load_p): New function.
13251 (Fload): Handle files not compiled with Emacs specially.
13252 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13253
13254 2000-03-14 Gerd Moellmann <gerd@gnu.org>
13255
13256 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13257
13258 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13259 support functions only if HAVE_X11R6_XIM is defined.
13260 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13261
13262 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13263
13264 * xfns.c (X_I18N_INHIBITED): Don't define.
13265 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
13266 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13267
13268 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13269 (HAVE_X11R6_XIM): Define.
13270
13271 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13272
13273 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13274 If set, call XSynchronize.
13275
13276 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13277
13278 * regex.c: Declare a new type `re_char' used throughout the code
13279 for the string char type. It's `const unsigned char' to match the
13280 rest of Emacs. Consistently make sure all pointers to strings use
13281 it and make sure all pointers into the pattern use `unsigned char'.
13282 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
13283 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13284 code duplication.
13285
13286 * charset.h (GET_CHAR_AFTER_2): Remove.
13287 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13288
13289 2000-03-12 Ken Raeburn <raeburn@gnu.org>
13290
13291 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13292 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13293 of them try to use backquotes.
13294
13295 2000-03-12 Dave Love <fx@gnu.org>
13296
13297 * unexelf.c: Restore changes of 1999-10-19.
13298 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13299 fix its type and alignment; copy it from current process.
13300
13301 2000-03-12 Gerd Moellmann <gerd@gnu.org>
13302
13303 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13304 has been found. Fix bug not computing timer's predecessor.
13305
13306 * fileio.c (Fread_file_name): Handle case that DIR contains a
13307 file name.
13308
13309 * window.c (Fsave_window_excursion): Doc fix.
13310
13311 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
13312
13313 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13314
13315 * msdos.c (vga_installed): New function, code moved from
13316 dos_set_window_size.
13317 (Qbar, Qcursor_type, outside_cursor): New variables.
13318 (syms_of_msdos): Intern and staticpro them.
13319 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13320 shape used outside Emacs when called for the first time.
13321 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13322 cursor shape used outside Emacs.
13323 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13324 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13325 type has changed.
13326 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13327 parameters specify the cursor. Make qreverse a global
13328 variable (renamed to Qreverse).
13329
13330 2000-03-09 Gerd Moellmann <gerd@gnu.org>
13331
13332 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13333
13334 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13335
13336 This is a big redesign of failure-stack and register handling, prompted
13337 by bugs revealed when trying to add shy-groups. Overall, what happened
13338 is that loops are now structured a little differently, groups can be
13339 shy and the code is a little simpler.
13340
13341 * regex.h: Update the copyright.
13342 (RE_SHY_GROUPS): New value.
13343 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13344 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13345
13346 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13347 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13348 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13349 for (start|stop)_memory since they now only take one argument (the
13350 second has becomes unnecessary).
13351 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
13352 (print_compiled_pattern): Use %ld to printf long ints and flush to
13353 make debugging a little easier.
13354 (union fail_stack_elt): Make the integer unsigned.
13355 (struct fail_stack_type): Add a `frame' element.
13356 (INIT_FAIL_STACK): Init `frame' as well.
13357 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13358 (DEBUG_PUSH, DEBUG_POP): Remove.
13359 (NUM_REG_ITEMS): Remove.
13360 (NUM_NONREG_ITEMS): Adjust.
13361 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13362 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
13363 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
13364 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13365 New macros.
13366 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13367 address pushed is not the destination of the jump but the source
13368 of it instead.
13369 (NUM_FAILURE_ITEMS): Remove.
13370 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
13371 registers before the actual failure point). Don't hardcode any
13372 meaning for str==NULL anymore.
13373 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
13374 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13375 Remove.
13376 (REG_UNSET_VALUE): Use NULL (why not?).
13377 (compile_range): Remove declaration since it doesn't exist.
13378 (struct compile_stack_elt_t): Remove inner_group_offset.
13379 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13380 (regex_grow_registers): Remove dead code.
13381 (FIXUP_ALT_JUMP): New macro.
13382 (regex_compile): Add shy-groups Change loops to use
13383 on_failure_jump_smart&jump instead of
13384 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13385 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13386 variable to me). Use `jump' instead of `jump_past_alt' and don't
13387 bother with push_dummy_failure in alternatives since it is now
13388 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13389 emacs' for (re)allocating the stack.
13390 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13391 from loop when bufp->can_be_null rather than jumping to `done'.
13392 Avoid jumping backwards so as to ensure termination. Use
13393 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13394 backreferences. Remove dead code in handling of `anychar'.
13395 (skip_noops, mutually_exclusive_p): New functions taken from the
13396 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13397 improve mutually_exclusive_p to handle ".+\n".
13398 (lowest_active_reg, highest_active_reg)
13399 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
13400 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13401 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13402 variables. Push register (in `start_memory') on the stack rather
13403 than storing it in old_reg(start|end). Remove the cycle detection
13404 from `stop_memory', replaced by the use of on_failure_jump_loop
13405 for greedy loops. Add code for the new on_failure_jump_<foo>.
13406 Remove ad-hoc code in `on_failure_jump' to push more registers in
13407 the case of a loop. Take out code from `maybe_pop_jump' into
13408 separate functions and adapt it to the semantics of
13409 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13410 and push_dummy_failure. Remove dummy_failure handling and
13411 handling of `failures to jump to on_failure_jump' (this last one
13412 was already dead code, it seems).
13413 (group_match_null_string_p, alt_match_null_string_p)
13414 (common_op_match_null_string_p): Remove.
13415
13416 2000-03-08 Dave Love <fx@gnu.org>
13417
13418 * config.in: Don't depend on __STDC__ for volatile.
13419 Add POINTER_TYPE, PTR, PROTOTYPES.
13420
13421 * hftctl.c, strftime.c: Use PROTOTYPES.
13422 * eval.c (find_handler_clause): Likewise.
13423
13424 * mem-limits.h: Use POINTER_TYPE.
13425
13426 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13427 (memory_warnings): Declare using POINTER_TYPE.
13428
13429 2000-03-08 Gerd Moellmann <gerd@gnu.org>
13430
13431 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13432
13433 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
13434
13435 * xfns.c: Remove obsolete code in #if 0.
13436 (Fx_focus_frame): New function.
13437
13438 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13439
13440 * coding.c (coding_category_name): Add coding-category-utf-8,
13441 coding-category-utf-16-be, coding-category-utf-16-le.
13442 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13443 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13444 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13445 (detect_coding_utf_8): New function.
13446 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13447 UTF_16_LOW_SURROGATE_P): New macros.
13448 (detect_coding_utf_16): New function
13449 (detect_coding_mask): When priorities are specified, skip any
13450 categories that have `nil' coding-system. Fix bug of returning
13451 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13452 returns a mask not set in PRIORITIES.
13453 (detect_eol_type_in_2_octet_form): New function.
13454 (detect_eol): selects detect_eol_type_XXX to call according to
13455 cooding->category_idx.
13456 (detect_coding_system): Remove `nil' coding-system in the result.
13457 (Fupdate_coding_systems_internal): Update all coding-categories.
13458
13459 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13460 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13461 New macros.
13462 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13463 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13464 (CODING_CATEGORY_IDX_UTF_16_LE)
13465 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13466 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
13467 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13468 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13469
13470 2000-03-07 Gerd Moellmann <gerd@gnu.org>
13471
13472 * doc.c (Fdocumentation_property): If value is not a string,
13473 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13474
13475 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13476 close the display with XtCloseDisplay. This caused a bus error
13477 on OpenWindows.
13478
13479 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13480 complete but not unique.
13481
13482 2000-03-06 Gerd Moellmann <gerd@gnu.org>
13483
13484 * process.c (send_process): Remove local variable `procname' that
13485 might become invalid when a GC happens. Instead, access the
13486 process name slot directly.
13487
13488 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13489 orig_height if set.
13490
13491 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13492 orig_height if set.
13493
13494 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13495
13496 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13497 glyph matrices have been freed.
13498
13499 2000-03-05 Gerd Moellmann <gerd@gnu.org>
13500
13501 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
13502 (bootstrap-temacs): Set LC_ALL to C like for temacs.
13503
13504 * xfns.c (QCdata): Moved to xdisp.c.
13505
13506 * xdisp.c (QCdata): Moved here from xfns.c.
13507 (syms_of_xdisp): Initialize QCdata.
13508
13509 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13510
13511 * window.c (coordinates_in_window): Use
13512 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13513 FRAME_INTERNAL_BORDER_WIDTH.
13514
13515 * xdisp.c (try_window_id): Recompute unchanged information if
13516 it is obviously invalid.
13517
13518 * xterm.c (x_term_init): Create a colormap if not using the
13519 default visual.
13520
13521 * xterm.h (select_visual): Change prototype.
13522
13523 * xfns.c (select_visual): Rewritten. Recognize user-specified
13524 visual classes.
13525 (visual_classes): New variable.
13526
13527 2000-03-04 Gerd Moellmann <gerd@gnu.org>
13528
13529 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13530 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13531 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
13532 (x_decode_color): Don't handle allocation of white and black specially.
13533 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13534 XtNcolormap resources.
13535 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13536 (Fx_create_frame): Initialize color members of x_output structure.
13537 (xpm_load): Pass colormap to XPM lib.
13538
13539 * xfaces.c (x_free_colors): Access colormap of frame using
13540 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13541 when default colormap is used.
13542
13543 * xterm.c (x_term_init): Set Colormap member of x_display_info
13544 structure. Copy colormap if resource `privateColormap' is
13545 specified (PseudoColor only).
13546 (x_setup_relief_color): Access colormap of frame using
13547 FRAME_X_COLORMAP.
13548
13549 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13550 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13551
13552 2000-03-04 Jason Rumney <jasonr@gnu.org>
13553
13554 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13555 other non-platform-specific equivalents.
13556 [WINDOWSNT]: Include w32term.h, fontset.h and define X
13557 specific functions and macros as their w32 equivalents where
13558 non-platform-specifics are not available.
13559 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13560 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13561 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13562 (frame_update_line_height): Use macros to access f->output_data.
13563 (defined_color): Remove FIXME comments; fixed.
13564 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13565 into #ifdef blocks. Add WINDOWSNT blocks.
13566 (Fx_list_fonts): Use macros for accessing font data.
13567 (set_lface_from_font_name): Different default fonts for X and
13568 WINDOWSNT.
13569 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13570 scalable for backward compatibility.
13571 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
13572 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13573
13574 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
13575 syms_of_w32faces.
13576
13577 * makefile.nt (w32faces.obj): Remove.
13578 (xfaces.obj): Add.
13579
13580 2000-03-03 Jason Rumney <jasonr@gnu.org>
13581
13582 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13583 correct parameters.
13584
13585 2000-03-03 Ken Raeburn <raeburn@gnu.org>
13586
13587 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13588 standard ELF definitions here if the system header does not.
13589
13590 2000-03-03 Gerd Moellmann <gerd@gnu.org>
13591
13592 * xterm.c (PER_CHAR_METRIC): Removed.
13593 (x_per_char_metric_1, x_default_char): New functions.
13594 (x_per_char_metric): If font's default char is invalid, return
13595 metrics of a suitably chosen usable default char.
13596 (x_draw_glyph_string_foreground): If font has an invalid default
13597 char, replace occurrences of unprintable chars with a suitably
13598 chosen usable default char.
13599
13600 2000-03-02 Gerd Moellmann <gerd@gnu.org>
13601
13602 * xterm.c (note_mouse_highlight): Return quickly if frame's
13603 glyph matrices have been freed.
13604
13605 * dispnew.c (free_glyphs): Block input while freeing matrices.
13606
13607 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13608
13609 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13610 Use x_free_colors.
13611
13612 * dispextern.h (x_free_colors): Add prototype.
13613
13614 * xfaces.c (x_free_colors): New function.
13615 (unload_color, free_face_colors): Use it.
13616
13617 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13618
13619 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13620
13621 * window.c [MSDOS]: Include msdos.h.
13622
13623 2000-03-02 Dave Love <fx@gnu.org>
13624
13625 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13626
13627 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13628 set C_OPTIMIZE_SWITCH for gcc.
13629
13630 2000-03-02 Kenichi Handa <handa@etl.go.jp>
13631
13632 * coding.c (coding_save_composition): Be sure to allocate
13633 composition data area in coding even if there's no composition in
13634 the current run.
13635
13636 2000-03-01 Jason Rumney <jasonr@gnu.org>
13637
13638 * w32term.c: Equivalent changes to those made to xterm.c on
13639 2000-02-25 and 2000-02-24.
13640
13641 * w32fns.c: Equivalent changes to those made to xfns.c on
13642 2000-02-25 and 2000-02-21.
13643
13644 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13645 correct line-end convention is followed.
13646
13647 * w32menu.c [HAVE_BOXES]: Remove #undef.
13648 (single_keymap_panes): Remove code for simulating checkmarks.
13649 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13650 Remove code for drawing simulated checkmarks.
13651 (w32_menu_show): make unibyte help string correctly.
13652 (add_menu_item): draw standard Windows checkmarks. Draw radio
13653 buttons as radio buttons if possible.
13654
13655 2000-03-01 Gerd Moellmann <gerd@gnu.org>
13656
13657 * sysdep.c (start_of_text): Don't define this function for NetBSD
13658 with ELF.
13659
13660 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
13661 Don't define.
13662 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13663 (LINKER): Don't undef if __NetBSD__ is defined.
13664
13665 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13666
13667 * fileio.c [__NetBSD__]: Define `unix'.
13668
13669 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13670
13671 2000-02-29 Gerd Moellmann <gerd@gnu.org>
13672
13673 * atimer.c (start_atimer): Don't abort when timers are stopped.
13674 (append_atimer_lists): New function.
13675 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13676 arbitrary lists of stopped and running atimers.
13677
13678 * atimer.c (cancel_atimer): Handle canceling an atimer when
13679 some timers are stopped.
13680
13681 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13682 after canceling it.
13683
13684 * fns.c (maybe_resize_hash_table): Handle case of new size
13685 coming out as being the same as old size.
13686
13687 2000-02-27 Jason Rumney <jasonr@gnu.org>
13688
13689 * makefile.nt: Add atimer.h to dependencies.
13690 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13691 * w32console.c: Only disable window system features for dispextern.h
13692 (initialize_w32_display): Build a display info for the console.
13693 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13694 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13695 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13696 as 2 button mice.
13697 * w32gui.h (struct W32FontStruct): Revert last change after change
13698 to xdisp.c.
13699 * w32menu.c (single_submenu): Set up help string.
13700 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13701 (w32_dialog_show): Set up help string.
13702 * w32term.c (w32_display_info_for_display): Remove unused function.
13703 (w32_draw_bitmap): Use pre-built bitmaps.
13704 (w32_initialize_display_info): New function to initialize parts of
13705 display info that are common to both GUI and console frames.
13706 (w32_term_init): Use w32_initialize_display_info. Do not set
13707 Vw32_num_mouse_buttons here, as it is not called for console
13708 frames. Build bitmaps for indicating truncated lines etc.
13709 (x_delete_display): Destroy pre-built bitmaps.
13710 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13711 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13712
13713 2000-02-27 Dave Love <fx@gnu.org>
13714
13715 * lisp.h: Add a bunch of prototypes.
13716
13717 2000-02-26 Kenichi Handa <handa@etl.go.jp>
13718
13719 * keyboard.c (read_char): Set `usec' correctly.
13720
13721 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13722
13723 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13724 `lambda', set reg[RRR] to the map index.
13725 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13726 reg[RRR] to 0. Otherwise, set it to -1.
13727
13728 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13729
13730 * emacs.c (main): Remove code snippet commented out with `//'.
13731
13732 2000-02-25 Richard M. Stallman <rms@gnu.org>
13733
13734 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13735 and contains a `:', prepend `/:'.
13736
13737 * window.c (select_window_1): If selected_window is nil,
13738 don't "swap out" the buffer's point.
13739 (Fset_window_configuration): Set selected_window to nil
13740 before calling Fselect_window.
13741 (unshow_buffer): Don't set point in buffer from window's point
13742 if another more recently selected window also shows the buffer.
13743
13744 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13745
13746 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13747
13748 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13749 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
13750 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13751 New variables.
13752 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13753 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13754 (hide_busy_cursor): New functions.
13755 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13756
13757 * minibuf.c (read_minibuf): Cancel busy-cursor.
13758
13759 * keyboard.c (command_loop_1): Call start_busy_cursor before
13760 Fcommand_execute and cancel_busy_cursor after it.
13761 (timer_check): Remove busy-cursor code.
13762 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13763 cursor timer.
13764
13765 * process.c (wait_reading_process_input): Remove busy-cursor code.
13766
13767 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13768 Fx_hide_busy_cursor.
13769
13770 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13771 Remove prototyoes.
13772 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13773
13774 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13775
13776 * xterm.c (XTread_socket): Remove busy-cursor code.
13777
13778 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13779 (build_frame_matrix_from_leaf_window): Put code handling
13780 glyph row's not being a slice of a frame row in #if 0.
13781 (sync_window_with_frame_matrix_rows): New function.
13782 (frame_row_to_window): New function.
13783 (mirror_line_dance): Handle copies between windows.
13784
13785 * lread.c (Fload): Use `xfree' instead of `free'.
13786 (init_obarray): Use `xmalloc' instead of `malloc'.
13787
13788 * window.c (Fset_window_buffer): Set WINDOW to the window
13789 after decoding.
13790 (coordinates_in_window): Take frame's internal border width
13791 into account.
13792
13793 2000-02-24 Gerd Moellmann <gerd@gnu.org>
13794
13795 * xterm.c (x_display_and_set_cursor): Display cursor of
13796 non-selected windows depending on the setting of
13797 cursor_in_non_selected_windows.
13798
13799 * xdisp.c (cursor_in_non_selected_windows): New variable.
13800 (syms_of_xdisp): DEFVAR_BOOL it.
13801
13802 2000-02-23 Gerd Moellmann <gerd@gnu.org>
13803
13804 * data.c (Fstring_to_number): If number is greater than what
13805 fits into an integer, return a float.
13806
13807 * eval.c (specbind): Remove references to
13808 keyword_symbols_constant_flag.
13809
13810 * data.c (keyword_symbols_constant_flag): Removed.
13811 (Fmakunbound, set_internal, syms_of_data): Remove references to
13812 keyword_symbols_constant_flag.
13813
13814 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13815
13816 2000-02-23 Kenichi Handa <handa@etl.go.jp>
13817
13818 * syntax.c (multibyte_syntax_as_symbol): New variable.
13819 (syms_of_syntax): Declare it as a Lisp variable.
13820 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13821 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13822 nonzero, treat all multibyte characters as symbol.
13823 (init_syntax_once): Give syntax `word' to all multibyte characters.
13824
13825 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13826
13827 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
13828 a deleted frame.
13829
13830 2000-02-21 Gerd Moellmann <gerd@gnu.org>
13831
13832 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13833
13834 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13835 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13836
13837 2000-02-21 Dave Love <fx@gnu.org>
13838
13839 * frame.c (Vmouse_position_function): New variable.
13840 (Fmouse_position): Use it.
13841 (syms_of_frame): Install it.
13842
13843 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13844
13845 2000-02-20 Gerd Moellmann <gerd@gnu.org>
13846
13847 * fileio.c (Finsert_file_contents): Unbind the binding of
13848 standard-output done by temp_output_buffer_setup.
13849
13850 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13851 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13852 (specbind, unbind_to): Handle most common case of non-constant
13853 symbol with trivial value specially.
13854
13855 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13856
13857 2000-02-20 Richard M. Stallman <rms@gnu.org>
13858
13859 * data.c (Fmake_variable_buffer_local): Doc fix.
13860 Init found_for_buffer to 0.
13861 (Fmake_variable_frame_local): If the variable has already
13862 been buffer-local, set the check_frame field.
13863
13864 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13865
13866 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13867 produced for CODING_MODE_LAST_BLOCK requires.
13868
13869 2000-02-18 Dave Love <fx@gnu.org>
13870
13871 * keyboard.c (echo_keystrokes): Remove declaration.
13872 (Vecho_keystrokes) New variable.
13873 (read_char, record_menu_key, read_key_sequence): Use it to allow
13874 use of float value.
13875 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13876
13877 * lread.c: Undef feature selection macros before defining.
13878
13879 2000-02-18 Gerd Moellmann <gerd@gnu.org>
13880
13881 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13882 for symbols other than the symbol in question.
13883
13884 2000-02-17 Dave Love <fx@gnu.org>
13885
13886 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13887
13888 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13889
13890 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13891
13892 * alloc.c (enum mem_type): Compile unconditionally.
13893
13894 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13895
13896 * xfaces.c (tty_defined_color): Don't return faulire indication
13897 for unspecified-fg and unspecified-bg pseudo-colors.
13898
13899 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13900
13901 * alloc.c (mark_object): Don't mark symbol names in pure space.
13902 (gc_sweep): Don't unmark symbol names in pure space.
13903
13904 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13905 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13906 [GC_MARK_STACK]: New defines.
13907 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
13908 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13909
13910 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13911
13912 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13913 allocate_buffer instead of xmalloc.
13914
13915 * alloc.c (toplevel): Include setjmp.h.
13916 (PURE_POINTER_P): New define.
13917 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13918 (Vdead) [GC_MARK_STACK]: New variable.
13919 (lisp_malloc): Add parameter TYPE, call mem_insert if
13920 GC_MARK_STACK is defined.
13921 (allocate_buffer): New function.
13922 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
13923 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13924 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13925 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13926 (MEM_NIL) [GC_MARK_STACK]: New define.
13927 (struct mem_node) [GC_MARK_STACK]: New structure.
13928 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13929 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13930 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13931 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13932 (mark_stack) [GC_MARK_STACK]: New functions.
13933 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13934 (clear_marks): Removed.
13935 (gc_sweep): Set free conses' car, free floats' type, free
13936 symbols' function to Vdead. Use lisp_free to free buffers.
13937 (init_alloc_once): Initialize Vdead.
13938 (survives_gc_p): Return non-zero for pure objects.
13939
13940 * alloc.c: Add comments throughout the file.
13941
13942 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13943 that unblocks alarms.
13944
13945 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13946 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13947 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13948
13949 * frame.c (make_frame): Set frame initiallly to `garbaged'.
13950
13951 2000-02-17 Kenichi Handa <handa@etl.go.jp>
13952
13953 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13954 avoid infinite error signaling. Allocate sufficient memory for
13955 eol_str in the case that eoltype is Lisp_Int.
13956
13957 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13958
13959 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13960 depends on the previous behavior.
13961
13962 2000-02-16 Gerd Moellmann <gerd@gnu.org>
13963
13964 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13965
13966 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13967
13968 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13969
13970 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
13971 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
13972 write(2).
13973
13974 2000-02-15 Richard M. Stallman <rms@gnu.org>
13975
13976 * data.c (set_internal): Don't make variable buffer-local
13977 if within a let-binding for the same buffer.
13978 (let_shadows_buffer_binding_p): New function.
13979
13980 * eval.c (specbind): For buffer-local value,
13981 record the current buffer also.
13982 (unbind_to): Cope with that change.
13983
13984 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13985
13986 * window.c (Fsave_window_excursion): Doc fix.
13987
13988 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13989
13990 * syntax.c (back_comment): Make sure we only consider comment-starters
13991 of the relevant style and return -1 in case of a failure to find the
13992 beginning of the comment.
13993 (Fforward_comment): If back_comment fails, go back to the position just
13994 after the comment-end.
13995 (scan_lists): Add comment describing a very minor bug.
13996
13997 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13998
13999 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14000 `completion-regexp-list' in the docstring.
14001
14002 2000-02-14 Dave Love <fx@gnu.org>
14003
14004 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14005
14006 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14007
14008 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14009 to Emacs' syntax. Also fix the comment about set/not-set meanings
14010 since Emacs syntax is not the value 0 any more.
14011 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14012 since it's now part of RE_SYNTAX_EMACS.
14013
14014 2000-02-12 Dave Love <fx@gnu.org>
14015
14016 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
14017
14018 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14019
14020 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14021
14022 2000-02-12 Dave Love <fx@gnu.org>
14023
14024 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14025
14026 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
14027 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14028 * s/hpux.h: Don't define HAVE_VFORK.
14029
14030 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14031
14032 * s/nextstep.h: Don't define HAVE_ALLOCA.
14033
14034 * config.in: Add vfork bits.
14035
14036 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14037
14038 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14039 unwind function to undo the effect of stopping atimers.
14040
14041 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
14042
14043 * atimer.c (stopped_atimers): New variable.
14044 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14045 New functions.
14046
14047 * atimer.h (stop_other_atimers, run_all_atimers)
14048 (unwind_stop_other_atimers): Add function prototypes.
14049
14050 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14051
14052 2000-02-11 Ken Raeburn <raeburn@gnu.org>
14053
14054 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14055 library may depend on jpeg.
14056 (atimer.o): Depends on atimer.c.
14057
14058 2000-02-11 Kenichi Handa <handa@etl.go.jp>
14059
14060 * insdel.c (del_range_1): Call update_compositions.
14061 (del_range_both): Call update_compositions just once..
14062
14063 2000-02-10 Dave Love <fx@gnu.org>
14064
14065 * xfns.c (create_frame_xic): Fix initialization of automatic
14066 aggregates for pcc.
14067
14068 2000-02-09 Kenichi Handa <handa@etl.go.jp>
14069
14070 * ccl.c (CCL_MAKE_CHAR): New macro.
14071 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14072 registers by CCL_MAKE_CHAR before calling translate_char.
14073 <CCL_TranslateCharacterConstTbl> Likewise.
14074
14075 2000-02-08 Dave Love <fx@gnu.org>
14076
14077 * lread.c (__EXTENSIONS__): Define.
14078
14079 2000-02-08 Gerd Moellmann <gerd@gnu.org>
14080
14081 * puresize.h (BASE_PURESIZE): Increase to 650000.
14082
14083 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14084
14085 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14086 the help message.
14087
14088 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14089
14090 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14091 md, mh, mb, mr, and me to the fake termcap entry.
14092
14093 2000-02-06 Ken Raeburn <raeburn@gnu.org>
14094
14095 * sound.c (sound_cleanup): Don't call device close routine if the
14096 function pointer is null.
14097
14098 2000-02-06 Andrew Innes <andrewi@gnu.org>
14099
14100 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14101 around image definitions and prototypes.
14102 (gamma_correct) [WINDOWSNT]: New prototype.
14103
14104 * w32term.c (x_make_frame_visible): Replace call to
14105 input_poll_signal with poll_for_input.
14106
14107 * window.c [WINDOWSNT]: Include w32term.h.
14108
14109 * xdisp.c [WINDOWSNT]: Include w32term.h.
14110
14111 * makefile.nt: Add dependencies on w32gui.h.
14112 (OBJ1): Include atimer.obj.
14113 ($(BLD)\atimer.obj): New dependency rule.
14114
14115 * w32.c (sigmask): New function (does nothing).
14116 (sigunblock): Ditto.
14117
14118 * frame.c [WINDOWSNT]: Include w32term.h.
14119
14120 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14121
14122 * lread.c (syms_of_lread): Fix literal newlines.
14123
14124 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14125 the string constant limit (2048 bytes) in MSVC.
14126 (main): Ditto.
14127
14128 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14129
14130 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
14131 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14132 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14133 dispatch the event.
14134
14135 2000-02-04 Dave Love <fx@gnu.org>
14136
14137 * fileio.c: Remove some unused vars.
14138 (_GNU_SOURCE): Define (for euidaccess).
14139
14140 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14141
14142 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14143 gcpro1, gcpro2.
14144 (read_minibuf): Deal with allow_props correctly.
14145
14146 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14147
14148 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14149
14150 2000-02-03 Ken Raeburn <raeburn@gnu.org>
14151
14152 * search.c (compile_pattern): If a cache entry has a nil regexp,
14153 fill in that entry instead of clobbering a previously cached
14154 string regexp.
14155
14156 2000-02-02 Ken Raeburn <raeburn@gnu.org>
14157
14158 * puresize.h (BASE_PURESIZE): Increase to 610000.
14159
14160 2000-02-02 Gerd Moellmann <gerd@gnu.org>
14161
14162 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14163 can GC.
14164
14165 2000-02-02 Kenichi Handa <handa@etl.go.jp>
14166
14167 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14168 instead of incrementing ic directly.
14169 <CCL_WriteExprConst> Likewise.
14170 <ccl_set_expr>: Set ic to jump_address.
14171
14172 * fileio.c (e_write): Fix the handling of
14173 CODING_FINISH_INSUFFICIENT_SRC.
14174
14175 2000-02-01 Dave Love <fx@gnu.org>
14176
14177 * editfns.c (Fpropertize): Doc fix.
14178
14179 * process.c (Fstart_process): Doc fix.
14180
14181 * eval.c: Fix various doc strings not to duplicate information
14182 from help-manyarg-func-alist.
14183
14184 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
14185
14186 * doc.c (Vhelp_manyarg_func_alist): New variable.
14187 (Fdocumentation): Use it.
14188 (syms_of_doc): Define it.
14189
14190 2000-01-31 Gerd Moellmann <gerd@gnu.org>
14191
14192 * xterm.c (xim_open_dpy): Remove unused local variable.
14193
14194 * emacs.c (USAGE): Use term `display options' instead of `X options'.
14195
14196 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14197 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14198
14199 * fns.c (sweep_weak_table): New function.
14200 (sweep_weak_hash_tables): Use it. Keep on marking until there
14201 is no more change.
14202
14203 2000-01-30 Gerd Moellmann <gerd@gnu.org>
14204
14205 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14206 that XTread_socket does not crash by trying to call XNoOp on a
14207 closed display.
14208
14209 2000-01-30 Jason Rumney <jasonr@gnu.org>
14210
14211 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14212 Change selected_frame to SELECTED_FRAME ().
14213 (w32_console_mouse_position): Remove #ifndef MULE from around
14214 `insist' parameter.
14215
14216 * makefile.nt: Remove dosfns.obj.
14217
14218 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14219
14220 * w32fns.c (w32_defined_color): Check for valid frame before
14221 applying gamma correction. Eliminate dependency on frame elsewhere.
14222 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14223 (w32_to_x_font): Use resx and resy not height_in and width_in.
14224 (x_to_w32_font): Doc fix.
14225 (xlfd_strip_height): New function to strip and return font height.
14226 (w32_font_match): Compare height separately from rest of xlfd
14227 spec, using xlfd_strip_height.
14228
14229 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14230 width_in. Use w32_defined_color in place of defined_color.
14231
14232 * w32faces.c: Merge more of DOS and X specifics in preparation for
14233 merge with xfaces.c.
14234 (defined_color): Remove FIXME comment.
14235 (tty_color_name): Provide w32-specific function.
14236 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14237
14238 * w32console.c (turn_on_face, turn_off_face): Removed.
14239 (w32_face_attributes): New function.
14240 (Global_variables): Reduce scope where possible.
14241 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14242 fill attribute.
14243 (hl_mode): Don't modify text attributes.
14244 (write_glyphs): Don't do anything if len <= 0. Use
14245 w32_face_attributes to get attributes for drawing. Write
14246 terminating codes using char_attr_normal.
14247 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14248 (update_begin, update_end): Likewise.
14249 (vga_stdcolor_name): New function.
14250 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14251 (Fset_screen_color): Remove char_attr_reverse.
14252
14253 2000-01-29 Gerd Moellmann <gerd@gnu.org>
14254
14255 * xfns.c (xic_set_preeditarea): Take window parameter and
14256 window-relative pixel-positions.
14257
14258 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14259 is its frame's selected window.
14260 (xim_instantiate_callback): Likewise.
14261
14262 * xfns.c (x_create_im): Removed.
14263 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14264 (supported_xim_styles): Renamed from supported_styles.
14265 (best_xim_style): Renamed from best_style.
14266 (create_frame_xic): Renamed from xic_create_frame.
14267 (free_frame_xic): Renamed from xic_destroy_frame.
14268
14269 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14270
14271 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14272 our frames, call XFilterEvent with 2nd parameter `None'.
14273 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14274 returning XBufferOverflow.
14275 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
14276 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14277 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14278 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14279 (xim_initialize, xim_close)
14280 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14281 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14282 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14283 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14284
14285 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14286 and `xim_styles'.
14287 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14288 `xic_style' and `xic_xfs'.
14289 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14290 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14291 (FRAME_XIM): Removed.
14292
14293 * xfns.c (supported_styles): New variable.
14294 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14295 (xic_create_xfontset, best_style, xic_create_frame)
14296 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14297 (xic_set_xfontset): New functions.
14298
14299 2000-01-28 Dave Love <fx@gnu.org>
14300
14301 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14302
14303 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14304
14305 2000-01-28 Gerd Moellmann <gerd@gnu.org>
14306
14307 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14308 for *scratch* if it already existed.
14309
14310 * emacs.c (USAGE): New macro.
14311 (main): Use it to display usage information.
14312
14313 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14314
14315 Support for the menu-help feature:
14316
14317 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
14318
14319 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14320 part of the line to the termscript file.
14321 (IT_clear_to_end): Clear the entire line, not just its beginning.
14322 (menu_help_message, prev_menu_help_message): New variables.
14323 (IT_menu_make_room): Make room for the help_text member.
14324 (IT_menu_display): New argument disp_help; all callers changed.
14325 If disp_help is non-zero, store the help text of the active menu
14326 item in menu_help_message.
14327 (XMenuAddPane): Initialize the help_text member to NULL.
14328 (XMenuAddSelection): New argument help_text. Store it in the
14329 XMenu structure.
14330 (XMenuActivate): New argument help_callback. If the value of
14331 menu_help_message has changed since the last time, display the
14332 menu help message text while waiting for the mouse to move. Clear
14333 the echo area before exiting.
14334 (XMenuDestroy): Free the help_text member.
14335
14336 2000-01-27 Gerd Moellmann <gerd@gnu.org>
14337
14338 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14339 XMenuAddSelection. Pass help callback to XMenuActivate.
14340 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14341
14342 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14343
14344 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14345 and EMACS_SET_USECS.
14346
14347 2000-01-26 Dave Love <fx@gnu.org>
14348
14349 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14350
14351 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14352 an error may be signalled.
14353
14354 2000-01-26 Gerd Moellmann <gerd@gnu.org>
14355
14356 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14357 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14358
14359 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14360
14361 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14362
14363 * charset.c (Fstring): If there is a multibyte char among
14364 the args, always return a multibyte string.
14365
14366 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14367
14368 * sysdep.c (sys_select): Turn atimers off and on instead of
14369 recording and restoring old alarm handler
14370
14371 * process.c (toplevel): Include atimer.h.
14372 (create_process_1): Rewritten.
14373 (create_process): Use atimers instead of alarm.
14374 (wait_reading_process_input) [hpux]: Turn atimers off instead
14375 of turning off SIGALRM.
14376 (wait_reading_process_input): Turn off atimers instead off
14377 calling stop_polling.
14378
14379 * emacs.c (main): Call init_atimer.
14380
14381 * keyboard.c (toplevel): Include systime.h and atimer.h.
14382 (polling_for_input): Removed because unused.
14383 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14384 (poll_timer): New variable.
14385 (poll_for_input, poll_for_input_1): New functions.
14386 (start_polling, stop_polling): Rewritten.
14387
14388 * keyboard.h (polling_for_input): Removed.
14389
14390 * atimer.h, atimer.c: New files.
14391
14392 * Makefile.in (obj): Add atimer.o.
14393 (atimer.o): New target.
14394
14395 * blockinput.h (pending_atimers): Add extern declaration.
14396 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14397
14398 * lisp.h (popup_activated_flag): Add extern declaration.
14399
14400 * xmenu.c (popup_activated_flag): Make externally visible.
14401 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
14402 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14403
14404 * xterm.c (toplevel): Include atimer.h.
14405 (toolkit_scroll_bar_interaction): New variable.
14406 (Fxt_process_timeouts): Removed.
14407 (x_process_timeouts): New function.
14408 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14409 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14410 (x_make_frame_visible): Call poll_for_input_1 instead of
14411 input_poll_signal. Don't call alarm.
14412 (x_initialize): Install timer calling x_process_timeouts.
14413
14414 2000-01-24 Dave Love <fx@gnu.org>
14415
14416 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
14417 Don't use -cckr -- apparently not now necessary.
14418
14419 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14420
14421 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14422 screen boundary.
14423
14424 2000-01-23 Jason Rumney <jasonr@gnu.org>
14425
14426 * w32fns.c (w32_defined_color): Apply gamma correction before
14427 trying to map to the palette.
14428 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14429 to w32_clear_rect.
14430
14431 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14432 here. Callers changed to always pass real device context.
14433 (w32_draw_bitmap): Likewise.
14434 (w32_get_glyph_overhangs): Likewise.
14435 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
14436 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14437 pfnSetScrollInfo and SetScrollRange.
14438 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14439 back into MULE characters after decoding them.
14440 (x_get_glyph_face_and_encoding): Likewise.
14441 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14442 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14443 (x_produce_glyphs): Calculate per char metrics for a character
14444 that we know exists in default font when font_not_found_p is true.
14445
14446 2000-01-22 Jason Rumney <jasonr@gnu.org>
14447
14448 * makefile.nt (intervals.obj, composite.obj): New modules.
14449 (composite.h): Added as dependency where appropriate.
14450
14451 * w32gui.h (XGCValue): New struct for emulating X GCs.
14452
14453 * w32term.h (XCharStruct): New struct for emulating X.
14454
14455 * w32console.c (turn_on_face, turn_off_face): New functions.
14456 (change_line_highlight): New prototype for new redisplay.
14457 (write_glyphs): Support multibyte text. Support faces.
14458
14459 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
14460
14461 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14462 throughout. struct frame * in place of FRAME_PTR.
14463 Skeleton support for images, toolbars, tooltips from xfns.c.
14464 (Fx_create_frame): Use system default for default scroll bar width.
14465 (w32_get_arg): Renamed from x_get_arg.
14466 (Fx_file_dialog): New function.
14467 (w32_list_fonts): Check cache before asking system.
14468 (Vw32_enable_synthesized_fonts): New variable.
14469 (Vw32_enable_italics): Obsolete, removed.
14470
14471 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14472 Use SELECTED_FRAME macro.
14473
14474 * w32menu.c: Add skeleton support for help strings on menus.
14475 (add_menu_item): Native checkbox and radio support added, but not
14476 yet enabled due to bugs.
14477 (push_menu_item): Add parameters type, selection and help.
14478 Callers updated.
14479 Formatting changes to reduce unnecessary diffs with xmenu.c.
14480
14481 * w32select.c (Fw32_set_clipboard_data): Update call to
14482 find_charset_in_str.
14483
14484 * w32term.c: Complete rewrite for new redisplay based on new
14485 xterm.c with necessary sections merged back in from old w32term.c.
14486
14487 2000-01-21 Richard M. Stallman <rms@gnu.org>
14488
14489 * data.c (set_internal): Further fix in same criterion.
14490
14491 2000-01-20 Richard M. Stallman <rms@gnu.org>
14492
14493 * data.c (set_internal): Fix the criteria for whether
14494 to swap out the old cached binding.
14495
14496 2000-01-19 Dave Love <fx@gnu.org>
14497
14498 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14499
14500 2000-01-18 Kenichi Handa <handa@etl.go.jp>
14501
14502 * regex.c (re_compile_fastmap): While checking a range table for
14503 `charset', skip flag bits for a character class correctly.
14504
14505 2000-01-17 Gerd Moellmann <gerd@gnu.org>
14506
14507 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14508
14509 * xfns.c (x_window): Call lw_create_widget with new parameter list.
14510
14511 * widget.c (EmacsFrameSetCharSize): Change size of children first
14512 because of problems with main window geometry management under Lesstif.
14513
14514 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14515 MENU_ITEMS_ITEM_.*.
14516 (MENU_ITEMS_ITEM_HELP): New enumerator.
14517 (push_menu_item): Add parameter HELP. Record help in menu_items.
14518 (single_menu_item, single_submenu, list_of_items): Call
14519 push_menu_item with new parameter.
14520 (single_submenu): Set help string in widget value.
14521 (menu_highlight_callback): New function.
14522 (set_frame_menubar): Call lw_create_widget with new
14523 parameter list.
14524 (xmenu_show, xdialog_show): Ditto.
14525
14526 2000-01-13 Gerd Moellmann <gerd@gnu.org>
14527
14528 * sound.c (Fplay_sound): Improve doc string.
14529
14530 2000-01-11 Richard M. Stallman <rms@gnu.org>
14531
14532 * lisp.h (set_internal): Enter the new arg.
14533
14534 * eval.c (specbind): Record buffer-local variables specially,
14535 indicating which buffer's binding was saved.
14536 (unbind_to): Restore buffer-local variables specially
14537 in the proper buffer.
14538
14539 * data.c (set_internal): New arg BUF.
14540
14541 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14542 * data.c (Fset): Pass new arg to set_internal.
14543 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
14544
14545 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14546
14547 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
14548
14549 2000-01-11 Richard M. Stallman <rms@gnu.org>
14550
14551 * minibuf.c (Ftry_completion): Doc fix.
14552
14553 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14554
14555 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14556 vector, too.
14557
14558 2000-01-11 Andreas Schwab <schwab@suse.de>
14559
14560 * coding.c (code_convert_region): Initialize total_skip.
14561
14562 2000-01-08 Dave Love <fx@gnu.org>
14563
14564 * eval.c (Fuser_variable_p): Check customizability too.
14565
14566 2000-01-07 Gerd Moellmann <gerd@gnu.org>
14567
14568 * minibuf.c (Fcompleting_read): Doc fix.
14569
14570 2000-01-05 Gerd Moellmann <gerd@gnu.org>
14571
14572 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14573 -L /usr/local/lib.
14574
14575 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14576 Check that input style is supported before trying to create an
14577 IC for it.
14578 (x_window): Call x_create_im.
14579
14580 2000-01-04 Gerd Moellmann <gerd@gnu.org>
14581
14582 * xfns.c (current_gif_memory_src): New variable.
14583 (gif_load): Record the address of the current memory source
14584 in current_gif_memory_src.
14585 (gif_read_from_memory): Use current_gif_memory_src.
14586
14587 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14588 macros statement form.
14589
14590 * sound.c (struct sound): Renamed from struct sound_file.
14591 (struct sound): Add members `data' and `header_size'.
14592 (enum sound_attr): Add SOUND_DATA.
14593 (current_sound, current_sound_device): Variables renamed from
14594 sound_file and sound_device.
14595 (parse_sound): Parse :data.
14596 (parse_sound): Handle sound data in strings.
14597 (find_sound_type): Function renamed from find_sound_file_type.
14598 (wav_init, au_init): Fail if sound's header_size is smaller than
14599 needed header size.
14600 (wav_play, au_play): Play sounds from string data.
14601
14602 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14603
14604 * lisp.h: Add prototype for allocate_string_data.
14605
14606 * alloc.c (Fgarbage_collect): Return number of live and free strings.
14607
14608 * alloc.c (mark_buffer): Remove code in #if 0.
14609 (gc_sweep): Ditto.
14610 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14611 (strings_consed): New variable.
14612 (allocate_string): Set it.
14613 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14614 (Fmemory_use_counts): Return strings_consed. Use Flist.
14615
14616 * alloc.c: General cleanup in comments etc. Remove conditional
14617 compilation for `standalone'.
14618
14619 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14620
14621 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14622 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14623 (DONT_COPY_FLAG): Removed.
14624 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14625 (struct sdata, struct sblock): New
14626 (struct string_block): Rewritten.
14627 (STRINGS_IN_STRING_BLOCK): New macro.
14628 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14629 (large_sblocks, string_blocks, string_free_list): New variables.
14630 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14631 (init_strings): Rewritten.
14632 (allocate_string, allocate_string_data, compact_small_strings)
14633 (free_large_strings, sweep_strings): New functions.
14634 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14635 (struct string_block_head, current_string_block)
14636 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14637 (STRING_PAD): Removed.
14638 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14639 (Fgarbage_collect): Don't set mark bit in large strings.
14640 (mark_object): Mark strings differently. Mark symbol names
14641 differently.
14642 (survives_gc_p): Test marked strings differently.
14643 (gc_sweep): Sweep strings differently, unmark strings in
14644 symbol names.
14645 (compact_strings): Removed.
14646
14647 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14648
14649 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14650 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14651
14652 2000-01-04 Kenichi Handa <handa@etl.go.jp>
14653
14654 * fileio.c (Finsert_file_contents): Signal error if visiting file
14655 in a non-empty buffer.
14656
14657 * term.c (encode_terminal_code): Fix the previous change.
14658
14659 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14660
14661 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14662 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14663
14664 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14665
14666 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14667
14668 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14669 need to test for MSDOS frames.
14670
14671 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14672
14673 * dosfns.c (unspecified_colors): Remove.
14674 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14675 unspecified_bg.
14676 (msdos_stdcolor_name): Return strings for unspecified fore- and
14677 back-ground colors.
14678
14679 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
14680 (syms_of_xfaces): Remove their staticpro's.
14681 (tty_color_name): Return Lisp strings for unspecified fore- and
14682 back-ground colors.
14683 (Finternal_set_lisp_face_attribute): Remove the special treatment
14684 for Qunspecified_{f,b}g.
14685 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
14686
14687 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14688
14689 * xdisp.c (reseat_at_next_visible_line_start): Position before
14690 newline only if ending up on a newline.
14691 (next_element_from_ellipsis): Return success. Handle case of
14692 displaying no ellipsis. Fix case of ellipsis defined in display table.
14693 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14694 returns 0.
14695
14696 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14697
14698 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14699 (Fcolor_supported_p): Renamed from face-color-supported-p.
14700
14701 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14702
14703 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14704 list of colors renamed to tty-defined-color-alist.
14705 (tty_color_name): Pass the frame to tty-color-by-index.
14706 (realize_tty_face): tty-color-alist is now a function which
14707 accepts the frame as argument.
14708
14709 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
14710
14711 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14712
14713 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14714 encode_terminal_code.
14715
14716 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14717
14718 * dispnew.c (mode_line_string): Support termcap frames as well.
14719
14720 2000-01-01 Gerd Moellmann <gerd@gnu.org>
14721
14722 * syntax.c (Fforward_word): Undo previous change.
14723
14724 * editfns.c (Fconstrain_to_field): Don't constrain if
14725 inhibit-field-text-motion is non-nil.
14726 (Fline_beginning_position): Undo previous change.
14727 (Fline_end_position): Ditto.
14728
14729 * syntax.c (Fforward_word): Notice field boundaries only if
14730 inhibit-field-text-motion is nil.
14731
14732 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14733
14734 * editfns.c (Vinhibit_field_text_motion): New variable.
14735 (inhibit-field-text-motion): New DEFVAR_LISP.
14736 (Fline_beginning_position, Fline_end_position): Notice field
14737 boundaries only if inhibit-field-text-motion is nil.
14738
14739 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14740 All calls adjusted.
14741 (x_build_heuristic_mask): Likewise.
14742 (xbm_load_image_from_file): Change error output.
14743 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14744 (gif_load, gs_load, x_kill_gs_process): Ditto.
14745
14746 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14747 color indices when accessing raster pixels.
14748 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14749 one of :file or :data.
14750 (enum pbm_keyword_index): Add PBM_DATA.
14751 (pbm_format): Add :data.
14752 (pbm_image_p): Allow either :file or :data.
14753 (pbm_read_file): New function.
14754 (pbm_scan_number): Rewritten to read from string.
14755 (pbm_load): Support :data.
14756
14757 See ChangeLog.8 for earlier changes.
14758
14759 ;; Local Variables:
14760 ;; coding: iso-2022-7bit
14761 ;; End:
14762
14763 Copyright (C) 2001 Free Software Foundation, Inc.
14764 Copying and distribution of this file, with or without modification,
14765 are permitted provided the copyright notice and this notice are preserved.