]> code.delx.au - gnu-emacs/blob - src/ChangeLog
ed83e0757874c2603ba2a88305cd793ee34012e0
[gnu-emacs] / src / ChangeLog
1 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2
3 * emacs.c: Fix typos in comments.
4 Remove unnecessary spaces.
5 Change doc-string comments to `new style' [w/`doc:' keyword].
6 (USAGE2): Fix typos in usage string.
7
8 * xterm.c: Fix typo in a comment.
9
10 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
11 emacs.c.
12
13 2001-10-27 Gerd Moellmann <gerd@gnu.org>
14
15 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
16 instead of 1/2 line_height in the heuristic for skipping
17 farther backward when target_y was not reached.
18
19 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20 Display errno only if non-zero.
21 (sound_warning): New function.
22 (vox_configure): Don't treat failing to set sample rate as error.
23 (various places): Improve error messages.
24
25 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
26
27 * fileio.c (Faccess_file): Run the argument filename through
28 Fexpand_file_name, before using it.
29
30 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
31 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
32
33 2001-10-26 Gerd Moellmann <gerd@gnu.org>
34
35 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
36
37 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
38 Fix clearing in the case of scroll bars on the right.
39
40 2001-10-26 Juanma Barranquero <lektu@terra.es>
41
42 * w32gui.h (XImage): Add a dummy typedef.
43
44 2001-10-26 Gerd Moellmann <gerd@gnu.org>
45
46 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer
47 comparison.
48
49 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
50
51 * frame.c (Fframe_parameter): Fix last change.
52
53 2001-10-25 Gerd Moellmann <gerd@gnu.org>
54
55 * frame.c (Fframe_parameter): Fix a bug whereby some
56 ``artificial'' frame parameters, like `minibuffer' were not
57 obtained by calling Fframe_parameters.
58
59 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
60 cursor differently.
61
62 * xdisp.c (move_it_vertically_backward): Compute line height
63 differently. Add heuristic to try to be more compatible to 20.x.
64
65 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
66
67 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
68
69 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
70 boolean.
71
72 2001-10-25 Miles Bader <miles@gnu.org>
73
74 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
75 BG is a pointer to a structure, not a structure.
76 (gif_format, png_format): Add missing commas.
77
78 2001-10-24 Richard M. Stallman <rms@gnu.org>
79
80 * xfaces.c (Fface_attributes_as_vector): New function.
81 (syms_of_xfaces): defsubr it.
82
83 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
84
85 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
86 variable `area'.
87
88 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
89
90 * search.c (scan_newline): Remove unused variable
91 `selective_display'.
92
93 2001-10-25 Miles Bader <miles@gnu.org>
94
95 * dispextern.h (struct image): Add `background',
96 `background_valid', and `background_transparent' fields.
97 (image_background, image_background_transparent): New declarations.
98 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
99
100 * xfns.c (image_background, image_background_transparent)
101 (four_corners_best): New functions.
102 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
103 (gs_format): Add `:background' entry.
104 (lookup_image): Set IMG's background color if specified.
105 (pbm_load, xbm_load_image, png_load): Set IMG's background field
106 when appropriate.
107 (x_clear_image_1): Reset `background_valid' and
108 `background_transparent_valid' fields.
109 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
110 calculating it here. Set IMG's background_transparent field.
111 (enum xpm_keyword_index): Add XPM_BACKGROUND.
112 (enum png_keyword_index): Add PNG_BACKGROUND.
113 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
114 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
115 (enum gif_keyword_index): Add GIF_BACKGROUND.
116 (enum gs_keyword_index): Add GS_BACKGROUND.
117 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
118 Pre-calculate image background color where necessary.
119
120 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
121 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
122 color to use for image glyph reliefs.
123
124 2001-10-24 Gerd Moellmann <gerd@gnu.org>
125
126 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
127 in full-width rows.
128
129 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
130 Fix clearing of area not covered by scroll bar.
131
132 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
133
134 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
135 and `real_start'.
136 (x_draw_image_foreground): Remove unused variables `mask' and
137 `xgcv'.
138 (glyph_rect): Remove unused variable `area'.
139
140 2001-10-24 Gerd Moellmann <gerd@gnu.org>
141
142 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
143
144 * xdisp.c (try_window_reusing_current_matrix): Use
145 row_containing_pos.
146 (row_containing_pos): Take additional argument DY. Treat
147 rows ending in middle of char differently.
148 (display_line): Handle tabs on window systems differently.
149
150 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
151 with additional argument.
152
153 * dispextern.h (row_containing_pos): Adjust prototype.
154
155 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
156 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
157 (try_window_id, try_window_reusing_current_matrix)
158 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
159 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
160
161 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
162
163 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
164 gnuemacs).
165 (HAVE_BOXES): Fix typo in comment.
166 (push_menu_pane): Fix typo in comment.
167
168 * xdisp.c: (display_prop_string_p): Remove unused local declaration
169 of `Qwhen'.
170 (single_display_prop_string_p): Remove unused local declarations
171 of `Qwhen' and `Qmargin'.
172 (string_buffer_position): Remove unused variable `around'.
173 (store_frame_title): Remove unused variable `width'.
174
175 * window.c: Don't define max.
176 (coordinates_in_window): Remove unused variable `uy'.
177
178 * widget.c: Don't define max.
179
180 * process.c: Don't define max.
181 (create_process): Remove unused variable `buffer'.
182
183 2001-10-23 Gerd Moellmann <gerd@gnu.org>
184
185 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation
186 error.
187
188 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
189
190 * xfaces.c (Finternal_set_lisp_face_attribute)
191 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
192 frame is on a windowed display.
193
194 2001-10-23 Gerd Moellmann <gerd@gnu.org>
195
196 * dispnew.c (sync_window_with_frame_matrix_rows): Fix
197 handling of windows which aren't full-width, fix handling
198 of marginal areas.
199
200 * lread.c (syms_of_lread)<recursive-load-depth-limit>: Raise to
201 50.
202
203 2001-10-23 Andreas Schwab <schwab@suse.de>
204
205 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
206 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
207
208 2001-10-23 Gerd Moellmann <gerd@gnu.org>
209
210 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
211 REAL_END. Notice if cursor gets overwritten.
212 (notice_overwritten_cursor): Take X positions as parameters.
213 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
214 around call to x_draw_glyphs.
215
216 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
217
218 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
219 instead of C) and usage.
220
221 * editfns.c (char-to-string): Fix argument names (use CHAR instead
222 of C) and usage.
223
224 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
225 `left', `max_width' and `max_height'.
226
227 2001-10-23 Gerd Moellmann <gerd@gnu.org>
228
229 * xdisp.c (display_line): For a tab continued to the next line,
230 set row's ends_in_middle_of_char_p.
231
232 2001-10-22 Gerd Moellmann <gerd@gnu.org>
233
234 * xdisp.c (display_line): Fix computation of continuation lines
235 width for TABs.
236
237 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
238
239 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
240 `Qlaplace'.
241
242 * fileio.c: Remove unused code.
243
244 2001-10-22 Miles Bader <miles@gnu.org>
245
246 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
247 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
248 Remove `DOC_STRINGS_IN_COMMENTS' cases.
249
250 2001-10-21 Jason Rumney <jasonr@gnu.org>
251
252 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
253
254 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
255
256 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
257 (Finsert_string): Avoid the multi-line string literals warning.
258
259 2001-10-22 Miles Bader <miles@gnu.org>
260
261 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
262 (Fdocumentation): Don't use it.
263 (syms_of_doc): Don't initialize it.
264
265 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
266 * print.c (Fwith_output_to_temp_buffer): Likewise.
267 * window.c (Fsave_window_excursion): Likewise.
268 * editfns.c (Fsave_excursion, Fsave_current_buffer)
269 (Fsave_restriction): Likewise.
270 * eval.c (Frun_hooks, Frun_hook_with_args)
271 (Frun_hook_with_args_until_failure)
272 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
273 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
274 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
275 (Funwind_protect, Fcondition_case): Likewise.
276 * coding.c (Ffind_operation_coding_system): Likewise.
277 * keyboard.c (Ftrack_mouse): Likewise.
278
279 2001-10-21 Miles Bader <miles@gnu.org>
280
281 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
282 (Fmake_hash_table): Add usage: string to doc string.
283 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
284 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
285 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
286 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
287 (Fml_prefix_argument_loop): Likewise.
288
289 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
290
291 * fileio.c (Finsert_file_contents): Remove unused variable
292 `gap_size'.
293
294 * sysdep.c (init_sys_modes): Change doc-string comments to `new
295 style' [w/`doc:' keyword].
296
297 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
298 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
299 comments to `new style' [w/`doc:' keyword].
300
301 2001-10-21 Jason Rumney <jasonr@gnu.org>
302
303 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
304
305 * w32term.c (remember_mouse_glyph): New function.
306 (w32_mouse_position): Use it.
307 (note_mouse_movement): If the mouse moved off the glyph, remember
308 its new position.
309
310 * w32term.h (struct w32_output): Correct spelling of x_compatible.
311 (w32_display_info): Add mouse_face_overlay.
312
313 * w32term.c (notice_overwritten_cursor): Renamed from
314 note_overwritten_text_cursor. Rewritten to take glyph widths into
315 account.
316 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
317 (fast_find_string_pos): New function.
318 (fast_find_position): Return the correct vpos. Add parameter
319 STOP. In the final row, stop before glyphs having STOP as object.
320 Don't consider glyphs that are not from a buffer.
321 (fast_find_position) [0]: Add a presumably more correct version
322 for after 21.1.
323 (expose_window_tree, expose_frame): Don't compute intersections here.
324 (expose_window): Do it here instead.
325 (expose_window_tree, expose_window, expose_line): Return 1 when
326 overwriting mouse-face.
327 (expose_window): If W is the window currently being updated, mark
328 the frame garbaged.
329 (expose_frame): If mouse-face was overwritten, redo it.
330 (x_use_underline_position_properties): New variable.
331 (syms_of_xterm): DEFVAR_BOOL it.
332 (x_draw_glyph_string): Add comment to use it in future.
333 (x_draw_glyph_string): Restore clipping after drawing box.
334 Fix a computation of the underline position.
335 (w32_get_glyph_string_clip_rect): Minor cleanup.
336 (x_fill_stretch_glyph_string): Remove an assertion.
337 (x_produce_glyphs): Don't convert multibyte characters
338 to unibyte characters in unibyte buffers.
339 (cursor_in_mouse_face_p): New function.
340 (x_draw_stretch_glyph_string): Use it to choose a different GC
341 when drawing a cursor within highlighted text. Don't draw
342 background again if it has already been drawn.
343 (x_draw_glyph_string_box): Don't draw a full-width
344 box just because the glyph row's full_width_p flag is set.
345 (x_draw_glyphs): Fix computation of rightmost x for
346 full-width rows.
347 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
348 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
349 change bottom shadow accordingly. Some cleanup.
350 (x_update_window_end): Handle overwritten mouse face
351 also for tool bar windows.
352 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
353 DRAW is DRAW_IMAGE_RAISED.
354 (clear_mouse_face): Return 1 if text with mouse face was
355 actually redrawn. Make the function static. Reset
356 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
357 optimize away highlighting if we pass over that same overlay again.
358 (note_mouse_highlight): Call mouse_face_overlay_overlaps
359 to detect a case where we have to highlight a different region
360 despite not having left the currently highlighted region.
361 Set mouse_face_overlay in the x_display_info. Avoid changing the
362 mouse pointer shape when show_mouse_face has already done it, or
363 there is no need. Handle mouse-face and help-echo in strings.
364 (glyph_rect): New function.
365 (w32_mouse_position): Use it to raise the threshold for mouse
366 movement event generation.
367 (w32_initialize_display_info): Initialize the x_display_info's
368 mouse_face_overlay.
369 (w32_set_vertical_scroll_bar): Don't clear a zero height
370 or width area.
371 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
372 a widget to zero height.
373
374 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
375 Protect unibyte strings created by replacing their multibyte
376 equivalents in menu_items.
377 (w32_menu_show): Don't overwrite an item's name with its key
378 description in case the description is a multibyte string.
379 (single_submenu): Some cleanup.
380
381 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
382 (postprocess_image): New function.
383 (lookup_image): Call it for all image types except PostScript.
384 (x_kill_gs_process): Call postprocess_image.
385 (tiff_error_handler, tiff_warning_handler): New functions.
386 (tiff_load): Install them as handlers.
387 (x_kill_gs_process): Recognize if someone has cleared the image
388 cache under us.
389 (valid_image_p): Protect better against invalid image
390 specifications. Previous code could signal an error.
391 (Fx_hide_tip, Fshow_tip): Doc fix.
392 (Fv_max_tooltip_size): New variable.
393 (syns_of_xfns): DEFVAR_LISP it.
394 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
395 window buffer to *tip* right after creating the frame. Set frame's
396 window_width. Use a maximum tooltip size specified by
397 Vx_max_tooltip_size, if that has valid contents.
398 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
399 Make sure the tooltip is completely visible.
400 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
401 (Fx_create_frame): Adjust the frame's height for presence
402 of the tool bar before calling x_figure_window_size.
403 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
404 when the window gets smaller.
405 (x_set_foreground_color): Set frame's cursor_pixel.
406 (x_set_foreground_color, x_set_background_color): Cleaned up.
407 (x_set_font): Handle case of x_new_fontset returning the same name
408 as before, although there was a change in fontsets.
409
410 2001-10-21 Miles Bader <miles@gnu.org>
411
412 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
413 (Flogxor): Add usage: string to doc string.
414 * charset.c (Fstring): Likewise.
415 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
416 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
417
418 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
419
420 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
421
422 * alloc.c: Reindent DEFUNs with doc: keywords.
423
424 * abbrev.c (Finsert_abbrev_table_description): Reindent.
425
426 * frame.c: Change doc-string comments to `new style' [w/`doc:'
427 keyword].
428
429 2001-10-20 Gerd Moellmann <gerd@gnu.org>
430
431 * (Version 21.1 released.)
432
433 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
434
435 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes
436 removed.
437
438 * xdisp.c (invisible_text_between_p): Put prototype inside #if
439 0 because unused.
440
441 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
442 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c: Change
443 doc-string comments to `new style' [w/`doc:' keyword].
444
445 2001-10-20 Miles Bader <miles@gnu.org>
446
447 The following changes remove the glyph_row `inverse_p' field,
448 which is never set anymore, due to other changes:
449
450 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
451 (reassert_line_highlight, change_line_highlight): Declarations removed.
452 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
453 (line_hash_code, row_equal_p, fake_current_matrices)
454 (build_frame_matrix_from_leaf_window, update_frame_line)
455 (update_frame_line, update_frame_line, update_frame_line):
456 Don't use `inverse_p' field.
457 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
458 change_line_highlight_hook.
459 (XTreassert_line_highlight, x_change_line_highlight):
460 Functions removed.
461 (x_fix_overlapping_area, x_write_glyphs, expose_area)
462 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
463 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
464 `inverse_p' field.
465 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
466 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
467 (w32_reassert_line_highlight, x_change_line_highlight):
468 Functions removed.
469 * w32console.c (reassert_line_highlight, change_line_highlight):
470 Functions removed.
471 (initialize_w32_display): Don't set reassert_line_highlight_hook
472 or change_line_highlight_hook.
473 (hl_mode): Function removed.
474 (reset_terminal_modes, set_terminal_modes, update_begin)
475 (update_end, w32_face_attributes, initialize_w32_display):
476 (clear_frame, ins_del_lines): Don't call it.
477 * termhooks.h (reassert_line_highlight_hook)
478 (change_line_highlight_hook): Declarations removed.
479 * term.c (reassert_line_highlight_hook)
480 (change_line_highlight_hook): Variables removed.
481 (reassert_line_highlight, change_line_highlight): Functions removed.
482 * msdos.c (IT_reassert_line_highlight)
483 (IT_change_line_highlight): Functions removed.
484 (internal_terminal_init): Don't set reassert_line_highlight_hook
485 or change_line_highlight_hook.
486 (highlight): Variable removed.
487 (IT_set_face, IT_update_begin, IT_update_end)
488 (IT_set_terminal_modes): Don't set or use it.
489
490 The following changes remove inverse-video support for terminals
491 that use a `magic cookie' standout mode. Due to changes in the
492 way mode-lines are displayed, such support no longer works
493 anyway, and it's probable that almost no one uses such terminals
494 anymore:
495
496 * term.c (standout_requested): Variable removed.
497 (update_end, highlight_if_desired): Don't use it.
498 (chars_wasted, copybuf): Variables removed.
499 (write_standout_marker): Function removed.
500 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
501 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
502 Don't use `chars_wasted' or `copybuf'.
503 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
504 Set `costs_set' to true.
505 (cursor_to, clear_end_of_line): Test `costs_set' instead of
506 `chars_wasted'.
507 (clear_end_of_line): Function removed.
508 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
509 (clear_to_end): Call `clear_end_of_line' instead of
510 `clear_end_of_line_raw'.
511 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
512 (term_init): Don't set them.
513 Turn off any standout/underline modes that require magic cookies.
514 (ins_del_lines, highlight_if_desired, background_highlight)
515 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
516 Remove special processing for magic-cookie standout modes.
517 (turn_off_face, turn_on_face): Remove special processing for
518 underline magic-cookie glitch.
519
520 2001-10-19 Richard M. Stallman <rms@gnu.org>
521
522 * eval.c (syms_of_eval): Doc fixes.
523
524 2001-10-19 Gerd Moellmann <gerd@gnu.org>
525
526 * xdisp.c (redisplay_internal): Don't clear echo area if the
527 mini-window is selected.
528
529 2001-10-19 Miles Bader <miles@gnu.org>
530
531 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
532 doesn't take precedence if the affected property's value is nil.
533
534 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
535
536 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
537 with fields and suggest using `forward-line' to avoid them.
538 * editfns.c (Fline_beginning_position, Fline_end_position):
539 Clarify documentation.
540
541 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
542
543 * keymap.c (current_minor_maps): `override' only shadows its
544 correspondent in minor-mode-map-alist, not the whole tail.
545
546 2001-10-18 Andrew Innes <andrewi@gnu.org>
547
548 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
549 optimization. The fontp->encoding array was not being initialized
550 correctly when compiled with optimizations by MSVC.
551
552 2001-10-18 Gerd Moellmann <gerd@gnu.org>
553
554 * xdisp.c (display_line): Indicate empty lines in active mini-window.
555
556 2001-10-17 Andrew Innes <andrewi@gnu.org>
557
558 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
559
560 * w32fns.c (w32_load_system_font): Cache codepage for font, in
561 font_info.charset field.
562
563 * w32term.c (w32_encode_char): Get cached codepage from font_info,
564 rather than working it out by calling w32_codepage_for_font for
565 every glyph.
566
567 2001-10-17 Andrew Innes <andrewi@gnu.org>
568
569 * w32term.c (w32_read_socket): Determine clipping rectangle for
570 the entire frame, including areas covered by scrollbars and the
571 menubar. This avoids internal arguments about whether a frame is
572 fully obscured or not.
573
574 2001-10-17 Gerd Moellmann <gerd@gnu.org>
575
576 * xdisp.c (try_window_id): Undo last change. Give up if
577 window ends in strings.
578
579 * xdisp.c (try_window_id): Don't display lines after the window
580 end if the rest of the window after the window end was already blank.
581
582 * xdisp.c (try_window_id): Remove code that was only there
583 for the release of 21.1.
584
585 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
586
587 2001-10-17 Miles Bader <miles@gnu.org>
588
589 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
590 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
591 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
592 Change doc-string comments to `new style' [w/`doc:' keyword].
593 (DOC_STRINGS_IN_COMMENTS): Macro removed.
594 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
595 out make-docfile.
596
597 2001-10-16 Miles Bader <miles@gnu.org>
598
599 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
600
601 2001-10-16 Gerd Moellmann <gerd@gnu.org>
602
603 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
604 *scratch*.
605
606 2001-10-16 Ken Raeburn <raeburn@gnu.org>
607
608 Avoid the assumption that car and cdr slots of cons cells are
609 addressable lvalues; this allows for easier experimentation with
610 other lisp implementations that may not permit such accesses for
611 various reasons. Not quite complete -- buffer.c still needs some
612 work, and w32/mac files need rechecking -- so compile-time
613 enforcement is left disabled for now.
614
615 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
616 gcc with a union-based Lisp object rep. Redefine as no-op for now.
617 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
618 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
619 (XSETCAR, XSETCDR): New macros.
620 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
621 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
622 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
623 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
624 XSETCDR.
625 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
626 * buffer.c (record_buffer, Fbury_buffer)
627 (swap_out_buffer_local_variables, recenter_overlay_lists)
628 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
629 fields of a cons cell respectively.
630 * callint.c (quotify_args, Fcall_interactively): Likewise.
631 * ccl.c (Fregister_code_conversion_map): Likewise.
632 * coding.c (detect_coding_system): Likewise.
633 * composite.c (get_composition_id, make_composition_value_copy):
634 Likewise.
635 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
636 (swap_in_symval_forwarding, set_internal, Fset_default)
637 (Fmake_variable_buffer_local, Fmake_local_variable)
638 (Fmake_variable_frame_local): Likewise.
639 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
640 * keymap.c (Fset_keymap_parent, store_in_keymap)
641 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap):
642 Likewise.
643 * minibuf.c (get_minibuffer): Likewise.
644 * search.c (Fmatch_data): Likewise.
645 * textprop.c (extend_property_ranges): Likewise.
646 * undo.c (record_insert, Fundo_boundary, truncate_undo_list):
647 Likewise.
648 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
649 Likewise.
650 * w32term.c (x_delete_display): Likewise.
651 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
652 Likewise.
653 * xterm.c (x_list_fonts, x_load_font, x_delete_display):
654 Likewise.
655 * doc.c (store_function_docstring): Use XSETCARFASTINT.
656 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
657 (Fread_file_name): Use XSETCAR.
658 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
659 CHECK_NUMBER_CDR.
660 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
661 * frame.c (Fmake_terminal_frame): Use XSETCDR.
662 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
663 CHECK_NUMBER_CDR.
664 * keyboard.c (read_char): Alter list traversal to avoid taking the
665 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
666 (parse_menu_item): Use XSETCAR and XSETCDR.
667 (reach_char_x_menu_prompt): Use XSETCAR.
668 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
669 (Fcommand_execute): Use XSETCDR.
670 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
671 (openp): Change list traversal to avoid using XCAR as lvalue.
672 (read_list): Use XSETCDR.
673 * process.c (wait_reading_process_input): Change wait_for_cell
674 handling to avoid taking addresses of cons cell slots.
675 * xselect.c (x_own_selection, x_handle_selection_clear)
676 (x_clear_frame_selections): Use XSETCDR.
677 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
678 (x_handle_property_notify, x_get_foreign_selection)
679 (x_handle_selection_notify): Use XSETCAR.
680
681 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
682
683 * buffer.c: Put doc strings in comments.
684
685 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
686
687 2001-10-15 Sam Steingold <sds@gnu.org>
688
689 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
690
691 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
692
693 * process.c (process-inherit-coding-system-flag)
694 (get-buffer-process): Do not confuse make-docfile with doc strings
695 in comment.
696
697 * editfns.c (Fchar_to_string): Make doc string consistent with
698 arguments. Put doc strings in comments.
699
700 * abbrev.c, minibuf.c: Put doc strings in comments.
701
702 2001-10-15 Gerd Moellmann <gerd@gnu.org>
703
704 * window.c (window_loop): Don't check for Fother_buffer returning nil.
705
706 * window.c (select_window_1): Unfreeze window start. Remove a
707 doubled test for WINDOW being live.
708
709 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
710
711 * fns.c (Fmapconcat): Fix typo in a doc string.
712
713 * dispnew.c (Fsleep_for): Fix typo in a doc string.
714
715 2001-10-15 Gerd Moellmann <gerd@gnu.org>
716
717 * xterm.c (x_draw_glyph_string): Restore clipping after
718 drawing box.
719
720 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
721
722 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
723
724 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
725
726 * indent.c (skip_invisible): Use new retval of
727 TEXT_PROP_MEANS_INVISIBLE.
728
729 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
730 If a parent is reached and noinherit is set, exit immediately.
731 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
732
733 * s/ms-w32.h (EXEC_SUFFIXES):
734 * s/msdos.h (EXEC_SUFFIXES):
735 * process.h (EXEC_SUFFIXES): Remove.
736
737 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
738 (decode_suffixes): Remove.
739
740 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
741 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
742 (invisible_ellipsis_p): Remove.
743
744 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
745 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
746 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
747 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
748 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
749
750 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
751
752 * lisp.h (Ftop_level): Add prototype.
753
754 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
755 (XTread_socket): Improve style of comments to follow other
756 comments.
757
758 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
759 is already prototyped in included lisp.h).
760
761 * frame.c (Fset_mouse_position): Improve style of comment to
762 follow other comments.
763 (Fset_mouse_pixel_position): Improve style of comment to follow
764 other comments.
765 (Fmake_frame_visible): Doc fix and typo in comment.
766 (Fmake_frame_invisible): Doc fix and typo in comment.
767 (Ficonify_frame): Fix typo in comment.
768
769 2001-10-14 Gerd Moellmann <gerd@gnu.org>
770
771 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
772 * term.c, alloc.c: Put doc strings in comments.
773
774 2001-10-13 Gerd Moellmann <gerd@gnu.org>
775
776 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
777 Provide definitions for doc strings in comments.
778
779 * fns.c: Put doc strings in comments.
780
781 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
782
783 * dired.c (file_name_completion): Ignore a candidate directory if
784 it matches an element in completion-ignored-extensions that ends
785 in a slash.
786 (syms_of_dired) <completion-ignored-extensions>: Mention the above
787 feature in the doc string.
788 (Ffile_name_completion): Ditto.
789
790 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
791
792 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
793
794 * xfns.c (syms_of_xfns): Update calls to Fprovide.
795
796 * lisp.h (Fprovide): Update prototype.
797 (Ffeaturep, invisible_p): Remove.
798
799 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
800 (DOLIST, LOOP_PROPVAL): New macros.
801 (invisible_p, invisible_ellipsis_p): Use them.
802 (invisible_noellipsis_p): New function.
803 (syms_of_xdisp): Use empty_string.
804
805 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
806
807 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
808 (syms_of_lread) <Vafter_load_alist>: Update docstring.
809
810 * print.c (Fwith_output_to_temp_buffer): Align with
811 internal_with_output_to_temp_buffer.
812 (print_preprocess): Use traverse_intervals_noorder.
813 (print_object): Update call to traverse_intervals.
814
815 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
816 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
817
818 * intervals.c (traverse_intervals_noorder): New function.
819 (search_for_interval, count_intervals): Use it.
820 (traverse_intervals): Use less stack space and drop `depth' arg.
821
822 * fns.c (Ffeaturep): Add new `subfeature' arg.
823 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
824 (Qsubfeatures): New var.
825 (syms_of_fns): Initialize it.
826
827 * keymap.c (Fkey_description): Use empty_string.
828 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
829 (syms_of_keymap): Setup inheritance between maps.
830 Don't export Sdescribe_bindings_internal any more.
831
832 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
833
834 2001-10-12 Gerd Moellmann <gerd@gnu.org>
835
836 * xterm.c (notice_overwritten_cursor): Renamed from
837 note_overwritten_text_cursor. Rewritten to take glyph widths into
838 account.
839
840 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
841
842 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
843 multi-line strings without a trailing "\n\".
844
845 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
846
847 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
848 defined.
849
850 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
851
852 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
853
854 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
855 * w32proc.c (sys_spawnve):
856 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
857 * w32.c (check_windows_init_file):
858 * sound.c (Fplay_sound):
859 * emacs.c (init_cmdargs):
860 * process.c (Fstart_process): Update calls to openp.
861
862 * callproc.c (Vexec_suffixes): New var.
863 (Fcall_process): Update call to openp.
864 (decode_suffixes): New function.
865 (syms_of_callproc): Init exec-suffixes.
866
867 * lread.c (Vload_suffixes, default_suffixes): New vars.
868 (openp): Take a lisp list of suffixes.
869 Check for file-name-handlers even if the file was absolute already.
870 (syms_of_lread): Declare load-suffixes.
871 (Fload): Fix up call to openp.
872 Don't bother checking for file-name-handler at the very beginning.
873
874 * keymap.h (Fcopy_keymap): Don't export.
875
876 * lisp.h (empty_string): Declare.
877 (Vload_suffixes, Vexec_suffixes): Declare.
878 (openp): Update prototype.
879
880 * emacs.c (empty_string): New var.
881 (syms_of_emacs): Initialize it.
882
883 * search.c (wordify): Use it.
884
885 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
886 selected window if it's not displayed there. Handle the case
887 when the window is dedicated.
888 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
889
890 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
891
892 * syntax.h (struct gl_state_s): Change the meaning of b_property.
893 Remove left_ok and right_ok.
894 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
895 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
896 new meaning of b_property.
897
898 * syntax.c (update_syntax_table): Simplify.
899 (Fforward_comment): Don't skip quoted chars when going backward.
900
901 2001-10-11 Gerd Moellmann <gerd@gnu.org>
902
903 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
904 in case I is of some unsigned type, in which case
905 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
906 comparison becomes bogus.
907
908 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
909 (Fuser_full_name): Fix bug treating a float as a fixnum.
910
911 * data.c (Fstring_to_number): Use make_fixnum_or_float.
912
913 * lisp.h (make_fixnum_or_float): New macro.
914
915 * lisp.h (circular_list_error): Add prototype.
916
917 * data.c (Qcircular_list): New variable.
918 (circular_list_error): New function.
919 (syms_of_data): Initialize it Qcircular_list.
920
921 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
922
923 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
924 casefiddle.c, buffer.c: Include keymap.h.
925
926 2001-10-10 Gerd Moellmann <gerd@gnu.org>
927
928 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
929 options. From Dave Love <d.love@dl.ac.uk>.
930
931 2001-10-09 Gerd Moellmann <gerd@gnu.org>
932
933 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
934 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
935
936 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
937 unsigned char.
938 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
939
940 2001-10-08 Andrew Innes <andrewi@gnu.org>
941
942 * lisp.h [max]: Undef min and max before redefining them.
943
944 * w32gui.h: Do not undef min and max.
945
946 * w32heap.h: Do not undef min and max.
947
948 * s/ms-w32.h: Do not undef min and max.
949
950 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
951
952 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
953
954 2001-10-08 Sam Steingold <sds@gnu.org>
955
956 * keymap.c (current-active-maps): Quote newlines (compilation error).
957
958 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
959
960 * Makefile.in (lisp, shortlisp): Replace bindings.el with
961 bindings.elc, since otherwise doc strings in bindings.el get wrong
962 offsets in etc/DOC.
963
964 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
965
966 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
967
968 * keyboard.h (map_prompt): Remove.
969
970 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
971 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
972
973 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
974
975 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
976
977 * keyboard.c (map_prompt): Remove.
978 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
979 Use Fkeymap_prompt.
980
981 * keymap.h: New file. Extracted from lisp.h.
982
983 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
984 (accessible_keymaps_1): New function.
985 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
986 (Fwhere_is_internal): Use Fcurrent_active_maps.
987 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
988 Insert in current buffer rather than standard-output.
989 Don't call `help-mode'. Export to elisp.
990 (describe_buffer_bindings): New wrapper.
991 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
992 and Sdescribe_buffer_bindings.
993
994 2001-10-08 Gerd Moellmann <gerd@gnu.org>
995
996 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
997 Remove code setting signal handler.
998
999 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
1000 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1001
1002 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1003
1004 * keyboard.c: Don't define min/max.
1005
1006 2001-10-08 Gerd Moellmann <gerd@gnu.org>
1007
1008 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
1009 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
1010 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
1011 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
1012 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
1013 Don't define min/max.
1014
1015 * lisp.h (min, max): New macros.
1016
1017 * puresize.h (BASE_PURESIZE): Increase to 725000.
1018
1019 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1020
1021 * xfaces.c (free_frame_menubar): Add prototype.
1022
1023 * lisp.h (init_window): Add prototype.
1024
1025 * editfns.c: Include ctype.h.
1026
1027 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
1028 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
1029 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1030 variable `sb'.
1031
1032 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1033 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1034 `popup_activated_flag' and `title'.
1035
1036 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1037
1038 * emacs.c (main): Remove extra `;'.
1039
1040 * atimer.h (struct atimer): Fix typos in a comment.
1041
1042 * atimer.c: Fix typo.
1043
1044 * Makefile.in: Fix typo.
1045
1046 * README: Remove obsolete part mentioning removed VMS file.
1047
1048 2001-10-07 Miles Bader <miles@gnu.org>
1049
1050 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1051
1052 2001-10-07 Ken Raeburn <raeburn@gnu.org>
1053
1054 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1055 Lisp_Object.
1056
1057 * lisp.h (Ffield_end): Declare.
1058
1059 2001-10-07 Gerd Moellmann <gerd@gnu.org>
1060
1061 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1062
1063 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1064
1065 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1066
1067 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1068
1069 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1070 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1071
1072 * alloc.c (inhibit_garbage_collection): Simplify.
1073 (Fmemory_use_counts): Ditto.
1074
1075 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1076 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1077 most-negative-fixnum.
1078
1079 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1080 (FIXNUM_OVERFLOW_P): New macros.
1081
1082 2001-10-06 Miles Bader <miles@gnu.org>
1083
1084 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1085 scroll_bar_bottom_shadow_pixel fields.
1086 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1087 for the shadows, and tell the toolkit about them if we succeed.
1088 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1089 Free scroll-bar shadow colors.
1090 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1091 Free scroll-bar shadow colors when the background color changes.
1092 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1093 Initialize scroll-bar shadow-color fields.
1094
1095 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1096
1097 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1098
1099 2001-10-05 Miles Bader <miles@gnu.org>
1100
1101 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1102 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
1103 New functions (were in simple.el).
1104 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1105 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1106 (syms_of_minibuf): Initialize them.
1107
1108 2001-10-05 Gerd Moellmann <gerd@gnu.org>
1109
1110 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1111 (tiff_load): Install them as error and warning handler.
1112
1113 2001-10-04 Andrew Innes <andrewi@gnu.org>
1114
1115 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1116 (w32_load_system_font): Don't believe what GetLanguageFontInfo
1117 says; query codepage info directly to determine if font is double byte.
1118 (x_to_w32_charset): Handle private format for unknown charsets.
1119 Handle wildcards in charset spec, by ignoring them.
1120 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1121 "*-" prefix from charset.
1122 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1123 handle the truncated font spec form constructed by font_list_1, so
1124 that we correctly identify the charset fields. Don't remove "*-"
1125 prefix from charset.
1126 (w32_list_synthesized_fonts): Fix argument to alloca.
1127
1128 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1129
1130 * window.h (MINI_WINDOW_P): Use NILP.
1131
1132 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1133
1134 * termhooks.h (struct input_event): Use proper type for `kind'.
1135
1136 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1137
1138 This handles unknown keysyms better than before. For example,
1139 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
1140 Emacs formerly completely ignored F5. With the change, it derives
1141 a key symbol from the name of the X keysym, `ccaron' in this case.
1142 Reported by Martin Buchholz.
1143
1144 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
1145 unknown keysyms.
1146
1147 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
1148 that EVENT->code isn't a function key, use the keysym's name.
1149
1150 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1151
1152 FOREACH is a macro that should make it easier to loop over Lisp
1153 lists with checks for cycles and proper lists.
1154
1155 * lisp.h (LIST_END_P, FOREACH): New macros.
1156
1157 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1158
1159 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
1160 called for a lost connection. Prevent dumping core in this case.
1161 Instead print the X error, and exit. On user request.
1162
1163 * xterm.c (error_msg): New variable.
1164 (x_fatal_error_signal): New function.
1165 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
1166 as fatal_error_signal_hook around the call to XtCloseDisplay.
1167
1168 * emacs.c (fatal_error_signal_hook): New variable.
1169 (fatal_error_signal): Call that function.
1170
1171 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1172
1173 With this, Emacs prints how much pure storage it will
1174 approximately need in case pure storage overflows while dumping.
1175
1176 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
1177 New variables.
1178 (init_alloc_once): Initialize new variables.
1179 (PURE_POINTER_P): Use new variables.
1180 (pure_alloc): If pure storage overflows, allocate from the heap.
1181 (check_pure_size): New function.
1182 (Fgarbage_collect): Don't GC if pure storage has overflowed.
1183
1184 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
1185 (check_pure_size): Add prototype.
1186
1187 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
1188
1189 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1190
1191 This adds a post-gc-hook that's run with GC inhibited.
1192 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
1193
1194 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
1195 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
1196 (Fgarbage_collect): Run post-gc-hook.
1197
1198 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1199
1200 This adds `defvaralias' and `indirect-variable'. Changes not
1201 directly related to this feature are there to gain the same
1202 performance again as before variable aliases.
1203
1204 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
1205 code to get and set symbol values, to take defvaralias into account.
1206
1207 (Note: the new `constant' bit-flag in symbols would make it
1208 possible to define arbitrary read-only variables, e.g. with
1209 `defconst'.)
1210
1211 Documentation is in lispref/variables.texi. Added to NEWS.
1212
1213 * lisp.h (enum symbol_interned): New enumeration.
1214 (struct Lisp_Symbol): Remove member `obarray', add
1215 `indirect_variable', `constant', and `interned'.
1216 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
1217 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
1218 (indirect_variable): Add prototype.
1219
1220 * print.c (print_preprocess, print_object): Test internedness of
1221 symbols differently.
1222
1223 * lread.c (Fintern, Funintern): Set symbol's interned and constant
1224 bit-fields.
1225 (init_obarray): Likewise for t and nil.
1226
1227 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1228 (Fdefvaralias): New function.
1229 (specbind): Simplify the test if symbol is a constant.
1230 (syms_of_eval): Defsubr Fdefvaralias.
1231
1232 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1233 (Qcyclic_variable_indirection): New variable.
1234 (Fkeywordp): Check for internedness differently.
1235 (Fmakunbound): Simplify the test if symbol is a constant.
1236 (indirect_variable, Findirect_variable): New functions.
1237 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1238 aliased symbol.
1239 (let_shadows_buffer_binding_p): Check for variable aliases.
1240 (set_internal): Simplify the test if SYMBOL is a constant.
1241 If SYMBOL has a buffer-local value and is an alias, use the aliased
1242 symbol instead.
1243 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1244 Sindirect_variable.
1245
1246 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1247 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1248 set directly.
1249
1250 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1251
1252 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1253 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1254 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1255
1256 2001-10-04 Gerd Moellmann <gerd@gnu.org>
1257
1258 * Branch for 21.1.
1259
1260 2001-10-03 Miles Bader <miles@gnu.org>
1261
1262 * callproc.c (syms_of_callproc): Explicitly state in the
1263 documentation for `process-environment' that earlier entries take
1264 precedence over later ones.
1265
1266 2001-10-02 Miles Bader <miles@gnu.org>
1267
1268 * textprop.c (Fnext_char_property_change)
1269 (Fprevious_char_property_change): Remove reference to non-existant
1270 argument OBJECT from doc-string.
1271
1272 2001-10-01 Gerd Moellmann <gerd@gnu.org>
1273
1274 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1275 (try_window_id): Skip back over lines ending in a newline from a
1276 string.
1277
1278 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1279 New bit flag
1280
1281 2001-10-01 Richard M. Stallman <rms@gnu.org>
1282
1283 * search.c (Freplace_match): Doc fix.
1284
1285 2001-09-28 Andrew Innes <andrewi@gnu.org>
1286
1287 * w32menu.c (set_frame_menubar): Take into account that
1288 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1289 <raeburn@gnu.org>.
1290
1291 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1292
1293 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1294
1295 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1296
1297 * s/gnu-linux.h: Fix a typo in comment.
1298
1299 2001-09-28 Andreas Schwab <schwab@suse.de>
1300
1301 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1302 nocombreloc, in case -z combreloc is the default.
1303
1304 2001-09-28 Gerd Moellmann <gerd@gnu.org>
1305
1306 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1307 really going on here.
1308
1309 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1310
1311 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1312
1313 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1314
1315 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1316 utf-8, menu-bar, and latin-N.
1317 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1318 unconditionally now.
1319 (lisp): Add latin-N, since they are preloaded.
1320
1321 2001-09-27 Gerd Moellmann <gerd@gnu.org>
1322
1323 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1324 to the left. Some cleanup.
1325
1326 * xdisp.c (display_mode_element): One more case where a string's
1327 multibyteness should be used for display.
1328
1329 2001-09-26 Gerd Moellmann <gerd@gnu.org>
1330
1331 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1332 reading at EOF.
1333
1334 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
1335 of the only temporarily set echoing flag for deciding when
1336 the cancel echoing.
1337
1338 * keyboard.c (echo_kboard): Make externally visible.
1339
1340 * lisp.h (echo_kboard): Declare extern.
1341
1342 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
1343 fonts_changed_p if we need larger matrices due to vscrolling.
1344 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1345 this round of redisplay if make_cursor_line_fully_visible fails.
1346 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
1347 (try_cursor_movement, try_scrolling): Use them instead of integers.
1348
1349 * dispextern.h (required_matrix_width, required_matrix_height):
1350 Add prototypes.
1351
1352 * dispnew.c (required_matrix_width, required_matrix_height):
1353 New functions.
1354 (allocate_matrices_for_window_redisplay)
1355 (allocate_matrices_for_frame_redisplay: Use them.
1356 Remove parameters CH_DIM.
1357
1358 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1359 and selected_window to the frame of the window whose mode-lines
1360 are displayed, and to the window itself.
1361 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
1362 here.
1363
1364 2001-09-25 Gerd Moellmann <gerd@gnu.org>
1365
1366 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1367 the image cache under us.
1368
1369 * xdisp.c (display_mode_element): If the mode element is a symbol
1370 with a string value, use that string's multibyteness for displaying.
1371
1372 * keyboard.c (read_char): Don't clear a message for a switch-frame
1373 event. From Stefan Monnier <monnier@cs.yale.edu>.
1374
1375 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1376 version for after 21.1.
1377
1378 * xdisp.c (row_containing_pos): Make externally visible.
1379
1380 * dispextern.h (row_containing_pos): Add prototype.
1381
1382 * process.c (send_process): Disable composition if from_byte < 0.
1383 From Kenichi Handa <handa@etl.go.jp>.
1384
1385 2001-09-24 Gerd Moellmann <gerd@gnu.org>
1386
1387 * xterm.c (refreshicon): Function removed.
1388
1389 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1390
1391 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1392
1393 * xterm.c (toplevel): Remove includes in #if 0.
1394
1395 * process.c (sigchld_handler) [LINUX]: Don't return from
1396 the signal handler at the end of the loop.
1397
1398 2001-09-21 Gerd Moellmann <gerd@gnu.org>
1399
1400 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1401 Terminate only if kill returns -1, and errno is ESRCH.
1402
1403 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
1404
1405 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1406
1407 2001-09-20 Gerd Moellmann <gerd@gnu.org>
1408
1409 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1410 since this function can be called during GC.
1411
1412 * callproc.c (Fcall_process): Handle errors from pipe(2).
1413 (child_setup): Delete code in #ifdef vipc.
1414
1415 2001-09-19 Gerd Moellmann <gerd@gnu.org>
1416
1417 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1418 (display_mode_element): Display the string from decode_mode_spec
1419 depending on its multibyteness.
1420
1421 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1422
1423 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1424
1425 2001-09-18 Gerd Moellmann <gerd@gnu.org>
1426
1427 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1428 recursive_edit_unwind.
1429 (recursive_edit_unwind): Set kboard state according to
1430 SINGLE-KBOARD.
1431
1432 * buffer.c (modify_overlay): Don't do nothing if START == END;
1433 This can still be a modification, for example when an overlay has
1434 a before-string or after-string.
1435 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1436 an overlay with before-string or after-string.
1437
1438 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1439 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1440
1441 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1442 first_unchanged_at_end_row is in front of
1443 last_unchanged_at_beg_row. This code should be removed after the
1444 release of 21.1.
1445
1446 2001-09-17 Gerd Moellmann <gerd@gnu.org>
1447
1448 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1449 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1450
1451 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1452 versions >= 2.95.
1453
1454 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1455
1456 * dired.c (Ffile_attributes): Doc fix.
1457
1458 2001-09-14 Gerd Moellmann <gerd@gnu.org>
1459
1460 * fileio.c (Ffile_symlink_p): Fix last change.
1461
1462 * filelock.c (current_lock_owner): Fix last change.
1463
1464 2001-09-13 Gerd Moellmann <gerd@gnu.org>
1465
1466 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1467 take that to mean that the buffer is too small.
1468
1469 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1470 that to mean that the buffer is too small.
1471
1472 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1473 current buffer's multibyteness when discarding the iterator's
1474 stack.
1475
1476 * xfns.c (Fx_window_property): Handle case that property gets
1477 deleted between the two calls to XGetWindowProperty.
1478
1479 2001-09-11 Gerd Moellmann <gerd@gnu.org>
1480
1481 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
1482
1483 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1484 in addition to read-only.
1485
1486 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1487 to t in addition to read-only.
1488
1489 * lisp.h (Qinhibit_modification_hooks): Declare.
1490
1491 * insdel.c (Qinhibit_modification_hooks): New variable.
1492 (syms_of_insdel): Initialize and staticpro it.
1493
1494 * textprop.c (verify_interval_modification): Don't run
1495 modification-hooks if inhibit_modification_hooks.
1496
1497 * dispnew.c (set_window_cursor_after_update): Fix code
1498 finding glyph row containing cursor when cursor_in_echo_area
1499 is >= 0.
1500
1501 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1502 (add_to_log): Use bcopy instead of strcpy.
1503 (init_from_display_pos): Use an explicit loop over bytes in
1504 overlay strings instead of calling index.
1505
1506 2001-09-10 Gerd Moellmann <gerd@gnu.org>
1507
1508 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1509
1510 * dispnew.c (direct_output_for_insert): Don't change IT's
1511 stop_charpos to something in front of its current position.
1512
1513 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1514 `format'.
1515
1516 2001-09-10 Richard M. Stallman <rms@gnu.org>
1517
1518 * frame.c (Fmouse_position): Doc fix.
1519
1520 2001-09-07 Gerd Moellmann <gerd@gnu.org>
1521
1522 * xdisp.c (init_from_display_pos): Don't compare the result
1523 of calling index with NULL.
1524
1525 2001-09-06 Gerd Moellmann <gerd@gnu.org>
1526
1527 * xfns.c (x_set_background_color): Don't change the colors
1528 of the X window of scroll bar widgets.
1529
1530 2001-09-05 Andrew Innes <andrewi@gnu.org>
1531
1532 * w32fns.c (w32_createwindow): Undo last change.
1533
1534 2001-09-05 Gerd Moellmann <gerd@gnu.org>
1535
1536 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1537
1538 * xdisp.c (string_buffer_position): Use *single_char_property*
1539 functions instead of the *single_property* functions.
1540
1541 2001-09-04 Andrew Innes <andrewi@gnu.org>
1542
1543 * w32term.c (w32_read_socket): Add more information to debugging
1544 output.
1545
1546 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1547 from Emacs frames, so that calls to GetClipBox in w32term.c
1548 correctly report when part of a frame is visible (including
1549 scrollbars, etc). This prevents repeated redrawing of frames when
1550 only a scrollbar is visible.
1551 (w32_wnd_proc): Add more frame information to debugging output.
1552
1553 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1554
1555 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1556
1557 2001-09-03 Gerd Moellmann <gerd@gnu.org>
1558
1559 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1560 help-echo for a string which doesn't have help-echo itself, use
1561 get-char-property to obtain the help-echo from the string's buffer
1562 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1563 have mouse-face, look ``under'' the string for mouse-face from an
1564 overlay.
1565 (fast_find_position): Add parameter STOP. In the final row, stop
1566 before glyphs having STOP as object. Don't consider glyphs that
1567 are not from a buffer.
1568
1569 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1570
1571 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1572
1573 * fns.c (Fmd5): Doc fix.
1574
1575 2001-08-31 Gerd Moellmann <gerd@gnu.org>
1576
1577 * composite.c (update_compositions): Do nothing if
1578 inhibit-modification-hooks is set.
1579
1580 2001-08-30 Gerd Moellmann <gerd@gnu.org>
1581
1582 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
1583 and check_message_stack if terminating abnormally. We want
1584 glyph matrices etc. in a core dump.
1585
1586 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1587 (syms_of_xdisp): Initialize them.
1588 (handle_single_display_prop): Don't change point, bind `object',
1589 `position', and `buffer-position' instead to the object having the
1590 `display' property, position in the object and position in the buffer.
1591
1592 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1593 of the buffer if REPLACE is non-nil.
1594
1595 2001-08-29 Gerd Moellmann <gerd@gnu.org>
1596
1597 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1598
1599 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1600
1601 * w32term.c (x_set_glyph_string_background_width)
1602 (show_mouse_face): Track the last changes in xterm.c.
1603
1604 2001-08-28 Gerd Moellmann <gerd@gnu.org>
1605
1606 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1607 string's background width so that multi-line mouse-face is drawn
1608 to the right edge of the window.
1609 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1610 glyphs.
1611
1612 * dispnew.c (direct_output_for_insert): Set updated_area
1613 before inserting/writing glyphs.
1614
1615 * xdisp.c (display_mode_element): Use string_byte_to_char to
1616 determine character positions in strings, use chars_in_text
1617 instead of strwidth.
1618 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1619 a matrix as parameter; this is easier to use from GDB.
1620
1621 2001-08-28 Miles Bader <miles@gnu.org>
1622
1623 * textprop.c (Fprevious_single_char_property_change)
1624 (Fnext_single_char_property_change): Doc fixes.
1625
1626 2001-08-27 Gerd Moellmann <gerd@gnu.org>
1627
1628 * fileio.c (Finsert_file_contents): Allocate, restore, and
1629 free composition data in the case of REPLACE not being nil.
1630
1631 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1632 there exist overlay strings with newlines at POS.
1633 (text_outside_line_unchanged_p): Return 0 if changes start at
1634 START and overlays exist at START. Likewise for END.
1635 (try_window_id): Give up if init_to_row_end returns 0.
1636
1637 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1638 unconditionally.
1639
1640 2001-08-24 Gerd Moellmann <gerd@gnu.org>
1641
1642 * keymap.c (access_keymap): Return the cdr of the binding of
1643 a generic character instead of its definition (KEY . BINDING).
1644
1645 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1646 to 0 also in the REPLACE case.
1647
1648 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1649
1650 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1651 open to determine whether file is readable (as for DOS_NT).
1652
1653 2001-08-23 Gerd Moellmann <gerd@gnu.org>
1654
1655 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1656 coding.type is coding_type_no_conversion or coding_type_raw_text,
1657 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1658 non-nil instead of just setting enable_multibyte_characters in the
1659 buffer to nil.
1660
1661 2001-08-22 Gerd Moellmann <gerd@gnu.org>
1662
1663 * dispextern.h (struct face_cache): Add member
1664 menu_face_changed_p.
1665
1666 * xfaces.c (menu_face_changed_default): New variable.
1667 (menu_face_changed_count): Variable removed.
1668 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1669 the menu_face_changed_default flag, otherwise set the FRAME's
1670 menu_face_changed_p flag if the `menu' face has been changed.
1671 Prevent calling set_font_frame_param if FRAME is t.
1672 (make_face_cache): Initialize cache's menu_face_changed_p
1673 from menu_face_changed_default.
1674 (realize_basic_faces): Look into the frame's face cache to
1675 determine if the menu appearance needs updating.
1676
1677 * keymap.c (access_keymap): Fix last change to not consider
1678 IDX when it has modifiers.
1679
1680 2001-08-21 Gerd Moellmann <gerd@gnu.org>
1681
1682 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1683 . BINDING) exists, where GENERIC-CHAR is the generic character of
1684 the charset of IDX, return BINDING unless there exists a binding
1685 for IDX itself.
1686
1687 2001-08-16 Gerd Moellmann <gerd@gnu.org>
1688
1689 * xrdb.c (SYSV): Don't define on Solaris 2.
1690 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1691
1692 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
1693 of the screen line, not text line, containing IT's current position.
1694
1695 2001-08-15 Gerd Moellmann <gerd@gnu.org>
1696
1697 * window.c (window_scroll_pixel_based): Don't recenter if
1698 PT is partially visible in the window.
1699
1700 * xterm.c (expose_window_tree, expose_window, expose_line):
1701 Return 1 when overwriting mouse-face.
1702 (expose_frame): If mouse-face was overwritten, redo it.
1703
1704 * xfaces.c (x_update_menu_appearance): Don't call
1705 set_frame_menubar, let the next redisplay do it.
1706
1707 2001-08-14 Andrew Innes <andrewi@gnu.org>
1708
1709 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1710 drawing glyph string.
1711
1712 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1713
1714 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1715 running HI-UX/MPP.
1716
1717 2001-08-14 Gerd Moellmann <gerd@gnu.org>
1718
1719 * xfaces.c (x_update_menu_appearance): Save and restore value of
1720 interrupt_input_blocked.
1721
1722 2001-08-13 Gerd Moellmann <gerd@gnu.org>
1723
1724 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1725 a line start, move back to the line start.
1726
1727 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1728 exactly when a mini-buffer is active.
1729
1730 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1731 in units of 1/8 character on non window-system frames.
1732 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1733
1734 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1735
1736 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1737 a doc string.
1738
1739 2001-08-09 Gerd Moellmann <gerd@gnu.org>
1740
1741 * keyboard.c (Vpre_help_message): New variable.
1742 (syms_of_keyboard): Initialize and staticpro it.
1743 (show_help_echo): Record current message before displaying a
1744 help-echo, and restore that message when clearing the help.
1745
1746 * xfns.c (x_create_im): Remove prototype.
1747
1748 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1749
1750 * dispnew.c (adjust_glyph_matrix): Undo last change.
1751
1752 2001-08-08 Gerd Moellmann <gerd@gnu.org>
1753
1754 * dispnew.c (adjust_glyph_matrix): In the optimization for
1755 windows whose height has changed, disable partially visible lines.
1756
1757 2001-08-07 Gerd Moellmann <gerd@gnu.org>
1758
1759 * window.c (Frecenter): If ARG < 0, and on a window system
1760 frame, count in some empty lines when we can't move -ARG lines down.
1761
1762 * xdisp.c (start_display): Don't try to determine the continuation
1763 lines width if lines are truncated. It's superfluous and leads to
1764 incorrect results if POS is not visible in the window after
1765 reseating the iterator at the previous line start.
1766
1767 2001-08-06 Gerd Moellmann <gerd@gnu.org>
1768
1769 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1770
1771 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1772
1773 * alloc.c (init_stack): Remove declaration.
1774
1775 2001-08-03 Gerd Moellmann <gerd@gnu.org>
1776
1777 * keyboard.c (read_key_sequence): Check that key is an integer
1778 before comparing it with quit_char.
1779 (add_command_key): Use larger_vector.
1780 (read_char_x_menu_prompt): Instead of converting symbol and
1781 integer events into conses (EVENT . nil), use (EVENT . disabled)
1782 which cannot be confused with valid events.
1783 (read_char): When reading from Vunread_command_events, check for
1784 events of the form (EVENT . disabled) instead of
1785 (EVENT . nil).
1786
1787 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1788 a float, determine the max height from the frame's height.
1789
1790 2001-08-02 Gerd Moellmann <gerd@gnu.org>
1791
1792 * xdisp.c (redisplay_internal): Take message_cleared_p into
1793 account only if minibuf_level == 0.
1794
1795 2001-08-01 Gerd Moellmann <gerd@gnu.org>
1796
1797 * xdisp.c (redisplay_internal): Add a check for the last
1798 displayed message.
1799
1800 * xdisp.c (message_cleared_p): New variable.
1801 (clear_message): Set message_cleared_p when clearing the current
1802 message.
1803 (redisplay_internal): Look at message_cleared_p to capture
1804 the case that the echo area should be cleared.
1805
1806 * keyboard.c (command_loop_1): Fix spelling of
1807 resize_echo_area_exactly.
1808
1809 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1810
1811 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1812
1813 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1814 current matrix when the window gets smaller.
1815
1816 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1817
1818 * print.c (strout): Cast the character passed to insert_char to
1819 unsigned char, to avoid sign extension when it is promoted to int.
1820
1821 2001-07-31 Gerd Moellmann <gerd@gnu.org>
1822
1823 * fileio.c (Finsert_file_contents): Don't treat a return value
1824 of 0 from emacs_read as an IO error.
1825
1826 2001-07-30 Gerd Moellmann <gerd@gnu.org>
1827
1828 * keyboard.c (abs): New macro.
1829 (double_click_fuzz): New variable.
1830 (make_lispy_event): Use it to determine what makes a double-click.
1831 (syms_of_keyboard): DEFVAR_INT it.
1832
1833 * xmenu.c (set_frame_menubar): Take into account that
1834 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1835 <raeburn@gnu.org>.
1836
1837 2001-07-27 Gerd Moellmann <gerd@gnu.org>
1838
1839 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1840
1841 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1842 of row's visible height.
1843
1844 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
1845 deal with the first overlay string having an image `display' property.
1846 (try_window_reusing_current_matrix, compute_line_metrics):
1847 Fix computation of row's visible height for the case that part of the
1848 row is invisible above and part of the row is at the same time
1849 invisible below the window.
1850
1851 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1852
1853 * xfns.c (x-show-tip): Doc fix.
1854
1855 * xfns.c (Vx_max_tooltip_size): New variable.
1856 (syms_of_xfns): DEFVAR_LISP it.
1857 (Fx_show_tip): Set frame's window_width to the width of the
1858 window. Use a maximum tooltip size specified by
1859 Vx_max_tooltip_size, if that has valid contents.
1860 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1861
1862 2001-07-26 Andrew Innes <andrewi@gnu.org>
1863
1864 * w32term.c (x_display_list): New variable.
1865 (w32_term_init): Set it.
1866
1867 * w32term.h (x_display_list): New extern.
1868
1869 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1870
1871 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
1872 is non-nil, instead of when redisplaying_p is non-zero.
1873 See comment there.
1874 (mark_window_display_accurate_1): Add an assertion.
1875
1876 2001-07-25 Gerd Moellmann <gerd@gnu.org>
1877
1878 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1879
1880 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1881 events so that we get a chance of processing expose events.
1882
1883 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1884
1885 2001-07-24 Gerd Moellmann <gerd@gnu.org>
1886
1887 * xfns.c (valid_image_p): Protect better against invalid image
1888 specifications. Previous code could signal an error.
1889
1890 2001-07-23 Gerd Moellmann <gerd@gnu.org>
1891
1892 * indent.c (current_column): Fix column computation in the
1893 presence of display table entries.
1894 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1895
1896 * dispnew.c (adjust_glyph_matrix): In the optimization for
1897 windows whose height has changed, use the new window height
1898 to compute which rows to invalidate.
1899
1900 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1901 (MAX_10_EXP): New macro.
1902 (Fformat): Use it.
1903
1904 * coding.c (code_convert_region): Handle the multibyte case if
1905 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1906
1907 2001-07-20 Gerd Moellmann <gerd@gnu.org>
1908
1909 * dispextern.h (struct face): Change type of `stipple' to
1910 int; it's an ID.
1911
1912 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1913
1914 2001-07-19 Gerd Moellmann <gerd@gnu.org>
1915
1916 * dispnew.c (update_window): Don't set the cursor at the end
1917 of the update if display update has been paused.
1918
1919 * composite.h (syms_of_composite): Renamed from syms_of_composition.
1920
1921 2001-07-18 Ken Raeburn <raeburn@gnu.org>
1922
1923 * fns.c (Fset_char_table_default): Check that a charset is defined
1924 before checking its dimension.
1925
1926 2001-07-17 Ken Raeburn <raeburn@gnu.org>
1927
1928 * coding.c (setup_coding_system): Don't do any designation based
1929 on reg_bits if charset is not yet defined.
1930
1931 * lisp.h (XVECTOR): Verify correct object type before returning a
1932 pointer, using eassert.
1933
1934 2001-07-17 Gerd Moellmann <gerd@gnu.org>
1935
1936 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1937 Increase to 4096 because of paste problems reported on GNU/Linux.
1938
1939 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1940
1941 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1942
1943 2001-07-16 Gerd Moellmann <gerd@gnu.org>
1944
1945 * fileio.c (unwind_read): Function removed.
1946 (read_non_regular, read_non_regular_quit): New functions.
1947 (Finsert_file_contents): When reading from non-regular files,
1948 arrange to catch a `quit' and terminate the loop. Rearrange
1949 code so that a `quit' when reading from a regular file doesn't
1950 insert text in the buffer.
1951
1952 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1953 Clear faces afterwards.
1954 (clear_font_table): Take a x_display_info parameter. Don't free
1955 fonts being the default font of any frame on the given display.
1956
1957 2001-07-13 Gerd Moellmann <gerd@gnu.org>
1958
1959 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1960 instead of CHAR_STRING which can signal an error.
1961
1962 * charset.c (char_to_string_1): Extracted from char_to_string.
1963 Return -1 instead of signaling an error.
1964 (char_to_string): Use it.
1965
1966 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1967
1968 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1969
1970 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1971 is t, don't try to append anything to it.
1972
1973 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1974
1975 * dired.c (file_name_completion): Pass dp->d_name to
1976 Fstring_match, not elt, which is always nil here.
1977
1978 2001-07-12 Gerd Moellmann <gerd@gnu.org>
1979
1980 * xselect.c (x_decline_selection_request): Handle errors
1981 caused by receivers that have vanished.
1982
1983 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1984 ignoring events on foreign windows in #if 0. Always dispatch
1985 the event after checking it with x_handle_property_notify.
1986
1987 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
1988 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1989 TRACE macros to facilitate debugging. Add additional trace statements.
1990 (toplevel): Add prototypes for file-local functions.
1991 (x_atom_to_symbol): Remove DPYINFO parameter.
1992
1993 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1994
1995 * w32menu.c (menubar_selection_callback, w32_menu_show):
1996 Initialize `entry' to nil.
1997 (w32_dialog_show): Remove unused `save_wv' variable.
1998 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1999
2000 2001-07-11 Gerd Moellmann <gerd@gnu.org>
2001
2002 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2003
2004 * fileio.c (unwind_read): Print a message when discarding inserted
2005 text or switching the buffer to unibyte. Change parameter.
2006 (Finsert_file_contents): Don't pass VISIT to unwind_read.
2007
2008 * fileio.c (unwind_read): New function.
2009 (Finsert_file_contents): Record it as unwind-function for
2010 the case that reading is interrupted by C-g.
2011
2012 2001-07-10 Gerd Moellmann <gerd@gnu.org>
2013
2014 * dispnew.c (update_window): Don't skip the header-line
2015 update when scrolling_window returns 0.
2016
2017 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2018
2019 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
2020 for the case that x_decode_color signals an error.
2021
2022 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2023
2024 2001-07-09 Gerd Moellmann <gerd@gnu.org>
2025
2026 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2027 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2028 around ioctls.
2029
2030 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2031
2032 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2033 doc string line for dos-timezone-offset.
2034
2035 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2036 inline assembly, to avoid compiler warnings.
2037 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2038 line for dos-unsupported-char-glyph.
2039
2040 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2041
2042 2001-07-05 Gerd Moellmann <gerd@gnu.org>
2043
2044 * sound.c: Include Emacs' header files with #include "...".
2045
2046 * eval.c (specbind): Additionally record the buffer that was
2047 current when a buffer-local or frame-local variable was bound.
2048
2049 2001-07-04 Gerd Moellmann <gerd@gnu.org>
2050
2051 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2052 to unibyte characters in unibyte buffers.
2053
2054 2001-07-03 Gerd Moellmann <gerd@gnu.org>
2055
2056 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2057 the frame on the binding stack. Change format of entries for
2058 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2059 (unbind_to): Handle unbinding a frame-local variable.
2060
2061 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
2062 glyphs and truncation glyphs at the end of a row from its pixel width.
2063 (dump_glyph_row): Print row's continuation_lines_width.
2064 (try_window_id): Take the shortcut if ZV is visible in the
2065 window, but there are actually no changes at ZV.
2066
2067 2001-07-02 Gerd Moellmann <gerd@gnu.org>
2068
2069 * xterm.h (x_free_dpy_colors): Add prototype.
2070
2071 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2072 right number of arguments.
2073
2074 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2075 ($(lwlibdir)TAGS): New target.
2076 (TAGS): Fix dependency list.
2077
2078 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2079 with input blocked.
2080
2081 2001-06-30 Gerd Moellmann <gerd@gnu.org>
2082
2083 * emacs.c (main): Remove extern declaration for sys_nerr, which
2084 isn't used and causes a compilation error with GCC 3.0 on
2085 FreeBSD 4.3.
2086
2087 2001-06-27 Gerd Moellmann <gerd@gnu.org>
2088
2089 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
2090 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
2091 (toplevel): Include <signal.h> and syssignal.h.
2092
2093 * sound.c (vox_configure, vox_close): Turn off atimers
2094 around ioctls.
2095
2096 2001-06-26 Gerd Moellmann <gerd@gnu.org>
2097
2098 * keyboard.c (read_char) <non_reread>: Record the previous idle
2099 start time before calling timer_stop_idle.
2100 (read_char) <reread_first>: After processing a help-echo event,
2101 restore the previous idle start time.
2102
2103 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2104 the start of invisible text.
2105 (setup_for_ellipsis): New function.
2106 (next_overlay_string): After all overlay strings have been
2107 processed, display an ellipsis if necessary.
2108 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2109 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2110
2111 * dispextern.h (struct iterator_stack_entry): Add member
2112 display_ellipsis_p.
2113
2114 2001-06-25 Gerd Moellmann <gerd@gnu.org>
2115
2116 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2117 on the value of the wait-for-wm frame parameter.
2118
2119 * xterm.h (struct x_output): Add member wait_for_wm.
2120
2121 * xfns.c (Qwait_for_wm): New variable.
2122 (x_frame_parms): Add entry for `wait-for-wm".
2123 (x_set_wait_for_wm): New function.
2124 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2125 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2126
2127 * xdisp.c (try_window_id) <all changes below window end>: Don't
2128 take this shortcut if ZV is visible in the window.
2129 (try_window_id): When checking for window start being in changed
2130 text, don't check that the buffer's size has changed.
2131
2132 2001-06-23 Richard M. Stallman <rms@gnu.org>
2133
2134 * minibuf.c (Fcompleting_read): Doc fix.
2135
2136 2001-06-19 Gerd Moellmann <gerd@gnu.org>
2137
2138 * composite.c (Ffind_composition_internal): Accept ZV
2139 and a string's end position as POS.
2140
2141 2001-06-18 Gerd Moellmann <gerd@gnu.org>
2142
2143 * composite.c (Ffind_composition_internal): Check POS
2144 for validity.
2145
2146 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2147
2148 * editfns.c (Fmessage_box): If the frame is not under a window
2149 system, output the message in the echo area.
2150
2151 2001-06-14 Richard M. Stallman <rms@gnu.org>
2152
2153 * xdisp.c (try_window_id): When EOB is visible, don't treat
2154 insertion at EOB as if it were "off the bottom of the screen."
2155
2156 2001-06-11 Andrew Innes <andrewi@gnu.org>
2157
2158 * w32proc.c (create_child): Add new parameter is_gui_app.
2159 (w32_executable_type): Add new parameter is_gui_app.
2160 (sys_spawnve): Use it.
2161 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
2162 SIGQUIT. This matches better how the signals are interpreted by
2163 MSVC compiled programs.
2164 (syms_of_ntproc): Update docstring.
2165
2166 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
2167
2168 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
2169 well otherwise note_mouse_highlight might optimize away highlighting
2170 if we pass over that same overlay again.
2171
2172 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2173
2174 * lread.c (Fload): Document that the argument is run via
2175 substitute-in-file-name.
2176
2177 2001-05-31 Gerd Moellmann <gerd@gnu.org>
2178
2179 * Makefile.in (bootstrap-doc): New target.
2180 (bootstrap-emacs): Depend on it.
2181
2182 * fileio.c (Fdo_auto_save): Don't try to create the directory of
2183 auto-save-list-file-name when shutting down Emacs, because
2184 creating the directory might signal an error, and leaves
2185 Emacs in a strange state.
2186
2187 * term.c: (tty_cursor_hidden): New variable.
2188 (update_begin): Don't call tty_hide_cursor. Clean up.
2189 (update_end, set_terminal_window, set_scroll_region): Clean up.
2190 (ring_bell, reset_terminal_modes): Clean up.
2191 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
2192 on tty_cursor_hidden.
2193 (write_glyphs): Call tty_hide_cursor.
2194
2195 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
2196
2197 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
2198
2199 2001-05-30 Gerd Moellmann <gerd@gnu.org>
2200
2201 * xfns.c (enum image_value_type): New enumerator
2202 IMAGE_STRING_OR_NIL_VALUE.
2203 (parse_image_spec): Handle it.
2204 (xbm_format, pbm_format): Use it for :foreground and :background.
2205 (xbm_load, pbm_load): Check for nil color names.
2206
2207 * xterm.c (note_mouse_highlight): If an overlapping overlay
2208 exists, but we find that we highlight the same overlay as before,
2209 don't do the highlighting again.
2210
2211 2001-05-29 Gerd Moellmann <gerd@gnu.org>
2212
2213 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
2214 Protect unibyte strings created by replacing their multibyte
2215 equivalents in menu_items.
2216
2217 * keymap.c (Fsingle_key_description): NUL-terminate the string
2218 buffer before calling build_string.
2219
2220 * callproc.c (Fcall_process): Deal with decode_coding returning
2221 CODING_FINISH_INCONSISTENT_EOL.
2222
2223 2001-05-28 Gerd Moellmann <gerd@gnu.org>
2224
2225 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
2226 an item's name with its key description in case the description
2227 is a multibyte string.
2228
2229 * keymap.c (Fsingle_key_description): Create a multibyte string
2230 only if necessary.
2231
2232 * macros.c (Fstart_kbd_macro): Doc fix.
2233
2234 * xterm.c (cursor_in_mouse_face_p): New function.
2235 (x_draw_stretch_glyph_string): Use it to choose a different GC
2236 when drawing a cursor within highlighted text.
2237
2238 * editfns.c (char_property_eq): Put in #if 0.
2239
2240 * indent.c (string_display_width): Put in #if 0.
2241
2242 * lread.c (Fload): Remove unused label.
2243
2244 * termcap.c (speeds): Put in #if 0.
2245
2246 2001-05-18 Gerd Moellmann <gerd@gnu.org>
2247
2248 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2249
2250 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2251 transformation matrix by 10.
2252
2253 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2254
2255 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2256 only if it's equal to the former foreground pixel color.
2257 (x_set_foreground_color, x_set_background_color)
2258 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2259
2260 2001-05-16 Dave Love <fx@gnu.org>
2261
2262 * insdel.c (signal_before_change, signal_after_change): Consider a
2263 local change hook which changes the buffer.
2264
2265 * process.c (read_process_output): Don't call signal_after_change
2266 and update_compositions after insert_from_string_before_markers.
2267
2268 2001-05-16 Gerd Moellmann <gerd@gnu.org>
2269
2270 * xfaces.c (split_font_name): Use the right field when
2271 checking for `[...]' syntax.
2272
2273 * buffer.c (copy_overlays): New function.
2274 (clone_per_buffer_values): Use it.
2275
2276 * buffer.h (OVERLAY_PLIST): New macro.
2277
2278 * keymap.c (Fsingle_key_description): Replace a build_string with
2279 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2280
2281 * fontset.c (Ffontset_info): Check that face is non-null
2282 before accessing its fields.
2283
2284 2001-05-15 Gerd Moellmann <gerd@gnu.org>
2285
2286 * keyboard.c (read_key_sequence): Prevent generating a fake
2287 prefix key twice.
2288
2289 * xfaces.c (split_font_name): Handle `[...]' for the right
2290 font name fields.
2291
2292 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2293 of CCL_STAT_INVALID_CMD.
2294
2295 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2296
2297 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2298 in <var> has no default value yet.
2299
2300 * xfaces.c (try_alternative_families): First try the FAMILY.
2301 And if nothing is found in the end, try again with scalable fonts.
2302 (try_font_list): Let try_alternative_families do a bit more of
2303 the work. Only use FAMILY if it is not nil.
2304 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2305
2306 2001-05-14 Gerd Moellmann <gerd@gnu.org>
2307
2308 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2309 pointer shape when show_mouse_face has already done it.
2310
2311 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
2312 full-width rows.
2313
2314 * xfaces.c (split_font_name): Make sure to leave the loop
2315 with the right value of `i'.
2316
2317 * xfaces.c (split_font_name): Handle matrix transformations
2318 in the pixel and point size fields of XLFD font names.
2319 (xlfd_point_size): Likewise.
2320
2321 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2322
2323 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
2324 (x_to_w32_font): Add prototype.
2325
2326 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2327 redefining, to avoid compiler warnings.
2328
2329 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2330
2331 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2332 (w32_get_bdf_glyph): Cast between unsigned char and char when
2333 passing arguments to subroutines, to shut up compiler warnings.
2334 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2335 GET_HEX_VAL.
2336
2337 * xfaces.c: Include keyboard.h before frame.h, not after it.
2338
2339 * widget.c: Include keyboard.h before frame.h.
2340
2341 * w32term.h (struct image, struct face): Forward declaration, to
2342 avoid compiler warnings.
2343
2344 2001-05-11 Gerd Moellmann <gerd@gnu.org>
2345
2346 * keyboard.c (read_key_sequence): Don't modify events when
2347 generating fake prefix keys (mode-line, scroll-bar, ...) since
2348 this prevents proper processing of such events when pushed back
2349 into unread-command-events.
2350
2351 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2352 actually redrawn. Make the function static.
2353 (note_mouse_highlight): Fix a case where the mouse cursor
2354 was changed back to the text cursor.
2355
2356 * xterm.h (clear_mouse_face): Remove prototype.
2357
2358 * xdisp.c (try_window_id): Fix the fix and set the right
2359 window_end_vpos.
2360
2361 * xdisp.c (try_window_id): Fix computation of window end in the
2362 case that lines were deleted at the end of the window. Add some
2363 more debug_method_adds.
2364
2365 * xfaces.c (try_alternative_families): New function.
2366 (try_font_list): Use it. If ATTRS specifies a family, check
2367 fonts from that family first.
2368 (choose_face_font): Remove code setting the family part of
2369 the pattern to nil.
2370
2371 2001-05-10 Gerd Moellmann <gerd@gnu.org>
2372
2373 * xdisp.c (try_window_id): Fix case of all changes before
2374 the window start.
2375
2376 * xdisp.c (try_window_id): Add some xasserts.
2377
2378 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2379
2380 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2381
2382 2001-05-09 Dave Love <fx@gnu.org>
2383
2384 * xdisp.c (GIVE_UP): Fix for K&R C.
2385
2386 2001-05-09 Gerd Moellmann <gerd@gnu.org>
2387
2388 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2389
2390 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2391 back to the text cursor shape without need.
2392
2393 2001-05-07 Gerd Moellmann <gerd@gnu.org>
2394
2395 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2396
2397 * dispextern.h (inverse_video): Declare extern.
2398
2399 * keyboard.c (delete_kboard): Handle the case that selected_frame
2400 has been deleted in the course of x_connection_closed.
2401
2402 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2403
2404 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2405 Fix the change from 2001-04-30.
2406
2407 2001-05-03 Gerd Moellmann <gerd@gnu.org>
2408
2409 * xfns.c (file_dialog_unmap_cb): New function.
2410 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2411 where a dialog is closed via the window manager.
2412
2413 * xdisp.c (try_window_id): Cases of changes all in front of
2414 the window start or all below the window end mostly rewritten.
2415 (redisplay_window): Move the tests if try_window_id is
2416 applicable to try_window_id.
2417 (GIVE_UP): New macro.
2418
2419 2001-05-02 Gerd Moellmann <gerd@gnu.org>
2420
2421 * xterm.c (expose_window): Return int. If W is the window
2422 currently being updated, mark the frame garbaged.
2423 Fix computation of rows intersecting the exposed rectangle.
2424 (expose_window_tree): Stop when expose_window returns 0.
2425
2426 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2427 again if it has already been drawn.
2428
2429 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2430
2431 * syntax.c (update_syntax_table): Check that oldi has the same
2432 properties as old_prop before deciding not to invalidate.
2433
2434 2001-04-30 Gerd Moellmann <gerd@gnu.org>
2435
2436 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2437 read-only text that is so because of text properties.
2438
2439 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
2440 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
2441 windows that are components of a Lucid menu bar.
2442
2443 2001-04-27 Gerd Moellmann <gerd@gnu.org>
2444
2445 * term.c (turn_on_face): Fix reverse video handling on terminals
2446 that don't support colors.
2447
2448 2001-04-26 Gerd Moellmann <gerd@gnu.org>
2449
2450 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2451 a non-buffer.
2452
2453 2001-04-25 Gerd Moellmann <gerd@gnu.org>
2454
2455 * term.c (toggle_highlight): New function.
2456 (turn_on_face): Change handling of reverse video.
2457
2458 * process.c (wait_reading_process_input):
2459 Call record_asynch_buffer_change only if a timer really changed buffers.
2460
2461 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2462 of the number of overlays to check.
2463
2464 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2465
2466 * xdisp.c (try_window_id): Fix a case where window_end_pos
2467 and window_end_bytepos were not adjusted.
2468
2469 2001-04-23 Gerd Moellmann <gerd@gnu.org>
2470
2471 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2472 zero instead of -1.
2473
2474 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2475
2476 * process.c (wait_reading_process_input) [!subprocesses]:
2477 Don't reference waiting_for_user_input_p, it's not defined in the
2478 branch without async subprocesses support.
2479
2480 2001-04-19 Gerd Moellmann <gerd@gnu.org>
2481
2482 * keyboard.c (delete_kboard): Prevent a dangling reference
2483 from current_kboard to KB, which is freed.
2484
2485 * process.c (wait_reading_process_input):
2486 Call record_asynch_buffer_change after running timers, to make
2487 read_key_sequence aware of buffer changes from under it.
2488
2489 2001-04-18 Gerd Moellmann <gerd@gnu.org>
2490
2491 * xfaces.c (Qscalable_fonts_allowed): New variable.
2492 (realizing_basic_faces_p): Removed.
2493 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2494 removed.
2495 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
2496 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2497 for scalable-fonts-allowed to t.
2498
2499 * fileio.c (Finsert_file_contents): If the file size returned from
2500 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
2501 read from files on a procfs whose contents are generated dynamically.
2502
2503 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2504
2505 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2506 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2507 (__memalign_hook): Make the two prototypes consistent.
2508
2509 2001-04-17 Gerd Moellmann <gerd@gnu.org>
2510
2511 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2512 matrix of mini-windows.
2513
2514 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2515
2516 * intervals.c (find_interval): Don't rebalance during signal handling.
2517
2518 2001-04-11 Gerd Moellmann <gerd@gnu.org>
2519
2520 * fns.c: Include blockinput.h.
2521
2522 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2523
2524 2001-04-10 Gerd Moellmann <gerd@gnu.org>
2525
2526 * fns.c (Fcompare_strings): Fix return values.
2527
2528 * window.c (window_scroll): Change the meaning of N to mean
2529 N screen-fulls or N lines.
2530 (window_scroll_pixel_based, window_scroll_line_based)
2531 (scroll_command, Fscroll_other_window): Change accordingly.
2532
2533 * window.c (window_scroll_pixel_based, Frecenter):
2534 Call window_box_height instead of using it.last_visible_y for the
2535 height of the window.
2536
2537 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2538 instead of using it.last_visible_y for the height of the window.
2539
2540 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
2541 From Dan Holmsand <dan@eyebee.com>.
2542
2543 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
2544 able to write to hidden and system files. From Dan Holmsand
2545 <dan@eyebee.com>.
2546
2547 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2548 Holmsand <dan@eyebee.com>.
2549
2550 2001-04-09 Gerd Moellmann <gerd@gnu.org>
2551
2552 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2553
2554 * window.c (window_internal_height): Return 1 less if the
2555 window has a header line.
2556
2557 * xdisp.c (try_window_id): When scrolling on a terminal, take
2558 the change of window_internal_height into account.
2559
2560 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2561
2562 * gmalloc.c (align): If the argument SIZE would overflow
2563 __malloc_ptrdiff_t, fail right away.
2564
2565 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2566
2567 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2568 Make sure the tooltip is completely visible.
2569 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2570
2571 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2572
2573 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2574
2575 2001-04-06 Dave Love <fx@gnu.org>
2576
2577 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2578 Fix test of `from'.
2579
2580 2001-04-06 Gerd Moellmann <gerd@gnu.org>
2581
2582 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
2583
2584 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2585
2586 2001-04-05 Gerd Moellmann <gerd@gnu.org>
2587
2588 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2589
2590 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
2591
2592 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2593 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2594
2595 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2596 shell widget's position only if it is non-null.
2597
2598 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2599 Set f->output_data.x->widget to null after destroying it.
2600
2601 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2602 FILENAME to bring it in synch with the documentation.
2603
2604 * xfaces.c (realizing_basic_faces_p): Renamed from
2605 realize_default_face_p.
2606 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2607 (realize_default_face): Don't set the flag.
2608
2609 2001-04-04 Gerd Moellmann <gerd@gnu.org>
2610
2611 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2612
2613 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2614
2615 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2616 the buffer that was used for echoing.
2617
2618 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2619 (first_font_matching): Removed unused function.
2620 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2621 (may_use_scalable_font_p): Remove parameter FONT; rename
2622 parameter NAME to FONT.
2623 (x_face_list_fonts): Fix missing bounds check.
2624 (realizing_default_face_p): New variable.
2625 (realize_default_face): Set and clear that flag.
2626 (x_face_list_fonts): When called during the realization of the
2627 default face, and no matching fonts are found when ignoring
2628 scalable fonts and fonts matching a regexp from
2629 face-ignored-fonts, try without ignoring fonts.
2630
2631 2001-04-03 Gerd Moellmann <gerd@gnu.org>
2632
2633 * xfns.c (postprocess_image): New function.
2634 (lookup_image): Call it for all image types except PostScript.
2635 (x_kill_gs_process): Call postprocess_image.
2636
2637 * xterm.c (x_use_underline_position_properties): New variable.
2638 (x_draw_glyph_string): Use it.
2639 (syms_of_xterm): DEFVAR_BOOL it.
2640
2641 2001-04-02 Gerd Moellmann <gerd@gnu.org>
2642
2643 * xterm.c (x_alloc_nearest_color_1): New function.
2644 (x_alloc_nearest_color): Use it.
2645 (x_color_cells): Take a Display as argument, instead of a frame.
2646 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2647 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2648 (x_initialize): Register cvt_string_to_pixel as resource converter
2649 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2650
2651 2001-03-30 Gerd Moellmann <gerd@gnu.org>
2652
2653 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2654 (set_iterator_to_next): If a string from a display property ends,
2655 consider the case that this might also be the end of an
2656 overlay string having the display property.
2657
2658 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
2659
2660 * xdisp.c (reseat_to_string): Undo last change.
2661
2662 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2663 matrix of a window when the header line changes, when
2664 new rows are allocated, or when the width changes.
2665
2666 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2667
2668 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
2669
2670 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2671
2672 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2673 deprecated.
2674
2675 2001-03-29 Gerd Moellmann <gerd@gnu.org>
2676
2677 * data.c (Fsubr_interactive_form): New function.
2678 (syms_of_data): Defsubr it.
2679
2680 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2681 (live_float_p, live_misc_p): Return 1 only if the offset of the
2682 pointer in its block is >= 0.
2683
2684 2001-03-28 Paul Eggert <eggert@twinsun.com>
2685
2686 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2687 microseconds calcuation. Avoid double-rounding problem.
2688 In doc string, warn that the result is approximate.
2689
2690 2001-03-28 Gerd Moellmann <gerd@gnu.org>
2691
2692 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2693 bind `inhibit-eval-during-redisplay' to t.
2694
2695 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2696
2697 * xdisp.c (inhibit_eval_during_redisplay)
2698 (Qinhibit_eval_during_redisplay): New variables.
2699 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2700 don't eval, return nil instead.
2701 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2702 Initialize Qinhibit_eval_during_redisplay.
2703
2704 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2705 the iterator's multibyte_p flag.
2706
2707 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2708 instead of setting it to zero; it's incremented for each frame
2709 where the menu face is changed.
2710
2711 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2712 change bottom shadow accordingly.
2713
2714 * xterm.c (expose_window_tree, expose_frame): Don't compute
2715 intersections here.
2716 (expose_window): Do it here instead.
2717 (x_draw_glyph_string): Fix a computation of the underline position.
2718
2719 * bytecode.c (BYTE_CODE_QUIT): New macro.
2720 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2721
2722 2001-03-27 Gerd Moellmann <gerd@gnu.org>
2723
2724 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2725 Give up if matrix starts in an ellipsis.
2726 (init_from_display_pos): Do nothing if POS doesn't specify
2727 a dpvec_index but the iterator has such a position.
2728
2729 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2730
2731 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2732 x/y position is (0, 0) after destroying the menu bar, restore
2733 its original position.
2734
2735 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2736 (init_from_display_pos): Use it.
2737 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2738
2739 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2740
2741 * xdisp.c (try_window_id): Undo last change.
2742
2743 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2744
2745 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2746
2747 * buffer.c (syms_of_buffer): Doc fix.
2748
2749 2001-03-26 Gerd Moellmann <gerd@gnu.org>
2750
2751 * xfaces.c (x_update_menu_appearance): Use local variable
2752 popup_path for setting font resources.
2753
2754 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2755
2756 * frame.c (Fframe_list): Don't reference tip_frame if
2757 HAVE_WINDOW_SYSTEM is not defined.
2758
2759 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2760 <wl@gnu.org>.
2761
2762 2001-03-25 Gerd Moellmann <gerd@gnu.org>
2763
2764 * xdisp.c (init_from_display_pos): Test invisible property
2765 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
2766
2767 * xdisp.c (redisplay_internal) <update one window>: Make sure
2768 last_arrow_position and last_arrow_string are set.
2769
2770 * frame.c (Fframe_list): Don't return a tooltip frame.
2771
2772 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2773
2774 * xdisp.c (mark_window_display_accurate_1): New function,
2775 extracted from mark_window_display_accurate.
2776 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
2777 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2778 (mark_window_display_accurate): Use it.
2779 (redisplay_internal): Use it for the selected window.
2780 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2781 for the selected frame.
2782
2783 * xdisp.c Use make_number, for readability.
2784 (try_window_id): Disable rows below the window end.
2785 (try_window_reusing_current_matrix): Use cursor_row_p.
2786 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2787 of rows.
2788 (init_from_display_pos): If POS specifies a position in a display
2789 vector, maybe get the iterator set up for that ellipsis.
2790
2791 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2792
2793 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2794
2795 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2796
2797 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2798
2799 * xfaces.c (x_update_menu_appearance): Use a different path
2800 for Lucid popup menus.
2801
2802 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2803
2804 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2805
2806 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2807 (string_buffer_position): Use `make_number'.
2808
2809 2001-03-22 Gerd Moellmann <gerd@gnu.org>
2810
2811 * xfaces.c (x_update_menu_appearance): Renamed from
2812 x_set_menu_face_resources. Use different resources for popups.
2813
2814 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2815 (GC_CHECK_STRING_BYTES): Don't define.
2816
2817 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2818 Removed, together with subroutines.
2819 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
2820 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
2821
2822 * dispextern.h (x_set_menu_resources_from_menu_face):
2823 Remove prototype.
2824
2825 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
2826 Remove calls to x_set_menu_resources_from_menu_face.
2827
2828 * xfaces.c (xm_set_menu_resources_from_menu_face):
2829 Remove #ifndef LESSTIF_VERSION.
2830
2831 * xmenu.c: Include widget.h.
2832 (single_submenu): Return int. Some cleanup.
2833 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2834
2835 2001-03-21 Gerd Moellmann <gerd@gnu.org>
2836
2837 * xterm.c (x_update_window_end): Handle overwritten mouse face
2838 also for tool bar windows.
2839 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2840 DRAW is DRAW_IMAGE_RAISED.
2841
2842 2001-03-20 Gerd Moellmann <gerd@gnu.org>
2843
2844 * print.c (syms_of_print): Doc fixes.
2845
2846 * fns.c (Fmd5): Doc fix.
2847
2848 2001-03-19 Gerd Moellmann <gerd@gnu.org>
2849
2850 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2851 Clear area of the frame not occupied by the scroll bar.
2852
2853 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2854 tip frame's root window buffer to *tip* right after creating
2855 the frame.
2856
2857 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2858 is an integer don't have to be for space characters.
2859
2860 2001-03-16 Gerd Moellmann <gerd@gnu.org>
2861
2862 * indent.c (current_column, current_column_1, Fmove_to_column)
2863 (compute_motion): Handle characters from display vectors differently.
2864
2865 2001-03-15 Kenichi Handa <handa@etl.go.jp>
2866
2867 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2868 drawing glyph string.
2869
2870 2001-03-15 Gerd Moellmann <gerd@gnu.org>
2871
2872 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2873 (command_loop_1): Undo last change.
2874
2875 * xterm.c (fast_find_position): Return the correct vpos.
2876
2877 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
2878 non-null, set a per-buffer value in BUF instead of the current buffer.
2879 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2880 Call store_symval_forwarding with BUF null.
2881 (set_internal): Call store_symval_forwarding with the BUF
2882 parameter passed to set_internal. Formerly, the value was always
2883 set in the current buffer; the buffer recorded in specbind for
2884 this case wasn't used.
2885 (arith_driver): Reindent.
2886
2887 * buffer.c (swap_out_buffer_local_variables):
2888 Call store_symval_forwarding with BUF null.
2889
2890 * lisp.h (store_symval_forwarding): Change prototype.
2891
2892 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2893
2894 2001-03-14 Gerd Moellmann <gerd@gnu.org>
2895
2896 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2897 FOR_DELETION. Avoid resizing the mini-window of the selected
2898 frame if FOR_DELETION is set.
2899 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2900 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2901 signature.
2902
2903 * window.c (Fset_window_configuration): Change call to
2904 do_switch_frame to new format.
2905
2906 * keyboard.c (quit_throw_to_read_char): Change call to
2907 do_switch_frame to new format.
2908
2909 * lisp.h (do_switch_frame): Change prototype.
2910
2911 * frame.c (Fframe_parameters): In the `buffer-list' frame
2912 parameter, store the buffer list of FRAME, not the list of the
2913 selected frame.
2914
2915 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2916 box just because the glyph row's full_width_p flag is set.
2917
2918 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2919
2920 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2921 skip the padding blanks inserted in extend_face_to_end_of_line,
2922 before checking for trailing whitespace.
2923
2924 2001-03-13 Gerd Moellmann <gerd@gnu.org>
2925
2926 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
2927 Remove special handling for LessTif/Motif.
2928 (toplevel): Don't include Xm/Xm.h.
2929
2930 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2931 Remove workaround code for LessTif; it doesn't work anymore.
2932
2933 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
2934 Xm/ScrollBarP.h.
2935
2936 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2937 Don't access private scroll bar data; it's no longer necessary with
2938 contemporary LessTif.
2939
2940 * xfaces.c (xm_set_menu_resources_from_menu_face):
2941 Change #if 0 to #ifndef LESSTIF_VERSION.
2942
2943 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2944 removing button grabs.
2945
2946 2001-03-13 Kenichi Handa <handa@etl.go.jp>
2947
2948 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2949 and clip-large-size-font as obsolete.
2950
2951 * lread.c (read_multibyte): Check the validity of multibyte
2952 sequence. If invalid, return the first byte.
2953
2954 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2955
2956 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2957 before running the command; timer functions or process
2958 filters may have set it.
2959
2960 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2961
2962 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2963 Doc fix.
2964
2965 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2966
2967 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2968 to sprintf.
2969
2970 2001-03-09 Gerd Moellmann <gerd@gnu.org>
2971
2972 * dispextern.h (string_buffer_position): Add prototype.
2973
2974 * xdisp.c (string_buffer_position, display_prop_string_p)
2975 (single_display_prop_string_p): New functions.
2976
2977 * xterm.c (note_mouse_highlight): If there's no help-echo on
2978 a string, look at the buffer text ``under'' it.
2979
2980 * keyboard.c (make_lispy_event): Add string info to the event,
2981 analogous to what's done on mode lines.
2982 (read_key_sequence): For a click on a string, consider `local-map'
2983 and `keymap' of that string.
2984
2985 * keyboard.c (make_lispy_event, make_lispy_movement):
2986 Adjust calls to buffer_posn_from_coords to new format.
2987
2988 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2989
2990 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2991 POS; return void.
2992
2993 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2994 flags argument to emacs_open; it seems to conflict with O_EXCL.
2995
2996 2001-03-09 Kenichi Handa <handa@etl.go.jp>
2997
2998 * composite.h (struct composition): Change types of members;
2999 glyph_len to unsigned, width to unsigned short.
3000
3001 2001-03-08 Andrew Innes <andrewi@gnu.org>
3002
3003 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3004 menu titles.
3005
3006 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3007
3008 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3009 instead of nil.
3010
3011 * xterm.c (note_mouse_highlight): Handle mouse-face and
3012 help-echo in strings.
3013 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3014 (fast_find_string_pos): New function.
3015
3016 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3017 (display_string): Call face_at_string_position with new parameter.
3018
3019 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3020 Handle `mouse-face'.
3021
3022 * dispextern.h (face_at_string_position): Change prototype.
3023
3024 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
3025
3026 * keyboard.c (make_lispy_event): Avoid generating drag events
3027 if the mouse hasn't actually moved to another buffer position.
3028
3029 2001-03-08 Dave Love <fx@gnu.org>
3030
3031 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
3032
3033 2001-03-08 Gerd Moellmann <gerd@gnu.org>
3034
3035 * process.c (Fset_process_window_size): Fix a typo.
3036
3037 2001-03-08 Kenichi Handa <handa@etl.go.jp>
3038
3039 * coding.c (detect_coding_sjis): Do more rigid check.
3040 (detect_coding_big5): Likewise.
3041 (decode_coding_sjis_big5): Likewise.
3042 (Fdetect_coding_region): Call detect_coding_system with tailing
3043 anchor byte `\0' for more rigid detection.
3044 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
3045 (Fdetect_coding_string): Likewise.
3046
3047 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3048
3049 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3050 a string before extracting its data.
3051
3052 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3053
3054 * window.c (Frecenter): Rewrite code handling negative values
3055 of ARG on graphical frames.
3056
3057 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3058
3059 * window.c (displayed_window_lines): If W->start is outside the
3060 accessible portion of the buffer, call start_display with BEGV or
3061 ZV instead of W->start.
3062
3063 2001-03-07 Gerd Moellmann <gerd@gnu.org>
3064
3065 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3066
3067 * process.c (Fset_process_filter): Don't crash if the input
3068 file descriptor of PROCESS is closed.
3069 (Fset_process_window_size): Likewise.
3070
3071 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3072
3073 * xterm.c (XTflash): Make the timeout of select shorter, and call
3074 select repeatedly until the desired time expires.
3075
3076 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3077
3078 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3079
3080 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3081
3082 * lisp.h (Vwindow_list): Declare extern.
3083
3084 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3085
3086 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3087
3088 2001-03-06 Gerd Moellmann <gerd@gnu.org>
3089
3090 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3091 to detect a case where we have to highlight a different region
3092 despite not having left the currently highlighted region.
3093 Set mouse_face_overlay in the x_display_info.
3094 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
3095
3096 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3097
3098 * buffer.c (mouse_face_overlay_overlaps): New function.
3099
3100 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3101 (Qmouse_face): Declare extern.
3102
3103 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3104 if face_change_count is non-zero.
3105
3106 2001-03-06 Kenichi Handa <handa@etl.go.jp>
3107
3108 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3109 that the source is unibyte.
3110
3111 2001-03-05 Dave Love <fx@gnu.org>
3112
3113 * xterm.c (XTmouse_position): Fix typo.
3114
3115 2001-03-05 Gerd Moellmann <gerd@gnu.org>
3116
3117 * minibuf.c (read_minibuf): Clean up the binding stack if
3118 called noninteractively.
3119
3120 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3121
3122 * coding.c (syms_of_coding): Docstring modified.
3123
3124 2001-03-05 Kenichi Handa <handa@etl.go.jp>
3125
3126 * charset.c (char_to_string): If a single byte char has modifier
3127 bits that can't be reflected to the character code, ignore them
3128 instead of signaling an error.
3129
3130 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3131
3132 * s/msdos.h: Update copyright notice.
3133
3134 * dosfns.h: Update copyright notice.
3135
3136 * dosfns.c: Update copyright notice.
3137
3138 * msdos.c: Update copyright notice.
3139
3140 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3141
3142 * xterm.c (glyph_rect): New function.
3143 (XTmouse_position): Use it to raise the threshold for mouse
3144 movement event generation.
3145
3146 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3147
3148 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
3149 specifies (reverse . t), reverse the initial screen colors.
3150 (IT_set_frame_parameters): If the property is foreground-color,
3151 but we are reversing the colors, set bg_set, not fg_set.
3152 Likewise for setting background-color and reversing: set fg_set.
3153 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
3154 in effect.
3155
3156 * xfaces.c (Finternal_set_lisp_face_attribute)
3157 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
3158 parameters alist.
3159
3160 2001-03-02 Gerd Moellmann <gerd@gnu.org>
3161
3162 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
3163 to a single slash in the middle of file names.
3164
3165 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
3166 Accept only alphanumeric time zone names.
3167
3168 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
3169 or width area.
3170 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3171 a widget to zero height.
3172
3173 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3174
3175 * window.c (Fwindow_end): Call move_it_past_eol only if
3176 ending up on a partially visible line.
3177
3178 2001-03-01 Dave Love <fx@gnu.org>
3179
3180 * ccl.c (Fccl_execute): Doc fix.
3181
3182 2001-03-01 Gerd Moellmann <gerd@gnu.org>
3183
3184 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
3185 of the tool bar before calling x_figure_window_size.
3186
3187 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
3188 NULL after destroying it, otherwise XTread_socket can access a
3189 destroyed widget when input is unblocked.
3190
3191 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
3192
3193 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
3194 same name as before, although there was a change in fontsets.
3195
3196 2001-02-28 Ken Raeburn <raeburn@gnu.org>
3197
3198 * lisp.h (Fframe_parameter): Declare.
3199
3200 * window.c (set_window_buffer): Field vscroll is an int, not a
3201 Lisp_Object.
3202
3203 2001-02-28 Gerd Moellmann <gerd@gnu.org>
3204
3205 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
3206 NULL instead.
3207
3208 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
3209 NULL instead.
3210
3211 * alloc.c (toplevel): Include process.h.
3212 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
3213 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
3214 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
3215 (allocate_vector, allocate_hash_table, allocate_window)
3216 (allocate_frame, allocate_process, allocate_other_vector):
3217 New functions.
3218 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
3219 (mark_maybe_pointer): New function.
3220 (mark_memory): Also mark Lisp data to which only pointers
3221 remain and not Lisp_Objects.
3222 (min_heap_address, max_heap_address): New variables.
3223 (mem_find): Return MEM_NIL if START is below min_heap_address or
3224 above max_heap_address.
3225 (mem_insert): Compute min_heap_address and max_heap_address.
3226
3227 * process.c (make_process): Use allocate_process.
3228
3229 * frame.c (make_frame): Use allocate_frame.
3230
3231 * window.c (make_window, make_dummy_parent): Use allocate_window.
3232 (Fcurrent_window_configuration): Use allocate_other_vector.
3233
3234 * lisp.h (allocate_vectorlike): Remove prototype.
3235 (allocate_vector, allocate_other_vector, allocate_frame)
3236 (allocate_window, allocate_process, allocate_hash_table):
3237 Add prototypes.
3238
3239 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3240 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3241
3242 2001-02-27 Kenichi Handa <handa@etl.go.jp>
3243
3244 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3245 treat the produced bytes as a valid multibyte sequence.
3246
3247 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
3248 (ccl_driver) <CCL_WriteMultibyteChar2>:
3249 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
3250 <ccl_finish>: Set ccl->eight_bit_control properly.
3251
3252 * ccl.h (struct ccl_program): New member eight_bit_control.
3253
3254 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3255
3256 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3257 accessible_keymaps_char_table.
3258 (accessible_keymaps_char_table): Obey `is_metized'.
3259 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3260 Lisp_Object.
3261
3262 2001-02-26 Gerd Moellmann <gerd@gnu.org>
3263
3264 * dispnew.c: Check HAVE_TERM_H before including term.h.
3265
3266 2001-02-24 Andrew Innes <andrewi@gnu.org>
3267
3268 * makefile.w32-in: Update copyright notice.
3269
3270 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3271
3272 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3273
3274 2001-02-24 Kenichi Handa <handa@etl.go.jp>
3275
3276 * Makefile.in (lisp): Add international/utf-8.elc.
3277
3278 * fontset.c (Fnew_fontset): Fix handling of the case that an
3279 element of FONTLIST is a cons of family and registry.
3280
3281 2001-02-23 Jason Rumney <jasonr@gnu.org>
3282
3283 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3284 to height unconditionally.
3285
3286 * w32term.c (x_set_glyph_string_background_width): Extend the
3287 background face to the end of the drawing area in the text area, only.
3288 (x_insert_glyphs): Call window_box_left to obtain the left
3289 x-coordinate of the area to shift.
3290
3291 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3292 safe_run_hooks.
3293
3294 2001-02-22 Andrew Innes <andrewi@gnu.org>
3295
3296 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
3297 ($(BLD)\dispnew.obj):
3298 ($(BLD)\editfns.obj):
3299 ($(BLD)\fileio.obj):
3300 ($(BLD)\filelock.obj):
3301 ($(BLD)\keyboard.obj):
3302 ($(BLD)\w32proc.obj):
3303 ($(BLD)\process.obj):
3304 ($(BLD)\sysdep.obj): Ditto.
3305
3306 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3307 header files.
3308 ($(BLD)/dispnew.$(O)):
3309 ($(BLD)/editfns.$(O)):
3310 ($(BLD)/fileio.$(O)):
3311 ($(BLD)/filelock.$(O)):
3312 ($(BLD)/keyboard.$(O)):
3313 ($(BLD)/w32proc.$(O)):
3314 ($(BLD)/process.$(O)):
3315 ($(BLD)/sysdep.$(O)): Ditto.
3316
3317 2001-02-22 Gerd Moellmann <gerd@gnu.org>
3318
3319 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3320 at the start of the function, check that the \n in it->c is
3321 from the iterator's current position.
3322
3323 * xdisp.c (handle_single_display_prop): Add parameter
3324 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3325 properties which replace the display of text with something else.
3326 (handle_display_prop): Call handle_single_display_prop with
3327 additional argument saying if we already replaced text display
3328 with something else. Use AREF.
3329 (with_echo_area_buffer_unwind_data, display_menu_bar)
3330 (decode_mode_spec_coding): Use AREF and ASIZE.
3331
3332 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3333 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3334 * vmstime.h: Files removed.
3335
3336 * unexencap.c, unexfx2800.c: Files removed.
3337
3338 * dispnew.c (direct_output_for_insert): Give up if we are showing
3339 a message or just cleared the message because we might need to
3340 resize the echo area window or display an empty echo area.
3341
3342 2001-02-21 Gerd Moellmann <gerd@gnu.org>
3343
3344 * xdisp.c (redisplay_internal): Do the
3345 mark_window_display_accurate after all windows have been
3346 redisplayed because this call resets flags in buffers which are
3347 needed for proper redisplay.
3348
3349 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3350 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
3351 the old names.
3352
3353 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3354 busy_window to hourglass_window, busy_p to hourglass_p.
3355
3356 * msdos.h (struct x_output): Rename busy_window to
3357 hourglass_window, busy_p to hourglass_p.
3358
3359 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3360 busy_window to hourglass_window, busy_p to hourglass_p.
3361
3362 * xfns.c: Rename everything containing *busy_cursor* and similar
3363 to *hourglass*.
3364 (syms_of_w32fns): Rename x-busy-pointer-shape to
3365 x-hourglass-pointer-shape, display-busy-cursor to
3366 display-hourglass, busy-cursor-delay to hourglass-delay.
3367
3368 * w32fns.c: Rename everything containing *busy_cursor* and similar
3369 to *hourglass*.
3370 (syms_of_w32fns): Rename x-busy-pointer-shape to
3371 x-hourglass-pointer-shape, display-busy-cursor to
3372 display-hourglass, busy-cursor-delay to hourglass-delay.
3373
3374 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3375 of its busy_p flag.
3376
3377 * dispextern.h (start_hourglass, cancel_hourglass)
3378 (display_hourglass_p): Renamed from *busy_cursor*.
3379
3380 2001-02-20 Gerd Moellmann <gerd@gnu.org>
3381
3382 * keyboard.c (read_char): When an event from unread-command-events
3383 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3384
3385 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3386 equal to the current buffer.
3387
3388 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3389 nil, otherwise we're left with truncate_lines t when a message
3390 is printed with message-truncate-lines bound to t.
3391
3392 2001-02-19 Gerd Moellmann <gerd@gnu.org>
3393
3394 * window.c (Fmove_to_window_line): Undo last change.
3395 (displayed_window_lines): Call line_bottom_y to determine
3396 the line's bottom position.
3397
3398 * dispextern.h (line_bottom_y): Add prototype.
3399
3400 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
3401 (pos_visible_p): Use it.
3402
3403 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3404 set redisplaying_p to 0 here instead of in Frecursive_edit.
3405 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3406 set redisplaying_p.
3407
3408 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
3409 New variables.
3410 (syms_of_xdisp): Initialize new variables.
3411 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3412 Specbind `inhibit-menubar-update' when updating the menu bar.
3413
3414 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3415 safe_run_hooks.
3416
3417 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3418 safe_run_hooks.
3419
3420 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3421 is null.
3422
3423 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3424 to the start of the file.
3425
3426 2001-02-16 Gerd Moellmann <gerd@gnu.org>
3427
3428 * window.c (set_window_buffer): Fix last change.
3429
3430 * window.c (set_window_buffer): Set window's vscroll to 0.
3431
3432 * window.c (coordinates_in_window): Increase width of area
3433 where the vertical line can be dragged.
3434
3435 * xterm.c (x_set_glyph_string_background_width): Extend the
3436 background face to the end of the drawing area in the text
3437 area, only.
3438
3439 * xdisp.c (handle_single_display_prop): Set iterator's position
3440 to where the `display' property starts, like for images.
3441 (dump_glyph): New function.
3442 (dump_glyph_row): Use it. Dump info about marginal areas.
3443
3444 * dispnew.c (direct_output_for_insert): Recognize more cases where
3445 glyphs can be written instead of being inserted.
3446
3447 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3448 the left x-coordinate of the area to shift.
3449
3450 * dired.c (directory_files_internal): Set result list to nil
3451 before retrying.
3452
3453 2001-02-15 Kenichi Handa <handa@etl.go.jp>
3454
3455 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3456 invalid multibyte sequence, treat *SRC as a character of
3457 eight-bit-graphic.
3458
3459 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3460
3461 * textprop.c (Fset_text_properties): Doc fix.
3462
3463 2001-02-15 Gerd Moellmann <gerd@gnu.org>
3464
3465 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3466
3467 2001-02-14 Dave Love <fx@gnu.org>
3468
3469 * coding.c: Doc and message fixes.
3470
3471 2001-02-14 Andrew Innes <andrewi@gnu.org>
3472
3473 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3474 Emacs frame above the screen size.
3475
3476 2001-02-14 Gerd Moellmann <gerd@gnu.org>
3477
3478 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3479
3480 2001-02-13 Gerd Moellmann <gerd@gnu.org>
3481
3482 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3483 case that TO ends up beyond ZV after running before-change-functions.
3484
3485 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3486 the selected window if it is showing the buffer in question.
3487
3488 * dired.c (directory_files_internal): Initialize errno.
3489 (toplevel): Include errno.h.
3490
3491 2001-02-13 Kenichi Handa <handa@etl.go.jp>
3492
3493 * xfaces.c (best_matching_font): New parameter width_ratio.
3494 Multiply avgwidth by width_ratio.
3495 (choose_face_font): Call best_matching_font with width_ratio
3496 calculated from the column width of C.
3497
3498 2001-02-12 Andrew Innes <andrewi@gnu.org>
3499
3500 The following changes are to draw box lines inside characters area
3501 if line-width is negative.
3502
3503 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3504 face->box_line_width is negative.
3505 (x_produce_stretch_glyph): Likewise.
3506 (x_produce_glyphs): Likewise.
3507 (x_estimate_mode_line_height): Likewise.
3508 (x_draw_glyph_string_background): Likewise.
3509 (x_draw_glyph_string_foreground): Likewise.
3510 (x_draw_composite_glyph_string_foreground): Likewise.
3511 (x_draw_glyph_string_box): Likewise.
3512 (x_draw_image_foreground): Likewise.
3513 (x_draw_image_relief): Likewise.
3514 (x_draw_image_foreground_1): Likewise.
3515 (x_draw_image_glyph_string): Likewise.
3516
3517 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3518
3519 The following changes are to draw box lines inside characters area
3520 if line-width is negative.
3521
3522 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3523 face->box_line_width is negative.
3524 (x_produce_stretch_glyph): Likewise.
3525 (x_produce_glyphs): Likewise.
3526 (x_estimate_mode_line_height): Likewise.
3527 (x_draw_glyph_string_background): Likewise.
3528 (x_draw_glyph_string_foreground): Likewise.
3529 (x_draw_composite_glyph_string_foreground): Likewise.
3530 (x_draw_glyph_string_box): Likewise.
3531 (x_draw_image_foreground): Likewise.
3532 (x_draw_image_relief): Likewise.
3533 (x_draw_image_foreground_1): Likewise.
3534 (x_draw_image_glyph_string): Likewise.
3535
3536 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3537 and :line-width can be negative.
3538 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
3539
3540 2001-02-09 Jason Rumney <jasonr@gnu.org>
3541
3542 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3543 characters the same as ASCII and latin-1.
3544 (x_display_and_set_cursor): Check for the focus frame's selected
3545 window instead of selected_window.
3546 (x_after_update_window_line): Don't clear if frame's internal
3547 border width is zero.
3548 (x_new_font): Don't change a tooltip's size.
3549 (w32_initialize): Set char_ins_del_ok to 1.
3550
3551 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3552 (x_set_font): If font hasn't changed, avoid recomputing
3553 faces and other things.
3554 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3555 (Fx_create_frame): Add the tool bar height to the frame height.
3556 (x_create_tip_frame): Prevent changing the tooltip's
3557 background color by specifying a color for the default font
3558 in .Xdefaults.
3559 (Qcancel_timer): New variable.
3560 (syms_of_w32fns): Initialize and staticpro it.
3561 (Fx_hide_tip, Fx_show_tip): Use it.
3562 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3563 the timer.
3564 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3565
3566 * w32.c (init_environment): Duplicate local string before putenv.
3567
3568 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3569
3570 * charset.c (Fstring): A typo.
3571
3572 2001-02-09 Kenichi Handa <handa@etl.go.jp>
3573
3574 * charset.c (Fstring): If all arguments are less than 256, return
3575 a unibyte string.
3576
3577 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3578 return a unibyte string.
3579
3580 * coding.c (code_convert_region): After detecting a coding, if
3581 nothing found, set coding->composing to COMPOSITION_NO.
3582 (decode_coding_string): Likewise.
3583
3584 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3585
3586 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3587 to avoid overflow.
3588
3589 2001-02-07 Kenichi Handa <handa@etl.go.jp>
3590
3591 * charset.c (parse_str_to_multibyte): New function.
3592
3593 * charset.h (parse_str_to_multibyte): Extern it.
3594
3595 * print.c (print_string): If we are going to print a unibyte
3596 string into a multibyte buffer, convert the string to multibyte by
3597 str_to_multibyte.
3598
3599 2001-02-06 Andrew Innes <andrewi@gnu.org>
3600
3601 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3602 been created. It seems we can get sent window messages such as
3603 WM_ERASEBKGND before we properly update a frame.
3604
3605 2001-02-06 Gerd Moellmann <gerd@gnu.org>
3606
3607 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3608 Avoid some unnecessary cursor positioning.
3609
3610 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3611
3612 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
3613 (LFACE_AVGWIDTH): New macro.
3614 (LFACEP): Use AREF.
3615 (check_lface_attrs): Check LFACE_AVGWIDTH.
3616 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3617 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3618 (merge_face_vectors): Check LFACE_AVGWIDTH.
3619 (Finternal_make_lisp_face): Use AREF.
3620 (xm_set_menu_resources_from_menu_face)
3621 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3622 (Finternal_lisp_face_empty_p): Use AREF.
3623 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3624 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3625 Compare average widths..
3626 (best_matching_font): Arrange for comparing average widths.
3627
3628 * dispextern.h (enum lface_attribute_index):
3629 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3630
3631 2001-02-05 Dave Love <fx@gnu.org>
3632
3633 * puresize.h: Revert last change following loadup.el change.
3634
3635 2001-02-05 Andrew Innes <andrewi@gnu.org>
3636
3637 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3638 invocation of temacs, to work with Windows 2000.
3639 (bootstrap-emacs): Ditto.
3640
3641 2001-02-05 Gerd Moellmann <gerd@gnu.org>
3642
3643 * xterm.c (x_display_and_set_cursor): Check for the focus
3644 frame's selected window instead of selected_window.
3645
3646 * xdisp.c (try_scrolling): If point is in the line below the
3647 window, make sure to move the iterator at least a canonical
3648 char height down.
3649
3650 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
3651
3652 2001-02-05 Kenichi Handa <handa@etl.go.jp>
3653
3654 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3655 If invalid, execute CCL_INVALID_CMD.
3656 (ccl_driver): If the CCL program is terminated because of
3657 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3658 destination instead of throwing them away.
3659
3660 2001-02-02 Gerd Moellmann <gerd@gnu.org>
3661
3662 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3663 faces and other things.
3664
3665 * xdisp.c (get_next_display_element): Fix case of empty
3666 display table entry.
3667
3668 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3669
3670 * editfns.c (Fconstrain_to_field): Doc fix.
3671
3672 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3673 into `thoroughly', to make it consistent with the doc string.
3674
3675 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3676
3677 2001-02-01 Gerd Moellmann <gerd@gnu.org>
3678
3679 * search.c (search_buffer): Call set_search_regs with a byte
3680 position, not a character position.
3681
3682 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3683 minibuffer-only,
3684
3685 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3686
3687 * frame.c (Fmodify_frame_parameters): Doc fix.
3688
3689 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3690
3691 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3692 identifier which is not reserved by Standard C.
3693
3694 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3695
3696 * window.c (enum window_part): New enumeration.
3697 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3698 Qright_bitmap_area.
3699 (coordinates_in_window): Return an enumerator from enum
3700 window_part. Fix handling of right scroll bar.
3701 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3702 `right-fringe' instead of `left-bitmap-area' and
3703 `right-bitmap-area'. Use enumerators from enum window_part
3704 instead of hard-coded integers.
3705 (check_window_containing, window_from_coordinates):
3706 Use enumerators from enum window_part instead of hard-coded integers.
3707 (syms_of_window): Replace Qleft_bitmap_area and
3708 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3709
3710 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3711
3712 * editfns.c (Fformat_time_string): Doc fix.
3713
3714 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3715
3716 * keymap.c (Fwhere_is_internal): Use the first valid binding
3717 if no ascii binding is found (when firstonly is t).
3718
3719 2001-01-31 Gerd Moellmann <gerd@gnu.org>
3720
3721 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3722 instead of Finteractive_p.
3723
3724 * lisp.h (interactive_p): Add prototype.
3725
3726 * eval.c (interactive_p): New function.
3727 (Finteractive_p): Use it.
3728
3729 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3730
3731 2001-01-31 Dave Love <fx@gnu.org>
3732
3733 * .gdbinit (hook-run): Define to run xreload.
3734
3735 * textprop.c (Fset_text_properties): Fix newline in doc string.
3736
3737 2001-01-30 Gerd Moellmann <gerd@gnu.org>
3738
3739 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3740 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
3741
3742 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
3743 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
3744 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3745
3746 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3747 height.
3748
3749 2001-01-30 Dave Love <fx@gnu.org>
3750
3751 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3752 AFTER_POTENTIAL_GC.
3753
3754 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3755
3756 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3757 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
3758
3759 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3760
3761 * textprop.c (Fset_text_properties): Doc fix.
3762
3763 2001-01-29 Gerd Moellmann <gerd@gnu.org>
3764
3765 * xdisp.c (forward_to_next_line_start): Remove xassert.
3766
3767 2001-01-29 Jason Rumney <jasonr@gnu.org>
3768
3769 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
3770 returning without releasing it.
3771
3772 2001-01-29 Kenichi Handa <handa@etl.go.jp>
3773
3774 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3775 for '^', '$', and '\0'.
3776
3777 2001-01-28 Andrew Choi <akochoi@i-cable.com>
3778
3779 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3780 regex for '^', '$', and '\0'.
3781
3782 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3783 only if current_sblock has been initialized.
3784
3785 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3786 terminal frame even if it is the only visible frame.
3787
3788 2001-01-28 Kenichi Handa <handa@etl.go.jp>
3789
3790 * fontset.c (font_family_registry): Even if FONTNAME conform to
3791 XLFD, if it specifies other fields than family and registry,
3792 return FONTANME. New argument FORCE if nonzero cancel that feature.
3793 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
3794 a signle byte character. Don't set FAMILY part to nil here.
3795 It is handled by the caller choose_face_font.
3796 (Fnew_fontset): Call font_family_registry with FORCE 0.
3797 (Fset_fontset_font): Likewise.
3798
3799 2001-01-27 Gerd Moellmann <gerd@gnu.org>
3800
3801 * xdisp.c (display_line): Don't treat a newline as fitting
3802 on the line.
3803
3804 2001-01-26 Gerd Moellmann <gerd@gnu.org>
3805
3806 * window.c (size_window): Set the window's orig_top to nil when
3807 changing heights, so that a future shrink_mini_window won't
3808 restore a bogus height.
3809
3810 * frame.c (do_switch_frame): If selected frame has a mini-window,
3811 resize that to exact size.
3812
3813 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3814
3815 * xdisp.c (display_line): Simplify check for glyphs fitting
3816 entirely in the line.
3817
3818 * xfns.c (xic_style): New variable.
3819 (create_frame_xic): Move static variable to global scope for
3820 the case that `static' gets defined away.
3821
3822 2001-01-26 Kenichi Handa <handa@etl.go.jp>
3823
3824 * coding.c (decode_coding): Set a flag for inhibiting
3825 inconsistent eol.
3826 (code_convert_region): Always set saved_coding_symbol.
3827 (decode_coding_string): Likewise. Update coding->symbol when we
3828 encounter a inconsistent eol by the same way as code_convert_region.
3829
3830 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3831
3832 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3833 XClearArea.
3834
3835 * xterm.c (x_after_update_window_line): Don't clear if frame's
3836 internal border width is zero.
3837 (x_clear_area): New function.
3838 (x_after_update_window_line, x_clear_end_of_line)
3839 (x_scroll_bar_create, x_scroll_bar_set_handle)
3840 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3841 instead of XClearArea.
3842
3843 * xterm.h (x_clear_area): Add prototype.
3844
3845 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3846 which doesn't seem necessary anymore with Lesstif 0.92.
3847
3848 2001-01-25 Dave Love <fx@gnu.org>
3849
3850 * puresize.h (BASE_PURESIZE): Up to 720000.
3851
3852 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3853
3854 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3855
3856 * xdisp.c (echo_area_display): Don't call redisplay_internal
3857 when Emacs is shutting down. We can't run hooks etc. that
3858 would be necessary to do a redisplay.
3859
3860 * lread.c (read_integer): Use type EMACS_INT instead of int.
3861
3862 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3863
3864 * ccl.c (ccl_driver): Fix last change.
3865
3866 2001-01-25 Kenichi Handa <handa@etl.go.jp>
3867
3868 * ccl.h (sturct ccl_program): New member suppress_error.
3869
3870 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
3871 insert error message to the output.
3872 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3873
3874 * coding.h (struct coding_system): New member suppress_error.
3875
3876 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3877 (Fset_terminal_coding_system_internal): Set the member
3878 suppress_error to 1.
3879 (Fset_safe_terminal_coding_system_internal): Likewise.
3880
3881 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3882
3883 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3884 as if it was a `charset'.
3885
3886 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3887
3888 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3889 value in where_is_cache; the next lookup in the cache returns
3890 something bogus if we do.
3891
3892 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3895 if HAVE_WINDOW_SYSTEM isn't defined.
3896
3897 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3898
3899 * fns.c (sweep_weak_table): Fix code taking items out of
3900 the hash collision chain. Some cleanup.
3901
3902 * xterm.c (x_new_font): Don't change a tooltip's size.
3903
3904 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3905 background color by specifying a color for the default font
3906 in .Xdefaults.
3907
3908 2001-01-24 Kenichi Handa <handa@etl.go.jp>
3909
3910 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3911 a workaround for SunOS 4's cc.
3912 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3913 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3914 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3915 statement.
3916
3917 2001-01-23 Gerd Moellmann <gerd@gnu.org>
3918
3919 * xterm.c (x_set_window_size_1): New function extracted from
3920 x_set_window_size.
3921 (x_set_window_size): Use it.
3922 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3923 doesn't have a widget, like tooltips.
3924
3925 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3926
3927 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3928
3929 2001-01-23 Kenichi Handa <handa@etl.go.jp>
3930
3931 * fns.c (Fset_char_table_default): Fix to make sub char-table
3932 correctly.
3933
3934 2001-01-22 Gerd Moellmann <gerd@gnu.org>
3935
3936 * xdisp.c (build_desired_tool_bar_string): Make sure we have
3937 a desired tool bar string, even if there are no tool bar items.
3938
3939 * xdisp.c (Ftool_bar_lines_needed): New function.
3940 (syms_of_xdisp): Defsubr it.
3941
3942 * editfns.c (Fformat): Don't extend text properties from arguments
3943 to padding chars in the result.
3944
3945 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3946
3947 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3948
3949 2001-01-20 Andrew Innes <andrewi@gnu.org>
3950
3951 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
3952 (w32_initialize): Don't set term hooks that aren't actually needed
3953 in windowed mode.
3954
3955 * xfaces.c (realize_default_face):
3956 (realize_face):
3957 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3958
3959 * xdisp.c (handle_single_display_prop): Remove references to
3960 FRAME_W32_CONSOLE_P.
3961
3962 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
3963
3964 * frame.h (output_method): Remove output_w32_console method.
3965 (FRAME_W32_CONSOLE_P): Remove macro.
3966
3967 * frame.c (Qw32_console): Remove variable.
3968 (Fframep): Remove references to it.
3969 (syms_of_frame): Ditto.
3970 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3971
3972 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3973 redefinition.
3974
3975 2001-01-20 Kenichi Handa <handa@etl.go.jp>
3976
3977 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3978
3979 2001-01-19 Andrew Innes <andrewi@gnu.org>
3980
3981 * w32.c (init_environment): Add a version-independent site-lisp
3982 directory to EMACSLOADPATH, after the version dependent one.
3983
3984 2001-01-19 Gerd Moellmann <gerd@gnu.org>
3985
3986 * editfns.c (Fbuffer_substring): Doc fix.
3987
3988 * xdisp.c (message_dolog, message2, message2_nolog):
3989 Rename parameter LEN to NBYTES.
3990
3991 2001-01-19 Kenichi Handa <handa@etl.go.jp>
3992
3993 * charset.c (strwidth): Use c_string_width.
3994 (c_string_width): New function.
3995 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3996 Caller changed.
3997
3998 * charset.h (c_string_width, lisp_string_width): Extern them.
3999
4000 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
4001
4002 * indent.c (check_composition): Check validity of composition.
4003
4004 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4005 characters by calling c_string_width.
4006 (x_consider_frame_title): Get byte length of frame tile string
4007 correctly.
4008 (display_mode_element): Pay attention to width of non-ASCII
4009 characters by calling strwidth.
4010
4011 2001-01-18 Gerd Moellmann <gerd@gnu.org>
4012
4013 * xfns.c (Qcancel_timer): New variable.
4014 (syms_of_xfns): Initialize and staticpro it.
4015 (Fx_hide_tip, Fx_show_tip): Use it.
4016 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4017 the timer.
4018 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4019
4020 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4021
4022 * window.h (WINDOW_LIVE_P): New macro.
4023
4024 * window.c (window_size_fixed): New variable.
4025 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4026 the doc string.
4027
4028 * eval.c (specbind): If binding a per-buffer variable which
4029 doesn't have a buffer-local value in the current buffer, change
4030 the global value by changing the value of the symbol bound in all
4031 buffers not having their own value, to make it consistent with
4032 what happens with other buffer-local variables.
4033
4034 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4035
4036 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4037 when searching for a newline.
4038
4039 2001-01-18 Kenichi Handa <handa@etl.go.jp>
4040
4041 * xdisp.c (display_string): Fix previous change.
4042
4043 2001-01-18 Jason Rumney <jasonr@gnu.org>
4044
4045 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4046 GLYPH_DEBUG is defined.
4047 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4048 true for images with `:ascent 100'.
4049 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4050 meantime, use face MOUSE_FACE_ID.
4051 If first glyph isn't a character glyph, use the ASCII NUL
4052 character to determine the face.
4053 (expose_area): Do not treat left margin specially.
4054 (note_mode_line_highlight): If no local_map, check global keymap.
4055 (note_mouse_highlight): Initialize overlay.
4056 (clear_mouse_face): Don't return if tip_frame is non-nil.
4057 (show_scroll_bars): Remove unused function.
4058 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4059 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4060 Clip to row.
4061 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
4062 (x_free_frame_resources): Unload relief colors.
4063
4064 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4065
4066 * xdisp.c (forward_to_next_line_start): Avoid calling
4067 get_next_display_element when the newline is already found.
4068 This may change the iterator's position, when its current position is
4069 equal to the iterator's stop_charpos.
4070
4071 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4072 zero, use this method only at the end of a line.
4073
4074 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
4075 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4076 if SCALABLE_FONTS_P is set.
4077
4078 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4079 so that scalable fonts are included.
4080
4081 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4082 In the cache, use a key containing the information if scalable
4083 fonts are included.
4084 (x_load_font): Adapt to change of keys in the font cache.
4085
4086 2001-01-17 Kim F. Storm <storm@filanet.dk>
4087
4088 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4089 XListFonts to take advantage of font caching.
4090
4091 * xterm.c (x_list_fonts): Ensure caching font information when
4092 called for a null frame, which is the case frequently when Emacs
4093 starts.
4094
4095 2001-01-17 Gerd Moellmann <gerd@gnu.org>
4096
4097 * xfns.c (QCconversion): Replaces QCalgorithm.
4098
4099 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4100
4101 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4102 of :algorithm.
4103
4104 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4105 not everything could be displayed.
4106
4107 * line.h, x-list-font.c: Files removed because unused.
4108
4109 2001-01-17 Andrew Innes <andrewi@gnu.org>
4110
4111 * dired.c (directory_files_internal): Convert result from readdir
4112 to a unibyte string initially, to avoid possible misinterpretation
4113 of some bytes as the internal form of Emacs characters.
4114
4115 2001-01-17 Kenichi Handa <handa@etl.go.jp>
4116
4117 * fns.c (concat): Be sure to avoid putting the same `composition'
4118 property on the adjacent regions.
4119
4120 2001-01-16 Gerd Moellmann <gerd@gnu.org>
4121
4122 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
4123 (Fscroll_right, Fscroll_left): Set it here instead, if called
4124 interactively.
4125
4126 * buffer.c (Fset_buffer_modified_p): Set buffer's
4127 prevent_redisplay_optimizations_p flag.
4128
4129 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
4130 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4131 with additional arg.
4132
4133 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4134 Change prototype.
4135
4136 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4137 FROM_WHERE, for debugging.
4138
4139 2001-01-16 Kenichi Handa <handa@etl.go.jp>
4140
4141 * ccl.c (Fregister_ccl_program): Handle the return value of
4142 resolve_symbol_ccl_program correctly.
4143 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
4144
4145 2001-01-15 Gerd Moellmann <gerd@gnu.org>
4146
4147 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4148 has gone in the meantime, use face MOUSE_FACE_ID.
4149
4150 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
4151 If x_display_info_for_display returns null, don't try to close
4152 the display; we didn't open it.
4153
4154 * dispnew.c (save_or_restore_current_matrices): Function removed.
4155 (save_current_matrix, restore_current_matrix): New functions.
4156 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
4157 restore the frame's current matrix. Due to the glyph pointer
4158 setup done in adjust_glyph_matrix, there is no easy way to make
4159 saving the current matrix in the desired matrix generally correct,
4160 so don't try it.
4161
4162 2001-01-15 Kenichi Handa <handa@etl.go.jp>
4163
4164 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
4165 truncation glyphs.
4166 (display_line): Optimize for wide characters.
4167 (display_string): Don't try to display a multi-column character
4168 partially. On ttys, produce more than one truncation glyph for
4169 multi-column characters that don't fit on the line.
4170
4171 2001-01-13 Kenichi Handa <handa@etl.go.jp>
4172
4173 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
4174 Define it instead of WORDS_BIGENDIAN. Caller changed.
4175
4176 2001-01-13 Jason Rumney <jasonr@gnu.org>
4177
4178 * w32fns.c (Fimage_size, image_ascent, lookup_image)
4179 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
4180 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4181 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
4182
4183 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
4184 (x_draw_image_relief, x_draw_image_foreground_1)
4185 (x_draw_image_glyph_string): Adapt to change of image margins.
4186
4187 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
4188 variables.
4189
4190 * w32bdf.c (search_file_line, get_cached_font_char)
4191 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
4192
4193 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
4194
4195 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
4196 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
4197 (Fw32_send_sys_command): Remove unused variables.
4198 (w32_msg_pump): Add parentheses.
4199
4200 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
4201 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
4202 Add parentheses.
4203
4204 2001-01-12 Gerd Moellmann <gerd@gnu.org>
4205
4206 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
4207 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
4208 being a pair of margins.
4209 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
4210 to DEFVAR_LISP. Extend doc.
4211
4212 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
4213 margins.
4214 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
4215 pair of integers `(X . Y)', use X for the horizontal and Y for the
4216 vertical margin.
4217 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
4218 (parse_image_spec): Check it.
4219 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4220 (tiff_format, gif_format, gs_format):
4221 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
4222
4223 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4224 (x_draw_image_relief, x_draw_image_foreground_1)
4225 (x_draw_image_glyph_string): Adapt to the change of image margins.
4226
4227 * dispextern.h (struct image): Replace member `margin' with
4228 `hmargin' and `vmargin'.
4229
4230 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4231 and GLYPHS.
4232
4233 * dispnew.c (update_text_area): Put code which decrements the
4234 stop position when the row's face extends to the end of the
4235 line in #if 0.
4236
4237 * xfns.c (x_set_mouse_color): Fix color allocation.
4238
4239 * keyboard.c: Call get_local_map with new argument list.
4240
4241 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4242
4243 * intervals.h (enum map_property): Removed.
4244 (get_local_map): Change prototype.
4245
4246 * keymap.c: Call get_local_map with new argument list.
4247 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4248
4249 2001-01-11 Gerd Moellmann <gerd@gnu.org>
4250
4251 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4252 of the size needed for the tool bar string. For the last image,
4253 use a `display' property that reaches to the end of the string.
4254
4255 * xselect.c (selection_request_dpyinfo): New variable.
4256 (x_handle_selection_request): Set it.
4257 (x_selection_request_lisp_error): Don't call
4258 x_decline_selection_request if selection request's display has
4259 been closed.
4260
4261 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4262 Do the unregister_colors before calling XFreeColors.
4263
4264 2001-01-10 Dave Love <fx@gnu.org>
4265
4266 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4267 ${SOME_MACHINE_LISP}, not ${lisp}.
4268
4269 2001-01-10 Gerd Moellmann <gerd@gnu.org>
4270
4271 * xdisp.c (display_line): On ttys, produce more than one truncation
4272 glyph for multi-column characters that don't fit on the line.
4273
4274 * xselect.c (x_reply_selection_request): Add a comment.
4275
4276 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4277 XkbGetNames instead of XkbGetKeyboard.
4278
4279 2001-01-10 Dave Love <fx@gnu.org>
4280
4281 * sysdep.c (random): Revert the declaration.
4282
4283 2001-01-09 Gerd Moellmann <gerd@gnu.org>
4284
4285 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4286 Call function string_bytes.
4287 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4288
4289 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4290 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4291 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4292 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4293 the current sblock.
4294 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4295 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4296 after sweeping strings, and at the end.
4297 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4298
4299 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4300 ensure that pop_message is called.
4301
4302 * keyboard.c (Fexecute_extended_command): Use a
4303 record_unwind_protect to ensure that pop_message is called.
4304
4305 * lisp.h (push_message_unwind): Add prototype.
4306
4307 * xdisp.c (push_message_unwind): New function.
4308
4309 * fileio.c (do_auto_save_unwind): Do the pop_message here
4310 instead of in Fdo_auto_save.
4311 (Fdo_auto_save): Don't call pop_message.
4312
4313 2001-01-08 Ken Raeburn <raeburn@gnu.org>
4314
4315 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4316 in inner block.
4317
4318 2001-01-08 Gerd Moellmann <gerd@gnu.org>
4319
4320 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4321 when increasing window's vscroll.
4322
4323 * macros.c (Qkbd_macro_termination_hook): New variable.
4324 (syms_of_macros): Initialize and staticpro it.
4325 (pop_kbd_macro): Run kbd-macro-termination-hook.
4326
4327 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4328
4329 2001-01-07 Dave Love <fx@gnu.org>
4330
4331 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4332 arglist, for documentation's sake.
4333
4334 2001-01-06 Andrew Innes <andrewi@gnu.org>
4335
4336 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4337 of *.pdb.
4338
4339 2001-01-05 Andrew Innes <andrewi@gnu.org>
4340
4341 * term.c (update_end): Don't check updating_frame; for some reason
4342 this can be 0 sometimes, such as after dismissing a popup menu,
4343 and isn't necessary given the explicit frame argument.
4344
4345 2001-01-05 Gerd Moellmann <gerd@gnu.org>
4346
4347 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4348 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4349
4350 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4351
4352 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
4353
4354 * xfns.c (x_create_tip_frame): Preserve the value of
4355 face_change_count around the creation of the tip frame.
4356
4357 * xfns.c (last_show_tip_args): New variable.
4358 (compute_tip_xy): New function.
4359 (Fx_show_tip): Reuse an existing tip frame, if possible.
4360 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4361
4362 2001-01-04 Dave Love <fx@gnu.org>
4363
4364 * editfns.c (Fformat): Doc fix.
4365
4366 * systime.h (set_file_times): Prototype.
4367
4368 * widget.h (EmacsFrameSetCharSize_): Prototype.
4369
4370 * sysdep.c (random, srandom): Declare explicitly.
4371
4372 * dispextern.h (move_it_vertically_backward): Declare.
4373
4374 2001-01-04 Gerd Moellmann <gerd@gnu.org>
4375
4376 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4377 like in Fx_create_frame.
4378
4379 * xfaces.c (set_font_frame_param): Don't do anything for
4380 non-graphical frames.
4381
4382 * window.c (Fdelete_other_windows): Set window's window_end_valid
4383 to nil when changing the window's start. Don't change the
4384 window's start when its top position hasn't changed. If we do,
4385 this will set the window's optional_new_start, which act's like a
4386 force_start during redisplay with C-x 1 M-> under particular
4387 circumstances (see report from Per Starback to emacs-pretest-bug
4388 from 2000-12-13.).
4389
4390 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4391
4392 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4393 short cut at the start of the function. Add an assertion.
4394 (reseat_at_next_visible_line_start): Add an assertion.
4395
4396 * window.c (Frecenter): When changing the window start, set the
4397 window's window_end_valid to nil.
4398 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4399
4400 * dispextern.h (move_it_past_eol): Add prototype.
4401
4402 * xdisp.c (move_it_past_eol): New function.
4403
4404 * window.c (Fwindow_end): Doc fix.
4405
4406 2001-01-03 Dave Love <fx@gnu.org>
4407
4408 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
4409
4410 2001-01-03 Gerd Moellmann <gerd@gnu.org>
4411
4412 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4413 the enabled_p flag of the glyph row at window_end_vpos to 0.
4414 (handle_single_display_prop): Fix last change.
4415
4416 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4417
4418 * window.c (Frecenter): Doc fix.
4419
4420 2001-01-02 Andrew Innes <andrewi@gnu.org>
4421
4422 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4423
4424 * frame.h (output_method): Add output_w32_console method.
4425 (FRAME_W32_CONSOLE_P): New macro.
4426
4427 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4428 use output_w32_console method.
4429 (Qw32_console): New Lisp_Object.
4430 (Fframep): Return it.
4431 (syms_of_frame): Init it.
4432 (Fframe_parameters): Report w32console as font for w32_console frames.
4433
4434 * xfaces.c (realize_default_face): Set face foreground and
4435 background to unspecified for w32_console frames.
4436 (realize_face): Realize face cache for w32_console frames.
4437 (realize_tty_face): Accept w32_console frames.
4438
4439 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
4440 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4441 necessary, even if running interactively.
4442
4443 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4444 w32_console frames.
4445
4446 * w32term.c (x_update_begin):
4447 (x_update_end):
4448 (x_clear_frame):
4449 (x_ins_del_lines):
4450 (x_change_line_highlight):
4451 (x_delete_glyphs):
4452 (w32_ring_bell):
4453 (x_update_begin):
4454 (x_update_end):
4455 (w32_reassert_line_highlight):
4456 (w32_frame_rehighlight):
4457 (w32_frame_raise_lower): Do nothing if not w32 frame.
4458
4459 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4460
4461 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4462 system doesn't tell us directly.
4463 (Fx_display_visual_class): Implement properly.
4464
4465 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4466
4467 * window.c (Frecenter): Handle centering in graphical frames
4468 specially. Centering on the basis of line counts doesn't work
4469 reliably with variable-height lines.
4470
4471 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4472
4473 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4474 and al[].
4475
4476 * composite.c (run_composition_function): Remove unused var `val'.
4477 (update_compositions): Remove unused variable `hook'.
4478
4479 * intervals.c (get_local_map): Remove unused variable `tem'.
4480
4481 * doprnt.c (doprnt1): Remove unused variable `size'.
4482
4483 * fns.c (Flength): Remove unused variable `tail'.
4484 (Fdelete): Remove unused variable `size'.
4485
4486 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4487 and `gcpro2'.
4488
4489 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
4490
4491 * data.c (find_symbol_value): Remove extra 3rd argument in the
4492 call to swap_in_symval_forwarding.
4493
4494 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
4495
4496 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4497 (trivial_regexp_p): Remove unused variable `c'.
4498 (boyer_moore): Remove unused variable `k'.
4499
4500 * indent.c (current_column): Remove unused variable `stopchar'.
4501 (Fcompute_motion): Remove unused variable `contin'.
4502
4503 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4504
4505 * dired.c (directory_files_internal): Fix a typo in a comment.
4506 Remove an unused variable `handler'.
4507 (file_name_completion): Remove unused function-scope variable `dp'.
4508 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4509 on BSD4_2.
4510
4511 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
4512
4513 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4514 and `buf'.
4515 (Fmarker_insertion_type): Remove unused variable `buf'.
4516
4517 * insdel.c (make_gap): Remove unused variable `result'.
4518
4519 * keyboard.c (record_char): Remove unused function-scope var `help'.
4520 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4521 (menu_bar_items): Remove unused function-scope variable `tem'.
4522
4523 * fontset.c (fontset_ref): Remove unused variable `i'.
4524 (fontset_set): Remove unused variables `j' and `tmp'.
4525 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
4526 (make_fontset_for_ascii_face): Remove unused variable `name'.
4527 (fs_load_font): Remove unused variable `font_idx'.
4528 (fs_query_fontset): Remove unused function-local variable `fontset'.
4529 (list_fontsets): Remove unused variable `tail'.
4530 (Fnew_fontset): Remove unused variables `family' and `registry'.
4531 (accumulate_font_info): Remove unused variable `tmp'.
4532 (Ffontset_font): Remove unused variable `id'.
4533 (syms_of_fontset): Remove unused variable `i'.
4534
4535 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4536 to x_term_init.
4537 (lookup_image): Remove unused variable `file'.
4538 (xbm_load): Remove unused variables `bitmap_data', `height', and
4539 `width'. Remove function-local variable `i', leave the
4540 block-local one.
4541 (gif_load): Remove unused variable `inc'.
4542
4543 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
4544 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4545 leave only the one in the inner block.
4546
4547 * xfaces.c (face_fontset, realize_default_face): Remove unused
4548 variable `fontset'.
4549 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4550
4551 * term.c (encode_terminal_code): Remove unused variable `c'.
4552
4553 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4554 char *' instead of `char *'.
4555
4556 * category.c (Fcategory_docstring): Remove unused variable `doc'.
4557 (Fget_unused_category): Remove unused variable `docstring_vector'.
4558 (Fchar_category_set): Remove unused variables `val', `charset',
4559 `c1' and `c2'.
4560
4561 * coding.c (detect_coding_iso2022, setup_coding_system):
4562 Remove unused variable `i'.
4563 (detect_coding_mask): Remove unused variable `idx'.
4564 (detect_coding): Remove unused variable `i'.
4565 (ccl_coding_driver): Remove unused variable `result'.
4566 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
4567 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
4568 (encode_coding_string): Remove unused variables `gcpro1' and
4569 `saved_coding_symbol'.
4570 (Ffind_coding_systems_region_internal): Remove function-local
4571 variable args[], leave only the block-local one.
4572 (code_convert_region1): Remove unused variable `len'.
4573
4574 * charset.c (char_printable_p): Remove unused variable `chars'.
4575 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4576 (str_to_multibyte): Remove unused variable `c'.
4577
4578 * window.c (size_window): Remove block-local variable `min_size'.
4579
4580 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4581 `header_line_height'.
4582 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4583 enum display_element_type.
4584
4585 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4586
4587 * xterm.c (x_connection_closed): Catch X errors around all
4588 statements that call X. Save away the error message in a local copy.
4589
4590 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4591 the start.
4592
4593 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4594 in or at the start of invisible text.
4595
4596 * dispnew.c (update_window): Don't check_current_matrix_flags.
4597
4598 2001-01-01 Jason Rumney <jasonr@gnu.org>
4599
4600 * w32fns.c (x_figure_window_size): Do not allow new_height and
4601 new_width of frame to override specified values.
4602
4603 2000-12-30 Kenichi Handa <handa@etl.go.jp>
4604
4605 * composite.c (find_composition): Fix a code for searching backward.
4606
4607 2000-12-29 Gerd Moellmann <gerd@gnu.org>
4608
4609 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
4610 (update_window) [GLYPH_DEBUG]: Call it.
4611 (scrolling_window): Prevent including current rows which are below
4612 what's displayed in the window.
4613
4614 * xdisp.c (try_window_reusing_current_matrix)
4615 <new start <= old start>: Disable rows in the current matrix
4616 which are below the window after scrolling.
4617
4618 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4619 is zero. It's not worth the complexity.
4620 (invisible_text_between_p): Put in #if 0 because unused.
4621
4622 2000-12-28 Gerd Moellmann <gerd@gnu.org>
4623
4624 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4625 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4626
4627 * keyboard.c (echo_char): If C is an integer, always call
4628 push_key_description. Former code could signal an invalid
4629 character error.
4630
4631 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4632 If set, print multibyte text.
4633 (Fsingle_key_description): Call push_key_description with
4634 FORCE_MULTIBYTE set.
4635 (describe_buffer_bindings): Likewise.
4636
4637 * lisp.h (push_key_description): Add prototype.
4638
4639 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4640 around the call to redisplay_internal.
4641
4642 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4643
4644 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4645
4646 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4647
4648 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4649 (ccl_driver): New local variable `extra_bytes'.
4650
4651 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4652
4653 * coding.c (setup_coding_system):
4654 Initialize coding->spec.ccl.eight_bit_carryover.
4655 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4656
4657 2000-12-28 Kenichi Handa <handa@etl.go.jp>
4658
4659 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4660 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4661 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4662 (decode_composition_emacs_mule): New function.
4663 (decode_coding_emacs_mule): Decode composition sequence by calling
4664 decode_composition_emacs_mule.
4665 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
4666 (encode_coding_emacs_mule): Changed from macro to function.
4667 If a text contains compositions, encode them correctly.
4668 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4669 that decoding and encoding are required.
4670
4671 2000-12-27 Gerd Moellmann <gerd@gnu.org>
4672
4673 * xfaces.c (PT_PER_INCH): New macro.
4674 (xlfd_point_size): Compute real point size from font's pixel size.
4675 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4676 instead of 72.
4677
4678 * .gdbinit: Comment out the line pointing to the Lesstif source
4679 directory.
4680
4681 * window.c (Frecenter): Use displayed_window_lines instead
4682 of window_internal_height.
4683
4684 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4685 instead of x-toolkit-scroll-bars-p.
4686 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4687
4688 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4689 instead of x-toolkit-scroll-bars-p.
4690 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4691
4692 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4693 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
4694 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4695 New variables.
4696 (add_window_display_history, add_frame_display_history)
4697 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4698 (build_frame_matrix_from_leaf_window): Remove unused code.
4699 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4700 redisplay history.
4701 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4702 (update_window) [GLYPH_DEBUG]: Likewise.
4703 (syms_of_display): Defsubr dump-redisplay-history.
4704
4705 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4706
4707 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4708 the end of the prompt. Set echo_after_prompt to the offset
4709 of echoptr in echobuf.
4710
4711 * xdisp.c (init_from_display_pos): Pop until the iterator's
4712 stack is empty; there may be frames for stretch or images
4713 on the stack.
4714
4715 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4716 (save_or_restore_current_matrix): New function for the same
4717 purpose, but more efficient.
4718 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4719
4720 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4721
4722 * xdisp.c (syms_of_xdisp): Fix last change.
4723
4724 2000-12-23 Gerd Moellmann <gerd@gnu.org>
4725
4726 * xdisp.c (syms_of_xdisp): Doc fix.
4727
4728 * xdisp.c (redisplay_window): Remove label restore_buffers;
4729 use finish_scroll_bars instead to make sure that scroll bars
4730 are redeemed. If we don't do this, flickering can result from
4731 scroll bars being destroyed and recreated.
4732
4733 2000-12-22 Jason Rumney <jasonr@gnu.org>
4734
4735 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4736 in the wrong colors when the foreground is not black.
4737 (expose_window): Don't redraw the window that's currently being
4738 updated.
4739
4740 2000-12-22 Gerd Moellmann <gerd@gnu.org>
4741
4742 * window.c (size_window): When setting the window's too_small_ok
4743 flag, compare old size with minimum size depending on WIDTH_P,
4744 don't compare with window_min_width.
4745
4746 * window.c (delete_window): Simplify somewhat.
4747 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4748 freeing window matrices. The flag windows_or_buffers_changed is
4749 set, so the next redisplay will consider all windows; this should
4750 suffice.
4751
4752 2000-12-22 Kenichi Handa <handa@etl.go.jp>
4753
4754 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4755
4756 * ccl.h (struct ccl_program): New member cr_consumed.
4757
4758 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4759 (CCL_READ_CHAR): Handle EOL conversion here.
4760 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4761
4762 2000-12-21 Gerd Moellmann <gerd@gnu.org>
4763
4764 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
4765
4766 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4767 otherwise tabs of different size compare equal.
4768
4769 * callint.c (Fcall_interactively): Prevent a compiler warning.
4770
4771 * print.c (print_unwind): Return nil.
4772 (PRINTDECLARE): Initialize all local variables.
4773 (print_preprocess): Add a default case.
4774
4775 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4776
4777 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4778
4779 * window.c (delete_window, Fsplit_window)
4780 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4781
4782 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4783
4784 * dispnew.c (ensure_frame_matrix): Removed.
4785 (save_frame_matrix, restore_frame_matrix): New functions.
4786 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4787
4788 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4789 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4790
4791 2000-12-21 Andrew Innes <andrewi@gnu.org>
4792
4793 * w32term.c (x_update_begin): Regenerate the palette here, rather
4794 than for each window.
4795
4796 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4797 palette is NULL, since this corrupts memory! Also get
4798 display_info reference from frame.
4799
4800 2000-12-21 Jason Rumney <jasonr@gnu.org>
4801
4802 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4803
4804 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4805 to avoid returning without releasing it.
4806
4807 2000-12-21 Kenichi Handa <handa@etl.go.jp>
4808
4809 * keymap.c (push_key_description): Don't convert eight-bit-control
4810 and eight-bit-graphic to multibyte character.
4811
4812 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4813 generic character and CODE1 is nil, return the smallest character
4814 in CHARSET.
4815
4816 2000-12-20 Dave Love <fx@gnu.org>
4817
4818 * s/osf5-0.h (NSIG): Don't redefine.
4819
4820 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4821
4822 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4823 excluding menu-bar and tool-bar.
4824 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4825 (menu_item_p): Remove.
4826 (where_is_internal_1): Don't ignore menu-items.
4827
4828 2000-12-20 Gerd Moellmann <gerd@gnu.org>
4829
4830 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4831 into account.
4832
4833 * window.c (make_window): Initialize window's min_hscroll.
4834 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4835 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4836 to zero.
4837 (struct saved_window): New member min_hscroll.
4838 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4839 (Fset_window_configuration): Set window's min_hscroll.
4840 (save_window_save): Save window's min_hscroll.
4841 (compare_window_configurations): Compare min_hscroll values.
4842
4843 * window.h (struct window): New member min_hscroll.
4844
4845 * keyboard.c (echo_prompt): Prevent a compiler warning.
4846
4847 * xdisp.c (try_cursor_movement): Fix last change. The real
4848 condition is that PT is at the end of the row, and should
4849 be displayed at the start of the next row.
4850
4851 * xdisp.c (try_cursor_movement): If we end on a partially
4852 visible line, end we already decided to scroll, return -1.
4853
4854 * dispextern.h (ensure_frame_matrix): Add prototype.
4855
4856 * window.c (delete_window, Fsplit_window)
4857 (Fset_window_configuration): Call ensure_frame_matrix.
4858
4859 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4860 New functions.
4861 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4862 completed, call fake_current_matrices instead of marking frame
4863 garbaged.
4864
4865 2000-12-20 Jason Rumney <jasonr@gnu.org>
4866
4867 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4868
4869 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4870
4871 * fns.c (Frequire): Doc fix.
4872
4873 2000-12-19 Gerd Moellmann <gerd@gnu.org>
4874
4875 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
4876
4877 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4878 currently displaying a message.
4879
4880 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4881 xterm.h.
4882 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4883
4884 2000-12-18 Andrew Innes <andrewi@gnu.org>
4885
4886 * w32.c (w32_strerror): New function.
4887
4888 * w32.h (w32_strerror): New extern.
4889
4890 * w32fns.c (Fw32_shell_execute): Use it.
4891
4892 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4893
4894 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4895
4896 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4897
4898 * msdos.c (IT_set_face): Obey inverse_video.
4899
4900 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4901
4902 * dired.c (directory_files_internal): Always return decoded filenames.
4903
4904 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4905
4906 * xterm.c (x_connection_closed): Prevent being called recursively
4907 because of an error condition in XtCloseDisplay.
4908
4909 * xdisp.c (init_iterator): If noninteractive, and the frame's
4910 face cache is null, make one.
4911
4912 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
4913
4914 * process.c (wait_reading_process_input): Check for pending
4915 input when running timers.
4916
4917 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4918
4919 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
4920
4921 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4922
4923 * process.c (read_process_output): Don't run a filter if the code
4924 decoder produces nothing but carryover.
4925
4926 2000-12-17 Andrew Innes <andrewi@gnu.org>
4927
4928 * w32.c (sys_rename): Only check errno against EEXIST, and not
4929 EACCES, when determining whether rename failed because the target
4930 exists. This was resulting in indefinite looping on Windows 9x if
4931 the source file was locked by another process.
4932
4933 * w32fns.c (Ffile_system_info): New function.
4934 (syms_of_w32fns): Defsubr it.
4935
4936 2000-12-17 Gerd Moellmann <gerd@gnu.org>
4937
4938 * window.c (coordinates_in_window): Fix computation for
4939 position on vertical line between mode lines.
4940
4941 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4942 Don't alter tip_frame or tip_window.
4943 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4944 was deleted.
4945
4946 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4947 Don't alter tip_frame or tip_window.
4948 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4949 was deleted.
4950
4951 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4952
4953 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4954 be consistent with the doc string. Reported by NAKAJIMA Mikio
4955 <minakaji@osaka.email.ne.jp>.
4956
4957 2000-12-16 Kenichi Handa <handa@etl.go.jp>
4958
4959 * xfaces.c (Vface_ignored_fonts): New variable.
4960 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4961 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4962
4963 2000-12-15 Gerd Moellmann <gerd@gnu.org>
4964
4965 * dispnew.c (update_window): Detect pending input every nth line
4966 updated, i.e. do it depending on real work done, and not on the
4967 vpos of the line.
4968
4969 * xterm.c (expose_window): Don't redraw the window that's
4970 currently being updated.
4971
4972 * window.c (Fset_window_point): Remove test for
4973 cursor_in_non_selected_windows.
4974
4975 * lread.c (read1): Recognize end of file after `\\'.
4976
4977 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4978 not unwind_create_frame.
4979
4980 2000-12-15 Dave Love <fx@gnu.org>
4981
4982 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4983 bcopy & al.
4984
4985 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4986
4987 2000-12-15 Kenichi Handa <handa@etl.go.jp>
4988
4989 * coding.c (setup_coding_system): Clear all members of the struct
4990 coding_system at first.
4991 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4992 argument.
4993 (code_convert_region): Don't override coding->src_multibyte and
4994 coding->dst_multibyte.
4995
4996 * fns.c (Fmd5): Docstring improved.
4997
4998 2000-12-15 Miles Bader <miles@gnu.org>
4999
5000 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5001 are actually marked as mode-lines; otherwise use
5002 estimate_mode_line_height.
5003
5004 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5005
5006 * editfns.c (Fformat): Prevent a buffer overrun when the format
5007 specifies a precision.
5008
5009 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5010
5011 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5012 argument is outside the range [2..3].
5013
5014 2000-12-14 Andrew Innes <andrewi@gnu.org>
5015
5016 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5017 nothing to do. Bind inhibit-quit.
5018 (tip_frame): Make it a Lisp_Object.
5019 (x_create_tip_frame): Set tip_frame after it has been added to
5020 Vframe_list.
5021 (Fx_show_tip): Don't set tip_frame here.
5022 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
5023 (unwind_create_frame, unwind_create_tip_frame): New functions.
5024 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5025 while a frame is only partially constructed.
5026
5027 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5028 (x_free_frame_resources): New function.
5029 (x_destroy_window): Use it.
5030
5031 2000-12-14 Gerd Moellmann <gerd@gnu.org>
5032
5033 * xfns.c (Fx_backspace_delete_keys_p): New function.
5034 (syms_of_xfns): Defsubr it.
5035
5036 * config.in (HAVE_XKBGETKEYBOARD): Add.
5037
5038 2000-12-14 Kenichi Handa <handa@etl.go.jp>
5039
5040 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5041 Always store string in multibyte representation in echobuf.
5042 (echo_char): Always store string in multibyte representation in
5043 echobuf.
5044 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5045 (read_key_sequence): Adjusted for the change of echo_prompt.
5046
5047 * fns.c (Fmd5): Docstring improved.
5048
5049 * lisp.h (detect_coding_system): Prototype adjusted.
5050
5051 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5052 (detect_coding_emacs_mule, detect_coding_iso2022,)
5053 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
5054 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5055 New argument MULTIBYTEP. Callers changed.
5056 (detect_coding_mask, detect_coding_system): New argument
5057 MULTIBYTEP. Callers changed.
5058 (decode_coding_string): Set coding->src_multibyte and
5059 coding->dst_multibyte before calling detect_coding and detect_eol.
5060 Update them after some coding system is detected.
5061
5062 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5063
5064 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5065
5066 * keyboard.c (menu_bar_items, tool_bar_items):
5067 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5068
5069 2000-12-13 Gerd Moellmann <gerd@gnu.org>
5070
5071 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5072 New variables.
5073 (unwind_create_frame, unwind_create_tip_frame): New functions.
5074 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5075 while a frame is only partially constructed.
5076
5077 * xterm.h (x_free_frame_resources): Declare.
5078
5079 * xterm.c (x_free_frame_resources): New function.
5080 (x_destroy_window): Use it.
5081
5082 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5083 don't interrupt the update for pending input initially, i.e.
5084 update at least some lines.
5085
5086 * keyboard.c (do_mouse_tracking): Make externally visible.
5087
5088 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
5089
5090 * xfns.c (gray_bitmap_bits): Declare `char *'.
5091
5092 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5093
5094 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5095 lines start with a relief line.
5096
5097 2000-12-12 Dave Love <fx@gnu.org>
5098
5099 * window.c (Fdisplay_buffer): Doc fix.
5100 (Fwindow_list): Remove unused var.
5101
5102 * buffer.h (mmap_set_vars): Declare.
5103
5104 * window.h (Fset_window_point): Declare.
5105
5106 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5107
5108 * msdos.c (fast_find_position): Don't overstep the last window row.
5109 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5110 variable `area'. When looking for a row under (X,Y), give up if some
5111 of the previous rows is not enabled.
5112
5113 2000-12-12 Gerd Moellmann <gerd@gnu.org>
5114
5115 * window.c (Fset_window_point): If displaying cursors in windows
5116 other than the selected window, make sure redisplay updates
5117 other windows to show the new value of point in the window.
5118
5119 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5120
5121 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5122 the buffer is the sole visible buffer when in the mini-buffer.
5123
5124 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
5125 Bind `inhibit-read-only' to t.
5126 (unwind_with_echo_area_buffer): Use AREF.
5127
5128 * xfns.c (Fx_hide_tip): Simplified.
5129
5130 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5131 instead of `1'.
5132
5133 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5134
5135 2000-12-11 Gerd Moellmann <gerd@gnu.org>
5136
5137 * xfns.c (Fx_hide_tip): Fix last change.
5138
5139 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
5140 nothing to do. Bind inhibit-quit.
5141 (tip_frame): Make it a Lisp_Object.
5142 (x_create_tip_frame): Set tip_frame after it has been added to
5143 Vframe_list.
5144 (Fx_show_tip): Don't set tip_frame here.
5145
5146 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5147
5148 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
5149 Lisp_Object.
5150
5151 * dispextern.h: Change external declaration of tip_frame.
5152
5153 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
5154 return an empty string.
5155
5156 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
5157 of the window's update_mode_line flag, since the former is set by
5158 force-mode-line-update, not the latter. This makes
5159 column-number-mode slightly faster.
5160
5161 * xdisp.c (try_window_id) <all changes above window start>:
5162 Set the cursor.
5163
5164 2000-12-11 Paul Eggert <eggert@twinsun.com>
5165
5166 * config.in (HAVE_FTELLO): Remove.
5167 (HAVE_FSEEKO): Add.
5168 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
5169 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
5170 HAVE_FTELLO.
5171 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
5172 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
5173
5174 2000-12-11 Miles Bader <miles@gnu.org>
5175
5176 * window.c (displayed_window_lines): Don't round up when
5177 converting empty space at bottom to lines.
5178 Handle non-newline-terminated final lines properly.
5179 (Fwindow_text_height): New function (used to be in lisp).
5180 (syms_of_window): Initialize it.
5181
5182 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
5183
5184 * syntax.c (scan_lists): Check that the right quote char has the
5185 right Sstring syntax when jumping over strings.
5186 (init_syntax_once): Use Smax rather than 13.
5187
5188 2000-12-09 Miles Bader <miles@gnu.org>
5189
5190 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
5191 with PARTIALLY, inverting the sense.
5192 (window_scroll_pixel_based): Scroll partially visible lines into
5193 place if we hit the beginning or end of the buffer.
5194 (displayed_window_lines): Don't include partially visible lines.
5195 (Fmove_to_window_line): Skip past any partially visible first line.
5196
5197 2000-12-08 Gerd Moellmann <gerd@gnu.org>
5198
5199 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
5200
5201 * tparam.c (tparam1): Change the way buffers are reallocated to be
5202 portable and less obfuscated.
5203
5204 * termcap.c (tgetent): Change the way buffers are reallocated to
5205 be portable and less obfuscated.
5206
5207 * macros.c (store_kbd_macro_char): Change the way buffers are
5208 reallocated to be portable and less obfuscated.
5209
5210 * lread.c (read1): Change the way buffers are reallocated to be
5211 portable and less obfuscated.
5212
5213 * doc.c (Fsubstitute_command_keys): Change the way buffers
5214 are reallocated so that it is portable.
5215
5216 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
5217
5218 * dosfns.c (Ffile_system_info): New function.
5219 (syms_of_dosfns): Defsubr it.
5220
5221 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
5222
5223 * alloc.c (gc_sweep): Add comment.
5224
5225 2000-12-07 Gerd Moellmann <gerd@gnu.org>
5226
5227 * sound.c (vox_configure): Change order of ioctls.
5228 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
5229 Ignore errors when changing volume.
5230 (vox_close): Don't reset the device.
5231
5232 * process.c (read_process_output): Make sure the process marker's
5233 position is valid when the process buffer is changed in
5234 after-change functions. W3 does that.
5235
5236 * xfns.c (x_free_gcs): New function.
5237
5238 * xterm.h (x_free_gcs): Add prototype.
5239
5240 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5241 freeing GCs here.
5242
5243 * xterm.c (x_destroy_window): Call x_free_gcs so that
5244 resources of non-toolkit X windows will be freed.
5245
5246 2000-12-07 Andrew Innes <andrewi@gnu.org>
5247
5248 * w32fns.c (xlfd_charset_of_font): Fix last change.
5249
5250 2000-12-06 Dave Love <fx@gnu.org>
5251
5252 * md5.h (__P): Don't define -- it comes from config.h.
5253
5254 * strftime.c: Change some #if foo to #ifdef foo.
5255
5256 2000-12-06 Andrew Innes <andrewi@gnu.org>
5257
5258 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5259
5260 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
5261 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
5262 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
5263
5264 2000-12-06 Gerd Moellmann <gerd@gnu.org>
5265
5266 * alloc.c (gc_sweep): Prevent symbols read during loadup
5267 from being freed.
5268
5269 * xdisp.c (underlying_face_id): New function.
5270 (handle_face_prop, face_before_or_after_it_pos): Use it
5271 to determine the face ``under'' a string. Let strings inherit
5272 the face of the buffer under them.
5273
5274 * xfaces.c (face_at_string_position): Update function comment.
5275
5276 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5277 matrix if the window's left position has changed; we need to
5278 redraw it in this case.
5279
5280 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5281
5282 * window.c (coordinates_in_window): Check mouse on mode-line or
5283 header-line first.
5284
5285 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5286 advertized by the function documentation.
5287
5288 * window.c (syms_of_window): Doc fix.
5289
5290 * sound.c (vox_configure): Set volume for left and right channel.
5291 (sound_cleanup): Return nil.
5292
5293 * xdisp.c (move_it_by_lines): Fix paren typo.
5294
5295 * xterm.c (x_load_font): Don't use the font's max_bounds for
5296 computing the height of the font. If max_bounds' ascent or
5297 descent are greater than the font's ascent or descent, this means
5298 glyphs overlap, which should be handled now by redisplay.
5299
5300 * window.c (Veven_window_heights): New variable.
5301 (syms_of_window): DEFVAR_LISP it.
5302 (Fdisplay_buffer): Check Veven_window_heights before evening the
5303 window heights.
5304
5305 2000-12-06 Miles Bader <miles@gnu.org>
5306
5307 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5308 update `default-frame-alist' instead of setting no frame parameters.
5309
5310 2000-12-06 Kenichi Handa <handa@etl.go.jp>
5311
5312 * composite.c (update_compositions): Fix typo (use the correct
5313 variable).
5314
5315 2000-12-05 Jason Rumney <jasonr@gnu.org>
5316
5317 * md5.h: Remove underscores from function declarations.
5318 (__attribute__, __alignof__) [!__GNUC__]: Define.
5319
5320 * md5.c: Delay include of md5.h until after namespace cleaning.
5321
5322 * makefile.w32-in (fns.o): Depend on md5.h
5323 (md5.o): New target.
5324 (sunfns.o): Remove.
5325
5326 * makefile.nt: Likewise.
5327
5328 2000-12-05 Jason Rumney <jasonr@altavista.net>
5329
5330 * w32term.c (expose_area): Complete last change.
5331
5332 2000-12-05 Ken Raeburn <raeburn@gnu.org>
5333
5334 * minibuf.c: Include intervals.h.
5335
5336 2000-12-05 Jason Rumney <jasonr@gnu.org>
5337
5338 * w32term.c (x_produce_glyphs): If a font for a component of
5339 a composition is not found, use 1 pixel dot ascent and 0 dot
5340 descent value to avoid displaying terribly tall empty boxes.
5341 (expose_area): Pass x-coordinate relative to the exposed
5342 area to x_draw_glyphs instead of a window-relative coordinate.
5343
5344 2000-12-05 Gerd Moellmann <gerd@gnu.org>
5345
5346 * xdisp.c (next_element_from_ellipsis): Save face before selective
5347 display in saved_face_id, and set face_before_selective_p.
5348 (reseat_1): Reset face_before_selective_p.
5349 (append_space, extend_face_to_end_of_line): If iterator's
5350 face_before_selective_p is set, use the face from saved_face_id.
5351 (extend_face_to_end_of_line): For tty frames, make sure to
5352 use the right face id when producing spaces at the end of
5353 the line.
5354
5355 * dispextern.h (struct it): Add face_before_selective_p.
5356
5357 * keyboard.c (record_char): Don't record identical help-echo
5358 events in recent_keys.
5359
5360 * xterm.c [USE_X_TOOLKIT]: Close the display.
5361 (xim_close_dpy): Handle case that the display has been closed.
5362
5363 * xterm.c (x_destroy_window): Reset the frame's X window after
5364 destroying it.
5365
5366 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5367 variable window_width.
5368 (line_draw_cost): Fix code skipping over spaces at the end of the
5369 line when must_write_spaces is not set.
5370 (scrolling_window): Fix code inserting runs in list of all runs.
5371
5372 2000-12-05 Kenichi Handa <handa@etl.go.jp>
5373
5374 * coding.c (setup_coding_system): Be sure to initialize
5375 coding->category_idx.
5376
5377 2000-12-04 Gerd Moellmann <gerd@gnu.org>
5378
5379 * xterm.c (PER_CHAR_METRIC): Removed because not used.
5380
5381 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5382 area to x_draw_glyphs instead of a window-relative coordinate.
5383
5384 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5385 error in the message.
5386
5387 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5388 timer after having read a key. It's not good for code reading
5389 several keys in a loop, like an input method.
5390
5391 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5392 record undo information for format-decode.
5393
5394 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5395 current buffer is read-only, not if it isn't.
5396
5397 * keyboard.c (record_char): Record `help-echo' input events
5398 in recent_keys only if they display some help. Don't record
5399 `help-echo' events as macro char.
5400
5401 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5402
5403 * editfns.c (save_excursion_restore): Don't move point
5404 in another window if it is showing the wrong buffer.
5405 Avoid the call to Fwindow_live_p, for speed.
5406
5407 2000-12-04 Kenichi Handa <handa@etl.go.jp>
5408
5409 * xfaces.c (struct font_name): New member registry_priority.
5410 (split_font_name): Initialize the above member to zero.
5411 (concat_font_list): New function.
5412 (font_list): Include fonts of all alternative registries.
5413 (FONT_POINT_SIZE_QUANTUM): New macro.
5414 (better_font_p): Ignore point size difference less than
5415 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5416
5417 * xterm.c (x_produce_glyphs): If a font for a component of
5418 a composition is not found, use 1 pixel dot ascent and 0 dot
5419 descent value to avoid displaying terribly tall empty boxes.
5420
5421 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5422
5423 2000-12-03 Ken Raeburn <raeburn@gnu.org>
5424
5425 * coding.h (code_convert_string1): Declare.
5426
5427 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5428
5429 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
5430
5431 2000-12-02 Jason Rumney <jasonr@gnu.org>
5432
5433 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5434 correctly for single byte character case.
5435 (w32_per_char_metric): Do not try to make any assumptions about
5436 the metrics of BDF fonts.
5437 (x_estimate_mode_line_height): If `mode-line' face
5438 hasn't a font, use that of the frame, as drawing glyphs does.
5439 (note_mouse_highlight): Change the cursor shape on the vertical
5440 border between windows [not enabled].
5441
5442 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5443
5444 * w32fns.c (Fx_create_frame): Reintroduce the call to
5445 face-set-after-frame-defaults.
5446 (Vx_window_horizontal_drag_shape): New variable.
5447 (syms_of_xfns): DEFVAR_LISP it.
5448 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5449 enabled].
5450
5451 2000-12-02 Simon Josefsson <simon@josefsson.org>
5452
5453 * fns.c (Fmd5): Use a different logic to decide the coding system
5454 to use.
5455
5456 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5457
5458 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5459
5460 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
5461
5462 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5463
5464 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5465 height for YNegative.
5466 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5467 height; also see comment there.
5468
5469 * window.c (coordinates_in_window): Handle computations for
5470 positions on the vertical bar and fringes differently for
5471 window-system frames. Consider some pixels near the vertical bar
5472 as on the bar if the frame doesn't have vertical scroll bars.
5473 Associate positions between mode or header lines with the
5474 right window, the left one.
5475
5476 2000-12-01 Jason Rumney <jasonr@gnu.org>
5477
5478 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5479
5480 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5481 invalid frame.
5482
5483 2000-12-01 Gerd Moellmann <gerd@gnu.org>
5484
5485 * window.c (struct saved_window): Add members orig_top and orig_height.
5486 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5487 (save_window_save, Fset_window_configuration): Save/restore
5488 window's orig_top and orig_height.
5489
5490 2000-12-01 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
5493
5494 * w32fns.c (x_set_cursor_color): Fix last change.
5495
5496 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5497
5498 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5499 sure that the next redisplay displays the minibuffer, so that
5500 the cursor will be replaced with what the minibuffer wants.
5501
5502 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5503 #ifndef instead of using #if.
5504 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5505 USE_TOOLKIT_SCROLL_BARS is defined.
5506
5507 2000-11-30 Jason Rumney <jasonr@gnu.org>
5508
5509 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5510 x_display_cursor.
5511
5512 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5513
5514 * fns.c (Fmd5): Doc fix.
5515
5516 2000-11-30 Simon Josefsson <simon@josefsson.org>
5517
5518 * fns.c (Fmd5): New function.
5519 (syms_of_fns): Defsubr md5.
5520
5521 * Makefile.in (obj): Add md5.o
5522
5523 2000-11-30 Gerd Moellmann <gerd@gnu.org>
5524
5525 * md5.h, md5.c: New files, taken from glibc.
5526
5527 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5528
5529 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
5530 hasn't a font, use that of the frame, as drawing glyphs does.
5531
5532 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5533
5534 * eval.c (Frun_hooks): Allow 0 arguments.
5535
5536 2000-11-29 Gerd Moellmann <gerd@gnu.org>
5537
5538 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5539 is over the menu bar widget, say it's not on the frame.
5540
5541 * xfns.c (Fx_create_frame): Reintroduce the call to
5542 face-set-after-frame-defaults.
5543
5544 * eval.c (Fsignal): Reset handling_signal.
5545
5546 2000-11-28 Jason Rumney <jasonr@gnu.org>
5547
5548 * w32menu.c (add_menu_item): Reset menu item text when changing
5549 type to radio button.
5550
5551 2000-11-28 Gerd Moellmann <gerd@gnu.org>
5552
5553 * xselect.c: Update copyright.
5554
5555 * window.c (coordinates_in_window): If on a mode or header line,
5556 but sufficiently close to its start, return ``on vertical
5557 border''. This gives us a way to drag windows horizontally when
5558 using toolkit scroll bars.
5559
5560 * xterm.c (note_mouse_highlight): Change the cursor shape
5561 on the vertical border between windows.
5562
5563 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5564
5565 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5566 (syms_of_xfns): DEFVAR_LISP it.
5567 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5568
5569 * textprop.c (text_read_only): New function.
5570 (verify_interval_modification): Use it instead of signaling
5571 `text-read-only'. This makes it easier to catch this error
5572 with a breakpoint.:
5573
5574 * xdisp.c (forward_to_next_line_start): Check for newlines,
5575 not end of line, which includes CR.
5576
5577 2000-11-28 Kenichi Handa <handa@etl.go.jp>
5578
5579 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5580 include no-conversion.
5581
5582 2000-11-27 Jason Rumney <jasonr@gnu.org>
5583
5584 * w32fns.c (w32_load_system_font): Always mark font as double byte
5585 if codepage is unicode.
5586
5587 2000-11-27 Gerd Moellmann <gerd@gnu.org>
5588
5589 * xdisp.c (forward_to_next_line_start): If already on a newline,
5590 just consume it to avoid unintended skipping over invisible text below.
5591
5592 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5593 `vertical-line', `mode-line' and `header-line' events.
5594
5595 * xdisp.c (try_window_id): Avoid starting to display in the middle
5596 of a character, a TAB for instance. This is easier than to set
5597 up the iterator exactly, and it's not a frequent case, so the
5598 additional effort wouldn't really pay off.
5599
5600 2000-11-26 Andrew Choi <akochoi@i-cable.com>
5601
5602 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
5603 init_window_once.
5604
5605 2000-11-25 Jason Rumney <jasonr@gnu.org>
5606
5607 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5608 Args to window_from_coordinates should be pixel coordinates.
5609
5610 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5611 redisplay handles them properly.
5612
5613 2000-11-25 Miles Bader <miles@gnu.org>
5614
5615 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5616
5617 2000-11-24 Jason Rumney <jasonr@gnu.org>
5618
5619 * w32.c (init_environment): Set LANG environment variable based on
5620 locale settings, if not set.
5621
5622 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5623 making tool bar smaller. When clearing the frame, also
5624 clear current matrices. Clear frame when tool bar disappears.
5625 Don't use more lines for the tool-bar than is available.
5626 (x_change_window_heights): New function.
5627
5628 2000-11-24 Gerd Moellmann <gerd@gnu.org>
5629
5630 * xdisp.c (init_from_display_pos): If POS says we're already after
5631 an overlay string ending at POS, make sure to pop the iterator
5632 because it will be in front of that overlay string. When POS is
5633 ZV, we've thereby also ``processed'' overlay strings at ZV.
5634
5635 * xfaces.c (lface_from_face_name): Function comment fix.
5636
5637 2000-11-24 Miles Bader <miles@gnu.org>
5638
5639 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5640 apply `mode-line-inverse-video' -- zero means force display using
5641 the default face, non-zero means display using the specialized face.
5642 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5643
5644 2000-11-23 Kenichi Handa <handa@etl.go.jp>
5645
5646 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5647 hard coded `4'.
5648
5649 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5650
5651 * coding.c (decode_coding_emacs_mule): Fix the case of
5652 CODING_EOL_LF, which used uninitialized value of c.
5653
5654 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5655
5656 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5657
5658 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5659
5660 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5661 buffer object.
5662
5663 * frame.h (struct frame): Replace desired_tool_bar_items,
5664 current_tool_bar_items, n_desired_tool_bar_items,
5665 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
5666
5667 * frame.c (make_frame): Change initialization of tool bar
5668 items accordingly.
5669
5670 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
5671 Change references to members deleted from struct frame to use the
5672 new ones.
5673
5674 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
5675 references to members deleted from struct frame to use the new ones.
5676
5677 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
5678
5679 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5680
5681 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
5682 (note_tool_bar_highlight): Change references to members deleted
5683 from struct frame to use the new ones.
5684
5685 2000-11-23 Miles Bader <miles@gnu.org>
5686
5687 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5688 the face's inverse-video attribute, rather than overriding it.
5689
5690 2000-11-22 Gerd Moellmann <gerd@gnu.org>
5691
5692 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5693 making tool bar smaller.
5694
5695 2000-11-22 Dave Love <fx@gnu.org>
5696
5697 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5698
5699 2000-11-22 Miles Bader <miles@gnu.org>
5700
5701 * keyboard.c (Vminibuffer_message_timeout): New variable.
5702 (command_loop_1): Use it to determine message timeout.
5703 (syms_of_keyboard): Initialize it.
5704
5705 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
5706
5707 2000-11-22 Kenichi Handa <handa@etl.go.jp>
5708
5709 * sysdep.c: Move the code for declaring h_errno after #include
5710 <netdb.h>.
5711
5712 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5713
5714 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5715 the menu bar when the tooltip is unmapped.
5716
5717 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5718 sole visible buffer when we're currently in the mini-buffer, and
5719 give up if so.
5720
5721 2000-11-21 Jason Rumney <jasonr@gnu.org>
5722
5723 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5724 put on the clipboard.
5725 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5726 copy of what Emacs last put there. If they are the same, do not
5727 use the clipboard copy to avoid losing data due to coding conversions.
5728
5729 2000-11-22 Miles Bader <miles@gnu.org>
5730
5731 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5732 (syms_of_minibuf): Initialize it.
5733 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5734 to prompt, don't make read-only.
5735
5736 2000-11-21 Gerd Moellmann <gerd@gnu.org>
5737
5738 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5739 Add BEFORE/AFTER_POTENTIAL_GC.
5740
5741 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5742
5743 * buffer.c (mmap_free_1): Avoid a compiler warning.
5744
5745 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5746
5747 2000-11-21 Kenichi Handa <handa@etl.go.jp>
5748
5749 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5750 ... #endif scope.
5751
5752 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5753
5754 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
5755 screen supports it.
5756
5757 * s/gnu-linux.h: Don't use `#cpu'.
5758
5759 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5760 not defined in mman.h.
5761
5762 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
5763 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5764 and store an index in the XClientMessageEvent. Storing a
5765 Lisp_Object or pointer can fail on a 64 bit system, since X only
5766 transfers 32 bits.
5767 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5768
5769 2000-11-20 Dave Love <fx@gnu.org>
5770
5771 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5772
5773 2000-11-20 Gerd Moellmann <gerd@gnu.org>
5774
5775 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5776
5777 2000-11-20 Kenichi Handa <handa@etl.go.jp>
5778
5779 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5780 by WIDTH.
5781
5782 * alloc.c (make_string): Fix previous change. Be sure to make
5783 unibyte string correctly.
5784
5785 2000-11-19 Gerd Moellmann <gerd@gnu.org>
5786
5787 * window.c (Fwindow_list): Change parameter list to be XEmacs
5788 compatible.
5789 (window_list_1): New function.
5790 (window_loop): Use it instead of Fwindow_list.
5791
5792 * sysdep.c (emacs_ospeed): New variable.
5793 (toplevel): Don't declare ospeed extern.
5794 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5795
5796 * termcap.c (ospeed): Remove.
5797 (tputs) [!emacs]: Remove unused code.
5798 (tgetent): Avoid a compiler warning.
5799
5800 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5801 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
5802 SCROLL_BAR_X_WIDGET with additional argument DPY.
5803
5804 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5805 removed.
5806 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5807 Take the X display as additional argument.
5808 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5809 `Widget' is a pointer type that's not easily stored in Lisp_Object
5810 form in a portable way.
5811
5812 * dispnew.c (update_text_area): Fix last change.
5813
5814 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5815
5816 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5817
5818 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5819 clear current matrices.
5820
5821 * buffer.c (mmap_enlarge): Don't print a message on stderr
5822 if mapping new memory at the end of the existing region fails.
5823
5824 * dispnew.c (update_text_area): Don't skip over equal glyphs
5825 when the last current glyph overlaps the glyph to its right.
5826
5827 2000-11-18 Miles Bader <miles@gnu.org>
5828
5829 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5830 lines that *end* with "..." too (that's the most common case!).
5831
5832 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5833
5834 * xdisp.c (resize_mini_window): Temporarily change to the
5835 mini-window's buffer if necessary.
5836
5837 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5838 the tooltip obscures less text under it.
5839
5840 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5841
5842 * puresize.h (BASE_PURESIZE): Increase to 700000.
5843
5844 2000-11-18 Jason Rumney <jasonr@gnu.org>
5845
5846 * w32term.c (w32_draw_bitmap): Use face to set colors.
5847
5848 2000-11-17 Dave Love <fx@gnu.org>
5849
5850 * lread.c (Fload): Fix #ifdef for pcc.
5851
5852 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5853
5854 * xdisp.c (pos_visible_p): Compute the default character height
5855 differently.
5856
5857 2000-11-16 Gerd Moellmann <gerd@gnu.org>
5858
5859 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
5860 knowing the line's height; use the default font's height in that case.
5861
5862 * xfaces.c (weight_table): Add `demi' with the same meaning as
5863 `demibold'.
5864
5865 2000-11-16 Kenichi Handa <handa@etl.go.jp>
5866
5867 * dispnew.c (null_row): New global static variable.
5868 (clear_glyph_row): Delete local static variable null_row.
5869
5870 2000-11-15 Jason Rumney <jasonr@gnu.org>
5871
5872 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5873 (w32_alloc_lighter_color): Use new brightness calculations from
5874 xterm.c. Scale delta to be in the range expected by W32.
5875 (w32_draw_relief_rect): Use frame relief colors.
5876
5877 2000-11-15 Gerd Moellmann <gerd@gnu.org>
5878
5879 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5880 (Qinhibit_default_face_x_resources): New variable.
5881 (syms_of_frame): Initialize it.
5882 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5883
5884 * xdisp.c (pos_visible_p): Improve function comment.
5885
5886 * lisp.h (BINDING_STACK_SIZE): New macro.
5887
5888 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5889 reading the directory if readdir returns null and errno is EAGAIN
5890 or EINTR.
5891
5892 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5893
5894 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5895 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5896 Set amount_to_scroll to max of dx and scroll_step so that
5897 scroll-conservatively doesn't defeat scroll-step>1.
5898 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5899 scroll-conservatively for line-at-a-time scrolling.
5900
5901 2000-11-14 Gerd Moellmann <gerd@gnu.org>
5902
5903 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5904 extra argument.
5905
5906 * xdisp.c (current_mode_line_height, current_header_line_height):
5907 New variables.
5908 (init_xdisp): Initialize them.
5909 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5910 and use exact mode line heights if it is set.
5911
5912 * lisp.h (pos_visible_p): Change prototype.
5913
5914 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5915 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5916 and current_header_line_height first.
5917 (current_mode_line_height, current_header_line_height):
5918 Declare extern.
5919
5920 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5921
5922 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5923 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5924 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5925
5926 2000-11-14 Miles Bader <miles@gnu.org>
5927
5928 * xterm.c (x_alloc_lighter_color): Include an additive component
5929 too for dark colors, because FACTOR isn't enough.
5930 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5931 New macros.
5932
5933 2000-11-13 Gerd Moellmann <gerd@gnu.org>
5934
5935 * keyboard.c (show_help_echo): Call message3_nolog with number of
5936 bytes in the help string as 2nd parameter, instead of the number
5937 of characters.
5938
5939 2000-11-13 Miles Bader <miles@gnu.org>
5940
5941 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5942 (Fload): Use new openp return protocol.
5943 Don't try to use Vload_source_file_function to load .elc files.
5944 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5945 openp return protocol.
5946 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5947
5948 2000-11-11 Kenichi Handa <handa@etl.go.jp>
5949
5950 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5951
5952 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5953 Defined these macros.
5954 (NLIST_STRUCT): Avoid re-defining it.
5955
5956 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5957 -I/usr/contrib/X11R6/include.
5958 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5959
5960 2000-11-10 Jason Rumney <jasonr@gnu.org>
5961
5962 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5963
5964 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5965 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5966
5967 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5968 (Qw32_charset_vietnamese): New symbol.
5969 (xlfd_charset_of_font): New function.
5970 (w32_load_system_font): Use it.
5971 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5972 when Vw32_charset_info_alist is nil to ensure default face always
5973 has font. Use Fcar and Fcdr for safety.
5974 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5975 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5976 pseudo-codepages for special cases.
5977 (w32_to_x_font): New parameter to allow charset portion to be
5978 specified where there is many to one mapping. Callers changed.
5979 (w32_list_fonts): Avoid listing fonts that won't display.
5980
5981 2000-11-10 Gerd Moellmann <gerd@gnu.org>
5982
5983 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5984 (font_list_1): Renamed from font_list.
5985 (font_list): New function, trying alternative registries from
5986 Vface_alternative_font_registry_alist.
5987 (Finternal_set_alternative_font_registry_alist): New function.
5988 (syms_of_xfaces): Initialize and Staticpro
5989 Vface_alternative_font_registry_alist.
5990 Defsubr Finternal_set_alternative_font_registry_alist.
5991
5992 2000-11-09 Ken Raeburn <raeburn@gnu.org>
5993
5994 * lisp.h (Flooking_at): Declare.
5995
5996 2000-11-09 Gerd Moellmann <gerd@gnu.org>
5997
5998 * dired.c (directory_files_internal): Fix a braino.
5999
6000 * dired.c (directory_files_internal): Add missing GCPRO's.
6001 Some cleanup.
6002
6003 2000-11-08 Gerd Moellmann <gerd@gnu.org>
6004
6005 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6006 (resize_mini_window): Return quickly if Vresize_mini_window is
6007 nil. Don't return if Vmax_mini_window_height is nil.
6008
6009 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6010 (syms_of_xdisp): Initialize them.
6011 (resize_mini_window): Act according to the setting of
6012 Vresize_mini_window.
6013 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6014
6015 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6016 scroll bar widget after configuring it, so that it will appear at
6017 the right position from the start.
6018 (XTredeem_scroll_bar): Cleaned up.
6019
6020 2000-11-08 Kenichi Handa <handa@etl.go.jp>
6021
6022 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
6023 font is taller than the frame line, we don't have to bias the
6024 division by two.
6025
6026 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6027
6028 2000-11-07 Dave Love <fx@gnu.org>
6029
6030 * config.in (HAVE_MKSTEMP): Add.
6031
6032 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6033
6034 2000-11-07 Gerd Moellmann <gerd@gnu.org>
6035
6036 * window.c (Fset_window_configuration): Don't try to preserve
6037 point in the current buffer, if that buffer is displayed in more
6038 than one window.
6039
6040 * xfaces.c (lookup_named_face): If default face isn't realized,
6041 try to realize it. Return -1 if not successful.
6042 (Fx_list_fonts): Handle case that face cannot be determined.
6043 (Fface_font): Likewise.
6044
6045 2000-11-06 Gerd Moellmann <gerd@gnu.org>
6046
6047 * window.c (displayed_window_lines): Detect partially
6048 visible lines at the bottom correctly.
6049
6050 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6051
6052 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6053 when ensuring we don't do visit in indirect buffer.
6054
6055 2000-11-06 Kenichi Handa <handa@etl.go.jp>
6056
6057 * composite.h (compose_chars_in_text): Add prototype.
6058
6059 * composite.c (Vcomposition_function_table): New variable.
6060 (Qcomposition_function_table): New variable.
6061 (run_composition_function): Call
6062 Vcompose_chars_after_function with three arguments.
6063 (compose_chars_in_text): New function.
6064 (syms_of_composite): Modified the doc-string of
6065 Vcompose_chars_after_function. Declare composition-function-table
6066 as a lisp variable, and initialize it.
6067
6068 * xfns.c (x_encode_text): Suppress producing escape sequences for
6069 composition.
6070
6071 * xselect.c: Include composite.h.
6072 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6073
6074 2000-11-05 Andrew Innes <andrewi@gnu.org>
6075
6076 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6077
6078 * sysdep.c (read_input_waiting): Remove extraneous argument to
6079 read_socket_hook.
6080
6081 * w32fns.c (Fx_server_version): Include w32_build_number in the
6082 return list.
6083
6084 * w32heap.c (w32_build_number): New variable.
6085 (cache_system_info): Set it.
6086
6087 * w32heap.h (w32_build_number): Add extern.
6088
6089 * emacs.c (syms_of_emacs): Update docstring for
6090 system-configuration, to reflect the actual usage on MS-Windows.
6091
6092 2000-10-31 Gerd Moellmann <gerd@gnu.org>
6093
6094 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6095 process idle timers while waiting for another event.
6096
6097 * dispnew.c (update_frame_line): Handle case where spaces in
6098 the default face are colored.
6099
6100 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6101 window height hasn't changed.
6102
6103 2000-10-31 Jason Rumney <jasonr@gnu.org>
6104
6105 * w32term.c (x_produce_glyphs): Handle composite characters.
6106 (x_draw_glyph_string_foreground)
6107 (x_draw_composite_glyph_string_foreground): Restore old font.
6108
6109 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6110
6111 * minibuf.c (read_minibuf): Reset the undo history just before
6112 starting the recursive-edit.
6113
6114 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6115
6116 * xfaces.c (menu_face_change_count): New variable.
6117 (Finternal_set_lisp_face_attribute): Increment it for changes
6118 of the `menu' face.
6119 (realize_basic_faces): Reflect changes in the `menu' faces
6120 in menu bars.
6121
6122 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6123 dy obtained from the iterator's y-position after moving from
6124 scroll_margin_pos to PT; see comment there.
6125
6126 * xdisp.c (safe_eval_handler): Call add_to_log.
6127
6128 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6129 is not a symbol or string.
6130
6131 * xdisp.c (echo_area_display): Don't perform a display update from
6132 inside redisplay. The update will happen anyway at the end of
6133 redisplay, and it can confuse redisplay (GC messages while
6134 redisplaying, for instance.)
6135
6136 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6137
6138 * xrdb.c (x_load_resources): Use the class name in the defaults.
6139
6140 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
6141 (regex_compile): Catch bogus \(\1\).
6142
6143 2000-10-30 Gerd Moellmann <gerd@gnu.org>
6144
6145 * xterm.c (x_alloc_nearest_color): Fix last change to compare
6146 RGB values.
6147
6148 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
6149 we have a color cache, check that the cached color equals the
6150 allocated color. If not, clear the color cache.
6151
6152 * window.c (displayed_window_lines): Change buffers if necessary.
6153 Fix computation of displayed lines.
6154
6155 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
6156 update_menu_bindings to DEFVAR_BOOL.
6157
6158 2000-10-30 Kenichi Handa <handa@etl.go.jp>
6159
6160 * search.c (Fset_match_data): Be sure to make search_regs always sane.
6161
6162 * puresize.h (BASE_PURESIZE): Increase to 680000.
6163
6164 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
6165
6166 2000-10-29 Jason Rumney <jasonr@gnu.org>
6167
6168 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
6169
6170 * w32term.c (w32_bdf_per_char_metric): Negate descent.
6171 (w32_cache_char_metrics): Handle possibility that 'x' does not
6172 exist in a BDF font.
6173 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
6174
6175 * w32bdf.h (bdffont): Add nchars.
6176
6177 * w32bdf.c (set_bdf_font_info): Set it.
6178 (w32_BDF_TextOut): Swap byte order of double byte characters.
6179 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
6180
6181 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6182
6183 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
6184 don't override the colors in frame's param_alist, unless they are
6185 unspecified.
6186
6187 * term.c (reassert_line_highlight): If inverse_video is non-zero,
6188 reverse the effect of the highlight flag.
6189
6190 2000-10-27 Ken Raeburn <raeburn@gnu.org>
6191
6192 * window.h (Fwindow_live_p): Declare.
6193
6194 * undo.c (record_delete): Check that last_undo_buffer is really a
6195 buffer before applying XBUFFER to it.
6196
6197 * keymap.c (where_is_internal): Pass lisp object, not integer, to
6198 Faref.
6199
6200 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6201
6202 * lisp.h (KEYMAPP): New macro.
6203 (get_keymap): Remove.
6204 (get_keymap_1): Rename get_keymap.
6205
6206 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
6207
6208 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
6209
6210 * xmenu.c (single_submenu): Use KEYMAPP.
6211 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6212 Use KEYMAPP rather than Fkeymapp.
6213
6214 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
6215
6216 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
6217 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6218 Use KEYMAPP rather than Fkeymapp.
6219 (single_submenu): Use KEYMAPP.
6220 (w32_menu_show, w32_dialog_show): Use TRUE.
6221
6222 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
6223
6224 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
6225 (Fkeymapp): Use KEYMAPP.
6226 (get_keymap): Rename from get_keymap_1. Remove old def.
6227 Return t when autoload=0 and error=0 and the keymap needs autoloading.
6228 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
6229 (Fminor_mode_key_binding): Don't raise an error if the binding
6230 is not a keymap.
6231 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6232 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6233
6234 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6235 Allow Vspecial_event_map to be autoloaded.
6236 (menu_bar_items): Fetch the keymap rather than using keymapp.
6237 (menu_bar_one_keymap): No need to follow func-indirect any more.
6238 (parse_menu_item): get_keymap_1 -> get_keymap.
6239 (tool_bar_items): Fetch the keymap rather than using keymapp.
6240 (read_key_sequence): Use KEYMAPP.
6241
6242 * intervals.c (get_local_map): Use get_keymap rather than following
6243 function-indirections explicitly.
6244
6245 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6246
6247 2000-10-27 Jason Rumney <jasonr@gnu.org>
6248
6249 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6250 point, as Windows has oversized fonts.
6251
6252 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6253
6254 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6255
6256 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6257 (freehook, reallochook): Handle null pointer arguments.
6258 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6259
6260 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6261
6262 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6263 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6264 Giving in to popular pressure to shut up the compiler with casts.
6265
6266 2000-10-27 Gerd Moellmann <gerd@gnu.org>
6267
6268 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6269 signed value, and use a default value computed from the font's
6270 maximum descent.
6271
6272 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6273
6274 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6275 that specify a negative underline position can still use underlines.
6276
6277 * window.c (Fpos_visible_in_window_p): Make POS default to
6278 WINDOW's point, not the current buffer's point.
6279
6280 2000-10-26 Dave Love <fx@gnu.org>
6281
6282 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6283 when it's necessary.
6284
6285 2000-10-26 Gerd Moellmann <gerd@gnu.org>
6286
6287 * window.c (size_window): Compute size difference from sum of old
6288 child window sizes instead of from parent's size.
6289
6290 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6291 Handle obscured lines at the top of the window.
6292
6293 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6294 down after the last error condition check.
6295
6296 * frame.c (Fdelete_frame): Run delete-frame-hook.
6297
6298 2000-10-26 Kenichi Handa <handa@etl.go.jp>
6299
6300 * coding.c (decode_coding): Fix previous change (check also
6301 CODING_MODE_LAST_BLOCK).
6302
6303 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6304
6305 * regex.c: More `unsigned char' -> `re_char' changes.
6306 Also change several `int' into `re_wchar_t'.
6307 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6308 (PUSH_FAILURE_POINTER): Don't cast any more.
6309 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6310 We want GCC to complain, since this piece of code makes
6311 re_match non-reentrant, which *should* be fixed.
6312 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6313 (EXTEND_BUFFER): Use RETALLOC.
6314 (SET_LIST_BIT): Don't cast.
6315 (re_wchar_t): New type.
6316 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6317 that those two functions will always properly return.
6318 (IMMEDIATE_QUIT_CHECK): Cast to void.
6319 (analyse_first): Use recursion rather than an explicit stack.
6320 (re_compile_fastmap): Can't fail anymore.
6321 (re_search_2): Don't check re_compile_fastmap for failure.
6322 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6323 Now also sets the new value (passed in a new argument).
6324 (re_match_2_internal): Use it.
6325 Also, use a new var `reg' of type size_t when looping through regs
6326 rather than reuse the inappropriate `mcnt'.
6327
6328 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6329 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6330 (where_is_internal): Renamed from Fwhere_is_internal.
6331 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6332 (Fwhere_is_internal): New function wrapping where_is_internal.
6333 (where_is_internal_1): Handle the case where we're filling the cache.
6334 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6335
6336 2000-10-25 Miles Bader <miles@gnu.org>
6337
6338 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6339
6340 2000-10-25 Gerd Moellmann <gerd@gnu.org>
6341
6342 * window.c (pos_fully_visible_p): Removed.
6343 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6344 if position is visible and/or fully visible.
6345
6346 * lisp.h (pos_visible_p): Add prototype.
6347
6348 * xdisp.c (pos_visible_p): New function.
6349
6350 2000-10-25 Kenichi Handa <handa@etl.go.jp>
6351
6352 * process.c (send_process): If OBJECT is t, it means that the data
6353 is from C string, but we should encode it. Before calling
6354 setup_raw_text_coding_system, be sure to flush out data by the
6355 previous coding system.
6356
6357 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6358
6359 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6360 assignment of startpos to prev when startpos == pos.
6361
6362 * editfns.c (find_field): Set the field stickiness correctly from
6363 overlay fields. Use renamed `text_property_stickiness'.
6364 (text_property_stickiness): Renamed from `char_property_stickiness'.
6365 Only check text properties, not overlays.
6366 * textprop.c (get_char_property_and_overlay): New function.
6367 (Fget_char_property): Use it.
6368 * intervals.h (get_char_property_and_overlay): Add declaration.
6369
6370 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6371
6372 * keymap.c: Use AREF, ASET and ASIZE macros.
6373 (Fmake_sparse_keymap): Docstring fix.
6374 (synkey): Remove.
6375 (shadow_lookup): Move up.
6376 Handle the case where lookup-key returns an integer.
6377 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6378 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6379 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6380 Simplify/rewrite the keymap-finding code.
6381 Add check for command shadowing, using shadow_lookup.
6382
6383 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6384
6385 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6386 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6387 a symbol.
6388
6389 2000-10-24 Andrew Innes <andrewi@gnu.org>
6390
6391 * dired.c (directory_files_internal_unwind): New function.
6392 (directory_files_internal): Use it to ensure closedir is called
6393 even if expand-file-name or file-attributes throw, eg. because of
6394 a user interrupt. Also enable immediate_quit while calling
6395 re_search, so that matching can be interrupted as well.
6396
6397 2000-10-24 Andrew Innes <andrewi@gnu.org>
6398
6399 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6400 NT-Emacs only.
6401 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6402 so that re_search functions only quit when callers expect them to.
6403
6404 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6405
6406 * regex.c (regex_compile): Change the way of handling a range from
6407 a char less than 256 to a char not less than 256.
6408
6409 2000-10-24 Gerd Moellmann <gerd@gnu.org>
6410
6411 * window.c (size_window): Prevent setting window's width or
6412 height to a negative value (esp. with XSETFASTINT).
6413
6414 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6415 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6416 (protect_malloc_state) [GC_MALLOC_CHECK &&
6417 GC_PROTECT_MALLOC_STATE]: New function.
6418 (PROTECT_MALLOC_STATE): New macro.
6419 (__malloc_initialize, morecore, _malloc_internal)
6420 (_free_internal) _realloc_internal): Use it to make _heapinfo
6421 read-only outside of gmalloc.
6422
6423 * keymap.c: Update copyright.
6424
6425 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6426 a symbol.
6427
6428 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6429
6430 * filelock.c (unlock_all_files): Use unlock_file to expand each
6431 buffer's file_truename before trying remove its lock file.
6432
6433 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6434
6435 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6436 or CRLF, decode EOLs.
6437
6438 2000-10-24 Kenichi Handa <handa@etl.go.jp>
6439
6440 * window.c (Fdisplay_buffer): Fix doc.
6441
6442 2000-10-23 Jason Rumney <jasonr@gnu.org>
6443
6444 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6445 ASCII font of default fontset on Windows.
6446
6447 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6448 xterm.c comment below).
6449
6450 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6451
6452 2000-10-23 Gerd Moellmann <gerd@gnu.org>
6453
6454 * xterm.c (x_connection_closed): Reset handling_signal.
6455
6456 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
6457
6458 2000-10-23 Miles Bader <miles@gnu.org>
6459
6460 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6461 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6462 maintain old behavior.
6463 * minibuf.c (Fminibuffer_complete): Likewise.
6464
6465 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6466
6467 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6468 that when a font can't be exactly centered, it errs up rather than
6469 down.
6470
6471 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
6472
6473 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
6474
6475 2000-10-23 Andrew Choi <akochoi@i-cable.com>
6476
6477 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6478
6479 * dispnew.c [macintosh]: Include macterm.h.
6480 (init_display) [macintosh]: Initialization for window system.
6481
6482 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6483 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6484 syms_of_search, x_term_init, and init_keyboard before calling
6485 init_window_once. Also, call syms_of_xmenu.
6486
6487 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6488 default fontset to Monaco.
6489
6490 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6491 NewMacWindow and DisposeMacWindow.
6492 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6493 instead of calling NewMacWindow and setting fields of
6494 f->output_data.mac directly. Call init_frame_faces.
6495 (Fdelete_frame) [macintosh]: Remove unused code.
6496 (Fmodify_frame_parameters) [macintosh]: Call
6497 x_set_frame_parameters instead of mac_set_frame_parameters.
6498
6499 * frame.h [macintosh]: Define menu_bar_lines field in struct
6500 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6501
6502 * keyboard.c [macintosh]: Include macterm.h.
6503 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6504 and menu_bar_activate_event type events as for X and NT.
6505 (make_lispy_event) [macintosh]: Construct lisp events of type
6506 MENU_BAR_EVENT as for X and NT.
6507
6508 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6509 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6510 (sys_subshell) [macintosh]: Remove definition entirely.
6511 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6512 Vwindow_system_version here. Remove initialization of
6513 Vx_bitmap_file_path.
6514 (read_input_waiting): Correct the number of parameters passed to
6515 read_socket_hook.
6516 Move all Macintosh functions to mac/mac.c.
6517
6518 * term.c [macintosh]: Include macterm.h.
6519
6520 * window.c [macintosh]: Include macterm.h.
6521
6522 * xdisp.c [macintosh]: Include macterm.h. Declare
6523 set_frame_menubar and pending_menu_activation.
6524 (echo_area_display) [macintosh]: Do not return if terminal frame
6525 is the selected frame.
6526 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6527 Allow only the selected frame to set menu bar.
6528 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6529 calling FRAME_EXTERNAL_MENU_BAR (f).
6530 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6531
6532 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6533 and check_x. Declare XCreateGC. Define x_create_gc and
6534 x_free_gc. Initialize font_sort_order.
6535 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6536 but call x_list_fonts instead of w32_list_fonts.
6537 (Finternal_face_x_get_resource) [macintosh]: Do not call
6538 display_x_get_resource.
6539 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6540 (realize_x_face) [macintosh]: Load the font if it is specified in
6541 ATTRS.
6542 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
6543
6544 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6545
6546 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6547 is nil: since we go to the end of submap anyway, we'd end up
6548 setting nil to nil.
6549 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6550 doesn't obey autoload.
6551
6552 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6553
6554 * msdos.c (dos_set_window_size): Update screen dimension variables.
6555
6556 2000-10-21 Jason Rumney <jasonr@gnu.org>
6557
6558 * w32term.c (w32_cache_char_metrics): Double check that font is
6559 really fixed pitch before trusting tmPitchAndFamily.
6560
6561 2000-10-21 Andrew Innes <andrewi@gnu.org>
6562
6563 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6564
6565 * w32term.h: Extern decl for w32_cache_char_metrics.
6566
6567 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6568
6569 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6570 (w32_unload_font): Free per_char array if present.
6571
6572 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6573 cached information in emulated XFontStruct to handle common cases
6574 quickly. Do not allocate XCharStruct for return.
6575 (w32_native_per_char_metric): New function.
6576 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6577 allocating one.
6578 (x_produce_glyphs): Don't get an HDC. Change calls to
6579 w32_per_char_metric to match arg change above. Remove calls to
6580 free results.
6581 (w32_get_glyph_overhangs): Ditto.
6582 (w32_cache_char_metrics): New function.
6583
6584 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6585 ($(BLD)/casefiddle.$(O)): Remove compile command.
6586 ($(BLD)/gmalloc.$(O)): Remove compile command.
6587 ($(BLD)/dispnew.obj):
6588 ($(BLD)/keyboard.obj):
6589 ($(BLD)/w32inevt.obj):
6590 ($(BLD)/w32bdf.obj):
6591 ($(BLD)/alloc.obj):
6592 ($(BLD)/buffer.obj):
6593 ($(BLD)/editfns.obj):
6594 ($(BLD)/emacs.obj):
6595 ($(BLD)/fileio.obj):
6596 ($(BLD)/fns.obj):
6597 ($(BLD)/indent.obj):
6598 ($(BLD)/insdel.obj):
6599 ($(BLD)/intervals.obj):
6600 ($(BLD)/minibuf.obj):
6601 ($(BLD)/print.obj):
6602 ($(BLD)/scroll.obj):
6603 ($(BLD)/sysdep.obj):
6604 ($(BLD)/textprop.obj):
6605 ($(BLD)/widget.obj):
6606 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6607 ($(BLD)/term.obj): Add dependency on dispextern.h.
6608
6609 * makefile.nt ($(BLD)\dispnew.obj):
6610 ($(BLD)\keyboard.obj):
6611 ($(BLD)\w32inevt.obj):
6612 ($(BLD)\w32bdf.obj):
6613 ($(BLD)\alloc.obj):
6614 ($(BLD)\buffer.obj):
6615 ($(BLD)\editfns.obj):
6616 ($(BLD)\emacs.obj):
6617 ($(BLD)\fileio.obj):
6618 ($(BLD)\fns.obj):
6619 ($(BLD)\indent.obj):
6620 ($(BLD)\insdel.obj):
6621 ($(BLD)\intervals.obj):
6622 ($(BLD)\minibuf.obj):
6623 ($(BLD)\print.obj):
6624 ($(BLD)\scroll.obj):
6625 ($(BLD)\sysdep.obj):
6626 ($(BLD)\textprop.obj):
6627 ($(BLD)\widget.obj):
6628 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6629 ($(BLD)\term.obj): Add dependency on dispextern.h
6630
6631 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6632
6633 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6634 with an additional argument of Qt.
6635
6636 2000-10-21 Miles Bader <miles@gnu.org>
6637
6638 * window.c (pos_fully_visible_in_window_p): New function.
6639 (Fpos_visible_in_window_p): Add FULLY argument.
6640 Use pos_fully_visible_in_window_p.
6641 (window_scroll_pixel_based, window_scroll_line_based): Update
6642 calls to Fpos_visible_in_window_p.
6643 * lisp.h (Fpos_visible_in_window_p): Update prototype
6644
6645 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6646
6647 * alloc.c (toplevel): Conditionalize compilation of mem_*
6648 functions differently.
6649
6650 2000-10-20 Jason Rumney <jasonr@gnu.org>
6651
6652 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6653 mem_init where it used to be. mem_z etc not defined otherwise.
6654
6655 2000-10-20 Gerd Moellmann <gerd@gnu.org>
6656
6657 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6658 GC_MALLOC_CHECK.
6659 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6660 structure definition and related variabled to the top of the file.
6661 Include this code when GC_MALLOC_CHECK is defined.
6662 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6663 register/unregister allocated region.
6664 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6665 which isn't allocated.
6666 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6667 something which is already in use.
6668 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6669 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6670 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6671 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6672
6673 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6674 _malloc_internal instead of malloc.
6675 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6676 of free.
6677
6678 2000-10-20 Andrew Innes <andrewi@gnu.org>
6679
6680 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6681 Windows.
6682 (my_strftime) <macro>: Don't use macro arg list when redefining as
6683 _strftime_copytm.
6684 (my_strftime) <function>: Supply 0 as ut argument.
6685
6686 2000-10-19 Jason Rumney <jasonr@altavista.net>
6687
6688 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6689 including dispextern.h, as it stops faces from working.
6690
6691 * w32fns.c (Fx_create_frame): Don't bother calling
6692 face-set-after-frame-default since the caller does it for us
6693 anyway. Clean up calls to x_get_arg to be consistent with X.
6694
6695 * w32term.c (x_produce_glyphs): Handle
6696 unibyte_display_via_language_environment correctly.
6697 (w32_draw_box_rect): Fix the calculation of width and height.
6698
6699 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6700 as it has stopped working.
6701 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6702 menu-bar.
6703
6704 2000-10-19 Gerd Moellmann <gerd@gnu.org>
6705
6706 * eval.c (skip_debugger): Prevent a compiler warning.
6707 (Fcondition_case): Likewise.
6708 (Fbacktrace_frame): Use a null interactive spec.
6709
6710 2000-10-19 Kenichi Handa <handa@etl.go.jp>
6711
6712 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6713
6714 2000-10-18 Gerd Moellmann <gerd@gnu.org>
6715
6716 * strftime.c: Sync with glibc, file version 1.78.
6717 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6718 should no longer be used according to ISO 8601.
6719
6720 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6721 no map for meta_prefix_char, don't try to use it as a keymap.
6722 Instead, if T_OK is non-zero, look up a default binding, if any,
6723 otherwise, if T_OK is zero, return nil.
6724
6725 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6726 (x_to_xcolors, png_load): Use x_query_color.
6727
6728 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6729 New functions.
6730 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6731 which can be slow.
6732 (x_copy_color, x_alloc_lighter_color): Likewise.
6733
6734 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6735 (x_query_color, x_query_colors): Add prototype.
6736
6737 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6738 check_string_bytes only if not noninteractive, increase count to 50.
6739
6740 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6741
6742 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6743 markers correctly.
6744
6745 2000-10-17 Gerd Moellmann <gerd@gnu.org>
6746
6747 * alloc.c (pure_bytes_used): Renamed from pureptr.
6748 (ALIGN): New macro.
6749 (pure_alloc): New function.
6750 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6751 Use it.
6752 (Fpurecopy): Use PURE_POINTER_P.
6753
6754 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6755 PT has moved backward.
6756
6757 * xdisp.c (cursor_row_p): Take continued lines into account.
6758
6759 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6760 string's size_byte.
6761 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6762 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6763 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6764 string allocated.
6765
6766 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6767 of selective display off while searching for the next line start.
6768
6769 2000-10-17 Kenichi Handa <handa@etl.go.jp>
6770
6771 * Makefile.in (term.o): Depend on dispextern.h.
6772
6773 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6774
6775 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6776
6777 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6778
6779 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6780 the iterator at the beginning, so that they can be set later on,
6781 for instance in reseat_at_next_visible_line_start, without being
6782 overwritten.
6783
6784 * xfns.c (pbm_format): Add :foreground and :background keywords.
6785 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
6786 (xbm_load): Recognize foreground and background color specifications.
6787
6788 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6789
6790 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6791
6792 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
6793
6794 * msdos.c (IT_set_face): Compare highlighted face with the default
6795 face, and invert colors if these faces' colors are identical.
6796 (Fmsdos_remember_default_colors): Don't swap foreground and
6797 background colors in initial_colors[].
6798 (IT_set_frame_parameters): Don't swap frame's foreground and
6799 background pixels. If ALIST includes "(reverse . t)", swap
6800 foreground-color and background-color properties in frame's
6801 param_alist. If the original frame's param_alist doesn't specify
6802 the colors, store unspecified-fg and unspecified-bg, reversed if
6803 required.
6804
6805 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6806 the colors are unspecified and reversed, reverse fore- and back-
6807 ground in the returned value.
6808 (Fframe_parameter): Ditto.
6809
6810 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6811
6812 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6813 get_last_unchanged_at_beg_row.
6814 (find_first_unchanged_at_end_row): Renamed from
6815 get_first_unchanged_at_end_row.
6816 (find_first_unchanged_at_end_row): Convert assertions to
6817 unconditional tests which abort. When looking for a row in
6818 unchanged text, don't go further back than first_text_row.
6819
6820 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6821 Don't add in the last line's height when deciding if the new
6822 position is below the scroll margin.
6823
6824 2000-10-16 Miles Bader <miles@gnu.org>
6825
6826 * editfns.c (Fconstrain_to_field): Check carefully for field
6827 boundaries if either OLD_POS or NEW_POS has a non-nil field
6828 property, even if they're the same.
6829
6830 2000-10-16 Kenichi Handa <handa@etl.go.jp>
6831
6832 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6833 height for XFillRectangle.
6834
6835 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6836
6837 * syntax.c (Fstring_to_syntax): New function extracted from
6838 Fmodify_syntax_entry.
6839 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6840 (skip_chars, Fforward_comment): Remove unused variables.
6841 (syms_of_syntax): Add defsubr for string-to-syntax.
6842 (describe_syntax): Add code for comment and string fences.
6843
6844 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6845
6846 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6847 Do the meta->esc mapping. Call get_keyelt before returning.
6848 Start scanning from the second element (the first is always `keymap')
6849 to make it easier to detect when we reach a parent map.
6850 Handle the case of inheriting from a symbol whose function is a map.
6851 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6852 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6853 (get_keyelt, Flookup_key): Update call to access_keymap.
6854 Remove the meta->esc mappings.
6855 (define_as_prefix): Delete old disabled code.
6856 (menu_item_p): New function.
6857 (where_is_internal_1): Skip over the few remaining menu items.
6858 * lisp.h (access_keymap): Update prototype.
6859 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6860 Update call to access_keymap.
6861 (follow_key, read_key_sequence): Update calls to access_keymap.
6862 Remove the meta->esc mappings.
6863
6864 2000-10-13 Gerd Moellmann <gerd@gnu.org>
6865
6866 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6867 with additional argument.
6868
6869 * xdisp.c (cursor_row_p): New function.
6870 (try_cursor_movement, display_line): Use it.
6871
6872 * xdisp.c (append_space): Also save/restore iterator's current
6873 character and its length.
6874
6875 * xdisp.c (init_from_display_pos): Add an assertion.
6876 (handle_stop): Don't set iterator's add_overlay_start.
6877 (handle_invisible_prop): Likewise.
6878 (load_overlay_strings): If text under an overlay is invisible,
6879 take both before- and after-strings into account when the iterator
6880 is positioned either at the start or at the end of the overlay.
6881 (forward_to_next_line_start): Rewritten.
6882 (reseat_at_next_visible_line_start): Rewritten.
6883 (set_iterator_to_next): Add parameter RESEAT_P.
6884
6885 * dispextern.h (struct it): Remove member add_overlay_start.
6886 (set_iterator_to_next): Change prototype.
6887
6888 2000-10-13 Kenichi Handa <handa@etl.go.jp>
6889
6890 * coding.c (code_convert_region): Be sure to initialize
6891 coding->category_idx.
6892 (decode_coding_string): Set coding->src_multibyte and
6893 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6894 (encode_coding_string): Set coding->src_multibyte and
6895 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
6896
6897 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6898
6899 * xfns.c (Fx_create_frame): Don't bother calling
6900 face-set-after-frame-default since the caller does it for us anyway.
6901
6902 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6903
6904 * window.c (coordinates_in_window): Fix detection of vertical line
6905 on character terminals.
6906
6907 2000-10-12 Gerd Moellmann <gerd@gnu.org>
6908
6909 * editfns.c (save_excursion_save): Additionally record the
6910 selected window.
6911 (save_excursion_restore): If buffer was visible in a window, and a
6912 different window was selected, and the old selected window is
6913 still live, restore point in that window.
6914
6915 2000-10-12 Kenichi Handa <handa@etl.go.jp>
6916
6917 * xterm.c (x_produce_glyphs): Handle
6918 unibyte_display_via_language_environment correctly.
6919
6920 * regex.c (regex_compile): Change the way of handling a range from
6921 unibyte char to multibyte char.
6922
6923 * syntax.c (skip_chars): Change the way of handling a range from
6924 unibyte char to multibyte char.
6925
6926 * process.c (read_process_output): Cancel previous change.
6927
6928 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6929
6930 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6931
6932 * charset.c (Ffind_charset_string): Doc fix.
6933 (Ffind_charset_region): Doc fix.
6934
6935 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
6936
6937 * process.c (read_process_output): Fix previous change. Adjust
6938 multibyteness of text to insert in a buffer by
6939 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
6940
6941 2000-10-10 Andreas Schwab <schwab@suse.de>
6942
6943 * alloc.c (mark_object): Remove all workarounds installed on
6944 1993-08-08.
6945
6946 2000-10-10 Kenichi Handa <handa@etl.go.jp>
6947
6948 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
6949 (base64_encode_1): Make it work for a text of multibyte form.
6950 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6951 case. Don't call str_to_multibyte because base64_decode_1
6952 produces correct multibyte form for eight-bit codes.
6953 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
6954 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6955 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6956 codes.
6957
6958 * charset.h (CHAR_STRING): Optimized for single byte characters.
6959
6960 2000-10-09 Andreas Schwab <schwab@suse.de>
6961
6962 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6963 -1 after socket is closed, to fall through to error processing.
6964
6965 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6966
6967 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
6968 variables. If ALIST includes foreground-color or
6969 background-color, change also the colors of the default face for
6970 this frame.
6971
6972 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6973
6974 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6975 them extern (they are defined on xfaces.c).
6976 (syms_of_msdos): Don't intern and don't staticpro
6977 Qbackground_color and Qforeground_color.
6978
6979 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6980
6981 * frame.c (Fframe_parameter): For non-windowed frames, if
6982 f->param_alist says foreground or background color is unspecified,
6983 call tty_color_name to return the color name computed from the
6984 frame's current colors.
6985
6986 2000-10-06 Dave Love <fx@gnu.org>
6987
6988 * terminfo.c (ospeed): Don't declare.
6989
6990 * sysdep.c: Don't include string.h.
6991 (h_errno): Declare conditional also on TRY_AGAIN.
6992
6993 * charset.c (Ffind_charset_string): Doc fix.
6994
6995 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
6996 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6997 error messages.
6998
6999 2000-10-05 Dave Love <fx@gnu.org>
7000
7001 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7002 position like menu-bar.
7003
7004 2000-10-05 Gerd Moellmann <gerd@gnu.org>
7005
7006 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7007
7008 * xdisp.c (handle_single_display_prop): Use safe_call1.
7009 (safe_call): Renamed from call_function.
7010 (safe_call1): New function.
7011 (handle_fontified_prop): Use safe_call1 instead of call1.
7012 (safe_eval): Renamed from eval_form.
7013 (safe_eval_handler): Renamed from eval_handler.
7014 (handle_single_display_prop, display_mode_element): Use safe_eval
7015 instead of eval_form.
7016
7017 * xfaces.c (merge_face_heights): Use safe_call instead of
7018 call_function.
7019
7020 * keyboard.c (show_help_echo): Use safe_call instead of
7021 call_function; use safe_eval instead of eval_form.
7022
7023 * lisp.h (safe_call): Renamed from call_function.
7024 (safe_eval): Renamed from eval_form.
7025 (safe_call1): Add prototype.
7026
7027 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7028
7029 * xfns.c (image_ascent): Rearrange ascent calculation for the
7030 has-a-font case.
7031
7032 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7033
7034 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7035 (where_is_internal_1): Don't bother ignoring menu-items any more.
7036
7037 2000-10-04 Gerd Moellmann <gerd@gnu.org>
7038
7039 * keyboard.c (update_menu_bindings): New variable.
7040 (parse_menu_item): Use AREF. If update_menu_bindings
7041 is 0, don't update menu bindings.
7042 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7043
7044 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7045
7046 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7047 to `mark_object'.
7048
7049 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7050
7051 * syntax.c (forw_comment): Match nestedness of ender/starter.
7052 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7053 (prev_char_comstart_first): Remove.
7054 (back_comment): Check two-char comment markers more carefully
7055 to better handle overlapping cases like *//* or /* */* */ ...
7056 Match nestedness of ender/starter.
7057
7058 2000-10-02 Dave Love <fx@gnu.org>
7059
7060 * config.in (HAVE_GAI_STRERROR): Add undef.
7061
7062 * process.c (Fopen_network_stream): Use it.
7063
7064 * m/alpha.h (NO_REMAP): Don't define.
7065
7066 2000-10-02 Gerd Moellmann <gerd@gnu.org>
7067
7068 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7069 return with a string converted to an integer or vice versa when
7070 Vmocklisp_arguments is t.
7071 (Fsignal): Likewise. The function can return for `quit'.
7072 (struct gcpro): Declare member `var' to point to a volatile
7073 Lisp_Object.
7074
7075 * eval.c (error): Prevent compiler warning.
7076
7077 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7078
7079 * keymap.c (keymap_memberp): New function.
7080 (Fset_keymap_parent): Use it.
7081 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7082 Use keymap_memberp to avoid creating cycles.
7083 (access_keymap): Use KEYMAPP.
7084
7085 2000-09-30 Gerd Moellmann <gerd@gnu.org>
7086
7087 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
7088 gai_strerror. Make sure xerrno is set if connect fails. Improve
7089 error recovery.
7090
7091 2000-09-29 Jason Rumney <jasonr@gnu.org>
7092
7093 * w32term.c (w32_char_font_type, w32_encode_char)
7094 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7095 (w32_bdf_per_char_metric): New function.
7096 (w32_per_char_metric): Use it.
7097 (x_draw_glyph_string_background): Always draw background for BDF
7098 glyphs.
7099
7100 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7101 GDI object which is a scarce resource.
7102
7103 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7104 (get_quoted_string): Fix limit on memchr search.
7105 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7106 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7107 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7108 (get_cached_font_char, cache_char_offset): Use macro
7109 BDF_CODEPOINT_RANGE_COVER_P.
7110 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7111 (clear_cached_bitmap_slots): New function.
7112 (GET_HEX_VALUE): G-Z, g-z are not hex.
7113 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7114 (get_bitmap_with_cache): Use new cache implementation.
7115 (create_offscreen_bitmap): New function.
7116 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7117
7118 * w32term.c (x_produce_glyphs): If the distance from the current
7119 position to the next tab stop is less than a canonical character
7120 width, use the tab stop after that.
7121 (x_draw_glyphs): Handle case START and END are out of bounds more
7122 carefully.
7123 (x_clear_mouse_face): Block/unblock input.
7124 (x_display_and_set_cursor): Don't show a hollow box cursor for
7125 buffers whose cursor_type is nil.
7126
7127 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7128
7129 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
7130
7131 * dispextern.h (updating_frame): Declare extern.
7132
7133 2000-09-29 Andreas Schwab <schwab@suse.de>
7134
7135 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7136
7137 2000-09-29 Gerd Moellmann <gerd@gnu.org>
7138
7139 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
7140 use its function definition.
7141 (tool_bar_items): Likewise.
7142
7143 * lisp.h (fatal): Declare NO_RETURN.
7144
7145 2000-09-29 Kenichi Handa <handa@etl.go.jp>
7146
7147 * keymap.c: Remove the line "#undef NULL".
7148
7149 2000-09-28 Gerd Moellmann <gerd@gnu.org>
7150
7151 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
7152
7153 2000-09-28 Dave Love <fx@gnu.org>
7154
7155 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
7156
7157 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
7158
7159 * .gdbinit (xreload): Note its need on GNU/Linux.
7160
7161 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
7162 r_alloc, r_alloc_free.
7163
7164 2000-09-28 Kenichi Handa <handa@etl.go.jp>
7165
7166 * syntax.c (skip_chars): Handle negation correctly.
7167
7168 2000-09-27 Gerd Moellmann <gerd@gnu.org>
7169
7170 * xfaces.c (realize_default_face): Call set_lface_from_font_name
7171 with non-zero FORCE_P argument.
7172
7173 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
7174 Add assertions.
7175
7176 * xdisp.c (window_box_height): Add an assertion.
7177
7178 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
7179 tool-bar than is available.
7180 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
7181
7182 2000-09-27 Dave Love <fx@gnu.org>
7183
7184 * s/irix6-5.h: Now works 64-bit. Tidied.
7185
7186 2000-09-26 Gerd Moellmann <gerd@gnu.org>
7187
7188 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
7189 instead of BITS_PER_INT.
7190 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
7191 EMACS_UINT, respectively.
7192 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
7193
7194 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
7195
7196 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
7197
7198 * window.c (freeze_window_starts): Construct last argument for
7199 foreach_window differently.
7200
7201 * xfns.c (x_decode_color): Don't return a Lisp_Object.
7202
7203 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
7204 EMACS_UINT instead of `int' and `unsigned int'.
7205 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
7206
7207 * frame.h (struct frame): Make the `nothing' member of union
7208 output_data an EMACS_INT.
7209
7210 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
7211 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
7212 size in the sdata structure.
7213 (SDATA_NBYTES, SDATA_DATA): New macros.
7214 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
7215 differently for the different layout of the sdata structure.
7216 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
7217 in sdata.
7218 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
7219 Check that size recorded in the string size and size recorded in
7220 the sdata structure agree.
7221
7222 2000-09-25 Dave Love <fx@gnu.org>
7223
7224 * buffer.c: Include stdio.h.
7225
7226 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
7227
7228 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
7229
7230 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
7231 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
7232 (__malloc_extra_blocks): Declare as __malloc_size_t.
7233
7234 2000-09-25 Gerd Moellmann <gerd@gnu.org>
7235
7236 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7237
7238 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7239 (read_char): If help-echo is showing, preserve the echo area
7240 when redisplaying.
7241
7242 * xdisp.c (help_echo_showing_p): New variable.
7243 (set_message): Reset it to 0.
7244 (init_xdisp): Initialize help_echo_showing_p.
7245
7246 * dispextern.h (help_echo_showing_p): Declare extern.
7247
7248 * config.in: Fix typo in __GNUC_MINOR__.
7249
7250 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7251
7252 * s/freebsd.h (POSIX_SIGNALS): Define.
7253
7254 * xterm.c (x_clear_mouse_face): Block/unblock input.
7255
7256 2000-09-24 Dave Love <fx@gnu.org>
7257
7258 * fns.c (base64_encode_1): Fix last change.
7259
7260 2000-09-22 Gerd Moellmann <gerd@gnu.org>
7261
7262 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7263
7264 * xdisp.c (try_window_reusing_current_matrix): More fixes
7265 for the case window has a header-line.
7266
7267 2000-09-22 Dave Love <fx@gnu.org>
7268
7269 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7270 a doc string.
7271
7272 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7273
7274 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7275
7276 2000-09-21 Gerd Moellmann <gerd@gnu.org>
7277
7278 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
7279 for GCC >= 2.5.
7280
7281 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7282 Declare NO_RETURN.
7283
7284 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7285 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7286 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7287 warnings.
7288
7289 * marker.c (byte_char_debug_check): Return void.
7290
7291 * xfns.c (Fx_create_frame): Set default frame parameter value
7292 for tool-bar-lines to 1.
7293
7294 * dispnew.c (scrolling_window): Compare y-positions of rows
7295 equal at the start. Some simplification.
7296
7297 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7298 reused rows' y-position in the case window has a header-line, and
7299 new window start is greater than old window start.
7300
7301 * process.c (process_sent_to): New variable.
7302 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7303 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7304 Declare more parameters volatile.
7305
7306 * lread.c (Vrecursive_load_depth_limit): New variable.
7307 (Fload): Check recursive loads whose recursion depth exceeds
7308 Vrecursive_load_depth_limit.
7309 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7310
7311 2000-09-20 Gerd Moellmann <gerd@gnu.org>
7312
7313 * fileio.c (Fread_file_name): Doc fix.
7314
7315 * editfns.c (Fmessage_or_box): Doc fix.
7316
7317 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7318
7319 * xfns.c (xbm_scan): Allow C-style comments.
7320
7321 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7322 symbols are specified, add color translations to the cache.
7323 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
7324 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7325 xpm_cache_color.
7326 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7327 structures to xpm_init_color_cache.
7328
7329 2000-09-19 Gerd Moellmann <gerd@gnu.org>
7330
7331 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
7332
7333 2000-09-19 Andrew Innes <andrewi@gnu.org>
7334
7335 * makefile.nt (bootstrap-emacs): Don't change directory.
7336
7337 2000-09-19 Kenichi Handa <handa@etl.go.jp>
7338
7339 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7340
7341 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7342 If output buffer is too small, signal an appropriated error.
7343
7344 2000-09-18 Dave Love <fx@gnu.org>
7345
7346 * keyboard.c (menu_bar_items, tool_bar_items)
7347 (current_active_maps): Remove redundant get_local_map call.
7348
7349 2000-09-18 Gerd Moellmann <gerd@gnu.org>
7350
7351 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7352 cursor for buffers whose cursor_type is nil.
7353
7354 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7355 a feature to implement that is already implemented.
7356 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7357 warnings.
7358
7359 * xfns.c (x_clear_image_1): New function.
7360 (x_clear_image): Use it.
7361 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
7362
7363 * dispnew.c (update_window): Move test for invisible lines
7364 at the top to update_window_line.
7365 (update_window_line): Handle invisible lines here.
7366
7367 * xfns.c (clear_image_cache): Clear current matrices of all
7368 frames sharing an image cache. Block input while freeing
7369 images. Fix timestamp comparison.
7370 (x_clear_image): Also free the mask.
7371
7372 * xfns.c (lookup_image): Block input while loading the image so
7373 that we won't get interrupted in a state where the image isn't yet
7374 set up completely.
7375 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7376 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7377 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
7378 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
7379
7380 2000-09-16 Gerd Moellmann <gerd@gnu.org>
7381
7382 * dispnew.c (update_window): Make sure to make desired rows
7383 current even if they are completely invisible at the top
7384 of a window.
7385
7386 2000-09-15 Gerd Moellmann <gerd@gnu.org>
7387
7388 * xfns.c (lookup_image): Build mask before applying an algorithm.
7389 Recognize algorithm `disabled'.
7390 (cross_disabled_images): New variable.
7391 (COLOR_INTENSITY): New macro.
7392 (x_detect_edges): Use COLOR_INTENSITY.
7393 (x_disable_image): New function.
7394 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7395
7396 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7397 disabled state, don't apply an image transformation algorithm if
7398 the user specified an image for the disabled state. Use
7399 `:algorithm disabled' for creating a disabled item's image if the
7400 user hasn't specified an image.
7401
7402 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7403 allocation functions with the XPM lib.
7404 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7405 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7406 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7407 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
7408 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
7409 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7410 functions, if possible, because these handle color allocation
7411 failure more gracefully.
7412 (Fimage_mask_p): New function.
7413
7414 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7415 (Qedge_detection, Qheuristic): New symbols.
7416 (syms_of_xfns): Initialize new symbols.
7417 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7418 `algorithm (edge-detection ...)'.
7419 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7420 (tiff_format, gif_format, gs_format): Add `:mask'.
7421 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7422 (GIF_MASK, GS_MASK): New enumerators.
7423 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7424 (emboss_matrix, laplace_matrix): New variables.
7425 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7426 (x_edge_detection): New functions.
7427 (x_laplace): Rewritten in terms of x_detect_edges.
7428 (x_build_heuristic_mask): If image has a mask, free it.
7429
7430 2000-09-14 Andrew Innes <andrewi@gnu.org>
7431
7432 * makefile.w32-in: Revert to Unix line endings.
7433
7434 2000-09-14 Andrew Innes <andrewi@gnu.org>
7435
7436 * makefile.w32-in: Standardize indentation somewhat.
7437 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7438 cater for differences between shells.
7439
7440 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7441
7442 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7443
7444 * xterm.c (x_produce_glyphs): If the distance from the current
7445 position to the next tab stop is less than a canonical character
7446 width, use the tab stop after that.
7447
7448 2000-09-14 Dave Love <fx@gnu.org>
7449
7450 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7451
7452 2000-09-14 Gerd Moellmann <gerd@gnu.org>
7453
7454 * xdisp.c (handle_fontified_prop): While running fontification
7455 functions, bind `fontification-functions' and
7456 `after-change-functions' to nil.
7457
7458 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7459 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7460
7461 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7462
7463 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7464 USE_MMAP_FOR_BUFFERS.
7465
7466 * insdel.c (make_gap): Use enlarge_buffer_text.
7467
7468 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7469 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7470 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7471 from former r_alloc_* functions in ralloc.c.
7472 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
7473 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7474 (mmap_init) [REL_ALLOC_MMAP]: New function.
7475 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7476 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7477 BUFFER_FREE.
7478
7479 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7480 (enlarge_buffer_text): Add prototype.
7481
7482 * ralloc.c: Remove everything having to do with the use of mmap.
7483
7484 2000-09-13 Gerd Moellmann <gerd@gnu.org>
7485
7486 * sound.c (Fplay_sound): Doc fix.
7487
7488 * keyboard.c: Avoid some more compiler warnings.
7489 (parse_tool_bar_item): Ignore cached key bindings.
7490
7491 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7492 and allocation of Lisp data.
7493
7494 2000-09-12 Gerd Moellmann <gerd@gnu.org>
7495
7496 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7497 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7498 defaults first.
7499
7500 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7501
7502 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
7503
7504 * ccl.c: Comment fixed.
7505 (MAX_MAP_SET_LEVEL): Increased to 30.
7506 (PUSH_MAPPING_STACK): Enclose with do-while block.
7507 (POP_MAPPING_STACK): Likewise.
7508 (stack_idx_of_map_multiple): New variable.
7509 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7510 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
7511 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
7512 (ccl_driver) <CCL_MapSingle>: Likewise.
7513 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7514 with the case where looking up process reaches to the end of
7515 map-set, and call CCL programs as the above change.
7516
7517 2000-09-11 Gerd Moellmann <gerd@gnu.org>
7518
7519 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7520 that might be clobbered by longjmp.
7521 (check_x_display_info, x_decode_color, create_frame_xic)
7522 (Fx_display_backing_store, Fx_display_visual_class)
7523 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
7524
7525 * lread.c (init_lread): Set Vloads_in_progress to nil.
7526 (Fload): Show list of recursively loaded files, when signaling an
7527 error.
7528
7529 * lread.c (Vloads_in_progress): New variable.
7530 (record_load_unwind): New function.
7531 (Fload): Check for recursive loads.
7532 (syms_of_lread): Initialize Vloads_in_progress.
7533 (read_integer, read1): Avoid some compiler warnings.
7534
7535 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7536 compiler warnings.
7537
7538 2000-09-11 Miles Bader <miles@gnu.org>
7539
7540 * editfns.c (Fbuffer_string): Doc fix.
7541
7542 2000-09-10 Gerd Moellmann <gerd@gnu.org>
7543
7544 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7545
7546 2000-09-09 Ken Raeburn <raeburn@gnu.org>
7547
7548 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7549 whether to include other header files.
7550
7551 2000-09-09 Gerd Moellmann <gerd@gnu.org>
7552
7553 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
7554 by Fmemq as a boolean.
7555
7556 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7557
7558 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7559
7560 2000-09-08 Gerd Moellmann <gerd@gnu.org>
7561
7562 * ralloc.c (mmap_fd): Remove initializer which can make it
7563 read-only in a dumped Emacs.
7564 (mmap_fd_1): New variable.
7565 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7566 restore it from there.
7567 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7568 unconditionally so that mmap_fd can be initialized there.
7569 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7570 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7571 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7572
7573 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7574
7575 * xdisp.c (dump_glyph_row): Fix printf format string.
7576 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
7577
7578 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7579
7580 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7581 inheritance.
7582
7583 * xdisp.c (try_window_id): When trying to locate cursor in
7584 unchanged rows at the top, handle the case that we can't find it.
7585
7586 * xterm.c (x_draw_glyphs): Handle case START and END are out
7587 of bounds more carefully.
7588
7589 2000-09-08 Dave Love <fx@gnu.org>
7590
7591 * s/sol2.h (REL_ALLOC_MMAP): Define.
7592 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7593
7594 * ralloc.c: Don't include string.h (redundant).
7595 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7596 [!MAP_ANON]: Include fcntl.h.
7597 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7598 (r_alloc, r_re_alloc, r_alloc_free)
7599 (mmap_enlarge, mmap_set_vars): Use it.
7600 (r_alloc_init_fd): New function.
7601 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7602 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7603 malloc type.
7604
7605 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7606 Remove vm-limit.o.
7607
7608 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7609 change to __NetBSD__.
7610
7611 2000-09-08 Kenichi Handa <handa@etl.go.jp>
7612
7613 * search.c (compile_pattern): Check the multibyteness of cached
7614 string and PATTERN.
7615
7616 2000-09-08 Miles Bader <miles@gnu.org>
7617
7618 * xfaces.c (default_face_vector): Function removed.
7619 (Finternal_merge_in_global_face): Restore old global/local
7620 attribute override order. Use inline loop instead of calling
7621 default_face_vector.
7622
7623 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7624
7625 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7626 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7627 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7628 where necessary, in case POINTER_TYPE is `void'.
7629
7630 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7631
7632 * frame.c (make_terminal_frame): Initialize frame foreground and
7633 background colors to unspecified, for the initial instance of an
7634 MSDOS frame.
7635
7636 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7637
7638 * ralloc.c (mmap_find): Fix overlap computation.
7639 (mmap_enlarge): Compute nbytes before trying to find an
7640 overlapping region.
7641
7642 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7643 instead of `!='.
7644
7645 * lread.c (syms_of_lread): Change value of regexp
7646 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7647
7648 * xmenu.c (xdialog_show): When looking up the selection in
7649 menu_items, take `quote' boundaries into account; this corresponds
7650 to a nil ITEM in x-popup-dialog.
7651
7652 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7653
7654 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7655 not 0x81.
7656 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7657
7658 * coding.c (encode_coding_sjis_big5): Use translation table for
7659 encoding, not decoding. Fix the handling of latin-jisx0201.
7660 Check for the charset katakana-jisx0201 too.
7661 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
7662 (detect_coding_sjis): Check the byte sequence more rigidly.
7663
7664 2000-09-07 Gerd Moellmann <gerd@gnu.org>
7665
7666 * xfaces.c (Vparam_value_alist): New variable.
7667 (syms_of_xfaces): Initialize it.
7668 (Finternal_set_lisp_face_attribute): Avoid more consing.
7669
7670 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7671 specially.
7672 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7673 (Qbackground_mode): New variable.
7674 (syms_of_frame_1): Initialize Qbackground_mode.
7675
7676 * lisp.h (Qdisplay): Declare extern.
7677
7678 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7679 change face on all frames, and change the default for new frames.
7680
7681 2000-09-07 Dave Love <fx@gnu.org>
7682
7683 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7684
7685 2000-09-07 Kenichi Handa <handa@etl.go.jp>
7686
7687 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7688
7689 * charset.c: Include composite.h
7690 (lisp_string_width): New function.
7691 (Fstring_width): Call lisp_string_width instead of strwidth.
7692
7693 * Makefile.in (charset.o): Depends on composite.h.
7694
7695 * process.c (read_process_output): Before inserting the decoded
7696 text in the buffer, adjust the multibyteness.
7697
7698 2000-09-06 Gerd Moellmann <gerd@gnu.org>
7699
7700 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
7701 buffer's text buffer is null, map new memory.
7702
7703 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7704 POINTER_TYPE and size_t.
7705 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7706 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7707 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7708 [REL_ALLOC_MMAP]: New macros.
7709 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7710 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7711 [REL_ALLOC_MMAP]: New functions.
7712
7713 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7714 before and after unexec.
7715
7716 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7717 text buffers if necessary.
7718
7719 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7720 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7721 in prototypes.
7722
7723 * config.in (HAVE_MMAP): Add #undef.
7724
7725 2000-09-05 Gerd Moellmann <gerd@gnu.org>
7726
7727 * frame.c (Qdisplay_type): New variable.
7728 (syms_of_frame_1): Initialize it.
7729 (Fframe_parameter): New function that avoids consing.
7730 (syms_of_frame): Defsubr it.
7731
7732 * buffer.c (Fother_buffer): Consider buffers as invisible when
7733 they are displayed in a window on an invisible frame.
7734
7735 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7736 get-largest-window always return nil.
7737
7738 2000-09-04 Gerd Moellmann <gerd@gnu.org>
7739
7740 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7741 variable; recognize Emacs 19 elc files.
7742
7743 2000-09-04 Miles Bader <miles@gnu.org>
7744
7745 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7746 before initially popping up the menu, so the menu doesn't flash
7747 when the face settings are significantly different from the defaults.
7748
7749 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7750
7751 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7752 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7753 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7754 (BIT_UNIBYTE): Remove.
7755 (re_match_2_internal): Delete corresponding code and streamline the
7756 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7757 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7758 (re_wctype_t): New type.
7759 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7760 (regex_compile): Use them and fix handling of overly long char classes.
7761
7762 2000-09-03 Andrew Innes <andrewi@gnu.org>
7763
7764 * makefile.w32-in: Change to DOS line endings.
7765
7766 * s/ms-w32.h (ORDINARY_LINK): New define.
7767
7768 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7769 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7770
7771 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7772 (distclean): Delete them here instead.
7773
7774 * w32proc.c (compare_env): Convert to uppercase for comparison,
7775 not lowercase, to match how the native Windows shell works.
7776
7777 2000-09-03 Jason Rumney <jasonr@gnu.org>
7778
7779 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7780 CVS changes the line-ends when checking in/out on DOS/Windows.
7781
7782 * makefile.nt (emacs): Do not change directory to run temacs, as
7783 the load-path is set relative to current directory.
7784
7785 2000-09-03 Miles Bader <miles@gnu.org>
7786
7787 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7788
7789 2000-09-02 Gerd Moellmann <gerd@gnu.org>
7790
7791 * xdisp.c (redisplay_mode_lines): New function.
7792 (display_mode_lines): Return number of mode lines displayed.
7793 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7794 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7795
7796 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7797 string.h and strings.h.
7798 (index) [HAVE_INDEX]: Add prototype.
7799
7800 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7801 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7802
7803 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7804 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7805
7806 2000-09-01 Gerd Moellmann <gerd@gnu.org>
7807
7808 * lread.c (read1): Accept `?' as symbol constituent, for
7809 compatiblity with XEmacs.
7810
7811 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7812
7813 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7814 (struct re_pattern_buffer): Remove newline_anchor.
7815 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7816 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7817 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7818 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7819 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7820 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7821 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7822 Get rid of references to newline_anchor.
7823 (regcomp): Allocate and precompute a fastmap.
7824
7825 2000-08-31 Gerd Moellmann <gerd@gnu.org>
7826
7827 * lread.c (openp): GCPRO local variable `filename'.
7828
7829 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7830
7831 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7832
7833 * regex.c: Merge some changes from GNU libc. Add prototypes.
7834 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7835 Use memcmp and memcpy instead of bcopy and bcmp.
7836 (init_syntax_once): Use ISALNUM.
7837 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7838 (REG_UNSET_VALUE): Remove. Use NULL instead.
7839 (REG_UNSET, re_match_2_internal): Use NULL.
7840 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7841 New macros.
7842 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7843 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7844 (regex_compile): In handle_interval, return an error rather than try to
7845 unfetch the interval if we can't find the closing brace.
7846 Obey the RE_NO_GNU_OPS syntax bit.
7847 (TOLOWER): New macro.
7848 (regcomp): Use it.
7849 (regexec): Allocate regs.start and regs.end as one block.
7850
7851 2000-08-30 Gerd Moellmann <gerd@gnu.org>
7852
7853 * xdisp.c (echo_area_display): Check display_completed instead
7854 of calling detect_input_pending.
7855
7856 * dispnew.c (update_frame): Only set display_completed here; move
7857 the update_begin and update_end calls here from update_frame_1.
7858 (update_frame_1): Don't set display_completed here, don't call
7859 update_begin/update_end.
7860
7861 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7862 instead of store_frame_param.
7863
7864 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7865
7866 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7867 desired window matrix hasn't been displayed, use the current row
7868 instead. Make sure that only those frame rows are updated for
7869 which there exists a corresponding enabled desired row.
7870
7871 2000-08-29 Miles Bader <miles@gnu.org>
7872
7873 * xfaces.c (default_face_vector): New function.
7874 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7875
7876 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7877
7878 * lread.c (openp): Prevent temporary string passed to
7879 Ffile_readable_p from being garbage collected.
7880
7881 2000-08-28 Dave Love <fx@gnu.org>
7882
7883 * keymap.c (store_in_keymap): Add `static' to declaration.
7884
7885 2000-08-28 Gerd Moellmann <gerd@gnu.org>
7886
7887 * emacs.c, callint.c, doc.c, editfns.c
7888 (toplevel) [HAVE_STRING_H]: Include string.h.
7889 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7890 (index): Remove prototypes which might conflict with non-standard
7891 definitions of index/strchr.
7892
7893 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7894 (rindex): Define only if !HAVE_RINDEX.
7895
7896 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7897
7898 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7899
7900 2000-08-28 Miles Bader <miles@gnu.org>
7901
7902 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7903 made inconsistent by a font-related attribute in FROM.
7904 (merge_face_inheritance): Add function comment.
7905
7906 2000-08-28 Kenichi Handa <handa@etl.go.jp>
7907
7908 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7909 the 4th arg (PREV_EVENT) Qt to suppress input method.
7910
7911 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7912
7913 * regex.c: Indent cpp directives and remove parens after `defined'.
7914 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7915 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7916 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7917 (re_compile_pattern): Use size_t for length.
7918 (init_syntax_once): Move to a better place.
7919 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7920 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7921
7922 * syntax.c (back_comment): Detect cases where a comment-starter is
7923 actually inside another comment as in: /* a // b */ c // d \n.
7924 Make it clear that `comstart_pos' is unused for nested comments.
7925
7926 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7927 (KEYMAPP): New macro.
7928 (Fkeymap_parent, Fset_keymap_parent): Use it.
7929 (fix_submap_inheritance): Mark it static.
7930 (define_as_prefix, describe_buffer_bindings, describe_command)
7931 (describe_translation, describe_map): Complete prototypes.
7932
7933 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7934
7935 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7936 to better match the key-lookup behavior.
7937
7938 2000-08-27 Gerd Moellmann <gerd@gnu.org>
7939
7940 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7941 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7942
7943 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7944
7945 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7946 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7947 (xterm.o): Depend on coding.h
7948
7949 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7950
7951 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7952 the corresponding '#endif'.
7953
7954 2000-08-26 Miles Bader <miles@gnu.org>
7955
7956 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7957 * xfaces.c (QCinherit): New variable.
7958 (syms_of_xfaces): Initialize it.
7959 (LFACE_INHERIT): New macro.
7960 (Finternal_get_lisp_face_attribute)
7961 (merge_face_vector_with_property)
7962 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7963 (check_lface_attrs): Allow new types of face height. Check
7964 inherit attribute.
7965 (CYCLE_CHECK): New macro.
7966 (merge_face_inheritance): New function.
7967 (merge_face_vectors): Merge inherited faces too. Add F and
7968 CYCLE_CHECK arguments.
7969 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7970 (lookup_named_face, lookup_derived_face, realize_named_face)
7971 (face_at_string_position, face_at_buffer_position): Supply
7972 new F and CYCLE_CHECK arguments to merge_face_vectors.
7973 (merge_face_heights): New function.
7974 (merge_face_vectors, merge_face_vector_with_property)
7975 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7976 handle relative face heights.
7977 (lface_same_font_attributes_p): Compare heights using EQ.
7978
7979 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7980
7981 * charset.c (char_to_string): Check the character validity.
7982 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
7983
7984 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7985
7986 * regex.c (PUSH_FAILURE_COUNT): New macro.
7987 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7988 Handle popping of a register's or a counter's data.
7989 (POP_FAILURE_POINT): Use the new name.
7990 (re_match_2_internal): Push counter data on the stack for succeed_n,
7991 jump_n and set_number_at and remove misleading dead code in succeed_n.
7992
7993 2000-08-25 Gerd Moellmann <gerd@gnu.org>
7994
7995 * xdisp.c (redisplay_internal): If considering all windows on all
7996 frames, update the display for each frame as soon as possible,
7997 instead of first building all desired matrices for all frames, and
7998 then updating them all.
7999 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8000
8001 2000-08-24 Gerd Moellmann <gerd@gnu.org>
8002
8003 * bytecode.c (mark_byte_stack): Add a comment.
8004
8005 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8006 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
8007 a graphical frame.
8008
8009 2000-08-24 Kenichi Handa <handa@etl.go.jp>
8010
8011 * minibuf.c (do_completion): Always use compare-string, not
8012 string-equal because the latter doesn't pay attention to
8013 multibyteness of strings.
8014
8015 * process.c (create_process): Don't setup raw-text coding here.
8016 (Fopen_network_stream): Don't set coding->src_multibyte and
8017 coding->dst_multibyte here.
8018 (read_process_output): For process filter, return unibyte string
8019 if default-enable-multibyte-characters is nil.
8020 (send_process): If OBJECT is multibyte text, be sure to encoded it
8021 by the specified coding system for the process. Otherwise, setup
8022 raw-text coding.
8023 (init_process): Don't initialize default-process-coding-system here.
8024
8025 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8026
8027 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8028 <scroll-down-aggressively>: Likewise.
8029
8030 2000-08-23 Kenichi Handa <handa@etl.go.jp>
8031
8032 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8033 zero. Set coding->produced_char correctly.
8034
8035 2000-08-22 Andrew Innes <andrewi@gnu.org>
8036
8037 * makefile.w32-in: New file.
8038
8039 * unexw32.c (unexec): Ignore old_name, and use the actual location
8040 of the current executable instead. Base new_name on this.
8041
8042 * w32proc.c (create_child): Remove reference to security
8043 descriptor, which isn't needed and doesn't compile with mingw32.
8044
8045 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8046 up dllimport attributes.
8047 (x_update_window_end): Update prototype.
8048
8049 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8050 extern, which screws up dllimport attributes.
8051
8052 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8053 up dllimport attributes.
8054
8055 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8056 screws up dllimport attributes.
8057
8058 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8059 up dllimport attributes.
8060 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8061 screws up dllimport attributes.
8062
8063 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8064 up dllimport attributes.
8065
8066 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8067 screws up dllimport attributes.
8068
8069 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8070 screws up dllimport attributes.
8071
8072 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8073 up dllimport attributes.
8074
8075 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8076 unnecessary extern, which screws up dllimport attributes.
8077 (main): Ditto.
8078
8079 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8080 up dllimport attributes.
8081
8082 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8083 unnecessary extern, which screws up dllimport attributes.
8084
8085 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8086 screws up dllimport attributes.
8087
8088 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8089 up dllimport attributes.
8090
8091 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8092
8093 * w32bdf.c (search_file_line):
8094 (set_bdf_font_info):
8095 (seek_char):
8096 (w32_get_bdf_glyph):
8097 (w32_BDF_to_x_font): Fix compile warnings.
8098
8099 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
8100
8101 * w32select.c: Include keyboard.h before frame.h.
8102
8103 * w32fns.c (max): Define macro.
8104 (JOHAB_CHARSET): Define if not known.
8105 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8106 (Fx_show_tip): Synch with X version.
8107
8108 * w32xfns.c: Include keyboard.h before frame.h.
8109
8110 * w32fns.c: Include keyboard.h before frame.h.
8111
8112 * w32term.c: Include keyboard.h before frame.h.
8113
8114 * fontset.c: Include keyboard.h before frame.h.
8115
8116 * w32inevt.c: Include keyboard.h before frame.h.
8117 (MOUSE_MOVED): Define if not known.
8118
8119 * minibuf.c: Include keyboard.h before frame.h.
8120
8121 * keyboard.c: Include keyboard.h before frame.h.
8122
8123 * indent.c: Include keyboard.h before frame.h.
8124
8125 * dispnew.c: Include keyboard.h before frame.h.
8126
8127 * buffer.c: Include keyboard.h before frame.h.
8128
8129 * alloc.c: Include keyboard.h before frame.h.
8130
8131 * print.c: Include keyboard.h before frame.h.
8132
8133 * process.c: Include keyboard.h before frame.h.
8134
8135 * scroll.c: Include keyboard.h before frame.h.
8136
8137 * sysdep.c: Include keyboard.h before frame.h.
8138
8139 * term.c: Include keyboard.h before frame.h.
8140
8141 * window.c: Include keyboard.h before frame.h.
8142
8143 * xdisp.c: Include keyboard.h before frame.h.
8144 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
8145
8146 * frame.c: Include keyboard.h before frame.h.
8147
8148 * w32heap.h: Undefine min, max.
8149
8150 * w32gui.h: Undefine min, max.
8151
8152 * unexw32.c: Change PUCHAR to PCHAR.
8153 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
8154 (relocate_offset):
8155 (get_section_info):
8156 (copy_executable_and_dump_data): Remove unnecessary static defs.
8157 (copy_executable_and_dump_data): Fix compile warnings.
8158
8159 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
8160
8161 * w32console.c (min): Define macro.
8162 (clear_frame, write_glyphs): Fix compile warning.
8163
8164 * w32proc.c (compare_env):
8165 (find_child_console): Fix compile warning.
8166
8167 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
8168 sys_errlist instead of _sys_errlist.
8169 (get_emacs_configuration_options): New function.
8170
8171 * s/ms-w32.h (sys_nerr): Provide default definition.
8172 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
8173 name with _ prepended.
8174 (NSIG): Define if not known.
8175 (get_emacs_configuration): Provide extern declaration.
8176 (get_emacs_configuration_options): Provide extern declaration.
8177 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
8178
8179 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
8180 (map_w32_filename):
8181 (read_unc_volume): Fix compile warning.
8182
8183 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
8184 definitions from being used.
8185
8186 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
8187
8188 * w32.c (unc_volume_file_attributes):
8189 (open_unc_volume): Make arg const.
8190
8191 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
8192 (read_input_waiting): Remove excess parameter.
8193
8194 * w32.c (init_environment): Call _access.
8195 (check_windows_init_file): Call _close.
8196 (init_user_info): Call _putenv.
8197 (init_environment): Call _putenv and _strdup.
8198 (init_ntproc): Reset volume info cache on startup.
8199
8200 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
8201 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
8202 cannot override the CRT malloc.
8203
8204 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
8205 (LINK_FLAGS): Append to original value of LINK_FLAGS.
8206
8207 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
8208 unless we are linking with a static CRT.
8209 (RVA_TO_PTR): Cast result to unsigned char*.
8210
8211 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
8212 (add_volume_info): Use xstrdup.
8213
8214 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
8215
8216 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
8217 (do_completion, Fminibuffer_complete_word): Use it.
8218 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
8219 var so it can take non-boolean values.
8220
8221 2000-08-21 Gerd Moellmann <gerd@gnu.org>
8222
8223 * editfns.c (find_field): Formatting changes.
8224 (toplevel): Some old-style function forward declarations
8225 changed to prototypes, some new protypes added, some functions
8226 made static.
8227
8228 * lisp.h (set_time_zone_rule): Add prototype.
8229 (use_dialog_box): External declaration.
8230
8231 * keyboard.c (gen_help_event): Add parameter SIZE.
8232 (kbd_buffer_events_waiting): Slightly rewritten.
8233 (clear_event): New function.
8234 (kbd_buffer_get_event): Use it, and clear the input_events of
8235 HELP_EVENTs.
8236 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8237 don't fill the newly created array with nils.
8238 (toplevel): Convert some old-style function forward declarations
8239 to prototypes.
8240
8241 * keyboard.h (gen_help_event): Change prototype.
8242
8243 * xterm.c (XTread_socket): Change calls to gen_help_event.
8244
8245 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8246
8247 * eval.c (Fmacroexpand): Doc fix.
8248
8249 2000-08-20 Jason Rumney <jasonr@gnu.org>
8250
8251 * w32term.h (x_display_info_for_display): Remove as this function
8252 does not exist on W32.
8253
8254 * w32term.c (help_echo_window): New variable.
8255 (syms_of_w32term): staticpro it.
8256 (note_mode_line_highlight): Set it.
8257 (XTextExtents16): Removed as there is no equivalent on W32.
8258 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8259 the X way of doing this will not work for W32.
8260 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8261 (x_draw_image_foreground): Avoid drawing outside of the clip area
8262 when image doesn't have a mask.
8263 (note_mouse_highlight): Process overlays in the right order of
8264 priority. Set help_echo_window.
8265 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8266 because that's more visible for large images.
8267
8268 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8269 name to single_keymap_panes.
8270 (w32_menu_show): Set wv->title when dealing with titles.
8271 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8272
8273 2000-08-21 Miles Bader <miles@gnu.org>
8274
8275 * minibuf.c (do_completion): Try again if we rewrite the input
8276 string, but no completion was done, so that any completion message
8277 will be correct.
8278
8279 2000-08-20 Gerd Moellmann <gerd@gnu.org>
8280
8281 * xfaces.c (lface_equal_p): Compare strings differently.
8282 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8283 (realize_tty_face): Use them.
8284 (syms_of_xfaces): Initialize new variables.
8285 (map_tty_color): New function, extracted from realize_tty_face.
8286 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8287 foreground or background color, store the new color name in the
8288 realized face; previous code trying to do this had no effect.
8289 (realize_tty_face): Use map_tty_color.
8290 (Fclear_face_cache): Set face_change_count and ensure thorough
8291 redisplay.
8292
8293 2000-08-19 Gerd Moellmann <gerd@gnu.org>
8294
8295 * undo.c (record_first_change, record_marker_adjustment): Don't
8296 use XBUFFER on last_undo_buffer which might not be a buffer.
8297
8298 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8299
8300 * coding.c (decode_coding_string): Set members consumed,
8301 consumed_char, produced, produced_char of *coding correctly. If
8302 decode_coding doesn't consume any byte, don't try anymore.
8303 (encode_coding_string): Likewise.
8304
8305 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8306
8307 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8308 conditional have void type, for Standard C compilers.
8309
8310 * xdisp.c (redisplay_internal): Compare windows for equality with
8311 EQ, instead of applying XWINDOW to something that might not
8312 be a window.
8313
8314 2000-08-18 Kenichi Handa <handa@etl.go.jp>
8315
8316 * fontset.c (Finternal_char_font): Search only the selected frame
8317 for a window of the current buffer.
8318
8319 2000-08-18 Gerd Moellmann <gerd@gnu.org>
8320
8321 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
8322 Lisp_Objects.
8323
8324 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8325 second half of a HELP_EVENT is found at the start of kbd_buffer.
8326
8327 2000-08-18 Miles Bader <miles@gnu.org>
8328
8329 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8330
8331 * editfns.c (save_restriction_save): Rewrite to use markers.
8332 (save_restriction_restore): Rewrite to understand new form of data
8333 saved by save_restriction_save.
8334 (Fsave_restriction): Remove cautionary note in doc-string.
8335
8336 2000-08-17 Gerd Moellmann <gerd@gnu.org>
8337
8338 * fileio.c (build_annotations): Add a comment explaining the
8339 return value of format-annotate-function. Replace a spurious call
8340 to Flength with a CONSP test. Call format-annotate-function with
8341 a fifth arg specifying how many times the function is been called
8342 in a row, to let it choose temporary buffers appropriately.
8343
8344 2000-08-17 Dave Love <fx@gnu.org>
8345
8346 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8347 declare make_temp_name twice.
8348
8349 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
8350 (unreadpure): Give it an arg.
8351
8352 * unexalpha.c: Prototype fatal_unexec, mark_x,
8353 update_dynamic_symbols. Declare unexec as void.
8354
8355 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8356 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8357
8358 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
8359 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
8360
8361 * alloca.c: Use #error.
8362 [POINTER_TYPE]: Use it.
8363
8364 * eval.c (Fdefvar): Doc fix.
8365
8366 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8367 INITIALIZE_INTERVAL.
8368
8369 * buffer.h: Avoid DECLARE_INTERVALS.
8370
8371 * config.in: Add size_t.
8372
8373 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8374
8375 * w16select.c (set_clipboard_data): If there's not enough memory
8376 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8377 expects. In case of other failures, return 3.
8378 (system_error_msg): New error message.
8379 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8380 system_error_msg.
8381
8382 2000-08-16 Gerd Moellmann <gerd@gnu.org>
8383
8384 * term.c (write_glyphs): Also turn off inverse video after turning
8385 off other appearances in case TS_exit_attribute_mode is not equal
8386 to TS_end_standout_mode.
8387 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8388 with the same face.
8389 (turn_off_face): Reset standout_mode only if
8390 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8391 is equal to TS_end_standout_mode.
8392
8393 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8394
8395 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8396 sequence at the end of the source block.
8397
8398 * ccl.c (Fccl_program_p): Docstring modified.
8399 (Fccl_execute): Likewise.
8400 (Fccl_execute_on_string): Likewise.
8401
8402 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8403
8404 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8405
8406 2000-08-16 Kenichi Handa <handa@etl.go.jp>
8407
8408 The following changes are mainly to fix bugs of
8409 encode/decode-coding-string failing if encoding/decoding return
8410 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8411 variable conversion_buffer.
8412
8413 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8414 decrement dst_end to avoid buffer overflow in the later call of
8415 string_as_multibyte
8416
8417 * coding.h (conversion_buffer_size, conversion_buffer)
8418 (get_conversion_buffer): Extern deleted.
8419
8420 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8421 (conversion_buffer, conversion_buffer_size): Variables deleted.
8422 (get_conversion_buffer): Function deleted.
8423 (struct conversion_buffer): New structure.
8424 (MAX_ALLOCA): New macro.
8425 (allocate_conversion_buffer): New macro.
8426 (extend_conversion_buffer, free_conversion_buffer): New functions.
8427 (ccl_coding_driver): Set coding->result.
8428 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8429 this is the last block of source.
8430 (encode_coding): Likewise. Handle the source block as the last
8431 one only when the whole source text is consumed.
8432 (decode_coding_string): Handle the case that the output buffer is
8433 too small to decode the whole source text. Use
8434 allocate_conversion_buffer, extend_conversion_buffer and
8435 free_conversion_buffer, not get_conversion_buffer.
8436 (encode_coding_string): Likewise.
8437 (init_coding): Function deleted.
8438 (init_coding_once): Delete code to initialize conversion_buffer_size.
8439
8440 * emacs.c (main): Don't call init_coding.
8441
8442 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
8443
8444 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8445 (insert_glyphs): Likewise.
8446
8447 * w32console.c (write_glyphs): Use a locally declared
8448 conversion_buffer.
8449
8450 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8451
8452 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8453 member of display_info is NULL.
8454
8455 2000-08-15 Gerd Moellmann <gerd@gnu.org>
8456
8457 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
8458
8459 * term.c (turn_off_face): Reset standout_mode when resetting
8460 appearances with capability `me'.
8461 (write_glyphs): Switch on inverse video before each face change.
8462
8463 2000-08-14 Dave Love <fx@gnu.org>
8464
8465 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8466 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8467 (lisp_free): Declare and make static.
8468
8469 * window.c: Fix embedded comment.
8470 (syms_of_window): Fix doc string.
8471
8472 2000-08-14 Gerd Moellmann <gerd@gnu.org>
8473
8474 * keymap.c (push_key_description): If C without modifiers is < 32,
8475 make sure to print `C-' before `M-', like in the manual.
8476
8477 2000-08-11 Gerd Moellmann <gerd@gnu.org>
8478
8479 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8480 since they aren't relocated anymore.
8481 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
8482
8483 * xdisp.c (try_cursor_movement): Fix handling of cursor in
8484 partially visible line which is smaller than the window's height.
8485
8486 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8487
8488 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
8489 the multibyte form of eight-bit-control characters.
8490 (Fccl_execute_on_string): Initialize ccl->multibyte.
8491
8492 * ccl.h (struct ccl_program): New member multibyte.
8493
8494 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8495
8496 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8497
8498 * regex.c (regex_compile) <normal_char>: Pay attention to
8499 multibyteness.
8500 (analyse_first) <exactn>: Setup fastmap correctly for
8501 eight-bit-control characters.
8502
8503 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8504
8505 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
8506
8507 * keyboard.c (make_lispy_event): Handle the new event type
8508 multibyte_char_keystroke.
8509
8510 * xterm.c: Include coding.h.
8511 (XTread_socket): Work around a bug of XmbLookupString. If the
8512 input is from XIM, decode it according to the current locale. In
8513 that case, generate multibyte_char_keystroke events.
8514
8515 2000-08-11 Kenichi Handa <handa@etl.go.jp>
8516
8517 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8518 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8519
8520 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8521
8522 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8523 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8524 (move_it_in_display_line_to): Record iterator's ascent and descent
8525 before producing glyphs, and restore them when we know the glyph
8526 doesn't fit on the line.
8527 (move_it_to): Restructured so that it's easier to debug. If
8528 moving to a vpos, and not moving to an x or character position,
8529 stop as soon as the specified vpos is reached; don't move further
8530 into that line because that might change the computed line height.
8531 (try_cursor_movement): New function, extracted from the cursor
8532 movement branch of redisplay_window. If ending on a partially
8533 visible line, don't try to scroll if the cursor line is taller
8534 than the window.
8535 (redisplay_window): Use try_cursor_movement.
8536
8537 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8538 because that function doesn't cope with variable-height lines.
8539
8540 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8541 box cursor because that's better visible for large images.
8542
8543 2000-08-10 Miles Bader <miles@gnu.org>
8544
8545 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8546
8547 2000-08-10 Gerd Moellmann <gerd@gnu.org>
8548
8549 * xdisp.c (Vmessages_buffer_name): New variable.
8550 (message_dolog): Use it.
8551 (syms_of_xdisp): Initialize it.
8552
8553 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8554
8555 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
8556 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8557 redundant now that keyboard.h is included.
8558
8559 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8560
8561 * keyboard.c (kbd_buffer_events_waiting): New function.
8562
8563 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8564
8565 * msdos.c: Include keyboard.h.
8566 (XMenuActivate): Empty no_event events from the event buffer. If
8567 no events are left after that, call clear_input_pending.
8568 (mouse_clear_clicks): New function, code moved from mouse_init.
8569 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8570 mouse driver to ``forget'' any past clicks.
8571
8572 * Makefile.in (msdos.o): Depend on keyboard.h.
8573
8574 2000-08-09 Gerd Moellmann <gerd@gnu.org>
8575
8576 * lisp.h (input_pending): External declaration.
8577
8578 * dispextern.h (Qredisplay_dont_pause): Declare extern.
8579
8580 * xdisp.c (echo_area_display): Display thoroughly if input is
8581 pending. Bind redisplay-dont-pause to t during the redisplay.
8582 in case input is pending.
8583
8584 * dispnew.c (Qredisplay_dont_pause): New variable.
8585 (syms_of_display): Initialize and staticpro it.
8586 (update_frame_1): Don't interrupt the display for pending input if
8587 redisplay_dont_pause is set.
8588
8589 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8590
8591 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8592
8593 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8594
8595 * callproc.c (Fcall_process): Terminate the unwind-protect around
8596 the post-read-conversion of coding system.
8597
8598 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8599 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8600 * buffer.h (overlays_at): Update prototype.
8601 * xdisp.c (next_overlay_change): Update call to overlays_at.
8602 * xfaces.c (face_at_buffer_position): Likewise.
8603 * textprop.c (Fget_char_property): Likewise.
8604 * xterm.c (note_mouse_highlight): Likewise.
8605
8606 * minibuf.c (do_completion): Don't consider a simple change of
8607 case as `completion'.
8608
8609 2000-08-08 Ken Raeburn <raeburn@gnu.org>
8610
8611 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
8612 * undo.c (record_delete): Make sure last_point_position_buffer is
8613 a buffer before comparing pointers.
8614
8615 * coding.h (decode_coding_string): Declare.
8616
8617 * intervals.h (Fprevious_single_char_property_change): Declare.
8618
8619 * textprop.c (Fprevious_single_char_property_change): Don't do
8620 arithmetic directly on lisp objects.
8621
8622 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
8623
8624 * keyboard.h (menu_item_eval_property): Declare.
8625
8626 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8627 reuse as buffer name, instead of recreating (and discarding) every
8628 time a message is logged.
8629 (with_echo_area_buffer): Make callback arg A2 a lisp object.
8630 (current_message_1, truncate_message_1, set_message_1)
8631 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8632 (current_message, truncate_echo_area, display_echo_area)
8633 (resize_echo_area_axactly): Changed calls.
8634
8635 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
8636 Lisp object.
8637 (Ffind_coding_systems_region_internal): First argument to Fappend
8638 must be an integer, not a Lisp object.
8639
8640 2000-08-08 Kenichi Handa <handa@etl.go.jp>
8641
8642 * charset.c (Fchar_width): Doc fix.
8643
8644 2000-08-08 Gerd Moellmann <gerd@gnu.org>
8645
8646 * charset.c (Fstring_width): Doc fix.
8647
8648 2000-08-07 Gerd Moellmann <gerd@gnu.org>
8649
8650 * xdisp.c (start_display): When starting display on a continuation
8651 line, clear ascent and descent members of the iterator structure;
8652 the height of the continued line does not affect the height of the
8653 continuation line.
8654 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8655 line taller than the window.
8656 (redisplay_window) <forced window start>: Handle case that the
8657 middle of the window is not found in any row.
8658 (dump_glyph_row): Show more information.
8659 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8660 first text line in a glyph matrix.
8661
8662 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8663 of the clip area when image doesn't have a mask.
8664
8665 * fns.c (sweep_weak_table): Fix survival conditions for
8666 key-or-value and key-and-value weakness.
8667
8668 * .gdbinit (xhashtable): New command.
8669
8670 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8671 tables out of the list of all weak hash tables.
8672
8673 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8674 a new buffer is created, make sure echo_area_buffer[] references
8675 the new buffer.
8676
8677 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8678
8679 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8680 the doc string.
8681
8682 2000-08-07 Kenichi Handa <handa@etl.go.jp>
8683
8684 * syntax.c (skip_chars): Fix previous change. Make the handling
8685 of unibyte string consistent with that of regex search.
8686
8687 2000-08-05 Gerd Moellmann <gerd@gnu.org>
8688
8689 * xmenu.c (popup_get_selection): Use xfree instead of free.
8690
8691 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8692
8693 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8694
8695 * callproc.c (child_setup): Use xfree instead of free.
8696
8697 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8698 instead of malloc.
8699 (run_mac_command, closedir): Use `xfree' instead of `free'.
8700
8701 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8702
8703 * eval.c (error): Use xfree instead of free.
8704
8705 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8706
8707 * fns.c: Replace `illegal' with `invalid'.
8708 (Fmake_hash_table, make_hash_table): Allow table size of 0.
8709
8710 2000-08-05 Kenichi Handa <handa@etl.go.jp>
8711
8712 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8713 conversion.
8714
8715 2000-08-04 Noah Friedman <friedman@splode.com>
8716
8717 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8718 docstring.
8719
8720 2000-08-04 Gerd Moellmann <gerd@gnu.org>
8721
8722 * syntax.c (skip_chars): Fix typo in error message.
8723
8724 2000-08-04 Andreas Schwab <schwab@suse.de>
8725
8726 * m/ia64.h: Moved from s/ia64.h.
8727
8728 2000-08-04 Kenichi Handa <handa@etl.go.jp>
8729
8730 * process.c (read_process_output): Big simplification. Handle
8731 composition and post-read-conversion of coding system correctly.
8732 (send_process): Handle composition correctly.
8733
8734 * callproc.c (Fcall_process): Handle post-read-conversion of
8735 coding system if any.
8736
8737 * coding.c (decode_coding_iso2022): More strict check for handling
8738 single shifting.
8739 (coding_restore_composition): Pay attention to the case that
8740 cmp_data is not set properly (because of invalid code in the
8741 source text).
8742 (run_pre_post_conversion_on_str): Include text properties in the
8743 resulting string.
8744 (decode_coding_string): Set members of coding correctly.
8745
8746 2000-08-03 Gerd Moellmann <gerd@gnu.org>
8747
8748 * s/ia64.h: New file.
8749
8750 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8751 Use NULL instead of 0 at the end of variable argument list of
8752 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8753 sizeof (int) < sizeof (void *).
8754
8755 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8756 of variable argument lists of XtVaGetValues and XtVaSetValues.
8757
8758 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8759 variable argument lists of XtVaGetValues and XtVaSetValues.
8760
8761 2000-08-02 Gerd Moellmann <gerd@gnu.org>
8762
8763 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8764 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8765
8766 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8767 prototype.
8768
8769 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8770 in call to Fsingle_key_description.
8771
8772 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8773 Callers changed.
8774
8775 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8776
8777 * window.c (display_buffer_reuse_frames): New variable.
8778 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8779 frames displaying BUFFER.
8780 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
8781
8782 2000-08-01 Miles Bader <miles@gnu.org>
8783
8784 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8785 when to constrain NEW_POS (they were pretty screwed up before).
8786
8787 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8788
8789 * msdos.c (run_msdos_command): Save and restore the master
8790 environment, for the case that child_setup signals an error.
8791 When mirroring slashes in DOS shell commands, don't fail when
8792 argv[2] has embedded blanks.
8793 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8794 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8795 (dos_ttraw): Call mouse_setup_buttons.
8796
8797 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8798 using alloca; free it after run_msdos_command returns.
8799
8800 2000-07-27 Dave Love <fx@gnu.org>
8801
8802 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8803 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
8804
8805 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8806
8807 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8808
8809 * editfns.c (lisp_time_argument): Fix last change.
8810
8811 2000-07-27 Gerd Moellmann <gerd@gnu.org>
8812
8813 * fns.c (Fdelete): Make it work on vectors and strings in addition
8814 to lists.
8815
8816 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8817 (syms_of_fns): Initialize new variables.
8818 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
8819 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8820 weakness, with t meaning the same as `key-and-value'.
8821
8822 2000-07-27 Kenichi Handa <handa@etl.go.jp>
8823
8824 * coding.h (struct coding_system): Member safe_charset deleted.
8825
8826 * coding.c (Qsafe_charsets): This variable deleted.
8827 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8828 New variables.
8829 (coding_safe_chars): New function.
8830 (CODING_SAFE_CHAR_P): New macro.
8831 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
8832 checking safe_charsets member of the coding system. Caller changed.
8833 (detect_coding_iso2022): New local variable safe_chars.
8834 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8835 safe_charsets member of the coding system.
8836 (decode_coding_iso2022): New local variable safe_chars.
8837 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8838 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8839 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8840 (ENCODE_UNSAFE_CHARACTER): New macro.
8841 (encode_coding_iso2022): New local variable safe_chars. Check
8842 unsafe chars.
8843 (setup_coding_system): Delete the code to initialize
8844 coding->safe_charses
8845 (intersection, find_safe_codings): New functions.
8846 (Ffind_coding_systems_region_internal): New function.
8847 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8848 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8849 variable and initialize it.
8850
8851 * fns.c (char_table_ref_and_index): New function.
8852
8853 * lisp.h (char_table_ref_and_index): Add prototype.
8854
8855 2000-07-26 Sam Steingold <sds@gnu.org>
8856
8857 * editfns.c (lisp_time_argument): Added third argument `usec'.
8858 (Ffloat_time): New built-in Lisp function.
8859
8860 2000-07-26 Gerd Moellmann <gerd@gnu.org>
8861
8862 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8863 for the character code.
8864
8865 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8866 GNU/Linux.
8867
8868 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8869 if called for a popup menu.
8870 (xmenu_show): Store help string in widget values.
8871
8872 2000-07-26 Dave Love <fx@gnu.org>
8873
8874 * syswait.h: Move some definitions.
8875 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8876 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8877 perspicuous definitions.
8878 (WTERMSIG): Fix bit pattern used.
8879
8880 2000-07-26 Kenichi Handa <handa@etl.go.jp>
8881
8882 * print.c (print_object): If vector printing is truncated, print
8883 "..." to indicate it as well as the case of list printing.
8884
8885 2000-07-25 Gerd Moellmann <gerd@gnu.org>
8886
8887 * xdisp.c (next_element_from_display_vector): Improve comments.
8888
8889 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8890 for the character code, and the rest for the face id as in 20.x.
8891 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8892
8893 * window.c (window_display_table): Cleaned up.
8894
8895 * syntax.c (Fforward_word): Add last arg nil in call of
8896 Fconstrain_to_field.
8897
8898 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8899
8900 * fileio.c (Frename_file) [DOS_NT]: If the file names are
8901 identical but for the letter-case, don't call
8902 barf_or_query_if_file_exists.
8903
8904 2000-07-25 Miles Bader <miles@gnu.org>
8905
8906 * editfns.c (find_field): Honor special `boundary' fields.
8907 (Qboundary): New variables.
8908 (syms_of_editfns): Initialize Qboundary.
8909 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8910 Use scan_buffer instead of find_before_next_newline, because it
8911 allows us to detect the boundary case where there's a newline at
8912 the search limit.
8913 * lisp.h (Fconstrain_to_field): Update external declaration.
8914
8915 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8916
8917 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8918 if that is nil.
8919
8920 2000-07-24 Dave Love <fx@gnu.org>
8921
8922 * s/sunos4-0.h, s/sol2.h:
8923 (LIBS_TERMCAP): Move from m/sparc.h.
8924
8925 * m/sparc.h (TERMINFO): Moved to system files (probably only
8926 relevant for sunos4 judging by its vintage).
8927 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8928 __arch64__.
8929
8930 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8931
8932 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8933 name to single_keymap_panes.
8934
8935 2000-07-24 Andreas Schwab <schwab@suse.de>
8936
8937 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8938
8939 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8940
8941 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8942 parameters instead of using int parameters. Expect FN to accept
8943 EMACS_INT parameters.
8944 (display_echo_area, resize_echo_area_axactly, current_message)
8945 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8946 with new argument list.
8947 (resize_mini_window_1): New callback function.
8948 (current_message_1, truncate_message_1, set_message_1): Change
8949 parameter lists to the new format expected by with_echo_area_buffer.
8950
8951 2000-07-24 Kenichi Handa <handa@etl.go.jp>
8952
8953 * fontset.c (fontset_ref): Remove INLINE declaration.
8954 (fontset_ref_via_base): Likewise.
8955 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8956 to downcase.
8957
8958 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8959
8960 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8961 correct order of priority. If help echo was found in an overlay,
8962 use that overlay as the object in which the help echo was found.
8963
8964 2000-07-22 Miles Bader <miles@gnu.org>
8965
8966 * textprop.c (Fprevious_single_char_property_change): The initial
8967 property value should be from the position preceding POSITION, not
8968 following it.
8969
8970 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8971
8972 * coding.c (syms_of_coding): Doc fix for
8973 inhibit-iso-escape-detection.
8974
8975 2000-07-21 Gerd Moellmann <gerd@gnu.org>
8976
8977 * xterm.c (note_mouse_highlight): Process overlays in the right
8978 order of priority.
8979
8980 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8981
8982 * xterm.c (note_mouse_highlight): If help-echo was found in an
8983 overlay, use that overlay as the object in which the help was found.
8984
8985 * window.c (foreach_window_1): Fix typo reversing an if-condition.
8986
8987 * window.c (foreach_window): Instead of a fake variable argument
8988 list, take one USER_DATA argument.
8989 (foreach_window_1): Likewise, and call callback functions with two
8990 args, the window and USER_DATA.
8991 (struct check_window_data): New struct.
8992 (check_window_containing): Use it.
8993 (window_from_coordinates): Set up a struct check_window_data for
8994 foreach_window.
8995 (add_window_to_list, freeze_window_start): Change parameters
8996 according to new calling convention.
8997
8998 * window.h (foreach_window): Change prototype.
8999
9000 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9001
9002 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9003
9004 * xmenu.c (menu_help_callback): Call show_help_echo with
9005 additional arguments OBJECT and POS.
9006
9007 2000-07-21 Kenichi Handa <handa@etl.go.jp>
9008
9009 * data.c (Faset): Allow storing any multibyte character in a
9010 string. Convert unibyte string to multibyte if necessary.
9011
9012 * xfns.c (x_encode_text): New function.
9013 (x_set_name): Use x_encode_text.
9014 (x_set_title): Likewise.
9015
9016 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9017
9018 * xterm.h (x_encode_text): Add prototype.
9019
9020 2000-07-20 Dave Love <fx@gnu.org>
9021
9022 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9023 xfree, not free.
9024
9025 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9026
9027 * msdos.c (help_echo_window): New variable.
9028 (syms_of_msdos): Initialize and staticpro it.
9029 (IT_note_mode_line_highlight): Set help_echo_window.
9030 (IT_note_mouse_highlight): Ditto.
9031 (dos_rawgetc): Store help_echo_window in the second event produced
9032 for HELP_EVENTs.
9033
9034 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9035 Record the object that generated the help echo and the position of
9036 that object in help_echo_object and help_echo_pos. Record that
9037 some glyphs in a row are displayed in mouse-face.
9038 (IT_update_begin): Don't clear mouse highlight unless one of the
9039 enabled glyph rows is marked as being displayed in mouse-face.
9040 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9041 and position recorded in help_echo_object and help_echo_pos to the
9042 event queue.
9043 (IT_menu_display): Accept a new argument PN: the pane number of
9044 the current menu pane. Record the pane number and the item
9045 number of the item which has associated help string.
9046 (XMenuActivate): Update the prototype for help_callback in
9047 function declaration. Call IT_menu_display with the current menu
9048 pane number as an additional argument. Call help_callback with
9049 two additional arguments: the pane number and the item number of
9050 the menu item associated with the help text.
9051 (help_echo_object, help_echo_pos): New variables.
9052 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9053
9054 * msdos.h (XMenuActivate): Update prototype.
9055
9056 2000-07-19 Gerd Moellmann <gerd@gnu.org>
9057
9058 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9059 Add some more prototypes.
9060
9061 * xterm.c, xterm.h: Add some more prototypes.
9062
9063 * lisp.h (Fnext_single_char_property_change): Add prototype.
9064
9065 * dispnew.c (direct_output_for_insert): Remove confusing
9066 outer local variable mouse_face_overwritten_p.
9067 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9068
9069 * alloc.c (allocate_string_data): Don't copy old string contents.
9070
9071 2000-07-19 Kenichi Handa <handa@etl.go.jp>
9072
9073 * coding.c (code_convert_region): Delete text properties before
9074 shrinking the conversion region.
9075
9076 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9077
9078 * dispnew.c (update_text_area): Write the whole row if it
9079 has mouse-face in it.
9080
9081 * xfaces.c (face-alternative-font-family-alist): Remove
9082 DEFVAR_LISP; staticpro instead.
9083
9084 * xmenu.c (menu_help_callback): Call show_help_echo with
9085 new arguments.
9086
9087 * keyboard.c (show_help_echo): Add parameter WINDOW.
9088 (read_char): Call show_help_echo with window extracted from Lisp
9089 help event.
9090 (gen_help_event): Add parameter WINDOW.
9091
9092 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9093
9094 * xterm.c (help_echo_window): New variable.
9095 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
9096 (XTread_socket): Pass help_echo_window to gen_help_event.
9097 (syms_of_xterm): Initialize and staticpro help_echo_window.
9098
9099 2000-07-18 Dave Love <fx@gnu.org>
9100
9101 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
9102
9103 2000-07-18 Gerd Moellmann <gerd@gnu.org>
9104
9105 * alloc.c (allocate_string_data): If string had already data
9106 assigned, copy old contents to new string data.
9107
9108 * coding.c (syms_of_coding): Fix typo in spelling of variable
9109 `inhibit-iso-escape-detection'.
9110
9111 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9112
9113 * Makefile.in: Add dependencies on dispextern.h.
9114 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9115 `free'; both can conflict with system header files.
9116
9117 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9118
9119 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9120 undefined.
9121
9122 2000-07-18 Dave Love <fx@gnu.org>
9123
9124 * window.c (Fwindow_list): Declare arg `window'.
9125
9126 2000-07-18 Kenichi Handa <handa@etl.go.jp>
9127
9128 * coding.c (setup_coding_system): Don't override the explicitly
9129 specified designations.
9130
9131 2000-07-15 Miles Bader <miles@gnu.org>
9132
9133 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9134 from `text_property_eq' and `text_property_stickiness', respectively.
9135 (find_field, Fconstrain_to_field, char_property_eq)
9136 (char_property_stickiness): Changed to call char-property functions
9137 instead of text-property-only ones.
9138
9139 * textprop.c (Fnext_single_char_property_change): Made a subr (was
9140 `next_single_char_property_change'). Do more error checking, and
9141 cleanup limit behavior.
9142 (Fprevious_single_char_property_change): New function.
9143 (syms_of_textprop): Initialize new subrs.
9144
9145 * xdisp.c (display_prop_end, invisible_text_between_p):
9146 Call Fnext_single_char_property_change instead of
9147 next_single_char_property_change.
9148
9149 2000-07-15 Jason Rumney <jasonr@gnu.org>
9150
9151 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
9152 after menu is finished with.
9153 (add_menu_item): Only consider wv->title as a menu title.
9154 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
9155
9156 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
9157 null title.
9158 (FONT_REGEXP): Remove unused macro, and its sub-components.
9159 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
9160
9161 * w32term.c (help_echo_object, help_echo_pos): New variables.
9162 (note_mode_line_highlight): Store additional information about the
9163 help-echo in help_echo_object and help_echo_pos. Check both
9164 `local-map' and `keymap' properties for changing the cursor
9165 (note_mouse_highlight): Store additional information about the
9166 help-echo in help_echo_object and help_echo_pos.
9167 (note_tool_bar_highlight): Set help_echo_object to nil and
9168 help_echo_pos to -1.
9169 (w32_read_socket): Use gen_help_event instead of filling
9170 input_events manually.
9171 (syms_of_w32term): Staticpro help_echo_object.
9172 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
9173 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
9174 (x_clear_mouse_face): New function.
9175 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
9176 (x_update_window_begin): No need to turn off the mouse
9177 highlight here.
9178 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9179 depending on whether they contain glyphs highlighted in mouse-face.
9180 (x_fill_stretch_glyph_string): Consume runs of stretch
9181 glyphs instead of a single one.
9182 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9183 with new argument list.
9184 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9185 (x_append_glyph, x_append_composite_glyph)
9186 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9187 changes in struct glyph starting 1999-12-27. See comments for
9188 xterm.c on 2000-07-05.
9189
9190 2000-07-14 Sam Steingold <sds@gnu.org>
9191
9192 * xfaces.c (realize_x_face): Fix the last patch:
9193 check `default_face' before dereferencing.
9194
9195 2000-07-14 Dave Love <fx@gnu.org>
9196
9197 * syntax.c (back_comment): Add null default in switch (for pcc).
9198
9199 2000-07-14 Kenichi Handa <handa@etl.go.jp>
9200
9201 * xfaces.c (realize_x_face): Make fontset using the base of the
9202 default_face's fontset, not using the default fontset.
9203
9204 * coding.c (inhibit_iso_escape_detection): New variable.
9205 (syms_of_coding): Make it a Lisp variable.
9206 (detect_coding_iso2022): If inhibit_iso_escape_detection is
9207 nonzero, ignore ISO2022's escape sequence.
9208
9209 2000-07-14 Gerd Moellmann <gerd@gnu.org>
9210
9211 * alloca.c (malloc) [emacs]: Define as xmalloc.
9212
9213 * xfns.c (Fx_show_tip): If frame parameters contain a position,
9214 use that instead of the mouse position. Add parameters DX and DY.
9215
9216 * dispextern.h (Fx_show_tip): Adjust number of parameters
9217 in prototype.
9218
9219 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
9220 if HELP is a function, call it with OBJECT and POS as parameters
9221 to get the help to display.
9222 (gen_help_event, kbd_buffer_store_help_event): New functions.
9223 (kbd_buffer_get_event): Construct the Lisp help-event differently.
9224 (read_char): Call show_help_echo with new parameters.
9225
9226 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9227 Add prototypes.
9228
9229 * xterm.c (help_echo_object, help_echo_pos): New variables.
9230 (note_mode_line_highlight): Store additional information about the
9231 help-echo in help_echo_object and help_echo_pos. Check both
9232 `local-map' and `keymap' properties for changing the cursor
9233 (note_mouse_highlight): Store additional information about the
9234 help-echo in help_echo_object and help_echo_pos.
9235 (note_tool_bar_highlight): Set help_echo_object to nil and
9236 help_echo_pos to -1.
9237 (XTread_socket): Use gen_help_event instead of filling
9238 input_events manually.
9239 (syms_of_xterm): Staticpro help_echo_object.
9240
9241 * xmenu.c (menu_highlight_callback): Use
9242 kbd_buffer_store_help_event instead of setting up and input_event
9243 structure manually.
9244
9245 * xdisp.c (eval_form): GCPRO argument sexpr.
9246 (call_function): New function.
9247 (handle_single_display_prop): Use call_function and FUNCTIONP
9248 instead of checking whether if font_height is a symbol and
9249 using eval_form.
9250
9251 * eval.c (internal_condition_case_2): New function.
9252
9253 * lisp.h (FUNCTIONP): New macro.
9254 (internal_condition_case_2, call_function): Add prototypes.
9255
9256 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9257 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9258 Always set `arg' member of input_events.
9259 (construct_menu_click): Unused function removed.
9260
9261 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9262
9263 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9264 (construct_drag_n_drop, x_scroll_bar_handle_click)
9265 (w32_read_socket): Always set `arg' member of input_events.
9266
9267 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9268
9269 * lisp.h (eval_form): Add prototype.
9270
9271 * xdisp.c (eval_form): Make it externally visible.
9272
9273 2000-07-13 Gerd Moellmann <gerd@gnu.org>
9274
9275 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9276 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9277 consing. For prefix events, store the frame in the `arg' slot of
9278 the event, otherwise store the key there.
9279 (XTread_socket): Instead of consing, use the frame_or_window slot
9280 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
9281
9282 * xmenu.c (menu_highlight_callback): Store help string in the
9283 `arg' member of the input event; don't cons.
9284 (menubar_selection_callback): Use the `arg' slot of input events
9285 to queue additional information, instead of consing.
9286
9287 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9288
9289 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9290 TOOL_BAR_EVENTs.
9291 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9292
9293 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9294 input events to queue additional information, instead of consing.
9295
9296 * keyboard.c (kbd_buffer_gcpro): Renamed from
9297 kbd_buffer_frame_or_window. Now used for all Lisp objects
9298 referenced from the input queue.
9299 (kbd_buffer_store_event): Always use structure assignment for
9300 copying input events. Record all Lisp objects referenced from
9301 events in kbd_buffer_gcpro.
9302 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9303 differently from input events. Test for prefix menu_bar_events
9304 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9305 event in kbd_buffer_gcpro to nil.
9306 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9307 frame_or_window is equal to its arg member as prefix events.
9308 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9309 used by an input event to nil.
9310 (init_keyboard): Use two times the size of the input queue
9311 for kbd_buffer_gcpro.
9312 (syms_of_keyboard): Likewise.
9313
9314 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9315 Use USER_SIGNAL_EVENT.
9316
9317 * termhooks.h (struct input_event): Add member `arg'.
9318 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9319 (USER_SIGNAL_EVENT): Renamed from user_signal.
9320
9321 * xfaces.c (ASET): Remove definition.
9322
9323 * lisp.h (AREF, ASET, ASIZE): New macros.
9324
9325 * fontset.c (AREF, ASIZE): Remove definitions.
9326
9327 * fns.c (AREF): Remove definition.
9328
9329 * composite.c (AREF): Remove definition.
9330
9331 2000-07-12 Gerd Moellmann <gerd@gnu.org>
9332
9333 * dispnew.c (redraw_overlapped_rows): Add missing local.
9334 (scrolling_window): Remove debug code.
9335
9336 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9337 Before scrolling, turn off a mouse-highlight in the window
9338 being scrolled.
9339
9340 * xterm.c (x_update_window_end): Add parameter
9341 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9342 redisplay in XTframe_up_to_date.
9343 (x_clear_mouse_face): New function.
9344 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9345
9346 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9347 current glyph row.
9348 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9349 it when any row is written to that contains glyphs highlighted in
9350 mouse-face.
9351 (update_window): Call the window update end hook with new
9352 parameter MOUSE_FACE_OVERWRITTEN_P.
9353 (direct_output_for_insert): Give up if row contains mouse-face.
9354
9355 * dispextern.h (struct redisplay_interface): Add parameter
9356 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9357 (clear_mouse_face): New function pointer member.
9358
9359 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9360
9361 * syntax.c (back_comment): Use one switch rather than a few `if's.
9362 Obey open_paren_in_column_0_is_defun_start.
9363 When reverting to the `slow' method, try to nicely handle the case
9364 of nested comments by checking that the comment-starter we found
9365 does indeed match the comment-ender.
9366 (scan_sexps_forward, scan_sexps_forward):
9367 Ignore excessive opening parenthesis rather than throwing an error.
9368
9369 2000-07-11 Gerd Moellmann <gerd@gnu.org>
9370
9371 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9372 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9373
9374 * dispnew.c (direct_output_forward_char): Give up if currently
9375 displaying a message instead of the minibuffer contents.
9376
9377 * xterm.c (x_update_window_begin): No need to turn off the mouse
9378 highlight here.
9379 (show_mouse_face): Set the mouse_face_p flag of glyph rows
9380 depending on whether they contain glyphs highlighted in mouse-face.
9381
9382 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9383 compare the mouse_face_p flags of both rows.
9384
9385 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9386
9387 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9388
9389 * keyboard.c (show_help_echo): Accept additional parameter
9390 ok_to_overwrite_keystroke_echo.
9391 (read_char): Call show_help_echo with a zero
9392 ok_to_overwrite_keystroke_echo argument.
9393 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
9394 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9395 ok_to_overwrite_keystroke_echo argument.
9396 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9397 non-zero ok_to_overwrite_keystroke_echo argument.
9398
9399 2000-07-10 Gerd Moellmann <gerd@gnu.org>
9400
9401 * xdisp.c (try_window_id): If changes are all below what is
9402 displayed in the window, and point is in the window, we still
9403 might have to find point on the display.
9404
9405 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9406 glyphs instead of a single one.
9407 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9408 with new argument list.
9409 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9410
9411 * keymap.c (get_keymap_1): Add comment that this function can GC.
9412 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9413 comment that functions can GC.
9414 (Fset_keymap_parent): GCPRO arg KEYMAP.
9415
9416 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9417
9418 * msdos.c (XMenuActivate): After exiting the menu, restore the
9419 echo area message and erase it.
9420
9421 2000-07-10 Kenichi Handa <handa@etl.go.jp>
9422
9423 * fontset.c (Ffontset_info): Make the return value more compatible
9424 with that of Emacs 20.
9425
9426 2000-07-07 Gerd Moellmann <gerd@gnu.org>
9427
9428 * eval.c (Fsignal): Handle case that backtrace_list is null.
9429
9430 2000-07-07 Kenichi Handa <handa@etl.go.jp>
9431
9432 * ccl.c (Fccl_execute): Typo fixed.
9433
9434 2000-07-06 Gerd Moellmann <gerd@gnu.org>
9435
9436 * window.c (window_loop): Add missing gcpro1 local variable.
9437
9438 * window.c (Fwindow_list): Reverse list at the end.
9439 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9440 means allow windows on OWINDOW's frame, only.
9441 (window_loop): Simplified; use Fwindow_list.
9442
9443 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9444
9445 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9446
9447 * xterm.c (XTread_socket): Increment handling_signal at the start,
9448 decrement it at the end.
9449
9450 * eval.c (handling_signal): New variable.
9451 (Fsignal): Abort if handling_signal is non-zero.
9452
9453 * lisp.h (handling_signal): External declaration.
9454
9455 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9456
9457 2000-07-05 Ken Raeburn <raeburn@gnu.org>
9458
9459 Sound support for NetBSD through "Linux emulation" support:
9460 * config.in (HAVE_SOUNDCARD_H): Undef.
9461 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9462 * Makefile.in (LIBSOUND): New variable.
9463 (LIBES): Include it.
9464 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9465 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
9466 (vox_open): Use DEFAULT_SOUND_DEVICE.
9467 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9468
9469 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9470
9471 * print.c (print_error_message): If Vsignaling_function is set,
9472 show it in *Messages*.
9473
9474 * lisp.h (Vsignaling_function): External declaration.
9475
9476 * eval.c (Vsignaling_function): New variable.
9477 (Fsignal): Compute it.
9478 (syms_of_eval): Staticpro it.
9479
9480 2000-07-05 Dave Love <fx@gnu.org>
9481
9482 * syswait.h: Use the autoconf recommended approach. Old code
9483 #if'd out in case we need to revert.
9484
9485 * config.in (HAVE_SYS_WAIT_H): Added.
9486
9487 2000-07-05 Andrew Innes <andrewi@gnu.org>
9488
9489 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9490 when non-NULL instead of __morecore, to take account of buffer
9491 memory. This also solves a problem with spurious memory warnings
9492 on Windows.
9493
9494 * ralloc.c: Make real_morecore non-static.
9495
9496 * eval.c (internal_condition_case): Comment out abort if
9497 interrupt_input_blocked is not zero.
9498
9499 * makefile.nt: Add support for `bootstrap' and related targets.
9500 Include minimal debug info in emacs.exe in release build.
9501 Remove all dependencies on lisp.h, and fixup some others.
9502
9503 * w32.c (init_environment): Install code from 20.7 for providing
9504 default values for environment variables, based on the
9505 executable's own location.
9506 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
9507 (sys_socket): Install socket inheritance bug fix from 20.7.
9508
9509 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9510 here via blockinput.h).
9511
9512 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9513
9514 * w32menu.c (w32_menu_display_help):
9515 * xmenu.c (menu_help_callback): Use show_help_echo.
9516
9517 * keyboard.h (show_help_echo): Declare.
9518
9519 * keyboard.c (show_help_echo): New function, extracted from read_char.
9520 Feval its `msg' argument if it's a cons cell.
9521 (read_char): Use it.
9522 (follow_key): Pass `autoload' to get_keyelt.
9523
9524 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
9525 (note_tool_bar_highlight, XTread_socket):
9526 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
9527 (dos_rawgetc):
9528 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9529 (note_tool_bar_highlight, w32_read_socket):
9530 Do not gratuitously ignore non-string `help-echo' properties.
9531
9532 2000-07-05 Gerd Moellmann <gerd@gnu.org>
9533
9534 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9535
9536 * window.c (delete_all_subwindows): Reset Vwindow_list.
9537
9538 * xterm.c (x_append_glyph, x_append_composite_glyph)
9539 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9540 changes in struct glyph starting 1999-12-27. Some bit-fields of
9541 struct glyph were not set, which made glyphs unequal when compared
9542 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9543 effects were the result. This also depended on the contents of
9544 memory returned by xmalloc. If flickering happens again, activate
9545 the code in clear_glyph_row that's in #if 0. If the flickering is
9546 gone with that, chances are that it is caused by something similar.
9547
9548 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
9549
9550 * dispextern.h: Add some comments.
9551
9552 * window.c (add_window_to_list): Add parameter LIST.
9553 (window_list): Order list so that, for each frame, windows are
9554 in canonical order, and so that frames appear in the list in
9555 the order given by Vframe_list.
9556 (next_window): Reverse the handling of NEXT_P.
9557
9558 2000-07-04 Gerd Moellmann <gerd@gnu.org>
9559
9560 * window.c (Vwindow_list): New variable.
9561 (make_window, delete_window): Set Vwindow_list to nil.
9562 (check_window_containing): New function.
9563 (window_from_coordinates): Rewritten.
9564 (add_window_to_list, window_list, candidate_window_p)
9565 (decode_next_window_args, next_window): New functions.
9566 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
9567 (Fwindow_list): New function.
9568 (Fother_window): Cleaned up.
9569 (foreach_window): Add a longer "variable argument list". Let
9570 callback function return 0 to indicate that cycling over windows
9571 should stop.
9572 (foreach_window_1): Likewise.
9573 (freeze_window_start): Return int.
9574 (init_window): New function.
9575 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9576
9577 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9578 input_event with bzero.
9579 (main): Call init_window.
9580
9581 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9582 a menu filter.
9583
9584 2000-07-04 Kenichi Handa <handa@etl.go.jp>
9585
9586 * composite.h (make_composition_value_copy): Extern it.
9587
9588 * composite.c (make_composition_value_copy): New function.
9589
9590 * editfns.c (Fformat): While copying text properties, make each
9591 composition property value a copy.
9592
9593 * fns.c (concat): While copying text properties, make each
9594 composition property value a copy.
9595
9596 2000-07-03 Gerd Moellmann <gerd@gnu.org>
9597
9598 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9599
9600 * fns.c (sweep_weak_table): Mark only objects that are not
9601 marked already.
9602
9603 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9604 include those frames as candidates which have their focus
9605 redirected to the minibuffer frame.
9606
9607 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9608
9609 * fns.c (Fputhash): Return `value' rather than nil.
9610
9611 2000-06-30 Gerd Moellmann <gerd@gnu.org>
9612
9613 * frame.c (next_frame): Don't check focus redirection in case
9614 MINIBUF is a window. Doing so excludes frames using MINIBUF
9615 unless their focus is redirected, which contradicts the
9616 specification of next-frame, and leads to infinite loops in
9617 certain situations when cycling through windows with next-window.
9618
9619 2000-06-30 Kenichi Handa <handa@etl.go.jp>
9620
9621 * coding.c (code_convert_region): Even if the length of text is
9622 zero, try to convert it if coding->type is coding_type_ccl.
9623 (decode_coding_string, encode_coding_string): Likewise.
9624
9625 2000-06-28 Gerd Moellmann <gerd@gnu.org>
9626
9627 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
9628 the display if windows_or_buffers_changed.
9629
9630 * dispnew.c (struct row_entry): New structure.
9631 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9632 (row_table_size, old_lines, new_lines, old_lines_size)
9633 (new_lines_size, run_pool, runs_size, runs): New variables.
9634 (add_row_entry): New function.
9635 (scrolling_window): Use data structures allocated with xmalloc and
9636 held in global variables, instead of allocating them with alloca and
9637 holding them in local variables. Use a larger hash table whose
9638 size depends on glyph matrix sizes. Don't use bzero to clear the
9639 hash table; instead, clear used slots only.
9640
9641 * fns.c (next_almost_prime): Make it externally visible.
9642
9643 * lisp.h (next_almost_prime): Add prototype.
9644
9645 * s/isc4-0.h (sigunblock): Define.
9646
9647 * s/sco5.h (sigunblock): Define.
9648
9649 2000-06-27 Dave Love <fx@gnu.org>
9650
9651 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9652 (moved to osf5-0.h).
9653 [!NOT_C_CODE]: Protect string.h stuff.
9654
9655 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9656 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9657
9658 2000-06-27 Gerd Moellmann <gerd@gnu.org>
9659
9660 * xdisp.c (resize_mini_window): Subtract the extra line spacing
9661 below the last line from the needed window height.
9662
9663 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9664
9665 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9666 (Fwidget_get): Use it.
9667 (syms_of_fns): Defsubr it.
9668
9669 2000-06-26 Gerd Moellmann <gerd@gnu.org>
9670
9671 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
9672 display info for XIM.
9673 (xim_open_dpy): Likewise.
9674 (xim_close_dpy): Don't free the display info's XIM.
9675
9676 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9677
9678 * config.in (USE_XIM): New define.
9679
9680 * keymap.c (get_keyelt): For menu-items containing a `:filter
9681 FILTER', apply FILTER to the menu-item's definition to get the
9682 real definition to use.
9683
9684 * lisp.h (QCfilter): External declaration.
9685
9686 * xfns.c (Fimage_size): New function.
9687 (syms_of_xfns): Defsubr it.
9688
9689 2000-06-26 Andreas Schwab <schwab@suse.de>
9690
9691 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9692 Fstring_as_unibyte.
9693
9694 2000-06-25 Dave Love <fx@gnu.org>
9695
9696 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
9697
9698 * Makefile.in (blockinput.h): Depend on atimer.h.
9699 (atimer.h): Depend on systime.h.
9700
9701 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
9702
9703 * atimer.h: Protect against multiple inclusion. Include systime.h.
9704
9705 * lisp.h (swap_in_global_binding): Declare.
9706
9707 2000-06-24 Ken Raeburn <raeburn@gnu.org>
9708
9709 * process.c (Fopen_network_stream): Turn off atimers for duration
9710 of call to connect. (Patch from Gerd.)
9711
9712 2000-06-23 Dave Love <fx@gnu.org>
9713
9714 * ralloc.c: Maybe include unistd.h
9715
9716 * emacs.c (setgrp): Undefine before defining.
9717 (malloc_warning, set_time_zone_rule, index): Prototype.
9718
9719 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9720 HAVE_STRUCT_TIMEZONE.
9721
9722 * s/osf1.h: Move string.h hack here from alpha.h and make it
9723 conditional.
9724 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9725 _XOPEN_SOURCE.
9726 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9727 (SOCKLEN_TYPE): Don't define.
9728
9729 * m/alpha.h: Remove string.h hack.
9730
9731 * s/osf5-0.h: New file.
9732
9733 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9734 include time.h, done by systime.h.
9735 [__FreeBSD__]: Remove redundant includes.
9736
9737 * callproc.c (setpgrp): Undefine before defining.
9738 (delete_temp_file): Return Qnil to avoid warning.
9739
9740 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9741
9742 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9743 HAVE_X_WINDOWS.
9744
9745 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9746
9747 * composite.h (compose_text): Declare.
9748
9749 * xterm.c: Don't include sys/types.h unconditionally. Don't
9750 protect its inclusion with !USG (following xmenu.c).
9751
9752 2000-06-23 Gerd Moellmann <gerd@gnu.org>
9753
9754 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9755 in x_create_frame.
9756
9757 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9758
9759 * coding.c (decode_eol_post_ccl): Special handling for undecided
9760 and inconsistent EOL types.
9761
9762 2000-06-22 Gerd Moellmann <gerd@gnu.org>
9763
9764 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9765 trough color and main window's background color.
9766
9767 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
9768
9769 * xterm.h (Xt_app_con): External declaration.
9770
9771 * widget.c (EmacsFrameRealize): Fix typo.
9772
9773 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9774
9775 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9776 (handle_invisible_prop): Record the start of invisible text in
9777 it->add_overlay_start.
9778 (struct overlay_entry): Add member `overlay'.
9779 (handle_overlay_change): Simplify.
9780 (next_overlay_string): After having processed overlay strings at the
9781 end of the buffer, record that fact in
9782 it->overlay_strings_at_end_processed_p.
9783 (compare_overlay_entries): If before- and after-strings come
9784 from the same overlay, let before-strings come first.
9785 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9786 (load_overlay_strings): Take it->add_overlay_start into account
9787 when adding overlay strings.
9788
9789 * dispextern.h (struct it): Add member add_overlay_start.
9790
9791 2000-06-22 Dave Love <fx@gnu.org>
9792
9793 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9794
9795 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9796
9797 2000-06-22 Kenichi Handa <handa@etl.go.jp>
9798
9799 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9800 is greater than 0.
9801
9802 2000-06-21 Dave Love <fx@gnu.org>
9803
9804 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9805
9806 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9807
9808 * syntax.c (back_comment): Simplify string-parity counting (with
9809 the added benefit of handling multiple string-styles as long as
9810 they are not intertwined).
9811 Jump to the slow code as soon as a comment starter is found in
9812 a "string_lossage" position. Fixes the case: " /* " /* " */.
9813
9814 2000-06-21 Dave Love <fx@gnu.org>
9815
9816 * Makefile.in: Use GETLOADAVG_LIBS.
9817
9818 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9819 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9820
9821 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9822
9823 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9824 (Fforward_comment, scan_lists):
9825 Check the comstyle of single-char comment-starters.
9826 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9827 we're just at the beginning of the comment (f.ex with (*) ... (*)).
9828 Check the comstyle of single-char comment-starters.
9829 Clarify control-flow around the Scomment case.
9830
9831 2000-06-20 Dave Love <fx@gnu.org>
9832
9833 * fns.c (make_hash_table, maybe_resize_hash_table):
9834 Cast arg of next_almost_prime.
9835
9836 * tparam.c [emacs]: Include lisp.h.
9837
9838 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9839 and unistd.h.
9840
9841 2000-06-20 Gerd Moellmann <gerd@gnu.org>
9842
9843 * keyboard.c (adjust_point_for_property): Check if display
9844 property should be treated as intangible by looking at its value.
9845
9846 * xdisp.c (single_display_prop_intangible_p)
9847 (display_prop_intangible_p): New functions.
9848
9849 * dispextern.h (display_prop_intangible_p): Add prototype.
9850
9851 * xdisp.c (dump_glyph_row): Show type of glyph->object.
9852
9853 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9854 argument to sigprocmask.
9855
9856 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9857 argument to sigprocmask.
9858
9859 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9860 sigprocmask_set, and pass a pointer to it to sigprocmask.
9861
9862 * sysdep.c (sigprocmask_set): New variable.
9863
9864 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9865 report_file_error.
9866
9867 2000-06-20 Sam Steingold <sds@gnu.org>
9868
9869 * xrdb.c: Don't declare xmalloc, xrealloc.
9870
9871 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9872
9873 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9874 (re_comp): Cast gettext return value to avoid complaints when
9875 !HAVE_LIBINTL.
9876
9877 2000-06-20 Dave Love <fx@gnu.org>
9878
9879 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
9880
9881 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
9882
9883 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
9884
9885 * m/alpha.h: Don't declare xmalloc, xrealloc.
9886
9887 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9888
9889 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9890
9891 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9892
9893 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9894 HAVE_GETWD.
9895
9896 * keyboard.h (poll_for_input_1): Declare.
9897
9898 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9899
9900 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9901
9902 * doprnt.c: Don't declare xmalloc, xrealloc.
9903
9904 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9905 (getenv, ctime, getwd): Removed.
9906 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9907
9908 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9909 x_set_tool_bar_lines.
9910
9911 * config.in: Add HAVE_GETWD. Move some definitions above
9912 machine/system includes.
9913
9914 2000-06-20 Kenichi Handa <handa@etl.go.jp>
9915
9916 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9917
9918 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9919 contain information about ENCODING.
9920
9921 * fontset.c (FONTSET_ASCII): Use the first element of char table
9922 for an ASCII font, not defalt slot.
9923 (fontset_ref_via_base): If FONTSET doesn't contain information for
9924 C, try the default fontset.
9925 (make_fontset): Don't copy the default fontset.
9926 (fontset_font_pattern): Likewise.
9927 (accumulate_font_info): If ELT is nil, use the corresponding
9928 element in the default fontset.
9929
9930 2000-06-19 Dave Love <fx@gnu.org>
9931
9932 * syntax.c (Fparse_partial_sexp): Doc fix.
9933
9934 * regex.h: Test PROTOTYPES as well as __STDC__.
9935
9936 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9937 errno, strerror. Put text after #endif in comment.
9938
9939 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
9940
9941 * xterm.c (x_frame_of_widget): Likewise.
9942
9943 2000-06-19 Gerd Moellmann <gerd@gnu.org>
9944
9945 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9946 to Vfundamental_mode_abbrev_table.
9947
9948 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9949 bogus objects are marked. This slows down GC by ~80 percent, but
9950 it might be worth trying when debugging GC-related problems.
9951 This feature requires conservative stack marking to be enabled.
9952
9953 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9954 returns XLookupChars, reset `modifiers' to zero.
9955
9956 2000-06-19 Dave Love <fx@gnu.org>
9957
9958 * mktime.c: Unprotoized.
9959
9960 2000-06-19 Richard Stallman <rms@gnu.org>
9961
9962 * data.c (set_internal): If variable is frame-local,
9963 store the new value immediately into the frame parameter alist.
9964
9965 2000-06-19 Ken Raeburn <raeburn@gnu.org>
9966
9967 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9968 in the custom handler pointer.
9969
9970 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9971 value, or checks for CHAR_META can fail when Lisp_Object is a
9972 union type.
9973 * keymap.c (get_keyelt): Likewise.
9974
9975 2000-06-19 Kenichi Handa <handa@etl.go.jp>
9976
9977 * ccl.h (struct ccl_program): New member eol_type.
9978 (struct ccl_spec): New member cr_carryover.
9979
9980 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9981 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9982
9983 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9984 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9985 (decode_eol_post_ccl): New function.
9986 (decode_coding): Don't detect EOL format here for CCL based coding
9987 systems.
9988 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9989 decode_eol_post_ccl after running the CCL program.
9990 (code_convert_region): Don't detect EOL format here for CCL based
9991 coding systems.
9992 (decode_coding_string): Likewise.
9993
9994 2000-06-18 Ken Raeburn <raeburn@gnu.org>
9995
9996 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9997 when treating it as an integer.
9998
9999 * coding.h (encode_coding_string): Declare.
10000
10001 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10002 it as an integer.
10003
10004 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10005 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10006 to be passed to get_local_map.
10007
10008 * sound.c (Fplay_sound): Don't call make_number on
10009 Frun_hook_with_args count argument.
10010
10011 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10012 for lisp objects in X event structure data field, when lisp
10013 objects are represented with unions.
10014 (x_scroll_bar_to_input_event): Ditto.
10015
10016 2000-06-16 Ken Raeburn <raeburn@gnu.org>
10017
10018 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
10019 termination of string. Fix sense of test whether
10020 Vline_number_display_limit is an integer.
10021
10022 2000-06-16 Gerd Moellmann <gerd@gnu.org>
10023
10024 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10025 only if HAVE_X_WINDOWS.
10026
10027 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10028 of titles.
10029
10030 * dispnew.c (update_frame_1): Handle case that cursor vpos is
10031 out of bounds.
10032
10033 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10034
10035 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10036 of its headers.
10037
10038 2000-06-15 Kenichi Handa <handa@etl.go.jp>
10039
10040 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10041 start of the while loop.
10042
10043 2000-06-15 Gerd Moellmann <gerd@gnu.org>
10044
10045 * atimer.c (alarm_signal_handler): Add forward declaration.
10046
10047 * data.c (set_internal): Remove debug code.
10048
10049 2000-06-14 Gerd Moellmann <gerd@gnu.org>
10050
10051 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10052
10053 * unexec.c (toplevel) [COFF]: Include coff.h.
10054
10055 * s/lynxos.h: New file.
10056
10057 * keymap.c (Fsingle_key_description): Enclose function key and
10058 event symbol names in angle brackets.
10059
10060 * xdisp.c (setup_echo_area_for_printing): Call
10061 message_log_maybe_newline if message_buf_print is not set.
10062
10063 * print.c (printchar, strout): Don't check message_buf_print
10064 before calling setup_echo_area_for_printing because that
10065 function does something useful even when message_buf_print is
10066 already set.
10067
10068 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10069 New variables.
10070 (ensure_echo_area_buffers): Initialize echo buffer's
10071 truncate lines setting to nil.
10072 (with_echo_area_buffer): Don't set the echo buffer's truncate
10073 lines setting here.
10074 (set_message_1): Set it here instead, based on the value
10075 of message_truncate_lines.
10076 (resize_mini_window): Handle case that lines are truncated.
10077 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10078 DEFVAR_BOOL message-truncate-lines.
10079
10080 * keyboard.c (read_char): Bind message-truncate-lines to t
10081 while displaying a help-echo.
10082
10083 * lisp.h (Qmessage_truncate_lines): External declaration.
10084
10085 2000-06-13 Gerd Moellmann <gerd@gnu.org>
10086
10087 * xdisp.c (Vline_number_display_limit): Renamed from
10088 line_number_display_limit.
10089 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10090 Extend documentation string. Initialize
10091 Vline_number_display_limit to nil meaning no limit.
10092 (decode_mode_spec): Use Vline_number_display_limit with its new
10093 meaning.
10094
10095 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10096
10097 2000-06-13 Richard Stallman <rms@gnu.org>
10098
10099 * frame.c (Fmodify_frame_parameters): Doc fix.
10100
10101 * xfns.c (x_set_frame_parameters): Comment fix.
10102
10103 * frame.c (store_frame_param): Call swap_in_global_binding if the
10104 variable's current binding was chosen based on this frame.
10105
10106 * data.c (swap_in_global_binding): New function.
10107
10108 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10109
10110 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10111 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10112
10113 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10114
10115 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10116
10117 2000-06-12 Jason Rumney <jasonr@gnu.org>
10118
10119 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10120
10121 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10122
10123 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10124
10125 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10126
10127 2000-06-12 Gerd Moellmann <gerd@gnu.org>
10128
10129 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10130 (syms_of_xfaces): Defsubr Sdump_colors.
10131 (x_free_colors): Don't treat b&w specially on default visual.
10132 (x_free_dpy_colors): New function.
10133 (free_face_colors): Don't check visual class; it's done
10134 in x_free_colors.
10135
10136 * xterm.c (x_frame_of_widget): New function.
10137 (x_alloc_nearest_color_for_widget): Use it.
10138 (x_copy_dpy_color): New function.
10139 (x_destroy_window): Free various colors.
10140
10141 2000-06-12 Kenichi Handa <handa@etl.go.jp>
10142
10143 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
10144
10145 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
10146
10147 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
10148
10149 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
10150
10151 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
10152
10153 2000-06-11 Dave Love <fx@gnu.org>
10154
10155 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
10156
10157 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
10158
10159 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
10160
10161 2000-06-11 Gerd Moellmann <gerd@gnu.org>
10162
10163 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
10164 to `XEvent *'.
10165
10166 2000-06-10 Kenichi Handa <handa@etl.go.jp>
10167
10168 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
10169 (regex_compile): Fix the code for handling the case of single byte
10170 char and multibyte char being mixed in a range within [...].
10171
10172 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
10173 and dst_multibyte members of coding.
10174
10175 * charset.c (update_charset_table): Update the table
10176 bytes_by_char_head.
10177 (init_charset_once): Initialize elements of bytes_by_char_head to
10178 1 except for leading codes for private charases.
10179
10180 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
10181 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
10182
10183 2000-06-09 Ken Raeburn <raeburn@gnu.org>
10184
10185 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
10186 access the data it doesn't point to.
10187
10188 2000-06-08 Gerd Moellmann <gerd@gnu.org>
10189
10190 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
10191 will be translated to a switch-frame event when reading the
10192 event queue. This is necessary because Emacs otherwise won't
10193 perform a switch-frame to a new frame until some other event, for
10194 example a keystroke event, forces it to do so. This has various
10195 effects, one visible being that the cursor of a frame created with
10196 C-x 5 2 or switched to with a window manager key binding like
10197 A-TAB stays hollow because selected_window isn't on the newly
10198 focused frame until the switch-frame is performed.
10199
10200 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
10201 generating a switch-frame event if necessary.
10202
10203 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
10204
10205 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
10206 it's an integer.
10207
10208 2000-06-08 Kenichi Handa <handa@etl.go.jp>
10209
10210 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
10211
10212 2000-06-07 Gerd Moellmann <gerd@gnu.org>
10213
10214 * window.c (displayed_window_lines): Take empty lines at
10215 the bottom of a window into account.
10216
10217 * window.c (displayed_window_lines): New function.
10218 (Fmove_to_window_line): Use displayed_window_lines to determine
10219 the number of lines to move, instead of using the window's height.
10220
10221 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
10222 to stop reading, even if the form read sets point to a different
10223 value when evaluated.
10224
10225 * xdisp.c (display_line): Fix code deciding in which line to
10226 put the cursor.
10227
10228 2000-06-07 Kenichi Handa <handa@etl.go.jp>
10229
10230 * fileio.c (e_write): Free composition data if stored in
10231 coding->cmp_data.
10232
10233 2000-06-06 Gerd Moellmann <gerd@gnu.org>
10234
10235 * xdisp.c (display_line): Set row's and iterator's
10236 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10237 Set cursor even if row ends in the middle of a character.
10238 (dump_glyph_row): Print values of new flags.
10239 (redisplay_window) <cursor movement in unchanged window>: When
10240 point has been moved forward, and PT is at the end of the cursor
10241 row, don't place the cursor in the next row if the cursor row ends
10242 in the middle of a character or at ZV.
10243
10244 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10245 (struct glyph_row): Add starts_in_middle_of_char_p and
10246 ends_in_middle_of_char_p.
10247 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10248 ends_in_middle_of_char_p flag.
10249 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10250
10251 * term.c (append_glyph): Revert change of 2000-06-06.
10252
10253 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10254 padding glyph not fitting on line as whole character not
10255 fitting on line.
10256
10257 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10258 this isn't true for images with `:ascent 100'.
10259
10260 2000-06-06 Kenichi Handa <handa@etl.go.jp>
10261
10262 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10263 as modified if it is originally unmodified.
10264
10265 * term.c (encode_terminal_code): Change the way to check if
10266 terminal coding does any conversion.
10267 (append_glyph): Set glyph->pixel_width correctly.
10268
10269 * xdisp.c (display_line): While checking line continuation, pay
10270 attention to a padding glyph.
10271
10272 2000-06-05 Gerd Moellmann <gerd@gnu.org>
10273
10274 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10275
10276 2000-06-05 Dave Love <fx@gnu.org>
10277
10278 * xdisp.c: Include fontset.h.
10279
10280 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10281
10282 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10283
10284 * dispnew.c: Conditionally include term.h.
10285
10286 * coding.h: Declare code_convert_string_norecord.
10287
10288 * frame.h (struct frame): Use volatile unconditionally.
10289
10290 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10291
10292 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10293
10294 * systime.h: Protect against multiple inclusion.
10295 (timezone) [USG5_4]: Define as time_t.
10296
10297 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10298 (Foptimize_char_table, make_temp_name): Declare.
10299
10300 * Makefile.in (xdisp.o): Depend on fontset.h.
10301
10302 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10303
10304 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10305 (Foptimize_char_table, make_temp_name): Declare.
10306
10307 * s/irix4-0.h:
10308 * s/irix5-0.h:
10309 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10310
10311 2000-06-02 Dave Love <fx@gnu.org>
10312
10313 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10314
10315 2000-06-02 Gerd Moellmann <gerd@gnu.org>
10316
10317 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
10318 result face, set flags in that face indicating that colors may not
10319 be freed.
10320
10321 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10322 glyph, use the ASCII NUL character to determine the face.
10323
10324 2000-06-02 Dave Love <fx@gnu.org>
10325
10326 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10327 (VFORK_RETURN_TYPE): Remove.
10328
10329 * config.in: Add NO_MATHERR.
10330
10331 2000-06-01 Dave Love <fx@gnu.org>
10332
10333 * cmds.c (internal_self_insert): Don't check
10334 Vbefore_change_function, Vafter_change_function.
10335
10336 * insdel.c (signal_before_change, signal_after_change): Likewise.
10337
10338 * buffer.c (Vbefore_change_function, Vafter_change_function):
10339 Variables and their initializations deleted.
10340
10341 * callint.c (Fcall_interactively): Doc fix.
10342
10343 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10344
10345 2000-05-31 Dave Love <fx@gnu.org>
10346
10347 * textprop.c: Revert last change -- duplicated.
10348
10349 2000-05-31 Gerd Moellmann <gerd@gnu.org>
10350
10351 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10352 in #if 0.
10353
10354 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10355
10356 2000-05-31 Jason Rumney <jasonr@gnu.org>
10357
10358 * search.c (Fre_search_forward, Fre_search_backward)
10359 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10360
10361 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10362
10363 2000-05-30 Jason Rumney <jasonr@gnu.org>
10364
10365 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10366 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10367
10368 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
10369
10370 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10371 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10372 expand a nil default_filename.
10373
10374 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10375 pointer to glyph_to_pixel_coords, not a frame.
10376
10377 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10378 coding.h to dependencies.
10379
10380 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10381
10382 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10383 window pointer to be consistent with w32term.c and xterm.c.
10384
10385 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10386 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10387 (Qline_spacing, Qcenter): New variables.
10388 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10389 (x_set_line_spacing): New function.
10390 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
10391 (x_specified_cursor_type): New function.
10392 (x_set_cursor_type): Use it.
10393 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10394 and icon strings.
10395 (validate_x_resource_name, x_get_resource_string): Measure lengths
10396 of external strings in bytes.
10397 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10398 GetTextExtentPoint32 with NULL title.
10399 (Fx_create_frame): Initialize Qline_spacing.
10400 (w32_load_system_font): Initialize font->double_byte_p.
10401 (x_to_w32_charset): Use Vw32_charset_info_alist.
10402 (Image, busy cursor, tooltip functions): Merged changes from
10403 xfns.c. Not yet functional on Windows.
10404
10405 * w32gui.h (W32FontStruct): Add double_byte_p member.
10406
10407 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10408 (emacs_button_translation): Use it.
10409 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10410 in `mask' to be set.
10411
10412 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10413 menu strings.
10414
10415 * w32term.c: Format and doc changes to bring closer to xterm.c.
10416 (w32_char_font_type): New enum.
10417 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10418 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10419 (w32_encode_char): New function.
10420 (x_encode_char): Removed.
10421 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10422 x_encode_char and w32_font_is_double_byte.
10423 (x_produce_image_glyph): Use image_ascent.
10424 (x_produce_glyphs): Use new version of w32_per_char_metric and
10425 handle NULL return value. Allow extra line spacing.
10426 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10427 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10428 w32_font_type member of glyph instead.
10429 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10430 (fast_find_position): Make sure not to consider rows not visible
10431 in the window.
10432 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10433 w32_menu_display_help with input blocked, as it can abort.
10434 (x_display_and_set_cursor): Choose cursor depending
10435 on buffer-local value of cursor_type.
10436 (x_draw_bar_cursor): Add parameter WIDTH.
10437
10438 * w32term.h (CP_DEFAULT): Define.
10439 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10440
10441 2000-05-30 Gerd Moellmann <gerd@gnu.org>
10442
10443 * search.c (Fre_search_forward, Fre_search_backward)
10444 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10445
10446 2000-05-30 Kenichi Handa <handa@etl.go.jp>
10447
10448 * coding.c (detect_coding_iso2022): Fix code for checking
10449 CODING_CATEGORY_MASK_ISO_8_2.
10450
10451 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10452
10453 * regex.c (PREFETCH_NOLIMIT): New function.
10454 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10455
10456 2000-05-29 Gerd Moellmann <gerd@gnu.org>
10457
10458 * syntax.c (find_defun_start): Move test for
10459 open_paren_in_column_0_is_defun_start outside of the loop.
10460
10461 * xdisp.c (redisplay_window): Really switch buffers when
10462 displaying mode lines, and temporarily set selected_frame to the
10463 frame of the window that's redisplayed.
10464
10465 * xfaces.c (free_realized_faces): Block/unblock input.
10466 (free_realized_multibyte_face): Ditto.
10467
10468 2000-05-29 Dave Love <fx@gnu.org>
10469
10470 * textprop.c (Qkeymap): New variable.
10471 (syms_of_textprop): Intern it.
10472
10473 * keymap.c: Include intervals.h.
10474 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10475
10476 * Makefile.in (keymap.o): Depend on intervals.h.
10477
10478 * keyboard.c (menu_bar_items, tool_bar_items)
10479 (Fexecute_extended_command): Deal with `keymap' property.
10480 (read_key_sequence): Track map from `keymap' property as well as
10481 `local_map'.
10482
10483 * intervals.c (get_local_map): Extra arg to allow looking for
10484 `keymap' too.
10485
10486 * intervals.h (map_property): New enum.
10487 (get_local_map): Extra arg using it.
10488 (Qkeymap): Declare.
10489
10490 * lisp.h (get_local_map): Don't declare here.
10491
10492 2000-05-29 Kenichi Handa <handa@etl.go.jp>
10493
10494 * Makefile.in (callproc.o): Depend on composite.h.
10495
10496 * callproc.c: Include composite.h.
10497 (Fcall_process): Handle composition correctly.
10498
10499 * coding.h (coding_allocate_composition_data): Extern it.
10500 (coding_restore_composition): Likewise.
10501
10502 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10503 yet allocated, finish decoding with result
10504 CODING_FINISH_INSUFFICIENT_CMP.
10505 (coding_allocate_composition_data): Make it non-static.
10506 (coding_restore_composition): Likewise.
10507
10508 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10509
10510 * charset.c (syms_of_charset): Revert last change.
10511
10512 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10513
10514 * term.c (produce_glyphs): Treat characters from the eight-bit-*
10515 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10516 Handa.
10517
10518 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10519
10520 * charset.c (syms_of_charset): Set width of character sets
10521 eight-bit-control and eight-bit-graphic to 1 column.
10522
10523 2000-05-26 Gerd Moellmann <gerd@gnu.org>
10524
10525 * config.in (HAVE_SPEED_T): New define.
10526
10527 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10528 `extern speed_t'.
10529
10530 2000-05-26 Dave Love <fx@gnu.org>
10531
10532 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10533
10534 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10535 (Fsubr_arity): New function.
10536 (syms_of_data): Install them.
10537
10538 2000-05-26 Kenichi Handa <handa@etl.go.jp>
10539
10540 * charset.c (init_charset_once): Set the table bytes_by_char_head
10541 correctly.
10542
10543 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10544 the default fontset to what Emacs uses by default.
10545 (check_registry_encoding): This function deleted.
10546 (Fset_fontset_font): Remove the adhoc condition for the default
10547 fontset. Allow cons in FONTNAME.
10548
10549 * fns.c (map_char_table): Ignore char-table entries for
10550 charsets eight-bit-control and eight-bit-graphic.
10551
10552 2000-05-25 Ken Raeburn <raeburn@gnu.org>
10553
10554 * emacs.c (main): Initialize keyboard syms before initializing
10555 window code, so face names are available.
10556
10557 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10558
10559 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10560 of an anchor at the beginning of a shy-group.
10561
10562 2000-05-25 Gerd Moellmann <gerd@gnu.org>
10563
10564 * xdisp.c (handle_invisible_prop): Don't try to skip over
10565 invisible text if end of text is already reached.
10566
10567 2000-05-25 Dave Love <fx@gnu.org>
10568
10569 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10570
10571 * coding.c (encode_eol): Add null statement after label.
10572
10573 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10574
10575 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10576 2000-05-20.
10577
10578 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10579
10580 * ccl.c (ccl_driver): Fix previous change.
10581
10582 2000-05-25 Kenichi Handa <handa@etl.go.jp>
10583
10584 * coding.c (run_pre_post_conversion_on_str): Set point to the
10585 beginning of buffer before calling coding->post_read_conversion.
10586 (decode_coding_string): Give correct args to
10587 run_pre_post_conversion_on_str.
10588 (encode_coding_string): Likewise.
10589
10590 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10591 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10592 eight-bit-graphic correctly.
10593
10594 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
10595
10596 * fileio.c (Finsert_file_contents): Even if a file is not found,
10597 execute codes for setting up coding system. Call
10598 after-insert-file-functions unconditionally.
10599
10600 2000-05-24 Gerd Moellmann <gerd@gnu.org>
10601
10602 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10603 BSD_PGRPS are not defined.
10604
10605 2000-05-24 Kenichi Handa <handa@etl.go.jp>
10606
10607 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10608 DESCRIPTION.
10609 (syms_of_charset): Avoid building same strings.
10610
10611 2000-05-23 Gerd Moellmann <gerd@gnu.org>
10612
10613 * lread.c (Fload): Add a comment about the meaning of
10614 Vuser_init_file being t.
10615
10616 * puresize.h (BASE_PURESIZE): Increase to 675000.
10617
10618 * s/gnu-linux.h (setpgrp): Don't define it here because this
10619 prevents compilation on GNU/Linux systems with glib 2.2.
10620
10621 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10622 as setpgid.
10623
10624 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10625
10626 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10627 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10628 version.
10629 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10630
10631 2000-05-23 Kenichi Handa <handa@etl.go.jp>
10632
10633 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10634
10635 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10636
10637 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
10638
10639 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10640
10641 2000-05-22 Kenichi Handa <handa@etl.go.jp>
10642
10643 * keyboard.c (read_char): Allow character codes 128..255 to be
10644 handled by input-method-function.
10645
10646 * insdel.c (adjust_markers_for_replace): Fix previous change.
10647 (adjust_after_replace): If PREV_TEXT is nil, call
10648 adjust_markers_for_insert, not adjust_markers_for_replace.
10649
10650 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
10651
10652 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10653 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10654 [HAVE_GRANDPT]: Define.
10655 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10656
10657 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10658 like SYSV_PTYS.
10659
10660 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10661
10662 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10663
10664 2000-05-20 Kenichi Handa <handa@etl.go.jp>
10665
10666 The following changes are to handle 8-bit characters in a
10667 multibyte buffer/string without facing with byte combining
10668 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10669 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10670
10671 * Makefile.in (fns.o): Depend on charset.h.
10672
10673 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10674 convert it to unibyte.
10675 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10676
10677 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10678 apparent char boundary.
10679 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10680 0x80..0x9F to/from multibyte form.
10681
10682 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10683 to unibyte.
10684
10685 * callproc.c (Fcall_process): Always encode an argument string if
10686 it is multibyte. Setup src_multibyte and dst_multibyte members of
10687 process_coding properly.
10688
10689 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10690 SPLIT_NON_ASCII_CHAR.
10691
10692 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10693 as is.
10694 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10695
10696 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
10697 (SPLIT_CHARACTER_SEQ): This macro deleted.
10698 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
10699 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10700 and eight-bit-graphic.
10701 (char_to_string): Likewise. Signal an error for too large
10702 character code.
10703 (char_printable_p): Return 0 for 8-bit characters.
10704 (update_charset_table): Update iso_charset_table only when a final
10705 character is non-negative.
10706 (find_charset_in_text): Renamed from find_charset_in_str.
10707 Arguments and return value changed. Callers changed.
10708 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10709 be -1 if CHARSET is used only internally.
10710 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10711 eight-bit-graphic.
10712 (Fcharset_after): Simplified.
10713 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10714 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10715 (multibyte_chars_in_text): Simplified by assuming there's no
10716 invalid multibyte sequence.
10717 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10718 (str_as_unibyte): New functions.
10719 (Fstring): Simpified by assuming that byte combining never happens.
10720 (init_charset_once): Initialization for
10721 LEADING_CODE_8_BIT_CONTROL.
10722 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10723 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10724 eight-bit-control and eight-bit-graphic.
10725
10726 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10727 (CHARSET_8_BIT_GRAPHIC): New macros.
10728 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10729 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10730 (CHARSET_REVERSE_CHARSET): Likewise.
10731 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10732 eight-bit-graphic.
10733 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10734 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10735 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10736 encounter an invalid multibyte sequence.
10737 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10738 sequence is always valid.
10739 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
10740 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
10741 (CHAR_STRING): For 8-bit characters, call char_to_string.
10742 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10743 multibyte sequence is always valid.
10744 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
10745 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10746 (str_as_unibyte): Extern them.
10747 (BCOPY_SHORT): Fix a bug.
10748 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
10749 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10750 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10751 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10752
10753 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
10754 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
10755 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10756 (EMIT_BYTES): New macros.
10757 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10758 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
10759 macros deleted.
10760 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10761 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10762 check the validity of multibyte sequence.
10763 (decode_coding_emacs_mule): New function.
10764 (encode_coding_emacs_mule): New macro.
10765 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10766 the source.
10767 (DECODE_ISO_CHARACTER): Just return a character code.
10768 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10769 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10770 EMIT_CHAR to produced decoded characters. Exit the loop only by
10771 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10772 block here.
10773 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10774 only position codes for an invalid character.
10775 (encode_designation_at_bol): Return new destination pointer. 5th
10776 arg DSTP is changed to DST.
10777 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10778 from the source by ONE_MORE_CHAR. Don't handle the case of last
10779 block here.
10780 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10781 macros deleted.
10782 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10783 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
10784 TWO_MORE_BYTES to fetch a byte from the source.
10785 (encode_eol): Pay attention to coding->src_multibyte.
10786 (detect_coding, detect_eol): Preserve members src_multibyte and
10787 dst_multibyte.
10788 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10789 (encoding_buffer_size): Set magnification to 3 for all coding
10790 systems that require encoding.
10791 (ccl_coding_driver): For decoding, be sure that the result is
10792 valid multibyte sequence.
10793 (decode_coding): Initialize coding->errors and coding->result.
10794 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10795 and raw-text, always call decode_eol. Handle the case of last
10796 block here. If not coding->dst_multibyte, convert the resulting
10797 sequence to unibyte.
10798 (encode_coding): Initialize coding->errors and coding->result.
10799 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10800 and raw-text, always call encode_eol. Handle the case of last
10801 block here.
10802 (shrink_decoding_region, shrink_encoding_region): Detect cases
10803 that we can't skip data more rigidly.
10804 (code_convert_region): Setup src_multibyte and dst_multibyte
10805 members of coding. For decoding, if the buffer is multibyte,
10806 convert the source sequence to unibyte in advance. For encoding,
10807 if the buffer is multibyte, convert the resulting sequence to
10808 multibyte afterward.
10809 (run_pre_post_conversion_on_str): New function.
10810 (code_convert_string): Deleted and divided into the following two.
10811 (decode_coding_string, encode_coding_string): New functions.
10812 (code_convert_string1, code_convert_string_norecord): Call one of
10813 above.
10814 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10815 MAKE_NON_ASCII_CHAR.
10816 (Fset_terminal_coding_system_internal)
10817 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
10818 and dst_multibyte members.
10819 (init_coding_once): Initialize iso_code_class with new enum
10820 ISO_control_0 and ISO_control_1.
10821
10822 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10823 devided into ISO_control_0 and ISO_control_1.
10824 (struct coding_system): New members src_multibyte, dst_multibyte,
10825 errors, and result. Delete member fake_multibyte.
10826 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10827 nonzero.
10828 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10829 nonzero.
10830
10831 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10832 (Faset): Likewise.
10833
10834 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10835 multibyte form.
10836 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10837 combining occurs.
10838 (Ftranspose_region): Delete codes for handling byte combining.
10839
10840 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10841 dst_multibyte members of coding. On handling REPLACE on unibyte
10842 buffer, convert the result of decode_coding to unibyte. On
10843 inserting into a mutibyte buffer, always call code_convert_region.
10844 (e_write): Setup coding->src_multibyte according to the
10845 multibyteness of the source (buffer or string).
10846
10847 * fns.c (concat): Handle 8-bit characters correctly.
10848 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10849 unibyte in the result.
10850 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10851 valid multibyte form in the result.
10852 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10853 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10854 return -1, signal an error.
10855 (base64_encode_1): New arg MULTIBYTE. Get each character by
10856 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10857 character is found, return -1.
10858 (Fbase64_decode_region): Delete codes for handling byte-combining.
10859 Treat each decoded byte as a unibyte character.
10860 (Fbase64_decode_string): Return unibyte string.
10861 (Fcompare_strings, concat, string_byte_to_char): Use
10862 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10863 FETCH_STRING_CHAR_ADVANCE.
10864 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10865 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10866
10867 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10868 SPLIT_NON_ASCII_CHAR.
10869 (fontset_ref_via_base, fontset_set): Likewise
10870
10871 * insdel.c (adjust_markers_for_record_delete): Deleted.
10872 (adjust_markers_for_insert): Argument changed. Caller changed.
10873 (adjust_markers_for_replace): Likewise.
10874 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10875 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
10876 (copy_text): Delete unused local varialbe c_save. For converting
10877 to multibyte, be sure to make all 8-bit characters in valid
10878 multibyte form.
10879 (count_size_as_multibyte): Handle 8-bit characters correctly.
10880 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10881 (adjust_after_replace, replace_range, del_range_2)
10882 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
10883 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10884 (adjust_after_replace, replace_range, del_range_2) Delete codes for
10885 handling byte combining.
10886 (adjust_before_replace): Deleted.
10887
10888 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10889 SPLIT_NON_ASCII_CHAR.
10890 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10891 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10892 (Fkey_description): Likewise.
10893
10894 * lread.c (read1): On reading multibyte string, be sure to make
10895 all 8-bit chararacters in valid multibyte form.
10896 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10897
10898 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10899 unconditionally.
10900
10901 * process.c (Fstart_process): GCPRO current_dir before calling
10902 Ffind_operation_coding_system. Encode arguments here.
10903 (create_process): Don't encode arguments here. Setup
10904 src_multibyte and dst_multibyte members of struct coding.
10905 (read_process_output): Setup src_multibyte and dst_multibyte
10906 members of struct coding. If the output is to multibyte buffer,
10907 always decode the output of the process. Adjust the
10908 representation of 8-bit characters to the multibyteness of the output.
10909 (send_process): Setup coding->src_multibyte according to the
10910 multibyteness of the source.
10911
10912 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10913 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10914 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10915
10916 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
10917
10918 * w16select.c (Fw16_set_clipboard_data): Setup members
10919 src_multibyte and dst_multibyte of coding. Adjusted for the
10920 change for find_charset_in_str.
10921 (Fw16_get_clipboard_data): Likewise.
10922
10923 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10924 dst_multibyte of coding.
10925 (x_to_w32_font): Likewise.
10926
10927 * w32select.c (Fw32_set_clipboard_data): Setup members
10928 src_multibyte and dst_multibyte of coding. Adjusted for the
10929 change for find_charset_in_str.
10930 (Fw32_get_clipboard_data): Likewise.
10931
10932 * xdisp.c (get_next_display_element): Handle 8-bit characters
10933 correctly.
10934 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10935 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10936
10937 * xselect.c (selection_data_to_lisp_data): Setup members
10938 src_multibyte and dst_multibyte of coding. Adjusted for the
10939 change for find_charset_in_str.
10940 (lisp_data_to_selection_data): Likewise.
10941
10942 2000-05-19 Gerd Moellmann <gerd@gnu.org>
10943
10944 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
10945
10946 * dispextern.h (Vimage_types): Add extern declaration.
10947
10948 * xdisp.c (Vimage_types): Moved here from xfns.c.
10949 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10950
10951 * xfns.c (Vimages_types): Moved to xdisp.c.
10952 (syms_of_xfns): Move `image-types' to xdisp.c.
10953
10954 * w32fns.c (Vimage_types): Removed.
10955 (syms_of_w32fns): Remove `image-types'.
10956
10957 2000-05-18 Kenichi Handa <handa@etl.go.jp>
10958
10959 * fns.c (map_char_table): Pay attention to character number of
10960 charset. Check the validity of charset at the first level. For
10961 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10962 the default value.
10963
10964 * fontset.c: Include "buffer.h".
10965 (fs_load_font): If the face has fontset, record the face ID in
10966 that fontset.
10967 (Finternal_char_font): New function.
10968 (accumulate_font_info): New function.
10969 (Ffontset_info): Rewritten for the new fontset implementation.
10970 (syms_of_fontset): Register Vdefault_fontset in the first element
10971 of Vfontset_table. Include Vdefault_fontset in
10972 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10973 function.
10974
10975 2000-05-16 Dave Love <fx@gnu.org>
10976
10977 * m/iris5d.h: Deleted -- unused.
10978
10979 2000-05-16 Gerd Moellmann <gerd@gnu.org>
10980
10981 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10982 `invalid' instead of `illegal'.
10983
10984 * indent.c (Fmove_to_column): When ending within a tab, insert
10985 spaces first so that markers at the end of the tab get adjusted.
10986
10987 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10988 buffer list that wasn't selected in that frame.
10989
10990 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10991 is needed on mescaline, use a 2 char prefix, and call
10992 make_temp_name with second arg non-zero.
10993
10994 * fileio.c (make_temp_name): New function, extracted from
10995 Fmake_temp_name.
10996 (Fmake_temp_name): Use it.
10997
10998 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10999
11000 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
11001
11002 2000-05-15 Gerd Moellmann <gerd@gnu.org>
11003
11004 * Makefile.in (lisp): Add env.elc.
11005
11006 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11007
11008 2000-05-12 Gerd Moellmann <gerd@gnu.org>
11009
11010 * search.c (Freplace_match): Handle case of `\N' in the
11011 replacement when there's no group N.
11012
11013 2000-05-11 Gerd Moellmann <gerd@gnu.org>
11014
11015 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11016 of the message to message_dolog.
11017
11018 * keyboard.c (read_char): Don't clear current message for help
11019 events; let the code handling help events handle this. Change
11020 code detecting help events that should be ignored.
11021
11022 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11023 we're interating over a string.
11024
11025 2000-05-09 Dave Love <fx@gnu.org>
11026
11027 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11028 that offset before writing. Move gcpro region past call of
11029 Ffile_regular_p.
11030
11031 2000-05-04 Dave Love <fx@gnu.org>
11032
11033 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11034
11035 2000-05-04 Gerd Moellmann <gerd@gnu.org>
11036
11037 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11038 of inserted characters when BUF equals the current buffer, and PT
11039 is in front of or equal to FROM.
11040
11041 2000-05-03 Gerd Moellmann <gerd@gnu.org>
11042
11043 * xdisp.c (handle_single_display_prop): If display property value
11044 is invalid, or something not supported on the frame, restore
11045 iterator's position to what it was initially. Make sure to return
11046 0 for invalid and unsupported property values.
11047
11048 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11049 that x_per_char_metric returns null.
11050
11051 2000-05-02 Gerd Moellmann <gerd@gnu.org>
11052
11053 * xterm.h (struct face): Add forward declaration.
11054 (struct image): Ditto.
11055 (image_ascent): Add prototype.
11056
11057 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11058 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11059 image_ascent instead of using IMAGE_ASCENT.
11060
11061 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11062 (IMAGE_ASCENT): Removed.
11063
11064 * xfns.c (Qcenter): New variable.
11065 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11066 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11067 (image_ascent): New function.
11068 (lookup_image): Recognize `:ascent center'.
11069 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11070 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11071 (xbm_load): Don't set image's ascent here.
11072 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11073 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11074 check ascent values here.
11075 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11076 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11077 (syms_of_xfns): Initialize Qcenter.
11078
11079 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11080 to the limits, increase the limits.
11081
11082 2000-05-01 Kenichi Handa <handa@etl.go.jp>
11083
11084 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
11085 Check Vfont_encoding_alist against the full name of the opened font.
11086
11087 2000-04-28 Gerd Moellmann <gerd@gnu.org>
11088
11089 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11090 taller than the window.
11091
11092 2000-04-28 Kenichi Handa <handa@etl.go.jp>
11093
11094 * xfaces.c (realize_x_face): Fix the argument of the second
11095 xassert. BASE_FACE may not be a face for ASCII.
11096
11097 2000-04-27 Gerd Moellmann <gerd@gnu.org>
11098
11099 * print.c (print_object): Treat print-length < 0 as nil.
11100
11101 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11102
11103 * s/freebsd.h (TERMCAP_OBJ): Removed.
11104 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11105
11106 * lread.c (read1): Don't treat period followed by certain
11107 characters as symbol start.
11108
11109 * xfns.c (slurp_file): New function.
11110 (xbm_image_p): Handle case of in-memory XBM files.
11111 (xbm_scan): Rewritten to work on memory buffers instead of files.
11112 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11113 Work on memory buffers instead of files. If DATA is null test
11114 if buffer looks like an in-memory XBM file.
11115 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11116 memory buffers instead of files.
11117 (xbm_file_p): New function.
11118 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11119
11120 * lread.c (end_of_file_error): New function.
11121 (read1): Call it instead of signaling `end-of-file' directly.
11122
11123 * print.c (print_error_message): Print data of `end-of-file'
11124 with Fprinc instead of Fprin1.
11125
11126 2000-04-26 Ken Raeburn <raeburn@gnu.org>
11127
11128 * window.c (freeze_window_start): Check that minibuffer scroll
11129 window isn't nil before extracting the window structure pointer
11130 from it.
11131
11132 * undo.c (record_delete): If we hit the end of the undo list, stop
11133 picking elements apart.
11134
11135 2000-04-26 Gerd Moellmann <gerd@gnu.org>
11136
11137 * xdisp.c (display_line): If lines are continued, restore
11138 iterator's ascent/descent information to the values before the
11139 first glyph not fitting on the line.
11140
11141 2000-04-25 Gerd Moellmann <gerd@gnu.org>
11142
11143 * xdisp.c (try_window_id) <all changes above window start>: Adjust
11144 positions in glyph matrix. Don't compute new window end positions.
11145
11146 * dispnew.c (increment_matrix_positions): Renamed from
11147 increment_glyph_matrix_buffer_positions.
11148 (increment_row_positions): Renamed from
11149 increment_glyph_row_buffer_positions.
11150
11151 * dispextern.h: Change names of renamed functions from dispnew.c
11152 in prototypes.
11153
11154 2000-04-24 Gerd Moellmann <gerd@gnu.org>
11155
11156 * fileio.c (Fdo_auto_save): Create directories for auto-save
11157 list file if necessary.
11158
11159 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
11160 from buffer or frame.
11161 (automatic_hscrolling_p): New variable.
11162 (hscroll_windows): Scroll windows horizontally only if automatic
11163 hscrolling is allowed.
11164 (syms_of_xdisp): New variable `automatic-hscrolling'.
11165
11166 * frame.h (struct frame): Add member extra_line_spacing.
11167
11168 * xfns.c (x_set_line_spacing): New function.
11169 (Fx_create_frame): Set line spacing from resources.
11170 (Qline_spacing): New variable.
11171 (syms_of_xfns): Initialize Qline_spacing.
11172
11173 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
11174
11175 * buffer.c (init_buffer_once): Handle extra_line_spacing.
11176 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
11177 (reset_buffer): Don't initialize extra2 and extra3. Initialize
11178 extra_line_spacing from default value.
11179 (init_buffer_once): Initialize default value of extra_line_spacing.
11180
11181 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
11182 and extra3.
11183
11184 * xterm.c (x_produce_glyphs): Remove reference to struct it's
11185 prompt_width. Add extra line spacing.
11186
11187 * term.c (produce_glyphs): Remove reference to struct it's
11188 prompt_width.
11189
11190 * dispextern.h (struct it): Remove member prompt_width, add
11191 extra_line_spacing.
11192
11193 2000-04-22 Gerd Moellmann <gerd@gnu.org>
11194
11195 * dispnew.c (update_frame_line): When writing a whole line, make
11196 sure cursor is in the right row afterwards, otherwise a use of
11197 capability `ch' in cmgoto might leave the cursor in the row below.
11198
11199 2000-04-21 Gerd Moellmann <gerd@gnu.org>
11200
11201 * lisp.h (struct Lisp_Buffer_Cons): Remove.
11202
11203 * keyboard.c (timer_check): Fix typo in comment.
11204
11205 2000-04-21 Kenichi Handa <handa@etl.go.jp>
11206
11207 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
11208 name change: ch -> character.
11209
11210 2000-04-20 Gerd Moellmann <gerd@gnu.org>
11211
11212 * keyboard.c (echo_message_buffer): New variable.
11213 (echo_now): Set echo_message_buffer to the echo area buffer used
11214 to display the echo.
11215 (cancel_echoing): Reset echo_message_buffer to nil.
11216 (read_char): Code rewritten that handles canceling an echo or
11217 echoing a dash, respectively.
11218
11219 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
11220 directory doesn't exist.
11221
11222 2000-04-19 Dave Love <fx@gnu.org>
11223
11224 * fns.c (syms_of_fns): Defsubr mapc.
11225 (concat): Don't allow numeric args.
11226 (Fconcat): Doc change.
11227
11228 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
11229
11230 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11231 instead define end_match(1|2) more carefully.
11232 Use GET_CHAR_BEFORE_2 for `begline'.
11233
11234 2000-04-19 Gerd Moellmann <gerd@gnu.org>
11235
11236 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11237 on 64-bit systems where NULL is defined as `0'.
11238
11239 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11240 the `variable argument list' to make it work on Alpha.
11241
11242 * m/alpha.h (_LP64) [!_LP64]: Define.
11243 (ORDINARY_LINK): Define for NetBSD.
11244
11245 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
11246
11247 2000-04-19 Dave Love <fx@gnu.org>
11248
11249 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11250 change.
11251
11252 * Makefile.in (LIBS): Don't use.
11253 (GETLOADAVG_OBJ): Define again.
11254 (otherobj): Add GETLOADAVG_OBJ.
11255
11256 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11257
11258 2000-04-18 Gerd Moellmann <gerd@gnu.org>
11259
11260 * lread.c (read_filtered_event): Cancel and start busy cursor.
11261
11262 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
11263 that the per-character metrics may be null.
11264
11265 2000-04-17 Gerd Moellmann <gerd@gnu.org>
11266
11267 * buffer.c (clone_per_buffer_values): New function.
11268 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11269 clone_per_buffer_values if CLONE is not nil.
11270
11271 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11272
11273 2000-04-16 Dave Love <fx@gnu.org>
11274
11275 * Makefile.in: Remove obsolete localcpp stuff.
11276 (GETLOADAVG_OBJ): Don't define.
11277 (obj): Move LIBOBJS...
11278 (otherobj): ... to here.
11279 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11280 whitespace-only lines after the continuation (Irix).
11281
11282 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11283
11284 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11285
11286 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11287
11288 2000-04-14 Dave Love <fx@gnu.org>
11289
11290 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11291 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11292 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11293 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11294 NLIST_STRUCT.
11295
11296 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11297 autoconfiscated HAVE_GETLOADAVG.
11298
11299 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11300 BROKEN_MKTIME.
11301
11302 2000-04-14 Gerd Moellmann <gerd@gnu.org>
11303
11304 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
11305 (fill_in_lock_file_name): Avoid existing files that aren't links.
11306
11307 2000-04-14 Dave Love <fx@gnu.org>
11308
11309 * Makefile.in (LIBS, LIBOBJS): New variable.
11310 (INTERVAL_SRC): Convert to make variable.
11311 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11312 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11313 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11314 add LIBOBJS.
11315 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11316 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11317 (shortlisp): Add facemenu, float-sup, frame.
11318 (SOME_MACHINE_LISP): Remove them from here.
11319 (LIBES): Change unused LDLIBS to autoconf LIBS.
11320
11321 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11322
11323 2000-04-14 Kenichi Handa <handa@etl.go.jp>
11324
11325 * composite.c (update_compositions): If FROM and TO are not in a
11326 valid range, do nothing.
11327
11328 2000-04-13 Gerd Moellmann <gerd@gnu.org>
11329
11330 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
11331
11332 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
11333
11334 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11335 as TERMCAP_OBJ.
11336
11337 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11338
11339 * fileio.c (a_write): Remove redundant semi-colons.
11340 (e_write): Return -1 if failed to write all the data.
11341 This fixes the changes made at 1999-12-15.
11342
11343 2000-04-12 Dave Love <fx@gnu.org>
11344
11345 * fns.c (mapcar1): Test for null vals to support mapc.
11346 (Fmapc): New function.
11347
11348 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11349
11350 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11351 (IT_frame_up_to_date): Support the buffer local value of
11352 cursor-type, if defined.
11353
11354 2000-04-10 Dave Love <fx@gnu.org>
11355
11356 * editfns.c (preceding-char, following-char): Doc fix.
11357
11358 2000-04-10 Ken Raeburn <raeburn@gnu.org>
11359
11360 * Makefile.in (temacs): Revert 2000-03-12 change.
11361
11362 2000-04-10 Jason Rumney <jasonr@gnu.org>
11363
11364 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11365
11366 2000-04-10 Gerd Moellmann <gerd@gnu.org>
11367
11368 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11369 area buffer, if it's not set up yet.
11370
11371 * indent.c (compute_motion): Set immediate_quit.
11372
11373 2000-04-09 Gerd Moellmann <gerd@gnu.org>
11374
11375 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
11376 (realize_tty_face): Suppress boldness if colors are the inverse of
11377 the default colors, and tty_suppress_bold_inverse_default_colors_p
11378 is set.
11379 (Ftty_suppress_bold_inverse_default_colors): New function.
11380 (syms_of_xfaces): Defsubr it.
11381
11382 * buffer.c (Frestore_buffer_modified_p): New function.
11383 (syms_of_buffer): Defsubr it.
11384
11385 2000-04-08 Ken Raeburn <raeburn@gnu.org>
11386
11387 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11388 charset id (int) argument, not a charset (Lisp_Object).
11389
11390 * coding.h (code_convert_string): Declare.
11391 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11392 object, as the fourth argument to code_convert_string.
11393
11394 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
11395 (Fset_fontset_font): Use EQ to compare lisp objects.
11396
11397 2000-04-05 Ken Raeburn <raeburn@gnu.org>
11398
11399 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11400 a pointer that looks like a lisp object.
11401 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11402 zero, instead see whether it's an integer object, since they can't
11403 have intervals.
11404 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11405
11406 * dispnew.c (allocate_matrices_for_frame_redisplay)
11407 (direct_output_forward_char): Use X(U)INT and make_number as needed
11408 to convert between (unsigned) int values and lisp integers.
11409 * keyboard.c (read_key_sequence): Likewise.
11410 * lread.c (substitute_object_recurse): Likewise.
11411 * fns.c (concat, hash_lookup, hash_remove): Likewise.
11412 * minibuf.c (do_completion, Fminibuffer_complete_word)
11413 (Fminibuffer_completion_help): Likewise.
11414 * term.c (produce_special_glyphs): Likewise.
11415
11416 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11417 * print.c (print_preprocess, print_object): Likewise.
11418
11419 * search.c (compile_pattern): Use NILP when checking for nil.
11420
11421 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11422 __OPTIMIZE__]: Provide a GNU C macro version that handles
11423 lisp-object unions.
11424 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11425 field, to better cope with ENABLE_CHECKING and calls that modify a
11426 Lisp_Object using its old value.
11427
11428 2000-04-04 Gerd Moellmann <gerd@gnu.org>
11429
11430 * window.c (compare_window_configurations): Signal an error
11431 if parameters C1 or C2 aren't window configurations.
11432
11433 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11434 AFTER_POTENTIAL_GC calls around calls to functions that can
11435 signal an error and thus invoke the debugger.
11436
11437 2000-04-03 Gerd Moellmann <gerd@gnu.org>
11438
11439 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11440 an error if decoding fails.
11441
11442 * keyboard.c (lispy_mouse_names): Variable removed.
11443 (Vlispy_mouse_stem): New variable.
11444 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11445 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11446 for any mouse button number. Increase size of mouse_syms and
11447 button_down_location as needed. Call modify_event_symbol with
11448 different arguments.
11449 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11450 Call modify_event_symbol with different arguments.
11451 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11452 for any button number. Call modify_event_symbol with different
11453 arguments.
11454 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11455 Accept a string for NAME_ALIST_OR_STEM.
11456
11457 * lisp.h (larger_vector): Add prototype.
11458
11459 * fns.c (larger_vector): Make externally visible.
11460
11461 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11462
11463 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11464
11465 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11466 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11467 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11468 we are between str1 and str2.
11469 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11470 (PATFETCH): Use `TRANSLATE'.
11471 (PATFETCH_RAW): Fetch multibyte char if applicable.
11472 (PATUNFETCH): Remove.
11473 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11474 When writing a char, write it directly into the pattern buffer rather
11475 than going needlessly through a temp char-array.
11476 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11477 multibyte magic and remove the useless `#ifdef emacs'.
11478 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11479 buffer.
11480
11481 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11482 conditional on `emacs'.
11483
11484 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11485
11486 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11487
11488 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11489 non-union-type versions of XMARK and friends here, because XMARK
11490 and friends won't work on an integer field if NO_UNION_TYPE is not
11491 defined.
11492 (make_number): Define as a function if it's not defined as a macro.
11493
11494 * composite.c (run_composite_function): Use NILP when checking for nil.
11495 (syms_of_composite): Delete local var NARGS, pass an int as first
11496 argument to Fmake_hash_table.
11497
11498 * editfns.c (text_property_stickiness): Use NILP to test
11499 Lisp_Object boolean value.
11500 (Fmessage_or_box): Don't use NILP to test int variable.
11501 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11502 problems reading from and changing the same lisp value in an
11503 XSETSTRING call.
11504
11505 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11506
11507 * term.c (TN_no_color_video): New variable.
11508 (term_init): Intitialize TN_no_color_video.
11509 (enum no_color_bit): New enumeration.
11510 (MAY_USE_WITH_COLORS_P): New macro.
11511 (turn_on_face): Use it to determine if attributes may be used
11512 combined with colors.
11513
11514 2000-04-01 Ken Raeburn <raeburn@gnu.org>
11515
11516 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
11517 with int lvalues via casts; instead, just yield lisp object lvalues.
11518 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11519 proper accessor macros.
11520 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11521 (grow_mini_window): Fix typo getting int value of root->height.
11522
11523 * xdisp.c (compute_string_pos): Fix order of arguments to
11524 string_pos_nchars_ahead.
11525 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11526 count arg to variable-arg routines like Frun_hook_with_args and
11527 Fformat.
11528 (back_to_previous_visible_line_start)
11529 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
11530 fixed-arg routines like Fget_char_property and Fmake_string.
11531 (reconsider_clip_changes): Use XINT when comparing integer lisp
11532 objects, or passing them as int arguments.
11533 (mark_window_display_accurate, insert_left_trunc_glyphs)
11534 (append_space, extend_face_to_end_of_line): Use make_number when
11535 storing or passing integer values as lisp objects.
11536 (set_cursor_from_row, highlight_trailing_whitespace): Use
11537 INTEGERP, not implicit test against zero, for glyph object.
11538 (try_window_id): Don't use make_number when we want an int value.
11539
11540 * xfaces.c (xlfd_symbolic_value): Make last argument a
11541 Lisp_Object, to be consistent with callers.
11542 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11543 (lface_hash): Apply XFASTINT to lisp values before folding in.
11544
11545 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11546 fill in window width and height. Pass an int, not a lisp object,
11547 as first arg to Finsert.
11548
11549 2000-04-01 Gerd Moellmann <gerd@gnu.org>
11550
11551 * xfaces.c (realize_basic_faces): Block input while realizing
11552 the faces.
11553
11554 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11555
11556 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11557
11558 2000-03-31 Gerd Moellmann <gerd@gnu.org>
11559
11560 * xterm.c (x_produce_glyphs): When displaying unibyte text
11561 or ASCII, handle case that per-char metric is null.
11562
11563 2000-03-30 Ken Raeburn <raeburn@gnu.org>
11564
11565 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11566
11567 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11568 (XSUBR, XBUFFER): Verify correct object type before returning
11569 pointer, using eassert.
11570 * frame.h (XFRAME): Likewise.
11571
11572 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11573 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11574 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
11575 * data.c (set_internal): Likewise.
11576 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11577 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
11578 * fileio.c (auto_save_1): Likewise.
11579 * insdel.c (check_markers): Likewise.
11580 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11581 * undo.c (record_insert): Likewise.
11582 * vmsproc.c (child_sig): Likewise.
11583 * window.c (unshow_buffer, window_loop): Likewise.
11584 * xterm.c (x_erase_phys_cursor): Likewise.
11585
11586 2000-03-30 Gerd Moellmann <gerd@gnu.org>
11587
11588 * xfns.c (free_image_cache): Free the cache structure itself
11589 last, after all its members have been freed.
11590
11591 * lisp.h (xstrdup): Add prototype.
11592
11593 * alloc.c (xstrdup): Moved here from xfaces.c.
11594 (allocating_for_lisp): Variable removed.
11595 (lisp_malloc): Block input around the calls to malloc and mem_insert.
11596
11597 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11598 of Fsymbol_value.
11599 (xstrdup): Moved to alloc.c.
11600
11601 2000-03-29 Ken Raeburn <raeburn@gnu.org>
11602
11603 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11604
11605 * emacs.c (main): Fix sense of no-loadup test.
11606
11607 * config.in (ENABLE_CHECKING): Undef.
11608
11609 * lisp.h (struct interval): Replace "parent" field with a union of
11610 interval pointer and Lisp_Object; add new bitfield to use as
11611 discriminant. Change other flag fields to bitfields.
11612 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
11613 is defined and the supplied test fails, print a message and abort.
11614 (eassert): New macro. Use CHECK to provide an assert-like facility.
11615
11616 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11617 pointers; abort if the value looks like a lisp object.
11618 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11619 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
11620 Modify for new interval parent definition.
11621
11622 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11623 (UNMARK_BALANCE_INTERVALS): Update references that need an
11624 addressable lisp object in the interval structure.
11625 (die): New function.
11626 (suppress_checking): New variable.
11627
11628 * intervals.c (interval_start_pos): Just return 0 if there's no
11629 parent object.
11630
11631 2000-03-29 Gerd Moellmann <gerd@gnu.org>
11632
11633 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11634 and earlier Emacs versions.
11635
11636 * keyboard.c (Ftop_level): Cancel busy-cursor.
11637
11638 * eval.c (call_debugger): Cancel busy-cursor.
11639
11640 2000-03-29 Kenichi Handa <handa@etl.go.jp>
11641
11642 * search.c (Freplace_match): Adjust multibyteness of the current
11643 buffer and NEWTEXT. Free allocated memory before signaling an error.
11644
11645 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11646
11647 * regex.c (analyse_first): New function obtained by ripping out most
11648 of re_compile_fastmap and generalizing it a little bit so that it
11649 can also just return whether a given (sub)pattern can match the empty
11650 string or not.
11651 (regex_compile): Use `analyse_first' to decide whether the loop-check
11652 needs to be done or not for *, +, *? and +? (the loop check is costly
11653 for non-greedy repetition).
11654 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11655
11656 2000-03-28 Dave Love <fx@gnu.org>
11657
11658 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
11659
11660 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11661
11662 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11663
11664 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11665 an expression.
11666 (enum re_opcode_t): Update description of succeed_n.
11667 (PATFETCH): Always define.
11668 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11669 operators, char classes, shy-groups and intervals).
11670 Optimize special cases of intervals so as to only use succeed_n and
11671 jump_n when really needed.
11672 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11673 that we don't have to handle the special cases any more.
11674 Simplify on_failure_jump handling as well.
11675
11676 2000-03-28 Jason Rumney <jasonr@gnu.org>
11677
11678 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11679
11680 2000-03-27 Gerd Moellmann <gerd@gnu.org>
11681
11682 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11683
11684 * s/msdos.h (GC_SETJMP_WORKS): Define.
11685
11686 * alloc.c (mark_maybe_object): New function.
11687 (mark_memory): Use it.
11688 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11689 (setjmp_tested_p, longjmp_done): New variables.
11690 (test_setjmp): New function.
11691 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11692 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11693
11694 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11695 to DEC_TEXT_POS and INC_TEXT_POS.
11696
11697 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11698 with parameter MULTIBYTE_P.
11699
11700 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
11701
11702 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
11703 buffers because it looks for multibyte character byte sequences
11704 which don't exist in unibyte text.
11705
11706 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11707
11708 * xfaces.c (register_color, unregister_color, unregister_colors)
11709 [DEBUG_X_COLORS]: New functions.
11710 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11711
11712 * xfns.c (x_set_cursor_color): Get color reference counts right.
11713
11714 * xterm.c (x_copy_color): New function.
11715 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11716
11717 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11718 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11719 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11720 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11721 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11722 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11723 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11724 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11725 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11726 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11727
11728 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11729 names for handling per-buffer variables.
11730
11731 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11732 instead of MAX_BUFFER_LOCAL_VARS.
11733 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11734
11735 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11736
11737 * xfns.c (x_specified_cursor_type): New function.
11738 (x_set_cursor_type): Use it.
11739
11740 * buffer.h (struct buffer): Add cursor_type.
11741
11742 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11743
11744 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
11745 (print_partial_compiled_pattern, re_compile_fastmap):
11746 Handle new opcode.
11747 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11748 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11749 executing it as well as when popping it off the stack to find infinite
11750 loops in non-greedy repetition operators.
11751
11752 2000-03-26 Gerd Moellmann <gerd@gnu.org>
11753
11754 * doc.c (Qfunction_documentation): New variable.
11755 (syms_of_doc): Initialize Qfunction_documentation.
11756 (Fdocumentation): If FUNCTION is a symbol with non-nil
11757 `function-documentation' property, return a documentation derived
11758 from that.
11759
11760 * buffer.c (syms_of_buffer): Add default-cursor-type.
11761 (init_buffer_once): Don't let cursor_type have a local value
11762 in every buffer.
11763
11764 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11765 on buffer-local value of cursor_type.
11766 (x_draw_bar_cursor): Add parameter WIDTH.
11767
11768 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11769 (init_buffer_once): Set default cursor_type value to t.
11770 Mark cursor_type as local everywhere.
11771 (syms_of_buffer): New per-buffer variable cursor-type.
11772
11773 * buffer.h (struct buffer): Remove member local_var_flags,
11774 add local_flags.
11775 (MAX_BUFFER_LOCAL_VARS): New macro.
11776 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11777 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11778 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11779 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11780
11781 * print.c (print_object): Use new macros for per-buffer variables.
11782
11783 * category.c (Fset_category_table): Use new macros for per-buffer
11784 variables.
11785
11786 * buffer.c (buffer_permanent_local_flags): Make a char array.
11787 (max_buffer_local_idx): New variable.
11788 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11789 for new handling of per-buffer variables.
11790 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11791 (init_buffer_once): Initialize per-buffer vars differently.
11792 Set max_buffer_local_idx.
11793
11794 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11795 variables.
11796
11797 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
11798
11799 * data.c (do_symval_forwarding, store_symval_forwarding)
11800 (find_symbol_value, set_internal, default_value, Fset_default)
11801 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11802 per-buffer variables.
11803
11804 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11805
11806 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11807
11808 * xterm.c (x_term_init): Unblock input around call1 of
11809 Qvendor_specific_keysyms.
11810
11811 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11812 (find_defun_start): Consider an open parenthesis in column 0
11813 a defun start only if open_paren_in_column_0_is_defun_start is set.
11814 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11815
11816 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11817
11818 * eval.c (Fautoload): Add entry in load-history (if after dump).
11819 * lread.c (load-history): Update docstring.
11820
11821 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11822
11823 * indent.c (Fvertical_motion): Always use the current buffer.
11824 Temporarily change the window's buffer, if necessary.
11825
11826 2000-03-23 Gerd Moellmann <gerd@gnu.org>
11827
11828 * xterm.c (fast_find_position): Make sure not to consider rows
11829 not visible in the window.
11830
11831 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11832
11833 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11834 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11835
11836 2000-03-22 Jason Rumney <jasonr@gnu.org>
11837
11838 * w32menu.c (single_submenu): Set help string to NULL if none.
11839 (w32_menu_show): Set help string correctly.
11840 (add-menu-item): Set help string in MIIM_DATA for menu item.
11841 Load SetMenuItemInfoA explicitly.
11842 (w32_menu_display_help): New function.
11843
11844 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11845 (QCdata): Moved to xdisp.c.
11846
11847 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11848 (Vw32_charset_to_codepage_alist): Removed.
11849 (Vw32_charset_info_alist): New variable.
11850 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11851 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11852 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
11853 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11854 with TODO comment.
11855 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11856 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11857 Define Vw32_charset_info_alist and w32_charset symbols.
11858
11859 2000-03-22 Jason Rumney <jasonr@gnu.org>
11860
11861 * makefile.nt (w32bdf.obj): Update dependencies.
11862
11863 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11864
11865 * w32fns.c: Include fontset.h after dispextern.h.
11866 (Fx_create_frame): Do not create fontset.
11867 (w32_load_system_font): Doc fix.
11868 (Fx_close_connection): Free full_name if it is not shared.
11869
11870 * w32term.c: Include fontset.h after dispextern.h.
11871 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11872 Callers updated.
11873 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11874 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11875 (w32_font_is_double_byte): New function, needs body.
11876 (x_append_glyph): Set glyph->glyph_not_available_p.
11877 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11878 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11879 character, convert it to a unibyte character.
11880 (struct glyph_string): Delete member `charset'.
11881 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11882 calculating it is found.
11883 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11884 the case that per char metric is not available correctly.
11885 (x_fill_glyph_string): Handle the case that the specific glyph is
11886 not available correctly.
11887 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11888 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11889 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11890 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11891 fontset. Don't call FS_LOAD_FONT.
11892
11893 2000-03-22 Ken Raeburn <raeburn@gnu.org>
11894
11895 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11896 (INT_LISPLIKE): New macro.
11897 (NULL_INTERVAL_P): Use it.
11898 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11899 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11900 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
11901
11902 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11903 explicit references to "parent" field of struct interval and
11904 associated unclean type conversions.
11905 * intervals.c (create_root_interval, root_interval, rotate_right)
11906 (rotate_left, balance_possible_root_interval, split_interval_right)
11907 (split_interval_left, interval_start_pos, find_interval)
11908 (next_interval, previous_interval, update_interval)
11909 (adjust_intervals_for_insertion, delete_node, delete_interval)
11910 (adjust_intervals_for_deletion, merge_interval_right)
11911 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11912 (copy_intervals_to_string): Likewise.
11913 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11914 Likewise.
11915 * syntax.c (update_syntax_table): Likewise.
11916
11917 * intervals.c (reproduce_tree_obj): New function, like
11918 reproduce_tree but takes a Lisp_Object for the parent. Declare
11919 with prototype.
11920 (graft_intervals_into_buffer): Use it when appropriate.
11921 (reproduce_tree): Declare with prototype.
11922 (balance_possible_root_interval): Check that the parent is a lisp
11923 object before trying to examine its type.
11924
11925 2000-03-22 Gerd Moellmann <gerd@gnu.org>
11926
11927 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11928 as strings only if both are known to be strings.
11929
11930 * s/openbsd.h (LIBS_TERMCAP): Undef.
11931
11932 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11933
11934 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11935 definitions for non-Emacs compilation.
11936 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11937 outside of `#ifdef emacs'.
11938 (print_partial_compiled_pattern): Update.
11939 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11940 (re_compile_fastmap): Merge handling of charset and charset_not (for
11941 emacs and non-emacs compilation as well).
11942 Similarly for (not)categoryspec and (not)syntaxspec.
11943 Don't use the fastmap when reaching `anychar' since the added
11944 complexity is not justified.
11945 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11946 and (not)syntaxspec. Merge (not)categoryspec.
11947
11948 2000-03-22 Kenichi Handa <handa@etl.go.jp>
11949
11950 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11951 (FACE_FOR_CHAR): Define them differently for the configuration of
11952 --without-x.
11953
11954 2000-03-21 Dave Love <fx@gnu.org>
11955
11956 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11957 doc string.
11958
11959 2000-03-21 Gerd Moellmann <gerd@gnu.org>
11960
11961 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11962 (lface_fully_specified_p): Don't check contents of
11963 LFACE_FONT_INDEX because that attribute is optional.
11964 (realize_x_face): Remove now unwarranted xassert.
11965
11966 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
11967
11968 The following changes are to make font selection based on
11969 characters, not charset. In addition, they recover fontset
11970 facilities while utilizing the new font selection mechanism.
11971
11972 * Makefile.in (fontset.o): Depend on dispextern.h.
11973
11974 * alloc.c (mark_face_cache): Don't mark face->registry.
11975
11976 * dispextern.h (struct glyph): New member glyph_not_available_p.
11977 Use 22 bits for face_id.
11978 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11979 (struct face): Delete member registry, new member ascii_face.
11980 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11981 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11982 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
11983 (struct it): Delete member charset, new member glyph_not_available_p.
11984
11985 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11986 (struct fontset_info, struct fontset_data): Structs removed.
11987 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11988 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
11989 (fs_load_font, fs_query_fontset): Adjusted for new argument.
11990 (fs_free_face_fontset, fontset_font_pattern)
11991 (face_suitable_for_char_p, face_for_char)
11992 (make_fontset_for_ascii_face): Extern them.
11993 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11994 (FS_LOAD_FACE_FONT): New macro.
11995
11996 * fontset.c: All codes rewritten or adjusted for the change of
11997 fontset implementation. Now fontset is represented by char table.
11998 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11999 Variables removed.
12000 (my_strcasecmp): Function removed.
12001 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
12002 (AREF, ASIZE): New macros.
12003 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12004 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12005 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12006 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12007 (fontset_id_valid_p, font_family_registry, fontset_name)
12008 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12009 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
12010 New functions.
12011 (fs_load_font): New arg FACE. Caller changed.
12012 (fs_query_fontset): Argument changed. Caller changed.
12013 (Fquery_fontset): call fs_query_fontset.
12014 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12015 Functions removed.
12016 (clear_fontset_elements, check_registry_encoding)
12017 (check_fontset_name): New functions.
12018 (syms_of_fontset): Set char-table-extra-slots property of fontset
12019 to 3. Staticpro and initialize Vfontset_table and
12020 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12021
12022 * frame.h (struct frame): Member `fontset_data' removed.
12023 (FRAME_FONTSET_DATA): Macro removed.
12024
12025 * frame.c (make_frame): Don't allocate f->fontset_data.
12026 (Fdelete_frame): Don't free f->fontset_data.
12027
12028 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12029
12030 * xdisp.c (charset_at_position): Function removed.
12031 (init_iterator): Don't set member charset of struct `it'.
12032 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12033 (next_element_from_display_vector, insert_left_trunc_glyphs):
12034 Likewise.
12035 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12036 FACE_FOR_CHARSET.
12037 (get_next_display_element, append_space)
12038 (extend_face_to_end_of_line): Likewise.
12039
12040 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12041 Variables removed.
12042 (clear_font_table, frame_update_line_height, load_face_font):
12043 Adjusted for the change of fontset implementation.
12044 (load_face_fontset_font): Function removed.
12045 (pixel_point_size): New function.
12046 (font_list): Argument type changed. Caller changed.
12047 (LFACE_FONT): New macro.
12048 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12049 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12050 Lisp_Object. Determine the font name by actually loading a font
12051 by the specified pattern. Set LFACE_FONT (lface) to the specified
12052 pattern. Even if a font is not found, don't try alternatives.
12053 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12054 (set_font_frame_param): If `font' is specified in lface, use it.
12055 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12056 (lface_same_font_attributes_p): Likewise.
12057 (make_realized_face): Arguent changed. Caller changed. Set
12058 face->ascii_face to face itself.
12059 (free_realized_face): Free face->fontset if face is for ASCII.
12060 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12061 (deduce_unibyte_registry, x_charset_registry): Functions removed.
12062 (free_realized_multibyte_face): New function.
12063 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12064 changed. Caller changed.
12065 (try_font_list): Argument type changed.
12066 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12067 (choose_face_font): Argument changed. Handle fontset properly.
12068 (choose_face_fontset_font): Function removed.
12069 (realize_default_face, realize_named_face): Don't remove the
12070 former face here.
12071 (realize_face): Argument changed. Caller changed. Remove face
12072 with the arg former_face_id in advance. Load font for the new face.
12073 (realize_x_face): Argument changed. Caller changed. For a
12074 multibyte character, share fontset with base_face. For a single
12075 byte character, make a new realized fontset. Don't load a font here.
12076 (realize_tty_face): Argument changed. Caller changed.
12077 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12078 (face_at_buffer_position): Don't check multibyte_p for returning
12079 DEFAULT_FACE_ID.
12080 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12081 FACE_SUITABLE_FOR_CHARSET_P.
12082 (syms_of_xfaces): Remove code for Qx_charset_registry and
12083 Vface_default_registry.
12084
12085 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12086 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
12087 (x_per_char_metric): Don't try FONT->default_char. Even if
12088 pcm->width is zero, glyph bits may exist.
12089 (x_encode_char): Always initialize char2b->byte1.
12090 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
12091 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
12092 (x_append_glyph): Set glyph->glyph_not_available_p.
12093 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12094 it->charset. Handle the case that per char metric is not
12095 available. If it->multibyte_p is zero and it->c is a multibyte
12096 character, convert it to a unibyte character.
12097 (struct glyph_string): Delete member `charset'.
12098 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12099 the case that per char metric is not available correctly.
12100 (x_fill_glyph_string): Handle the case that the specific glyph is
12101 not available correctly.
12102 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12103 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12104 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12105 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12106 fontset. Don't call FS_LOAD_FONT.
12107
12108 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12109 (x_create_tip_frame): Likewise.
12110 (Fx_close_connection): Free full_name of font_info.
12111
12112 * fns.c (optimize_sub_char_table): New function.
12113 (Foptimize_char_table): New function.
12114 (syms_of_fns): Defsubr Soptimize_char_table.
12115
12116 2000-03-20 Gerd Moellmann <gerd@gnu.org>
12117
12118 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12119 only if buffer is displayed in some window.
12120
12121 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12122 (try_window_reusing_current_matrix): Don't call scroll run
12123 function if run's current and desired position are the same;
12124 this prevents cursor flickering.
12125
12126 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12127
12128 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12129
12130 * regex.c (RE_STRING_CHAR): New macro.
12131 (GET_CHAR_AFER_2): Remove.
12132 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12133 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12134 (print_partial_compiled_pattern, re_compile_fastmap)
12135 (re_match_2_internal): Remove on_failure_jump_exclusive.
12136 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12137 optimization only need to work for * (ie. can use of_keep_string_jump).
12138 Remove the special case for .*\n since it is now covered by the general
12139 optimization.
12140 (re_search_2): Don't bother with `room'.
12141 (skip_one_char): New function.
12142 (skip_noops): Simplify since `memory' is not needed any more.
12143 (mutually_exclusive_p): Restructure slightly to use `switch' and
12144 add handling for "all" remaining cases.
12145 (re_match_2_internal): Change on_failure_jump_smart to use
12146 on_failure_keep_string_jump (and redirect the end-of-loop jump)
12147 rather than on_failure_jump_exclusive.
12148
12149 2000-03-19 Gerd Moellmann <gerd@gnu.org>
12150
12151 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
12152 number of bits per RGB because it's everywhere used as the depth
12153 of the visual.
12154
12155 * term.c (calculate_costs): Remove code dealing with X frames.
12156
12157 2000-03-19 Richard M. Stallman <rms@gnu.org>
12158
12159 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
12160
12161 2000-03-18 Gerd Moellmann <gerd@gnu.org>
12162
12163 * lread.c (read_integer): Unread the last char not consumed.
12164
12165 2000-03-17 Gerd Moellmann <gerd@gnu.org>
12166
12167 * xterm.c (x_update_window_cursor): Don't update in frames
12168 which are in the process of being deleted.
12169
12170 2000-03-16 Gerd Moellmann <gerd@gnu.org>
12171
12172 * Makefile.in (mostlyclean): Add `*.core'.
12173 (clean): Add `bootstrap-emacs'.
12174
12175 * lread.c (read_integer): New function.
12176 (read1): Support read syntax #o, #x, #b, #r.
12177
12178 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
12179
12180 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
12181 make sure POINTER_TO_OFFSET gives the same value before and after
12182 PREFETCH. Use `dfail' to guarantee "atomic" matching.
12183 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
12184 (debug): Now only active if > 0 rather than if != 0.
12185 (DEBUG_*): Update for the new meaning of `debug'.
12186 (print_partial_compiled_pattern): Add missing `succeed' case. Use
12187 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
12188 in `succeed_n', `jump_n' and `set_number_at'.
12189 (store_op1, store_op2, insert_op1, insert_op2)
12190 (at_begline_loc_p, at_endline_loc_p): Add prototype.
12191 (group_in_compile_stack): Move to after its arg's types are
12192 declared and add a prototype.
12193 (PATFETCH): Define in terms of PATFETCH_RAW.
12194 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
12195 (QUIT): Redefine as a nop except for NTemacs.
12196 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
12197 indentation of the greedy-op and shy-group code.
12198 (at_(beg|end)line_loc_p): Fix argument's types.
12199 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
12200 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
12201 (MATCHING_IN_FIRST_STRING): Remove.
12202 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
12203 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
12204 QUIT unconditionally.
12205
12206 2000-03-15 Gerd Moellmann <gerd@gnu.org>
12207
12208 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
12209 a sole completion.
12210
12211 * process.c (send_process): Add a hint that the function
12212 can call Lisp code to its comment.
12213
12214 * lread.c (load_dangerous_libraries): New variable.
12215 (Vbytecomp_version_regexp): New variable.
12216 (safe_to_load_p): New function.
12217 (Fload): Handle files not compiled with Emacs specially.
12218 (syms_of_lread): New Lisp variable load-dangerous-libraries.
12219
12220 2000-03-14 Gerd Moellmann <gerd@gnu.org>
12221
12222 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
12223
12224 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
12225 support functions only if HAVE_X11R6_XIM is defined.
12226 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
12227
12228 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
12229
12230 * xfns.c (X_I18N_INHIBITED): Don't define.
12231 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
12232 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12233
12234 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12235 (HAVE_X11R6_XIM): Define.
12236
12237 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12238
12239 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12240 If set, call XSynchronize.
12241
12242 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12243
12244 * regex.c: Declare a new type `re_char' used throughout the code
12245 for the string char type. It's `const unsigned char' to match the
12246 rest of Emacs. Consistently make sure all pointers to strings use
12247 it and make sure all pointers into the pattern use `unsigned char'.
12248 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
12249 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12250 code duplication.
12251
12252 * charset.h (GET_CHAR_AFTER_2): Remove.
12253 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12254
12255 2000-03-12 Ken Raeburn <raeburn@gnu.org>
12256
12257 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12258 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12259 of them try to use backquotes.
12260
12261 2000-03-12 Dave Love <fx@gnu.org>
12262
12263 * unexelf.c: Restore changes of 1999-10-19.
12264 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12265 fix its type and alignment; copy it from current process.
12266
12267 2000-03-12 Gerd Moellmann <gerd@gnu.org>
12268
12269 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12270 has been found. Fix bug not computing timer's predecessor.
12271
12272 * fileio.c (Fread_file_name): Handle case that DIR contains a
12273 file name.
12274
12275 * window.c (Fsave_window_excursion): Doc fix.
12276
12277 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
12278
12279 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12280
12281 * msdos.c (vga_installed): New function, code moved from
12282 dos_set_window_size.
12283 (Qbar, Qcursor_type, outside_cursor): New variables.
12284 (syms_of_msdos): Intern and staticpro them.
12285 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12286 shape used outside Emacs when called for the first time.
12287 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12288 cursor shape used outside Emacs.
12289 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12290 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12291 type has changed.
12292 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12293 parameters specify the cursor. Make qreverse a global
12294 variable (renamed to Qreverse).
12295
12296 2000-03-09 Gerd Moellmann <gerd@gnu.org>
12297
12298 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12299
12300 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12301
12302 This is a big redesign of failure-stack and register handling, prompted
12303 by bugs revealed when trying to add shy-groups. Overall, what happened
12304 is that loops are now structured a little differently, groups can be
12305 shy and the code is a little simpler.
12306
12307 * regex.h: Update the copyright.
12308 (RE_SHY_GROUPS): New value.
12309 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12310 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12311
12312 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12313 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12314 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12315 for (start|stop)_memory since they now only take one argument (the
12316 second has becomes unnecessary).
12317 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
12318 (print_compiled_pattern): Use %ld to printf long ints and flush to
12319 make debugging a little easier.
12320 (union fail_stack_elt): Make the integer unsigned.
12321 (struct fail_stack_type): Add a `frame' element.
12322 (INIT_FAIL_STACK): Init `frame' as well.
12323 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12324 (DEBUG_PUSH, DEBUG_POP): Remove.
12325 (NUM_REG_ITEMS): Remove.
12326 (NUM_NONREG_ITEMS): Adjust.
12327 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12328 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
12329 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
12330 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12331 New macros.
12332 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12333 address pushed is not the destination of the jump but the source
12334 of it instead.
12335 (NUM_FAILURE_ITEMS): Remove.
12336 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
12337 registers before the actual failure point). Don't hardcode any
12338 meaning for str==NULL anymore.
12339 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
12340 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12341 Remove.
12342 (REG_UNSET_VALUE): Use NULL (why not?).
12343 (compile_range): Remove declaration since it doesn't exist.
12344 (struct compile_stack_elt_t): Remove inner_group_offset.
12345 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12346 (regex_grow_registers): Remove dead code.
12347 (FIXUP_ALT_JUMP): New macro.
12348 (regex_compile): Add shy-groups Change loops to use
12349 on_failure_jump_smart&jump instead of
12350 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12351 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12352 variable to me). Use `jump' instead of `jump_past_alt' and don't
12353 bother with push_dummy_failure in alternatives since it is now
12354 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12355 emacs' for (re)allocating the stack.
12356 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12357 from loop when bufp->can_be_null rather than jumping to `done'.
12358 Avoid jumping backwards so as to ensure termination. Use
12359 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12360 backreferences. Remove dead code in handling of `anychar'.
12361 (skip_noops, mutually_exclusive_p): New functions taken from the
12362 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12363 improve mutually_exclusive_p to handle ".+\n".
12364 (lowest_active_reg, highest_active_reg)
12365 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
12366 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12367 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12368 variables. Push register (in `start_memory') on the stack rather
12369 than storing it in old_reg(start|end). Remove the cycle detection
12370 from `stop_memory', replaced by the use of on_failure_jump_loop
12371 for greedy loops. Add code for the new on_failure_jump_<foo>.
12372 Remove ad-hoc code in `on_failure_jump' to push more registers in
12373 the case of a loop. Take out code from `maybe_pop_jump' into
12374 separate functions and adapt it to the semantics of
12375 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12376 and push_dummy_failure. Remove dummy_failure handling and
12377 handling of `failures to jump to on_failure_jump' (this last one
12378 was already dead code, it seems).
12379 (group_match_null_string_p, alt_match_null_string_p)
12380 (common_op_match_null_string_p): Remove.
12381
12382 2000-03-08 Dave Love <fx@gnu.org>
12383
12384 * config.in: Don't depend on __STDC__ for volatile.
12385 Add POINTER_TYPE, PTR, PROTOTYPES.
12386
12387 * hftctl.c, strftime.c: Use PROTOTYPES.
12388 * eval.c (find_handler_clause): Likewise.
12389
12390 * mem-limits.h: Use POINTER_TYPE.
12391
12392 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12393 (memory_warnings): Declare using POINTER_TYPE.
12394
12395 2000-03-08 Gerd Moellmann <gerd@gnu.org>
12396
12397 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12398
12399 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
12400
12401 * xfns.c: Remove obsolete code in #if 0.
12402 (Fx_focus_frame): New function.
12403
12404 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12405
12406 * coding.c (coding_category_name): Add coding-category-utf-8,
12407 coding-category-utf-16-be, coding-category-utf-16-le.
12408 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12409 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12410 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12411 (detect_coding_utf_8): New function.
12412 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12413 UTF_16_LOW_SURROGATE_P): New macros.
12414 (detect_coding_utf_16): New function
12415 (detect_coding_mask): When priorities are specified, skip any
12416 categories that have `nil' coding-system. Fix bug of returning
12417 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12418 returns a mask not set in PRIORITIES.
12419 (detect_eol_type_in_2_octet_form): New function.
12420 (detect_eol): selects detect_eol_type_XXX to call according to
12421 cooding->category_idx.
12422 (detect_coding_system): Remove `nil' coding-system in the result.
12423 (Fupdate_coding_systems_internal): Update all coding-categories.
12424
12425 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12426 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12427 New macros.
12428 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12429 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12430 (CODING_CATEGORY_IDX_UTF_16_LE)
12431 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12432 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
12433 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12434 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12435
12436 2000-03-07 Gerd Moellmann <gerd@gnu.org>
12437
12438 * doc.c (Fdocumentation_property): If value is not a string,
12439 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12440
12441 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12442 close the display with XtCloseDisplay. This caused a bus error
12443 on OpenWindows.
12444
12445 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12446 complete but not unique.
12447
12448 2000-03-06 Gerd Moellmann <gerd@gnu.org>
12449
12450 * process.c (send_process): Remove local variable `procname' that
12451 might become invalid when a GC happens. Instead, access the
12452 process name slot directly.
12453
12454 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12455 orig_height if set.
12456
12457 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12458 orig_height if set.
12459
12460 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12461
12462 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12463 glyph matrices have been freed.
12464
12465 2000-03-05 Gerd Moellmann <gerd@gnu.org>
12466
12467 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
12468 (bootstrap-temacs): Set LC_ALL to C like for temacs.
12469
12470 * xfns.c (QCdata): Moved to xdisp.c.
12471
12472 * xdisp.c (QCdata): Moved here from xfns.c.
12473 (syms_of_xdisp): Initialize QCdata.
12474
12475 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12476
12477 * window.c (coordinates_in_window): Use
12478 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12479 FRAME_INTERNAL_BORDER_WIDTH.
12480
12481 * xdisp.c (try_window_id): Recompute unchanged information if
12482 it is obviously invalid.
12483
12484 * xterm.c (x_term_init): Create a colormap if not using the
12485 default visual.
12486
12487 * xterm.h (select_visual): Change prototype.
12488
12489 * xfns.c (select_visual): Rewritten. Recognize user-specified
12490 visual classes.
12491 (visual_classes): New variable.
12492
12493 2000-03-04 Gerd Moellmann <gerd@gnu.org>
12494
12495 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12496 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12497 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
12498 (x_decode_color): Don't handle allocation of white and black specially.
12499 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12500 XtNcolormap resources.
12501 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12502 (Fx_create_frame): Initialize color members of x_output structure.
12503 (xpm_load): Pass colormap to XPM lib.
12504
12505 * xfaces.c (x_free_colors): Access colormap of frame using
12506 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12507 when default colormap is used.
12508
12509 * xterm.c (x_term_init): Set Colormap member of x_display_info
12510 structure. Copy colormap if resource `privateColormap' is
12511 specified (PseudoColor only).
12512 (x_setup_relief_color): Access colormap of frame using
12513 FRAME_X_COLORMAP.
12514
12515 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12516 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12517
12518 2000-03-04 Jason Rumney <jasonr@gnu.org>
12519
12520 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12521 other non-platform-specific equivalents.
12522 [WINDOWSNT]: Include w32term.h, fontset.h and define X
12523 specific functions and macros as their w32 equivalents where
12524 non-platform-specifics are not available.
12525 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12526 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12527 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12528 (frame_update_line_height): Use macros to access f->output_data.
12529 (defined_color): Remove FIXME comments; fixed.
12530 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12531 into #ifdef blocks. Add WINDOWSNT blocks.
12532 (Fx_list_fonts): Use macros for accessing font data.
12533 (set_lface_from_font_name): Different default fonts for X and
12534 WINDOWSNT.
12535 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12536 scalable for backward compatibility.
12537 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
12538 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12539
12540 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
12541 syms_of_w32faces.
12542
12543 * makefile.nt (w32faces.obj): Remove.
12544 (xfaces.obj): Add.
12545
12546 2000-03-03 Jason Rumney <jasonr@gnu.org>
12547
12548 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12549 correct parameters.
12550
12551 2000-03-03 Ken Raeburn <raeburn@gnu.org>
12552
12553 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12554 standard ELF definitions here if the system header does not.
12555
12556 2000-03-03 Gerd Moellmann <gerd@gnu.org>
12557
12558 * xterm.c (PER_CHAR_METRIC): Removed.
12559 (x_per_char_metric_1, x_default_char): New functions.
12560 (x_per_char_metric): If font's default char is invalid, return
12561 metrics of a suitably chosen usable default char.
12562 (x_draw_glyph_string_foreground): If font has an invalid default
12563 char, replace occurrences of unprintable chars with a suitably
12564 chosen usable default char.
12565
12566 2000-03-02 Gerd Moellmann <gerd@gnu.org>
12567
12568 * xterm.c (note_mouse_highlight): Return quickly if frame's
12569 glyph matrices have been freed.
12570
12571 * dispnew.c (free_glyphs): Block input while freeing matrices.
12572
12573 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12574
12575 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12576 Use x_free_colors.
12577
12578 * dispextern.h (x_free_colors): Add prototype.
12579
12580 * xfaces.c (x_free_colors): New function.
12581 (unload_color, free_face_colors): Use it.
12582
12583 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12584
12585 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12586
12587 * window.c [MSDOS]: Include msdos.h.
12588
12589 2000-03-02 Dave Love <fx@gnu.org>
12590
12591 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12592
12593 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12594 set C_OPTIMIZE_SWITCH for gcc.
12595
12596 2000-03-02 Kenichi Handa <handa@etl.go.jp>
12597
12598 * coding.c (coding_save_composition): Be sure to allocate
12599 composition data area in coding even if there's no composition in
12600 the current run.
12601
12602 2000-03-01 Jason Rumney <jasonr@gnu.org>
12603
12604 * w32term.c: Equivalent changes to those made to xterm.c on
12605 2000-02-25 and 2000-02-24.
12606
12607 * w32fns.c: Equivalent changes to those made to xfns.c on
12608 2000-02-25 and 2000-02-21.
12609
12610 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12611 correct line-end convention is followed.
12612
12613 * w32menu.c [HAVE_BOXES]: Remove #undef.
12614 (single_keymap_panes): Remove code for simulating checkmarks.
12615 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12616 Remove code for drawing simulated checkmarks.
12617 (w32_menu_show): make unibyte help string correctly.
12618 (add_menu_item): draw standard Windows checkmarks. Draw radio
12619 buttons as radio buttons if possible.
12620
12621 2000-03-01 Gerd Moellmann <gerd@gnu.org>
12622
12623 * sysdep.c (start_of_text): Don't define this function for NetBSD
12624 with ELF.
12625
12626 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
12627 Don't define.
12628 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12629 (LINKER): Don't undef if __NetBSD__ is defined.
12630
12631 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12632
12633 * fileio.c [__NetBSD__]: Define `unix'.
12634
12635 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12636
12637 2000-02-29 Gerd Moellmann <gerd@gnu.org>
12638
12639 * atimer.c (start_atimer): Don't abort when timers are stopped.
12640 (append_atimer_lists): New function.
12641 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12642 arbitrary lists of stopped and running atimers.
12643
12644 * atimer.c (cancel_atimer): Handle canceling an atimer when
12645 some timers are stopped.
12646
12647 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12648 after canceling it.
12649
12650 * fns.c (maybe_resize_hash_table): Handle case of new size
12651 coming out as being the same as old size.
12652
12653 2000-02-27 Jason Rumney <jasonr@gnu.org>
12654
12655 * makefile.nt: Add atimer.h to dependencies.
12656 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12657 * w32console.c: Only disable window system features for dispextern.h
12658 (initialize_w32_display): Build a display info for the console.
12659 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12660 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12661 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12662 as 2 button mice.
12663 * w32gui.h (struct W32FontStruct): Revert last change after change
12664 to xdisp.c.
12665 * w32menu.c (single_submenu): Set up help string.
12666 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12667 (w32_dialog_show): Set up help string.
12668 * w32term.c (w32_display_info_for_display): Remove unused function.
12669 (w32_draw_bitmap): Use pre-built bitmaps.
12670 (w32_initialize_display_info): New function to initialize parts of
12671 display info that are common to both GUI and console frames.
12672 (w32_term_init): Use w32_initialize_display_info. Do not set
12673 Vw32_num_mouse_buttons here, as it is not called for console
12674 frames. Build bitmaps for indicating truncated lines etc.
12675 (x_delete_display): Destroy pre-built bitmaps.
12676 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12677 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12678
12679 2000-02-27 Dave Love <fx@gnu.org>
12680
12681 * lisp.h: Add a bunch of prototypes.
12682
12683 2000-02-26 Kenichi Handa <handa@etl.go.jp>
12684
12685 * keyboard.c (read_char): Set `usec' correctly.
12686
12687 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12688
12689 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12690 `lambda', set reg[RRR] to the map index.
12691 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12692 reg[RRR] to 0. Otherwise, set it to -1.
12693
12694 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12695
12696 * emacs.c (main): Remove code snippet commented out with `//'.
12697
12698 2000-02-25 Richard M. Stallman <rms@gnu.org>
12699
12700 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12701 and contains a `:', prepend `/:'.
12702
12703 * window.c (select_window_1): If selected_window is nil,
12704 don't "swap out" the buffer's point.
12705 (Fset_window_configuration): Set selected_window to nil
12706 before calling Fselect_window.
12707 (unshow_buffer): Don't set point in buffer from window's point
12708 if another more recently selected window also shows the buffer.
12709
12710 2000-02-25 Gerd Moellmann <gerd@gnu.org>
12711
12712 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12713
12714 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12715 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
12716 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12717 New variables.
12718 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12719 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12720 (hide_busy_cursor): New functions.
12721 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12722
12723 * minibuf.c (read_minibuf): Cancel busy-cursor.
12724
12725 * keyboard.c (command_loop_1): Call start_busy_cursor before
12726 Fcommand_execute and cancel_busy_cursor after it.
12727 (timer_check): Remove busy-cursor code.
12728 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12729 cursor timer.
12730
12731 * process.c (wait_reading_process_input): Remove busy-cursor code.
12732
12733 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12734 Fx_hide_busy_cursor.
12735
12736 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12737 Remove prototyoes.
12738 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12739
12740 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12741
12742 * xterm.c (XTread_socket): Remove busy-cursor code.
12743
12744 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12745 (build_frame_matrix_from_leaf_window): Put code handling
12746 glyph row's not being a slice of a frame row in #if 0.
12747 (sync_window_with_frame_matrix_rows): New function.
12748 (frame_row_to_window): New function.
12749 (mirror_line_dance): Handle copies between windows.
12750
12751 * lread.c (Fload): Use `xfree' instead of `free'.
12752 (init_obarray): Use `xmalloc' instead of `malloc'.
12753
12754 * window.c (Fset_window_buffer): Set WINDOW to the window
12755 after decoding.
12756 (coordinates_in_window): Take frame's internal border width
12757 into account.
12758
12759 2000-02-24 Gerd Moellmann <gerd@gnu.org>
12760
12761 * xterm.c (x_display_and_set_cursor): Display cursor of
12762 non-selected windows depending on the setting of
12763 cursor_in_non_selected_windows.
12764
12765 * xdisp.c (cursor_in_non_selected_windows): New variable.
12766 (syms_of_xdisp): DEFVAR_BOOL it.
12767
12768 2000-02-23 Gerd Moellmann <gerd@gnu.org>
12769
12770 * data.c (Fstring_to_number): If number is greater than what
12771 fits into an integer, return a float.
12772
12773 * eval.c (specbind): Remove references to
12774 keyword_symbols_constant_flag.
12775
12776 * data.c (keyword_symbols_constant_flag): Removed.
12777 (Fmakunbound, set_internal, syms_of_data): Remove references to
12778 keyword_symbols_constant_flag.
12779
12780 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12781
12782 2000-02-23 Kenichi Handa <handa@etl.go.jp>
12783
12784 * syntax.c (multibyte_syntax_as_symbol): New variable.
12785 (syms_of_syntax): Declare it as a Lisp variable.
12786 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12787 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12788 nonzero, treat all multibyte characters as symbol.
12789 (init_syntax_once): Give syntax `word' to all multibyte characters.
12790
12791 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12792
12793 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
12794 a deleted frame.
12795
12796 2000-02-21 Gerd Moellmann <gerd@gnu.org>
12797
12798 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12799
12800 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12801 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12802
12803 2000-02-21 Dave Love <fx@gnu.org>
12804
12805 * frame.c (Vmouse_position_function): New variable.
12806 (Fmouse_position): Use it.
12807 (syms_of_frame): Install it.
12808
12809 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12810
12811 2000-02-20 Gerd Moellmann <gerd@gnu.org>
12812
12813 * fileio.c (Finsert_file_contents): Unbind the binding of
12814 standard-output done by temp_output_buffer_setup.
12815
12816 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12817 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12818 (specbind, unbind_to): Handle most common case of non-constant
12819 symbol with trivial value specially.
12820
12821 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12822
12823 2000-02-20 Richard M. Stallman <rms@gnu.org>
12824
12825 * data.c (Fmake_variable_buffer_local): Doc fix.
12826 Init found_for_buffer to 0.
12827 (Fmake_variable_frame_local): If the variable has already
12828 been buffer-local, set the check_frame field.
12829
12830 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12831
12832 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12833 produced for CODING_MODE_LAST_BLOCK requires.
12834
12835 2000-02-18 Dave Love <fx@gnu.org>
12836
12837 * keyboard.c (echo_keystrokes): Remove declaration.
12838 (Vecho_keystrokes) New variable.
12839 (read_char, record_menu_key, read_key_sequence): Use it to allow
12840 use of float value.
12841 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12842
12843 * lread.c: Undef feature selection macros before defining.
12844
12845 2000-02-18 Gerd Moellmann <gerd@gnu.org>
12846
12847 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12848 for symbols other than the symbol in question.
12849
12850 2000-02-17 Dave Love <fx@gnu.org>
12851
12852 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12853
12854 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12855
12856 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12857
12858 * alloc.c (enum mem_type): Compile unconditionally.
12859
12860 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12861
12862 * xfaces.c (tty_defined_color): Don't return faulire indication
12863 for unspecified-fg and unspecified-bg pseudo-colors.
12864
12865 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12866
12867 * alloc.c (mark_object): Don't mark symbol names in pure space.
12868 (gc_sweep): Don't unmark symbol names in pure space.
12869
12870 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12871 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12872 [GC_MARK_STACK]: New defines.
12873 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
12874 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12875
12876 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12877
12878 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12879 allocate_buffer instead of xmalloc.
12880
12881 * alloc.c (toplevel): Include setjmp.h.
12882 (PURE_POINTER_P): New define.
12883 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12884 (Vdead) [GC_MARK_STACK]: New variable.
12885 (lisp_malloc): Add parameter TYPE, call mem_insert if
12886 GC_MARK_STACK is defined.
12887 (allocate_buffer): New function.
12888 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
12889 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12890 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12891 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12892 (MEM_NIL) [GC_MARK_STACK]: New define.
12893 (struct mem_node) [GC_MARK_STACK]: New structure.
12894 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12895 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12896 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12897 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12898 (mark_stack) [GC_MARK_STACK]: New functions.
12899 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12900 (clear_marks): Removed.
12901 (gc_sweep): Set free conses' car, free floats' type, free
12902 symbols' function to Vdead. Use lisp_free to free buffers.
12903 (init_alloc_once): Initialize Vdead.
12904 (survives_gc_p): Return non-zero for pure objects.
12905
12906 * alloc.c: Add comments throughout the file.
12907
12908 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12909 that unblocks alarms.
12910
12911 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12912 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12913 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12914
12915 * frame.c (make_frame): Set frame initiallly to `garbaged'.
12916
12917 2000-02-17 Kenichi Handa <handa@etl.go.jp>
12918
12919 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12920 avoid infinite error signaling. Allocate sufficient memory for
12921 eol_str in the case that eoltype is Lisp_Int.
12922
12923 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12924
12925 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12926 depends on the previous behavior.
12927
12928 2000-02-16 Gerd Moellmann <gerd@gnu.org>
12929
12930 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12931
12932 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12933
12934 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12935
12936 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
12937 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
12938 write(2).
12939
12940 2000-02-15 Richard M. Stallman <rms@gnu.org>
12941
12942 * data.c (set_internal): Don't make variable buffer-local
12943 if within a let-binding for the same buffer.
12944 (let_shadows_buffer_binding_p): New function.
12945
12946 * eval.c (specbind): For buffer-local value,
12947 record the current buffer also.
12948 (unbind_to): Cope with that change.
12949
12950 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12951
12952 * window.c (Fsave_window_excursion): Doc fix.
12953
12954 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12955
12956 * syntax.c (back_comment): Make sure we only consider comment-starters
12957 of the relevant style and return -1 in case of a failure to find the
12958 beginning of the comment.
12959 (Fforward_comment): If back_comment fails, go back to the position just
12960 after the comment-end.
12961 (scan_lists): Add comment describing a very minor bug.
12962
12963 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12964
12965 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12966 `completion-regexp-list' in the docstring.
12967
12968 2000-02-14 Dave Love <fx@gnu.org>
12969
12970 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12971
12972 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12973
12974 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12975 to Emacs' syntax. Also fix the comment about set/not-set meanings
12976 since Emacs syntax is not the value 0 any more.
12977 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12978 since it's now part of RE_SYNTAX_EMACS.
12979
12980 2000-02-12 Dave Love <fx@gnu.org>
12981
12982 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
12983
12984 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12985
12986 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12987
12988 2000-02-12 Dave Love <fx@gnu.org>
12989
12990 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12991
12992 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
12993 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12994 * s/hpux.h: Don't define HAVE_VFORK.
12995
12996 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12997
12998 * s/nextstep.h: Don't define HAVE_ALLOCA.
12999
13000 * config.in: Add vfork bits.
13001
13002 2000-02-12 Gerd Moellmann <gerd@gnu.org>
13003
13004 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13005 unwind function to undo the effect of stopping atimers.
13006
13007 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
13008
13009 * atimer.c (stopped_atimers): New variable.
13010 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13011 New functions.
13012
13013 * atimer.h (stop_other_atimers, run_all_atimers)
13014 (unwind_stop_other_atimers): Add function prototypes.
13015
13016 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13017
13018 2000-02-11 Ken Raeburn <raeburn@gnu.org>
13019
13020 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13021 library may depend on jpeg.
13022 (atimer.o): Depends on atimer.c.
13023
13024 2000-02-11 Kenichi Handa <handa@etl.go.jp>
13025
13026 * insdel.c (del_range_1): Call update_compositions.
13027 (del_range_both): Call update_compositions just once..
13028
13029 2000-02-10 Dave Love <fx@gnu.org>
13030
13031 * xfns.c (create_frame_xic): Fix initialization of automatic
13032 aggregates for pcc.
13033
13034 2000-02-09 Kenichi Handa <handa@etl.go.jp>
13035
13036 * ccl.c (CCL_MAKE_CHAR): New macro.
13037 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13038 registers by CCL_MAKE_CHAR before calling translate_char.
13039 <CCL_TranslateCharacterConstTbl> Likewise.
13040
13041 2000-02-08 Dave Love <fx@gnu.org>
13042
13043 * lread.c (__EXTENSIONS__): Define.
13044
13045 2000-02-08 Gerd Moellmann <gerd@gnu.org>
13046
13047 * puresize.h (BASE_PURESIZE): Increase to 650000.
13048
13049 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13050
13051 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13052 the help message.
13053
13054 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13055
13056 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13057 md, mh, mb, mr, and me to the fake termcap entry.
13058
13059 2000-02-06 Ken Raeburn <raeburn@gnu.org>
13060
13061 * sound.c (sound_cleanup): Don't call device close routine if the
13062 function pointer is null.
13063
13064 2000-02-06 Andrew Innes <andrewi@gnu.org>
13065
13066 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13067 around image definitions and prototypes.
13068 (gamma_correct) [WINDOWSNT]: New prototype.
13069
13070 * w32term.c (x_make_frame_visible): Replace call to
13071 input_poll_signal with poll_for_input.
13072
13073 * window.c [WINDOWSNT]: Include w32term.h.
13074
13075 * xdisp.c [WINDOWSNT]: Include w32term.h.
13076
13077 * makefile.nt: Add dependencies on w32gui.h.
13078 (OBJ1): Include atimer.obj.
13079 ($(BLD)\atimer.obj): New dependency rule.
13080
13081 * w32.c (sigmask): New function (does nothing).
13082 (sigunblock): Ditto.
13083
13084 * frame.c [WINDOWSNT]: Include w32term.h.
13085
13086 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13087
13088 * lread.c (syms_of_lread): Fix literal newlines.
13089
13090 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13091 the string constant limit (2048 bytes) in MSVC.
13092 (main): Ditto.
13093
13094 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13095
13096 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
13097 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13098 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13099 dispatch the event.
13100
13101 2000-02-04 Dave Love <fx@gnu.org>
13102
13103 * fileio.c: Remove some unused vars.
13104 (_GNU_SOURCE): Define (for euidaccess).
13105
13106 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13107
13108 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13109 gcpro1, gcpro2.
13110 (read_minibuf): Deal with allow_props correctly.
13111
13112 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13113
13114 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13115
13116 2000-02-03 Ken Raeburn <raeburn@gnu.org>
13117
13118 * search.c (compile_pattern): If a cache entry has a nil regexp,
13119 fill in that entry instead of clobbering a previously cached
13120 string regexp.
13121
13122 2000-02-02 Ken Raeburn <raeburn@gnu.org>
13123
13124 * puresize.h (BASE_PURESIZE): Increase to 610000.
13125
13126 2000-02-02 Gerd Moellmann <gerd@gnu.org>
13127
13128 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13129 can GC.
13130
13131 2000-02-02 Kenichi Handa <handa@etl.go.jp>
13132
13133 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13134 instead of incrementing ic directly.
13135 <CCL_WriteExprConst> Likewise.
13136 <ccl_set_expr>: Set ic to jump_address.
13137
13138 * fileio.c (e_write): Fix the handling of
13139 CODING_FINISH_INSUFFICIENT_SRC.
13140
13141 2000-02-01 Dave Love <fx@gnu.org>
13142
13143 * editfns.c (Fpropertize): Doc fix.
13144
13145 * process.c (Fstart_process): Doc fix.
13146
13147 * eval.c: Fix various doc strings not to duplicate information
13148 from help-manyarg-func-alist.
13149
13150 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
13151
13152 * doc.c (Vhelp_manyarg_func_alist): New variable.
13153 (Fdocumentation): Use it.
13154 (syms_of_doc): Define it.
13155
13156 2000-01-31 Gerd Moellmann <gerd@gnu.org>
13157
13158 * xterm.c (xim_open_dpy): Remove unused local variable.
13159
13160 * emacs.c (USAGE): Use term `display options' instead of `X options'.
13161
13162 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
13163 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13164
13165 * fns.c (sweep_weak_table): New function.
13166 (sweep_weak_hash_tables): Use it. Keep on marking until there
13167 is no more change.
13168
13169 2000-01-30 Gerd Moellmann <gerd@gnu.org>
13170
13171 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
13172 that XTread_socket does not crash by trying to call XNoOp on a
13173 closed display.
13174
13175 2000-01-30 Jason Rumney <jasonr@gnu.org>
13176
13177 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13178 Change selected_frame to SELECTED_FRAME ().
13179 (w32_console_mouse_position): Remove #ifndef MULE from around
13180 `insist' parameter.
13181
13182 * makefile.nt: Remove dosfns.obj.
13183
13184 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
13185
13186 * w32fns.c (w32_defined_color): Check for valid frame before
13187 applying gamma correction. Eliminate dependency on frame elsewhere.
13188 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
13189 (w32_to_x_font): Use resx and resy not height_in and width_in.
13190 (x_to_w32_font): Doc fix.
13191 (xlfd_strip_height): New function to strip and return font height.
13192 (w32_font_match): Compare height separately from rest of xlfd
13193 spec, using xlfd_strip_height.
13194
13195 * w32term.c (w32_term_init): Swap resx and height_in, resy and
13196 width_in. Use w32_defined_color in place of defined_color.
13197
13198 * w32faces.c: Merge more of DOS and X specifics in preparation for
13199 merge with xfaces.c.
13200 (defined_color): Remove FIXME comment.
13201 (tty_color_name): Provide w32-specific function.
13202 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
13203
13204 * w32console.c (turn_on_face, turn_off_face): Removed.
13205 (w32_face_attributes): New function.
13206 (Global_variables): Reduce scope where possible.
13207 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
13208 fill attribute.
13209 (hl_mode): Don't modify text attributes.
13210 (write_glyphs): Don't do anything if len <= 0. Use
13211 w32_face_attributes to get attributes for drawing. Write
13212 terminating codes using char_attr_normal.
13213 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
13214 (update_begin, update_end): Likewise.
13215 (vga_stdcolor_name): New function.
13216 (initialize_w32_display): Remove char_attr_reverse and char_attr.
13217 (Fset_screen_color): Remove char_attr_reverse.
13218
13219 2000-01-29 Gerd Moellmann <gerd@gnu.org>
13220
13221 * xfns.c (xic_set_preeditarea): Take window parameter and
13222 window-relative pixel-positions.
13223
13224 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
13225 is its frame's selected window.
13226 (xim_instantiate_callback): Likewise.
13227
13228 * xfns.c (x_create_im): Removed.
13229 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
13230 (supported_xim_styles): Renamed from supported_styles.
13231 (best_xim_style): Renamed from best_style.
13232 (create_frame_xic): Renamed from xic_create_frame.
13233 (free_frame_xic): Renamed from xic_destroy_frame.
13234
13235 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13236
13237 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13238 our frames, call XFilterEvent with 2nd parameter `None'.
13239 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13240 returning XBufferOverflow.
13241 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
13242 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13243 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13244 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13245 (xim_initialize, xim_close)
13246 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13247 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13248 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13249 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13250
13251 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13252 and `xim_styles'.
13253 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13254 `xic_style' and `xic_xfs'.
13255 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13256 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13257 (FRAME_XIM): Removed.
13258
13259 * xfns.c (supported_styles): New variable.
13260 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13261 (xic_create_xfontset, best_style, xic_create_frame)
13262 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13263 (xic_set_xfontset): New functions.
13264
13265 2000-01-28 Dave Love <fx@gnu.org>
13266
13267 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13268
13269 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13270
13271 2000-01-28 Gerd Moellmann <gerd@gnu.org>
13272
13273 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13274 for *scratch* if it already existed.
13275
13276 * emacs.c (USAGE): New macro.
13277 (main): Use it to display usage information.
13278
13279 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13280
13281 Support for the menu-help feature:
13282
13283 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
13284
13285 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13286 part of the line to the termscript file.
13287 (IT_clear_to_end): Clear the entire line, not just its beginning.
13288 (menu_help_message, prev_menu_help_message): New variables.
13289 (IT_menu_make_room): Make room for the help_text member.
13290 (IT_menu_display): New argument disp_help; all callers changed.
13291 If disp_help is non-zero, store the help text of the active menu
13292 item in menu_help_message.
13293 (XMenuAddPane): Initialize the help_text member to NULL.
13294 (XMenuAddSelection): New argument help_text. Store it in the
13295 XMenu structure.
13296 (XMenuActivate): New argument help_callback. If the value of
13297 menu_help_message has changed since the last time, display the
13298 menu help message text while waiting for the mouse to move. Clear
13299 the echo area before exiting.
13300 (XMenuDestroy): Free the help_text member.
13301
13302 2000-01-27 Gerd Moellmann <gerd@gnu.org>
13303
13304 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13305 XMenuAddSelection. Pass help callback to XMenuActivate.
13306 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13307
13308 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13309
13310 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13311 and EMACS_SET_USECS.
13312
13313 2000-01-26 Dave Love <fx@gnu.org>
13314
13315 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13316
13317 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13318 an error may be signalled.
13319
13320 2000-01-26 Gerd Moellmann <gerd@gnu.org>
13321
13322 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13323 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13324
13325 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13326
13327 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13328
13329 * charset.c (Fstring): If there is a multibyte char among
13330 the args, always return a multibyte string.
13331
13332 2000-01-25 Gerd Moellmann <gerd@gnu.org>
13333
13334 * sysdep.c (sys_select): Turn atimers off and on instead of
13335 recording and restoring old alarm handler
13336
13337 * process.c (toplevel): Include atimer.h.
13338 (create_process_1): Rewritten.
13339 (create_process): Use atimers instead of alarm.
13340 (wait_reading_process_input) [hpux]: Turn atimers off instead
13341 of turning off SIGALRM.
13342 (wait_reading_process_input): Turn off atimers instead off
13343 calling stop_polling.
13344
13345 * emacs.c (main): Call init_atimer.
13346
13347 * keyboard.c (toplevel): Include systime.h and atimer.h.
13348 (polling_for_input): Removed because unused.
13349 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13350 (poll_timer): New variable.
13351 (poll_for_input, poll_for_input_1): New functions.
13352 (start_polling, stop_polling): Rewritten.
13353
13354 * keyboard.h (polling_for_input): Removed.
13355
13356 * atimer.h, atimer.c: New files.
13357
13358 * Makefile.in (obj): Add atimer.o.
13359 (atimer.o): New target.
13360
13361 * blockinput.h (pending_atimers): Add extern declaration.
13362 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13363
13364 * lisp.h (popup_activated_flag): Add extern declaration.
13365
13366 * xmenu.c (popup_activated_flag): Make externally visible.
13367 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
13368 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13369
13370 * xterm.c (toplevel): Include atimer.h.
13371 (toolkit_scroll_bar_interaction): New variable.
13372 (Fxt_process_timeouts): Removed.
13373 (x_process_timeouts): New function.
13374 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13375 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13376 (x_make_frame_visible): Call poll_for_input_1 instead of
13377 input_poll_signal. Don't call alarm.
13378 (x_initialize): Install timer calling x_process_timeouts.
13379
13380 2000-01-24 Dave Love <fx@gnu.org>
13381
13382 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
13383 Don't use -cckr -- apparently not now necessary.
13384
13385 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13386
13387 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13388 screen boundary.
13389
13390 2000-01-23 Jason Rumney <jasonr@gnu.org>
13391
13392 * w32fns.c (w32_defined_color): Apply gamma correction before
13393 trying to map to the palette.
13394 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13395 to w32_clear_rect.
13396
13397 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13398 here. Callers changed to always pass real device context.
13399 (w32_draw_bitmap): Likewise.
13400 (w32_get_glyph_overhangs): Likewise.
13401 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
13402 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13403 pfnSetScrollInfo and SetScrollRange.
13404 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13405 back into MULE characters after decoding them.
13406 (x_get_glyph_face_and_encoding): Likewise.
13407 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13408 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13409 (x_produce_glyphs): Calculate per char metrics for a character
13410 that we know exists in default font when font_not_found_p is true.
13411
13412 2000-01-22 Jason Rumney <jasonr@gnu.org>
13413
13414 * makefile.nt (intervals.obj, composite.obj): New modules.
13415 (composite.h): Added as dependency where appropriate.
13416
13417 * w32gui.h (XGCValue): New struct for emulating X GCs.
13418
13419 * w32term.h (XCharStruct): New struct for emulating X.
13420
13421 * w32console.c (turn_on_face, turn_off_face): New functions.
13422 (change_line_highlight): New prototype for new redisplay.
13423 (write_glyphs): Support multibyte text. Support faces.
13424
13425 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
13426
13427 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13428 throughout. struct frame * in place of FRAME_PTR.
13429 Skeleton support for images, toolbars, tooltips from xfns.c.
13430 (Fx_create_frame): Use system default for default scroll bar width.
13431 (w32_get_arg): Renamed from x_get_arg.
13432 (Fx_file_dialog): New function.
13433 (w32_list_fonts): Check cache before asking system.
13434 (Vw32_enable_synthesized_fonts): New variable.
13435 (Vw32_enable_italics): Obsolete, removed.
13436
13437 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13438 Use SELECTED_FRAME macro.
13439
13440 * w32menu.c: Add skeleton support for help strings on menus.
13441 (add_menu_item): Native checkbox and radio support added, but not
13442 yet enabled due to bugs.
13443 (push_menu_item): Add parameters type, selection and help.
13444 Callers updated.
13445 Formatting changes to reduce unnecessary diffs with xmenu.c.
13446
13447 * w32select.c (Fw32_set_clipboard_data): Update call to
13448 find_charset_in_str.
13449
13450 * w32term.c: Complete rewrite for new redisplay based on new
13451 xterm.c with necessary sections merged back in from old w32term.c.
13452
13453 2000-01-21 Richard M. Stallman <rms@gnu.org>
13454
13455 * data.c (set_internal): Further fix in same criterion.
13456
13457 2000-01-20 Richard M. Stallman <rms@gnu.org>
13458
13459 * data.c (set_internal): Fix the criteria for whether
13460 to swap out the old cached binding.
13461
13462 2000-01-19 Dave Love <fx@gnu.org>
13463
13464 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13465
13466 2000-01-18 Kenichi Handa <handa@etl.go.jp>
13467
13468 * regex.c (re_compile_fastmap): While checking a range table for
13469 `charset', skip flag bits for a character class correctly.
13470
13471 2000-01-17 Gerd Moellmann <gerd@gnu.org>
13472
13473 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13474
13475 * xfns.c (x_window): Call lw_create_widget with new parameter list.
13476
13477 * widget.c (EmacsFrameSetCharSize): Change size of children first
13478 because of problems with main window geometry management under Lesstif.
13479
13480 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13481 MENU_ITEMS_ITEM_.*.
13482 (MENU_ITEMS_ITEM_HELP): New enumerator.
13483 (push_menu_item): Add parameter HELP. Record help in menu_items.
13484 (single_menu_item, single_submenu, list_of_items): Call
13485 push_menu_item with new parameter.
13486 (single_submenu): Set help string in widget value.
13487 (menu_highlight_callback): New function.
13488 (set_frame_menubar): Call lw_create_widget with new
13489 parameter list.
13490 (xmenu_show, xdialog_show): Ditto.
13491
13492 2000-01-13 Gerd Moellmann <gerd@gnu.org>
13493
13494 * sound.c (Fplay_sound): Improve doc string.
13495
13496 2000-01-11 Richard M. Stallman <rms@gnu.org>
13497
13498 * lisp.h (set_internal): Enter the new arg.
13499
13500 * eval.c (specbind): Record buffer-local variables specially,
13501 indicating which buffer's binding was saved.
13502 (unbind_to): Restore buffer-local variables specially
13503 in the proper buffer.
13504
13505 * data.c (set_internal): New arg BUF.
13506
13507 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13508 * data.c (Fset): Pass new arg to set_internal.
13509 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
13510
13511 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13512
13513 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
13514
13515 2000-01-11 Richard M. Stallman <rms@gnu.org>
13516
13517 * minibuf.c (Ftry_completion): Doc fix.
13518
13519 2000-01-11 Gerd Moellmann <gerd@gnu.org>
13520
13521 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13522 vector, too.
13523
13524 2000-01-11 Andreas Schwab <schwab@suse.de>
13525
13526 * coding.c (code_convert_region): Initialize total_skip.
13527
13528 2000-01-08 Dave Love <fx@gnu.org>
13529
13530 * eval.c (Fuser_variable_p): Check customizability too.
13531
13532 2000-01-07 Gerd Moellmann <gerd@gnu.org>
13533
13534 * minibuf.c (Fcompleting_read): Doc fix.
13535
13536 2000-01-05 Gerd Moellmann <gerd@gnu.org>
13537
13538 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13539 -L /usr/local/lib.
13540
13541 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13542 Check that input style is supported before trying to create an
13543 IC for it.
13544 (x_window): Call x_create_im.
13545
13546 2000-01-04 Gerd Moellmann <gerd@gnu.org>
13547
13548 * xfns.c (current_gif_memory_src): New variable.
13549 (gif_load): Record the address of the current memory source
13550 in current_gif_memory_src.
13551 (gif_read_from_memory): Use current_gif_memory_src.
13552
13553 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13554 macros statement form.
13555
13556 * sound.c (struct sound): Renamed from struct sound_file.
13557 (struct sound): Add members `data' and `header_size'.
13558 (enum sound_attr): Add SOUND_DATA.
13559 (current_sound, current_sound_device): Variables renamed from
13560 sound_file and sound_device.
13561 (parse_sound): Parse :data.
13562 (parse_sound): Handle sound data in strings.
13563 (find_sound_type): Function renamed from find_sound_file_type.
13564 (wav_init, au_init): Fail if sound's header_size is smaller than
13565 needed header size.
13566 (wav_play, au_play): Play sounds from string data.
13567
13568 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13569
13570 * lisp.h: Add prototype for allocate_string_data.
13571
13572 * alloc.c (Fgarbage_collect): Return number of live and free strings.
13573
13574 * alloc.c (mark_buffer): Remove code in #if 0.
13575 (gc_sweep): Ditto.
13576 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13577 (strings_consed): New variable.
13578 (allocate_string): Set it.
13579 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13580 (Fmemory_use_counts): Return strings_consed. Use Flist.
13581
13582 * alloc.c: General cleanup in comments etc. Remove conditional
13583 compilation for `standalone'.
13584
13585 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13586
13587 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13588 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13589 (DONT_COPY_FLAG): Removed.
13590 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13591 (struct sdata, struct sblock): New
13592 (struct string_block): Rewritten.
13593 (STRINGS_IN_STRING_BLOCK): New macro.
13594 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13595 (large_sblocks, string_blocks, string_free_list): New variables.
13596 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13597 (init_strings): Rewritten.
13598 (allocate_string, allocate_string_data, compact_small_strings)
13599 (free_large_strings, sweep_strings): New functions.
13600 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13601 (struct string_block_head, current_string_block)
13602 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13603 (STRING_PAD): Removed.
13604 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13605 (Fgarbage_collect): Don't set mark bit in large strings.
13606 (mark_object): Mark strings differently. Mark symbol names
13607 differently.
13608 (survives_gc_p): Test marked strings differently.
13609 (gc_sweep): Sweep strings differently, unmark strings in
13610 symbol names.
13611 (compact_strings): Removed.
13612
13613 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13614
13615 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13616 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13617
13618 2000-01-04 Kenichi Handa <handa@etl.go.jp>
13619
13620 * fileio.c (Finsert_file_contents): Signal error if visiting file
13621 in a non-empty buffer.
13622
13623 * term.c (encode_terminal_code): Fix the previous change.
13624
13625 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13626
13627 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13628 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13629
13630 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13631
13632 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13633
13634 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13635 need to test for MSDOS frames.
13636
13637 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13638
13639 * dosfns.c (unspecified_colors): Remove.
13640 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13641 unspecified_bg.
13642 (msdos_stdcolor_name): Return strings for unspecified fore- and
13643 back-ground colors.
13644
13645 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
13646 (syms_of_xfaces): Remove their staticpro's.
13647 (tty_color_name): Return Lisp strings for unspecified fore- and
13648 back-ground colors.
13649 (Finternal_set_lisp_face_attribute): Remove the special treatment
13650 for Qunspecified_{f,b}g.
13651 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
13652
13653 2000-01-03 Gerd Moellmann <gerd@gnu.org>
13654
13655 * xdisp.c (reseat_at_next_visible_line_start): Position before
13656 newline only if ending up on a newline.
13657 (next_element_from_ellipsis): Return success. Handle case of
13658 displaying no ellipsis. Fix case of ellipsis defined in display table.
13659 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13660 returns 0.
13661
13662 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13663
13664 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13665 (Fcolor_supported_p): Renamed from face-color-supported-p.
13666
13667 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13668
13669 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13670 list of colors renamed to tty-defined-color-alist.
13671 (tty_color_name): Pass the frame to tty-color-by-index.
13672 (realize_tty_face): tty-color-alist is now a function which
13673 accepts the frame as argument.
13674
13675 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
13676
13677 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13678
13679 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13680 encode_terminal_code.
13681
13682 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13683
13684 * dispnew.c (mode_line_string): Support termcap frames as well.
13685
13686 2000-01-01 Gerd Moellmann <gerd@gnu.org>
13687
13688 * syntax.c (Fforward_word): Undo previous change.
13689
13690 * editfns.c (Fconstrain_to_field): Don't constrain if
13691 inhibit-field-text-motion is non-nil.
13692 (Fline_beginning_position): Undo previous change.
13693 (Fline_end_position): Ditto.
13694
13695 * syntax.c (Fforward_word): Notice field boundaries only if
13696 inhibit-field-text-motion is nil.
13697
13698 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13699
13700 * editfns.c (Vinhibit_field_text_motion): New variable.
13701 (inhibit-field-text-motion): New DEFVAR_LISP.
13702 (Fline_beginning_position, Fline_end_position): Notice field
13703 boundaries only if inhibit-field-text-motion is nil.
13704
13705 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13706 All calls adjusted.
13707 (x_build_heuristic_mask): Likewise.
13708 (xbm_load_image_from_file): Change error output.
13709 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13710 (gif_load, gs_load, x_kill_gs_process): Ditto.
13711
13712 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13713 color indices when accessing raster pixels.
13714 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13715 one of :file or :data.
13716 (enum pbm_keyword_index): Add PBM_DATA.
13717 (pbm_format): Add :data.
13718 (pbm_image_p): Allow either :file or :data.
13719 (pbm_read_file): New function.
13720 (pbm_scan_number): Rewritten to read from string.
13721 (pbm_load): Support :data.
13722
13723 See ChangeLog.8 for earlier changes.
13724
13725 ;; Local Variables:
13726 ;; coding: iso-2022-7bit
13727 ;; End:
13728
13729 Copyright (C) 2001 Free Software Foundation, Inc.
13730 Copying and distribution of this file, with or without modification,
13731 are permitted provided the copyright notice and this notice are preserved.