*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2001-12-07 Andreas Schwab <schwab@suse.de>
2
3 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
4 can hold.
5
6 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Renamed
7 from most_positive_fixnum and most_negative_fixnum, resp., and
8 type changed to Lisp_Object.
9 (syms_of_data): DEFVAR_LISP them.
10
11 2001-12-07 Richard M. Stallman <rms@gnu.org>
12
13 * callproc.c (init_callproc): Set Vdata_directory based on the source
14 location whenever Emacs was run uninstalled.
15
16 2001-12-06 Paul Eggert <eggert@twinsun.com>
17
18 * config.in (HAVE_WORKING_VFORK): New #undefs.
19 * process.c (create_process):
20 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
21 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
22 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
23 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
24 * m/intel386.h (HAVE_VFORK): Likewise.
25 * m/mips-siemens.h (HAVE_VFORK): Likewise.
26 * m/mips.h (HAVE_VFORK): Likewise.
27 * s/freebsd.h (vfork): Remove #define.
28 * s/lynxos.h (HAVE_VFORK): Remove #undef.
29 * s/usg5-4-2.h: Fix comment about vfork.
30
31 2001-12-06 Richard M. Stallman <rms@gnu.org>
32
33 * s/hpux10.h (random): Add undef.
34 (HAVE_RANDOM): Define it just once.
35
36 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
37
38 * eval.c: Undo last change: the standard syntax is not wanted.
39
40 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
41
42 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
43 scroll bars of the frame before deleting the frame itself. If the
44 frame has a widget, delete the frame with XtDestroyWidget, and do
45 not call XDestroyWindow before that.
46
47 2001-12-06 Kim F. Storm <storm@cua.dk>
48
49 * xfns.c (x_report_frame_params): Return actual fringe widths.
50
51 * w32fns.c (x_report_frame_params): Return actual fringe widths.
52
53 2001-12-05 Andrew Innes <andrewi@gnu.org>
54
55 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
56 excessively large.
57
58 * insdel.c (make_gap_larger): New function.
59 (make_gap_smaller): New function.
60 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
61 make_gap_smaller if arg is negative.
62
63 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
64
65 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
66 Pass a dummy argument when calling interrupt_signal.
67 (parse_menu_item): Mark disabled items before checking for empty def.
68 (read_char_minibuf_menu_prompt): Make safety more visible.
69 (read_key_sequence): Add a `first_unbound' variable.
70 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
71 unbound prefix as soon as we can detect it.
72
73 * doc.c (Fsnarf_documentation): Add prototype.
74 (get_doc_string): Handle negative arguments.
75 (Fdocumentation): Use AREF and ASIZE.
76 Move the calls to get_doc_string to a single place.
77 Don't confuse an interactive-spec for a docstring reference.
78 (Fdocumentation_property): Take advantage of the fact that
79 get_doc_string now ignores the sign of the docstring position.
80
81 * eval.c: Use standard syntax for usage in docstrings.
82
83 2001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
84
85 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
86
87 2001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
88
89 * xterm.c (x_draw_image_relief): Use predefined macro instead of
90 constant when the value of `tool_bar_button_relief' is negative.
91
92 2001-12-02 Richard M. Stallman <rms@gnu.org>
93
94 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
95 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
96
97 * fileio.c (read_non_regular): Delete Fsignal call.
98
99 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
100
101 * lisp.h (run_hook_list_with_args): Undo last change.
102
103 2001-12-01 Gerd Moellmann <gerd@gnu.org>
104
105 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
106
107 2001-12-01 Jason Rumney <jasonr@gnu.org>
108
109 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
110
111 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
112 [!WM_MOUSELEAVE]: Define.
113
114 * w32menu.c (current_popup_menu, get_menu_item_info):
115 (set_menu_item_info): New vars.
116 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
117 (w32_menu_show): Set current_popup_menu.
118 (add_menu_item): Allocate new strings for owner-drawn menu items
119 and help strings.
120 Use owner-draw for disabled menu items again.
121 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
122 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
123
124 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
125 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
126 <WM_EXITMENULOOP>: Free menu strings.
127 <WM_MOUSELEAVE>: Stop tracking mouse.
128 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
129
130 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
131 and mouse face.
132
133 2001-12-01 Kim F. Storm <storm@cua.dk>
134
135 The following changes add left-fringe and right-fringe
136 frame parameters to adjust fringe widths, or remove one or
137 both fringes.
138
139 * frame.h (struct frame): Remove trunc_area_pixel_width and
140 trunc_area_cols fields.
141 (Qleft_fringe, Qright_fringe): Declare.
142 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
143
144 * frame.c (Qleft_fringe, Qright_fringe): New vars.
145 (syms_of_frame): Initialize them.
146
147 * window.c (coordinates_in_window): Handle separate left and right
148 fringe widths.
149
150 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
151 and fringe_cols fields.
152 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
153 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
154 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
155 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
156 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
157 (x_compute_fringe_widths): Add prototype.
158
159 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
160 fill fringe evenly with small dashes.
161 (x_draw_fringe_bitmap): Clear background if necessary. Align and
162 clip the new ZV bitmap to avoid jitter between rows.
163 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
164 background. Don't draw fringe bitmaps if fringe width is zero.
165 (x_compute_fringe_widths): New function.
166 (x_new_font, x_set_window_size_1): Use it.
167
168 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
169 (x_set_frame_parameters): Process Process `font' parameter before other
170 parameters as fringe widths depend on it.
171 (x_set_fringe_width): New function.
172 (x_figure_window_size): Use x_compute_fringe_widths.
173 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
174 parameters.
175
176 * widget.c (set_frame_size): Use x_compute_fringe_widths.
177 (EmacsFrameSetCharSize): Ditto.
178
179 * w32term.h: Merged changes from xterm.h.
180 * w32term.c: Merged changes from xterm.c.
181 * w32fns.c: Merged changes from xfns.c.
182
183 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
184
185 * COPYING: Removed.
186
187 2001-11-29 Dave Love <fx@gnu.org>
188
189 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
190 extra extra slot.
191 (detect_coding_mask): Fix call of detect_coding_iso2022.
192
193 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
194
195 * fileio.c (file-name-coding-system)
196 (default-file-name-coding-system): Doc fix (links to referenced
197 variables added).
198
199 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
200
201 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
202 Add dummy uses of gcproN variables.
203
204 * category.c (describe_category, describe_category_1)
205 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
206 (syms_of_category): Don't defsubr Sdescribe_categories.
207
208 2001-11-28 Richard M. Stallman <rms@gnu.org>
209
210 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
211
212 * Makefile.in (lispdir): New variable, referring to build dir.
213 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
214
215 2001-11-28 Andrew Innes <andrewi@gnu.org>
216
217 * w32menu.c (w32_menu_display_help): Actually add the new argument
218 OWNER.
219
220 2001-11-28 Jason Rumney <jasonr@gnu.org>
221
222 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
223 menu items. From David Ponce <dponce@wanadoo.fr>.
224 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
225 conditionally.
226 (w32_menu_display_help): New argument OWNER. Rewritten to store a
227 help event in the owner frame's keyboard buffer.
228
229 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
230 (Fx_show_tip): Don't subtract last width from row width.
231
232 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
233 (w32_read_socket): Use EQ to compare frames.
234
235 2001-11-28 Gerd Moellmann <gerd@gnu.org>
236
237 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
238 OVERLAPS_P.
239
240 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
241
242 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
243 `gcpro3' and `gcpro4'.
244
245 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
246
247 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
248
249 * ccl.c: Use AREF and ASIZE.
250
251 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
252
253 * lisp.h (run_hook_list_with_args): Remove.
254 (LIST_END_P): Fix call to wrong_type_argument.
255 (make_fixnum_or_float): Use EMACS_INT rather than int.
256
257 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
258
259 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
260 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
261
262 * eval.c: Use AREF and ASIZE.
263 (Ffetch_bytecode): Add the file name to the error message.
264
265 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
266 which match the end of the file-name.
267 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
268 is not a valid env var, but leave it as is instead.
269
270 * keymap.c (access_keymap): Handle t bindings like nil bindings.
271 Make nil bindings in char-tables transparent.
272 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
273
274 2001-11-26 Richard M. Stallman <rms@gnu.org>
275
276 * textprop.c (set_text_properties_1): Allow START, END in either order.
277 Do nothing if range is empty.
278
279 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
280
281 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
282 (clean): Not here.
283
284 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
285
286 * textprop.c (set_text_properties_1): Clearly mark that the
287 interval should not be empty.
288
289 * intervals.c (graft_intervals_into_buffer):
290 Don't call set_text_properties_1 on an empty interval.
291
292 2001-11-25 Richard M. Stallman <rms@gnu.org>
293
294 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
295
296 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
297 don't lose the data in it.
298
299 2001-11-25 Juanma Barranquero <lektu@terra.es>
300
301 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
302
303 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
304
305 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
306
307 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
308
309 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
310
311 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
312
313 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
314 Niemitalo <kon@iki.fi>.
315
316 2001-11-25 Jason Rumney <jasonr@gnu.org>
317
318 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
319
320 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
321 (Fx_show_tip): Block input during frame creation.
322 (Fx_show_tip, Fx_hide_tip): Enable.
323
324 2001-11-24 Richard M. Stallman <rms@gnu.org>
325
326 * lread.c (Fload): Detect recursive load error for more than 3
327 nestings of the same file.
328 (Vrecursive_load_depth_limit): Variable deleted.
329 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
330
331 2001-11-24 Jason Rumney <jasonr@gnu.org>
332
333 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
334 mouse position if either left or top is not specified.
335
336 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
337 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
338 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
339 (my_create_tip_window): Assign tip_window.
340 (x_create_tip_frame): Use same defaults as X.
341 (compute_tip_xy): Remove unused variable. Use full screen width.
342 (Fx_show_tip): Do not double height. Call ShowWindow directly.
343
344 * w32term.c (x_after_update_window_line): Doc fix.
345 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
346 frames.
347 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
348
349 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
350 for all Windowed systems.
351
352 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
353
354 * msdos.c (IT_clear_screen): If the frame's faces are not yet
355 realized, use the initial screen colors to clear the screen.
356
357 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
358
359 * textprop.c (Fset_text_properties): Remove unused variables
360 `unchanged', `prev_changed', `s' and `len'.
361
362 * search.c (Freplace_match): Remove unused variable `inslen'.
363
364 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
365
366 2001-11-22 Jason Rumney <jasonr@gnu.org>
367
368 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
369 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
370 (my_create_tip_window): New function.
371 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
372 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
373
374 2001-11-20 Jason Rumney <jasonr@gnu.org>
375
376 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
377 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
378
379 * w32fns.c (Vw32_system_coding_system): Remove.
380 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
381
382 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
383
384 * fileio.c (Fwrite_region): Move choose_write_coding_system to
385 after build_annotations.
386
387 * syntax.c (describe_syntax): Add dummy arg.
388 (describe_syntax_1): Update call to describe_vector.
389
390 * category.c (describe_category): Add dummy arg.
391 (describe_category_1): Update call to describe_vector.
392
393 * keymap.c (Fdescribe_vector): Add `describer' parameter.
394 (describe_command, describe_translation): Add dummy second param.
395 (describe_map): Call elt_describer with two arguments.
396 (describe_vector_princ): Add `fun' parameter.
397 Call it instead of the hardcoded `princ'.
398 (describe_vector): Add arg `args'.
399 Pass it as a new second argument to elt_describer.
400
401 * keymap.h (describe_vector): Update prototype.
402
403 * frame.c: Don't include keymap.h any more.
404 (keys_of_frame): Remove.
405
406 * lisp.h (keys_of_frame): Remove declaration.
407
408 * emacs.c (main): Don't call `keys_of_frame' any more.
409
410 2001-11-14 Andreas Schwab <schwab@suse.de>
411
412 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
413 if defined, 0 otherwise.
414 (MAP_FAILED): Define if not defined and use it to test mmap failure.
415 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
416
417 2001-11-19 Richard M. Stallman <rms@gnu.org>
418
419 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
420
421 2001-11-18 Jason Rumney <jasonr@gnu.org>
422
423 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
424 (x_draw_bar_cursor): If the background color of the glyph under
425 the cursor equals the frame's cursor color, use the glyph's
426 foreground color for drawing the bar cursor.
427 (x_after_update_window_line): Clear internal border in different
428 circumstances.
429 (w32_set_vertical_scroll_bar): Check for width and height > 0.
430 (w32_draw_relief_rect): Correct relief by 1 pixel.
431 (x_set_glyph_string_background_width):
432 Set extends_to_end_of_line_p if the row's fill_line_p is set and
433 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
434 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
435 if cursor_in_non_selected_windows is false.
436 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
437 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
438 Notice if cursor gets overwritten.
439 (notice_overwritten_cursor): Renamed from
440 note_overwritten_text_cursor. Rewritten to take glyph widths
441 into account, and to take X positions as parameters.
442 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
443 around call to x_draw_glyphs.
444 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
445 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
446 color to use for image glyph reliefs.
447 (x_draw_image_relief): Accept zero tool_bar_button_relief.
448 (glyph_rect): Remove unused variable `area'.
449
450 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
451 some items.
452 (x_set_internal_border_width): Set frame garbaged when window
453 doesn't exist yet.
454 (Fx_create_frame): Accept zero tool_bar_button_relief.
455 (x_clear_image_1, four_corners_best, image_background)
456 (image_background_transparent): New functions.
457 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
458 (gs_format): Add `:background' entry.
459 (lookup_image): Set IMG's background color if specified.
460 (pbm_load, xbm_load_image, png_load): Set IMG's background field
461 when appropriate.
462 (x_clear_image_1): Reset `background_valid' and
463 `background_transparent_valid' fields.
464 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
465 calculating it here. Set IMG's background_transparent field.
466 (enum xpm_keyword_index): Add XPM_BACKGROUND.
467 (enum png_keyword_index): Add PNG_BACKGROUND.
468 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
469 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
470 (enum gif_keyword_index): Add GIF_BACKGROUND.
471 (enum gs_keyword_index): Add GS_BACKGROUND.
472 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
473 Pre-calculate image background color where necessary.
474 (x_create_x_image_and_pixmap, xbm_load, gs_load):
475 Use display info's n_cbits entry for screen depth.
476 (Fx_show_tip): Remove unused variables `buffer', `top',
477 `left', `max_width' and `max_height'.
478
479 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
480
481 2001-11-18 Gerd Moellmann <gerd@gnu.org>
482
483 * puresize.h (BASE_PURESIZE): Increase to 750000.
484
485 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
486
487 * frame.c (Fframe_live_p): Doc fix.
488
489 2001-11-18 Richard M. Stallman <rms@gnu.org>
490
491 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
492 (message_dolog_marker3): New static variables hold three markers.
493 (syms_of_xdisp): Initialize and staticpro them.
494 (message_dolog): Use message_dolog_marker1..3 instead of
495 allocating markers each time. Unchain them when done.
496
497 2001-11-17 Richard M. Stallman <rms@gnu.org>
498
499 * doc.c (Fsnarf_documentation): Doc fix.
500
501 2001-11-17 Andreas Schwab <schwab@suse.de>
502
503 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
504
505 2001-11-17 Richard M. Stallman <rms@gnu.org>
506
507 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
508
509 2001-11-17 Jason Rumney <jasonr@gnu.org>
510
511 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
512
513 2001-11-17 Gerd Moellmann <gerd@gnu.org>
514
515 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
516 with invalid position.
517
518 2001-11-16 Richard M. Stallman <rms@gnu.org>
519
520 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
521
522 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
523 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
524 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
525
526 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
527
528 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
529
530 * fileio.c (build_annotations): Split off the tail.
531 (build_annotations_2): New fun. Extracted from build_annotations.
532 (Fwrite_region): Split the call to build_annotations into two
533 calls to build_annotations and build_annotations_2.
534
535 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
536
537 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
538 clear_waiting_for_input with argument.
539
540 * xterm.h (x_update_cursor): Remove duplicated prototype.
541
542 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
543
544 * xterm.c (waiting_for_input): Remove unnecessary declaration.
545
546 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
547
548 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
549
550 * fileio.c (choose_write_coding_system): New fun, extracted
551 from Fwrite_region.
552 (Fwrite_region): Use it.
553
554 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
555 (funcall_lambda, run_hook_with_args): Make static and add prototype.
556 (ml_apply, find_handler_clause): Add prototype.
557
558 2001-11-16 Eli Zaretskii <eliz@gnu.org>
559
560 * config.in: Add #undef HAVE_COFF_H.
561
562 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
563 Required for ISC 4.1.
564
565 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
566
567 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
568 Andrew Wiseman <a.wiseman@btclick.com>.
569
570 2001-11-16 Kim F. Storm <storm@cua.dk>
571
572 The following changes are made to clean up the various internal
573 references to the fringes to actually use the term `fringe' for
574 them. Previously, they were called `flags areas', `bitmap areas',
575 `left/right side of windows', or implicitly as `flags' or
576 `bitmaps':
577
578 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
579 Comments fixed. Use renamed symbols.
580
581 * dispnew.c: Comment fix. Use renamed symbols.
582
583 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
584 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
585 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
586
587 * msdos.c: Comment fix.
588
589 * w32fns.c: Use renamed symbols.
590
591 * w32term.c: Comment fixes. Use renamed symbols.
592 (fringe_bitmap_type): Renamed from bitmap_type.
593 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
594 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
595 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
596
597 * w32term.h: Comment fixes. Use renamed symbols.
598 (fringes_extra): Renamed from flags_areas_extra.
599 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
600 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
601 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
602 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
603 (FRAME_X_LEFT_FRINGE_WIDTH):
604 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
605 (FRAME_X_RIGHT_FRINGE_WIDTH):
606 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
607
608 * widget.c: Use renamed symbols.
609
610 * window.c: Comment fixes. Use renamed symbols.
611 (coordinates-in-window-p): Doc fix.
612
613 * xdisp.c: Comment fixes. Use renamed symbols.
614
615 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
616
617 * xfns.c: Use renamed symbols.
618
619 * xterm.c: Comment fixes. Use renamed symbols.
620 (fringe_bitmap_type): Renamed from bitmap_type.
621 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
622 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
623 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
624
625 * xterm.h: Comment fixes. Use renamed symbols.
626 (fringes_extra): Renamed from flags_areas_extra.
627 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
628 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
629 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
630 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
631 (FRAME_X_LEFT_FRINGE_WIDTH):
632 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
633 (FRAME_X_RIGHT_FRINGE_WIDTH):
634 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
635
636 2001-11-15 Jason Rumney <jasonr@gnu.org>
637
638 * w32menu.c (add-menu-item): Make help_echo and radio buttons
639 work for most menu items. From David Ponce
640 <david.ponce@wanadoo.fr>.
641
642 2001-11-15 Gerd Moellmann <gerd@gnu.org>
643
644 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
645 Some x_set_* function expect to be called even if old and new
646 value are equal.
647
648 * xdisp.c (build_desired_tool_bar_string): Accept zero
649 tool_bar_button_relief.
650
651 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
652
653 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
654
655 * xterm.c (x_draw_bar_cursor): If the background color of the
656 glyph under the cursor equals the frame's cursor color, use
657 the glyph's foreground color for drawing the bar cursor.
658
659 * dispnew.c (direct_output_forward_char): Fix character/byte
660 position comparison.
661
662 2001-11-15 Miles Bader <miles@gnu.org>
663
664 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
665 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
666 Update arguments to find_field.
667 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
668 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
669 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
670 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
671
672 2001-11-14 Richard M. Stallman <rms@gnu.org>
673
674 * editfns.c (Fpropertize): Allow call with 1 arg.
675
676 * dispextern.h (image_background, image_background_transparent):
677 Conditionalize on HAVE_X_WINDOWS.
678
679 2001-11-13 Richard M. Stallman <rms@gnu.org>
680
681 * print.c (Fprin1_to_string): Doc fix.
682
683 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
684
685 * floatfns.c (Fceiling, Ffloor): Doc fixes.
686
687 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
688
689 * fileio.c (Ffile_accessible_directory_p): Doc fix.
690
691 * eval.c (syms_of_eval): Doc fix.
692
693 * coding.c (syms_of_coding): Doc fix.
694
695 * doc.c (Fsnarf_documentation): Doc fix.
696
697 * dispnew.c (syms_of_display): Doc fix.
698
699 * category.c (Fget_unused_category): Doc fix.
700
701 * buffer.c (syms_of_buffer): Doc fixes.
702
703 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
704
705 * print.c (prin1, print): Doc fix.
706
707 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
708
709 * fontset.h: Remove declarations of variables
710 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
711
712 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
713 `Vclip_large_size_font'.
714
715 2001-11-13 Jason Rumney <jasonr@gnu.org>
716
717 * w32fns.c: Doc fix.
718
719 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
720
721 * xfaces.c (Fface_attributes_as_vector): Doc fix.
722
723 * w32fns.c (Fx_synchronize): Reindent.
724
725 * fns.c: Doc fix.
726
727 * emacs.c: Doc fix.
728
729 * coding.c: Doc fix.
730
731 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
732 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
733 `new style' [w/`doc:' keyword].
734
735 * xmenu.c (x-popup-menu): Reindent.
736 (x-popup-dialog): Likewise.
737
738 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
739
740 * xdisp.c (Fdump_tool_bar_row): Reindent.
741
742 * minibuf.c (Fminibuffer_complete_word): Reindent.
743 (Fminibuffer_complete_and_exit): Likewise.
744 (Fminibuffer_completion_help): Likewise.
745 (Fminibuffer_message): Likewise.
746
747 * fns.c (Freverse): Reindent.
748
749 * eval.c (Fif): Reindent.
750 (Fand): Likewise.
751
752 * editfns.c (Fuser_real_login_name): Reindent.
753 (Finsert_buffer_substring): Likewise.
754 (Fcompare_buffer_substrings): Likewise.
755 (Fsubst_char_in_region): Likewise.
756
757 * dispnew.c (Fsit_for): Reindent.
758 (Fframe_or_buffer_changed_p): Likewise.
759 (Finternal_show_cursor_p): Likewise.
760 (syms_of_display): Likewise.
761
762 * alloc.c (Flist): Reindent.
763 (Fvector): Likewise.
764
765 2001-11-12 Richard M. Stallman <rms@gnu.org>
766
767 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
768 LeaveNotify events. Only FocusIn and FocusOut do that now.
769 (x_display_and_set_cursor): Do display hollow cursors in active
770 minibuffer windows when they are not selected.
771
772 2001-11-12 Jason Rumney <jasonr@gnu.org>
773
774 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
775 * w32term.c: Change doc-string comments to `new style'.
776 [w/`doc:' keyword]. Doc fixes.
777
778 * w32fns.c: Don't define max.
779 (Fx_open_connection): Only execute once.
780
781 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
782
783 * ccl.c: Change macros to use do-while block instead of if-else.
784 Use braces to follow GNU Coding Standards.
785
786 2001-11-11 Richard M. Stallman <rms@gnu.org>
787
788 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
789
790 * lread.c (read_escape): Use end_of_file_error for reporting eof.
791
792 * insdel.c (replace_range): Use adjust_markers_for_replace
793 instead of adjust_markers_for_delete and adjust_markers_for_insert.
794
795 * intervals.h: Declare set_text_properties and set_text_properties_1.
796
797 * textprop.c (set_text_properties_1): New subroutine
798 broken out of set_text_properties.
799 (set_text_properties): Use set_text_properties_1.
800
801 * intervals.c (graft_intervals_into_buffer):
802 Use set_text_properties_1 to clear out properties.
803
804 * search.c (Freplace_match): Use replace_range to insert
805 and delete. Don't request property inheritance from
806 surrounding text.
807
808 2001-11-10 Jason Rumney <jasonr@gnu.org>
809
810 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
811 vertical fonts. Allow them if face name is explicitly specified.
812 Do not give up if we find a font that cannot be converted to an xlfd.
813
814 2001-11-10 Gerd Moellmann <gerd@gnu.org>
815
816 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
817 instead of malloc/free.
818
819 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
820
821 * xfaces.c (merge_face_vectors): Use braces to follow GNU
822 Coding Standards.
823 (Finternal_set_lisp_face_attribute): Likewise.
824
825 * buffer.c (Fbury_buffer): Likewise.
826
827 * indent.c (current_column_1): Remove unused variable `prev_col'.
828
829 * coding.c (encode_coding): Use precomputed value of `src'.
830 (encode_coding): Remove unused variable `src_end'.
831 (code_convert_region): Remove unused variables `count'.
832
833 2001-11-07 Jason Rumney <jasonr@gnu.org>
834
835 * w32term.c (x_display_and_set_cursor): Do not move system caret
836 if cursor_glyph is NULL.
837
838 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
839
840 * keymap.c (access_keymap): Fix compilation error.
841
842 2001-11-07 Miles Bader <miles@gnu.org>
843
844 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
845
846 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
847
848 * intervals.c (graft_intervals_into_buffer):
849 Remove #ifdef'd-out code.
850 (graft_intervals_into_buffer): Remove unused variable `middle'.
851
852 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
853 code (eval-current-buffer).
854 Change doc-string comments to `new style' [w/`doc:' keyword].
855
856 2001-11-06 Richard M. Stallman <rms@gnu.org>
857
858 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
859
860 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
861
862 * lread.c (read1): Fix behavior with nested backquoting.
863
864 * keyboard.c (make_lispy_event): Check integerness and fix
865 Lisp_Object/int mixup.
866
867 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
868
869 * fns.c (copy_hash_table): Remove unused variable `v'.
870
871 * fontset.c (fontset_font_pattern): Remove unused variable
872 `family_registry'.
873
874 * indent.c (current_column_1): Remove unused variable `prev_col'.
875
876 2001-11-05 Richard M. Stallman <rms@gnu.org>
877
878 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
879
880 * buffer.c (Fkill_buffer): Don't delete auto save file
881 if buffer is modified.
882
883 2001-11-05 Andrew Innes <andrewi@gnu.org>
884
885 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
886 CHECK_NUMBER_CDR.
887
888 2001-11-05 Richard M. Stallman <rms@gnu.org>
889
890 * unexelf.c (unexec): Minor changes; clean up comments.
891
892 2001-11-05 Sam Steingold <sds@gnu.org>
893
894 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
895
896 2001-11-05 Andreas Schwab <schwab@suse.de>
897
898 * sound.c (sound_perror): Save errno from being clobbered.
899
900 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
901
902 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
903 the program image directly.
904
905 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
906
907 * buffer.h (Fbuffer_local_value): Add prototype.
908
909 2001-11-04 Richard M. Stallman <rms@gnu.org>
910
911 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
912 and CHECK_BUFFER.
913
914 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
915 (record_char): Likewise.
916
917 * keyboard.c (make_lispy_event): Don't insist a drag event must
918 move to a different buffer position. Instead, check for moving at
919 least double_click_fuzz.
920
921 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
922
923 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
924
925 * indent.c (current_column_1, Fmove_to_column): Separate the code
926 for display-table glyphs from the code buffer text, to fix
927 bugs in the former.
928
929 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
930
931 * buffer.c (Fbuffer_local_value): New function.
932 (syms_of_buffer): Defsubr it.
933
934 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
935 value of `cursor-in-non-selected-windows'.
936
937 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
938 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
939 (syms_of_xdisp): Initialize it.
940
941 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
942
943 * xfns.c (Fx_create_frame): Doc fix.
944
945 * coding.c: Change doc-string comments to `new style' [w/`doc:'
946 keyword].
947
948 * eval.c (top_level_value, top_level_set): Remove commented and
949 #ifdef'd-out code.
950 (Fdefvar): Fix usage in doc-string.
951
952 2001-11-03 Richard M. Stallman <rms@gnu.org>
953
954 * xfns.c: Include unistd.h, if it exists.
955
956 * editfns.c: Move the include of ctype.h after unistd.h.
957
958 * gmalloc.c: Test BROKEN_PROTOTYPES.
959
960 2001-11-03 Ken Raeburn <raeburn@gnu.org>
961
962 * lisp.h (CHECK_STRING_CAR): New macro.
963 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
964 treating XCAR and XCDR as lvalues.
965 (openp): Use CHECK_STRING_CAR.
966 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
967
968 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
969
970 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
971 (SIGMASKTYPE): Define.
972
973 * syssignal.h (sigunblock): Don't define if already defined.
974
975 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
976
977 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
978 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
979 Fix typos in comments.
980
981 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
982 and #ifdef'd-out code.
983 Fix and reindent comments.
984
985 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
986
987 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
988 argument `i' in macros.
989
990 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
991 `i' in macros.
992
993 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
994 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
995 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
996 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
997 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
998 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
999 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1000 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1001 in macros.
1002
1003 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1004 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1005 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1006 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1007 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1008 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1009 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1010 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1011 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
1012 (remove unused second argument).
1013
1014 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1015
1016 * syntax.c (describe_syntax): New wrapper.
1017 (Finternal_describe_syntax_value): Rename from describe_syntax.
1018 Don't insert space at front and \n at the end.
1019 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1020
1021 * regex.c (re_wctype): Try to fix some warnings.
1022 (regcomp, regexec): Don't forget the __restrict.
1023
1024 2001-11-02 Richard M. Stallman <rms@gnu.org>
1025
1026 * textprop.c (Fget_char_property): Doc fix.
1027
1028 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1029
1030 * process.c (Fstart_process): Add usage to doc-string.
1031
1032 * data.c (Fsetq_default): Ditto.
1033
1034 * callint.c (Finteractive): Ditto.
1035
1036 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1037
1038 * macros.c: Don't include keymap.h any more.
1039
1040 2001-11-01 Richard M. Stallman <rms@gnu.org>
1041
1042 * data.c (Fmake_local_variable): Doc fix.
1043
1044 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1045 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1046
1047 * keymap.c (Fdescribe_buffer_bindings): Print character property
1048 bindings along with or instead of the buffer local map.
1049 Make the overriding maps override what they should.
1050
1051 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1052
1053 * window.c (grow_mini_window): Fix typo in comment.
1054
1055 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1056
1057 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1058 (XTset_vertical_scroll_bar): Likewise.
1059
1060 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1061 instead of IMAGE_BACKGROUND.
1062
1063 * xfns.c (four_corners_best): Reindent.
1064
1065 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1066 Handle :box so that it is possible to specify sexprs.
1067
1068 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1069
1070 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1071 (Fface_font): Ditto.
1072 (Finternal_set_alternative_font_registry_alist): Ditto.
1073 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1074
1075 * xfns.c (x-get-resource): Reindent.
1076
1077 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1078
1079 * s/hpux11.h: New file.
1080
1081 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1082
1083 * emacs.c (USAGE1): Show command line option --no-window-system
1084 instead of --no-windows in usage.
1085 (standard_args): Rename --no-windows to --no-window-system.
1086 (bug_reporting_address): Follow Emacs coding conventions.
1087
1088 * eval.c (Fcommandp): Doc fix.
1089 Change doc-string comments to `new style' [w/`doc:' keyword].
1090
1091 * frame.c (Fframe_live_p): Doc fix.
1092
1093 * buffer.c (selective-display-ellipses): Doc fix.
1094
1095 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1096
1097 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1098
1099 * xfaces.c (realize_x_face): If C is not a single-byte character,
1100 set the face's colors_copied_bitwise_p instead of the defaulted_p
1101 members which have a different meaning.
1102 (free_face_colors): Do nothing for a face whose colors have been
1103 copied bitwise.
1104
1105 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1106
1107 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1108
1109 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1110 [w/`doc:' keyword].
1111
1112 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1113
1114 * fns.c (require_unwind): Return Lisp_Object.
1115
1116 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1117
1118 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1119 (last-input-char): Revert doc-string to be the same as the
1120 doc-string of `last-input-event'.
1121
1122 * xdisp.c: Fix typos in comments.
1123
1124 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1125
1126 * window.c (grow_mini_window): Handle case that the root
1127 window is already smaller than the nominal mininum height.
1128
1129 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1130
1131 * emacs.c (main): Don't call keys_of_macros any more.
1132
1133 * lisp.h (keys_of_macros): Remove.
1134
1135 * macros.c (keys_of_macros): Remove.
1136
1137 * xfaces.c (Fface_attribute_relative_p): Declare args.
1138
1139 2001-10-30 Jason Rumney <jasonr@gnu.org>
1140
1141 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1142 (enum_font_cb2): Ignore fonts with vertical orientation.
1143
1144 2001-10-30 Richard M. Stallman <rms@gnu.org>
1145
1146 * keyboard.c (Finput_pending_p): Doc fix.
1147
1148 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1149
1150 * xterm.c (x_after_update_window_line): Don't run the code
1151 clearing in borders for rows whose visible height is 0.
1152
1153 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1154 resized_p flag is set. If not set, use the much less flickering
1155 method previously used.
1156
1157 * dispnew.c (change_frame_size_1): Set frame's resized_p.
1158
1159 * frame.h (struct frame) <resized_p>: New member.
1160
1161 * lread.c (to_multibyte): Ensure read_buffer is at least twice
1162 as large as the number of bytes to convert.
1163
1164 * lread.c (to_multibyte): New function.
1165 (read1): Use it.
1166
1167 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
1168
1169 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
1170
1171 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1172
1173 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
1174 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
1175 if the row's fill_line_p is set and drawing the last glyph with
1176 DRAW_IMAGE_{RAISED,SUNKEN}.
1177
1178 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
1179
1180 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
1181
1182 * xmenu.c: Include coding.h and charset.h.
1183 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
1184 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
1185 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
1186 Explicitly set wv->help. Use `TRUE' rather than `True'.
1187 (menu_help_callback): Use empty_string.
1188
1189 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
1190 (Fx_popup_dialog): Explicitly init f.
1191 (w32_menu_display_help): Use empty_string.
1192
1193 2001-10-29 Richard M. Stallman <rms@gnu.org>
1194
1195 * fns.c (Frequire): Detect recursive try to require the same
1196 feature 3 or more levels deep, and get error.
1197 (require_unwind): New subroutine.
1198 (require_nesting_list): New variable.
1199 (syms_of_fns): Init and staticpro it.
1200
1201 * print.c (print_object): Clarify indication of insertion type.
1202
1203 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
1204
1205 * coding.c (syms_of_coding): Document that locale-coding-system is
1206 used for decoding input on X.
1207
1208 * window.c (Fscroll_left, Fscroll_right): Doc fix.
1209
1210 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1211
1212 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
1213 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
1214
1215 2001-10-29 Gerd Moellmann <gerd@gnu.org>
1216
1217 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
1218 use NO_CURSOR if cursor_in_non_selected_windows is false.
1219
1220 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
1221 the slant attribute if FRAME is t.
1222
1223 * xfns.c (x_set_internal_border_width): Set frame garbaged
1224 when X window doesn't exist yet.
1225
1226 * xterm.c (x_after_update_window_line): Clear internal border
1227 in different circumstances.
1228
1229 * xterm.c (XTread_socket) <KeyPress>: Don't use
1230 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
1231 <handa@etl.go.jp>.
1232
1233 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1234
1235 * m/ibms390.h: New file. From Adam Thornton
1236 <athornton@sinenomine.net>.
1237
1238 2001-10-28 Gerd Moellmann <gerd@gnu.org>
1239
1240 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
1241
1242 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1243 a loop counter.
1244
1245 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1246
1247 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1248
1249 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1250 keyword].
1251 Fix typos in comments.
1252
1253 * emacs.c (bug_reporting_address): New function.
1254 Use it when displaying usage message.
1255
1256 * minibuf.c (read_minibuf): Remove unused external declaration of
1257 variable `Qread_only'.
1258
1259 * keymap.c (access_keymap): Remove unused variable `charset'.
1260
1261 2001-10-28 Miles Bader <miles@gnu.org>
1262
1263 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1264 Remove #ifdef'd-out code.
1265 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1266 (syms_of_xfaces): Initialize them.
1267
1268 2001-10-27 Jason Rumney <jasonr@gnu.org>
1269
1270 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1271 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1272 position using the system caret.
1273
1274 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1275 (w32_system_caret_height, w32_system_caret_x)
1276 (w32_system_caret_y): New variables for tracking system caret.
1277 (w32_initialize): Initialize them.
1278 (x_display_and_set_cursor): Make system caret follow the active cursor.
1279
1280 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1281 New messages types.
1282
1283 * w32term.c (note_mouse_highlight): Clear old help_echo.
1284
1285 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1286
1287 * xterm.c: Fix typo in a comment.
1288
1289 * emacs.c: Fix typos in comments.
1290 Remove unnecessary spaces.
1291 Change doc-string comments to `new style' [w/`doc:' keyword].
1292 (USAGE2): Fix typos in usage string.
1293
1294 * xterm.c: Fix typo in a comment.
1295
1296 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1297 emacs.c.
1298
1299 2001-10-27 Gerd Moellmann <gerd@gnu.org>
1300
1301 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
1302 instead of 1/2 line_height in the heuristic for skipping
1303 farther backward when target_y was not reached.
1304
1305 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1306 Display errno only if non-zero.
1307 (sound_warning): New function.
1308 (vox_configure): Don't treat failing to set sample rate as error.
1309 (various places): Improve error messages.
1310
1311 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1312
1313 * fileio.c (Faccess_file): Run the argument filename through
1314 Fexpand_file_name, before using it.
1315
1316 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1317 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1318
1319 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1320
1321 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1322
1323 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1324 Fix clearing in the case of scroll bars on the right.
1325
1326 2001-10-26 Juanma Barranquero <lektu@terra.es>
1327
1328 * w32gui.h (XImage): Add a dummy typedef.
1329
1330 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1331
1332 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
1333
1334 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1335
1336 * frame.c (Fframe_parameter): Fix last change.
1337
1338 * fileio.c: Revert last change (which removed old commented-out
1339 version of expand-file-name). Add a comment that explains why
1340 this old version should not be removed.
1341
1342 2001-10-25 Gerd Moellmann <gerd@gnu.org>
1343
1344 * frame.c (Fframe_parameter): Fix a bug whereby some
1345 ``artificial'' frame parameters, like `minibuffer' were not
1346 obtained by calling Fframe_parameters.
1347
1348 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1349 cursor differently.
1350
1351 * xdisp.c (move_it_vertically_backward): Compute line height
1352 differently. Add heuristic to try to be more compatible to 20.x.
1353
1354 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1355
1356 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1357
1358 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1359 boolean.
1360
1361 2001-10-25 Miles Bader <miles@gnu.org>
1362
1363 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1364 BG is a pointer to a structure, not a structure.
1365 (gif_format, png_format): Add missing commas.
1366
1367 2001-10-24 Richard M. Stallman <rms@gnu.org>
1368
1369 * xfaces.c (Fface_attributes_as_vector): New function.
1370 (syms_of_xfaces): Defsubr it.
1371
1372 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1373
1374 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1375 variable `area'.
1376
1377 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1378
1379 * search.c (scan_newline): Remove unused variable `selective_display'.
1380
1381 2001-10-25 Miles Bader <miles@gnu.org>
1382
1383 * dispextern.h (struct image): Add `background',
1384 `background_valid', and `background_transparent' fields.
1385 (image_background, image_background_transparent): New declarations.
1386 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1387 * xfns.c (image_background, image_background_transparent)
1388 (four_corners_best): New functions.
1389 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1390 (gs_format): Add `:background' entry.
1391 (lookup_image): Set IMG's background color if specified.
1392 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1393 when appropriate.
1394 (x_clear_image_1): Reset `background_valid' and
1395 `background_transparent_valid' fields.
1396 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1397 calculating it here. Set IMG's background_transparent field.
1398 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1399 (enum png_keyword_index): Add PNG_BACKGROUND.
1400 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1401 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1402 (enum gif_keyword_index): Add GIF_BACKGROUND.
1403 (enum gs_keyword_index): Add GS_BACKGROUND.
1404 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1405 Pre-calculate image background color where necessary.
1406 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1407 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1408 color to use for image glyph reliefs.
1409
1410 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1411
1412 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1413 in full-width rows.
1414
1415 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1416 Fix clearing of area not covered by scroll bar.
1417
1418 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1419
1420 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1421 and `real_start'.
1422 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
1423 (glyph_rect): Remove unused variable `area'.
1424
1425 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1426
1427 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
1428
1429 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1430 (row_containing_pos): Take additional argument DY.
1431 Treat rows ending in middle of char differently.
1432 (display_line): Handle tabs on window systems differently.
1433
1434 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1435 with additional argument.
1436
1437 * dispextern.h (row_containing_pos): Adjust prototype.
1438
1439 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1440 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1441 (try_window_id, try_window_reusing_current_matrix)
1442 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1443 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1444
1445 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1446
1447 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1448 gnuemacs).
1449 (HAVE_BOXES): Fix typo in comment.
1450 (push_menu_pane): Fix typo in comment.
1451
1452 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1453 of `Qwhen'.
1454 (single_display_prop_string_p): Remove unused local declarations
1455 of `Qwhen' and `Qmargin'.
1456 (string_buffer_position): Remove unused variable `around'.
1457 (store_frame_title): Remove unused variable `width'.
1458
1459 * window.c: Don't define max.
1460 (coordinates_in_window): Remove unused variable `uy'.
1461
1462 * widget.c: Don't define max.
1463
1464 * process.c: Don't define max.
1465 (create_process): Remove unused variable `buffer'.
1466
1467 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1468
1469 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
1470
1471 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1472
1473 * xfaces.c (Finternal_set_lisp_face_attribute)
1474 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1475 frame is on a windowed display.
1476
1477 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1478
1479 * dispnew.c (sync_window_with_frame_matrix_rows):
1480 Fix handling of windows which aren't full-width, fix handling
1481 of marginal areas.
1482
1483 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
1484
1485 2001-10-23 Andreas Schwab <schwab@suse.de>
1486
1487 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1488 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1489
1490 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1491
1492 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
1493 REAL_END. Notice if cursor gets overwritten.
1494 (notice_overwritten_cursor): Take X positions as parameters.
1495 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1496 around call to x_draw_glyphs.
1497
1498 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1499
1500 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1501 instead of C) and usage.
1502
1503 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1504 of C) and usage.
1505
1506 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1507 `left', `max_width' and `max_height'.
1508
1509 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1510
1511 * xdisp.c (display_line): For a tab continued to the next line,
1512 set row's ends_in_middle_of_char_p.
1513
1514 2001-10-22 Gerd Moellmann <gerd@gnu.org>
1515
1516 * xdisp.c (display_line): Fix computation of continuation lines
1517 width for TABs.
1518
1519 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1520
1521 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1522 `Qlaplace'.
1523
1524 * fileio.c: Remove unused code.
1525
1526 2001-10-22 Miles Bader <miles@gnu.org>
1527
1528 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1529 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1530 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1531
1532 2001-10-21 Jason Rumney <jasonr@gnu.org>
1533
1534 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1535
1536 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1537
1538 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1539 (Finsert_string): Avoid the multi-line string literals warning.
1540
1541 2001-10-22 Miles Bader <miles@gnu.org>
1542
1543 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1544 (Fdocumentation): Don't use it.
1545 (syms_of_doc): Don't initialize it.
1546
1547 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1548 * print.c (Fwith_output_to_temp_buffer): Likewise.
1549 * window.c (Fsave_window_excursion): Likewise.
1550 * editfns.c (Fsave_excursion, Fsave_current_buffer)
1551 (Fsave_restriction): Likewise.
1552 * eval.c (Frun_hooks, Frun_hook_with_args)
1553 (Frun_hook_with_args_until_failure)
1554 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1555 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1556 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
1557 (Funwind_protect, Fcondition_case): Likewise.
1558 * coding.c (Ffind_operation_coding_system): Likewise.
1559 * keyboard.c (Ftrack_mouse): Likewise.
1560
1561 2001-10-21 Miles Bader <miles@gnu.org>
1562
1563 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
1564 (Fmake_hash_table): Add usage: string to doc string.
1565 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
1566 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
1567 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1568 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1569 (Fml_prefix_argument_loop): Likewise.
1570
1571 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1572
1573 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
1574
1575 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1576 style' [w/`doc:' keyword].
1577
1578 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1579 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1580 comments to `new style' [w/`doc:' keyword].
1581
1582 2001-10-21 Jason Rumney <jasonr@gnu.org>
1583
1584 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1585
1586 * w32term.c (remember_mouse_glyph): New function.
1587 (w32_mouse_position): Use it.
1588 (note_mouse_movement): If the mouse moved off the glyph, remember
1589 its new position.
1590
1591 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1592 (w32_display_info): Add mouse_face_overlay.
1593
1594 * w32term.c (notice_overwritten_cursor): Renamed from
1595 note_overwritten_text_cursor. Rewritten to take glyph widths into
1596 account.
1597 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1598 (fast_find_string_pos): New function.
1599 (fast_find_position): Return the correct vpos. Add parameter
1600 STOP. In the final row, stop before glyphs having STOP as object.
1601 Don't consider glyphs that are not from a buffer.
1602 (fast_find_position) [0]: Add a presumably more correct version
1603 for after 21.1.
1604 (expose_window_tree, expose_frame): Don't compute intersections here.
1605 (expose_window): Do it here instead.
1606 (expose_window_tree, expose_window, expose_line): Return 1 when
1607 overwriting mouse-face.
1608 (expose_window): If W is the window currently being updated, mark
1609 the frame garbaged.
1610 (expose_frame): If mouse-face was overwritten, redo it.
1611 (x_use_underline_position_properties): New variable.
1612 (syms_of_xterm): DEFVAR_BOOL it.
1613 (x_draw_glyph_string): Add comment to use it in future.
1614 (x_draw_glyph_string): Restore clipping after drawing box.
1615 Fix a computation of the underline position.
1616 (w32_get_glyph_string_clip_rect): Minor cleanup.
1617 (x_fill_stretch_glyph_string): Remove an assertion.
1618 (x_produce_glyphs): Don't convert multibyte characters
1619 to unibyte characters in unibyte buffers.
1620 (cursor_in_mouse_face_p): New function.
1621 (x_draw_stretch_glyph_string): Use it to choose a different GC
1622 when drawing a cursor within highlighted text. Don't draw
1623 background again if it has already been drawn.
1624 (x_draw_glyph_string_box): Don't draw a full-width
1625 box just because the glyph row's full_width_p flag is set.
1626 (x_draw_glyphs): Fix computation of rightmost x for
1627 full-width rows.
1628 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1629 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1630 change bottom shadow accordingly. Some cleanup.
1631 (x_update_window_end): Handle overwritten mouse face
1632 also for tool bar windows.
1633 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1634 DRAW is DRAW_IMAGE_RAISED.
1635 (clear_mouse_face): Return 1 if text with mouse face was
1636 actually redrawn. Make the function static. Reset
1637 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1638 optimize away highlighting if we pass over that same overlay again.
1639 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1640 to detect a case where we have to highlight a different region
1641 despite not having left the currently highlighted region.
1642 Set mouse_face_overlay in the x_display_info. Avoid changing the
1643 mouse pointer shape when show_mouse_face has already done it, or
1644 there is no need. Handle mouse-face and help-echo in strings.
1645 (glyph_rect): New function.
1646 (w32_mouse_position): Use it to raise the threshold for mouse
1647 movement event generation.
1648 (w32_initialize_display_info): Initialize the x_display_info's
1649 mouse_face_overlay.
1650 (w32_set_vertical_scroll_bar): Don't clear a zero height
1651 or width area.
1652 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1653 a widget to zero height.
1654
1655 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
1656 Protect unibyte strings created by replacing their multibyte
1657 equivalents in menu_items.
1658 (w32_menu_show): Don't overwrite an item's name with its key
1659 description in case the description is a multibyte string.
1660 (single_submenu): Some cleanup.
1661
1662 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1663 (postprocess_image): New function.
1664 (lookup_image): Call it for all image types except PostScript.
1665 (x_kill_gs_process): Call postprocess_image.
1666 (tiff_error_handler, tiff_warning_handler): New functions.
1667 (tiff_load): Install them as handlers.
1668 (x_kill_gs_process): Recognize if someone has cleared the image
1669 cache under us.
1670 (valid_image_p): Protect better against invalid image
1671 specifications. Previous code could signal an error.
1672 (Fx_hide_tip, Fshow_tip): Doc fix.
1673 (Fv_max_tooltip_size): New variable.
1674 (syns_of_xfns): DEFVAR_LISP it.
1675 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1676 window buffer to *tip* right after creating the frame. Set frame's
1677 window_width. Use a maximum tooltip size specified by
1678 Vx_max_tooltip_size, if that has valid contents.
1679 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1680 Make sure the tooltip is completely visible.
1681 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1682 (Fx_create_frame): Adjust the frame's height for presence
1683 of the tool bar before calling x_figure_window_size.
1684 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1685 when the window gets smaller.
1686 (x_set_foreground_color): Set frame's cursor_pixel.
1687 (x_set_foreground_color, x_set_background_color): Cleaned up.
1688 (x_set_font): Handle case of x_new_fontset returning the same name
1689 as before, although there was a change in fontsets.
1690
1691 2001-10-21 Miles Bader <miles@gnu.org>
1692
1693 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
1694 (Flogxor): Add usage: string to doc string.
1695 * charset.c (Fstring): Likewise.
1696 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1697 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1698
1699 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1700
1701 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1702
1703 * alloc.c: Reindent DEFUNs with doc: keywords.
1704
1705 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1706
1707 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1708 keyword].
1709
1710 2001-10-20 Gerd Moellmann <gerd@gnu.org>
1711
1712 * (Version 21.1 released.)
1713
1714 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1715
1716 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
1717
1718 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1719 0 because unused.
1720
1721 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
1722 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1723 Change doc-string comments to `new style' [w/`doc:' keyword].
1724
1725 2001-10-20 Miles Bader <miles@gnu.org>
1726
1727 The following changes remove the glyph_row `inverse_p' field,
1728 which is never set anymore, due to other changes:
1729
1730 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1731 (reassert_line_highlight, change_line_highlight): Declarations removed.
1732 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
1733 (line_hash_code, row_equal_p, fake_current_matrices)
1734 (build_frame_matrix_from_leaf_window, update_frame_line)
1735 (update_frame_line, update_frame_line, update_frame_line):
1736 Don't use `inverse_p' field.
1737 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1738 change_line_highlight_hook.
1739 (XTreassert_line_highlight, x_change_line_highlight):
1740 Functions removed.
1741 (x_fix_overlapping_area, x_write_glyphs, expose_area)
1742 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1743 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1744 `inverse_p' field.
1745 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
1746 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1747 (w32_reassert_line_highlight, x_change_line_highlight):
1748 Functions removed.
1749 * w32console.c (reassert_line_highlight, change_line_highlight):
1750 Functions removed.
1751 (initialize_w32_display): Don't set reassert_line_highlight_hook
1752 or change_line_highlight_hook.
1753 (hl_mode): Function removed.
1754 (reset_terminal_modes, set_terminal_modes, update_begin)
1755 (update_end, w32_face_attributes, initialize_w32_display):
1756 (clear_frame, ins_del_lines): Don't call it.
1757 * termhooks.h (reassert_line_highlight_hook)
1758 (change_line_highlight_hook): Declarations removed.
1759 * term.c (reassert_line_highlight_hook)
1760 (change_line_highlight_hook): Variables removed.
1761 (reassert_line_highlight, change_line_highlight): Functions removed.
1762 * msdos.c (IT_reassert_line_highlight)
1763 (IT_change_line_highlight): Functions removed.
1764 (internal_terminal_init): Don't set reassert_line_highlight_hook
1765 or change_line_highlight_hook.
1766 (highlight): Variable removed.
1767 (IT_set_face, IT_update_begin, IT_update_end)
1768 (IT_set_terminal_modes): Don't set or use it.
1769
1770 The following changes remove inverse-video support for terminals
1771 that use a `magic cookie' standout mode. Due to changes in the
1772 way mode-lines are displayed, such support no longer works
1773 anyway, and it's probable that almost no one uses such terminals
1774 anymore:
1775
1776 * term.c (standout_requested): Variable removed.
1777 (update_end, highlight_if_desired): Don't use it.
1778 (chars_wasted, copybuf): Variables removed.
1779 (write_standout_marker): Function removed.
1780 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
1781 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1782 Don't use `chars_wasted' or `copybuf'.
1783 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1784 Set `costs_set' to true.
1785 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1786 `chars_wasted'.
1787 (clear_end_of_line): Function removed.
1788 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1789 (clear_to_end): Call `clear_end_of_line' instead of
1790 `clear_end_of_line_raw'.
1791 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1792 (term_init): Don't set them.
1793 Turn off any standout/underline modes that require magic cookies.
1794 (ins_del_lines, highlight_if_desired, background_highlight)
1795 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1796 Remove special processing for magic-cookie standout modes.
1797 (turn_off_face, turn_on_face): Remove special processing for
1798 underline magic-cookie glitch.
1799
1800 2001-10-19 Richard M. Stallman <rms@gnu.org>
1801
1802 * eval.c (syms_of_eval): Doc fixes.
1803
1804 2001-10-19 Gerd Moellmann <gerd@gnu.org>
1805
1806 * xdisp.c (redisplay_internal): Don't clear echo area if the
1807 mini-window is selected.
1808
1809 2001-10-19 Miles Bader <miles@gnu.org>
1810
1811 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1812 doesn't take precedence if the affected property's value is nil.
1813
1814 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1815
1816 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1817 with fields and suggest using `forward-line' to avoid them.
1818 * editfns.c (Fline_beginning_position, Fline_end_position):
1819 Clarify documentation.
1820
1821 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1822
1823 * keymap.c (current_minor_maps): `override' only shadows its
1824 correspondent in minor-mode-map-alist, not the whole tail.
1825
1826 2001-10-18 Andrew Innes <andrewi@gnu.org>
1827
1828 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1829 optimization. The fontp->encoding array was not being initialized
1830 correctly when compiled with optimizations by MSVC.
1831
1832 2001-10-18 Gerd Moellmann <gerd@gnu.org>
1833
1834 * xdisp.c (display_line): Indicate empty lines in active mini-window.
1835
1836 2001-10-17 Andrew Innes <andrewi@gnu.org>
1837
1838 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1839
1840 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1841 font_info.charset field.
1842
1843 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1844 rather than working it out by calling w32_codepage_for_font for
1845 every glyph.
1846
1847 2001-10-17 Andrew Innes <andrewi@gnu.org>
1848
1849 * w32term.c (w32_read_socket): Determine clipping rectangle for
1850 the entire frame, including areas covered by scrollbars and the
1851 menubar. This avoids internal arguments about whether a frame is
1852 fully obscured or not.
1853
1854 2001-10-17 Gerd Moellmann <gerd@gnu.org>
1855
1856 * xdisp.c (try_window_id): Undo last change. Give up if
1857 window ends in strings.
1858
1859 * xdisp.c (try_window_id): Don't display lines after the window
1860 end if the rest of the window after the window end was already blank.
1861
1862 * xdisp.c (try_window_id): Remove code that was only there
1863 for the release of 21.1.
1864
1865 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
1866
1867 2001-10-17 Miles Bader <miles@gnu.org>
1868
1869 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1870 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1871 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1872 Change doc-string comments to `new style' [w/`doc:' keyword].
1873 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1874 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1875 out make-docfile.
1876
1877 2001-10-16 Miles Bader <miles@gnu.org>
1878
1879 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1880
1881 2001-10-16 Gerd Moellmann <gerd@gnu.org>
1882
1883 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1884 *scratch*.
1885
1886 2001-10-16 Ken Raeburn <raeburn@gnu.org>
1887
1888 Avoid the assumption that car and cdr slots of cons cells are
1889 addressable lvalues; this allows for easier experimentation with
1890 other lisp implementations that may not permit such accesses for
1891 various reasons. Not quite complete -- buffer.c still needs some
1892 work, and w32/mac files need rechecking -- so compile-time
1893 enforcement is left disabled for now.
1894
1895 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
1896 gcc with a union-based Lisp object rep. Redefine as no-op for now.
1897 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1898 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1899 (XSETCAR, XSETCDR): New macros.
1900 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1901 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1902 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1903 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1904 XSETCDR.
1905 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
1906 * buffer.c (record_buffer, Fbury_buffer)
1907 (swap_out_buffer_local_variables, recenter_overlay_lists)
1908 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
1909 fields of a cons cell respectively.
1910 * callint.c (quotify_args, Fcall_interactively): Likewise.
1911 * ccl.c (Fregister_code_conversion_map): Likewise.
1912 * coding.c (detect_coding_system): Likewise.
1913 * composite.c (get_composition_id, make_composition_value_copy):
1914 Likewise.
1915 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1916 (swap_in_symval_forwarding, set_internal, Fset_default)
1917 (Fmake_variable_buffer_local, Fmake_local_variable)
1918 (Fmake_variable_frame_local): Likewise.
1919 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
1920 * keymap.c (Fset_keymap_parent, store_in_keymap)
1921 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
1922 * minibuf.c (get_minibuffer): Likewise.
1923 * search.c (Fmatch_data): Likewise.
1924 * textprop.c (extend_property_ranges): Likewise.
1925 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
1926 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1927 Likewise.
1928 * w32term.c (x_delete_display): Likewise.
1929 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1930 Likewise.
1931 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
1932 * doc.c (store_function_docstring): Use XSETCARFASTINT.
1933 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
1934 (Fread_file_name): Use XSETCAR.
1935 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1936 CHECK_NUMBER_CDR.
1937 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1938 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1939 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1940 CHECK_NUMBER_CDR.
1941 * keyboard.c (read_char): Alter list traversal to avoid taking the
1942 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1943 (parse_menu_item): Use XSETCAR and XSETCDR.
1944 (reach_char_x_menu_prompt): Use XSETCAR.
1945 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1946 (Fcommand_execute): Use XSETCDR.
1947 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1948 (openp): Change list traversal to avoid using XCAR as lvalue.
1949 (read_list): Use XSETCDR.
1950 * process.c (wait_reading_process_input): Change wait_for_cell
1951 handling to avoid taking addresses of cons cell slots.
1952 * xselect.c (x_own_selection, x_handle_selection_clear)
1953 (x_clear_frame_selections): Use XSETCDR.
1954 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1955 (x_handle_property_notify, x_get_foreign_selection)
1956 (x_handle_selection_notify): Use XSETCAR.
1957
1958 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1959
1960 * buffer.c: Put doc strings in comments.
1961
1962 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
1963
1964 2001-10-15 Sam Steingold <sds@gnu.org>
1965
1966 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1967
1968 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1969
1970 * process.c (process-inherit-coding-system-flag)
1971 (get-buffer-process): Do not confuse make-docfile with doc strings
1972 in comment.
1973
1974 * editfns.c (Fchar_to_string): Make doc string consistent with
1975 arguments. Put doc strings in comments.
1976
1977 * abbrev.c, minibuf.c: Put doc strings in comments.
1978
1979 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1980
1981 * window.c (window_loop): Don't check for Fother_buffer returning nil.
1982
1983 * window.c (select_window_1): Unfreeze window start. Remove a
1984 doubled test for WINDOW being live.
1985
1986 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1987
1988 * fns.c (Fmapconcat): Fix typo in a doc string.
1989
1990 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1991
1992 2001-10-15 Gerd Moellmann <gerd@gnu.org>
1993
1994 * xterm.c (x_draw_glyph_string): Restore clipping after
1995 drawing box.
1996
1997 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1998
1999 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2000
2001 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2002
2003 * indent.c (skip_invisible): Use new retval of
2004 TEXT_PROP_MEANS_INVISIBLE.
2005
2006 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2007 If a parent is reached and noinherit is set, exit immediately.
2008 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2009
2010 * s/ms-w32.h (EXEC_SUFFIXES):
2011 * s/msdos.h (EXEC_SUFFIXES):
2012 * process.h (EXEC_SUFFIXES): Remove.
2013
2014 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2015 (decode_suffixes): Remove.
2016
2017 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2018 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2019 (invisible_ellipsis_p): Remove.
2020
2021 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2022 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2023 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2024 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2025 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2026
2027 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2028
2029 * lisp.h (Ftop_level): Add prototype.
2030
2031 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2032 (XTread_socket): Improve style of comments to follow other
2033 comments.
2034
2035 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2036 is already prototyped in included lisp.h).
2037
2038 * frame.c (Fset_mouse_position): Improve style of comment to
2039 follow other comments.
2040 (Fset_mouse_pixel_position): Improve style of comment to follow
2041 other comments.
2042 (Fmake_frame_visible): Doc fix and typo in comment.
2043 (Fmake_frame_invisible): Doc fix and typo in comment.
2044 (Ficonify_frame): Fix typo in comment.
2045
2046 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2047
2048 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2049 * term.c, alloc.c: Put doc strings in comments.
2050
2051 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2052
2053 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2054 Provide definitions for doc strings in comments.
2055
2056 * fns.c: Put doc strings in comments.
2057
2058 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2059
2060 * dired.c (file_name_completion): Ignore a candidate directory if
2061 it matches an element in completion-ignored-extensions that ends
2062 in a slash.
2063 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2064 feature in the doc string.
2065 (Ffile_name_completion): Ditto.
2066
2067 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2068
2069 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2070
2071 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2072
2073 * lisp.h (Fprovide): Update prototype.
2074 (Ffeaturep, invisible_p): Remove.
2075
2076 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2077 (DOLIST, LOOP_PROPVAL): New macros.
2078 (invisible_p, invisible_ellipsis_p): Use them.
2079 (invisible_noellipsis_p): New function.
2080 (syms_of_xdisp): Use empty_string.
2081
2082 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2083
2084 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2085 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2086
2087 * print.c (Fwith_output_to_temp_buffer): Align with
2088 internal_with_output_to_temp_buffer.
2089 (print_preprocess): Use traverse_intervals_noorder.
2090 (print_object): Update call to traverse_intervals.
2091
2092 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2093 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2094
2095 * intervals.c (traverse_intervals_noorder): New function.
2096 (search_for_interval, count_intervals): Use it.
2097 (traverse_intervals): Use less stack space and drop `depth' arg.
2098
2099 * fns.c (Ffeaturep): Add new `subfeature' arg.
2100 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2101 (Qsubfeatures): New var.
2102 (syms_of_fns): Initialize it.
2103
2104 * keymap.c (Fkey_description): Use empty_string.
2105 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2106 (syms_of_keymap): Setup inheritance between maps.
2107 Don't export Sdescribe_bindings_internal any more.
2108
2109 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2110
2111 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2112
2113 * xterm.c (notice_overwritten_cursor): Renamed from
2114 note_overwritten_text_cursor. Rewritten to take glyph widths into
2115 account.
2116
2117 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2118
2119 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2120 multi-line strings without a trailing "\n\".
2121
2122 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2123
2124 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2125 defined.
2126
2127 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2128
2129 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2130
2131 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2132 * w32proc.c (sys_spawnve):
2133 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2134 * w32.c (check_windows_init_file):
2135 * sound.c (Fplay_sound):
2136 * emacs.c (init_cmdargs):
2137 * process.c (Fstart_process): Update calls to openp.
2138
2139 * callproc.c (Vexec_suffixes): New var.
2140 (Fcall_process): Update call to openp.
2141 (decode_suffixes): New function.
2142 (syms_of_callproc): Init exec-suffixes.
2143
2144 * lread.c (Vload_suffixes, default_suffixes): New vars.
2145 (openp): Take a lisp list of suffixes.
2146 Check for file-name-handlers even if the file was absolute already.
2147 (syms_of_lread): Declare load-suffixes.
2148 (Fload): Fix up call to openp.
2149 Don't bother checking for file-name-handler at the very beginning.
2150
2151 * keymap.h (Fcopy_keymap): Don't export.
2152
2153 * lisp.h (empty_string): Declare.
2154 (Vload_suffixes, Vexec_suffixes): Declare.
2155 (openp): Update prototype.
2156
2157 * emacs.c (empty_string): New var.
2158 (syms_of_emacs): Initialize it.
2159
2160 * search.c (wordify): Use it.
2161
2162 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
2163 selected window if it's not displayed there. Handle the case
2164 when the window is dedicated.
2165 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2166
2167 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
2168
2169 * syntax.h (struct gl_state_s): Change the meaning of b_property.
2170 Remove left_ok and right_ok.
2171 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
2172 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
2173 new meaning of b_property.
2174
2175 * syntax.c (update_syntax_table): Simplify.
2176 (Fforward_comment): Don't skip quoted chars when going backward.
2177
2178 2001-10-11 Gerd Moellmann <gerd@gnu.org>
2179
2180 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
2181 in case I is of some unsigned type, in which case
2182 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
2183 comparison becomes bogus.
2184
2185 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
2186 (Fuser_full_name): Fix bug treating a float as a fixnum.
2187
2188 * data.c (Fstring_to_number): Use make_fixnum_or_float.
2189
2190 * lisp.h (make_fixnum_or_float): New macro.
2191
2192 * lisp.h (circular_list_error): Add prototype.
2193
2194 * data.c (Qcircular_list): New variable.
2195 (circular_list_error): New function.
2196 (syms_of_data): Initialize it Qcircular_list.
2197
2198 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
2199
2200 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
2201 casefiddle.c, buffer.c: Include keymap.h.
2202
2203 2001-10-10 Gerd Moellmann <gerd@gnu.org>
2204
2205 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
2206 options. From Dave Love <d.love@dl.ac.uk>.
2207
2208 2001-10-09 Gerd Moellmann <gerd@gnu.org>
2209
2210 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
2211 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2212
2213 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
2214 unsigned char.
2215 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2216
2217 2001-10-08 Andrew Innes <andrewi@gnu.org>
2218
2219 * lisp.h [max]: Undef min and max before redefining them.
2220
2221 * w32gui.h: Do not undef min and max.
2222
2223 * w32heap.h: Do not undef min and max.
2224
2225 * s/ms-w32.h: Do not undef min and max.
2226
2227 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2228
2229 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
2230
2231 2001-10-08 Sam Steingold <sds@gnu.org>
2232
2233 * keymap.c (current-active-maps): Quote newlines (compilation error).
2234
2235 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2236
2237 * Makefile.in (lisp, shortlisp): Replace bindings.el with
2238 bindings.elc, since otherwise doc strings in bindings.el get wrong
2239 offsets in etc/DOC.
2240
2241 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2242
2243 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2244
2245 * keyboard.h (map_prompt): Remove.
2246
2247 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
2248 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
2249
2250 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2251
2252 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2253
2254 * keyboard.c (map_prompt): Remove.
2255 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2256 Use Fkeymap_prompt.
2257
2258 * keymap.h: New file. Extracted from lisp.h.
2259
2260 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2261 (accessible_keymaps_1): New function.
2262 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2263 (Fwhere_is_internal): Use Fcurrent_active_maps.
2264 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2265 Insert in current buffer rather than standard-output.
2266 Don't call `help-mode'. Export to elisp.
2267 (describe_buffer_bindings): New wrapper.
2268 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2269 and Sdescribe_buffer_bindings.
2270
2271 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2272
2273 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
2274 Remove code setting signal handler.
2275
2276 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
2277 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2278
2279 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2280
2281 * keyboard.c: Don't define min/max.
2282
2283 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2284
2285 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
2286 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
2287 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
2288 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
2289 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
2290 Don't define min/max.
2291
2292 * lisp.h (min, max): New macros.
2293
2294 * puresize.h (BASE_PURESIZE): Increase to 725000.
2295
2296 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2297
2298 * xfaces.c (free_frame_menubar): Add prototype.
2299
2300 * lisp.h (init_window): Add prototype.
2301
2302 * editfns.c: Include ctype.h.
2303
2304 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
2305 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
2306 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2307 variable `sb'.
2308
2309 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2310 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2311 `popup_activated_flag' and `title'.
2312
2313 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2314
2315 * emacs.c (main): Remove extra `;'.
2316
2317 * atimer.h (struct atimer): Fix typos in a comment.
2318
2319 * atimer.c: Fix typo.
2320
2321 * Makefile.in: Fix typo.
2322
2323 * README: Remove obsolete part mentioning removed VMS file.
2324
2325 2001-10-07 Miles Bader <miles@gnu.org>
2326
2327 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2328
2329 2001-10-07 Ken Raeburn <raeburn@gnu.org>
2330
2331 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2332 Lisp_Object.
2333
2334 * lisp.h (Ffield_end): Declare.
2335
2336 2001-10-07 Gerd Moellmann <gerd@gnu.org>
2337
2338 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2339
2340 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2341
2342 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2343
2344 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2345
2346 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2347 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2348
2349 * alloc.c (inhibit_garbage_collection): Simplify.
2350 (Fmemory_use_counts): Ditto.
2351
2352 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
2353 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2354 most-negative-fixnum.
2355
2356 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
2357 (FIXNUM_OVERFLOW_P): New macros.
2358
2359 2001-10-06 Miles Bader <miles@gnu.org>
2360
2361 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2362 scroll_bar_bottom_shadow_pixel fields.
2363 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2364 for the shadows, and tell the toolkit about them if we succeed.
2365 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2366 Free scroll-bar shadow colors.
2367 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2368 Free scroll-bar shadow colors when the background color changes.
2369 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2370 Initialize scroll-bar shadow-color fields.
2371
2372 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2373
2374 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2375
2376 2001-10-05 Miles Bader <miles@gnu.org>
2377
2378 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2379 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
2380 New functions (were in simple.el).
2381 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2382 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2383 (syms_of_minibuf): Initialize them.
2384
2385 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2386
2387 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2388 (tiff_load): Install them as error and warning handler.
2389
2390 2001-10-04 Andrew Innes <andrewi@gnu.org>
2391
2392 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2393 (w32_load_system_font): Don't believe what GetLanguageFontInfo
2394 says; query codepage info directly to determine if font is double byte.
2395 (x_to_w32_charset): Handle private format for unknown charsets.
2396 Handle wildcards in charset spec, by ignoring them.
2397 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2398 "*-" prefix from charset.
2399 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2400 handle the truncated font spec form constructed by font_list_1, so
2401 that we correctly identify the charset fields. Don't remove "*-"
2402 prefix from charset.
2403 (w32_list_synthesized_fonts): Fix argument to alloca.
2404
2405 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2406
2407 * window.h (MINI_WINDOW_P): Use NILP.
2408
2409 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2410
2411 * termhooks.h (struct input_event): Use proper type for `kind'.
2412
2413 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2414
2415 This handles unknown keysyms better than before. For example,
2416 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2417 Emacs formerly completely ignored F5. With the change, it derives
2418 a key symbol from the name of the X keysym, `ccaron' in this case.
2419 Reported by Martin Buchholz.
2420
2421 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2422 unknown keysyms.
2423
2424 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2425 that EVENT->code isn't a function key, use the keysym's name.
2426
2427 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2428
2429 FOREACH is a macro that should make it easier to loop over Lisp
2430 lists with checks for cycles and proper lists.
2431
2432 * lisp.h (LIST_END_P, FOREACH): New macros.
2433
2434 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2435
2436 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2437 called for a lost connection. Prevent dumping core in this case.
2438 Instead print the X error, and exit. On user request.
2439
2440 * xterm.c (error_msg): New variable.
2441 (x_fatal_error_signal): New function.
2442 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2443 as fatal_error_signal_hook around the call to XtCloseDisplay.
2444
2445 * emacs.c (fatal_error_signal_hook): New variable.
2446 (fatal_error_signal): Call that function.
2447
2448 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2449
2450 With this, Emacs prints how much pure storage it will
2451 approximately need in case pure storage overflows while dumping.
2452
2453 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2454 New variables.
2455 (init_alloc_once): Initialize new variables.
2456 (PURE_POINTER_P): Use new variables.
2457 (pure_alloc): If pure storage overflows, allocate from the heap.
2458 (check_pure_size): New function.
2459 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2460
2461 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2462 (check_pure_size): Add prototype.
2463
2464 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2465
2466 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2467
2468 This adds a post-gc-hook that's run with GC inhibited.
2469 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2470
2471 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2472 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2473 (Fgarbage_collect): Run post-gc-hook.
2474
2475 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2476
2477 This adds `defvaralias' and `indirect-variable'. Changes not
2478 directly related to this feature are there to gain the same
2479 performance again as before variable aliases.
2480
2481 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2482 code to get and set symbol values, to take defvaralias into account.
2483
2484 (Note: the new `constant' bit-flag in symbols would make it
2485 possible to define arbitrary read-only variables, e.g. with
2486 `defconst'.)
2487
2488 Documentation is in lispref/variables.texi. Added to NEWS.
2489
2490 * lisp.h (enum symbol_interned): New enumeration.
2491 (struct Lisp_Symbol): Remove member `obarray', add
2492 `indirect_variable', `constant', and `interned'.
2493 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2494 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2495 (indirect_variable): Add prototype.
2496
2497 * print.c (print_preprocess, print_object): Test internedness of
2498 symbols differently.
2499
2500 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2501 bit-fields.
2502 (init_obarray): Likewise for t and nil.
2503
2504 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2505 (Fdefvaralias): New function.
2506 (specbind): Simplify the test if symbol is a constant.
2507 (syms_of_eval): Defsubr Fdefvaralias.
2508
2509 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2510 (Qcyclic_variable_indirection): New variable.
2511 (Fkeywordp): Check for internedness differently.
2512 (Fmakunbound): Simplify the test if symbol is a constant.
2513 (indirect_variable, Findirect_variable): New functions.
2514 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2515 aliased symbol.
2516 (let_shadows_buffer_binding_p): Check for variable aliases.
2517 (set_internal): Simplify the test if SYMBOL is a constant.
2518 If SYMBOL has a buffer-local value and is an alias, use the aliased
2519 symbol instead.
2520 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2521 Sindirect_variable.
2522
2523 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2524 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2525 set directly.
2526
2527 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2528
2529 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2530 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2531 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2532
2533 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2534
2535 * Branch for 21.1.
2536
2537 2001-10-03 Miles Bader <miles@gnu.org>
2538
2539 * callproc.c (syms_of_callproc): Explicitly state in the
2540 documentation for `process-environment' that earlier entries take
2541 precedence over later ones.
2542
2543 2001-10-02 Miles Bader <miles@gnu.org>
2544
2545 * textprop.c (Fnext_char_property_change)
2546 (Fprevious_char_property_change): Remove reference to non-existant
2547 argument OBJECT from doc-string.
2548
2549 2001-10-01 Gerd Moellmann <gerd@gnu.org>
2550
2551 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2552 (try_window_id): Skip back over lines ending in a newline from a
2553 string.
2554
2555 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2556 New bit flag
2557
2558 2001-10-01 Richard M. Stallman <rms@gnu.org>
2559
2560 * search.c (Freplace_match): Doc fix.
2561
2562 2001-09-28 Andrew Innes <andrewi@gnu.org>
2563
2564 * w32menu.c (set_frame_menubar): Take into account that
2565 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2566 <raeburn@gnu.org>.
2567
2568 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2569
2570 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2571
2572 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2573
2574 * s/gnu-linux.h: Fix a typo in comment.
2575
2576 2001-09-28 Andreas Schwab <schwab@suse.de>
2577
2578 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2579 nocombreloc, in case -z combreloc is the default.
2580
2581 2001-09-28 Gerd Moellmann <gerd@gnu.org>
2582
2583 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2584 really going on here.
2585
2586 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2587
2588 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2589
2590 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2591
2592 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2593 utf-8, menu-bar, and latin-N.
2594 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2595 unconditionally now.
2596 (lisp): Add latin-N, since they are preloaded.
2597
2598 2001-09-27 Gerd Moellmann <gerd@gnu.org>
2599
2600 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2601 to the left. Some cleanup.
2602
2603 * xdisp.c (display_mode_element): One more case where a string's
2604 multibyteness should be used for display.
2605
2606 2001-09-26 Gerd Moellmann <gerd@gnu.org>
2607
2608 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2609 reading at EOF.
2610
2611 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
2612 of the only temporarily set echoing flag for deciding when
2613 the cancel echoing.
2614
2615 * keyboard.c (echo_kboard): Make externally visible.
2616
2617 * lisp.h (echo_kboard): Declare extern.
2618
2619 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
2620 fonts_changed_p if we need larger matrices due to vscrolling.
2621 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2622 this round of redisplay if make_cursor_line_fully_visible fails.
2623 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
2624 (try_cursor_movement, try_scrolling): Use them instead of integers.
2625
2626 * dispextern.h (required_matrix_width, required_matrix_height):
2627 Add prototypes.
2628
2629 * dispnew.c (required_matrix_width, required_matrix_height):
2630 New functions.
2631 (allocate_matrices_for_window_redisplay)
2632 (allocate_matrices_for_frame_redisplay: Use them.
2633 Remove parameters CH_DIM.
2634
2635 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2636 and selected_window to the frame of the window whose mode-lines
2637 are displayed, and to the window itself.
2638 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
2639 here.
2640
2641 2001-09-25 Gerd Moellmann <gerd@gnu.org>
2642
2643 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2644 the image cache under us.
2645
2646 * xdisp.c (display_mode_element): If the mode element is a symbol
2647 with a string value, use that string's multibyteness for displaying.
2648
2649 * keyboard.c (read_char): Don't clear a message for a switch-frame
2650 event. From Stefan Monnier <monnier@cs.yale.edu>.
2651
2652 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2653 version for after 21.1.
2654
2655 * xdisp.c (row_containing_pos): Make externally visible.
2656
2657 * dispextern.h (row_containing_pos): Add prototype.
2658
2659 * process.c (send_process): Disable composition if from_byte < 0.
2660 From Kenichi Handa <handa@etl.go.jp>.
2661
2662 2001-09-24 Gerd Moellmann <gerd@gnu.org>
2663
2664 * xterm.c (refreshicon): Function removed.
2665
2666 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2667
2668 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2669
2670 * xterm.c (toplevel): Remove includes in #if 0.
2671
2672 * process.c (sigchld_handler) [LINUX]: Don't return from
2673 the signal handler at the end of the loop.
2674
2675 2001-09-21 Gerd Moellmann <gerd@gnu.org>
2676
2677 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2678 Terminate only if kill returns -1, and errno is ESRCH.
2679
2680 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
2681
2682 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2683
2684 2001-09-20 Gerd Moellmann <gerd@gnu.org>
2685
2686 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2687 since this function can be called during GC.
2688
2689 * callproc.c (Fcall_process): Handle errors from pipe(2).
2690 (child_setup): Delete code in #ifdef vipc.
2691
2692 2001-09-19 Gerd Moellmann <gerd@gnu.org>
2693
2694 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2695 (display_mode_element): Display the string from decode_mode_spec
2696 depending on its multibyteness.
2697
2698 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2699
2700 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2701
2702 2001-09-18 Gerd Moellmann <gerd@gnu.org>
2703
2704 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2705 recursive_edit_unwind.
2706 (recursive_edit_unwind): Set kboard state according to
2707 SINGLE-KBOARD.
2708
2709 * buffer.c (modify_overlay): Don't do nothing if START == END;
2710 This can still be a modification, for example when an overlay has
2711 a before-string or after-string.
2712 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2713 an overlay with before-string or after-string.
2714
2715 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2716 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2717
2718 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2719 first_unchanged_at_end_row is in front of
2720 last_unchanged_at_beg_row. This code should be removed after the
2721 release of 21.1.
2722
2723 2001-09-17 Gerd Moellmann <gerd@gnu.org>
2724
2725 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2726 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2727
2728 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2729 versions >= 2.95.
2730
2731 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2732
2733 * dired.c (Ffile_attributes): Doc fix.
2734
2735 2001-09-14 Gerd Moellmann <gerd@gnu.org>
2736
2737 * fileio.c (Ffile_symlink_p): Fix last change.
2738
2739 * filelock.c (current_lock_owner): Fix last change.
2740
2741 2001-09-13 Gerd Moellmann <gerd@gnu.org>
2742
2743 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2744 take that to mean that the buffer is too small.
2745
2746 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2747 that to mean that the buffer is too small.
2748
2749 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2750 current buffer's multibyteness when discarding the iterator's
2751 stack.
2752
2753 * xfns.c (Fx_window_property): Handle case that property gets
2754 deleted between the two calls to XGetWindowProperty.
2755
2756 2001-09-11 Gerd Moellmann <gerd@gnu.org>
2757
2758 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
2759
2760 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2761 in addition to read-only.
2762
2763 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2764 to t in addition to read-only.
2765
2766 * lisp.h (Qinhibit_modification_hooks): Declare.
2767
2768 * insdel.c (Qinhibit_modification_hooks): New variable.
2769 (syms_of_insdel): Initialize and staticpro it.
2770
2771 * textprop.c (verify_interval_modification): Don't run
2772 modification-hooks if inhibit_modification_hooks.
2773
2774 * dispnew.c (set_window_cursor_after_update): Fix code
2775 finding glyph row containing cursor when cursor_in_echo_area
2776 is >= 0.
2777
2778 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2779 (add_to_log): Use bcopy instead of strcpy.
2780 (init_from_display_pos): Use an explicit loop over bytes in
2781 overlay strings instead of calling index.
2782
2783 2001-09-10 Gerd Moellmann <gerd@gnu.org>
2784
2785 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2786
2787 * dispnew.c (direct_output_for_insert): Don't change IT's
2788 stop_charpos to something in front of its current position.
2789
2790 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2791 `format'.
2792
2793 2001-09-10 Richard M. Stallman <rms@gnu.org>
2794
2795 * frame.c (Fmouse_position): Doc fix.
2796
2797 2001-09-07 Gerd Moellmann <gerd@gnu.org>
2798
2799 * xdisp.c (init_from_display_pos): Don't compare the result
2800 of calling index with NULL.
2801
2802 2001-09-06 Gerd Moellmann <gerd@gnu.org>
2803
2804 * xfns.c (x_set_background_color): Don't change the colors
2805 of the X window of scroll bar widgets.
2806
2807 2001-09-05 Andrew Innes <andrewi@gnu.org>
2808
2809 * w32fns.c (w32_createwindow): Undo last change.
2810
2811 2001-09-05 Gerd Moellmann <gerd@gnu.org>
2812
2813 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2814
2815 * xdisp.c (string_buffer_position): Use *single_char_property*
2816 functions instead of the *single_property* functions.
2817
2818 2001-09-04 Andrew Innes <andrewi@gnu.org>
2819
2820 * w32term.c (w32_read_socket): Add more information to debugging
2821 output.
2822
2823 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2824 from Emacs frames, so that calls to GetClipBox in w32term.c
2825 correctly report when part of a frame is visible (including
2826 scrollbars, etc). This prevents repeated redrawing of frames when
2827 only a scrollbar is visible.
2828 (w32_wnd_proc): Add more frame information to debugging output.
2829
2830 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2831
2832 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2833
2834 2001-09-03 Gerd Moellmann <gerd@gnu.org>
2835
2836 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2837 help-echo for a string which doesn't have help-echo itself, use
2838 get-char-property to obtain the help-echo from the string's buffer
2839 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2840 have mouse-face, look ``under'' the string for mouse-face from an
2841 overlay.
2842 (fast_find_position): Add parameter STOP. In the final row, stop
2843 before glyphs having STOP as object. Don't consider glyphs that
2844 are not from a buffer.
2845
2846 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2847
2848 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2849
2850 * fns.c (Fmd5): Doc fix.
2851
2852 2001-08-31 Gerd Moellmann <gerd@gnu.org>
2853
2854 * composite.c (update_compositions): Do nothing if
2855 inhibit-modification-hooks is set.
2856
2857 2001-08-30 Gerd Moellmann <gerd@gnu.org>
2858
2859 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
2860 and check_message_stack if terminating abnormally. We want
2861 glyph matrices etc. in a core dump.
2862
2863 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2864 (syms_of_xdisp): Initialize them.
2865 (handle_single_display_prop): Don't change point, bind `object',
2866 `position', and `buffer-position' instead to the object having the
2867 `display' property, position in the object and position in the buffer.
2868
2869 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2870 of the buffer if REPLACE is non-nil.
2871
2872 2001-08-29 Gerd Moellmann <gerd@gnu.org>
2873
2874 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2875
2876 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2877
2878 * w32term.c (x_set_glyph_string_background_width)
2879 (show_mouse_face): Track the last changes in xterm.c.
2880
2881 2001-08-28 Gerd Moellmann <gerd@gnu.org>
2882
2883 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2884 string's background width so that multi-line mouse-face is drawn
2885 to the right edge of the window.
2886 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2887 glyphs.
2888
2889 * dispnew.c (direct_output_for_insert): Set updated_area
2890 before inserting/writing glyphs.
2891
2892 * xdisp.c (display_mode_element): Use string_byte_to_char to
2893 determine character positions in strings, use chars_in_text
2894 instead of strwidth.
2895 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2896 a matrix as parameter; this is easier to use from GDB.
2897
2898 2001-08-28 Miles Bader <miles@gnu.org>
2899
2900 * textprop.c (Fprevious_single_char_property_change)
2901 (Fnext_single_char_property_change): Doc fixes.
2902
2903 2001-08-27 Gerd Moellmann <gerd@gnu.org>
2904
2905 * fileio.c (Finsert_file_contents): Allocate, restore, and
2906 free composition data in the case of REPLACE not being nil.
2907
2908 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2909 there exist overlay strings with newlines at POS.
2910 (text_outside_line_unchanged_p): Return 0 if changes start at
2911 START and overlays exist at START. Likewise for END.
2912 (try_window_id): Give up if init_to_row_end returns 0.
2913
2914 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2915 unconditionally.
2916
2917 2001-08-24 Gerd Moellmann <gerd@gnu.org>
2918
2919 * keymap.c (access_keymap): Return the cdr of the binding of
2920 a generic character instead of its definition (KEY . BINDING).
2921
2922 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2923 to 0 also in the REPLACE case.
2924
2925 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2926
2927 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2928 open to determine whether file is readable (as for DOS_NT).
2929
2930 2001-08-23 Gerd Moellmann <gerd@gnu.org>
2931
2932 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2933 coding.type is coding_type_no_conversion or coding_type_raw_text,
2934 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2935 non-nil instead of just setting enable_multibyte_characters in the
2936 buffer to nil.
2937
2938 2001-08-22 Gerd Moellmann <gerd@gnu.org>
2939
2940 * dispextern.h (struct face_cache): Add member
2941 menu_face_changed_p.
2942
2943 * xfaces.c (menu_face_changed_default): New variable.
2944 (menu_face_changed_count): Variable removed.
2945 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2946 the menu_face_changed_default flag, otherwise set the FRAME's
2947 menu_face_changed_p flag if the `menu' face has been changed.
2948 Prevent calling set_font_frame_param if FRAME is t.
2949 (make_face_cache): Initialize cache's menu_face_changed_p
2950 from menu_face_changed_default.
2951 (realize_basic_faces): Look into the frame's face cache to
2952 determine if the menu appearance needs updating.
2953
2954 * keymap.c (access_keymap): Fix last change to not consider
2955 IDX when it has modifiers.
2956
2957 2001-08-21 Gerd Moellmann <gerd@gnu.org>
2958
2959 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2960 . BINDING) exists, where GENERIC-CHAR is the generic character of
2961 the charset of IDX, return BINDING unless there exists a binding
2962 for IDX itself.
2963
2964 2001-08-16 Gerd Moellmann <gerd@gnu.org>
2965
2966 * xrdb.c (SYSV): Don't define on Solaris 2.
2967 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2968
2969 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2970 of the screen line, not text line, containing IT's current position.
2971
2972 2001-08-15 Gerd Moellmann <gerd@gnu.org>
2973
2974 * window.c (window_scroll_pixel_based): Don't recenter if
2975 PT is partially visible in the window.
2976
2977 * xterm.c (expose_window_tree, expose_window, expose_line):
2978 Return 1 when overwriting mouse-face.
2979 (expose_frame): If mouse-face was overwritten, redo it.
2980
2981 * xfaces.c (x_update_menu_appearance): Don't call
2982 set_frame_menubar, let the next redisplay do it.
2983
2984 2001-08-14 Andrew Innes <andrewi@gnu.org>
2985
2986 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2987 drawing glyph string.
2988
2989 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2990
2991 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2992 running HI-UX/MPP.
2993
2994 2001-08-14 Gerd Moellmann <gerd@gnu.org>
2995
2996 * xfaces.c (x_update_menu_appearance): Save and restore value of
2997 interrupt_input_blocked.
2998
2999 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3000
3001 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3002 a line start, move back to the line start.
3003
3004 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3005 exactly when a mini-buffer is active.
3006
3007 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3008 in units of 1/8 character on non window-system frames.
3009 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3010
3011 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3012
3013 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3014 a doc string.
3015
3016 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3017
3018 * keyboard.c (Vpre_help_message): New variable.
3019 (syms_of_keyboard): Initialize and staticpro it.
3020 (show_help_echo): Record current message before displaying a
3021 help-echo, and restore that message when clearing the help.
3022
3023 * xfns.c (x_create_im): Remove prototype.
3024
3025 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3026
3027 * dispnew.c (adjust_glyph_matrix): Undo last change.
3028
3029 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3030
3031 * dispnew.c (adjust_glyph_matrix): In the optimization for
3032 windows whose height has changed, disable partially visible lines.
3033
3034 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3035
3036 * window.c (Frecenter): If ARG < 0, and on a window system
3037 frame, count in some empty lines when we can't move -ARG lines down.
3038
3039 * xdisp.c (start_display): Don't try to determine the continuation
3040 lines width if lines are truncated. It's superfluous and leads to
3041 incorrect results if POS is not visible in the window after
3042 reseating the iterator at the previous line start.
3043
3044 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3045
3046 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3047
3048 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3049
3050 * alloc.c (init_stack): Remove declaration.
3051
3052 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3053
3054 * keyboard.c (read_key_sequence): Check that key is an integer
3055 before comparing it with quit_char.
3056 (add_command_key): Use larger_vector.
3057 (read_char_x_menu_prompt): Instead of converting symbol and
3058 integer events into conses (EVENT . nil), use (EVENT . disabled)
3059 which cannot be confused with valid events.
3060 (read_char): When reading from Vunread_command_events, check for
3061 events of the form (EVENT . disabled) instead of
3062 (EVENT . nil).
3063
3064 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3065 a float, determine the max height from the frame's height.
3066
3067 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3068
3069 * xdisp.c (redisplay_internal): Take message_cleared_p into
3070 account only if minibuf_level == 0.
3071
3072 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3073
3074 * xdisp.c (redisplay_internal): Add a check for the last
3075 displayed message.
3076
3077 * xdisp.c (message_cleared_p): New variable.
3078 (clear_message): Set message_cleared_p when clearing the current
3079 message.
3080 (redisplay_internal): Look at message_cleared_p to capture
3081 the case that the echo area should be cleared.
3082
3083 * keyboard.c (command_loop_1): Fix spelling of
3084 resize_echo_area_exactly.
3085
3086 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3087
3088 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3089
3090 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3091 current matrix when the window gets smaller.
3092
3093 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3094
3095 * print.c (strout): Cast the character passed to insert_char to
3096 unsigned char, to avoid sign extension when it is promoted to int.
3097
3098 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3099
3100 * fileio.c (Finsert_file_contents): Don't treat a return value
3101 of 0 from emacs_read as an IO error.
3102
3103 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3104
3105 * keyboard.c (abs): New macro.
3106 (double_click_fuzz): New variable.
3107 (make_lispy_event): Use it to determine what makes a double-click.
3108 (syms_of_keyboard): DEFVAR_INT it.
3109
3110 * xmenu.c (set_frame_menubar): Take into account that
3111 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3112 <raeburn@gnu.org>.
3113
3114 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3115
3116 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3117
3118 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3119 of row's visible height.
3120
3121 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3122 deal with the first overlay string having an image `display' property.
3123 (try_window_reusing_current_matrix, compute_line_metrics):
3124 Fix computation of row's visible height for the case that part of the
3125 row is invisible above and part of the row is at the same time
3126 invisible below the window.
3127
3128 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3129
3130 * xfns.c (x-show-tip): Doc fix.
3131
3132 * xfns.c (Vx_max_tooltip_size): New variable.
3133 (syms_of_xfns): DEFVAR_LISP it.
3134 (Fx_show_tip): Set frame's window_width to the width of the
3135 window. Use a maximum tooltip size specified by
3136 Vx_max_tooltip_size, if that has valid contents.
3137 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3138
3139 2001-07-26 Andrew Innes <andrewi@gnu.org>
3140
3141 * w32term.c (x_display_list): New variable.
3142 (w32_term_init): Set it.
3143
3144 * w32term.h (x_display_list): New extern.
3145
3146 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3147
3148 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3149 is non-nil, instead of when redisplaying_p is non-zero.
3150 See comment there.
3151 (mark_window_display_accurate_1): Add an assertion.
3152
3153 2001-07-25 Gerd Moellmann <gerd@gnu.org>
3154
3155 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3156
3157 * xfns.c (Fx_file_dialog): Block/unblock input while processing
3158 events so that we get a chance of processing expose events.
3159
3160 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
3161
3162 2001-07-24 Gerd Moellmann <gerd@gnu.org>
3163
3164 * xfns.c (valid_image_p): Protect better against invalid image
3165 specifications. Previous code could signal an error.
3166
3167 2001-07-23 Gerd Moellmann <gerd@gnu.org>
3168
3169 * indent.c (current_column): Fix column computation in the
3170 presence of display table entries.
3171 (current_column_1, Fmove_to_column, compute_motion): Likewise.
3172
3173 * dispnew.c (adjust_glyph_matrix): In the optimization for
3174 windows whose height has changed, use the new window height
3175 to compute which rows to invalidate.
3176
3177 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
3178 (MAX_10_EXP): New macro.
3179 (Fformat): Use it.
3180
3181 * coding.c (code_convert_region): Handle the multibyte case if
3182 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
3183
3184 2001-07-20 Gerd Moellmann <gerd@gnu.org>
3185
3186 * dispextern.h (struct face): Change type of `stipple' to
3187 int; it's an ID.
3188
3189 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
3190
3191 2001-07-19 Gerd Moellmann <gerd@gnu.org>
3192
3193 * dispnew.c (update_window): Don't set the cursor at the end
3194 of the update if display update has been paused.
3195
3196 * composite.h (syms_of_composite): Renamed from syms_of_composition.
3197
3198 2001-07-18 Ken Raeburn <raeburn@gnu.org>
3199
3200 * fns.c (Fset_char_table_default): Check that a charset is defined
3201 before checking its dimension.
3202
3203 2001-07-17 Ken Raeburn <raeburn@gnu.org>
3204
3205 * coding.c (setup_coding_system): Don't do any designation based
3206 on reg_bits if charset is not yet defined.
3207
3208 * lisp.h (XVECTOR): Verify correct object type before returning a
3209 pointer, using eassert.
3210
3211 2001-07-17 Gerd Moellmann <gerd@gnu.org>
3212
3213 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
3214 Increase to 4096 because of paste problems reported on GNU/Linux.
3215
3216 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
3217
3218 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
3219
3220 2001-07-16 Gerd Moellmann <gerd@gnu.org>
3221
3222 * fileio.c (unwind_read): Function removed.
3223 (read_non_regular, read_non_regular_quit): New functions.
3224 (Finsert_file_contents): When reading from non-regular files,
3225 arrange to catch a `quit' and terminate the loop. Rearrange
3226 code so that a `quit' when reading from a regular file doesn't
3227 insert text in the buffer.
3228
3229 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
3230 Clear faces afterwards.
3231 (clear_font_table): Take a x_display_info parameter. Don't free
3232 fonts being the default font of any frame on the given display.
3233
3234 2001-07-13 Gerd Moellmann <gerd@gnu.org>
3235
3236 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
3237 instead of CHAR_STRING which can signal an error.
3238
3239 * charset.c (char_to_string_1): Extracted from char_to_string.
3240 Return -1 instead of signaling an error.
3241 (char_to_string): Use it.
3242
3243 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3244
3245 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3246
3247 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3248 is t, don't try to append anything to it.
3249
3250 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3251
3252 * dired.c (file_name_completion): Pass dp->d_name to
3253 Fstring_match, not elt, which is always nil here.
3254
3255 2001-07-12 Gerd Moellmann <gerd@gnu.org>
3256
3257 * xselect.c (x_decline_selection_request): Handle errors
3258 caused by receivers that have vanished.
3259
3260 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3261 ignoring events on foreign windows in #if 0. Always dispatch
3262 the event after checking it with x_handle_property_notify.
3263
3264 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
3265 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3266 TRACE macros to facilitate debugging. Add additional trace statements.
3267 (toplevel): Add prototypes for file-local functions.
3268 (x_atom_to_symbol): Remove DPYINFO parameter.
3269
3270 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3271
3272 * w32menu.c (menubar_selection_callback, w32_menu_show):
3273 Initialize `entry' to nil.
3274 (w32_dialog_show): Remove unused `save_wv' variable.
3275 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3276
3277 2001-07-11 Gerd Moellmann <gerd@gnu.org>
3278
3279 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3280
3281 * fileio.c (unwind_read): Print a message when discarding inserted
3282 text or switching the buffer to unibyte. Change parameter.
3283 (Finsert_file_contents): Don't pass VISIT to unwind_read.
3284
3285 * fileio.c (unwind_read): New function.
3286 (Finsert_file_contents): Record it as unwind-function for
3287 the case that reading is interrupted by C-g.
3288
3289 2001-07-10 Gerd Moellmann <gerd@gnu.org>
3290
3291 * dispnew.c (update_window): Don't skip the header-line
3292 update when scrolling_window returns 0.
3293
3294 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3295
3296 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
3297 for the case that x_decode_color signals an error.
3298
3299 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3300
3301 2001-07-09 Gerd Moellmann <gerd@gnu.org>
3302
3303 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3304 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3305 around ioctls.
3306
3307 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3308
3309 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3310 doc string line for dos-timezone-offset.
3311
3312 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3313 inline assembly, to avoid compiler warnings.
3314 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3315 line for dos-unsupported-char-glyph.
3316
3317 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3318
3319 2001-07-05 Gerd Moellmann <gerd@gnu.org>
3320
3321 * sound.c: Include Emacs' header files with #include "...".
3322
3323 * eval.c (specbind): Additionally record the buffer that was
3324 current when a buffer-local or frame-local variable was bound.
3325
3326 2001-07-04 Gerd Moellmann <gerd@gnu.org>
3327
3328 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3329 to unibyte characters in unibyte buffers.
3330
3331 2001-07-03 Gerd Moellmann <gerd@gnu.org>
3332
3333 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3334 the frame on the binding stack. Change format of entries for
3335 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3336 (unbind_to): Handle unbinding a frame-local variable.
3337
3338 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
3339 glyphs and truncation glyphs at the end of a row from its pixel width.
3340 (dump_glyph_row): Print row's continuation_lines_width.
3341 (try_window_id): Take the shortcut if ZV is visible in the
3342 window, but there are actually no changes at ZV.
3343
3344 2001-07-02 Gerd Moellmann <gerd@gnu.org>
3345
3346 * xterm.h (x_free_dpy_colors): Add prototype.
3347
3348 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3349 right number of arguments.
3350
3351 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3352 ($(lwlibdir)TAGS): New target.
3353 (TAGS): Fix dependency list.
3354
3355 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3356 with input blocked.
3357
3358 2001-06-30 Gerd Moellmann <gerd@gnu.org>
3359
3360 * emacs.c (main): Remove extern declaration for sys_nerr, which
3361 isn't used and causes a compilation error with GCC 3.0 on
3362 FreeBSD 4.3.
3363
3364 2001-06-27 Gerd Moellmann <gerd@gnu.org>
3365
3366 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3367 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
3368 (toplevel): Include <signal.h> and syssignal.h.
3369
3370 * sound.c (vox_configure, vox_close): Turn off atimers
3371 around ioctls.
3372
3373 2001-06-26 Gerd Moellmann <gerd@gnu.org>
3374
3375 * keyboard.c (read_char) <non_reread>: Record the previous idle
3376 start time before calling timer_stop_idle.
3377 (read_char) <reread_first>: After processing a help-echo event,
3378 restore the previous idle start time.
3379
3380 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3381 the start of invisible text.
3382 (setup_for_ellipsis): New function.
3383 (next_overlay_string): After all overlay strings have been
3384 processed, display an ellipsis if necessary.
3385 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3386 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3387
3388 * dispextern.h (struct iterator_stack_entry): Add member
3389 display_ellipsis_p.
3390
3391 2001-06-25 Gerd Moellmann <gerd@gnu.org>
3392
3393 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3394 on the value of the wait-for-wm frame parameter.
3395
3396 * xterm.h (struct x_output): Add member wait_for_wm.
3397
3398 * xfns.c (Qwait_for_wm): New variable.
3399 (x_frame_parms): Add entry for `wait-for-wm".
3400 (x_set_wait_for_wm): New function.
3401 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3402 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3403
3404 * xdisp.c (try_window_id) <all changes below window end>: Don't
3405 take this shortcut if ZV is visible in the window.
3406 (try_window_id): When checking for window start being in changed
3407 text, don't check that the buffer's size has changed.
3408
3409 2001-06-23 Richard M. Stallman <rms@gnu.org>
3410
3411 * minibuf.c (Fcompleting_read): Doc fix.
3412
3413 2001-06-19 Gerd Moellmann <gerd@gnu.org>
3414
3415 * composite.c (Ffind_composition_internal): Accept ZV
3416 and a string's end position as POS.
3417
3418 2001-06-18 Gerd Moellmann <gerd@gnu.org>
3419
3420 * composite.c (Ffind_composition_internal): Check POS
3421 for validity.
3422
3423 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3424
3425 * editfns.c (Fmessage_box): If the frame is not under a window
3426 system, output the message in the echo area.
3427
3428 2001-06-14 Richard M. Stallman <rms@gnu.org>
3429
3430 * xdisp.c (try_window_id): When EOB is visible, don't treat
3431 insertion at EOB as if it were "off the bottom of the screen."
3432
3433 2001-06-11 Andrew Innes <andrewi@gnu.org>
3434
3435 * w32proc.c (create_child): Add new parameter is_gui_app.
3436 (w32_executable_type): Add new parameter is_gui_app.
3437 (sys_spawnve): Use it.
3438 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3439 SIGQUIT. This matches better how the signals are interpreted by
3440 MSVC compiled programs.
3441 (syms_of_ntproc): Update docstring.
3442
3443 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3444
3445 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3446 well otherwise note_mouse_highlight might optimize away highlighting
3447 if we pass over that same overlay again.
3448
3449 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3450
3451 * lread.c (Fload): Document that the argument is run via
3452 substitute-in-file-name.
3453
3454 2001-05-31 Gerd Moellmann <gerd@gnu.org>
3455
3456 * Makefile.in (bootstrap-doc): New target.
3457 (bootstrap-emacs): Depend on it.
3458
3459 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3460 auto-save-list-file-name when shutting down Emacs, because
3461 creating the directory might signal an error, and leaves
3462 Emacs in a strange state.
3463
3464 * term.c: (tty_cursor_hidden): New variable.
3465 (update_begin): Don't call tty_hide_cursor. Clean up.
3466 (update_end, set_terminal_window, set_scroll_region): Clean up.
3467 (ring_bell, reset_terminal_modes): Clean up.
3468 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3469 on tty_cursor_hidden.
3470 (write_glyphs): Call tty_hide_cursor.
3471
3472 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3473
3474 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3475
3476 2001-05-30 Gerd Moellmann <gerd@gnu.org>
3477
3478 * xfns.c (enum image_value_type): New enumerator
3479 IMAGE_STRING_OR_NIL_VALUE.
3480 (parse_image_spec): Handle it.
3481 (xbm_format, pbm_format): Use it for :foreground and :background.
3482 (xbm_load, pbm_load): Check for nil color names.
3483
3484 * xterm.c (note_mouse_highlight): If an overlapping overlay
3485 exists, but we find that we highlight the same overlay as before,
3486 don't do the highlighting again.
3487
3488 2001-05-29 Gerd Moellmann <gerd@gnu.org>
3489
3490 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3491 Protect unibyte strings created by replacing their multibyte
3492 equivalents in menu_items.
3493
3494 * keymap.c (Fsingle_key_description): NUL-terminate the string
3495 buffer before calling build_string.
3496
3497 * callproc.c (Fcall_process): Deal with decode_coding returning
3498 CODING_FINISH_INCONSISTENT_EOL.
3499
3500 2001-05-28 Gerd Moellmann <gerd@gnu.org>
3501
3502 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3503 an item's name with its key description in case the description
3504 is a multibyte string.
3505
3506 * keymap.c (Fsingle_key_description): Create a multibyte string
3507 only if necessary.
3508
3509 * macros.c (Fstart_kbd_macro): Doc fix.
3510
3511 * xterm.c (cursor_in_mouse_face_p): New function.
3512 (x_draw_stretch_glyph_string): Use it to choose a different GC
3513 when drawing a cursor within highlighted text.
3514
3515 * editfns.c (char_property_eq): Put in #if 0.
3516
3517 * indent.c (string_display_width): Put in #if 0.
3518
3519 * lread.c (Fload): Remove unused label.
3520
3521 * termcap.c (speeds): Put in #if 0.
3522
3523 2001-05-18 Gerd Moellmann <gerd@gnu.org>
3524
3525 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3526
3527 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3528 transformation matrix by 10.
3529
3530 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3531
3532 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3533 only if it's equal to the former foreground pixel color.
3534 (x_set_foreground_color, x_set_background_color)
3535 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3536
3537 2001-05-16 Dave Love <fx@gnu.org>
3538
3539 * insdel.c (signal_before_change, signal_after_change): Consider a
3540 local change hook which changes the buffer.
3541
3542 * process.c (read_process_output): Don't call signal_after_change
3543 and update_compositions after insert_from_string_before_markers.
3544
3545 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3546
3547 * xfaces.c (split_font_name): Use the right field when
3548 checking for `[...]' syntax.
3549
3550 * buffer.c (copy_overlays): New function.
3551 (clone_per_buffer_values): Use it.
3552
3553 * buffer.h (OVERLAY_PLIST): New macro.
3554
3555 * keymap.c (Fsingle_key_description): Replace a build_string with
3556 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3557
3558 * fontset.c (Ffontset_info): Check that face is non-null
3559 before accessing its fields.
3560
3561 2001-05-15 Gerd Moellmann <gerd@gnu.org>
3562
3563 * keyboard.c (read_key_sequence): Prevent generating a fake
3564 prefix key twice.
3565
3566 * xfaces.c (split_font_name): Handle `[...]' for the right
3567 font name fields.
3568
3569 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3570 of CCL_STAT_INVALID_CMD.
3571
3572 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3573
3574 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3575 in <var> has no default value yet.
3576
3577 * xfaces.c (try_alternative_families): First try the FAMILY.
3578 And if nothing is found in the end, try again with scalable fonts.
3579 (try_font_list): Let try_alternative_families do a bit more of
3580 the work. Only use FAMILY if it is not nil.
3581 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3582
3583 2001-05-14 Gerd Moellmann <gerd@gnu.org>
3584
3585 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3586 pointer shape when show_mouse_face has already done it.
3587
3588 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
3589 full-width rows.
3590
3591 * xfaces.c (split_font_name): Make sure to leave the loop
3592 with the right value of `i'.
3593
3594 * xfaces.c (split_font_name): Handle matrix transformations
3595 in the pixel and point size fields of XLFD font names.
3596 (xlfd_point_size): Likewise.
3597
3598 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3599
3600 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
3601 (x_to_w32_font): Add prototype.
3602
3603 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3604 redefining, to avoid compiler warnings.
3605
3606 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3607
3608 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3609 (w32_get_bdf_glyph): Cast between unsigned char and char when
3610 passing arguments to subroutines, to shut up compiler warnings.
3611 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3612 GET_HEX_VAL.
3613
3614 * xfaces.c: Include keyboard.h before frame.h, not after it.
3615
3616 * widget.c: Include keyboard.h before frame.h.
3617
3618 * w32term.h (struct image, struct face): Forward declaration, to
3619 avoid compiler warnings.
3620
3621 2001-05-11 Gerd Moellmann <gerd@gnu.org>
3622
3623 * keyboard.c (read_key_sequence): Don't modify events when
3624 generating fake prefix keys (mode-line, scroll-bar, ...) since
3625 this prevents proper processing of such events when pushed back
3626 into unread-command-events.
3627
3628 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3629 actually redrawn. Make the function static.
3630 (note_mouse_highlight): Fix a case where the mouse cursor
3631 was changed back to the text cursor.
3632
3633 * xterm.h (clear_mouse_face): Remove prototype.
3634
3635 * xdisp.c (try_window_id): Fix the fix and set the right
3636 window_end_vpos.
3637
3638 * xdisp.c (try_window_id): Fix computation of window end in the
3639 case that lines were deleted at the end of the window. Add some
3640 more debug_method_adds.
3641
3642 * xfaces.c (try_alternative_families): New function.
3643 (try_font_list): Use it. If ATTRS specifies a family, check
3644 fonts from that family first.
3645 (choose_face_font): Remove code setting the family part of
3646 the pattern to nil.
3647
3648 2001-05-10 Gerd Moellmann <gerd@gnu.org>
3649
3650 * xdisp.c (try_window_id): Fix case of all changes before
3651 the window start.
3652
3653 * xdisp.c (try_window_id): Add some xasserts.
3654
3655 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3656
3657 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3658
3659 2001-05-09 Dave Love <fx@gnu.org>
3660
3661 * xdisp.c (GIVE_UP): Fix for K&R C.
3662
3663 2001-05-09 Gerd Moellmann <gerd@gnu.org>
3664
3665 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3666
3667 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3668 back to the text cursor shape without need.
3669
3670 2001-05-07 Gerd Moellmann <gerd@gnu.org>
3671
3672 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3673
3674 * dispextern.h (inverse_video): Declare extern.
3675
3676 * keyboard.c (delete_kboard): Handle the case that selected_frame
3677 has been deleted in the course of x_connection_closed.
3678
3679 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3680
3681 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3682 Fix the change from 2001-04-30.
3683
3684 2001-05-03 Gerd Moellmann <gerd@gnu.org>
3685
3686 * xfns.c (file_dialog_unmap_cb): New function.
3687 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3688 where a dialog is closed via the window manager.
3689
3690 * xdisp.c (try_window_id): Cases of changes all in front of
3691 the window start or all below the window end mostly rewritten.
3692 (redisplay_window): Move the tests if try_window_id is
3693 applicable to try_window_id.
3694 (GIVE_UP): New macro.
3695
3696 2001-05-02 Gerd Moellmann <gerd@gnu.org>
3697
3698 * xterm.c (expose_window): Return int. If W is the window
3699 currently being updated, mark the frame garbaged.
3700 Fix computation of rows intersecting the exposed rectangle.
3701 (expose_window_tree): Stop when expose_window returns 0.
3702
3703 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3704 again if it has already been drawn.
3705
3706 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3707
3708 * syntax.c (update_syntax_table): Check that oldi has the same
3709 properties as old_prop before deciding not to invalidate.
3710
3711 2001-04-30 Gerd Moellmann <gerd@gnu.org>
3712
3713 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3714 read-only text that is so because of text properties.
3715
3716 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
3717 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
3718 windows that are components of a Lucid menu bar.
3719
3720 2001-04-27 Gerd Moellmann <gerd@gnu.org>
3721
3722 * term.c (turn_on_face): Fix reverse video handling on terminals
3723 that don't support colors.
3724
3725 2001-04-26 Gerd Moellmann <gerd@gnu.org>
3726
3727 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3728 a non-buffer.
3729
3730 2001-04-25 Gerd Moellmann <gerd@gnu.org>
3731
3732 * term.c (toggle_highlight): New function.
3733 (turn_on_face): Change handling of reverse video.
3734
3735 * process.c (wait_reading_process_input):
3736 Call record_asynch_buffer_change only if a timer really changed buffers.
3737
3738 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3739 of the number of overlays to check.
3740
3741 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3742
3743 * xdisp.c (try_window_id): Fix a case where window_end_pos
3744 and window_end_bytepos were not adjusted.
3745
3746 2001-04-23 Gerd Moellmann <gerd@gnu.org>
3747
3748 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3749 zero instead of -1.
3750
3751 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3752
3753 * process.c (wait_reading_process_input) [!subprocesses]:
3754 Don't reference waiting_for_user_input_p, it's not defined in the
3755 branch without async subprocesses support.
3756
3757 2001-04-19 Gerd Moellmann <gerd@gnu.org>
3758
3759 * keyboard.c (delete_kboard): Prevent a dangling reference
3760 from current_kboard to KB, which is freed.
3761
3762 * process.c (wait_reading_process_input):
3763 Call record_asynch_buffer_change after running timers, to make
3764 read_key_sequence aware of buffer changes from under it.
3765
3766 2001-04-18 Gerd Moellmann <gerd@gnu.org>
3767
3768 * xfaces.c (Qscalable_fonts_allowed): New variable.
3769 (realizing_basic_faces_p): Removed.
3770 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3771 removed.
3772 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
3773 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3774 for scalable-fonts-allowed to t.
3775
3776 * fileio.c (Finsert_file_contents): If the file size returned from
3777 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
3778 read from files on a procfs whose contents are generated dynamically.
3779
3780 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3781
3782 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3783 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3784 (__memalign_hook): Make the two prototypes consistent.
3785
3786 2001-04-17 Gerd Moellmann <gerd@gnu.org>
3787
3788 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3789 matrix of mini-windows.
3790
3791 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3792
3793 * intervals.c (find_interval): Don't rebalance during signal handling.
3794
3795 2001-04-11 Gerd Moellmann <gerd@gnu.org>
3796
3797 * fns.c: Include blockinput.h.
3798
3799 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3800
3801 2001-04-10 Gerd Moellmann <gerd@gnu.org>
3802
3803 * fns.c (Fcompare_strings): Fix return values.
3804
3805 * window.c (window_scroll): Change the meaning of N to mean
3806 N screen-fulls or N lines.
3807 (window_scroll_pixel_based, window_scroll_line_based)
3808 (scroll_command, Fscroll_other_window): Change accordingly.
3809
3810 * window.c (window_scroll_pixel_based, Frecenter):
3811 Call window_box_height instead of using it.last_visible_y for the
3812 height of the window.
3813
3814 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3815 instead of using it.last_visible_y for the height of the window.
3816
3817 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
3818 From Dan Holmsand <dan@eyebee.com>.
3819
3820 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
3821 able to write to hidden and system files. From Dan Holmsand
3822 <dan@eyebee.com>.
3823
3824 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3825 Holmsand <dan@eyebee.com>.
3826
3827 2001-04-09 Gerd Moellmann <gerd@gnu.org>
3828
3829 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3830
3831 * window.c (window_internal_height): Return 1 less if the
3832 window has a header line.
3833
3834 * xdisp.c (try_window_id): When scrolling on a terminal, take
3835 the change of window_internal_height into account.
3836
3837 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3838
3839 * gmalloc.c (align): If the argument SIZE would overflow
3840 __malloc_ptrdiff_t, fail right away.
3841
3842 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3843
3844 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3845 Make sure the tooltip is completely visible.
3846 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3847
3848 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3849
3850 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3851
3852 2001-04-06 Dave Love <fx@gnu.org>
3853
3854 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3855 Fix test of `from'.
3856
3857 2001-04-06 Gerd Moellmann <gerd@gnu.org>
3858
3859 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
3860
3861 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3862
3863 2001-04-05 Gerd Moellmann <gerd@gnu.org>
3864
3865 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3866
3867 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
3868
3869 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3870 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3871
3872 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3873 shell widget's position only if it is non-null.
3874
3875 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3876 Set f->output_data.x->widget to null after destroying it.
3877
3878 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3879 FILENAME to bring it in synch with the documentation.
3880
3881 * xfaces.c (realizing_basic_faces_p): Renamed from
3882 realize_default_face_p.
3883 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3884 (realize_default_face): Don't set the flag.
3885
3886 2001-04-04 Gerd Moellmann <gerd@gnu.org>
3887
3888 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3889
3890 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3891
3892 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3893 the buffer that was used for echoing.
3894
3895 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3896 (first_font_matching): Removed unused function.
3897 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3898 (may_use_scalable_font_p): Remove parameter FONT; rename
3899 parameter NAME to FONT.
3900 (x_face_list_fonts): Fix missing bounds check.
3901 (realizing_default_face_p): New variable.
3902 (realize_default_face): Set and clear that flag.
3903 (x_face_list_fonts): When called during the realization of the
3904 default face, and no matching fonts are found when ignoring
3905 scalable fonts and fonts matching a regexp from
3906 face-ignored-fonts, try without ignoring fonts.
3907
3908 2001-04-03 Gerd Moellmann <gerd@gnu.org>
3909
3910 * xfns.c (postprocess_image): New function.
3911 (lookup_image): Call it for all image types except PostScript.
3912 (x_kill_gs_process): Call postprocess_image.
3913
3914 * xterm.c (x_use_underline_position_properties): New variable.
3915 (x_draw_glyph_string): Use it.
3916 (syms_of_xterm): DEFVAR_BOOL it.
3917
3918 2001-04-02 Gerd Moellmann <gerd@gnu.org>
3919
3920 * xterm.c (x_alloc_nearest_color_1): New function.
3921 (x_alloc_nearest_color): Use it.
3922 (x_color_cells): Take a Display as argument, instead of a frame.
3923 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3924 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3925 (x_initialize): Register cvt_string_to_pixel as resource converter
3926 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3927
3928 2001-03-30 Gerd Moellmann <gerd@gnu.org>
3929
3930 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3931 (set_iterator_to_next): If a string from a display property ends,
3932 consider the case that this might also be the end of an
3933 overlay string having the display property.
3934
3935 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
3936
3937 * xdisp.c (reseat_to_string): Undo last change.
3938
3939 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3940 matrix of a window when the header line changes, when
3941 new rows are allocated, or when the width changes.
3942
3943 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3944
3945 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
3946
3947 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3948
3949 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3950 deprecated.
3951
3952 2001-03-29 Gerd Moellmann <gerd@gnu.org>
3953
3954 * data.c (Fsubr_interactive_form): New function.
3955 (syms_of_data): Defsubr it.
3956
3957 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3958 (live_float_p, live_misc_p): Return 1 only if the offset of the
3959 pointer in its block is >= 0.
3960
3961 2001-03-28 Paul Eggert <eggert@twinsun.com>
3962
3963 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3964 microseconds calcuation. Avoid double-rounding problem.
3965 In doc string, warn that the result is approximate.
3966
3967 2001-03-28 Gerd Moellmann <gerd@gnu.org>
3968
3969 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3970 bind `inhibit-eval-during-redisplay' to t.
3971
3972 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3973
3974 * xdisp.c (inhibit_eval_during_redisplay)
3975 (Qinhibit_eval_during_redisplay): New variables.
3976 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3977 don't eval, return nil instead.
3978 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3979 Initialize Qinhibit_eval_during_redisplay.
3980
3981 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3982 the iterator's multibyte_p flag.
3983
3984 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3985 instead of setting it to zero; it's incremented for each frame
3986 where the menu face is changed.
3987
3988 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3989 change bottom shadow accordingly.
3990
3991 * xterm.c (expose_window_tree, expose_frame): Don't compute
3992 intersections here.
3993 (expose_window): Do it here instead.
3994 (x_draw_glyph_string): Fix a computation of the underline position.
3995
3996 * bytecode.c (BYTE_CODE_QUIT): New macro.
3997 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3998
3999 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4000
4001 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4002 Give up if matrix starts in an ellipsis.
4003 (init_from_display_pos): Do nothing if POS doesn't specify
4004 a dpvec_index but the iterator has such a position.
4005
4006 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4007
4008 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4009 x/y position is (0, 0) after destroying the menu bar, restore
4010 its original position.
4011
4012 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4013 (init_from_display_pos): Use it.
4014 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4015
4016 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4017
4018 * xdisp.c (try_window_id): Undo last change.
4019
4020 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4021
4022 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4023
4024 * buffer.c (syms_of_buffer): Doc fix.
4025
4026 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4027
4028 * xfaces.c (x_update_menu_appearance): Use local variable
4029 popup_path for setting font resources.
4030
4031 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4032
4033 * frame.c (Fframe_list): Don't reference tip_frame if
4034 HAVE_WINDOW_SYSTEM is not defined.
4035
4036 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4037 <wl@gnu.org>.
4038
4039 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4040
4041 * xdisp.c (init_from_display_pos): Test invisible property
4042 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4043
4044 * xdisp.c (redisplay_internal) <update one window>: Make sure
4045 last_arrow_position and last_arrow_string are set.
4046
4047 * frame.c (Fframe_list): Don't return a tooltip frame.
4048
4049 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4050
4051 * xdisp.c (mark_window_display_accurate_1): New function,
4052 extracted from mark_window_display_accurate.
4053 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4054 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4055 (mark_window_display_accurate): Use it.
4056 (redisplay_internal): Use it for the selected window.
4057 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4058 for the selected frame.
4059
4060 * xdisp.c Use make_number, for readability.
4061 (try_window_id): Disable rows below the window end.
4062 (try_window_reusing_current_matrix): Use cursor_row_p.
4063 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4064 of rows.
4065 (init_from_display_pos): If POS specifies a position in a display
4066 vector, maybe get the iterator set up for that ellipsis.
4067
4068 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4069
4070 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4071
4072 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4073
4074 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4075
4076 * xfaces.c (x_update_menu_appearance): Use a different path
4077 for Lucid popup menus.
4078
4079 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4080
4081 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4082
4083 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4084 (string_buffer_position): Use `make_number'.
4085
4086 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4087
4088 * xfaces.c (x_update_menu_appearance): Renamed from
4089 x_set_menu_face_resources. Use different resources for popups.
4090
4091 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4092 (GC_CHECK_STRING_BYTES): Don't define.
4093
4094 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4095 Removed, together with subroutines.
4096 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4097 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4098
4099 * dispextern.h (x_set_menu_resources_from_menu_face):
4100 Remove prototype.
4101
4102 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4103 Remove calls to x_set_menu_resources_from_menu_face.
4104
4105 * xfaces.c (xm_set_menu_resources_from_menu_face):
4106 Remove #ifndef LESSTIF_VERSION.
4107
4108 * xmenu.c: Include widget.h.
4109 (single_submenu): Return int. Some cleanup.
4110 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4111
4112 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4113
4114 * xterm.c (x_update_window_end): Handle overwritten mouse face
4115 also for tool bar windows.
4116 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4117 DRAW is DRAW_IMAGE_RAISED.
4118
4119 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4120
4121 * print.c (syms_of_print): Doc fixes.
4122
4123 * fns.c (Fmd5): Doc fix.
4124
4125 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4126
4127 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4128 Clear area of the frame not occupied by the scroll bar.
4129
4130 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4131 tip frame's root window buffer to *tip* right after creating
4132 the frame.
4133
4134 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4135 is an integer don't have to be for space characters.
4136
4137 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4138
4139 * indent.c (current_column, current_column_1, Fmove_to_column)
4140 (compute_motion): Handle characters from display vectors differently.
4141
4142 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4143
4144 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4145 drawing glyph string.
4146
4147 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4148
4149 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4150 (command_loop_1): Undo last change.
4151
4152 * xterm.c (fast_find_position): Return the correct vpos.
4153
4154 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
4155 non-null, set a per-buffer value in BUF instead of the current buffer.
4156 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
4157 Call store_symval_forwarding with BUF null.
4158 (set_internal): Call store_symval_forwarding with the BUF
4159 parameter passed to set_internal. Formerly, the value was always
4160 set in the current buffer; the buffer recorded in specbind for
4161 this case wasn't used.
4162 (arith_driver): Reindent.
4163
4164 * buffer.c (swap_out_buffer_local_variables):
4165 Call store_symval_forwarding with BUF null.
4166
4167 * lisp.h (store_symval_forwarding): Change prototype.
4168
4169 * eval.c (specbind): Call store_symval_forwarding with BUF null.
4170
4171 2001-03-14 Gerd Moellmann <gerd@gnu.org>
4172
4173 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
4174 FOR_DELETION. Avoid resizing the mini-window of the selected
4175 frame if FOR_DELETION is set.
4176 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
4177 (Fmake_frame_invisible): Change calls to do_switch_frame for new
4178 signature.
4179
4180 * window.c (Fset_window_configuration): Change call to
4181 do_switch_frame to new format.
4182
4183 * keyboard.c (quit_throw_to_read_char): Change call to
4184 do_switch_frame to new format.
4185
4186 * lisp.h (do_switch_frame): Change prototype.
4187
4188 * frame.c (Fframe_parameters): In the `buffer-list' frame
4189 parameter, store the buffer list of FRAME, not the list of the
4190 selected frame.
4191
4192 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4193 box just because the glyph row's full_width_p flag is set.
4194
4195 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
4196
4197 * xdisp.c (highlight_trailing_whitespace): On character terminals,
4198 skip the padding blanks inserted in extend_face_to_end_of_line,
4199 before checking for trailing whitespace.
4200
4201 2001-03-13 Gerd Moellmann <gerd@gnu.org>
4202
4203 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
4204 Remove special handling for LessTif/Motif.
4205 (toplevel): Don't include Xm/Xm.h.
4206
4207 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
4208 Remove workaround code for LessTif; it doesn't work anymore.
4209
4210 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
4211 Xm/ScrollBarP.h.
4212
4213 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
4214 Don't access private scroll bar data; it's no longer necessary with
4215 contemporary LessTif.
4216
4217 * xfaces.c (xm_set_menu_resources_from_menu_face):
4218 Change #if 0 to #ifndef LESSTIF_VERSION.
4219
4220 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
4221 removing button grabs.
4222
4223 2001-03-13 Kenichi Handa <handa@etl.go.jp>
4224
4225 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
4226 and clip-large-size-font as obsolete.
4227
4228 * lread.c (read_multibyte): Check the validity of multibyte
4229 sequence. If invalid, return the first byte.
4230
4231 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4232
4233 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
4234 before running the command; timer functions or process
4235 filters may have set it.
4236
4237 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4238
4239 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4240 Doc fix.
4241
4242 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4243
4244 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4245 to sprintf.
4246
4247 2001-03-09 Gerd Moellmann <gerd@gnu.org>
4248
4249 * dispextern.h (string_buffer_position): Add prototype.
4250
4251 * xdisp.c (string_buffer_position, display_prop_string_p)
4252 (single_display_prop_string_p): New functions.
4253
4254 * xterm.c (note_mouse_highlight): If there's no help-echo on
4255 a string, look at the buffer text ``under'' it.
4256
4257 * keyboard.c (make_lispy_event): Add string info to the event,
4258 analogous to what's done on mode lines.
4259 (read_key_sequence): For a click on a string, consider `local-map'
4260 and `keymap' of that string.
4261
4262 * keyboard.c (make_lispy_event, make_lispy_movement):
4263 Adjust calls to buffer_posn_from_coords to new format.
4264
4265 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4266
4267 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4268 POS; return void.
4269
4270 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4271 flags argument to emacs_open; it seems to conflict with O_EXCL.
4272
4273 2001-03-09 Kenichi Handa <handa@etl.go.jp>
4274
4275 * composite.h (struct composition): Change types of members;
4276 glyph_len to unsigned, width to unsigned short.
4277
4278 2001-03-08 Andrew Innes <andrewi@gnu.org>
4279
4280 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4281 menu titles.
4282
4283 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4284
4285 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4286 instead of nil.
4287
4288 * xterm.c (note_mouse_highlight): Handle mouse-face and
4289 help-echo in strings.
4290 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4291 (fast_find_string_pos): New function.
4292
4293 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4294 (display_string): Call face_at_string_position with new parameter.
4295
4296 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4297 Handle `mouse-face'.
4298
4299 * dispextern.h (face_at_string_position): Change prototype.
4300
4301 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
4302
4303 * keyboard.c (make_lispy_event): Avoid generating drag events
4304 if the mouse hasn't actually moved to another buffer position.
4305
4306 2001-03-08 Dave Love <fx@gnu.org>
4307
4308 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
4309
4310 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4311
4312 * process.c (Fset_process_window_size): Fix a typo.
4313
4314 2001-03-08 Kenichi Handa <handa@etl.go.jp>
4315
4316 * coding.c (detect_coding_sjis): Do more rigid check.
4317 (detect_coding_big5): Likewise.
4318 (decode_coding_sjis_big5): Likewise.
4319 (Fdetect_coding_region): Call detect_coding_system with tailing
4320 anchor byte `\0' for more rigid detection.
4321 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
4322 (Fdetect_coding_string): Likewise.
4323
4324 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4325
4326 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4327 a string before extracting its data.
4328
4329 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4330
4331 * window.c (Frecenter): Rewrite code handling negative values
4332 of ARG on graphical frames.
4333
4334 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4335
4336 * window.c (displayed_window_lines): If W->start is outside the
4337 accessible portion of the buffer, call start_display with BEGV or
4338 ZV instead of W->start.
4339
4340 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4341
4342 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4343
4344 * process.c (Fset_process_filter): Don't crash if the input
4345 file descriptor of PROCESS is closed.
4346 (Fset_process_window_size): Likewise.
4347
4348 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4349
4350 * xterm.c (XTflash): Make the timeout of select shorter, and call
4351 select repeatedly until the desired time expires.
4352
4353 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4354
4355 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4356
4357 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4358
4359 * lisp.h (Vwindow_list): Declare extern.
4360
4361 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4362
4363 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4364
4365 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4366
4367 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4368 to detect a case where we have to highlight a different region
4369 despite not having left the currently highlighted region.
4370 Set mouse_face_overlay in the x_display_info.
4371 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
4372
4373 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4374
4375 * buffer.c (mouse_face_overlay_overlaps): New function.
4376
4377 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4378 (Qmouse_face): Declare extern.
4379
4380 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4381 if face_change_count is non-zero.
4382
4383 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4384
4385 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4386 that the source is unibyte.
4387
4388 2001-03-05 Dave Love <fx@gnu.org>
4389
4390 * xterm.c (XTmouse_position): Fix typo.
4391
4392 2001-03-05 Gerd Moellmann <gerd@gnu.org>
4393
4394 * minibuf.c (read_minibuf): Clean up the binding stack if
4395 called noninteractively.
4396
4397 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4398
4399 * coding.c (syms_of_coding): Docstring modified.
4400
4401 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4402
4403 * charset.c (char_to_string): If a single byte char has modifier
4404 bits that can't be reflected to the character code, ignore them
4405 instead of signaling an error.
4406
4407 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4408
4409 * s/msdos.h: Update copyright notice.
4410
4411 * dosfns.h: Update copyright notice.
4412
4413 * dosfns.c: Update copyright notice.
4414
4415 * msdos.c: Update copyright notice.
4416
4417 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4418
4419 * xterm.c (glyph_rect): New function.
4420 (XTmouse_position): Use it to raise the threshold for mouse
4421 movement event generation.
4422
4423 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4424
4425 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4426 specifies (reverse . t), reverse the initial screen colors.
4427 (IT_set_frame_parameters): If the property is foreground-color,
4428 but we are reversing the colors, set bg_set, not fg_set.
4429 Likewise for setting background-color and reversing: set fg_set.
4430 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
4431 in effect.
4432
4433 * xfaces.c (Finternal_set_lisp_face_attribute)
4434 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4435 parameters alist.
4436
4437 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4438
4439 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4440 to a single slash in the middle of file names.
4441
4442 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
4443 Accept only alphanumeric time zone names.
4444
4445 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4446 or width area.
4447 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4448 a widget to zero height.
4449
4450 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4451
4452 * window.c (Fwindow_end): Call move_it_past_eol only if
4453 ending up on a partially visible line.
4454
4455 2001-03-01 Dave Love <fx@gnu.org>
4456
4457 * ccl.c (Fccl_execute): Doc fix.
4458
4459 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4460
4461 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4462 of the tool bar before calling x_figure_window_size.
4463
4464 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4465 NULL after destroying it, otherwise XTread_socket can access a
4466 destroyed widget when input is unblocked.
4467
4468 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
4469
4470 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4471 same name as before, although there was a change in fontsets.
4472
4473 2001-02-28 Ken Raeburn <raeburn@gnu.org>
4474
4475 * lisp.h (Fframe_parameter): Declare.
4476
4477 * window.c (set_window_buffer): Field vscroll is an int, not a
4478 Lisp_Object.
4479
4480 2001-02-28 Gerd Moellmann <gerd@gnu.org>
4481
4482 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4483 NULL instead.
4484
4485 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4486 NULL instead.
4487
4488 * alloc.c (toplevel): Include process.h.
4489 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4490 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4491 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
4492 (allocate_vector, allocate_hash_table, allocate_window)
4493 (allocate_frame, allocate_process, allocate_other_vector):
4494 New functions.
4495 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4496 (mark_maybe_pointer): New function.
4497 (mark_memory): Also mark Lisp data to which only pointers
4498 remain and not Lisp_Objects.
4499 (min_heap_address, max_heap_address): New variables.
4500 (mem_find): Return MEM_NIL if START is below min_heap_address or
4501 above max_heap_address.
4502 (mem_insert): Compute min_heap_address and max_heap_address.
4503
4504 * process.c (make_process): Use allocate_process.
4505
4506 * frame.c (make_frame): Use allocate_frame.
4507
4508 * window.c (make_window, make_dummy_parent): Use allocate_window.
4509 (Fcurrent_window_configuration): Use allocate_other_vector.
4510
4511 * lisp.h (allocate_vectorlike): Remove prototype.
4512 (allocate_vector, allocate_other_vector, allocate_frame)
4513 (allocate_window, allocate_process, allocate_hash_table):
4514 Add prototypes.
4515
4516 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4517 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4518
4519 2001-02-27 Kenichi Handa <handa@etl.go.jp>
4520
4521 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4522 treat the produced bytes as a valid multibyte sequence.
4523
4524 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
4525 (ccl_driver) <CCL_WriteMultibyteChar2>:
4526 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
4527 <ccl_finish>: Set ccl->eight_bit_control properly.
4528
4529 * ccl.h (struct ccl_program): New member eight_bit_control.
4530
4531 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4532
4533 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4534 accessible_keymaps_char_table.
4535 (accessible_keymaps_char_table): Obey `is_metized'.
4536 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4537 Lisp_Object.
4538
4539 2001-02-26 Gerd Moellmann <gerd@gnu.org>
4540
4541 * dispnew.c: Check HAVE_TERM_H before including term.h.
4542
4543 2001-02-24 Andrew Innes <andrewi@gnu.org>
4544
4545 * makefile.w32-in: Update copyright notice.
4546
4547 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4548
4549 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4550
4551 2001-02-24 Kenichi Handa <handa@etl.go.jp>
4552
4553 * Makefile.in (lisp): Add international/utf-8.elc.
4554
4555 * fontset.c (Fnew_fontset): Fix handling of the case that an
4556 element of FONTLIST is a cons of family and registry.
4557
4558 2001-02-23 Jason Rumney <jasonr@gnu.org>
4559
4560 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4561 to height unconditionally.
4562
4563 * w32term.c (x_set_glyph_string_background_width): Extend the
4564 background face to the end of the drawing area in the text area, only.
4565 (x_insert_glyphs): Call window_box_left to obtain the left
4566 x-coordinate of the area to shift.
4567
4568 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4569 safe_run_hooks.
4570
4571 2001-02-22 Andrew Innes <andrewi@gnu.org>
4572
4573 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
4574 ($(BLD)\dispnew.obj):
4575 ($(BLD)\editfns.obj):
4576 ($(BLD)\fileio.obj):
4577 ($(BLD)\filelock.obj):
4578 ($(BLD)\keyboard.obj):
4579 ($(BLD)\w32proc.obj):
4580 ($(BLD)\process.obj):
4581 ($(BLD)\sysdep.obj): Ditto.
4582
4583 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4584 header files.
4585 ($(BLD)/dispnew.$(O)):
4586 ($(BLD)/editfns.$(O)):
4587 ($(BLD)/fileio.$(O)):
4588 ($(BLD)/filelock.$(O)):
4589 ($(BLD)/keyboard.$(O)):
4590 ($(BLD)/w32proc.$(O)):
4591 ($(BLD)/process.$(O)):
4592 ($(BLD)/sysdep.$(O)): Ditto.
4593
4594 2001-02-22 Gerd Moellmann <gerd@gnu.org>
4595
4596 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4597 at the start of the function, check that the \n in it->c is
4598 from the iterator's current position.
4599
4600 * xdisp.c (handle_single_display_prop): Add parameter
4601 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4602 properties which replace the display of text with something else.
4603 (handle_display_prop): Call handle_single_display_prop with
4604 additional argument saying if we already replaced text display
4605 with something else. Use AREF.
4606 (with_echo_area_buffer_unwind_data, display_menu_bar)
4607 (decode_mode_spec_coding): Use AREF and ASIZE.
4608
4609 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4610 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4611 * vmstime.h: Files removed.
4612
4613 * unexencap.c, unexfx2800.c: Files removed.
4614
4615 * dispnew.c (direct_output_for_insert): Give up if we are showing
4616 a message or just cleared the message because we might need to
4617 resize the echo area window or display an empty echo area.
4618
4619 2001-02-21 Gerd Moellmann <gerd@gnu.org>
4620
4621 * xdisp.c (redisplay_internal): Do the
4622 mark_window_display_accurate after all windows have been
4623 redisplayed because this call resets flags in buffers which are
4624 needed for proper redisplay.
4625
4626 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4627 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
4628 the old names.
4629
4630 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4631 busy_window to hourglass_window, busy_p to hourglass_p.
4632
4633 * msdos.h (struct x_output): Rename busy_window to
4634 hourglass_window, busy_p to hourglass_p.
4635
4636 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4637 busy_window to hourglass_window, busy_p to hourglass_p.
4638
4639 * xfns.c: Rename everything containing *busy_cursor* and similar
4640 to *hourglass*.
4641 (syms_of_w32fns): Rename x-busy-pointer-shape to
4642 x-hourglass-pointer-shape, display-busy-cursor to
4643 display-hourglass, busy-cursor-delay to hourglass-delay.
4644
4645 * w32fns.c: Rename everything containing *busy_cursor* and similar
4646 to *hourglass*.
4647 (syms_of_w32fns): Rename x-busy-pointer-shape to
4648 x-hourglass-pointer-shape, display-busy-cursor to
4649 display-hourglass, busy-cursor-delay to hourglass-delay.
4650
4651 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4652 of its busy_p flag.
4653
4654 * dispextern.h (start_hourglass, cancel_hourglass)
4655 (display_hourglass_p): Renamed from *busy_cursor*.
4656
4657 2001-02-20 Gerd Moellmann <gerd@gnu.org>
4658
4659 * keyboard.c (read_char): When an event from unread-command-events
4660 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4661
4662 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4663 equal to the current buffer.
4664
4665 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4666 nil, otherwise we're left with truncate_lines t when a message
4667 is printed with message-truncate-lines bound to t.
4668
4669 2001-02-19 Gerd Moellmann <gerd@gnu.org>
4670
4671 * window.c (Fmove_to_window_line): Undo last change.
4672 (displayed_window_lines): Call line_bottom_y to determine
4673 the line's bottom position.
4674
4675 * dispextern.h (line_bottom_y): Add prototype.
4676
4677 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
4678 (pos_visible_p): Use it.
4679
4680 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4681 set redisplaying_p to 0 here instead of in Frecursive_edit.
4682 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4683 set redisplaying_p.
4684
4685 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
4686 New variables.
4687 (syms_of_xdisp): Initialize new variables.
4688 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4689 Specbind `inhibit-menubar-update' when updating the menu bar.
4690
4691 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4692 safe_run_hooks.
4693
4694 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4695 safe_run_hooks.
4696
4697 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4698 is null.
4699
4700 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4701 to the start of the file.
4702
4703 2001-02-16 Gerd Moellmann <gerd@gnu.org>
4704
4705 * window.c (set_window_buffer): Fix last change.
4706
4707 * window.c (set_window_buffer): Set window's vscroll to 0.
4708
4709 * window.c (coordinates_in_window): Increase width of area
4710 where the vertical line can be dragged.
4711
4712 * xterm.c (x_set_glyph_string_background_width): Extend the
4713 background face to the end of the drawing area in the text
4714 area, only.
4715
4716 * xdisp.c (handle_single_display_prop): Set iterator's position
4717 to where the `display' property starts, like for images.
4718 (dump_glyph): New function.
4719 (dump_glyph_row): Use it. Dump info about marginal areas.
4720
4721 * dispnew.c (direct_output_for_insert): Recognize more cases where
4722 glyphs can be written instead of being inserted.
4723
4724 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4725 the left x-coordinate of the area to shift.
4726
4727 * dired.c (directory_files_internal): Set result list to nil
4728 before retrying.
4729
4730 2001-02-15 Kenichi Handa <handa@etl.go.jp>
4731
4732 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4733 invalid multibyte sequence, treat *SRC as a character of
4734 eight-bit-graphic.
4735
4736 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4737
4738 * textprop.c (Fset_text_properties): Doc fix.
4739
4740 2001-02-15 Gerd Moellmann <gerd@gnu.org>
4741
4742 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4743
4744 2001-02-14 Dave Love <fx@gnu.org>
4745
4746 * coding.c: Doc and message fixes.
4747
4748 2001-02-14 Andrew Innes <andrewi@gnu.org>
4749
4750 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4751 Emacs frame above the screen size.
4752
4753 2001-02-14 Gerd Moellmann <gerd@gnu.org>
4754
4755 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4756
4757 2001-02-13 Gerd Moellmann <gerd@gnu.org>
4758
4759 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4760 case that TO ends up beyond ZV after running before-change-functions.
4761
4762 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4763 the selected window if it is showing the buffer in question.
4764
4765 * dired.c (directory_files_internal): Initialize errno.
4766 (toplevel): Include errno.h.
4767
4768 2001-02-13 Kenichi Handa <handa@etl.go.jp>
4769
4770 * xfaces.c (best_matching_font): New parameter width_ratio.
4771 Multiply avgwidth by width_ratio.
4772 (choose_face_font): Call best_matching_font with width_ratio
4773 calculated from the column width of C.
4774
4775 2001-02-12 Andrew Innes <andrewi@gnu.org>
4776
4777 The following changes are to draw box lines inside characters area
4778 if line-width is negative.
4779
4780 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4781 face->box_line_width is negative.
4782 (x_produce_stretch_glyph): Likewise.
4783 (x_produce_glyphs): Likewise.
4784 (x_estimate_mode_line_height): Likewise.
4785 (x_draw_glyph_string_background): Likewise.
4786 (x_draw_glyph_string_foreground): Likewise.
4787 (x_draw_composite_glyph_string_foreground): Likewise.
4788 (x_draw_glyph_string_box): Likewise.
4789 (x_draw_image_foreground): Likewise.
4790 (x_draw_image_relief): Likewise.
4791 (x_draw_image_foreground_1): Likewise.
4792 (x_draw_image_glyph_string): Likewise.
4793
4794 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4795
4796 The following changes are to draw box lines inside characters area
4797 if line-width is negative.
4798
4799 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4800 face->box_line_width is negative.
4801 (x_produce_stretch_glyph): Likewise.
4802 (x_produce_glyphs): Likewise.
4803 (x_estimate_mode_line_height): Likewise.
4804 (x_draw_glyph_string_background): Likewise.
4805 (x_draw_glyph_string_foreground): Likewise.
4806 (x_draw_composite_glyph_string_foreground): Likewise.
4807 (x_draw_glyph_string_box): Likewise.
4808 (x_draw_image_foreground): Likewise.
4809 (x_draw_image_relief): Likewise.
4810 (x_draw_image_foreground_1): Likewise.
4811 (x_draw_image_glyph_string): Likewise.
4812
4813 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4814 and :line-width can be negative.
4815 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
4816
4817 2001-02-09 Jason Rumney <jasonr@gnu.org>
4818
4819 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4820 characters the same as ASCII and latin-1.
4821 (x_display_and_set_cursor): Check for the focus frame's selected
4822 window instead of selected_window.
4823 (x_after_update_window_line): Don't clear if frame's internal
4824 border width is zero.
4825 (x_new_font): Don't change a tooltip's size.
4826 (w32_initialize): Set char_ins_del_ok to 1.
4827
4828 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4829 (x_set_font): If font hasn't changed, avoid recomputing
4830 faces and other things.
4831 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4832 (Fx_create_frame): Add the tool bar height to the frame height.
4833 (x_create_tip_frame): Prevent changing the tooltip's
4834 background color by specifying a color for the default font
4835 in .Xdefaults.
4836 (Qcancel_timer): New variable.
4837 (syms_of_w32fns): Initialize and staticpro it.
4838 (Fx_hide_tip, Fx_show_tip): Use it.
4839 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4840 the timer.
4841 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4842
4843 * w32.c (init_environment): Duplicate local string before putenv.
4844
4845 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4846
4847 * charset.c (Fstring): A typo.
4848
4849 2001-02-09 Kenichi Handa <handa@etl.go.jp>
4850
4851 * charset.c (Fstring): If all arguments are less than 256, return
4852 a unibyte string.
4853
4854 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4855 return a unibyte string.
4856
4857 * coding.c (code_convert_region): After detecting a coding, if
4858 nothing found, set coding->composing to COMPOSITION_NO.
4859 (decode_coding_string): Likewise.
4860
4861 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4862
4863 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4864 to avoid overflow.
4865
4866 2001-02-07 Kenichi Handa <handa@etl.go.jp>
4867
4868 * charset.c (parse_str_to_multibyte): New function.
4869
4870 * charset.h (parse_str_to_multibyte): Extern it.
4871
4872 * print.c (print_string): If we are going to print a unibyte
4873 string into a multibyte buffer, convert the string to multibyte by
4874 str_to_multibyte.
4875
4876 2001-02-06 Andrew Innes <andrewi@gnu.org>
4877
4878 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4879 been created. It seems we can get sent window messages such as
4880 WM_ERASEBKGND before we properly update a frame.
4881
4882 2001-02-06 Gerd Moellmann <gerd@gnu.org>
4883
4884 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4885 Avoid some unnecessary cursor positioning.
4886
4887 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4888
4889 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
4890 (LFACE_AVGWIDTH): New macro.
4891 (LFACEP): Use AREF.
4892 (check_lface_attrs): Check LFACE_AVGWIDTH.
4893 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4894 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4895 (merge_face_vectors): Check LFACE_AVGWIDTH.
4896 (Finternal_make_lisp_face): Use AREF.
4897 (xm_set_menu_resources_from_menu_face)
4898 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4899 (Finternal_lisp_face_empty_p): Use AREF.
4900 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4901 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4902 Compare average widths..
4903 (best_matching_font): Arrange for comparing average widths.
4904
4905 * dispextern.h (enum lface_attribute_index):
4906 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4907
4908 2001-02-05 Dave Love <fx@gnu.org>
4909
4910 * puresize.h: Revert last change following loadup.el change.
4911
4912 2001-02-05 Andrew Innes <andrewi@gnu.org>
4913
4914 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4915 invocation of temacs, to work with Windows 2000.
4916 (bootstrap-emacs): Ditto.
4917
4918 2001-02-05 Gerd Moellmann <gerd@gnu.org>
4919
4920 * xterm.c (x_display_and_set_cursor): Check for the focus
4921 frame's selected window instead of selected_window.
4922
4923 * xdisp.c (try_scrolling): If point is in the line below the
4924 window, make sure to move the iterator at least a canonical
4925 char height down.
4926
4927 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
4928
4929 2001-02-05 Kenichi Handa <handa@etl.go.jp>
4930
4931 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4932 If invalid, execute CCL_INVALID_CMD.
4933 (ccl_driver): If the CCL program is terminated because of
4934 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4935 destination instead of throwing them away.
4936
4937 2001-02-02 Gerd Moellmann <gerd@gnu.org>
4938
4939 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4940 faces and other things.
4941
4942 * xdisp.c (get_next_display_element): Fix case of empty
4943 display table entry.
4944
4945 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4946
4947 * editfns.c (Fconstrain_to_field): Doc fix.
4948
4949 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4950 into `thoroughly', to make it consistent with the doc string.
4951
4952 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4953
4954 2001-02-01 Gerd Moellmann <gerd@gnu.org>
4955
4956 * search.c (search_buffer): Call set_search_regs with a byte
4957 position, not a character position.
4958
4959 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4960 minibuffer-only,
4961
4962 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4963
4964 * frame.c (Fmodify_frame_parameters): Doc fix.
4965
4966 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4967
4968 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4969 identifier which is not reserved by Standard C.
4970
4971 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4972
4973 * window.c (enum window_part): New enumeration.
4974 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4975 Qright_bitmap_area.
4976 (coordinates_in_window): Return an enumerator from enum
4977 window_part. Fix handling of right scroll bar.
4978 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4979 `right-fringe' instead of `left-bitmap-area' and
4980 `right-bitmap-area'. Use enumerators from enum window_part
4981 instead of hard-coded integers.
4982 (check_window_containing, window_from_coordinates):
4983 Use enumerators from enum window_part instead of hard-coded integers.
4984 (syms_of_window): Replace Qleft_bitmap_area and
4985 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4986
4987 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4988
4989 * editfns.c (Fformat_time_string): Doc fix.
4990
4991 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4992
4993 * keymap.c (Fwhere_is_internal): Use the first valid binding
4994 if no ascii binding is found (when firstonly is t).
4995
4996 2001-01-31 Gerd Moellmann <gerd@gnu.org>
4997
4998 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4999 instead of Finteractive_p.
5000
5001 * lisp.h (interactive_p): Add prototype.
5002
5003 * eval.c (interactive_p): New function.
5004 (Finteractive_p): Use it.
5005
5006 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5007
5008 2001-01-31 Dave Love <fx@gnu.org>
5009
5010 * .gdbinit (hook-run): Define to run xreload.
5011
5012 * textprop.c (Fset_text_properties): Fix newline in doc string.
5013
5014 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5015
5016 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5017 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5018
5019 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5020 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5021 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5022
5023 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5024 height.
5025
5026 2001-01-30 Dave Love <fx@gnu.org>
5027
5028 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5029 AFTER_POTENTIAL_GC.
5030
5031 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5032
5033 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5034 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5035
5036 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5037
5038 * textprop.c (Fset_text_properties): Doc fix.
5039
5040 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5041
5042 * xdisp.c (forward_to_next_line_start): Remove xassert.
5043
5044 2001-01-29 Jason Rumney <jasonr@gnu.org>
5045
5046 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5047 returning without releasing it.
5048
5049 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5050
5051 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5052 for '^', '$', and '\0'.
5053
5054 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5055
5056 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5057 regex for '^', '$', and '\0'.
5058
5059 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5060 only if current_sblock has been initialized.
5061
5062 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5063 terminal frame even if it is the only visible frame.
5064
5065 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5066
5067 * fontset.c (font_family_registry): Even if FONTNAME conform to
5068 XLFD, if it specifies other fields than family and registry,
5069 return FONTANME. New argument FORCE if nonzero cancel that feature.
5070 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5071 a signle byte character. Don't set FAMILY part to nil here.
5072 It is handled by the caller choose_face_font.
5073 (Fnew_fontset): Call font_family_registry with FORCE 0.
5074 (Fset_fontset_font): Likewise.
5075
5076 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5077
5078 * xdisp.c (display_line): Don't treat a newline as fitting
5079 on the line.
5080
5081 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5082
5083 * window.c (size_window): Set the window's orig_top to nil when
5084 changing heights, so that a future shrink_mini_window won't
5085 restore a bogus height.
5086
5087 * frame.c (do_switch_frame): If selected frame has a mini-window,
5088 resize that to exact size.
5089
5090 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5091
5092 * xdisp.c (display_line): Simplify check for glyphs fitting
5093 entirely in the line.
5094
5095 * xfns.c (xic_style): New variable.
5096 (create_frame_xic): Move static variable to global scope for
5097 the case that `static' gets defined away.
5098
5099 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5100
5101 * coding.c (decode_coding): Set a flag for inhibiting
5102 inconsistent eol.
5103 (code_convert_region): Always set saved_coding_symbol.
5104 (decode_coding_string): Likewise. Update coding->symbol when we
5105 encounter a inconsistent eol by the same way as code_convert_region.
5106
5107 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5108
5109 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5110 XClearArea.
5111
5112 * xterm.c (x_after_update_window_line): Don't clear if frame's
5113 internal border width is zero.
5114 (x_clear_area): New function.
5115 (x_after_update_window_line, x_clear_end_of_line)
5116 (x_scroll_bar_create, x_scroll_bar_set_handle)
5117 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5118 instead of XClearArea.
5119
5120 * xterm.h (x_clear_area): Add prototype.
5121
5122 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5123 which doesn't seem necessary anymore with Lesstif 0.92.
5124
5125 2001-01-25 Dave Love <fx@gnu.org>
5126
5127 * puresize.h (BASE_PURESIZE): Up to 720000.
5128
5129 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5130
5131 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5132
5133 * xdisp.c (echo_area_display): Don't call redisplay_internal
5134 when Emacs is shutting down. We can't run hooks etc. that
5135 would be necessary to do a redisplay.
5136
5137 * lread.c (read_integer): Use type EMACS_INT instead of int.
5138
5139 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5140
5141 * ccl.c (ccl_driver): Fix last change.
5142
5143 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5144
5145 * ccl.h (sturct ccl_program): New member suppress_error.
5146
5147 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5148 insert error message to the output.
5149 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5150
5151 * coding.h (struct coding_system): New member suppress_error.
5152
5153 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5154 (Fset_terminal_coding_system_internal): Set the member
5155 suppress_error to 1.
5156 (Fset_safe_terminal_coding_system_internal): Likewise.
5157
5158 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
5159
5160 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
5161 as if it was a `charset'.
5162
5163 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5164
5165 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
5166 value in where_is_cache; the next lookup in the cache returns
5167 something bogus if we do.
5168
5169 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5170
5171 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
5172 if HAVE_WINDOW_SYSTEM isn't defined.
5173
5174 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5175
5176 * fns.c (sweep_weak_table): Fix code taking items out of
5177 the hash collision chain. Some cleanup.
5178
5179 * xterm.c (x_new_font): Don't change a tooltip's size.
5180
5181 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
5182 background color by specifying a color for the default font
5183 in .Xdefaults.
5184
5185 2001-01-24 Kenichi Handa <handa@etl.go.jp>
5186
5187 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
5188 a workaround for SunOS 4's cc.
5189 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
5190 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
5191 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
5192 statement.
5193
5194 2001-01-23 Gerd Moellmann <gerd@gnu.org>
5195
5196 * xterm.c (x_set_window_size_1): New function extracted from
5197 x_set_window_size.
5198 (x_set_window_size): Use it.
5199 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
5200 doesn't have a widget, like tooltips.
5201
5202 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
5203
5204 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5205
5206 2001-01-23 Kenichi Handa <handa@etl.go.jp>
5207
5208 * fns.c (Fset_char_table_default): Fix to make sub char-table
5209 correctly.
5210
5211 2001-01-22 Gerd Moellmann <gerd@gnu.org>
5212
5213 * xdisp.c (build_desired_tool_bar_string): Make sure we have
5214 a desired tool bar string, even if there are no tool bar items.
5215
5216 * xdisp.c (Ftool_bar_lines_needed): New function.
5217 (syms_of_xdisp): Defsubr it.
5218
5219 * editfns.c (Fformat): Don't extend text properties from arguments
5220 to padding chars in the result.
5221
5222 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5223
5224 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
5225
5226 2001-01-20 Andrew Innes <andrewi@gnu.org>
5227
5228 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
5229 (w32_initialize): Don't set term hooks that aren't actually needed
5230 in windowed mode.
5231
5232 * xfaces.c (realize_default_face):
5233 (realize_face):
5234 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
5235
5236 * xdisp.c (handle_single_display_prop): Remove references to
5237 FRAME_W32_CONSOLE_P.
5238
5239 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
5240
5241 * frame.h (output_method): Remove output_w32_console method.
5242 (FRAME_W32_CONSOLE_P): Remove macro.
5243
5244 * frame.c (Qw32_console): Remove variable.
5245 (Fframep): Remove references to it.
5246 (syms_of_frame): Ditto.
5247 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5248
5249 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5250 redefinition.
5251
5252 2001-01-20 Kenichi Handa <handa@etl.go.jp>
5253
5254 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5255
5256 2001-01-19 Andrew Innes <andrewi@gnu.org>
5257
5258 * w32.c (init_environment): Add a version-independent site-lisp
5259 directory to EMACSLOADPATH, after the version dependent one.
5260
5261 2001-01-19 Gerd Moellmann <gerd@gnu.org>
5262
5263 * editfns.c (Fbuffer_substring): Doc fix.
5264
5265 * xdisp.c (message_dolog, message2, message2_nolog):
5266 Rename parameter LEN to NBYTES.
5267
5268 2001-01-19 Kenichi Handa <handa@etl.go.jp>
5269
5270 * charset.c (strwidth): Use c_string_width.
5271 (c_string_width): New function.
5272 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5273 Caller changed.
5274
5275 * charset.h (c_string_width, lisp_string_width): Extern them.
5276
5277 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
5278
5279 * indent.c (check_composition): Check validity of composition.
5280
5281 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5282 characters by calling c_string_width.
5283 (x_consider_frame_title): Get byte length of frame tile string
5284 correctly.
5285 (display_mode_element): Pay attention to width of non-ASCII
5286 characters by calling strwidth.
5287
5288 2001-01-18 Gerd Moellmann <gerd@gnu.org>
5289
5290 * xfns.c (Qcancel_timer): New variable.
5291 (syms_of_xfns): Initialize and staticpro it.
5292 (Fx_hide_tip, Fx_show_tip): Use it.
5293 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5294 the timer.
5295 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5296
5297 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5298
5299 * window.h (WINDOW_LIVE_P): New macro.
5300
5301 * window.c (window_size_fixed): New variable.
5302 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5303 the doc string.
5304
5305 * eval.c (specbind): If binding a per-buffer variable which
5306 doesn't have a buffer-local value in the current buffer, change
5307 the global value by changing the value of the symbol bound in all
5308 buffers not having their own value, to make it consistent with
5309 what happens with other buffer-local variables.
5310
5311 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5312
5313 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5314 when searching for a newline.
5315
5316 2001-01-18 Kenichi Handa <handa@etl.go.jp>
5317
5318 * xdisp.c (display_string): Fix previous change.
5319
5320 2001-01-18 Jason Rumney <jasonr@gnu.org>
5321
5322 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5323 GLYPH_DEBUG is defined.
5324 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5325 true for images with `:ascent 100'.
5326 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5327 meantime, use face MOUSE_FACE_ID.
5328 If first glyph isn't a character glyph, use the ASCII NUL
5329 character to determine the face.
5330 (expose_area): Do not treat left margin specially.
5331 (note_mode_line_highlight): If no local_map, check global keymap.
5332 (note_mouse_highlight): Initialize overlay.
5333 (clear_mouse_face): Don't return if tip_frame is non-nil.
5334 (show_scroll_bars): Remove unused function.
5335 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5336 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5337 Clip to row.
5338 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
5339 (x_free_frame_resources): Unload relief colors.
5340
5341 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5342
5343 * xdisp.c (forward_to_next_line_start): Avoid calling
5344 get_next_display_element when the newline is already found.
5345 This may change the iterator's position, when its current position is
5346 equal to the iterator's stop_charpos.
5347
5348 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5349 zero, use this method only at the end of a line.
5350
5351 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
5352 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5353 if SCALABLE_FONTS_P is set.
5354
5355 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5356 so that scalable fonts are included.
5357
5358 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5359 In the cache, use a key containing the information if scalable
5360 fonts are included.
5361 (x_load_font): Adapt to change of keys in the font cache.
5362
5363 2001-01-17 Kim F. Storm <storm@filanet.dk>
5364
5365 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5366 XListFonts to take advantage of font caching.
5367
5368 * xterm.c (x_list_fonts): Ensure caching font information when
5369 called for a null frame, which is the case frequently when Emacs
5370 starts.
5371
5372 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5373
5374 * xfns.c (QCconversion): Replaces QCalgorithm.
5375
5376 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5377
5378 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5379 of :algorithm.
5380
5381 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5382 not everything could be displayed.
5383
5384 * line.h, x-list-font.c: Files removed because unused.
5385
5386 2001-01-17 Andrew Innes <andrewi@gnu.org>
5387
5388 * dired.c (directory_files_internal): Convert result from readdir
5389 to a unibyte string initially, to avoid possible misinterpretation
5390 of some bytes as the internal form of Emacs characters.
5391
5392 2001-01-17 Kenichi Handa <handa@etl.go.jp>
5393
5394 * fns.c (concat): Be sure to avoid putting the same `composition'
5395 property on the adjacent regions.
5396
5397 2001-01-16 Gerd Moellmann <gerd@gnu.org>
5398
5399 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
5400 (Fscroll_right, Fscroll_left): Set it here instead, if called
5401 interactively.
5402
5403 * buffer.c (Fset_buffer_modified_p): Set buffer's
5404 prevent_redisplay_optimizations_p flag.
5405
5406 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
5407 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5408 with additional arg.
5409
5410 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5411 Change prototype.
5412
5413 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5414 FROM_WHERE, for debugging.
5415
5416 2001-01-16 Kenichi Handa <handa@etl.go.jp>
5417
5418 * ccl.c (Fregister_ccl_program): Handle the return value of
5419 resolve_symbol_ccl_program correctly.
5420 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
5421
5422 2001-01-15 Gerd Moellmann <gerd@gnu.org>
5423
5424 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5425 has gone in the meantime, use face MOUSE_FACE_ID.
5426
5427 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5428 If x_display_info_for_display returns null, don't try to close
5429 the display; we didn't open it.
5430
5431 * dispnew.c (save_or_restore_current_matrices): Function removed.
5432 (save_current_matrix, restore_current_matrix): New functions.
5433 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5434 restore the frame's current matrix. Due to the glyph pointer
5435 setup done in adjust_glyph_matrix, there is no easy way to make
5436 saving the current matrix in the desired matrix generally correct,
5437 so don't try it.
5438
5439 2001-01-15 Kenichi Handa <handa@etl.go.jp>
5440
5441 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5442 truncation glyphs.
5443 (display_line): Optimize for wide characters.
5444 (display_string): Don't try to display a multi-column character
5445 partially. On ttys, produce more than one truncation glyph for
5446 multi-column characters that don't fit on the line.
5447
5448 2001-01-13 Kenichi Handa <handa@etl.go.jp>
5449
5450 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5451 Define it instead of WORDS_BIGENDIAN. Caller changed.
5452
5453 2001-01-13 Jason Rumney <jasonr@gnu.org>
5454
5455 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5456 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
5457 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5458 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
5459
5460 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5461 (x_draw_image_relief, x_draw_image_foreground_1)
5462 (x_draw_image_glyph_string): Adapt to change of image margins.
5463
5464 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5465 variables.
5466
5467 * w32bdf.c (search_file_line, get_cached_font_char)
5468 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5469
5470 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5471
5472 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5473 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5474 (Fw32_send_sys_command): Remove unused variables.
5475 (w32_msg_pump): Add parentheses.
5476
5477 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5478 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5479 Add parentheses.
5480
5481 2001-01-12 Gerd Moellmann <gerd@gnu.org>
5482
5483 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5484 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5485 being a pair of margins.
5486 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5487 to DEFVAR_LISP. Extend doc.
5488
5489 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5490 margins.
5491 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5492 pair of integers `(X . Y)', use X for the horizontal and Y for the
5493 vertical margin.
5494 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5495 (parse_image_spec): Check it.
5496 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5497 (tiff_format, gif_format, gs_format):
5498 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
5499
5500 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5501 (x_draw_image_relief, x_draw_image_foreground_1)
5502 (x_draw_image_glyph_string): Adapt to the change of image margins.
5503
5504 * dispextern.h (struct image): Replace member `margin' with
5505 `hmargin' and `vmargin'.
5506
5507 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5508 and GLYPHS.
5509
5510 * dispnew.c (update_text_area): Put code which decrements the
5511 stop position when the row's face extends to the end of the
5512 line in #if 0.
5513
5514 * xfns.c (x_set_mouse_color): Fix color allocation.
5515
5516 * keyboard.c: Call get_local_map with new argument list.
5517
5518 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5519
5520 * intervals.h (enum map_property): Removed.
5521 (get_local_map): Change prototype.
5522
5523 * keymap.c: Call get_local_map with new argument list.
5524 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5525
5526 2001-01-11 Gerd Moellmann <gerd@gnu.org>
5527
5528 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5529 of the size needed for the tool bar string. For the last image,
5530 use a `display' property that reaches to the end of the string.
5531
5532 * xselect.c (selection_request_dpyinfo): New variable.
5533 (x_handle_selection_request): Set it.
5534 (x_selection_request_lisp_error): Don't call
5535 x_decline_selection_request if selection request's display has
5536 been closed.
5537
5538 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5539 Do the unregister_colors before calling XFreeColors.
5540
5541 2001-01-10 Dave Love <fx@gnu.org>
5542
5543 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5544 ${SOME_MACHINE_LISP}, not ${lisp}.
5545
5546 2001-01-10 Gerd Moellmann <gerd@gnu.org>
5547
5548 * xdisp.c (display_line): On ttys, produce more than one truncation
5549 glyph for multi-column characters that don't fit on the line.
5550
5551 * xselect.c (x_reply_selection_request): Add a comment.
5552
5553 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5554 XkbGetNames instead of XkbGetKeyboard.
5555
5556 2001-01-10 Dave Love <fx@gnu.org>
5557
5558 * sysdep.c (random): Revert the declaration.
5559
5560 2001-01-09 Gerd Moellmann <gerd@gnu.org>
5561
5562 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5563 Call function string_bytes.
5564 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5565
5566 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5567 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5568 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5569 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5570 the current sblock.
5571 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5572 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5573 after sweeping strings, and at the end.
5574 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5575
5576 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5577 ensure that pop_message is called.
5578
5579 * keyboard.c (Fexecute_extended_command): Use a
5580 record_unwind_protect to ensure that pop_message is called.
5581
5582 * lisp.h (push_message_unwind): Add prototype.
5583
5584 * xdisp.c (push_message_unwind): New function.
5585
5586 * fileio.c (do_auto_save_unwind): Do the pop_message here
5587 instead of in Fdo_auto_save.
5588 (Fdo_auto_save): Don't call pop_message.
5589
5590 2001-01-08 Ken Raeburn <raeburn@gnu.org>
5591
5592 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5593 in inner block.
5594
5595 2001-01-08 Gerd Moellmann <gerd@gnu.org>
5596
5597 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5598 when increasing window's vscroll.
5599
5600 * macros.c (Qkbd_macro_termination_hook): New variable.
5601 (syms_of_macros): Initialize and staticpro it.
5602 (pop_kbd_macro): Run kbd-macro-termination-hook.
5603
5604 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5605
5606 2001-01-07 Dave Love <fx@gnu.org>
5607
5608 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5609 arglist, for documentation's sake.
5610
5611 2001-01-06 Andrew Innes <andrewi@gnu.org>
5612
5613 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5614 of *.pdb.
5615
5616 2001-01-05 Andrew Innes <andrewi@gnu.org>
5617
5618 * term.c (update_end): Don't check updating_frame; for some reason
5619 this can be 0 sometimes, such as after dismissing a popup menu,
5620 and isn't necessary given the explicit frame argument.
5621
5622 2001-01-05 Gerd Moellmann <gerd@gnu.org>
5623
5624 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5625 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5626
5627 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5628
5629 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
5630
5631 * xfns.c (x_create_tip_frame): Preserve the value of
5632 face_change_count around the creation of the tip frame.
5633
5634 * xfns.c (last_show_tip_args): New variable.
5635 (compute_tip_xy): New function.
5636 (Fx_show_tip): Reuse an existing tip frame, if possible.
5637 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5638
5639 2001-01-04 Dave Love <fx@gnu.org>
5640
5641 * editfns.c (Fformat): Doc fix.
5642
5643 * systime.h (set_file_times): Prototype.
5644
5645 * widget.h (EmacsFrameSetCharSize_): Prototype.
5646
5647 * sysdep.c (random, srandom): Declare explicitly.
5648
5649 * dispextern.h (move_it_vertically_backward): Declare.
5650
5651 2001-01-04 Gerd Moellmann <gerd@gnu.org>
5652
5653 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5654 like in Fx_create_frame.
5655
5656 * xfaces.c (set_font_frame_param): Don't do anything for
5657 non-graphical frames.
5658
5659 * window.c (Fdelete_other_windows): Set window's window_end_valid
5660 to nil when changing the window's start. Don't change the
5661 window's start when its top position hasn't changed. If we do,
5662 this will set the window's optional_new_start, which act's like a
5663 force_start during redisplay with C-x 1 M-> under particular
5664 circumstances (see report from Per Starback to emacs-pretest-bug
5665 from 2000-12-13.).
5666
5667 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5668
5669 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5670 short cut at the start of the function. Add an assertion.
5671 (reseat_at_next_visible_line_start): Add an assertion.
5672
5673 * window.c (Frecenter): When changing the window start, set the
5674 window's window_end_valid to nil.
5675 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5676
5677 * dispextern.h (move_it_past_eol): Add prototype.
5678
5679 * xdisp.c (move_it_past_eol): New function.
5680
5681 * window.c (Fwindow_end): Doc fix.
5682
5683 2001-01-03 Dave Love <fx@gnu.org>
5684
5685 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
5686
5687 2001-01-03 Gerd Moellmann <gerd@gnu.org>
5688
5689 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5690 the enabled_p flag of the glyph row at window_end_vpos to 0.
5691 (handle_single_display_prop): Fix last change.
5692
5693 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5694
5695 * window.c (Frecenter): Doc fix.
5696
5697 2001-01-02 Andrew Innes <andrewi@gnu.org>
5698
5699 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5700
5701 * frame.h (output_method): Add output_w32_console method.
5702 (FRAME_W32_CONSOLE_P): New macro.
5703
5704 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5705 use output_w32_console method.
5706 (Qw32_console): New Lisp_Object.
5707 (Fframep): Return it.
5708 (syms_of_frame): Init it.
5709 (Fframe_parameters): Report w32console as font for w32_console frames.
5710
5711 * xfaces.c (realize_default_face): Set face foreground and
5712 background to unspecified for w32_console frames.
5713 (realize_face): Realize face cache for w32_console frames.
5714 (realize_tty_face): Accept w32_console frames.
5715
5716 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
5717 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5718 necessary, even if running interactively.
5719
5720 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5721 w32_console frames.
5722
5723 * w32term.c (x_update_begin):
5724 (x_update_end):
5725 (x_clear_frame):
5726 (x_ins_del_lines):
5727 (x_change_line_highlight):
5728 (x_delete_glyphs):
5729 (w32_ring_bell):
5730 (x_update_begin):
5731 (x_update_end):
5732 (w32_reassert_line_highlight):
5733 (w32_frame_rehighlight):
5734 (w32_frame_raise_lower): Do nothing if not w32 frame.
5735
5736 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5737
5738 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5739 system doesn't tell us directly.
5740 (Fx_display_visual_class): Implement properly.
5741
5742 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5743
5744 * window.c (Frecenter): Handle centering in graphical frames
5745 specially. Centering on the basis of line counts doesn't work
5746 reliably with variable-height lines.
5747
5748 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5749
5750 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5751 and al[].
5752
5753 * composite.c (run_composition_function): Remove unused var `val'.
5754 (update_compositions): Remove unused variable `hook'.
5755
5756 * intervals.c (get_local_map): Remove unused variable `tem'.
5757
5758 * doprnt.c (doprnt1): Remove unused variable `size'.
5759
5760 * fns.c (Flength): Remove unused variable `tail'.
5761 (Fdelete): Remove unused variable `size'.
5762
5763 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5764 and `gcpro2'.
5765
5766 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
5767
5768 * data.c (find_symbol_value): Remove extra 3rd argument in the
5769 call to swap_in_symval_forwarding.
5770
5771 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
5772
5773 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5774 (trivial_regexp_p): Remove unused variable `c'.
5775 (boyer_moore): Remove unused variable `k'.
5776
5777 * indent.c (current_column): Remove unused variable `stopchar'.
5778 (Fcompute_motion): Remove unused variable `contin'.
5779
5780 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5781
5782 * dired.c (directory_files_internal): Fix a typo in a comment.
5783 Remove an unused variable `handler'.
5784 (file_name_completion): Remove unused function-scope variable `dp'.
5785 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5786 on BSD4_2.
5787
5788 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
5789
5790 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5791 and `buf'.
5792 (Fmarker_insertion_type): Remove unused variable `buf'.
5793
5794 * insdel.c (make_gap): Remove unused variable `result'.
5795
5796 * keyboard.c (record_char): Remove unused function-scope var `help'.
5797 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5798 (menu_bar_items): Remove unused function-scope variable `tem'.
5799
5800 * fontset.c (fontset_ref): Remove unused variable `i'.
5801 (fontset_set): Remove unused variables `j' and `tmp'.
5802 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
5803 (make_fontset_for_ascii_face): Remove unused variable `name'.
5804 (fs_load_font): Remove unused variable `font_idx'.
5805 (fs_query_fontset): Remove unused function-local variable `fontset'.
5806 (list_fontsets): Remove unused variable `tail'.
5807 (Fnew_fontset): Remove unused variables `family' and `registry'.
5808 (accumulate_font_info): Remove unused variable `tmp'.
5809 (Ffontset_font): Remove unused variable `id'.
5810 (syms_of_fontset): Remove unused variable `i'.
5811
5812 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5813 to x_term_init.
5814 (lookup_image): Remove unused variable `file'.
5815 (xbm_load): Remove unused variables `bitmap_data', `height', and
5816 `width'. Remove function-local variable `i', leave the
5817 block-local one.
5818 (gif_load): Remove unused variable `inc'.
5819
5820 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
5821 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5822 leave only the one in the inner block.
5823
5824 * xfaces.c (face_fontset, realize_default_face): Remove unused
5825 variable `fontset'.
5826 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5827
5828 * term.c (encode_terminal_code): Remove unused variable `c'.
5829
5830 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5831 char *' instead of `char *'.
5832
5833 * category.c (Fcategory_docstring): Remove unused variable `doc'.
5834 (Fget_unused_category): Remove unused variable `docstring_vector'.
5835 (Fchar_category_set): Remove unused variables `val', `charset',
5836 `c1' and `c2'.
5837
5838 * coding.c (detect_coding_iso2022, setup_coding_system):
5839 Remove unused variable `i'.
5840 (detect_coding_mask): Remove unused variable `idx'.
5841 (detect_coding): Remove unused variable `i'.
5842 (ccl_coding_driver): Remove unused variable `result'.
5843 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
5844 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
5845 (encode_coding_string): Remove unused variables `gcpro1' and
5846 `saved_coding_symbol'.
5847 (Ffind_coding_systems_region_internal): Remove function-local
5848 variable args[], leave only the block-local one.
5849 (code_convert_region1): Remove unused variable `len'.
5850
5851 * charset.c (char_printable_p): Remove unused variable `chars'.
5852 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5853 (str_to_multibyte): Remove unused variable `c'.
5854
5855 * window.c (size_window): Remove block-local variable `min_size'.
5856
5857 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5858 `header_line_height'.
5859 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5860 enum display_element_type.
5861
5862 2001-01-02 Gerd Moellmann <gerd@gnu.org>
5863
5864 * xterm.c (x_connection_closed): Catch X errors around all
5865 statements that call X. Save away the error message in a local copy.
5866
5867 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5868 the start.
5869
5870 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5871 in or at the start of invisible text.
5872
5873 * dispnew.c (update_window): Don't check_current_matrix_flags.
5874
5875 2001-01-01 Jason Rumney <jasonr@gnu.org>
5876
5877 * w32fns.c (x_figure_window_size): Do not allow new_height and
5878 new_width of frame to override specified values.
5879
5880 2000-12-30 Kenichi Handa <handa@etl.go.jp>
5881
5882 * composite.c (find_composition): Fix a code for searching backward.
5883
5884 2000-12-29 Gerd Moellmann <gerd@gnu.org>
5885
5886 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
5887 (update_window) [GLYPH_DEBUG]: Call it.
5888 (scrolling_window): Prevent including current rows which are below
5889 what's displayed in the window.
5890
5891 * xdisp.c (try_window_reusing_current_matrix)
5892 <new start <= old start>: Disable rows in the current matrix
5893 which are below the window after scrolling.
5894
5895 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5896 is zero. It's not worth the complexity.
5897 (invisible_text_between_p): Put in #if 0 because unused.
5898
5899 2000-12-28 Gerd Moellmann <gerd@gnu.org>
5900
5901 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5902 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5903
5904 * keyboard.c (echo_char): If C is an integer, always call
5905 push_key_description. Former code could signal an invalid
5906 character error.
5907
5908 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5909 If set, print multibyte text.
5910 (Fsingle_key_description): Call push_key_description with
5911 FORCE_MULTIBYTE set.
5912 (describe_buffer_bindings): Likewise.
5913
5914 * lisp.h (push_key_description): Add prototype.
5915
5916 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5917 around the call to redisplay_internal.
5918
5919 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5920
5921 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5922
5923 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5924
5925 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5926 (ccl_driver): New local variable `extra_bytes'.
5927
5928 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5929
5930 * coding.c (setup_coding_system):
5931 Initialize coding->spec.ccl.eight_bit_carryover.
5932 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5933
5934 2000-12-28 Kenichi Handa <handa@etl.go.jp>
5935
5936 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5937 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5938 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5939 (decode_composition_emacs_mule): New function.
5940 (decode_coding_emacs_mule): Decode composition sequence by calling
5941 decode_composition_emacs_mule.
5942 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
5943 (encode_coding_emacs_mule): Changed from macro to function.
5944 If a text contains compositions, encode them correctly.
5945 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5946 that decoding and encoding are required.
5947
5948 2000-12-27 Gerd Moellmann <gerd@gnu.org>
5949
5950 * xfaces.c (PT_PER_INCH): New macro.
5951 (xlfd_point_size): Compute real point size from font's pixel size.
5952 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5953 instead of 72.
5954
5955 * .gdbinit: Comment out the line pointing to the Lesstif source
5956 directory.
5957
5958 * window.c (Frecenter): Use displayed_window_lines instead
5959 of window_internal_height.
5960
5961 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5962 instead of x-toolkit-scroll-bars-p.
5963 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5964
5965 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5966 instead of x-toolkit-scroll-bars-p.
5967 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5968
5969 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5970 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
5971 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5972 New variables.
5973 (add_window_display_history, add_frame_display_history)
5974 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5975 (build_frame_matrix_from_leaf_window): Remove unused code.
5976 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5977 redisplay history.
5978 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5979 (update_window) [GLYPH_DEBUG]: Likewise.
5980 (syms_of_display): Defsubr dump-redisplay-history.
5981
5982 2000-12-23 Gerd Moellmann <gerd@gnu.org>
5983
5984 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5985 the end of the prompt. Set echo_after_prompt to the offset
5986 of echoptr in echobuf.
5987
5988 * xdisp.c (init_from_display_pos): Pop until the iterator's
5989 stack is empty; there may be frames for stretch or images
5990 on the stack.
5991
5992 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5993 (save_or_restore_current_matrix): New function for the same
5994 purpose, but more efficient.
5995 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5996
5997 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5998
5999 * xdisp.c (syms_of_xdisp): Fix last change.
6000
6001 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6002
6003 * xdisp.c (syms_of_xdisp): Doc fix.
6004
6005 * xdisp.c (redisplay_window): Remove label restore_buffers;
6006 use finish_scroll_bars instead to make sure that scroll bars
6007 are redeemed. If we don't do this, flickering can result from
6008 scroll bars being destroyed and recreated.
6009
6010 2000-12-22 Jason Rumney <jasonr@gnu.org>
6011
6012 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6013 in the wrong colors when the foreground is not black.
6014 (expose_window): Don't redraw the window that's currently being
6015 updated.
6016
6017 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6018
6019 * window.c (size_window): When setting the window's too_small_ok
6020 flag, compare old size with minimum size depending on WIDTH_P,
6021 don't compare with window_min_width.
6022
6023 * window.c (delete_window): Simplify somewhat.
6024 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6025 freeing window matrices. The flag windows_or_buffers_changed is
6026 set, so the next redisplay will consider all windows; this should
6027 suffice.
6028
6029 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6030
6031 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6032
6033 * ccl.h (struct ccl_program): New member cr_consumed.
6034
6035 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6036 (CCL_READ_CHAR): Handle EOL conversion here.
6037 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6038
6039 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6040
6041 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6042
6043 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6044 otherwise tabs of different size compare equal.
6045
6046 * callint.c (Fcall_interactively): Prevent a compiler warning.
6047
6048 * print.c (print_unwind): Return nil.
6049 (PRINTDECLARE): Initialize all local variables.
6050 (print_preprocess): Add a default case.
6051
6052 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6053
6054 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6055
6056 * window.c (delete_window, Fsplit_window)
6057 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6058
6059 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6060
6061 * dispnew.c (ensure_frame_matrix): Removed.
6062 (save_frame_matrix, restore_frame_matrix): New functions.
6063 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6064
6065 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6066 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6067
6068 2000-12-21 Andrew Innes <andrewi@gnu.org>
6069
6070 * w32term.c (x_update_begin): Regenerate the palette here, rather
6071 than for each window.
6072
6073 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6074 palette is NULL, since this corrupts memory! Also get
6075 display_info reference from frame.
6076
6077 2000-12-21 Jason Rumney <jasonr@gnu.org>
6078
6079 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6080
6081 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6082 to avoid returning without releasing it.
6083
6084 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6085
6086 * keymap.c (push_key_description): Don't convert eight-bit-control
6087 and eight-bit-graphic to multibyte character.
6088
6089 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6090 generic character and CODE1 is nil, return the smallest character
6091 in CHARSET.
6092
6093 2000-12-20 Dave Love <fx@gnu.org>
6094
6095 * s/osf5-0.h (NSIG): Don't redefine.
6096
6097 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6098
6099 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6100 excluding menu-bar and tool-bar.
6101 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6102 (menu_item_p): Remove.
6103 (where_is_internal_1): Don't ignore menu-items.
6104
6105 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6106
6107 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6108 into account.
6109
6110 * window.c (make_window): Initialize window's min_hscroll.
6111 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6112 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6113 to zero.
6114 (struct saved_window): New member min_hscroll.
6115 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6116 (Fset_window_configuration): Set window's min_hscroll.
6117 (save_window_save): Save window's min_hscroll.
6118 (compare_window_configurations): Compare min_hscroll values.
6119
6120 * window.h (struct window): New member min_hscroll.
6121
6122 * keyboard.c (echo_prompt): Prevent a compiler warning.
6123
6124 * xdisp.c (try_cursor_movement): Fix last change. The real
6125 condition is that PT is at the end of the row, and should
6126 be displayed at the start of the next row.
6127
6128 * xdisp.c (try_cursor_movement): If we end on a partially
6129 visible line, end we already decided to scroll, return -1.
6130
6131 * dispextern.h (ensure_frame_matrix): Add prototype.
6132
6133 * window.c (delete_window, Fsplit_window)
6134 (Fset_window_configuration): Call ensure_frame_matrix.
6135
6136 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6137 New functions.
6138 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6139 completed, call fake_current_matrices instead of marking frame
6140 garbaged.
6141
6142 2000-12-20 Jason Rumney <jasonr@gnu.org>
6143
6144 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6145
6146 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6147
6148 * fns.c (Frequire): Doc fix.
6149
6150 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6151
6152 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
6153
6154 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6155 currently displaying a message.
6156
6157 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
6158 xterm.h.
6159 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
6160
6161 2000-12-18 Andrew Innes <andrewi@gnu.org>
6162
6163 * w32.c (w32_strerror): New function.
6164
6165 * w32.h (w32_strerror): New extern.
6166
6167 * w32fns.c (Fw32_shell_execute): Use it.
6168
6169 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6170
6171 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
6172
6173 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6174
6175 * msdos.c (IT_set_face): Obey inverse_video.
6176
6177 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6178
6179 * dired.c (directory_files_internal): Always return decoded filenames.
6180
6181 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6182
6183 * xterm.c (x_connection_closed): Prevent being called recursively
6184 because of an error condition in XtCloseDisplay.
6185
6186 * xdisp.c (init_iterator): If noninteractive, and the frame's
6187 face cache is null, make one.
6188
6189 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
6190
6191 * process.c (wait_reading_process_input): Check for pending
6192 input when running timers.
6193
6194 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6195
6196 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
6197
6198 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6199
6200 * process.c (read_process_output): Don't run a filter if the code
6201 decoder produces nothing but carryover.
6202
6203 2000-12-17 Andrew Innes <andrewi@gnu.org>
6204
6205 * w32.c (sys_rename): Only check errno against EEXIST, and not
6206 EACCES, when determining whether rename failed because the target
6207 exists. This was resulting in indefinite looping on Windows 9x if
6208 the source file was locked by another process.
6209
6210 * w32fns.c (Ffile_system_info): New function.
6211 (syms_of_w32fns): Defsubr it.
6212
6213 2000-12-17 Gerd Moellmann <gerd@gnu.org>
6214
6215 * window.c (coordinates_in_window): Fix computation for
6216 position on vertical line between mode lines.
6217
6218 * xfns.c (unwind_create_frame): Return t if frame was deleted.
6219 Don't alter tip_frame or tip_window.
6220 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6221 was deleted.
6222
6223 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
6224 Don't alter tip_frame or tip_window.
6225 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6226 was deleted.
6227
6228 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
6229
6230 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
6231 be consistent with the doc string. Reported by NAKAJIMA Mikio
6232 <minakaji@osaka.email.ne.jp>.
6233
6234 2000-12-16 Kenichi Handa <handa@etl.go.jp>
6235
6236 * xfaces.c (Vface_ignored_fonts): New variable.
6237 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
6238 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
6239
6240 2000-12-15 Gerd Moellmann <gerd@gnu.org>
6241
6242 * dispnew.c (update_window): Detect pending input every nth line
6243 updated, i.e. do it depending on real work done, and not on the
6244 vpos of the line.
6245
6246 * xterm.c (expose_window): Don't redraw the window that's
6247 currently being updated.
6248
6249 * window.c (Fset_window_point): Remove test for
6250 cursor_in_non_selected_windows.
6251
6252 * lread.c (read1): Recognize end of file after `\\'.
6253
6254 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6255 not unwind_create_frame.
6256
6257 2000-12-15 Dave Love <fx@gnu.org>
6258
6259 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6260 bcopy & al.
6261
6262 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6263
6264 2000-12-15 Kenichi Handa <handa@etl.go.jp>
6265
6266 * coding.c (setup_coding_system): Clear all members of the struct
6267 coding_system at first.
6268 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6269 argument.
6270 (code_convert_region): Don't override coding->src_multibyte and
6271 coding->dst_multibyte.
6272
6273 * fns.c (Fmd5): Docstring improved.
6274
6275 2000-12-15 Miles Bader <miles@gnu.org>
6276
6277 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6278 are actually marked as mode-lines; otherwise use
6279 estimate_mode_line_height.
6280
6281 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6282
6283 * editfns.c (Fformat): Prevent a buffer overrun when the format
6284 specifies a precision.
6285
6286 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6287
6288 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6289 argument is outside the range [2..3].
6290
6291 2000-12-14 Andrew Innes <andrewi@gnu.org>
6292
6293 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6294 nothing to do. Bind inhibit-quit.
6295 (tip_frame): Make it a Lisp_Object.
6296 (x_create_tip_frame): Set tip_frame after it has been added to
6297 Vframe_list.
6298 (Fx_show_tip): Don't set tip_frame here.
6299 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
6300 (unwind_create_frame, unwind_create_tip_frame): New functions.
6301 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6302 while a frame is only partially constructed.
6303
6304 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6305 (x_free_frame_resources): New function.
6306 (x_destroy_window): Use it.
6307
6308 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6309
6310 * xfns.c (Fx_backspace_delete_keys_p): New function.
6311 (syms_of_xfns): Defsubr it.
6312
6313 * config.in (HAVE_XKBGETKEYBOARD): Add.
6314
6315 2000-12-14 Kenichi Handa <handa@etl.go.jp>
6316
6317 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6318 Always store string in multibyte representation in echobuf.
6319 (echo_char): Always store string in multibyte representation in
6320 echobuf.
6321 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6322 (read_key_sequence): Adjusted for the change of echo_prompt.
6323
6324 * fns.c (Fmd5): Docstring improved.
6325
6326 * lisp.h (detect_coding_system): Prototype adjusted.
6327
6328 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6329 (detect_coding_emacs_mule, detect_coding_iso2022,)
6330 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
6331 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6332 New argument MULTIBYTEP. Callers changed.
6333 (detect_coding_mask, detect_coding_system): New argument
6334 MULTIBYTEP. Callers changed.
6335 (decode_coding_string): Set coding->src_multibyte and
6336 coding->dst_multibyte before calling detect_coding and detect_eol.
6337 Update them after some coding system is detected.
6338
6339 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6340
6341 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6342
6343 * keyboard.c (menu_bar_items, tool_bar_items):
6344 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6345
6346 2000-12-13 Gerd Moellmann <gerd@gnu.org>
6347
6348 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6349 New variables.
6350 (unwind_create_frame, unwind_create_tip_frame): New functions.
6351 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6352 while a frame is only partially constructed.
6353
6354 * xterm.h (x_free_frame_resources): Declare.
6355
6356 * xterm.c (x_free_frame_resources): New function.
6357 (x_destroy_window): Use it.
6358
6359 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6360 don't interrupt the update for pending input initially, i.e.
6361 update at least some lines.
6362
6363 * keyboard.c (do_mouse_tracking): Make externally visible.
6364
6365 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
6366
6367 * xfns.c (gray_bitmap_bits): Declare `char *'.
6368
6369 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6370
6371 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6372 lines start with a relief line.
6373
6374 2000-12-12 Dave Love <fx@gnu.org>
6375
6376 * window.c (Fdisplay_buffer): Doc fix.
6377 (Fwindow_list): Remove unused var.
6378
6379 * buffer.h (mmap_set_vars): Declare.
6380
6381 * window.h (Fset_window_point): Declare.
6382
6383 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6384
6385 * msdos.c (fast_find_position): Don't overstep the last window row.
6386 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6387 variable `area'. When looking for a row under (X,Y), give up if some
6388 of the previous rows is not enabled.
6389
6390 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6391
6392 * window.c (Fset_window_point): If displaying cursors in windows
6393 other than the selected window, make sure redisplay updates
6394 other windows to show the new value of point in the window.
6395
6396 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6397
6398 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6399 the buffer is the sole visible buffer when in the mini-buffer.
6400
6401 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
6402 Bind `inhibit-read-only' to t.
6403 (unwind_with_echo_area_buffer): Use AREF.
6404
6405 * xfns.c (Fx_hide_tip): Simplified.
6406
6407 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6408 instead of `1'.
6409
6410 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6411
6412 2000-12-11 Gerd Moellmann <gerd@gnu.org>
6413
6414 * xfns.c (Fx_hide_tip): Fix last change.
6415
6416 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6417 nothing to do. Bind inhibit-quit.
6418 (tip_frame): Make it a Lisp_Object.
6419 (x_create_tip_frame): Set tip_frame after it has been added to
6420 Vframe_list.
6421 (Fx_show_tip): Don't set tip_frame here.
6422
6423 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6424
6425 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6426 Lisp_Object.
6427
6428 * dispextern.h: Change external declaration of tip_frame.
6429
6430 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6431 return an empty string.
6432
6433 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6434 of the window's update_mode_line flag, since the former is set by
6435 force-mode-line-update, not the latter. This makes
6436 column-number-mode slightly faster.
6437
6438 * xdisp.c (try_window_id) <all changes above window start>:
6439 Set the cursor.
6440
6441 2000-12-11 Paul Eggert <eggert@twinsun.com>
6442
6443 * config.in (HAVE_FTELLO): Remove.
6444 (HAVE_FSEEKO): Add.
6445 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6446 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6447 HAVE_FTELLO.
6448 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6449 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
6450
6451 2000-12-11 Miles Bader <miles@gnu.org>
6452
6453 * window.c (displayed_window_lines): Don't round up when
6454 converting empty space at bottom to lines.
6455 Handle non-newline-terminated final lines properly.
6456 (Fwindow_text_height): New function (used to be in lisp).
6457 (syms_of_window): Initialize it.
6458
6459 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6460
6461 * syntax.c (scan_lists): Check that the right quote char has the
6462 right Sstring syntax when jumping over strings.
6463 (init_syntax_once): Use Smax rather than 13.
6464
6465 2000-12-09 Miles Bader <miles@gnu.org>
6466
6467 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6468 with PARTIALLY, inverting the sense.
6469 (window_scroll_pixel_based): Scroll partially visible lines into
6470 place if we hit the beginning or end of the buffer.
6471 (displayed_window_lines): Don't include partially visible lines.
6472 (Fmove_to_window_line): Skip past any partially visible first line.
6473
6474 2000-12-08 Gerd Moellmann <gerd@gnu.org>
6475
6476 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6477
6478 * tparam.c (tparam1): Change the way buffers are reallocated to be
6479 portable and less obfuscated.
6480
6481 * termcap.c (tgetent): Change the way buffers are reallocated to
6482 be portable and less obfuscated.
6483
6484 * macros.c (store_kbd_macro_char): Change the way buffers are
6485 reallocated to be portable and less obfuscated.
6486
6487 * lread.c (read1): Change the way buffers are reallocated to be
6488 portable and less obfuscated.
6489
6490 * doc.c (Fsubstitute_command_keys): Change the way buffers
6491 are reallocated so that it is portable.
6492
6493 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6494
6495 * dosfns.c (Ffile_system_info): New function.
6496 (syms_of_dosfns): Defsubr it.
6497
6498 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6499
6500 * alloc.c (gc_sweep): Add comment.
6501
6502 2000-12-07 Gerd Moellmann <gerd@gnu.org>
6503
6504 * sound.c (vox_configure): Change order of ioctls.
6505 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
6506 Ignore errors when changing volume.
6507 (vox_close): Don't reset the device.
6508
6509 * process.c (read_process_output): Make sure the process marker's
6510 position is valid when the process buffer is changed in
6511 after-change functions. W3 does that.
6512
6513 * xfns.c (x_free_gcs): New function.
6514
6515 * xterm.h (x_free_gcs): Add prototype.
6516
6517 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6518 freeing GCs here.
6519
6520 * xterm.c (x_destroy_window): Call x_free_gcs so that
6521 resources of non-toolkit X windows will be freed.
6522
6523 2000-12-07 Andrew Innes <andrewi@gnu.org>
6524
6525 * w32fns.c (xlfd_charset_of_font): Fix last change.
6526
6527 2000-12-06 Dave Love <fx@gnu.org>
6528
6529 * md5.h (__P): Don't define -- it comes from config.h.
6530
6531 * strftime.c: Change some #if foo to #ifdef foo.
6532
6533 2000-12-06 Andrew Innes <andrewi@gnu.org>
6534
6535 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6536
6537 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
6538 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
6539 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
6540
6541 2000-12-06 Gerd Moellmann <gerd@gnu.org>
6542
6543 * alloc.c (gc_sweep): Prevent symbols read during loadup
6544 from being freed.
6545
6546 * xdisp.c (underlying_face_id): New function.
6547 (handle_face_prop, face_before_or_after_it_pos): Use it
6548 to determine the face ``under'' a string. Let strings inherit
6549 the face of the buffer under them.
6550
6551 * xfaces.c (face_at_string_position): Update function comment.
6552
6553 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6554 matrix if the window's left position has changed; we need to
6555 redraw it in this case.
6556
6557 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6558
6559 * window.c (coordinates_in_window): Check mouse on mode-line or
6560 header-line first.
6561
6562 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6563 advertized by the function documentation.
6564
6565 * window.c (syms_of_window): Doc fix.
6566
6567 * sound.c (vox_configure): Set volume for left and right channel.
6568 (sound_cleanup): Return nil.
6569
6570 * xdisp.c (move_it_by_lines): Fix paren typo.
6571
6572 * xterm.c (x_load_font): Don't use the font's max_bounds for
6573 computing the height of the font. If max_bounds' ascent or
6574 descent are greater than the font's ascent or descent, this means
6575 glyphs overlap, which should be handled now by redisplay.
6576
6577 * window.c (Veven_window_heights): New variable.
6578 (syms_of_window): DEFVAR_LISP it.
6579 (Fdisplay_buffer): Check Veven_window_heights before evening the
6580 window heights.
6581
6582 2000-12-06 Miles Bader <miles@gnu.org>
6583
6584 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6585 update `default-frame-alist' instead of setting no frame parameters.
6586
6587 2000-12-06 Kenichi Handa <handa@etl.go.jp>
6588
6589 * composite.c (update_compositions): Fix typo (use the correct
6590 variable).
6591
6592 2000-12-05 Jason Rumney <jasonr@gnu.org>
6593
6594 * md5.h: Remove underscores from function declarations.
6595 (__attribute__, __alignof__) [!__GNUC__]: Define.
6596
6597 * md5.c: Delay include of md5.h until after namespace cleaning.
6598
6599 * makefile.w32-in (fns.o): Depend on md5.h
6600 (md5.o): New target.
6601 (sunfns.o): Remove.
6602
6603 * makefile.nt: Likewise.
6604
6605 2000-12-05 Jason Rumney <jasonr@altavista.net>
6606
6607 * w32term.c (expose_area): Complete last change.
6608
6609 2000-12-05 Ken Raeburn <raeburn@gnu.org>
6610
6611 * minibuf.c: Include intervals.h.
6612
6613 2000-12-05 Jason Rumney <jasonr@gnu.org>
6614
6615 * w32term.c (x_produce_glyphs): If a font for a component of
6616 a composition is not found, use 1 pixel dot ascent and 0 dot
6617 descent value to avoid displaying terribly tall empty boxes.
6618 (expose_area): Pass x-coordinate relative to the exposed
6619 area to x_draw_glyphs instead of a window-relative coordinate.
6620
6621 2000-12-05 Gerd Moellmann <gerd@gnu.org>
6622
6623 * xdisp.c (next_element_from_ellipsis): Save face before selective
6624 display in saved_face_id, and set face_before_selective_p.
6625 (reseat_1): Reset face_before_selective_p.
6626 (append_space, extend_face_to_end_of_line): If iterator's
6627 face_before_selective_p is set, use the face from saved_face_id.
6628 (extend_face_to_end_of_line): For tty frames, make sure to
6629 use the right face id when producing spaces at the end of
6630 the line.
6631
6632 * dispextern.h (struct it): Add face_before_selective_p.
6633
6634 * keyboard.c (record_char): Don't record identical help-echo
6635 events in recent_keys.
6636
6637 * xterm.c [USE_X_TOOLKIT]: Close the display.
6638 (xim_close_dpy): Handle case that the display has been closed.
6639
6640 * xterm.c (x_destroy_window): Reset the frame's X window after
6641 destroying it.
6642
6643 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6644 variable window_width.
6645 (line_draw_cost): Fix code skipping over spaces at the end of the
6646 line when must_write_spaces is not set.
6647 (scrolling_window): Fix code inserting runs in list of all runs.
6648
6649 2000-12-05 Kenichi Handa <handa@etl.go.jp>
6650
6651 * coding.c (setup_coding_system): Be sure to initialize
6652 coding->category_idx.
6653
6654 2000-12-04 Gerd Moellmann <gerd@gnu.org>
6655
6656 * xterm.c (PER_CHAR_METRIC): Removed because not used.
6657
6658 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6659 area to x_draw_glyphs instead of a window-relative coordinate.
6660
6661 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6662 error in the message.
6663
6664 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6665 timer after having read a key. It's not good for code reading
6666 several keys in a loop, like an input method.
6667
6668 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6669 record undo information for format-decode.
6670
6671 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6672 current buffer is read-only, not if it isn't.
6673
6674 * keyboard.c (record_char): Record `help-echo' input events
6675 in recent_keys only if they display some help. Don't record
6676 `help-echo' events as macro char.
6677
6678 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6679
6680 * editfns.c (save_excursion_restore): Don't move point
6681 in another window if it is showing the wrong buffer.
6682 Avoid the call to Fwindow_live_p, for speed.
6683
6684 2000-12-04 Kenichi Handa <handa@etl.go.jp>
6685
6686 * xfaces.c (struct font_name): New member registry_priority.
6687 (split_font_name): Initialize the above member to zero.
6688 (concat_font_list): New function.
6689 (font_list): Include fonts of all alternative registries.
6690 (FONT_POINT_SIZE_QUANTUM): New macro.
6691 (better_font_p): Ignore point size difference less than
6692 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6693
6694 * xterm.c (x_produce_glyphs): If a font for a component of
6695 a composition is not found, use 1 pixel dot ascent and 0 dot
6696 descent value to avoid displaying terribly tall empty boxes.
6697
6698 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6699
6700 2000-12-03 Ken Raeburn <raeburn@gnu.org>
6701
6702 * coding.h (code_convert_string1): Declare.
6703
6704 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6705
6706 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
6707
6708 2000-12-02 Jason Rumney <jasonr@gnu.org>
6709
6710 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6711 correctly for single byte character case.
6712 (w32_per_char_metric): Do not try to make any assumptions about
6713 the metrics of BDF fonts.
6714 (x_estimate_mode_line_height): If `mode-line' face
6715 hasn't a font, use that of the frame, as drawing glyphs does.
6716 (note_mouse_highlight): Change the cursor shape on the vertical
6717 border between windows [not enabled].
6718
6719 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6720
6721 * w32fns.c (Fx_create_frame): Reintroduce the call to
6722 face-set-after-frame-defaults.
6723 (Vx_window_horizontal_drag_shape): New variable.
6724 (syms_of_xfns): DEFVAR_LISP it.
6725 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6726 enabled].
6727
6728 2000-12-02 Simon Josefsson <simon@josefsson.org>
6729
6730 * fns.c (Fmd5): Use a different logic to decide the coding system
6731 to use.
6732
6733 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6734
6735 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6736
6737 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
6738
6739 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6740
6741 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6742 height for YNegative.
6743 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6744 height; also see comment there.
6745
6746 * window.c (coordinates_in_window): Handle computations for
6747 positions on the vertical bar and fringes differently for
6748 window-system frames. Consider some pixels near the vertical bar
6749 as on the bar if the frame doesn't have vertical scroll bars.
6750 Associate positions between mode or header lines with the
6751 right window, the left one.
6752
6753 2000-12-01 Jason Rumney <jasonr@gnu.org>
6754
6755 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6756
6757 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6758 invalid frame.
6759
6760 2000-12-01 Gerd Moellmann <gerd@gnu.org>
6761
6762 * window.c (struct saved_window): Add members orig_top and orig_height.
6763 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6764 (save_window_save, Fset_window_configuration): Save/restore
6765 window's orig_top and orig_height.
6766
6767 2000-12-01 Jason Rumney <jasonr@gnu.org>
6768
6769 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
6770
6771 * w32fns.c (x_set_cursor_color): Fix last change.
6772
6773 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6774
6775 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6776 sure that the next redisplay displays the minibuffer, so that
6777 the cursor will be replaced with what the minibuffer wants.
6778
6779 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6780 #ifndef instead of using #if.
6781 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6782 USE_TOOLKIT_SCROLL_BARS is defined.
6783
6784 2000-11-30 Jason Rumney <jasonr@gnu.org>
6785
6786 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6787 x_display_cursor.
6788
6789 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6790
6791 * fns.c (Fmd5): Doc fix.
6792
6793 2000-11-30 Simon Josefsson <simon@josefsson.org>
6794
6795 * fns.c (Fmd5): New function.
6796 (syms_of_fns): Defsubr md5.
6797
6798 * Makefile.in (obj): Add md5.o
6799
6800 2000-11-30 Gerd Moellmann <gerd@gnu.org>
6801
6802 * md5.h, md5.c: New files, taken from glibc.
6803
6804 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6805
6806 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
6807 hasn't a font, use that of the frame, as drawing glyphs does.
6808
6809 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6810
6811 * eval.c (Frun_hooks): Allow 0 arguments.
6812
6813 2000-11-29 Gerd Moellmann <gerd@gnu.org>
6814
6815 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6816 is over the menu bar widget, say it's not on the frame.
6817
6818 * xfns.c (Fx_create_frame): Reintroduce the call to
6819 face-set-after-frame-defaults.
6820
6821 * eval.c (Fsignal): Reset handling_signal.
6822
6823 2000-11-28 Jason Rumney <jasonr@gnu.org>
6824
6825 * w32menu.c (add_menu_item): Reset menu item text when changing
6826 type to radio button.
6827
6828 2000-11-28 Gerd Moellmann <gerd@gnu.org>
6829
6830 * xselect.c: Update copyright.
6831
6832 * window.c (coordinates_in_window): If on a mode or header line,
6833 but sufficiently close to its start, return ``on vertical
6834 border''. This gives us a way to drag windows horizontally when
6835 using toolkit scroll bars.
6836
6837 * xterm.c (note_mouse_highlight): Change the cursor shape
6838 on the vertical border between windows.
6839
6840 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6841
6842 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6843 (syms_of_xfns): DEFVAR_LISP it.
6844 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6845
6846 * textprop.c (text_read_only): New function.
6847 (verify_interval_modification): Use it instead of signaling
6848 `text-read-only'. This makes it easier to catch this error
6849 with a breakpoint.:
6850
6851 * xdisp.c (forward_to_next_line_start): Check for newlines,
6852 not end of line, which includes CR.
6853
6854 2000-11-28 Kenichi Handa <handa@etl.go.jp>
6855
6856 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6857 include no-conversion.
6858
6859 2000-11-27 Jason Rumney <jasonr@gnu.org>
6860
6861 * w32fns.c (w32_load_system_font): Always mark font as double byte
6862 if codepage is unicode.
6863
6864 2000-11-27 Gerd Moellmann <gerd@gnu.org>
6865
6866 * xdisp.c (forward_to_next_line_start): If already on a newline,
6867 just consume it to avoid unintended skipping over invisible text below.
6868
6869 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6870 `vertical-line', `mode-line' and `header-line' events.
6871
6872 * xdisp.c (try_window_id): Avoid starting to display in the middle
6873 of a character, a TAB for instance. This is easier than to set
6874 up the iterator exactly, and it's not a frequent case, so the
6875 additional effort wouldn't really pay off.
6876
6877 2000-11-26 Andrew Choi <akochoi@i-cable.com>
6878
6879 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
6880 init_window_once.
6881
6882 2000-11-25 Jason Rumney <jasonr@gnu.org>
6883
6884 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6885 Args to window_from_coordinates should be pixel coordinates.
6886
6887 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6888 redisplay handles them properly.
6889
6890 2000-11-25 Miles Bader <miles@gnu.org>
6891
6892 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6893
6894 2000-11-24 Jason Rumney <jasonr@gnu.org>
6895
6896 * w32.c (init_environment): Set LANG environment variable based on
6897 locale settings, if not set.
6898
6899 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6900 making tool bar smaller. When clearing the frame, also
6901 clear current matrices. Clear frame when tool bar disappears.
6902 Don't use more lines for the tool-bar than is available.
6903 (x_change_window_heights): New function.
6904
6905 2000-11-24 Gerd Moellmann <gerd@gnu.org>
6906
6907 * xdisp.c (init_from_display_pos): If POS says we're already after
6908 an overlay string ending at POS, make sure to pop the iterator
6909 because it will be in front of that overlay string. When POS is
6910 ZV, we've thereby also ``processed'' overlay strings at ZV.
6911
6912 * xfaces.c (lface_from_face_name): Function comment fix.
6913
6914 2000-11-24 Miles Bader <miles@gnu.org>
6915
6916 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6917 apply `mode-line-inverse-video' -- zero means force display using
6918 the default face, non-zero means display using the specialized face.
6919 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6920
6921 2000-11-23 Kenichi Handa <handa@etl.go.jp>
6922
6923 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6924 hard coded `4'.
6925
6926 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6927
6928 * coding.c (decode_coding_emacs_mule): Fix the case of
6929 CODING_EOL_LF, which used uninitialized value of c.
6930
6931 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6932
6933 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6934
6935 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6936
6937 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6938 buffer object.
6939
6940 * frame.h (struct frame): Replace desired_tool_bar_items,
6941 current_tool_bar_items, n_desired_tool_bar_items,
6942 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
6943
6944 * frame.c (make_frame): Change initialization of tool bar
6945 items accordingly.
6946
6947 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
6948 Change references to members deleted from struct frame to use the
6949 new ones.
6950
6951 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
6952 references to members deleted from struct frame to use the new ones.
6953
6954 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
6955
6956 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6957
6958 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
6959 (note_tool_bar_highlight): Change references to members deleted
6960 from struct frame to use the new ones.
6961
6962 2000-11-23 Miles Bader <miles@gnu.org>
6963
6964 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6965 the face's inverse-video attribute, rather than overriding it.
6966
6967 2000-11-22 Gerd Moellmann <gerd@gnu.org>
6968
6969 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6970 making tool bar smaller.
6971
6972 2000-11-22 Dave Love <fx@gnu.org>
6973
6974 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6975
6976 2000-11-22 Miles Bader <miles@gnu.org>
6977
6978 * keyboard.c (Vminibuffer_message_timeout): New variable.
6979 (command_loop_1): Use it to determine message timeout.
6980 (syms_of_keyboard): Initialize it.
6981
6982 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
6983
6984 2000-11-22 Kenichi Handa <handa@etl.go.jp>
6985
6986 * sysdep.c: Move the code for declaring h_errno after #include
6987 <netdb.h>.
6988
6989 2000-11-21 Gerd Moellmann <gerd@gnu.org>
6990
6991 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6992 the menu bar when the tooltip is unmapped.
6993
6994 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6995 sole visible buffer when we're currently in the mini-buffer, and
6996 give up if so.
6997
6998 2000-11-21 Jason Rumney <jasonr@gnu.org>
6999
7000 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7001 put on the clipboard.
7002 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7003 copy of what Emacs last put there. If they are the same, do not
7004 use the clipboard copy to avoid losing data due to coding conversions.
7005
7006 2000-11-22 Miles Bader <miles@gnu.org>
7007
7008 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7009 (syms_of_minibuf): Initialize it.
7010 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7011 to prompt, don't make read-only.
7012
7013 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7014
7015 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7016 Add BEFORE/AFTER_POTENTIAL_GC.
7017
7018 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7019
7020 * buffer.c (mmap_free_1): Avoid a compiler warning.
7021
7022 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7023
7024 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7025
7026 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7027 ... #endif scope.
7028
7029 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7030
7031 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7032 screen supports it.
7033
7034 * s/gnu-linux.h: Don't use `#cpu'.
7035
7036 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7037 not defined in mman.h.
7038
7039 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7040 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7041 and store an index in the XClientMessageEvent. Storing a
7042 Lisp_Object or pointer can fail on a 64 bit system, since X only
7043 transfers 32 bits.
7044 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7045
7046 2000-11-20 Dave Love <fx@gnu.org>
7047
7048 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7049
7050 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7051
7052 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7053
7054 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7055
7056 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7057 by WIDTH.
7058
7059 * alloc.c (make_string): Fix previous change. Be sure to make
7060 unibyte string correctly.
7061
7062 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7063
7064 * window.c (Fwindow_list): Change parameter list to be XEmacs
7065 compatible.
7066 (window_list_1): New function.
7067 (window_loop): Use it instead of Fwindow_list.
7068
7069 * sysdep.c (emacs_ospeed): New variable.
7070 (toplevel): Don't declare ospeed extern.
7071 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7072
7073 * termcap.c (ospeed): Remove.
7074 (tputs) [!emacs]: Remove unused code.
7075 (tgetent): Avoid a compiler warning.
7076
7077 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7078 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7079 SCROLL_BAR_X_WIDGET with additional argument DPY.
7080
7081 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7082 removed.
7083 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7084 Take the X display as additional argument.
7085 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7086 `Widget' is a pointer type that's not easily stored in Lisp_Object
7087 form in a portable way.
7088
7089 * dispnew.c (update_text_area): Fix last change.
7090
7091 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7092
7093 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7094
7095 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7096 clear current matrices.
7097
7098 * buffer.c (mmap_enlarge): Don't print a message on stderr
7099 if mapping new memory at the end of the existing region fails.
7100
7101 * dispnew.c (update_text_area): Don't skip over equal glyphs
7102 when the last current glyph overlaps the glyph to its right.
7103
7104 2000-11-18 Miles Bader <miles@gnu.org>
7105
7106 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7107 lines that *end* with "..." too (that's the most common case!).
7108
7109 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7110
7111 * xdisp.c (resize_mini_window): Temporarily change to the
7112 mini-window's buffer if necessary.
7113
7114 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7115 the tooltip obscures less text under it.
7116
7117 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7118
7119 * puresize.h (BASE_PURESIZE): Increase to 700000.
7120
7121 2000-11-18 Jason Rumney <jasonr@gnu.org>
7122
7123 * w32term.c (w32_draw_bitmap): Use face to set colors.
7124
7125 2000-11-17 Dave Love <fx@gnu.org>
7126
7127 * lread.c (Fload): Fix #ifdef for pcc.
7128
7129 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7130
7131 * xdisp.c (pos_visible_p): Compute the default character height
7132 differently.
7133
7134 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7135
7136 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7137 knowing the line's height; use the default font's height in that case.
7138
7139 * xfaces.c (weight_table): Add `demi' with the same meaning as
7140 `demibold'.
7141
7142 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7143
7144 * dispnew.c (null_row): New global static variable.
7145 (clear_glyph_row): Delete local static variable null_row.
7146
7147 2000-11-15 Jason Rumney <jasonr@gnu.org>
7148
7149 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7150 (w32_alloc_lighter_color): Use new brightness calculations from
7151 xterm.c. Scale delta to be in the range expected by W32.
7152 (w32_draw_relief_rect): Use frame relief colors.
7153
7154 2000-11-15 Gerd Moellmann <gerd@gnu.org>
7155
7156 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
7157 (Qinhibit_default_face_x_resources): New variable.
7158 (syms_of_frame): Initialize it.
7159 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
7160
7161 * xdisp.c (pos_visible_p): Improve function comment.
7162
7163 * lisp.h (BINDING_STACK_SIZE): New macro.
7164
7165 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
7166 reading the directory if readdir returns null and errno is EAGAIN
7167 or EINTR.
7168
7169 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
7170
7171 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
7172 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
7173 Set amount_to_scroll to max of dx and scroll_step so that
7174 scroll-conservatively doesn't defeat scroll-step>1.
7175 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
7176 scroll-conservatively for line-at-a-time scrolling.
7177
7178 2000-11-14 Gerd Moellmann <gerd@gnu.org>
7179
7180 * window.c (Fpos_visible_in_window_p): Call pos_visible with
7181 extra argument.
7182
7183 * xdisp.c (current_mode_line_height, current_header_line_height):
7184 New variables.
7185 (init_xdisp): Initialize them.
7186 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
7187 and use exact mode line heights if it is set.
7188
7189 * lisp.h (pos_visible_p): Change prototype.
7190
7191 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
7192 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
7193 and current_header_line_height first.
7194 (current_mode_line_height, current_header_line_height):
7195 Declare extern.
7196
7197 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
7198
7199 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
7200 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
7201 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
7202
7203 2000-11-14 Miles Bader <miles@gnu.org>
7204
7205 * xterm.c (x_alloc_lighter_color): Include an additive component
7206 too for dark colors, because FACTOR isn't enough.
7207 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
7208 New macros.
7209
7210 2000-11-13 Gerd Moellmann <gerd@gnu.org>
7211
7212 * keyboard.c (show_help_echo): Call message3_nolog with number of
7213 bytes in the help string as 2nd parameter, instead of the number
7214 of characters.
7215
7216 2000-11-13 Miles Bader <miles@gnu.org>
7217
7218 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
7219 (Fload): Use new openp return protocol.
7220 Don't try to use Vload_source_file_function to load .elc files.
7221 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
7222 openp return protocol.
7223 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
7224
7225 2000-11-11 Kenichi Handa <handa@etl.go.jp>
7226
7227 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
7228
7229 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
7230 Defined these macros.
7231 (NLIST_STRUCT): Avoid re-defining it.
7232
7233 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
7234 -I/usr/contrib/X11R6/include.
7235 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
7236
7237 2000-11-10 Jason Rumney <jasonr@gnu.org>
7238
7239 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
7240
7241 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
7242 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7243
7244 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7245 (Qw32_charset_vietnamese): New symbol.
7246 (xlfd_charset_of_font): New function.
7247 (w32_load_system_font): Use it.
7248 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7249 when Vw32_charset_info_alist is nil to ensure default face always
7250 has font. Use Fcar and Fcdr for safety.
7251 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7252 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7253 pseudo-codepages for special cases.
7254 (w32_to_x_font): New parameter to allow charset portion to be
7255 specified where there is many to one mapping. Callers changed.
7256 (w32_list_fonts): Avoid listing fonts that won't display.
7257
7258 2000-11-10 Gerd Moellmann <gerd@gnu.org>
7259
7260 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7261 (font_list_1): Renamed from font_list.
7262 (font_list): New function, trying alternative registries from
7263 Vface_alternative_font_registry_alist.
7264 (Finternal_set_alternative_font_registry_alist): New function.
7265 (syms_of_xfaces): Initialize and Staticpro
7266 Vface_alternative_font_registry_alist.
7267 Defsubr Finternal_set_alternative_font_registry_alist.
7268
7269 2000-11-09 Ken Raeburn <raeburn@gnu.org>
7270
7271 * lisp.h (Flooking_at): Declare.
7272
7273 2000-11-09 Gerd Moellmann <gerd@gnu.org>
7274
7275 * dired.c (directory_files_internal): Fix a braino.
7276
7277 * dired.c (directory_files_internal): Add missing GCPRO's.
7278 Some cleanup.
7279
7280 2000-11-08 Gerd Moellmann <gerd@gnu.org>
7281
7282 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7283 (resize_mini_window): Return quickly if Vresize_mini_window is
7284 nil. Don't return if Vmax_mini_window_height is nil.
7285
7286 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7287 (syms_of_xdisp): Initialize them.
7288 (resize_mini_window): Act according to the setting of
7289 Vresize_mini_window.
7290 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7291
7292 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7293 scroll bar widget after configuring it, so that it will appear at
7294 the right position from the start.
7295 (XTredeem_scroll_bar): Cleaned up.
7296
7297 2000-11-08 Kenichi Handa <handa@etl.go.jp>
7298
7299 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
7300 font is taller than the frame line, we don't have to bias the
7301 division by two.
7302
7303 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7304
7305 2000-11-07 Dave Love <fx@gnu.org>
7306
7307 * config.in (HAVE_MKSTEMP): Add.
7308
7309 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7310
7311 2000-11-07 Gerd Moellmann <gerd@gnu.org>
7312
7313 * window.c (Fset_window_configuration): Don't try to preserve
7314 point in the current buffer, if that buffer is displayed in more
7315 than one window.
7316
7317 * xfaces.c (lookup_named_face): If default face isn't realized,
7318 try to realize it. Return -1 if not successful.
7319 (Fx_list_fonts): Handle case that face cannot be determined.
7320 (Fface_font): Likewise.
7321
7322 2000-11-06 Gerd Moellmann <gerd@gnu.org>
7323
7324 * window.c (displayed_window_lines): Detect partially
7325 visible lines at the bottom correctly.
7326
7327 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7328
7329 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7330 when ensuring we don't do visit in indirect buffer.
7331
7332 2000-11-06 Kenichi Handa <handa@etl.go.jp>
7333
7334 * composite.h (compose_chars_in_text): Add prototype.
7335
7336 * composite.c (Vcomposition_function_table): New variable.
7337 (Qcomposition_function_table): New variable.
7338 (run_composition_function): Call
7339 Vcompose_chars_after_function with three arguments.
7340 (compose_chars_in_text): New function.
7341 (syms_of_composite): Modified the doc-string of
7342 Vcompose_chars_after_function. Declare composition-function-table
7343 as a lisp variable, and initialize it.
7344
7345 * xfns.c (x_encode_text): Suppress producing escape sequences for
7346 composition.
7347
7348 * xselect.c: Include composite.h.
7349 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7350
7351 2000-11-05 Andrew Innes <andrewi@gnu.org>
7352
7353 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7354
7355 * sysdep.c (read_input_waiting): Remove extraneous argument to
7356 read_socket_hook.
7357
7358 * w32fns.c (Fx_server_version): Include w32_build_number in the
7359 return list.
7360
7361 * w32heap.c (w32_build_number): New variable.
7362 (cache_system_info): Set it.
7363
7364 * w32heap.h (w32_build_number): Add extern.
7365
7366 * emacs.c (syms_of_emacs): Update docstring for
7367 system-configuration, to reflect the actual usage on MS-Windows.
7368
7369 2000-10-31 Gerd Moellmann <gerd@gnu.org>
7370
7371 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7372 process idle timers while waiting for another event.
7373
7374 * dispnew.c (update_frame_line): Handle case where spaces in
7375 the default face are colored.
7376
7377 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7378 window height hasn't changed.
7379
7380 2000-10-31 Jason Rumney <jasonr@gnu.org>
7381
7382 * w32term.c (x_produce_glyphs): Handle composite characters.
7383 (x_draw_glyph_string_foreground)
7384 (x_draw_composite_glyph_string_foreground): Restore old font.
7385
7386 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7387
7388 * minibuf.c (read_minibuf): Reset the undo history just before
7389 starting the recursive-edit.
7390
7391 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7392
7393 * xfaces.c (menu_face_change_count): New variable.
7394 (Finternal_set_lisp_face_attribute): Increment it for changes
7395 of the `menu' face.
7396 (realize_basic_faces): Reflect changes in the `menu' faces
7397 in menu bars.
7398
7399 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7400 dy obtained from the iterator's y-position after moving from
7401 scroll_margin_pos to PT; see comment there.
7402
7403 * xdisp.c (safe_eval_handler): Call add_to_log.
7404
7405 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7406 is not a symbol or string.
7407
7408 * xdisp.c (echo_area_display): Don't perform a display update from
7409 inside redisplay. The update will happen anyway at the end of
7410 redisplay, and it can confuse redisplay (GC messages while
7411 redisplaying, for instance.)
7412
7413 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7414
7415 * xrdb.c (x_load_resources): Use the class name in the defaults.
7416
7417 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7418 (regex_compile): Catch bogus \(\1\).
7419
7420 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7421
7422 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7423 RGB values.
7424
7425 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7426 we have a color cache, check that the cached color equals the
7427 allocated color. If not, clear the color cache.
7428
7429 * window.c (displayed_window_lines): Change buffers if necessary.
7430 Fix computation of displayed lines.
7431
7432 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7433 update_menu_bindings to DEFVAR_BOOL.
7434
7435 2000-10-30 Kenichi Handa <handa@etl.go.jp>
7436
7437 * search.c (Fset_match_data): Be sure to make search_regs always sane.
7438
7439 * puresize.h (BASE_PURESIZE): Increase to 680000.
7440
7441 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7442
7443 2000-10-29 Jason Rumney <jasonr@gnu.org>
7444
7445 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7446
7447 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7448 (w32_cache_char_metrics): Handle possibility that 'x' does not
7449 exist in a BDF font.
7450 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7451
7452 * w32bdf.h (bdffont): Add nchars.
7453
7454 * w32bdf.c (set_bdf_font_info): Set it.
7455 (w32_BDF_TextOut): Swap byte order of double byte characters.
7456 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7457
7458 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7459
7460 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7461 don't override the colors in frame's param_alist, unless they are
7462 unspecified.
7463
7464 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7465 reverse the effect of the highlight flag.
7466
7467 2000-10-27 Ken Raeburn <raeburn@gnu.org>
7468
7469 * window.h (Fwindow_live_p): Declare.
7470
7471 * undo.c (record_delete): Check that last_undo_buffer is really a
7472 buffer before applying XBUFFER to it.
7473
7474 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7475 Faref.
7476
7477 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7478
7479 * lisp.h (KEYMAPP): New macro.
7480 (get_keymap): Remove.
7481 (get_keymap_1): Rename get_keymap.
7482
7483 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7484
7485 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7486
7487 * xmenu.c (single_submenu): Use KEYMAPP.
7488 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7489 Use KEYMAPP rather than Fkeymapp.
7490
7491 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7492
7493 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7494 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7495 Use KEYMAPP rather than Fkeymapp.
7496 (single_submenu): Use KEYMAPP.
7497 (w32_menu_show, w32_dialog_show): Use TRUE.
7498
7499 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7500
7501 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7502 (Fkeymapp): Use KEYMAPP.
7503 (get_keymap): Rename from get_keymap_1. Remove old def.
7504 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7505 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7506 (Fminor_mode_key_binding): Don't raise an error if the binding
7507 is not a keymap.
7508 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7509 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7510
7511 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7512 Allow Vspecial_event_map to be autoloaded.
7513 (menu_bar_items): Fetch the keymap rather than using keymapp.
7514 (menu_bar_one_keymap): No need to follow func-indirect any more.
7515 (parse_menu_item): get_keymap_1 -> get_keymap.
7516 (tool_bar_items): Fetch the keymap rather than using keymapp.
7517 (read_key_sequence): Use KEYMAPP.
7518
7519 * intervals.c (get_local_map): Use get_keymap rather than following
7520 function-indirections explicitly.
7521
7522 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7523
7524 2000-10-27 Jason Rumney <jasonr@gnu.org>
7525
7526 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7527 point, as Windows has oversized fonts.
7528
7529 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7530
7531 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7532
7533 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7534 (freehook, reallochook): Handle null pointer arguments.
7535 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7536
7537 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7538
7539 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7540 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7541 Giving in to popular pressure to shut up the compiler with casts.
7542
7543 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7544
7545 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7546 signed value, and use a default value computed from the font's
7547 maximum descent.
7548
7549 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7550
7551 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7552 that specify a negative underline position can still use underlines.
7553
7554 * window.c (Fpos_visible_in_window_p): Make POS default to
7555 WINDOW's point, not the current buffer's point.
7556
7557 2000-10-26 Dave Love <fx@gnu.org>
7558
7559 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7560 when it's necessary.
7561
7562 2000-10-26 Gerd Moellmann <gerd@gnu.org>
7563
7564 * window.c (size_window): Compute size difference from sum of old
7565 child window sizes instead of from parent's size.
7566
7567 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7568 Handle obscured lines at the top of the window.
7569
7570 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7571 down after the last error condition check.
7572
7573 * frame.c (Fdelete_frame): Run delete-frame-hook.
7574
7575 2000-10-26 Kenichi Handa <handa@etl.go.jp>
7576
7577 * coding.c (decode_coding): Fix previous change (check also
7578 CODING_MODE_LAST_BLOCK).
7579
7580 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7581
7582 * regex.c: More `unsigned char' -> `re_char' changes.
7583 Also change several `int' into `re_wchar_t'.
7584 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7585 (PUSH_FAILURE_POINTER): Don't cast any more.
7586 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7587 We want GCC to complain, since this piece of code makes
7588 re_match non-reentrant, which *should* be fixed.
7589 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7590 (EXTEND_BUFFER): Use RETALLOC.
7591 (SET_LIST_BIT): Don't cast.
7592 (re_wchar_t): New type.
7593 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7594 that those two functions will always properly return.
7595 (IMMEDIATE_QUIT_CHECK): Cast to void.
7596 (analyse_first): Use recursion rather than an explicit stack.
7597 (re_compile_fastmap): Can't fail anymore.
7598 (re_search_2): Don't check re_compile_fastmap for failure.
7599 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7600 Now also sets the new value (passed in a new argument).
7601 (re_match_2_internal): Use it.
7602 Also, use a new var `reg' of type size_t when looping through regs
7603 rather than reuse the inappropriate `mcnt'.
7604
7605 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7606 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7607 (where_is_internal): Renamed from Fwhere_is_internal.
7608 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7609 (Fwhere_is_internal): New function wrapping where_is_internal.
7610 (where_is_internal_1): Handle the case where we're filling the cache.
7611 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7612
7613 2000-10-25 Miles Bader <miles@gnu.org>
7614
7615 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7616
7617 2000-10-25 Gerd Moellmann <gerd@gnu.org>
7618
7619 * window.c (pos_fully_visible_p): Removed.
7620 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7621 if position is visible and/or fully visible.
7622
7623 * lisp.h (pos_visible_p): Add prototype.
7624
7625 * xdisp.c (pos_visible_p): New function.
7626
7627 2000-10-25 Kenichi Handa <handa@etl.go.jp>
7628
7629 * process.c (send_process): If OBJECT is t, it means that the data
7630 is from C string, but we should encode it. Before calling
7631 setup_raw_text_coding_system, be sure to flush out data by the
7632 previous coding system.
7633
7634 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7635
7636 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7637 assignment of startpos to prev when startpos == pos.
7638
7639 * editfns.c (find_field): Set the field stickiness correctly from
7640 overlay fields. Use renamed `text_property_stickiness'.
7641 (text_property_stickiness): Renamed from `char_property_stickiness'.
7642 Only check text properties, not overlays.
7643 * textprop.c (get_char_property_and_overlay): New function.
7644 (Fget_char_property): Use it.
7645 * intervals.h (get_char_property_and_overlay): Add declaration.
7646
7647 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7648
7649 * keymap.c: Use AREF, ASET and ASIZE macros.
7650 (Fmake_sparse_keymap): Docstring fix.
7651 (synkey): Remove.
7652 (shadow_lookup): Move up.
7653 Handle the case where lookup-key returns an integer.
7654 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7655 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7656 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7657 Simplify/rewrite the keymap-finding code.
7658 Add check for command shadowing, using shadow_lookup.
7659
7660 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7661
7662 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7663 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7664 a symbol.
7665
7666 2000-10-24 Andrew Innes <andrewi@gnu.org>
7667
7668 * dired.c (directory_files_internal_unwind): New function.
7669 (directory_files_internal): Use it to ensure closedir is called
7670 even if expand-file-name or file-attributes throw, eg. because of
7671 a user interrupt. Also enable immediate_quit while calling
7672 re_search, so that matching can be interrupted as well.
7673
7674 2000-10-24 Andrew Innes <andrewi@gnu.org>
7675
7676 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7677 NT-Emacs only.
7678 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7679 so that re_search functions only quit when callers expect them to.
7680
7681 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7682
7683 * regex.c (regex_compile): Change the way of handling a range from
7684 a char less than 256 to a char not less than 256.
7685
7686 2000-10-24 Gerd Moellmann <gerd@gnu.org>
7687
7688 * window.c (size_window): Prevent setting window's width or
7689 height to a negative value (esp. with XSETFASTINT).
7690
7691 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7692 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7693 (protect_malloc_state) [GC_MALLOC_CHECK &&
7694 GC_PROTECT_MALLOC_STATE]: New function.
7695 (PROTECT_MALLOC_STATE): New macro.
7696 (__malloc_initialize, morecore, _malloc_internal)
7697 (_free_internal) _realloc_internal): Use it to make _heapinfo
7698 read-only outside of gmalloc.
7699
7700 * keymap.c: Update copyright.
7701
7702 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7703 a symbol.
7704
7705 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7706
7707 * filelock.c (unlock_all_files): Use unlock_file to expand each
7708 buffer's file_truename before trying remove its lock file.
7709
7710 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7711
7712 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7713 or CRLF, decode EOLs.
7714
7715 2000-10-24 Kenichi Handa <handa@etl.go.jp>
7716
7717 * window.c (Fdisplay_buffer): Fix doc.
7718
7719 2000-10-23 Jason Rumney <jasonr@gnu.org>
7720
7721 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7722 ASCII font of default fontset on Windows.
7723
7724 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7725 xterm.c comment below).
7726
7727 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7728
7729 2000-10-23 Gerd Moellmann <gerd@gnu.org>
7730
7731 * xterm.c (x_connection_closed): Reset handling_signal.
7732
7733 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
7734
7735 2000-10-23 Miles Bader <miles@gnu.org>
7736
7737 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7738 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7739 maintain old behavior.
7740 * minibuf.c (Fminibuffer_complete): Likewise.
7741
7742 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7743
7744 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7745 that when a font can't be exactly centered, it errs up rather than
7746 down.
7747
7748 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
7749
7750 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
7751
7752 2000-10-23 Andrew Choi <akochoi@i-cable.com>
7753
7754 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7755
7756 * dispnew.c [macintosh]: Include macterm.h.
7757 (init_display) [macintosh]: Initialization for window system.
7758
7759 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7760 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7761 syms_of_search, x_term_init, and init_keyboard before calling
7762 init_window_once. Also, call syms_of_xmenu.
7763
7764 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7765 default fontset to Monaco.
7766
7767 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7768 NewMacWindow and DisposeMacWindow.
7769 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7770 instead of calling NewMacWindow and setting fields of
7771 f->output_data.mac directly. Call init_frame_faces.
7772 (Fdelete_frame) [macintosh]: Remove unused code.
7773 (Fmodify_frame_parameters) [macintosh]: Call
7774 x_set_frame_parameters instead of mac_set_frame_parameters.
7775
7776 * frame.h [macintosh]: Define menu_bar_lines field in struct
7777 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7778
7779 * keyboard.c [macintosh]: Include macterm.h.
7780 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7781 and menu_bar_activate_event type events as for X and NT.
7782 (make_lispy_event) [macintosh]: Construct lisp events of type
7783 MENU_BAR_EVENT as for X and NT.
7784
7785 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7786 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7787 (sys_subshell) [macintosh]: Remove definition entirely.
7788 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7789 Vwindow_system_version here. Remove initialization of
7790 Vx_bitmap_file_path.
7791 (read_input_waiting): Correct the number of parameters passed to
7792 read_socket_hook.
7793 Move all Macintosh functions to mac/mac.c.
7794
7795 * term.c [macintosh]: Include macterm.h.
7796
7797 * window.c [macintosh]: Include macterm.h.
7798
7799 * xdisp.c [macintosh]: Include macterm.h. Declare
7800 set_frame_menubar and pending_menu_activation.
7801 (echo_area_display) [macintosh]: Do not return if terminal frame
7802 is the selected frame.
7803 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7804 Allow only the selected frame to set menu bar.
7805 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7806 calling FRAME_EXTERNAL_MENU_BAR (f).
7807 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7808
7809 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7810 and check_x. Declare XCreateGC. Define x_create_gc and
7811 x_free_gc. Initialize font_sort_order.
7812 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7813 but call x_list_fonts instead of w32_list_fonts.
7814 (Finternal_face_x_get_resource) [macintosh]: Do not call
7815 display_x_get_resource.
7816 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7817 (realize_x_face) [macintosh]: Load the font if it is specified in
7818 ATTRS.
7819 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
7820
7821 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7822
7823 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7824 is nil: since we go to the end of submap anyway, we'd end up
7825 setting nil to nil.
7826 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7827 doesn't obey autoload.
7828
7829 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7830
7831 * msdos.c (dos_set_window_size): Update screen dimension variables.
7832
7833 2000-10-21 Jason Rumney <jasonr@gnu.org>
7834
7835 * w32term.c (w32_cache_char_metrics): Double check that font is
7836 really fixed pitch before trusting tmPitchAndFamily.
7837
7838 2000-10-21 Andrew Innes <andrewi@gnu.org>
7839
7840 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7841
7842 * w32term.h: Extern decl for w32_cache_char_metrics.
7843
7844 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7845
7846 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7847 (w32_unload_font): Free per_char array if present.
7848
7849 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7850 cached information in emulated XFontStruct to handle common cases
7851 quickly. Do not allocate XCharStruct for return.
7852 (w32_native_per_char_metric): New function.
7853 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7854 allocating one.
7855 (x_produce_glyphs): Don't get an HDC. Change calls to
7856 w32_per_char_metric to match arg change above. Remove calls to
7857 free results.
7858 (w32_get_glyph_overhangs): Ditto.
7859 (w32_cache_char_metrics): New function.
7860
7861 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7862 ($(BLD)/casefiddle.$(O)): Remove compile command.
7863 ($(BLD)/gmalloc.$(O)): Remove compile command.
7864 ($(BLD)/dispnew.obj):
7865 ($(BLD)/keyboard.obj):
7866 ($(BLD)/w32inevt.obj):
7867 ($(BLD)/w32bdf.obj):
7868 ($(BLD)/alloc.obj):
7869 ($(BLD)/buffer.obj):
7870 ($(BLD)/editfns.obj):
7871 ($(BLD)/emacs.obj):
7872 ($(BLD)/fileio.obj):
7873 ($(BLD)/fns.obj):
7874 ($(BLD)/indent.obj):
7875 ($(BLD)/insdel.obj):
7876 ($(BLD)/intervals.obj):
7877 ($(BLD)/minibuf.obj):
7878 ($(BLD)/print.obj):
7879 ($(BLD)/scroll.obj):
7880 ($(BLD)/sysdep.obj):
7881 ($(BLD)/textprop.obj):
7882 ($(BLD)/widget.obj):
7883 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7884 ($(BLD)/term.obj): Add dependency on dispextern.h.
7885
7886 * makefile.nt ($(BLD)\dispnew.obj):
7887 ($(BLD)\keyboard.obj):
7888 ($(BLD)\w32inevt.obj):
7889 ($(BLD)\w32bdf.obj):
7890 ($(BLD)\alloc.obj):
7891 ($(BLD)\buffer.obj):
7892 ($(BLD)\editfns.obj):
7893 ($(BLD)\emacs.obj):
7894 ($(BLD)\fileio.obj):
7895 ($(BLD)\fns.obj):
7896 ($(BLD)\indent.obj):
7897 ($(BLD)\insdel.obj):
7898 ($(BLD)\intervals.obj):
7899 ($(BLD)\minibuf.obj):
7900 ($(BLD)\print.obj):
7901 ($(BLD)\scroll.obj):
7902 ($(BLD)\sysdep.obj):
7903 ($(BLD)\textprop.obj):
7904 ($(BLD)\widget.obj):
7905 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7906 ($(BLD)\term.obj): Add dependency on dispextern.h
7907
7908 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7909
7910 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7911 with an additional argument of Qt.
7912
7913 2000-10-21 Miles Bader <miles@gnu.org>
7914
7915 * window.c (pos_fully_visible_in_window_p): New function.
7916 (Fpos_visible_in_window_p): Add FULLY argument.
7917 Use pos_fully_visible_in_window_p.
7918 (window_scroll_pixel_based, window_scroll_line_based): Update
7919 calls to Fpos_visible_in_window_p.
7920 * lisp.h (Fpos_visible_in_window_p): Update prototype
7921
7922 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7923
7924 * alloc.c (toplevel): Conditionalize compilation of mem_*
7925 functions differently.
7926
7927 2000-10-20 Jason Rumney <jasonr@gnu.org>
7928
7929 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7930 mem_init where it used to be. mem_z etc not defined otherwise.
7931
7932 2000-10-20 Gerd Moellmann <gerd@gnu.org>
7933
7934 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7935 GC_MALLOC_CHECK.
7936 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7937 structure definition and related variabled to the top of the file.
7938 Include this code when GC_MALLOC_CHECK is defined.
7939 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7940 register/unregister allocated region.
7941 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7942 which isn't allocated.
7943 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7944 something which is already in use.
7945 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7946 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7947 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7948 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7949
7950 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7951 _malloc_internal instead of malloc.
7952 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7953 of free.
7954
7955 2000-10-20 Andrew Innes <andrewi@gnu.org>
7956
7957 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7958 Windows.
7959 (my_strftime) <macro>: Don't use macro arg list when redefining as
7960 _strftime_copytm.
7961 (my_strftime) <function>: Supply 0 as ut argument.
7962
7963 2000-10-19 Jason Rumney <jasonr@altavista.net>
7964
7965 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7966 including dispextern.h, as it stops faces from working.
7967
7968 * w32fns.c (Fx_create_frame): Don't bother calling
7969 face-set-after-frame-default since the caller does it for us
7970 anyway. Clean up calls to x_get_arg to be consistent with X.
7971
7972 * w32term.c (x_produce_glyphs): Handle
7973 unibyte_display_via_language_environment correctly.
7974 (w32_draw_box_rect): Fix the calculation of width and height.
7975
7976 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7977 as it has stopped working.
7978 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7979 menu-bar.
7980
7981 2000-10-19 Gerd Moellmann <gerd@gnu.org>
7982
7983 * eval.c (skip_debugger): Prevent a compiler warning.
7984 (Fcondition_case): Likewise.
7985 (Fbacktrace_frame): Use a null interactive spec.
7986
7987 2000-10-19 Kenichi Handa <handa@etl.go.jp>
7988
7989 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7990
7991 2000-10-18 Gerd Moellmann <gerd@gnu.org>
7992
7993 * strftime.c: Sync with glibc, file version 1.78.
7994 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7995 should no longer be used according to ISO 8601.
7996
7997 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7998 no map for meta_prefix_char, don't try to use it as a keymap.
7999 Instead, if T_OK is non-zero, look up a default binding, if any,
8000 otherwise, if T_OK is zero, return nil.
8001
8002 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8003 (x_to_xcolors, png_load): Use x_query_color.
8004
8005 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8006 New functions.
8007 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8008 which can be slow.
8009 (x_copy_color, x_alloc_lighter_color): Likewise.
8010
8011 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8012 (x_query_color, x_query_colors): Add prototype.
8013
8014 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8015 check_string_bytes only if not noninteractive, increase count to 50.
8016
8017 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8018
8019 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8020 markers correctly.
8021
8022 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8023
8024 * alloc.c (pure_bytes_used): Renamed from pureptr.
8025 (ALIGN): New macro.
8026 (pure_alloc): New function.
8027 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8028 Use it.
8029 (Fpurecopy): Use PURE_POINTER_P.
8030
8031 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8032 PT has moved backward.
8033
8034 * xdisp.c (cursor_row_p): Take continued lines into account.
8035
8036 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8037 string's size_byte.
8038 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8039 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8040 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8041 string allocated.
8042
8043 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8044 of selective display off while searching for the next line start.
8045
8046 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8047
8048 * Makefile.in (term.o): Depend on dispextern.h.
8049
8050 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8051
8052 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8053
8054 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8055
8056 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8057 the iterator at the beginning, so that they can be set later on,
8058 for instance in reseat_at_next_visible_line_start, without being
8059 overwritten.
8060
8061 * xfns.c (pbm_format): Add :foreground and :background keywords.
8062 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8063 (xbm_load): Recognize foreground and background color specifications.
8064
8065 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8066
8067 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8068
8069 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8070
8071 * msdos.c (IT_set_face): Compare highlighted face with the default
8072 face, and invert colors if these faces' colors are identical.
8073 (Fmsdos_remember_default_colors): Don't swap foreground and
8074 background colors in initial_colors[].
8075 (IT_set_frame_parameters): Don't swap frame's foreground and
8076 background pixels. If ALIST includes "(reverse . t)", swap
8077 foreground-color and background-color properties in frame's
8078 param_alist. If the original frame's param_alist doesn't specify
8079 the colors, store unspecified-fg and unspecified-bg, reversed if
8080 required.
8081
8082 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8083 the colors are unspecified and reversed, reverse fore- and back-
8084 ground in the returned value.
8085 (Fframe_parameter): Ditto.
8086
8087 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8088
8089 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8090 get_last_unchanged_at_beg_row.
8091 (find_first_unchanged_at_end_row): Renamed from
8092 get_first_unchanged_at_end_row.
8093 (find_first_unchanged_at_end_row): Convert assertions to
8094 unconditional tests which abort. When looking for a row in
8095 unchanged text, don't go further back than first_text_row.
8096
8097 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8098 Don't add in the last line's height when deciding if the new
8099 position is below the scroll margin.
8100
8101 2000-10-16 Miles Bader <miles@gnu.org>
8102
8103 * editfns.c (Fconstrain_to_field): Check carefully for field
8104 boundaries if either OLD_POS or NEW_POS has a non-nil field
8105 property, even if they're the same.
8106
8107 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8108
8109 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8110 height for XFillRectangle.
8111
8112 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8113
8114 * syntax.c (Fstring_to_syntax): New function extracted from
8115 Fmodify_syntax_entry.
8116 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8117 (skip_chars, Fforward_comment): Remove unused variables.
8118 (syms_of_syntax): Add defsubr for string-to-syntax.
8119 (describe_syntax): Add code for comment and string fences.
8120
8121 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8122
8123 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8124 Do the meta->esc mapping. Call get_keyelt before returning.
8125 Start scanning from the second element (the first is always `keymap')
8126 to make it easier to detect when we reach a parent map.
8127 Handle the case of inheriting from a symbol whose function is a map.
8128 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8129 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8130 (get_keyelt, Flookup_key): Update call to access_keymap.
8131 Remove the meta->esc mappings.
8132 (define_as_prefix): Delete old disabled code.
8133 (menu_item_p): New function.
8134 (where_is_internal_1): Skip over the few remaining menu items.
8135 * lisp.h (access_keymap): Update prototype.
8136 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8137 Update call to access_keymap.
8138 (follow_key, read_key_sequence): Update calls to access_keymap.
8139 Remove the meta->esc mappings.
8140
8141 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8142
8143 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8144 with additional argument.
8145
8146 * xdisp.c (cursor_row_p): New function.
8147 (try_cursor_movement, display_line): Use it.
8148
8149 * xdisp.c (append_space): Also save/restore iterator's current
8150 character and its length.
8151
8152 * xdisp.c (init_from_display_pos): Add an assertion.
8153 (handle_stop): Don't set iterator's add_overlay_start.
8154 (handle_invisible_prop): Likewise.
8155 (load_overlay_strings): If text under an overlay is invisible,
8156 take both before- and after-strings into account when the iterator
8157 is positioned either at the start or at the end of the overlay.
8158 (forward_to_next_line_start): Rewritten.
8159 (reseat_at_next_visible_line_start): Rewritten.
8160 (set_iterator_to_next): Add parameter RESEAT_P.
8161
8162 * dispextern.h (struct it): Remove member add_overlay_start.
8163 (set_iterator_to_next): Change prototype.
8164
8165 2000-10-13 Kenichi Handa <handa@etl.go.jp>
8166
8167 * coding.c (code_convert_region): Be sure to initialize
8168 coding->category_idx.
8169 (decode_coding_string): Set coding->src_multibyte and
8170 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
8171 (encode_coding_string): Set coding->src_multibyte and
8172 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
8173
8174 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
8175
8176 * xfns.c (Fx_create_frame): Don't bother calling
8177 face-set-after-frame-default since the caller does it for us anyway.
8178
8179 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
8180
8181 * window.c (coordinates_in_window): Fix detection of vertical line
8182 on character terminals.
8183
8184 2000-10-12 Gerd Moellmann <gerd@gnu.org>
8185
8186 * editfns.c (save_excursion_save): Additionally record the
8187 selected window.
8188 (save_excursion_restore): If buffer was visible in a window, and a
8189 different window was selected, and the old selected window is
8190 still live, restore point in that window.
8191
8192 2000-10-12 Kenichi Handa <handa@etl.go.jp>
8193
8194 * xterm.c (x_produce_glyphs): Handle
8195 unibyte_display_via_language_environment correctly.
8196
8197 * regex.c (regex_compile): Change the way of handling a range from
8198 unibyte char to multibyte char.
8199
8200 * syntax.c (skip_chars): Change the way of handling a range from
8201 unibyte char to multibyte char.
8202
8203 * process.c (read_process_output): Cancel previous change.
8204
8205 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
8206
8207 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
8208
8209 * charset.c (Ffind_charset_string): Doc fix.
8210 (Ffind_charset_region): Doc fix.
8211
8212 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
8213
8214 * process.c (read_process_output): Fix previous change. Adjust
8215 multibyteness of text to insert in a buffer by
8216 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
8217
8218 2000-10-10 Andreas Schwab <schwab@suse.de>
8219
8220 * alloc.c (mark_object): Remove all workarounds installed on
8221 1993-08-08.
8222
8223 2000-10-10 Kenichi Handa <handa@etl.go.jp>
8224
8225 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
8226 (base64_encode_1): Make it work for a text of multibyte form.
8227 (Fbase64_decode_region): Allocate sufficient memory for multibyte
8228 case. Don't call str_to_multibyte because base64_decode_1
8229 produces correct multibyte form for eight-bit codes.
8230 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
8231 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
8232 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
8233 codes.
8234
8235 * charset.h (CHAR_STRING): Optimized for single byte characters.
8236
8237 2000-10-09 Andreas Schwab <schwab@suse.de>
8238
8239 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
8240 -1 after socket is closed, to fall through to error processing.
8241
8242 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8243
8244 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
8245 variables. If ALIST includes foreground-color or
8246 background-color, change also the colors of the default face for
8247 this frame.
8248
8249 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8250
8251 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8252 them extern (they are defined on xfaces.c).
8253 (syms_of_msdos): Don't intern and don't staticpro
8254 Qbackground_color and Qforeground_color.
8255
8256 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8257
8258 * frame.c (Fframe_parameter): For non-windowed frames, if
8259 f->param_alist says foreground or background color is unspecified,
8260 call tty_color_name to return the color name computed from the
8261 frame's current colors.
8262
8263 2000-10-06 Dave Love <fx@gnu.org>
8264
8265 * terminfo.c (ospeed): Don't declare.
8266
8267 * sysdep.c: Don't include string.h.
8268 (h_errno): Declare conditional also on TRY_AGAIN.
8269
8270 * charset.c (Ffind_charset_string): Doc fix.
8271
8272 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
8273 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8274 error messages.
8275
8276 2000-10-05 Dave Love <fx@gnu.org>
8277
8278 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8279 position like menu-bar.
8280
8281 2000-10-05 Gerd Moellmann <gerd@gnu.org>
8282
8283 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8284
8285 * xdisp.c (handle_single_display_prop): Use safe_call1.
8286 (safe_call): Renamed from call_function.
8287 (safe_call1): New function.
8288 (handle_fontified_prop): Use safe_call1 instead of call1.
8289 (safe_eval): Renamed from eval_form.
8290 (safe_eval_handler): Renamed from eval_handler.
8291 (handle_single_display_prop, display_mode_element): Use safe_eval
8292 instead of eval_form.
8293
8294 * xfaces.c (merge_face_heights): Use safe_call instead of
8295 call_function.
8296
8297 * keyboard.c (show_help_echo): Use safe_call instead of
8298 call_function; use safe_eval instead of eval_form.
8299
8300 * lisp.h (safe_call): Renamed from call_function.
8301 (safe_eval): Renamed from eval_form.
8302 (safe_call1): Add prototype.
8303
8304 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8305
8306 * xfns.c (image_ascent): Rearrange ascent calculation for the
8307 has-a-font case.
8308
8309 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8310
8311 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8312 (where_is_internal_1): Don't bother ignoring menu-items any more.
8313
8314 2000-10-04 Gerd Moellmann <gerd@gnu.org>
8315
8316 * keyboard.c (update_menu_bindings): New variable.
8317 (parse_menu_item): Use AREF. If update_menu_bindings
8318 is 0, don't update menu bindings.
8319 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8320
8321 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8322
8323 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8324 to `mark_object'.
8325
8326 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8327
8328 * syntax.c (forw_comment): Match nestedness of ender/starter.
8329 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8330 (prev_char_comstart_first): Remove.
8331 (back_comment): Check two-char comment markers more carefully
8332 to better handle overlapping cases like *//* or /* */* */ ...
8333 Match nestedness of ender/starter.
8334
8335 2000-10-02 Dave Love <fx@gnu.org>
8336
8337 * config.in (HAVE_GAI_STRERROR): Add undef.
8338
8339 * process.c (Fopen_network_stream): Use it.
8340
8341 * m/alpha.h (NO_REMAP): Don't define.
8342
8343 2000-10-02 Gerd Moellmann <gerd@gnu.org>
8344
8345 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8346 return with a string converted to an integer or vice versa when
8347 Vmocklisp_arguments is t.
8348 (Fsignal): Likewise. The function can return for `quit'.
8349 (struct gcpro): Declare member `var' to point to a volatile
8350 Lisp_Object.
8351
8352 * eval.c (error): Prevent compiler warning.
8353
8354 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8355
8356 * keymap.c (keymap_memberp): New function.
8357 (Fset_keymap_parent): Use it.
8358 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8359 Use keymap_memberp to avoid creating cycles.
8360 (access_keymap): Use KEYMAPP.
8361
8362 2000-09-30 Gerd Moellmann <gerd@gnu.org>
8363
8364 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
8365 gai_strerror. Make sure xerrno is set if connect fails. Improve
8366 error recovery.
8367
8368 2000-09-29 Jason Rumney <jasonr@gnu.org>
8369
8370 * w32term.c (w32_char_font_type, w32_encode_char)
8371 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8372 (w32_bdf_per_char_metric): New function.
8373 (w32_per_char_metric): Use it.
8374 (x_draw_glyph_string_background): Always draw background for BDF
8375 glyphs.
8376
8377 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8378 GDI object which is a scarce resource.
8379
8380 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8381 (get_quoted_string): Fix limit on memchr search.
8382 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8383 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8384 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8385 (get_cached_font_char, cache_char_offset): Use macro
8386 BDF_CODEPOINT_RANGE_COVER_P.
8387 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8388 (clear_cached_bitmap_slots): New function.
8389 (GET_HEX_VALUE): G-Z, g-z are not hex.
8390 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8391 (get_bitmap_with_cache): Use new cache implementation.
8392 (create_offscreen_bitmap): New function.
8393 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8394
8395 * w32term.c (x_produce_glyphs): If the distance from the current
8396 position to the next tab stop is less than a canonical character
8397 width, use the tab stop after that.
8398 (x_draw_glyphs): Handle case START and END are out of bounds more
8399 carefully.
8400 (x_clear_mouse_face): Block/unblock input.
8401 (x_display_and_set_cursor): Don't show a hollow box cursor for
8402 buffers whose cursor_type is nil.
8403
8404 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8405
8406 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
8407
8408 * dispextern.h (updating_frame): Declare extern.
8409
8410 2000-09-29 Andreas Schwab <schwab@suse.de>
8411
8412 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8413
8414 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8415
8416 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8417 use its function definition.
8418 (tool_bar_items): Likewise.
8419
8420 * lisp.h (fatal): Declare NO_RETURN.
8421
8422 2000-09-29 Kenichi Handa <handa@etl.go.jp>
8423
8424 * keymap.c: Remove the line "#undef NULL".
8425
8426 2000-09-28 Gerd Moellmann <gerd@gnu.org>
8427
8428 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
8429
8430 2000-09-28 Dave Love <fx@gnu.org>
8431
8432 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8433
8434 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8435
8436 * .gdbinit (xreload): Note its need on GNU/Linux.
8437
8438 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8439 r_alloc, r_alloc_free.
8440
8441 2000-09-28 Kenichi Handa <handa@etl.go.jp>
8442
8443 * syntax.c (skip_chars): Handle negation correctly.
8444
8445 2000-09-27 Gerd Moellmann <gerd@gnu.org>
8446
8447 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8448 with non-zero FORCE_P argument.
8449
8450 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8451 Add assertions.
8452
8453 * xdisp.c (window_box_height): Add an assertion.
8454
8455 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8456 tool-bar than is available.
8457 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8458
8459 2000-09-27 Dave Love <fx@gnu.org>
8460
8461 * s/irix6-5.h: Now works 64-bit. Tidied.
8462
8463 2000-09-26 Gerd Moellmann <gerd@gnu.org>
8464
8465 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8466 instead of BITS_PER_INT.
8467 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8468 EMACS_UINT, respectively.
8469 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8470
8471 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8472
8473 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8474
8475 * window.c (freeze_window_starts): Construct last argument for
8476 foreach_window differently.
8477
8478 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8479
8480 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8481 EMACS_UINT instead of `int' and `unsigned int'.
8482 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8483
8484 * frame.h (struct frame): Make the `nothing' member of union
8485 output_data an EMACS_INT.
8486
8487 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
8488 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8489 size in the sdata structure.
8490 (SDATA_NBYTES, SDATA_DATA): New macros.
8491 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8492 differently for the different layout of the sdata structure.
8493 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8494 in sdata.
8495 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8496 Check that size recorded in the string size and size recorded in
8497 the sdata structure agree.
8498
8499 2000-09-25 Dave Love <fx@gnu.org>
8500
8501 * buffer.c: Include stdio.h.
8502
8503 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
8504
8505 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8506
8507 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
8508 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
8509 (__malloc_extra_blocks): Declare as __malloc_size_t.
8510
8511 2000-09-25 Gerd Moellmann <gerd@gnu.org>
8512
8513 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8514
8515 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8516 (read_char): If help-echo is showing, preserve the echo area
8517 when redisplaying.
8518
8519 * xdisp.c (help_echo_showing_p): New variable.
8520 (set_message): Reset it to 0.
8521 (init_xdisp): Initialize help_echo_showing_p.
8522
8523 * dispextern.h (help_echo_showing_p): Declare extern.
8524
8525 * config.in: Fix typo in __GNUC_MINOR__.
8526
8527 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8528
8529 * s/freebsd.h (POSIX_SIGNALS): Define.
8530
8531 * xterm.c (x_clear_mouse_face): Block/unblock input.
8532
8533 2000-09-24 Dave Love <fx@gnu.org>
8534
8535 * fns.c (base64_encode_1): Fix last change.
8536
8537 2000-09-22 Gerd Moellmann <gerd@gnu.org>
8538
8539 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8540
8541 * xdisp.c (try_window_reusing_current_matrix): More fixes
8542 for the case window has a header-line.
8543
8544 2000-09-22 Dave Love <fx@gnu.org>
8545
8546 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8547 a doc string.
8548
8549 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8550
8551 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8552
8553 2000-09-21 Gerd Moellmann <gerd@gnu.org>
8554
8555 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
8556 for GCC >= 2.5.
8557
8558 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8559 Declare NO_RETURN.
8560
8561 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8562 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8563 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8564 warnings.
8565
8566 * marker.c (byte_char_debug_check): Return void.
8567
8568 * xfns.c (Fx_create_frame): Set default frame parameter value
8569 for tool-bar-lines to 1.
8570
8571 * dispnew.c (scrolling_window): Compare y-positions of rows
8572 equal at the start. Some simplification.
8573
8574 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8575 reused rows' y-position in the case window has a header-line, and
8576 new window start is greater than old window start.
8577
8578 * process.c (process_sent_to): New variable.
8579 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8580 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8581 Declare more parameters volatile.
8582
8583 * lread.c (Vrecursive_load_depth_limit): New variable.
8584 (Fload): Check recursive loads whose recursion depth exceeds
8585 Vrecursive_load_depth_limit.
8586 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8587
8588 2000-09-20 Gerd Moellmann <gerd@gnu.org>
8589
8590 * fileio.c (Fread_file_name): Doc fix.
8591
8592 * editfns.c (Fmessage_or_box): Doc fix.
8593
8594 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8595
8596 * xfns.c (xbm_scan): Allow C-style comments.
8597
8598 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8599 symbols are specified, add color translations to the cache.
8600 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8601 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8602 xpm_cache_color.
8603 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8604 structures to xpm_init_color_cache.
8605
8606 2000-09-19 Gerd Moellmann <gerd@gnu.org>
8607
8608 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
8609
8610 2000-09-19 Andrew Innes <andrewi@gnu.org>
8611
8612 * makefile.nt (bootstrap-emacs): Don't change directory.
8613
8614 2000-09-19 Kenichi Handa <handa@etl.go.jp>
8615
8616 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8617
8618 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8619 If output buffer is too small, signal an appropriated error.
8620
8621 2000-09-18 Dave Love <fx@gnu.org>
8622
8623 * keyboard.c (menu_bar_items, tool_bar_items)
8624 (current_active_maps): Remove redundant get_local_map call.
8625
8626 2000-09-18 Gerd Moellmann <gerd@gnu.org>
8627
8628 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8629 cursor for buffers whose cursor_type is nil.
8630
8631 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8632 a feature to implement that is already implemented.
8633 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8634 warnings.
8635
8636 * xfns.c (x_clear_image_1): New function.
8637 (x_clear_image): Use it.
8638 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
8639
8640 * dispnew.c (update_window): Move test for invisible lines
8641 at the top to update_window_line.
8642 (update_window_line): Handle invisible lines here.
8643
8644 * xfns.c (clear_image_cache): Clear current matrices of all
8645 frames sharing an image cache. Block input while freeing
8646 images. Fix timestamp comparison.
8647 (x_clear_image): Also free the mask.
8648
8649 * xfns.c (lookup_image): Block input while loading the image so
8650 that we won't get interrupted in a state where the image isn't yet
8651 set up completely.
8652 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8653 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8654 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
8655 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
8656
8657 2000-09-16 Gerd Moellmann <gerd@gnu.org>
8658
8659 * dispnew.c (update_window): Make sure to make desired rows
8660 current even if they are completely invisible at the top
8661 of a window.
8662
8663 2000-09-15 Gerd Moellmann <gerd@gnu.org>
8664
8665 * xfns.c (lookup_image): Build mask before applying an algorithm.
8666 Recognize algorithm `disabled'.
8667 (cross_disabled_images): New variable.
8668 (COLOR_INTENSITY): New macro.
8669 (x_detect_edges): Use COLOR_INTENSITY.
8670 (x_disable_image): New function.
8671 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8672
8673 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8674 disabled state, don't apply an image transformation algorithm if
8675 the user specified an image for the disabled state. Use
8676 `:algorithm disabled' for creating a disabled item's image if the
8677 user hasn't specified an image.
8678
8679 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8680 allocation functions with the XPM lib.
8681 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8682 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8683 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8684 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
8685 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
8686 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8687 functions, if possible, because these handle color allocation
8688 failure more gracefully.
8689 (Fimage_mask_p): New function.
8690
8691 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8692 (Qedge_detection, Qheuristic): New symbols.
8693 (syms_of_xfns): Initialize new symbols.
8694 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8695 `algorithm (edge-detection ...)'.
8696 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8697 (tiff_format, gif_format, gs_format): Add `:mask'.
8698 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8699 (GIF_MASK, GS_MASK): New enumerators.
8700 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8701 (emboss_matrix, laplace_matrix): New variables.
8702 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8703 (x_edge_detection): New functions.
8704 (x_laplace): Rewritten in terms of x_detect_edges.
8705 (x_build_heuristic_mask): If image has a mask, free it.
8706
8707 2000-09-14 Andrew Innes <andrewi@gnu.org>
8708
8709 * makefile.w32-in: Revert to Unix line endings.
8710
8711 2000-09-14 Andrew Innes <andrewi@gnu.org>
8712
8713 * makefile.w32-in: Standardize indentation somewhat.
8714 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8715 cater for differences between shells.
8716
8717 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8718
8719 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8720
8721 * xterm.c (x_produce_glyphs): If the distance from the current
8722 position to the next tab stop is less than a canonical character
8723 width, use the tab stop after that.
8724
8725 2000-09-14 Dave Love <fx@gnu.org>
8726
8727 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8728
8729 2000-09-14 Gerd Moellmann <gerd@gnu.org>
8730
8731 * xdisp.c (handle_fontified_prop): While running fontification
8732 functions, bind `fontification-functions' and
8733 `after-change-functions' to nil.
8734
8735 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8736 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8737
8738 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8739
8740 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8741 USE_MMAP_FOR_BUFFERS.
8742
8743 * insdel.c (make_gap): Use enlarge_buffer_text.
8744
8745 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8746 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8747 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8748 from former r_alloc_* functions in ralloc.c.
8749 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
8750 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8751 (mmap_init) [REL_ALLOC_MMAP]: New function.
8752 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8753 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8754 BUFFER_FREE.
8755
8756 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8757 (enlarge_buffer_text): Add prototype.
8758
8759 * ralloc.c: Remove everything having to do with the use of mmap.
8760
8761 2000-09-13 Gerd Moellmann <gerd@gnu.org>
8762
8763 * sound.c (Fplay_sound): Doc fix.
8764
8765 * keyboard.c: Avoid some more compiler warnings.
8766 (parse_tool_bar_item): Ignore cached key bindings.
8767
8768 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8769 and allocation of Lisp data.
8770
8771 2000-09-12 Gerd Moellmann <gerd@gnu.org>
8772
8773 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8774 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8775 defaults first.
8776
8777 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8778
8779 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
8780
8781 * ccl.c: Comment fixed.
8782 (MAX_MAP_SET_LEVEL): Increased to 30.
8783 (PUSH_MAPPING_STACK): Enclose with do-while block.
8784 (POP_MAPPING_STACK): Likewise.
8785 (stack_idx_of_map_multiple): New variable.
8786 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8787 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
8788 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
8789 (ccl_driver) <CCL_MapSingle>: Likewise.
8790 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8791 with the case where looking up process reaches to the end of
8792 map-set, and call CCL programs as the above change.
8793
8794 2000-09-11 Gerd Moellmann <gerd@gnu.org>
8795
8796 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8797 that might be clobbered by longjmp.
8798 (check_x_display_info, x_decode_color, create_frame_xic)
8799 (Fx_display_backing_store, Fx_display_visual_class)
8800 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8801
8802 * lread.c (init_lread): Set Vloads_in_progress to nil.
8803 (Fload): Show list of recursively loaded files, when signaling an
8804 error.
8805
8806 * lread.c (Vloads_in_progress): New variable.
8807 (record_load_unwind): New function.
8808 (Fload): Check for recursive loads.
8809 (syms_of_lread): Initialize Vloads_in_progress.
8810 (read_integer, read1): Avoid some compiler warnings.
8811
8812 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8813 compiler warnings.
8814
8815 2000-09-11 Miles Bader <miles@gnu.org>
8816
8817 * editfns.c (Fbuffer_string): Doc fix.
8818
8819 2000-09-10 Gerd Moellmann <gerd@gnu.org>
8820
8821 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8822
8823 2000-09-09 Ken Raeburn <raeburn@gnu.org>
8824
8825 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8826 whether to include other header files.
8827
8828 2000-09-09 Gerd Moellmann <gerd@gnu.org>
8829
8830 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
8831 by Fmemq as a boolean.
8832
8833 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8834
8835 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8836
8837 2000-09-08 Gerd Moellmann <gerd@gnu.org>
8838
8839 * ralloc.c (mmap_fd): Remove initializer which can make it
8840 read-only in a dumped Emacs.
8841 (mmap_fd_1): New variable.
8842 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8843 restore it from there.
8844 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8845 unconditionally so that mmap_fd can be initialized there.
8846 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8847 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8848 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8849
8850 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8851
8852 * xdisp.c (dump_glyph_row): Fix printf format string.
8853 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
8854
8855 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8856
8857 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8858 inheritance.
8859
8860 * xdisp.c (try_window_id): When trying to locate cursor in
8861 unchanged rows at the top, handle the case that we can't find it.
8862
8863 * xterm.c (x_draw_glyphs): Handle case START and END are out
8864 of bounds more carefully.
8865
8866 2000-09-08 Dave Love <fx@gnu.org>
8867
8868 * s/sol2.h (REL_ALLOC_MMAP): Define.
8869 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8870
8871 * ralloc.c: Don't include string.h (redundant).
8872 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8873 [!MAP_ANON]: Include fcntl.h.
8874 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8875 (r_alloc, r_re_alloc, r_alloc_free)
8876 (mmap_enlarge, mmap_set_vars): Use it.
8877 (r_alloc_init_fd): New function.
8878 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8879 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8880 malloc type.
8881
8882 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8883 Remove vm-limit.o.
8884
8885 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8886 change to __NetBSD__.
8887
8888 2000-09-08 Kenichi Handa <handa@etl.go.jp>
8889
8890 * search.c (compile_pattern): Check the multibyteness of cached
8891 string and PATTERN.
8892
8893 2000-09-08 Miles Bader <miles@gnu.org>
8894
8895 * xfaces.c (default_face_vector): Function removed.
8896 (Finternal_merge_in_global_face): Restore old global/local
8897 attribute override order. Use inline loop instead of calling
8898 default_face_vector.
8899
8900 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8901
8902 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8903 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8904 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8905 where necessary, in case POINTER_TYPE is `void'.
8906
8907 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8908
8909 * frame.c (make_terminal_frame): Initialize frame foreground and
8910 background colors to unspecified, for the initial instance of an
8911 MSDOS frame.
8912
8913 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8914
8915 * ralloc.c (mmap_find): Fix overlap computation.
8916 (mmap_enlarge): Compute nbytes before trying to find an
8917 overlapping region.
8918
8919 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8920 instead of `!='.
8921
8922 * lread.c (syms_of_lread): Change value of regexp
8923 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8924
8925 * xmenu.c (xdialog_show): When looking up the selection in
8926 menu_items, take `quote' boundaries into account; this corresponds
8927 to a nil ITEM in x-popup-dialog.
8928
8929 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8930
8931 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8932 not 0x81.
8933 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8934
8935 * coding.c (encode_coding_sjis_big5): Use translation table for
8936 encoding, not decoding. Fix the handling of latin-jisx0201.
8937 Check for the charset katakana-jisx0201 too.
8938 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
8939 (detect_coding_sjis): Check the byte sequence more rigidly.
8940
8941 2000-09-07 Gerd Moellmann <gerd@gnu.org>
8942
8943 * xfaces.c (Vparam_value_alist): New variable.
8944 (syms_of_xfaces): Initialize it.
8945 (Finternal_set_lisp_face_attribute): Avoid more consing.
8946
8947 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8948 specially.
8949 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8950 (Qbackground_mode): New variable.
8951 (syms_of_frame_1): Initialize Qbackground_mode.
8952
8953 * lisp.h (Qdisplay): Declare extern.
8954
8955 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8956 change face on all frames, and change the default for new frames.
8957
8958 2000-09-07 Dave Love <fx@gnu.org>
8959
8960 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8961
8962 2000-09-07 Kenichi Handa <handa@etl.go.jp>
8963
8964 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8965
8966 * charset.c: Include composite.h
8967 (lisp_string_width): New function.
8968 (Fstring_width): Call lisp_string_width instead of strwidth.
8969
8970 * Makefile.in (charset.o): Depends on composite.h.
8971
8972 * process.c (read_process_output): Before inserting the decoded
8973 text in the buffer, adjust the multibyteness.
8974
8975 2000-09-06 Gerd Moellmann <gerd@gnu.org>
8976
8977 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
8978 buffer's text buffer is null, map new memory.
8979
8980 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8981 POINTER_TYPE and size_t.
8982 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8983 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8984 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8985 [REL_ALLOC_MMAP]: New macros.
8986 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8987 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8988 [REL_ALLOC_MMAP]: New functions.
8989
8990 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8991 before and after unexec.
8992
8993 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8994 text buffers if necessary.
8995
8996 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8997 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8998 in prototypes.
8999
9000 * config.in (HAVE_MMAP): Add #undef.
9001
9002 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9003
9004 * frame.c (Qdisplay_type): New variable.
9005 (syms_of_frame_1): Initialize it.
9006 (Fframe_parameter): New function that avoids consing.
9007 (syms_of_frame): Defsubr it.
9008
9009 * buffer.c (Fother_buffer): Consider buffers as invisible when
9010 they are displayed in a window on an invisible frame.
9011
9012 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9013 get-largest-window always return nil.
9014
9015 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9016
9017 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9018 variable; recognize Emacs 19 elc files.
9019
9020 2000-09-04 Miles Bader <miles@gnu.org>
9021
9022 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9023 before initially popping up the menu, so the menu doesn't flash
9024 when the face settings are significantly different from the defaults.
9025
9026 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9027
9028 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9029 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9030 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9031 (BIT_UNIBYTE): Remove.
9032 (re_match_2_internal): Delete corresponding code and streamline the
9033 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9034 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9035 (re_wctype_t): New type.
9036 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9037 (regex_compile): Use them and fix handling of overly long char classes.
9038
9039 2000-09-03 Andrew Innes <andrewi@gnu.org>
9040
9041 * makefile.w32-in: Change to DOS line endings.
9042
9043 * s/ms-w32.h (ORDINARY_LINK): New define.
9044
9045 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9046 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9047
9048 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9049 (distclean): Delete them here instead.
9050
9051 * w32proc.c (compare_env): Convert to uppercase for comparison,
9052 not lowercase, to match how the native Windows shell works.
9053
9054 2000-09-03 Jason Rumney <jasonr@gnu.org>
9055
9056 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9057 CVS changes the line-ends when checking in/out on DOS/Windows.
9058
9059 * makefile.nt (emacs): Do not change directory to run temacs, as
9060 the load-path is set relative to current directory.
9061
9062 2000-09-03 Miles Bader <miles@gnu.org>
9063
9064 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9065
9066 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9067
9068 * xdisp.c (redisplay_mode_lines): New function.
9069 (display_mode_lines): Return number of mode lines displayed.
9070 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9071 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9072
9073 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9074 string.h and strings.h.
9075 (index) [HAVE_INDEX]: Add prototype.
9076
9077 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9078 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9079
9080 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9081 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9082
9083 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9084
9085 * lread.c (read1): Accept `?' as symbol constituent, for
9086 compatiblity with XEmacs.
9087
9088 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9089
9090 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9091 (struct re_pattern_buffer): Remove newline_anchor.
9092 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9093 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9094 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9095 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9096 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9097 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9098 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9099 Get rid of references to newline_anchor.
9100 (regcomp): Allocate and precompute a fastmap.
9101
9102 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9103
9104 * lread.c (openp): GCPRO local variable `filename'.
9105
9106 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9107
9108 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9109
9110 * regex.c: Merge some changes from GNU libc. Add prototypes.
9111 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9112 Use memcmp and memcpy instead of bcopy and bcmp.
9113 (init_syntax_once): Use ISALNUM.
9114 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9115 (REG_UNSET_VALUE): Remove. Use NULL instead.
9116 (REG_UNSET, re_match_2_internal): Use NULL.
9117 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9118 New macros.
9119 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9120 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9121 (regex_compile): In handle_interval, return an error rather than try to
9122 unfetch the interval if we can't find the closing brace.
9123 Obey the RE_NO_GNU_OPS syntax bit.
9124 (TOLOWER): New macro.
9125 (regcomp): Use it.
9126 (regexec): Allocate regs.start and regs.end as one block.
9127
9128 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9129
9130 * xdisp.c (echo_area_display): Check display_completed instead
9131 of calling detect_input_pending.
9132
9133 * dispnew.c (update_frame): Only set display_completed here; move
9134 the update_begin and update_end calls here from update_frame_1.
9135 (update_frame_1): Don't set display_completed here, don't call
9136 update_begin/update_end.
9137
9138 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9139 instead of store_frame_param.
9140
9141 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9142
9143 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9144 desired window matrix hasn't been displayed, use the current row
9145 instead. Make sure that only those frame rows are updated for
9146 which there exists a corresponding enabled desired row.
9147
9148 2000-08-29 Miles Bader <miles@gnu.org>
9149
9150 * xfaces.c (default_face_vector): New function.
9151 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9152
9153 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9154
9155 * lread.c (openp): Prevent temporary string passed to
9156 Ffile_readable_p from being garbage collected.
9157
9158 2000-08-28 Dave Love <fx@gnu.org>
9159
9160 * keymap.c (store_in_keymap): Add `static' to declaration.
9161
9162 2000-08-28 Gerd Moellmann <gerd@gnu.org>
9163
9164 * emacs.c, callint.c, doc.c, editfns.c
9165 (toplevel) [HAVE_STRING_H]: Include string.h.
9166 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
9167 (index): Remove prototypes which might conflict with non-standard
9168 definitions of index/strchr.
9169
9170 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
9171 (rindex): Define only if !HAVE_RINDEX.
9172
9173 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
9174
9175 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
9176
9177 2000-08-28 Miles Bader <miles@gnu.org>
9178
9179 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
9180 made inconsistent by a font-related attribute in FROM.
9181 (merge_face_inheritance): Add function comment.
9182
9183 2000-08-28 Kenichi Handa <handa@etl.go.jp>
9184
9185 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
9186 the 4th arg (PREV_EVENT) Qt to suppress input method.
9187
9188 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
9189
9190 * regex.c: Indent cpp directives and remove parens after `defined'.
9191 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
9192 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
9193 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
9194 (re_compile_pattern): Use size_t for length.
9195 (init_syntax_once): Move to a better place.
9196 * regex.h: Merge changes from GNU libc. Indent cpp directives.
9197 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
9198
9199 * syntax.c (back_comment): Detect cases where a comment-starter is
9200 actually inside another comment as in: /* a // b */ c // d \n.
9201 Make it clear that `comstart_pos' is unused for nested comments.
9202
9203 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
9204 (KEYMAPP): New macro.
9205 (Fkeymap_parent, Fset_keymap_parent): Use it.
9206 (fix_submap_inheritance): Mark it static.
9207 (define_as_prefix, describe_buffer_bindings, describe_command)
9208 (describe_translation, describe_map): Complete prototypes.
9209
9210 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
9211
9212 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
9213 to better match the key-lookup behavior.
9214
9215 2000-08-27 Gerd Moellmann <gerd@gnu.org>
9216
9217 * xfaces.c (lface_fully_specified_p): Handle :inherit.
9218 (Finternal_set_lisp_face_attribute): Fix typo in error message.
9219
9220 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
9221
9222 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
9223 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
9224 (xterm.o): Depend on coding.h
9225
9226 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9227
9228 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
9229 the corresponding '#endif'.
9230
9231 2000-08-26 Miles Bader <miles@gnu.org>
9232
9233 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
9234 * xfaces.c (QCinherit): New variable.
9235 (syms_of_xfaces): Initialize it.
9236 (LFACE_INHERIT): New macro.
9237 (Finternal_get_lisp_face_attribute)
9238 (merge_face_vector_with_property)
9239 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
9240 (check_lface_attrs): Allow new types of face height. Check
9241 inherit attribute.
9242 (CYCLE_CHECK): New macro.
9243 (merge_face_inheritance): New function.
9244 (merge_face_vectors): Merge inherited faces too. Add F and
9245 CYCLE_CHECK arguments.
9246 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9247 (lookup_named_face, lookup_derived_face, realize_named_face)
9248 (face_at_string_position, face_at_buffer_position): Supply
9249 new F and CYCLE_CHECK arguments to merge_face_vectors.
9250 (merge_face_heights): New function.
9251 (merge_face_vectors, merge_face_vector_with_property)
9252 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9253 handle relative face heights.
9254 (lface_same_font_attributes_p): Compare heights using EQ.
9255
9256 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9257
9258 * charset.c (char_to_string): Check the character validity.
9259 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
9260
9261 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9262
9263 * regex.c (PUSH_FAILURE_COUNT): New macro.
9264 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9265 Handle popping of a register's or a counter's data.
9266 (POP_FAILURE_POINT): Use the new name.
9267 (re_match_2_internal): Push counter data on the stack for succeed_n,
9268 jump_n and set_number_at and remove misleading dead code in succeed_n.
9269
9270 2000-08-25 Gerd Moellmann <gerd@gnu.org>
9271
9272 * xdisp.c (redisplay_internal): If considering all windows on all
9273 frames, update the display for each frame as soon as possible,
9274 instead of first building all desired matrices for all frames, and
9275 then updating them all.
9276 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9277
9278 2000-08-24 Gerd Moellmann <gerd@gnu.org>
9279
9280 * bytecode.c (mark_byte_stack): Add a comment.
9281
9282 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9283 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
9284 a graphical frame.
9285
9286 2000-08-24 Kenichi Handa <handa@etl.go.jp>
9287
9288 * minibuf.c (do_completion): Always use compare-string, not
9289 string-equal because the latter doesn't pay attention to
9290 multibyteness of strings.
9291
9292 * process.c (create_process): Don't setup raw-text coding here.
9293 (Fopen_network_stream): Don't set coding->src_multibyte and
9294 coding->dst_multibyte here.
9295 (read_process_output): For process filter, return unibyte string
9296 if default-enable-multibyte-characters is nil.
9297 (send_process): If OBJECT is multibyte text, be sure to encoded it
9298 by the specified coding system for the process. Otherwise, setup
9299 raw-text coding.
9300 (init_process): Don't initialize default-process-coding-system here.
9301
9302 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9303
9304 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9305 <scroll-down-aggressively>: Likewise.
9306
9307 2000-08-23 Kenichi Handa <handa@etl.go.jp>
9308
9309 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9310 zero. Set coding->produced_char correctly.
9311
9312 2000-08-22 Andrew Innes <andrewi@gnu.org>
9313
9314 * makefile.w32-in: New file.
9315
9316 * unexw32.c (unexec): Ignore old_name, and use the actual location
9317 of the current executable instead. Base new_name on this.
9318
9319 * w32proc.c (create_child): Remove reference to security
9320 descriptor, which isn't needed and doesn't compile with mingw32.
9321
9322 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9323 up dllimport attributes.
9324 (x_update_window_end): Update prototype.
9325
9326 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9327 extern, which screws up dllimport attributes.
9328
9329 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9330 up dllimport attributes.
9331
9332 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9333 screws up dllimport attributes.
9334
9335 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9336 up dllimport attributes.
9337 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9338 screws up dllimport attributes.
9339
9340 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9341 up dllimport attributes.
9342
9343 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9344 screws up dllimport attributes.
9345
9346 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9347 screws up dllimport attributes.
9348
9349 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9350 up dllimport attributes.
9351
9352 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9353 unnecessary extern, which screws up dllimport attributes.
9354 (main): Ditto.
9355
9356 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9357 up dllimport attributes.
9358
9359 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9360 unnecessary extern, which screws up dllimport attributes.
9361
9362 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9363 screws up dllimport attributes.
9364
9365 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9366 up dllimport attributes.
9367
9368 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9369
9370 * w32bdf.c (search_file_line):
9371 (set_bdf_font_info):
9372 (seek_char):
9373 (w32_get_bdf_glyph):
9374 (w32_BDF_to_x_font): Fix compile warnings.
9375
9376 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
9377
9378 * w32select.c: Include keyboard.h before frame.h.
9379
9380 * w32fns.c (max): Define macro.
9381 (JOHAB_CHARSET): Define if not known.
9382 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9383 (Fx_show_tip): Synch with X version.
9384
9385 * w32xfns.c: Include keyboard.h before frame.h.
9386
9387 * w32fns.c: Include keyboard.h before frame.h.
9388
9389 * w32term.c: Include keyboard.h before frame.h.
9390
9391 * fontset.c: Include keyboard.h before frame.h.
9392
9393 * w32inevt.c: Include keyboard.h before frame.h.
9394 (MOUSE_MOVED): Define if not known.
9395
9396 * minibuf.c: Include keyboard.h before frame.h.
9397
9398 * keyboard.c: Include keyboard.h before frame.h.
9399
9400 * indent.c: Include keyboard.h before frame.h.
9401
9402 * dispnew.c: Include keyboard.h before frame.h.
9403
9404 * buffer.c: Include keyboard.h before frame.h.
9405
9406 * alloc.c: Include keyboard.h before frame.h.
9407
9408 * print.c: Include keyboard.h before frame.h.
9409
9410 * process.c: Include keyboard.h before frame.h.
9411
9412 * scroll.c: Include keyboard.h before frame.h.
9413
9414 * sysdep.c: Include keyboard.h before frame.h.
9415
9416 * term.c: Include keyboard.h before frame.h.
9417
9418 * window.c: Include keyboard.h before frame.h.
9419
9420 * xdisp.c: Include keyboard.h before frame.h.
9421 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9422
9423 * frame.c: Include keyboard.h before frame.h.
9424
9425 * w32heap.h: Undefine min, max.
9426
9427 * w32gui.h: Undefine min, max.
9428
9429 * unexw32.c: Change PUCHAR to PCHAR.
9430 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
9431 (relocate_offset):
9432 (get_section_info):
9433 (copy_executable_and_dump_data): Remove unnecessary static defs.
9434 (copy_executable_and_dump_data): Fix compile warnings.
9435
9436 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9437
9438 * w32console.c (min): Define macro.
9439 (clear_frame, write_glyphs): Fix compile warning.
9440
9441 * w32proc.c (compare_env):
9442 (find_child_console): Fix compile warning.
9443
9444 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9445 sys_errlist instead of _sys_errlist.
9446 (get_emacs_configuration_options): New function.
9447
9448 * s/ms-w32.h (sys_nerr): Provide default definition.
9449 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9450 name with _ prepended.
9451 (NSIG): Define if not known.
9452 (get_emacs_configuration): Provide extern declaration.
9453 (get_emacs_configuration_options): Provide extern declaration.
9454 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9455
9456 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
9457 (map_w32_filename):
9458 (read_unc_volume): Fix compile warning.
9459
9460 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9461 definitions from being used.
9462
9463 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9464
9465 * w32.c (unc_volume_file_attributes):
9466 (open_unc_volume): Make arg const.
9467
9468 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9469 (read_input_waiting): Remove excess parameter.
9470
9471 * w32.c (init_environment): Call _access.
9472 (check_windows_init_file): Call _close.
9473 (init_user_info): Call _putenv.
9474 (init_environment): Call _putenv and _strdup.
9475 (init_ntproc): Reset volume info cache on startup.
9476
9477 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9478 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9479 cannot override the CRT malloc.
9480
9481 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9482 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9483
9484 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9485 unless we are linking with a static CRT.
9486 (RVA_TO_PTR): Cast result to unsigned char*.
9487
9488 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9489 (add_volume_info): Use xstrdup.
9490
9491 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9492
9493 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9494 (do_completion, Fminibuffer_complete_word): Use it.
9495 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9496 var so it can take non-boolean values.
9497
9498 2000-08-21 Gerd Moellmann <gerd@gnu.org>
9499
9500 * editfns.c (find_field): Formatting changes.
9501 (toplevel): Some old-style function forward declarations
9502 changed to prototypes, some new protypes added, some functions
9503 made static.
9504
9505 * lisp.h (set_time_zone_rule): Add prototype.
9506 (use_dialog_box): External declaration.
9507
9508 * keyboard.c (gen_help_event): Add parameter SIZE.
9509 (kbd_buffer_events_waiting): Slightly rewritten.
9510 (clear_event): New function.
9511 (kbd_buffer_get_event): Use it, and clear the input_events of
9512 HELP_EVENTs.
9513 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9514 don't fill the newly created array with nils.
9515 (toplevel): Convert some old-style function forward declarations
9516 to prototypes.
9517
9518 * keyboard.h (gen_help_event): Change prototype.
9519
9520 * xterm.c (XTread_socket): Change calls to gen_help_event.
9521
9522 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9523
9524 * eval.c (Fmacroexpand): Doc fix.
9525
9526 2000-08-20 Jason Rumney <jasonr@gnu.org>
9527
9528 * w32term.h (x_display_info_for_display): Remove as this function
9529 does not exist on W32.
9530
9531 * w32term.c (help_echo_window): New variable.
9532 (syms_of_w32term): staticpro it.
9533 (note_mode_line_highlight): Set it.
9534 (XTextExtents16): Removed as there is no equivalent on W32.
9535 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9536 the X way of doing this will not work for W32.
9537 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9538 (x_draw_image_foreground): Avoid drawing outside of the clip area
9539 when image doesn't have a mask.
9540 (note_mouse_highlight): Process overlays in the right order of
9541 priority. Set help_echo_window.
9542 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9543 because that's more visible for large images.
9544
9545 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9546 name to single_keymap_panes.
9547 (w32_menu_show): Set wv->title when dealing with titles.
9548 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9549
9550 2000-08-21 Miles Bader <miles@gnu.org>
9551
9552 * minibuf.c (do_completion): Try again if we rewrite the input
9553 string, but no completion was done, so that any completion message
9554 will be correct.
9555
9556 2000-08-20 Gerd Moellmann <gerd@gnu.org>
9557
9558 * xfaces.c (lface_equal_p): Compare strings differently.
9559 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9560 (realize_tty_face): Use them.
9561 (syms_of_xfaces): Initialize new variables.
9562 (map_tty_color): New function, extracted from realize_tty_face.
9563 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9564 foreground or background color, store the new color name in the
9565 realized face; previous code trying to do this had no effect.
9566 (realize_tty_face): Use map_tty_color.
9567 (Fclear_face_cache): Set face_change_count and ensure thorough
9568 redisplay.
9569
9570 2000-08-19 Gerd Moellmann <gerd@gnu.org>
9571
9572 * undo.c (record_first_change, record_marker_adjustment): Don't
9573 use XBUFFER on last_undo_buffer which might not be a buffer.
9574
9575 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9576
9577 * coding.c (decode_coding_string): Set members consumed,
9578 consumed_char, produced, produced_char of *coding correctly. If
9579 decode_coding doesn't consume any byte, don't try anymore.
9580 (encode_coding_string): Likewise.
9581
9582 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9583
9584 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9585 conditional have void type, for Standard C compilers.
9586
9587 * xdisp.c (redisplay_internal): Compare windows for equality with
9588 EQ, instead of applying XWINDOW to something that might not
9589 be a window.
9590
9591 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9592
9593 * fontset.c (Finternal_char_font): Search only the selected frame
9594 for a window of the current buffer.
9595
9596 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9597
9598 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
9599 Lisp_Objects.
9600
9601 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9602 second half of a HELP_EVENT is found at the start of kbd_buffer.
9603
9604 2000-08-18 Miles Bader <miles@gnu.org>
9605
9606 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9607
9608 * editfns.c (save_restriction_save): Rewrite to use markers.
9609 (save_restriction_restore): Rewrite to understand new form of data
9610 saved by save_restriction_save.
9611 (Fsave_restriction): Remove cautionary note in doc-string.
9612
9613 2000-08-17 Gerd Moellmann <gerd@gnu.org>
9614
9615 * fileio.c (build_annotations): Add a comment explaining the
9616 return value of format-annotate-function. Replace a spurious call
9617 to Flength with a CONSP test. Call format-annotate-function with
9618 a fifth arg specifying how many times the function is been called
9619 in a row, to let it choose temporary buffers appropriately.
9620
9621 2000-08-17 Dave Love <fx@gnu.org>
9622
9623 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9624 declare make_temp_name twice.
9625
9626 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
9627 (unreadpure): Give it an arg.
9628
9629 * unexalpha.c: Prototype fatal_unexec, mark_x,
9630 update_dynamic_symbols. Declare unexec as void.
9631
9632 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9633 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9634
9635 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
9636 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
9637
9638 * alloca.c: Use #error.
9639 [POINTER_TYPE]: Use it.
9640
9641 * eval.c (Fdefvar): Doc fix.
9642
9643 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9644 INITIALIZE_INTERVAL.
9645
9646 * buffer.h: Avoid DECLARE_INTERVALS.
9647
9648 * config.in: Add size_t.
9649
9650 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9651
9652 * w16select.c (set_clipboard_data): If there's not enough memory
9653 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9654 expects. In case of other failures, return 3.
9655 (system_error_msg): New error message.
9656 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9657 system_error_msg.
9658
9659 2000-08-16 Gerd Moellmann <gerd@gnu.org>
9660
9661 * term.c (write_glyphs): Also turn off inverse video after turning
9662 off other appearances in case TS_exit_attribute_mode is not equal
9663 to TS_end_standout_mode.
9664 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9665 with the same face.
9666 (turn_off_face): Reset standout_mode only if
9667 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9668 is equal to TS_end_standout_mode.
9669
9670 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9671
9672 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9673 sequence at the end of the source block.
9674
9675 * ccl.c (Fccl_program_p): Docstring modified.
9676 (Fccl_execute): Likewise.
9677 (Fccl_execute_on_string): Likewise.
9678
9679 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9680
9681 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9682
9683 2000-08-16 Kenichi Handa <handa@etl.go.jp>
9684
9685 The following changes are mainly to fix bugs of
9686 encode/decode-coding-string failing if encoding/decoding return
9687 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9688 variable conversion_buffer.
9689
9690 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9691 decrement dst_end to avoid buffer overflow in the later call of
9692 string_as_multibyte
9693
9694 * coding.h (conversion_buffer_size, conversion_buffer)
9695 (get_conversion_buffer): Extern deleted.
9696
9697 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9698 (conversion_buffer, conversion_buffer_size): Variables deleted.
9699 (get_conversion_buffer): Function deleted.
9700 (struct conversion_buffer): New structure.
9701 (MAX_ALLOCA): New macro.
9702 (allocate_conversion_buffer): New macro.
9703 (extend_conversion_buffer, free_conversion_buffer): New functions.
9704 (ccl_coding_driver): Set coding->result.
9705 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9706 this is the last block of source.
9707 (encode_coding): Likewise. Handle the source block as the last
9708 one only when the whole source text is consumed.
9709 (decode_coding_string): Handle the case that the output buffer is
9710 too small to decode the whole source text. Use
9711 allocate_conversion_buffer, extend_conversion_buffer and
9712 free_conversion_buffer, not get_conversion_buffer.
9713 (encode_coding_string): Likewise.
9714 (init_coding): Function deleted.
9715 (init_coding_once): Delete code to initialize conversion_buffer_size.
9716
9717 * emacs.c (main): Don't call init_coding.
9718
9719 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
9720
9721 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9722 (insert_glyphs): Likewise.
9723
9724 * w32console.c (write_glyphs): Use a locally declared
9725 conversion_buffer.
9726
9727 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9728
9729 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9730 member of display_info is NULL.
9731
9732 2000-08-15 Gerd Moellmann <gerd@gnu.org>
9733
9734 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
9735
9736 * term.c (turn_off_face): Reset standout_mode when resetting
9737 appearances with capability `me'.
9738 (write_glyphs): Switch on inverse video before each face change.
9739
9740 2000-08-14 Dave Love <fx@gnu.org>
9741
9742 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9743 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9744 (lisp_free): Declare and make static.
9745
9746 * window.c: Fix embedded comment.
9747 (syms_of_window): Fix doc string.
9748
9749 2000-08-14 Gerd Moellmann <gerd@gnu.org>
9750
9751 * keymap.c (push_key_description): If C without modifiers is < 32,
9752 make sure to print `C-' before `M-', like in the manual.
9753
9754 2000-08-11 Gerd Moellmann <gerd@gnu.org>
9755
9756 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9757 since they aren't relocated anymore.
9758 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
9759
9760 * xdisp.c (try_cursor_movement): Fix handling of cursor in
9761 partially visible line which is smaller than the window's height.
9762
9763 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9764
9765 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
9766 the multibyte form of eight-bit-control characters.
9767 (Fccl_execute_on_string): Initialize ccl->multibyte.
9768
9769 * ccl.h (struct ccl_program): New member multibyte.
9770
9771 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9772
9773 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9774
9775 * regex.c (regex_compile) <normal_char>: Pay attention to
9776 multibyteness.
9777 (analyse_first) <exactn>: Setup fastmap correctly for
9778 eight-bit-control characters.
9779
9780 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9781
9782 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
9783
9784 * keyboard.c (make_lispy_event): Handle the new event type
9785 multibyte_char_keystroke.
9786
9787 * xterm.c: Include coding.h.
9788 (XTread_socket): Work around a bug of XmbLookupString. If the
9789 input is from XIM, decode it according to the current locale. In
9790 that case, generate multibyte_char_keystroke events.
9791
9792 2000-08-11 Kenichi Handa <handa@etl.go.jp>
9793
9794 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9795 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9796
9797 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9798
9799 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9800 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9801 (move_it_in_display_line_to): Record iterator's ascent and descent
9802 before producing glyphs, and restore them when we know the glyph
9803 doesn't fit on the line.
9804 (move_it_to): Restructured so that it's easier to debug. If
9805 moving to a vpos, and not moving to an x or character position,
9806 stop as soon as the specified vpos is reached; don't move further
9807 into that line because that might change the computed line height.
9808 (try_cursor_movement): New function, extracted from the cursor
9809 movement branch of redisplay_window. If ending on a partially
9810 visible line, don't try to scroll if the cursor line is taller
9811 than the window.
9812 (redisplay_window): Use try_cursor_movement.
9813
9814 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9815 because that function doesn't cope with variable-height lines.
9816
9817 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9818 box cursor because that's better visible for large images.
9819
9820 2000-08-10 Miles Bader <miles@gnu.org>
9821
9822 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9823
9824 2000-08-10 Gerd Moellmann <gerd@gnu.org>
9825
9826 * xdisp.c (Vmessages_buffer_name): New variable.
9827 (message_dolog): Use it.
9828 (syms_of_xdisp): Initialize it.
9829
9830 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9831
9832 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
9833 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9834 redundant now that keyboard.h is included.
9835
9836 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9837
9838 * keyboard.c (kbd_buffer_events_waiting): New function.
9839
9840 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9841
9842 * msdos.c: Include keyboard.h.
9843 (XMenuActivate): Empty no_event events from the event buffer. If
9844 no events are left after that, call clear_input_pending.
9845 (mouse_clear_clicks): New function, code moved from mouse_init.
9846 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9847 mouse driver to ``forget'' any past clicks.
9848
9849 * Makefile.in (msdos.o): Depend on keyboard.h.
9850
9851 2000-08-09 Gerd Moellmann <gerd@gnu.org>
9852
9853 * lisp.h (input_pending): External declaration.
9854
9855 * dispextern.h (Qredisplay_dont_pause): Declare extern.
9856
9857 * xdisp.c (echo_area_display): Display thoroughly if input is
9858 pending. Bind redisplay-dont-pause to t during the redisplay.
9859 in case input is pending.
9860
9861 * dispnew.c (Qredisplay_dont_pause): New variable.
9862 (syms_of_display): Initialize and staticpro it.
9863 (update_frame_1): Don't interrupt the display for pending input if
9864 redisplay_dont_pause is set.
9865
9866 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9867
9868 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9869
9870 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9871
9872 * callproc.c (Fcall_process): Terminate the unwind-protect around
9873 the post-read-conversion of coding system.
9874
9875 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9876 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9877 * buffer.h (overlays_at): Update prototype.
9878 * xdisp.c (next_overlay_change): Update call to overlays_at.
9879 * xfaces.c (face_at_buffer_position): Likewise.
9880 * textprop.c (Fget_char_property): Likewise.
9881 * xterm.c (note_mouse_highlight): Likewise.
9882
9883 * minibuf.c (do_completion): Don't consider a simple change of
9884 case as `completion'.
9885
9886 2000-08-08 Ken Raeburn <raeburn@gnu.org>
9887
9888 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
9889 * undo.c (record_delete): Make sure last_point_position_buffer is
9890 a buffer before comparing pointers.
9891
9892 * coding.h (decode_coding_string): Declare.
9893
9894 * intervals.h (Fprevious_single_char_property_change): Declare.
9895
9896 * textprop.c (Fprevious_single_char_property_change): Don't do
9897 arithmetic directly on lisp objects.
9898
9899 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
9900
9901 * keyboard.h (menu_item_eval_property): Declare.
9902
9903 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9904 reuse as buffer name, instead of recreating (and discarding) every
9905 time a message is logged.
9906 (with_echo_area_buffer): Make callback arg A2 a lisp object.
9907 (current_message_1, truncate_message_1, set_message_1)
9908 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9909 (current_message, truncate_echo_area, display_echo_area)
9910 (resize_echo_area_axactly): Changed calls.
9911
9912 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
9913 Lisp object.
9914 (Ffind_coding_systems_region_internal): First argument to Fappend
9915 must be an integer, not a Lisp object.
9916
9917 2000-08-08 Kenichi Handa <handa@etl.go.jp>
9918
9919 * charset.c (Fchar_width): Doc fix.
9920
9921 2000-08-08 Gerd Moellmann <gerd@gnu.org>
9922
9923 * charset.c (Fstring_width): Doc fix.
9924
9925 2000-08-07 Gerd Moellmann <gerd@gnu.org>
9926
9927 * xdisp.c (start_display): When starting display on a continuation
9928 line, clear ascent and descent members of the iterator structure;
9929 the height of the continued line does not affect the height of the
9930 continuation line.
9931 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9932 line taller than the window.
9933 (redisplay_window) <forced window start>: Handle case that the
9934 middle of the window is not found in any row.
9935 (dump_glyph_row): Show more information.
9936 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9937 first text line in a glyph matrix.
9938
9939 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9940 of the clip area when image doesn't have a mask.
9941
9942 * fns.c (sweep_weak_table): Fix survival conditions for
9943 key-or-value and key-and-value weakness.
9944
9945 * .gdbinit (xhashtable): New command.
9946
9947 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9948 tables out of the list of all weak hash tables.
9949
9950 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9951 a new buffer is created, make sure echo_area_buffer[] references
9952 the new buffer.
9953
9954 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9955
9956 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9957 the doc string.
9958
9959 2000-08-07 Kenichi Handa <handa@etl.go.jp>
9960
9961 * syntax.c (skip_chars): Fix previous change. Make the handling
9962 of unibyte string consistent with that of regex search.
9963
9964 2000-08-05 Gerd Moellmann <gerd@gnu.org>
9965
9966 * xmenu.c (popup_get_selection): Use xfree instead of free.
9967
9968 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9969
9970 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9971
9972 * callproc.c (child_setup): Use xfree instead of free.
9973
9974 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9975 instead of malloc.
9976 (run_mac_command, closedir): Use `xfree' instead of `free'.
9977
9978 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9979
9980 * eval.c (error): Use xfree instead of free.
9981
9982 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9983
9984 * fns.c: Replace `illegal' with `invalid'.
9985 (Fmake_hash_table, make_hash_table): Allow table size of 0.
9986
9987 2000-08-05 Kenichi Handa <handa@etl.go.jp>
9988
9989 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9990 conversion.
9991
9992 2000-08-04 Noah Friedman <friedman@splode.com>
9993
9994 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9995 docstring.
9996
9997 2000-08-04 Gerd Moellmann <gerd@gnu.org>
9998
9999 * syntax.c (skip_chars): Fix typo in error message.
10000
10001 2000-08-04 Andreas Schwab <schwab@suse.de>
10002
10003 * m/ia64.h: Moved from s/ia64.h.
10004
10005 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10006
10007 * process.c (read_process_output): Big simplification. Handle
10008 composition and post-read-conversion of coding system correctly.
10009 (send_process): Handle composition correctly.
10010
10011 * callproc.c (Fcall_process): Handle post-read-conversion of
10012 coding system if any.
10013
10014 * coding.c (decode_coding_iso2022): More strict check for handling
10015 single shifting.
10016 (coding_restore_composition): Pay attention to the case that
10017 cmp_data is not set properly (because of invalid code in the
10018 source text).
10019 (run_pre_post_conversion_on_str): Include text properties in the
10020 resulting string.
10021 (decode_coding_string): Set members of coding correctly.
10022
10023 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10024
10025 * s/ia64.h: New file.
10026
10027 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10028 Use NULL instead of 0 at the end of variable argument list of
10029 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10030 sizeof (int) < sizeof (void *).
10031
10032 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10033 of variable argument lists of XtVaGetValues and XtVaSetValues.
10034
10035 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10036 variable argument lists of XtVaGetValues and XtVaSetValues.
10037
10038 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10039
10040 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10041 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10042
10043 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10044 prototype.
10045
10046 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10047 in call to Fsingle_key_description.
10048
10049 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10050 Callers changed.
10051
10052 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10053
10054 * window.c (display_buffer_reuse_frames): New variable.
10055 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10056 frames displaying BUFFER.
10057 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10058
10059 2000-08-01 Miles Bader <miles@gnu.org>
10060
10061 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10062 when to constrain NEW_POS (they were pretty screwed up before).
10063
10064 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10065
10066 * msdos.c (run_msdos_command): Save and restore the master
10067 environment, for the case that child_setup signals an error.
10068 When mirroring slashes in DOS shell commands, don't fail when
10069 argv[2] has embedded blanks.
10070 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10071 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10072 (dos_ttraw): Call mouse_setup_buttons.
10073
10074 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10075 using alloca; free it after run_msdos_command returns.
10076
10077 2000-07-27 Dave Love <fx@gnu.org>
10078
10079 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10080 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10081
10082 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10083
10084 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10085
10086 * editfns.c (lisp_time_argument): Fix last change.
10087
10088 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10089
10090 * fns.c (Fdelete): Make it work on vectors and strings in addition
10091 to lists.
10092
10093 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10094 (syms_of_fns): Initialize new variables.
10095 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10096 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10097 weakness, with t meaning the same as `key-and-value'.
10098
10099 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10100
10101 * coding.h (struct coding_system): Member safe_charset deleted.
10102
10103 * coding.c (Qsafe_charsets): This variable deleted.
10104 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10105 New variables.
10106 (coding_safe_chars): New function.
10107 (CODING_SAFE_CHAR_P): New macro.
10108 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10109 checking safe_charsets member of the coding system. Caller changed.
10110 (detect_coding_iso2022): New local variable safe_chars.
10111 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10112 safe_charsets member of the coding system.
10113 (decode_coding_iso2022): New local variable safe_chars.
10114 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10115 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10116 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10117 (ENCODE_UNSAFE_CHARACTER): New macro.
10118 (encode_coding_iso2022): New local variable safe_chars. Check
10119 unsafe chars.
10120 (setup_coding_system): Delete the code to initialize
10121 coding->safe_charses
10122 (intersection, find_safe_codings): New functions.
10123 (Ffind_coding_systems_region_internal): New function.
10124 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10125 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10126 variable and initialize it.
10127
10128 * fns.c (char_table_ref_and_index): New function.
10129
10130 * lisp.h (char_table_ref_and_index): Add prototype.
10131
10132 2000-07-26 Sam Steingold <sds@gnu.org>
10133
10134 * editfns.c (lisp_time_argument): Added third argument `usec'.
10135 (Ffloat_time): New built-in Lisp function.
10136
10137 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10138
10139 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10140 for the character code.
10141
10142 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10143 GNU/Linux.
10144
10145 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10146 if called for a popup menu.
10147 (xmenu_show): Store help string in widget values.
10148
10149 2000-07-26 Dave Love <fx@gnu.org>
10150
10151 * syswait.h: Move some definitions.
10152 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10153 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10154 perspicuous definitions.
10155 (WTERMSIG): Fix bit pattern used.
10156
10157 2000-07-26 Kenichi Handa <handa@etl.go.jp>
10158
10159 * print.c (print_object): If vector printing is truncated, print
10160 "..." to indicate it as well as the case of list printing.
10161
10162 2000-07-25 Gerd Moellmann <gerd@gnu.org>
10163
10164 * xdisp.c (next_element_from_display_vector): Improve comments.
10165
10166 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
10167 for the character code, and the rest for the face id as in 20.x.
10168 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
10169
10170 * window.c (window_display_table): Cleaned up.
10171
10172 * syntax.c (Fforward_word): Add last arg nil in call of
10173 Fconstrain_to_field.
10174
10175 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
10176
10177 * fileio.c (Frename_file) [DOS_NT]: If the file names are
10178 identical but for the letter-case, don't call
10179 barf_or_query_if_file_exists.
10180
10181 2000-07-25 Miles Bader <miles@gnu.org>
10182
10183 * editfns.c (find_field): Honor special `boundary' fields.
10184 (Qboundary): New variables.
10185 (syms_of_editfns): Initialize Qboundary.
10186 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
10187 Use scan_buffer instead of find_before_next_newline, because it
10188 allows us to detect the boundary case where there's a newline at
10189 the search limit.
10190 * lisp.h (Fconstrain_to_field): Update external declaration.
10191
10192 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10193
10194 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
10195 if that is nil.
10196
10197 2000-07-24 Dave Love <fx@gnu.org>
10198
10199 * s/sunos4-0.h, s/sol2.h:
10200 (LIBS_TERMCAP): Move from m/sparc.h.
10201
10202 * m/sparc.h (TERMINFO): Moved to system files (probably only
10203 relevant for sunos4 judging by its vintage).
10204 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
10205 __arch64__.
10206
10207 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
10208
10209 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
10210 name to single_keymap_panes.
10211
10212 2000-07-24 Andreas Schwab <schwab@suse.de>
10213
10214 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
10215
10216 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10217
10218 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
10219 parameters instead of using int parameters. Expect FN to accept
10220 EMACS_INT parameters.
10221 (display_echo_area, resize_echo_area_axactly, current_message)
10222 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
10223 with new argument list.
10224 (resize_mini_window_1): New callback function.
10225 (current_message_1, truncate_message_1, set_message_1): Change
10226 parameter lists to the new format expected by with_echo_area_buffer.
10227
10228 2000-07-24 Kenichi Handa <handa@etl.go.jp>
10229
10230 * fontset.c (fontset_ref): Remove INLINE declaration.
10231 (fontset_ref_via_base): Likewise.
10232 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
10233 to downcase.
10234
10235 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
10236
10237 * msdos.c (IT_note_mouse_highlight): Process overlays in the
10238 correct order of priority. If help echo was found in an overlay,
10239 use that overlay as the object in which the help echo was found.
10240
10241 2000-07-22 Miles Bader <miles@gnu.org>
10242
10243 * textprop.c (Fprevious_single_char_property_change): The initial
10244 property value should be from the position preceding POSITION, not
10245 following it.
10246
10247 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10248
10249 * coding.c (syms_of_coding): Doc fix for
10250 inhibit-iso-escape-detection.
10251
10252 2000-07-21 Gerd Moellmann <gerd@gnu.org>
10253
10254 * xterm.c (note_mouse_highlight): Process overlays in the right
10255 order of priority.
10256
10257 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10258
10259 * xterm.c (note_mouse_highlight): If help-echo was found in an
10260 overlay, use that overlay as the object in which the help was found.
10261
10262 * window.c (foreach_window_1): Fix typo reversing an if-condition.
10263
10264 * window.c (foreach_window): Instead of a fake variable argument
10265 list, take one USER_DATA argument.
10266 (foreach_window_1): Likewise, and call callback functions with two
10267 args, the window and USER_DATA.
10268 (struct check_window_data): New struct.
10269 (check_window_containing): Use it.
10270 (window_from_coordinates): Set up a struct check_window_data for
10271 foreach_window.
10272 (add_window_to_list, freeze_window_start): Change parameters
10273 according to new calling convention.
10274
10275 * window.h (foreach_window): Change prototype.
10276
10277 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10278
10279 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10280
10281 * xmenu.c (menu_help_callback): Call show_help_echo with
10282 additional arguments OBJECT and POS.
10283
10284 2000-07-21 Kenichi Handa <handa@etl.go.jp>
10285
10286 * data.c (Faset): Allow storing any multibyte character in a
10287 string. Convert unibyte string to multibyte if necessary.
10288
10289 * xfns.c (x_encode_text): New function.
10290 (x_set_name): Use x_encode_text.
10291 (x_set_title): Likewise.
10292
10293 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10294
10295 * xterm.h (x_encode_text): Add prototype.
10296
10297 2000-07-20 Dave Love <fx@gnu.org>
10298
10299 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10300 xfree, not free.
10301
10302 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10303
10304 * msdos.c (help_echo_window): New variable.
10305 (syms_of_msdos): Initialize and staticpro it.
10306 (IT_note_mode_line_highlight): Set help_echo_window.
10307 (IT_note_mouse_highlight): Ditto.
10308 (dos_rawgetc): Store help_echo_window in the second event produced
10309 for HELP_EVENTs.
10310
10311 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10312 Record the object that generated the help echo and the position of
10313 that object in help_echo_object and help_echo_pos. Record that
10314 some glyphs in a row are displayed in mouse-face.
10315 (IT_update_begin): Don't clear mouse highlight unless one of the
10316 enabled glyph rows is marked as being displayed in mouse-face.
10317 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10318 and position recorded in help_echo_object and help_echo_pos to the
10319 event queue.
10320 (IT_menu_display): Accept a new argument PN: the pane number of
10321 the current menu pane. Record the pane number and the item
10322 number of the item which has associated help string.
10323 (XMenuActivate): Update the prototype for help_callback in
10324 function declaration. Call IT_menu_display with the current menu
10325 pane number as an additional argument. Call help_callback with
10326 two additional arguments: the pane number and the item number of
10327 the menu item associated with the help text.
10328 (help_echo_object, help_echo_pos): New variables.
10329 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10330
10331 * msdos.h (XMenuActivate): Update prototype.
10332
10333 2000-07-19 Gerd Moellmann <gerd@gnu.org>
10334
10335 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10336 Add some more prototypes.
10337
10338 * xterm.c, xterm.h: Add some more prototypes.
10339
10340 * lisp.h (Fnext_single_char_property_change): Add prototype.
10341
10342 * dispnew.c (direct_output_for_insert): Remove confusing
10343 outer local variable mouse_face_overwritten_p.
10344 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10345
10346 * alloc.c (allocate_string_data): Don't copy old string contents.
10347
10348 2000-07-19 Kenichi Handa <handa@etl.go.jp>
10349
10350 * coding.c (code_convert_region): Delete text properties before
10351 shrinking the conversion region.
10352
10353 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10354
10355 * dispnew.c (update_text_area): Write the whole row if it
10356 has mouse-face in it.
10357
10358 * xfaces.c (face-alternative-font-family-alist): Remove
10359 DEFVAR_LISP; staticpro instead.
10360
10361 * xmenu.c (menu_help_callback): Call show_help_echo with
10362 new arguments.
10363
10364 * keyboard.c (show_help_echo): Add parameter WINDOW.
10365 (read_char): Call show_help_echo with window extracted from Lisp
10366 help event.
10367 (gen_help_event): Add parameter WINDOW.
10368
10369 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10370
10371 * xterm.c (help_echo_window): New variable.
10372 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
10373 (XTread_socket): Pass help_echo_window to gen_help_event.
10374 (syms_of_xterm): Initialize and staticpro help_echo_window.
10375
10376 2000-07-18 Dave Love <fx@gnu.org>
10377
10378 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
10379
10380 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10381
10382 * alloc.c (allocate_string_data): If string had already data
10383 assigned, copy old contents to new string data.
10384
10385 * coding.c (syms_of_coding): Fix typo in spelling of variable
10386 `inhibit-iso-escape-detection'.
10387
10388 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10389
10390 * Makefile.in: Add dependencies on dispextern.h.
10391 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10392 `free'; both can conflict with system header files.
10393
10394 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10395
10396 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10397 undefined.
10398
10399 2000-07-18 Dave Love <fx@gnu.org>
10400
10401 * window.c (Fwindow_list): Declare arg `window'.
10402
10403 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10404
10405 * coding.c (setup_coding_system): Don't override the explicitly
10406 specified designations.
10407
10408 2000-07-15 Miles Bader <miles@gnu.org>
10409
10410 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10411 from `text_property_eq' and `text_property_stickiness', respectively.
10412 (find_field, Fconstrain_to_field, char_property_eq)
10413 (char_property_stickiness): Changed to call char-property functions
10414 instead of text-property-only ones.
10415
10416 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10417 `next_single_char_property_change'). Do more error checking, and
10418 cleanup limit behavior.
10419 (Fprevious_single_char_property_change): New function.
10420 (syms_of_textprop): Initialize new subrs.
10421
10422 * xdisp.c (display_prop_end, invisible_text_between_p):
10423 Call Fnext_single_char_property_change instead of
10424 next_single_char_property_change.
10425
10426 2000-07-15 Jason Rumney <jasonr@gnu.org>
10427
10428 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10429 after menu is finished with.
10430 (add_menu_item): Only consider wv->title as a menu title.
10431 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10432
10433 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10434 null title.
10435 (FONT_REGEXP): Remove unused macro, and its sub-components.
10436 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10437
10438 * w32term.c (help_echo_object, help_echo_pos): New variables.
10439 (note_mode_line_highlight): Store additional information about the
10440 help-echo in help_echo_object and help_echo_pos. Check both
10441 `local-map' and `keymap' properties for changing the cursor
10442 (note_mouse_highlight): Store additional information about the
10443 help-echo in help_echo_object and help_echo_pos.
10444 (note_tool_bar_highlight): Set help_echo_object to nil and
10445 help_echo_pos to -1.
10446 (w32_read_socket): Use gen_help_event instead of filling
10447 input_events manually.
10448 (syms_of_w32term): Staticpro help_echo_object.
10449 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
10450 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
10451 (x_clear_mouse_face): New function.
10452 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10453 (x_update_window_begin): No need to turn off the mouse
10454 highlight here.
10455 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10456 depending on whether they contain glyphs highlighted in mouse-face.
10457 (x_fill_stretch_glyph_string): Consume runs of stretch
10458 glyphs instead of a single one.
10459 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10460 with new argument list.
10461 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10462 (x_append_glyph, x_append_composite_glyph)
10463 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10464 changes in struct glyph starting 1999-12-27. See comments for
10465 xterm.c on 2000-07-05.
10466
10467 2000-07-14 Sam Steingold <sds@gnu.org>
10468
10469 * xfaces.c (realize_x_face): Fix the last patch:
10470 check `default_face' before dereferencing.
10471
10472 2000-07-14 Dave Love <fx@gnu.org>
10473
10474 * syntax.c (back_comment): Add null default in switch (for pcc).
10475
10476 2000-07-14 Kenichi Handa <handa@etl.go.jp>
10477
10478 * xfaces.c (realize_x_face): Make fontset using the base of the
10479 default_face's fontset, not using the default fontset.
10480
10481 * coding.c (inhibit_iso_escape_detection): New variable.
10482 (syms_of_coding): Make it a Lisp variable.
10483 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10484 nonzero, ignore ISO2022's escape sequence.
10485
10486 2000-07-14 Gerd Moellmann <gerd@gnu.org>
10487
10488 * alloca.c (malloc) [emacs]: Define as xmalloc.
10489
10490 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10491 use that instead of the mouse position. Add parameters DX and DY.
10492
10493 * dispextern.h (Fx_show_tip): Adjust number of parameters
10494 in prototype.
10495
10496 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10497 if HELP is a function, call it with OBJECT and POS as parameters
10498 to get the help to display.
10499 (gen_help_event, kbd_buffer_store_help_event): New functions.
10500 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10501 (read_char): Call show_help_echo with new parameters.
10502
10503 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
10504 Add prototypes.
10505
10506 * xterm.c (help_echo_object, help_echo_pos): New variables.
10507 (note_mode_line_highlight): Store additional information about the
10508 help-echo in help_echo_object and help_echo_pos. Check both
10509 `local-map' and `keymap' properties for changing the cursor
10510 (note_mouse_highlight): Store additional information about the
10511 help-echo in help_echo_object and help_echo_pos.
10512 (note_tool_bar_highlight): Set help_echo_object to nil and
10513 help_echo_pos to -1.
10514 (XTread_socket): Use gen_help_event instead of filling
10515 input_events manually.
10516 (syms_of_xterm): Staticpro help_echo_object.
10517
10518 * xmenu.c (menu_highlight_callback): Use
10519 kbd_buffer_store_help_event instead of setting up and input_event
10520 structure manually.
10521
10522 * xdisp.c (eval_form): GCPRO argument sexpr.
10523 (call_function): New function.
10524 (handle_single_display_prop): Use call_function and FUNCTIONP
10525 instead of checking whether if font_height is a symbol and
10526 using eval_form.
10527
10528 * eval.c (internal_condition_case_2): New function.
10529
10530 * lisp.h (FUNCTIONP): New macro.
10531 (internal_condition_case_2, call_function): Add prototypes.
10532
10533 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10534 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10535 Always set `arg' member of input_events.
10536 (construct_menu_click): Unused function removed.
10537
10538 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10539
10540 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10541 (construct_drag_n_drop, x_scroll_bar_handle_click)
10542 (w32_read_socket): Always set `arg' member of input_events.
10543
10544 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10545
10546 * lisp.h (eval_form): Add prototype.
10547
10548 * xdisp.c (eval_form): Make it externally visible.
10549
10550 2000-07-13 Gerd Moellmann <gerd@gnu.org>
10551
10552 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10553 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10554 consing. For prefix events, store the frame in the `arg' slot of
10555 the event, otherwise store the key there.
10556 (XTread_socket): Instead of consing, use the frame_or_window slot
10557 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
10558
10559 * xmenu.c (menu_highlight_callback): Store help string in the
10560 `arg' member of the input event; don't cons.
10561 (menubar_selection_callback): Use the `arg' slot of input events
10562 to queue additional information, instead of consing.
10563
10564 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10565
10566 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10567 TOOL_BAR_EVENTs.
10568 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10569
10570 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10571 input events to queue additional information, instead of consing.
10572
10573 * keyboard.c (kbd_buffer_gcpro): Renamed from
10574 kbd_buffer_frame_or_window. Now used for all Lisp objects
10575 referenced from the input queue.
10576 (kbd_buffer_store_event): Always use structure assignment for
10577 copying input events. Record all Lisp objects referenced from
10578 events in kbd_buffer_gcpro.
10579 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10580 differently from input events. Test for prefix menu_bar_events
10581 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10582 event in kbd_buffer_gcpro to nil.
10583 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10584 frame_or_window is equal to its arg member as prefix events.
10585 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10586 used by an input event to nil.
10587 (init_keyboard): Use two times the size of the input queue
10588 for kbd_buffer_gcpro.
10589 (syms_of_keyboard): Likewise.
10590
10591 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10592 Use USER_SIGNAL_EVENT.
10593
10594 * termhooks.h (struct input_event): Add member `arg'.
10595 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10596 (USER_SIGNAL_EVENT): Renamed from user_signal.
10597
10598 * xfaces.c (ASET): Remove definition.
10599
10600 * lisp.h (AREF, ASET, ASIZE): New macros.
10601
10602 * fontset.c (AREF, ASIZE): Remove definitions.
10603
10604 * fns.c (AREF): Remove definition.
10605
10606 * composite.c (AREF): Remove definition.
10607
10608 2000-07-12 Gerd Moellmann <gerd@gnu.org>
10609
10610 * dispnew.c (redraw_overlapped_rows): Add missing local.
10611 (scrolling_window): Remove debug code.
10612
10613 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10614 Before scrolling, turn off a mouse-highlight in the window
10615 being scrolled.
10616
10617 * xterm.c (x_update_window_end): Add parameter
10618 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10619 redisplay in XTframe_up_to_date.
10620 (x_clear_mouse_face): New function.
10621 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10622
10623 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10624 current glyph row.
10625 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10626 it when any row is written to that contains glyphs highlighted in
10627 mouse-face.
10628 (update_window): Call the window update end hook with new
10629 parameter MOUSE_FACE_OVERWRITTEN_P.
10630 (direct_output_for_insert): Give up if row contains mouse-face.
10631
10632 * dispextern.h (struct redisplay_interface): Add parameter
10633 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10634 (clear_mouse_face): New function pointer member.
10635
10636 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10637
10638 * syntax.c (back_comment): Use one switch rather than a few `if's.
10639 Obey open_paren_in_column_0_is_defun_start.
10640 When reverting to the `slow' method, try to nicely handle the case
10641 of nested comments by checking that the comment-starter we found
10642 does indeed match the comment-ender.
10643 (scan_sexps_forward, scan_sexps_forward):
10644 Ignore excessive opening parenthesis rather than throwing an error.
10645
10646 2000-07-11 Gerd Moellmann <gerd@gnu.org>
10647
10648 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10649 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10650
10651 * dispnew.c (direct_output_forward_char): Give up if currently
10652 displaying a message instead of the minibuffer contents.
10653
10654 * xterm.c (x_update_window_begin): No need to turn off the mouse
10655 highlight here.
10656 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10657 depending on whether they contain glyphs highlighted in mouse-face.
10658
10659 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10660 compare the mouse_face_p flags of both rows.
10661
10662 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10663
10664 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10665
10666 * keyboard.c (show_help_echo): Accept additional parameter
10667 ok_to_overwrite_keystroke_echo.
10668 (read_char): Call show_help_echo with a zero
10669 ok_to_overwrite_keystroke_echo argument.
10670 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
10671 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10672 ok_to_overwrite_keystroke_echo argument.
10673 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10674 non-zero ok_to_overwrite_keystroke_echo argument.
10675
10676 2000-07-10 Gerd Moellmann <gerd@gnu.org>
10677
10678 * xdisp.c (try_window_id): If changes are all below what is
10679 displayed in the window, and point is in the window, we still
10680 might have to find point on the display.
10681
10682 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10683 glyphs instead of a single one.
10684 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10685 with new argument list.
10686 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10687
10688 * keymap.c (get_keymap_1): Add comment that this function can GC.
10689 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10690 comment that functions can GC.
10691 (Fset_keymap_parent): GCPRO arg KEYMAP.
10692
10693 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10694
10695 * msdos.c (XMenuActivate): After exiting the menu, restore the
10696 echo area message and erase it.
10697
10698 2000-07-10 Kenichi Handa <handa@etl.go.jp>
10699
10700 * fontset.c (Ffontset_info): Make the return value more compatible
10701 with that of Emacs 20.
10702
10703 2000-07-07 Gerd Moellmann <gerd@gnu.org>
10704
10705 * eval.c (Fsignal): Handle case that backtrace_list is null.
10706
10707 2000-07-07 Kenichi Handa <handa@etl.go.jp>
10708
10709 * ccl.c (Fccl_execute): Typo fixed.
10710
10711 2000-07-06 Gerd Moellmann <gerd@gnu.org>
10712
10713 * window.c (window_loop): Add missing gcpro1 local variable.
10714
10715 * window.c (Fwindow_list): Reverse list at the end.
10716 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10717 means allow windows on OWINDOW's frame, only.
10718 (window_loop): Simplified; use Fwindow_list.
10719
10720 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10721
10722 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10723
10724 * xterm.c (XTread_socket): Increment handling_signal at the start,
10725 decrement it at the end.
10726
10727 * eval.c (handling_signal): New variable.
10728 (Fsignal): Abort if handling_signal is non-zero.
10729
10730 * lisp.h (handling_signal): External declaration.
10731
10732 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10733
10734 2000-07-05 Ken Raeburn <raeburn@gnu.org>
10735
10736 Sound support for NetBSD through "Linux emulation" support:
10737 * config.in (HAVE_SOUNDCARD_H): Undef.
10738 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10739 * Makefile.in (LIBSOUND): New variable.
10740 (LIBES): Include it.
10741 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10742 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
10743 (vox_open): Use DEFAULT_SOUND_DEVICE.
10744 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10745
10746 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10747
10748 * print.c (print_error_message): If Vsignaling_function is set,
10749 show it in *Messages*.
10750
10751 * lisp.h (Vsignaling_function): External declaration.
10752
10753 * eval.c (Vsignaling_function): New variable.
10754 (Fsignal): Compute it.
10755 (syms_of_eval): Staticpro it.
10756
10757 2000-07-05 Dave Love <fx@gnu.org>
10758
10759 * syswait.h: Use the autoconf recommended approach. Old code
10760 #if'd out in case we need to revert.
10761
10762 * config.in (HAVE_SYS_WAIT_H): Added.
10763
10764 2000-07-05 Andrew Innes <andrewi@gnu.org>
10765
10766 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10767 when non-NULL instead of __morecore, to take account of buffer
10768 memory. This also solves a problem with spurious memory warnings
10769 on Windows.
10770
10771 * ralloc.c: Make real_morecore non-static.
10772
10773 * eval.c (internal_condition_case): Comment out abort if
10774 interrupt_input_blocked is not zero.
10775
10776 * makefile.nt: Add support for `bootstrap' and related targets.
10777 Include minimal debug info in emacs.exe in release build.
10778 Remove all dependencies on lisp.h, and fixup some others.
10779
10780 * w32.c (init_environment): Install code from 20.7 for providing
10781 default values for environment variables, based on the
10782 executable's own location.
10783 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
10784 (sys_socket): Install socket inheritance bug fix from 20.7.
10785
10786 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10787 here via blockinput.h).
10788
10789 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10790
10791 * w32menu.c (w32_menu_display_help):
10792 * xmenu.c (menu_help_callback): Use show_help_echo.
10793
10794 * keyboard.h (show_help_echo): Declare.
10795
10796 * keyboard.c (show_help_echo): New function, extracted from read_char.
10797 Feval its `msg' argument if it's a cons cell.
10798 (read_char): Use it.
10799 (follow_key): Pass `autoload' to get_keyelt.
10800
10801 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
10802 (note_tool_bar_highlight, XTread_socket):
10803 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
10804 (dos_rawgetc):
10805 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10806 (note_tool_bar_highlight, w32_read_socket):
10807 Do not gratuitously ignore non-string `help-echo' properties.
10808
10809 2000-07-05 Gerd Moellmann <gerd@gnu.org>
10810
10811 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10812
10813 * window.c (delete_all_subwindows): Reset Vwindow_list.
10814
10815 * xterm.c (x_append_glyph, x_append_composite_glyph)
10816 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10817 changes in struct glyph starting 1999-12-27. Some bit-fields of
10818 struct glyph were not set, which made glyphs unequal when compared
10819 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10820 effects were the result. This also depended on the contents of
10821 memory returned by xmalloc. If flickering happens again, activate
10822 the code in clear_glyph_row that's in #if 0. If the flickering is
10823 gone with that, chances are that it is caused by something similar.
10824
10825 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
10826
10827 * dispextern.h: Add some comments.
10828
10829 * window.c (add_window_to_list): Add parameter LIST.
10830 (window_list): Order list so that, for each frame, windows are
10831 in canonical order, and so that frames appear in the list in
10832 the order given by Vframe_list.
10833 (next_window): Reverse the handling of NEXT_P.
10834
10835 2000-07-04 Gerd Moellmann <gerd@gnu.org>
10836
10837 * window.c (Vwindow_list): New variable.
10838 (make_window, delete_window): Set Vwindow_list to nil.
10839 (check_window_containing): New function.
10840 (window_from_coordinates): Rewritten.
10841 (add_window_to_list, window_list, candidate_window_p)
10842 (decode_next_window_args, next_window): New functions.
10843 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
10844 (Fwindow_list): New function.
10845 (Fother_window): Cleaned up.
10846 (foreach_window): Add a longer "variable argument list". Let
10847 callback function return 0 to indicate that cycling over windows
10848 should stop.
10849 (foreach_window_1): Likewise.
10850 (freeze_window_start): Return int.
10851 (init_window): New function.
10852 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10853
10854 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10855 input_event with bzero.
10856 (main): Call init_window.
10857
10858 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10859 a menu filter.
10860
10861 2000-07-04 Kenichi Handa <handa@etl.go.jp>
10862
10863 * composite.h (make_composition_value_copy): Extern it.
10864
10865 * composite.c (make_composition_value_copy): New function.
10866
10867 * editfns.c (Fformat): While copying text properties, make each
10868 composition property value a copy.
10869
10870 * fns.c (concat): While copying text properties, make each
10871 composition property value a copy.
10872
10873 2000-07-03 Gerd Moellmann <gerd@gnu.org>
10874
10875 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10876
10877 * fns.c (sweep_weak_table): Mark only objects that are not
10878 marked already.
10879
10880 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10881 include those frames as candidates which have their focus
10882 redirected to the minibuffer frame.
10883
10884 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10885
10886 * fns.c (Fputhash): Return `value' rather than nil.
10887
10888 2000-06-30 Gerd Moellmann <gerd@gnu.org>
10889
10890 * frame.c (next_frame): Don't check focus redirection in case
10891 MINIBUF is a window. Doing so excludes frames using MINIBUF
10892 unless their focus is redirected, which contradicts the
10893 specification of next-frame, and leads to infinite loops in
10894 certain situations when cycling through windows with next-window.
10895
10896 2000-06-30 Kenichi Handa <handa@etl.go.jp>
10897
10898 * coding.c (code_convert_region): Even if the length of text is
10899 zero, try to convert it if coding->type is coding_type_ccl.
10900 (decode_coding_string, encode_coding_string): Likewise.
10901
10902 2000-06-28 Gerd Moellmann <gerd@gnu.org>
10903
10904 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
10905 the display if windows_or_buffers_changed.
10906
10907 * dispnew.c (struct row_entry): New structure.
10908 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10909 (row_table_size, old_lines, new_lines, old_lines_size)
10910 (new_lines_size, run_pool, runs_size, runs): New variables.
10911 (add_row_entry): New function.
10912 (scrolling_window): Use data structures allocated with xmalloc and
10913 held in global variables, instead of allocating them with alloca and
10914 holding them in local variables. Use a larger hash table whose
10915 size depends on glyph matrix sizes. Don't use bzero to clear the
10916 hash table; instead, clear used slots only.
10917
10918 * fns.c (next_almost_prime): Make it externally visible.
10919
10920 * lisp.h (next_almost_prime): Add prototype.
10921
10922 * s/isc4-0.h (sigunblock): Define.
10923
10924 * s/sco5.h (sigunblock): Define.
10925
10926 2000-06-27 Dave Love <fx@gnu.org>
10927
10928 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10929 (moved to osf5-0.h).
10930 [!NOT_C_CODE]: Protect string.h stuff.
10931
10932 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10933 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10934
10935 2000-06-27 Gerd Moellmann <gerd@gnu.org>
10936
10937 * xdisp.c (resize_mini_window): Subtract the extra line spacing
10938 below the last line from the needed window height.
10939
10940 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10941
10942 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10943 (Fwidget_get): Use it.
10944 (syms_of_fns): Defsubr it.
10945
10946 2000-06-26 Gerd Moellmann <gerd@gnu.org>
10947
10948 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
10949 display info for XIM.
10950 (xim_open_dpy): Likewise.
10951 (xim_close_dpy): Don't free the display info's XIM.
10952
10953 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10954
10955 * config.in (USE_XIM): New define.
10956
10957 * keymap.c (get_keyelt): For menu-items containing a `:filter
10958 FILTER', apply FILTER to the menu-item's definition to get the
10959 real definition to use.
10960
10961 * lisp.h (QCfilter): External declaration.
10962
10963 * xfns.c (Fimage_size): New function.
10964 (syms_of_xfns): Defsubr it.
10965
10966 2000-06-26 Andreas Schwab <schwab@suse.de>
10967
10968 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10969 Fstring_as_unibyte.
10970
10971 2000-06-25 Dave Love <fx@gnu.org>
10972
10973 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
10974
10975 * Makefile.in (blockinput.h): Depend on atimer.h.
10976 (atimer.h): Depend on systime.h.
10977
10978 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
10979
10980 * atimer.h: Protect against multiple inclusion. Include systime.h.
10981
10982 * lisp.h (swap_in_global_binding): Declare.
10983
10984 2000-06-24 Ken Raeburn <raeburn@gnu.org>
10985
10986 * process.c (Fopen_network_stream): Turn off atimers for duration
10987 of call to connect. (Patch from Gerd.)
10988
10989 2000-06-23 Dave Love <fx@gnu.org>
10990
10991 * ralloc.c: Maybe include unistd.h
10992
10993 * emacs.c (setgrp): Undefine before defining.
10994 (malloc_warning, set_time_zone_rule, index): Prototype.
10995
10996 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10997 HAVE_STRUCT_TIMEZONE.
10998
10999 * s/osf1.h: Move string.h hack here from alpha.h and make it
11000 conditional.
11001 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11002 _XOPEN_SOURCE.
11003 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11004 (SOCKLEN_TYPE): Don't define.
11005
11006 * m/alpha.h: Remove string.h hack.
11007
11008 * s/osf5-0.h: New file.
11009
11010 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11011 include time.h, done by systime.h.
11012 [__FreeBSD__]: Remove redundant includes.
11013
11014 * callproc.c (setpgrp): Undefine before defining.
11015 (delete_temp_file): Return Qnil to avoid warning.
11016
11017 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11018
11019 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11020 HAVE_X_WINDOWS.
11021
11022 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11023
11024 * composite.h (compose_text): Declare.
11025
11026 * xterm.c: Don't include sys/types.h unconditionally. Don't
11027 protect its inclusion with !USG (following xmenu.c).
11028
11029 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11030
11031 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11032 in x_create_frame.
11033
11034 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11035
11036 * coding.c (decode_eol_post_ccl): Special handling for undecided
11037 and inconsistent EOL types.
11038
11039 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11040
11041 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11042 trough color and main window's background color.
11043
11044 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11045
11046 * xterm.h (Xt_app_con): External declaration.
11047
11048 * widget.c (EmacsFrameRealize): Fix typo.
11049
11050 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11051
11052 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11053 (handle_invisible_prop): Record the start of invisible text in
11054 it->add_overlay_start.
11055 (struct overlay_entry): Add member `overlay'.
11056 (handle_overlay_change): Simplify.
11057 (next_overlay_string): After having processed overlay strings at the
11058 end of the buffer, record that fact in
11059 it->overlay_strings_at_end_processed_p.
11060 (compare_overlay_entries): If before- and after-strings come
11061 from the same overlay, let before-strings come first.
11062 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11063 (load_overlay_strings): Take it->add_overlay_start into account
11064 when adding overlay strings.
11065
11066 * dispextern.h (struct it): Add member add_overlay_start.
11067
11068 2000-06-22 Dave Love <fx@gnu.org>
11069
11070 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11071
11072 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11073
11074 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11075
11076 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11077 is greater than 0.
11078
11079 2000-06-21 Dave Love <fx@gnu.org>
11080
11081 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11082
11083 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11084
11085 * syntax.c (back_comment): Simplify string-parity counting (with
11086 the added benefit of handling multiple string-styles as long as
11087 they are not intertwined).
11088 Jump to the slow code as soon as a comment starter is found in
11089 a "string_lossage" position. Fixes the case: " /* " /* " */.
11090
11091 2000-06-21 Dave Love <fx@gnu.org>
11092
11093 * Makefile.in: Use GETLOADAVG_LIBS.
11094
11095 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11096 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11097
11098 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11099
11100 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11101 (Fforward_comment, scan_lists):
11102 Check the comstyle of single-char comment-starters.
11103 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11104 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11105 Check the comstyle of single-char comment-starters.
11106 Clarify control-flow around the Scomment case.
11107
11108 2000-06-20 Dave Love <fx@gnu.org>
11109
11110 * fns.c (make_hash_table, maybe_resize_hash_table):
11111 Cast arg of next_almost_prime.
11112
11113 * tparam.c [emacs]: Include lisp.h.
11114
11115 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11116 and unistd.h.
11117
11118 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11119
11120 * keyboard.c (adjust_point_for_property): Check if display
11121 property should be treated as intangible by looking at its value.
11122
11123 * xdisp.c (single_display_prop_intangible_p)
11124 (display_prop_intangible_p): New functions.
11125
11126 * dispextern.h (display_prop_intangible_p): Add prototype.
11127
11128 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11129
11130 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11131 argument to sigprocmask.
11132
11133 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11134 argument to sigprocmask.
11135
11136 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11137 sigprocmask_set, and pass a pointer to it to sigprocmask.
11138
11139 * sysdep.c (sigprocmask_set): New variable.
11140
11141 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11142 report_file_error.
11143
11144 2000-06-20 Sam Steingold <sds@gnu.org>
11145
11146 * xrdb.c: Don't declare xmalloc, xrealloc.
11147
11148 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11149
11150 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11151 (re_comp): Cast gettext return value to avoid complaints when
11152 !HAVE_LIBINTL.
11153
11154 2000-06-20 Dave Love <fx@gnu.org>
11155
11156 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
11157
11158 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
11159
11160 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
11161
11162 * m/alpha.h: Don't declare xmalloc, xrealloc.
11163
11164 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
11165
11166 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
11167
11168 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
11169
11170 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
11171 HAVE_GETWD.
11172
11173 * keyboard.h (poll_for_input_1): Declare.
11174
11175 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
11176
11177 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
11178
11179 * doprnt.c: Don't declare xmalloc, xrealloc.
11180
11181 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
11182 (getenv, ctime, getwd): Removed.
11183 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
11184
11185 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
11186 x_set_tool_bar_lines.
11187
11188 * config.in: Add HAVE_GETWD. Move some definitions above
11189 machine/system includes.
11190
11191 2000-06-20 Kenichi Handa <handa@etl.go.jp>
11192
11193 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
11194
11195 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
11196 contain information about ENCODING.
11197
11198 * fontset.c (FONTSET_ASCII): Use the first element of char table
11199 for an ASCII font, not defalt slot.
11200 (fontset_ref_via_base): If FONTSET doesn't contain information for
11201 C, try the default fontset.
11202 (make_fontset): Don't copy the default fontset.
11203 (fontset_font_pattern): Likewise.
11204 (accumulate_font_info): If ELT is nil, use the corresponding
11205 element in the default fontset.
11206
11207 2000-06-19 Dave Love <fx@gnu.org>
11208
11209 * syntax.c (Fparse_partial_sexp): Doc fix.
11210
11211 * regex.h: Test PROTOTYPES as well as __STDC__.
11212
11213 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
11214 errno, strerror. Put text after #endif in comment.
11215
11216 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
11217
11218 * xterm.c (x_frame_of_widget): Likewise.
11219
11220 2000-06-19 Gerd Moellmann <gerd@gnu.org>
11221
11222 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
11223 to Vfundamental_mode_abbrev_table.
11224
11225 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
11226 bogus objects are marked. This slows down GC by ~80 percent, but
11227 it might be worth trying when debugging GC-related problems.
11228 This feature requires conservative stack marking to be enabled.
11229
11230 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
11231 returns XLookupChars, reset `modifiers' to zero.
11232
11233 2000-06-19 Dave Love <fx@gnu.org>
11234
11235 * mktime.c: Unprotoized.
11236
11237 2000-06-19 Richard Stallman <rms@gnu.org>
11238
11239 * data.c (set_internal): If variable is frame-local,
11240 store the new value immediately into the frame parameter alist.
11241
11242 2000-06-19 Ken Raeburn <raeburn@gnu.org>
11243
11244 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11245 in the custom handler pointer.
11246
11247 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11248 value, or checks for CHAR_META can fail when Lisp_Object is a
11249 union type.
11250 * keymap.c (get_keyelt): Likewise.
11251
11252 2000-06-19 Kenichi Handa <handa@etl.go.jp>
11253
11254 * ccl.h (struct ccl_program): New member eol_type.
11255 (struct ccl_spec): New member cr_carryover.
11256
11257 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11258 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11259
11260 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11261 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11262 (decode_eol_post_ccl): New function.
11263 (decode_coding): Don't detect EOL format here for CCL based coding
11264 systems.
11265 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11266 decode_eol_post_ccl after running the CCL program.
11267 (code_convert_region): Don't detect EOL format here for CCL based
11268 coding systems.
11269 (decode_coding_string): Likewise.
11270
11271 2000-06-18 Ken Raeburn <raeburn@gnu.org>
11272
11273 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11274 when treating it as an integer.
11275
11276 * coding.h (encode_coding_string): Declare.
11277
11278 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11279 it as an integer.
11280
11281 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11282 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11283 to be passed to get_local_map.
11284
11285 * sound.c (Fplay_sound): Don't call make_number on
11286 Frun_hook_with_args count argument.
11287
11288 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11289 for lisp objects in X event structure data field, when lisp
11290 objects are represented with unions.
11291 (x_scroll_bar_to_input_event): Ditto.
11292
11293 2000-06-16 Ken Raeburn <raeburn@gnu.org>
11294
11295 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
11296 termination of string. Fix sense of test whether
11297 Vline_number_display_limit is an integer.
11298
11299 2000-06-16 Gerd Moellmann <gerd@gnu.org>
11300
11301 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11302 only if HAVE_X_WINDOWS.
11303
11304 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11305 of titles.
11306
11307 * dispnew.c (update_frame_1): Handle case that cursor vpos is
11308 out of bounds.
11309
11310 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11311
11312 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11313 of its headers.
11314
11315 2000-06-15 Kenichi Handa <handa@etl.go.jp>
11316
11317 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11318 start of the while loop.
11319
11320 2000-06-15 Gerd Moellmann <gerd@gnu.org>
11321
11322 * atimer.c (alarm_signal_handler): Add forward declaration.
11323
11324 * data.c (set_internal): Remove debug code.
11325
11326 2000-06-14 Gerd Moellmann <gerd@gnu.org>
11327
11328 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11329
11330 * unexec.c (toplevel) [COFF]: Include coff.h.
11331
11332 * s/lynxos.h: New file.
11333
11334 * keymap.c (Fsingle_key_description): Enclose function key and
11335 event symbol names in angle brackets.
11336
11337 * xdisp.c (setup_echo_area_for_printing): Call
11338 message_log_maybe_newline if message_buf_print is not set.
11339
11340 * print.c (printchar, strout): Don't check message_buf_print
11341 before calling setup_echo_area_for_printing because that
11342 function does something useful even when message_buf_print is
11343 already set.
11344
11345 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11346 New variables.
11347 (ensure_echo_area_buffers): Initialize echo buffer's
11348 truncate lines setting to nil.
11349 (with_echo_area_buffer): Don't set the echo buffer's truncate
11350 lines setting here.
11351 (set_message_1): Set it here instead, based on the value
11352 of message_truncate_lines.
11353 (resize_mini_window): Handle case that lines are truncated.
11354 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11355 DEFVAR_BOOL message-truncate-lines.
11356
11357 * keyboard.c (read_char): Bind message-truncate-lines to t
11358 while displaying a help-echo.
11359
11360 * lisp.h (Qmessage_truncate_lines): External declaration.
11361
11362 2000-06-13 Gerd Moellmann <gerd@gnu.org>
11363
11364 * xdisp.c (Vline_number_display_limit): Renamed from
11365 line_number_display_limit.
11366 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11367 Extend documentation string. Initialize
11368 Vline_number_display_limit to nil meaning no limit.
11369 (decode_mode_spec): Use Vline_number_display_limit with its new
11370 meaning.
11371
11372 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11373
11374 2000-06-13 Richard Stallman <rms@gnu.org>
11375
11376 * frame.c (Fmodify_frame_parameters): Doc fix.
11377
11378 * xfns.c (x_set_frame_parameters): Comment fix.
11379
11380 * frame.c (store_frame_param): Call swap_in_global_binding if the
11381 variable's current binding was chosen based on this frame.
11382
11383 * data.c (swap_in_global_binding): New function.
11384
11385 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11386
11387 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11388 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11389
11390 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11391
11392 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11393
11394 2000-06-12 Jason Rumney <jasonr@gnu.org>
11395
11396 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11397
11398 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11399
11400 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11401
11402 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11403
11404 2000-06-12 Gerd Moellmann <gerd@gnu.org>
11405
11406 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11407 (syms_of_xfaces): Defsubr Sdump_colors.
11408 (x_free_colors): Don't treat b&w specially on default visual.
11409 (x_free_dpy_colors): New function.
11410 (free_face_colors): Don't check visual class; it's done
11411 in x_free_colors.
11412
11413 * xterm.c (x_frame_of_widget): New function.
11414 (x_alloc_nearest_color_for_widget): Use it.
11415 (x_copy_dpy_color): New function.
11416 (x_destroy_window): Free various colors.
11417
11418 2000-06-12 Kenichi Handa <handa@etl.go.jp>
11419
11420 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11421
11422 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11423
11424 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11425
11426 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11427
11428 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11429
11430 2000-06-11 Dave Love <fx@gnu.org>
11431
11432 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11433
11434 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11435
11436 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11437
11438 2000-06-11 Gerd Moellmann <gerd@gnu.org>
11439
11440 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
11441 to `XEvent *'.
11442
11443 2000-06-10 Kenichi Handa <handa@etl.go.jp>
11444
11445 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11446 (regex_compile): Fix the code for handling the case of single byte
11447 char and multibyte char being mixed in a range within [...].
11448
11449 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11450 and dst_multibyte members of coding.
11451
11452 * charset.c (update_charset_table): Update the table
11453 bytes_by_char_head.
11454 (init_charset_once): Initialize elements of bytes_by_char_head to
11455 1 except for leading codes for private charases.
11456
11457 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
11458 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
11459
11460 2000-06-09 Ken Raeburn <raeburn@gnu.org>
11461
11462 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11463 access the data it doesn't point to.
11464
11465 2000-06-08 Gerd Moellmann <gerd@gnu.org>
11466
11467 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
11468 will be translated to a switch-frame event when reading the
11469 event queue. This is necessary because Emacs otherwise won't
11470 perform a switch-frame to a new frame until some other event, for
11471 example a keystroke event, forces it to do so. This has various
11472 effects, one visible being that the cursor of a frame created with
11473 C-x 5 2 or switched to with a window manager key binding like
11474 A-TAB stays hollow because selected_window isn't on the newly
11475 focused frame until the switch-frame is performed.
11476
11477 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11478 generating a switch-frame event if necessary.
11479
11480 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11481
11482 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11483 it's an integer.
11484
11485 2000-06-08 Kenichi Handa <handa@etl.go.jp>
11486
11487 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
11488
11489 2000-06-07 Gerd Moellmann <gerd@gnu.org>
11490
11491 * window.c (displayed_window_lines): Take empty lines at
11492 the bottom of a window into account.
11493
11494 * window.c (displayed_window_lines): New function.
11495 (Fmove_to_window_line): Use displayed_window_lines to determine
11496 the number of lines to move, instead of using the window's height.
11497
11498 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11499 to stop reading, even if the form read sets point to a different
11500 value when evaluated.
11501
11502 * xdisp.c (display_line): Fix code deciding in which line to
11503 put the cursor.
11504
11505 2000-06-07 Kenichi Handa <handa@etl.go.jp>
11506
11507 * fileio.c (e_write): Free composition data if stored in
11508 coding->cmp_data.
11509
11510 2000-06-06 Gerd Moellmann <gerd@gnu.org>
11511
11512 * xdisp.c (display_line): Set row's and iterator's
11513 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11514 Set cursor even if row ends in the middle of a character.
11515 (dump_glyph_row): Print values of new flags.
11516 (redisplay_window) <cursor movement in unchanged window>: When
11517 point has been moved forward, and PT is at the end of the cursor
11518 row, don't place the cursor in the next row if the cursor row ends
11519 in the middle of a character or at ZV.
11520
11521 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11522 (struct glyph_row): Add starts_in_middle_of_char_p and
11523 ends_in_middle_of_char_p.
11524 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11525 ends_in_middle_of_char_p flag.
11526 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11527
11528 * term.c (append_glyph): Revert change of 2000-06-06.
11529
11530 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11531 padding glyph not fitting on line as whole character not
11532 fitting on line.
11533
11534 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11535 this isn't true for images with `:ascent 100'.
11536
11537 2000-06-06 Kenichi Handa <handa@etl.go.jp>
11538
11539 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11540 as modified if it is originally unmodified.
11541
11542 * term.c (encode_terminal_code): Change the way to check if
11543 terminal coding does any conversion.
11544 (append_glyph): Set glyph->pixel_width correctly.
11545
11546 * xdisp.c (display_line): While checking line continuation, pay
11547 attention to a padding glyph.
11548
11549 2000-06-05 Gerd Moellmann <gerd@gnu.org>
11550
11551 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11552
11553 2000-06-05 Dave Love <fx@gnu.org>
11554
11555 * xdisp.c: Include fontset.h.
11556
11557 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11558
11559 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11560
11561 * dispnew.c: Conditionally include term.h.
11562
11563 * coding.h: Declare code_convert_string_norecord.
11564
11565 * frame.h (struct frame): Use volatile unconditionally.
11566
11567 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11568
11569 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11570
11571 * systime.h: Protect against multiple inclusion.
11572 (timezone) [USG5_4]: Define as time_t.
11573
11574 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11575 (Foptimize_char_table, make_temp_name): Declare.
11576
11577 * Makefile.in (xdisp.o): Depend on fontset.h.
11578
11579 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11580
11581 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11582 (Foptimize_char_table, make_temp_name): Declare.
11583
11584 * s/irix4-0.h:
11585 * s/irix5-0.h:
11586 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11587
11588 2000-06-02 Dave Love <fx@gnu.org>
11589
11590 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11591
11592 2000-06-02 Gerd Moellmann <gerd@gnu.org>
11593
11594 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
11595 result face, set flags in that face indicating that colors may not
11596 be freed.
11597
11598 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11599 glyph, use the ASCII NUL character to determine the face.
11600
11601 2000-06-02 Dave Love <fx@gnu.org>
11602
11603 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11604 (VFORK_RETURN_TYPE): Remove.
11605
11606 * config.in: Add NO_MATHERR.
11607
11608 2000-06-01 Dave Love <fx@gnu.org>
11609
11610 * cmds.c (internal_self_insert): Don't check
11611 Vbefore_change_function, Vafter_change_function.
11612
11613 * insdel.c (signal_before_change, signal_after_change): Likewise.
11614
11615 * buffer.c (Vbefore_change_function, Vafter_change_function):
11616 Variables and their initializations deleted.
11617
11618 * callint.c (Fcall_interactively): Doc fix.
11619
11620 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11621
11622 2000-05-31 Dave Love <fx@gnu.org>
11623
11624 * textprop.c: Revert last change -- duplicated.
11625
11626 2000-05-31 Gerd Moellmann <gerd@gnu.org>
11627
11628 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11629 in #if 0.
11630
11631 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11632
11633 2000-05-31 Jason Rumney <jasonr@gnu.org>
11634
11635 * search.c (Fre_search_forward, Fre_search_backward)
11636 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11637
11638 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11639
11640 2000-05-30 Jason Rumney <jasonr@gnu.org>
11641
11642 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11643 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11644
11645 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
11646
11647 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11648 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11649 expand a nil default_filename.
11650
11651 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11652 pointer to glyph_to_pixel_coords, not a frame.
11653
11654 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11655 coding.h to dependencies.
11656
11657 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11658
11659 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11660 window pointer to be consistent with w32term.c and xterm.c.
11661
11662 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11663 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11664 (Qline_spacing, Qcenter): New variables.
11665 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11666 (x_set_line_spacing): New function.
11667 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
11668 (x_specified_cursor_type): New function.
11669 (x_set_cursor_type): Use it.
11670 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11671 and icon strings.
11672 (validate_x_resource_name, x_get_resource_string): Measure lengths
11673 of external strings in bytes.
11674 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11675 GetTextExtentPoint32 with NULL title.
11676 (Fx_create_frame): Initialize Qline_spacing.
11677 (w32_load_system_font): Initialize font->double_byte_p.
11678 (x_to_w32_charset): Use Vw32_charset_info_alist.
11679 (Image, busy cursor, tooltip functions): Merged changes from
11680 xfns.c. Not yet functional on Windows.
11681
11682 * w32gui.h (W32FontStruct): Add double_byte_p member.
11683
11684 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11685 (emacs_button_translation): Use it.
11686 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11687 in `mask' to be set.
11688
11689 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11690 menu strings.
11691
11692 * w32term.c: Format and doc changes to bring closer to xterm.c.
11693 (w32_char_font_type): New enum.
11694 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11695 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11696 (w32_encode_char): New function.
11697 (x_encode_char): Removed.
11698 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11699 x_encode_char and w32_font_is_double_byte.
11700 (x_produce_image_glyph): Use image_ascent.
11701 (x_produce_glyphs): Use new version of w32_per_char_metric and
11702 handle NULL return value. Allow extra line spacing.
11703 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11704 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11705 w32_font_type member of glyph instead.
11706 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11707 (fast_find_position): Make sure not to consider rows not visible
11708 in the window.
11709 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11710 w32_menu_display_help with input blocked, as it can abort.
11711 (x_display_and_set_cursor): Choose cursor depending
11712 on buffer-local value of cursor_type.
11713 (x_draw_bar_cursor): Add parameter WIDTH.
11714
11715 * w32term.h (CP_DEFAULT): Define.
11716 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11717
11718 2000-05-30 Gerd Moellmann <gerd@gnu.org>
11719
11720 * search.c (Fre_search_forward, Fre_search_backward)
11721 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11722
11723 2000-05-30 Kenichi Handa <handa@etl.go.jp>
11724
11725 * coding.c (detect_coding_iso2022): Fix code for checking
11726 CODING_CATEGORY_MASK_ISO_8_2.
11727
11728 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11729
11730 * regex.c (PREFETCH_NOLIMIT): New function.
11731 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11732
11733 2000-05-29 Gerd Moellmann <gerd@gnu.org>
11734
11735 * syntax.c (find_defun_start): Move test for
11736 open_paren_in_column_0_is_defun_start outside of the loop.
11737
11738 * xdisp.c (redisplay_window): Really switch buffers when
11739 displaying mode lines, and temporarily set selected_frame to the
11740 frame of the window that's redisplayed.
11741
11742 * xfaces.c (free_realized_faces): Block/unblock input.
11743 (free_realized_multibyte_face): Ditto.
11744
11745 2000-05-29 Dave Love <fx@gnu.org>
11746
11747 * textprop.c (Qkeymap): New variable.
11748 (syms_of_textprop): Intern it.
11749
11750 * keymap.c: Include intervals.h.
11751 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11752
11753 * Makefile.in (keymap.o): Depend on intervals.h.
11754
11755 * keyboard.c (menu_bar_items, tool_bar_items)
11756 (Fexecute_extended_command): Deal with `keymap' property.
11757 (read_key_sequence): Track map from `keymap' property as well as
11758 `local_map'.
11759
11760 * intervals.c (get_local_map): Extra arg to allow looking for
11761 `keymap' too.
11762
11763 * intervals.h (map_property): New enum.
11764 (get_local_map): Extra arg using it.
11765 (Qkeymap): Declare.
11766
11767 * lisp.h (get_local_map): Don't declare here.
11768
11769 2000-05-29 Kenichi Handa <handa@etl.go.jp>
11770
11771 * Makefile.in (callproc.o): Depend on composite.h.
11772
11773 * callproc.c: Include composite.h.
11774 (Fcall_process): Handle composition correctly.
11775
11776 * coding.h (coding_allocate_composition_data): Extern it.
11777 (coding_restore_composition): Likewise.
11778
11779 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11780 yet allocated, finish decoding with result
11781 CODING_FINISH_INSUFFICIENT_CMP.
11782 (coding_allocate_composition_data): Make it non-static.
11783 (coding_restore_composition): Likewise.
11784
11785 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11786
11787 * charset.c (syms_of_charset): Revert last change.
11788
11789 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11790
11791 * term.c (produce_glyphs): Treat characters from the eight-bit-*
11792 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11793 Handa.
11794
11795 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11796
11797 * charset.c (syms_of_charset): Set width of character sets
11798 eight-bit-control and eight-bit-graphic to 1 column.
11799
11800 2000-05-26 Gerd Moellmann <gerd@gnu.org>
11801
11802 * config.in (HAVE_SPEED_T): New define.
11803
11804 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11805 `extern speed_t'.
11806
11807 2000-05-26 Dave Love <fx@gnu.org>
11808
11809 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11810
11811 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11812 (Fsubr_arity): New function.
11813 (syms_of_data): Install them.
11814
11815 2000-05-26 Kenichi Handa <handa@etl.go.jp>
11816
11817 * charset.c (init_charset_once): Set the table bytes_by_char_head
11818 correctly.
11819
11820 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11821 the default fontset to what Emacs uses by default.
11822 (check_registry_encoding): This function deleted.
11823 (Fset_fontset_font): Remove the adhoc condition for the default
11824 fontset. Allow cons in FONTNAME.
11825
11826 * fns.c (map_char_table): Ignore char-table entries for
11827 charsets eight-bit-control and eight-bit-graphic.
11828
11829 2000-05-25 Ken Raeburn <raeburn@gnu.org>
11830
11831 * emacs.c (main): Initialize keyboard syms before initializing
11832 window code, so face names are available.
11833
11834 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11835
11836 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11837 of an anchor at the beginning of a shy-group.
11838
11839 2000-05-25 Gerd Moellmann <gerd@gnu.org>
11840
11841 * xdisp.c (handle_invisible_prop): Don't try to skip over
11842 invisible text if end of text is already reached.
11843
11844 2000-05-25 Dave Love <fx@gnu.org>
11845
11846 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11847
11848 * coding.c (encode_eol): Add null statement after label.
11849
11850 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11851
11852 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11853 2000-05-20.
11854
11855 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11856
11857 * ccl.c (ccl_driver): Fix previous change.
11858
11859 2000-05-25 Kenichi Handa <handa@etl.go.jp>
11860
11861 * coding.c (run_pre_post_conversion_on_str): Set point to the
11862 beginning of buffer before calling coding->post_read_conversion.
11863 (decode_coding_string): Give correct args to
11864 run_pre_post_conversion_on_str.
11865 (encode_coding_string): Likewise.
11866
11867 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11868 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11869 eight-bit-graphic correctly.
11870
11871 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
11872
11873 * fileio.c (Finsert_file_contents): Even if a file is not found,
11874 execute codes for setting up coding system. Call
11875 after-insert-file-functions unconditionally.
11876
11877 2000-05-24 Gerd Moellmann <gerd@gnu.org>
11878
11879 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11880 BSD_PGRPS are not defined.
11881
11882 2000-05-24 Kenichi Handa <handa@etl.go.jp>
11883
11884 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11885 DESCRIPTION.
11886 (syms_of_charset): Avoid building same strings.
11887
11888 2000-05-23 Gerd Moellmann <gerd@gnu.org>
11889
11890 * lread.c (Fload): Add a comment about the meaning of
11891 Vuser_init_file being t.
11892
11893 * puresize.h (BASE_PURESIZE): Increase to 675000.
11894
11895 * s/gnu-linux.h (setpgrp): Don't define it here because this
11896 prevents compilation on GNU/Linux systems with glib 2.2.
11897
11898 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11899 as setpgid.
11900
11901 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11902
11903 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11904 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11905 version.
11906 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11907
11908 2000-05-23 Kenichi Handa <handa@etl.go.jp>
11909
11910 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11911
11912 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11913
11914 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
11915
11916 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11917
11918 2000-05-22 Kenichi Handa <handa@etl.go.jp>
11919
11920 * keyboard.c (read_char): Allow character codes 128..255 to be
11921 handled by input-method-function.
11922
11923 * insdel.c (adjust_markers_for_replace): Fix previous change.
11924 (adjust_after_replace): If PREV_TEXT is nil, call
11925 adjust_markers_for_insert, not adjust_markers_for_replace.
11926
11927 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
11928
11929 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11930 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11931 [HAVE_GRANDPT]: Define.
11932 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11933
11934 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11935 like SYSV_PTYS.
11936
11937 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11938
11939 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11940
11941 2000-05-20 Kenichi Handa <handa@etl.go.jp>
11942
11943 The following changes are to handle 8-bit characters in a
11944 multibyte buffer/string without facing with byte combining
11945 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11946 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11947
11948 * Makefile.in (fns.o): Depend on charset.h.
11949
11950 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11951 convert it to unibyte.
11952 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11953
11954 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11955 apparent char boundary.
11956 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11957 0x80..0x9F to/from multibyte form.
11958
11959 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11960 to unibyte.
11961
11962 * callproc.c (Fcall_process): Always encode an argument string if
11963 it is multibyte. Setup src_multibyte and dst_multibyte members of
11964 process_coding properly.
11965
11966 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11967 SPLIT_NON_ASCII_CHAR.
11968
11969 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11970 as is.
11971 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11972
11973 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
11974 (SPLIT_CHARACTER_SEQ): This macro deleted.
11975 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
11976 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11977 and eight-bit-graphic.
11978 (char_to_string): Likewise. Signal an error for too large
11979 character code.
11980 (char_printable_p): Return 0 for 8-bit characters.
11981 (update_charset_table): Update iso_charset_table only when a final
11982 character is non-negative.
11983 (find_charset_in_text): Renamed from find_charset_in_str.
11984 Arguments and return value changed. Callers changed.
11985 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11986 be -1 if CHARSET is used only internally.
11987 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11988 eight-bit-graphic.
11989 (Fcharset_after): Simplified.
11990 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11991 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11992 (multibyte_chars_in_text): Simplified by assuming there's no
11993 invalid multibyte sequence.
11994 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11995 (str_as_unibyte): New functions.
11996 (Fstring): Simpified by assuming that byte combining never happens.
11997 (init_charset_once): Initialization for
11998 LEADING_CODE_8_BIT_CONTROL.
11999 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12000 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12001 eight-bit-control and eight-bit-graphic.
12002
12003 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12004 (CHARSET_8_BIT_GRAPHIC): New macros.
12005 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12006 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12007 (CHARSET_REVERSE_CHARSET): Likewise.
12008 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12009 eight-bit-graphic.
12010 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12011 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12012 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12013 encounter an invalid multibyte sequence.
12014 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12015 sequence is always valid.
12016 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12017 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12018 (CHAR_STRING): For 8-bit characters, call char_to_string.
12019 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12020 multibyte sequence is always valid.
12021 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12022 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12023 (str_as_unibyte): Extern them.
12024 (BCOPY_SHORT): Fix a bug.
12025 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12026 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12027 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12028 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12029
12030 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12031 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12032 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12033 (EMIT_BYTES): New macros.
12034 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12035 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12036 macros deleted.
12037 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12038 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12039 check the validity of multibyte sequence.
12040 (decode_coding_emacs_mule): New function.
12041 (encode_coding_emacs_mule): New macro.
12042 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12043 the source.
12044 (DECODE_ISO_CHARACTER): Just return a character code.
12045 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12046 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12047 EMIT_CHAR to produced decoded characters. Exit the loop only by
12048 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12049 block here.
12050 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12051 only position codes for an invalid character.
12052 (encode_designation_at_bol): Return new destination pointer. 5th
12053 arg DSTP is changed to DST.
12054 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12055 from the source by ONE_MORE_CHAR. Don't handle the case of last
12056 block here.
12057 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12058 macros deleted.
12059 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12060 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12061 TWO_MORE_BYTES to fetch a byte from the source.
12062 (encode_eol): Pay attention to coding->src_multibyte.
12063 (detect_coding, detect_eol): Preserve members src_multibyte and
12064 dst_multibyte.
12065 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12066 (encoding_buffer_size): Set magnification to 3 for all coding
12067 systems that require encoding.
12068 (ccl_coding_driver): For decoding, be sure that the result is
12069 valid multibyte sequence.
12070 (decode_coding): Initialize coding->errors and coding->result.
12071 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12072 and raw-text, always call decode_eol. Handle the case of last
12073 block here. If not coding->dst_multibyte, convert the resulting
12074 sequence to unibyte.
12075 (encode_coding): Initialize coding->errors and coding->result.
12076 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12077 and raw-text, always call encode_eol. Handle the case of last
12078 block here.
12079 (shrink_decoding_region, shrink_encoding_region): Detect cases
12080 that we can't skip data more rigidly.
12081 (code_convert_region): Setup src_multibyte and dst_multibyte
12082 members of coding. For decoding, if the buffer is multibyte,
12083 convert the source sequence to unibyte in advance. For encoding,
12084 if the buffer is multibyte, convert the resulting sequence to
12085 multibyte afterward.
12086 (run_pre_post_conversion_on_str): New function.
12087 (code_convert_string): Deleted and divided into the following two.
12088 (decode_coding_string, encode_coding_string): New functions.
12089 (code_convert_string1, code_convert_string_norecord): Call one of
12090 above.
12091 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12092 MAKE_NON_ASCII_CHAR.
12093 (Fset_terminal_coding_system_internal)
12094 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12095 and dst_multibyte members.
12096 (init_coding_once): Initialize iso_code_class with new enum
12097 ISO_control_0 and ISO_control_1.
12098
12099 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12100 devided into ISO_control_0 and ISO_control_1.
12101 (struct coding_system): New members src_multibyte, dst_multibyte,
12102 errors, and result. Delete member fake_multibyte.
12103 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12104 nonzero.
12105 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12106 nonzero.
12107
12108 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12109 (Faset): Likewise.
12110
12111 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12112 multibyte form.
12113 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12114 combining occurs.
12115 (Ftranspose_region): Delete codes for handling byte combining.
12116
12117 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12118 dst_multibyte members of coding. On handling REPLACE on unibyte
12119 buffer, convert the result of decode_coding to unibyte. On
12120 inserting into a mutibyte buffer, always call code_convert_region.
12121 (e_write): Setup coding->src_multibyte according to the
12122 multibyteness of the source (buffer or string).
12123
12124 * fns.c (concat): Handle 8-bit characters correctly.
12125 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12126 unibyte in the result.
12127 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12128 valid multibyte form in the result.
12129 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12130 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12131 return -1, signal an error.
12132 (base64_encode_1): New arg MULTIBYTE. Get each character by
12133 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12134 character is found, return -1.
12135 (Fbase64_decode_region): Delete codes for handling byte-combining.
12136 Treat each decoded byte as a unibyte character.
12137 (Fbase64_decode_string): Return unibyte string.
12138 (Fcompare_strings, concat, string_byte_to_char): Use
12139 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12140 FETCH_STRING_CHAR_ADVANCE.
12141 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12142 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12143
12144 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12145 SPLIT_NON_ASCII_CHAR.
12146 (fontset_ref_via_base, fontset_set): Likewise
12147
12148 * insdel.c (adjust_markers_for_record_delete): Deleted.
12149 (adjust_markers_for_insert): Argument changed. Caller changed.
12150 (adjust_markers_for_replace): Likewise.
12151 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12152 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
12153 (copy_text): Delete unused local varialbe c_save. For converting
12154 to multibyte, be sure to make all 8-bit characters in valid
12155 multibyte form.
12156 (count_size_as_multibyte): Handle 8-bit characters correctly.
12157 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12158 (adjust_after_replace, replace_range, del_range_2)
12159 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
12160 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12161 (adjust_after_replace, replace_range, del_range_2) Delete codes for
12162 handling byte combining.
12163 (adjust_before_replace): Deleted.
12164
12165 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
12166 SPLIT_NON_ASCII_CHAR.
12167 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12168 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12169 (Fkey_description): Likewise.
12170
12171 * lread.c (read1): On reading multibyte string, be sure to make
12172 all 8-bit chararacters in valid multibyte form.
12173 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12174
12175 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
12176 unconditionally.
12177
12178 * process.c (Fstart_process): GCPRO current_dir before calling
12179 Ffind_operation_coding_system. Encode arguments here.
12180 (create_process): Don't encode arguments here. Setup
12181 src_multibyte and dst_multibyte members of struct coding.
12182 (read_process_output): Setup src_multibyte and dst_multibyte
12183 members of struct coding. If the output is to multibyte buffer,
12184 always decode the output of the process. Adjust the
12185 representation of 8-bit characters to the multibyteness of the output.
12186 (send_process): Setup coding->src_multibyte according to the
12187 multibyteness of the source.
12188
12189 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12190 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
12191 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
12192
12193 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
12194
12195 * w16select.c (Fw16_set_clipboard_data): Setup members
12196 src_multibyte and dst_multibyte of coding. Adjusted for the
12197 change for find_charset_in_str.
12198 (Fw16_get_clipboard_data): Likewise.
12199
12200 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
12201 dst_multibyte of coding.
12202 (x_to_w32_font): Likewise.
12203
12204 * w32select.c (Fw32_set_clipboard_data): Setup members
12205 src_multibyte and dst_multibyte of coding. Adjusted for the
12206 change for find_charset_in_str.
12207 (Fw32_get_clipboard_data): Likewise.
12208
12209 * xdisp.c (get_next_display_element): Handle 8-bit characters
12210 correctly.
12211 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
12212 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12213
12214 * xselect.c (selection_data_to_lisp_data): Setup members
12215 src_multibyte and dst_multibyte of coding. Adjusted for the
12216 change for find_charset_in_str.
12217 (lisp_data_to_selection_data): Likewise.
12218
12219 2000-05-19 Gerd Moellmann <gerd@gnu.org>
12220
12221 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
12222
12223 * dispextern.h (Vimage_types): Add extern declaration.
12224
12225 * xdisp.c (Vimage_types): Moved here from xfns.c.
12226 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
12227
12228 * xfns.c (Vimages_types): Moved to xdisp.c.
12229 (syms_of_xfns): Move `image-types' to xdisp.c.
12230
12231 * w32fns.c (Vimage_types): Removed.
12232 (syms_of_w32fns): Remove `image-types'.
12233
12234 2000-05-18 Kenichi Handa <handa@etl.go.jp>
12235
12236 * fns.c (map_char_table): Pay attention to character number of
12237 charset. Check the validity of charset at the first level. For
12238 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
12239 the default value.
12240
12241 * fontset.c: Include "buffer.h".
12242 (fs_load_font): If the face has fontset, record the face ID in
12243 that fontset.
12244 (Finternal_char_font): New function.
12245 (accumulate_font_info): New function.
12246 (Ffontset_info): Rewritten for the new fontset implementation.
12247 (syms_of_fontset): Register Vdefault_fontset in the first element
12248 of Vfontset_table. Include Vdefault_fontset in
12249 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12250 function.
12251
12252 2000-05-16 Dave Love <fx@gnu.org>
12253
12254 * m/iris5d.h: Deleted -- unused.
12255
12256 2000-05-16 Gerd Moellmann <gerd@gnu.org>
12257
12258 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12259 `invalid' instead of `illegal'.
12260
12261 * indent.c (Fmove_to_column): When ending within a tab, insert
12262 spaces first so that markers at the end of the tab get adjusted.
12263
12264 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12265 buffer list that wasn't selected in that frame.
12266
12267 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12268 is needed on mescaline, use a 2 char prefix, and call
12269 make_temp_name with second arg non-zero.
12270
12271 * fileio.c (make_temp_name): New function, extracted from
12272 Fmake_temp_name.
12273 (Fmake_temp_name): Use it.
12274
12275 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12276
12277 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
12278
12279 2000-05-15 Gerd Moellmann <gerd@gnu.org>
12280
12281 * Makefile.in (lisp): Add env.elc.
12282
12283 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12284
12285 2000-05-12 Gerd Moellmann <gerd@gnu.org>
12286
12287 * search.c (Freplace_match): Handle case of `\N' in the
12288 replacement when there's no group N.
12289
12290 2000-05-11 Gerd Moellmann <gerd@gnu.org>
12291
12292 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12293 of the message to message_dolog.
12294
12295 * keyboard.c (read_char): Don't clear current message for help
12296 events; let the code handling help events handle this. Change
12297 code detecting help events that should be ignored.
12298
12299 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12300 we're interating over a string.
12301
12302 2000-05-09 Dave Love <fx@gnu.org>
12303
12304 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12305 that offset before writing. Move gcpro region past call of
12306 Ffile_regular_p.
12307
12308 2000-05-04 Dave Love <fx@gnu.org>
12309
12310 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12311
12312 2000-05-04 Gerd Moellmann <gerd@gnu.org>
12313
12314 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12315 of inserted characters when BUF equals the current buffer, and PT
12316 is in front of or equal to FROM.
12317
12318 2000-05-03 Gerd Moellmann <gerd@gnu.org>
12319
12320 * xdisp.c (handle_single_display_prop): If display property value
12321 is invalid, or something not supported on the frame, restore
12322 iterator's position to what it was initially. Make sure to return
12323 0 for invalid and unsupported property values.
12324
12325 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12326 that x_per_char_metric returns null.
12327
12328 2000-05-02 Gerd Moellmann <gerd@gnu.org>
12329
12330 * xterm.h (struct face): Add forward declaration.
12331 (struct image): Ditto.
12332 (image_ascent): Add prototype.
12333
12334 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12335 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12336 image_ascent instead of using IMAGE_ASCENT.
12337
12338 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12339 (IMAGE_ASCENT): Removed.
12340
12341 * xfns.c (Qcenter): New variable.
12342 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12343 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12344 (image_ascent): New function.
12345 (lookup_image): Recognize `:ascent center'.
12346 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12347 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12348 (xbm_load): Don't set image's ascent here.
12349 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12350 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12351 check ascent values here.
12352 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12353 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12354 (syms_of_xfns): Initialize Qcenter.
12355
12356 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12357 to the limits, increase the limits.
12358
12359 2000-05-01 Kenichi Handa <handa@etl.go.jp>
12360
12361 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
12362 Check Vfont_encoding_alist against the full name of the opened font.
12363
12364 2000-04-28 Gerd Moellmann <gerd@gnu.org>
12365
12366 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12367 taller than the window.
12368
12369 2000-04-28 Kenichi Handa <handa@etl.go.jp>
12370
12371 * xfaces.c (realize_x_face): Fix the argument of the second
12372 xassert. BASE_FACE may not be a face for ASCII.
12373
12374 2000-04-27 Gerd Moellmann <gerd@gnu.org>
12375
12376 * print.c (print_object): Treat print-length < 0 as nil.
12377
12378 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12379
12380 * s/freebsd.h (TERMCAP_OBJ): Removed.
12381 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12382
12383 * lread.c (read1): Don't treat period followed by certain
12384 characters as symbol start.
12385
12386 * xfns.c (slurp_file): New function.
12387 (xbm_image_p): Handle case of in-memory XBM files.
12388 (xbm_scan): Rewritten to work on memory buffers instead of files.
12389 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12390 Work on memory buffers instead of files. If DATA is null test
12391 if buffer looks like an in-memory XBM file.
12392 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12393 memory buffers instead of files.
12394 (xbm_file_p): New function.
12395 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12396
12397 * lread.c (end_of_file_error): New function.
12398 (read1): Call it instead of signaling `end-of-file' directly.
12399
12400 * print.c (print_error_message): Print data of `end-of-file'
12401 with Fprinc instead of Fprin1.
12402
12403 2000-04-26 Ken Raeburn <raeburn@gnu.org>
12404
12405 * window.c (freeze_window_start): Check that minibuffer scroll
12406 window isn't nil before extracting the window structure pointer
12407 from it.
12408
12409 * undo.c (record_delete): If we hit the end of the undo list, stop
12410 picking elements apart.
12411
12412 2000-04-26 Gerd Moellmann <gerd@gnu.org>
12413
12414 * xdisp.c (display_line): If lines are continued, restore
12415 iterator's ascent/descent information to the values before the
12416 first glyph not fitting on the line.
12417
12418 2000-04-25 Gerd Moellmann <gerd@gnu.org>
12419
12420 * xdisp.c (try_window_id) <all changes above window start>: Adjust
12421 positions in glyph matrix. Don't compute new window end positions.
12422
12423 * dispnew.c (increment_matrix_positions): Renamed from
12424 increment_glyph_matrix_buffer_positions.
12425 (increment_row_positions): Renamed from
12426 increment_glyph_row_buffer_positions.
12427
12428 * dispextern.h: Change names of renamed functions from dispnew.c
12429 in prototypes.
12430
12431 2000-04-24 Gerd Moellmann <gerd@gnu.org>
12432
12433 * fileio.c (Fdo_auto_save): Create directories for auto-save
12434 list file if necessary.
12435
12436 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12437 from buffer or frame.
12438 (automatic_hscrolling_p): New variable.
12439 (hscroll_windows): Scroll windows horizontally only if automatic
12440 hscrolling is allowed.
12441 (syms_of_xdisp): New variable `automatic-hscrolling'.
12442
12443 * frame.h (struct frame): Add member extra_line_spacing.
12444
12445 * xfns.c (x_set_line_spacing): New function.
12446 (Fx_create_frame): Set line spacing from resources.
12447 (Qline_spacing): New variable.
12448 (syms_of_xfns): Initialize Qline_spacing.
12449
12450 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12451
12452 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12453 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
12454 (reset_buffer): Don't initialize extra2 and extra3. Initialize
12455 extra_line_spacing from default value.
12456 (init_buffer_once): Initialize default value of extra_line_spacing.
12457
12458 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12459 and extra3.
12460
12461 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12462 prompt_width. Add extra line spacing.
12463
12464 * term.c (produce_glyphs): Remove reference to struct it's
12465 prompt_width.
12466
12467 * dispextern.h (struct it): Remove member prompt_width, add
12468 extra_line_spacing.
12469
12470 2000-04-22 Gerd Moellmann <gerd@gnu.org>
12471
12472 * dispnew.c (update_frame_line): When writing a whole line, make
12473 sure cursor is in the right row afterwards, otherwise a use of
12474 capability `ch' in cmgoto might leave the cursor in the row below.
12475
12476 2000-04-21 Gerd Moellmann <gerd@gnu.org>
12477
12478 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12479
12480 * keyboard.c (timer_check): Fix typo in comment.
12481
12482 2000-04-21 Kenichi Handa <handa@etl.go.jp>
12483
12484 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12485 name change: ch -> character.
12486
12487 2000-04-20 Gerd Moellmann <gerd@gnu.org>
12488
12489 * keyboard.c (echo_message_buffer): New variable.
12490 (echo_now): Set echo_message_buffer to the echo area buffer used
12491 to display the echo.
12492 (cancel_echoing): Reset echo_message_buffer to nil.
12493 (read_char): Code rewritten that handles canceling an echo or
12494 echoing a dash, respectively.
12495
12496 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12497 directory doesn't exist.
12498
12499 2000-04-19 Dave Love <fx@gnu.org>
12500
12501 * fns.c (syms_of_fns): Defsubr mapc.
12502 (concat): Don't allow numeric args.
12503 (Fconcat): Doc change.
12504
12505 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12506
12507 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12508 instead define end_match(1|2) more carefully.
12509 Use GET_CHAR_BEFORE_2 for `begline'.
12510
12511 2000-04-19 Gerd Moellmann <gerd@gnu.org>
12512
12513 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12514 on 64-bit systems where NULL is defined as `0'.
12515
12516 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12517 the `variable argument list' to make it work on Alpha.
12518
12519 * m/alpha.h (_LP64) [!_LP64]: Define.
12520 (ORDINARY_LINK): Define for NetBSD.
12521
12522 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
12523
12524 2000-04-19 Dave Love <fx@gnu.org>
12525
12526 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12527 change.
12528
12529 * Makefile.in (LIBS): Don't use.
12530 (GETLOADAVG_OBJ): Define again.
12531 (otherobj): Add GETLOADAVG_OBJ.
12532
12533 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12534
12535 2000-04-18 Gerd Moellmann <gerd@gnu.org>
12536
12537 * lread.c (read_filtered_event): Cancel and start busy cursor.
12538
12539 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
12540 that the per-character metrics may be null.
12541
12542 2000-04-17 Gerd Moellmann <gerd@gnu.org>
12543
12544 * buffer.c (clone_per_buffer_values): New function.
12545 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12546 clone_per_buffer_values if CLONE is not nil.
12547
12548 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12549
12550 2000-04-16 Dave Love <fx@gnu.org>
12551
12552 * Makefile.in: Remove obsolete localcpp stuff.
12553 (GETLOADAVG_OBJ): Don't define.
12554 (obj): Move LIBOBJS...
12555 (otherobj): ... to here.
12556 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12557 whitespace-only lines after the continuation (Irix).
12558
12559 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12560
12561 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12562
12563 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12564
12565 2000-04-14 Dave Love <fx@gnu.org>
12566
12567 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12568 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12569 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12570 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12571 NLIST_STRUCT.
12572
12573 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12574 autoconfiscated HAVE_GETLOADAVG.
12575
12576 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12577 BROKEN_MKTIME.
12578
12579 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12580
12581 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
12582 (fill_in_lock_file_name): Avoid existing files that aren't links.
12583
12584 2000-04-14 Dave Love <fx@gnu.org>
12585
12586 * Makefile.in (LIBS, LIBOBJS): New variable.
12587 (INTERVAL_SRC): Convert to make variable.
12588 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12589 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12590 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12591 add LIBOBJS.
12592 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12593 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12594 (shortlisp): Add facemenu, float-sup, frame.
12595 (SOME_MACHINE_LISP): Remove them from here.
12596 (LIBES): Change unused LDLIBS to autoconf LIBS.
12597
12598 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12599
12600 2000-04-14 Kenichi Handa <handa@etl.go.jp>
12601
12602 * composite.c (update_compositions): If FROM and TO are not in a
12603 valid range, do nothing.
12604
12605 2000-04-13 Gerd Moellmann <gerd@gnu.org>
12606
12607 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
12608
12609 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
12610
12611 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12612 as TERMCAP_OBJ.
12613
12614 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12615
12616 * fileio.c (a_write): Remove redundant semi-colons.
12617 (e_write): Return -1 if failed to write all the data.
12618 This fixes the changes made at 1999-12-15.
12619
12620 2000-04-12 Dave Love <fx@gnu.org>
12621
12622 * fns.c (mapcar1): Test for null vals to support mapc.
12623 (Fmapc): New function.
12624
12625 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12626
12627 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12628 (IT_frame_up_to_date): Support the buffer local value of
12629 cursor-type, if defined.
12630
12631 2000-04-10 Dave Love <fx@gnu.org>
12632
12633 * editfns.c (preceding-char, following-char): Doc fix.
12634
12635 2000-04-10 Ken Raeburn <raeburn@gnu.org>
12636
12637 * Makefile.in (temacs): Revert 2000-03-12 change.
12638
12639 2000-04-10 Jason Rumney <jasonr@gnu.org>
12640
12641 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12642
12643 2000-04-10 Gerd Moellmann <gerd@gnu.org>
12644
12645 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12646 area buffer, if it's not set up yet.
12647
12648 * indent.c (compute_motion): Set immediate_quit.
12649
12650 2000-04-09 Gerd Moellmann <gerd@gnu.org>
12651
12652 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
12653 (realize_tty_face): Suppress boldness if colors are the inverse of
12654 the default colors, and tty_suppress_bold_inverse_default_colors_p
12655 is set.
12656 (Ftty_suppress_bold_inverse_default_colors): New function.
12657 (syms_of_xfaces): Defsubr it.
12658
12659 * buffer.c (Frestore_buffer_modified_p): New function.
12660 (syms_of_buffer): Defsubr it.
12661
12662 2000-04-08 Ken Raeburn <raeburn@gnu.org>
12663
12664 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12665 charset id (int) argument, not a charset (Lisp_Object).
12666
12667 * coding.h (code_convert_string): Declare.
12668 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12669 object, as the fourth argument to code_convert_string.
12670
12671 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
12672 (Fset_fontset_font): Use EQ to compare lisp objects.
12673
12674 2000-04-05 Ken Raeburn <raeburn@gnu.org>
12675
12676 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12677 a pointer that looks like a lisp object.
12678 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12679 zero, instead see whether it's an integer object, since they can't
12680 have intervals.
12681 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12682
12683 * dispnew.c (allocate_matrices_for_frame_redisplay)
12684 (direct_output_forward_char): Use X(U)INT and make_number as needed
12685 to convert between (unsigned) int values and lisp integers.
12686 * keyboard.c (read_key_sequence): Likewise.
12687 * lread.c (substitute_object_recurse): Likewise.
12688 * fns.c (concat, hash_lookup, hash_remove): Likewise.
12689 * minibuf.c (do_completion, Fminibuffer_complete_word)
12690 (Fminibuffer_completion_help): Likewise.
12691 * term.c (produce_special_glyphs): Likewise.
12692
12693 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12694 * print.c (print_preprocess, print_object): Likewise.
12695
12696 * search.c (compile_pattern): Use NILP when checking for nil.
12697
12698 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12699 __OPTIMIZE__]: Provide a GNU C macro version that handles
12700 lisp-object unions.
12701 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12702 field, to better cope with ENABLE_CHECKING and calls that modify a
12703 Lisp_Object using its old value.
12704
12705 2000-04-04 Gerd Moellmann <gerd@gnu.org>
12706
12707 * window.c (compare_window_configurations): Signal an error
12708 if parameters C1 or C2 aren't window configurations.
12709
12710 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12711 AFTER_POTENTIAL_GC calls around calls to functions that can
12712 signal an error and thus invoke the debugger.
12713
12714 2000-04-03 Gerd Moellmann <gerd@gnu.org>
12715
12716 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12717 an error if decoding fails.
12718
12719 * keyboard.c (lispy_mouse_names): Variable removed.
12720 (Vlispy_mouse_stem): New variable.
12721 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12722 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12723 for any mouse button number. Increase size of mouse_syms and
12724 button_down_location as needed. Call modify_event_symbol with
12725 different arguments.
12726 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12727 Call modify_event_symbol with different arguments.
12728 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12729 for any button number. Call modify_event_symbol with different
12730 arguments.
12731 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12732 Accept a string for NAME_ALIST_OR_STEM.
12733
12734 * lisp.h (larger_vector): Add prototype.
12735
12736 * fns.c (larger_vector): Make externally visible.
12737
12738 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12739
12740 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12741
12742 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12743 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12744 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12745 we are between str1 and str2.
12746 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12747 (PATFETCH): Use `TRANSLATE'.
12748 (PATFETCH_RAW): Fetch multibyte char if applicable.
12749 (PATUNFETCH): Remove.
12750 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12751 When writing a char, write it directly into the pattern buffer rather
12752 than going needlessly through a temp char-array.
12753 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12754 multibyte magic and remove the useless `#ifdef emacs'.
12755 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12756 buffer.
12757
12758 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12759 conditional on `emacs'.
12760
12761 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12762
12763 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12764
12765 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12766 non-union-type versions of XMARK and friends here, because XMARK
12767 and friends won't work on an integer field if NO_UNION_TYPE is not
12768 defined.
12769 (make_number): Define as a function if it's not defined as a macro.
12770
12771 * composite.c (run_composite_function): Use NILP when checking for nil.
12772 (syms_of_composite): Delete local var NARGS, pass an int as first
12773 argument to Fmake_hash_table.
12774
12775 * editfns.c (text_property_stickiness): Use NILP to test
12776 Lisp_Object boolean value.
12777 (Fmessage_or_box): Don't use NILP to test int variable.
12778 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12779 problems reading from and changing the same lisp value in an
12780 XSETSTRING call.
12781
12782 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12783
12784 * term.c (TN_no_color_video): New variable.
12785 (term_init): Intitialize TN_no_color_video.
12786 (enum no_color_bit): New enumeration.
12787 (MAY_USE_WITH_COLORS_P): New macro.
12788 (turn_on_face): Use it to determine if attributes may be used
12789 combined with colors.
12790
12791 2000-04-01 Ken Raeburn <raeburn@gnu.org>
12792
12793 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
12794 with int lvalues via casts; instead, just yield lisp object lvalues.
12795 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12796 proper accessor macros.
12797 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12798 (grow_mini_window): Fix typo getting int value of root->height.
12799
12800 * xdisp.c (compute_string_pos): Fix order of arguments to
12801 string_pos_nchars_ahead.
12802 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12803 count arg to variable-arg routines like Frun_hook_with_args and
12804 Fformat.
12805 (back_to_previous_visible_line_start)
12806 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
12807 fixed-arg routines like Fget_char_property and Fmake_string.
12808 (reconsider_clip_changes): Use XINT when comparing integer lisp
12809 objects, or passing them as int arguments.
12810 (mark_window_display_accurate, insert_left_trunc_glyphs)
12811 (append_space, extend_face_to_end_of_line): Use make_number when
12812 storing or passing integer values as lisp objects.
12813 (set_cursor_from_row, highlight_trailing_whitespace): Use
12814 INTEGERP, not implicit test against zero, for glyph object.
12815 (try_window_id): Don't use make_number when we want an int value.
12816
12817 * xfaces.c (xlfd_symbolic_value): Make last argument a
12818 Lisp_Object, to be consistent with callers.
12819 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12820 (lface_hash): Apply XFASTINT to lisp values before folding in.
12821
12822 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12823 fill in window width and height. Pass an int, not a lisp object,
12824 as first arg to Finsert.
12825
12826 2000-04-01 Gerd Moellmann <gerd@gnu.org>
12827
12828 * xfaces.c (realize_basic_faces): Block input while realizing
12829 the faces.
12830
12831 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12832
12833 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12834
12835 2000-03-31 Gerd Moellmann <gerd@gnu.org>
12836
12837 * xterm.c (x_produce_glyphs): When displaying unibyte text
12838 or ASCII, handle case that per-char metric is null.
12839
12840 2000-03-30 Ken Raeburn <raeburn@gnu.org>
12841
12842 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12843
12844 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12845 (XSUBR, XBUFFER): Verify correct object type before returning
12846 pointer, using eassert.
12847 * frame.h (XFRAME): Likewise.
12848
12849 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12850 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12851 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
12852 * data.c (set_internal): Likewise.
12853 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12854 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
12855 * fileio.c (auto_save_1): Likewise.
12856 * insdel.c (check_markers): Likewise.
12857 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12858 * undo.c (record_insert): Likewise.
12859 * vmsproc.c (child_sig): Likewise.
12860 * window.c (unshow_buffer, window_loop): Likewise.
12861 * xterm.c (x_erase_phys_cursor): Likewise.
12862
12863 2000-03-30 Gerd Moellmann <gerd@gnu.org>
12864
12865 * xfns.c (free_image_cache): Free the cache structure itself
12866 last, after all its members have been freed.
12867
12868 * lisp.h (xstrdup): Add prototype.
12869
12870 * alloc.c (xstrdup): Moved here from xfaces.c.
12871 (allocating_for_lisp): Variable removed.
12872 (lisp_malloc): Block input around the calls to malloc and mem_insert.
12873
12874 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12875 of Fsymbol_value.
12876 (xstrdup): Moved to alloc.c.
12877
12878 2000-03-29 Ken Raeburn <raeburn@gnu.org>
12879
12880 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12881
12882 * emacs.c (main): Fix sense of no-loadup test.
12883
12884 * config.in (ENABLE_CHECKING): Undef.
12885
12886 * lisp.h (struct interval): Replace "parent" field with a union of
12887 interval pointer and Lisp_Object; add new bitfield to use as
12888 discriminant. Change other flag fields to bitfields.
12889 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
12890 is defined and the supplied test fails, print a message and abort.
12891 (eassert): New macro. Use CHECK to provide an assert-like facility.
12892
12893 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12894 pointers; abort if the value looks like a lisp object.
12895 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12896 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
12897 Modify for new interval parent definition.
12898
12899 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12900 (UNMARK_BALANCE_INTERVALS): Update references that need an
12901 addressable lisp object in the interval structure.
12902 (die): New function.
12903 (suppress_checking): New variable.
12904
12905 * intervals.c (interval_start_pos): Just return 0 if there's no
12906 parent object.
12907
12908 2000-03-29 Gerd Moellmann <gerd@gnu.org>
12909
12910 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12911 and earlier Emacs versions.
12912
12913 * keyboard.c (Ftop_level): Cancel busy-cursor.
12914
12915 * eval.c (call_debugger): Cancel busy-cursor.
12916
12917 2000-03-29 Kenichi Handa <handa@etl.go.jp>
12918
12919 * search.c (Freplace_match): Adjust multibyteness of the current
12920 buffer and NEWTEXT. Free allocated memory before signaling an error.
12921
12922 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12923
12924 * regex.c (analyse_first): New function obtained by ripping out most
12925 of re_compile_fastmap and generalizing it a little bit so that it
12926 can also just return whether a given (sub)pattern can match the empty
12927 string or not.
12928 (regex_compile): Use `analyse_first' to decide whether the loop-check
12929 needs to be done or not for *, +, *? and +? (the loop check is costly
12930 for non-greedy repetition).
12931 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12932
12933 2000-03-28 Dave Love <fx@gnu.org>
12934
12935 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
12936
12937 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12938
12939 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12940
12941 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12942 an expression.
12943 (enum re_opcode_t): Update description of succeed_n.
12944 (PATFETCH): Always define.
12945 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12946 operators, char classes, shy-groups and intervals).
12947 Optimize special cases of intervals so as to only use succeed_n and
12948 jump_n when really needed.
12949 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12950 that we don't have to handle the special cases any more.
12951 Simplify on_failure_jump handling as well.
12952
12953 2000-03-28 Jason Rumney <jasonr@gnu.org>
12954
12955 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12956
12957 2000-03-27 Gerd Moellmann <gerd@gnu.org>
12958
12959 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12960
12961 * s/msdos.h (GC_SETJMP_WORKS): Define.
12962
12963 * alloc.c (mark_maybe_object): New function.
12964 (mark_memory): Use it.
12965 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12966 (setjmp_tested_p, longjmp_done): New variables.
12967 (test_setjmp): New function.
12968 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12969 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12970
12971 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12972 to DEC_TEXT_POS and INC_TEXT_POS.
12973
12974 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12975 with parameter MULTIBYTE_P.
12976
12977 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
12978
12979 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
12980 buffers because it looks for multibyte character byte sequences
12981 which don't exist in unibyte text.
12982
12983 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12984
12985 * xfaces.c (register_color, unregister_color, unregister_colors)
12986 [DEBUG_X_COLORS]: New functions.
12987 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12988
12989 * xfns.c (x_set_cursor_color): Get color reference counts right.
12990
12991 * xterm.c (x_copy_color): New function.
12992 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12993
12994 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12995 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12996 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12997 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12998 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12999 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13000 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13001 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13002 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13003 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13004
13005 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13006 names for handling per-buffer variables.
13007
13008 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13009 instead of MAX_BUFFER_LOCAL_VARS.
13010 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13011
13012 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13013
13014 * xfns.c (x_specified_cursor_type): New function.
13015 (x_set_cursor_type): Use it.
13016
13017 * buffer.h (struct buffer): Add cursor_type.
13018
13019 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13020
13021 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13022 (print_partial_compiled_pattern, re_compile_fastmap):
13023 Handle new opcode.
13024 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13025 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13026 executing it as well as when popping it off the stack to find infinite
13027 loops in non-greedy repetition operators.
13028
13029 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13030
13031 * doc.c (Qfunction_documentation): New variable.
13032 (syms_of_doc): Initialize Qfunction_documentation.
13033 (Fdocumentation): If FUNCTION is a symbol with non-nil
13034 `function-documentation' property, return a documentation derived
13035 from that.
13036
13037 * buffer.c (syms_of_buffer): Add default-cursor-type.
13038 (init_buffer_once): Don't let cursor_type have a local value
13039 in every buffer.
13040
13041 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13042 on buffer-local value of cursor_type.
13043 (x_draw_bar_cursor): Add parameter WIDTH.
13044
13045 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13046 (init_buffer_once): Set default cursor_type value to t.
13047 Mark cursor_type as local everywhere.
13048 (syms_of_buffer): New per-buffer variable cursor-type.
13049
13050 * buffer.h (struct buffer): Remove member local_var_flags,
13051 add local_flags.
13052 (MAX_BUFFER_LOCAL_VARS): New macro.
13053 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13054 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13055 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13056 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13057
13058 * print.c (print_object): Use new macros for per-buffer variables.
13059
13060 * category.c (Fset_category_table): Use new macros for per-buffer
13061 variables.
13062
13063 * buffer.c (buffer_permanent_local_flags): Make a char array.
13064 (max_buffer_local_idx): New variable.
13065 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13066 for new handling of per-buffer variables.
13067 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13068 (init_buffer_once): Initialize per-buffer vars differently.
13069 Set max_buffer_local_idx.
13070
13071 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13072 variables.
13073
13074 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13075
13076 * data.c (do_symval_forwarding, store_symval_forwarding)
13077 (find_symbol_value, set_internal, default_value, Fset_default)
13078 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13079 per-buffer variables.
13080
13081 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13082
13083 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13084
13085 * xterm.c (x_term_init): Unblock input around call1 of
13086 Qvendor_specific_keysyms.
13087
13088 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13089 (find_defun_start): Consider an open parenthesis in column 0
13090 a defun start only if open_paren_in_column_0_is_defun_start is set.
13091 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13092
13093 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13094
13095 * eval.c (Fautoload): Add entry in load-history (if after dump).
13096 * lread.c (load-history): Update docstring.
13097
13098 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13099
13100 * indent.c (Fvertical_motion): Always use the current buffer.
13101 Temporarily change the window's buffer, if necessary.
13102
13103 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13104
13105 * xterm.c (fast_find_position): Make sure not to consider rows
13106 not visible in the window.
13107
13108 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13109
13110 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13111 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13112
13113 2000-03-22 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32menu.c (single_submenu): Set help string to NULL if none.
13116 (w32_menu_show): Set help string correctly.
13117 (add-menu-item): Set help string in MIIM_DATA for menu item.
13118 Load SetMenuItemInfoA explicitly.
13119 (w32_menu_display_help): New function.
13120
13121 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13122 (QCdata): Moved to xdisp.c.
13123
13124 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13125 (Vw32_charset_to_codepage_alist): Removed.
13126 (Vw32_charset_info_alist): New variable.
13127 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13128 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13129 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13130 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13131 with TODO comment.
13132 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13133 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13134 Define Vw32_charset_info_alist and w32_charset symbols.
13135
13136 2000-03-22 Jason Rumney <jasonr@gnu.org>
13137
13138 * makefile.nt (w32bdf.obj): Update dependencies.
13139
13140 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13141
13142 * w32fns.c: Include fontset.h after dispextern.h.
13143 (Fx_create_frame): Do not create fontset.
13144 (w32_load_system_font): Doc fix.
13145 (Fx_close_connection): Free full_name if it is not shared.
13146
13147 * w32term.c: Include fontset.h after dispextern.h.
13148 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13149 Callers updated.
13150 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13151 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13152 (w32_font_is_double_byte): New function, needs body.
13153 (x_append_glyph): Set glyph->glyph_not_available_p.
13154 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13155 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13156 character, convert it to a unibyte character.
13157 (struct glyph_string): Delete member `charset'.
13158 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
13159 calculating it is found.
13160 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13161 the case that per char metric is not available correctly.
13162 (x_fill_glyph_string): Handle the case that the specific glyph is
13163 not available correctly.
13164 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13165 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13166 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13167 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13168 fontset. Don't call FS_LOAD_FONT.
13169
13170 2000-03-22 Ken Raeburn <raeburn@gnu.org>
13171
13172 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
13173 (INT_LISPLIKE): New macro.
13174 (NULL_INTERVAL_P): Use it.
13175 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
13176 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
13177 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
13178
13179 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
13180 explicit references to "parent" field of struct interval and
13181 associated unclean type conversions.
13182 * intervals.c (create_root_interval, root_interval, rotate_right)
13183 (rotate_left, balance_possible_root_interval, split_interval_right)
13184 (split_interval_left, interval_start_pos, find_interval)
13185 (next_interval, previous_interval, update_interval)
13186 (adjust_intervals_for_insertion, delete_node, delete_interval)
13187 (adjust_intervals_for_deletion, merge_interval_right)
13188 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
13189 (copy_intervals_to_string): Likewise.
13190 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
13191 Likewise.
13192 * syntax.c (update_syntax_table): Likewise.
13193
13194 * intervals.c (reproduce_tree_obj): New function, like
13195 reproduce_tree but takes a Lisp_Object for the parent. Declare
13196 with prototype.
13197 (graft_intervals_into_buffer): Use it when appropriate.
13198 (reproduce_tree): Declare with prototype.
13199 (balance_possible_root_interval): Check that the parent is a lisp
13200 object before trying to examine its type.
13201
13202 2000-03-22 Gerd Moellmann <gerd@gnu.org>
13203
13204 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
13205 as strings only if both are known to be strings.
13206
13207 * s/openbsd.h (LIBS_TERMCAP): Undef.
13208
13209 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
13210
13211 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
13212 definitions for non-Emacs compilation.
13213 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
13214 outside of `#ifdef emacs'.
13215 (print_partial_compiled_pattern): Update.
13216 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
13217 (re_compile_fastmap): Merge handling of charset and charset_not (for
13218 emacs and non-emacs compilation as well).
13219 Similarly for (not)categoryspec and (not)syntaxspec.
13220 Don't use the fastmap when reaching `anychar' since the added
13221 complexity is not justified.
13222 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
13223 and (not)syntaxspec. Merge (not)categoryspec.
13224
13225 2000-03-22 Kenichi Handa <handa@etl.go.jp>
13226
13227 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
13228 (FACE_FOR_CHAR): Define them differently for the configuration of
13229 --without-x.
13230
13231 2000-03-21 Dave Love <fx@gnu.org>
13232
13233 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
13234 doc string.
13235
13236 2000-03-21 Gerd Moellmann <gerd@gnu.org>
13237
13238 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
13239 (lface_fully_specified_p): Don't check contents of
13240 LFACE_FONT_INDEX because that attribute is optional.
13241 (realize_x_face): Remove now unwarranted xassert.
13242
13243 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
13244
13245 The following changes are to make font selection based on
13246 characters, not charset. In addition, they recover fontset
13247 facilities while utilizing the new font selection mechanism.
13248
13249 * Makefile.in (fontset.o): Depend on dispextern.h.
13250
13251 * alloc.c (mark_face_cache): Don't mark face->registry.
13252
13253 * dispextern.h (struct glyph): New member glyph_not_available_p.
13254 Use 22 bits for face_id.
13255 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13256 (struct face): Delete member registry, new member ascii_face.
13257 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13258 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13259 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
13260 (struct it): Delete member charset, new member glyph_not_available_p.
13261
13262 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13263 (struct fontset_info, struct fontset_data): Structs removed.
13264 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13265 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
13266 (fs_load_font, fs_query_fontset): Adjusted for new argument.
13267 (fs_free_face_fontset, fontset_font_pattern)
13268 (face_suitable_for_char_p, face_for_char)
13269 (make_fontset_for_ascii_face): Extern them.
13270 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13271 (FS_LOAD_FACE_FONT): New macro.
13272
13273 * fontset.c: All codes rewritten or adjusted for the change of
13274 fontset implementation. Now fontset is represented by char table.
13275 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13276 Variables removed.
13277 (my_strcasecmp): Function removed.
13278 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
13279 (AREF, ASIZE): New macros.
13280 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13281 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13282 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13283 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13284 (fontset_id_valid_p, font_family_registry, fontset_name)
13285 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13286 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
13287 New functions.
13288 (fs_load_font): New arg FACE. Caller changed.
13289 (fs_query_fontset): Argument changed. Caller changed.
13290 (Fquery_fontset): call fs_query_fontset.
13291 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13292 Functions removed.
13293 (clear_fontset_elements, check_registry_encoding)
13294 (check_fontset_name): New functions.
13295 (syms_of_fontset): Set char-table-extra-slots property of fontset
13296 to 3. Staticpro and initialize Vfontset_table and
13297 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13298
13299 * frame.h (struct frame): Member `fontset_data' removed.
13300 (FRAME_FONTSET_DATA): Macro removed.
13301
13302 * frame.c (make_frame): Don't allocate f->fontset_data.
13303 (Fdelete_frame): Don't free f->fontset_data.
13304
13305 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13306
13307 * xdisp.c (charset_at_position): Function removed.
13308 (init_iterator): Don't set member charset of struct `it'.
13309 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13310 (next_element_from_display_vector, insert_left_trunc_glyphs):
13311 Likewise.
13312 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13313 FACE_FOR_CHARSET.
13314 (get_next_display_element, append_space)
13315 (extend_face_to_end_of_line): Likewise.
13316
13317 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13318 Variables removed.
13319 (clear_font_table, frame_update_line_height, load_face_font):
13320 Adjusted for the change of fontset implementation.
13321 (load_face_fontset_font): Function removed.
13322 (pixel_point_size): New function.
13323 (font_list): Argument type changed. Caller changed.
13324 (LFACE_FONT): New macro.
13325 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13326 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13327 Lisp_Object. Determine the font name by actually loading a font
13328 by the specified pattern. Set LFACE_FONT (lface) to the specified
13329 pattern. Even if a font is not found, don't try alternatives.
13330 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13331 (set_font_frame_param): If `font' is specified in lface, use it.
13332 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13333 (lface_same_font_attributes_p): Likewise.
13334 (make_realized_face): Arguent changed. Caller changed. Set
13335 face->ascii_face to face itself.
13336 (free_realized_face): Free face->fontset if face is for ASCII.
13337 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13338 (deduce_unibyte_registry, x_charset_registry): Functions removed.
13339 (free_realized_multibyte_face): New function.
13340 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13341 changed. Caller changed.
13342 (try_font_list): Argument type changed.
13343 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13344 (choose_face_font): Argument changed. Handle fontset properly.
13345 (choose_face_fontset_font): Function removed.
13346 (realize_default_face, realize_named_face): Don't remove the
13347 former face here.
13348 (realize_face): Argument changed. Caller changed. Remove face
13349 with the arg former_face_id in advance. Load font for the new face.
13350 (realize_x_face): Argument changed. Caller changed. For a
13351 multibyte character, share fontset with base_face. For a single
13352 byte character, make a new realized fontset. Don't load a font here.
13353 (realize_tty_face): Argument changed. Caller changed.
13354 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13355 (face_at_buffer_position): Don't check multibyte_p for returning
13356 DEFAULT_FACE_ID.
13357 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13358 FACE_SUITABLE_FOR_CHARSET_P.
13359 (syms_of_xfaces): Remove code for Qx_charset_registry and
13360 Vface_default_registry.
13361
13362 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13363 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
13364 (x_per_char_metric): Don't try FONT->default_char. Even if
13365 pcm->width is zero, glyph bits may exist.
13366 (x_encode_char): Always initialize char2b->byte1.
13367 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
13368 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
13369 (x_append_glyph): Set glyph->glyph_not_available_p.
13370 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13371 it->charset. Handle the case that per char metric is not
13372 available. If it->multibyte_p is zero and it->c is a multibyte
13373 character, convert it to a unibyte character.
13374 (struct glyph_string): Delete member `charset'.
13375 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13376 the case that per char metric is not available correctly.
13377 (x_fill_glyph_string): Handle the case that the specific glyph is
13378 not available correctly.
13379 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13380 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13381 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13382 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13383 fontset. Don't call FS_LOAD_FONT.
13384
13385 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13386 (x_create_tip_frame): Likewise.
13387 (Fx_close_connection): Free full_name of font_info.
13388
13389 * fns.c (optimize_sub_char_table): New function.
13390 (Foptimize_char_table): New function.
13391 (syms_of_fns): Defsubr Soptimize_char_table.
13392
13393 2000-03-20 Gerd Moellmann <gerd@gnu.org>
13394
13395 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13396 only if buffer is displayed in some window.
13397
13398 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13399 (try_window_reusing_current_matrix): Don't call scroll run
13400 function if run's current and desired position are the same;
13401 this prevents cursor flickering.
13402
13403 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13404
13405 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13406
13407 * regex.c (RE_STRING_CHAR): New macro.
13408 (GET_CHAR_AFER_2): Remove.
13409 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13410 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13411 (print_partial_compiled_pattern, re_compile_fastmap)
13412 (re_match_2_internal): Remove on_failure_jump_exclusive.
13413 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13414 optimization only need to work for * (ie. can use of_keep_string_jump).
13415 Remove the special case for .*\n since it is now covered by the general
13416 optimization.
13417 (re_search_2): Don't bother with `room'.
13418 (skip_one_char): New function.
13419 (skip_noops): Simplify since `memory' is not needed any more.
13420 (mutually_exclusive_p): Restructure slightly to use `switch' and
13421 add handling for "all" remaining cases.
13422 (re_match_2_internal): Change on_failure_jump_smart to use
13423 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13424 rather than on_failure_jump_exclusive.
13425
13426 2000-03-19 Gerd Moellmann <gerd@gnu.org>
13427
13428 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13429 number of bits per RGB because it's everywhere used as the depth
13430 of the visual.
13431
13432 * term.c (calculate_costs): Remove code dealing with X frames.
13433
13434 2000-03-19 Richard M. Stallman <rms@gnu.org>
13435
13436 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13437
13438 2000-03-18 Gerd Moellmann <gerd@gnu.org>
13439
13440 * lread.c (read_integer): Unread the last char not consumed.
13441
13442 2000-03-17 Gerd Moellmann <gerd@gnu.org>
13443
13444 * xterm.c (x_update_window_cursor): Don't update in frames
13445 which are in the process of being deleted.
13446
13447 2000-03-16 Gerd Moellmann <gerd@gnu.org>
13448
13449 * Makefile.in (mostlyclean): Add `*.core'.
13450 (clean): Add `bootstrap-emacs'.
13451
13452 * lread.c (read_integer): New function.
13453 (read1): Support read syntax #o, #x, #b, #r.
13454
13455 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13456
13457 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13458 make sure POINTER_TO_OFFSET gives the same value before and after
13459 PREFETCH. Use `dfail' to guarantee "atomic" matching.
13460 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13461 (debug): Now only active if > 0 rather than if != 0.
13462 (DEBUG_*): Update for the new meaning of `debug'.
13463 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13464 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13465 in `succeed_n', `jump_n' and `set_number_at'.
13466 (store_op1, store_op2, insert_op1, insert_op2)
13467 (at_begline_loc_p, at_endline_loc_p): Add prototype.
13468 (group_in_compile_stack): Move to after its arg's types are
13469 declared and add a prototype.
13470 (PATFETCH): Define in terms of PATFETCH_RAW.
13471 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
13472 (QUIT): Redefine as a nop except for NTemacs.
13473 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13474 indentation of the greedy-op and shy-group code.
13475 (at_(beg|end)line_loc_p): Fix argument's types.
13476 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13477 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13478 (MATCHING_IN_FIRST_STRING): Remove.
13479 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13480 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13481 QUIT unconditionally.
13482
13483 2000-03-15 Gerd Moellmann <gerd@gnu.org>
13484
13485 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13486 a sole completion.
13487
13488 * process.c (send_process): Add a hint that the function
13489 can call Lisp code to its comment.
13490
13491 * lread.c (load_dangerous_libraries): New variable.
13492 (Vbytecomp_version_regexp): New variable.
13493 (safe_to_load_p): New function.
13494 (Fload): Handle files not compiled with Emacs specially.
13495 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13496
13497 2000-03-14 Gerd Moellmann <gerd@gnu.org>
13498
13499 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13500
13501 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13502 support functions only if HAVE_X11R6_XIM is defined.
13503 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13504
13505 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13506
13507 * xfns.c (X_I18N_INHIBITED): Don't define.
13508 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
13509 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13510
13511 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13512 (HAVE_X11R6_XIM): Define.
13513
13514 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13515
13516 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13517 If set, call XSynchronize.
13518
13519 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13520
13521 * regex.c: Declare a new type `re_char' used throughout the code
13522 for the string char type. It's `const unsigned char' to match the
13523 rest of Emacs. Consistently make sure all pointers to strings use
13524 it and make sure all pointers into the pattern use `unsigned char'.
13525 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
13526 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13527 code duplication.
13528
13529 * charset.h (GET_CHAR_AFTER_2): Remove.
13530 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13531
13532 2000-03-12 Ken Raeburn <raeburn@gnu.org>
13533
13534 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13535 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13536 of them try to use backquotes.
13537
13538 2000-03-12 Dave Love <fx@gnu.org>
13539
13540 * unexelf.c: Restore changes of 1999-10-19.
13541 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13542 fix its type and alignment; copy it from current process.
13543
13544 2000-03-12 Gerd Moellmann <gerd@gnu.org>
13545
13546 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13547 has been found. Fix bug not computing timer's predecessor.
13548
13549 * fileio.c (Fread_file_name): Handle case that DIR contains a
13550 file name.
13551
13552 * window.c (Fsave_window_excursion): Doc fix.
13553
13554 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
13555
13556 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13557
13558 * msdos.c (vga_installed): New function, code moved from
13559 dos_set_window_size.
13560 (Qbar, Qcursor_type, outside_cursor): New variables.
13561 (syms_of_msdos): Intern and staticpro them.
13562 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13563 shape used outside Emacs when called for the first time.
13564 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13565 cursor shape used outside Emacs.
13566 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13567 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13568 type has changed.
13569 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13570 parameters specify the cursor. Make qreverse a global
13571 variable (renamed to Qreverse).
13572
13573 2000-03-09 Gerd Moellmann <gerd@gnu.org>
13574
13575 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13576
13577 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13578
13579 This is a big redesign of failure-stack and register handling, prompted
13580 by bugs revealed when trying to add shy-groups. Overall, what happened
13581 is that loops are now structured a little differently, groups can be
13582 shy and the code is a little simpler.
13583
13584 * regex.h: Update the copyright.
13585 (RE_SHY_GROUPS): New value.
13586 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13587 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13588
13589 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13590 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13591 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13592 for (start|stop)_memory since they now only take one argument (the
13593 second has becomes unnecessary).
13594 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
13595 (print_compiled_pattern): Use %ld to printf long ints and flush to
13596 make debugging a little easier.
13597 (union fail_stack_elt): Make the integer unsigned.
13598 (struct fail_stack_type): Add a `frame' element.
13599 (INIT_FAIL_STACK): Init `frame' as well.
13600 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13601 (DEBUG_PUSH, DEBUG_POP): Remove.
13602 (NUM_REG_ITEMS): Remove.
13603 (NUM_NONREG_ITEMS): Adjust.
13604 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13605 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
13606 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
13607 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13608 New macros.
13609 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13610 address pushed is not the destination of the jump but the source
13611 of it instead.
13612 (NUM_FAILURE_ITEMS): Remove.
13613 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
13614 registers before the actual failure point). Don't hardcode any
13615 meaning for str==NULL anymore.
13616 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
13617 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13618 Remove.
13619 (REG_UNSET_VALUE): Use NULL (why not?).
13620 (compile_range): Remove declaration since it doesn't exist.
13621 (struct compile_stack_elt_t): Remove inner_group_offset.
13622 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13623 (regex_grow_registers): Remove dead code.
13624 (FIXUP_ALT_JUMP): New macro.
13625 (regex_compile): Add shy-groups Change loops to use
13626 on_failure_jump_smart&jump instead of
13627 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13628 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13629 variable to me). Use `jump' instead of `jump_past_alt' and don't
13630 bother with push_dummy_failure in alternatives since it is now
13631 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13632 emacs' for (re)allocating the stack.
13633 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13634 from loop when bufp->can_be_null rather than jumping to `done'.
13635 Avoid jumping backwards so as to ensure termination. Use
13636 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13637 backreferences. Remove dead code in handling of `anychar'.
13638 (skip_noops, mutually_exclusive_p): New functions taken from the
13639 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13640 improve mutually_exclusive_p to handle ".+\n".
13641 (lowest_active_reg, highest_active_reg)
13642 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
13643 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13644 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13645 variables. Push register (in `start_memory') on the stack rather
13646 than storing it in old_reg(start|end). Remove the cycle detection
13647 from `stop_memory', replaced by the use of on_failure_jump_loop
13648 for greedy loops. Add code for the new on_failure_jump_<foo>.
13649 Remove ad-hoc code in `on_failure_jump' to push more registers in
13650 the case of a loop. Take out code from `maybe_pop_jump' into
13651 separate functions and adapt it to the semantics of
13652 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13653 and push_dummy_failure. Remove dummy_failure handling and
13654 handling of `failures to jump to on_failure_jump' (this last one
13655 was already dead code, it seems).
13656 (group_match_null_string_p, alt_match_null_string_p)
13657 (common_op_match_null_string_p): Remove.
13658
13659 2000-03-08 Dave Love <fx@gnu.org>
13660
13661 * config.in: Don't depend on __STDC__ for volatile.
13662 Add POINTER_TYPE, PTR, PROTOTYPES.
13663
13664 * hftctl.c, strftime.c: Use PROTOTYPES.
13665 * eval.c (find_handler_clause): Likewise.
13666
13667 * mem-limits.h: Use POINTER_TYPE.
13668
13669 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13670 (memory_warnings): Declare using POINTER_TYPE.
13671
13672 2000-03-08 Gerd Moellmann <gerd@gnu.org>
13673
13674 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13675
13676 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
13677
13678 * xfns.c: Remove obsolete code in #if 0.
13679 (Fx_focus_frame): New function.
13680
13681 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13682
13683 * coding.c (coding_category_name): Add coding-category-utf-8,
13684 coding-category-utf-16-be, coding-category-utf-16-le.
13685 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13686 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13687 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13688 (detect_coding_utf_8): New function.
13689 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13690 UTF_16_LOW_SURROGATE_P): New macros.
13691 (detect_coding_utf_16): New function
13692 (detect_coding_mask): When priorities are specified, skip any
13693 categories that have `nil' coding-system. Fix bug of returning
13694 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13695 returns a mask not set in PRIORITIES.
13696 (detect_eol_type_in_2_octet_form): New function.
13697 (detect_eol): selects detect_eol_type_XXX to call according to
13698 cooding->category_idx.
13699 (detect_coding_system): Remove `nil' coding-system in the result.
13700 (Fupdate_coding_systems_internal): Update all coding-categories.
13701
13702 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13703 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13704 New macros.
13705 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13706 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13707 (CODING_CATEGORY_IDX_UTF_16_LE)
13708 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13709 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
13710 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13711 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13712
13713 2000-03-07 Gerd Moellmann <gerd@gnu.org>
13714
13715 * doc.c (Fdocumentation_property): If value is not a string,
13716 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13717
13718 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13719 close the display with XtCloseDisplay. This caused a bus error
13720 on OpenWindows.
13721
13722 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13723 complete but not unique.
13724
13725 2000-03-06 Gerd Moellmann <gerd@gnu.org>
13726
13727 * process.c (send_process): Remove local variable `procname' that
13728 might become invalid when a GC happens. Instead, access the
13729 process name slot directly.
13730
13731 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13732 orig_height if set.
13733
13734 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13735 orig_height if set.
13736
13737 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13738
13739 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13740 glyph matrices have been freed.
13741
13742 2000-03-05 Gerd Moellmann <gerd@gnu.org>
13743
13744 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
13745 (bootstrap-temacs): Set LC_ALL to C like for temacs.
13746
13747 * xfns.c (QCdata): Moved to xdisp.c.
13748
13749 * xdisp.c (QCdata): Moved here from xfns.c.
13750 (syms_of_xdisp): Initialize QCdata.
13751
13752 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13753
13754 * window.c (coordinates_in_window): Use
13755 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13756 FRAME_INTERNAL_BORDER_WIDTH.
13757
13758 * xdisp.c (try_window_id): Recompute unchanged information if
13759 it is obviously invalid.
13760
13761 * xterm.c (x_term_init): Create a colormap if not using the
13762 default visual.
13763
13764 * xterm.h (select_visual): Change prototype.
13765
13766 * xfns.c (select_visual): Rewritten. Recognize user-specified
13767 visual classes.
13768 (visual_classes): New variable.
13769
13770 2000-03-04 Gerd Moellmann <gerd@gnu.org>
13771
13772 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13773 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13774 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
13775 (x_decode_color): Don't handle allocation of white and black specially.
13776 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13777 XtNcolormap resources.
13778 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13779 (Fx_create_frame): Initialize color members of x_output structure.
13780 (xpm_load): Pass colormap to XPM lib.
13781
13782 * xfaces.c (x_free_colors): Access colormap of frame using
13783 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13784 when default colormap is used.
13785
13786 * xterm.c (x_term_init): Set Colormap member of x_display_info
13787 structure. Copy colormap if resource `privateColormap' is
13788 specified (PseudoColor only).
13789 (x_setup_relief_color): Access colormap of frame using
13790 FRAME_X_COLORMAP.
13791
13792 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13793 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13794
13795 2000-03-04 Jason Rumney <jasonr@gnu.org>
13796
13797 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13798 other non-platform-specific equivalents.
13799 [WINDOWSNT]: Include w32term.h, fontset.h and define X
13800 specific functions and macros as their w32 equivalents where
13801 non-platform-specifics are not available.
13802 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13803 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13804 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13805 (frame_update_line_height): Use macros to access f->output_data.
13806 (defined_color): Remove FIXME comments; fixed.
13807 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13808 into #ifdef blocks. Add WINDOWSNT blocks.
13809 (Fx_list_fonts): Use macros for accessing font data.
13810 (set_lface_from_font_name): Different default fonts for X and
13811 WINDOWSNT.
13812 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13813 scalable for backward compatibility.
13814 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
13815 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13816
13817 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
13818 syms_of_w32faces.
13819
13820 * makefile.nt (w32faces.obj): Remove.
13821 (xfaces.obj): Add.
13822
13823 2000-03-03 Jason Rumney <jasonr@gnu.org>
13824
13825 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13826 correct parameters.
13827
13828 2000-03-03 Ken Raeburn <raeburn@gnu.org>
13829
13830 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13831 standard ELF definitions here if the system header does not.
13832
13833 2000-03-03 Gerd Moellmann <gerd@gnu.org>
13834
13835 * xterm.c (PER_CHAR_METRIC): Removed.
13836 (x_per_char_metric_1, x_default_char): New functions.
13837 (x_per_char_metric): If font's default char is invalid, return
13838 metrics of a suitably chosen usable default char.
13839 (x_draw_glyph_string_foreground): If font has an invalid default
13840 char, replace occurrences of unprintable chars with a suitably
13841 chosen usable default char.
13842
13843 2000-03-02 Gerd Moellmann <gerd@gnu.org>
13844
13845 * xterm.c (note_mouse_highlight): Return quickly if frame's
13846 glyph matrices have been freed.
13847
13848 * dispnew.c (free_glyphs): Block input while freeing matrices.
13849
13850 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13851
13852 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13853 Use x_free_colors.
13854
13855 * dispextern.h (x_free_colors): Add prototype.
13856
13857 * xfaces.c (x_free_colors): New function.
13858 (unload_color, free_face_colors): Use it.
13859
13860 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13861
13862 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13863
13864 * window.c [MSDOS]: Include msdos.h.
13865
13866 2000-03-02 Dave Love <fx@gnu.org>
13867
13868 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13869
13870 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13871 set C_OPTIMIZE_SWITCH for gcc.
13872
13873 2000-03-02 Kenichi Handa <handa@etl.go.jp>
13874
13875 * coding.c (coding_save_composition): Be sure to allocate
13876 composition data area in coding even if there's no composition in
13877 the current run.
13878
13879 2000-03-01 Jason Rumney <jasonr@gnu.org>
13880
13881 * w32term.c: Equivalent changes to those made to xterm.c on
13882 2000-02-25 and 2000-02-24.
13883
13884 * w32fns.c: Equivalent changes to those made to xfns.c on
13885 2000-02-25 and 2000-02-21.
13886
13887 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13888 correct line-end convention is followed.
13889
13890 * w32menu.c [HAVE_BOXES]: Remove #undef.
13891 (single_keymap_panes): Remove code for simulating checkmarks.
13892 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13893 Remove code for drawing simulated checkmarks.
13894 (w32_menu_show): make unibyte help string correctly.
13895 (add_menu_item): draw standard Windows checkmarks. Draw radio
13896 buttons as radio buttons if possible.
13897
13898 2000-03-01 Gerd Moellmann <gerd@gnu.org>
13899
13900 * sysdep.c (start_of_text): Don't define this function for NetBSD
13901 with ELF.
13902
13903 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
13904 Don't define.
13905 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13906 (LINKER): Don't undef if __NetBSD__ is defined.
13907
13908 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13909
13910 * fileio.c [__NetBSD__]: Define `unix'.
13911
13912 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13913
13914 2000-02-29 Gerd Moellmann <gerd@gnu.org>
13915
13916 * atimer.c (start_atimer): Don't abort when timers are stopped.
13917 (append_atimer_lists): New function.
13918 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13919 arbitrary lists of stopped and running atimers.
13920
13921 * atimer.c (cancel_atimer): Handle canceling an atimer when
13922 some timers are stopped.
13923
13924 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13925 after canceling it.
13926
13927 * fns.c (maybe_resize_hash_table): Handle case of new size
13928 coming out as being the same as old size.
13929
13930 2000-02-27 Jason Rumney <jasonr@gnu.org>
13931
13932 * makefile.nt: Add atimer.h to dependencies.
13933 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13934 * w32console.c: Only disable window system features for dispextern.h
13935 (initialize_w32_display): Build a display info for the console.
13936 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13937 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13938 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13939 as 2 button mice.
13940 * w32gui.h (struct W32FontStruct): Revert last change after change
13941 to xdisp.c.
13942 * w32menu.c (single_submenu): Set up help string.
13943 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13944 (w32_dialog_show): Set up help string.
13945 * w32term.c (w32_display_info_for_display): Remove unused function.
13946 (w32_draw_bitmap): Use pre-built bitmaps.
13947 (w32_initialize_display_info): New function to initialize parts of
13948 display info that are common to both GUI and console frames.
13949 (w32_term_init): Use w32_initialize_display_info. Do not set
13950 Vw32_num_mouse_buttons here, as it is not called for console
13951 frames. Build bitmaps for indicating truncated lines etc.
13952 (x_delete_display): Destroy pre-built bitmaps.
13953 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13954 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13955
13956 2000-02-27 Dave Love <fx@gnu.org>
13957
13958 * lisp.h: Add a bunch of prototypes.
13959
13960 2000-02-26 Kenichi Handa <handa@etl.go.jp>
13961
13962 * keyboard.c (read_char): Set `usec' correctly.
13963
13964 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13965
13966 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13967 `lambda', set reg[RRR] to the map index.
13968 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13969 reg[RRR] to 0. Otherwise, set it to -1.
13970
13971 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13972
13973 * emacs.c (main): Remove code snippet commented out with `//'.
13974
13975 2000-02-25 Richard M. Stallman <rms@gnu.org>
13976
13977 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13978 and contains a `:', prepend `/:'.
13979
13980 * window.c (select_window_1): If selected_window is nil,
13981 don't "swap out" the buffer's point.
13982 (Fset_window_configuration): Set selected_window to nil
13983 before calling Fselect_window.
13984 (unshow_buffer): Don't set point in buffer from window's point
13985 if another more recently selected window also shows the buffer.
13986
13987 2000-02-25 Gerd Moellmann <gerd@gnu.org>
13988
13989 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13990
13991 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13992 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
13993 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13994 New variables.
13995 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13996 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13997 (hide_busy_cursor): New functions.
13998 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13999
14000 * minibuf.c (read_minibuf): Cancel busy-cursor.
14001
14002 * keyboard.c (command_loop_1): Call start_busy_cursor before
14003 Fcommand_execute and cancel_busy_cursor after it.
14004 (timer_check): Remove busy-cursor code.
14005 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14006 cursor timer.
14007
14008 * process.c (wait_reading_process_input): Remove busy-cursor code.
14009
14010 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14011 Fx_hide_busy_cursor.
14012
14013 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14014 Remove prototyoes.
14015 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14016
14017 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14018
14019 * xterm.c (XTread_socket): Remove busy-cursor code.
14020
14021 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14022 (build_frame_matrix_from_leaf_window): Put code handling
14023 glyph row's not being a slice of a frame row in #if 0.
14024 (sync_window_with_frame_matrix_rows): New function.
14025 (frame_row_to_window): New function.
14026 (mirror_line_dance): Handle copies between windows.
14027
14028 * lread.c (Fload): Use `xfree' instead of `free'.
14029 (init_obarray): Use `xmalloc' instead of `malloc'.
14030
14031 * window.c (Fset_window_buffer): Set WINDOW to the window
14032 after decoding.
14033 (coordinates_in_window): Take frame's internal border width
14034 into account.
14035
14036 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14037
14038 * xterm.c (x_display_and_set_cursor): Display cursor of
14039 non-selected windows depending on the setting of
14040 cursor_in_non_selected_windows.
14041
14042 * xdisp.c (cursor_in_non_selected_windows): New variable.
14043 (syms_of_xdisp): DEFVAR_BOOL it.
14044
14045 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14046
14047 * data.c (Fstring_to_number): If number is greater than what
14048 fits into an integer, return a float.
14049
14050 * eval.c (specbind): Remove references to
14051 keyword_symbols_constant_flag.
14052
14053 * data.c (keyword_symbols_constant_flag): Removed.
14054 (Fmakunbound, set_internal, syms_of_data): Remove references to
14055 keyword_symbols_constant_flag.
14056
14057 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14058
14059 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14060
14061 * syntax.c (multibyte_syntax_as_symbol): New variable.
14062 (syms_of_syntax): Declare it as a Lisp variable.
14063 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14064 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14065 nonzero, treat all multibyte characters as symbol.
14066 (init_syntax_once): Give syntax `word' to all multibyte characters.
14067
14068 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14069
14070 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14071 a deleted frame.
14072
14073 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14074
14075 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14076
14077 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14078 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14079
14080 2000-02-21 Dave Love <fx@gnu.org>
14081
14082 * frame.c (Vmouse_position_function): New variable.
14083 (Fmouse_position): Use it.
14084 (syms_of_frame): Install it.
14085
14086 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14087
14088 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14089
14090 * fileio.c (Finsert_file_contents): Unbind the binding of
14091 standard-output done by temp_output_buffer_setup.
14092
14093 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14094 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14095 (specbind, unbind_to): Handle most common case of non-constant
14096 symbol with trivial value specially.
14097
14098 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14099
14100 2000-02-20 Richard M. Stallman <rms@gnu.org>
14101
14102 * data.c (Fmake_variable_buffer_local): Doc fix.
14103 Init found_for_buffer to 0.
14104 (Fmake_variable_frame_local): If the variable has already
14105 been buffer-local, set the check_frame field.
14106
14107 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14108
14109 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14110 produced for CODING_MODE_LAST_BLOCK requires.
14111
14112 2000-02-18 Dave Love <fx@gnu.org>
14113
14114 * keyboard.c (echo_keystrokes): Remove declaration.
14115 (Vecho_keystrokes) New variable.
14116 (read_char, record_menu_key, read_key_sequence): Use it to allow
14117 use of float value.
14118 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14119
14120 * lread.c: Undef feature selection macros before defining.
14121
14122 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14123
14124 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14125 for symbols other than the symbol in question.
14126
14127 2000-02-17 Dave Love <fx@gnu.org>
14128
14129 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14130
14131 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14132
14133 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14134
14135 * alloc.c (enum mem_type): Compile unconditionally.
14136
14137 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14138
14139 * xfaces.c (tty_defined_color): Don't return faulire indication
14140 for unspecified-fg and unspecified-bg pseudo-colors.
14141
14142 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14143
14144 * alloc.c (mark_object): Don't mark symbol names in pure space.
14145 (gc_sweep): Don't unmark symbol names in pure space.
14146
14147 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14148 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14149 [GC_MARK_STACK]: New defines.
14150 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14151 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14152
14153 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14154
14155 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14156 allocate_buffer instead of xmalloc.
14157
14158 * alloc.c (toplevel): Include setjmp.h.
14159 (PURE_POINTER_P): New define.
14160 (enum mem_type) [GC_MARK_STACK]: New enumeration.
14161 (Vdead) [GC_MARK_STACK]: New variable.
14162 (lisp_malloc): Add parameter TYPE, call mem_insert if
14163 GC_MARK_STACK is defined.
14164 (allocate_buffer): New function.
14165 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
14166 (free_float) [GC_MARK_STACK]: Set type to Vdead.
14167 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
14168 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
14169 (MEM_NIL) [GC_MARK_STACK]: New define.
14170 (struct mem_node) [GC_MARK_STACK]: New structure.
14171 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
14172 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
14173 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
14174 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
14175 (mark_stack) [GC_MARK_STACK]: New functions.
14176 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
14177 (clear_marks): Removed.
14178 (gc_sweep): Set free conses' car, free floats' type, free
14179 symbols' function to Vdead. Use lisp_free to free buffers.
14180 (init_alloc_once): Initialize Vdead.
14181 (survives_gc_p): Return non-zero for pure objects.
14182
14183 * alloc.c: Add comments throughout the file.
14184
14185 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
14186 that unblocks alarms.
14187
14188 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
14189 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
14190 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
14191
14192 * frame.c (make_frame): Set frame initiallly to `garbaged'.
14193
14194 2000-02-17 Kenichi Handa <handa@etl.go.jp>
14195
14196 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
14197 avoid infinite error signaling. Allocate sufficient memory for
14198 eol_str in the case that eoltype is Lisp_Int.
14199
14200 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
14201
14202 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
14203 depends on the previous behavior.
14204
14205 2000-02-16 Gerd Moellmann <gerd@gnu.org>
14206
14207 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
14208
14209 2000-02-15 Gerd Moellmann <gerd@gnu.org>
14210
14211 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
14212
14213 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
14214 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
14215 write(2).
14216
14217 2000-02-15 Richard M. Stallman <rms@gnu.org>
14218
14219 * data.c (set_internal): Don't make variable buffer-local
14220 if within a let-binding for the same buffer.
14221 (let_shadows_buffer_binding_p): New function.
14222
14223 * eval.c (specbind): For buffer-local value,
14224 record the current buffer also.
14225 (unbind_to): Cope with that change.
14226
14227 2000-02-15 Gerd Moellmann <gerd@gnu.org>
14228
14229 * window.c (Fsave_window_excursion): Doc fix.
14230
14231 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
14232
14233 * syntax.c (back_comment): Make sure we only consider comment-starters
14234 of the relevant style and return -1 in case of a failure to find the
14235 beginning of the comment.
14236 (Fforward_comment): If back_comment fails, go back to the position just
14237 after the comment-end.
14238 (scan_lists): Add comment describing a very minor bug.
14239
14240 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14241
14242 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14243 `completion-regexp-list' in the docstring.
14244
14245 2000-02-14 Dave Love <fx@gnu.org>
14246
14247 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14248
14249 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14250
14251 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14252 to Emacs' syntax. Also fix the comment about set/not-set meanings
14253 since Emacs syntax is not the value 0 any more.
14254 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14255 since it's now part of RE_SYNTAX_EMACS.
14256
14257 2000-02-12 Dave Love <fx@gnu.org>
14258
14259 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
14260
14261 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14262
14263 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14264
14265 2000-02-12 Dave Love <fx@gnu.org>
14266
14267 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14268
14269 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
14270 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14271 * s/hpux.h: Don't define HAVE_VFORK.
14272
14273 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14274
14275 * s/nextstep.h: Don't define HAVE_ALLOCA.
14276
14277 * config.in: Add vfork bits.
14278
14279 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14280
14281 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14282 unwind function to undo the effect of stopping atimers.
14283
14284 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
14285
14286 * atimer.c (stopped_atimers): New variable.
14287 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14288 New functions.
14289
14290 * atimer.h (stop_other_atimers, run_all_atimers)
14291 (unwind_stop_other_atimers): Add function prototypes.
14292
14293 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14294
14295 2000-02-11 Ken Raeburn <raeburn@gnu.org>
14296
14297 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14298 library may depend on jpeg.
14299 (atimer.o): Depends on atimer.c.
14300
14301 2000-02-11 Kenichi Handa <handa@etl.go.jp>
14302
14303 * insdel.c (del_range_1): Call update_compositions.
14304 (del_range_both): Call update_compositions just once..
14305
14306 2000-02-10 Dave Love <fx@gnu.org>
14307
14308 * xfns.c (create_frame_xic): Fix initialization of automatic
14309 aggregates for pcc.
14310
14311 2000-02-09 Kenichi Handa <handa@etl.go.jp>
14312
14313 * ccl.c (CCL_MAKE_CHAR): New macro.
14314 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14315 registers by CCL_MAKE_CHAR before calling translate_char.
14316 <CCL_TranslateCharacterConstTbl> Likewise.
14317
14318 2000-02-08 Dave Love <fx@gnu.org>
14319
14320 * lread.c (__EXTENSIONS__): Define.
14321
14322 2000-02-08 Gerd Moellmann <gerd@gnu.org>
14323
14324 * puresize.h (BASE_PURESIZE): Increase to 650000.
14325
14326 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14327
14328 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14329 the help message.
14330
14331 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14332
14333 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14334 md, mh, mb, mr, and me to the fake termcap entry.
14335
14336 2000-02-06 Ken Raeburn <raeburn@gnu.org>
14337
14338 * sound.c (sound_cleanup): Don't call device close routine if the
14339 function pointer is null.
14340
14341 2000-02-06 Andrew Innes <andrewi@gnu.org>
14342
14343 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14344 around image definitions and prototypes.
14345 (gamma_correct) [WINDOWSNT]: New prototype.
14346
14347 * w32term.c (x_make_frame_visible): Replace call to
14348 input_poll_signal with poll_for_input.
14349
14350 * window.c [WINDOWSNT]: Include w32term.h.
14351
14352 * xdisp.c [WINDOWSNT]: Include w32term.h.
14353
14354 * makefile.nt: Add dependencies on w32gui.h.
14355 (OBJ1): Include atimer.obj.
14356 ($(BLD)\atimer.obj): New dependency rule.
14357
14358 * w32.c (sigmask): New function (does nothing).
14359 (sigunblock): Ditto.
14360
14361 * frame.c [WINDOWSNT]: Include w32term.h.
14362
14363 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14364
14365 * lread.c (syms_of_lread): Fix literal newlines.
14366
14367 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14368 the string constant limit (2048 bytes) in MSVC.
14369 (main): Ditto.
14370
14371 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14372
14373 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
14374 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14375 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14376 dispatch the event.
14377
14378 2000-02-04 Dave Love <fx@gnu.org>
14379
14380 * fileio.c: Remove some unused vars.
14381 (_GNU_SOURCE): Define (for euidaccess).
14382
14383 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14384
14385 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14386 gcpro1, gcpro2.
14387 (read_minibuf): Deal with allow_props correctly.
14388
14389 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14390
14391 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14392
14393 2000-02-03 Ken Raeburn <raeburn@gnu.org>
14394
14395 * search.c (compile_pattern): If a cache entry has a nil regexp,
14396 fill in that entry instead of clobbering a previously cached
14397 string regexp.
14398
14399 2000-02-02 Ken Raeburn <raeburn@gnu.org>
14400
14401 * puresize.h (BASE_PURESIZE): Increase to 610000.
14402
14403 2000-02-02 Gerd Moellmann <gerd@gnu.org>
14404
14405 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14406 can GC.
14407
14408 2000-02-02 Kenichi Handa <handa@etl.go.jp>
14409
14410 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14411 instead of incrementing ic directly.
14412 <CCL_WriteExprConst> Likewise.
14413 <ccl_set_expr>: Set ic to jump_address.
14414
14415 * fileio.c (e_write): Fix the handling of
14416 CODING_FINISH_INSUFFICIENT_SRC.
14417
14418 2000-02-01 Dave Love <fx@gnu.org>
14419
14420 * editfns.c (Fpropertize): Doc fix.
14421
14422 * process.c (Fstart_process): Doc fix.
14423
14424 * eval.c: Fix various doc strings not to duplicate information
14425 from help-manyarg-func-alist.
14426
14427 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
14428
14429 * doc.c (Vhelp_manyarg_func_alist): New variable.
14430 (Fdocumentation): Use it.
14431 (syms_of_doc): Define it.
14432
14433 2000-01-31 Gerd Moellmann <gerd@gnu.org>
14434
14435 * xterm.c (xim_open_dpy): Remove unused local variable.
14436
14437 * emacs.c (USAGE): Use term `display options' instead of `X options'.
14438
14439 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14440 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14441
14442 * fns.c (sweep_weak_table): New function.
14443 (sweep_weak_hash_tables): Use it. Keep on marking until there
14444 is no more change.
14445
14446 2000-01-30 Gerd Moellmann <gerd@gnu.org>
14447
14448 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14449 that XTread_socket does not crash by trying to call XNoOp on a
14450 closed display.
14451
14452 2000-01-30 Jason Rumney <jasonr@gnu.org>
14453
14454 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14455 Change selected_frame to SELECTED_FRAME ().
14456 (w32_console_mouse_position): Remove #ifndef MULE from around
14457 `insist' parameter.
14458
14459 * makefile.nt: Remove dosfns.obj.
14460
14461 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14462
14463 * w32fns.c (w32_defined_color): Check for valid frame before
14464 applying gamma correction. Eliminate dependency on frame elsewhere.
14465 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14466 (w32_to_x_font): Use resx and resy not height_in and width_in.
14467 (x_to_w32_font): Doc fix.
14468 (xlfd_strip_height): New function to strip and return font height.
14469 (w32_font_match): Compare height separately from rest of xlfd
14470 spec, using xlfd_strip_height.
14471
14472 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14473 width_in. Use w32_defined_color in place of defined_color.
14474
14475 * w32faces.c: Merge more of DOS and X specifics in preparation for
14476 merge with xfaces.c.
14477 (defined_color): Remove FIXME comment.
14478 (tty_color_name): Provide w32-specific function.
14479 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14480
14481 * w32console.c (turn_on_face, turn_off_face): Removed.
14482 (w32_face_attributes): New function.
14483 (Global_variables): Reduce scope where possible.
14484 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14485 fill attribute.
14486 (hl_mode): Don't modify text attributes.
14487 (write_glyphs): Don't do anything if len <= 0. Use
14488 w32_face_attributes to get attributes for drawing. Write
14489 terminating codes using char_attr_normal.
14490 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14491 (update_begin, update_end): Likewise.
14492 (vga_stdcolor_name): New function.
14493 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14494 (Fset_screen_color): Remove char_attr_reverse.
14495
14496 2000-01-29 Gerd Moellmann <gerd@gnu.org>
14497
14498 * xfns.c (xic_set_preeditarea): Take window parameter and
14499 window-relative pixel-positions.
14500
14501 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14502 is its frame's selected window.
14503 (xim_instantiate_callback): Likewise.
14504
14505 * xfns.c (x_create_im): Removed.
14506 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14507 (supported_xim_styles): Renamed from supported_styles.
14508 (best_xim_style): Renamed from best_style.
14509 (create_frame_xic): Renamed from xic_create_frame.
14510 (free_frame_xic): Renamed from xic_destroy_frame.
14511
14512 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14513
14514 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14515 our frames, call XFilterEvent with 2nd parameter `None'.
14516 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14517 returning XBufferOverflow.
14518 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
14519 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14520 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14521 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14522 (xim_initialize, xim_close)
14523 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14524 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14525 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14526 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14527
14528 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14529 and `xim_styles'.
14530 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14531 `xic_style' and `xic_xfs'.
14532 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14533 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14534 (FRAME_XIM): Removed.
14535
14536 * xfns.c (supported_styles): New variable.
14537 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14538 (xic_create_xfontset, best_style, xic_create_frame)
14539 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14540 (xic_set_xfontset): New functions.
14541
14542 2000-01-28 Dave Love <fx@gnu.org>
14543
14544 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14545
14546 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14547
14548 2000-01-28 Gerd Moellmann <gerd@gnu.org>
14549
14550 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14551 for *scratch* if it already existed.
14552
14553 * emacs.c (USAGE): New macro.
14554 (main): Use it to display usage information.
14555
14556 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14557
14558 Support for the menu-help feature:
14559
14560 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
14561
14562 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14563 part of the line to the termscript file.
14564 (IT_clear_to_end): Clear the entire line, not just its beginning.
14565 (menu_help_message, prev_menu_help_message): New variables.
14566 (IT_menu_make_room): Make room for the help_text member.
14567 (IT_menu_display): New argument disp_help; all callers changed.
14568 If disp_help is non-zero, store the help text of the active menu
14569 item in menu_help_message.
14570 (XMenuAddPane): Initialize the help_text member to NULL.
14571 (XMenuAddSelection): New argument help_text. Store it in the
14572 XMenu structure.
14573 (XMenuActivate): New argument help_callback. If the value of
14574 menu_help_message has changed since the last time, display the
14575 menu help message text while waiting for the mouse to move. Clear
14576 the echo area before exiting.
14577 (XMenuDestroy): Free the help_text member.
14578
14579 2000-01-27 Gerd Moellmann <gerd@gnu.org>
14580
14581 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14582 XMenuAddSelection. Pass help callback to XMenuActivate.
14583 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14584
14585 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14586
14587 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14588 and EMACS_SET_USECS.
14589
14590 2000-01-26 Dave Love <fx@gnu.org>
14591
14592 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14593
14594 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14595 an error may be signalled.
14596
14597 2000-01-26 Gerd Moellmann <gerd@gnu.org>
14598
14599 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14600 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14601
14602 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14603
14604 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14605
14606 * charset.c (Fstring): If there is a multibyte char among
14607 the args, always return a multibyte string.
14608
14609 2000-01-25 Gerd Moellmann <gerd@gnu.org>
14610
14611 * sysdep.c (sys_select): Turn atimers off and on instead of
14612 recording and restoring old alarm handler
14613
14614 * process.c (toplevel): Include atimer.h.
14615 (create_process_1): Rewritten.
14616 (create_process): Use atimers instead of alarm.
14617 (wait_reading_process_input) [hpux]: Turn atimers off instead
14618 of turning off SIGALRM.
14619 (wait_reading_process_input): Turn off atimers instead off
14620 calling stop_polling.
14621
14622 * emacs.c (main): Call init_atimer.
14623
14624 * keyboard.c (toplevel): Include systime.h and atimer.h.
14625 (polling_for_input): Removed because unused.
14626 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14627 (poll_timer): New variable.
14628 (poll_for_input, poll_for_input_1): New functions.
14629 (start_polling, stop_polling): Rewritten.
14630
14631 * keyboard.h (polling_for_input): Removed.
14632
14633 * atimer.h, atimer.c: New files.
14634
14635 * Makefile.in (obj): Add atimer.o.
14636 (atimer.o): New target.
14637
14638 * blockinput.h (pending_atimers): Add extern declaration.
14639 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14640
14641 * lisp.h (popup_activated_flag): Add extern declaration.
14642
14643 * xmenu.c (popup_activated_flag): Make externally visible.
14644 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
14645 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14646
14647 * xterm.c (toplevel): Include atimer.h.
14648 (toolkit_scroll_bar_interaction): New variable.
14649 (Fxt_process_timeouts): Removed.
14650 (x_process_timeouts): New function.
14651 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14652 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14653 (x_make_frame_visible): Call poll_for_input_1 instead of
14654 input_poll_signal. Don't call alarm.
14655 (x_initialize): Install timer calling x_process_timeouts.
14656
14657 2000-01-24 Dave Love <fx@gnu.org>
14658
14659 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
14660 Don't use -cckr -- apparently not now necessary.
14661
14662 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14663
14664 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14665 screen boundary.
14666
14667 2000-01-23 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32fns.c (w32_defined_color): Apply gamma correction before
14670 trying to map to the palette.
14671 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14672 to w32_clear_rect.
14673
14674 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14675 here. Callers changed to always pass real device context.
14676 (w32_draw_bitmap): Likewise.
14677 (w32_get_glyph_overhangs): Likewise.
14678 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
14679 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14680 pfnSetScrollInfo and SetScrollRange.
14681 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14682 back into MULE characters after decoding them.
14683 (x_get_glyph_face_and_encoding): Likewise.
14684 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14685 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14686 (x_produce_glyphs): Calculate per char metrics for a character
14687 that we know exists in default font when font_not_found_p is true.
14688
14689 2000-01-22 Jason Rumney <jasonr@gnu.org>
14690
14691 * makefile.nt (intervals.obj, composite.obj): New modules.
14692 (composite.h): Added as dependency where appropriate.
14693
14694 * w32gui.h (XGCValue): New struct for emulating X GCs.
14695
14696 * w32term.h (XCharStruct): New struct for emulating X.
14697
14698 * w32console.c (turn_on_face, turn_off_face): New functions.
14699 (change_line_highlight): New prototype for new redisplay.
14700 (write_glyphs): Support multibyte text. Support faces.
14701
14702 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
14703
14704 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14705 throughout. struct frame * in place of FRAME_PTR.
14706 Skeleton support for images, toolbars, tooltips from xfns.c.
14707 (Fx_create_frame): Use system default for default scroll bar width.
14708 (w32_get_arg): Renamed from x_get_arg.
14709 (Fx_file_dialog): New function.
14710 (w32_list_fonts): Check cache before asking system.
14711 (Vw32_enable_synthesized_fonts): New variable.
14712 (Vw32_enable_italics): Obsolete, removed.
14713
14714 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14715 Use SELECTED_FRAME macro.
14716
14717 * w32menu.c: Add skeleton support for help strings on menus.
14718 (add_menu_item): Native checkbox and radio support added, but not
14719 yet enabled due to bugs.
14720 (push_menu_item): Add parameters type, selection and help.
14721 Callers updated.
14722 Formatting changes to reduce unnecessary diffs with xmenu.c.
14723
14724 * w32select.c (Fw32_set_clipboard_data): Update call to
14725 find_charset_in_str.
14726
14727 * w32term.c: Complete rewrite for new redisplay based on new
14728 xterm.c with necessary sections merged back in from old w32term.c.
14729
14730 2000-01-21 Richard M. Stallman <rms@gnu.org>
14731
14732 * data.c (set_internal): Further fix in same criterion.
14733
14734 2000-01-20 Richard M. Stallman <rms@gnu.org>
14735
14736 * data.c (set_internal): Fix the criteria for whether
14737 to swap out the old cached binding.
14738
14739 2000-01-19 Dave Love <fx@gnu.org>
14740
14741 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14742
14743 2000-01-18 Kenichi Handa <handa@etl.go.jp>
14744
14745 * regex.c (re_compile_fastmap): While checking a range table for
14746 `charset', skip flag bits for a character class correctly.
14747
14748 2000-01-17 Gerd Moellmann <gerd@gnu.org>
14749
14750 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14751
14752 * xfns.c (x_window): Call lw_create_widget with new parameter list.
14753
14754 * widget.c (EmacsFrameSetCharSize): Change size of children first
14755 because of problems with main window geometry management under Lesstif.
14756
14757 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14758 MENU_ITEMS_ITEM_.*.
14759 (MENU_ITEMS_ITEM_HELP): New enumerator.
14760 (push_menu_item): Add parameter HELP. Record help in menu_items.
14761 (single_menu_item, single_submenu, list_of_items): Call
14762 push_menu_item with new parameter.
14763 (single_submenu): Set help string in widget value.
14764 (menu_highlight_callback): New function.
14765 (set_frame_menubar): Call lw_create_widget with new
14766 parameter list.
14767 (xmenu_show, xdialog_show): Ditto.
14768
14769 2000-01-13 Gerd Moellmann <gerd@gnu.org>
14770
14771 * sound.c (Fplay_sound): Improve doc string.
14772
14773 2000-01-11 Richard M. Stallman <rms@gnu.org>
14774
14775 * lisp.h (set_internal): Enter the new arg.
14776
14777 * eval.c (specbind): Record buffer-local variables specially,
14778 indicating which buffer's binding was saved.
14779 (unbind_to): Restore buffer-local variables specially
14780 in the proper buffer.
14781
14782 * data.c (set_internal): New arg BUF.
14783
14784 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14785 * data.c (Fset): Pass new arg to set_internal.
14786 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
14787
14788 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14789
14790 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
14791
14792 2000-01-11 Richard M. Stallman <rms@gnu.org>
14793
14794 * minibuf.c (Ftry_completion): Doc fix.
14795
14796 2000-01-11 Gerd Moellmann <gerd@gnu.org>
14797
14798 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14799 vector, too.
14800
14801 2000-01-11 Andreas Schwab <schwab@suse.de>
14802
14803 * coding.c (code_convert_region): Initialize total_skip.
14804
14805 2000-01-08 Dave Love <fx@gnu.org>
14806
14807 * eval.c (Fuser_variable_p): Check customizability too.
14808
14809 2000-01-07 Gerd Moellmann <gerd@gnu.org>
14810
14811 * minibuf.c (Fcompleting_read): Doc fix.
14812
14813 2000-01-05 Gerd Moellmann <gerd@gnu.org>
14814
14815 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14816 -L /usr/local/lib.
14817
14818 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14819 Check that input style is supported before trying to create an
14820 IC for it.
14821 (x_window): Call x_create_im.
14822
14823 2000-01-04 Gerd Moellmann <gerd@gnu.org>
14824
14825 * xfns.c (current_gif_memory_src): New variable.
14826 (gif_load): Record the address of the current memory source
14827 in current_gif_memory_src.
14828 (gif_read_from_memory): Use current_gif_memory_src.
14829
14830 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14831 macros statement form.
14832
14833 * sound.c (struct sound): Renamed from struct sound_file.
14834 (struct sound): Add members `data' and `header_size'.
14835 (enum sound_attr): Add SOUND_DATA.
14836 (current_sound, current_sound_device): Variables renamed from
14837 sound_file and sound_device.
14838 (parse_sound): Parse :data.
14839 (parse_sound): Handle sound data in strings.
14840 (find_sound_type): Function renamed from find_sound_file_type.
14841 (wav_init, au_init): Fail if sound's header_size is smaller than
14842 needed header size.
14843 (wav_play, au_play): Play sounds from string data.
14844
14845 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14846
14847 * lisp.h: Add prototype for allocate_string_data.
14848
14849 * alloc.c (Fgarbage_collect): Return number of live and free strings.
14850
14851 * alloc.c (mark_buffer): Remove code in #if 0.
14852 (gc_sweep): Ditto.
14853 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14854 (strings_consed): New variable.
14855 (allocate_string): Set it.
14856 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14857 (Fmemory_use_counts): Return strings_consed. Use Flist.
14858
14859 * alloc.c: General cleanup in comments etc. Remove conditional
14860 compilation for `standalone'.
14861
14862 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14863
14864 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14865 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14866 (DONT_COPY_FLAG): Removed.
14867 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14868 (struct sdata, struct sblock): New
14869 (struct string_block): Rewritten.
14870 (STRINGS_IN_STRING_BLOCK): New macro.
14871 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14872 (large_sblocks, string_blocks, string_free_list): New variables.
14873 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14874 (init_strings): Rewritten.
14875 (allocate_string, allocate_string_data, compact_small_strings)
14876 (free_large_strings, sweep_strings): New functions.
14877 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14878 (struct string_block_head, current_string_block)
14879 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14880 (STRING_PAD): Removed.
14881 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14882 (Fgarbage_collect): Don't set mark bit in large strings.
14883 (mark_object): Mark strings differently. Mark symbol names
14884 differently.
14885 (survives_gc_p): Test marked strings differently.
14886 (gc_sweep): Sweep strings differently, unmark strings in
14887 symbol names.
14888 (compact_strings): Removed.
14889
14890 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14891
14892 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14893 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14894
14895 2000-01-04 Kenichi Handa <handa@etl.go.jp>
14896
14897 * fileio.c (Finsert_file_contents): Signal error if visiting file
14898 in a non-empty buffer.
14899
14900 * term.c (encode_terminal_code): Fix the previous change.
14901
14902 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14903
14904 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14905 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14906
14907 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14908
14909 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14910
14911 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14912 need to test for MSDOS frames.
14913
14914 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14915
14916 * dosfns.c (unspecified_colors): Remove.
14917 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14918 unspecified_bg.
14919 (msdos_stdcolor_name): Return strings for unspecified fore- and
14920 back-ground colors.
14921
14922 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
14923 (syms_of_xfaces): Remove their staticpro's.
14924 (tty_color_name): Return Lisp strings for unspecified fore- and
14925 back-ground colors.
14926 (Finternal_set_lisp_face_attribute): Remove the special treatment
14927 for Qunspecified_{f,b}g.
14928 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
14929
14930 2000-01-03 Gerd Moellmann <gerd@gnu.org>
14931
14932 * xdisp.c (reseat_at_next_visible_line_start): Position before
14933 newline only if ending up on a newline.
14934 (next_element_from_ellipsis): Return success. Handle case of
14935 displaying no ellipsis. Fix case of ellipsis defined in display table.
14936 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14937 returns 0.
14938
14939 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14940
14941 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14942 (Fcolor_supported_p): Renamed from face-color-supported-p.
14943
14944 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14945
14946 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14947 list of colors renamed to tty-defined-color-alist.
14948 (tty_color_name): Pass the frame to tty-color-by-index.
14949 (realize_tty_face): tty-color-alist is now a function which
14950 accepts the frame as argument.
14951
14952 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
14953
14954 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14955
14956 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14957 encode_terminal_code.
14958
14959 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14960
14961 * dispnew.c (mode_line_string): Support termcap frames as well.
14962
14963 2000-01-01 Gerd Moellmann <gerd@gnu.org>
14964
14965 * syntax.c (Fforward_word): Undo previous change.
14966
14967 * editfns.c (Fconstrain_to_field): Don't constrain if
14968 inhibit-field-text-motion is non-nil.
14969 (Fline_beginning_position): Undo previous change.
14970 (Fline_end_position): Ditto.
14971
14972 * syntax.c (Fforward_word): Notice field boundaries only if
14973 inhibit-field-text-motion is nil.
14974
14975 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14976
14977 * editfns.c (Vinhibit_field_text_motion): New variable.
14978 (inhibit-field-text-motion): New DEFVAR_LISP.
14979 (Fline_beginning_position, Fline_end_position): Notice field
14980 boundaries only if inhibit-field-text-motion is nil.
14981
14982 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14983 All calls adjusted.
14984 (x_build_heuristic_mask): Likewise.
14985 (xbm_load_image_from_file): Change error output.
14986 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14987 (gif_load, gs_load, x_kill_gs_process): Ditto.
14988
14989 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14990 color indices when accessing raster pixels.
14991 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14992 one of :file or :data.
14993 (enum pbm_keyword_index): Add PBM_DATA.
14994 (pbm_format): Add :data.
14995 (pbm_image_p): Allow either :file or :data.
14996 (pbm_read_file): New function.
14997 (pbm_scan_number): Rewritten to read from string.
14998 (pbm_load): Support :data.
14999
15000 See ChangeLog.8 for earlier changes.
15001
15002 ;; Local Variables:
15003 ;; coding: iso-2022-7bit
15004 ;; End:
15005
15006 Copyright (C) 2001 Free Software Foundation, Inc.
15007 Copying and distribution of this file, with or without modification,
15008 are permitted provided the copyright notice and this notice are preserved.