(Fframe_live_p): Doc fix.
[bpt/emacs.git] / src / ChangeLog
1 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2
3 * frame.c (Fframe_live_p): Doc fix.
4
5 * buffer.c (selective-display-ellipses): Doc fix.
6
7 2001-10-31 Gerd Moellmann <gerd@gnu.org>
8
9 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
10
11 * xfaces.c (realize_x_face): If C is not a single-byte character,
12 set the face's colors_copied_bitwise_p instead of the defaulted_p
13 members which have a different meaning.
14 (free_face_colors): Do nothing for a face whose colors have been
15 copied bitwise.
16
17 * dispextern.h (struct face) <colors_copied_bitwise_p>: New
18 member.
19
20 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
21
22 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23 [w/`doc:' keyword].
24
25 2001-10-31 Gerd Moellmann <gerd@gnu.org>
26
27 * fns.c (require_unwind): Return Lisp_Object.
28
29 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
30
31 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
32 (last-input-char): Revert doc-string to be the same as the
33 doc-string of `last-input-event'.
34
35 * xdisp.c: Fix typos in comments.
36
37 2001-10-31 Gerd Moellmann <gerd@gnu.org>
38
39 * window.c (grow_mini_window): Handle case that the root
40 window is already smaller than the nominal mininum height.
41
42 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
43
44 * emacs.c (main): Don't call keys_of_macros any more.
45
46 * lisp.h (keys_of_macros): Remove.
47
48 * macros.c (keys_of_macros): Remove.
49
50 * xfaces.c (Fface_attribute_relative_p): Declare args.
51
52 2001-10-30 Jason Rumney <jasonr@gnu.org>
53
54 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
55 (enum_font_cb2): Ignore fonts with vertical orientation.
56
57 2001-10-30 Richard M. Stallman <rms@gnu.org>
58
59 * keyboard.c (Finput_pending_p): Doc fix.
60
61 2001-10-30 Gerd Moellmann <gerd@gnu.org>
62
63 * xterm.c (x_after_update_window_line): Don't run the code
64 clearing in borders for rows whose visible height is 0.
65
66 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
67 resized_p flag is set. If not set, use the much less flickering
68 method previously used.
69
70 * dispnew.c (change_frame_size_1): Set frame's resized_p.
71
72 * frame.h (struct frame) <resized_p>: New member.
73
74 * lread.c (to_multibyte): Ensure read_buffer is at least twice
75 as large as the number of bytes to convert.
76
77 * lread.c (to_multibyte): New function.
78 (read1): Use it.
79
80 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
81
82 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
83
84 2001-10-30 Gerd Moellmann <gerd@gnu.org>
85
86 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
87 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
88 if the row's fill_line_p is set and drawing the last glyph with
89 DRAW_IMAGE_{RAISED,SUNKEN}.
90
91 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
92
93 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
94
95 * xmenu.c: Include coding.h and charset.h.
96 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
97 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
98 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
99 Explicitly set wv->help. Use `TRUE' rather than `True'.
100 (menu_help_callback): Use empty_string.
101
102 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
103 (Fx_popup_dialog): Explicitly init f.
104 (w32_menu_display_help): Use empty_string.
105
106 2001-10-29 Richard M. Stallman <rms@gnu.org>
107
108 * fns.c (Frequire): Detect recursive try to require the same
109 feature 3 or more levels deep, and get error.
110 (require_unwind): New subroutine.
111 (require_nesting_list): New variable.
112 (syms_of_fns): Init and staticpro it.
113
114 * print.c (print_object): Clarify indication of insertion type.
115
116 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
117
118 * coding.c (syms_of_coding): Document that locale-coding-system is
119 used for decoding input on X.
120
121 * window.c (Fscroll_left, Fscroll_right): Doc fix.
122
123 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
124
125 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
126 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
127
128 2001-10-29 Gerd Moellmann <gerd@gnu.org>
129
130 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
131 use NO_CURSOR if cursor_in_non_selected_windows is false.
132
133 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
134 the slant attribute if FRAME is t.
135
136 * xfns.c (x_set_internal_border_width): Set frame garbaged
137 when X window doesn't exist yet.
138
139 * xterm.c (x_after_update_window_line): Clear internal border
140 in different circumstances.
141
142 * xterm.c (XTread_socket) <KeyPress>: Don't use
143 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
144 <handa@etl.go.jp>.
145
146 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
147
148 * m/ibms390.h: New file. From Adam Thornton
149 <athornton@sinenomine.net>.
150
151 2001-10-28 Gerd Moellmann <gerd@gnu.org>
152
153 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
154
155 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
156 a loop counter.
157
158 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
159
160 * emacs.c: Use argv[0] instead of emacs when -t was specified.
161
162 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
163 keyword].
164 Fix typos in comments.
165
166 * emacs.c (bug_reporting_address): New function.
167 Use it when displaying usage message.
168
169 * minibuf.c (read_minibuf): Remove unused external declaration of
170 variable `Qread_only'.
171
172 * keymap.c (access_keymap): Remove unused variable `charset'.
173
174 2001-10-28 Miles Bader <miles@gnu.org>
175
176 * xfaces.c (merge_face_heights): Handle TO being relative as well.
177 Remove #ifdef'd-out code.
178 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
179 (syms_of_xfaces): Initialize them.
180
181 2001-10-27 Jason Rumney <jasonr@gnu.org>
182
183 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
184 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
185 position using the system caret.
186
187 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
188 (w32_system_caret_height, w32_system_caret_x)
189 (w32_system_caret_y): New variables for tracking system caret.
190 (w32_initialize): Initialize them.
191 (x_display_and_set_cursor): Make system caret follow the active cursor.
192
193 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
194 New messages types.
195
196 * w32term.c (note_mouse_highlight): Clear old help_echo.
197
198 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
199
200 * xterm.c: Fix typo in a comment.
201
202 * emacs.c: Fix typos in comments.
203 Remove unnecessary spaces.
204 Change doc-string comments to `new style' [w/`doc:' keyword].
205 (USAGE2): Fix typos in usage string.
206
207 * xterm.c: Fix typo in a comment.
208
209 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
210 emacs.c.
211
212 2001-10-27 Gerd Moellmann <gerd@gnu.org>
213
214 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
215 instead of 1/2 line_height in the heuristic for skipping
216 farther backward when target_y was not reached.
217
218 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
219 Display errno only if non-zero.
220 (sound_warning): New function.
221 (vox_configure): Don't treat failing to set sample rate as error.
222 (various places): Improve error messages.
223
224 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
225
226 * fileio.c (Faccess_file): Run the argument filename through
227 Fexpand_file_name, before using it.
228
229 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
230 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
231
232 2001-10-26 Gerd Moellmann <gerd@gnu.org>
233
234 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
235
236 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
237 Fix clearing in the case of scroll bars on the right.
238
239 2001-10-26 Juanma Barranquero <lektu@terra.es>
240
241 * w32gui.h (XImage): Add a dummy typedef.
242
243 2001-10-26 Gerd Moellmann <gerd@gnu.org>
244
245 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
246
247 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
248
249 * frame.c (Fframe_parameter): Fix last change.
250
251 2001-10-25 Gerd Moellmann <gerd@gnu.org>
252
253 * frame.c (Fframe_parameter): Fix a bug whereby some
254 ``artificial'' frame parameters, like `minibuffer' were not
255 obtained by calling Fframe_parameters.
256
257 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
258 cursor differently.
259
260 * xdisp.c (move_it_vertically_backward): Compute line height
261 differently. Add heuristic to try to be more compatible to 20.x.
262
263 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
264
265 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
266
267 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
268 boolean.
269
270 2001-10-25 Miles Bader <miles@gnu.org>
271
272 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
273 BG is a pointer to a structure, not a structure.
274 (gif_format, png_format): Add missing commas.
275
276 2001-10-24 Richard M. Stallman <rms@gnu.org>
277
278 * xfaces.c (Fface_attributes_as_vector): New function.
279 (syms_of_xfaces): Defsubr it.
280
281 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
282
283 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
284 variable `area'.
285
286 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
287
288 * search.c (scan_newline): Remove unused variable `selective_display'.
289
290 2001-10-25 Miles Bader <miles@gnu.org>
291
292 * dispextern.h (struct image): Add `background',
293 `background_valid', and `background_transparent' fields.
294 (image_background, image_background_transparent): New declarations.
295 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
296 * xfns.c (image_background, image_background_transparent)
297 (four_corners_best): New functions.
298 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
299 (gs_format): Add `:background' entry.
300 (lookup_image): Set IMG's background color if specified.
301 (pbm_load, xbm_load_image, png_load): Set IMG's background field
302 when appropriate.
303 (x_clear_image_1): Reset `background_valid' and
304 `background_transparent_valid' fields.
305 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
306 calculating it here. Set IMG's background_transparent field.
307 (enum xpm_keyword_index): Add XPM_BACKGROUND.
308 (enum png_keyword_index): Add PNG_BACKGROUND.
309 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
310 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
311 (enum gif_keyword_index): Add GIF_BACKGROUND.
312 (enum gs_keyword_index): Add GS_BACKGROUND.
313 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
314 Pre-calculate image background color where necessary.
315 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
316 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
317 color to use for image glyph reliefs.
318
319 2001-10-24 Gerd Moellmann <gerd@gnu.org>
320
321 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
322 in full-width rows.
323
324 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
325 Fix clearing of area not covered by scroll bar.
326
327 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
328
329 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
330 and `real_start'.
331 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
332 (glyph_rect): Remove unused variable `area'.
333
334 2001-10-24 Gerd Moellmann <gerd@gnu.org>
335
336 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
337
338 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
339 (row_containing_pos): Take additional argument DY.
340 Treat rows ending in middle of char differently.
341 (display_line): Handle tabs on window systems differently.
342
343 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
344 with additional argument.
345
346 * dispextern.h (row_containing_pos): Adjust prototype.
347
348 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
349 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
350 (try_window_id, try_window_reusing_current_matrix)
351 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
352 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
353
354 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
355
356 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
357 gnuemacs).
358 (HAVE_BOXES): Fix typo in comment.
359 (push_menu_pane): Fix typo in comment.
360
361 * xdisp.c: (display_prop_string_p): Remove unused local declaration
362 of `Qwhen'.
363 (single_display_prop_string_p): Remove unused local declarations
364 of `Qwhen' and `Qmargin'.
365 (string_buffer_position): Remove unused variable `around'.
366 (store_frame_title): Remove unused variable `width'.
367
368 * window.c: Don't define max.
369 (coordinates_in_window): Remove unused variable `uy'.
370
371 * widget.c: Don't define max.
372
373 * process.c: Don't define max.
374 (create_process): Remove unused variable `buffer'.
375
376 2001-10-23 Gerd Moellmann <gerd@gnu.org>
377
378 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
379
380 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
381
382 * xfaces.c (Finternal_set_lisp_face_attribute)
383 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
384 frame is on a windowed display.
385
386 2001-10-23 Gerd Moellmann <gerd@gnu.org>
387
388 * dispnew.c (sync_window_with_frame_matrix_rows):
389 Fix handling of windows which aren't full-width, fix handling
390 of marginal areas.
391
392 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
393
394 2001-10-23 Andreas Schwab <schwab@suse.de>
395
396 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
397 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
398
399 2001-10-23 Gerd Moellmann <gerd@gnu.org>
400
401 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
402 REAL_END. Notice if cursor gets overwritten.
403 (notice_overwritten_cursor): Take X positions as parameters.
404 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
405 around call to x_draw_glyphs.
406
407 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
408
409 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
410 instead of C) and usage.
411
412 * editfns.c (char-to-string): Fix argument names (use CHAR instead
413 of C) and usage.
414
415 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
416 `left', `max_width' and `max_height'.
417
418 2001-10-23 Gerd Moellmann <gerd@gnu.org>
419
420 * xdisp.c (display_line): For a tab continued to the next line,
421 set row's ends_in_middle_of_char_p.
422
423 2001-10-22 Gerd Moellmann <gerd@gnu.org>
424
425 * xdisp.c (display_line): Fix computation of continuation lines
426 width for TABs.
427
428 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
429
430 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
431 `Qlaplace'.
432
433 * fileio.c: Remove unused code.
434
435 2001-10-22 Miles Bader <miles@gnu.org>
436
437 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
438 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
439 Remove `DOC_STRINGS_IN_COMMENTS' cases.
440
441 2001-10-21 Jason Rumney <jasonr@gnu.org>
442
443 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
444
445 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
446
447 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
448 (Finsert_string): Avoid the multi-line string literals warning.
449
450 2001-10-22 Miles Bader <miles@gnu.org>
451
452 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
453 (Fdocumentation): Don't use it.
454 (syms_of_doc): Don't initialize it.
455
456 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
457 * print.c (Fwith_output_to_temp_buffer): Likewise.
458 * window.c (Fsave_window_excursion): Likewise.
459 * editfns.c (Fsave_excursion, Fsave_current_buffer)
460 (Fsave_restriction): Likewise.
461 * eval.c (Frun_hooks, Frun_hook_with_args)
462 (Frun_hook_with_args_until_failure)
463 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
464 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
465 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
466 (Funwind_protect, Fcondition_case): Likewise.
467 * coding.c (Ffind_operation_coding_system): Likewise.
468 * keyboard.c (Ftrack_mouse): Likewise.
469
470 2001-10-21 Miles Bader <miles@gnu.org>
471
472 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
473 (Fmake_hash_table): Add usage: string to doc string.
474 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
475 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
476 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
477 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
478 (Fml_prefix_argument_loop): Likewise.
479
480 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
481
482 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
483
484 * sysdep.c (init_sys_modes): Change doc-string comments to `new
485 style' [w/`doc:' keyword].
486
487 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
488 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
489 comments to `new style' [w/`doc:' keyword].
490
491 2001-10-21 Jason Rumney <jasonr@gnu.org>
492
493 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
494
495 * w32term.c (remember_mouse_glyph): New function.
496 (w32_mouse_position): Use it.
497 (note_mouse_movement): If the mouse moved off the glyph, remember
498 its new position.
499
500 * w32term.h (struct w32_output): Correct spelling of x_compatible.
501 (w32_display_info): Add mouse_face_overlay.
502
503 * w32term.c (notice_overwritten_cursor): Renamed from
504 note_overwritten_text_cursor. Rewritten to take glyph widths into
505 account.
506 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
507 (fast_find_string_pos): New function.
508 (fast_find_position): Return the correct vpos. Add parameter
509 STOP. In the final row, stop before glyphs having STOP as object.
510 Don't consider glyphs that are not from a buffer.
511 (fast_find_position) [0]: Add a presumably more correct version
512 for after 21.1.
513 (expose_window_tree, expose_frame): Don't compute intersections here.
514 (expose_window): Do it here instead.
515 (expose_window_tree, expose_window, expose_line): Return 1 when
516 overwriting mouse-face.
517 (expose_window): If W is the window currently being updated, mark
518 the frame garbaged.
519 (expose_frame): If mouse-face was overwritten, redo it.
520 (x_use_underline_position_properties): New variable.
521 (syms_of_xterm): DEFVAR_BOOL it.
522 (x_draw_glyph_string): Add comment to use it in future.
523 (x_draw_glyph_string): Restore clipping after drawing box.
524 Fix a computation of the underline position.
525 (w32_get_glyph_string_clip_rect): Minor cleanup.
526 (x_fill_stretch_glyph_string): Remove an assertion.
527 (x_produce_glyphs): Don't convert multibyte characters
528 to unibyte characters in unibyte buffers.
529 (cursor_in_mouse_face_p): New function.
530 (x_draw_stretch_glyph_string): Use it to choose a different GC
531 when drawing a cursor within highlighted text. Don't draw
532 background again if it has already been drawn.
533 (x_draw_glyph_string_box): Don't draw a full-width
534 box just because the glyph row's full_width_p flag is set.
535 (x_draw_glyphs): Fix computation of rightmost x for
536 full-width rows.
537 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
538 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
539 change bottom shadow accordingly. Some cleanup.
540 (x_update_window_end): Handle overwritten mouse face
541 also for tool bar windows.
542 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
543 DRAW is DRAW_IMAGE_RAISED.
544 (clear_mouse_face): Return 1 if text with mouse face was
545 actually redrawn. Make the function static. Reset
546 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
547 optimize away highlighting if we pass over that same overlay again.
548 (note_mouse_highlight): Call mouse_face_overlay_overlaps
549 to detect a case where we have to highlight a different region
550 despite not having left the currently highlighted region.
551 Set mouse_face_overlay in the x_display_info. Avoid changing the
552 mouse pointer shape when show_mouse_face has already done it, or
553 there is no need. Handle mouse-face and help-echo in strings.
554 (glyph_rect): New function.
555 (w32_mouse_position): Use it to raise the threshold for mouse
556 movement event generation.
557 (w32_initialize_display_info): Initialize the x_display_info's
558 mouse_face_overlay.
559 (w32_set_vertical_scroll_bar): Don't clear a zero height
560 or width area.
561 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
562 a widget to zero height.
563
564 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
565 Protect unibyte strings created by replacing their multibyte
566 equivalents in menu_items.
567 (w32_menu_show): Don't overwrite an item's name with its key
568 description in case the description is a multibyte string.
569 (single_submenu): Some cleanup.
570
571 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
572 (postprocess_image): New function.
573 (lookup_image): Call it for all image types except PostScript.
574 (x_kill_gs_process): Call postprocess_image.
575 (tiff_error_handler, tiff_warning_handler): New functions.
576 (tiff_load): Install them as handlers.
577 (x_kill_gs_process): Recognize if someone has cleared the image
578 cache under us.
579 (valid_image_p): Protect better against invalid image
580 specifications. Previous code could signal an error.
581 (Fx_hide_tip, Fshow_tip): Doc fix.
582 (Fv_max_tooltip_size): New variable.
583 (syns_of_xfns): DEFVAR_LISP it.
584 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
585 window buffer to *tip* right after creating the frame. Set frame's
586 window_width. Use a maximum tooltip size specified by
587 Vx_max_tooltip_size, if that has valid contents.
588 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
589 Make sure the tooltip is completely visible.
590 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
591 (Fx_create_frame): Adjust the frame's height for presence
592 of the tool bar before calling x_figure_window_size.
593 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
594 when the window gets smaller.
595 (x_set_foreground_color): Set frame's cursor_pixel.
596 (x_set_foreground_color, x_set_background_color): Cleaned up.
597 (x_set_font): Handle case of x_new_fontset returning the same name
598 as before, although there was a change in fontsets.
599
600 2001-10-21 Miles Bader <miles@gnu.org>
601
602 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
603 (Flogxor): Add usage: string to doc string.
604 * charset.c (Fstring): Likewise.
605 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
606 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
607
608 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
609
610 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
611
612 * alloc.c: Reindent DEFUNs with doc: keywords.
613
614 * abbrev.c (Finsert_abbrev_table_description): Reindent.
615
616 * frame.c: Change doc-string comments to `new style' [w/`doc:'
617 keyword].
618
619 2001-10-20 Gerd Moellmann <gerd@gnu.org>
620
621 * (Version 21.1 released.)
622
623 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
624
625 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
626
627 * xdisp.c (invisible_text_between_p): Put prototype inside #if
628 0 because unused.
629
630 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
631 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
632 Change doc-string comments to `new style' [w/`doc:' keyword].
633
634 2001-10-20 Miles Bader <miles@gnu.org>
635
636 The following changes remove the glyph_row `inverse_p' field,
637 which is never set anymore, due to other changes:
638
639 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
640 (reassert_line_highlight, change_line_highlight): Declarations removed.
641 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
642 (line_hash_code, row_equal_p, fake_current_matrices)
643 (build_frame_matrix_from_leaf_window, update_frame_line)
644 (update_frame_line, update_frame_line, update_frame_line):
645 Don't use `inverse_p' field.
646 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
647 change_line_highlight_hook.
648 (XTreassert_line_highlight, x_change_line_highlight):
649 Functions removed.
650 (x_fix_overlapping_area, x_write_glyphs, expose_area)
651 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
652 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
653 `inverse_p' field.
654 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
655 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
656 (w32_reassert_line_highlight, x_change_line_highlight):
657 Functions removed.
658 * w32console.c (reassert_line_highlight, change_line_highlight):
659 Functions removed.
660 (initialize_w32_display): Don't set reassert_line_highlight_hook
661 or change_line_highlight_hook.
662 (hl_mode): Function removed.
663 (reset_terminal_modes, set_terminal_modes, update_begin)
664 (update_end, w32_face_attributes, initialize_w32_display):
665 (clear_frame, ins_del_lines): Don't call it.
666 * termhooks.h (reassert_line_highlight_hook)
667 (change_line_highlight_hook): Declarations removed.
668 * term.c (reassert_line_highlight_hook)
669 (change_line_highlight_hook): Variables removed.
670 (reassert_line_highlight, change_line_highlight): Functions removed.
671 * msdos.c (IT_reassert_line_highlight)
672 (IT_change_line_highlight): Functions removed.
673 (internal_terminal_init): Don't set reassert_line_highlight_hook
674 or change_line_highlight_hook.
675 (highlight): Variable removed.
676 (IT_set_face, IT_update_begin, IT_update_end)
677 (IT_set_terminal_modes): Don't set or use it.
678
679 The following changes remove inverse-video support for terminals
680 that use a `magic cookie' standout mode. Due to changes in the
681 way mode-lines are displayed, such support no longer works
682 anyway, and it's probable that almost no one uses such terminals
683 anymore:
684
685 * term.c (standout_requested): Variable removed.
686 (update_end, highlight_if_desired): Don't use it.
687 (chars_wasted, copybuf): Variables removed.
688 (write_standout_marker): Function removed.
689 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
690 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
691 Don't use `chars_wasted' or `copybuf'.
692 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
693 Set `costs_set' to true.
694 (cursor_to, clear_end_of_line): Test `costs_set' instead of
695 `chars_wasted'.
696 (clear_end_of_line): Function removed.
697 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
698 (clear_to_end): Call `clear_end_of_line' instead of
699 `clear_end_of_line_raw'.
700 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
701 (term_init): Don't set them.
702 Turn off any standout/underline modes that require magic cookies.
703 (ins_del_lines, highlight_if_desired, background_highlight)
704 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
705 Remove special processing for magic-cookie standout modes.
706 (turn_off_face, turn_on_face): Remove special processing for
707 underline magic-cookie glitch.
708
709 2001-10-19 Richard M. Stallman <rms@gnu.org>
710
711 * eval.c (syms_of_eval): Doc fixes.
712
713 2001-10-19 Gerd Moellmann <gerd@gnu.org>
714
715 * xdisp.c (redisplay_internal): Don't clear echo area if the
716 mini-window is selected.
717
718 2001-10-19 Miles Bader <miles@gnu.org>
719
720 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
721 doesn't take precedence if the affected property's value is nil.
722
723 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
724
725 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
726 with fields and suggest using `forward-line' to avoid them.
727 * editfns.c (Fline_beginning_position, Fline_end_position):
728 Clarify documentation.
729
730 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
731
732 * keymap.c (current_minor_maps): `override' only shadows its
733 correspondent in minor-mode-map-alist, not the whole tail.
734
735 2001-10-18 Andrew Innes <andrewi@gnu.org>
736
737 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
738 optimization. The fontp->encoding array was not being initialized
739 correctly when compiled with optimizations by MSVC.
740
741 2001-10-18 Gerd Moellmann <gerd@gnu.org>
742
743 * xdisp.c (display_line): Indicate empty lines in active mini-window.
744
745 2001-10-17 Andrew Innes <andrewi@gnu.org>
746
747 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
748
749 * w32fns.c (w32_load_system_font): Cache codepage for font, in
750 font_info.charset field.
751
752 * w32term.c (w32_encode_char): Get cached codepage from font_info,
753 rather than working it out by calling w32_codepage_for_font for
754 every glyph.
755
756 2001-10-17 Andrew Innes <andrewi@gnu.org>
757
758 * w32term.c (w32_read_socket): Determine clipping rectangle for
759 the entire frame, including areas covered by scrollbars and the
760 menubar. This avoids internal arguments about whether a frame is
761 fully obscured or not.
762
763 2001-10-17 Gerd Moellmann <gerd@gnu.org>
764
765 * xdisp.c (try_window_id): Undo last change. Give up if
766 window ends in strings.
767
768 * xdisp.c (try_window_id): Don't display lines after the window
769 end if the rest of the window after the window end was already blank.
770
771 * xdisp.c (try_window_id): Remove code that was only there
772 for the release of 21.1.
773
774 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
775
776 2001-10-17 Miles Bader <miles@gnu.org>
777
778 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
779 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
780 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
781 Change doc-string comments to `new style' [w/`doc:' keyword].
782 (DOC_STRINGS_IN_COMMENTS): Macro removed.
783 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
784 out make-docfile.
785
786 2001-10-16 Miles Bader <miles@gnu.org>
787
788 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
789
790 2001-10-16 Gerd Moellmann <gerd@gnu.org>
791
792 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
793 *scratch*.
794
795 2001-10-16 Ken Raeburn <raeburn@gnu.org>
796
797 Avoid the assumption that car and cdr slots of cons cells are
798 addressable lvalues; this allows for easier experimentation with
799 other lisp implementations that may not permit such accesses for
800 various reasons. Not quite complete -- buffer.c still needs some
801 work, and w32/mac files need rechecking -- so compile-time
802 enforcement is left disabled for now.
803
804 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
805 gcc with a union-based Lisp object rep. Redefine as no-op for now.
806 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
807 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
808 (XSETCAR, XSETCDR): New macros.
809 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
810 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
811 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
812 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
813 XSETCDR.
814 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
815 * buffer.c (record_buffer, Fbury_buffer)
816 (swap_out_buffer_local_variables, recenter_overlay_lists)
817 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
818 fields of a cons cell respectively.
819 * callint.c (quotify_args, Fcall_interactively): Likewise.
820 * ccl.c (Fregister_code_conversion_map): Likewise.
821 * coding.c (detect_coding_system): Likewise.
822 * composite.c (get_composition_id, make_composition_value_copy):
823 Likewise.
824 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
825 (swap_in_symval_forwarding, set_internal, Fset_default)
826 (Fmake_variable_buffer_local, Fmake_local_variable)
827 (Fmake_variable_frame_local): Likewise.
828 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
829 * keymap.c (Fset_keymap_parent, store_in_keymap)
830 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
831 * minibuf.c (get_minibuffer): Likewise.
832 * search.c (Fmatch_data): Likewise.
833 * textprop.c (extend_property_ranges): Likewise.
834 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
835 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
836 Likewise.
837 * w32term.c (x_delete_display): Likewise.
838 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
839 Likewise.
840 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
841 * doc.c (store_function_docstring): Use XSETCARFASTINT.
842 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
843 (Fread_file_name): Use XSETCAR.
844 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
845 CHECK_NUMBER_CDR.
846 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
847 * frame.c (Fmake_terminal_frame): Use XSETCDR.
848 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
849 CHECK_NUMBER_CDR.
850 * keyboard.c (read_char): Alter list traversal to avoid taking the
851 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
852 (parse_menu_item): Use XSETCAR and XSETCDR.
853 (reach_char_x_menu_prompt): Use XSETCAR.
854 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
855 (Fcommand_execute): Use XSETCDR.
856 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
857 (openp): Change list traversal to avoid using XCAR as lvalue.
858 (read_list): Use XSETCDR.
859 * process.c (wait_reading_process_input): Change wait_for_cell
860 handling to avoid taking addresses of cons cell slots.
861 * xselect.c (x_own_selection, x_handle_selection_clear)
862 (x_clear_frame_selections): Use XSETCDR.
863 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
864 (x_handle_property_notify, x_get_foreign_selection)
865 (x_handle_selection_notify): Use XSETCAR.
866
867 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
868
869 * buffer.c: Put doc strings in comments.
870
871 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
872
873 2001-10-15 Sam Steingold <sds@gnu.org>
874
875 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
876
877 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
878
879 * process.c (process-inherit-coding-system-flag)
880 (get-buffer-process): Do not confuse make-docfile with doc strings
881 in comment.
882
883 * editfns.c (Fchar_to_string): Make doc string consistent with
884 arguments. Put doc strings in comments.
885
886 * abbrev.c, minibuf.c: Put doc strings in comments.
887
888 2001-10-15 Gerd Moellmann <gerd@gnu.org>
889
890 * window.c (window_loop): Don't check for Fother_buffer returning nil.
891
892 * window.c (select_window_1): Unfreeze window start. Remove a
893 doubled test for WINDOW being live.
894
895 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
896
897 * fns.c (Fmapconcat): Fix typo in a doc string.
898
899 * dispnew.c (Fsleep_for): Fix typo in a doc string.
900
901 2001-10-15 Gerd Moellmann <gerd@gnu.org>
902
903 * xterm.c (x_draw_glyph_string): Restore clipping after
904 drawing box.
905
906 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
907
908 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
909
910 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
911
912 * indent.c (skip_invisible): Use new retval of
913 TEXT_PROP_MEANS_INVISIBLE.
914
915 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
916 If a parent is reached and noinherit is set, exit immediately.
917 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
918
919 * s/ms-w32.h (EXEC_SUFFIXES):
920 * s/msdos.h (EXEC_SUFFIXES):
921 * process.h (EXEC_SUFFIXES): Remove.
922
923 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
924 (decode_suffixes): Remove.
925
926 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
927 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
928 (invisible_ellipsis_p): Remove.
929
930 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
931 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
932 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
933 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
934 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
935
936 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
937
938 * lisp.h (Ftop_level): Add prototype.
939
940 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
941 (XTread_socket): Improve style of comments to follow other
942 comments.
943
944 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
945 is already prototyped in included lisp.h).
946
947 * frame.c (Fset_mouse_position): Improve style of comment to
948 follow other comments.
949 (Fset_mouse_pixel_position): Improve style of comment to follow
950 other comments.
951 (Fmake_frame_visible): Doc fix and typo in comment.
952 (Fmake_frame_invisible): Doc fix and typo in comment.
953 (Ficonify_frame): Fix typo in comment.
954
955 2001-10-14 Gerd Moellmann <gerd@gnu.org>
956
957 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
958 * term.c, alloc.c: Put doc strings in comments.
959
960 2001-10-13 Gerd Moellmann <gerd@gnu.org>
961
962 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
963 Provide definitions for doc strings in comments.
964
965 * fns.c: Put doc strings in comments.
966
967 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
968
969 * dired.c (file_name_completion): Ignore a candidate directory if
970 it matches an element in completion-ignored-extensions that ends
971 in a slash.
972 (syms_of_dired) <completion-ignored-extensions>: Mention the above
973 feature in the doc string.
974 (Ffile_name_completion): Ditto.
975
976 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
977
978 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
979
980 * xfns.c (syms_of_xfns): Update calls to Fprovide.
981
982 * lisp.h (Fprovide): Update prototype.
983 (Ffeaturep, invisible_p): Remove.
984
985 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
986 (DOLIST, LOOP_PROPVAL): New macros.
987 (invisible_p, invisible_ellipsis_p): Use them.
988 (invisible_noellipsis_p): New function.
989 (syms_of_xdisp): Use empty_string.
990
991 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
992
993 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
994 (syms_of_lread) <Vafter_load_alist>: Update docstring.
995
996 * print.c (Fwith_output_to_temp_buffer): Align with
997 internal_with_output_to_temp_buffer.
998 (print_preprocess): Use traverse_intervals_noorder.
999 (print_object): Update call to traverse_intervals.
1000
1001 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1002 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1003
1004 * intervals.c (traverse_intervals_noorder): New function.
1005 (search_for_interval, count_intervals): Use it.
1006 (traverse_intervals): Use less stack space and drop `depth' arg.
1007
1008 * fns.c (Ffeaturep): Add new `subfeature' arg.
1009 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1010 (Qsubfeatures): New var.
1011 (syms_of_fns): Initialize it.
1012
1013 * keymap.c (Fkey_description): Use empty_string.
1014 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1015 (syms_of_keymap): Setup inheritance between maps.
1016 Don't export Sdescribe_bindings_internal any more.
1017
1018 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1019
1020 2001-10-12 Gerd Moellmann <gerd@gnu.org>
1021
1022 * xterm.c (notice_overwritten_cursor): Renamed from
1023 note_overwritten_text_cursor. Rewritten to take glyph widths into
1024 account.
1025
1026 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1027
1028 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1029 multi-line strings without a trailing "\n\".
1030
1031 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1032
1033 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1034 defined.
1035
1036 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1037
1038 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1039
1040 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1041 * w32proc.c (sys_spawnve):
1042 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1043 * w32.c (check_windows_init_file):
1044 * sound.c (Fplay_sound):
1045 * emacs.c (init_cmdargs):
1046 * process.c (Fstart_process): Update calls to openp.
1047
1048 * callproc.c (Vexec_suffixes): New var.
1049 (Fcall_process): Update call to openp.
1050 (decode_suffixes): New function.
1051 (syms_of_callproc): Init exec-suffixes.
1052
1053 * lread.c (Vload_suffixes, default_suffixes): New vars.
1054 (openp): Take a lisp list of suffixes.
1055 Check for file-name-handlers even if the file was absolute already.
1056 (syms_of_lread): Declare load-suffixes.
1057 (Fload): Fix up call to openp.
1058 Don't bother checking for file-name-handler at the very beginning.
1059
1060 * keymap.h (Fcopy_keymap): Don't export.
1061
1062 * lisp.h (empty_string): Declare.
1063 (Vload_suffixes, Vexec_suffixes): Declare.
1064 (openp): Update prototype.
1065
1066 * emacs.c (empty_string): New var.
1067 (syms_of_emacs): Initialize it.
1068
1069 * search.c (wordify): Use it.
1070
1071 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1072 selected window if it's not displayed there. Handle the case
1073 when the window is dedicated.
1074 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1075
1076 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1077
1078 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1079 Remove left_ok and right_ok.
1080 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1081 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1082 new meaning of b_property.
1083
1084 * syntax.c (update_syntax_table): Simplify.
1085 (Fforward_comment): Don't skip quoted chars when going backward.
1086
1087 2001-10-11 Gerd Moellmann <gerd@gnu.org>
1088
1089 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1090 in case I is of some unsigned type, in which case
1091 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1092 comparison becomes bogus.
1093
1094 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1095 (Fuser_full_name): Fix bug treating a float as a fixnum.
1096
1097 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1098
1099 * lisp.h (make_fixnum_or_float): New macro.
1100
1101 * lisp.h (circular_list_error): Add prototype.
1102
1103 * data.c (Qcircular_list): New variable.
1104 (circular_list_error): New function.
1105 (syms_of_data): Initialize it Qcircular_list.
1106
1107 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1108
1109 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1110 casefiddle.c, buffer.c: Include keymap.h.
1111
1112 2001-10-10 Gerd Moellmann <gerd@gnu.org>
1113
1114 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1115 options. From Dave Love <d.love@dl.ac.uk>.
1116
1117 2001-10-09 Gerd Moellmann <gerd@gnu.org>
1118
1119 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1120 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1121
1122 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1123 unsigned char.
1124 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1125
1126 2001-10-08 Andrew Innes <andrewi@gnu.org>
1127
1128 * lisp.h [max]: Undef min and max before redefining them.
1129
1130 * w32gui.h: Do not undef min and max.
1131
1132 * w32heap.h: Do not undef min and max.
1133
1134 * s/ms-w32.h: Do not undef min and max.
1135
1136 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1137
1138 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1139
1140 2001-10-08 Sam Steingold <sds@gnu.org>
1141
1142 * keymap.c (current-active-maps): Quote newlines (compilation error).
1143
1144 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1145
1146 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1147 bindings.elc, since otherwise doc strings in bindings.el get wrong
1148 offsets in etc/DOC.
1149
1150 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1151
1152 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1153
1154 * keyboard.h (map_prompt): Remove.
1155
1156 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
1157 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
1158
1159 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1160
1161 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1162
1163 * keyboard.c (map_prompt): Remove.
1164 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1165 Use Fkeymap_prompt.
1166
1167 * keymap.h: New file. Extracted from lisp.h.
1168
1169 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1170 (accessible_keymaps_1): New function.
1171 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1172 (Fwhere_is_internal): Use Fcurrent_active_maps.
1173 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1174 Insert in current buffer rather than standard-output.
1175 Don't call `help-mode'. Export to elisp.
1176 (describe_buffer_bindings): New wrapper.
1177 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
1178 and Sdescribe_buffer_bindings.
1179
1180 2001-10-08 Gerd Moellmann <gerd@gnu.org>
1181
1182 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
1183 Remove code setting signal handler.
1184
1185 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
1186 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1187
1188 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1189
1190 * keyboard.c: Don't define min/max.
1191
1192 2001-10-08 Gerd Moellmann <gerd@gnu.org>
1193
1194 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
1195 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
1196 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
1197 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
1198 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
1199 Don't define min/max.
1200
1201 * lisp.h (min, max): New macros.
1202
1203 * puresize.h (BASE_PURESIZE): Increase to 725000.
1204
1205 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1206
1207 * xfaces.c (free_frame_menubar): Add prototype.
1208
1209 * lisp.h (init_window): Add prototype.
1210
1211 * editfns.c: Include ctype.h.
1212
1213 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
1214 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
1215 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1216 variable `sb'.
1217
1218 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1219 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1220 `popup_activated_flag' and `title'.
1221
1222 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1223
1224 * emacs.c (main): Remove extra `;'.
1225
1226 * atimer.h (struct atimer): Fix typos in a comment.
1227
1228 * atimer.c: Fix typo.
1229
1230 * Makefile.in: Fix typo.
1231
1232 * README: Remove obsolete part mentioning removed VMS file.
1233
1234 2001-10-07 Miles Bader <miles@gnu.org>
1235
1236 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1237
1238 2001-10-07 Ken Raeburn <raeburn@gnu.org>
1239
1240 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1241 Lisp_Object.
1242
1243 * lisp.h (Ffield_end): Declare.
1244
1245 2001-10-07 Gerd Moellmann <gerd@gnu.org>
1246
1247 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1248
1249 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1250
1251 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1252
1253 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1254
1255 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1256 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1257
1258 * alloc.c (inhibit_garbage_collection): Simplify.
1259 (Fmemory_use_counts): Ditto.
1260
1261 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1262 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1263 most-negative-fixnum.
1264
1265 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1266 (FIXNUM_OVERFLOW_P): New macros.
1267
1268 2001-10-06 Miles Bader <miles@gnu.org>
1269
1270 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1271 scroll_bar_bottom_shadow_pixel fields.
1272 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1273 for the shadows, and tell the toolkit about them if we succeed.
1274 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1275 Free scroll-bar shadow colors.
1276 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1277 Free scroll-bar shadow colors when the background color changes.
1278 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1279 Initialize scroll-bar shadow-color fields.
1280
1281 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1282
1283 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1284
1285 2001-10-05 Miles Bader <miles@gnu.org>
1286
1287 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1288 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
1289 New functions (were in simple.el).
1290 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1291 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1292 (syms_of_minibuf): Initialize them.
1293
1294 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1295
1296 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1297 (tiff_load): Install them as error and warning handler.
1298
1299 2001-10-04 Andrew Innes <andrewi@gnu.org>
1300
1301 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1302 (w32_load_system_font): Don't believe what GetLanguageFontInfo
1303 says; query codepage info directly to determine if font is double byte.
1304 (x_to_w32_charset): Handle private format for unknown charsets.
1305 Handle wildcards in charset spec, by ignoring them.
1306 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1307 "*-" prefix from charset.
1308 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1309 handle the truncated font spec form constructed by font_list_1, so
1310 that we correctly identify the charset fields. Don't remove "*-"
1311 prefix from charset.
1312 (w32_list_synthesized_fonts): Fix argument to alloca.
1313
1314 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1315
1316 * window.h (MINI_WINDOW_P): Use NILP.
1317
1318 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1319
1320 * termhooks.h (struct input_event): Use proper type for `kind'.
1321
1322 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1323
1324 This handles unknown keysyms better than before. For example,
1325 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
1326 Emacs formerly completely ignored F5. With the change, it derives
1327 a key symbol from the name of the X keysym, `ccaron' in this case.
1328 Reported by Martin Buchholz.
1329
1330 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
1331 unknown keysyms.
1332
1333 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
1334 that EVENT->code isn't a function key, use the keysym's name.
1335
1336 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1337
1338 FOREACH is a macro that should make it easier to loop over Lisp
1339 lists with checks for cycles and proper lists.
1340
1341 * lisp.h (LIST_END_P, FOREACH): New macros.
1342
1343 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1344
1345 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
1346 called for a lost connection. Prevent dumping core in this case.
1347 Instead print the X error, and exit. On user request.
1348
1349 * xterm.c (error_msg): New variable.
1350 (x_fatal_error_signal): New function.
1351 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
1352 as fatal_error_signal_hook around the call to XtCloseDisplay.
1353
1354 * emacs.c (fatal_error_signal_hook): New variable.
1355 (fatal_error_signal): Call that function.
1356
1357 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1358
1359 With this, Emacs prints how much pure storage it will
1360 approximately need in case pure storage overflows while dumping.
1361
1362 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
1363 New variables.
1364 (init_alloc_once): Initialize new variables.
1365 (PURE_POINTER_P): Use new variables.
1366 (pure_alloc): If pure storage overflows, allocate from the heap.
1367 (check_pure_size): New function.
1368 (Fgarbage_collect): Don't GC if pure storage has overflowed.
1369
1370 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
1371 (check_pure_size): Add prototype.
1372
1373 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
1374
1375 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1376
1377 This adds a post-gc-hook that's run with GC inhibited.
1378 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
1379
1380 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
1381 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
1382 (Fgarbage_collect): Run post-gc-hook.
1383
1384 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1385
1386 This adds `defvaralias' and `indirect-variable'. Changes not
1387 directly related to this feature are there to gain the same
1388 performance again as before variable aliases.
1389
1390 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
1391 code to get and set symbol values, to take defvaralias into account.
1392
1393 (Note: the new `constant' bit-flag in symbols would make it
1394 possible to define arbitrary read-only variables, e.g. with
1395 `defconst'.)
1396
1397 Documentation is in lispref/variables.texi. Added to NEWS.
1398
1399 * lisp.h (enum symbol_interned): New enumeration.
1400 (struct Lisp_Symbol): Remove member `obarray', add
1401 `indirect_variable', `constant', and `interned'.
1402 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
1403 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
1404 (indirect_variable): Add prototype.
1405
1406 * print.c (print_preprocess, print_object): Test internedness of
1407 symbols differently.
1408
1409 * lread.c (Fintern, Funintern): Set symbol's interned and constant
1410 bit-fields.
1411 (init_obarray): Likewise for t and nil.
1412
1413 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1414 (Fdefvaralias): New function.
1415 (specbind): Simplify the test if symbol is a constant.
1416 (syms_of_eval): Defsubr Fdefvaralias.
1417
1418 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1419 (Qcyclic_variable_indirection): New variable.
1420 (Fkeywordp): Check for internedness differently.
1421 (Fmakunbound): Simplify the test if symbol is a constant.
1422 (indirect_variable, Findirect_variable): New functions.
1423 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1424 aliased symbol.
1425 (let_shadows_buffer_binding_p): Check for variable aliases.
1426 (set_internal): Simplify the test if SYMBOL is a constant.
1427 If SYMBOL has a buffer-local value and is an alias, use the aliased
1428 symbol instead.
1429 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1430 Sindirect_variable.
1431
1432 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1433 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1434 set directly.
1435
1436 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1437
1438 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1439 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1440 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1441
1442 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1443
1444 * Branch for 21.1.
1445
1446 2001-10-03 Miles Bader <miles@gnu.org>
1447
1448 * callproc.c (syms_of_callproc): Explicitly state in the
1449 documentation for `process-environment' that earlier entries take
1450 precedence over later ones.
1451
1452 2001-10-02 Miles Bader <miles@gnu.org>
1453
1454 * textprop.c (Fnext_char_property_change)
1455 (Fprevious_char_property_change): Remove reference to non-existant
1456 argument OBJECT from doc-string.
1457
1458 2001-10-01 Gerd Moellmann <gerd@gnu.org>
1459
1460 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1461 (try_window_id): Skip back over lines ending in a newline from a
1462 string.
1463
1464 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1465 New bit flag
1466
1467 2001-10-01 Richard M. Stallman <rms@gnu.org>
1468
1469 * search.c (Freplace_match): Doc fix.
1470
1471 2001-09-28 Andrew Innes <andrewi@gnu.org>
1472
1473 * w32menu.c (set_frame_menubar): Take into account that
1474 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1475 <raeburn@gnu.org>.
1476
1477 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1478
1479 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1480
1481 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1482
1483 * s/gnu-linux.h: Fix a typo in comment.
1484
1485 2001-09-28 Andreas Schwab <schwab@suse.de>
1486
1487 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1488 nocombreloc, in case -z combreloc is the default.
1489
1490 2001-09-28 Gerd Moellmann <gerd@gnu.org>
1491
1492 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1493 really going on here.
1494
1495 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1496
1497 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1498
1499 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1500
1501 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1502 utf-8, menu-bar, and latin-N.
1503 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1504 unconditionally now.
1505 (lisp): Add latin-N, since they are preloaded.
1506
1507 2001-09-27 Gerd Moellmann <gerd@gnu.org>
1508
1509 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1510 to the left. Some cleanup.
1511
1512 * xdisp.c (display_mode_element): One more case where a string's
1513 multibyteness should be used for display.
1514
1515 2001-09-26 Gerd Moellmann <gerd@gnu.org>
1516
1517 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1518 reading at EOF.
1519
1520 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
1521 of the only temporarily set echoing flag for deciding when
1522 the cancel echoing.
1523
1524 * keyboard.c (echo_kboard): Make externally visible.
1525
1526 * lisp.h (echo_kboard): Declare extern.
1527
1528 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
1529 fonts_changed_p if we need larger matrices due to vscrolling.
1530 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1531 this round of redisplay if make_cursor_line_fully_visible fails.
1532 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
1533 (try_cursor_movement, try_scrolling): Use them instead of integers.
1534
1535 * dispextern.h (required_matrix_width, required_matrix_height):
1536 Add prototypes.
1537
1538 * dispnew.c (required_matrix_width, required_matrix_height):
1539 New functions.
1540 (allocate_matrices_for_window_redisplay)
1541 (allocate_matrices_for_frame_redisplay: Use them.
1542 Remove parameters CH_DIM.
1543
1544 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1545 and selected_window to the frame of the window whose mode-lines
1546 are displayed, and to the window itself.
1547 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
1548 here.
1549
1550 2001-09-25 Gerd Moellmann <gerd@gnu.org>
1551
1552 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1553 the image cache under us.
1554
1555 * xdisp.c (display_mode_element): If the mode element is a symbol
1556 with a string value, use that string's multibyteness for displaying.
1557
1558 * keyboard.c (read_char): Don't clear a message for a switch-frame
1559 event. From Stefan Monnier <monnier@cs.yale.edu>.
1560
1561 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1562 version for after 21.1.
1563
1564 * xdisp.c (row_containing_pos): Make externally visible.
1565
1566 * dispextern.h (row_containing_pos): Add prototype.
1567
1568 * process.c (send_process): Disable composition if from_byte < 0.
1569 From Kenichi Handa <handa@etl.go.jp>.
1570
1571 2001-09-24 Gerd Moellmann <gerd@gnu.org>
1572
1573 * xterm.c (refreshicon): Function removed.
1574
1575 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1576
1577 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1578
1579 * xterm.c (toplevel): Remove includes in #if 0.
1580
1581 * process.c (sigchld_handler) [LINUX]: Don't return from
1582 the signal handler at the end of the loop.
1583
1584 2001-09-21 Gerd Moellmann <gerd@gnu.org>
1585
1586 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1587 Terminate only if kill returns -1, and errno is ESRCH.
1588
1589 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
1590
1591 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1592
1593 2001-09-20 Gerd Moellmann <gerd@gnu.org>
1594
1595 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1596 since this function can be called during GC.
1597
1598 * callproc.c (Fcall_process): Handle errors from pipe(2).
1599 (child_setup): Delete code in #ifdef vipc.
1600
1601 2001-09-19 Gerd Moellmann <gerd@gnu.org>
1602
1603 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1604 (display_mode_element): Display the string from decode_mode_spec
1605 depending on its multibyteness.
1606
1607 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1608
1609 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1610
1611 2001-09-18 Gerd Moellmann <gerd@gnu.org>
1612
1613 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1614 recursive_edit_unwind.
1615 (recursive_edit_unwind): Set kboard state according to
1616 SINGLE-KBOARD.
1617
1618 * buffer.c (modify_overlay): Don't do nothing if START == END;
1619 This can still be a modification, for example when an overlay has
1620 a before-string or after-string.
1621 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1622 an overlay with before-string or after-string.
1623
1624 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1625 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1626
1627 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1628 first_unchanged_at_end_row is in front of
1629 last_unchanged_at_beg_row. This code should be removed after the
1630 release of 21.1.
1631
1632 2001-09-17 Gerd Moellmann <gerd@gnu.org>
1633
1634 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1635 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1636
1637 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1638 versions >= 2.95.
1639
1640 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1641
1642 * dired.c (Ffile_attributes): Doc fix.
1643
1644 2001-09-14 Gerd Moellmann <gerd@gnu.org>
1645
1646 * fileio.c (Ffile_symlink_p): Fix last change.
1647
1648 * filelock.c (current_lock_owner): Fix last change.
1649
1650 2001-09-13 Gerd Moellmann <gerd@gnu.org>
1651
1652 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1653 take that to mean that the buffer is too small.
1654
1655 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1656 that to mean that the buffer is too small.
1657
1658 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1659 current buffer's multibyteness when discarding the iterator's
1660 stack.
1661
1662 * xfns.c (Fx_window_property): Handle case that property gets
1663 deleted between the two calls to XGetWindowProperty.
1664
1665 2001-09-11 Gerd Moellmann <gerd@gnu.org>
1666
1667 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
1668
1669 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1670 in addition to read-only.
1671
1672 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1673 to t in addition to read-only.
1674
1675 * lisp.h (Qinhibit_modification_hooks): Declare.
1676
1677 * insdel.c (Qinhibit_modification_hooks): New variable.
1678 (syms_of_insdel): Initialize and staticpro it.
1679
1680 * textprop.c (verify_interval_modification): Don't run
1681 modification-hooks if inhibit_modification_hooks.
1682
1683 * dispnew.c (set_window_cursor_after_update): Fix code
1684 finding glyph row containing cursor when cursor_in_echo_area
1685 is >= 0.
1686
1687 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1688 (add_to_log): Use bcopy instead of strcpy.
1689 (init_from_display_pos): Use an explicit loop over bytes in
1690 overlay strings instead of calling index.
1691
1692 2001-09-10 Gerd Moellmann <gerd@gnu.org>
1693
1694 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1695
1696 * dispnew.c (direct_output_for_insert): Don't change IT's
1697 stop_charpos to something in front of its current position.
1698
1699 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1700 `format'.
1701
1702 2001-09-10 Richard M. Stallman <rms@gnu.org>
1703
1704 * frame.c (Fmouse_position): Doc fix.
1705
1706 2001-09-07 Gerd Moellmann <gerd@gnu.org>
1707
1708 * xdisp.c (init_from_display_pos): Don't compare the result
1709 of calling index with NULL.
1710
1711 2001-09-06 Gerd Moellmann <gerd@gnu.org>
1712
1713 * xfns.c (x_set_background_color): Don't change the colors
1714 of the X window of scroll bar widgets.
1715
1716 2001-09-05 Andrew Innes <andrewi@gnu.org>
1717
1718 * w32fns.c (w32_createwindow): Undo last change.
1719
1720 2001-09-05 Gerd Moellmann <gerd@gnu.org>
1721
1722 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1723
1724 * xdisp.c (string_buffer_position): Use *single_char_property*
1725 functions instead of the *single_property* functions.
1726
1727 2001-09-04 Andrew Innes <andrewi@gnu.org>
1728
1729 * w32term.c (w32_read_socket): Add more information to debugging
1730 output.
1731
1732 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1733 from Emacs frames, so that calls to GetClipBox in w32term.c
1734 correctly report when part of a frame is visible (including
1735 scrollbars, etc). This prevents repeated redrawing of frames when
1736 only a scrollbar is visible.
1737 (w32_wnd_proc): Add more frame information to debugging output.
1738
1739 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1740
1741 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1742
1743 2001-09-03 Gerd Moellmann <gerd@gnu.org>
1744
1745 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1746 help-echo for a string which doesn't have help-echo itself, use
1747 get-char-property to obtain the help-echo from the string's buffer
1748 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1749 have mouse-face, look ``under'' the string for mouse-face from an
1750 overlay.
1751 (fast_find_position): Add parameter STOP. In the final row, stop
1752 before glyphs having STOP as object. Don't consider glyphs that
1753 are not from a buffer.
1754
1755 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1756
1757 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1758
1759 * fns.c (Fmd5): Doc fix.
1760
1761 2001-08-31 Gerd Moellmann <gerd@gnu.org>
1762
1763 * composite.c (update_compositions): Do nothing if
1764 inhibit-modification-hooks is set.
1765
1766 2001-08-30 Gerd Moellmann <gerd@gnu.org>
1767
1768 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
1769 and check_message_stack if terminating abnormally. We want
1770 glyph matrices etc. in a core dump.
1771
1772 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1773 (syms_of_xdisp): Initialize them.
1774 (handle_single_display_prop): Don't change point, bind `object',
1775 `position', and `buffer-position' instead to the object having the
1776 `display' property, position in the object and position in the buffer.
1777
1778 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1779 of the buffer if REPLACE is non-nil.
1780
1781 2001-08-29 Gerd Moellmann <gerd@gnu.org>
1782
1783 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1784
1785 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1786
1787 * w32term.c (x_set_glyph_string_background_width)
1788 (show_mouse_face): Track the last changes in xterm.c.
1789
1790 2001-08-28 Gerd Moellmann <gerd@gnu.org>
1791
1792 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1793 string's background width so that multi-line mouse-face is drawn
1794 to the right edge of the window.
1795 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1796 glyphs.
1797
1798 * dispnew.c (direct_output_for_insert): Set updated_area
1799 before inserting/writing glyphs.
1800
1801 * xdisp.c (display_mode_element): Use string_byte_to_char to
1802 determine character positions in strings, use chars_in_text
1803 instead of strwidth.
1804 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1805 a matrix as parameter; this is easier to use from GDB.
1806
1807 2001-08-28 Miles Bader <miles@gnu.org>
1808
1809 * textprop.c (Fprevious_single_char_property_change)
1810 (Fnext_single_char_property_change): Doc fixes.
1811
1812 2001-08-27 Gerd Moellmann <gerd@gnu.org>
1813
1814 * fileio.c (Finsert_file_contents): Allocate, restore, and
1815 free composition data in the case of REPLACE not being nil.
1816
1817 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1818 there exist overlay strings with newlines at POS.
1819 (text_outside_line_unchanged_p): Return 0 if changes start at
1820 START and overlays exist at START. Likewise for END.
1821 (try_window_id): Give up if init_to_row_end returns 0.
1822
1823 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1824 unconditionally.
1825
1826 2001-08-24 Gerd Moellmann <gerd@gnu.org>
1827
1828 * keymap.c (access_keymap): Return the cdr of the binding of
1829 a generic character instead of its definition (KEY . BINDING).
1830
1831 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1832 to 0 also in the REPLACE case.
1833
1834 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1835
1836 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1837 open to determine whether file is readable (as for DOS_NT).
1838
1839 2001-08-23 Gerd Moellmann <gerd@gnu.org>
1840
1841 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1842 coding.type is coding_type_no_conversion or coding_type_raw_text,
1843 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1844 non-nil instead of just setting enable_multibyte_characters in the
1845 buffer to nil.
1846
1847 2001-08-22 Gerd Moellmann <gerd@gnu.org>
1848
1849 * dispextern.h (struct face_cache): Add member
1850 menu_face_changed_p.
1851
1852 * xfaces.c (menu_face_changed_default): New variable.
1853 (menu_face_changed_count): Variable removed.
1854 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1855 the menu_face_changed_default flag, otherwise set the FRAME's
1856 menu_face_changed_p flag if the `menu' face has been changed.
1857 Prevent calling set_font_frame_param if FRAME is t.
1858 (make_face_cache): Initialize cache's menu_face_changed_p
1859 from menu_face_changed_default.
1860 (realize_basic_faces): Look into the frame's face cache to
1861 determine if the menu appearance needs updating.
1862
1863 * keymap.c (access_keymap): Fix last change to not consider
1864 IDX when it has modifiers.
1865
1866 2001-08-21 Gerd Moellmann <gerd@gnu.org>
1867
1868 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1869 . BINDING) exists, where GENERIC-CHAR is the generic character of
1870 the charset of IDX, return BINDING unless there exists a binding
1871 for IDX itself.
1872
1873 2001-08-16 Gerd Moellmann <gerd@gnu.org>
1874
1875 * xrdb.c (SYSV): Don't define on Solaris 2.
1876 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1877
1878 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
1879 of the screen line, not text line, containing IT's current position.
1880
1881 2001-08-15 Gerd Moellmann <gerd@gnu.org>
1882
1883 * window.c (window_scroll_pixel_based): Don't recenter if
1884 PT is partially visible in the window.
1885
1886 * xterm.c (expose_window_tree, expose_window, expose_line):
1887 Return 1 when overwriting mouse-face.
1888 (expose_frame): If mouse-face was overwritten, redo it.
1889
1890 * xfaces.c (x_update_menu_appearance): Don't call
1891 set_frame_menubar, let the next redisplay do it.
1892
1893 2001-08-14 Andrew Innes <andrewi@gnu.org>
1894
1895 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1896 drawing glyph string.
1897
1898 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1899
1900 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1901 running HI-UX/MPP.
1902
1903 2001-08-14 Gerd Moellmann <gerd@gnu.org>
1904
1905 * xfaces.c (x_update_menu_appearance): Save and restore value of
1906 interrupt_input_blocked.
1907
1908 2001-08-13 Gerd Moellmann <gerd@gnu.org>
1909
1910 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1911 a line start, move back to the line start.
1912
1913 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1914 exactly when a mini-buffer is active.
1915
1916 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1917 in units of 1/8 character on non window-system frames.
1918 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1919
1920 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1921
1922 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1923 a doc string.
1924
1925 2001-08-09 Gerd Moellmann <gerd@gnu.org>
1926
1927 * keyboard.c (Vpre_help_message): New variable.
1928 (syms_of_keyboard): Initialize and staticpro it.
1929 (show_help_echo): Record current message before displaying a
1930 help-echo, and restore that message when clearing the help.
1931
1932 * xfns.c (x_create_im): Remove prototype.
1933
1934 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1935
1936 * dispnew.c (adjust_glyph_matrix): Undo last change.
1937
1938 2001-08-08 Gerd Moellmann <gerd@gnu.org>
1939
1940 * dispnew.c (adjust_glyph_matrix): In the optimization for
1941 windows whose height has changed, disable partially visible lines.
1942
1943 2001-08-07 Gerd Moellmann <gerd@gnu.org>
1944
1945 * window.c (Frecenter): If ARG < 0, and on a window system
1946 frame, count in some empty lines when we can't move -ARG lines down.
1947
1948 * xdisp.c (start_display): Don't try to determine the continuation
1949 lines width if lines are truncated. It's superfluous and leads to
1950 incorrect results if POS is not visible in the window after
1951 reseating the iterator at the previous line start.
1952
1953 2001-08-06 Gerd Moellmann <gerd@gnu.org>
1954
1955 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1956
1957 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1958
1959 * alloc.c (init_stack): Remove declaration.
1960
1961 2001-08-03 Gerd Moellmann <gerd@gnu.org>
1962
1963 * keyboard.c (read_key_sequence): Check that key is an integer
1964 before comparing it with quit_char.
1965 (add_command_key): Use larger_vector.
1966 (read_char_x_menu_prompt): Instead of converting symbol and
1967 integer events into conses (EVENT . nil), use (EVENT . disabled)
1968 which cannot be confused with valid events.
1969 (read_char): When reading from Vunread_command_events, check for
1970 events of the form (EVENT . disabled) instead of
1971 (EVENT . nil).
1972
1973 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1974 a float, determine the max height from the frame's height.
1975
1976 2001-08-02 Gerd Moellmann <gerd@gnu.org>
1977
1978 * xdisp.c (redisplay_internal): Take message_cleared_p into
1979 account only if minibuf_level == 0.
1980
1981 2001-08-01 Gerd Moellmann <gerd@gnu.org>
1982
1983 * xdisp.c (redisplay_internal): Add a check for the last
1984 displayed message.
1985
1986 * xdisp.c (message_cleared_p): New variable.
1987 (clear_message): Set message_cleared_p when clearing the current
1988 message.
1989 (redisplay_internal): Look at message_cleared_p to capture
1990 the case that the echo area should be cleared.
1991
1992 * keyboard.c (command_loop_1): Fix spelling of
1993 resize_echo_area_exactly.
1994
1995 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1996
1997 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1998
1999 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2000 current matrix when the window gets smaller.
2001
2002 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2003
2004 * print.c (strout): Cast the character passed to insert_char to
2005 unsigned char, to avoid sign extension when it is promoted to int.
2006
2007 2001-07-31 Gerd Moellmann <gerd@gnu.org>
2008
2009 * fileio.c (Finsert_file_contents): Don't treat a return value
2010 of 0 from emacs_read as an IO error.
2011
2012 2001-07-30 Gerd Moellmann <gerd@gnu.org>
2013
2014 * keyboard.c (abs): New macro.
2015 (double_click_fuzz): New variable.
2016 (make_lispy_event): Use it to determine what makes a double-click.
2017 (syms_of_keyboard): DEFVAR_INT it.
2018
2019 * xmenu.c (set_frame_menubar): Take into account that
2020 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2021 <raeburn@gnu.org>.
2022
2023 2001-07-27 Gerd Moellmann <gerd@gnu.org>
2024
2025 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2026
2027 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2028 of row's visible height.
2029
2030 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
2031 deal with the first overlay string having an image `display' property.
2032 (try_window_reusing_current_matrix, compute_line_metrics):
2033 Fix computation of row's visible height for the case that part of the
2034 row is invisible above and part of the row is at the same time
2035 invisible below the window.
2036
2037 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2038
2039 * xfns.c (x-show-tip): Doc fix.
2040
2041 * xfns.c (Vx_max_tooltip_size): New variable.
2042 (syms_of_xfns): DEFVAR_LISP it.
2043 (Fx_show_tip): Set frame's window_width to the width of the
2044 window. Use a maximum tooltip size specified by
2045 Vx_max_tooltip_size, if that has valid contents.
2046 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2047
2048 2001-07-26 Andrew Innes <andrewi@gnu.org>
2049
2050 * w32term.c (x_display_list): New variable.
2051 (w32_term_init): Set it.
2052
2053 * w32term.h (x_display_list): New extern.
2054
2055 2001-07-26 Gerd Moellmann <gerd@gnu.org>
2056
2057 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
2058 is non-nil, instead of when redisplaying_p is non-zero.
2059 See comment there.
2060 (mark_window_display_accurate_1): Add an assertion.
2061
2062 2001-07-25 Gerd Moellmann <gerd@gnu.org>
2063
2064 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2065
2066 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2067 events so that we get a chance of processing expose events.
2068
2069 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2070
2071 2001-07-24 Gerd Moellmann <gerd@gnu.org>
2072
2073 * xfns.c (valid_image_p): Protect better against invalid image
2074 specifications. Previous code could signal an error.
2075
2076 2001-07-23 Gerd Moellmann <gerd@gnu.org>
2077
2078 * indent.c (current_column): Fix column computation in the
2079 presence of display table entries.
2080 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2081
2082 * dispnew.c (adjust_glyph_matrix): In the optimization for
2083 windows whose height has changed, use the new window height
2084 to compute which rows to invalidate.
2085
2086 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2087 (MAX_10_EXP): New macro.
2088 (Fformat): Use it.
2089
2090 * coding.c (code_convert_region): Handle the multibyte case if
2091 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2092
2093 2001-07-20 Gerd Moellmann <gerd@gnu.org>
2094
2095 * dispextern.h (struct face): Change type of `stipple' to
2096 int; it's an ID.
2097
2098 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2099
2100 2001-07-19 Gerd Moellmann <gerd@gnu.org>
2101
2102 * dispnew.c (update_window): Don't set the cursor at the end
2103 of the update if display update has been paused.
2104
2105 * composite.h (syms_of_composite): Renamed from syms_of_composition.
2106
2107 2001-07-18 Ken Raeburn <raeburn@gnu.org>
2108
2109 * fns.c (Fset_char_table_default): Check that a charset is defined
2110 before checking its dimension.
2111
2112 2001-07-17 Ken Raeburn <raeburn@gnu.org>
2113
2114 * coding.c (setup_coding_system): Don't do any designation based
2115 on reg_bits if charset is not yet defined.
2116
2117 * lisp.h (XVECTOR): Verify correct object type before returning a
2118 pointer, using eassert.
2119
2120 2001-07-17 Gerd Moellmann <gerd@gnu.org>
2121
2122 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2123 Increase to 4096 because of paste problems reported on GNU/Linux.
2124
2125 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2126
2127 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2128
2129 2001-07-16 Gerd Moellmann <gerd@gnu.org>
2130
2131 * fileio.c (unwind_read): Function removed.
2132 (read_non_regular, read_non_regular_quit): New functions.
2133 (Finsert_file_contents): When reading from non-regular files,
2134 arrange to catch a `quit' and terminate the loop. Rearrange
2135 code so that a `quit' when reading from a regular file doesn't
2136 insert text in the buffer.
2137
2138 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2139 Clear faces afterwards.
2140 (clear_font_table): Take a x_display_info parameter. Don't free
2141 fonts being the default font of any frame on the given display.
2142
2143 2001-07-13 Gerd Moellmann <gerd@gnu.org>
2144
2145 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2146 instead of CHAR_STRING which can signal an error.
2147
2148 * charset.c (char_to_string_1): Extracted from char_to_string.
2149 Return -1 instead of signaling an error.
2150 (char_to_string): Use it.
2151
2152 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2153
2154 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2155
2156 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2157 is t, don't try to append anything to it.
2158
2159 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2160
2161 * dired.c (file_name_completion): Pass dp->d_name to
2162 Fstring_match, not elt, which is always nil here.
2163
2164 2001-07-12 Gerd Moellmann <gerd@gnu.org>
2165
2166 * xselect.c (x_decline_selection_request): Handle errors
2167 caused by receivers that have vanished.
2168
2169 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2170 ignoring events on foreign windows in #if 0. Always dispatch
2171 the event after checking it with x_handle_property_notify.
2172
2173 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
2174 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2175 TRACE macros to facilitate debugging. Add additional trace statements.
2176 (toplevel): Add prototypes for file-local functions.
2177 (x_atom_to_symbol): Remove DPYINFO parameter.
2178
2179 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
2180
2181 * w32menu.c (menubar_selection_callback, w32_menu_show):
2182 Initialize `entry' to nil.
2183 (w32_dialog_show): Remove unused `save_wv' variable.
2184 (name_is_separator): Recognize "--:foo" and "--foo-bar".
2185
2186 2001-07-11 Gerd Moellmann <gerd@gnu.org>
2187
2188 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2189
2190 * fileio.c (unwind_read): Print a message when discarding inserted
2191 text or switching the buffer to unibyte. Change parameter.
2192 (Finsert_file_contents): Don't pass VISIT to unwind_read.
2193
2194 * fileio.c (unwind_read): New function.
2195 (Finsert_file_contents): Record it as unwind-function for
2196 the case that reading is interrupted by C-g.
2197
2198 2001-07-10 Gerd Moellmann <gerd@gnu.org>
2199
2200 * dispnew.c (update_window): Don't skip the header-line
2201 update when scrolling_window returns 0.
2202
2203 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2204
2205 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
2206 for the case that x_decode_color signals an error.
2207
2208 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2209
2210 2001-07-09 Gerd Moellmann <gerd@gnu.org>
2211
2212 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2213 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2214 around ioctls.
2215
2216 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2217
2218 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2219 doc string line for dos-timezone-offset.
2220
2221 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2222 inline assembly, to avoid compiler warnings.
2223 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2224 line for dos-unsupported-char-glyph.
2225
2226 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2227
2228 2001-07-05 Gerd Moellmann <gerd@gnu.org>
2229
2230 * sound.c: Include Emacs' header files with #include "...".
2231
2232 * eval.c (specbind): Additionally record the buffer that was
2233 current when a buffer-local or frame-local variable was bound.
2234
2235 2001-07-04 Gerd Moellmann <gerd@gnu.org>
2236
2237 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2238 to unibyte characters in unibyte buffers.
2239
2240 2001-07-03 Gerd Moellmann <gerd@gnu.org>
2241
2242 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2243 the frame on the binding stack. Change format of entries for
2244 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2245 (unbind_to): Handle unbinding a frame-local variable.
2246
2247 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
2248 glyphs and truncation glyphs at the end of a row from its pixel width.
2249 (dump_glyph_row): Print row's continuation_lines_width.
2250 (try_window_id): Take the shortcut if ZV is visible in the
2251 window, but there are actually no changes at ZV.
2252
2253 2001-07-02 Gerd Moellmann <gerd@gnu.org>
2254
2255 * xterm.h (x_free_dpy_colors): Add prototype.
2256
2257 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2258 right number of arguments.
2259
2260 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2261 ($(lwlibdir)TAGS): New target.
2262 (TAGS): Fix dependency list.
2263
2264 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2265 with input blocked.
2266
2267 2001-06-30 Gerd Moellmann <gerd@gnu.org>
2268
2269 * emacs.c (main): Remove extern declaration for sys_nerr, which
2270 isn't used and causes a compilation error with GCC 3.0 on
2271 FreeBSD 4.3.
2272
2273 2001-06-27 Gerd Moellmann <gerd@gnu.org>
2274
2275 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
2276 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
2277 (toplevel): Include <signal.h> and syssignal.h.
2278
2279 * sound.c (vox_configure, vox_close): Turn off atimers
2280 around ioctls.
2281
2282 2001-06-26 Gerd Moellmann <gerd@gnu.org>
2283
2284 * keyboard.c (read_char) <non_reread>: Record the previous idle
2285 start time before calling timer_stop_idle.
2286 (read_char) <reread_first>: After processing a help-echo event,
2287 restore the previous idle start time.
2288
2289 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2290 the start of invisible text.
2291 (setup_for_ellipsis): New function.
2292 (next_overlay_string): After all overlay strings have been
2293 processed, display an ellipsis if necessary.
2294 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2295 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2296
2297 * dispextern.h (struct iterator_stack_entry): Add member
2298 display_ellipsis_p.
2299
2300 2001-06-25 Gerd Moellmann <gerd@gnu.org>
2301
2302 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2303 on the value of the wait-for-wm frame parameter.
2304
2305 * xterm.h (struct x_output): Add member wait_for_wm.
2306
2307 * xfns.c (Qwait_for_wm): New variable.
2308 (x_frame_parms): Add entry for `wait-for-wm".
2309 (x_set_wait_for_wm): New function.
2310 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2311 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2312
2313 * xdisp.c (try_window_id) <all changes below window end>: Don't
2314 take this shortcut if ZV is visible in the window.
2315 (try_window_id): When checking for window start being in changed
2316 text, don't check that the buffer's size has changed.
2317
2318 2001-06-23 Richard M. Stallman <rms@gnu.org>
2319
2320 * minibuf.c (Fcompleting_read): Doc fix.
2321
2322 2001-06-19 Gerd Moellmann <gerd@gnu.org>
2323
2324 * composite.c (Ffind_composition_internal): Accept ZV
2325 and a string's end position as POS.
2326
2327 2001-06-18 Gerd Moellmann <gerd@gnu.org>
2328
2329 * composite.c (Ffind_composition_internal): Check POS
2330 for validity.
2331
2332 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2333
2334 * editfns.c (Fmessage_box): If the frame is not under a window
2335 system, output the message in the echo area.
2336
2337 2001-06-14 Richard M. Stallman <rms@gnu.org>
2338
2339 * xdisp.c (try_window_id): When EOB is visible, don't treat
2340 insertion at EOB as if it were "off the bottom of the screen."
2341
2342 2001-06-11 Andrew Innes <andrewi@gnu.org>
2343
2344 * w32proc.c (create_child): Add new parameter is_gui_app.
2345 (w32_executable_type): Add new parameter is_gui_app.
2346 (sys_spawnve): Use it.
2347 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
2348 SIGQUIT. This matches better how the signals are interpreted by
2349 MSVC compiled programs.
2350 (syms_of_ntproc): Update docstring.
2351
2352 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
2353
2354 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
2355 well otherwise note_mouse_highlight might optimize away highlighting
2356 if we pass over that same overlay again.
2357
2358 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2359
2360 * lread.c (Fload): Document that the argument is run via
2361 substitute-in-file-name.
2362
2363 2001-05-31 Gerd Moellmann <gerd@gnu.org>
2364
2365 * Makefile.in (bootstrap-doc): New target.
2366 (bootstrap-emacs): Depend on it.
2367
2368 * fileio.c (Fdo_auto_save): Don't try to create the directory of
2369 auto-save-list-file-name when shutting down Emacs, because
2370 creating the directory might signal an error, and leaves
2371 Emacs in a strange state.
2372
2373 * term.c: (tty_cursor_hidden): New variable.
2374 (update_begin): Don't call tty_hide_cursor. Clean up.
2375 (update_end, set_terminal_window, set_scroll_region): Clean up.
2376 (ring_bell, reset_terminal_modes): Clean up.
2377 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
2378 on tty_cursor_hidden.
2379 (write_glyphs): Call tty_hide_cursor.
2380
2381 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
2382
2383 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
2384
2385 2001-05-30 Gerd Moellmann <gerd@gnu.org>
2386
2387 * xfns.c (enum image_value_type): New enumerator
2388 IMAGE_STRING_OR_NIL_VALUE.
2389 (parse_image_spec): Handle it.
2390 (xbm_format, pbm_format): Use it for :foreground and :background.
2391 (xbm_load, pbm_load): Check for nil color names.
2392
2393 * xterm.c (note_mouse_highlight): If an overlapping overlay
2394 exists, but we find that we highlight the same overlay as before,
2395 don't do the highlighting again.
2396
2397 2001-05-29 Gerd Moellmann <gerd@gnu.org>
2398
2399 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
2400 Protect unibyte strings created by replacing their multibyte
2401 equivalents in menu_items.
2402
2403 * keymap.c (Fsingle_key_description): NUL-terminate the string
2404 buffer before calling build_string.
2405
2406 * callproc.c (Fcall_process): Deal with decode_coding returning
2407 CODING_FINISH_INCONSISTENT_EOL.
2408
2409 2001-05-28 Gerd Moellmann <gerd@gnu.org>
2410
2411 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
2412 an item's name with its key description in case the description
2413 is a multibyte string.
2414
2415 * keymap.c (Fsingle_key_description): Create a multibyte string
2416 only if necessary.
2417
2418 * macros.c (Fstart_kbd_macro): Doc fix.
2419
2420 * xterm.c (cursor_in_mouse_face_p): New function.
2421 (x_draw_stretch_glyph_string): Use it to choose a different GC
2422 when drawing a cursor within highlighted text.
2423
2424 * editfns.c (char_property_eq): Put in #if 0.
2425
2426 * indent.c (string_display_width): Put in #if 0.
2427
2428 * lread.c (Fload): Remove unused label.
2429
2430 * termcap.c (speeds): Put in #if 0.
2431
2432 2001-05-18 Gerd Moellmann <gerd@gnu.org>
2433
2434 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2435
2436 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2437 transformation matrix by 10.
2438
2439 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2440
2441 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2442 only if it's equal to the former foreground pixel color.
2443 (x_set_foreground_color, x_set_background_color)
2444 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2445
2446 2001-05-16 Dave Love <fx@gnu.org>
2447
2448 * insdel.c (signal_before_change, signal_after_change): Consider a
2449 local change hook which changes the buffer.
2450
2451 * process.c (read_process_output): Don't call signal_after_change
2452 and update_compositions after insert_from_string_before_markers.
2453
2454 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2455
2456 * xfaces.c (split_font_name): Use the right field when
2457 checking for `[...]' syntax.
2458
2459 * buffer.c (copy_overlays): New function.
2460 (clone_per_buffer_values): Use it.
2461
2462 * buffer.h (OVERLAY_PLIST): New macro.
2463
2464 * keymap.c (Fsingle_key_description): Replace a build_string with
2465 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2466
2467 * fontset.c (Ffontset_info): Check that face is non-null
2468 before accessing its fields.
2469
2470 2001-05-15 Gerd Moellmann <gerd@gnu.org>
2471
2472 * keyboard.c (read_key_sequence): Prevent generating a fake
2473 prefix key twice.
2474
2475 * xfaces.c (split_font_name): Handle `[...]' for the right
2476 font name fields.
2477
2478 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2479 of CCL_STAT_INVALID_CMD.
2480
2481 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2482
2483 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2484 in <var> has no default value yet.
2485
2486 * xfaces.c (try_alternative_families): First try the FAMILY.
2487 And if nothing is found in the end, try again with scalable fonts.
2488 (try_font_list): Let try_alternative_families do a bit more of
2489 the work. Only use FAMILY if it is not nil.
2490 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2491
2492 2001-05-14 Gerd Moellmann <gerd@gnu.org>
2493
2494 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2495 pointer shape when show_mouse_face has already done it.
2496
2497 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
2498 full-width rows.
2499
2500 * xfaces.c (split_font_name): Make sure to leave the loop
2501 with the right value of `i'.
2502
2503 * xfaces.c (split_font_name): Handle matrix transformations
2504 in the pixel and point size fields of XLFD font names.
2505 (xlfd_point_size): Likewise.
2506
2507 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2508
2509 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
2510 (x_to_w32_font): Add prototype.
2511
2512 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2513 redefining, to avoid compiler warnings.
2514
2515 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2516
2517 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2518 (w32_get_bdf_glyph): Cast between unsigned char and char when
2519 passing arguments to subroutines, to shut up compiler warnings.
2520 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2521 GET_HEX_VAL.
2522
2523 * xfaces.c: Include keyboard.h before frame.h, not after it.
2524
2525 * widget.c: Include keyboard.h before frame.h.
2526
2527 * w32term.h (struct image, struct face): Forward declaration, to
2528 avoid compiler warnings.
2529
2530 2001-05-11 Gerd Moellmann <gerd@gnu.org>
2531
2532 * keyboard.c (read_key_sequence): Don't modify events when
2533 generating fake prefix keys (mode-line, scroll-bar, ...) since
2534 this prevents proper processing of such events when pushed back
2535 into unread-command-events.
2536
2537 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2538 actually redrawn. Make the function static.
2539 (note_mouse_highlight): Fix a case where the mouse cursor
2540 was changed back to the text cursor.
2541
2542 * xterm.h (clear_mouse_face): Remove prototype.
2543
2544 * xdisp.c (try_window_id): Fix the fix and set the right
2545 window_end_vpos.
2546
2547 * xdisp.c (try_window_id): Fix computation of window end in the
2548 case that lines were deleted at the end of the window. Add some
2549 more debug_method_adds.
2550
2551 * xfaces.c (try_alternative_families): New function.
2552 (try_font_list): Use it. If ATTRS specifies a family, check
2553 fonts from that family first.
2554 (choose_face_font): Remove code setting the family part of
2555 the pattern to nil.
2556
2557 2001-05-10 Gerd Moellmann <gerd@gnu.org>
2558
2559 * xdisp.c (try_window_id): Fix case of all changes before
2560 the window start.
2561
2562 * xdisp.c (try_window_id): Add some xasserts.
2563
2564 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2565
2566 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2567
2568 2001-05-09 Dave Love <fx@gnu.org>
2569
2570 * xdisp.c (GIVE_UP): Fix for K&R C.
2571
2572 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2573
2574 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2575
2576 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2577 back to the text cursor shape without need.
2578
2579 2001-05-07 Gerd Moellmann <gerd@gnu.org>
2580
2581 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2582
2583 * dispextern.h (inverse_video): Declare extern.
2584
2585 * keyboard.c (delete_kboard): Handle the case that selected_frame
2586 has been deleted in the course of x_connection_closed.
2587
2588 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2589
2590 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2591 Fix the change from 2001-04-30.
2592
2593 2001-05-03 Gerd Moellmann <gerd@gnu.org>
2594
2595 * xfns.c (file_dialog_unmap_cb): New function.
2596 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2597 where a dialog is closed via the window manager.
2598
2599 * xdisp.c (try_window_id): Cases of changes all in front of
2600 the window start or all below the window end mostly rewritten.
2601 (redisplay_window): Move the tests if try_window_id is
2602 applicable to try_window_id.
2603 (GIVE_UP): New macro.
2604
2605 2001-05-02 Gerd Moellmann <gerd@gnu.org>
2606
2607 * xterm.c (expose_window): Return int. If W is the window
2608 currently being updated, mark the frame garbaged.
2609 Fix computation of rows intersecting the exposed rectangle.
2610 (expose_window_tree): Stop when expose_window returns 0.
2611
2612 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2613 again if it has already been drawn.
2614
2615 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2616
2617 * syntax.c (update_syntax_table): Check that oldi has the same
2618 properties as old_prop before deciding not to invalidate.
2619
2620 2001-04-30 Gerd Moellmann <gerd@gnu.org>
2621
2622 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2623 read-only text that is so because of text properties.
2624
2625 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
2626 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
2627 windows that are components of a Lucid menu bar.
2628
2629 2001-04-27 Gerd Moellmann <gerd@gnu.org>
2630
2631 * term.c (turn_on_face): Fix reverse video handling on terminals
2632 that don't support colors.
2633
2634 2001-04-26 Gerd Moellmann <gerd@gnu.org>
2635
2636 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2637 a non-buffer.
2638
2639 2001-04-25 Gerd Moellmann <gerd@gnu.org>
2640
2641 * term.c (toggle_highlight): New function.
2642 (turn_on_face): Change handling of reverse video.
2643
2644 * process.c (wait_reading_process_input):
2645 Call record_asynch_buffer_change only if a timer really changed buffers.
2646
2647 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2648 of the number of overlays to check.
2649
2650 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2651
2652 * xdisp.c (try_window_id): Fix a case where window_end_pos
2653 and window_end_bytepos were not adjusted.
2654
2655 2001-04-23 Gerd Moellmann <gerd@gnu.org>
2656
2657 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2658 zero instead of -1.
2659
2660 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2661
2662 * process.c (wait_reading_process_input) [!subprocesses]:
2663 Don't reference waiting_for_user_input_p, it's not defined in the
2664 branch without async subprocesses support.
2665
2666 2001-04-19 Gerd Moellmann <gerd@gnu.org>
2667
2668 * keyboard.c (delete_kboard): Prevent a dangling reference
2669 from current_kboard to KB, which is freed.
2670
2671 * process.c (wait_reading_process_input):
2672 Call record_asynch_buffer_change after running timers, to make
2673 read_key_sequence aware of buffer changes from under it.
2674
2675 2001-04-18 Gerd Moellmann <gerd@gnu.org>
2676
2677 * xfaces.c (Qscalable_fonts_allowed): New variable.
2678 (realizing_basic_faces_p): Removed.
2679 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2680 removed.
2681 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
2682 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2683 for scalable-fonts-allowed to t.
2684
2685 * fileio.c (Finsert_file_contents): If the file size returned from
2686 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
2687 read from files on a procfs whose contents are generated dynamically.
2688
2689 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2690
2691 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2692 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2693 (__memalign_hook): Make the two prototypes consistent.
2694
2695 2001-04-17 Gerd Moellmann <gerd@gnu.org>
2696
2697 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2698 matrix of mini-windows.
2699
2700 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2701
2702 * intervals.c (find_interval): Don't rebalance during signal handling.
2703
2704 2001-04-11 Gerd Moellmann <gerd@gnu.org>
2705
2706 * fns.c: Include blockinput.h.
2707
2708 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2709
2710 2001-04-10 Gerd Moellmann <gerd@gnu.org>
2711
2712 * fns.c (Fcompare_strings): Fix return values.
2713
2714 * window.c (window_scroll): Change the meaning of N to mean
2715 N screen-fulls or N lines.
2716 (window_scroll_pixel_based, window_scroll_line_based)
2717 (scroll_command, Fscroll_other_window): Change accordingly.
2718
2719 * window.c (window_scroll_pixel_based, Frecenter):
2720 Call window_box_height instead of using it.last_visible_y for the
2721 height of the window.
2722
2723 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2724 instead of using it.last_visible_y for the height of the window.
2725
2726 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
2727 From Dan Holmsand <dan@eyebee.com>.
2728
2729 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
2730 able to write to hidden and system files. From Dan Holmsand
2731 <dan@eyebee.com>.
2732
2733 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2734 Holmsand <dan@eyebee.com>.
2735
2736 2001-04-09 Gerd Moellmann <gerd@gnu.org>
2737
2738 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2739
2740 * window.c (window_internal_height): Return 1 less if the
2741 window has a header line.
2742
2743 * xdisp.c (try_window_id): When scrolling on a terminal, take
2744 the change of window_internal_height into account.
2745
2746 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2747
2748 * gmalloc.c (align): If the argument SIZE would overflow
2749 __malloc_ptrdiff_t, fail right away.
2750
2751 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2752
2753 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2754 Make sure the tooltip is completely visible.
2755 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2756
2757 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2758
2759 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2760
2761 2001-04-06 Dave Love <fx@gnu.org>
2762
2763 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2764 Fix test of `from'.
2765
2766 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2767
2768 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
2769
2770 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2771
2772 2001-04-05 Gerd Moellmann <gerd@gnu.org>
2773
2774 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2775
2776 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
2777
2778 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2779 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2780
2781 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2782 shell widget's position only if it is non-null.
2783
2784 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2785 Set f->output_data.x->widget to null after destroying it.
2786
2787 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2788 FILENAME to bring it in synch with the documentation.
2789
2790 * xfaces.c (realizing_basic_faces_p): Renamed from
2791 realize_default_face_p.
2792 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2793 (realize_default_face): Don't set the flag.
2794
2795 2001-04-04 Gerd Moellmann <gerd@gnu.org>
2796
2797 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2798
2799 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2800
2801 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2802 the buffer that was used for echoing.
2803
2804 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2805 (first_font_matching): Removed unused function.
2806 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2807 (may_use_scalable_font_p): Remove parameter FONT; rename
2808 parameter NAME to FONT.
2809 (x_face_list_fonts): Fix missing bounds check.
2810 (realizing_default_face_p): New variable.
2811 (realize_default_face): Set and clear that flag.
2812 (x_face_list_fonts): When called during the realization of the
2813 default face, and no matching fonts are found when ignoring
2814 scalable fonts and fonts matching a regexp from
2815 face-ignored-fonts, try without ignoring fonts.
2816
2817 2001-04-03 Gerd Moellmann <gerd@gnu.org>
2818
2819 * xfns.c (postprocess_image): New function.
2820 (lookup_image): Call it for all image types except PostScript.
2821 (x_kill_gs_process): Call postprocess_image.
2822
2823 * xterm.c (x_use_underline_position_properties): New variable.
2824 (x_draw_glyph_string): Use it.
2825 (syms_of_xterm): DEFVAR_BOOL it.
2826
2827 2001-04-02 Gerd Moellmann <gerd@gnu.org>
2828
2829 * xterm.c (x_alloc_nearest_color_1): New function.
2830 (x_alloc_nearest_color): Use it.
2831 (x_color_cells): Take a Display as argument, instead of a frame.
2832 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2833 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2834 (x_initialize): Register cvt_string_to_pixel as resource converter
2835 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2836
2837 2001-03-30 Gerd Moellmann <gerd@gnu.org>
2838
2839 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2840 (set_iterator_to_next): If a string from a display property ends,
2841 consider the case that this might also be the end of an
2842 overlay string having the display property.
2843
2844 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
2845
2846 * xdisp.c (reseat_to_string): Undo last change.
2847
2848 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2849 matrix of a window when the header line changes, when
2850 new rows are allocated, or when the width changes.
2851
2852 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2853
2854 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
2855
2856 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2857
2858 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2859 deprecated.
2860
2861 2001-03-29 Gerd Moellmann <gerd@gnu.org>
2862
2863 * data.c (Fsubr_interactive_form): New function.
2864 (syms_of_data): Defsubr it.
2865
2866 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2867 (live_float_p, live_misc_p): Return 1 only if the offset of the
2868 pointer in its block is >= 0.
2869
2870 2001-03-28 Paul Eggert <eggert@twinsun.com>
2871
2872 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2873 microseconds calcuation. Avoid double-rounding problem.
2874 In doc string, warn that the result is approximate.
2875
2876 2001-03-28 Gerd Moellmann <gerd@gnu.org>
2877
2878 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2879 bind `inhibit-eval-during-redisplay' to t.
2880
2881 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2882
2883 * xdisp.c (inhibit_eval_during_redisplay)
2884 (Qinhibit_eval_during_redisplay): New variables.
2885 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2886 don't eval, return nil instead.
2887 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2888 Initialize Qinhibit_eval_during_redisplay.
2889
2890 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2891 the iterator's multibyte_p flag.
2892
2893 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2894 instead of setting it to zero; it's incremented for each frame
2895 where the menu face is changed.
2896
2897 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2898 change bottom shadow accordingly.
2899
2900 * xterm.c (expose_window_tree, expose_frame): Don't compute
2901 intersections here.
2902 (expose_window): Do it here instead.
2903 (x_draw_glyph_string): Fix a computation of the underline position.
2904
2905 * bytecode.c (BYTE_CODE_QUIT): New macro.
2906 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2907
2908 2001-03-27 Gerd Moellmann <gerd@gnu.org>
2909
2910 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2911 Give up if matrix starts in an ellipsis.
2912 (init_from_display_pos): Do nothing if POS doesn't specify
2913 a dpvec_index but the iterator has such a position.
2914
2915 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2916
2917 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2918 x/y position is (0, 0) after destroying the menu bar, restore
2919 its original position.
2920
2921 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2922 (init_from_display_pos): Use it.
2923 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2924
2925 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2926
2927 * xdisp.c (try_window_id): Undo last change.
2928
2929 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2930
2931 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2932
2933 * buffer.c (syms_of_buffer): Doc fix.
2934
2935 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2936
2937 * xfaces.c (x_update_menu_appearance): Use local variable
2938 popup_path for setting font resources.
2939
2940 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2941
2942 * frame.c (Fframe_list): Don't reference tip_frame if
2943 HAVE_WINDOW_SYSTEM is not defined.
2944
2945 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2946 <wl@gnu.org>.
2947
2948 2001-03-25 Gerd Moellmann <gerd@gnu.org>
2949
2950 * xdisp.c (init_from_display_pos): Test invisible property
2951 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
2952
2953 * xdisp.c (redisplay_internal) <update one window>: Make sure
2954 last_arrow_position and last_arrow_string are set.
2955
2956 * frame.c (Fframe_list): Don't return a tooltip frame.
2957
2958 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2959
2960 * xdisp.c (mark_window_display_accurate_1): New function,
2961 extracted from mark_window_display_accurate.
2962 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
2963 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2964 (mark_window_display_accurate): Use it.
2965 (redisplay_internal): Use it for the selected window.
2966 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2967 for the selected frame.
2968
2969 * xdisp.c Use make_number, for readability.
2970 (try_window_id): Disable rows below the window end.
2971 (try_window_reusing_current_matrix): Use cursor_row_p.
2972 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2973 of rows.
2974 (init_from_display_pos): If POS specifies a position in a display
2975 vector, maybe get the iterator set up for that ellipsis.
2976
2977 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2978
2979 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2980
2981 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2982
2983 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2984
2985 * xfaces.c (x_update_menu_appearance): Use a different path
2986 for Lucid popup menus.
2987
2988 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2989
2990 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2991
2992 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2993 (string_buffer_position): Use `make_number'.
2994
2995 2001-03-22 Gerd Moellmann <gerd@gnu.org>
2996
2997 * xfaces.c (x_update_menu_appearance): Renamed from
2998 x_set_menu_face_resources. Use different resources for popups.
2999
3000 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3001 (GC_CHECK_STRING_BYTES): Don't define.
3002
3003 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3004 Removed, together with subroutines.
3005 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
3006 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
3007
3008 * dispextern.h (x_set_menu_resources_from_menu_face):
3009 Remove prototype.
3010
3011 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
3012 Remove calls to x_set_menu_resources_from_menu_face.
3013
3014 * xfaces.c (xm_set_menu_resources_from_menu_face):
3015 Remove #ifndef LESSTIF_VERSION.
3016
3017 * xmenu.c: Include widget.h.
3018 (single_submenu): Return int. Some cleanup.
3019 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3020
3021 2001-03-21 Gerd Moellmann <gerd@gnu.org>
3022
3023 * xterm.c (x_update_window_end): Handle overwritten mouse face
3024 also for tool bar windows.
3025 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3026 DRAW is DRAW_IMAGE_RAISED.
3027
3028 2001-03-20 Gerd Moellmann <gerd@gnu.org>
3029
3030 * print.c (syms_of_print): Doc fixes.
3031
3032 * fns.c (Fmd5): Doc fix.
3033
3034 2001-03-19 Gerd Moellmann <gerd@gnu.org>
3035
3036 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3037 Clear area of the frame not occupied by the scroll bar.
3038
3039 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3040 tip frame's root window buffer to *tip* right after creating
3041 the frame.
3042
3043 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3044 is an integer don't have to be for space characters.
3045
3046 2001-03-16 Gerd Moellmann <gerd@gnu.org>
3047
3048 * indent.c (current_column, current_column_1, Fmove_to_column)
3049 (compute_motion): Handle characters from display vectors differently.
3050
3051 2001-03-15 Kenichi Handa <handa@etl.go.jp>
3052
3053 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3054 drawing glyph string.
3055
3056 2001-03-15 Gerd Moellmann <gerd@gnu.org>
3057
3058 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3059 (command_loop_1): Undo last change.
3060
3061 * xterm.c (fast_find_position): Return the correct vpos.
3062
3063 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
3064 non-null, set a per-buffer value in BUF instead of the current buffer.
3065 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3066 Call store_symval_forwarding with BUF null.
3067 (set_internal): Call store_symval_forwarding with the BUF
3068 parameter passed to set_internal. Formerly, the value was always
3069 set in the current buffer; the buffer recorded in specbind for
3070 this case wasn't used.
3071 (arith_driver): Reindent.
3072
3073 * buffer.c (swap_out_buffer_local_variables):
3074 Call store_symval_forwarding with BUF null.
3075
3076 * lisp.h (store_symval_forwarding): Change prototype.
3077
3078 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3079
3080 2001-03-14 Gerd Moellmann <gerd@gnu.org>
3081
3082 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3083 FOR_DELETION. Avoid resizing the mini-window of the selected
3084 frame if FOR_DELETION is set.
3085 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3086 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3087 signature.
3088
3089 * window.c (Fset_window_configuration): Change call to
3090 do_switch_frame to new format.
3091
3092 * keyboard.c (quit_throw_to_read_char): Change call to
3093 do_switch_frame to new format.
3094
3095 * lisp.h (do_switch_frame): Change prototype.
3096
3097 * frame.c (Fframe_parameters): In the `buffer-list' frame
3098 parameter, store the buffer list of FRAME, not the list of the
3099 selected frame.
3100
3101 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3102 box just because the glyph row's full_width_p flag is set.
3103
3104 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3105
3106 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3107 skip the padding blanks inserted in extend_face_to_end_of_line,
3108 before checking for trailing whitespace.
3109
3110 2001-03-13 Gerd Moellmann <gerd@gnu.org>
3111
3112 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
3113 Remove special handling for LessTif/Motif.
3114 (toplevel): Don't include Xm/Xm.h.
3115
3116 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3117 Remove workaround code for LessTif; it doesn't work anymore.
3118
3119 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
3120 Xm/ScrollBarP.h.
3121
3122 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3123 Don't access private scroll bar data; it's no longer necessary with
3124 contemporary LessTif.
3125
3126 * xfaces.c (xm_set_menu_resources_from_menu_face):
3127 Change #if 0 to #ifndef LESSTIF_VERSION.
3128
3129 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3130 removing button grabs.
3131
3132 2001-03-13 Kenichi Handa <handa@etl.go.jp>
3133
3134 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3135 and clip-large-size-font as obsolete.
3136
3137 * lread.c (read_multibyte): Check the validity of multibyte
3138 sequence. If invalid, return the first byte.
3139
3140 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3141
3142 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3143 before running the command; timer functions or process
3144 filters may have set it.
3145
3146 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3147
3148 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3149 Doc fix.
3150
3151 2001-03-12 Gerd Moellmann <gerd@gnu.org>
3152
3153 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3154 to sprintf.
3155
3156 2001-03-09 Gerd Moellmann <gerd@gnu.org>
3157
3158 * dispextern.h (string_buffer_position): Add prototype.
3159
3160 * xdisp.c (string_buffer_position, display_prop_string_p)
3161 (single_display_prop_string_p): New functions.
3162
3163 * xterm.c (note_mouse_highlight): If there's no help-echo on
3164 a string, look at the buffer text ``under'' it.
3165
3166 * keyboard.c (make_lispy_event): Add string info to the event,
3167 analogous to what's done on mode lines.
3168 (read_key_sequence): For a click on a string, consider `local-map'
3169 and `keymap' of that string.
3170
3171 * keyboard.c (make_lispy_event, make_lispy_movement):
3172 Adjust calls to buffer_posn_from_coords to new format.
3173
3174 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3175
3176 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
3177 POS; return void.
3178
3179 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
3180 flags argument to emacs_open; it seems to conflict with O_EXCL.
3181
3182 2001-03-09 Kenichi Handa <handa@etl.go.jp>
3183
3184 * composite.h (struct composition): Change types of members;
3185 glyph_len to unsigned, width to unsigned short.
3186
3187 2001-03-08 Andrew Innes <andrewi@gnu.org>
3188
3189 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3190 menu titles.
3191
3192 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3193
3194 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3195 instead of nil.
3196
3197 * xterm.c (note_mouse_highlight): Handle mouse-face and
3198 help-echo in strings.
3199 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3200 (fast_find_string_pos): New function.
3201
3202 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3203 (display_string): Call face_at_string_position with new parameter.
3204
3205 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3206 Handle `mouse-face'.
3207
3208 * dispextern.h (face_at_string_position): Change prototype.
3209
3210 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
3211
3212 * keyboard.c (make_lispy_event): Avoid generating drag events
3213 if the mouse hasn't actually moved to another buffer position.
3214
3215 2001-03-08 Dave Love <fx@gnu.org>
3216
3217 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
3218
3219 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3220
3221 * process.c (Fset_process_window_size): Fix a typo.
3222
3223 2001-03-08 Kenichi Handa <handa@etl.go.jp>
3224
3225 * coding.c (detect_coding_sjis): Do more rigid check.
3226 (detect_coding_big5): Likewise.
3227 (decode_coding_sjis_big5): Likewise.
3228 (Fdetect_coding_region): Call detect_coding_system with tailing
3229 anchor byte `\0' for more rigid detection.
3230 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
3231 (Fdetect_coding_string): Likewise.
3232
3233 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3234
3235 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3236 a string before extracting its data.
3237
3238 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3239
3240 * window.c (Frecenter): Rewrite code handling negative values
3241 of ARG on graphical frames.
3242
3243 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3244
3245 * window.c (displayed_window_lines): If W->start is outside the
3246 accessible portion of the buffer, call start_display with BEGV or
3247 ZV instead of W->start.
3248
3249 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3250
3251 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3252
3253 * process.c (Fset_process_filter): Don't crash if the input
3254 file descriptor of PROCESS is closed.
3255 (Fset_process_window_size): Likewise.
3256
3257 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3258
3259 * xterm.c (XTflash): Make the timeout of select shorter, and call
3260 select repeatedly until the desired time expires.
3261
3262 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3263
3264 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3265
3266 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3267
3268 * lisp.h (Vwindow_list): Declare extern.
3269
3270 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3271
3272 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3273
3274 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3275
3276 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3277 to detect a case where we have to highlight a different region
3278 despite not having left the currently highlighted region.
3279 Set mouse_face_overlay in the x_display_info.
3280 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
3281
3282 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3283
3284 * buffer.c (mouse_face_overlay_overlaps): New function.
3285
3286 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3287 (Qmouse_face): Declare extern.
3288
3289 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3290 if face_change_count is non-zero.
3291
3292 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3293
3294 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3295 that the source is unibyte.
3296
3297 2001-03-05 Dave Love <fx@gnu.org>
3298
3299 * xterm.c (XTmouse_position): Fix typo.
3300
3301 2001-03-05 Gerd Moellmann <gerd@gnu.org>
3302
3303 * minibuf.c (read_minibuf): Clean up the binding stack if
3304 called noninteractively.
3305
3306 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3307
3308 * coding.c (syms_of_coding): Docstring modified.
3309
3310 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3311
3312 * charset.c (char_to_string): If a single byte char has modifier
3313 bits that can't be reflected to the character code, ignore them
3314 instead of signaling an error.
3315
3316 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3317
3318 * s/msdos.h: Update copyright notice.
3319
3320 * dosfns.h: Update copyright notice.
3321
3322 * dosfns.c: Update copyright notice.
3323
3324 * msdos.c: Update copyright notice.
3325
3326 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3327
3328 * xterm.c (glyph_rect): New function.
3329 (XTmouse_position): Use it to raise the threshold for mouse
3330 movement event generation.
3331
3332 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3333
3334 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
3335 specifies (reverse . t), reverse the initial screen colors.
3336 (IT_set_frame_parameters): If the property is foreground-color,
3337 but we are reversing the colors, set bg_set, not fg_set.
3338 Likewise for setting background-color and reversing: set fg_set.
3339 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
3340 in effect.
3341
3342 * xfaces.c (Finternal_set_lisp_face_attribute)
3343 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
3344 parameters alist.
3345
3346 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3347
3348 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
3349 to a single slash in the middle of file names.
3350
3351 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
3352 Accept only alphanumeric time zone names.
3353
3354 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
3355 or width area.
3356 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3357 a widget to zero height.
3358
3359 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3360
3361 * window.c (Fwindow_end): Call move_it_past_eol only if
3362 ending up on a partially visible line.
3363
3364 2001-03-01 Dave Love <fx@gnu.org>
3365
3366 * ccl.c (Fccl_execute): Doc fix.
3367
3368 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3369
3370 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
3371 of the tool bar before calling x_figure_window_size.
3372
3373 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
3374 NULL after destroying it, otherwise XTread_socket can access a
3375 destroyed widget when input is unblocked.
3376
3377 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
3378
3379 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
3380 same name as before, although there was a change in fontsets.
3381
3382 2001-02-28 Ken Raeburn <raeburn@gnu.org>
3383
3384 * lisp.h (Fframe_parameter): Declare.
3385
3386 * window.c (set_window_buffer): Field vscroll is an int, not a
3387 Lisp_Object.
3388
3389 2001-02-28 Gerd Moellmann <gerd@gnu.org>
3390
3391 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
3392 NULL instead.
3393
3394 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
3395 NULL instead.
3396
3397 * alloc.c (toplevel): Include process.h.
3398 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
3399 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
3400 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
3401 (allocate_vector, allocate_hash_table, allocate_window)
3402 (allocate_frame, allocate_process, allocate_other_vector):
3403 New functions.
3404 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
3405 (mark_maybe_pointer): New function.
3406 (mark_memory): Also mark Lisp data to which only pointers
3407 remain and not Lisp_Objects.
3408 (min_heap_address, max_heap_address): New variables.
3409 (mem_find): Return MEM_NIL if START is below min_heap_address or
3410 above max_heap_address.
3411 (mem_insert): Compute min_heap_address and max_heap_address.
3412
3413 * process.c (make_process): Use allocate_process.
3414
3415 * frame.c (make_frame): Use allocate_frame.
3416
3417 * window.c (make_window, make_dummy_parent): Use allocate_window.
3418 (Fcurrent_window_configuration): Use allocate_other_vector.
3419
3420 * lisp.h (allocate_vectorlike): Remove prototype.
3421 (allocate_vector, allocate_other_vector, allocate_frame)
3422 (allocate_window, allocate_process, allocate_hash_table):
3423 Add prototypes.
3424
3425 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3426 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3427
3428 2001-02-27 Kenichi Handa <handa@etl.go.jp>
3429
3430 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3431 treat the produced bytes as a valid multibyte sequence.
3432
3433 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
3434 (ccl_driver) <CCL_WriteMultibyteChar2>:
3435 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
3436 <ccl_finish>: Set ccl->eight_bit_control properly.
3437
3438 * ccl.h (struct ccl_program): New member eight_bit_control.
3439
3440 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3441
3442 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3443 accessible_keymaps_char_table.
3444 (accessible_keymaps_char_table): Obey `is_metized'.
3445 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3446 Lisp_Object.
3447
3448 2001-02-26 Gerd Moellmann <gerd@gnu.org>
3449
3450 * dispnew.c: Check HAVE_TERM_H before including term.h.
3451
3452 2001-02-24 Andrew Innes <andrewi@gnu.org>
3453
3454 * makefile.w32-in: Update copyright notice.
3455
3456 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3457
3458 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3459
3460 2001-02-24 Kenichi Handa <handa@etl.go.jp>
3461
3462 * Makefile.in (lisp): Add international/utf-8.elc.
3463
3464 * fontset.c (Fnew_fontset): Fix handling of the case that an
3465 element of FONTLIST is a cons of family and registry.
3466
3467 2001-02-23 Jason Rumney <jasonr@gnu.org>
3468
3469 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3470 to height unconditionally.
3471
3472 * w32term.c (x_set_glyph_string_background_width): Extend the
3473 background face to the end of the drawing area in the text area, only.
3474 (x_insert_glyphs): Call window_box_left to obtain the left
3475 x-coordinate of the area to shift.
3476
3477 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3478 safe_run_hooks.
3479
3480 2001-02-22 Andrew Innes <andrewi@gnu.org>
3481
3482 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
3483 ($(BLD)\dispnew.obj):
3484 ($(BLD)\editfns.obj):
3485 ($(BLD)\fileio.obj):
3486 ($(BLD)\filelock.obj):
3487 ($(BLD)\keyboard.obj):
3488 ($(BLD)\w32proc.obj):
3489 ($(BLD)\process.obj):
3490 ($(BLD)\sysdep.obj): Ditto.
3491
3492 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3493 header files.
3494 ($(BLD)/dispnew.$(O)):
3495 ($(BLD)/editfns.$(O)):
3496 ($(BLD)/fileio.$(O)):
3497 ($(BLD)/filelock.$(O)):
3498 ($(BLD)/keyboard.$(O)):
3499 ($(BLD)/w32proc.$(O)):
3500 ($(BLD)/process.$(O)):
3501 ($(BLD)/sysdep.$(O)): Ditto.
3502
3503 2001-02-22 Gerd Moellmann <gerd@gnu.org>
3504
3505 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3506 at the start of the function, check that the \n in it->c is
3507 from the iterator's current position.
3508
3509 * xdisp.c (handle_single_display_prop): Add parameter
3510 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3511 properties which replace the display of text with something else.
3512 (handle_display_prop): Call handle_single_display_prop with
3513 additional argument saying if we already replaced text display
3514 with something else. Use AREF.
3515 (with_echo_area_buffer_unwind_data, display_menu_bar)
3516 (decode_mode_spec_coding): Use AREF and ASIZE.
3517
3518 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3519 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3520 * vmstime.h: Files removed.
3521
3522 * unexencap.c, unexfx2800.c: Files removed.
3523
3524 * dispnew.c (direct_output_for_insert): Give up if we are showing
3525 a message or just cleared the message because we might need to
3526 resize the echo area window or display an empty echo area.
3527
3528 2001-02-21 Gerd Moellmann <gerd@gnu.org>
3529
3530 * xdisp.c (redisplay_internal): Do the
3531 mark_window_display_accurate after all windows have been
3532 redisplayed because this call resets flags in buffers which are
3533 needed for proper redisplay.
3534
3535 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3536 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
3537 the old names.
3538
3539 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3540 busy_window to hourglass_window, busy_p to hourglass_p.
3541
3542 * msdos.h (struct x_output): Rename busy_window to
3543 hourglass_window, busy_p to hourglass_p.
3544
3545 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3546 busy_window to hourglass_window, busy_p to hourglass_p.
3547
3548 * xfns.c: Rename everything containing *busy_cursor* and similar
3549 to *hourglass*.
3550 (syms_of_w32fns): Rename x-busy-pointer-shape to
3551 x-hourglass-pointer-shape, display-busy-cursor to
3552 display-hourglass, busy-cursor-delay to hourglass-delay.
3553
3554 * w32fns.c: Rename everything containing *busy_cursor* and similar
3555 to *hourglass*.
3556 (syms_of_w32fns): Rename x-busy-pointer-shape to
3557 x-hourglass-pointer-shape, display-busy-cursor to
3558 display-hourglass, busy-cursor-delay to hourglass-delay.
3559
3560 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3561 of its busy_p flag.
3562
3563 * dispextern.h (start_hourglass, cancel_hourglass)
3564 (display_hourglass_p): Renamed from *busy_cursor*.
3565
3566 2001-02-20 Gerd Moellmann <gerd@gnu.org>
3567
3568 * keyboard.c (read_char): When an event from unread-command-events
3569 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3570
3571 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3572 equal to the current buffer.
3573
3574 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3575 nil, otherwise we're left with truncate_lines t when a message
3576 is printed with message-truncate-lines bound to t.
3577
3578 2001-02-19 Gerd Moellmann <gerd@gnu.org>
3579
3580 * window.c (Fmove_to_window_line): Undo last change.
3581 (displayed_window_lines): Call line_bottom_y to determine
3582 the line's bottom position.
3583
3584 * dispextern.h (line_bottom_y): Add prototype.
3585
3586 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
3587 (pos_visible_p): Use it.
3588
3589 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3590 set redisplaying_p to 0 here instead of in Frecursive_edit.
3591 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3592 set redisplaying_p.
3593
3594 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
3595 New variables.
3596 (syms_of_xdisp): Initialize new variables.
3597 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3598 Specbind `inhibit-menubar-update' when updating the menu bar.
3599
3600 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3601 safe_run_hooks.
3602
3603 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3604 safe_run_hooks.
3605
3606 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3607 is null.
3608
3609 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3610 to the start of the file.
3611
3612 2001-02-16 Gerd Moellmann <gerd@gnu.org>
3613
3614 * window.c (set_window_buffer): Fix last change.
3615
3616 * window.c (set_window_buffer): Set window's vscroll to 0.
3617
3618 * window.c (coordinates_in_window): Increase width of area
3619 where the vertical line can be dragged.
3620
3621 * xterm.c (x_set_glyph_string_background_width): Extend the
3622 background face to the end of the drawing area in the text
3623 area, only.
3624
3625 * xdisp.c (handle_single_display_prop): Set iterator's position
3626 to where the `display' property starts, like for images.
3627 (dump_glyph): New function.
3628 (dump_glyph_row): Use it. Dump info about marginal areas.
3629
3630 * dispnew.c (direct_output_for_insert): Recognize more cases where
3631 glyphs can be written instead of being inserted.
3632
3633 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3634 the left x-coordinate of the area to shift.
3635
3636 * dired.c (directory_files_internal): Set result list to nil
3637 before retrying.
3638
3639 2001-02-15 Kenichi Handa <handa@etl.go.jp>
3640
3641 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3642 invalid multibyte sequence, treat *SRC as a character of
3643 eight-bit-graphic.
3644
3645 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3646
3647 * textprop.c (Fset_text_properties): Doc fix.
3648
3649 2001-02-15 Gerd Moellmann <gerd@gnu.org>
3650
3651 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3652
3653 2001-02-14 Dave Love <fx@gnu.org>
3654
3655 * coding.c: Doc and message fixes.
3656
3657 2001-02-14 Andrew Innes <andrewi@gnu.org>
3658
3659 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3660 Emacs frame above the screen size.
3661
3662 2001-02-14 Gerd Moellmann <gerd@gnu.org>
3663
3664 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3665
3666 2001-02-13 Gerd Moellmann <gerd@gnu.org>
3667
3668 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3669 case that TO ends up beyond ZV after running before-change-functions.
3670
3671 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3672 the selected window if it is showing the buffer in question.
3673
3674 * dired.c (directory_files_internal): Initialize errno.
3675 (toplevel): Include errno.h.
3676
3677 2001-02-13 Kenichi Handa <handa@etl.go.jp>
3678
3679 * xfaces.c (best_matching_font): New parameter width_ratio.
3680 Multiply avgwidth by width_ratio.
3681 (choose_face_font): Call best_matching_font with width_ratio
3682 calculated from the column width of C.
3683
3684 2001-02-12 Andrew Innes <andrewi@gnu.org>
3685
3686 The following changes are to draw box lines inside characters area
3687 if line-width is negative.
3688
3689 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3690 face->box_line_width is negative.
3691 (x_produce_stretch_glyph): Likewise.
3692 (x_produce_glyphs): Likewise.
3693 (x_estimate_mode_line_height): Likewise.
3694 (x_draw_glyph_string_background): Likewise.
3695 (x_draw_glyph_string_foreground): Likewise.
3696 (x_draw_composite_glyph_string_foreground): Likewise.
3697 (x_draw_glyph_string_box): Likewise.
3698 (x_draw_image_foreground): Likewise.
3699 (x_draw_image_relief): Likewise.
3700 (x_draw_image_foreground_1): Likewise.
3701 (x_draw_image_glyph_string): Likewise.
3702
3703 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3704
3705 The following changes are to draw box lines inside characters area
3706 if line-width is negative.
3707
3708 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3709 face->box_line_width is negative.
3710 (x_produce_stretch_glyph): Likewise.
3711 (x_produce_glyphs): Likewise.
3712 (x_estimate_mode_line_height): Likewise.
3713 (x_draw_glyph_string_background): Likewise.
3714 (x_draw_glyph_string_foreground): Likewise.
3715 (x_draw_composite_glyph_string_foreground): Likewise.
3716 (x_draw_glyph_string_box): Likewise.
3717 (x_draw_image_foreground): Likewise.
3718 (x_draw_image_relief): Likewise.
3719 (x_draw_image_foreground_1): Likewise.
3720 (x_draw_image_glyph_string): Likewise.
3721
3722 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3723 and :line-width can be negative.
3724 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
3725
3726 2001-02-09 Jason Rumney <jasonr@gnu.org>
3727
3728 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3729 characters the same as ASCII and latin-1.
3730 (x_display_and_set_cursor): Check for the focus frame's selected
3731 window instead of selected_window.
3732 (x_after_update_window_line): Don't clear if frame's internal
3733 border width is zero.
3734 (x_new_font): Don't change a tooltip's size.
3735 (w32_initialize): Set char_ins_del_ok to 1.
3736
3737 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3738 (x_set_font): If font hasn't changed, avoid recomputing
3739 faces and other things.
3740 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3741 (Fx_create_frame): Add the tool bar height to the frame height.
3742 (x_create_tip_frame): Prevent changing the tooltip's
3743 background color by specifying a color for the default font
3744 in .Xdefaults.
3745 (Qcancel_timer): New variable.
3746 (syms_of_w32fns): Initialize and staticpro it.
3747 (Fx_hide_tip, Fx_show_tip): Use it.
3748 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3749 the timer.
3750 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3751
3752 * w32.c (init_environment): Duplicate local string before putenv.
3753
3754 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3755
3756 * charset.c (Fstring): A typo.
3757
3758 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3759
3760 * charset.c (Fstring): If all arguments are less than 256, return
3761 a unibyte string.
3762
3763 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3764 return a unibyte string.
3765
3766 * coding.c (code_convert_region): After detecting a coding, if
3767 nothing found, set coding->composing to COMPOSITION_NO.
3768 (decode_coding_string): Likewise.
3769
3770 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3771
3772 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3773 to avoid overflow.
3774
3775 2001-02-07 Kenichi Handa <handa@etl.go.jp>
3776
3777 * charset.c (parse_str_to_multibyte): New function.
3778
3779 * charset.h (parse_str_to_multibyte): Extern it.
3780
3781 * print.c (print_string): If we are going to print a unibyte
3782 string into a multibyte buffer, convert the string to multibyte by
3783 str_to_multibyte.
3784
3785 2001-02-06 Andrew Innes <andrewi@gnu.org>
3786
3787 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3788 been created. It seems we can get sent window messages such as
3789 WM_ERASEBKGND before we properly update a frame.
3790
3791 2001-02-06 Gerd Moellmann <gerd@gnu.org>
3792
3793 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3794 Avoid some unnecessary cursor positioning.
3795
3796 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3797
3798 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
3799 (LFACE_AVGWIDTH): New macro.
3800 (LFACEP): Use AREF.
3801 (check_lface_attrs): Check LFACE_AVGWIDTH.
3802 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3803 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3804 (merge_face_vectors): Check LFACE_AVGWIDTH.
3805 (Finternal_make_lisp_face): Use AREF.
3806 (xm_set_menu_resources_from_menu_face)
3807 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3808 (Finternal_lisp_face_empty_p): Use AREF.
3809 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3810 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3811 Compare average widths..
3812 (best_matching_font): Arrange for comparing average widths.
3813
3814 * dispextern.h (enum lface_attribute_index):
3815 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3816
3817 2001-02-05 Dave Love <fx@gnu.org>
3818
3819 * puresize.h: Revert last change following loadup.el change.
3820
3821 2001-02-05 Andrew Innes <andrewi@gnu.org>
3822
3823 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3824 invocation of temacs, to work with Windows 2000.
3825 (bootstrap-emacs): Ditto.
3826
3827 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3828
3829 * xterm.c (x_display_and_set_cursor): Check for the focus
3830 frame's selected window instead of selected_window.
3831
3832 * xdisp.c (try_scrolling): If point is in the line below the
3833 window, make sure to move the iterator at least a canonical
3834 char height down.
3835
3836 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
3837
3838 2001-02-05 Kenichi Handa <handa@etl.go.jp>
3839
3840 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3841 If invalid, execute CCL_INVALID_CMD.
3842 (ccl_driver): If the CCL program is terminated because of
3843 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3844 destination instead of throwing them away.
3845
3846 2001-02-02 Gerd Moellmann <gerd@gnu.org>
3847
3848 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3849 faces and other things.
3850
3851 * xdisp.c (get_next_display_element): Fix case of empty
3852 display table entry.
3853
3854 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3855
3856 * editfns.c (Fconstrain_to_field): Doc fix.
3857
3858 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3859 into `thoroughly', to make it consistent with the doc string.
3860
3861 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3862
3863 2001-02-01 Gerd Moellmann <gerd@gnu.org>
3864
3865 * search.c (search_buffer): Call set_search_regs with a byte
3866 position, not a character position.
3867
3868 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3869 minibuffer-only,
3870
3871 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3872
3873 * frame.c (Fmodify_frame_parameters): Doc fix.
3874
3875 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3876
3877 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3878 identifier which is not reserved by Standard C.
3879
3880 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3881
3882 * window.c (enum window_part): New enumeration.
3883 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3884 Qright_bitmap_area.
3885 (coordinates_in_window): Return an enumerator from enum
3886 window_part. Fix handling of right scroll bar.
3887 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3888 `right-fringe' instead of `left-bitmap-area' and
3889 `right-bitmap-area'. Use enumerators from enum window_part
3890 instead of hard-coded integers.
3891 (check_window_containing, window_from_coordinates):
3892 Use enumerators from enum window_part instead of hard-coded integers.
3893 (syms_of_window): Replace Qleft_bitmap_area and
3894 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3895
3896 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3897
3898 * editfns.c (Fformat_time_string): Doc fix.
3899
3900 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3901
3902 * keymap.c (Fwhere_is_internal): Use the first valid binding
3903 if no ascii binding is found (when firstonly is t).
3904
3905 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3906
3907 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3908 instead of Finteractive_p.
3909
3910 * lisp.h (interactive_p): Add prototype.
3911
3912 * eval.c (interactive_p): New function.
3913 (Finteractive_p): Use it.
3914
3915 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3916
3917 2001-01-31 Dave Love <fx@gnu.org>
3918
3919 * .gdbinit (hook-run): Define to run xreload.
3920
3921 * textprop.c (Fset_text_properties): Fix newline in doc string.
3922
3923 2001-01-30 Gerd Moellmann <gerd@gnu.org>
3924
3925 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3926 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
3927
3928 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
3929 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
3930 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3931
3932 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3933 height.
3934
3935 2001-01-30 Dave Love <fx@gnu.org>
3936
3937 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3938 AFTER_POTENTIAL_GC.
3939
3940 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3941
3942 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3943 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
3944
3945 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3946
3947 * textprop.c (Fset_text_properties): Doc fix.
3948
3949 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3950
3951 * xdisp.c (forward_to_next_line_start): Remove xassert.
3952
3953 2001-01-29 Jason Rumney <jasonr@gnu.org>
3954
3955 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
3956 returning without releasing it.
3957
3958 2001-01-29 Kenichi Handa <handa@etl.go.jp>
3959
3960 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3961 for '^', '$', and '\0'.
3962
3963 2001-01-28 Andrew Choi <akochoi@i-cable.com>
3964
3965 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3966 regex for '^', '$', and '\0'.
3967
3968 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3969 only if current_sblock has been initialized.
3970
3971 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3972 terminal frame even if it is the only visible frame.
3973
3974 2001-01-28 Kenichi Handa <handa@etl.go.jp>
3975
3976 * fontset.c (font_family_registry): Even if FONTNAME conform to
3977 XLFD, if it specifies other fields than family and registry,
3978 return FONTANME. New argument FORCE if nonzero cancel that feature.
3979 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
3980 a signle byte character. Don't set FAMILY part to nil here.
3981 It is handled by the caller choose_face_font.
3982 (Fnew_fontset): Call font_family_registry with FORCE 0.
3983 (Fset_fontset_font): Likewise.
3984
3985 2001-01-27 Gerd Moellmann <gerd@gnu.org>
3986
3987 * xdisp.c (display_line): Don't treat a newline as fitting
3988 on the line.
3989
3990 2001-01-26 Gerd Moellmann <gerd@gnu.org>
3991
3992 * window.c (size_window): Set the window's orig_top to nil when
3993 changing heights, so that a future shrink_mini_window won't
3994 restore a bogus height.
3995
3996 * frame.c (do_switch_frame): If selected frame has a mini-window,
3997 resize that to exact size.
3998
3999 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4000
4001 * xdisp.c (display_line): Simplify check for glyphs fitting
4002 entirely in the line.
4003
4004 * xfns.c (xic_style): New variable.
4005 (create_frame_xic): Move static variable to global scope for
4006 the case that `static' gets defined away.
4007
4008 2001-01-26 Kenichi Handa <handa@etl.go.jp>
4009
4010 * coding.c (decode_coding): Set a flag for inhibiting
4011 inconsistent eol.
4012 (code_convert_region): Always set saved_coding_symbol.
4013 (decode_coding_string): Likewise. Update coding->symbol when we
4014 encounter a inconsistent eol by the same way as code_convert_region.
4015
4016 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4017
4018 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4019 XClearArea.
4020
4021 * xterm.c (x_after_update_window_line): Don't clear if frame's
4022 internal border width is zero.
4023 (x_clear_area): New function.
4024 (x_after_update_window_line, x_clear_end_of_line)
4025 (x_scroll_bar_create, x_scroll_bar_set_handle)
4026 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4027 instead of XClearArea.
4028
4029 * xterm.h (x_clear_area): Add prototype.
4030
4031 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4032 which doesn't seem necessary anymore with Lesstif 0.92.
4033
4034 2001-01-25 Dave Love <fx@gnu.org>
4035
4036 * puresize.h (BASE_PURESIZE): Up to 720000.
4037
4038 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4039
4040 2001-01-25 Gerd Moellmann <gerd@gnu.org>
4041
4042 * xdisp.c (echo_area_display): Don't call redisplay_internal
4043 when Emacs is shutting down. We can't run hooks etc. that
4044 would be necessary to do a redisplay.
4045
4046 * lread.c (read_integer): Use type EMACS_INT instead of int.
4047
4048 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4049
4050 * ccl.c (ccl_driver): Fix last change.
4051
4052 2001-01-25 Kenichi Handa <handa@etl.go.jp>
4053
4054 * ccl.h (sturct ccl_program): New member suppress_error.
4055
4056 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
4057 insert error message to the output.
4058 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4059
4060 * coding.h (struct coding_system): New member suppress_error.
4061
4062 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4063 (Fset_terminal_coding_system_internal): Set the member
4064 suppress_error to 1.
4065 (Fset_safe_terminal_coding_system_internal): Likewise.
4066
4067 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4068
4069 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4070 as if it was a `charset'.
4071
4072 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4073
4074 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4075 value in where_is_cache; the next lookup in the cache returns
4076 something bogus if we do.
4077
4078 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4079
4080 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4081 if HAVE_WINDOW_SYSTEM isn't defined.
4082
4083 2001-01-24 Gerd Moellmann <gerd@gnu.org>
4084
4085 * fns.c (sweep_weak_table): Fix code taking items out of
4086 the hash collision chain. Some cleanup.
4087
4088 * xterm.c (x_new_font): Don't change a tooltip's size.
4089
4090 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4091 background color by specifying a color for the default font
4092 in .Xdefaults.
4093
4094 2001-01-24 Kenichi Handa <handa@etl.go.jp>
4095
4096 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4097 a workaround for SunOS 4's cc.
4098 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4099 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4100 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4101 statement.
4102
4103 2001-01-23 Gerd Moellmann <gerd@gnu.org>
4104
4105 * xterm.c (x_set_window_size_1): New function extracted from
4106 x_set_window_size.
4107 (x_set_window_size): Use it.
4108 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4109 doesn't have a widget, like tooltips.
4110
4111 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4112
4113 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
4114
4115 2001-01-23 Kenichi Handa <handa@etl.go.jp>
4116
4117 * fns.c (Fset_char_table_default): Fix to make sub char-table
4118 correctly.
4119
4120 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4121
4122 * xdisp.c (build_desired_tool_bar_string): Make sure we have
4123 a desired tool bar string, even if there are no tool bar items.
4124
4125 * xdisp.c (Ftool_bar_lines_needed): New function.
4126 (syms_of_xdisp): Defsubr it.
4127
4128 * editfns.c (Fformat): Don't extend text properties from arguments
4129 to padding chars in the result.
4130
4131 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4132
4133 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4134
4135 2001-01-20 Andrew Innes <andrewi@gnu.org>
4136
4137 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
4138 (w32_initialize): Don't set term hooks that aren't actually needed
4139 in windowed mode.
4140
4141 * xfaces.c (realize_default_face):
4142 (realize_face):
4143 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4144
4145 * xdisp.c (handle_single_display_prop): Remove references to
4146 FRAME_W32_CONSOLE_P.
4147
4148 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
4149
4150 * frame.h (output_method): Remove output_w32_console method.
4151 (FRAME_W32_CONSOLE_P): Remove macro.
4152
4153 * frame.c (Qw32_console): Remove variable.
4154 (Fframep): Remove references to it.
4155 (syms_of_frame): Ditto.
4156 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4157
4158 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4159 redefinition.
4160
4161 2001-01-20 Kenichi Handa <handa@etl.go.jp>
4162
4163 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4164
4165 2001-01-19 Andrew Innes <andrewi@gnu.org>
4166
4167 * w32.c (init_environment): Add a version-independent site-lisp
4168 directory to EMACSLOADPATH, after the version dependent one.
4169
4170 2001-01-19 Gerd Moellmann <gerd@gnu.org>
4171
4172 * editfns.c (Fbuffer_substring): Doc fix.
4173
4174 * xdisp.c (message_dolog, message2, message2_nolog):
4175 Rename parameter LEN to NBYTES.
4176
4177 2001-01-19 Kenichi Handa <handa@etl.go.jp>
4178
4179 * charset.c (strwidth): Use c_string_width.
4180 (c_string_width): New function.
4181 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
4182 Caller changed.
4183
4184 * charset.h (c_string_width, lisp_string_width): Extern them.
4185
4186 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
4187
4188 * indent.c (check_composition): Check validity of composition.
4189
4190 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4191 characters by calling c_string_width.
4192 (x_consider_frame_title): Get byte length of frame tile string
4193 correctly.
4194 (display_mode_element): Pay attention to width of non-ASCII
4195 characters by calling strwidth.
4196
4197 2001-01-18 Gerd Moellmann <gerd@gnu.org>
4198
4199 * xfns.c (Qcancel_timer): New variable.
4200 (syms_of_xfns): Initialize and staticpro it.
4201 (Fx_hide_tip, Fx_show_tip): Use it.
4202 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4203 the timer.
4204 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4205
4206 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4207
4208 * window.h (WINDOW_LIVE_P): New macro.
4209
4210 * window.c (window_size_fixed): New variable.
4211 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4212 the doc string.
4213
4214 * eval.c (specbind): If binding a per-buffer variable which
4215 doesn't have a buffer-local value in the current buffer, change
4216 the global value by changing the value of the symbol bound in all
4217 buffers not having their own value, to make it consistent with
4218 what happens with other buffer-local variables.
4219
4220 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4221
4222 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4223 when searching for a newline.
4224
4225 2001-01-18 Kenichi Handa <handa@etl.go.jp>
4226
4227 * xdisp.c (display_string): Fix previous change.
4228
4229 2001-01-18 Jason Rumney <jasonr@gnu.org>
4230
4231 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4232 GLYPH_DEBUG is defined.
4233 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4234 true for images with `:ascent 100'.
4235 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4236 meantime, use face MOUSE_FACE_ID.
4237 If first glyph isn't a character glyph, use the ASCII NUL
4238 character to determine the face.
4239 (expose_area): Do not treat left margin specially.
4240 (note_mode_line_highlight): If no local_map, check global keymap.
4241 (note_mouse_highlight): Initialize overlay.
4242 (clear_mouse_face): Don't return if tip_frame is non-nil.
4243 (show_scroll_bars): Remove unused function.
4244 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4245 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4246 Clip to row.
4247 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
4248 (x_free_frame_resources): Unload relief colors.
4249
4250 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4251
4252 * xdisp.c (forward_to_next_line_start): Avoid calling
4253 get_next_display_element when the newline is already found.
4254 This may change the iterator's position, when its current position is
4255 equal to the iterator's stop_charpos.
4256
4257 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4258 zero, use this method only at the end of a line.
4259
4260 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
4261 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4262 if SCALABLE_FONTS_P is set.
4263
4264 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4265 so that scalable fonts are included.
4266
4267 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4268 In the cache, use a key containing the information if scalable
4269 fonts are included.
4270 (x_load_font): Adapt to change of keys in the font cache.
4271
4272 2001-01-17 Kim F. Storm <storm@filanet.dk>
4273
4274 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4275 XListFonts to take advantage of font caching.
4276
4277 * xterm.c (x_list_fonts): Ensure caching font information when
4278 called for a null frame, which is the case frequently when Emacs
4279 starts.
4280
4281 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4282
4283 * xfns.c (QCconversion): Replaces QCalgorithm.
4284
4285 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4286
4287 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4288 of :algorithm.
4289
4290 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4291 not everything could be displayed.
4292
4293 * line.h, x-list-font.c: Files removed because unused.
4294
4295 2001-01-17 Andrew Innes <andrewi@gnu.org>
4296
4297 * dired.c (directory_files_internal): Convert result from readdir
4298 to a unibyte string initially, to avoid possible misinterpretation
4299 of some bytes as the internal form of Emacs characters.
4300
4301 2001-01-17 Kenichi Handa <handa@etl.go.jp>
4302
4303 * fns.c (concat): Be sure to avoid putting the same `composition'
4304 property on the adjacent regions.
4305
4306 2001-01-16 Gerd Moellmann <gerd@gnu.org>
4307
4308 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
4309 (Fscroll_right, Fscroll_left): Set it here instead, if called
4310 interactively.
4311
4312 * buffer.c (Fset_buffer_modified_p): Set buffer's
4313 prevent_redisplay_optimizations_p flag.
4314
4315 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
4316 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4317 with additional arg.
4318
4319 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4320 Change prototype.
4321
4322 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4323 FROM_WHERE, for debugging.
4324
4325 2001-01-16 Kenichi Handa <handa@etl.go.jp>
4326
4327 * ccl.c (Fregister_ccl_program): Handle the return value of
4328 resolve_symbol_ccl_program correctly.
4329 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
4330
4331 2001-01-15 Gerd Moellmann <gerd@gnu.org>
4332
4333 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4334 has gone in the meantime, use face MOUSE_FACE_ID.
4335
4336 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
4337 If x_display_info_for_display returns null, don't try to close
4338 the display; we didn't open it.
4339
4340 * dispnew.c (save_or_restore_current_matrices): Function removed.
4341 (save_current_matrix, restore_current_matrix): New functions.
4342 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
4343 restore the frame's current matrix. Due to the glyph pointer
4344 setup done in adjust_glyph_matrix, there is no easy way to make
4345 saving the current matrix in the desired matrix generally correct,
4346 so don't try it.
4347
4348 2001-01-15 Kenichi Handa <handa@etl.go.jp>
4349
4350 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
4351 truncation glyphs.
4352 (display_line): Optimize for wide characters.
4353 (display_string): Don't try to display a multi-column character
4354 partially. On ttys, produce more than one truncation glyph for
4355 multi-column characters that don't fit on the line.
4356
4357 2001-01-13 Kenichi Handa <handa@etl.go.jp>
4358
4359 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
4360 Define it instead of WORDS_BIGENDIAN. Caller changed.
4361
4362 2001-01-13 Jason Rumney <jasonr@gnu.org>
4363
4364 * w32fns.c (Fimage_size, image_ascent, lookup_image)
4365 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
4366 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4367 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
4368
4369 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
4370 (x_draw_image_relief, x_draw_image_foreground_1)
4371 (x_draw_image_glyph_string): Adapt to change of image margins.
4372
4373 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
4374 variables.
4375
4376 * w32bdf.c (search_file_line, get_cached_font_char)
4377 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
4378
4379 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
4380
4381 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
4382 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
4383 (Fw32_send_sys_command): Remove unused variables.
4384 (w32_msg_pump): Add parentheses.
4385
4386 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
4387 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
4388 Add parentheses.
4389
4390 2001-01-12 Gerd Moellmann <gerd@gnu.org>
4391
4392 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
4393 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
4394 being a pair of margins.
4395 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
4396 to DEFVAR_LISP. Extend doc.
4397
4398 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
4399 margins.
4400 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
4401 pair of integers `(X . Y)', use X for the horizontal and Y for the
4402 vertical margin.
4403 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
4404 (parse_image_spec): Check it.
4405 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4406 (tiff_format, gif_format, gs_format):
4407 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
4408
4409 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4410 (x_draw_image_relief, x_draw_image_foreground_1)
4411 (x_draw_image_glyph_string): Adapt to the change of image margins.
4412
4413 * dispextern.h (struct image): Replace member `margin' with
4414 `hmargin' and `vmargin'.
4415
4416 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4417 and GLYPHS.
4418
4419 * dispnew.c (update_text_area): Put code which decrements the
4420 stop position when the row's face extends to the end of the
4421 line in #if 0.
4422
4423 * xfns.c (x_set_mouse_color): Fix color allocation.
4424
4425 * keyboard.c: Call get_local_map with new argument list.
4426
4427 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4428
4429 * intervals.h (enum map_property): Removed.
4430 (get_local_map): Change prototype.
4431
4432 * keymap.c: Call get_local_map with new argument list.
4433 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4434
4435 2001-01-11 Gerd Moellmann <gerd@gnu.org>
4436
4437 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4438 of the size needed for the tool bar string. For the last image,
4439 use a `display' property that reaches to the end of the string.
4440
4441 * xselect.c (selection_request_dpyinfo): New variable.
4442 (x_handle_selection_request): Set it.
4443 (x_selection_request_lisp_error): Don't call
4444 x_decline_selection_request if selection request's display has
4445 been closed.
4446
4447 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4448 Do the unregister_colors before calling XFreeColors.
4449
4450 2001-01-10 Dave Love <fx@gnu.org>
4451
4452 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4453 ${SOME_MACHINE_LISP}, not ${lisp}.
4454
4455 2001-01-10 Gerd Moellmann <gerd@gnu.org>
4456
4457 * xdisp.c (display_line): On ttys, produce more than one truncation
4458 glyph for multi-column characters that don't fit on the line.
4459
4460 * xselect.c (x_reply_selection_request): Add a comment.
4461
4462 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4463 XkbGetNames instead of XkbGetKeyboard.
4464
4465 2001-01-10 Dave Love <fx@gnu.org>
4466
4467 * sysdep.c (random): Revert the declaration.
4468
4469 2001-01-09 Gerd Moellmann <gerd@gnu.org>
4470
4471 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4472 Call function string_bytes.
4473 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4474
4475 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4476 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4477 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4478 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4479 the current sblock.
4480 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4481 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4482 after sweeping strings, and at the end.
4483 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4484
4485 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4486 ensure that pop_message is called.
4487
4488 * keyboard.c (Fexecute_extended_command): Use a
4489 record_unwind_protect to ensure that pop_message is called.
4490
4491 * lisp.h (push_message_unwind): Add prototype.
4492
4493 * xdisp.c (push_message_unwind): New function.
4494
4495 * fileio.c (do_auto_save_unwind): Do the pop_message here
4496 instead of in Fdo_auto_save.
4497 (Fdo_auto_save): Don't call pop_message.
4498
4499 2001-01-08 Ken Raeburn <raeburn@gnu.org>
4500
4501 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4502 in inner block.
4503
4504 2001-01-08 Gerd Moellmann <gerd@gnu.org>
4505
4506 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4507 when increasing window's vscroll.
4508
4509 * macros.c (Qkbd_macro_termination_hook): New variable.
4510 (syms_of_macros): Initialize and staticpro it.
4511 (pop_kbd_macro): Run kbd-macro-termination-hook.
4512
4513 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4514
4515 2001-01-07 Dave Love <fx@gnu.org>
4516
4517 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4518 arglist, for documentation's sake.
4519
4520 2001-01-06 Andrew Innes <andrewi@gnu.org>
4521
4522 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4523 of *.pdb.
4524
4525 2001-01-05 Andrew Innes <andrewi@gnu.org>
4526
4527 * term.c (update_end): Don't check updating_frame; for some reason
4528 this can be 0 sometimes, such as after dismissing a popup menu,
4529 and isn't necessary given the explicit frame argument.
4530
4531 2001-01-05 Gerd Moellmann <gerd@gnu.org>
4532
4533 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4534 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4535
4536 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4537
4538 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
4539
4540 * xfns.c (x_create_tip_frame): Preserve the value of
4541 face_change_count around the creation of the tip frame.
4542
4543 * xfns.c (last_show_tip_args): New variable.
4544 (compute_tip_xy): New function.
4545 (Fx_show_tip): Reuse an existing tip frame, if possible.
4546 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4547
4548 2001-01-04 Dave Love <fx@gnu.org>
4549
4550 * editfns.c (Fformat): Doc fix.
4551
4552 * systime.h (set_file_times): Prototype.
4553
4554 * widget.h (EmacsFrameSetCharSize_): Prototype.
4555
4556 * sysdep.c (random, srandom): Declare explicitly.
4557
4558 * dispextern.h (move_it_vertically_backward): Declare.
4559
4560 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4561
4562 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4563 like in Fx_create_frame.
4564
4565 * xfaces.c (set_font_frame_param): Don't do anything for
4566 non-graphical frames.
4567
4568 * window.c (Fdelete_other_windows): Set window's window_end_valid
4569 to nil when changing the window's start. Don't change the
4570 window's start when its top position hasn't changed. If we do,
4571 this will set the window's optional_new_start, which act's like a
4572 force_start during redisplay with C-x 1 M-> under particular
4573 circumstances (see report from Per Starback to emacs-pretest-bug
4574 from 2000-12-13.).
4575
4576 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4577
4578 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4579 short cut at the start of the function. Add an assertion.
4580 (reseat_at_next_visible_line_start): Add an assertion.
4581
4582 * window.c (Frecenter): When changing the window start, set the
4583 window's window_end_valid to nil.
4584 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4585
4586 * dispextern.h (move_it_past_eol): Add prototype.
4587
4588 * xdisp.c (move_it_past_eol): New function.
4589
4590 * window.c (Fwindow_end): Doc fix.
4591
4592 2001-01-03 Dave Love <fx@gnu.org>
4593
4594 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
4595
4596 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4597
4598 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4599 the enabled_p flag of the glyph row at window_end_vpos to 0.
4600 (handle_single_display_prop): Fix last change.
4601
4602 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4603
4604 * window.c (Frecenter): Doc fix.
4605
4606 2001-01-02 Andrew Innes <andrewi@gnu.org>
4607
4608 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4609
4610 * frame.h (output_method): Add output_w32_console method.
4611 (FRAME_W32_CONSOLE_P): New macro.
4612
4613 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4614 use output_w32_console method.
4615 (Qw32_console): New Lisp_Object.
4616 (Fframep): Return it.
4617 (syms_of_frame): Init it.
4618 (Fframe_parameters): Report w32console as font for w32_console frames.
4619
4620 * xfaces.c (realize_default_face): Set face foreground and
4621 background to unspecified for w32_console frames.
4622 (realize_face): Realize face cache for w32_console frames.
4623 (realize_tty_face): Accept w32_console frames.
4624
4625 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
4626 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4627 necessary, even if running interactively.
4628
4629 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4630 w32_console frames.
4631
4632 * w32term.c (x_update_begin):
4633 (x_update_end):
4634 (x_clear_frame):
4635 (x_ins_del_lines):
4636 (x_change_line_highlight):
4637 (x_delete_glyphs):
4638 (w32_ring_bell):
4639 (x_update_begin):
4640 (x_update_end):
4641 (w32_reassert_line_highlight):
4642 (w32_frame_rehighlight):
4643 (w32_frame_raise_lower): Do nothing if not w32 frame.
4644
4645 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4646
4647 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4648 system doesn't tell us directly.
4649 (Fx_display_visual_class): Implement properly.
4650
4651 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4652
4653 * window.c (Frecenter): Handle centering in graphical frames
4654 specially. Centering on the basis of line counts doesn't work
4655 reliably with variable-height lines.
4656
4657 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4658
4659 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4660 and al[].
4661
4662 * composite.c (run_composition_function): Remove unused var `val'.
4663 (update_compositions): Remove unused variable `hook'.
4664
4665 * intervals.c (get_local_map): Remove unused variable `tem'.
4666
4667 * doprnt.c (doprnt1): Remove unused variable `size'.
4668
4669 * fns.c (Flength): Remove unused variable `tail'.
4670 (Fdelete): Remove unused variable `size'.
4671
4672 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4673 and `gcpro2'.
4674
4675 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
4676
4677 * data.c (find_symbol_value): Remove extra 3rd argument in the
4678 call to swap_in_symval_forwarding.
4679
4680 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
4681
4682 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4683 (trivial_regexp_p): Remove unused variable `c'.
4684 (boyer_moore): Remove unused variable `k'.
4685
4686 * indent.c (current_column): Remove unused variable `stopchar'.
4687 (Fcompute_motion): Remove unused variable `contin'.
4688
4689 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4690
4691 * dired.c (directory_files_internal): Fix a typo in a comment.
4692 Remove an unused variable `handler'.
4693 (file_name_completion): Remove unused function-scope variable `dp'.
4694 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4695 on BSD4_2.
4696
4697 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
4698
4699 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4700 and `buf'.
4701 (Fmarker_insertion_type): Remove unused variable `buf'.
4702
4703 * insdel.c (make_gap): Remove unused variable `result'.
4704
4705 * keyboard.c (record_char): Remove unused function-scope var `help'.
4706 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4707 (menu_bar_items): Remove unused function-scope variable `tem'.
4708
4709 * fontset.c (fontset_ref): Remove unused variable `i'.
4710 (fontset_set): Remove unused variables `j' and `tmp'.
4711 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
4712 (make_fontset_for_ascii_face): Remove unused variable `name'.
4713 (fs_load_font): Remove unused variable `font_idx'.
4714 (fs_query_fontset): Remove unused function-local variable `fontset'.
4715 (list_fontsets): Remove unused variable `tail'.
4716 (Fnew_fontset): Remove unused variables `family' and `registry'.
4717 (accumulate_font_info): Remove unused variable `tmp'.
4718 (Ffontset_font): Remove unused variable `id'.
4719 (syms_of_fontset): Remove unused variable `i'.
4720
4721 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4722 to x_term_init.
4723 (lookup_image): Remove unused variable `file'.
4724 (xbm_load): Remove unused variables `bitmap_data', `height', and
4725 `width'. Remove function-local variable `i', leave the
4726 block-local one.
4727 (gif_load): Remove unused variable `inc'.
4728
4729 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
4730 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4731 leave only the one in the inner block.
4732
4733 * xfaces.c (face_fontset, realize_default_face): Remove unused
4734 variable `fontset'.
4735 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4736
4737 * term.c (encode_terminal_code): Remove unused variable `c'.
4738
4739 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4740 char *' instead of `char *'.
4741
4742 * category.c (Fcategory_docstring): Remove unused variable `doc'.
4743 (Fget_unused_category): Remove unused variable `docstring_vector'.
4744 (Fchar_category_set): Remove unused variables `val', `charset',
4745 `c1' and `c2'.
4746
4747 * coding.c (detect_coding_iso2022, setup_coding_system):
4748 Remove unused variable `i'.
4749 (detect_coding_mask): Remove unused variable `idx'.
4750 (detect_coding): Remove unused variable `i'.
4751 (ccl_coding_driver): Remove unused variable `result'.
4752 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
4753 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
4754 (encode_coding_string): Remove unused variables `gcpro1' and
4755 `saved_coding_symbol'.
4756 (Ffind_coding_systems_region_internal): Remove function-local
4757 variable args[], leave only the block-local one.
4758 (code_convert_region1): Remove unused variable `len'.
4759
4760 * charset.c (char_printable_p): Remove unused variable `chars'.
4761 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4762 (str_to_multibyte): Remove unused variable `c'.
4763
4764 * window.c (size_window): Remove block-local variable `min_size'.
4765
4766 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4767 `header_line_height'.
4768 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4769 enum display_element_type.
4770
4771 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4772
4773 * xterm.c (x_connection_closed): Catch X errors around all
4774 statements that call X. Save away the error message in a local copy.
4775
4776 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4777 the start.
4778
4779 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4780 in or at the start of invisible text.
4781
4782 * dispnew.c (update_window): Don't check_current_matrix_flags.
4783
4784 2001-01-01 Jason Rumney <jasonr@gnu.org>
4785
4786 * w32fns.c (x_figure_window_size): Do not allow new_height and
4787 new_width of frame to override specified values.
4788
4789 2000-12-30 Kenichi Handa <handa@etl.go.jp>
4790
4791 * composite.c (find_composition): Fix a code for searching backward.
4792
4793 2000-12-29 Gerd Moellmann <gerd@gnu.org>
4794
4795 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
4796 (update_window) [GLYPH_DEBUG]: Call it.
4797 (scrolling_window): Prevent including current rows which are below
4798 what's displayed in the window.
4799
4800 * xdisp.c (try_window_reusing_current_matrix)
4801 <new start <= old start>: Disable rows in the current matrix
4802 which are below the window after scrolling.
4803
4804 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4805 is zero. It's not worth the complexity.
4806 (invisible_text_between_p): Put in #if 0 because unused.
4807
4808 2000-12-28 Gerd Moellmann <gerd@gnu.org>
4809
4810 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4811 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4812
4813 * keyboard.c (echo_char): If C is an integer, always call
4814 push_key_description. Former code could signal an invalid
4815 character error.
4816
4817 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4818 If set, print multibyte text.
4819 (Fsingle_key_description): Call push_key_description with
4820 FORCE_MULTIBYTE set.
4821 (describe_buffer_bindings): Likewise.
4822
4823 * lisp.h (push_key_description): Add prototype.
4824
4825 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4826 around the call to redisplay_internal.
4827
4828 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4829
4830 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4831
4832 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4833
4834 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4835 (ccl_driver): New local variable `extra_bytes'.
4836
4837 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4838
4839 * coding.c (setup_coding_system):
4840 Initialize coding->spec.ccl.eight_bit_carryover.
4841 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4842
4843 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4844
4845 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4846 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4847 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4848 (decode_composition_emacs_mule): New function.
4849 (decode_coding_emacs_mule): Decode composition sequence by calling
4850 decode_composition_emacs_mule.
4851 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
4852 (encode_coding_emacs_mule): Changed from macro to function.
4853 If a text contains compositions, encode them correctly.
4854 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4855 that decoding and encoding are required.
4856
4857 2000-12-27 Gerd Moellmann <gerd@gnu.org>
4858
4859 * xfaces.c (PT_PER_INCH): New macro.
4860 (xlfd_point_size): Compute real point size from font's pixel size.
4861 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4862 instead of 72.
4863
4864 * .gdbinit: Comment out the line pointing to the Lesstif source
4865 directory.
4866
4867 * window.c (Frecenter): Use displayed_window_lines instead
4868 of window_internal_height.
4869
4870 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4871 instead of x-toolkit-scroll-bars-p.
4872 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4873
4874 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4875 instead of x-toolkit-scroll-bars-p.
4876 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4877
4878 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4879 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
4880 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4881 New variables.
4882 (add_window_display_history, add_frame_display_history)
4883 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4884 (build_frame_matrix_from_leaf_window): Remove unused code.
4885 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4886 redisplay history.
4887 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4888 (update_window) [GLYPH_DEBUG]: Likewise.
4889 (syms_of_display): Defsubr dump-redisplay-history.
4890
4891 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4892
4893 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4894 the end of the prompt. Set echo_after_prompt to the offset
4895 of echoptr in echobuf.
4896
4897 * xdisp.c (init_from_display_pos): Pop until the iterator's
4898 stack is empty; there may be frames for stretch or images
4899 on the stack.
4900
4901 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4902 (save_or_restore_current_matrix): New function for the same
4903 purpose, but more efficient.
4904 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4905
4906 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4907
4908 * xdisp.c (syms_of_xdisp): Fix last change.
4909
4910 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4911
4912 * xdisp.c (syms_of_xdisp): Doc fix.
4913
4914 * xdisp.c (redisplay_window): Remove label restore_buffers;
4915 use finish_scroll_bars instead to make sure that scroll bars
4916 are redeemed. If we don't do this, flickering can result from
4917 scroll bars being destroyed and recreated.
4918
4919 2000-12-22 Jason Rumney <jasonr@gnu.org>
4920
4921 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4922 in the wrong colors when the foreground is not black.
4923 (expose_window): Don't redraw the window that's currently being
4924 updated.
4925
4926 2000-12-22 Gerd Moellmann <gerd@gnu.org>
4927
4928 * window.c (size_window): When setting the window's too_small_ok
4929 flag, compare old size with minimum size depending on WIDTH_P,
4930 don't compare with window_min_width.
4931
4932 * window.c (delete_window): Simplify somewhat.
4933 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4934 freeing window matrices. The flag windows_or_buffers_changed is
4935 set, so the next redisplay will consider all windows; this should
4936 suffice.
4937
4938 2000-12-22 Kenichi Handa <handa@etl.go.jp>
4939
4940 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4941
4942 * ccl.h (struct ccl_program): New member cr_consumed.
4943
4944 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4945 (CCL_READ_CHAR): Handle EOL conversion here.
4946 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4947
4948 2000-12-21 Gerd Moellmann <gerd@gnu.org>
4949
4950 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
4951
4952 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4953 otherwise tabs of different size compare equal.
4954
4955 * callint.c (Fcall_interactively): Prevent a compiler warning.
4956
4957 * print.c (print_unwind): Return nil.
4958 (PRINTDECLARE): Initialize all local variables.
4959 (print_preprocess): Add a default case.
4960
4961 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4962
4963 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4964
4965 * window.c (delete_window, Fsplit_window)
4966 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4967
4968 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4969
4970 * dispnew.c (ensure_frame_matrix): Removed.
4971 (save_frame_matrix, restore_frame_matrix): New functions.
4972 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4973
4974 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4975 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4976
4977 2000-12-21 Andrew Innes <andrewi@gnu.org>
4978
4979 * w32term.c (x_update_begin): Regenerate the palette here, rather
4980 than for each window.
4981
4982 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4983 palette is NULL, since this corrupts memory! Also get
4984 display_info reference from frame.
4985
4986 2000-12-21 Jason Rumney <jasonr@gnu.org>
4987
4988 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4989
4990 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4991 to avoid returning without releasing it.
4992
4993 2000-12-21 Kenichi Handa <handa@etl.go.jp>
4994
4995 * keymap.c (push_key_description): Don't convert eight-bit-control
4996 and eight-bit-graphic to multibyte character.
4997
4998 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4999 generic character and CODE1 is nil, return the smallest character
5000 in CHARSET.
5001
5002 2000-12-20 Dave Love <fx@gnu.org>
5003
5004 * s/osf5-0.h (NSIG): Don't redefine.
5005
5006 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5007
5008 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5009 excluding menu-bar and tool-bar.
5010 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5011 (menu_item_p): Remove.
5012 (where_is_internal_1): Don't ignore menu-items.
5013
5014 2000-12-20 Gerd Moellmann <gerd@gnu.org>
5015
5016 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5017 into account.
5018
5019 * window.c (make_window): Initialize window's min_hscroll.
5020 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5021 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5022 to zero.
5023 (struct saved_window): New member min_hscroll.
5024 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5025 (Fset_window_configuration): Set window's min_hscroll.
5026 (save_window_save): Save window's min_hscroll.
5027 (compare_window_configurations): Compare min_hscroll values.
5028
5029 * window.h (struct window): New member min_hscroll.
5030
5031 * keyboard.c (echo_prompt): Prevent a compiler warning.
5032
5033 * xdisp.c (try_cursor_movement): Fix last change. The real
5034 condition is that PT is at the end of the row, and should
5035 be displayed at the start of the next row.
5036
5037 * xdisp.c (try_cursor_movement): If we end on a partially
5038 visible line, end we already decided to scroll, return -1.
5039
5040 * dispextern.h (ensure_frame_matrix): Add prototype.
5041
5042 * window.c (delete_window, Fsplit_window)
5043 (Fset_window_configuration): Call ensure_frame_matrix.
5044
5045 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5046 New functions.
5047 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5048 completed, call fake_current_matrices instead of marking frame
5049 garbaged.
5050
5051 2000-12-20 Jason Rumney <jasonr@gnu.org>
5052
5053 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5054
5055 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5056
5057 * fns.c (Frequire): Doc fix.
5058
5059 2000-12-19 Gerd Moellmann <gerd@gnu.org>
5060
5061 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
5062
5063 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5064 currently displaying a message.
5065
5066 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5067 xterm.h.
5068 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5069
5070 2000-12-18 Andrew Innes <andrewi@gnu.org>
5071
5072 * w32.c (w32_strerror): New function.
5073
5074 * w32.h (w32_strerror): New extern.
5075
5076 * w32fns.c (Fw32_shell_execute): Use it.
5077
5078 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5079
5080 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5081
5082 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5083
5084 * msdos.c (IT_set_face): Obey inverse_video.
5085
5086 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5087
5088 * dired.c (directory_files_internal): Always return decoded filenames.
5089
5090 2000-12-18 Gerd Moellmann <gerd@gnu.org>
5091
5092 * xterm.c (x_connection_closed): Prevent being called recursively
5093 because of an error condition in XtCloseDisplay.
5094
5095 * xdisp.c (init_iterator): If noninteractive, and the frame's
5096 face cache is null, make one.
5097
5098 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5099
5100 * process.c (wait_reading_process_input): Check for pending
5101 input when running timers.
5102
5103 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5104
5105 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
5106
5107 2000-12-18 Kenichi Handa <handa@etl.go.jp>
5108
5109 * process.c (read_process_output): Don't run a filter if the code
5110 decoder produces nothing but carryover.
5111
5112 2000-12-17 Andrew Innes <andrewi@gnu.org>
5113
5114 * w32.c (sys_rename): Only check errno against EEXIST, and not
5115 EACCES, when determining whether rename failed because the target
5116 exists. This was resulting in indefinite looping on Windows 9x if
5117 the source file was locked by another process.
5118
5119 * w32fns.c (Ffile_system_info): New function.
5120 (syms_of_w32fns): Defsubr it.
5121
5122 2000-12-17 Gerd Moellmann <gerd@gnu.org>
5123
5124 * window.c (coordinates_in_window): Fix computation for
5125 position on vertical line between mode lines.
5126
5127 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5128 Don't alter tip_frame or tip_window.
5129 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5130 was deleted.
5131
5132 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5133 Don't alter tip_frame or tip_window.
5134 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5135 was deleted.
5136
5137 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5138
5139 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5140 be consistent with the doc string. Reported by NAKAJIMA Mikio
5141 <minakaji@osaka.email.ne.jp>.
5142
5143 2000-12-16 Kenichi Handa <handa@etl.go.jp>
5144
5145 * xfaces.c (Vface_ignored_fonts): New variable.
5146 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5147 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5148
5149 2000-12-15 Gerd Moellmann <gerd@gnu.org>
5150
5151 * dispnew.c (update_window): Detect pending input every nth line
5152 updated, i.e. do it depending on real work done, and not on the
5153 vpos of the line.
5154
5155 * xterm.c (expose_window): Don't redraw the window that's
5156 currently being updated.
5157
5158 * window.c (Fset_window_point): Remove test for
5159 cursor_in_non_selected_windows.
5160
5161 * lread.c (read1): Recognize end of file after `\\'.
5162
5163 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5164 not unwind_create_frame.
5165
5166 2000-12-15 Dave Love <fx@gnu.org>
5167
5168 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5169 bcopy & al.
5170
5171 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5172
5173 2000-12-15 Kenichi Handa <handa@etl.go.jp>
5174
5175 * coding.c (setup_coding_system): Clear all members of the struct
5176 coding_system at first.
5177 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
5178 argument.
5179 (code_convert_region): Don't override coding->src_multibyte and
5180 coding->dst_multibyte.
5181
5182 * fns.c (Fmd5): Docstring improved.
5183
5184 2000-12-15 Miles Bader <miles@gnu.org>
5185
5186 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5187 are actually marked as mode-lines; otherwise use
5188 estimate_mode_line_height.
5189
5190 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5191
5192 * editfns.c (Fformat): Prevent a buffer overrun when the format
5193 specifies a precision.
5194
5195 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5196
5197 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5198 argument is outside the range [2..3].
5199
5200 2000-12-14 Andrew Innes <andrewi@gnu.org>
5201
5202 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5203 nothing to do. Bind inhibit-quit.
5204 (tip_frame): Make it a Lisp_Object.
5205 (x_create_tip_frame): Set tip_frame after it has been added to
5206 Vframe_list.
5207 (Fx_show_tip): Don't set tip_frame here.
5208 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
5209 (unwind_create_frame, unwind_create_tip_frame): New functions.
5210 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5211 while a frame is only partially constructed.
5212
5213 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5214 (x_free_frame_resources): New function.
5215 (x_destroy_window): Use it.
5216
5217 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5218
5219 * xfns.c (Fx_backspace_delete_keys_p): New function.
5220 (syms_of_xfns): Defsubr it.
5221
5222 * config.in (HAVE_XKBGETKEYBOARD): Add.
5223
5224 2000-12-14 Kenichi Handa <handa@etl.go.jp>
5225
5226 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5227 Always store string in multibyte representation in echobuf.
5228 (echo_char): Always store string in multibyte representation in
5229 echobuf.
5230 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5231 (read_key_sequence): Adjusted for the change of echo_prompt.
5232
5233 * fns.c (Fmd5): Docstring improved.
5234
5235 * lisp.h (detect_coding_system): Prototype adjusted.
5236
5237 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5238 (detect_coding_emacs_mule, detect_coding_iso2022,)
5239 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
5240 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5241 New argument MULTIBYTEP. Callers changed.
5242 (detect_coding_mask, detect_coding_system): New argument
5243 MULTIBYTEP. Callers changed.
5244 (decode_coding_string): Set coding->src_multibyte and
5245 coding->dst_multibyte before calling detect_coding and detect_eol.
5246 Update them after some coding system is detected.
5247
5248 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5249
5250 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5251
5252 * keyboard.c (menu_bar_items, tool_bar_items):
5253 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5254
5255 2000-12-13 Gerd Moellmann <gerd@gnu.org>
5256
5257 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5258 New variables.
5259 (unwind_create_frame, unwind_create_tip_frame): New functions.
5260 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5261 while a frame is only partially constructed.
5262
5263 * xterm.h (x_free_frame_resources): Declare.
5264
5265 * xterm.c (x_free_frame_resources): New function.
5266 (x_destroy_window): Use it.
5267
5268 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5269 don't interrupt the update for pending input initially, i.e.
5270 update at least some lines.
5271
5272 * keyboard.c (do_mouse_tracking): Make externally visible.
5273
5274 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
5275
5276 * xfns.c (gray_bitmap_bits): Declare `char *'.
5277
5278 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5279
5280 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5281 lines start with a relief line.
5282
5283 2000-12-12 Dave Love <fx@gnu.org>
5284
5285 * window.c (Fdisplay_buffer): Doc fix.
5286 (Fwindow_list): Remove unused var.
5287
5288 * buffer.h (mmap_set_vars): Declare.
5289
5290 * window.h (Fset_window_point): Declare.
5291
5292 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5293
5294 * msdos.c (fast_find_position): Don't overstep the last window row.
5295 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5296 variable `area'. When looking for a row under (X,Y), give up if some
5297 of the previous rows is not enabled.
5298
5299 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5300
5301 * window.c (Fset_window_point): If displaying cursors in windows
5302 other than the selected window, make sure redisplay updates
5303 other windows to show the new value of point in the window.
5304
5305 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5306
5307 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5308 the buffer is the sole visible buffer when in the mini-buffer.
5309
5310 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
5311 Bind `inhibit-read-only' to t.
5312 (unwind_with_echo_area_buffer): Use AREF.
5313
5314 * xfns.c (Fx_hide_tip): Simplified.
5315
5316 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5317 instead of `1'.
5318
5319 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5320
5321 2000-12-11 Gerd Moellmann <gerd@gnu.org>
5322
5323 * xfns.c (Fx_hide_tip): Fix last change.
5324
5325 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
5326 nothing to do. Bind inhibit-quit.
5327 (tip_frame): Make it a Lisp_Object.
5328 (x_create_tip_frame): Set tip_frame after it has been added to
5329 Vframe_list.
5330 (Fx_show_tip): Don't set tip_frame here.
5331
5332 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5333
5334 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
5335 Lisp_Object.
5336
5337 * dispextern.h: Change external declaration of tip_frame.
5338
5339 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
5340 return an empty string.
5341
5342 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
5343 of the window's update_mode_line flag, since the former is set by
5344 force-mode-line-update, not the latter. This makes
5345 column-number-mode slightly faster.
5346
5347 * xdisp.c (try_window_id) <all changes above window start>:
5348 Set the cursor.
5349
5350 2000-12-11 Paul Eggert <eggert@twinsun.com>
5351
5352 * config.in (HAVE_FTELLO): Remove.
5353 (HAVE_FSEEKO): Add.
5354 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
5355 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
5356 HAVE_FTELLO.
5357 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
5358 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
5359
5360 2000-12-11 Miles Bader <miles@gnu.org>
5361
5362 * window.c (displayed_window_lines): Don't round up when
5363 converting empty space at bottom to lines.
5364 Handle non-newline-terminated final lines properly.
5365 (Fwindow_text_height): New function (used to be in lisp).
5366 (syms_of_window): Initialize it.
5367
5368 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
5369
5370 * syntax.c (scan_lists): Check that the right quote char has the
5371 right Sstring syntax when jumping over strings.
5372 (init_syntax_once): Use Smax rather than 13.
5373
5374 2000-12-09 Miles Bader <miles@gnu.org>
5375
5376 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
5377 with PARTIALLY, inverting the sense.
5378 (window_scroll_pixel_based): Scroll partially visible lines into
5379 place if we hit the beginning or end of the buffer.
5380 (displayed_window_lines): Don't include partially visible lines.
5381 (Fmove_to_window_line): Skip past any partially visible first line.
5382
5383 2000-12-08 Gerd Moellmann <gerd@gnu.org>
5384
5385 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
5386
5387 * tparam.c (tparam1): Change the way buffers are reallocated to be
5388 portable and less obfuscated.
5389
5390 * termcap.c (tgetent): Change the way buffers are reallocated to
5391 be portable and less obfuscated.
5392
5393 * macros.c (store_kbd_macro_char): Change the way buffers are
5394 reallocated to be portable and less obfuscated.
5395
5396 * lread.c (read1): Change the way buffers are reallocated to be
5397 portable and less obfuscated.
5398
5399 * doc.c (Fsubstitute_command_keys): Change the way buffers
5400 are reallocated so that it is portable.
5401
5402 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
5403
5404 * dosfns.c (Ffile_system_info): New function.
5405 (syms_of_dosfns): Defsubr it.
5406
5407 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
5408
5409 * alloc.c (gc_sweep): Add comment.
5410
5411 2000-12-07 Gerd Moellmann <gerd@gnu.org>
5412
5413 * sound.c (vox_configure): Change order of ioctls.
5414 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
5415 Ignore errors when changing volume.
5416 (vox_close): Don't reset the device.
5417
5418 * process.c (read_process_output): Make sure the process marker's
5419 position is valid when the process buffer is changed in
5420 after-change functions. W3 does that.
5421
5422 * xfns.c (x_free_gcs): New function.
5423
5424 * xterm.h (x_free_gcs): Add prototype.
5425
5426 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5427 freeing GCs here.
5428
5429 * xterm.c (x_destroy_window): Call x_free_gcs so that
5430 resources of non-toolkit X windows will be freed.
5431
5432 2000-12-07 Andrew Innes <andrewi@gnu.org>
5433
5434 * w32fns.c (xlfd_charset_of_font): Fix last change.
5435
5436 2000-12-06 Dave Love <fx@gnu.org>
5437
5438 * md5.h (__P): Don't define -- it comes from config.h.
5439
5440 * strftime.c: Change some #if foo to #ifdef foo.
5441
5442 2000-12-06 Andrew Innes <andrewi@gnu.org>
5443
5444 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5445
5446 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
5447 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
5448 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
5449
5450 2000-12-06 Gerd Moellmann <gerd@gnu.org>
5451
5452 * alloc.c (gc_sweep): Prevent symbols read during loadup
5453 from being freed.
5454
5455 * xdisp.c (underlying_face_id): New function.
5456 (handle_face_prop, face_before_or_after_it_pos): Use it
5457 to determine the face ``under'' a string. Let strings inherit
5458 the face of the buffer under them.
5459
5460 * xfaces.c (face_at_string_position): Update function comment.
5461
5462 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5463 matrix if the window's left position has changed; we need to
5464 redraw it in this case.
5465
5466 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5467
5468 * window.c (coordinates_in_window): Check mouse on mode-line or
5469 header-line first.
5470
5471 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5472 advertized by the function documentation.
5473
5474 * window.c (syms_of_window): Doc fix.
5475
5476 * sound.c (vox_configure): Set volume for left and right channel.
5477 (sound_cleanup): Return nil.
5478
5479 * xdisp.c (move_it_by_lines): Fix paren typo.
5480
5481 * xterm.c (x_load_font): Don't use the font's max_bounds for
5482 computing the height of the font. If max_bounds' ascent or
5483 descent are greater than the font's ascent or descent, this means
5484 glyphs overlap, which should be handled now by redisplay.
5485
5486 * window.c (Veven_window_heights): New variable.
5487 (syms_of_window): DEFVAR_LISP it.
5488 (Fdisplay_buffer): Check Veven_window_heights before evening the
5489 window heights.
5490
5491 2000-12-06 Miles Bader <miles@gnu.org>
5492
5493 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5494 update `default-frame-alist' instead of setting no frame parameters.
5495
5496 2000-12-06 Kenichi Handa <handa@etl.go.jp>
5497
5498 * composite.c (update_compositions): Fix typo (use the correct
5499 variable).
5500
5501 2000-12-05 Jason Rumney <jasonr@gnu.org>
5502
5503 * md5.h: Remove underscores from function declarations.
5504 (__attribute__, __alignof__) [!__GNUC__]: Define.
5505
5506 * md5.c: Delay include of md5.h until after namespace cleaning.
5507
5508 * makefile.w32-in (fns.o): Depend on md5.h
5509 (md5.o): New target.
5510 (sunfns.o): Remove.
5511
5512 * makefile.nt: Likewise.
5513
5514 2000-12-05 Jason Rumney <jasonr@altavista.net>
5515
5516 * w32term.c (expose_area): Complete last change.
5517
5518 2000-12-05 Ken Raeburn <raeburn@gnu.org>
5519
5520 * minibuf.c: Include intervals.h.
5521
5522 2000-12-05 Jason Rumney <jasonr@gnu.org>
5523
5524 * w32term.c (x_produce_glyphs): If a font for a component of
5525 a composition is not found, use 1 pixel dot ascent and 0 dot
5526 descent value to avoid displaying terribly tall empty boxes.
5527 (expose_area): Pass x-coordinate relative to the exposed
5528 area to x_draw_glyphs instead of a window-relative coordinate.
5529
5530 2000-12-05 Gerd Moellmann <gerd@gnu.org>
5531
5532 * xdisp.c (next_element_from_ellipsis): Save face before selective
5533 display in saved_face_id, and set face_before_selective_p.
5534 (reseat_1): Reset face_before_selective_p.
5535 (append_space, extend_face_to_end_of_line): If iterator's
5536 face_before_selective_p is set, use the face from saved_face_id.
5537 (extend_face_to_end_of_line): For tty frames, make sure to
5538 use the right face id when producing spaces at the end of
5539 the line.
5540
5541 * dispextern.h (struct it): Add face_before_selective_p.
5542
5543 * keyboard.c (record_char): Don't record identical help-echo
5544 events in recent_keys.
5545
5546 * xterm.c [USE_X_TOOLKIT]: Close the display.
5547 (xim_close_dpy): Handle case that the display has been closed.
5548
5549 * xterm.c (x_destroy_window): Reset the frame's X window after
5550 destroying it.
5551
5552 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5553 variable window_width.
5554 (line_draw_cost): Fix code skipping over spaces at the end of the
5555 line when must_write_spaces is not set.
5556 (scrolling_window): Fix code inserting runs in list of all runs.
5557
5558 2000-12-05 Kenichi Handa <handa@etl.go.jp>
5559
5560 * coding.c (setup_coding_system): Be sure to initialize
5561 coding->category_idx.
5562
5563 2000-12-04 Gerd Moellmann <gerd@gnu.org>
5564
5565 * xterm.c (PER_CHAR_METRIC): Removed because not used.
5566
5567 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5568 area to x_draw_glyphs instead of a window-relative coordinate.
5569
5570 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5571 error in the message.
5572
5573 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5574 timer after having read a key. It's not good for code reading
5575 several keys in a loop, like an input method.
5576
5577 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5578 record undo information for format-decode.
5579
5580 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5581 current buffer is read-only, not if it isn't.
5582
5583 * keyboard.c (record_char): Record `help-echo' input events
5584 in recent_keys only if they display some help. Don't record
5585 `help-echo' events as macro char.
5586
5587 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5588
5589 * editfns.c (save_excursion_restore): Don't move point
5590 in another window if it is showing the wrong buffer.
5591 Avoid the call to Fwindow_live_p, for speed.
5592
5593 2000-12-04 Kenichi Handa <handa@etl.go.jp>
5594
5595 * xfaces.c (struct font_name): New member registry_priority.
5596 (split_font_name): Initialize the above member to zero.
5597 (concat_font_list): New function.
5598 (font_list): Include fonts of all alternative registries.
5599 (FONT_POINT_SIZE_QUANTUM): New macro.
5600 (better_font_p): Ignore point size difference less than
5601 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5602
5603 * xterm.c (x_produce_glyphs): If a font for a component of
5604 a composition is not found, use 1 pixel dot ascent and 0 dot
5605 descent value to avoid displaying terribly tall empty boxes.
5606
5607 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5608
5609 2000-12-03 Ken Raeburn <raeburn@gnu.org>
5610
5611 * coding.h (code_convert_string1): Declare.
5612
5613 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5614
5615 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
5616
5617 2000-12-02 Jason Rumney <jasonr@gnu.org>
5618
5619 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5620 correctly for single byte character case.
5621 (w32_per_char_metric): Do not try to make any assumptions about
5622 the metrics of BDF fonts.
5623 (x_estimate_mode_line_height): If `mode-line' face
5624 hasn't a font, use that of the frame, as drawing glyphs does.
5625 (note_mouse_highlight): Change the cursor shape on the vertical
5626 border between windows [not enabled].
5627
5628 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5629
5630 * w32fns.c (Fx_create_frame): Reintroduce the call to
5631 face-set-after-frame-defaults.
5632 (Vx_window_horizontal_drag_shape): New variable.
5633 (syms_of_xfns): DEFVAR_LISP it.
5634 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5635 enabled].
5636
5637 2000-12-02 Simon Josefsson <simon@josefsson.org>
5638
5639 * fns.c (Fmd5): Use a different logic to decide the coding system
5640 to use.
5641
5642 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5643
5644 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5645
5646 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
5647
5648 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5649
5650 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5651 height for YNegative.
5652 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5653 height; also see comment there.
5654
5655 * window.c (coordinates_in_window): Handle computations for
5656 positions on the vertical bar and fringes differently for
5657 window-system frames. Consider some pixels near the vertical bar
5658 as on the bar if the frame doesn't have vertical scroll bars.
5659 Associate positions between mode or header lines with the
5660 right window, the left one.
5661
5662 2000-12-01 Jason Rumney <jasonr@gnu.org>
5663
5664 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5665
5666 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5667 invalid frame.
5668
5669 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5670
5671 * window.c (struct saved_window): Add members orig_top and orig_height.
5672 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5673 (save_window_save, Fset_window_configuration): Save/restore
5674 window's orig_top and orig_height.
5675
5676 2000-12-01 Jason Rumney <jasonr@gnu.org>
5677
5678 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
5679
5680 * w32fns.c (x_set_cursor_color): Fix last change.
5681
5682 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5683
5684 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5685 sure that the next redisplay displays the minibuffer, so that
5686 the cursor will be replaced with what the minibuffer wants.
5687
5688 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5689 #ifndef instead of using #if.
5690 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5691 USE_TOOLKIT_SCROLL_BARS is defined.
5692
5693 2000-11-30 Jason Rumney <jasonr@gnu.org>
5694
5695 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5696 x_display_cursor.
5697
5698 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5699
5700 * fns.c (Fmd5): Doc fix.
5701
5702 2000-11-30 Simon Josefsson <simon@josefsson.org>
5703
5704 * fns.c (Fmd5): New function.
5705 (syms_of_fns): Defsubr md5.
5706
5707 * Makefile.in (obj): Add md5.o
5708
5709 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5710
5711 * md5.h, md5.c: New files, taken from glibc.
5712
5713 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5714
5715 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
5716 hasn't a font, use that of the frame, as drawing glyphs does.
5717
5718 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5719
5720 * eval.c (Frun_hooks): Allow 0 arguments.
5721
5722 2000-11-29 Gerd Moellmann <gerd@gnu.org>
5723
5724 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5725 is over the menu bar widget, say it's not on the frame.
5726
5727 * xfns.c (Fx_create_frame): Reintroduce the call to
5728 face-set-after-frame-defaults.
5729
5730 * eval.c (Fsignal): Reset handling_signal.
5731
5732 2000-11-28 Jason Rumney <jasonr@gnu.org>
5733
5734 * w32menu.c (add_menu_item): Reset menu item text when changing
5735 type to radio button.
5736
5737 2000-11-28 Gerd Moellmann <gerd@gnu.org>
5738
5739 * xselect.c: Update copyright.
5740
5741 * window.c (coordinates_in_window): If on a mode or header line,
5742 but sufficiently close to its start, return ``on vertical
5743 border''. This gives us a way to drag windows horizontally when
5744 using toolkit scroll bars.
5745
5746 * xterm.c (note_mouse_highlight): Change the cursor shape
5747 on the vertical border between windows.
5748
5749 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5750
5751 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5752 (syms_of_xfns): DEFVAR_LISP it.
5753 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5754
5755 * textprop.c (text_read_only): New function.
5756 (verify_interval_modification): Use it instead of signaling
5757 `text-read-only'. This makes it easier to catch this error
5758 with a breakpoint.:
5759
5760 * xdisp.c (forward_to_next_line_start): Check for newlines,
5761 not end of line, which includes CR.
5762
5763 2000-11-28 Kenichi Handa <handa@etl.go.jp>
5764
5765 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5766 include no-conversion.
5767
5768 2000-11-27 Jason Rumney <jasonr@gnu.org>
5769
5770 * w32fns.c (w32_load_system_font): Always mark font as double byte
5771 if codepage is unicode.
5772
5773 2000-11-27 Gerd Moellmann <gerd@gnu.org>
5774
5775 * xdisp.c (forward_to_next_line_start): If already on a newline,
5776 just consume it to avoid unintended skipping over invisible text below.
5777
5778 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5779 `vertical-line', `mode-line' and `header-line' events.
5780
5781 * xdisp.c (try_window_id): Avoid starting to display in the middle
5782 of a character, a TAB for instance. This is easier than to set
5783 up the iterator exactly, and it's not a frequent case, so the
5784 additional effort wouldn't really pay off.
5785
5786 2000-11-26 Andrew Choi <akochoi@i-cable.com>
5787
5788 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
5789 init_window_once.
5790
5791 2000-11-25 Jason Rumney <jasonr@gnu.org>
5792
5793 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5794 Args to window_from_coordinates should be pixel coordinates.
5795
5796 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5797 redisplay handles them properly.
5798
5799 2000-11-25 Miles Bader <miles@gnu.org>
5800
5801 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5802
5803 2000-11-24 Jason Rumney <jasonr@gnu.org>
5804
5805 * w32.c (init_environment): Set LANG environment variable based on
5806 locale settings, if not set.
5807
5808 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5809 making tool bar smaller. When clearing the frame, also
5810 clear current matrices. Clear frame when tool bar disappears.
5811 Don't use more lines for the tool-bar than is available.
5812 (x_change_window_heights): New function.
5813
5814 2000-11-24 Gerd Moellmann <gerd@gnu.org>
5815
5816 * xdisp.c (init_from_display_pos): If POS says we're already after
5817 an overlay string ending at POS, make sure to pop the iterator
5818 because it will be in front of that overlay string. When POS is
5819 ZV, we've thereby also ``processed'' overlay strings at ZV.
5820
5821 * xfaces.c (lface_from_face_name): Function comment fix.
5822
5823 2000-11-24 Miles Bader <miles@gnu.org>
5824
5825 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5826 apply `mode-line-inverse-video' -- zero means force display using
5827 the default face, non-zero means display using the specialized face.
5828 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5829
5830 2000-11-23 Kenichi Handa <handa@etl.go.jp>
5831
5832 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5833 hard coded `4'.
5834
5835 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5836
5837 * coding.c (decode_coding_emacs_mule): Fix the case of
5838 CODING_EOL_LF, which used uninitialized value of c.
5839
5840 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5841
5842 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5843
5844 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5845
5846 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5847 buffer object.
5848
5849 * frame.h (struct frame): Replace desired_tool_bar_items,
5850 current_tool_bar_items, n_desired_tool_bar_items,
5851 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
5852
5853 * frame.c (make_frame): Change initialization of tool bar
5854 items accordingly.
5855
5856 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
5857 Change references to members deleted from struct frame to use the
5858 new ones.
5859
5860 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
5861 references to members deleted from struct frame to use the new ones.
5862
5863 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
5864
5865 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5866
5867 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
5868 (note_tool_bar_highlight): Change references to members deleted
5869 from struct frame to use the new ones.
5870
5871 2000-11-23 Miles Bader <miles@gnu.org>
5872
5873 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5874 the face's inverse-video attribute, rather than overriding it.
5875
5876 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5877
5878 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5879 making tool bar smaller.
5880
5881 2000-11-22 Dave Love <fx@gnu.org>
5882
5883 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5884
5885 2000-11-22 Miles Bader <miles@gnu.org>
5886
5887 * keyboard.c (Vminibuffer_message_timeout): New variable.
5888 (command_loop_1): Use it to determine message timeout.
5889 (syms_of_keyboard): Initialize it.
5890
5891 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
5892
5893 2000-11-22 Kenichi Handa <handa@etl.go.jp>
5894
5895 * sysdep.c: Move the code for declaring h_errno after #include
5896 <netdb.h>.
5897
5898 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5899
5900 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5901 the menu bar when the tooltip is unmapped.
5902
5903 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5904 sole visible buffer when we're currently in the mini-buffer, and
5905 give up if so.
5906
5907 2000-11-21 Jason Rumney <jasonr@gnu.org>
5908
5909 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5910 put on the clipboard.
5911 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5912 copy of what Emacs last put there. If they are the same, do not
5913 use the clipboard copy to avoid losing data due to coding conversions.
5914
5915 2000-11-22 Miles Bader <miles@gnu.org>
5916
5917 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5918 (syms_of_minibuf): Initialize it.
5919 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5920 to prompt, don't make read-only.
5921
5922 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5923
5924 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5925 Add BEFORE/AFTER_POTENTIAL_GC.
5926
5927 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5928
5929 * buffer.c (mmap_free_1): Avoid a compiler warning.
5930
5931 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5932
5933 2000-11-21 Kenichi Handa <handa@etl.go.jp>
5934
5935 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5936 ... #endif scope.
5937
5938 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5939
5940 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
5941 screen supports it.
5942
5943 * s/gnu-linux.h: Don't use `#cpu'.
5944
5945 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5946 not defined in mman.h.
5947
5948 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
5949 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5950 and store an index in the XClientMessageEvent. Storing a
5951 Lisp_Object or pointer can fail on a 64 bit system, since X only
5952 transfers 32 bits.
5953 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5954
5955 2000-11-20 Dave Love <fx@gnu.org>
5956
5957 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5958
5959 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5960
5961 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5962
5963 2000-11-20 Kenichi Handa <handa@etl.go.jp>
5964
5965 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5966 by WIDTH.
5967
5968 * alloc.c (make_string): Fix previous change. Be sure to make
5969 unibyte string correctly.
5970
5971 2000-11-19 Gerd Moellmann <gerd@gnu.org>
5972
5973 * window.c (Fwindow_list): Change parameter list to be XEmacs
5974 compatible.
5975 (window_list_1): New function.
5976 (window_loop): Use it instead of Fwindow_list.
5977
5978 * sysdep.c (emacs_ospeed): New variable.
5979 (toplevel): Don't declare ospeed extern.
5980 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5981
5982 * termcap.c (ospeed): Remove.
5983 (tputs) [!emacs]: Remove unused code.
5984 (tgetent): Avoid a compiler warning.
5985
5986 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5987 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
5988 SCROLL_BAR_X_WIDGET with additional argument DPY.
5989
5990 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5991 removed.
5992 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5993 Take the X display as additional argument.
5994 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5995 `Widget' is a pointer type that's not easily stored in Lisp_Object
5996 form in a portable way.
5997
5998 * dispnew.c (update_text_area): Fix last change.
5999
6000 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6001
6002 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6003
6004 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6005 clear current matrices.
6006
6007 * buffer.c (mmap_enlarge): Don't print a message on stderr
6008 if mapping new memory at the end of the existing region fails.
6009
6010 * dispnew.c (update_text_area): Don't skip over equal glyphs
6011 when the last current glyph overlaps the glyph to its right.
6012
6013 2000-11-18 Miles Bader <miles@gnu.org>
6014
6015 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6016 lines that *end* with "..." too (that's the most common case!).
6017
6018 2000-11-18 Gerd Moellmann <gerd@gnu.org>
6019
6020 * xdisp.c (resize_mini_window): Temporarily change to the
6021 mini-window's buffer if necessary.
6022
6023 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6024 the tooltip obscures less text under it.
6025
6026 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6027
6028 * puresize.h (BASE_PURESIZE): Increase to 700000.
6029
6030 2000-11-18 Jason Rumney <jasonr@gnu.org>
6031
6032 * w32term.c (w32_draw_bitmap): Use face to set colors.
6033
6034 2000-11-17 Dave Love <fx@gnu.org>
6035
6036 * lread.c (Fload): Fix #ifdef for pcc.
6037
6038 2000-11-17 Gerd Moellmann <gerd@gnu.org>
6039
6040 * xdisp.c (pos_visible_p): Compute the default character height
6041 differently.
6042
6043 2000-11-16 Gerd Moellmann <gerd@gnu.org>
6044
6045 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
6046 knowing the line's height; use the default font's height in that case.
6047
6048 * xfaces.c (weight_table): Add `demi' with the same meaning as
6049 `demibold'.
6050
6051 2000-11-16 Kenichi Handa <handa@etl.go.jp>
6052
6053 * dispnew.c (null_row): New global static variable.
6054 (clear_glyph_row): Delete local static variable null_row.
6055
6056 2000-11-15 Jason Rumney <jasonr@gnu.org>
6057
6058 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6059 (w32_alloc_lighter_color): Use new brightness calculations from
6060 xterm.c. Scale delta to be in the range expected by W32.
6061 (w32_draw_relief_rect): Use frame relief colors.
6062
6063 2000-11-15 Gerd Moellmann <gerd@gnu.org>
6064
6065 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6066 (Qinhibit_default_face_x_resources): New variable.
6067 (syms_of_frame): Initialize it.
6068 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6069
6070 * xdisp.c (pos_visible_p): Improve function comment.
6071
6072 * lisp.h (BINDING_STACK_SIZE): New macro.
6073
6074 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6075 reading the directory if readdir returns null and errno is EAGAIN
6076 or EINTR.
6077
6078 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6079
6080 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6081 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6082 Set amount_to_scroll to max of dx and scroll_step so that
6083 scroll-conservatively doesn't defeat scroll-step>1.
6084 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6085 scroll-conservatively for line-at-a-time scrolling.
6086
6087 2000-11-14 Gerd Moellmann <gerd@gnu.org>
6088
6089 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6090 extra argument.
6091
6092 * xdisp.c (current_mode_line_height, current_header_line_height):
6093 New variables.
6094 (init_xdisp): Initialize them.
6095 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6096 and use exact mode line heights if it is set.
6097
6098 * lisp.h (pos_visible_p): Change prototype.
6099
6100 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6101 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6102 and current_header_line_height first.
6103 (current_mode_line_height, current_header_line_height):
6104 Declare extern.
6105
6106 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6107
6108 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6109 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6110 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6111
6112 2000-11-14 Miles Bader <miles@gnu.org>
6113
6114 * xterm.c (x_alloc_lighter_color): Include an additive component
6115 too for dark colors, because FACTOR isn't enough.
6116 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6117 New macros.
6118
6119 2000-11-13 Gerd Moellmann <gerd@gnu.org>
6120
6121 * keyboard.c (show_help_echo): Call message3_nolog with number of
6122 bytes in the help string as 2nd parameter, instead of the number
6123 of characters.
6124
6125 2000-11-13 Miles Bader <miles@gnu.org>
6126
6127 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6128 (Fload): Use new openp return protocol.
6129 Don't try to use Vload_source_file_function to load .elc files.
6130 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6131 openp return protocol.
6132 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6133
6134 2000-11-11 Kenichi Handa <handa@etl.go.jp>
6135
6136 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6137
6138 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6139 Defined these macros.
6140 (NLIST_STRUCT): Avoid re-defining it.
6141
6142 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6143 -I/usr/contrib/X11R6/include.
6144 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6145
6146 2000-11-10 Jason Rumney <jasonr@gnu.org>
6147
6148 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6149
6150 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6151 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6152
6153 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6154 (Qw32_charset_vietnamese): New symbol.
6155 (xlfd_charset_of_font): New function.
6156 (w32_load_system_font): Use it.
6157 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6158 when Vw32_charset_info_alist is nil to ensure default face always
6159 has font. Use Fcar and Fcdr for safety.
6160 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6161 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6162 pseudo-codepages for special cases.
6163 (w32_to_x_font): New parameter to allow charset portion to be
6164 specified where there is many to one mapping. Callers changed.
6165 (w32_list_fonts): Avoid listing fonts that won't display.
6166
6167 2000-11-10 Gerd Moellmann <gerd@gnu.org>
6168
6169 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6170 (font_list_1): Renamed from font_list.
6171 (font_list): New function, trying alternative registries from
6172 Vface_alternative_font_registry_alist.
6173 (Finternal_set_alternative_font_registry_alist): New function.
6174 (syms_of_xfaces): Initialize and Staticpro
6175 Vface_alternative_font_registry_alist.
6176 Defsubr Finternal_set_alternative_font_registry_alist.
6177
6178 2000-11-09 Ken Raeburn <raeburn@gnu.org>
6179
6180 * lisp.h (Flooking_at): Declare.
6181
6182 2000-11-09 Gerd Moellmann <gerd@gnu.org>
6183
6184 * dired.c (directory_files_internal): Fix a braino.
6185
6186 * dired.c (directory_files_internal): Add missing GCPRO's.
6187 Some cleanup.
6188
6189 2000-11-08 Gerd Moellmann <gerd@gnu.org>
6190
6191 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6192 (resize_mini_window): Return quickly if Vresize_mini_window is
6193 nil. Don't return if Vmax_mini_window_height is nil.
6194
6195 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6196 (syms_of_xdisp): Initialize them.
6197 (resize_mini_window): Act according to the setting of
6198 Vresize_mini_window.
6199 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6200
6201 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6202 scroll bar widget after configuring it, so that it will appear at
6203 the right position from the start.
6204 (XTredeem_scroll_bar): Cleaned up.
6205
6206 2000-11-08 Kenichi Handa <handa@etl.go.jp>
6207
6208 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
6209 font is taller than the frame line, we don't have to bias the
6210 division by two.
6211
6212 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6213
6214 2000-11-07 Dave Love <fx@gnu.org>
6215
6216 * config.in (HAVE_MKSTEMP): Add.
6217
6218 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6219
6220 2000-11-07 Gerd Moellmann <gerd@gnu.org>
6221
6222 * window.c (Fset_window_configuration): Don't try to preserve
6223 point in the current buffer, if that buffer is displayed in more
6224 than one window.
6225
6226 * xfaces.c (lookup_named_face): If default face isn't realized,
6227 try to realize it. Return -1 if not successful.
6228 (Fx_list_fonts): Handle case that face cannot be determined.
6229 (Fface_font): Likewise.
6230
6231 2000-11-06 Gerd Moellmann <gerd@gnu.org>
6232
6233 * window.c (displayed_window_lines): Detect partially
6234 visible lines at the bottom correctly.
6235
6236 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6237
6238 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6239 when ensuring we don't do visit in indirect buffer.
6240
6241 2000-11-06 Kenichi Handa <handa@etl.go.jp>
6242
6243 * composite.h (compose_chars_in_text): Add prototype.
6244
6245 * composite.c (Vcomposition_function_table): New variable.
6246 (Qcomposition_function_table): New variable.
6247 (run_composition_function): Call
6248 Vcompose_chars_after_function with three arguments.
6249 (compose_chars_in_text): New function.
6250 (syms_of_composite): Modified the doc-string of
6251 Vcompose_chars_after_function. Declare composition-function-table
6252 as a lisp variable, and initialize it.
6253
6254 * xfns.c (x_encode_text): Suppress producing escape sequences for
6255 composition.
6256
6257 * xselect.c: Include composite.h.
6258 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6259
6260 2000-11-05 Andrew Innes <andrewi@gnu.org>
6261
6262 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6263
6264 * sysdep.c (read_input_waiting): Remove extraneous argument to
6265 read_socket_hook.
6266
6267 * w32fns.c (Fx_server_version): Include w32_build_number in the
6268 return list.
6269
6270 * w32heap.c (w32_build_number): New variable.
6271 (cache_system_info): Set it.
6272
6273 * w32heap.h (w32_build_number): Add extern.
6274
6275 * emacs.c (syms_of_emacs): Update docstring for
6276 system-configuration, to reflect the actual usage on MS-Windows.
6277
6278 2000-10-31 Gerd Moellmann <gerd@gnu.org>
6279
6280 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6281 process idle timers while waiting for another event.
6282
6283 * dispnew.c (update_frame_line): Handle case where spaces in
6284 the default face are colored.
6285
6286 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6287 window height hasn't changed.
6288
6289 2000-10-31 Jason Rumney <jasonr@gnu.org>
6290
6291 * w32term.c (x_produce_glyphs): Handle composite characters.
6292 (x_draw_glyph_string_foreground)
6293 (x_draw_composite_glyph_string_foreground): Restore old font.
6294
6295 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6296
6297 * minibuf.c (read_minibuf): Reset the undo history just before
6298 starting the recursive-edit.
6299
6300 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6301
6302 * xfaces.c (menu_face_change_count): New variable.
6303 (Finternal_set_lisp_face_attribute): Increment it for changes
6304 of the `menu' face.
6305 (realize_basic_faces): Reflect changes in the `menu' faces
6306 in menu bars.
6307
6308 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6309 dy obtained from the iterator's y-position after moving from
6310 scroll_margin_pos to PT; see comment there.
6311
6312 * xdisp.c (safe_eval_handler): Call add_to_log.
6313
6314 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6315 is not a symbol or string.
6316
6317 * xdisp.c (echo_area_display): Don't perform a display update from
6318 inside redisplay. The update will happen anyway at the end of
6319 redisplay, and it can confuse redisplay (GC messages while
6320 redisplaying, for instance.)
6321
6322 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6323
6324 * xrdb.c (x_load_resources): Use the class name in the defaults.
6325
6326 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
6327 (regex_compile): Catch bogus \(\1\).
6328
6329 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6330
6331 * xterm.c (x_alloc_nearest_color): Fix last change to compare
6332 RGB values.
6333
6334 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
6335 we have a color cache, check that the cached color equals the
6336 allocated color. If not, clear the color cache.
6337
6338 * window.c (displayed_window_lines): Change buffers if necessary.
6339 Fix computation of displayed lines.
6340
6341 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
6342 update_menu_bindings to DEFVAR_BOOL.
6343
6344 2000-10-30 Kenichi Handa <handa@etl.go.jp>
6345
6346 * search.c (Fset_match_data): Be sure to make search_regs always sane.
6347
6348 * puresize.h (BASE_PURESIZE): Increase to 680000.
6349
6350 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
6351
6352 2000-10-29 Jason Rumney <jasonr@gnu.org>
6353
6354 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
6355
6356 * w32term.c (w32_bdf_per_char_metric): Negate descent.
6357 (w32_cache_char_metrics): Handle possibility that 'x' does not
6358 exist in a BDF font.
6359 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
6360
6361 * w32bdf.h (bdffont): Add nchars.
6362
6363 * w32bdf.c (set_bdf_font_info): Set it.
6364 (w32_BDF_TextOut): Swap byte order of double byte characters.
6365 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
6366
6367 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6368
6369 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
6370 don't override the colors in frame's param_alist, unless they are
6371 unspecified.
6372
6373 * term.c (reassert_line_highlight): If inverse_video is non-zero,
6374 reverse the effect of the highlight flag.
6375
6376 2000-10-27 Ken Raeburn <raeburn@gnu.org>
6377
6378 * window.h (Fwindow_live_p): Declare.
6379
6380 * undo.c (record_delete): Check that last_undo_buffer is really a
6381 buffer before applying XBUFFER to it.
6382
6383 * keymap.c (where_is_internal): Pass lisp object, not integer, to
6384 Faref.
6385
6386 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6387
6388 * lisp.h (KEYMAPP): New macro.
6389 (get_keymap): Remove.
6390 (get_keymap_1): Rename get_keymap.
6391
6392 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
6393
6394 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
6395
6396 * xmenu.c (single_submenu): Use KEYMAPP.
6397 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6398 Use KEYMAPP rather than Fkeymapp.
6399
6400 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
6401
6402 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
6403 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6404 Use KEYMAPP rather than Fkeymapp.
6405 (single_submenu): Use KEYMAPP.
6406 (w32_menu_show, w32_dialog_show): Use TRUE.
6407
6408 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
6409
6410 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
6411 (Fkeymapp): Use KEYMAPP.
6412 (get_keymap): Rename from get_keymap_1. Remove old def.
6413 Return t when autoload=0 and error=0 and the keymap needs autoloading.
6414 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
6415 (Fminor_mode_key_binding): Don't raise an error if the binding
6416 is not a keymap.
6417 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6418 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6419
6420 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6421 Allow Vspecial_event_map to be autoloaded.
6422 (menu_bar_items): Fetch the keymap rather than using keymapp.
6423 (menu_bar_one_keymap): No need to follow func-indirect any more.
6424 (parse_menu_item): get_keymap_1 -> get_keymap.
6425 (tool_bar_items): Fetch the keymap rather than using keymapp.
6426 (read_key_sequence): Use KEYMAPP.
6427
6428 * intervals.c (get_local_map): Use get_keymap rather than following
6429 function-indirections explicitly.
6430
6431 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6432
6433 2000-10-27 Jason Rumney <jasonr@gnu.org>
6434
6435 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6436 point, as Windows has oversized fonts.
6437
6438 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6439
6440 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6441
6442 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6443 (freehook, reallochook): Handle null pointer arguments.
6444 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6445
6446 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6447
6448 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6449 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6450 Giving in to popular pressure to shut up the compiler with casts.
6451
6452 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6453
6454 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6455 signed value, and use a default value computed from the font's
6456 maximum descent.
6457
6458 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6459
6460 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6461 that specify a negative underline position can still use underlines.
6462
6463 * window.c (Fpos_visible_in_window_p): Make POS default to
6464 WINDOW's point, not the current buffer's point.
6465
6466 2000-10-26 Dave Love <fx@gnu.org>
6467
6468 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6469 when it's necessary.
6470
6471 2000-10-26 Gerd Moellmann <gerd@gnu.org>
6472
6473 * window.c (size_window): Compute size difference from sum of old
6474 child window sizes instead of from parent's size.
6475
6476 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6477 Handle obscured lines at the top of the window.
6478
6479 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6480 down after the last error condition check.
6481
6482 * frame.c (Fdelete_frame): Run delete-frame-hook.
6483
6484 2000-10-26 Kenichi Handa <handa@etl.go.jp>
6485
6486 * coding.c (decode_coding): Fix previous change (check also
6487 CODING_MODE_LAST_BLOCK).
6488
6489 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6490
6491 * regex.c: More `unsigned char' -> `re_char' changes.
6492 Also change several `int' into `re_wchar_t'.
6493 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6494 (PUSH_FAILURE_POINTER): Don't cast any more.
6495 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6496 We want GCC to complain, since this piece of code makes
6497 re_match non-reentrant, which *should* be fixed.
6498 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6499 (EXTEND_BUFFER): Use RETALLOC.
6500 (SET_LIST_BIT): Don't cast.
6501 (re_wchar_t): New type.
6502 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6503 that those two functions will always properly return.
6504 (IMMEDIATE_QUIT_CHECK): Cast to void.
6505 (analyse_first): Use recursion rather than an explicit stack.
6506 (re_compile_fastmap): Can't fail anymore.
6507 (re_search_2): Don't check re_compile_fastmap for failure.
6508 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6509 Now also sets the new value (passed in a new argument).
6510 (re_match_2_internal): Use it.
6511 Also, use a new var `reg' of type size_t when looping through regs
6512 rather than reuse the inappropriate `mcnt'.
6513
6514 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6515 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6516 (where_is_internal): Renamed from Fwhere_is_internal.
6517 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6518 (Fwhere_is_internal): New function wrapping where_is_internal.
6519 (where_is_internal_1): Handle the case where we're filling the cache.
6520 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6521
6522 2000-10-25 Miles Bader <miles@gnu.org>
6523
6524 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6525
6526 2000-10-25 Gerd Moellmann <gerd@gnu.org>
6527
6528 * window.c (pos_fully_visible_p): Removed.
6529 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6530 if position is visible and/or fully visible.
6531
6532 * lisp.h (pos_visible_p): Add prototype.
6533
6534 * xdisp.c (pos_visible_p): New function.
6535
6536 2000-10-25 Kenichi Handa <handa@etl.go.jp>
6537
6538 * process.c (send_process): If OBJECT is t, it means that the data
6539 is from C string, but we should encode it. Before calling
6540 setup_raw_text_coding_system, be sure to flush out data by the
6541 previous coding system.
6542
6543 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6544
6545 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6546 assignment of startpos to prev when startpos == pos.
6547
6548 * editfns.c (find_field): Set the field stickiness correctly from
6549 overlay fields. Use renamed `text_property_stickiness'.
6550 (text_property_stickiness): Renamed from `char_property_stickiness'.
6551 Only check text properties, not overlays.
6552 * textprop.c (get_char_property_and_overlay): New function.
6553 (Fget_char_property): Use it.
6554 * intervals.h (get_char_property_and_overlay): Add declaration.
6555
6556 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6557
6558 * keymap.c: Use AREF, ASET and ASIZE macros.
6559 (Fmake_sparse_keymap): Docstring fix.
6560 (synkey): Remove.
6561 (shadow_lookup): Move up.
6562 Handle the case where lookup-key returns an integer.
6563 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6564 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6565 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6566 Simplify/rewrite the keymap-finding code.
6567 Add check for command shadowing, using shadow_lookup.
6568
6569 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6570
6571 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6572 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6573 a symbol.
6574
6575 2000-10-24 Andrew Innes <andrewi@gnu.org>
6576
6577 * dired.c (directory_files_internal_unwind): New function.
6578 (directory_files_internal): Use it to ensure closedir is called
6579 even if expand-file-name or file-attributes throw, eg. because of
6580 a user interrupt. Also enable immediate_quit while calling
6581 re_search, so that matching can be interrupted as well.
6582
6583 2000-10-24 Andrew Innes <andrewi@gnu.org>
6584
6585 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6586 NT-Emacs only.
6587 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6588 so that re_search functions only quit when callers expect them to.
6589
6590 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6591
6592 * regex.c (regex_compile): Change the way of handling a range from
6593 a char less than 256 to a char not less than 256.
6594
6595 2000-10-24 Gerd Moellmann <gerd@gnu.org>
6596
6597 * window.c (size_window): Prevent setting window's width or
6598 height to a negative value (esp. with XSETFASTINT).
6599
6600 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6601 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6602 (protect_malloc_state) [GC_MALLOC_CHECK &&
6603 GC_PROTECT_MALLOC_STATE]: New function.
6604 (PROTECT_MALLOC_STATE): New macro.
6605 (__malloc_initialize, morecore, _malloc_internal)
6606 (_free_internal) _realloc_internal): Use it to make _heapinfo
6607 read-only outside of gmalloc.
6608
6609 * keymap.c: Update copyright.
6610
6611 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6612 a symbol.
6613
6614 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6615
6616 * filelock.c (unlock_all_files): Use unlock_file to expand each
6617 buffer's file_truename before trying remove its lock file.
6618
6619 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6620
6621 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6622 or CRLF, decode EOLs.
6623
6624 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6625
6626 * window.c (Fdisplay_buffer): Fix doc.
6627
6628 2000-10-23 Jason Rumney <jasonr@gnu.org>
6629
6630 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6631 ASCII font of default fontset on Windows.
6632
6633 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6634 xterm.c comment below).
6635
6636 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6637
6638 2000-10-23 Gerd Moellmann <gerd@gnu.org>
6639
6640 * xterm.c (x_connection_closed): Reset handling_signal.
6641
6642 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
6643
6644 2000-10-23 Miles Bader <miles@gnu.org>
6645
6646 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6647 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6648 maintain old behavior.
6649 * minibuf.c (Fminibuffer_complete): Likewise.
6650
6651 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6652
6653 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6654 that when a font can't be exactly centered, it errs up rather than
6655 down.
6656
6657 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
6658
6659 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
6660
6661 2000-10-23 Andrew Choi <akochoi@i-cable.com>
6662
6663 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6664
6665 * dispnew.c [macintosh]: Include macterm.h.
6666 (init_display) [macintosh]: Initialization for window system.
6667
6668 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6669 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6670 syms_of_search, x_term_init, and init_keyboard before calling
6671 init_window_once. Also, call syms_of_xmenu.
6672
6673 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6674 default fontset to Monaco.
6675
6676 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6677 NewMacWindow and DisposeMacWindow.
6678 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6679 instead of calling NewMacWindow and setting fields of
6680 f->output_data.mac directly. Call init_frame_faces.
6681 (Fdelete_frame) [macintosh]: Remove unused code.
6682 (Fmodify_frame_parameters) [macintosh]: Call
6683 x_set_frame_parameters instead of mac_set_frame_parameters.
6684
6685 * frame.h [macintosh]: Define menu_bar_lines field in struct
6686 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6687
6688 * keyboard.c [macintosh]: Include macterm.h.
6689 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6690 and menu_bar_activate_event type events as for X and NT.
6691 (make_lispy_event) [macintosh]: Construct lisp events of type
6692 MENU_BAR_EVENT as for X and NT.
6693
6694 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6695 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6696 (sys_subshell) [macintosh]: Remove definition entirely.
6697 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6698 Vwindow_system_version here. Remove initialization of
6699 Vx_bitmap_file_path.
6700 (read_input_waiting): Correct the number of parameters passed to
6701 read_socket_hook.
6702 Move all Macintosh functions to mac/mac.c.
6703
6704 * term.c [macintosh]: Include macterm.h.
6705
6706 * window.c [macintosh]: Include macterm.h.
6707
6708 * xdisp.c [macintosh]: Include macterm.h. Declare
6709 set_frame_menubar and pending_menu_activation.
6710 (echo_area_display) [macintosh]: Do not return if terminal frame
6711 is the selected frame.
6712 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6713 Allow only the selected frame to set menu bar.
6714 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6715 calling FRAME_EXTERNAL_MENU_BAR (f).
6716 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6717
6718 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6719 and check_x. Declare XCreateGC. Define x_create_gc and
6720 x_free_gc. Initialize font_sort_order.
6721 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6722 but call x_list_fonts instead of w32_list_fonts.
6723 (Finternal_face_x_get_resource) [macintosh]: Do not call
6724 display_x_get_resource.
6725 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6726 (realize_x_face) [macintosh]: Load the font if it is specified in
6727 ATTRS.
6728 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
6729
6730 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6731
6732 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6733 is nil: since we go to the end of submap anyway, we'd end up
6734 setting nil to nil.
6735 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6736 doesn't obey autoload.
6737
6738 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6739
6740 * msdos.c (dos_set_window_size): Update screen dimension variables.
6741
6742 2000-10-21 Jason Rumney <jasonr@gnu.org>
6743
6744 * w32term.c (w32_cache_char_metrics): Double check that font is
6745 really fixed pitch before trusting tmPitchAndFamily.
6746
6747 2000-10-21 Andrew Innes <andrewi@gnu.org>
6748
6749 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6750
6751 * w32term.h: Extern decl for w32_cache_char_metrics.
6752
6753 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6754
6755 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6756 (w32_unload_font): Free per_char array if present.
6757
6758 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6759 cached information in emulated XFontStruct to handle common cases
6760 quickly. Do not allocate XCharStruct for return.
6761 (w32_native_per_char_metric): New function.
6762 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6763 allocating one.
6764 (x_produce_glyphs): Don't get an HDC. Change calls to
6765 w32_per_char_metric to match arg change above. Remove calls to
6766 free results.
6767 (w32_get_glyph_overhangs): Ditto.
6768 (w32_cache_char_metrics): New function.
6769
6770 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6771 ($(BLD)/casefiddle.$(O)): Remove compile command.
6772 ($(BLD)/gmalloc.$(O)): Remove compile command.
6773 ($(BLD)/dispnew.obj):
6774 ($(BLD)/keyboard.obj):
6775 ($(BLD)/w32inevt.obj):
6776 ($(BLD)/w32bdf.obj):
6777 ($(BLD)/alloc.obj):
6778 ($(BLD)/buffer.obj):
6779 ($(BLD)/editfns.obj):
6780 ($(BLD)/emacs.obj):
6781 ($(BLD)/fileio.obj):
6782 ($(BLD)/fns.obj):
6783 ($(BLD)/indent.obj):
6784 ($(BLD)/insdel.obj):
6785 ($(BLD)/intervals.obj):
6786 ($(BLD)/minibuf.obj):
6787 ($(BLD)/print.obj):
6788 ($(BLD)/scroll.obj):
6789 ($(BLD)/sysdep.obj):
6790 ($(BLD)/textprop.obj):
6791 ($(BLD)/widget.obj):
6792 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6793 ($(BLD)/term.obj): Add dependency on dispextern.h.
6794
6795 * makefile.nt ($(BLD)\dispnew.obj):
6796 ($(BLD)\keyboard.obj):
6797 ($(BLD)\w32inevt.obj):
6798 ($(BLD)\w32bdf.obj):
6799 ($(BLD)\alloc.obj):
6800 ($(BLD)\buffer.obj):
6801 ($(BLD)\editfns.obj):
6802 ($(BLD)\emacs.obj):
6803 ($(BLD)\fileio.obj):
6804 ($(BLD)\fns.obj):
6805 ($(BLD)\indent.obj):
6806 ($(BLD)\insdel.obj):
6807 ($(BLD)\intervals.obj):
6808 ($(BLD)\minibuf.obj):
6809 ($(BLD)\print.obj):
6810 ($(BLD)\scroll.obj):
6811 ($(BLD)\sysdep.obj):
6812 ($(BLD)\textprop.obj):
6813 ($(BLD)\widget.obj):
6814 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6815 ($(BLD)\term.obj): Add dependency on dispextern.h
6816
6817 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6818
6819 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6820 with an additional argument of Qt.
6821
6822 2000-10-21 Miles Bader <miles@gnu.org>
6823
6824 * window.c (pos_fully_visible_in_window_p): New function.
6825 (Fpos_visible_in_window_p): Add FULLY argument.
6826 Use pos_fully_visible_in_window_p.
6827 (window_scroll_pixel_based, window_scroll_line_based): Update
6828 calls to Fpos_visible_in_window_p.
6829 * lisp.h (Fpos_visible_in_window_p): Update prototype
6830
6831 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6832
6833 * alloc.c (toplevel): Conditionalize compilation of mem_*
6834 functions differently.
6835
6836 2000-10-20 Jason Rumney <jasonr@gnu.org>
6837
6838 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6839 mem_init where it used to be. mem_z etc not defined otherwise.
6840
6841 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6842
6843 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6844 GC_MALLOC_CHECK.
6845 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6846 structure definition and related variabled to the top of the file.
6847 Include this code when GC_MALLOC_CHECK is defined.
6848 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6849 register/unregister allocated region.
6850 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6851 which isn't allocated.
6852 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6853 something which is already in use.
6854 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6855 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6856 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6857 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6858
6859 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6860 _malloc_internal instead of malloc.
6861 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6862 of free.
6863
6864 2000-10-20 Andrew Innes <andrewi@gnu.org>
6865
6866 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6867 Windows.
6868 (my_strftime) <macro>: Don't use macro arg list when redefining as
6869 _strftime_copytm.
6870 (my_strftime) <function>: Supply 0 as ut argument.
6871
6872 2000-10-19 Jason Rumney <jasonr@altavista.net>
6873
6874 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6875 including dispextern.h, as it stops faces from working.
6876
6877 * w32fns.c (Fx_create_frame): Don't bother calling
6878 face-set-after-frame-default since the caller does it for us
6879 anyway. Clean up calls to x_get_arg to be consistent with X.
6880
6881 * w32term.c (x_produce_glyphs): Handle
6882 unibyte_display_via_language_environment correctly.
6883 (w32_draw_box_rect): Fix the calculation of width and height.
6884
6885 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6886 as it has stopped working.
6887 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6888 menu-bar.
6889
6890 2000-10-19 Gerd Moellmann <gerd@gnu.org>
6891
6892 * eval.c (skip_debugger): Prevent a compiler warning.
6893 (Fcondition_case): Likewise.
6894 (Fbacktrace_frame): Use a null interactive spec.
6895
6896 2000-10-19 Kenichi Handa <handa@etl.go.jp>
6897
6898 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6899
6900 2000-10-18 Gerd Moellmann <gerd@gnu.org>
6901
6902 * strftime.c: Sync with glibc, file version 1.78.
6903 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6904 should no longer be used according to ISO 8601.
6905
6906 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6907 no map for meta_prefix_char, don't try to use it as a keymap.
6908 Instead, if T_OK is non-zero, look up a default binding, if any,
6909 otherwise, if T_OK is zero, return nil.
6910
6911 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6912 (x_to_xcolors, png_load): Use x_query_color.
6913
6914 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6915 New functions.
6916 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6917 which can be slow.
6918 (x_copy_color, x_alloc_lighter_color): Likewise.
6919
6920 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6921 (x_query_color, x_query_colors): Add prototype.
6922
6923 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6924 check_string_bytes only if not noninteractive, increase count to 50.
6925
6926 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6927
6928 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6929 markers correctly.
6930
6931 2000-10-17 Gerd Moellmann <gerd@gnu.org>
6932
6933 * alloc.c (pure_bytes_used): Renamed from pureptr.
6934 (ALIGN): New macro.
6935 (pure_alloc): New function.
6936 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6937 Use it.
6938 (Fpurecopy): Use PURE_POINTER_P.
6939
6940 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6941 PT has moved backward.
6942
6943 * xdisp.c (cursor_row_p): Take continued lines into account.
6944
6945 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6946 string's size_byte.
6947 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6948 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6949 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6950 string allocated.
6951
6952 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6953 of selective display off while searching for the next line start.
6954
6955 2000-10-17 Kenichi Handa <handa@etl.go.jp>
6956
6957 * Makefile.in (term.o): Depend on dispextern.h.
6958
6959 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6960
6961 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6962
6963 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6964
6965 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6966 the iterator at the beginning, so that they can be set later on,
6967 for instance in reseat_at_next_visible_line_start, without being
6968 overwritten.
6969
6970 * xfns.c (pbm_format): Add :foreground and :background keywords.
6971 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
6972 (xbm_load): Recognize foreground and background color specifications.
6973
6974 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6975
6976 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6977
6978 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
6979
6980 * msdos.c (IT_set_face): Compare highlighted face with the default
6981 face, and invert colors if these faces' colors are identical.
6982 (Fmsdos_remember_default_colors): Don't swap foreground and
6983 background colors in initial_colors[].
6984 (IT_set_frame_parameters): Don't swap frame's foreground and
6985 background pixels. If ALIST includes "(reverse . t)", swap
6986 foreground-color and background-color properties in frame's
6987 param_alist. If the original frame's param_alist doesn't specify
6988 the colors, store unspecified-fg and unspecified-bg, reversed if
6989 required.
6990
6991 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6992 the colors are unspecified and reversed, reverse fore- and back-
6993 ground in the returned value.
6994 (Fframe_parameter): Ditto.
6995
6996 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6997
6998 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6999 get_last_unchanged_at_beg_row.
7000 (find_first_unchanged_at_end_row): Renamed from
7001 get_first_unchanged_at_end_row.
7002 (find_first_unchanged_at_end_row): Convert assertions to
7003 unconditional tests which abort. When looking for a row in
7004 unchanged text, don't go further back than first_text_row.
7005
7006 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7007 Don't add in the last line's height when deciding if the new
7008 position is below the scroll margin.
7009
7010 2000-10-16 Miles Bader <miles@gnu.org>
7011
7012 * editfns.c (Fconstrain_to_field): Check carefully for field
7013 boundaries if either OLD_POS or NEW_POS has a non-nil field
7014 property, even if they're the same.
7015
7016 2000-10-16 Kenichi Handa <handa@etl.go.jp>
7017
7018 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7019 height for XFillRectangle.
7020
7021 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7022
7023 * syntax.c (Fstring_to_syntax): New function extracted from
7024 Fmodify_syntax_entry.
7025 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7026 (skip_chars, Fforward_comment): Remove unused variables.
7027 (syms_of_syntax): Add defsubr for string-to-syntax.
7028 (describe_syntax): Add code for comment and string fences.
7029
7030 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7031
7032 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7033 Do the meta->esc mapping. Call get_keyelt before returning.
7034 Start scanning from the second element (the first is always `keymap')
7035 to make it easier to detect when we reach a parent map.
7036 Handle the case of inheriting from a symbol whose function is a map.
7037 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7038 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7039 (get_keyelt, Flookup_key): Update call to access_keymap.
7040 Remove the meta->esc mappings.
7041 (define_as_prefix): Delete old disabled code.
7042 (menu_item_p): New function.
7043 (where_is_internal_1): Skip over the few remaining menu items.
7044 * lisp.h (access_keymap): Update prototype.
7045 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7046 Update call to access_keymap.
7047 (follow_key, read_key_sequence): Update calls to access_keymap.
7048 Remove the meta->esc mappings.
7049
7050 2000-10-13 Gerd Moellmann <gerd@gnu.org>
7051
7052 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7053 with additional argument.
7054
7055 * xdisp.c (cursor_row_p): New function.
7056 (try_cursor_movement, display_line): Use it.
7057
7058 * xdisp.c (append_space): Also save/restore iterator's current
7059 character and its length.
7060
7061 * xdisp.c (init_from_display_pos): Add an assertion.
7062 (handle_stop): Don't set iterator's add_overlay_start.
7063 (handle_invisible_prop): Likewise.
7064 (load_overlay_strings): If text under an overlay is invisible,
7065 take both before- and after-strings into account when the iterator
7066 is positioned either at the start or at the end of the overlay.
7067 (forward_to_next_line_start): Rewritten.
7068 (reseat_at_next_visible_line_start): Rewritten.
7069 (set_iterator_to_next): Add parameter RESEAT_P.
7070
7071 * dispextern.h (struct it): Remove member add_overlay_start.
7072 (set_iterator_to_next): Change prototype.
7073
7074 2000-10-13 Kenichi Handa <handa@etl.go.jp>
7075
7076 * coding.c (code_convert_region): Be sure to initialize
7077 coding->category_idx.
7078 (decode_coding_string): Set coding->src_multibyte and
7079 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7080 (encode_coding_string): Set coding->src_multibyte and
7081 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
7082
7083 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7084
7085 * xfns.c (Fx_create_frame): Don't bother calling
7086 face-set-after-frame-default since the caller does it for us anyway.
7087
7088 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7089
7090 * window.c (coordinates_in_window): Fix detection of vertical line
7091 on character terminals.
7092
7093 2000-10-12 Gerd Moellmann <gerd@gnu.org>
7094
7095 * editfns.c (save_excursion_save): Additionally record the
7096 selected window.
7097 (save_excursion_restore): If buffer was visible in a window, and a
7098 different window was selected, and the old selected window is
7099 still live, restore point in that window.
7100
7101 2000-10-12 Kenichi Handa <handa@etl.go.jp>
7102
7103 * xterm.c (x_produce_glyphs): Handle
7104 unibyte_display_via_language_environment correctly.
7105
7106 * regex.c (regex_compile): Change the way of handling a range from
7107 unibyte char to multibyte char.
7108
7109 * syntax.c (skip_chars): Change the way of handling a range from
7110 unibyte char to multibyte char.
7111
7112 * process.c (read_process_output): Cancel previous change.
7113
7114 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7115
7116 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7117
7118 * charset.c (Ffind_charset_string): Doc fix.
7119 (Ffind_charset_region): Doc fix.
7120
7121 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
7122
7123 * process.c (read_process_output): Fix previous change. Adjust
7124 multibyteness of text to insert in a buffer by
7125 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
7126
7127 2000-10-10 Andreas Schwab <schwab@suse.de>
7128
7129 * alloc.c (mark_object): Remove all workarounds installed on
7130 1993-08-08.
7131
7132 2000-10-10 Kenichi Handa <handa@etl.go.jp>
7133
7134 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
7135 (base64_encode_1): Make it work for a text of multibyte form.
7136 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7137 case. Don't call str_to_multibyte because base64_decode_1
7138 produces correct multibyte form for eight-bit codes.
7139 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
7140 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7141 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7142 codes.
7143
7144 * charset.h (CHAR_STRING): Optimized for single byte characters.
7145
7146 2000-10-09 Andreas Schwab <schwab@suse.de>
7147
7148 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7149 -1 after socket is closed, to fall through to error processing.
7150
7151 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7152
7153 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
7154 variables. If ALIST includes foreground-color or
7155 background-color, change also the colors of the default face for
7156 this frame.
7157
7158 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7159
7160 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7161 them extern (they are defined on xfaces.c).
7162 (syms_of_msdos): Don't intern and don't staticpro
7163 Qbackground_color and Qforeground_color.
7164
7165 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7166
7167 * frame.c (Fframe_parameter): For non-windowed frames, if
7168 f->param_alist says foreground or background color is unspecified,
7169 call tty_color_name to return the color name computed from the
7170 frame's current colors.
7171
7172 2000-10-06 Dave Love <fx@gnu.org>
7173
7174 * terminfo.c (ospeed): Don't declare.
7175
7176 * sysdep.c: Don't include string.h.
7177 (h_errno): Declare conditional also on TRY_AGAIN.
7178
7179 * charset.c (Ffind_charset_string): Doc fix.
7180
7181 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
7182 (Fbase64_decode_region, Fbase64_decode_string): More explicit
7183 error messages.
7184
7185 2000-10-05 Dave Love <fx@gnu.org>
7186
7187 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7188 position like menu-bar.
7189
7190 2000-10-05 Gerd Moellmann <gerd@gnu.org>
7191
7192 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7193
7194 * xdisp.c (handle_single_display_prop): Use safe_call1.
7195 (safe_call): Renamed from call_function.
7196 (safe_call1): New function.
7197 (handle_fontified_prop): Use safe_call1 instead of call1.
7198 (safe_eval): Renamed from eval_form.
7199 (safe_eval_handler): Renamed from eval_handler.
7200 (handle_single_display_prop, display_mode_element): Use safe_eval
7201 instead of eval_form.
7202
7203 * xfaces.c (merge_face_heights): Use safe_call instead of
7204 call_function.
7205
7206 * keyboard.c (show_help_echo): Use safe_call instead of
7207 call_function; use safe_eval instead of eval_form.
7208
7209 * lisp.h (safe_call): Renamed from call_function.
7210 (safe_eval): Renamed from eval_form.
7211 (safe_call1): Add prototype.
7212
7213 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7214
7215 * xfns.c (image_ascent): Rearrange ascent calculation for the
7216 has-a-font case.
7217
7218 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7219
7220 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7221 (where_is_internal_1): Don't bother ignoring menu-items any more.
7222
7223 2000-10-04 Gerd Moellmann <gerd@gnu.org>
7224
7225 * keyboard.c (update_menu_bindings): New variable.
7226 (parse_menu_item): Use AREF. If update_menu_bindings
7227 is 0, don't update menu bindings.
7228 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7229
7230 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7231
7232 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7233 to `mark_object'.
7234
7235 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7236
7237 * syntax.c (forw_comment): Match nestedness of ender/starter.
7238 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7239 (prev_char_comstart_first): Remove.
7240 (back_comment): Check two-char comment markers more carefully
7241 to better handle overlapping cases like *//* or /* */* */ ...
7242 Match nestedness of ender/starter.
7243
7244 2000-10-02 Dave Love <fx@gnu.org>
7245
7246 * config.in (HAVE_GAI_STRERROR): Add undef.
7247
7248 * process.c (Fopen_network_stream): Use it.
7249
7250 * m/alpha.h (NO_REMAP): Don't define.
7251
7252 2000-10-02 Gerd Moellmann <gerd@gnu.org>
7253
7254 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7255 return with a string converted to an integer or vice versa when
7256 Vmocklisp_arguments is t.
7257 (Fsignal): Likewise. The function can return for `quit'.
7258 (struct gcpro): Declare member `var' to point to a volatile
7259 Lisp_Object.
7260
7261 * eval.c (error): Prevent compiler warning.
7262
7263 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7264
7265 * keymap.c (keymap_memberp): New function.
7266 (Fset_keymap_parent): Use it.
7267 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7268 Use keymap_memberp to avoid creating cycles.
7269 (access_keymap): Use KEYMAPP.
7270
7271 2000-09-30 Gerd Moellmann <gerd@gnu.org>
7272
7273 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
7274 gai_strerror. Make sure xerrno is set if connect fails. Improve
7275 error recovery.
7276
7277 2000-09-29 Jason Rumney <jasonr@gnu.org>
7278
7279 * w32term.c (w32_char_font_type, w32_encode_char)
7280 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7281 (w32_bdf_per_char_metric): New function.
7282 (w32_per_char_metric): Use it.
7283 (x_draw_glyph_string_background): Always draw background for BDF
7284 glyphs.
7285
7286 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7287 GDI object which is a scarce resource.
7288
7289 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7290 (get_quoted_string): Fix limit on memchr search.
7291 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7292 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7293 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7294 (get_cached_font_char, cache_char_offset): Use macro
7295 BDF_CODEPOINT_RANGE_COVER_P.
7296 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7297 (clear_cached_bitmap_slots): New function.
7298 (GET_HEX_VALUE): G-Z, g-z are not hex.
7299 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7300 (get_bitmap_with_cache): Use new cache implementation.
7301 (create_offscreen_bitmap): New function.
7302 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7303
7304 * w32term.c (x_produce_glyphs): If the distance from the current
7305 position to the next tab stop is less than a canonical character
7306 width, use the tab stop after that.
7307 (x_draw_glyphs): Handle case START and END are out of bounds more
7308 carefully.
7309 (x_clear_mouse_face): Block/unblock input.
7310 (x_display_and_set_cursor): Don't show a hollow box cursor for
7311 buffers whose cursor_type is nil.
7312
7313 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7314
7315 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
7316
7317 * dispextern.h (updating_frame): Declare extern.
7318
7319 2000-09-29 Andreas Schwab <schwab@suse.de>
7320
7321 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7322
7323 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7324
7325 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
7326 use its function definition.
7327 (tool_bar_items): Likewise.
7328
7329 * lisp.h (fatal): Declare NO_RETURN.
7330
7331 2000-09-29 Kenichi Handa <handa@etl.go.jp>
7332
7333 * keymap.c: Remove the line "#undef NULL".
7334
7335 2000-09-28 Gerd Moellmann <gerd@gnu.org>
7336
7337 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
7338
7339 2000-09-28 Dave Love <fx@gnu.org>
7340
7341 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
7342
7343 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
7344
7345 * .gdbinit (xreload): Note its need on GNU/Linux.
7346
7347 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
7348 r_alloc, r_alloc_free.
7349
7350 2000-09-28 Kenichi Handa <handa@etl.go.jp>
7351
7352 * syntax.c (skip_chars): Handle negation correctly.
7353
7354 2000-09-27 Gerd Moellmann <gerd@gnu.org>
7355
7356 * xfaces.c (realize_default_face): Call set_lface_from_font_name
7357 with non-zero FORCE_P argument.
7358
7359 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
7360 Add assertions.
7361
7362 * xdisp.c (window_box_height): Add an assertion.
7363
7364 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
7365 tool-bar than is available.
7366 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
7367
7368 2000-09-27 Dave Love <fx@gnu.org>
7369
7370 * s/irix6-5.h: Now works 64-bit. Tidied.
7371
7372 2000-09-26 Gerd Moellmann <gerd@gnu.org>
7373
7374 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
7375 instead of BITS_PER_INT.
7376 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
7377 EMACS_UINT, respectively.
7378 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
7379
7380 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
7381
7382 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
7383
7384 * window.c (freeze_window_starts): Construct last argument for
7385 foreach_window differently.
7386
7387 * xfns.c (x_decode_color): Don't return a Lisp_Object.
7388
7389 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
7390 EMACS_UINT instead of `int' and `unsigned int'.
7391 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
7392
7393 * frame.h (struct frame): Make the `nothing' member of union
7394 output_data an EMACS_INT.
7395
7396 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
7397 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
7398 size in the sdata structure.
7399 (SDATA_NBYTES, SDATA_DATA): New macros.
7400 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
7401 differently for the different layout of the sdata structure.
7402 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
7403 in sdata.
7404 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
7405 Check that size recorded in the string size and size recorded in
7406 the sdata structure agree.
7407
7408 2000-09-25 Dave Love <fx@gnu.org>
7409
7410 * buffer.c: Include stdio.h.
7411
7412 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
7413
7414 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
7415
7416 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
7417 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
7418 (__malloc_extra_blocks): Declare as __malloc_size_t.
7419
7420 2000-09-25 Gerd Moellmann <gerd@gnu.org>
7421
7422 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7423
7424 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7425 (read_char): If help-echo is showing, preserve the echo area
7426 when redisplaying.
7427
7428 * xdisp.c (help_echo_showing_p): New variable.
7429 (set_message): Reset it to 0.
7430 (init_xdisp): Initialize help_echo_showing_p.
7431
7432 * dispextern.h (help_echo_showing_p): Declare extern.
7433
7434 * config.in: Fix typo in __GNUC_MINOR__.
7435
7436 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7437
7438 * s/freebsd.h (POSIX_SIGNALS): Define.
7439
7440 * xterm.c (x_clear_mouse_face): Block/unblock input.
7441
7442 2000-09-24 Dave Love <fx@gnu.org>
7443
7444 * fns.c (base64_encode_1): Fix last change.
7445
7446 2000-09-22 Gerd Moellmann <gerd@gnu.org>
7447
7448 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7449
7450 * xdisp.c (try_window_reusing_current_matrix): More fixes
7451 for the case window has a header-line.
7452
7453 2000-09-22 Dave Love <fx@gnu.org>
7454
7455 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7456 a doc string.
7457
7458 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7459
7460 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7461
7462 2000-09-21 Gerd Moellmann <gerd@gnu.org>
7463
7464 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
7465 for GCC >= 2.5.
7466
7467 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7468 Declare NO_RETURN.
7469
7470 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7471 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7472 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7473 warnings.
7474
7475 * marker.c (byte_char_debug_check): Return void.
7476
7477 * xfns.c (Fx_create_frame): Set default frame parameter value
7478 for tool-bar-lines to 1.
7479
7480 * dispnew.c (scrolling_window): Compare y-positions of rows
7481 equal at the start. Some simplification.
7482
7483 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7484 reused rows' y-position in the case window has a header-line, and
7485 new window start is greater than old window start.
7486
7487 * process.c (process_sent_to): New variable.
7488 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7489 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7490 Declare more parameters volatile.
7491
7492 * lread.c (Vrecursive_load_depth_limit): New variable.
7493 (Fload): Check recursive loads whose recursion depth exceeds
7494 Vrecursive_load_depth_limit.
7495 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7496
7497 2000-09-20 Gerd Moellmann <gerd@gnu.org>
7498
7499 * fileio.c (Fread_file_name): Doc fix.
7500
7501 * editfns.c (Fmessage_or_box): Doc fix.
7502
7503 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7504
7505 * xfns.c (xbm_scan): Allow C-style comments.
7506
7507 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7508 symbols are specified, add color translations to the cache.
7509 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
7510 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7511 xpm_cache_color.
7512 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7513 structures to xpm_init_color_cache.
7514
7515 2000-09-19 Gerd Moellmann <gerd@gnu.org>
7516
7517 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
7518
7519 2000-09-19 Andrew Innes <andrewi@gnu.org>
7520
7521 * makefile.nt (bootstrap-emacs): Don't change directory.
7522
7523 2000-09-19 Kenichi Handa <handa@etl.go.jp>
7524
7525 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7526
7527 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7528 If output buffer is too small, signal an appropriated error.
7529
7530 2000-09-18 Dave Love <fx@gnu.org>
7531
7532 * keyboard.c (menu_bar_items, tool_bar_items)
7533 (current_active_maps): Remove redundant get_local_map call.
7534
7535 2000-09-18 Gerd Moellmann <gerd@gnu.org>
7536
7537 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7538 cursor for buffers whose cursor_type is nil.
7539
7540 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7541 a feature to implement that is already implemented.
7542 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7543 warnings.
7544
7545 * xfns.c (x_clear_image_1): New function.
7546 (x_clear_image): Use it.
7547 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
7548
7549 * dispnew.c (update_window): Move test for invisible lines
7550 at the top to update_window_line.
7551 (update_window_line): Handle invisible lines here.
7552
7553 * xfns.c (clear_image_cache): Clear current matrices of all
7554 frames sharing an image cache. Block input while freeing
7555 images. Fix timestamp comparison.
7556 (x_clear_image): Also free the mask.
7557
7558 * xfns.c (lookup_image): Block input while loading the image so
7559 that we won't get interrupted in a state where the image isn't yet
7560 set up completely.
7561 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7562 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7563 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
7564 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
7565
7566 2000-09-16 Gerd Moellmann <gerd@gnu.org>
7567
7568 * dispnew.c (update_window): Make sure to make desired rows
7569 current even if they are completely invisible at the top
7570 of a window.
7571
7572 2000-09-15 Gerd Moellmann <gerd@gnu.org>
7573
7574 * xfns.c (lookup_image): Build mask before applying an algorithm.
7575 Recognize algorithm `disabled'.
7576 (cross_disabled_images): New variable.
7577 (COLOR_INTENSITY): New macro.
7578 (x_detect_edges): Use COLOR_INTENSITY.
7579 (x_disable_image): New function.
7580 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7581
7582 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7583 disabled state, don't apply an image transformation algorithm if
7584 the user specified an image for the disabled state. Use
7585 `:algorithm disabled' for creating a disabled item's image if the
7586 user hasn't specified an image.
7587
7588 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7589 allocation functions with the XPM lib.
7590 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7591 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7592 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7593 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
7594 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
7595 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7596 functions, if possible, because these handle color allocation
7597 failure more gracefully.
7598 (Fimage_mask_p): New function.
7599
7600 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7601 (Qedge_detection, Qheuristic): New symbols.
7602 (syms_of_xfns): Initialize new symbols.
7603 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7604 `algorithm (edge-detection ...)'.
7605 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7606 (tiff_format, gif_format, gs_format): Add `:mask'.
7607 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7608 (GIF_MASK, GS_MASK): New enumerators.
7609 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7610 (emboss_matrix, laplace_matrix): New variables.
7611 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7612 (x_edge_detection): New functions.
7613 (x_laplace): Rewritten in terms of x_detect_edges.
7614 (x_build_heuristic_mask): If image has a mask, free it.
7615
7616 2000-09-14 Andrew Innes <andrewi@gnu.org>
7617
7618 * makefile.w32-in: Revert to Unix line endings.
7619
7620 2000-09-14 Andrew Innes <andrewi@gnu.org>
7621
7622 * makefile.w32-in: Standardize indentation somewhat.
7623 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7624 cater for differences between shells.
7625
7626 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7627
7628 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7629
7630 * xterm.c (x_produce_glyphs): If the distance from the current
7631 position to the next tab stop is less than a canonical character
7632 width, use the tab stop after that.
7633
7634 2000-09-14 Dave Love <fx@gnu.org>
7635
7636 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7637
7638 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7639
7640 * xdisp.c (handle_fontified_prop): While running fontification
7641 functions, bind `fontification-functions' and
7642 `after-change-functions' to nil.
7643
7644 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7645 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7646
7647 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7648
7649 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7650 USE_MMAP_FOR_BUFFERS.
7651
7652 * insdel.c (make_gap): Use enlarge_buffer_text.
7653
7654 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7655 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7656 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7657 from former r_alloc_* functions in ralloc.c.
7658 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
7659 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7660 (mmap_init) [REL_ALLOC_MMAP]: New function.
7661 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7662 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7663 BUFFER_FREE.
7664
7665 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7666 (enlarge_buffer_text): Add prototype.
7667
7668 * ralloc.c: Remove everything having to do with the use of mmap.
7669
7670 2000-09-13 Gerd Moellmann <gerd@gnu.org>
7671
7672 * sound.c (Fplay_sound): Doc fix.
7673
7674 * keyboard.c: Avoid some more compiler warnings.
7675 (parse_tool_bar_item): Ignore cached key bindings.
7676
7677 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7678 and allocation of Lisp data.
7679
7680 2000-09-12 Gerd Moellmann <gerd@gnu.org>
7681
7682 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7683 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7684 defaults first.
7685
7686 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7687
7688 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
7689
7690 * ccl.c: Comment fixed.
7691 (MAX_MAP_SET_LEVEL): Increased to 30.
7692 (PUSH_MAPPING_STACK): Enclose with do-while block.
7693 (POP_MAPPING_STACK): Likewise.
7694 (stack_idx_of_map_multiple): New variable.
7695 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7696 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
7697 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
7698 (ccl_driver) <CCL_MapSingle>: Likewise.
7699 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7700 with the case where looking up process reaches to the end of
7701 map-set, and call CCL programs as the above change.
7702
7703 2000-09-11 Gerd Moellmann <gerd@gnu.org>
7704
7705 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7706 that might be clobbered by longjmp.
7707 (check_x_display_info, x_decode_color, create_frame_xic)
7708 (Fx_display_backing_store, Fx_display_visual_class)
7709 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
7710
7711 * lread.c (init_lread): Set Vloads_in_progress to nil.
7712 (Fload): Show list of recursively loaded files, when signaling an
7713 error.
7714
7715 * lread.c (Vloads_in_progress): New variable.
7716 (record_load_unwind): New function.
7717 (Fload): Check for recursive loads.
7718 (syms_of_lread): Initialize Vloads_in_progress.
7719 (read_integer, read1): Avoid some compiler warnings.
7720
7721 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7722 compiler warnings.
7723
7724 2000-09-11 Miles Bader <miles@gnu.org>
7725
7726 * editfns.c (Fbuffer_string): Doc fix.
7727
7728 2000-09-10 Gerd Moellmann <gerd@gnu.org>
7729
7730 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7731
7732 2000-09-09 Ken Raeburn <raeburn@gnu.org>
7733
7734 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7735 whether to include other header files.
7736
7737 2000-09-09 Gerd Moellmann <gerd@gnu.org>
7738
7739 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
7740 by Fmemq as a boolean.
7741
7742 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7743
7744 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7745
7746 2000-09-08 Gerd Moellmann <gerd@gnu.org>
7747
7748 * ralloc.c (mmap_fd): Remove initializer which can make it
7749 read-only in a dumped Emacs.
7750 (mmap_fd_1): New variable.
7751 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7752 restore it from there.
7753 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7754 unconditionally so that mmap_fd can be initialized there.
7755 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7756 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7757 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7758
7759 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7760
7761 * xdisp.c (dump_glyph_row): Fix printf format string.
7762 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
7763
7764 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7765
7766 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7767 inheritance.
7768
7769 * xdisp.c (try_window_id): When trying to locate cursor in
7770 unchanged rows at the top, handle the case that we can't find it.
7771
7772 * xterm.c (x_draw_glyphs): Handle case START and END are out
7773 of bounds more carefully.
7774
7775 2000-09-08 Dave Love <fx@gnu.org>
7776
7777 * s/sol2.h (REL_ALLOC_MMAP): Define.
7778 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7779
7780 * ralloc.c: Don't include string.h (redundant).
7781 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7782 [!MAP_ANON]: Include fcntl.h.
7783 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7784 (r_alloc, r_re_alloc, r_alloc_free)
7785 (mmap_enlarge, mmap_set_vars): Use it.
7786 (r_alloc_init_fd): New function.
7787 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7788 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7789 malloc type.
7790
7791 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7792 Remove vm-limit.o.
7793
7794 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7795 change to __NetBSD__.
7796
7797 2000-09-08 Kenichi Handa <handa@etl.go.jp>
7798
7799 * search.c (compile_pattern): Check the multibyteness of cached
7800 string and PATTERN.
7801
7802 2000-09-08 Miles Bader <miles@gnu.org>
7803
7804 * xfaces.c (default_face_vector): Function removed.
7805 (Finternal_merge_in_global_face): Restore old global/local
7806 attribute override order. Use inline loop instead of calling
7807 default_face_vector.
7808
7809 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7810
7811 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7812 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7813 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7814 where necessary, in case POINTER_TYPE is `void'.
7815
7816 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7817
7818 * frame.c (make_terminal_frame): Initialize frame foreground and
7819 background colors to unspecified, for the initial instance of an
7820 MSDOS frame.
7821
7822 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7823
7824 * ralloc.c (mmap_find): Fix overlap computation.
7825 (mmap_enlarge): Compute nbytes before trying to find an
7826 overlapping region.
7827
7828 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7829 instead of `!='.
7830
7831 * lread.c (syms_of_lread): Change value of regexp
7832 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7833
7834 * xmenu.c (xdialog_show): When looking up the selection in
7835 menu_items, take `quote' boundaries into account; this corresponds
7836 to a nil ITEM in x-popup-dialog.
7837
7838 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7839
7840 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7841 not 0x81.
7842 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7843
7844 * coding.c (encode_coding_sjis_big5): Use translation table for
7845 encoding, not decoding. Fix the handling of latin-jisx0201.
7846 Check for the charset katakana-jisx0201 too.
7847 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
7848 (detect_coding_sjis): Check the byte sequence more rigidly.
7849
7850 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7851
7852 * xfaces.c (Vparam_value_alist): New variable.
7853 (syms_of_xfaces): Initialize it.
7854 (Finternal_set_lisp_face_attribute): Avoid more consing.
7855
7856 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7857 specially.
7858 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7859 (Qbackground_mode): New variable.
7860 (syms_of_frame_1): Initialize Qbackground_mode.
7861
7862 * lisp.h (Qdisplay): Declare extern.
7863
7864 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7865 change face on all frames, and change the default for new frames.
7866
7867 2000-09-07 Dave Love <fx@gnu.org>
7868
7869 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7870
7871 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7872
7873 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7874
7875 * charset.c: Include composite.h
7876 (lisp_string_width): New function.
7877 (Fstring_width): Call lisp_string_width instead of strwidth.
7878
7879 * Makefile.in (charset.o): Depends on composite.h.
7880
7881 * process.c (read_process_output): Before inserting the decoded
7882 text in the buffer, adjust the multibyteness.
7883
7884 2000-09-06 Gerd Moellmann <gerd@gnu.org>
7885
7886 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
7887 buffer's text buffer is null, map new memory.
7888
7889 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7890 POINTER_TYPE and size_t.
7891 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7892 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7893 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7894 [REL_ALLOC_MMAP]: New macros.
7895 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7896 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7897 [REL_ALLOC_MMAP]: New functions.
7898
7899 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7900 before and after unexec.
7901
7902 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7903 text buffers if necessary.
7904
7905 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7906 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7907 in prototypes.
7908
7909 * config.in (HAVE_MMAP): Add #undef.
7910
7911 2000-09-05 Gerd Moellmann <gerd@gnu.org>
7912
7913 * frame.c (Qdisplay_type): New variable.
7914 (syms_of_frame_1): Initialize it.
7915 (Fframe_parameter): New function that avoids consing.
7916 (syms_of_frame): Defsubr it.
7917
7918 * buffer.c (Fother_buffer): Consider buffers as invisible when
7919 they are displayed in a window on an invisible frame.
7920
7921 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7922 get-largest-window always return nil.
7923
7924 2000-09-04 Gerd Moellmann <gerd@gnu.org>
7925
7926 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7927 variable; recognize Emacs 19 elc files.
7928
7929 2000-09-04 Miles Bader <miles@gnu.org>
7930
7931 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7932 before initially popping up the menu, so the menu doesn't flash
7933 when the face settings are significantly different from the defaults.
7934
7935 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7936
7937 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7938 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7939 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7940 (BIT_UNIBYTE): Remove.
7941 (re_match_2_internal): Delete corresponding code and streamline the
7942 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7943 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7944 (re_wctype_t): New type.
7945 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7946 (regex_compile): Use them and fix handling of overly long char classes.
7947
7948 2000-09-03 Andrew Innes <andrewi@gnu.org>
7949
7950 * makefile.w32-in: Change to DOS line endings.
7951
7952 * s/ms-w32.h (ORDINARY_LINK): New define.
7953
7954 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7955 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7956
7957 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7958 (distclean): Delete them here instead.
7959
7960 * w32proc.c (compare_env): Convert to uppercase for comparison,
7961 not lowercase, to match how the native Windows shell works.
7962
7963 2000-09-03 Jason Rumney <jasonr@gnu.org>
7964
7965 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7966 CVS changes the line-ends when checking in/out on DOS/Windows.
7967
7968 * makefile.nt (emacs): Do not change directory to run temacs, as
7969 the load-path is set relative to current directory.
7970
7971 2000-09-03 Miles Bader <miles@gnu.org>
7972
7973 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7974
7975 2000-09-02 Gerd Moellmann <gerd@gnu.org>
7976
7977 * xdisp.c (redisplay_mode_lines): New function.
7978 (display_mode_lines): Return number of mode lines displayed.
7979 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7980 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7981
7982 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7983 string.h and strings.h.
7984 (index) [HAVE_INDEX]: Add prototype.
7985
7986 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7987 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7988
7989 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7990 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7991
7992 2000-09-01 Gerd Moellmann <gerd@gnu.org>
7993
7994 * lread.c (read1): Accept `?' as symbol constituent, for
7995 compatiblity with XEmacs.
7996
7997 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7998
7999 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8000 (struct re_pattern_buffer): Remove newline_anchor.
8001 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8002 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8003 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8004 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8005 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8006 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8007 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8008 Get rid of references to newline_anchor.
8009 (regcomp): Allocate and precompute a fastmap.
8010
8011 2000-08-31 Gerd Moellmann <gerd@gnu.org>
8012
8013 * lread.c (openp): GCPRO local variable `filename'.
8014
8015 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8016
8017 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8018
8019 * regex.c: Merge some changes from GNU libc. Add prototypes.
8020 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8021 Use memcmp and memcpy instead of bcopy and bcmp.
8022 (init_syntax_once): Use ISALNUM.
8023 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8024 (REG_UNSET_VALUE): Remove. Use NULL instead.
8025 (REG_UNSET, re_match_2_internal): Use NULL.
8026 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8027 New macros.
8028 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8029 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8030 (regex_compile): In handle_interval, return an error rather than try to
8031 unfetch the interval if we can't find the closing brace.
8032 Obey the RE_NO_GNU_OPS syntax bit.
8033 (TOLOWER): New macro.
8034 (regcomp): Use it.
8035 (regexec): Allocate regs.start and regs.end as one block.
8036
8037 2000-08-30 Gerd Moellmann <gerd@gnu.org>
8038
8039 * xdisp.c (echo_area_display): Check display_completed instead
8040 of calling detect_input_pending.
8041
8042 * dispnew.c (update_frame): Only set display_completed here; move
8043 the update_begin and update_end calls here from update_frame_1.
8044 (update_frame_1): Don't set display_completed here, don't call
8045 update_begin/update_end.
8046
8047 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8048 instead of store_frame_param.
8049
8050 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8051
8052 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8053 desired window matrix hasn't been displayed, use the current row
8054 instead. Make sure that only those frame rows are updated for
8055 which there exists a corresponding enabled desired row.
8056
8057 2000-08-29 Miles Bader <miles@gnu.org>
8058
8059 * xfaces.c (default_face_vector): New function.
8060 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8061
8062 2000-08-29 Gerd Moellmann <gerd@gnu.org>
8063
8064 * lread.c (openp): Prevent temporary string passed to
8065 Ffile_readable_p from being garbage collected.
8066
8067 2000-08-28 Dave Love <fx@gnu.org>
8068
8069 * keymap.c (store_in_keymap): Add `static' to declaration.
8070
8071 2000-08-28 Gerd Moellmann <gerd@gnu.org>
8072
8073 * emacs.c, callint.c, doc.c, editfns.c
8074 (toplevel) [HAVE_STRING_H]: Include string.h.
8075 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8076 (index): Remove prototypes which might conflict with non-standard
8077 definitions of index/strchr.
8078
8079 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8080 (rindex): Define only if !HAVE_RINDEX.
8081
8082 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8083
8084 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8085
8086 2000-08-28 Miles Bader <miles@gnu.org>
8087
8088 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8089 made inconsistent by a font-related attribute in FROM.
8090 (merge_face_inheritance): Add function comment.
8091
8092 2000-08-28 Kenichi Handa <handa@etl.go.jp>
8093
8094 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8095 the 4th arg (PREV_EVENT) Qt to suppress input method.
8096
8097 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8098
8099 * regex.c: Indent cpp directives and remove parens after `defined'.
8100 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8101 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8102 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8103 (re_compile_pattern): Use size_t for length.
8104 (init_syntax_once): Move to a better place.
8105 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8106 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8107
8108 * syntax.c (back_comment): Detect cases where a comment-starter is
8109 actually inside another comment as in: /* a // b */ c // d \n.
8110 Make it clear that `comstart_pos' is unused for nested comments.
8111
8112 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8113 (KEYMAPP): New macro.
8114 (Fkeymap_parent, Fset_keymap_parent): Use it.
8115 (fix_submap_inheritance): Mark it static.
8116 (define_as_prefix, describe_buffer_bindings, describe_command)
8117 (describe_translation, describe_map): Complete prototypes.
8118
8119 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8120
8121 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8122 to better match the key-lookup behavior.
8123
8124 2000-08-27 Gerd Moellmann <gerd@gnu.org>
8125
8126 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8127 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8128
8129 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8130
8131 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8132 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8133 (xterm.o): Depend on coding.h
8134
8135 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8136
8137 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8138 the corresponding '#endif'.
8139
8140 2000-08-26 Miles Bader <miles@gnu.org>
8141
8142 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8143 * xfaces.c (QCinherit): New variable.
8144 (syms_of_xfaces): Initialize it.
8145 (LFACE_INHERIT): New macro.
8146 (Finternal_get_lisp_face_attribute)
8147 (merge_face_vector_with_property)
8148 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8149 (check_lface_attrs): Allow new types of face height. Check
8150 inherit attribute.
8151 (CYCLE_CHECK): New macro.
8152 (merge_face_inheritance): New function.
8153 (merge_face_vectors): Merge inherited faces too. Add F and
8154 CYCLE_CHECK arguments.
8155 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8156 (lookup_named_face, lookup_derived_face, realize_named_face)
8157 (face_at_string_position, face_at_buffer_position): Supply
8158 new F and CYCLE_CHECK arguments to merge_face_vectors.
8159 (merge_face_heights): New function.
8160 (merge_face_vectors, merge_face_vector_with_property)
8161 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8162 handle relative face heights.
8163 (lface_same_font_attributes_p): Compare heights using EQ.
8164
8165 2000-08-26 Kenichi Handa <handa@etl.go.jp>
8166
8167 * charset.c (char_to_string): Check the character validity.
8168 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
8169
8170 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8171
8172 * regex.c (PUSH_FAILURE_COUNT): New macro.
8173 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8174 Handle popping of a register's or a counter's data.
8175 (POP_FAILURE_POINT): Use the new name.
8176 (re_match_2_internal): Push counter data on the stack for succeed_n,
8177 jump_n and set_number_at and remove misleading dead code in succeed_n.
8178
8179 2000-08-25 Gerd Moellmann <gerd@gnu.org>
8180
8181 * xdisp.c (redisplay_internal): If considering all windows on all
8182 frames, update the display for each frame as soon as possible,
8183 instead of first building all desired matrices for all frames, and
8184 then updating them all.
8185 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8186
8187 2000-08-24 Gerd Moellmann <gerd@gnu.org>
8188
8189 * bytecode.c (mark_byte_stack): Add a comment.
8190
8191 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8192 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
8193 a graphical frame.
8194
8195 2000-08-24 Kenichi Handa <handa@etl.go.jp>
8196
8197 * minibuf.c (do_completion): Always use compare-string, not
8198 string-equal because the latter doesn't pay attention to
8199 multibyteness of strings.
8200
8201 * process.c (create_process): Don't setup raw-text coding here.
8202 (Fopen_network_stream): Don't set coding->src_multibyte and
8203 coding->dst_multibyte here.
8204 (read_process_output): For process filter, return unibyte string
8205 if default-enable-multibyte-characters is nil.
8206 (send_process): If OBJECT is multibyte text, be sure to encoded it
8207 by the specified coding system for the process. Otherwise, setup
8208 raw-text coding.
8209 (init_process): Don't initialize default-process-coding-system here.
8210
8211 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8212
8213 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8214 <scroll-down-aggressively>: Likewise.
8215
8216 2000-08-23 Kenichi Handa <handa@etl.go.jp>
8217
8218 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8219 zero. Set coding->produced_char correctly.
8220
8221 2000-08-22 Andrew Innes <andrewi@gnu.org>
8222
8223 * makefile.w32-in: New file.
8224
8225 * unexw32.c (unexec): Ignore old_name, and use the actual location
8226 of the current executable instead. Base new_name on this.
8227
8228 * w32proc.c (create_child): Remove reference to security
8229 descriptor, which isn't needed and doesn't compile with mingw32.
8230
8231 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8232 up dllimport attributes.
8233 (x_update_window_end): Update prototype.
8234
8235 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8236 extern, which screws up dllimport attributes.
8237
8238 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8239 up dllimport attributes.
8240
8241 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8242 screws up dllimport attributes.
8243
8244 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8245 up dllimport attributes.
8246 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8247 screws up dllimport attributes.
8248
8249 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8250 up dllimport attributes.
8251
8252 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8253 screws up dllimport attributes.
8254
8255 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8256 screws up dllimport attributes.
8257
8258 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8259 up dllimport attributes.
8260
8261 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8262 unnecessary extern, which screws up dllimport attributes.
8263 (main): Ditto.
8264
8265 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8266 up dllimport attributes.
8267
8268 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8269 unnecessary extern, which screws up dllimport attributes.
8270
8271 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8272 screws up dllimport attributes.
8273
8274 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8275 up dllimport attributes.
8276
8277 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8278
8279 * w32bdf.c (search_file_line):
8280 (set_bdf_font_info):
8281 (seek_char):
8282 (w32_get_bdf_glyph):
8283 (w32_BDF_to_x_font): Fix compile warnings.
8284
8285 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
8286
8287 * w32select.c: Include keyboard.h before frame.h.
8288
8289 * w32fns.c (max): Define macro.
8290 (JOHAB_CHARSET): Define if not known.
8291 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8292 (Fx_show_tip): Synch with X version.
8293
8294 * w32xfns.c: Include keyboard.h before frame.h.
8295
8296 * w32fns.c: Include keyboard.h before frame.h.
8297
8298 * w32term.c: Include keyboard.h before frame.h.
8299
8300 * fontset.c: Include keyboard.h before frame.h.
8301
8302 * w32inevt.c: Include keyboard.h before frame.h.
8303 (MOUSE_MOVED): Define if not known.
8304
8305 * minibuf.c: Include keyboard.h before frame.h.
8306
8307 * keyboard.c: Include keyboard.h before frame.h.
8308
8309 * indent.c: Include keyboard.h before frame.h.
8310
8311 * dispnew.c: Include keyboard.h before frame.h.
8312
8313 * buffer.c: Include keyboard.h before frame.h.
8314
8315 * alloc.c: Include keyboard.h before frame.h.
8316
8317 * print.c: Include keyboard.h before frame.h.
8318
8319 * process.c: Include keyboard.h before frame.h.
8320
8321 * scroll.c: Include keyboard.h before frame.h.
8322
8323 * sysdep.c: Include keyboard.h before frame.h.
8324
8325 * term.c: Include keyboard.h before frame.h.
8326
8327 * window.c: Include keyboard.h before frame.h.
8328
8329 * xdisp.c: Include keyboard.h before frame.h.
8330 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
8331
8332 * frame.c: Include keyboard.h before frame.h.
8333
8334 * w32heap.h: Undefine min, max.
8335
8336 * w32gui.h: Undefine min, max.
8337
8338 * unexw32.c: Change PUCHAR to PCHAR.
8339 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
8340 (relocate_offset):
8341 (get_section_info):
8342 (copy_executable_and_dump_data): Remove unnecessary static defs.
8343 (copy_executable_and_dump_data): Fix compile warnings.
8344
8345 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
8346
8347 * w32console.c (min): Define macro.
8348 (clear_frame, write_glyphs): Fix compile warning.
8349
8350 * w32proc.c (compare_env):
8351 (find_child_console): Fix compile warning.
8352
8353 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
8354 sys_errlist instead of _sys_errlist.
8355 (get_emacs_configuration_options): New function.
8356
8357 * s/ms-w32.h (sys_nerr): Provide default definition.
8358 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
8359 name with _ prepended.
8360 (NSIG): Define if not known.
8361 (get_emacs_configuration): Provide extern declaration.
8362 (get_emacs_configuration_options): Provide extern declaration.
8363 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
8364
8365 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
8366 (map_w32_filename):
8367 (read_unc_volume): Fix compile warning.
8368
8369 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
8370 definitions from being used.
8371
8372 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
8373
8374 * w32.c (unc_volume_file_attributes):
8375 (open_unc_volume): Make arg const.
8376
8377 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
8378 (read_input_waiting): Remove excess parameter.
8379
8380 * w32.c (init_environment): Call _access.
8381 (check_windows_init_file): Call _close.
8382 (init_user_info): Call _putenv.
8383 (init_environment): Call _putenv and _strdup.
8384 (init_ntproc): Reset volume info cache on startup.
8385
8386 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
8387 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
8388 cannot override the CRT malloc.
8389
8390 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
8391 (LINK_FLAGS): Append to original value of LINK_FLAGS.
8392
8393 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
8394 unless we are linking with a static CRT.
8395 (RVA_TO_PTR): Cast result to unsigned char*.
8396
8397 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
8398 (add_volume_info): Use xstrdup.
8399
8400 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
8401
8402 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
8403 (do_completion, Fminibuffer_complete_word): Use it.
8404 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
8405 var so it can take non-boolean values.
8406
8407 2000-08-21 Gerd Moellmann <gerd@gnu.org>
8408
8409 * editfns.c (find_field): Formatting changes.
8410 (toplevel): Some old-style function forward declarations
8411 changed to prototypes, some new protypes added, some functions
8412 made static.
8413
8414 * lisp.h (set_time_zone_rule): Add prototype.
8415 (use_dialog_box): External declaration.
8416
8417 * keyboard.c (gen_help_event): Add parameter SIZE.
8418 (kbd_buffer_events_waiting): Slightly rewritten.
8419 (clear_event): New function.
8420 (kbd_buffer_get_event): Use it, and clear the input_events of
8421 HELP_EVENTs.
8422 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8423 don't fill the newly created array with nils.
8424 (toplevel): Convert some old-style function forward declarations
8425 to prototypes.
8426
8427 * keyboard.h (gen_help_event): Change prototype.
8428
8429 * xterm.c (XTread_socket): Change calls to gen_help_event.
8430
8431 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8432
8433 * eval.c (Fmacroexpand): Doc fix.
8434
8435 2000-08-20 Jason Rumney <jasonr@gnu.org>
8436
8437 * w32term.h (x_display_info_for_display): Remove as this function
8438 does not exist on W32.
8439
8440 * w32term.c (help_echo_window): New variable.
8441 (syms_of_w32term): staticpro it.
8442 (note_mode_line_highlight): Set it.
8443 (XTextExtents16): Removed as there is no equivalent on W32.
8444 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8445 the X way of doing this will not work for W32.
8446 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8447 (x_draw_image_foreground): Avoid drawing outside of the clip area
8448 when image doesn't have a mask.
8449 (note_mouse_highlight): Process overlays in the right order of
8450 priority. Set help_echo_window.
8451 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8452 because that's more visible for large images.
8453
8454 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8455 name to single_keymap_panes.
8456 (w32_menu_show): Set wv->title when dealing with titles.
8457 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8458
8459 2000-08-21 Miles Bader <miles@gnu.org>
8460
8461 * minibuf.c (do_completion): Try again if we rewrite the input
8462 string, but no completion was done, so that any completion message
8463 will be correct.
8464
8465 2000-08-20 Gerd Moellmann <gerd@gnu.org>
8466
8467 * xfaces.c (lface_equal_p): Compare strings differently.
8468 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8469 (realize_tty_face): Use them.
8470 (syms_of_xfaces): Initialize new variables.
8471 (map_tty_color): New function, extracted from realize_tty_face.
8472 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8473 foreground or background color, store the new color name in the
8474 realized face; previous code trying to do this had no effect.
8475 (realize_tty_face): Use map_tty_color.
8476 (Fclear_face_cache): Set face_change_count and ensure thorough
8477 redisplay.
8478
8479 2000-08-19 Gerd Moellmann <gerd@gnu.org>
8480
8481 * undo.c (record_first_change, record_marker_adjustment): Don't
8482 use XBUFFER on last_undo_buffer which might not be a buffer.
8483
8484 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8485
8486 * coding.c (decode_coding_string): Set members consumed,
8487 consumed_char, produced, produced_char of *coding correctly. If
8488 decode_coding doesn't consume any byte, don't try anymore.
8489 (encode_coding_string): Likewise.
8490
8491 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8492
8493 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8494 conditional have void type, for Standard C compilers.
8495
8496 * xdisp.c (redisplay_internal): Compare windows for equality with
8497 EQ, instead of applying XWINDOW to something that might not
8498 be a window.
8499
8500 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8501
8502 * fontset.c (Finternal_char_font): Search only the selected frame
8503 for a window of the current buffer.
8504
8505 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8506
8507 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
8508 Lisp_Objects.
8509
8510 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8511 second half of a HELP_EVENT is found at the start of kbd_buffer.
8512
8513 2000-08-18 Miles Bader <miles@gnu.org>
8514
8515 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8516
8517 * editfns.c (save_restriction_save): Rewrite to use markers.
8518 (save_restriction_restore): Rewrite to understand new form of data
8519 saved by save_restriction_save.
8520 (Fsave_restriction): Remove cautionary note in doc-string.
8521
8522 2000-08-17 Gerd Moellmann <gerd@gnu.org>
8523
8524 * fileio.c (build_annotations): Add a comment explaining the
8525 return value of format-annotate-function. Replace a spurious call
8526 to Flength with a CONSP test. Call format-annotate-function with
8527 a fifth arg specifying how many times the function is been called
8528 in a row, to let it choose temporary buffers appropriately.
8529
8530 2000-08-17 Dave Love <fx@gnu.org>
8531
8532 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8533 declare make_temp_name twice.
8534
8535 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
8536 (unreadpure): Give it an arg.
8537
8538 * unexalpha.c: Prototype fatal_unexec, mark_x,
8539 update_dynamic_symbols. Declare unexec as void.
8540
8541 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8542 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8543
8544 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
8545 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
8546
8547 * alloca.c: Use #error.
8548 [POINTER_TYPE]: Use it.
8549
8550 * eval.c (Fdefvar): Doc fix.
8551
8552 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8553 INITIALIZE_INTERVAL.
8554
8555 * buffer.h: Avoid DECLARE_INTERVALS.
8556
8557 * config.in: Add size_t.
8558
8559 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8560
8561 * w16select.c (set_clipboard_data): If there's not enough memory
8562 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8563 expects. In case of other failures, return 3.
8564 (system_error_msg): New error message.
8565 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8566 system_error_msg.
8567
8568 2000-08-16 Gerd Moellmann <gerd@gnu.org>
8569
8570 * term.c (write_glyphs): Also turn off inverse video after turning
8571 off other appearances in case TS_exit_attribute_mode is not equal
8572 to TS_end_standout_mode.
8573 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8574 with the same face.
8575 (turn_off_face): Reset standout_mode only if
8576 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8577 is equal to TS_end_standout_mode.
8578
8579 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8580
8581 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8582 sequence at the end of the source block.
8583
8584 * ccl.c (Fccl_program_p): Docstring modified.
8585 (Fccl_execute): Likewise.
8586 (Fccl_execute_on_string): Likewise.
8587
8588 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8589
8590 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8591
8592 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8593
8594 The following changes are mainly to fix bugs of
8595 encode/decode-coding-string failing if encoding/decoding return
8596 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8597 variable conversion_buffer.
8598
8599 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8600 decrement dst_end to avoid buffer overflow in the later call of
8601 string_as_multibyte
8602
8603 * coding.h (conversion_buffer_size, conversion_buffer)
8604 (get_conversion_buffer): Extern deleted.
8605
8606 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8607 (conversion_buffer, conversion_buffer_size): Variables deleted.
8608 (get_conversion_buffer): Function deleted.
8609 (struct conversion_buffer): New structure.
8610 (MAX_ALLOCA): New macro.
8611 (allocate_conversion_buffer): New macro.
8612 (extend_conversion_buffer, free_conversion_buffer): New functions.
8613 (ccl_coding_driver): Set coding->result.
8614 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8615 this is the last block of source.
8616 (encode_coding): Likewise. Handle the source block as the last
8617 one only when the whole source text is consumed.
8618 (decode_coding_string): Handle the case that the output buffer is
8619 too small to decode the whole source text. Use
8620 allocate_conversion_buffer, extend_conversion_buffer and
8621 free_conversion_buffer, not get_conversion_buffer.
8622 (encode_coding_string): Likewise.
8623 (init_coding): Function deleted.
8624 (init_coding_once): Delete code to initialize conversion_buffer_size.
8625
8626 * emacs.c (main): Don't call init_coding.
8627
8628 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
8629
8630 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8631 (insert_glyphs): Likewise.
8632
8633 * w32console.c (write_glyphs): Use a locally declared
8634 conversion_buffer.
8635
8636 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8637
8638 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8639 member of display_info is NULL.
8640
8641 2000-08-15 Gerd Moellmann <gerd@gnu.org>
8642
8643 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
8644
8645 * term.c (turn_off_face): Reset standout_mode when resetting
8646 appearances with capability `me'.
8647 (write_glyphs): Switch on inverse video before each face change.
8648
8649 2000-08-14 Dave Love <fx@gnu.org>
8650
8651 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8652 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8653 (lisp_free): Declare and make static.
8654
8655 * window.c: Fix embedded comment.
8656 (syms_of_window): Fix doc string.
8657
8658 2000-08-14 Gerd Moellmann <gerd@gnu.org>
8659
8660 * keymap.c (push_key_description): If C without modifiers is < 32,
8661 make sure to print `C-' before `M-', like in the manual.
8662
8663 2000-08-11 Gerd Moellmann <gerd@gnu.org>
8664
8665 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8666 since they aren't relocated anymore.
8667 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
8668
8669 * xdisp.c (try_cursor_movement): Fix handling of cursor in
8670 partially visible line which is smaller than the window's height.
8671
8672 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8673
8674 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
8675 the multibyte form of eight-bit-control characters.
8676 (Fccl_execute_on_string): Initialize ccl->multibyte.
8677
8678 * ccl.h (struct ccl_program): New member multibyte.
8679
8680 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8681
8682 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8683
8684 * regex.c (regex_compile) <normal_char>: Pay attention to
8685 multibyteness.
8686 (analyse_first) <exactn>: Setup fastmap correctly for
8687 eight-bit-control characters.
8688
8689 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8690
8691 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
8692
8693 * keyboard.c (make_lispy_event): Handle the new event type
8694 multibyte_char_keystroke.
8695
8696 * xterm.c: Include coding.h.
8697 (XTread_socket): Work around a bug of XmbLookupString. If the
8698 input is from XIM, decode it according to the current locale. In
8699 that case, generate multibyte_char_keystroke events.
8700
8701 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8702
8703 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8704 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8705
8706 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8707
8708 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8709 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8710 (move_it_in_display_line_to): Record iterator's ascent and descent
8711 before producing glyphs, and restore them when we know the glyph
8712 doesn't fit on the line.
8713 (move_it_to): Restructured so that it's easier to debug. If
8714 moving to a vpos, and not moving to an x or character position,
8715 stop as soon as the specified vpos is reached; don't move further
8716 into that line because that might change the computed line height.
8717 (try_cursor_movement): New function, extracted from the cursor
8718 movement branch of redisplay_window. If ending on a partially
8719 visible line, don't try to scroll if the cursor line is taller
8720 than the window.
8721 (redisplay_window): Use try_cursor_movement.
8722
8723 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8724 because that function doesn't cope with variable-height lines.
8725
8726 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8727 box cursor because that's better visible for large images.
8728
8729 2000-08-10 Miles Bader <miles@gnu.org>
8730
8731 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8732
8733 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8734
8735 * xdisp.c (Vmessages_buffer_name): New variable.
8736 (message_dolog): Use it.
8737 (syms_of_xdisp): Initialize it.
8738
8739 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8740
8741 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
8742 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8743 redundant now that keyboard.h is included.
8744
8745 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8746
8747 * keyboard.c (kbd_buffer_events_waiting): New function.
8748
8749 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8750
8751 * msdos.c: Include keyboard.h.
8752 (XMenuActivate): Empty no_event events from the event buffer. If
8753 no events are left after that, call clear_input_pending.
8754 (mouse_clear_clicks): New function, code moved from mouse_init.
8755 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8756 mouse driver to ``forget'' any past clicks.
8757
8758 * Makefile.in (msdos.o): Depend on keyboard.h.
8759
8760 2000-08-09 Gerd Moellmann <gerd@gnu.org>
8761
8762 * lisp.h (input_pending): External declaration.
8763
8764 * dispextern.h (Qredisplay_dont_pause): Declare extern.
8765
8766 * xdisp.c (echo_area_display): Display thoroughly if input is
8767 pending. Bind redisplay-dont-pause to t during the redisplay.
8768 in case input is pending.
8769
8770 * dispnew.c (Qredisplay_dont_pause): New variable.
8771 (syms_of_display): Initialize and staticpro it.
8772 (update_frame_1): Don't interrupt the display for pending input if
8773 redisplay_dont_pause is set.
8774
8775 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8776
8777 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8778
8779 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8780
8781 * callproc.c (Fcall_process): Terminate the unwind-protect around
8782 the post-read-conversion of coding system.
8783
8784 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8785 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8786 * buffer.h (overlays_at): Update prototype.
8787 * xdisp.c (next_overlay_change): Update call to overlays_at.
8788 * xfaces.c (face_at_buffer_position): Likewise.
8789 * textprop.c (Fget_char_property): Likewise.
8790 * xterm.c (note_mouse_highlight): Likewise.
8791
8792 * minibuf.c (do_completion): Don't consider a simple change of
8793 case as `completion'.
8794
8795 2000-08-08 Ken Raeburn <raeburn@gnu.org>
8796
8797 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
8798 * undo.c (record_delete): Make sure last_point_position_buffer is
8799 a buffer before comparing pointers.
8800
8801 * coding.h (decode_coding_string): Declare.
8802
8803 * intervals.h (Fprevious_single_char_property_change): Declare.
8804
8805 * textprop.c (Fprevious_single_char_property_change): Don't do
8806 arithmetic directly on lisp objects.
8807
8808 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
8809
8810 * keyboard.h (menu_item_eval_property): Declare.
8811
8812 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8813 reuse as buffer name, instead of recreating (and discarding) every
8814 time a message is logged.
8815 (with_echo_area_buffer): Make callback arg A2 a lisp object.
8816 (current_message_1, truncate_message_1, set_message_1)
8817 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8818 (current_message, truncate_echo_area, display_echo_area)
8819 (resize_echo_area_axactly): Changed calls.
8820
8821 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
8822 Lisp object.
8823 (Ffind_coding_systems_region_internal): First argument to Fappend
8824 must be an integer, not a Lisp object.
8825
8826 2000-08-08 Kenichi Handa <handa@etl.go.jp>
8827
8828 * charset.c (Fchar_width): Doc fix.
8829
8830 2000-08-08 Gerd Moellmann <gerd@gnu.org>
8831
8832 * charset.c (Fstring_width): Doc fix.
8833
8834 2000-08-07 Gerd Moellmann <gerd@gnu.org>
8835
8836 * xdisp.c (start_display): When starting display on a continuation
8837 line, clear ascent and descent members of the iterator structure;
8838 the height of the continued line does not affect the height of the
8839 continuation line.
8840 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8841 line taller than the window.
8842 (redisplay_window) <forced window start>: Handle case that the
8843 middle of the window is not found in any row.
8844 (dump_glyph_row): Show more information.
8845 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8846 first text line in a glyph matrix.
8847
8848 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8849 of the clip area when image doesn't have a mask.
8850
8851 * fns.c (sweep_weak_table): Fix survival conditions for
8852 key-or-value and key-and-value weakness.
8853
8854 * .gdbinit (xhashtable): New command.
8855
8856 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8857 tables out of the list of all weak hash tables.
8858
8859 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8860 a new buffer is created, make sure echo_area_buffer[] references
8861 the new buffer.
8862
8863 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8864
8865 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8866 the doc string.
8867
8868 2000-08-07 Kenichi Handa <handa@etl.go.jp>
8869
8870 * syntax.c (skip_chars): Fix previous change. Make the handling
8871 of unibyte string consistent with that of regex search.
8872
8873 2000-08-05 Gerd Moellmann <gerd@gnu.org>
8874
8875 * xmenu.c (popup_get_selection): Use xfree instead of free.
8876
8877 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8878
8879 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8880
8881 * callproc.c (child_setup): Use xfree instead of free.
8882
8883 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8884 instead of malloc.
8885 (run_mac_command, closedir): Use `xfree' instead of `free'.
8886
8887 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8888
8889 * eval.c (error): Use xfree instead of free.
8890
8891 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8892
8893 * fns.c: Replace `illegal' with `invalid'.
8894 (Fmake_hash_table, make_hash_table): Allow table size of 0.
8895
8896 2000-08-05 Kenichi Handa <handa@etl.go.jp>
8897
8898 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8899 conversion.
8900
8901 2000-08-04 Noah Friedman <friedman@splode.com>
8902
8903 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8904 docstring.
8905
8906 2000-08-04 Gerd Moellmann <gerd@gnu.org>
8907
8908 * syntax.c (skip_chars): Fix typo in error message.
8909
8910 2000-08-04 Andreas Schwab <schwab@suse.de>
8911
8912 * m/ia64.h: Moved from s/ia64.h.
8913
8914 2000-08-04 Kenichi Handa <handa@etl.go.jp>
8915
8916 * process.c (read_process_output): Big simplification. Handle
8917 composition and post-read-conversion of coding system correctly.
8918 (send_process): Handle composition correctly.
8919
8920 * callproc.c (Fcall_process): Handle post-read-conversion of
8921 coding system if any.
8922
8923 * coding.c (decode_coding_iso2022): More strict check for handling
8924 single shifting.
8925 (coding_restore_composition): Pay attention to the case that
8926 cmp_data is not set properly (because of invalid code in the
8927 source text).
8928 (run_pre_post_conversion_on_str): Include text properties in the
8929 resulting string.
8930 (decode_coding_string): Set members of coding correctly.
8931
8932 2000-08-03 Gerd Moellmann <gerd@gnu.org>
8933
8934 * s/ia64.h: New file.
8935
8936 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8937 Use NULL instead of 0 at the end of variable argument list of
8938 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8939 sizeof (int) < sizeof (void *).
8940
8941 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8942 of variable argument lists of XtVaGetValues and XtVaSetValues.
8943
8944 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8945 variable argument lists of XtVaGetValues and XtVaSetValues.
8946
8947 2000-08-02 Gerd Moellmann <gerd@gnu.org>
8948
8949 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8950 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8951
8952 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8953 prototype.
8954
8955 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8956 in call to Fsingle_key_description.
8957
8958 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8959 Callers changed.
8960
8961 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8962
8963 * window.c (display_buffer_reuse_frames): New variable.
8964 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8965 frames displaying BUFFER.
8966 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
8967
8968 2000-08-01 Miles Bader <miles@gnu.org>
8969
8970 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8971 when to constrain NEW_POS (they were pretty screwed up before).
8972
8973 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8974
8975 * msdos.c (run_msdos_command): Save and restore the master
8976 environment, for the case that child_setup signals an error.
8977 When mirroring slashes in DOS shell commands, don't fail when
8978 argv[2] has embedded blanks.
8979 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8980 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8981 (dos_ttraw): Call mouse_setup_buttons.
8982
8983 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8984 using alloca; free it after run_msdos_command returns.
8985
8986 2000-07-27 Dave Love <fx@gnu.org>
8987
8988 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8989 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
8990
8991 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8992
8993 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8994
8995 * editfns.c (lisp_time_argument): Fix last change.
8996
8997 2000-07-27 Gerd Moellmann <gerd@gnu.org>
8998
8999 * fns.c (Fdelete): Make it work on vectors and strings in addition
9000 to lists.
9001
9002 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9003 (syms_of_fns): Initialize new variables.
9004 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
9005 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9006 weakness, with t meaning the same as `key-and-value'.
9007
9008 2000-07-27 Kenichi Handa <handa@etl.go.jp>
9009
9010 * coding.h (struct coding_system): Member safe_charset deleted.
9011
9012 * coding.c (Qsafe_charsets): This variable deleted.
9013 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9014 New variables.
9015 (coding_safe_chars): New function.
9016 (CODING_SAFE_CHAR_P): New macro.
9017 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
9018 checking safe_charsets member of the coding system. Caller changed.
9019 (detect_coding_iso2022): New local variable safe_chars.
9020 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9021 safe_charsets member of the coding system.
9022 (decode_coding_iso2022): New local variable safe_chars.
9023 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9024 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9025 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9026 (ENCODE_UNSAFE_CHARACTER): New macro.
9027 (encode_coding_iso2022): New local variable safe_chars. Check
9028 unsafe chars.
9029 (setup_coding_system): Delete the code to initialize
9030 coding->safe_charses
9031 (intersection, find_safe_codings): New functions.
9032 (Ffind_coding_systems_region_internal): New function.
9033 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9034 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9035 variable and initialize it.
9036
9037 * fns.c (char_table_ref_and_index): New function.
9038
9039 * lisp.h (char_table_ref_and_index): Add prototype.
9040
9041 2000-07-26 Sam Steingold <sds@gnu.org>
9042
9043 * editfns.c (lisp_time_argument): Added third argument `usec'.
9044 (Ffloat_time): New built-in Lisp function.
9045
9046 2000-07-26 Gerd Moellmann <gerd@gnu.org>
9047
9048 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9049 for the character code.
9050
9051 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9052 GNU/Linux.
9053
9054 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9055 if called for a popup menu.
9056 (xmenu_show): Store help string in widget values.
9057
9058 2000-07-26 Dave Love <fx@gnu.org>
9059
9060 * syswait.h: Move some definitions.
9061 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9062 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9063 perspicuous definitions.
9064 (WTERMSIG): Fix bit pattern used.
9065
9066 2000-07-26 Kenichi Handa <handa@etl.go.jp>
9067
9068 * print.c (print_object): If vector printing is truncated, print
9069 "..." to indicate it as well as the case of list printing.
9070
9071 2000-07-25 Gerd Moellmann <gerd@gnu.org>
9072
9073 * xdisp.c (next_element_from_display_vector): Improve comments.
9074
9075 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9076 for the character code, and the rest for the face id as in 20.x.
9077 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9078
9079 * window.c (window_display_table): Cleaned up.
9080
9081 * syntax.c (Fforward_word): Add last arg nil in call of
9082 Fconstrain_to_field.
9083
9084 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9085
9086 * fileio.c (Frename_file) [DOS_NT]: If the file names are
9087 identical but for the letter-case, don't call
9088 barf_or_query_if_file_exists.
9089
9090 2000-07-25 Miles Bader <miles@gnu.org>
9091
9092 * editfns.c (find_field): Honor special `boundary' fields.
9093 (Qboundary): New variables.
9094 (syms_of_editfns): Initialize Qboundary.
9095 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9096 Use scan_buffer instead of find_before_next_newline, because it
9097 allows us to detect the boundary case where there's a newline at
9098 the search limit.
9099 * lisp.h (Fconstrain_to_field): Update external declaration.
9100
9101 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9102
9103 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9104 if that is nil.
9105
9106 2000-07-24 Dave Love <fx@gnu.org>
9107
9108 * s/sunos4-0.h, s/sol2.h:
9109 (LIBS_TERMCAP): Move from m/sparc.h.
9110
9111 * m/sparc.h (TERMINFO): Moved to system files (probably only
9112 relevant for sunos4 judging by its vintage).
9113 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9114 __arch64__.
9115
9116 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9117
9118 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9119 name to single_keymap_panes.
9120
9121 2000-07-24 Andreas Schwab <schwab@suse.de>
9122
9123 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9124
9125 2000-07-24 Gerd Moellmann <gerd@gnu.org>
9126
9127 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9128 parameters instead of using int parameters. Expect FN to accept
9129 EMACS_INT parameters.
9130 (display_echo_area, resize_echo_area_axactly, current_message)
9131 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9132 with new argument list.
9133 (resize_mini_window_1): New callback function.
9134 (current_message_1, truncate_message_1, set_message_1): Change
9135 parameter lists to the new format expected by with_echo_area_buffer.
9136
9137 2000-07-24 Kenichi Handa <handa@etl.go.jp>
9138
9139 * fontset.c (fontset_ref): Remove INLINE declaration.
9140 (fontset_ref_via_base): Likewise.
9141 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9142 to downcase.
9143
9144 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9145
9146 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9147 correct order of priority. If help echo was found in an overlay,
9148 use that overlay as the object in which the help echo was found.
9149
9150 2000-07-22 Miles Bader <miles@gnu.org>
9151
9152 * textprop.c (Fprevious_single_char_property_change): The initial
9153 property value should be from the position preceding POSITION, not
9154 following it.
9155
9156 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9157
9158 * coding.c (syms_of_coding): Doc fix for
9159 inhibit-iso-escape-detection.
9160
9161 2000-07-21 Gerd Moellmann <gerd@gnu.org>
9162
9163 * xterm.c (note_mouse_highlight): Process overlays in the right
9164 order of priority.
9165
9166 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9167
9168 * xterm.c (note_mouse_highlight): If help-echo was found in an
9169 overlay, use that overlay as the object in which the help was found.
9170
9171 * window.c (foreach_window_1): Fix typo reversing an if-condition.
9172
9173 * window.c (foreach_window): Instead of a fake variable argument
9174 list, take one USER_DATA argument.
9175 (foreach_window_1): Likewise, and call callback functions with two
9176 args, the window and USER_DATA.
9177 (struct check_window_data): New struct.
9178 (check_window_containing): Use it.
9179 (window_from_coordinates): Set up a struct check_window_data for
9180 foreach_window.
9181 (add_window_to_list, freeze_window_start): Change parameters
9182 according to new calling convention.
9183
9184 * window.h (foreach_window): Change prototype.
9185
9186 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9187
9188 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9189
9190 * xmenu.c (menu_help_callback): Call show_help_echo with
9191 additional arguments OBJECT and POS.
9192
9193 2000-07-21 Kenichi Handa <handa@etl.go.jp>
9194
9195 * data.c (Faset): Allow storing any multibyte character in a
9196 string. Convert unibyte string to multibyte if necessary.
9197
9198 * xfns.c (x_encode_text): New function.
9199 (x_set_name): Use x_encode_text.
9200 (x_set_title): Likewise.
9201
9202 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9203
9204 * xterm.h (x_encode_text): Add prototype.
9205
9206 2000-07-20 Dave Love <fx@gnu.org>
9207
9208 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9209 xfree, not free.
9210
9211 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9212
9213 * msdos.c (help_echo_window): New variable.
9214 (syms_of_msdos): Initialize and staticpro it.
9215 (IT_note_mode_line_highlight): Set help_echo_window.
9216 (IT_note_mouse_highlight): Ditto.
9217 (dos_rawgetc): Store help_echo_window in the second event produced
9218 for HELP_EVENTs.
9219
9220 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9221 Record the object that generated the help echo and the position of
9222 that object in help_echo_object and help_echo_pos. Record that
9223 some glyphs in a row are displayed in mouse-face.
9224 (IT_update_begin): Don't clear mouse highlight unless one of the
9225 enabled glyph rows is marked as being displayed in mouse-face.
9226 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9227 and position recorded in help_echo_object and help_echo_pos to the
9228 event queue.
9229 (IT_menu_display): Accept a new argument PN: the pane number of
9230 the current menu pane. Record the pane number and the item
9231 number of the item which has associated help string.
9232 (XMenuActivate): Update the prototype for help_callback in
9233 function declaration. Call IT_menu_display with the current menu
9234 pane number as an additional argument. Call help_callback with
9235 two additional arguments: the pane number and the item number of
9236 the menu item associated with the help text.
9237 (help_echo_object, help_echo_pos): New variables.
9238 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9239
9240 * msdos.h (XMenuActivate): Update prototype.
9241
9242 2000-07-19 Gerd Moellmann <gerd@gnu.org>
9243
9244 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9245 Add some more prototypes.
9246
9247 * xterm.c, xterm.h: Add some more prototypes.
9248
9249 * lisp.h (Fnext_single_char_property_change): Add prototype.
9250
9251 * dispnew.c (direct_output_for_insert): Remove confusing
9252 outer local variable mouse_face_overwritten_p.
9253 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9254
9255 * alloc.c (allocate_string_data): Don't copy old string contents.
9256
9257 2000-07-19 Kenichi Handa <handa@etl.go.jp>
9258
9259 * coding.c (code_convert_region): Delete text properties before
9260 shrinking the conversion region.
9261
9262 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9263
9264 * dispnew.c (update_text_area): Write the whole row if it
9265 has mouse-face in it.
9266
9267 * xfaces.c (face-alternative-font-family-alist): Remove
9268 DEFVAR_LISP; staticpro instead.
9269
9270 * xmenu.c (menu_help_callback): Call show_help_echo with
9271 new arguments.
9272
9273 * keyboard.c (show_help_echo): Add parameter WINDOW.
9274 (read_char): Call show_help_echo with window extracted from Lisp
9275 help event.
9276 (gen_help_event): Add parameter WINDOW.
9277
9278 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9279
9280 * xterm.c (help_echo_window): New variable.
9281 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
9282 (XTread_socket): Pass help_echo_window to gen_help_event.
9283 (syms_of_xterm): Initialize and staticpro help_echo_window.
9284
9285 2000-07-18 Dave Love <fx@gnu.org>
9286
9287 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
9288
9289 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9290
9291 * alloc.c (allocate_string_data): If string had already data
9292 assigned, copy old contents to new string data.
9293
9294 * coding.c (syms_of_coding): Fix typo in spelling of variable
9295 `inhibit-iso-escape-detection'.
9296
9297 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9298
9299 * Makefile.in: Add dependencies on dispextern.h.
9300 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9301 `free'; both can conflict with system header files.
9302
9303 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9304
9305 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9306 undefined.
9307
9308 2000-07-18 Dave Love <fx@gnu.org>
9309
9310 * window.c (Fwindow_list): Declare arg `window'.
9311
9312 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9313
9314 * coding.c (setup_coding_system): Don't override the explicitly
9315 specified designations.
9316
9317 2000-07-15 Miles Bader <miles@gnu.org>
9318
9319 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9320 from `text_property_eq' and `text_property_stickiness', respectively.
9321 (find_field, Fconstrain_to_field, char_property_eq)
9322 (char_property_stickiness): Changed to call char-property functions
9323 instead of text-property-only ones.
9324
9325 * textprop.c (Fnext_single_char_property_change): Made a subr (was
9326 `next_single_char_property_change'). Do more error checking, and
9327 cleanup limit behavior.
9328 (Fprevious_single_char_property_change): New function.
9329 (syms_of_textprop): Initialize new subrs.
9330
9331 * xdisp.c (display_prop_end, invisible_text_between_p):
9332 Call Fnext_single_char_property_change instead of
9333 next_single_char_property_change.
9334
9335 2000-07-15 Jason Rumney <jasonr@gnu.org>
9336
9337 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
9338 after menu is finished with.
9339 (add_menu_item): Only consider wv->title as a menu title.
9340 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
9341
9342 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
9343 null title.
9344 (FONT_REGEXP): Remove unused macro, and its sub-components.
9345 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
9346
9347 * w32term.c (help_echo_object, help_echo_pos): New variables.
9348 (note_mode_line_highlight): Store additional information about the
9349 help-echo in help_echo_object and help_echo_pos. Check both
9350 `local-map' and `keymap' properties for changing the cursor
9351 (note_mouse_highlight): Store additional information about the
9352 help-echo in help_echo_object and help_echo_pos.
9353 (note_tool_bar_highlight): Set help_echo_object to nil and
9354 help_echo_pos to -1.
9355 (w32_read_socket): Use gen_help_event instead of filling
9356 input_events manually.
9357 (syms_of_w32term): Staticpro help_echo_object.
9358 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
9359 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
9360 (x_clear_mouse_face): New function.
9361 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
9362 (x_update_window_begin): No need to turn off the mouse
9363 highlight here.
9364 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9365 depending on whether they contain glyphs highlighted in mouse-face.
9366 (x_fill_stretch_glyph_string): Consume runs of stretch
9367 glyphs instead of a single one.
9368 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9369 with new argument list.
9370 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9371 (x_append_glyph, x_append_composite_glyph)
9372 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9373 changes in struct glyph starting 1999-12-27. See comments for
9374 xterm.c on 2000-07-05.
9375
9376 2000-07-14 Sam Steingold <sds@gnu.org>
9377
9378 * xfaces.c (realize_x_face): Fix the last patch:
9379 check `default_face' before dereferencing.
9380
9381 2000-07-14 Dave Love <fx@gnu.org>
9382
9383 * syntax.c (back_comment): Add null default in switch (for pcc).
9384
9385 2000-07-14 Kenichi Handa <handa@etl.go.jp>
9386
9387 * xfaces.c (realize_x_face): Make fontset using the base of the
9388 default_face's fontset, not using the default fontset.
9389
9390 * coding.c (inhibit_iso_escape_detection): New variable.
9391 (syms_of_coding): Make it a Lisp variable.
9392 (detect_coding_iso2022): If inhibit_iso_escape_detection is
9393 nonzero, ignore ISO2022's escape sequence.
9394
9395 2000-07-14 Gerd Moellmann <gerd@gnu.org>
9396
9397 * alloca.c (malloc) [emacs]: Define as xmalloc.
9398
9399 * xfns.c (Fx_show_tip): If frame parameters contain a position,
9400 use that instead of the mouse position. Add parameters DX and DY.
9401
9402 * dispextern.h (Fx_show_tip): Adjust number of parameters
9403 in prototype.
9404
9405 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
9406 if HELP is a function, call it with OBJECT and POS as parameters
9407 to get the help to display.
9408 (gen_help_event, kbd_buffer_store_help_event): New functions.
9409 (kbd_buffer_get_event): Construct the Lisp help-event differently.
9410 (read_char): Call show_help_echo with new parameters.
9411
9412 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9413 Add prototypes.
9414
9415 * xterm.c (help_echo_object, help_echo_pos): New variables.
9416 (note_mode_line_highlight): Store additional information about the
9417 help-echo in help_echo_object and help_echo_pos. Check both
9418 `local-map' and `keymap' properties for changing the cursor
9419 (note_mouse_highlight): Store additional information about the
9420 help-echo in help_echo_object and help_echo_pos.
9421 (note_tool_bar_highlight): Set help_echo_object to nil and
9422 help_echo_pos to -1.
9423 (XTread_socket): Use gen_help_event instead of filling
9424 input_events manually.
9425 (syms_of_xterm): Staticpro help_echo_object.
9426
9427 * xmenu.c (menu_highlight_callback): Use
9428 kbd_buffer_store_help_event instead of setting up and input_event
9429 structure manually.
9430
9431 * xdisp.c (eval_form): GCPRO argument sexpr.
9432 (call_function): New function.
9433 (handle_single_display_prop): Use call_function and FUNCTIONP
9434 instead of checking whether if font_height is a symbol and
9435 using eval_form.
9436
9437 * eval.c (internal_condition_case_2): New function.
9438
9439 * lisp.h (FUNCTIONP): New macro.
9440 (internal_condition_case_2, call_function): Add prototypes.
9441
9442 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9443 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9444 Always set `arg' member of input_events.
9445 (construct_menu_click): Unused function removed.
9446
9447 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9448
9449 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9450 (construct_drag_n_drop, x_scroll_bar_handle_click)
9451 (w32_read_socket): Always set `arg' member of input_events.
9452
9453 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9454
9455 * lisp.h (eval_form): Add prototype.
9456
9457 * xdisp.c (eval_form): Make it externally visible.
9458
9459 2000-07-13 Gerd Moellmann <gerd@gnu.org>
9460
9461 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9462 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9463 consing. For prefix events, store the frame in the `arg' slot of
9464 the event, otherwise store the key there.
9465 (XTread_socket): Instead of consing, use the frame_or_window slot
9466 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
9467
9468 * xmenu.c (menu_highlight_callback): Store help string in the
9469 `arg' member of the input event; don't cons.
9470 (menubar_selection_callback): Use the `arg' slot of input events
9471 to queue additional information, instead of consing.
9472
9473 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9474
9475 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9476 TOOL_BAR_EVENTs.
9477 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9478
9479 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9480 input events to queue additional information, instead of consing.
9481
9482 * keyboard.c (kbd_buffer_gcpro): Renamed from
9483 kbd_buffer_frame_or_window. Now used for all Lisp objects
9484 referenced from the input queue.
9485 (kbd_buffer_store_event): Always use structure assignment for
9486 copying input events. Record all Lisp objects referenced from
9487 events in kbd_buffer_gcpro.
9488 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9489 differently from input events. Test for prefix menu_bar_events
9490 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9491 event in kbd_buffer_gcpro to nil.
9492 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9493 frame_or_window is equal to its arg member as prefix events.
9494 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9495 used by an input event to nil.
9496 (init_keyboard): Use two times the size of the input queue
9497 for kbd_buffer_gcpro.
9498 (syms_of_keyboard): Likewise.
9499
9500 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9501 Use USER_SIGNAL_EVENT.
9502
9503 * termhooks.h (struct input_event): Add member `arg'.
9504 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9505 (USER_SIGNAL_EVENT): Renamed from user_signal.
9506
9507 * xfaces.c (ASET): Remove definition.
9508
9509 * lisp.h (AREF, ASET, ASIZE): New macros.
9510
9511 * fontset.c (AREF, ASIZE): Remove definitions.
9512
9513 * fns.c (AREF): Remove definition.
9514
9515 * composite.c (AREF): Remove definition.
9516
9517 2000-07-12 Gerd Moellmann <gerd@gnu.org>
9518
9519 * dispnew.c (redraw_overlapped_rows): Add missing local.
9520 (scrolling_window): Remove debug code.
9521
9522 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9523 Before scrolling, turn off a mouse-highlight in the window
9524 being scrolled.
9525
9526 * xterm.c (x_update_window_end): Add parameter
9527 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9528 redisplay in XTframe_up_to_date.
9529 (x_clear_mouse_face): New function.
9530 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9531
9532 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9533 current glyph row.
9534 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9535 it when any row is written to that contains glyphs highlighted in
9536 mouse-face.
9537 (update_window): Call the window update end hook with new
9538 parameter MOUSE_FACE_OVERWRITTEN_P.
9539 (direct_output_for_insert): Give up if row contains mouse-face.
9540
9541 * dispextern.h (struct redisplay_interface): Add parameter
9542 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9543 (clear_mouse_face): New function pointer member.
9544
9545 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9546
9547 * syntax.c (back_comment): Use one switch rather than a few `if's.
9548 Obey open_paren_in_column_0_is_defun_start.
9549 When reverting to the `slow' method, try to nicely handle the case
9550 of nested comments by checking that the comment-starter we found
9551 does indeed match the comment-ender.
9552 (scan_sexps_forward, scan_sexps_forward):
9553 Ignore excessive opening parenthesis rather than throwing an error.
9554
9555 2000-07-11 Gerd Moellmann <gerd@gnu.org>
9556
9557 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9558 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9559
9560 * dispnew.c (direct_output_forward_char): Give up if currently
9561 displaying a message instead of the minibuffer contents.
9562
9563 * xterm.c (x_update_window_begin): No need to turn off the mouse
9564 highlight here.
9565 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9566 depending on whether they contain glyphs highlighted in mouse-face.
9567
9568 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9569 compare the mouse_face_p flags of both rows.
9570
9571 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9572
9573 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9574
9575 * keyboard.c (show_help_echo): Accept additional parameter
9576 ok_to_overwrite_keystroke_echo.
9577 (read_char): Call show_help_echo with a zero
9578 ok_to_overwrite_keystroke_echo argument.
9579 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
9580 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9581 ok_to_overwrite_keystroke_echo argument.
9582 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9583 non-zero ok_to_overwrite_keystroke_echo argument.
9584
9585 2000-07-10 Gerd Moellmann <gerd@gnu.org>
9586
9587 * xdisp.c (try_window_id): If changes are all below what is
9588 displayed in the window, and point is in the window, we still
9589 might have to find point on the display.
9590
9591 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9592 glyphs instead of a single one.
9593 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9594 with new argument list.
9595 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9596
9597 * keymap.c (get_keymap_1): Add comment that this function can GC.
9598 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9599 comment that functions can GC.
9600 (Fset_keymap_parent): GCPRO arg KEYMAP.
9601
9602 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9603
9604 * msdos.c (XMenuActivate): After exiting the menu, restore the
9605 echo area message and erase it.
9606
9607 2000-07-10 Kenichi Handa <handa@etl.go.jp>
9608
9609 * fontset.c (Ffontset_info): Make the return value more compatible
9610 with that of Emacs 20.
9611
9612 2000-07-07 Gerd Moellmann <gerd@gnu.org>
9613
9614 * eval.c (Fsignal): Handle case that backtrace_list is null.
9615
9616 2000-07-07 Kenichi Handa <handa@etl.go.jp>
9617
9618 * ccl.c (Fccl_execute): Typo fixed.
9619
9620 2000-07-06 Gerd Moellmann <gerd@gnu.org>
9621
9622 * window.c (window_loop): Add missing gcpro1 local variable.
9623
9624 * window.c (Fwindow_list): Reverse list at the end.
9625 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9626 means allow windows on OWINDOW's frame, only.
9627 (window_loop): Simplified; use Fwindow_list.
9628
9629 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9630
9631 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9632
9633 * xterm.c (XTread_socket): Increment handling_signal at the start,
9634 decrement it at the end.
9635
9636 * eval.c (handling_signal): New variable.
9637 (Fsignal): Abort if handling_signal is non-zero.
9638
9639 * lisp.h (handling_signal): External declaration.
9640
9641 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9642
9643 2000-07-05 Ken Raeburn <raeburn@gnu.org>
9644
9645 Sound support for NetBSD through "Linux emulation" support:
9646 * config.in (HAVE_SOUNDCARD_H): Undef.
9647 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9648 * Makefile.in (LIBSOUND): New variable.
9649 (LIBES): Include it.
9650 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9651 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
9652 (vox_open): Use DEFAULT_SOUND_DEVICE.
9653 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9654
9655 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9656
9657 * print.c (print_error_message): If Vsignaling_function is set,
9658 show it in *Messages*.
9659
9660 * lisp.h (Vsignaling_function): External declaration.
9661
9662 * eval.c (Vsignaling_function): New variable.
9663 (Fsignal): Compute it.
9664 (syms_of_eval): Staticpro it.
9665
9666 2000-07-05 Dave Love <fx@gnu.org>
9667
9668 * syswait.h: Use the autoconf recommended approach. Old code
9669 #if'd out in case we need to revert.
9670
9671 * config.in (HAVE_SYS_WAIT_H): Added.
9672
9673 2000-07-05 Andrew Innes <andrewi@gnu.org>
9674
9675 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9676 when non-NULL instead of __morecore, to take account of buffer
9677 memory. This also solves a problem with spurious memory warnings
9678 on Windows.
9679
9680 * ralloc.c: Make real_morecore non-static.
9681
9682 * eval.c (internal_condition_case): Comment out abort if
9683 interrupt_input_blocked is not zero.
9684
9685 * makefile.nt: Add support for `bootstrap' and related targets.
9686 Include minimal debug info in emacs.exe in release build.
9687 Remove all dependencies on lisp.h, and fixup some others.
9688
9689 * w32.c (init_environment): Install code from 20.7 for providing
9690 default values for environment variables, based on the
9691 executable's own location.
9692 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
9693 (sys_socket): Install socket inheritance bug fix from 20.7.
9694
9695 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9696 here via blockinput.h).
9697
9698 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9699
9700 * w32menu.c (w32_menu_display_help):
9701 * xmenu.c (menu_help_callback): Use show_help_echo.
9702
9703 * keyboard.h (show_help_echo): Declare.
9704
9705 * keyboard.c (show_help_echo): New function, extracted from read_char.
9706 Feval its `msg' argument if it's a cons cell.
9707 (read_char): Use it.
9708 (follow_key): Pass `autoload' to get_keyelt.
9709
9710 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
9711 (note_tool_bar_highlight, XTread_socket):
9712 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
9713 (dos_rawgetc):
9714 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9715 (note_tool_bar_highlight, w32_read_socket):
9716 Do not gratuitously ignore non-string `help-echo' properties.
9717
9718 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9719
9720 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9721
9722 * window.c (delete_all_subwindows): Reset Vwindow_list.
9723
9724 * xterm.c (x_append_glyph, x_append_composite_glyph)
9725 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9726 changes in struct glyph starting 1999-12-27. Some bit-fields of
9727 struct glyph were not set, which made glyphs unequal when compared
9728 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9729 effects were the result. This also depended on the contents of
9730 memory returned by xmalloc. If flickering happens again, activate
9731 the code in clear_glyph_row that's in #if 0. If the flickering is
9732 gone with that, chances are that it is caused by something similar.
9733
9734 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
9735
9736 * dispextern.h: Add some comments.
9737
9738 * window.c (add_window_to_list): Add parameter LIST.
9739 (window_list): Order list so that, for each frame, windows are
9740 in canonical order, and so that frames appear in the list in
9741 the order given by Vframe_list.
9742 (next_window): Reverse the handling of NEXT_P.
9743
9744 2000-07-04 Gerd Moellmann <gerd@gnu.org>
9745
9746 * window.c (Vwindow_list): New variable.
9747 (make_window, delete_window): Set Vwindow_list to nil.
9748 (check_window_containing): New function.
9749 (window_from_coordinates): Rewritten.
9750 (add_window_to_list, window_list, candidate_window_p)
9751 (decode_next_window_args, next_window): New functions.
9752 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
9753 (Fwindow_list): New function.
9754 (Fother_window): Cleaned up.
9755 (foreach_window): Add a longer "variable argument list". Let
9756 callback function return 0 to indicate that cycling over windows
9757 should stop.
9758 (foreach_window_1): Likewise.
9759 (freeze_window_start): Return int.
9760 (init_window): New function.
9761 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9762
9763 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9764 input_event with bzero.
9765 (main): Call init_window.
9766
9767 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9768 a menu filter.
9769
9770 2000-07-04 Kenichi Handa <handa@etl.go.jp>
9771
9772 * composite.h (make_composition_value_copy): Extern it.
9773
9774 * composite.c (make_composition_value_copy): New function.
9775
9776 * editfns.c (Fformat): While copying text properties, make each
9777 composition property value a copy.
9778
9779 * fns.c (concat): While copying text properties, make each
9780 composition property value a copy.
9781
9782 2000-07-03 Gerd Moellmann <gerd@gnu.org>
9783
9784 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9785
9786 * fns.c (sweep_weak_table): Mark only objects that are not
9787 marked already.
9788
9789 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9790 include those frames as candidates which have their focus
9791 redirected to the minibuffer frame.
9792
9793 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9794
9795 * fns.c (Fputhash): Return `value' rather than nil.
9796
9797 2000-06-30 Gerd Moellmann <gerd@gnu.org>
9798
9799 * frame.c (next_frame): Don't check focus redirection in case
9800 MINIBUF is a window. Doing so excludes frames using MINIBUF
9801 unless their focus is redirected, which contradicts the
9802 specification of next-frame, and leads to infinite loops in
9803 certain situations when cycling through windows with next-window.
9804
9805 2000-06-30 Kenichi Handa <handa@etl.go.jp>
9806
9807 * coding.c (code_convert_region): Even if the length of text is
9808 zero, try to convert it if coding->type is coding_type_ccl.
9809 (decode_coding_string, encode_coding_string): Likewise.
9810
9811 2000-06-28 Gerd Moellmann <gerd@gnu.org>
9812
9813 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
9814 the display if windows_or_buffers_changed.
9815
9816 * dispnew.c (struct row_entry): New structure.
9817 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9818 (row_table_size, old_lines, new_lines, old_lines_size)
9819 (new_lines_size, run_pool, runs_size, runs): New variables.
9820 (add_row_entry): New function.
9821 (scrolling_window): Use data structures allocated with xmalloc and
9822 held in global variables, instead of allocating them with alloca and
9823 holding them in local variables. Use a larger hash table whose
9824 size depends on glyph matrix sizes. Don't use bzero to clear the
9825 hash table; instead, clear used slots only.
9826
9827 * fns.c (next_almost_prime): Make it externally visible.
9828
9829 * lisp.h (next_almost_prime): Add prototype.
9830
9831 * s/isc4-0.h (sigunblock): Define.
9832
9833 * s/sco5.h (sigunblock): Define.
9834
9835 2000-06-27 Dave Love <fx@gnu.org>
9836
9837 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9838 (moved to osf5-0.h).
9839 [!NOT_C_CODE]: Protect string.h stuff.
9840
9841 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9842 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9843
9844 2000-06-27 Gerd Moellmann <gerd@gnu.org>
9845
9846 * xdisp.c (resize_mini_window): Subtract the extra line spacing
9847 below the last line from the needed window height.
9848
9849 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9850
9851 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9852 (Fwidget_get): Use it.
9853 (syms_of_fns): Defsubr it.
9854
9855 2000-06-26 Gerd Moellmann <gerd@gnu.org>
9856
9857 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
9858 display info for XIM.
9859 (xim_open_dpy): Likewise.
9860 (xim_close_dpy): Don't free the display info's XIM.
9861
9862 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9863
9864 * config.in (USE_XIM): New define.
9865
9866 * keymap.c (get_keyelt): For menu-items containing a `:filter
9867 FILTER', apply FILTER to the menu-item's definition to get the
9868 real definition to use.
9869
9870 * lisp.h (QCfilter): External declaration.
9871
9872 * xfns.c (Fimage_size): New function.
9873 (syms_of_xfns): Defsubr it.
9874
9875 2000-06-26 Andreas Schwab <schwab@suse.de>
9876
9877 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9878 Fstring_as_unibyte.
9879
9880 2000-06-25 Dave Love <fx@gnu.org>
9881
9882 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
9883
9884 * Makefile.in (blockinput.h): Depend on atimer.h.
9885 (atimer.h): Depend on systime.h.
9886
9887 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
9888
9889 * atimer.h: Protect against multiple inclusion. Include systime.h.
9890
9891 * lisp.h (swap_in_global_binding): Declare.
9892
9893 2000-06-24 Ken Raeburn <raeburn@gnu.org>
9894
9895 * process.c (Fopen_network_stream): Turn off atimers for duration
9896 of call to connect. (Patch from Gerd.)
9897
9898 2000-06-23 Dave Love <fx@gnu.org>
9899
9900 * ralloc.c: Maybe include unistd.h
9901
9902 * emacs.c (setgrp): Undefine before defining.
9903 (malloc_warning, set_time_zone_rule, index): Prototype.
9904
9905 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9906 HAVE_STRUCT_TIMEZONE.
9907
9908 * s/osf1.h: Move string.h hack here from alpha.h and make it
9909 conditional.
9910 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9911 _XOPEN_SOURCE.
9912 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9913 (SOCKLEN_TYPE): Don't define.
9914
9915 * m/alpha.h: Remove string.h hack.
9916
9917 * s/osf5-0.h: New file.
9918
9919 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9920 include time.h, done by systime.h.
9921 [__FreeBSD__]: Remove redundant includes.
9922
9923 * callproc.c (setpgrp): Undefine before defining.
9924 (delete_temp_file): Return Qnil to avoid warning.
9925
9926 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9927
9928 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9929 HAVE_X_WINDOWS.
9930
9931 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9932
9933 * composite.h (compose_text): Declare.
9934
9935 * xterm.c: Don't include sys/types.h unconditionally. Don't
9936 protect its inclusion with !USG (following xmenu.c).
9937
9938 2000-06-23 Gerd Moellmann <gerd@gnu.org>
9939
9940 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9941 in x_create_frame.
9942
9943 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9944
9945 * coding.c (decode_eol_post_ccl): Special handling for undecided
9946 and inconsistent EOL types.
9947
9948 2000-06-22 Gerd Moellmann <gerd@gnu.org>
9949
9950 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9951 trough color and main window's background color.
9952
9953 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
9954
9955 * xterm.h (Xt_app_con): External declaration.
9956
9957 * widget.c (EmacsFrameRealize): Fix typo.
9958
9959 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9960
9961 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9962 (handle_invisible_prop): Record the start of invisible text in
9963 it->add_overlay_start.
9964 (struct overlay_entry): Add member `overlay'.
9965 (handle_overlay_change): Simplify.
9966 (next_overlay_string): After having processed overlay strings at the
9967 end of the buffer, record that fact in
9968 it->overlay_strings_at_end_processed_p.
9969 (compare_overlay_entries): If before- and after-strings come
9970 from the same overlay, let before-strings come first.
9971 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9972 (load_overlay_strings): Take it->add_overlay_start into account
9973 when adding overlay strings.
9974
9975 * dispextern.h (struct it): Add member add_overlay_start.
9976
9977 2000-06-22 Dave Love <fx@gnu.org>
9978
9979 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9980
9981 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9982
9983 2000-06-22 Kenichi Handa <handa@etl.go.jp>
9984
9985 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9986 is greater than 0.
9987
9988 2000-06-21 Dave Love <fx@gnu.org>
9989
9990 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9991
9992 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9993
9994 * syntax.c (back_comment): Simplify string-parity counting (with
9995 the added benefit of handling multiple string-styles as long as
9996 they are not intertwined).
9997 Jump to the slow code as soon as a comment starter is found in
9998 a "string_lossage" position. Fixes the case: " /* " /* " */.
9999
10000 2000-06-21 Dave Love <fx@gnu.org>
10001
10002 * Makefile.in: Use GETLOADAVG_LIBS.
10003
10004 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10005 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10006
10007 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10008
10009 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10010 (Fforward_comment, scan_lists):
10011 Check the comstyle of single-char comment-starters.
10012 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10013 we're just at the beginning of the comment (f.ex with (*) ... (*)).
10014 Check the comstyle of single-char comment-starters.
10015 Clarify control-flow around the Scomment case.
10016
10017 2000-06-20 Dave Love <fx@gnu.org>
10018
10019 * fns.c (make_hash_table, maybe_resize_hash_table):
10020 Cast arg of next_almost_prime.
10021
10022 * tparam.c [emacs]: Include lisp.h.
10023
10024 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10025 and unistd.h.
10026
10027 2000-06-20 Gerd Moellmann <gerd@gnu.org>
10028
10029 * keyboard.c (adjust_point_for_property): Check if display
10030 property should be treated as intangible by looking at its value.
10031
10032 * xdisp.c (single_display_prop_intangible_p)
10033 (display_prop_intangible_p): New functions.
10034
10035 * dispextern.h (display_prop_intangible_p): Add prototype.
10036
10037 * xdisp.c (dump_glyph_row): Show type of glyph->object.
10038
10039 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10040 argument to sigprocmask.
10041
10042 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10043 argument to sigprocmask.
10044
10045 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10046 sigprocmask_set, and pass a pointer to it to sigprocmask.
10047
10048 * sysdep.c (sigprocmask_set): New variable.
10049
10050 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10051 report_file_error.
10052
10053 2000-06-20 Sam Steingold <sds@gnu.org>
10054
10055 * xrdb.c: Don't declare xmalloc, xrealloc.
10056
10057 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10058
10059 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10060 (re_comp): Cast gettext return value to avoid complaints when
10061 !HAVE_LIBINTL.
10062
10063 2000-06-20 Dave Love <fx@gnu.org>
10064
10065 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
10066
10067 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
10068
10069 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
10070
10071 * m/alpha.h: Don't declare xmalloc, xrealloc.
10072
10073 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10074
10075 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10076
10077 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10078
10079 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10080 HAVE_GETWD.
10081
10082 * keyboard.h (poll_for_input_1): Declare.
10083
10084 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10085
10086 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10087
10088 * doprnt.c: Don't declare xmalloc, xrealloc.
10089
10090 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10091 (getenv, ctime, getwd): Removed.
10092 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10093
10094 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10095 x_set_tool_bar_lines.
10096
10097 * config.in: Add HAVE_GETWD. Move some definitions above
10098 machine/system includes.
10099
10100 2000-06-20 Kenichi Handa <handa@etl.go.jp>
10101
10102 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10103
10104 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10105 contain information about ENCODING.
10106
10107 * fontset.c (FONTSET_ASCII): Use the first element of char table
10108 for an ASCII font, not defalt slot.
10109 (fontset_ref_via_base): If FONTSET doesn't contain information for
10110 C, try the default fontset.
10111 (make_fontset): Don't copy the default fontset.
10112 (fontset_font_pattern): Likewise.
10113 (accumulate_font_info): If ELT is nil, use the corresponding
10114 element in the default fontset.
10115
10116 2000-06-19 Dave Love <fx@gnu.org>
10117
10118 * syntax.c (Fparse_partial_sexp): Doc fix.
10119
10120 * regex.h: Test PROTOTYPES as well as __STDC__.
10121
10122 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10123 errno, strerror. Put text after #endif in comment.
10124
10125 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
10126
10127 * xterm.c (x_frame_of_widget): Likewise.
10128
10129 2000-06-19 Gerd Moellmann <gerd@gnu.org>
10130
10131 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10132 to Vfundamental_mode_abbrev_table.
10133
10134 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10135 bogus objects are marked. This slows down GC by ~80 percent, but
10136 it might be worth trying when debugging GC-related problems.
10137 This feature requires conservative stack marking to be enabled.
10138
10139 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10140 returns XLookupChars, reset `modifiers' to zero.
10141
10142 2000-06-19 Dave Love <fx@gnu.org>
10143
10144 * mktime.c: Unprotoized.
10145
10146 2000-06-19 Richard Stallman <rms@gnu.org>
10147
10148 * data.c (set_internal): If variable is frame-local,
10149 store the new value immediately into the frame parameter alist.
10150
10151 2000-06-19 Ken Raeburn <raeburn@gnu.org>
10152
10153 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10154 in the custom handler pointer.
10155
10156 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10157 value, or checks for CHAR_META can fail when Lisp_Object is a
10158 union type.
10159 * keymap.c (get_keyelt): Likewise.
10160
10161 2000-06-19 Kenichi Handa <handa@etl.go.jp>
10162
10163 * ccl.h (struct ccl_program): New member eol_type.
10164 (struct ccl_spec): New member cr_carryover.
10165
10166 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10167 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10168
10169 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10170 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10171 (decode_eol_post_ccl): New function.
10172 (decode_coding): Don't detect EOL format here for CCL based coding
10173 systems.
10174 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10175 decode_eol_post_ccl after running the CCL program.
10176 (code_convert_region): Don't detect EOL format here for CCL based
10177 coding systems.
10178 (decode_coding_string): Likewise.
10179
10180 2000-06-18 Ken Raeburn <raeburn@gnu.org>
10181
10182 * charset.c (update_charset_table): Use XINT on "iso_final_char"
10183 when treating it as an integer.
10184
10185 * coding.h (encode_coding_string): Declare.
10186
10187 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10188 it as an integer.
10189
10190 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10191 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10192 to be passed to get_local_map.
10193
10194 * sound.c (Fplay_sound): Don't call make_number on
10195 Frun_hook_with_args count argument.
10196
10197 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10198 for lisp objects in X event structure data field, when lisp
10199 objects are represented with unions.
10200 (x_scroll_bar_to_input_event): Ditto.
10201
10202 2000-06-16 Ken Raeburn <raeburn@gnu.org>
10203
10204 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
10205 termination of string. Fix sense of test whether
10206 Vline_number_display_limit is an integer.
10207
10208 2000-06-16 Gerd Moellmann <gerd@gnu.org>
10209
10210 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10211 only if HAVE_X_WINDOWS.
10212
10213 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10214 of titles.
10215
10216 * dispnew.c (update_frame_1): Handle case that cursor vpos is
10217 out of bounds.
10218
10219 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10220
10221 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10222 of its headers.
10223
10224 2000-06-15 Kenichi Handa <handa@etl.go.jp>
10225
10226 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10227 start of the while loop.
10228
10229 2000-06-15 Gerd Moellmann <gerd@gnu.org>
10230
10231 * atimer.c (alarm_signal_handler): Add forward declaration.
10232
10233 * data.c (set_internal): Remove debug code.
10234
10235 2000-06-14 Gerd Moellmann <gerd@gnu.org>
10236
10237 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10238
10239 * unexec.c (toplevel) [COFF]: Include coff.h.
10240
10241 * s/lynxos.h: New file.
10242
10243 * keymap.c (Fsingle_key_description): Enclose function key and
10244 event symbol names in angle brackets.
10245
10246 * xdisp.c (setup_echo_area_for_printing): Call
10247 message_log_maybe_newline if message_buf_print is not set.
10248
10249 * print.c (printchar, strout): Don't check message_buf_print
10250 before calling setup_echo_area_for_printing because that
10251 function does something useful even when message_buf_print is
10252 already set.
10253
10254 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10255 New variables.
10256 (ensure_echo_area_buffers): Initialize echo buffer's
10257 truncate lines setting to nil.
10258 (with_echo_area_buffer): Don't set the echo buffer's truncate
10259 lines setting here.
10260 (set_message_1): Set it here instead, based on the value
10261 of message_truncate_lines.
10262 (resize_mini_window): Handle case that lines are truncated.
10263 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10264 DEFVAR_BOOL message-truncate-lines.
10265
10266 * keyboard.c (read_char): Bind message-truncate-lines to t
10267 while displaying a help-echo.
10268
10269 * lisp.h (Qmessage_truncate_lines): External declaration.
10270
10271 2000-06-13 Gerd Moellmann <gerd@gnu.org>
10272
10273 * xdisp.c (Vline_number_display_limit): Renamed from
10274 line_number_display_limit.
10275 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10276 Extend documentation string. Initialize
10277 Vline_number_display_limit to nil meaning no limit.
10278 (decode_mode_spec): Use Vline_number_display_limit with its new
10279 meaning.
10280
10281 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10282
10283 2000-06-13 Richard Stallman <rms@gnu.org>
10284
10285 * frame.c (Fmodify_frame_parameters): Doc fix.
10286
10287 * xfns.c (x_set_frame_parameters): Comment fix.
10288
10289 * frame.c (store_frame_param): Call swap_in_global_binding if the
10290 variable's current binding was chosen based on this frame.
10291
10292 * data.c (swap_in_global_binding): New function.
10293
10294 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10295
10296 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10297 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10298
10299 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10300
10301 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10302
10303 2000-06-12 Jason Rumney <jasonr@gnu.org>
10304
10305 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10306
10307 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10308
10309 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10310
10311 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10312
10313 2000-06-12 Gerd Moellmann <gerd@gnu.org>
10314
10315 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10316 (syms_of_xfaces): Defsubr Sdump_colors.
10317 (x_free_colors): Don't treat b&w specially on default visual.
10318 (x_free_dpy_colors): New function.
10319 (free_face_colors): Don't check visual class; it's done
10320 in x_free_colors.
10321
10322 * xterm.c (x_frame_of_widget): New function.
10323 (x_alloc_nearest_color_for_widget): Use it.
10324 (x_copy_dpy_color): New function.
10325 (x_destroy_window): Free various colors.
10326
10327 2000-06-12 Kenichi Handa <handa@etl.go.jp>
10328
10329 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
10330
10331 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
10332
10333 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
10334
10335 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
10336
10337 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
10338
10339 2000-06-11 Dave Love <fx@gnu.org>
10340
10341 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
10342
10343 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
10344
10345 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
10346
10347 2000-06-11 Gerd Moellmann <gerd@gnu.org>
10348
10349 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
10350 to `XEvent *'.
10351
10352 2000-06-10 Kenichi Handa <handa@etl.go.jp>
10353
10354 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
10355 (regex_compile): Fix the code for handling the case of single byte
10356 char and multibyte char being mixed in a range within [...].
10357
10358 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
10359 and dst_multibyte members of coding.
10360
10361 * charset.c (update_charset_table): Update the table
10362 bytes_by_char_head.
10363 (init_charset_once): Initialize elements of bytes_by_char_head to
10364 1 except for leading codes for private charases.
10365
10366 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
10367 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
10368
10369 2000-06-09 Ken Raeburn <raeburn@gnu.org>
10370
10371 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
10372 access the data it doesn't point to.
10373
10374 2000-06-08 Gerd Moellmann <gerd@gnu.org>
10375
10376 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
10377 will be translated to a switch-frame event when reading the
10378 event queue. This is necessary because Emacs otherwise won't
10379 perform a switch-frame to a new frame until some other event, for
10380 example a keystroke event, forces it to do so. This has various
10381 effects, one visible being that the cursor of a frame created with
10382 C-x 5 2 or switched to with a window manager key binding like
10383 A-TAB stays hollow because selected_window isn't on the newly
10384 focused frame until the switch-frame is performed.
10385
10386 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
10387 generating a switch-frame event if necessary.
10388
10389 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
10390
10391 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
10392 it's an integer.
10393
10394 2000-06-08 Kenichi Handa <handa@etl.go.jp>
10395
10396 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
10397
10398 2000-06-07 Gerd Moellmann <gerd@gnu.org>
10399
10400 * window.c (displayed_window_lines): Take empty lines at
10401 the bottom of a window into account.
10402
10403 * window.c (displayed_window_lines): New function.
10404 (Fmove_to_window_line): Use displayed_window_lines to determine
10405 the number of lines to move, instead of using the window's height.
10406
10407 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
10408 to stop reading, even if the form read sets point to a different
10409 value when evaluated.
10410
10411 * xdisp.c (display_line): Fix code deciding in which line to
10412 put the cursor.
10413
10414 2000-06-07 Kenichi Handa <handa@etl.go.jp>
10415
10416 * fileio.c (e_write): Free composition data if stored in
10417 coding->cmp_data.
10418
10419 2000-06-06 Gerd Moellmann <gerd@gnu.org>
10420
10421 * xdisp.c (display_line): Set row's and iterator's
10422 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10423 Set cursor even if row ends in the middle of a character.
10424 (dump_glyph_row): Print values of new flags.
10425 (redisplay_window) <cursor movement in unchanged window>: When
10426 point has been moved forward, and PT is at the end of the cursor
10427 row, don't place the cursor in the next row if the cursor row ends
10428 in the middle of a character or at ZV.
10429
10430 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10431 (struct glyph_row): Add starts_in_middle_of_char_p and
10432 ends_in_middle_of_char_p.
10433 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10434 ends_in_middle_of_char_p flag.
10435 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10436
10437 * term.c (append_glyph): Revert change of 2000-06-06.
10438
10439 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10440 padding glyph not fitting on line as whole character not
10441 fitting on line.
10442
10443 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10444 this isn't true for images with `:ascent 100'.
10445
10446 2000-06-06 Kenichi Handa <handa@etl.go.jp>
10447
10448 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10449 as modified if it is originally unmodified.
10450
10451 * term.c (encode_terminal_code): Change the way to check if
10452 terminal coding does any conversion.
10453 (append_glyph): Set glyph->pixel_width correctly.
10454
10455 * xdisp.c (display_line): While checking line continuation, pay
10456 attention to a padding glyph.
10457
10458 2000-06-05 Gerd Moellmann <gerd@gnu.org>
10459
10460 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10461
10462 2000-06-05 Dave Love <fx@gnu.org>
10463
10464 * xdisp.c: Include fontset.h.
10465
10466 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10467
10468 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10469
10470 * dispnew.c: Conditionally include term.h.
10471
10472 * coding.h: Declare code_convert_string_norecord.
10473
10474 * frame.h (struct frame): Use volatile unconditionally.
10475
10476 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10477
10478 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10479
10480 * systime.h: Protect against multiple inclusion.
10481 (timezone) [USG5_4]: Define as time_t.
10482
10483 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10484 (Foptimize_char_table, make_temp_name): Declare.
10485
10486 * Makefile.in (xdisp.o): Depend on fontset.h.
10487
10488 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10489
10490 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10491 (Foptimize_char_table, make_temp_name): Declare.
10492
10493 * s/irix4-0.h:
10494 * s/irix5-0.h:
10495 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10496
10497 2000-06-02 Dave Love <fx@gnu.org>
10498
10499 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10500
10501 2000-06-02 Gerd Moellmann <gerd@gnu.org>
10502
10503 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
10504 result face, set flags in that face indicating that colors may not
10505 be freed.
10506
10507 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10508 glyph, use the ASCII NUL character to determine the face.
10509
10510 2000-06-02 Dave Love <fx@gnu.org>
10511
10512 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10513 (VFORK_RETURN_TYPE): Remove.
10514
10515 * config.in: Add NO_MATHERR.
10516
10517 2000-06-01 Dave Love <fx@gnu.org>
10518
10519 * cmds.c (internal_self_insert): Don't check
10520 Vbefore_change_function, Vafter_change_function.
10521
10522 * insdel.c (signal_before_change, signal_after_change): Likewise.
10523
10524 * buffer.c (Vbefore_change_function, Vafter_change_function):
10525 Variables and their initializations deleted.
10526
10527 * callint.c (Fcall_interactively): Doc fix.
10528
10529 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10530
10531 2000-05-31 Dave Love <fx@gnu.org>
10532
10533 * textprop.c: Revert last change -- duplicated.
10534
10535 2000-05-31 Gerd Moellmann <gerd@gnu.org>
10536
10537 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10538 in #if 0.
10539
10540 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10541
10542 2000-05-31 Jason Rumney <jasonr@gnu.org>
10543
10544 * search.c (Fre_search_forward, Fre_search_backward)
10545 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10546
10547 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10548
10549 2000-05-30 Jason Rumney <jasonr@gnu.org>
10550
10551 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10552 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10553
10554 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
10555
10556 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10557 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10558 expand a nil default_filename.
10559
10560 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10561 pointer to glyph_to_pixel_coords, not a frame.
10562
10563 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10564 coding.h to dependencies.
10565
10566 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10567
10568 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10569 window pointer to be consistent with w32term.c and xterm.c.
10570
10571 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10572 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10573 (Qline_spacing, Qcenter): New variables.
10574 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10575 (x_set_line_spacing): New function.
10576 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
10577 (x_specified_cursor_type): New function.
10578 (x_set_cursor_type): Use it.
10579 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10580 and icon strings.
10581 (validate_x_resource_name, x_get_resource_string): Measure lengths
10582 of external strings in bytes.
10583 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10584 GetTextExtentPoint32 with NULL title.
10585 (Fx_create_frame): Initialize Qline_spacing.
10586 (w32_load_system_font): Initialize font->double_byte_p.
10587 (x_to_w32_charset): Use Vw32_charset_info_alist.
10588 (Image, busy cursor, tooltip functions): Merged changes from
10589 xfns.c. Not yet functional on Windows.
10590
10591 * w32gui.h (W32FontStruct): Add double_byte_p member.
10592
10593 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10594 (emacs_button_translation): Use it.
10595 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10596 in `mask' to be set.
10597
10598 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10599 menu strings.
10600
10601 * w32term.c: Format and doc changes to bring closer to xterm.c.
10602 (w32_char_font_type): New enum.
10603 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10604 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10605 (w32_encode_char): New function.
10606 (x_encode_char): Removed.
10607 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10608 x_encode_char and w32_font_is_double_byte.
10609 (x_produce_image_glyph): Use image_ascent.
10610 (x_produce_glyphs): Use new version of w32_per_char_metric and
10611 handle NULL return value. Allow extra line spacing.
10612 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10613 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10614 w32_font_type member of glyph instead.
10615 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10616 (fast_find_position): Make sure not to consider rows not visible
10617 in the window.
10618 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10619 w32_menu_display_help with input blocked, as it can abort.
10620 (x_display_and_set_cursor): Choose cursor depending
10621 on buffer-local value of cursor_type.
10622 (x_draw_bar_cursor): Add parameter WIDTH.
10623
10624 * w32term.h (CP_DEFAULT): Define.
10625 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10626
10627 2000-05-30 Gerd Moellmann <gerd@gnu.org>
10628
10629 * search.c (Fre_search_forward, Fre_search_backward)
10630 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10631
10632 2000-05-30 Kenichi Handa <handa@etl.go.jp>
10633
10634 * coding.c (detect_coding_iso2022): Fix code for checking
10635 CODING_CATEGORY_MASK_ISO_8_2.
10636
10637 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10638
10639 * regex.c (PREFETCH_NOLIMIT): New function.
10640 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10641
10642 2000-05-29 Gerd Moellmann <gerd@gnu.org>
10643
10644 * syntax.c (find_defun_start): Move test for
10645 open_paren_in_column_0_is_defun_start outside of the loop.
10646
10647 * xdisp.c (redisplay_window): Really switch buffers when
10648 displaying mode lines, and temporarily set selected_frame to the
10649 frame of the window that's redisplayed.
10650
10651 * xfaces.c (free_realized_faces): Block/unblock input.
10652 (free_realized_multibyte_face): Ditto.
10653
10654 2000-05-29 Dave Love <fx@gnu.org>
10655
10656 * textprop.c (Qkeymap): New variable.
10657 (syms_of_textprop): Intern it.
10658
10659 * keymap.c: Include intervals.h.
10660 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10661
10662 * Makefile.in (keymap.o): Depend on intervals.h.
10663
10664 * keyboard.c (menu_bar_items, tool_bar_items)
10665 (Fexecute_extended_command): Deal with `keymap' property.
10666 (read_key_sequence): Track map from `keymap' property as well as
10667 `local_map'.
10668
10669 * intervals.c (get_local_map): Extra arg to allow looking for
10670 `keymap' too.
10671
10672 * intervals.h (map_property): New enum.
10673 (get_local_map): Extra arg using it.
10674 (Qkeymap): Declare.
10675
10676 * lisp.h (get_local_map): Don't declare here.
10677
10678 2000-05-29 Kenichi Handa <handa@etl.go.jp>
10679
10680 * Makefile.in (callproc.o): Depend on composite.h.
10681
10682 * callproc.c: Include composite.h.
10683 (Fcall_process): Handle composition correctly.
10684
10685 * coding.h (coding_allocate_composition_data): Extern it.
10686 (coding_restore_composition): Likewise.
10687
10688 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10689 yet allocated, finish decoding with result
10690 CODING_FINISH_INSUFFICIENT_CMP.
10691 (coding_allocate_composition_data): Make it non-static.
10692 (coding_restore_composition): Likewise.
10693
10694 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10695
10696 * charset.c (syms_of_charset): Revert last change.
10697
10698 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10699
10700 * term.c (produce_glyphs): Treat characters from the eight-bit-*
10701 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10702 Handa.
10703
10704 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10705
10706 * charset.c (syms_of_charset): Set width of character sets
10707 eight-bit-control and eight-bit-graphic to 1 column.
10708
10709 2000-05-26 Gerd Moellmann <gerd@gnu.org>
10710
10711 * config.in (HAVE_SPEED_T): New define.
10712
10713 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10714 `extern speed_t'.
10715
10716 2000-05-26 Dave Love <fx@gnu.org>
10717
10718 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10719
10720 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10721 (Fsubr_arity): New function.
10722 (syms_of_data): Install them.
10723
10724 2000-05-26 Kenichi Handa <handa@etl.go.jp>
10725
10726 * charset.c (init_charset_once): Set the table bytes_by_char_head
10727 correctly.
10728
10729 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10730 the default fontset to what Emacs uses by default.
10731 (check_registry_encoding): This function deleted.
10732 (Fset_fontset_font): Remove the adhoc condition for the default
10733 fontset. Allow cons in FONTNAME.
10734
10735 * fns.c (map_char_table): Ignore char-table entries for
10736 charsets eight-bit-control and eight-bit-graphic.
10737
10738 2000-05-25 Ken Raeburn <raeburn@gnu.org>
10739
10740 * emacs.c (main): Initialize keyboard syms before initializing
10741 window code, so face names are available.
10742
10743 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10744
10745 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10746 of an anchor at the beginning of a shy-group.
10747
10748 2000-05-25 Gerd Moellmann <gerd@gnu.org>
10749
10750 * xdisp.c (handle_invisible_prop): Don't try to skip over
10751 invisible text if end of text is already reached.
10752
10753 2000-05-25 Dave Love <fx@gnu.org>
10754
10755 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10756
10757 * coding.c (encode_eol): Add null statement after label.
10758
10759 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10760
10761 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10762 2000-05-20.
10763
10764 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10765
10766 * ccl.c (ccl_driver): Fix previous change.
10767
10768 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10769
10770 * coding.c (run_pre_post_conversion_on_str): Set point to the
10771 beginning of buffer before calling coding->post_read_conversion.
10772 (decode_coding_string): Give correct args to
10773 run_pre_post_conversion_on_str.
10774 (encode_coding_string): Likewise.
10775
10776 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10777 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10778 eight-bit-graphic correctly.
10779
10780 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
10781
10782 * fileio.c (Finsert_file_contents): Even if a file is not found,
10783 execute codes for setting up coding system. Call
10784 after-insert-file-functions unconditionally.
10785
10786 2000-05-24 Gerd Moellmann <gerd@gnu.org>
10787
10788 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10789 BSD_PGRPS are not defined.
10790
10791 2000-05-24 Kenichi Handa <handa@etl.go.jp>
10792
10793 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10794 DESCRIPTION.
10795 (syms_of_charset): Avoid building same strings.
10796
10797 2000-05-23 Gerd Moellmann <gerd@gnu.org>
10798
10799 * lread.c (Fload): Add a comment about the meaning of
10800 Vuser_init_file being t.
10801
10802 * puresize.h (BASE_PURESIZE): Increase to 675000.
10803
10804 * s/gnu-linux.h (setpgrp): Don't define it here because this
10805 prevents compilation on GNU/Linux systems with glib 2.2.
10806
10807 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10808 as setpgid.
10809
10810 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10811
10812 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10813 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10814 version.
10815 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10816
10817 2000-05-23 Kenichi Handa <handa@etl.go.jp>
10818
10819 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10820
10821 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10822
10823 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
10824
10825 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10826
10827 2000-05-22 Kenichi Handa <handa@etl.go.jp>
10828
10829 * keyboard.c (read_char): Allow character codes 128..255 to be
10830 handled by input-method-function.
10831
10832 * insdel.c (adjust_markers_for_replace): Fix previous change.
10833 (adjust_after_replace): If PREV_TEXT is nil, call
10834 adjust_markers_for_insert, not adjust_markers_for_replace.
10835
10836 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
10837
10838 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10839 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10840 [HAVE_GRANDPT]: Define.
10841 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10842
10843 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10844 like SYSV_PTYS.
10845
10846 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10847
10848 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10849
10850 2000-05-20 Kenichi Handa <handa@etl.go.jp>
10851
10852 The following changes are to handle 8-bit characters in a
10853 multibyte buffer/string without facing with byte combining
10854 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10855 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10856
10857 * Makefile.in (fns.o): Depend on charset.h.
10858
10859 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10860 convert it to unibyte.
10861 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10862
10863 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10864 apparent char boundary.
10865 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10866 0x80..0x9F to/from multibyte form.
10867
10868 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10869 to unibyte.
10870
10871 * callproc.c (Fcall_process): Always encode an argument string if
10872 it is multibyte. Setup src_multibyte and dst_multibyte members of
10873 process_coding properly.
10874
10875 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10876 SPLIT_NON_ASCII_CHAR.
10877
10878 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10879 as is.
10880 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10881
10882 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
10883 (SPLIT_CHARACTER_SEQ): This macro deleted.
10884 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
10885 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10886 and eight-bit-graphic.
10887 (char_to_string): Likewise. Signal an error for too large
10888 character code.
10889 (char_printable_p): Return 0 for 8-bit characters.
10890 (update_charset_table): Update iso_charset_table only when a final
10891 character is non-negative.
10892 (find_charset_in_text): Renamed from find_charset_in_str.
10893 Arguments and return value changed. Callers changed.
10894 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10895 be -1 if CHARSET is used only internally.
10896 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10897 eight-bit-graphic.
10898 (Fcharset_after): Simplified.
10899 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10900 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10901 (multibyte_chars_in_text): Simplified by assuming there's no
10902 invalid multibyte sequence.
10903 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10904 (str_as_unibyte): New functions.
10905 (Fstring): Simpified by assuming that byte combining never happens.
10906 (init_charset_once): Initialization for
10907 LEADING_CODE_8_BIT_CONTROL.
10908 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10909 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10910 eight-bit-control and eight-bit-graphic.
10911
10912 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10913 (CHARSET_8_BIT_GRAPHIC): New macros.
10914 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10915 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10916 (CHARSET_REVERSE_CHARSET): Likewise.
10917 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10918 eight-bit-graphic.
10919 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10920 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10921 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10922 encounter an invalid multibyte sequence.
10923 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10924 sequence is always valid.
10925 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
10926 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
10927 (CHAR_STRING): For 8-bit characters, call char_to_string.
10928 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10929 multibyte sequence is always valid.
10930 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
10931 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10932 (str_as_unibyte): Extern them.
10933 (BCOPY_SHORT): Fix a bug.
10934 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
10935 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10936 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10937 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10938
10939 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
10940 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
10941 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10942 (EMIT_BYTES): New macros.
10943 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10944 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
10945 macros deleted.
10946 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10947 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10948 check the validity of multibyte sequence.
10949 (decode_coding_emacs_mule): New function.
10950 (encode_coding_emacs_mule): New macro.
10951 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10952 the source.
10953 (DECODE_ISO_CHARACTER): Just return a character code.
10954 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10955 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10956 EMIT_CHAR to produced decoded characters. Exit the loop only by
10957 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10958 block here.
10959 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10960 only position codes for an invalid character.
10961 (encode_designation_at_bol): Return new destination pointer. 5th
10962 arg DSTP is changed to DST.
10963 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10964 from the source by ONE_MORE_CHAR. Don't handle the case of last
10965 block here.
10966 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10967 macros deleted.
10968 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10969 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
10970 TWO_MORE_BYTES to fetch a byte from the source.
10971 (encode_eol): Pay attention to coding->src_multibyte.
10972 (detect_coding, detect_eol): Preserve members src_multibyte and
10973 dst_multibyte.
10974 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10975 (encoding_buffer_size): Set magnification to 3 for all coding
10976 systems that require encoding.
10977 (ccl_coding_driver): For decoding, be sure that the result is
10978 valid multibyte sequence.
10979 (decode_coding): Initialize coding->errors and coding->result.
10980 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10981 and raw-text, always call decode_eol. Handle the case of last
10982 block here. If not coding->dst_multibyte, convert the resulting
10983 sequence to unibyte.
10984 (encode_coding): Initialize coding->errors and coding->result.
10985 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10986 and raw-text, always call encode_eol. Handle the case of last
10987 block here.
10988 (shrink_decoding_region, shrink_encoding_region): Detect cases
10989 that we can't skip data more rigidly.
10990 (code_convert_region): Setup src_multibyte and dst_multibyte
10991 members of coding. For decoding, if the buffer is multibyte,
10992 convert the source sequence to unibyte in advance. For encoding,
10993 if the buffer is multibyte, convert the resulting sequence to
10994 multibyte afterward.
10995 (run_pre_post_conversion_on_str): New function.
10996 (code_convert_string): Deleted and divided into the following two.
10997 (decode_coding_string, encode_coding_string): New functions.
10998 (code_convert_string1, code_convert_string_norecord): Call one of
10999 above.
11000 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11001 MAKE_NON_ASCII_CHAR.
11002 (Fset_terminal_coding_system_internal)
11003 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
11004 and dst_multibyte members.
11005 (init_coding_once): Initialize iso_code_class with new enum
11006 ISO_control_0 and ISO_control_1.
11007
11008 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11009 devided into ISO_control_0 and ISO_control_1.
11010 (struct coding_system): New members src_multibyte, dst_multibyte,
11011 errors, and result. Delete member fake_multibyte.
11012 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11013 nonzero.
11014 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11015 nonzero.
11016
11017 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11018 (Faset): Likewise.
11019
11020 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11021 multibyte form.
11022 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11023 combining occurs.
11024 (Ftranspose_region): Delete codes for handling byte combining.
11025
11026 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11027 dst_multibyte members of coding. On handling REPLACE on unibyte
11028 buffer, convert the result of decode_coding to unibyte. On
11029 inserting into a mutibyte buffer, always call code_convert_region.
11030 (e_write): Setup coding->src_multibyte according to the
11031 multibyteness of the source (buffer or string).
11032
11033 * fns.c (concat): Handle 8-bit characters correctly.
11034 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11035 unibyte in the result.
11036 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11037 valid multibyte form in the result.
11038 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11039 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11040 return -1, signal an error.
11041 (base64_encode_1): New arg MULTIBYTE. Get each character by
11042 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11043 character is found, return -1.
11044 (Fbase64_decode_region): Delete codes for handling byte-combining.
11045 Treat each decoded byte as a unibyte character.
11046 (Fbase64_decode_string): Return unibyte string.
11047 (Fcompare_strings, concat, string_byte_to_char): Use
11048 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11049 FETCH_STRING_CHAR_ADVANCE.
11050 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11051 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11052
11053 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11054 SPLIT_NON_ASCII_CHAR.
11055 (fontset_ref_via_base, fontset_set): Likewise
11056
11057 * insdel.c (adjust_markers_for_record_delete): Deleted.
11058 (adjust_markers_for_insert): Argument changed. Caller changed.
11059 (adjust_markers_for_replace): Likewise.
11060 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11061 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
11062 (copy_text): Delete unused local varialbe c_save. For converting
11063 to multibyte, be sure to make all 8-bit characters in valid
11064 multibyte form.
11065 (count_size_as_multibyte): Handle 8-bit characters correctly.
11066 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11067 (adjust_after_replace, replace_range, del_range_2)
11068 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
11069 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11070 (adjust_after_replace, replace_range, del_range_2) Delete codes for
11071 handling byte combining.
11072 (adjust_before_replace): Deleted.
11073
11074 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11075 SPLIT_NON_ASCII_CHAR.
11076 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11077 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11078 (Fkey_description): Likewise.
11079
11080 * lread.c (read1): On reading multibyte string, be sure to make
11081 all 8-bit chararacters in valid multibyte form.
11082 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11083
11084 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11085 unconditionally.
11086
11087 * process.c (Fstart_process): GCPRO current_dir before calling
11088 Ffind_operation_coding_system. Encode arguments here.
11089 (create_process): Don't encode arguments here. Setup
11090 src_multibyte and dst_multibyte members of struct coding.
11091 (read_process_output): Setup src_multibyte and dst_multibyte
11092 members of struct coding. If the output is to multibyte buffer,
11093 always decode the output of the process. Adjust the
11094 representation of 8-bit characters to the multibyteness of the output.
11095 (send_process): Setup coding->src_multibyte according to the
11096 multibyteness of the source.
11097
11098 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11099 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11100 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11101
11102 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
11103
11104 * w16select.c (Fw16_set_clipboard_data): Setup members
11105 src_multibyte and dst_multibyte of coding. Adjusted for the
11106 change for find_charset_in_str.
11107 (Fw16_get_clipboard_data): Likewise.
11108
11109 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11110 dst_multibyte of coding.
11111 (x_to_w32_font): Likewise.
11112
11113 * w32select.c (Fw32_set_clipboard_data): Setup members
11114 src_multibyte and dst_multibyte of coding. Adjusted for the
11115 change for find_charset_in_str.
11116 (Fw32_get_clipboard_data): Likewise.
11117
11118 * xdisp.c (get_next_display_element): Handle 8-bit characters
11119 correctly.
11120 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11121 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11122
11123 * xselect.c (selection_data_to_lisp_data): Setup members
11124 src_multibyte and dst_multibyte of coding. Adjusted for the
11125 change for find_charset_in_str.
11126 (lisp_data_to_selection_data): Likewise.
11127
11128 2000-05-19 Gerd Moellmann <gerd@gnu.org>
11129
11130 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
11131
11132 * dispextern.h (Vimage_types): Add extern declaration.
11133
11134 * xdisp.c (Vimage_types): Moved here from xfns.c.
11135 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11136
11137 * xfns.c (Vimages_types): Moved to xdisp.c.
11138 (syms_of_xfns): Move `image-types' to xdisp.c.
11139
11140 * w32fns.c (Vimage_types): Removed.
11141 (syms_of_w32fns): Remove `image-types'.
11142
11143 2000-05-18 Kenichi Handa <handa@etl.go.jp>
11144
11145 * fns.c (map_char_table): Pay attention to character number of
11146 charset. Check the validity of charset at the first level. For
11147 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11148 the default value.
11149
11150 * fontset.c: Include "buffer.h".
11151 (fs_load_font): If the face has fontset, record the face ID in
11152 that fontset.
11153 (Finternal_char_font): New function.
11154 (accumulate_font_info): New function.
11155 (Ffontset_info): Rewritten for the new fontset implementation.
11156 (syms_of_fontset): Register Vdefault_fontset in the first element
11157 of Vfontset_table. Include Vdefault_fontset in
11158 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11159 function.
11160
11161 2000-05-16 Dave Love <fx@gnu.org>
11162
11163 * m/iris5d.h: Deleted -- unused.
11164
11165 2000-05-16 Gerd Moellmann <gerd@gnu.org>
11166
11167 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11168 `invalid' instead of `illegal'.
11169
11170 * indent.c (Fmove_to_column): When ending within a tab, insert
11171 spaces first so that markers at the end of the tab get adjusted.
11172
11173 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11174 buffer list that wasn't selected in that frame.
11175
11176 * filelock.c (get_boot_time): To obtain an 8 char file name, which
11177 is needed on mescaline, use a 2 char prefix, and call
11178 make_temp_name with second arg non-zero.
11179
11180 * fileio.c (make_temp_name): New function, extracted from
11181 Fmake_temp_name.
11182 (Fmake_temp_name): Use it.
11183
11184 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11185
11186 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
11187
11188 2000-05-15 Gerd Moellmann <gerd@gnu.org>
11189
11190 * Makefile.in (lisp): Add env.elc.
11191
11192 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11193
11194 2000-05-12 Gerd Moellmann <gerd@gnu.org>
11195
11196 * search.c (Freplace_match): Handle case of `\N' in the
11197 replacement when there's no group N.
11198
11199 2000-05-11 Gerd Moellmann <gerd@gnu.org>
11200
11201 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11202 of the message to message_dolog.
11203
11204 * keyboard.c (read_char): Don't clear current message for help
11205 events; let the code handling help events handle this. Change
11206 code detecting help events that should be ignored.
11207
11208 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11209 we're interating over a string.
11210
11211 2000-05-09 Dave Love <fx@gnu.org>
11212
11213 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11214 that offset before writing. Move gcpro region past call of
11215 Ffile_regular_p.
11216
11217 2000-05-04 Dave Love <fx@gnu.org>
11218
11219 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11220
11221 2000-05-04 Gerd Moellmann <gerd@gnu.org>
11222
11223 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11224 of inserted characters when BUF equals the current buffer, and PT
11225 is in front of or equal to FROM.
11226
11227 2000-05-03 Gerd Moellmann <gerd@gnu.org>
11228
11229 * xdisp.c (handle_single_display_prop): If display property value
11230 is invalid, or something not supported on the frame, restore
11231 iterator's position to what it was initially. Make sure to return
11232 0 for invalid and unsupported property values.
11233
11234 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11235 that x_per_char_metric returns null.
11236
11237 2000-05-02 Gerd Moellmann <gerd@gnu.org>
11238
11239 * xterm.h (struct face): Add forward declaration.
11240 (struct image): Ditto.
11241 (image_ascent): Add prototype.
11242
11243 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11244 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11245 image_ascent instead of using IMAGE_ASCENT.
11246
11247 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11248 (IMAGE_ASCENT): Removed.
11249
11250 * xfns.c (Qcenter): New variable.
11251 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11252 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11253 (image_ascent): New function.
11254 (lookup_image): Recognize `:ascent center'.
11255 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11256 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11257 (xbm_load): Don't set image's ascent here.
11258 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11259 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11260 check ascent values here.
11261 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11262 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11263 (syms_of_xfns): Initialize Qcenter.
11264
11265 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11266 to the limits, increase the limits.
11267
11268 2000-05-01 Kenichi Handa <handa@etl.go.jp>
11269
11270 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
11271 Check Vfont_encoding_alist against the full name of the opened font.
11272
11273 2000-04-28 Gerd Moellmann <gerd@gnu.org>
11274
11275 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11276 taller than the window.
11277
11278 2000-04-28 Kenichi Handa <handa@etl.go.jp>
11279
11280 * xfaces.c (realize_x_face): Fix the argument of the second
11281 xassert. BASE_FACE may not be a face for ASCII.
11282
11283 2000-04-27 Gerd Moellmann <gerd@gnu.org>
11284
11285 * print.c (print_object): Treat print-length < 0 as nil.
11286
11287 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11288
11289 * s/freebsd.h (TERMCAP_OBJ): Removed.
11290 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11291
11292 * lread.c (read1): Don't treat period followed by certain
11293 characters as symbol start.
11294
11295 * xfns.c (slurp_file): New function.
11296 (xbm_image_p): Handle case of in-memory XBM files.
11297 (xbm_scan): Rewritten to work on memory buffers instead of files.
11298 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11299 Work on memory buffers instead of files. If DATA is null test
11300 if buffer looks like an in-memory XBM file.
11301 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11302 memory buffers instead of files.
11303 (xbm_file_p): New function.
11304 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11305
11306 * lread.c (end_of_file_error): New function.
11307 (read1): Call it instead of signaling `end-of-file' directly.
11308
11309 * print.c (print_error_message): Print data of `end-of-file'
11310 with Fprinc instead of Fprin1.
11311
11312 2000-04-26 Ken Raeburn <raeburn@gnu.org>
11313
11314 * window.c (freeze_window_start): Check that minibuffer scroll
11315 window isn't nil before extracting the window structure pointer
11316 from it.
11317
11318 * undo.c (record_delete): If we hit the end of the undo list, stop
11319 picking elements apart.
11320
11321 2000-04-26 Gerd Moellmann <gerd@gnu.org>
11322
11323 * xdisp.c (display_line): If lines are continued, restore
11324 iterator's ascent/descent information to the values before the
11325 first glyph not fitting on the line.
11326
11327 2000-04-25 Gerd Moellmann <gerd@gnu.org>
11328
11329 * xdisp.c (try_window_id) <all changes above window start>: Adjust
11330 positions in glyph matrix. Don't compute new window end positions.
11331
11332 * dispnew.c (increment_matrix_positions): Renamed from
11333 increment_glyph_matrix_buffer_positions.
11334 (increment_row_positions): Renamed from
11335 increment_glyph_row_buffer_positions.
11336
11337 * dispextern.h: Change names of renamed functions from dispnew.c
11338 in prototypes.
11339
11340 2000-04-24 Gerd Moellmann <gerd@gnu.org>
11341
11342 * fileio.c (Fdo_auto_save): Create directories for auto-save
11343 list file if necessary.
11344
11345 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
11346 from buffer or frame.
11347 (automatic_hscrolling_p): New variable.
11348 (hscroll_windows): Scroll windows horizontally only if automatic
11349 hscrolling is allowed.
11350 (syms_of_xdisp): New variable `automatic-hscrolling'.
11351
11352 * frame.h (struct frame): Add member extra_line_spacing.
11353
11354 * xfns.c (x_set_line_spacing): New function.
11355 (Fx_create_frame): Set line spacing from resources.
11356 (Qline_spacing): New variable.
11357 (syms_of_xfns): Initialize Qline_spacing.
11358
11359 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
11360
11361 * buffer.c (init_buffer_once): Handle extra_line_spacing.
11362 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
11363 (reset_buffer): Don't initialize extra2 and extra3. Initialize
11364 extra_line_spacing from default value.
11365 (init_buffer_once): Initialize default value of extra_line_spacing.
11366
11367 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
11368 and extra3.
11369
11370 * xterm.c (x_produce_glyphs): Remove reference to struct it's
11371 prompt_width. Add extra line spacing.
11372
11373 * term.c (produce_glyphs): Remove reference to struct it's
11374 prompt_width.
11375
11376 * dispextern.h (struct it): Remove member prompt_width, add
11377 extra_line_spacing.
11378
11379 2000-04-22 Gerd Moellmann <gerd@gnu.org>
11380
11381 * dispnew.c (update_frame_line): When writing a whole line, make
11382 sure cursor is in the right row afterwards, otherwise a use of
11383 capability `ch' in cmgoto might leave the cursor in the row below.
11384
11385 2000-04-21 Gerd Moellmann <gerd@gnu.org>
11386
11387 * lisp.h (struct Lisp_Buffer_Cons): Remove.
11388
11389 * keyboard.c (timer_check): Fix typo in comment.
11390
11391 2000-04-21 Kenichi Handa <handa@etl.go.jp>
11392
11393 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
11394 name change: ch -> character.
11395
11396 2000-04-20 Gerd Moellmann <gerd@gnu.org>
11397
11398 * keyboard.c (echo_message_buffer): New variable.
11399 (echo_now): Set echo_message_buffer to the echo area buffer used
11400 to display the echo.
11401 (cancel_echoing): Reset echo_message_buffer to nil.
11402 (read_char): Code rewritten that handles canceling an echo or
11403 echoing a dash, respectively.
11404
11405 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
11406 directory doesn't exist.
11407
11408 2000-04-19 Dave Love <fx@gnu.org>
11409
11410 * fns.c (syms_of_fns): Defsubr mapc.
11411 (concat): Don't allow numeric args.
11412 (Fconcat): Doc change.
11413
11414 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
11415
11416 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11417 instead define end_match(1|2) more carefully.
11418 Use GET_CHAR_BEFORE_2 for `begline'.
11419
11420 2000-04-19 Gerd Moellmann <gerd@gnu.org>
11421
11422 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11423 on 64-bit systems where NULL is defined as `0'.
11424
11425 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11426 the `variable argument list' to make it work on Alpha.
11427
11428 * m/alpha.h (_LP64) [!_LP64]: Define.
11429 (ORDINARY_LINK): Define for NetBSD.
11430
11431 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
11432
11433 2000-04-19 Dave Love <fx@gnu.org>
11434
11435 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11436 change.
11437
11438 * Makefile.in (LIBS): Don't use.
11439 (GETLOADAVG_OBJ): Define again.
11440 (otherobj): Add GETLOADAVG_OBJ.
11441
11442 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11443
11444 2000-04-18 Gerd Moellmann <gerd@gnu.org>
11445
11446 * lread.c (read_filtered_event): Cancel and start busy cursor.
11447
11448 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
11449 that the per-character metrics may be null.
11450
11451 2000-04-17 Gerd Moellmann <gerd@gnu.org>
11452
11453 * buffer.c (clone_per_buffer_values): New function.
11454 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11455 clone_per_buffer_values if CLONE is not nil.
11456
11457 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11458
11459 2000-04-16 Dave Love <fx@gnu.org>
11460
11461 * Makefile.in: Remove obsolete localcpp stuff.
11462 (GETLOADAVG_OBJ): Don't define.
11463 (obj): Move LIBOBJS...
11464 (otherobj): ... to here.
11465 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11466 whitespace-only lines after the continuation (Irix).
11467
11468 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11469
11470 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11471
11472 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11473
11474 2000-04-14 Dave Love <fx@gnu.org>
11475
11476 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11477 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11478 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11479 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11480 NLIST_STRUCT.
11481
11482 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11483 autoconfiscated HAVE_GETLOADAVG.
11484
11485 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11486 BROKEN_MKTIME.
11487
11488 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11489
11490 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
11491 (fill_in_lock_file_name): Avoid existing files that aren't links.
11492
11493 2000-04-14 Dave Love <fx@gnu.org>
11494
11495 * Makefile.in (LIBS, LIBOBJS): New variable.
11496 (INTERVAL_SRC): Convert to make variable.
11497 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11498 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11499 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11500 add LIBOBJS.
11501 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11502 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11503 (shortlisp): Add facemenu, float-sup, frame.
11504 (SOME_MACHINE_LISP): Remove them from here.
11505 (LIBES): Change unused LDLIBS to autoconf LIBS.
11506
11507 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11508
11509 2000-04-14 Kenichi Handa <handa@etl.go.jp>
11510
11511 * composite.c (update_compositions): If FROM and TO are not in a
11512 valid range, do nothing.
11513
11514 2000-04-13 Gerd Moellmann <gerd@gnu.org>
11515
11516 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
11517
11518 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
11519
11520 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11521 as TERMCAP_OBJ.
11522
11523 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11524
11525 * fileio.c (a_write): Remove redundant semi-colons.
11526 (e_write): Return -1 if failed to write all the data.
11527 This fixes the changes made at 1999-12-15.
11528
11529 2000-04-12 Dave Love <fx@gnu.org>
11530
11531 * fns.c (mapcar1): Test for null vals to support mapc.
11532 (Fmapc): New function.
11533
11534 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11535
11536 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11537 (IT_frame_up_to_date): Support the buffer local value of
11538 cursor-type, if defined.
11539
11540 2000-04-10 Dave Love <fx@gnu.org>
11541
11542 * editfns.c (preceding-char, following-char): Doc fix.
11543
11544 2000-04-10 Ken Raeburn <raeburn@gnu.org>
11545
11546 * Makefile.in (temacs): Revert 2000-03-12 change.
11547
11548 2000-04-10 Jason Rumney <jasonr@gnu.org>
11549
11550 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11551
11552 2000-04-10 Gerd Moellmann <gerd@gnu.org>
11553
11554 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11555 area buffer, if it's not set up yet.
11556
11557 * indent.c (compute_motion): Set immediate_quit.
11558
11559 2000-04-09 Gerd Moellmann <gerd@gnu.org>
11560
11561 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
11562 (realize_tty_face): Suppress boldness if colors are the inverse of
11563 the default colors, and tty_suppress_bold_inverse_default_colors_p
11564 is set.
11565 (Ftty_suppress_bold_inverse_default_colors): New function.
11566 (syms_of_xfaces): Defsubr it.
11567
11568 * buffer.c (Frestore_buffer_modified_p): New function.
11569 (syms_of_buffer): Defsubr it.
11570
11571 2000-04-08 Ken Raeburn <raeburn@gnu.org>
11572
11573 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11574 charset id (int) argument, not a charset (Lisp_Object).
11575
11576 * coding.h (code_convert_string): Declare.
11577 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11578 object, as the fourth argument to code_convert_string.
11579
11580 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
11581 (Fset_fontset_font): Use EQ to compare lisp objects.
11582
11583 2000-04-05 Ken Raeburn <raeburn@gnu.org>
11584
11585 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11586 a pointer that looks like a lisp object.
11587 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11588 zero, instead see whether it's an integer object, since they can't
11589 have intervals.
11590 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11591
11592 * dispnew.c (allocate_matrices_for_frame_redisplay)
11593 (direct_output_forward_char): Use X(U)INT and make_number as needed
11594 to convert between (unsigned) int values and lisp integers.
11595 * keyboard.c (read_key_sequence): Likewise.
11596 * lread.c (substitute_object_recurse): Likewise.
11597 * fns.c (concat, hash_lookup, hash_remove): Likewise.
11598 * minibuf.c (do_completion, Fminibuffer_complete_word)
11599 (Fminibuffer_completion_help): Likewise.
11600 * term.c (produce_special_glyphs): Likewise.
11601
11602 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11603 * print.c (print_preprocess, print_object): Likewise.
11604
11605 * search.c (compile_pattern): Use NILP when checking for nil.
11606
11607 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11608 __OPTIMIZE__]: Provide a GNU C macro version that handles
11609 lisp-object unions.
11610 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11611 field, to better cope with ENABLE_CHECKING and calls that modify a
11612 Lisp_Object using its old value.
11613
11614 2000-04-04 Gerd Moellmann <gerd@gnu.org>
11615
11616 * window.c (compare_window_configurations): Signal an error
11617 if parameters C1 or C2 aren't window configurations.
11618
11619 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11620 AFTER_POTENTIAL_GC calls around calls to functions that can
11621 signal an error and thus invoke the debugger.
11622
11623 2000-04-03 Gerd Moellmann <gerd@gnu.org>
11624
11625 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11626 an error if decoding fails.
11627
11628 * keyboard.c (lispy_mouse_names): Variable removed.
11629 (Vlispy_mouse_stem): New variable.
11630 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11631 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11632 for any mouse button number. Increase size of mouse_syms and
11633 button_down_location as needed. Call modify_event_symbol with
11634 different arguments.
11635 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11636 Call modify_event_symbol with different arguments.
11637 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11638 for any button number. Call modify_event_symbol with different
11639 arguments.
11640 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11641 Accept a string for NAME_ALIST_OR_STEM.
11642
11643 * lisp.h (larger_vector): Add prototype.
11644
11645 * fns.c (larger_vector): Make externally visible.
11646
11647 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11648
11649 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11650
11651 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11652 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11653 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11654 we are between str1 and str2.
11655 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11656 (PATFETCH): Use `TRANSLATE'.
11657 (PATFETCH_RAW): Fetch multibyte char if applicable.
11658 (PATUNFETCH): Remove.
11659 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11660 When writing a char, write it directly into the pattern buffer rather
11661 than going needlessly through a temp char-array.
11662 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11663 multibyte magic and remove the useless `#ifdef emacs'.
11664 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11665 buffer.
11666
11667 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11668 conditional on `emacs'.
11669
11670 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11671
11672 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11673
11674 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11675 non-union-type versions of XMARK and friends here, because XMARK
11676 and friends won't work on an integer field if NO_UNION_TYPE is not
11677 defined.
11678 (make_number): Define as a function if it's not defined as a macro.
11679
11680 * composite.c (run_composite_function): Use NILP when checking for nil.
11681 (syms_of_composite): Delete local var NARGS, pass an int as first
11682 argument to Fmake_hash_table.
11683
11684 * editfns.c (text_property_stickiness): Use NILP to test
11685 Lisp_Object boolean value.
11686 (Fmessage_or_box): Don't use NILP to test int variable.
11687 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11688 problems reading from and changing the same lisp value in an
11689 XSETSTRING call.
11690
11691 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11692
11693 * term.c (TN_no_color_video): New variable.
11694 (term_init): Intitialize TN_no_color_video.
11695 (enum no_color_bit): New enumeration.
11696 (MAY_USE_WITH_COLORS_P): New macro.
11697 (turn_on_face): Use it to determine if attributes may be used
11698 combined with colors.
11699
11700 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11701
11702 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
11703 with int lvalues via casts; instead, just yield lisp object lvalues.
11704 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11705 proper accessor macros.
11706 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11707 (grow_mini_window): Fix typo getting int value of root->height.
11708
11709 * xdisp.c (compute_string_pos): Fix order of arguments to
11710 string_pos_nchars_ahead.
11711 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11712 count arg to variable-arg routines like Frun_hook_with_args and
11713 Fformat.
11714 (back_to_previous_visible_line_start)
11715 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
11716 fixed-arg routines like Fget_char_property and Fmake_string.
11717 (reconsider_clip_changes): Use XINT when comparing integer lisp
11718 objects, or passing them as int arguments.
11719 (mark_window_display_accurate, insert_left_trunc_glyphs)
11720 (append_space, extend_face_to_end_of_line): Use make_number when
11721 storing or passing integer values as lisp objects.
11722 (set_cursor_from_row, highlight_trailing_whitespace): Use
11723 INTEGERP, not implicit test against zero, for glyph object.
11724 (try_window_id): Don't use make_number when we want an int value.
11725
11726 * xfaces.c (xlfd_symbolic_value): Make last argument a
11727 Lisp_Object, to be consistent with callers.
11728 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11729 (lface_hash): Apply XFASTINT to lisp values before folding in.
11730
11731 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11732 fill in window width and height. Pass an int, not a lisp object,
11733 as first arg to Finsert.
11734
11735 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11736
11737 * xfaces.c (realize_basic_faces): Block input while realizing
11738 the faces.
11739
11740 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11741
11742 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11743
11744 2000-03-31 Gerd Moellmann <gerd@gnu.org>
11745
11746 * xterm.c (x_produce_glyphs): When displaying unibyte text
11747 or ASCII, handle case that per-char metric is null.
11748
11749 2000-03-30 Ken Raeburn <raeburn@gnu.org>
11750
11751 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11752
11753 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11754 (XSUBR, XBUFFER): Verify correct object type before returning
11755 pointer, using eassert.
11756 * frame.h (XFRAME): Likewise.
11757
11758 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11759 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11760 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
11761 * data.c (set_internal): Likewise.
11762 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11763 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
11764 * fileio.c (auto_save_1): Likewise.
11765 * insdel.c (check_markers): Likewise.
11766 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11767 * undo.c (record_insert): Likewise.
11768 * vmsproc.c (child_sig): Likewise.
11769 * window.c (unshow_buffer, window_loop): Likewise.
11770 * xterm.c (x_erase_phys_cursor): Likewise.
11771
11772 2000-03-30 Gerd Moellmann <gerd@gnu.org>
11773
11774 * xfns.c (free_image_cache): Free the cache structure itself
11775 last, after all its members have been freed.
11776
11777 * lisp.h (xstrdup): Add prototype.
11778
11779 * alloc.c (xstrdup): Moved here from xfaces.c.
11780 (allocating_for_lisp): Variable removed.
11781 (lisp_malloc): Block input around the calls to malloc and mem_insert.
11782
11783 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11784 of Fsymbol_value.
11785 (xstrdup): Moved to alloc.c.
11786
11787 2000-03-29 Ken Raeburn <raeburn@gnu.org>
11788
11789 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11790
11791 * emacs.c (main): Fix sense of no-loadup test.
11792
11793 * config.in (ENABLE_CHECKING): Undef.
11794
11795 * lisp.h (struct interval): Replace "parent" field with a union of
11796 interval pointer and Lisp_Object; add new bitfield to use as
11797 discriminant. Change other flag fields to bitfields.
11798 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
11799 is defined and the supplied test fails, print a message and abort.
11800 (eassert): New macro. Use CHECK to provide an assert-like facility.
11801
11802 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11803 pointers; abort if the value looks like a lisp object.
11804 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11805 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
11806 Modify for new interval parent definition.
11807
11808 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11809 (UNMARK_BALANCE_INTERVALS): Update references that need an
11810 addressable lisp object in the interval structure.
11811 (die): New function.
11812 (suppress_checking): New variable.
11813
11814 * intervals.c (interval_start_pos): Just return 0 if there's no
11815 parent object.
11816
11817 2000-03-29 Gerd Moellmann <gerd@gnu.org>
11818
11819 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11820 and earlier Emacs versions.
11821
11822 * keyboard.c (Ftop_level): Cancel busy-cursor.
11823
11824 * eval.c (call_debugger): Cancel busy-cursor.
11825
11826 2000-03-29 Kenichi Handa <handa@etl.go.jp>
11827
11828 * search.c (Freplace_match): Adjust multibyteness of the current
11829 buffer and NEWTEXT. Free allocated memory before signaling an error.
11830
11831 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11832
11833 * regex.c (analyse_first): New function obtained by ripping out most
11834 of re_compile_fastmap and generalizing it a little bit so that it
11835 can also just return whether a given (sub)pattern can match the empty
11836 string or not.
11837 (regex_compile): Use `analyse_first' to decide whether the loop-check
11838 needs to be done or not for *, +, *? and +? (the loop check is costly
11839 for non-greedy repetition).
11840 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11841
11842 2000-03-28 Dave Love <fx@gnu.org>
11843
11844 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
11845
11846 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11847
11848 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11849
11850 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11851 an expression.
11852 (enum re_opcode_t): Update description of succeed_n.
11853 (PATFETCH): Always define.
11854 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11855 operators, char classes, shy-groups and intervals).
11856 Optimize special cases of intervals so as to only use succeed_n and
11857 jump_n when really needed.
11858 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11859 that we don't have to handle the special cases any more.
11860 Simplify on_failure_jump handling as well.
11861
11862 2000-03-28 Jason Rumney <jasonr@gnu.org>
11863
11864 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11865
11866 2000-03-27 Gerd Moellmann <gerd@gnu.org>
11867
11868 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11869
11870 * s/msdos.h (GC_SETJMP_WORKS): Define.
11871
11872 * alloc.c (mark_maybe_object): New function.
11873 (mark_memory): Use it.
11874 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11875 (setjmp_tested_p, longjmp_done): New variables.
11876 (test_setjmp): New function.
11877 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11878 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11879
11880 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11881 to DEC_TEXT_POS and INC_TEXT_POS.
11882
11883 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11884 with parameter MULTIBYTE_P.
11885
11886 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
11887
11888 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
11889 buffers because it looks for multibyte character byte sequences
11890 which don't exist in unibyte text.
11891
11892 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11893
11894 * xfaces.c (register_color, unregister_color, unregister_colors)
11895 [DEBUG_X_COLORS]: New functions.
11896 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11897
11898 * xfns.c (x_set_cursor_color): Get color reference counts right.
11899
11900 * xterm.c (x_copy_color): New function.
11901 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11902
11903 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11904 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11905 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11906 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11907 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11908 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11909 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11910 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11911 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11912 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11913
11914 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11915 names for handling per-buffer variables.
11916
11917 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11918 instead of MAX_BUFFER_LOCAL_VARS.
11919 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11920
11921 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11922
11923 * xfns.c (x_specified_cursor_type): New function.
11924 (x_set_cursor_type): Use it.
11925
11926 * buffer.h (struct buffer): Add cursor_type.
11927
11928 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11929
11930 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
11931 (print_partial_compiled_pattern, re_compile_fastmap):
11932 Handle new opcode.
11933 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11934 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11935 executing it as well as when popping it off the stack to find infinite
11936 loops in non-greedy repetition operators.
11937
11938 2000-03-26 Gerd Moellmann <gerd@gnu.org>
11939
11940 * doc.c (Qfunction_documentation): New variable.
11941 (syms_of_doc): Initialize Qfunction_documentation.
11942 (Fdocumentation): If FUNCTION is a symbol with non-nil
11943 `function-documentation' property, return a documentation derived
11944 from that.
11945
11946 * buffer.c (syms_of_buffer): Add default-cursor-type.
11947 (init_buffer_once): Don't let cursor_type have a local value
11948 in every buffer.
11949
11950 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11951 on buffer-local value of cursor_type.
11952 (x_draw_bar_cursor): Add parameter WIDTH.
11953
11954 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11955 (init_buffer_once): Set default cursor_type value to t.
11956 Mark cursor_type as local everywhere.
11957 (syms_of_buffer): New per-buffer variable cursor-type.
11958
11959 * buffer.h (struct buffer): Remove member local_var_flags,
11960 add local_flags.
11961 (MAX_BUFFER_LOCAL_VARS): New macro.
11962 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11963 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11964 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11965 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11966
11967 * print.c (print_object): Use new macros for per-buffer variables.
11968
11969 * category.c (Fset_category_table): Use new macros for per-buffer
11970 variables.
11971
11972 * buffer.c (buffer_permanent_local_flags): Make a char array.
11973 (max_buffer_local_idx): New variable.
11974 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11975 for new handling of per-buffer variables.
11976 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11977 (init_buffer_once): Initialize per-buffer vars differently.
11978 Set max_buffer_local_idx.
11979
11980 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11981 variables.
11982
11983 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
11984
11985 * data.c (do_symval_forwarding, store_symval_forwarding)
11986 (find_symbol_value, set_internal, default_value, Fset_default)
11987 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11988 per-buffer variables.
11989
11990 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11991
11992 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11993
11994 * xterm.c (x_term_init): Unblock input around call1 of
11995 Qvendor_specific_keysyms.
11996
11997 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11998 (find_defun_start): Consider an open parenthesis in column 0
11999 a defun start only if open_paren_in_column_0_is_defun_start is set.
12000 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12001
12002 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12003
12004 * eval.c (Fautoload): Add entry in load-history (if after dump).
12005 * lread.c (load-history): Update docstring.
12006
12007 2000-03-24 Gerd Moellmann <gerd@gnu.org>
12008
12009 * indent.c (Fvertical_motion): Always use the current buffer.
12010 Temporarily change the window's buffer, if necessary.
12011
12012 2000-03-23 Gerd Moellmann <gerd@gnu.org>
12013
12014 * xterm.c (fast_find_position): Make sure not to consider rows
12015 not visible in the window.
12016
12017 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12018
12019 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12020 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12021
12022 2000-03-22 Jason Rumney <jasonr@gnu.org>
12023
12024 * w32menu.c (single_submenu): Set help string to NULL if none.
12025 (w32_menu_show): Set help string correctly.
12026 (add-menu-item): Set help string in MIIM_DATA for menu item.
12027 Load SetMenuItemInfoA explicitly.
12028 (w32_menu_display_help): New function.
12029
12030 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12031 (QCdata): Moved to xdisp.c.
12032
12033 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12034 (Vw32_charset_to_codepage_alist): Removed.
12035 (Vw32_charset_info_alist): New variable.
12036 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12037 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12038 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
12039 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12040 with TODO comment.
12041 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12042 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12043 Define Vw32_charset_info_alist and w32_charset symbols.
12044
12045 2000-03-22 Jason Rumney <jasonr@gnu.org>
12046
12047 * makefile.nt (w32bdf.obj): Update dependencies.
12048
12049 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12050
12051 * w32fns.c: Include fontset.h after dispextern.h.
12052 (Fx_create_frame): Do not create fontset.
12053 (w32_load_system_font): Doc fix.
12054 (Fx_close_connection): Free full_name if it is not shared.
12055
12056 * w32term.c: Include fontset.h after dispextern.h.
12057 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12058 Callers updated.
12059 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12060 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12061 (w32_font_is_double_byte): New function, needs body.
12062 (x_append_glyph): Set glyph->glyph_not_available_p.
12063 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12064 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12065 character, convert it to a unibyte character.
12066 (struct glyph_string): Delete member `charset'.
12067 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12068 calculating it is found.
12069 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12070 the case that per char metric is not available correctly.
12071 (x_fill_glyph_string): Handle the case that the specific glyph is
12072 not available correctly.
12073 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12074 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12075 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12076 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12077 fontset. Don't call FS_LOAD_FONT.
12078
12079 2000-03-22 Ken Raeburn <raeburn@gnu.org>
12080
12081 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12082 (INT_LISPLIKE): New macro.
12083 (NULL_INTERVAL_P): Use it.
12084 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12085 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12086 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
12087
12088 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12089 explicit references to "parent" field of struct interval and
12090 associated unclean type conversions.
12091 * intervals.c (create_root_interval, root_interval, rotate_right)
12092 (rotate_left, balance_possible_root_interval, split_interval_right)
12093 (split_interval_left, interval_start_pos, find_interval)
12094 (next_interval, previous_interval, update_interval)
12095 (adjust_intervals_for_insertion, delete_node, delete_interval)
12096 (adjust_intervals_for_deletion, merge_interval_right)
12097 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12098 (copy_intervals_to_string): Likewise.
12099 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12100 Likewise.
12101 * syntax.c (update_syntax_table): Likewise.
12102
12103 * intervals.c (reproduce_tree_obj): New function, like
12104 reproduce_tree but takes a Lisp_Object for the parent. Declare
12105 with prototype.
12106 (graft_intervals_into_buffer): Use it when appropriate.
12107 (reproduce_tree): Declare with prototype.
12108 (balance_possible_root_interval): Check that the parent is a lisp
12109 object before trying to examine its type.
12110
12111 2000-03-22 Gerd Moellmann <gerd@gnu.org>
12112
12113 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12114 as strings only if both are known to be strings.
12115
12116 * s/openbsd.h (LIBS_TERMCAP): Undef.
12117
12118 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12119
12120 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12121 definitions for non-Emacs compilation.
12122 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12123 outside of `#ifdef emacs'.
12124 (print_partial_compiled_pattern): Update.
12125 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12126 (re_compile_fastmap): Merge handling of charset and charset_not (for
12127 emacs and non-emacs compilation as well).
12128 Similarly for (not)categoryspec and (not)syntaxspec.
12129 Don't use the fastmap when reaching `anychar' since the added
12130 complexity is not justified.
12131 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12132 and (not)syntaxspec. Merge (not)categoryspec.
12133
12134 2000-03-22 Kenichi Handa <handa@etl.go.jp>
12135
12136 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12137 (FACE_FOR_CHAR): Define them differently for the configuration of
12138 --without-x.
12139
12140 2000-03-21 Dave Love <fx@gnu.org>
12141
12142 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12143 doc string.
12144
12145 2000-03-21 Gerd Moellmann <gerd@gnu.org>
12146
12147 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12148 (lface_fully_specified_p): Don't check contents of
12149 LFACE_FONT_INDEX because that attribute is optional.
12150 (realize_x_face): Remove now unwarranted xassert.
12151
12152 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
12153
12154 The following changes are to make font selection based on
12155 characters, not charset. In addition, they recover fontset
12156 facilities while utilizing the new font selection mechanism.
12157
12158 * Makefile.in (fontset.o): Depend on dispextern.h.
12159
12160 * alloc.c (mark_face_cache): Don't mark face->registry.
12161
12162 * dispextern.h (struct glyph): New member glyph_not_available_p.
12163 Use 22 bits for face_id.
12164 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12165 (struct face): Delete member registry, new member ascii_face.
12166 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12167 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12168 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
12169 (struct it): Delete member charset, new member glyph_not_available_p.
12170
12171 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12172 (struct fontset_info, struct fontset_data): Structs removed.
12173 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12174 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
12175 (fs_load_font, fs_query_fontset): Adjusted for new argument.
12176 (fs_free_face_fontset, fontset_font_pattern)
12177 (face_suitable_for_char_p, face_for_char)
12178 (make_fontset_for_ascii_face): Extern them.
12179 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
12180 (FS_LOAD_FACE_FONT): New macro.
12181
12182 * fontset.c: All codes rewritten or adjusted for the change of
12183 fontset implementation. Now fontset is represented by char table.
12184 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
12185 Variables removed.
12186 (my_strcasecmp): Function removed.
12187 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
12188 (AREF, ASIZE): New macros.
12189 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12190 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12191 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12192 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12193 (fontset_id_valid_p, font_family_registry, fontset_name)
12194 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12195 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
12196 New functions.
12197 (fs_load_font): New arg FACE. Caller changed.
12198 (fs_query_fontset): Argument changed. Caller changed.
12199 (Fquery_fontset): call fs_query_fontset.
12200 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12201 Functions removed.
12202 (clear_fontset_elements, check_registry_encoding)
12203 (check_fontset_name): New functions.
12204 (syms_of_fontset): Set char-table-extra-slots property of fontset
12205 to 3. Staticpro and initialize Vfontset_table and
12206 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12207
12208 * frame.h (struct frame): Member `fontset_data' removed.
12209 (FRAME_FONTSET_DATA): Macro removed.
12210
12211 * frame.c (make_frame): Don't allocate f->fontset_data.
12212 (Fdelete_frame): Don't free f->fontset_data.
12213
12214 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12215
12216 * xdisp.c (charset_at_position): Function removed.
12217 (init_iterator): Don't set member charset of struct `it'.
12218 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12219 (next_element_from_display_vector, insert_left_trunc_glyphs):
12220 Likewise.
12221 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12222 FACE_FOR_CHARSET.
12223 (get_next_display_element, append_space)
12224 (extend_face_to_end_of_line): Likewise.
12225
12226 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12227 Variables removed.
12228 (clear_font_table, frame_update_line_height, load_face_font):
12229 Adjusted for the change of fontset implementation.
12230 (load_face_fontset_font): Function removed.
12231 (pixel_point_size): New function.
12232 (font_list): Argument type changed. Caller changed.
12233 (LFACE_FONT): New macro.
12234 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12235 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12236 Lisp_Object. Determine the font name by actually loading a font
12237 by the specified pattern. Set LFACE_FONT (lface) to the specified
12238 pattern. Even if a font is not found, don't try alternatives.
12239 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12240 (set_font_frame_param): If `font' is specified in lface, use it.
12241 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12242 (lface_same_font_attributes_p): Likewise.
12243 (make_realized_face): Arguent changed. Caller changed. Set
12244 face->ascii_face to face itself.
12245 (free_realized_face): Free face->fontset if face is for ASCII.
12246 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12247 (deduce_unibyte_registry, x_charset_registry): Functions removed.
12248 (free_realized_multibyte_face): New function.
12249 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12250 changed. Caller changed.
12251 (try_font_list): Argument type changed.
12252 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12253 (choose_face_font): Argument changed. Handle fontset properly.
12254 (choose_face_fontset_font): Function removed.
12255 (realize_default_face, realize_named_face): Don't remove the
12256 former face here.
12257 (realize_face): Argument changed. Caller changed. Remove face
12258 with the arg former_face_id in advance. Load font for the new face.
12259 (realize_x_face): Argument changed. Caller changed. For a
12260 multibyte character, share fontset with base_face. For a single
12261 byte character, make a new realized fontset. Don't load a font here.
12262 (realize_tty_face): Argument changed. Caller changed.
12263 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12264 (face_at_buffer_position): Don't check multibyte_p for returning
12265 DEFAULT_FACE_ID.
12266 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12267 FACE_SUITABLE_FOR_CHARSET_P.
12268 (syms_of_xfaces): Remove code for Qx_charset_registry and
12269 Vface_default_registry.
12270
12271 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12272 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
12273 (x_per_char_metric): Don't try FONT->default_char. Even if
12274 pcm->width is zero, glyph bits may exist.
12275 (x_encode_char): Always initialize char2b->byte1.
12276 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
12277 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
12278 (x_append_glyph): Set glyph->glyph_not_available_p.
12279 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12280 it->charset. Handle the case that per char metric is not
12281 available. If it->multibyte_p is zero and it->c is a multibyte
12282 character, convert it to a unibyte character.
12283 (struct glyph_string): Delete member `charset'.
12284 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12285 the case that per char metric is not available correctly.
12286 (x_fill_glyph_string): Handle the case that the specific glyph is
12287 not available correctly.
12288 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12289 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12290 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12291 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12292 fontset. Don't call FS_LOAD_FONT.
12293
12294 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12295 (x_create_tip_frame): Likewise.
12296 (Fx_close_connection): Free full_name of font_info.
12297
12298 * fns.c (optimize_sub_char_table): New function.
12299 (Foptimize_char_table): New function.
12300 (syms_of_fns): Defsubr Soptimize_char_table.
12301
12302 2000-03-20 Gerd Moellmann <gerd@gnu.org>
12303
12304 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12305 only if buffer is displayed in some window.
12306
12307 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12308 (try_window_reusing_current_matrix): Don't call scroll run
12309 function if run's current and desired position are the same;
12310 this prevents cursor flickering.
12311
12312 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12313
12314 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12315
12316 * regex.c (RE_STRING_CHAR): New macro.
12317 (GET_CHAR_AFER_2): Remove.
12318 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12319 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12320 (print_partial_compiled_pattern, re_compile_fastmap)
12321 (re_match_2_internal): Remove on_failure_jump_exclusive.
12322 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12323 optimization only need to work for * (ie. can use of_keep_string_jump).
12324 Remove the special case for .*\n since it is now covered by the general
12325 optimization.
12326 (re_search_2): Don't bother with `room'.
12327 (skip_one_char): New function.
12328 (skip_noops): Simplify since `memory' is not needed any more.
12329 (mutually_exclusive_p): Restructure slightly to use `switch' and
12330 add handling for "all" remaining cases.
12331 (re_match_2_internal): Change on_failure_jump_smart to use
12332 on_failure_keep_string_jump (and redirect the end-of-loop jump)
12333 rather than on_failure_jump_exclusive.
12334
12335 2000-03-19 Gerd Moellmann <gerd@gnu.org>
12336
12337 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
12338 number of bits per RGB because it's everywhere used as the depth
12339 of the visual.
12340
12341 * term.c (calculate_costs): Remove code dealing with X frames.
12342
12343 2000-03-19 Richard M. Stallman <rms@gnu.org>
12344
12345 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
12346
12347 2000-03-18 Gerd Moellmann <gerd@gnu.org>
12348
12349 * lread.c (read_integer): Unread the last char not consumed.
12350
12351 2000-03-17 Gerd Moellmann <gerd@gnu.org>
12352
12353 * xterm.c (x_update_window_cursor): Don't update in frames
12354 which are in the process of being deleted.
12355
12356 2000-03-16 Gerd Moellmann <gerd@gnu.org>
12357
12358 * Makefile.in (mostlyclean): Add `*.core'.
12359 (clean): Add `bootstrap-emacs'.
12360
12361 * lread.c (read_integer): New function.
12362 (read1): Support read syntax #o, #x, #b, #r.
12363
12364 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
12365
12366 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
12367 make sure POINTER_TO_OFFSET gives the same value before and after
12368 PREFETCH. Use `dfail' to guarantee "atomic" matching.
12369 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
12370 (debug): Now only active if > 0 rather than if != 0.
12371 (DEBUG_*): Update for the new meaning of `debug'.
12372 (print_partial_compiled_pattern): Add missing `succeed' case. Use
12373 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
12374 in `succeed_n', `jump_n' and `set_number_at'.
12375 (store_op1, store_op2, insert_op1, insert_op2)
12376 (at_begline_loc_p, at_endline_loc_p): Add prototype.
12377 (group_in_compile_stack): Move to after its arg's types are
12378 declared and add a prototype.
12379 (PATFETCH): Define in terms of PATFETCH_RAW.
12380 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
12381 (QUIT): Redefine as a nop except for NTemacs.
12382 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
12383 indentation of the greedy-op and shy-group code.
12384 (at_(beg|end)line_loc_p): Fix argument's types.
12385 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
12386 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
12387 (MATCHING_IN_FIRST_STRING): Remove.
12388 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
12389 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
12390 QUIT unconditionally.
12391
12392 2000-03-15 Gerd Moellmann <gerd@gnu.org>
12393
12394 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
12395 a sole completion.
12396
12397 * process.c (send_process): Add a hint that the function
12398 can call Lisp code to its comment.
12399
12400 * lread.c (load_dangerous_libraries): New variable.
12401 (Vbytecomp_version_regexp): New variable.
12402 (safe_to_load_p): New function.
12403 (Fload): Handle files not compiled with Emacs specially.
12404 (syms_of_lread): New Lisp variable load-dangerous-libraries.
12405
12406 2000-03-14 Gerd Moellmann <gerd@gnu.org>
12407
12408 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
12409
12410 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
12411 support functions only if HAVE_X11R6_XIM is defined.
12412 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
12413
12414 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
12415
12416 * xfns.c (X_I18N_INHIBITED): Don't define.
12417 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
12418 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12419
12420 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12421 (HAVE_X11R6_XIM): Define.
12422
12423 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12424
12425 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12426 If set, call XSynchronize.
12427
12428 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12429
12430 * regex.c: Declare a new type `re_char' used throughout the code
12431 for the string char type. It's `const unsigned char' to match the
12432 rest of Emacs. Consistently make sure all pointers to strings use
12433 it and make sure all pointers into the pattern use `unsigned char'.
12434 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
12435 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12436 code duplication.
12437
12438 * charset.h (GET_CHAR_AFTER_2): Remove.
12439 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12440
12441 2000-03-12 Ken Raeburn <raeburn@gnu.org>
12442
12443 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12444 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12445 of them try to use backquotes.
12446
12447 2000-03-12 Dave Love <fx@gnu.org>
12448
12449 * unexelf.c: Restore changes of 1999-10-19.
12450 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12451 fix its type and alignment; copy it from current process.
12452
12453 2000-03-12 Gerd Moellmann <gerd@gnu.org>
12454
12455 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12456 has been found. Fix bug not computing timer's predecessor.
12457
12458 * fileio.c (Fread_file_name): Handle case that DIR contains a
12459 file name.
12460
12461 * window.c (Fsave_window_excursion): Doc fix.
12462
12463 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
12464
12465 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12466
12467 * msdos.c (vga_installed): New function, code moved from
12468 dos_set_window_size.
12469 (Qbar, Qcursor_type, outside_cursor): New variables.
12470 (syms_of_msdos): Intern and staticpro them.
12471 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12472 shape used outside Emacs when called for the first time.
12473 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12474 cursor shape used outside Emacs.
12475 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12476 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12477 type has changed.
12478 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12479 parameters specify the cursor. Make qreverse a global
12480 variable (renamed to Qreverse).
12481
12482 2000-03-09 Gerd Moellmann <gerd@gnu.org>
12483
12484 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12485
12486 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12487
12488 This is a big redesign of failure-stack and register handling, prompted
12489 by bugs revealed when trying to add shy-groups. Overall, what happened
12490 is that loops are now structured a little differently, groups can be
12491 shy and the code is a little simpler.
12492
12493 * regex.h: Update the copyright.
12494 (RE_SHY_GROUPS): New value.
12495 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12496 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12497
12498 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12499 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12500 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12501 for (start|stop)_memory since they now only take one argument (the
12502 second has becomes unnecessary).
12503 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
12504 (print_compiled_pattern): Use %ld to printf long ints and flush to
12505 make debugging a little easier.
12506 (union fail_stack_elt): Make the integer unsigned.
12507 (struct fail_stack_type): Add a `frame' element.
12508 (INIT_FAIL_STACK): Init `frame' as well.
12509 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12510 (DEBUG_PUSH, DEBUG_POP): Remove.
12511 (NUM_REG_ITEMS): Remove.
12512 (NUM_NONREG_ITEMS): Adjust.
12513 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12514 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
12515 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
12516 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12517 New macros.
12518 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12519 address pushed is not the destination of the jump but the source
12520 of it instead.
12521 (NUM_FAILURE_ITEMS): Remove.
12522 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
12523 registers before the actual failure point). Don't hardcode any
12524 meaning for str==NULL anymore.
12525 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
12526 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12527 Remove.
12528 (REG_UNSET_VALUE): Use NULL (why not?).
12529 (compile_range): Remove declaration since it doesn't exist.
12530 (struct compile_stack_elt_t): Remove inner_group_offset.
12531 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12532 (regex_grow_registers): Remove dead code.
12533 (FIXUP_ALT_JUMP): New macro.
12534 (regex_compile): Add shy-groups Change loops to use
12535 on_failure_jump_smart&jump instead of
12536 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12537 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12538 variable to me). Use `jump' instead of `jump_past_alt' and don't
12539 bother with push_dummy_failure in alternatives since it is now
12540 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12541 emacs' for (re)allocating the stack.
12542 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12543 from loop when bufp->can_be_null rather than jumping to `done'.
12544 Avoid jumping backwards so as to ensure termination. Use
12545 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12546 backreferences. Remove dead code in handling of `anychar'.
12547 (skip_noops, mutually_exclusive_p): New functions taken from the
12548 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12549 improve mutually_exclusive_p to handle ".+\n".
12550 (lowest_active_reg, highest_active_reg)
12551 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
12552 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12553 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12554 variables. Push register (in `start_memory') on the stack rather
12555 than storing it in old_reg(start|end). Remove the cycle detection
12556 from `stop_memory', replaced by the use of on_failure_jump_loop
12557 for greedy loops. Add code for the new on_failure_jump_<foo>.
12558 Remove ad-hoc code in `on_failure_jump' to push more registers in
12559 the case of a loop. Take out code from `maybe_pop_jump' into
12560 separate functions and adapt it to the semantics of
12561 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12562 and push_dummy_failure. Remove dummy_failure handling and
12563 handling of `failures to jump to on_failure_jump' (this last one
12564 was already dead code, it seems).
12565 (group_match_null_string_p, alt_match_null_string_p)
12566 (common_op_match_null_string_p): Remove.
12567
12568 2000-03-08 Dave Love <fx@gnu.org>
12569
12570 * config.in: Don't depend on __STDC__ for volatile.
12571 Add POINTER_TYPE, PTR, PROTOTYPES.
12572
12573 * hftctl.c, strftime.c: Use PROTOTYPES.
12574 * eval.c (find_handler_clause): Likewise.
12575
12576 * mem-limits.h: Use POINTER_TYPE.
12577
12578 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12579 (memory_warnings): Declare using POINTER_TYPE.
12580
12581 2000-03-08 Gerd Moellmann <gerd@gnu.org>
12582
12583 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12584
12585 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
12586
12587 * xfns.c: Remove obsolete code in #if 0.
12588 (Fx_focus_frame): New function.
12589
12590 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12591
12592 * coding.c (coding_category_name): Add coding-category-utf-8,
12593 coding-category-utf-16-be, coding-category-utf-16-le.
12594 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12595 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12596 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12597 (detect_coding_utf_8): New function.
12598 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12599 UTF_16_LOW_SURROGATE_P): New macros.
12600 (detect_coding_utf_16): New function
12601 (detect_coding_mask): When priorities are specified, skip any
12602 categories that have `nil' coding-system. Fix bug of returning
12603 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12604 returns a mask not set in PRIORITIES.
12605 (detect_eol_type_in_2_octet_form): New function.
12606 (detect_eol): selects detect_eol_type_XXX to call according to
12607 cooding->category_idx.
12608 (detect_coding_system): Remove `nil' coding-system in the result.
12609 (Fupdate_coding_systems_internal): Update all coding-categories.
12610
12611 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12612 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12613 New macros.
12614 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12615 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12616 (CODING_CATEGORY_IDX_UTF_16_LE)
12617 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12618 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
12619 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12620 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12621
12622 2000-03-07 Gerd Moellmann <gerd@gnu.org>
12623
12624 * doc.c (Fdocumentation_property): If value is not a string,
12625 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12626
12627 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12628 close the display with XtCloseDisplay. This caused a bus error
12629 on OpenWindows.
12630
12631 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12632 complete but not unique.
12633
12634 2000-03-06 Gerd Moellmann <gerd@gnu.org>
12635
12636 * process.c (send_process): Remove local variable `procname' that
12637 might become invalid when a GC happens. Instead, access the
12638 process name slot directly.
12639
12640 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12641 orig_height if set.
12642
12643 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12644 orig_height if set.
12645
12646 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12647
12648 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12649 glyph matrices have been freed.
12650
12651 2000-03-05 Gerd Moellmann <gerd@gnu.org>
12652
12653 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
12654 (bootstrap-temacs): Set LC_ALL to C like for temacs.
12655
12656 * xfns.c (QCdata): Moved to xdisp.c.
12657
12658 * xdisp.c (QCdata): Moved here from xfns.c.
12659 (syms_of_xdisp): Initialize QCdata.
12660
12661 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12662
12663 * window.c (coordinates_in_window): Use
12664 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12665 FRAME_INTERNAL_BORDER_WIDTH.
12666
12667 * xdisp.c (try_window_id): Recompute unchanged information if
12668 it is obviously invalid.
12669
12670 * xterm.c (x_term_init): Create a colormap if not using the
12671 default visual.
12672
12673 * xterm.h (select_visual): Change prototype.
12674
12675 * xfns.c (select_visual): Rewritten. Recognize user-specified
12676 visual classes.
12677 (visual_classes): New variable.
12678
12679 2000-03-04 Gerd Moellmann <gerd@gnu.org>
12680
12681 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12682 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12683 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
12684 (x_decode_color): Don't handle allocation of white and black specially.
12685 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12686 XtNcolormap resources.
12687 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12688 (Fx_create_frame): Initialize color members of x_output structure.
12689 (xpm_load): Pass colormap to XPM lib.
12690
12691 * xfaces.c (x_free_colors): Access colormap of frame using
12692 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12693 when default colormap is used.
12694
12695 * xterm.c (x_term_init): Set Colormap member of x_display_info
12696 structure. Copy colormap if resource `privateColormap' is
12697 specified (PseudoColor only).
12698 (x_setup_relief_color): Access colormap of frame using
12699 FRAME_X_COLORMAP.
12700
12701 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12702 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12703
12704 2000-03-04 Jason Rumney <jasonr@gnu.org>
12705
12706 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12707 other non-platform-specific equivalents.
12708 [WINDOWSNT]: Include w32term.h, fontset.h and define X
12709 specific functions and macros as their w32 equivalents where
12710 non-platform-specifics are not available.
12711 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12712 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12713 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12714 (frame_update_line_height): Use macros to access f->output_data.
12715 (defined_color): Remove FIXME comments; fixed.
12716 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12717 into #ifdef blocks. Add WINDOWSNT blocks.
12718 (Fx_list_fonts): Use macros for accessing font data.
12719 (set_lface_from_font_name): Different default fonts for X and
12720 WINDOWSNT.
12721 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12722 scalable for backward compatibility.
12723 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
12724 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12725
12726 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
12727 syms_of_w32faces.
12728
12729 * makefile.nt (w32faces.obj): Remove.
12730 (xfaces.obj): Add.
12731
12732 2000-03-03 Jason Rumney <jasonr@gnu.org>
12733
12734 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12735 correct parameters.
12736
12737 2000-03-03 Ken Raeburn <raeburn@gnu.org>
12738
12739 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12740 standard ELF definitions here if the system header does not.
12741
12742 2000-03-03 Gerd Moellmann <gerd@gnu.org>
12743
12744 * xterm.c (PER_CHAR_METRIC): Removed.
12745 (x_per_char_metric_1, x_default_char): New functions.
12746 (x_per_char_metric): If font's default char is invalid, return
12747 metrics of a suitably chosen usable default char.
12748 (x_draw_glyph_string_foreground): If font has an invalid default
12749 char, replace occurrences of unprintable chars with a suitably
12750 chosen usable default char.
12751
12752 2000-03-02 Gerd Moellmann <gerd@gnu.org>
12753
12754 * xterm.c (note_mouse_highlight): Return quickly if frame's
12755 glyph matrices have been freed.
12756
12757 * dispnew.c (free_glyphs): Block input while freeing matrices.
12758
12759 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12760
12761 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12762 Use x_free_colors.
12763
12764 * dispextern.h (x_free_colors): Add prototype.
12765
12766 * xfaces.c (x_free_colors): New function.
12767 (unload_color, free_face_colors): Use it.
12768
12769 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12770
12771 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12772
12773 * window.c [MSDOS]: Include msdos.h.
12774
12775 2000-03-02 Dave Love <fx@gnu.org>
12776
12777 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12778
12779 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12780 set C_OPTIMIZE_SWITCH for gcc.
12781
12782 2000-03-02 Kenichi Handa <handa@etl.go.jp>
12783
12784 * coding.c (coding_save_composition): Be sure to allocate
12785 composition data area in coding even if there's no composition in
12786 the current run.
12787
12788 2000-03-01 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32term.c: Equivalent changes to those made to xterm.c on
12791 2000-02-25 and 2000-02-24.
12792
12793 * w32fns.c: Equivalent changes to those made to xfns.c on
12794 2000-02-25 and 2000-02-21.
12795
12796 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12797 correct line-end convention is followed.
12798
12799 * w32menu.c [HAVE_BOXES]: Remove #undef.
12800 (single_keymap_panes): Remove code for simulating checkmarks.
12801 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12802 Remove code for drawing simulated checkmarks.
12803 (w32_menu_show): make unibyte help string correctly.
12804 (add_menu_item): draw standard Windows checkmarks. Draw radio
12805 buttons as radio buttons if possible.
12806
12807 2000-03-01 Gerd Moellmann <gerd@gnu.org>
12808
12809 * sysdep.c (start_of_text): Don't define this function for NetBSD
12810 with ELF.
12811
12812 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
12813 Don't define.
12814 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12815 (LINKER): Don't undef if __NetBSD__ is defined.
12816
12817 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12818
12819 * fileio.c [__NetBSD__]: Define `unix'.
12820
12821 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12822
12823 2000-02-29 Gerd Moellmann <gerd@gnu.org>
12824
12825 * atimer.c (start_atimer): Don't abort when timers are stopped.
12826 (append_atimer_lists): New function.
12827 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12828 arbitrary lists of stopped and running atimers.
12829
12830 * atimer.c (cancel_atimer): Handle canceling an atimer when
12831 some timers are stopped.
12832
12833 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12834 after canceling it.
12835
12836 * fns.c (maybe_resize_hash_table): Handle case of new size
12837 coming out as being the same as old size.
12838
12839 2000-02-27 Jason Rumney <jasonr@gnu.org>
12840
12841 * makefile.nt: Add atimer.h to dependencies.
12842 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12843 * w32console.c: Only disable window system features for dispextern.h
12844 (initialize_w32_display): Build a display info for the console.
12845 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12846 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12847 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12848 as 2 button mice.
12849 * w32gui.h (struct W32FontStruct): Revert last change after change
12850 to xdisp.c.
12851 * w32menu.c (single_submenu): Set up help string.
12852 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12853 (w32_dialog_show): Set up help string.
12854 * w32term.c (w32_display_info_for_display): Remove unused function.
12855 (w32_draw_bitmap): Use pre-built bitmaps.
12856 (w32_initialize_display_info): New function to initialize parts of
12857 display info that are common to both GUI and console frames.
12858 (w32_term_init): Use w32_initialize_display_info. Do not set
12859 Vw32_num_mouse_buttons here, as it is not called for console
12860 frames. Build bitmaps for indicating truncated lines etc.
12861 (x_delete_display): Destroy pre-built bitmaps.
12862 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12863 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12864
12865 2000-02-27 Dave Love <fx@gnu.org>
12866
12867 * lisp.h: Add a bunch of prototypes.
12868
12869 2000-02-26 Kenichi Handa <handa@etl.go.jp>
12870
12871 * keyboard.c (read_char): Set `usec' correctly.
12872
12873 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12874
12875 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12876 `lambda', set reg[RRR] to the map index.
12877 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12878 reg[RRR] to 0. Otherwise, set it to -1.
12879
12880 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12881
12882 * emacs.c (main): Remove code snippet commented out with `//'.
12883
12884 2000-02-25 Richard M. Stallman <rms@gnu.org>
12885
12886 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12887 and contains a `:', prepend `/:'.
12888
12889 * window.c (select_window_1): If selected_window is nil,
12890 don't "swap out" the buffer's point.
12891 (Fset_window_configuration): Set selected_window to nil
12892 before calling Fselect_window.
12893 (unshow_buffer): Don't set point in buffer from window's point
12894 if another more recently selected window also shows the buffer.
12895
12896 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12897
12898 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12899
12900 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12901 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
12902 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12903 New variables.
12904 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12905 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12906 (hide_busy_cursor): New functions.
12907 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12908
12909 * minibuf.c (read_minibuf): Cancel busy-cursor.
12910
12911 * keyboard.c (command_loop_1): Call start_busy_cursor before
12912 Fcommand_execute and cancel_busy_cursor after it.
12913 (timer_check): Remove busy-cursor code.
12914 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12915 cursor timer.
12916
12917 * process.c (wait_reading_process_input): Remove busy-cursor code.
12918
12919 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12920 Fx_hide_busy_cursor.
12921
12922 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12923 Remove prototyoes.
12924 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12925
12926 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12927
12928 * xterm.c (XTread_socket): Remove busy-cursor code.
12929
12930 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12931 (build_frame_matrix_from_leaf_window): Put code handling
12932 glyph row's not being a slice of a frame row in #if 0.
12933 (sync_window_with_frame_matrix_rows): New function.
12934 (frame_row_to_window): New function.
12935 (mirror_line_dance): Handle copies between windows.
12936
12937 * lread.c (Fload): Use `xfree' instead of `free'.
12938 (init_obarray): Use `xmalloc' instead of `malloc'.
12939
12940 * window.c (Fset_window_buffer): Set WINDOW to the window
12941 after decoding.
12942 (coordinates_in_window): Take frame's internal border width
12943 into account.
12944
12945 2000-02-24 Gerd Moellmann <gerd@gnu.org>
12946
12947 * xterm.c (x_display_and_set_cursor): Display cursor of
12948 non-selected windows depending on the setting of
12949 cursor_in_non_selected_windows.
12950
12951 * xdisp.c (cursor_in_non_selected_windows): New variable.
12952 (syms_of_xdisp): DEFVAR_BOOL it.
12953
12954 2000-02-23 Gerd Moellmann <gerd@gnu.org>
12955
12956 * data.c (Fstring_to_number): If number is greater than what
12957 fits into an integer, return a float.
12958
12959 * eval.c (specbind): Remove references to
12960 keyword_symbols_constant_flag.
12961
12962 * data.c (keyword_symbols_constant_flag): Removed.
12963 (Fmakunbound, set_internal, syms_of_data): Remove references to
12964 keyword_symbols_constant_flag.
12965
12966 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12967
12968 2000-02-23 Kenichi Handa <handa@etl.go.jp>
12969
12970 * syntax.c (multibyte_syntax_as_symbol): New variable.
12971 (syms_of_syntax): Declare it as a Lisp variable.
12972 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12973 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12974 nonzero, treat all multibyte characters as symbol.
12975 (init_syntax_once): Give syntax `word' to all multibyte characters.
12976
12977 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12978
12979 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
12980 a deleted frame.
12981
12982 2000-02-21 Gerd Moellmann <gerd@gnu.org>
12983
12984 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12985
12986 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12987 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12988
12989 2000-02-21 Dave Love <fx@gnu.org>
12990
12991 * frame.c (Vmouse_position_function): New variable.
12992 (Fmouse_position): Use it.
12993 (syms_of_frame): Install it.
12994
12995 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12996
12997 2000-02-20 Gerd Moellmann <gerd@gnu.org>
12998
12999 * fileio.c (Finsert_file_contents): Unbind the binding of
13000 standard-output done by temp_output_buffer_setup.
13001
13002 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13003 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13004 (specbind, unbind_to): Handle most common case of non-constant
13005 symbol with trivial value specially.
13006
13007 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13008
13009 2000-02-20 Richard M. Stallman <rms@gnu.org>
13010
13011 * data.c (Fmake_variable_buffer_local): Doc fix.
13012 Init found_for_buffer to 0.
13013 (Fmake_variable_frame_local): If the variable has already
13014 been buffer-local, set the check_frame field.
13015
13016 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13017
13018 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13019 produced for CODING_MODE_LAST_BLOCK requires.
13020
13021 2000-02-18 Dave Love <fx@gnu.org>
13022
13023 * keyboard.c (echo_keystrokes): Remove declaration.
13024 (Vecho_keystrokes) New variable.
13025 (read_char, record_menu_key, read_key_sequence): Use it to allow
13026 use of float value.
13027 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13028
13029 * lread.c: Undef feature selection macros before defining.
13030
13031 2000-02-18 Gerd Moellmann <gerd@gnu.org>
13032
13033 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13034 for symbols other than the symbol in question.
13035
13036 2000-02-17 Dave Love <fx@gnu.org>
13037
13038 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13039
13040 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13041
13042 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13043
13044 * alloc.c (enum mem_type): Compile unconditionally.
13045
13046 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13047
13048 * xfaces.c (tty_defined_color): Don't return faulire indication
13049 for unspecified-fg and unspecified-bg pseudo-colors.
13050
13051 2000-02-17 Gerd Moellmann <gerd@gnu.org>
13052
13053 * alloc.c (mark_object): Don't mark symbol names in pure space.
13054 (gc_sweep): Don't unmark symbol names in pure space.
13055
13056 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13057 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13058 [GC_MARK_STACK]: New defines.
13059 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
13060 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13061
13062 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13063
13064 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13065 allocate_buffer instead of xmalloc.
13066
13067 * alloc.c (toplevel): Include setjmp.h.
13068 (PURE_POINTER_P): New define.
13069 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13070 (Vdead) [GC_MARK_STACK]: New variable.
13071 (lisp_malloc): Add parameter TYPE, call mem_insert if
13072 GC_MARK_STACK is defined.
13073 (allocate_buffer): New function.
13074 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
13075 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13076 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13077 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13078 (MEM_NIL) [GC_MARK_STACK]: New define.
13079 (struct mem_node) [GC_MARK_STACK]: New structure.
13080 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13081 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13082 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13083 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13084 (mark_stack) [GC_MARK_STACK]: New functions.
13085 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13086 (clear_marks): Removed.
13087 (gc_sweep): Set free conses' car, free floats' type, free
13088 symbols' function to Vdead. Use lisp_free to free buffers.
13089 (init_alloc_once): Initialize Vdead.
13090 (survives_gc_p): Return non-zero for pure objects.
13091
13092 * alloc.c: Add comments throughout the file.
13093
13094 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13095 that unblocks alarms.
13096
13097 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13098 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13099 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13100
13101 * frame.c (make_frame): Set frame initiallly to `garbaged'.
13102
13103 2000-02-17 Kenichi Handa <handa@etl.go.jp>
13104
13105 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13106 avoid infinite error signaling. Allocate sufficient memory for
13107 eol_str in the case that eoltype is Lisp_Int.
13108
13109 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13110
13111 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13112 depends on the previous behavior.
13113
13114 2000-02-16 Gerd Moellmann <gerd@gnu.org>
13115
13116 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13117
13118 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13119
13120 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13121
13122 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
13123 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
13124 write(2).
13125
13126 2000-02-15 Richard M. Stallman <rms@gnu.org>
13127
13128 * data.c (set_internal): Don't make variable buffer-local
13129 if within a let-binding for the same buffer.
13130 (let_shadows_buffer_binding_p): New function.
13131
13132 * eval.c (specbind): For buffer-local value,
13133 record the current buffer also.
13134 (unbind_to): Cope with that change.
13135
13136 2000-02-15 Gerd Moellmann <gerd@gnu.org>
13137
13138 * window.c (Fsave_window_excursion): Doc fix.
13139
13140 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13141
13142 * syntax.c (back_comment): Make sure we only consider comment-starters
13143 of the relevant style and return -1 in case of a failure to find the
13144 beginning of the comment.
13145 (Fforward_comment): If back_comment fails, go back to the position just
13146 after the comment-end.
13147 (scan_lists): Add comment describing a very minor bug.
13148
13149 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13150
13151 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13152 `completion-regexp-list' in the docstring.
13153
13154 2000-02-14 Dave Love <fx@gnu.org>
13155
13156 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13157
13158 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13159
13160 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13161 to Emacs' syntax. Also fix the comment about set/not-set meanings
13162 since Emacs syntax is not the value 0 any more.
13163 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13164 since it's now part of RE_SYNTAX_EMACS.
13165
13166 2000-02-12 Dave Love <fx@gnu.org>
13167
13168 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
13169
13170 2000-02-12 Gerd Moellmann <gerd@gnu.org>
13171
13172 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13173
13174 2000-02-12 Dave Love <fx@gnu.org>
13175
13176 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
13177
13178 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
13179 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
13180 * s/hpux.h: Don't define HAVE_VFORK.
13181
13182 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
13183
13184 * s/nextstep.h: Don't define HAVE_ALLOCA.
13185
13186 * config.in: Add vfork bits.
13187
13188 2000-02-12 Gerd Moellmann <gerd@gnu.org>
13189
13190 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13191 unwind function to undo the effect of stopping atimers.
13192
13193 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
13194
13195 * atimer.c (stopped_atimers): New variable.
13196 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13197 New functions.
13198
13199 * atimer.h (stop_other_atimers, run_all_atimers)
13200 (unwind_stop_other_atimers): Add function prototypes.
13201
13202 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13203
13204 2000-02-11 Ken Raeburn <raeburn@gnu.org>
13205
13206 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13207 library may depend on jpeg.
13208 (atimer.o): Depends on atimer.c.
13209
13210 2000-02-11 Kenichi Handa <handa@etl.go.jp>
13211
13212 * insdel.c (del_range_1): Call update_compositions.
13213 (del_range_both): Call update_compositions just once..
13214
13215 2000-02-10 Dave Love <fx@gnu.org>
13216
13217 * xfns.c (create_frame_xic): Fix initialization of automatic
13218 aggregates for pcc.
13219
13220 2000-02-09 Kenichi Handa <handa@etl.go.jp>
13221
13222 * ccl.c (CCL_MAKE_CHAR): New macro.
13223 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13224 registers by CCL_MAKE_CHAR before calling translate_char.
13225 <CCL_TranslateCharacterConstTbl> Likewise.
13226
13227 2000-02-08 Dave Love <fx@gnu.org>
13228
13229 * lread.c (__EXTENSIONS__): Define.
13230
13231 2000-02-08 Gerd Moellmann <gerd@gnu.org>
13232
13233 * puresize.h (BASE_PURESIZE): Increase to 650000.
13234
13235 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13236
13237 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13238 the help message.
13239
13240 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13241
13242 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13243 md, mh, mb, mr, and me to the fake termcap entry.
13244
13245 2000-02-06 Ken Raeburn <raeburn@gnu.org>
13246
13247 * sound.c (sound_cleanup): Don't call device close routine if the
13248 function pointer is null.
13249
13250 2000-02-06 Andrew Innes <andrewi@gnu.org>
13251
13252 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13253 around image definitions and prototypes.
13254 (gamma_correct) [WINDOWSNT]: New prototype.
13255
13256 * w32term.c (x_make_frame_visible): Replace call to
13257 input_poll_signal with poll_for_input.
13258
13259 * window.c [WINDOWSNT]: Include w32term.h.
13260
13261 * xdisp.c [WINDOWSNT]: Include w32term.h.
13262
13263 * makefile.nt: Add dependencies on w32gui.h.
13264 (OBJ1): Include atimer.obj.
13265 ($(BLD)\atimer.obj): New dependency rule.
13266
13267 * w32.c (sigmask): New function (does nothing).
13268 (sigunblock): Ditto.
13269
13270 * frame.c [WINDOWSNT]: Include w32term.h.
13271
13272 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13273
13274 * lread.c (syms_of_lread): Fix literal newlines.
13275
13276 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13277 the string constant limit (2048 bytes) in MSVC.
13278 (main): Ditto.
13279
13280 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13281
13282 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
13283 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13284 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13285 dispatch the event.
13286
13287 2000-02-04 Dave Love <fx@gnu.org>
13288
13289 * fileio.c: Remove some unused vars.
13290 (_GNU_SOURCE): Define (for euidaccess).
13291
13292 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13293
13294 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13295 gcpro1, gcpro2.
13296 (read_minibuf): Deal with allow_props correctly.
13297
13298 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13299
13300 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13301
13302 2000-02-03 Ken Raeburn <raeburn@gnu.org>
13303
13304 * search.c (compile_pattern): If a cache entry has a nil regexp,
13305 fill in that entry instead of clobbering a previously cached
13306 string regexp.
13307
13308 2000-02-02 Ken Raeburn <raeburn@gnu.org>
13309
13310 * puresize.h (BASE_PURESIZE): Increase to 610000.
13311
13312 2000-02-02 Gerd Moellmann <gerd@gnu.org>
13313
13314 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13315 can GC.
13316
13317 2000-02-02 Kenichi Handa <handa@etl.go.jp>
13318
13319 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13320 instead of incrementing ic directly.
13321 <CCL_WriteExprConst> Likewise.
13322 <ccl_set_expr>: Set ic to jump_address.
13323
13324 * fileio.c (e_write): Fix the handling of
13325 CODING_FINISH_INSUFFICIENT_SRC.
13326
13327 2000-02-01 Dave Love <fx@gnu.org>
13328
13329 * editfns.c (Fpropertize): Doc fix.
13330
13331 * process.c (Fstart_process): Doc fix.
13332
13333 * eval.c: Fix various doc strings not to duplicate information
13334 from help-manyarg-func-alist.
13335
13336 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
13337
13338 * doc.c (Vhelp_manyarg_func_alist): New variable.
13339 (Fdocumentation): Use it.
13340 (syms_of_doc): Define it.
13341
13342 2000-01-31 Gerd Moellmann <gerd@gnu.org>
13343
13344 * xterm.c (xim_open_dpy): Remove unused local variable.
13345
13346 * emacs.c (USAGE): Use term `display options' instead of `X options'.
13347
13348 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
13349 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13350
13351 * fns.c (sweep_weak_table): New function.
13352 (sweep_weak_hash_tables): Use it. Keep on marking until there
13353 is no more change.
13354
13355 2000-01-30 Gerd Moellmann <gerd@gnu.org>
13356
13357 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
13358 that XTread_socket does not crash by trying to call XNoOp on a
13359 closed display.
13360
13361 2000-01-30 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13364 Change selected_frame to SELECTED_FRAME ().
13365 (w32_console_mouse_position): Remove #ifndef MULE from around
13366 `insist' parameter.
13367
13368 * makefile.nt: Remove dosfns.obj.
13369
13370 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
13371
13372 * w32fns.c (w32_defined_color): Check for valid frame before
13373 applying gamma correction. Eliminate dependency on frame elsewhere.
13374 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
13375 (w32_to_x_font): Use resx and resy not height_in and width_in.
13376 (x_to_w32_font): Doc fix.
13377 (xlfd_strip_height): New function to strip and return font height.
13378 (w32_font_match): Compare height separately from rest of xlfd
13379 spec, using xlfd_strip_height.
13380
13381 * w32term.c (w32_term_init): Swap resx and height_in, resy and
13382 width_in. Use w32_defined_color in place of defined_color.
13383
13384 * w32faces.c: Merge more of DOS and X specifics in preparation for
13385 merge with xfaces.c.
13386 (defined_color): Remove FIXME comment.
13387 (tty_color_name): Provide w32-specific function.
13388 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
13389
13390 * w32console.c (turn_on_face, turn_off_face): Removed.
13391 (w32_face_attributes): New function.
13392 (Global_variables): Reduce scope where possible.
13393 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
13394 fill attribute.
13395 (hl_mode): Don't modify text attributes.
13396 (write_glyphs): Don't do anything if len <= 0. Use
13397 w32_face_attributes to get attributes for drawing. Write
13398 terminating codes using char_attr_normal.
13399 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
13400 (update_begin, update_end): Likewise.
13401 (vga_stdcolor_name): New function.
13402 (initialize_w32_display): Remove char_attr_reverse and char_attr.
13403 (Fset_screen_color): Remove char_attr_reverse.
13404
13405 2000-01-29 Gerd Moellmann <gerd@gnu.org>
13406
13407 * xfns.c (xic_set_preeditarea): Take window parameter and
13408 window-relative pixel-positions.
13409
13410 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
13411 is its frame's selected window.
13412 (xim_instantiate_callback): Likewise.
13413
13414 * xfns.c (x_create_im): Removed.
13415 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
13416 (supported_xim_styles): Renamed from supported_styles.
13417 (best_xim_style): Renamed from best_style.
13418 (create_frame_xic): Renamed from xic_create_frame.
13419 (free_frame_xic): Renamed from xic_destroy_frame.
13420
13421 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13422
13423 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13424 our frames, call XFilterEvent with 2nd parameter `None'.
13425 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13426 returning XBufferOverflow.
13427 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
13428 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13429 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13430 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13431 (xim_initialize, xim_close)
13432 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13433 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13434 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13435 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13436
13437 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13438 and `xim_styles'.
13439 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13440 `xic_style' and `xic_xfs'.
13441 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13442 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13443 (FRAME_XIM): Removed.
13444
13445 * xfns.c (supported_styles): New variable.
13446 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13447 (xic_create_xfontset, best_style, xic_create_frame)
13448 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13449 (xic_set_xfontset): New functions.
13450
13451 2000-01-28 Dave Love <fx@gnu.org>
13452
13453 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13454
13455 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13456
13457 2000-01-28 Gerd Moellmann <gerd@gnu.org>
13458
13459 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13460 for *scratch* if it already existed.
13461
13462 * emacs.c (USAGE): New macro.
13463 (main): Use it to display usage information.
13464
13465 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13466
13467 Support for the menu-help feature:
13468
13469 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
13470
13471 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13472 part of the line to the termscript file.
13473 (IT_clear_to_end): Clear the entire line, not just its beginning.
13474 (menu_help_message, prev_menu_help_message): New variables.
13475 (IT_menu_make_room): Make room for the help_text member.
13476 (IT_menu_display): New argument disp_help; all callers changed.
13477 If disp_help is non-zero, store the help text of the active menu
13478 item in menu_help_message.
13479 (XMenuAddPane): Initialize the help_text member to NULL.
13480 (XMenuAddSelection): New argument help_text. Store it in the
13481 XMenu structure.
13482 (XMenuActivate): New argument help_callback. If the value of
13483 menu_help_message has changed since the last time, display the
13484 menu help message text while waiting for the mouse to move. Clear
13485 the echo area before exiting.
13486 (XMenuDestroy): Free the help_text member.
13487
13488 2000-01-27 Gerd Moellmann <gerd@gnu.org>
13489
13490 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13491 XMenuAddSelection. Pass help callback to XMenuActivate.
13492 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13493
13494 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13495
13496 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13497 and EMACS_SET_USECS.
13498
13499 2000-01-26 Dave Love <fx@gnu.org>
13500
13501 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13502
13503 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13504 an error may be signalled.
13505
13506 2000-01-26 Gerd Moellmann <gerd@gnu.org>
13507
13508 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13509 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13510
13511 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13512
13513 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13514
13515 * charset.c (Fstring): If there is a multibyte char among
13516 the args, always return a multibyte string.
13517
13518 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13519
13520 * sysdep.c (sys_select): Turn atimers off and on instead of
13521 recording and restoring old alarm handler
13522
13523 * process.c (toplevel): Include atimer.h.
13524 (create_process_1): Rewritten.
13525 (create_process): Use atimers instead of alarm.
13526 (wait_reading_process_input) [hpux]: Turn atimers off instead
13527 of turning off SIGALRM.
13528 (wait_reading_process_input): Turn off atimers instead off
13529 calling stop_polling.
13530
13531 * emacs.c (main): Call init_atimer.
13532
13533 * keyboard.c (toplevel): Include systime.h and atimer.h.
13534 (polling_for_input): Removed because unused.
13535 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13536 (poll_timer): New variable.
13537 (poll_for_input, poll_for_input_1): New functions.
13538 (start_polling, stop_polling): Rewritten.
13539
13540 * keyboard.h (polling_for_input): Removed.
13541
13542 * atimer.h, atimer.c: New files.
13543
13544 * Makefile.in (obj): Add atimer.o.
13545 (atimer.o): New target.
13546
13547 * blockinput.h (pending_atimers): Add extern declaration.
13548 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13549
13550 * lisp.h (popup_activated_flag): Add extern declaration.
13551
13552 * xmenu.c (popup_activated_flag): Make externally visible.
13553 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
13554 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13555
13556 * xterm.c (toplevel): Include atimer.h.
13557 (toolkit_scroll_bar_interaction): New variable.
13558 (Fxt_process_timeouts): Removed.
13559 (x_process_timeouts): New function.
13560 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13561 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13562 (x_make_frame_visible): Call poll_for_input_1 instead of
13563 input_poll_signal. Don't call alarm.
13564 (x_initialize): Install timer calling x_process_timeouts.
13565
13566 2000-01-24 Dave Love <fx@gnu.org>
13567
13568 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
13569 Don't use -cckr -- apparently not now necessary.
13570
13571 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13572
13573 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13574 screen boundary.
13575
13576 2000-01-23 Jason Rumney <jasonr@gnu.org>
13577
13578 * w32fns.c (w32_defined_color): Apply gamma correction before
13579 trying to map to the palette.
13580 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13581 to w32_clear_rect.
13582
13583 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13584 here. Callers changed to always pass real device context.
13585 (w32_draw_bitmap): Likewise.
13586 (w32_get_glyph_overhangs): Likewise.
13587 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
13588 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13589 pfnSetScrollInfo and SetScrollRange.
13590 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13591 back into MULE characters after decoding them.
13592 (x_get_glyph_face_and_encoding): Likewise.
13593 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13594 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13595 (x_produce_glyphs): Calculate per char metrics for a character
13596 that we know exists in default font when font_not_found_p is true.
13597
13598 2000-01-22 Jason Rumney <jasonr@gnu.org>
13599
13600 * makefile.nt (intervals.obj, composite.obj): New modules.
13601 (composite.h): Added as dependency where appropriate.
13602
13603 * w32gui.h (XGCValue): New struct for emulating X GCs.
13604
13605 * w32term.h (XCharStruct): New struct for emulating X.
13606
13607 * w32console.c (turn_on_face, turn_off_face): New functions.
13608 (change_line_highlight): New prototype for new redisplay.
13609 (write_glyphs): Support multibyte text. Support faces.
13610
13611 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
13612
13613 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13614 throughout. struct frame * in place of FRAME_PTR.
13615 Skeleton support for images, toolbars, tooltips from xfns.c.
13616 (Fx_create_frame): Use system default for default scroll bar width.
13617 (w32_get_arg): Renamed from x_get_arg.
13618 (Fx_file_dialog): New function.
13619 (w32_list_fonts): Check cache before asking system.
13620 (Vw32_enable_synthesized_fonts): New variable.
13621 (Vw32_enable_italics): Obsolete, removed.
13622
13623 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13624 Use SELECTED_FRAME macro.
13625
13626 * w32menu.c: Add skeleton support for help strings on menus.
13627 (add_menu_item): Native checkbox and radio support added, but not
13628 yet enabled due to bugs.
13629 (push_menu_item): Add parameters type, selection and help.
13630 Callers updated.
13631 Formatting changes to reduce unnecessary diffs with xmenu.c.
13632
13633 * w32select.c (Fw32_set_clipboard_data): Update call to
13634 find_charset_in_str.
13635
13636 * w32term.c: Complete rewrite for new redisplay based on new
13637 xterm.c with necessary sections merged back in from old w32term.c.
13638
13639 2000-01-21 Richard M. Stallman <rms@gnu.org>
13640
13641 * data.c (set_internal): Further fix in same criterion.
13642
13643 2000-01-20 Richard M. Stallman <rms@gnu.org>
13644
13645 * data.c (set_internal): Fix the criteria for whether
13646 to swap out the old cached binding.
13647
13648 2000-01-19 Dave Love <fx@gnu.org>
13649
13650 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13651
13652 2000-01-18 Kenichi Handa <handa@etl.go.jp>
13653
13654 * regex.c (re_compile_fastmap): While checking a range table for
13655 `charset', skip flag bits for a character class correctly.
13656
13657 2000-01-17 Gerd Moellmann <gerd@gnu.org>
13658
13659 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13660
13661 * xfns.c (x_window): Call lw_create_widget with new parameter list.
13662
13663 * widget.c (EmacsFrameSetCharSize): Change size of children first
13664 because of problems with main window geometry management under Lesstif.
13665
13666 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13667 MENU_ITEMS_ITEM_.*.
13668 (MENU_ITEMS_ITEM_HELP): New enumerator.
13669 (push_menu_item): Add parameter HELP. Record help in menu_items.
13670 (single_menu_item, single_submenu, list_of_items): Call
13671 push_menu_item with new parameter.
13672 (single_submenu): Set help string in widget value.
13673 (menu_highlight_callback): New function.
13674 (set_frame_menubar): Call lw_create_widget with new
13675 parameter list.
13676 (xmenu_show, xdialog_show): Ditto.
13677
13678 2000-01-13 Gerd Moellmann <gerd@gnu.org>
13679
13680 * sound.c (Fplay_sound): Improve doc string.
13681
13682 2000-01-11 Richard M. Stallman <rms@gnu.org>
13683
13684 * lisp.h (set_internal): Enter the new arg.
13685
13686 * eval.c (specbind): Record buffer-local variables specially,
13687 indicating which buffer's binding was saved.
13688 (unbind_to): Restore buffer-local variables specially
13689 in the proper buffer.
13690
13691 * data.c (set_internal): New arg BUF.
13692
13693 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13694 * data.c (Fset): Pass new arg to set_internal.
13695 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
13696
13697 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13698
13699 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
13700
13701 2000-01-11 Richard M. Stallman <rms@gnu.org>
13702
13703 * minibuf.c (Ftry_completion): Doc fix.
13704
13705 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13706
13707 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13708 vector, too.
13709
13710 2000-01-11 Andreas Schwab <schwab@suse.de>
13711
13712 * coding.c (code_convert_region): Initialize total_skip.
13713
13714 2000-01-08 Dave Love <fx@gnu.org>
13715
13716 * eval.c (Fuser_variable_p): Check customizability too.
13717
13718 2000-01-07 Gerd Moellmann <gerd@gnu.org>
13719
13720 * minibuf.c (Fcompleting_read): Doc fix.
13721
13722 2000-01-05 Gerd Moellmann <gerd@gnu.org>
13723
13724 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13725 -L /usr/local/lib.
13726
13727 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13728 Check that input style is supported before trying to create an
13729 IC for it.
13730 (x_window): Call x_create_im.
13731
13732 2000-01-04 Gerd Moellmann <gerd@gnu.org>
13733
13734 * xfns.c (current_gif_memory_src): New variable.
13735 (gif_load): Record the address of the current memory source
13736 in current_gif_memory_src.
13737 (gif_read_from_memory): Use current_gif_memory_src.
13738
13739 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13740 macros statement form.
13741
13742 * sound.c (struct sound): Renamed from struct sound_file.
13743 (struct sound): Add members `data' and `header_size'.
13744 (enum sound_attr): Add SOUND_DATA.
13745 (current_sound, current_sound_device): Variables renamed from
13746 sound_file and sound_device.
13747 (parse_sound): Parse :data.
13748 (parse_sound): Handle sound data in strings.
13749 (find_sound_type): Function renamed from find_sound_file_type.
13750 (wav_init, au_init): Fail if sound's header_size is smaller than
13751 needed header size.
13752 (wav_play, au_play): Play sounds from string data.
13753
13754 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13755
13756 * lisp.h: Add prototype for allocate_string_data.
13757
13758 * alloc.c (Fgarbage_collect): Return number of live and free strings.
13759
13760 * alloc.c (mark_buffer): Remove code in #if 0.
13761 (gc_sweep): Ditto.
13762 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13763 (strings_consed): New variable.
13764 (allocate_string): Set it.
13765 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13766 (Fmemory_use_counts): Return strings_consed. Use Flist.
13767
13768 * alloc.c: General cleanup in comments etc. Remove conditional
13769 compilation for `standalone'.
13770
13771 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13772
13773 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13774 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13775 (DONT_COPY_FLAG): Removed.
13776 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13777 (struct sdata, struct sblock): New
13778 (struct string_block): Rewritten.
13779 (STRINGS_IN_STRING_BLOCK): New macro.
13780 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13781 (large_sblocks, string_blocks, string_free_list): New variables.
13782 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13783 (init_strings): Rewritten.
13784 (allocate_string, allocate_string_data, compact_small_strings)
13785 (free_large_strings, sweep_strings): New functions.
13786 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13787 (struct string_block_head, current_string_block)
13788 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13789 (STRING_PAD): Removed.
13790 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13791 (Fgarbage_collect): Don't set mark bit in large strings.
13792 (mark_object): Mark strings differently. Mark symbol names
13793 differently.
13794 (survives_gc_p): Test marked strings differently.
13795 (gc_sweep): Sweep strings differently, unmark strings in
13796 symbol names.
13797 (compact_strings): Removed.
13798
13799 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13800
13801 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13802 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13803
13804 2000-01-04 Kenichi Handa <handa@etl.go.jp>
13805
13806 * fileio.c (Finsert_file_contents): Signal error if visiting file
13807 in a non-empty buffer.
13808
13809 * term.c (encode_terminal_code): Fix the previous change.
13810
13811 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13812
13813 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13814 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13815
13816 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13817
13818 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13819
13820 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13821 need to test for MSDOS frames.
13822
13823 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13824
13825 * dosfns.c (unspecified_colors): Remove.
13826 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13827 unspecified_bg.
13828 (msdos_stdcolor_name): Return strings for unspecified fore- and
13829 back-ground colors.
13830
13831 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
13832 (syms_of_xfaces): Remove their staticpro's.
13833 (tty_color_name): Return Lisp strings for unspecified fore- and
13834 back-ground colors.
13835 (Finternal_set_lisp_face_attribute): Remove the special treatment
13836 for Qunspecified_{f,b}g.
13837 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
13838
13839 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13840
13841 * xdisp.c (reseat_at_next_visible_line_start): Position before
13842 newline only if ending up on a newline.
13843 (next_element_from_ellipsis): Return success. Handle case of
13844 displaying no ellipsis. Fix case of ellipsis defined in display table.
13845 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13846 returns 0.
13847
13848 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13849
13850 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13851 (Fcolor_supported_p): Renamed from face-color-supported-p.
13852
13853 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13854
13855 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13856 list of colors renamed to tty-defined-color-alist.
13857 (tty_color_name): Pass the frame to tty-color-by-index.
13858 (realize_tty_face): tty-color-alist is now a function which
13859 accepts the frame as argument.
13860
13861 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
13862
13863 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13864
13865 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13866 encode_terminal_code.
13867
13868 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13869
13870 * dispnew.c (mode_line_string): Support termcap frames as well.
13871
13872 2000-01-01 Gerd Moellmann <gerd@gnu.org>
13873
13874 * syntax.c (Fforward_word): Undo previous change.
13875
13876 * editfns.c (Fconstrain_to_field): Don't constrain if
13877 inhibit-field-text-motion is non-nil.
13878 (Fline_beginning_position): Undo previous change.
13879 (Fline_end_position): Ditto.
13880
13881 * syntax.c (Fforward_word): Notice field boundaries only if
13882 inhibit-field-text-motion is nil.
13883
13884 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13885
13886 * editfns.c (Vinhibit_field_text_motion): New variable.
13887 (inhibit-field-text-motion): New DEFVAR_LISP.
13888 (Fline_beginning_position, Fline_end_position): Notice field
13889 boundaries only if inhibit-field-text-motion is nil.
13890
13891 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13892 All calls adjusted.
13893 (x_build_heuristic_mask): Likewise.
13894 (xbm_load_image_from_file): Change error output.
13895 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13896 (gif_load, gs_load, x_kill_gs_process): Ditto.
13897
13898 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13899 color indices when accessing raster pixels.
13900 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13901 one of :file or :data.
13902 (enum pbm_keyword_index): Add PBM_DATA.
13903 (pbm_format): Add :data.
13904 (pbm_image_p): Allow either :file or :data.
13905 (pbm_read_file): New function.
13906 (pbm_scan_number): Rewritten to read from string.
13907 (pbm_load): Support :data.
13908
13909 See ChangeLog.8 for earlier changes.
13910
13911 ;; Local Variables:
13912 ;; coding: iso-2022-7bit
13913 ;; End:
13914
13915 Copyright (C) 2001 Free Software Foundation, Inc.
13916 Copying and distribution of this file, with or without modification,
13917 are permitted provided the copyright notice and this notice are preserved.