(mh-recenter): Call recenter with arg `(4)'.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e1010ebe
SM
12001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2
d73a471b
SM
3 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
4
e1010ebe
SM
5 * editfns.c (text_property_stickiness): Fix Lisp_Object used as boolean.
6
f66bd220
MB
72001-10-25 Miles Bader <miles@gnu.org>
8
9 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
10 BG is a pointer to a structure, not a structure.
11 (gif_format, png_format): Add missing commas.
12
d436d538
RS
132001-10-24 Richard M. Stallman <rms@gnu.org>
14
15 * xfaces.c (Fface_attributes_as_vector): New function.
16 (syms_of_xfaces): defsubr it.
17
075c507b
PJ
182001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
19
20 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21 variable `area'.
22
d492b584
PJ
232001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
24
25 * search.c (scan_newline): Remove unused variable
26 `selective_display'.
27
e2a57b34
MB
282001-10-25 Miles Bader <miles@gnu.org>
29
30 * dispextern.h (struct image): Add `background',
31 `background_valid', and `background_transparent' fields.
32 (image_background, image_background_transparent): New declarations.
33 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
34 * xfns.c (image_background, image_background_transparent)
35 (four_corners_best): New functions.
36 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
37 (gs_format): Add `:background' entry.
38 (lookup_image): Set IMG's background color if specified.
39 (pbm_load, xbm_load_image, png_load): Set IMG's background field
40 when appropriate.
41 (x_clear_image_1): Reset `background_valid' and
42 `background_transparent_valid' fields.
43 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
44 calculating it here. Set IMG's background_transparent field.
45 (enum xpm_keyword_index): Add XPM_BACKGROUND.
46 (enum png_keyword_index): Add PNG_BACKGROUND.
47 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
48 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
49 (enum gif_keyword_index): Add GIF_BACKGROUND.
50 (enum gs_keyword_index): Add GS_BACKGROUND.
51 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
52 Pre-calculate image background color where necessary.
53 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
54 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
55 color to use for image glyph reliefs.
56
b547b6e8
GM
572001-10-24 Gerd Moellmann <gerd@gnu.org>
58
d9e3b8c6
GM
59 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
60 in full-width rows.
61
b547b6e8
GM
62 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
63 Fix clearing of area not covered by scroll bar.
64
2beb36f9
PJ
652001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
66
67 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
68 and `real_start'.
69 (x_draw_image_foreground): Remove unused variables `mask' and
70 `xgcv'.
71 (glyph_rect): Remove unused variable `area'.
72
76cb5e06
GM
732001-10-24 Gerd Moellmann <gerd@gnu.org>
74
bdbdebff
GM
75 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
76
62e33982
GM
77 * xdisp.c (try_window_reusing_current_matrix): Use
78 row_containing_pos.
79 (row_containing_pos): Take additional argument DY. Treat
80 rows ending in middle of char differently.
81 (display_line): Handle tabs on window systems differently.
82
83 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
84 with additional argument.
85
86 * dispextern.h (row_containing_pos): Adjust prototype.
87
76cb5e06
GM
88 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
89 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
90 (try_window_id, try_window_reusing_current_matrix)
91 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
92 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
93
996fee11
PJ
942001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
95
c9e60620
PJ
96 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
97 gnuemacs).
98 (HAVE_BOXES): Fix typo in comment.
99 (push_menu_pane): Fix typo in comment.
100
3b552d56
PJ
101 * xdisp.c: (display_prop_string_p): Remove unused local declaration
102 of `Qwhen'.
103 (single_display_prop_string_p): Remove unused local declarations
104 of `Qwhen' and `Qmargin'.
105 (string_buffer_position): Remove unused variable `around'.
106 (store_frame_title): Remove unused variable `width'.
107
15c565ac
PJ
108 * window.c: Don't define max.
109 (coordinates_in_window): Remove unused variable `uy'.
110
a8818eb9
PJ
111 * widget.c: Don't define max.
112
996fee11
PJ
113 * process.c: Don't define max.
114 (create_process): Remove unused variable `buffer'.
115
496e1a5b
GM
1162001-10-23 Gerd Moellmann <gerd@gnu.org>
117
118 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation
119 error.
120
5905ae8b
EZ
1212001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
122
123 * xfaces.c (Finternal_set_lisp_face_attribute)
124 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
125 frame is on a windowed display.
126
24db49fb
GM
1272001-10-23 Gerd Moellmann <gerd@gnu.org>
128
c51488cd
GM
129 * dispnew.c (sync_window_with_frame_matrix_rows): Fix
130 handling of windows which aren't full-width, fix handling
131 of marginal areas.
132
24db49fb
GM
133 * lread.c (syms_of_lread)<recursive-load-depth-limit>: Raise to
134 50.
135
f0487f05
EZ
1362001-10-23 Andreas Schwab <schwab@suse.de>
137
138 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
139 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
140
f0a48a01
GM
1412001-10-23 Gerd Moellmann <gerd@gnu.org>
142
143 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
144 REAL_END. Notice if cursor gets overwritten.
145 (notice_overwritten_cursor): Take X positions as parameters.
146 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
147 around call to x_draw_glyphs.
148
a50a10a0
PJ
1492001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
150
fc11dff0
PJ
151 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
152 instead of C) and usage.
a50a10a0 153
fc11dff0
PJ
154 * editfns.c (char-to-string): Fix argument names (use CHAR instead
155 of C) and usage.
a50a10a0
PJ
156
157 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
158 `left', `max_width' and `max_height'.
159
8738febd
GM
1602001-10-23 Gerd Moellmann <gerd@gnu.org>
161
162 * xdisp.c (display_line): For a tab continued to the next line,
163 set row's ends_in_middle_of_char_p.
164
653c329b
GM
1652001-10-22 Gerd Moellmann <gerd@gnu.org>
166
167 * xdisp.c (display_line): Fix computation of continuation lines
168 width for TABs.
169
f958c5ac
PJ
1702001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
171
7ba51063
PJ
172 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
173 `Qlaplace'.
174
f958c5ac
PJ
175 * fileio.c: Remove unused code.
176
eb360291
MB
1772001-10-22 Miles Bader <miles@gnu.org>
178
179 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
180 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
181 Remove `DOC_STRINGS_IN_COMMENTS' cases.
182
98515cf0
JR
1832001-10-21 Jason Rumney <jasonr@gnu.org>
184
185 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
186
93026d88
EZ
1872001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
188
189 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
190 (Finsert_string): Avoid the multi-line string literals warning.
191
c9a95b79
MB
1922001-10-22 Miles Bader <miles@gnu.org>
193
194 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
195 (Fdocumentation): Don't use it.
196 (syms_of_doc): Don't initialize it.
197
198 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
199 * print.c (Fwith_output_to_temp_buffer): Likewise.
200 * window.c (Fsave_window_excursion): Likewise.
201 * editfns.c (Fsave_excursion, Fsave_current_buffer)
202 (Fsave_restriction): Likewise.
203 * eval.c (Frun_hooks, Frun_hook_with_args)
204 (Frun_hook_with_args_until_failure)
205 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
206 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
207 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
208 (Funwind_protect, Fcondition_case): Likewise.
209 * coding.c (Ffind_operation_coding_system): Likewise.
210 * keyboard.c (Ftrack_mouse): Likewise.
211
a3b10252
MB
2122001-10-21 Miles Bader <miles@gnu.org>
213
214 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
215 (Fmake_hash_table): Add usage: string to doc string.
216 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
217 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
218 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
219 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
220 (Fml_prefix_argument_loop): Likewise.
221
c6f73eec
PJ
2222001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
223
888ebd13
PJ
224 * fileio.c (Finsert_file_contents): Remove unused variable
225 `gap_size'.
226
c6f73eec
PJ
227 * sysdep.c (init_sys_modes): Change doc-string comments to `new
228 style' [w/`doc:' keyword].
229
230 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
231 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
232 comments to `new style' [w/`doc:' keyword].
233
3cf3436e
JR
2342001-10-21 Jason Rumney <jasonr@gnu.org>
235
236 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
237
c169b8f1
JR
238 * w32term.c (remember_mouse_glyph): New function.
239 (w32_mouse_position): Use it.
240 (note_mouse_movement): If the mouse moved off the glyph, remember
241 its new position.
242
4fdd691b
JR
243 * w32term.h (struct w32_output): Correct spelling of x_compatible.
244 (w32_display_info): Add mouse_face_overlay.
245
c169b8f1
JR
246 * w32term.c (notice_overwritten_cursor): Renamed from
247 note_overwritten_text_cursor. Rewritten to take glyph widths into
248 account.
249 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
250 (fast_find_string_pos): New function.
251 (fast_find_position): Return the correct vpos. Add parameter
252 STOP. In the final row, stop before glyphs having STOP as object.
253 Don't consider glyphs that are not from a buffer.
254 (fast_find_position) [0]: Add a presumably more correct version
255 for after 21.1.
256 (expose_window_tree, expose_frame): Don't compute intersections here.
257 (expose_window): Do it here instead.
258 (expose_window_tree, expose_window, expose_line): Return 1 when
259 overwriting mouse-face.
260 (expose_window): If W is the window currently being updated, mark
261 the frame garbaged.
262 (expose_frame): If mouse-face was overwritten, redo it.
263 (x_use_underline_position_properties): New variable.
264 (syms_of_xterm): DEFVAR_BOOL it.
265 (x_draw_glyph_string): Add comment to use it in future.
266 (x_draw_glyph_string): Restore clipping after drawing box.
267 Fix a computation of the underline position.
268 (w32_get_glyph_string_clip_rect): Minor cleanup.
269 (x_fill_stretch_glyph_string): Remove an assertion.
270 (x_produce_glyphs): Don't convert multibyte characters
271 to unibyte characters in unibyte buffers.
272 (cursor_in_mouse_face_p): New function.
273 (x_draw_stretch_glyph_string): Use it to choose a different GC
274 when drawing a cursor within highlighted text. Don't draw
275 background again if it has already been drawn.
276 (x_draw_glyph_string_box): Don't draw a full-width
277 box just because the glyph row's full_width_p flag is set.
278 (x_draw_glyphs): Fix computation of rightmost x for
279 full-width rows.
280 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
281 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
282 change bottom shadow accordingly. Some cleanup.
283 (x_update_window_end): Handle overwritten mouse face
284 also for tool bar windows.
285 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
286 DRAW is DRAW_IMAGE_RAISED.
287 (clear_mouse_face): Return 1 if text with mouse face was
288 actually redrawn. Make the function static. Reset
289 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
290 optimize away highlighting if we pass over that same overlay again.
291 (note_mouse_highlight): Call mouse_face_overlay_overlaps
292 to detect a case where we have to highlight a different region
293 despite not having left the currently highlighted region.
294 Set mouse_face_overlay in the x_display_info. Avoid changing the
295 mouse pointer shape when show_mouse_face has already done it, or
296 there is no need. Handle mouse-face and help-echo in strings.
297 (glyph_rect): New function.
298 (w32_mouse_position): Use it to raise the threshold for mouse
299 movement event generation.
300 (w32_initialize_display_info): Initialize the x_display_info's
301 mouse_face_overlay.
302 (w32_set_vertical_scroll_bar): Don't clear a zero height
303 or width area.
304 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
305 a widget to zero height.
306
3cf3436e 307 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 308 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
309 equivalents in menu_items.
310 (w32_menu_show): Don't overwrite an item's name with its key
311 description in case the description is a multibyte string.
312 (single_submenu): Some cleanup.
313
314 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
315 (postprocess_image): New function.
316 (lookup_image): Call it for all image types except PostScript.
317 (x_kill_gs_process): Call postprocess_image.
318 (tiff_error_handler, tiff_warning_handler): New functions.
319 (tiff_load): Install them as handlers.
320 (x_kill_gs_process): Recognize if someone has cleared the image
321 cache under us.
322 (valid_image_p): Protect better against invalid image
323 specifications. Previous code could signal an error.
324 (Fx_hide_tip, Fshow_tip): Doc fix.
325 (Fv_max_tooltip_size): New variable.
326 (syns_of_xfns): DEFVAR_LISP it.
327 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
328 window buffer to *tip* right after creating the frame. Set frame's
329 window_width. Use a maximum tooltip size specified by
330 Vx_max_tooltip_size, if that has valid contents.
331 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
332 Make sure the tooltip is completely visible.
333 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
334 (Fx_create_frame): Adjust the frame's height for presence
335 of the tool bar before calling x_figure_window_size.
336 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
337 when the window gets smaller.
338 (x_set_foreground_color): Set frame's cursor_pixel.
339 (x_set_foreground_color, x_set_background_color): Cleaned up.
340 (x_set_font): Handle case of x_new_fontset returning the same name
341 as before, although there was a change in fontsets.
342
386ca361
MB
3432001-10-21 Miles Bader <miles@gnu.org>
344
345 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
346 (Flogxor): Add usage: string to doc string.
347 * charset.c (Fstring): Likewise.
348 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
349 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
350
14ff1ee0
PJ
3512001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
352
03be2694
PJ
353 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
354
355 * alloc.c: Reindent DEFUNs with doc: keywords.
356
357 * abbrev.c (Finsert_abbrev_table_description): Reindent.
358
14ff1ee0
PJ
359 * frame.c: Change doc-string comments to `new style' [w/`doc:'
360 keyword].
361
71431a0e
GM
3622001-10-20 Gerd Moellmann <gerd@gnu.org>
363
6aa97356 364 * (Version 21.1 released.)
71431a0e 365
39f624fa
PJ
3662001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
367
c0a53abb
PJ
368 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes
369 removed.
370
371 * xdisp.c (invisible_text_between_p): Put prototype inside #if
372 0 because unused.
373
374 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
fdb82f93 375 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c: Change
c0a53abb 376 doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 377
abcce93a
MB
3782001-10-20 Miles Bader <miles@gnu.org>
379
380 The following changes remove the glyph_row `inverse_p' field,
381 which is never set anymore, due to other changes:
382
383 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
384 (reassert_line_highlight, change_line_highlight): Declarations removed.
385 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
386 (line_hash_code, row_equal_p, fake_current_matrices)
387 (build_frame_matrix_from_leaf_window, update_frame_line)
388 (update_frame_line, update_frame_line, update_frame_line):
389 Don't use `inverse_p' field.
390 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
391 change_line_highlight_hook.
392 (XTreassert_line_highlight, x_change_line_highlight):
393 Functions removed.
394 (x_fix_overlapping_area, x_write_glyphs, expose_area)
395 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
396 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
397 `inverse_p' field.
398 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
399 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
400 (w32_reassert_line_highlight, x_change_line_highlight):
401 Functions removed.
402 * w32console.c (reassert_line_highlight, change_line_highlight):
403 Functions removed.
404 (initialize_w32_display): Don't set reassert_line_highlight_hook
405 or change_line_highlight_hook.
406 (hl_mode): Function removed.
407 (reset_terminal_modes, set_terminal_modes, update_begin)
408 (update_end, w32_face_attributes, initialize_w32_display):
409 (clear_frame, ins_del_lines): Don't call it.
410 * termhooks.h (reassert_line_highlight_hook)
411 (change_line_highlight_hook): Declarations removed.
412 * term.c (reassert_line_highlight_hook)
413 (change_line_highlight_hook): Variables removed.
414 (reassert_line_highlight, change_line_highlight): Functions removed.
415 * msdos.c (IT_reassert_line_highlight)
416 (IT_change_line_highlight): Functions removed.
417 (internal_terminal_init): Don't set reassert_line_highlight_hook
418 or change_line_highlight_hook.
419 (highlight): Variable removed.
420 (IT_set_face, IT_update_begin, IT_update_end)
421 (IT_set_terminal_modes): Don't set or use it.
422
423 The following changes remove inverse-video support for terminals
424 that use a `magic cookie' standout mode. Due to changes in the
425 way mode-lines are displayed, such support no longer works
426 anyway, and it's probable that almost no one uses such terminals
427 anymore:
428
429 * term.c (standout_requested): Variable removed.
430 (update_end, highlight_if_desired): Don't use it.
431 (chars_wasted, copybuf): Variables removed.
432 (write_standout_marker): Function removed.
433 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
434 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
435 Don't use `chars_wasted' or `copybuf'.
436 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
437 Set `costs_set' to true.
438 (cursor_to, clear_end_of_line): Test `costs_set' instead of
439 `chars_wasted'.
440 (clear_end_of_line): Function removed.
441 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
442 (clear_to_end): Call `clear_end_of_line' instead of
443 `clear_end_of_line_raw'.
54800acb
MB
444 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
445 (term_init): Don't set them.
446 Turn off any standout/underline modes that require magic cookies.
447 (ins_del_lines, highlight_if_desired, background_highlight)
448 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
449 Remove special processing for magic-cookie standout modes.
450 (turn_off_face, turn_on_face): Remove special processing for
451 underline magic-cookie glitch.
abcce93a 452
0b5f679f
RS
4532001-10-19 Richard M. Stallman <rms@gnu.org>
454
455 * eval.c (syms_of_eval): Doc fixes.
456
5a4a5bd4
GM
4572001-10-19 Gerd Moellmann <gerd@gnu.org>
458
459 * xdisp.c (redisplay_internal): Don't clear echo area if the
460 mini-window is selected.
461
79f1f96c
MB
4622001-10-19 Miles Bader <miles@gnu.org>
463
b57c2708
MB
464 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
465 doesn't take precedence if the affected property's value is nil.
466
467 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
468
79f1f96c
MB
469 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
470 with fields and suggest using `forward-line' to avoid them.
471 * editfns.c (Fline_beginning_position, Fline_end_position):
472 Clarify documentation.
473
ef879104
SM
4742001-10-18 Stefan Monnier <monnier@cs.yale.edu>
475
476 * keymap.c (current_minor_maps): `override' only shadows its
477 correspondent in minor-mode-map-alist, not the whole tail.
478
97f4db8c
AI
4792001-10-18 Andrew Innes <andrewi@gnu.org>
480
481 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
482 optimization. The fontp->encoding array was not being initialized
483 correctly when compiled with optimizations by MSVC.
484
e6b70fd8
GM
4852001-10-18 Gerd Moellmann <gerd@gnu.org>
486
30903479 487 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 488
0e804d38
AI
4892001-10-17 Andrew Innes <andrewi@gnu.org>
490
491 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
492
493 * w32fns.c (w32_load_system_font): Cache codepage for font, in
494 font_info.charset field.
495
496 * w32term.c (w32_encode_char): Get cached codepage from font_info,
497 rather than working it out by calling w32_codepage_for_font for
498 every glyph.
499
66e5868a
AI
5002001-10-17 Andrew Innes <andrewi@gnu.org>
501
502 * w32term.c (w32_read_socket): Determine clipping rectangle for
503 the entire frame, including areas covered by scrollbars and the
504 menubar. This avoids internal arguments about whether a frame is
505 fully obscured or not.
506
15b00083
GM
5072001-10-17 Gerd Moellmann <gerd@gnu.org>
508
23e8bd86
GM
509 * xdisp.c (try_window_id): Undo last change. Give up if
510 window ends in strings.
30903479 511
9c6ba6d1 512 * xdisp.c (try_window_id): Don't display lines after the window
30903479 513 end if the rest of the window after the window end was already blank.
23e8bd86 514
30903479 515 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
516 for the release of 21.1.
517
30903479 518 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 519
945220bd
MB
5202001-10-17 Miles Bader <miles@gnu.org>
521
522 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
523 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
524 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
525 Change doc-string comments to `new style' [w/`doc:' keyword].
526 (DOC_STRINGS_IN_COMMENTS): Macro removed.
527 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
528 out make-docfile.
529
14242528
MB
5302001-10-16 Miles Bader <miles@gnu.org>
531
532 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
533
3ddf952f
GM
5342001-10-16 Gerd Moellmann <gerd@gnu.org>
535
536 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
537 *scratch*.
538
f3fbd155
KR
5392001-10-16 Ken Raeburn <raeburn@gnu.org>
540
541 Avoid the assumption that car and cdr slots of cons cells are
542 addressable lvalues; this allows for easier experimentation with
543 other lisp implementations that may not permit such accesses for
544 various reasons. Not quite complete -- buffer.c still needs some
545 work, and w32/mac files need rechecking -- so compile-time
546 enforcement is left disabled for now.
547
548 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 549 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
550 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
551 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
552 (XSETCAR, XSETCDR): New macros.
553 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
554 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
555 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
556 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
557 XSETCDR.
558 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
559 * buffer.c (record_buffer, Fbury_buffer)
560 (swap_out_buffer_local_variables, recenter_overlay_lists)
561 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
562 fields of a cons cell respectively.
563 * callint.c (quotify_args, Fcall_interactively): Likewise.
564 * ccl.c (Fregister_code_conversion_map): Likewise.
565 * coding.c (detect_coding_system): Likewise.
566 * composite.c (get_composition_id, make_composition_value_copy):
567 Likewise.
30903479
SM
568 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
569 (swap_in_symval_forwarding, set_internal, Fset_default)
570 (Fmake_variable_buffer_local, Fmake_local_variable)
571 (Fmake_variable_frame_local): Likewise.
f3fbd155 572 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479
SM
573 * keymap.c (Fset_keymap_parent, store_in_keymap)
574 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap):
f3fbd155
KR
575 Likewise.
576 * minibuf.c (get_minibuffer): Likewise.
577 * search.c (Fmatch_data): Likewise.
578 * textprop.c (extend_property_ranges): Likewise.
579 * undo.c (record_insert, Fundo_boundary, truncate_undo_list):
580 Likewise.
581 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
582 Likewise.
583 * w32term.c (x_delete_display): Likewise.
584 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
585 Likewise.
586 * xterm.c (x_list_fonts, x_load_font, x_delete_display):
587 Likewise.
588 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 589 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
590 (Fread_file_name): Use XSETCAR.
591 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
592 CHECK_NUMBER_CDR.
593 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
594 * frame.c (Fmake_terminal_frame): Use XSETCDR.
595 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
596 CHECK_NUMBER_CDR.
597 * keyboard.c (read_char): Alter list traversal to avoid taking the
598 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
599 (parse_menu_item): Use XSETCAR and XSETCDR.
600 (reach_char_x_menu_prompt): Use XSETCAR.
601 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
602 (Fcommand_execute): Use XSETCDR.
603 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
604 (openp): Change list traversal to avoid using XCAR as lvalue.
605 (read_list): Use XSETCDR.
606 * process.c (wait_reading_process_input): Change wait_for_cell
607 handling to avoid taking addresses of cons cell slots.
30903479
SM
608 * xselect.c (x_own_selection, x_handle_selection_clear)
609 (x_clear_frame_selections): Use XSETCDR.
610 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
611 (x_handle_property_notify, x_get_foreign_selection)
612 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 613
502150e5
PJ
6142001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
615
018ba359
PJ
616 * buffer.c: Put doc strings in comments.
617
30903479 618 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 619
b56ba8de
SS
6202001-10-15 Sam Steingold <sds@gnu.org>
621
622 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
623
6a0b793a
PJ
6242001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
625
30903479
SM
626 * process.c (process-inherit-coding-system-flag)
627 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
628 in comment.
629
a1f17501 630 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 631 arguments. Put doc strings in comments.
a65da641
PJ
632
633 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 634
aa601ad0
GM
6352001-10-15 Gerd Moellmann <gerd@gnu.org>
636
30903479 637 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 638
aa601ad0
GM
639 * window.c (select_window_1): Unfreeze window start. Remove a
640 doubled test for WINDOW being live.
641
288148a1
PJ
6422001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
643
dd8d1e71
PJ
644 * fns.c (Fmapconcat): Fix typo in a doc string.
645
288148a1
PJ
646 * dispnew.c (Fsleep_for): Fix typo in a doc string.
647
9f5eb4a3
GM
6482001-10-15 Gerd Moellmann <gerd@gnu.org>
649
650 * xterm.c (x_draw_glyph_string): Restore clipping after
651 drawing box.
652
dbae44c8
PJ
6532001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
654
30903479 655 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 656
0c88c937
SM
6572001-10-14 Stefan Monnier <monnier@cs.yale.edu>
658
56378db4
GM
659 * indent.c (skip_invisible): Use new retval of
660 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 661
845e4cf4
SM
662 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
663 If a parent is reached and noinherit is set, exit immediately.
664 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
665
0c88c937
SM
666 * s/ms-w32.h (EXEC_SUFFIXES):
667 * s/msdos.h (EXEC_SUFFIXES):
668 * process.h (EXEC_SUFFIXES): Remove.
669
670 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
671 (decode_suffixes): Remove.
672
673 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
674 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
675 (invisible_ellipsis_p): Remove.
0c88c937
SM
676
677 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
678 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
679 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
680 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
681 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 682
d19be8a9
PJ
6832001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
684
04d7d066
PJ
685 * lisp.h (Ftop_level): Add prototype.
686
d624284c
PJ
687 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
688 (XTread_socket): Improve style of comments to follow other
689 comments.
690
a87414f9
PJ
691 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
692 is already prototyped in included lisp.h).
693
d19be8a9
PJ
694 * frame.c (Fset_mouse_position): Improve style of comment to
695 follow other comments.
696 (Fset_mouse_pixel_position): Improve style of comment to follow
697 other comments.
698 (Fmake_frame_visible): Doc fix and typo in comment.
699 (Fmake_frame_invisible): Doc fix and typo in comment.
700 (Ficonify_frame): Fix typo in comment.
701
c061c855
GM
7022001-10-14 Gerd Moellmann <gerd@gnu.org>
703
37f6b5b6 704 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 705 * term.c, alloc.c: Put doc strings in comments.
c061c855 706
e641b454
GM
7072001-10-13 Gerd Moellmann <gerd@gnu.org>
708
709 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
710 Provide definitions for doc strings in comments.
711
712 * fns.c: Put doc strings in comments.
713
51724e26
EZ
7142001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
715
716 * dired.c (file_name_completion): Ignore a candidate directory if
717 it matches an element in completion-ignored-extensions that ends
718 in a slash.
719 (syms_of_dired) <completion-ignored-extensions>: Mention the above
720 feature in the doc string.
721 (Ffile_name_completion): Ditto.
722
be5fc59b
SM
7232001-10-12 Stefan Monnier <monnier@cs.yale.edu>
724
5a1373f3
SM
725 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
726
727 * xfns.c (syms_of_xfns): Update calls to Fprovide.
728
729 * lisp.h (Fprovide): Update prototype.
730 (Ffeaturep, invisible_p): Remove.
731
bbc4a3d3 732 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
733 (DOLIST, LOOP_PROPVAL): New macros.
734 (invisible_p, invisible_ellipsis_p): Use them.
735 (invisible_noellipsis_p): New function.
736 (syms_of_xdisp): Use empty_string.
737
738 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
739
740 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
741 (syms_of_lread) <Vafter_load_alist>: Update docstring.
742
743 * print.c (Fwith_output_to_temp_buffer): Align with
744 internal_with_output_to_temp_buffer.
745 (print_preprocess): Use traverse_intervals_noorder.
746 (print_object): Update call to traverse_intervals.
747
748 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
749 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
750
751 * intervals.c (traverse_intervals_noorder): New function.
752 (search_for_interval, count_intervals): Use it.
753 (traverse_intervals): Use less stack space and drop `depth' arg.
754
755 * fns.c (Ffeaturep): Add new `subfeature' arg.
756 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
757 (Qsubfeatures): New var.
758 (syms_of_fns): Initialize it.
759
026f408d
SM
760 * keymap.c (Fkey_description): Use empty_string.
761 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
762 (syms_of_keymap): Setup inheritance between maps.
763 Don't export Sdescribe_bindings_internal any more.
764
be5fc59b
SM
765 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
766
3365175e
GM
7672001-10-12 Gerd Moellmann <gerd@gnu.org>
768
769 * xterm.c (notice_overwritten_cursor): Renamed from
770 note_overwritten_text_cursor. Rewritten to take glyph widths into
771 account.
772
2ab7765c
EZ
7732001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
774
775 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
776 multi-line strings without a trailing "\n\".
777
311346bb
PJ
7782001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
779
780 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
781 defined.
782
2168e04d
SM
7832001-10-11 Stefan Monnier <monnier@cs.yale.edu>
784
026f408d
SM
785 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
786
c0ec53ad
SM
787 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
788 * w32proc.c (sys_spawnve):
789 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
790 * w32.c (check_windows_init_file):
791 * sound.c (Fplay_sound):
026f408d 792 * emacs.c (init_cmdargs):
c0ec53ad
SM
793 * process.c (Fstart_process): Update calls to openp.
794
795 * callproc.c (Vexec_suffixes): New var.
796 (Fcall_process): Update call to openp.
797 (decode_suffixes): New function.
798 (syms_of_callproc): Init exec-suffixes.
799
800 * lread.c (Vload_suffixes, default_suffixes): New vars.
801 (openp): Take a lisp list of suffixes.
802 Check for file-name-handlers even if the file was absolute already.
803 (syms_of_lread): Declare load-suffixes.
804 (Fload): Fix up call to openp.
805 Don't bother checking for file-name-handler at the very beginning.
806
f6333468
SM
807 * keymap.h (Fcopy_keymap): Don't export.
808
809 * lisp.h (empty_string): Declare.
c0ec53ad
SM
810 (Vload_suffixes, Vexec_suffixes): Declare.
811 (openp): Update prototype.
f6333468
SM
812
813 * emacs.c (empty_string): New var.
814 (syms_of_emacs): Initialize it.
815
816 * search.c (wordify): Use it.
817
818 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
819 selected window if it's not displayed there. Handle the case
820 when the window is dedicated.
821 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
822
823 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
824
2168e04d
SM
825 * syntax.h (struct gl_state_s): Change the meaning of b_property.
826 Remove left_ok and right_ok.
827 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
828 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
829 new meaning of b_property.
830
831 * syntax.c (update_syntax_table): Simplify.
832 (Fforward_comment): Don't skip quoted chars when going backward.
833
13d95cc0
GM
8342001-10-11 Gerd Moellmann <gerd@gnu.org>
835
beb0990f
GM
836 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
837 in case I is of some unsigned type, in which case
838 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
839 comparison becomes bogus.
840
cb938d46
GM
841 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
842 (Fuser_full_name): Fix bug treating a float as a fixnum.
843
844 * data.c (Fstring_to_number): Use make_fixnum_or_float.
845
846 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 847
13d95cc0
GM
848 * lisp.h (circular_list_error): Add prototype.
849
850 * data.c (Qcircular_list): New variable.
851 (circular_list_error): New function.
852 (syms_of_data): Initialize it Qcircular_list.
853
e35f6ff7
SM
8542001-10-10 Stefan Monnier <monnier@cs.yale.edu>
855
856 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
857 casefiddle.c, buffer.c: Include keymap.h.
858
619632ac
GM
8592001-10-10 Gerd Moellmann <gerd@gnu.org>
860
861 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
862 options. From Dave Love <d.love@dl.ac.uk>.
863
5e5388f6
GM
8642001-10-09 Gerd Moellmann <gerd@gnu.org>
865
866 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
867 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
868
14a3dff7
GM
869 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
870 unsigned char.
871 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 872
76ba8daf
AI
8732001-10-08 Andrew Innes <andrewi@gnu.org>
874
875 * lisp.h [max]: Undef min and max before redefining them.
876
877 * w32gui.h: Do not undef min and max.
878
879 * w32heap.h: Do not undef min and max.
880
881 * s/ms-w32.h: Do not undef min and max.
882
166253cb
SM
8832001-10-08 Stefan Monnier <monnier@cs.yale.edu>
884
885 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
886
0c4d9527
SS
8872001-10-08 Sam Steingold <sds@gnu.org>
888
889 * keymap.c (current-active-maps): Quote newlines (compilation error).
890
14bfa771
EZ
8912001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
892
893 * Makefile.in (lisp, shortlisp): Replace bindings.el with
894 bindings.elc, since otherwise doc strings in bindings.el get wrong
895 offsets in etc/DOC.
896
bdb7aa47
SM
8972001-10-08 Stefan Monnier <monnier@cs.yale.edu>
898
9985827f
SM
899 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
900
901 * keyboard.h (map_prompt): Remove.
902
903 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 904 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 905
bdb7aa47
SM
906 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
907
908 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
909
910 * keyboard.c (map_prompt): Remove.
911 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
912 Use Fkeymap_prompt.
913
914 * keymap.h: New file. Extracted from lisp.h.
915
9985827f
SM
916 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
917 (accessible_keymaps_1): New function.
918 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
919 (Fwhere_is_internal): Use Fcurrent_active_maps.
920 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
921 Insert in current buffer rather than standard-output.
922 Don't call `help-mode'. Export to elisp.
923 (describe_buffer_bindings): New wrapper.
924 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
925 and Sdescribe_buffer_bindings.
926
402c9a51
GM
9272001-10-08 Gerd Moellmann <gerd@gnu.org>
928
9985827f 929 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
930 Remove code setting signal handler.
931
9985827f 932 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
933 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
934
3fe81fdf
PJ
9352001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
936
937 * keyboard.c: Don't define min/max.
938
55fa7820
GM
9392001-10-08 Gerd Moellmann <gerd@gnu.org>
940
9985827f 941 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 942 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 943 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 944 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 945 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
946 Don't define min/max.
947
948 * lisp.h (min, max): New macros.
949
55fa7820
GM
950 * puresize.h (BASE_PURESIZE): Increase to 725000.
951
1aad31e4
PJ
9522001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
953
9180dc8c
PJ
954 * xfaces.c (free_frame_menubar): Add prototype.
955
01f67d2c
PJ
956 * lisp.h (init_window): Add prototype.
957
958 * editfns.c: Include ctype.h.
959
960 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 961 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
962 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
963 variable `sb'.
964
5f351ff1
PJ
965 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
966 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
967 `popup_activated_flag' and `title'.
968
479dfe87
PJ
969 * doc.c (Fdocumentation_property): Fix typo in a doc string.
970
dff49fc8
PJ
971 * emacs.c (main): Remove extra `;'.
972
248ac615
PJ
973 * atimer.h (struct atimer): Fix typos in a comment.
974
975 * atimer.c: Fix typo.
976
af232c7d
PJ
977 * Makefile.in: Fix typo.
978
979 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 980
d876f455
MB
9812001-10-07 Miles Bader <miles@gnu.org>
982
983 * Makefile.in (lisp, shortlisp): Add `button.elc'.
984
0037e2f2
KR
9852001-10-07 Ken Raeburn <raeburn@gnu.org>
986
b056f36d
KR
987 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
988 Lisp_Object.
989
0037e2f2
KR
990 * lisp.h (Ffield_end): Declare.
991
1a4372ef
GM
9922001-10-07 Gerd Moellmann <gerd@gnu.org>
993
a4a74e8c
GM
994 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
995
996 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
997
998 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
999
1000 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1001
1a4372ef
GM
1002 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1003 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1004
1005 * alloc.c (inhibit_garbage_collection): Simplify.
1006 (Fmemory_use_counts): Ditto.
1007
9985827f 1008 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
1009 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1010 most-negative-fixnum.
1011
9985827f 1012 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
1013 (FIXNUM_OVERFLOW_P): New macros.
1014
4650e362
MB
10152001-10-06 Miles Bader <miles@gnu.org>
1016
1017 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1018 scroll_bar_bottom_shadow_pixel fields.
1019 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1020 for the shadows, and tell the toolkit about them if we succeed.
1021 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1022 Free scroll-bar shadow colors.
1023 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1024 Free scroll-bar shadow colors when the background color changes.
1025 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1026 Initialize scroll-bar shadow-color fields.
1027
ace64e0a
GM
10282001-10-05 Gerd Moellmann <gerd@gnu.org>
1029
1030 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1031
ec66bdc7
MB
10322001-10-05 Miles Bader <miles@gnu.org>
1033
9985827f
SM
1034 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1035 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 1036 New functions (were in simple.el).
9985827f 1037 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
1038 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1039 (syms_of_minibuf): Initialize them.
1040
a0fb4492
GM
10412001-10-05 Gerd Moellmann <gerd@gnu.org>
1042
1043 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1044 (tiff_load): Install them as error and warning handler.
1045
0bcf87c1
AI
10462001-10-04 Andrew Innes <andrewi@gnu.org>
1047
1048 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1049 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 1050 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
1051 (x_to_w32_charset): Handle private format for unknown charsets.
1052 Handle wildcards in charset spec, by ignoring them.
1053 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1054 "*-" prefix from charset.
1055 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1056 handle the truncated font spec form constructed by font_list_1, so
1057 that we correctly identify the charset fields. Don't remove "*-"
1058 prefix from charset.
1059 (w32_list_synthesized_fonts): Fix argument to alloca.
1060
c89e4bc5
GM
10612001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1062
1063 * window.h (MINI_WINDOW_P): Use NILP.
1064
1065 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1066
1067 * termhooks.h (struct input_event): Use proper type for `kind'.
1068
10692001-10-04 Gerd Moellmann <gerd@gnu.org>
1070
1071 This handles unknown keysyms better than before. For example,
1072 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
1073 Emacs formerly completely ignored F5. With the change, it derives
1074 a key symbol from the name of the X keysym, `ccaron' in this case.
1075 Reported by Martin Buchholz.
1076
1077 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
1078 unknown keysyms.
1079
1080 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
1081 that EVENT->code isn't a function key, use the keysym's name.
1082
10832001-10-04 Gerd Moellmann <gerd@gnu.org>
1084
1085 FOREACH is a macro that should make it easier to loop over Lisp
1086 lists with checks for cycles and proper lists.
1087
1088 * lisp.h (LIST_END_P, FOREACH): New macros.
1089
10902001-10-04 Gerd Moellmann <gerd@gnu.org>
1091
1092 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
1093 called for a lost connection. Prevent dumping core in this case.
1094 Instead print the X error, and exit. On user request.
1095
1096 * xterm.c (error_msg): New variable.
1097 (x_fatal_error_signal): New function.
1098 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
1099 as fatal_error_signal_hook around the call to XtCloseDisplay.
1100
1101 * emacs.c (fatal_error_signal_hook): New variable.
1102 (fatal_error_signal): Call that function.
1103
11042001-10-04 Gerd Moellmann <gerd@gnu.org>
1105
1106 With this, Emacs prints how much pure storage it will
1107 approximately need in case pure storage overflows while dumping.
1108
1109 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
1110 New variables.
1111 (init_alloc_once): Initialize new variables.
1112 (PURE_POINTER_P): Use new variables.
1113 (pure_alloc): If pure storage overflows, allocate from the heap.
1114 (check_pure_size): New function.
1115 (Fgarbage_collect): Don't GC if pure storage has overflowed.
1116
1117 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
1118 (check_pure_size): Add prototype.
1119
1120 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
1121
11222001-10-04 Gerd Moellmann <gerd@gnu.org>
1123
1124 This adds a post-gc-hook that's run with GC inhibited.
1125 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
1126
1127 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
1128 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
1129 (Fgarbage_collect): Run post-gc-hook.
1130
11312001-10-04 Gerd Moellmann <gerd@gnu.org>
1132
1133 This adds `defvaralias' and `indirect-variable'. Changes not
1134 directly related to this feature are there to gain the same
1135 performance again as before variable aliases.
1136
1137 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
1138 code to get and set symbol values, to take defvaralias into account.
1139
1140 (Note: the new `constant' bit-flag in symbols would make it
1141 possible to define arbitrary read-only variables, e.g. with
1142 `defconst'.)
1143
1144 Documentation is in lispref/variables.texi. Added to NEWS.
1145
1146 * lisp.h (enum symbol_interned): New enumeration.
1147 (struct Lisp_Symbol): Remove member `obarray', add
1148 `indirect_variable', `constant', and `interned'.
1149 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
1150 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
1151 (indirect_variable): Add prototype.
1152
1153 * print.c (print_preprocess, print_object): Test internedness of
1154 symbols differently.
1155
1156 * lread.c (Fintern, Funintern): Set symbol's interned and constant
1157 bit-fields.
1158 (init_obarray): Likewise for t and nil.
1159
1160 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1161 (Fdefvaralias): New function.
1162 (specbind): Simplify the test if symbol is a constant.
1163 (syms_of_eval): Defsubr Fdefvaralias.
1164
1165 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1166 (Qcyclic_variable_indirection): New variable.
1167 (Fkeywordp): Check for internedness differently.
1168 (Fmakunbound): Simplify the test if symbol is a constant.
1169 (indirect_variable, Findirect_variable): New functions.
1170 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1171 aliased symbol.
1172 (let_shadows_buffer_binding_p): Check for variable aliases.
1173 (set_internal): Simplify the test if SYMBOL is a constant.
1174 If SYMBOL has a buffer-local value and is an alias, use the aliased
1175 symbol instead.
1176 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1177 Sindirect_variable.
1178
1179 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1180 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1181 set directly.
1182
1183 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1184
1185 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1186 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1187 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1188
ab952a4f
GM
11892001-10-04 Gerd Moellmann <gerd@gnu.org>
1190
1191 * Branch for 21.1.
b56ba8de 1192
ba88ff28
MB
11932001-10-03 Miles Bader <miles@gnu.org>
1194
1195 * callproc.c (syms_of_callproc): Explicitly state in the
1196 documentation for `process-environment' that earlier entries take
1197 precedence over later ones.
1198
ae1a9581
MB
11992001-10-02 Miles Bader <miles@gnu.org>
1200
1201 * textprop.c (Fnext_char_property_change)
1202 (Fprevious_char_property_change): Remove reference to non-existant
1203 argument OBJECT from doc-string.
1204
257e3f57
GM
12052001-10-01 Gerd Moellmann <gerd@gnu.org>
1206
1207 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1208 (try_window_id): Skip back over lines ending in a newline from a
1209 string.
1210
1211 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1212 New bit flag
1213
c1f29759
RS
12142001-10-01 Richard M. Stallman <rms@gnu.org>
1215
1216 * search.c (Freplace_match): Doc fix.
1217
c30dce3d
AI
12182001-09-28 Andrew Innes <andrewi@gnu.org>
1219
1220 * w32menu.c (set_frame_menubar): Take into account that
1221 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1222 <raeburn@gnu.org>.
1223
03be5931
EZ
12242001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1225
1226 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1227
75bec752
PJ
12282001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1229
1230 * s/gnu-linux.h: Fix a typo in comment.
1231
83100e0a
AS
12322001-09-28 Andreas Schwab <schwab@suse.de>
1233
1234 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1235 nocombreloc, in case -z combreloc is the default.
1236
a74b48cf
GM
12372001-09-28 Gerd Moellmann <gerd@gnu.org>
1238
1239 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1240 really going on here.
1241
09c4719e
SM
12422001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1243
1244 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1245
f7d5d963
EZ
12462001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1247
1248 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1249 utf-8, menu-bar, and latin-N.
1250 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1251 unconditionally now.
1252 (lisp): Add latin-N, since they are preloaded.
1253
9240e746
GM
12542001-09-27 Gerd Moellmann <gerd@gnu.org>
1255
14531065
GM
1256 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1257 to the left. Some cleanup.
1258
9240e746
GM
1259 * xdisp.c (display_mode_element): One more case where a string's
1260 multibyteness should be used for display.
1261
edd1e654
GM
12622001-09-26 Gerd Moellmann <gerd@gnu.org>
1263
b02439c8
GM
1264 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1265 reading at EOF.
1266
032906b1 1267 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 1268 of the only temporarily set echoing flag for deciding when
032906b1
GM
1269 the cancel echoing.
1270
1271 * keyboard.c (echo_kboard): Make externally visible.
1272
1273 * lisp.h (echo_kboard): Declare extern.
1274
cb617e7c 1275 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 1276 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
1277 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1278 this round of redisplay if make_cursor_line_fully_visible fails.
1279 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 1280 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
1281
1282 * dispextern.h (required_matrix_width, required_matrix_height):
1283 Add prototypes.
1284
09c4719e
SM
1285 * dispnew.c (required_matrix_width, required_matrix_height):
1286 New functions.
cb617e7c 1287 (allocate_matrices_for_window_redisplay)
09c4719e
SM
1288 (allocate_matrices_for_frame_redisplay: Use them.
1289 Remove parameters CH_DIM.
cb617e7c 1290
edd1e654
GM
1291 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1292 and selected_window to the frame of the window whose mode-lines
1293 are displayed, and to the window itself.
1294 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 1295 here.
edd1e654 1296
924b604c
GM
12972001-09-25 Gerd Moellmann <gerd@gnu.org>
1298
daba7643
GM
1299 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1300 the image cache under us.
1301
b7a22712 1302 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 1303 with a string value, use that string's multibyteness for displaying.
b7a22712 1304
ad648212
GM
1305 * keyboard.c (read_char): Don't clear a message for a switch-frame
1306 event. From Stefan Monnier <monnier@cs.yale.edu>.
1307
9f8531e5
GM
1308 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1309 version for after 21.1.
1310
1311 * xdisp.c (row_containing_pos): Make externally visible.
1312
1313 * dispextern.h (row_containing_pos): Add prototype.
1314
924b604c
GM
1315 * process.c (send_process): Disable composition if from_byte < 0.
1316 From Kenichi Handa <handa@etl.go.jp>.
1317
6f3f0db4
GM
13182001-09-24 Gerd Moellmann <gerd@gnu.org>
1319
c69c0ebc
GM
1320 * xterm.c (refreshicon): Function removed.
1321
d1182bc4
GM
1322 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1323
1324 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1325
1326 * xterm.c (toplevel): Remove includes in #if 0.
1327
6f3f0db4
GM
1328 * process.c (sigchld_handler) [LINUX]: Don't return from
1329 the signal handler at the end of the loop.
1330
59957f85
GM
13312001-09-21 Gerd Moellmann <gerd@gnu.org>
1332
09c4719e
SM
1333 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1334 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 1335
a0528984
EZ
13362001-09-21 Markus Rost <rost@math.ohio-state.edu>
1337
1338 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1339
db92b288
GM
13402001-09-20 Gerd Moellmann <gerd@gnu.org>
1341
3fed8ad5
GM
1342 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1343 since this function can be called during GC.
1344
db92b288
GM
1345 * callproc.c (Fcall_process): Handle errors from pipe(2).
1346 (child_setup): Delete code in #ifdef vipc.
1347
7121b85a
GM
13482001-09-19 Gerd Moellmann <gerd@gnu.org>
1349
72f62cb5
GM
1350 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1351 (display_mode_element): Display the string from decode_mode_spec
1352 depending on its multibyteness.
1353
a2697022
GM
1354 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1355
7121b85a
GM
1356 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1357
bfc97351
GM
13582001-09-18 Gerd Moellmann <gerd@gnu.org>
1359
c9063433
GM
1360 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1361 recursive_edit_unwind.
1362 (recursive_edit_unwind): Set kboard state according to
1363 SINGLE-KBOARD.
1364
3fbdba3e
GM
1365 * buffer.c (modify_overlay): Don't do nothing if START == END;
1366 This can still be a modification, for example when an overlay has
1367 a before-string or after-string.
1368 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1369 an overlay with before-string or after-string.
1370
1270031d
GM
1371 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1372 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1373
bfc97351
GM
1374 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1375 first_unchanged_at_end_row is in front of
1376 last_unchanged_at_beg_row. This code should be removed after the
1377 release of 21.1.
1378
d8a973aa
GM
13792001-09-17 Gerd Moellmann <gerd@gnu.org>
1380
e18c8b8d
GM
1381 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1382 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1383
d8a973aa
GM
1384 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1385 versions >= 2.95.
1386
ed7d6ba4
EZ
13872001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1388
1389 * dired.c (Ffile_attributes): Doc fix.
1390
551629f9
GM
13912001-09-14 Gerd Moellmann <gerd@gnu.org>
1392
1393 * fileio.c (Ffile_symlink_p): Fix last change.
1394
1395 * filelock.c (current_lock_owner): Fix last change.
1396
4c8c7926
GM
13972001-09-13 Gerd Moellmann <gerd@gnu.org>
1398
620c4704
GM
1399 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1400 take that to mean that the buffer is too small.
1401
81c3310d
GM
1402 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1403 that to mean that the buffer is too small.
1404
06fd3792
GM
1405 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1406 current buffer's multibyteness when discarding the iterator's
1407 stack.
1408
4c8c7926
GM
1409 * xfns.c (Fx_window_property): Handle case that property gets
1410 deleted between the two calls to XGetWindowProperty.
1411
9a72e4c1
GM
14122001-09-11 Gerd Moellmann <gerd@gnu.org>
1413
bd819d14 1414 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 1415
a41edd99
GM
1416 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1417 in addition to read-only.
1418
1419 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1420 to t in addition to read-only.
1421
1422 * lisp.h (Qinhibit_modification_hooks): Declare.
1423
1424 * insdel.c (Qinhibit_modification_hooks): New variable.
1425 (syms_of_insdel): Initialize and staticpro it.
1426
d4881c6a
GM
1427 * textprop.c (verify_interval_modification): Don't run
1428 modification-hooks if inhibit_modification_hooks.
1429
1430 * dispnew.c (set_window_cursor_after_update): Fix code
1431 finding glyph row containing cursor when cursor_in_echo_area
1432 is >= 0.
1433
9a72e4c1
GM
1434 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1435 (add_to_log): Use bcopy instead of strcpy.
1436 (init_from_display_pos): Use an explicit loop over bytes in
1437 overlay strings instead of calling index.
1438
f4a374a1
GM
14392001-09-10 Gerd Moellmann <gerd@gnu.org>
1440
300e57bd
GM
1441 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1442
1443 * dispnew.c (direct_output_for_insert): Don't change IT's
1444 stop_charpos to something in front of its current position.
1445
f4a374a1
GM
1446 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1447 `format'.
1448
7e4cbc91
RS
14492001-09-10 Richard M. Stallman <rms@gnu.org>
1450
1451 * frame.c (Fmouse_position): Doc fix.
1452
6afad91e
GM
14532001-09-07 Gerd Moellmann <gerd@gnu.org>
1454
1455 * xdisp.c (init_from_display_pos): Don't compare the result
1456 of calling index with NULL.
1457
f76e0368
GM
14582001-09-06 Gerd Moellmann <gerd@gnu.org>
1459
1460 * xfns.c (x_set_background_color): Don't change the colors
1461 of the X window of scroll bar widgets.
1462
9ead1b60
AI
14632001-09-05 Andrew Innes <andrewi@gnu.org>
1464
1465 * w32fns.c (w32_createwindow): Undo last change.
1466
c3b497b3
GM
14672001-09-05 Gerd Moellmann <gerd@gnu.org>
1468
08e1d6df
GM
1469 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1470
c3b497b3
GM
1471 * xdisp.c (string_buffer_position): Use *single_char_property*
1472 functions instead of the *single_property* functions.
b56ba8de 1473
8f860180
AI
14742001-09-04 Andrew Innes <andrewi@gnu.org>
1475
9a72e4c1
GM
1476 * w32term.c (w32_read_socket): Add more information to debugging
1477 output.
8f860180
AI
1478
1479 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1480 from Emacs frames, so that calls to GetClipBox in w32term.c
1481 correctly report when part of a frame is visible (including
1482 scrollbars, etc). This prevents repeated redrawing of frames when
1483 only a scrollbar is visible.
1484 (w32_wnd_proc): Add more frame information to debugging output.
1485
2ee1aa00
SM
14862001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1487
1488 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1489
e3b22517
GM
14902001-09-03 Gerd Moellmann <gerd@gnu.org>
1491
7e376260
GM
1492 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1493 help-echo for a string which doesn't have help-echo itself, use
1494 get-char-property to obtain the help-echo from the string's buffer
1495 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1496 have mouse-face, look ``under'' the string for mouse-face from an
1497 overlay.
1498 (fast_find_position): Add parameter STOP. In the final row, stop
1499 before glyphs having STOP as object. Don't consider glyphs that
1500 are not from a buffer.
1501
e3b22517
GM
1502 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1503
9a249bba
EZ
15042001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1505
1506 * fns.c (Fmd5): Doc fix.
1507
c9979669
GM
15082001-08-31 Gerd Moellmann <gerd@gnu.org>
1509
1510 * composite.c (update_compositions): Do nothing if
1511 inhibit-modification-hooks is set.
1512
9584e63a
GM
15132001-08-30 Gerd Moellmann <gerd@gnu.org>
1514
986ec8f2 1515 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 1516 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
1517 glyph matrices etc. in a core dump.
1518
92a25631
GM
1519 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1520 (syms_of_xdisp): Initialize them.
1521 (handle_single_display_prop): Don't change point, bind `object',
1522 `position', and `buffer-position' instead to the object having the
2ee1aa00 1523 `display' property, position in the object and position in the buffer.
92a25631 1524
9584e63a
GM
1525 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1526 of the buffer if REPLACE is non-nil.
1527
d38633a3
GM
15282001-08-29 Gerd Moellmann <gerd@gnu.org>
1529
1530 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1531
f4fccc1e
EZ
15322001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1533
1534 * w32term.c (x_set_glyph_string_background_width)
1535 (show_mouse_face): Track the last changes in xterm.c.
1536
eaaa65b0
GM
15372001-08-28 Gerd Moellmann <gerd@gnu.org>
1538
7b0870b2
GM
1539 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1540 string's background width so that multi-line mouse-face is drawn
1541 to the right edge of the window.
1542 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1543 glyphs.
1544
6b6e2422 1545 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 1546 before inserting/writing glyphs.
6b6e2422 1547
eaaa65b0
GM
1548 * xdisp.c (display_mode_element): Use string_byte_to_char to
1549 determine character positions in strings, use chars_in_text
1550 instead of strwidth.
1551 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1552 a matrix as parameter; this is easier to use from GDB.
1553
9ad62cf8
MB
15542001-08-28 Miles Bader <miles@gnu.org>
1555
2ee1aa00
SM
1556 * textprop.c (Fprevious_single_char_property_change)
1557 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 1558
32171635
GM
15592001-08-27 Gerd Moellmann <gerd@gnu.org>
1560
47d57b22
GM
1561 * fileio.c (Finsert_file_contents): Allocate, restore, and
1562 free composition data in the case of REPLACE not being nil.
1563
1564 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1565 there exist overlay strings with newlines at POS.
1566 (text_outside_line_unchanged_p): Return 0 if changes start at
1567 START and overlays exist at START. Likewise for END.
1568 (try_window_id): Give up if init_to_row_end returns 0.
1569
32171635
GM
1570 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1571 unconditionally.
1572
e1249666
GM
15732001-08-24 Gerd Moellmann <gerd@gnu.org>
1574
33954c45
GM
1575 * keymap.c (access_keymap): Return the cdr of the binding of
1576 a generic character instead of its definition (KEY . BINDING).
1577
e1249666
GM
1578 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1579 to 0 also in the REPLACE case.
1580
fb4c6c96
AC
15812001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1582
1583 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1584 open to determine whether file is readable (as for DOS_NT).
1585
59ecf80b
GM
15862001-08-23 Gerd Moellmann <gerd@gnu.org>
1587
1588 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1589 coding.type is coding_type_no_conversion or coding_type_raw_text,
1590 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1591 non-nil instead of just setting enable_multibyte_characters in the
1592 buffer to nil.
1593
40e33037
GM
15942001-08-22 Gerd Moellmann <gerd@gnu.org>
1595
374388c3
GM
1596 * dispextern.h (struct face_cache): Add member
1597 menu_face_changed_p.
1598
1599 * xfaces.c (menu_face_changed_default): New variable.
1600 (menu_face_changed_count): Variable removed.
1601 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1602 the menu_face_changed_default flag, otherwise set the FRAME's
1603 menu_face_changed_p flag if the `menu' face has been changed.
1604 Prevent calling set_font_frame_param if FRAME is t.
1605 (make_face_cache): Initialize cache's menu_face_changed_p
1606 from menu_face_changed_default.
1607 (realize_basic_faces): Look into the frame's face cache to
1608 determine if the menu appearance needs updating.
1609
40e33037
GM
1610 * keymap.c (access_keymap): Fix last change to not consider
1611 IDX when it has modifiers.
1612
859ea4b8
GM
16132001-08-21 Gerd Moellmann <gerd@gnu.org>
1614
1615 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1616 . BINDING) exists, where GENERIC-CHAR is the generic character of
1617 the charset of IDX, return BINDING unless there exists a binding
1618 for IDX itself.
1619
e8660d73
GM
16202001-08-16 Gerd Moellmann <gerd@gnu.org>
1621
cca1b1d7
GM
1622 * xrdb.c (SYSV): Don't define on Solaris 2.
1623 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1624
e8660d73 1625 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 1626 of the screen line, not text line, containing IT's current position.
e8660d73 1627
93aba6fc
GM
16282001-08-15 Gerd Moellmann <gerd@gnu.org>
1629
288d4e06
GM
1630 * window.c (window_scroll_pixel_based): Don't recenter if
1631 PT is partially visible in the window.
1632
3452efc2
SM
1633 * xterm.c (expose_window_tree, expose_window, expose_line):
1634 Return 1 when overwriting mouse-face.
82f053ab
GM
1635 (expose_frame): If mouse-face was overwritten, redo it.
1636
93aba6fc
GM
1637 * xfaces.c (x_update_menu_appearance): Don't call
1638 set_frame_menubar, let the next redisplay do it.
1639
858a55c1
AI
16402001-08-14 Andrew Innes <andrewi@gnu.org>
1641
1642 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1643 drawing glyph string.
1644
3a990b67
EZ
16452001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1646
1647 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1648 running HI-UX/MPP.
1649
04386463
GM
16502001-08-14 Gerd Moellmann <gerd@gnu.org>
1651
1652 * xfaces.c (x_update_menu_appearance): Save and restore value of
1653 interrupt_input_blocked.
1654
3e6385a4
GM
16552001-08-13 Gerd Moellmann <gerd@gnu.org>
1656
b0e619b4
GM
1657 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1658 a line start, move back to the line start.
3452efc2 1659
0de73d5a
GM
1660 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1661 exactly when a mini-buffer is active.
1662
3e6385a4
GM
1663 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1664 in units of 1/8 character on non window-system frames.
1665 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1666
d1b5f629
EZ
16672001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1668
1669 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1670 a doc string.
1671
eaa2319f
GM
16722001-08-09 Gerd Moellmann <gerd@gnu.org>
1673
8e3189f0
GM
1674 * keyboard.c (Vpre_help_message): New variable.
1675 (syms_of_keyboard): Initialize and staticpro it.
1676 (show_help_echo): Record current message before displaying a
1677 help-echo, and restore that message when clearing the help.
1678
eaa2319f
GM
1679 * xfns.c (x_create_im): Remove prototype.
1680
1681 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1682
1683 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 1684
eaa2319f
GM
16852001-08-08 Gerd Moellmann <gerd@gnu.org>
1686
1687 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 1688 windows whose height has changed, disable partially visible lines.
eaa2319f 1689
17fdcfc8
GM
16902001-08-07 Gerd Moellmann <gerd@gnu.org>
1691
22d01aed 1692 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 1693 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 1694
17fdcfc8
GM
1695 * xdisp.c (start_display): Don't try to determine the continuation
1696 lines width if lines are truncated. It's superfluous and leads to
1697 incorrect results if POS is not visible in the window after
1698 reseating the iterator at the previous line start.
1699
8e3fe78e
GM
17002001-08-06 Gerd Moellmann <gerd@gnu.org>
1701
1702 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1703
98a8938c
GM
17042001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1705
1706 * alloc.c (init_stack): Remove declaration.
1707
18f9986a
GM
17082001-08-03 Gerd Moellmann <gerd@gnu.org>
1709
5e1f85e0
GM
1710 * keyboard.c (read_key_sequence): Check that key is an integer
1711 before comparing it with quit_char.
1712 (add_command_key): Use larger_vector.
1713 (read_char_x_menu_prompt): Instead of converting symbol and
1714 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 1715 which cannot be confused with valid events.
5e1f85e0
GM
1716 (read_char): When reading from Vunread_command_events, check for
1717 events of the form (EVENT . disabled) instead of
1718 (EVENT . nil).
1719
18f9986a
GM
1720 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1721 a float, determine the max height from the frame's height.
1722
fbc7f2a6
GM
17232001-08-02 Gerd Moellmann <gerd@gnu.org>
1724
1725 * xdisp.c (redisplay_internal): Take message_cleared_p into
1726 account only if minibuf_level == 0.
1727
81b1a79d
GM
17282001-08-01 Gerd Moellmann <gerd@gnu.org>
1729
e5c60873
GM
1730 * xdisp.c (redisplay_internal): Add a check for the last
1731 displayed message.
3452efc2 1732
6e019995
GM
1733 * xdisp.c (message_cleared_p): New variable.
1734 (clear_message): Set message_cleared_p when clearing the current
1735 message.
1736 (redisplay_internal): Look at message_cleared_p to capture
1737 the case that the echo area should be cleared.
1738
308a74d8
GM
1739 * keyboard.c (command_loop_1): Fix spelling of
1740 resize_echo_area_exactly.
1741
3452efc2 1742 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
1743
1744 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1745
81b1a79d
GM
1746 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1747 current matrix when the window gets smaller.
1748
ada329e6
EZ
17492001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1750
1751 * print.c (strout): Cast the character passed to insert_char to
1752 unsigned char, to avoid sign extension when it is promoted to int.
1753
ed86208c
GM
17542001-07-31 Gerd Moellmann <gerd@gnu.org>
1755
1756 * fileio.c (Finsert_file_contents): Don't treat a return value
1757 of 0 from emacs_read as an IO error.
1758
6594ac22
GM
17592001-07-30 Gerd Moellmann <gerd@gnu.org>
1760
cef68af5
GM
1761 * keyboard.c (abs): New macro.
1762 (double_click_fuzz): New variable.
1763 (make_lispy_event): Use it to determine what makes a double-click.
1764 (syms_of_keyboard): DEFVAR_INT it.
1765
6594ac22
GM
1766 * xmenu.c (set_frame_menubar): Take into account that
1767 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1768 <raeburn@gnu.org>.
1769
75c5350a
GM
17702001-07-27 Gerd Moellmann <gerd@gnu.org>
1771
1772 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1773
1774 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1775 of row's visible height.
1776
1777 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
1778 deal with the first overlay string having an image `display' property.
1779 (try_window_reusing_current_matrix, compute_line_metrics):
1780 Fix computation of row's visible height for the case that part of the
75c5350a
GM
1781 row is invisible above and part of the row is at the same time
1782 invisible below the window.
1783
ac49effe
GM
17842001-07-26 Gerd Moellmann <gerd@gnu.org>
1785
1786 * xfns.c (x-show-tip): Doc fix.
3452efc2 1787
ac49effe
GM
1788 * xfns.c (Vx_max_tooltip_size): New variable.
1789 (syms_of_xfns): DEFVAR_LISP it.
1790 (Fx_show_tip): Set frame's window_width to the width of the
1791 window. Use a maximum tooltip size specified by
1792 Vx_max_tooltip_size, if that has valid contents.
1793 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 1794
8c3b00cb
AI
17952001-07-26 Andrew Innes <andrewi@gnu.org>
1796
1797 * w32term.c (x_display_list): New variable.
1798 (w32_term_init): Set it.
1799
1800 * w32term.h (x_display_list): New extern.
1801
16098288
GM
18022001-07-26 Gerd Moellmann <gerd@gnu.org>
1803
1804 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
1805 is non-nil, instead of when redisplaying_p is non-zero.
1806 See comment there.
16098288
GM
1807 (mark_window_display_accurate_1): Add an assertion.
1808
64c5be50
GM
18092001-07-25 Gerd Moellmann <gerd@gnu.org>
1810
e743f599
GM
1811 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1812
563b384d
GM
1813 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1814 events so that we get a chance of processing expose events.
1815
64c5be50
GM
1816 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1817
296808a5
GM
18182001-07-24 Gerd Moellmann <gerd@gnu.org>
1819
1820 * xfns.c (valid_image_p): Protect better against invalid image
1821 specifications. Previous code could signal an error.
1822
5247262a
GM
18232001-07-23 Gerd Moellmann <gerd@gnu.org>
1824
3452efc2 1825 * indent.c (current_column): Fix column computation in the
f1004faf
GM
1826 presence of display table entries.
1827 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1828
dd42b31a
GM
1829 * dispnew.c (adjust_glyph_matrix): In the optimization for
1830 windows whose height has changed, use the new window height
1831 to compute which rows to invalidate.
1832
9e5a7f2a
GM
1833 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1834 (MAX_10_EXP): New macro.
1835 (Fformat): Use it.
1836
5247262a
GM
1837 * coding.c (code_convert_region): Handle the multibyte case if
1838 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1839
177ab8ce
GM
18402001-07-20 Gerd Moellmann <gerd@gnu.org>
1841
6e07c0a5
GM
1842 * dispextern.h (struct face): Change type of `stipple' to
1843 int; it's an ID.
1844
177ab8ce
GM
1845 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1846
b5b80599
GM
18472001-07-19 Gerd Moellmann <gerd@gnu.org>
1848
4e2a256b
GM
1849 * dispnew.c (update_window): Don't set the cursor at the end
1850 of the update if display update has been paused.
1851
3452efc2 1852 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 1853
c1fd9232
KR
18542001-07-18 Ken Raeburn <raeburn@gnu.org>
1855
1856 * fns.c (Fset_char_table_default): Check that a charset is defined
1857 before checking its dimension.
1858
928a85c1
KR
18592001-07-17 Ken Raeburn <raeburn@gnu.org>
1860
1861 * coding.c (setup_coding_system): Don't do any designation based
1862 on reg_bits if charset is not yet defined.
1863
fb4c6c96 1864 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
1865 pointer, using eassert.
1866
de11c1ea
GM
18672001-07-17 Gerd Moellmann <gerd@gnu.org>
1868
3452efc2
SM
1869 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1870 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 1871
467f1209
GM
18722001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1873
1874 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1875
c3d6be34
GM
18762001-07-16 Gerd Moellmann <gerd@gnu.org>
1877
c1d61a7d
GM
1878 * fileio.c (unwind_read): Function removed.
1879 (read_non_regular, read_non_regular_quit): New functions.
1880 (Finsert_file_contents): When reading from non-regular files,
1881 arrange to catch a `quit' and terminate the loop. Rearrange
1882 code so that a `quit' when reading from a regular file doesn't
1883 insert text in the buffer.
1884
c3d6be34
GM
1885 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1886 Clear faces afterwards.
1887 (clear_font_table): Take a x_display_info parameter. Don't free
1888 fonts being the default font of any frame on the given display.
1889
e06aa1f9
GM
18902001-07-13 Gerd Moellmann <gerd@gnu.org>
1891
1892 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1893 instead of CHAR_STRING which can signal an error.
1894
1895 * charset.c (char_to_string_1): Extracted from char_to_string.
1896 Return -1 instead of signaling an error.
1897 (char_to_string): Use it.
1898
1899 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1900
176c92e6
SM
19012001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1902
1903 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1904 is t, don't try to append anything to it.
1905
1c56232f
EZ
19062001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1907
1908 * dired.c (file_name_completion): Pass dp->d_name to
1909 Fstring_match, not elt, which is always nil here.
1910
1d2b2268
GM
19112001-07-12 Gerd Moellmann <gerd@gnu.org>
1912
1913 * xselect.c (x_decline_selection_request): Handle errors
1914 caused by receivers that have vanished.
1915
1916 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1917 ignoring events on foreign windows in #if 0. Always dispatch
1918 the event after checking it with x_handle_property_notify.
1919
1920 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
1921 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1922 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
1923 (toplevel): Add prototypes for file-local functions.
1924 (x_atom_to_symbol): Remove DPYINFO parameter.
1925
fe5a0162
SM
19262001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1927
1928 * w32menu.c (menubar_selection_callback, w32_menu_show):
1929 Initialize `entry' to nil.
1930 (w32_dialog_show): Remove unused `save_wv' variable.
1931 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1932
a777242c
GM
19332001-07-11 Gerd Moellmann <gerd@gnu.org>
1934
8ee5b6a3
GM
1935 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1936
d0e2444e
GM
1937 * fileio.c (unwind_read): Print a message when discarding inserted
1938 text or switching the buffer to unibyte. Change parameter.
1939 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 1940
a777242c
GM
1941 * fileio.c (unwind_read): New function.
1942 (Finsert_file_contents): Record it as unwind-function for
1943 the case that reading is interrupted by C-g.
1944
ae794295
GM
19452001-07-10 Gerd Moellmann <gerd@gnu.org>
1946
fe5a0162 1947 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
1948 update when scrolling_window returns 0.
1949
6b05fae3
GM
1950 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1951
1952 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 1953 for the case that x_decode_color signals an error.
6b05fae3 1954
ae794295
GM
1955 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1956
bb6e8cee
GM
19572001-07-09 Gerd Moellmann <gerd@gnu.org>
1958
1959 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1960 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1961 around ioctls.
1962
36b40a8a
EZ
19632001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1964
24b97d4b
EZ
1965 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1966 doc string line for dos-timezone-offset.
1967
36b40a8a
EZ
1968 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1969 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
1970 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1971 line for dos-unsupported-char-glyph.
36b40a8a
EZ
1972
1973 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1974
0967b4b0
GM
19752001-07-05 Gerd Moellmann <gerd@gnu.org>
1976
f25cfe53
GM
1977 * sound.c: Include Emacs' header files with #include "...".
1978
0967b4b0
GM
1979 * eval.c (specbind): Additionally record the buffer that was
1980 current when a buffer-local or frame-local variable was bound.
1981
c347a1c3
GM
19822001-07-04 Gerd Moellmann <gerd@gnu.org>
1983
1984 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1985 to unibyte characters in unibyte buffers.
1986
6332ca8a
GM
19872001-07-03 Gerd Moellmann <gerd@gnu.org>
1988
38472d44
GM
1989 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1990 the frame on the binding stack. Change format of entries for
1991 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1992 (unbind_to): Handle unbinding a frame-local variable.
1993
6332ca8a 1994 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 1995 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
1996 (dump_glyph_row): Print row's continuation_lines_width.
1997 (try_window_id): Take the shortcut if ZV is visible in the
1998 window, but there are actually no changes at ZV.
1999
63d1b174
GM
20002001-07-02 Gerd Moellmann <gerd@gnu.org>
2001
4c175203
GM
2002 * xterm.h (x_free_dpy_colors): Add prototype.
2003
2004 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2005 right number of arguments.
2006
0b54ce28
GM
2007 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2008 ($(lwlibdir)TAGS): New target.
4c175203 2009 (TAGS): Fix dependency list.
0b54ce28 2010
63d1b174
GM
2011 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2012 with input blocked.
2013
d827466c
GM
20142001-06-30 Gerd Moellmann <gerd@gnu.org>
2015
2016 * emacs.c (main): Remove extern declaration for sys_nerr, which
2017 isn't used and causes a compilation error with GCC 3.0 on
2018 FreeBSD 4.3.
2019
b5cb1ada
GM
20202001-06-27 Gerd Moellmann <gerd@gnu.org>
2021
a5d3ec3f 2022 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 2023 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
2024 (toplevel): Include <signal.h> and syssignal.h.
2025
b5cb1ada
GM
2026 * sound.c (vox_configure, vox_close): Turn off atimers
2027 around ioctls.
2028
d9bad487
GM
20292001-06-26 Gerd Moellmann <gerd@gnu.org>
2030
fdbb67fe
GM
2031 * keyboard.c (read_char) <non_reread>: Record the previous idle
2032 start time before calling timer_stop_idle.
2033 (read_char) <reread_first>: After processing a help-echo event,
2034 restore the previous idle start time.
2035
d9bad487
GM
2036 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2037 the start of invisible text.
2038 (setup_for_ellipsis): New function.
2039 (next_overlay_string): After all overlay strings have been
2040 processed, display an ellipsis if necessary.
2041 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2042 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2043
2044 * dispextern.h (struct iterator_stack_entry): Add member
2045 display_ellipsis_p.
2046
2b9c25e0
GM
20472001-06-25 Gerd Moellmann <gerd@gnu.org>
2048
80de57df
GM
2049 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2050 on the value of the wait-for-wm frame parameter.
2051
2052 * xterm.h (struct x_output): Add member wait_for_wm.
2053
2054 * xfns.c (Qwait_for_wm): New variable.
2055 (x_frame_parms): Add entry for `wait-for-wm".
2056 (x_set_wait_for_wm): New function.
2057 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2058 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2059
2b9c25e0
GM
2060 * xdisp.c (try_window_id) <all changes below window end>: Don't
2061 take this shortcut if ZV is visible in the window.
2062 (try_window_id): When checking for window start being in changed
2063 text, don't check that the buffer's size has changed.
2064
f772775c
RS
20652001-06-23 Richard M. Stallman <rms@gnu.org>
2066
2067 * minibuf.c (Fcompleting_read): Doc fix.
2068
fa9090b8
GM
20692001-06-19 Gerd Moellmann <gerd@gnu.org>
2070
2071 * composite.c (Ffind_composition_internal): Accept ZV
2072 and a string's end position as POS.
2073
f6f1beba
GM
20742001-06-18 Gerd Moellmann <gerd@gnu.org>
2075
2076 * composite.c (Ffind_composition_internal): Check POS
2077 for validity.
2078
0ae83348
EZ
20792001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2080
2081 * editfns.c (Fmessage_box): If the frame is not under a window
2082 system, output the message in the echo area.
2083
e4cdc335
RS
20842001-06-14 Richard M. Stallman <rms@gnu.org>
2085
2086 * xdisp.c (try_window_id): When EOB is visible, don't treat
2087 insertion at EOB as if it were "off the bottom of the screen."
2088
a55a5f3c
AI
20892001-06-11 Andrew Innes <andrewi@gnu.org>
2090
2091 * w32proc.c (create_child): Add new parameter is_gui_app.
2092 (w32_executable_type): Add new parameter is_gui_app.
2093 (sys_spawnve): Use it.
2094 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
2095 SIGQUIT. This matches better how the signals are interpreted by
2096 MSVC compiled programs.
2097 (syms_of_ntproc): Update docstring.
2098
1b85dc1c
SM
20992001-06-02 Stefan Monnier <monnier@cs.yale.edu>
2100
2101 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
2102 well otherwise note_mouse_highlight might optimize away highlighting
2103 if we pass over that same overlay again.
2104
b75f8eab
EZ
21052001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2106
2107 * lread.c (Fload): Document that the argument is run via
2108 substitute-in-file-name.
2109
94843cc1
GM
21102001-05-31 Gerd Moellmann <gerd@gnu.org>
2111
b14659e6
GM
2112 * Makefile.in (bootstrap-doc): New target.
2113 (bootstrap-emacs): Depend on it.
2114
0894672f
GM
2115 * fileio.c (Fdo_auto_save): Don't try to create the directory of
2116 auto-save-list-file-name when shutting down Emacs, because
2117 creating the directory might signal an error, and leaves
2118 Emacs in a strange state.
2119
94843cc1
GM
2120 * term.c: (tty_cursor_hidden): New variable.
2121 (update_begin): Don't call tty_hide_cursor. Clean up.
2122 (update_end, set_terminal_window, set_scroll_region): Clean up.
2123 (ring_bell, reset_terminal_modes): Clean up.
2124 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
2125 on tty_cursor_hidden.
2126 (write_glyphs): Call tty_hide_cursor.
2127
db3a49a6
SM
21282001-05-30 Stefan Monnier <monnier@cs.yale.edu>
2129
2130 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
2131
8bd189fb
GM
21322001-05-30 Gerd Moellmann <gerd@gnu.org>
2133
6f1be3b9
GM
2134 * xfns.c (enum image_value_type): New enumerator
2135 IMAGE_STRING_OR_NIL_VALUE.
2136 (parse_image_spec): Handle it.
2137 (xbm_format, pbm_format): Use it for :foreground and :background.
2138 (xbm_load, pbm_load): Check for nil color names.
2139
8bd189fb
GM
2140 * xterm.c (note_mouse_highlight): If an overlapping overlay
2141 exists, but we find that we highlight the same overlay as before,
2142 don't do the highlighting again.
2143
7bdba03c
GM
21442001-05-29 Gerd Moellmann <gerd@gnu.org>
2145
4c329aa8
GM
2146 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
2147 Protect unibyte strings created by replacing their multibyte
2148 equivalents in menu_items.
2149
e15e2828
GM
2150 * keymap.c (Fsingle_key_description): NUL-terminate the string
2151 buffer before calling build_string.
2152
7bdba03c
GM
2153 * callproc.c (Fcall_process): Deal with decode_coding returning
2154 CODING_FINISH_INCONSISTENT_EOL.
2155
89c8dc6c
GM
21562001-05-28 Gerd Moellmann <gerd@gnu.org>
2157
db3a49a6 2158 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
2159 an item's name with its key description in case the description
2160 is a multibyte string.
2161
2162 * keymap.c (Fsingle_key_description): Create a multibyte string
2163 only if necessary.
2164
eb04d6cd
GM
2165 * macros.c (Fstart_kbd_macro): Doc fix.
2166
8bd6307f
GM
2167 * xterm.c (cursor_in_mouse_face_p): New function.
2168 (x_draw_stretch_glyph_string): Use it to choose a different GC
2169 when drawing a cursor within highlighted text.
2170
e26c4089
GM
2171 * editfns.c (char_property_eq): Put in #if 0.
2172
2173 * indent.c (string_display_width): Put in #if 0.
2174
2175 * lread.c (Fload): Remove unused label.
2176
89c8dc6c
GM
2177 * termcap.c (speeds): Put in #if 0.
2178
9a1211f2
GM
21792001-05-18 Gerd Moellmann <gerd@gnu.org>
2180
29148a3f
GM
2181 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2182
9a1211f2
GM
2183 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2184 transformation matrix by 10.
2185
09393d07
GM
21862001-05-16 Gerd Moellmann <gerd@gnu.org>
2187
2188 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2189 only if it's equal to the former foreground pixel color.
db3a49a6 2190 (x_set_foreground_color, x_set_background_color)
09393d07
GM
2191 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2192
460e6bae
GM
21932001-05-16 Dave Love <fx@gnu.org>
2194
2195 * insdel.c (signal_before_change, signal_after_change): Consider a
2196 local change hook which changes the buffer.
99c78ce8
GM
2197
2198 * process.c (read_process_output): Don't call signal_after_change
2199 and update_compositions after insert_from_string_before_markers.
2200
dbcf3c03
GM
22012001-05-16 Gerd Moellmann <gerd@gnu.org>
2202
a90b3d3c
GM
2203 * xfaces.c (split_font_name): Use the right field when
2204 checking for `[...]' syntax.
2205
1b7818b4
GM
2206 * buffer.c (copy_overlays): New function.
2207 (clone_per_buffer_values): Use it.
2208
2209 * buffer.h (OVERLAY_PLIST): New macro.
2210
9bae8781
GM
2211 * keymap.c (Fsingle_key_description): Replace a build_string with
2212 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2213
dbcf3c03
GM
2214 * fontset.c (Ffontset_info): Check that face is non-null
2215 before accessing its fields.
2216
8a1ae4dd
GM
22172001-05-15 Gerd Moellmann <gerd@gnu.org>
2218
18a0a39e
GM
2219 * keyboard.c (read_key_sequence): Prevent generating a fake
2220 prefix key twice.
2221
e335b66a
GM
2222 * xfaces.c (split_font_name): Handle `[...]' for the right
2223 font name fields.
2224
8a1ae4dd
GM
2225 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2226 of CCL_STAT_INVALID_CMD.
2227
3cf80731
SM
22282001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2229
33568849
SM
2230 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2231 in <var> has no default value yet.
2232
3cf80731
SM
2233 * xfaces.c (try_alternative_families): First try the FAMILY.
2234 And if nothing is found in the end, try again with scalable fonts.
2235 (try_font_list): Let try_alternative_families do a bit more of
2236 the work. Only use FAMILY if it is not nil.
2237 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2238
933b0249
GM
22392001-05-14 Gerd Moellmann <gerd@gnu.org>
2240
58e5af83
GM
2241 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2242 pointer shape when show_mouse_face has already done it.
33568849 2243
58e5af83 2244 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
2245 full-width rows.
2246
7b16a6bf
GM
2247 * xfaces.c (split_font_name): Make sure to leave the loop
2248 with the right value of `i'.
3cf80731 2249
933b0249
GM
2250 * xfaces.c (split_font_name): Handle matrix transformations
2251 in the pixel and point size fields of XLFD font names.
2252 (xlfd_point_size): Likewise.
2253
dddcbf00
EZ
22542001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2255
3cf80731 2256 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
2257 (x_to_w32_font): Add prototype.
2258
7689ef0b
EZ
2259 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2260 redefining, to avoid compiler warnings.
2261
e7c15bba
EZ
2262 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2263
dddcbf00
EZ
2264 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2265 (w32_get_bdf_glyph): Cast between unsigned char and char when
2266 passing arguments to subroutines, to shut up compiler warnings.
2267 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2268 GET_HEX_VAL.
2269
2270 * xfaces.c: Include keyboard.h before frame.h, not after it.
2271
2272 * widget.c: Include keyboard.h before frame.h.
2273
2274 * w32term.h (struct image, struct face): Forward declaration, to
2275 avoid compiler warnings.
2276
7bd2d083
GM
22772001-05-11 Gerd Moellmann <gerd@gnu.org>
2278
47e72862
GM
2279 * keyboard.c (read_key_sequence): Don't modify events when
2280 generating fake prefix keys (mode-line, scroll-bar, ...) since
2281 this prevents proper processing of such events when pushed back
2282 into unread-command-events.
2283
dd5f324b
GM
2284 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2285 actually redrawn. Make the function static.
2286 (note_mouse_highlight): Fix a case where the mouse cursor
2287 was changed back to the text cursor.
2288
2289 * xterm.h (clear_mouse_face): Remove prototype.
2290
d88a79d4
GM
2291 * xdisp.c (try_window_id): Fix the fix and set the right
2292 window_end_vpos.
2293
2294 * xdisp.c (try_window_id): Fix computation of window end in the
2295 case that lines were deleted at the end of the window. Add some
2296 more debug_method_adds.
0416532f 2297
7bd2d083
GM
2298 * xfaces.c (try_alternative_families): New function.
2299 (try_font_list): Use it. If ATTRS specifies a family, check
2300 fonts from that family first.
2301 (choose_face_font): Remove code setting the family part of
2302 the pattern to nil.
2303
23fca891
GM
23042001-05-10 Gerd Moellmann <gerd@gnu.org>
2305
ff9aa2ca
GM
2306 * xdisp.c (try_window_id): Fix case of all changes before
2307 the window start.
7b2654b5 2308
23fca891
GM
2309 * xdisp.c (try_window_id): Add some xasserts.
2310
e9726794
GM
23112001-05-09 Gerd Moellmann <gerd@gnu.org>
2312
2313 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2314
9e53a675
GM
23152001-05-09 Dave Love <fx@gnu.org>
2316
2317 * xdisp.c (GIVE_UP): Fix for K&R C.
2318
0d487c52
GM
23192001-05-09 Gerd Moellmann <gerd@gnu.org>
2320
fe88d421
GM
2321 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2322
0d487c52
GM
2323 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2324 back to the text cursor shape without need.
2325
1e9fc92e
GM
23262001-05-07 Gerd Moellmann <gerd@gnu.org>
2327
a2a6232e
GM
2328 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2329
2330 * dispextern.h (inverse_video): Declare extern.
2331
1e9fc92e
GM
2332 * keyboard.c (delete_kboard): Handle the case that selected_frame
2333 has been deleted in the course of x_connection_closed.
2334
12949a7f
EZ
23352001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2336
7b2654b5
SM
2337 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2338 Fix the change from 2001-04-30.
12949a7f 2339
2fa2f461
GM
23402001-05-03 Gerd Moellmann <gerd@gnu.org>
2341
a779d213
GM
2342 * xfns.c (file_dialog_unmap_cb): New function.
2343 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2344 where a dialog is closed via the window manager.
2345
7b2654b5 2346 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
2347 the window start or all below the window end mostly rewritten.
2348 (redisplay_window): Move the tests if try_window_id is
2349 applicable to try_window_id.
2350 (GIVE_UP): New macro.
2351
3356df63
GM
23522001-05-02 Gerd Moellmann <gerd@gnu.org>
2353
a39202f6 2354 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
2355 currently being updated, mark the frame garbaged.
2356 Fix computation of rows intersecting the exposed rectangle.
a39202f6 2357 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 2358
3356df63
GM
2359 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2360 again if it has already been drawn.
2361
a9d2fd1d
SM
23622001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2363
2364 * syntax.c (update_syntax_table): Check that oldi has the same
2365 properties as old_prop before deciding not to invalidate.
2366
c95fc5f1
GM
23672001-04-30 Gerd Moellmann <gerd@gnu.org>
2368
a9793e45
GM
2369 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2370 read-only text that is so because of text properties.
2371
c95fc5f1 2372 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 2373 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
2374 windows that are components of a Lucid menu bar.
2375
5a5d9185
GM
23762001-04-27 Gerd Moellmann <gerd@gnu.org>
2377
2378 * term.c (turn_on_face): Fix reverse video handling on terminals
2379 that don't support colors.
2380
ba973f7a
GM
23812001-04-26 Gerd Moellmann <gerd@gnu.org>
2382
2383 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2384 a non-buffer.
2385
8c56a983
GM
23862001-04-25 Gerd Moellmann <gerd@gnu.org>
2387
a728644c
GM
2388 * term.c (toggle_highlight): New function.
2389 (turn_on_face): Change handling of reverse video.
2390
7b2654b5
SM
2391 * process.c (wait_reading_process_input):
2392 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 2393
bfd8410f
GM
2394 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2395 of the number of overlays to check.
2396
be2488ca
GM
2397 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2398
8c56a983
GM
2399 * xdisp.c (try_window_id): Fix a case where window_end_pos
2400 and window_end_bytepos were not adjusted.
2401
522d42f7
GM
24022001-04-23 Gerd Moellmann <gerd@gnu.org>
2403
2404 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2405 zero instead of -1.
2406
78c1afb6
EZ
24072001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2408
a9d2fd1d
SM
2409 * process.c (wait_reading_process_input) [!subprocesses]:
2410 Don't reference waiting_for_user_input_p, it's not defined in the
2411 branch without async subprocesses support.
78c1afb6 2412
a2fab450
GM
24132001-04-19 Gerd Moellmann <gerd@gnu.org>
2414
a122a38e
GM
2415 * keyboard.c (delete_kboard): Prevent a dangling reference
2416 from current_kboard to KB, which is freed.
2417
a9d2fd1d
SM
2418 * process.c (wait_reading_process_input):
2419 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
2420 read_key_sequence aware of buffer changes from under it.
2421
0f8d6dc7
GM
24222001-04-18 Gerd Moellmann <gerd@gnu.org>
2423
eeffb293
GM
2424 * xfaces.c (Qscalable_fonts_allowed): New variable.
2425 (realizing_basic_faces_p): Removed.
2fa2f461
GM
2426 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2427 removed.
eeffb293 2428 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
2429 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2430 for scalable-fonts-allowed to t.
eeffb293 2431
0f8d6dc7
GM
2432 * fileio.c (Finsert_file_contents): If the file size returned from
2433 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 2434 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 2435
eec2d1de
EZ
24362001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2437
2438 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2439 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2440 (__memalign_hook): Make the two prototypes consistent.
2441
f4f480bd
GM
24422001-04-17 Gerd Moellmann <gerd@gnu.org>
2443
2444 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2445 matrix of mini-windows.
2446
52283633
SM
24472001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2448
2449 * intervals.c (find_interval): Don't rebalance during signal handling.
2450
ec2423c9
GM
24512001-04-11 Gerd Moellmann <gerd@gnu.org>
2452
30cb0001 2453 * fns.c: Include blockinput.h.
52283633 2454
ec2423c9
GM
2455 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2456
719d83ad
GM
24572001-04-10 Gerd Moellmann <gerd@gnu.org>
2458
60f8d735
GM
2459 * fns.c (Fcompare_strings): Fix return values.
2460
afffeb57
GM
2461 * window.c (window_scroll): Change the meaning of N to mean
2462 N screen-fulls or N lines.
2463 (window_scroll_pixel_based, window_scroll_line_based)
2464 (scroll_command, Fscroll_other_window): Change accordingly.
2465
52283633
SM
2466 * window.c (window_scroll_pixel_based, Frecenter):
2467 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
2468 height of the window.
2469
2470 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2471 instead of using it.last_visible_y for the height of the window.
52283633 2472
719d83ad 2473 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 2474 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
2475
2476 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
2477 able to write to hidden and system files. From Dan Holmsand
2478 <dan@eyebee.com>.
719d83ad 2479
8ddf3ee1
GM
2480 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2481 Holmsand <dan@eyebee.com>.
719d83ad 2482
522ed7fb
GM
24832001-04-09 Gerd Moellmann <gerd@gnu.org>
2484
9170e5d4
GM
2485 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2486
522ed7fb
GM
2487 * window.c (window_internal_height): Return 1 less if the
2488 window has a header line.
2489
2490 * xdisp.c (try_window_id): When scrolling on a terminal, take
2491 the change of window_internal_height into account.
2492
ceeb3d7d
EZ
24932001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2494
2495 * gmalloc.c (align): If the argument SIZE would overflow
2496 __malloc_ptrdiff_t, fail right away.
2497
63685b9d
GM
24982001-04-06 Gerd Moellmann <gerd@gnu.org>
2499
2500 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2501 Make sure the tooltip is completely visible.
2502 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2503
2504 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2505
2506 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2507
3ffb33bb
DL
25082001-04-06 Dave Love <fx@gnu.org>
2509
52283633
SM
2510 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2511 Fix test of `from'.
3ffb33bb 2512
869fb12c
GM
25132001-04-06 Gerd Moellmann <gerd@gnu.org>
2514
52283633 2515 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 2516
869fb12c
GM
2517 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2518
441bf856
GM
25192001-04-05 Gerd Moellmann <gerd@gnu.org>
2520
4d664b04
GM
2521 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2522
52283633 2523 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 2524
30ca89f5
GM
2525 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2526 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2527
2528 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2529 shell widget's position only if it is non-null.
2530
52283633
SM
2531 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2532 Set f->output_data.x->widget to null after destroying it.
30ca89f5 2533
81a81c0f
GM
2534 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2535 FILENAME to bring it in synch with the documentation.
2536
441bf856
GM
2537 * xfaces.c (realizing_basic_faces_p): Renamed from
2538 realize_default_face_p.
2539 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2540 (realize_default_face): Don't set the flag.
2541
702a1e8e
GM
25422001-04-04 Gerd Moellmann <gerd@gnu.org>
2543
1013f4e3
GM
2544 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2545
52283633
SM
2546 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2547
1013f4e3
GM
2548 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2549 the buffer that was used for echoing.
2550
702a1e8e
GM
2551 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2552 (first_font_matching): Removed unused function.
2553 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2554 (may_use_scalable_font_p): Remove parameter FONT; rename
2555 parameter NAME to FONT.
2556 (x_face_list_fonts): Fix missing bounds check.
2557 (realizing_default_face_p): New variable.
2558 (realize_default_face): Set and clear that flag.
2559 (x_face_list_fonts): When called during the realization of the
2560 default face, and no matching fonts are found when ignoring
2561 scalable fonts and fonts matching a regexp from
2562 face-ignored-fonts, try without ignoring fonts.
2563
f9dbcda4
GM
25642001-04-03 Gerd Moellmann <gerd@gnu.org>
2565
ad18ffb1
GM
2566 * xfns.c (postprocess_image): New function.
2567 (lookup_image): Call it for all image types except PostScript.
2568 (x_kill_gs_process): Call postprocess_image.
2569
f9dbcda4
GM
2570 * xterm.c (x_use_underline_position_properties): New variable.
2571 (x_draw_glyph_string): Use it.
2572 (syms_of_xterm): DEFVAR_BOOL it.
2573
651f03b6
GM
25742001-04-02 Gerd Moellmann <gerd@gnu.org>
2575
2576 * xterm.c (x_alloc_nearest_color_1): New function.
2577 (x_alloc_nearest_color): Use it.
2578 (x_color_cells): Take a Display as argument, instead of a frame.
2579 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2580 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2581 (x_initialize): Register cvt_string_to_pixel as resource converter
2582 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2583
73d75a62
GM
25842001-03-30 Gerd Moellmann <gerd@gnu.org>
2585
b2046df8
GM
2586 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2587 (set_iterator_to_next): If a string from a display property ends,
2588 consider the case that this might also be the end of an
2589 overlay string having the display property.
2590
52283633 2591 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 2592
87d8eba4
GM
2593 * xdisp.c (reseat_to_string): Undo last change.
2594
73d75a62
GM
2595 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2596 matrix of a window when the header line changes, when
2597 new rows are allocated, or when the width changes.
2598
911a2406
EZ
25992001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2600
52283633 2601 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 2602
aea51abe
EZ
26032001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2604
2605 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2606 deprecated.
2607
176bc847
GM
26082001-03-29 Gerd Moellmann <gerd@gnu.org>
2609
ed31fabf
GM
2610 * data.c (Fsubr_interactive_form): New function.
2611 (syms_of_data): Defsubr it.
2612
176bc847
GM
2613 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2614 (live_float_p, live_misc_p): Return 1 only if the offset of the
2615 pointer in its block is >= 0.
2616
e59d0e9d
GM
26172001-03-28 Paul Eggert <eggert@twinsun.com>
2618
2619 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2620 microseconds calcuation. Avoid double-rounding problem.
2621 In doc string, warn that the result is approximate.
2622
f827b862
GM
26232001-03-28 Gerd Moellmann <gerd@gnu.org>
2624
30a3f61c
GM
2625 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2626 bind `inhibit-eval-during-redisplay' to t.
2627
2628 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2629
2630 * xdisp.c (inhibit_eval_during_redisplay)
2631 (Qinhibit_eval_during_redisplay): New variables.
2632 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2633 don't eval, return nil instead.
2634 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2635 Initialize Qinhibit_eval_during_redisplay.
2636
e719f5ae
GM
2637 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2638 the iterator's multibyte_p flag.
2639
deb2613a
GM
2640 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2641 instead of setting it to zero; it's incremented for each frame
2642 where the menu face is changed.
2643
52283633
SM
2644 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2645 change bottom shadow accordingly.
2646
2647 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
2648 intersections here.
2649 (expose_window): Do it here instead.
52283633 2650 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 2651
f827b862
GM
2652 * bytecode.c (BYTE_CODE_QUIT): New macro.
2653 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2654
4bde0ebb
GM
26552001-03-27 Gerd Moellmann <gerd@gnu.org>
2656
607ec83c
GM
2657 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2658 Give up if matrix starts in an ellipsis.
2659 (init_from_display_pos): Do nothing if POS doesn't specify
2660 a dpvec_index but the iterator has such a position.
2661
0245398f
GM
2662 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2663
aba25348
GM
2664 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2665 x/y position is (0, 0) after destroying the menu bar, restore
2666 its original position.
2667
4bde0ebb
GM
2668 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2669 (init_from_display_pos): Use it.
2670 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2671
8cdb267e
GM
26722001-03-26 Gerd Moellmann <gerd@gnu.org>
2673
2674 * xdisp.c (try_window_id): Undo last change.
2675
9948db79
EZ
26762001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2677
2678 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2679
2680 * buffer.c (syms_of_buffer): Doc fix.
2681
2eddf899
GM
26822001-03-26 Gerd Moellmann <gerd@gnu.org>
2683
2684 * xfaces.c (x_update_menu_appearance): Use local variable
2685 popup_path for setting font resources.
2686
6c145d35
EZ
26872001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2688
6a65b1b5
EZ
2689 * frame.c (Fframe_list): Don't reference tip_frame if
2690 HAVE_WINDOW_SYSTEM is not defined.
2691
6c145d35
EZ
2692 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2693 <wl@gnu.org>.
2694
d74c1900
GM
26952001-03-25 Gerd Moellmann <gerd@gnu.org>
2696
20fbd925
GM
2697 * xdisp.c (init_from_display_pos): Test invisible property
2698 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 2699
927c5b3b
GM
2700 * xdisp.c (redisplay_internal) <update one window>: Make sure
2701 last_arrow_position and last_arrow_string are set.
2702
d74c1900
GM
2703 * frame.c (Fframe_list): Don't return a tooltip frame.
2704
091f8878
GM
27052001-03-23 Gerd Moellmann <gerd@gnu.org>
2706
52283633
SM
2707 * xdisp.c (mark_window_display_accurate_1): New function,
2708 extracted from mark_window_display_accurate.
2709 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
2710 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2711 (mark_window_display_accurate): Use it.
2712 (redisplay_internal): Use it for the selected window.
2713 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2714 for the selected frame.
2715
ac90c44f
GM
2716 * xdisp.c Use make_number, for readability.
2717 (try_window_id): Disable rows below the window end.
2718 (try_window_reusing_current_matrix): Use cursor_row_p.
2719 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2720 of rows.
2721 (init_from_display_pos): If POS specifies a position in a display
2722 vector, maybe get the iterator set up for that ellipsis.
43c09969 2723
091f8878
GM
2724 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2725
991786dd
EZ
27262001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2727
2728 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2729
6c29b43c
GM
27302001-03-23 Gerd Moellmann <gerd@gnu.org>
2731
2732 * xfaces.c (x_update_menu_appearance): Use a different path
2733 for Lucid popup menus.
2734
d8731202
SM
27352001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2736
2737 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2738
2739 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2740 (string_buffer_position): Use `make_number'.
2741
f61a541b
GM
27422001-03-22 Gerd Moellmann <gerd@gnu.org>
2743
3c9e997b
GM
2744 * xfaces.c (x_update_menu_appearance): Renamed from
2745 x_set_menu_face_resources. Use different resources for popups.
2746
2747 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2748 (GC_CHECK_STRING_BYTES): Don't define.
2749
364cd450
GM
2750 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2751 Removed, together with subroutines.
2752 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 2753 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 2754
d8731202
SM
2755 * dispextern.h (x_set_menu_resources_from_menu_face):
2756 Remove prototype.
364cd450 2757
d8731202 2758 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
2759 Remove calls to x_set_menu_resources_from_menu_face.
2760
d8731202
SM
2761 * xfaces.c (xm_set_menu_resources_from_menu_face):
2762 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
2763
2764 * xmenu.c: Include widget.h.
2765 (single_submenu): Return int. Some cleanup.
2766 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2767
140330de
GM
27682001-03-21 Gerd Moellmann <gerd@gnu.org>
2769
2770 * xterm.c (x_update_window_end): Handle overwritten mouse face
2771 also for tool bar windows.
2772 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2773 DRAW is DRAW_IMAGE_RAISED.
2774
1741905c
GM
27752001-03-20 Gerd Moellmann <gerd@gnu.org>
2776
fa88947e
GM
2777 * print.c (syms_of_print): Doc fixes.
2778
1741905c
GM
2779 * fns.c (Fmd5): Doc fix.
2780
ade0bee1
GM
27812001-03-19 Gerd Moellmann <gerd@gnu.org>
2782
357e7376
GM
2783 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2784 Clear area of the frame not occupied by the scroll bar.
2785
c2c097cc
GM
2786 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2787 tip frame's root window buffer to *tip* right after creating
2788 the frame.
2789
ade0bee1
GM
2790 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2791 is an integer don't have to be for space characters.
2792
88c6e37e
GM
27932001-03-16 Gerd Moellmann <gerd@gnu.org>
2794
52283633
SM
2795 * indent.c (current_column, current_column_1, Fmove_to_column)
2796 (compute_motion): Handle characters from display vectors differently.
88c6e37e 2797
c62eed76
KH
27982001-03-15 Kenichi Handa <handa@etl.go.jp>
2799
2800 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2801 drawing glyph string.
2802
c899e7e6
GM
28032001-03-15 Gerd Moellmann <gerd@gnu.org>
2804
d0bbfc99
GM
2805 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2806 (command_loop_1): Undo last change.
2807
03d1a189
GM
2808 * xterm.c (fast_find_position): Return the correct vpos.
2809
c899e7e6 2810 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 2811 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
2812 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2813 Call store_symval_forwarding with BUF null.
2814 (set_internal): Call store_symval_forwarding with the BUF
2815 parameter passed to set_internal. Formerly, the value was always
2816 set in the current buffer; the buffer recorded in specbind for
2817 this case wasn't used.
2818 (arith_driver): Reindent.
2819
52283633
SM
2820 * buffer.c (swap_out_buffer_local_variables):
2821 Call store_symval_forwarding with BUF null.
c899e7e6
GM
2822
2823 * lisp.h (store_symval_forwarding): Change prototype.
2824
2825 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2826
57ac7c81
GM
28272001-03-14 Gerd Moellmann <gerd@gnu.org>
2828
697617d9
GM
2829 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2830 FOR_DELETION. Avoid resizing the mini-window of the selected
2831 frame if FOR_DELETION is set.
2832 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2833 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2834 signature.
2835
2836 * window.c (Fset_window_configuration): Change call to
2837 do_switch_frame to new format.
2838
2839 * keyboard.c (quit_throw_to_read_char): Change call to
2840 do_switch_frame to new format.
2841
2842 * lisp.h (do_switch_frame): Change prototype.
2843
819dce0f
GM
2844 * frame.c (Fframe_parameters): In the `buffer-list' frame
2845 parameter, store the buffer list of FRAME, not the list of the
2846 selected frame.
2847
57ac7c81
GM
2848 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2849 box just because the glyph row's full_width_p flag is set.
2850
65008712
GM
28512001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2852
2853 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2854 skip the padding blanks inserted in extend_face_to_end_of_line,
2855 before checking for trailing whitespace.
2856
159cf431
GM
28572001-03-13 Gerd Moellmann <gerd@gnu.org>
2858
52283633 2859 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
2860 Remove special handling for LessTif/Motif.
2861 (toplevel): Don't include Xm/Xm.h.
2862
52283633
SM
2863 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2864 Remove workaround code for LessTif; it doesn't work anymore.
2865
2564ea1b 2866 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 2867 Xm/ScrollBarP.h.
afcdc0a1 2868
52283633
SM
2869 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2870 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
2871 contemporary LessTif.
2872
52283633
SM
2873 * xfaces.c (xm_set_menu_resources_from_menu_face):
2874 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 2875
159cf431
GM
2876 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2877 removing button grabs.
2878
c6f7429a
KH
28792001-03-13 Kenichi Handa <handa@etl.go.jp>
2880
cb82d767
KH
2881 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2882 and clip-large-size-font as obsolete.
2883
c6f7429a
KH
2884 * lread.c (read_multibyte): Check the validity of multibyte
2885 sequence. If invalid, return the first byte.
2886
760cefb5
GM
28872001-03-12 Gerd Moellmann <gerd@gnu.org>
2888
2889 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2890 before running the command; timer functions or process
2891 filters may have set it.
2892
5141f9d0
EZ
28932001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2894
2895 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2896 Doc fix.
2897
b6a15240
GM
28982001-03-12 Gerd Moellmann <gerd@gnu.org>
2899
2900 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2901 to sprintf.
2902
95522746
GM
29032001-03-09 Gerd Moellmann <gerd@gnu.org>
2904
db14cfc5
GM
2905 * dispextern.h (string_buffer_position): Add prototype.
2906
52283633 2907 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
2908 (single_display_prop_string_p): New functions.
2909
2910 * xterm.c (note_mouse_highlight): If there's no help-echo on
2911 a string, look at the buffer text ``under'' it.
2912
2913 * keyboard.c (make_lispy_event): Add string info to the event,
2914 analogous to what's done on mode lines.
2915 (read_key_sequence): For a click on a string, consider `local-map'
2916 and `keymap' of that string.
2917
52283633
SM
2918 * keyboard.c (make_lispy_event, make_lispy_movement):
2919 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
2920
2921 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2922
2923 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2924 POS; return void.
2925
95522746
GM
2926 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2927 flags argument to emacs_open; it seems to conflict with O_EXCL.
2928
898a399d
KH
29292001-03-09 Kenichi Handa <handa@etl.go.jp>
2930
28cd4910
KH
2931 * composite.h (struct composition): Change types of members;
2932 glyph_len to unsigned, width to unsigned short.
898a399d 2933
4cdf6a6c
AI
29342001-03-08 Andrew Innes <andrewi@gnu.org>
2935
2936 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2937 menu titles.
2938
129004d3
GM
29392001-03-08 Gerd Moellmann <gerd@gnu.org>
2940
221dd3e7
GM
2941 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2942 instead of nil.
2943
52283633 2944 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
2945 help-echo in strings.
2946 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2947 (fast_find_string_pos): New function.
2948
52283633
SM
2949 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2950 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
2951
2952 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2953 Handle `mouse-face'.
2954
2955 * dispextern.h (face_at_string_position): Change prototype.
2956
52283633 2957 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 2958
129004d3
GM
2959 * keyboard.c (make_lispy_event): Avoid generating drag events
2960 if the mouse hasn't actually moved to another buffer position.
52283633 2961
80c8ab8c
DL
29622001-03-08 Dave Love <fx@gnu.org>
2963
129004d3 2964 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 2965
989521fd
GM
29662001-03-08 Gerd Moellmann <gerd@gnu.org>
2967
2968 * process.c (Fset_process_window_size): Fix a typo.
2969
bb5c338d
KH
29702001-03-08 Kenichi Handa <handa@etl.go.jp>
2971
2972 * coding.c (detect_coding_sjis): Do more rigid check.
2973 (detect_coding_big5): Likewise.
2974 (decode_coding_sjis_big5): Likewise.
2975 (Fdetect_coding_region): Call detect_coding_system with tailing
2976 anchor byte `\0' for more rigid detection.
52283633 2977 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
2978 (Fdetect_coding_string): Likewise.
2979
8b8f9197
SM
29802001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2981
2982 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2983 a string before extracting its data.
2984
3bdf2660
GM
29852001-03-07 Gerd Moellmann <gerd@gnu.org>
2986
2987 * window.c (Frecenter): Rewrite code handling negative values
2988 of ARG on graphical frames.
2989
29902001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2991
2992 * window.c (displayed_window_lines): If W->start is outside the
2993 accessible portion of the buffer, call start_display with BEGV or
2994 ZV instead of W->start.
2995
471f86b9
GM
29962001-03-07 Gerd Moellmann <gerd@gnu.org>
2997
2ab62c6c
GM
2998 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2999
471f86b9
GM
3000 * process.c (Fset_process_filter): Don't crash if the input
3001 file descriptor of PROCESS is closed.
3002 (Fset_process_window_size): Likewise.
3003
101922c3
GM
30042001-03-06 Kenichi Handa <handa@etl.go.jp>
3005
3006 * xterm.c (XTflash): Make the timeout of select shorter, and call
3007 select repeatedly until the desired time expires.
3008
45d051a7
GM
30092001-03-06 Gerd Moellmann <gerd@gnu.org>
3010
3011 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3012
3013 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3014
3015 * lisp.h (Vwindow_list): Declare extern.
3016
8f372c46
EZ
30172001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3018
3019 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3020
f16a7aa5
GM
30212001-03-06 Gerd Moellmann <gerd@gnu.org>
3022
157ae273
GM
3023 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3024 to detect a case where we have to highlight a different region
3025 despite not having left the currently highlighted region.
3026 Set mouse_face_overlay in the x_display_info.
45d051a7 3027 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
3028
3029 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3030
3031 * buffer.c (mouse_face_overlay_overlaps): New function.
3032
3033 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3034 (Qmouse_face): Declare extern.
3035
f16a7aa5
GM
3036 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3037 if face_change_count is non-zero.
3038
827afcac
KH
30392001-03-06 Kenichi Handa <handa@etl.go.jp>
3040
3041 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3042 that the source is unibyte.
3043
14c7242e
DL
30442001-03-05 Dave Love <fx@gnu.org>
3045
827afcac 3046 * xterm.c (XTmouse_position): Fix typo.
14c7242e 3047
c28b847b
GM
30482001-03-05 Gerd Moellmann <gerd@gnu.org>
3049
3050 * minibuf.c (read_minibuf): Clean up the binding stack if
3051 called noninteractively.
3052
b86644f2
KH
30532001-03-05 Kenichi Handa <handa@etl.go.jp>
3054
3055 * coding.c (syms_of_coding): Docstring modified.
3056
203682cc 30572001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
3058
3059 * charset.c (char_to_string): If a single byte char has modifier
3060 bits that can't be reflected to the character code, ignore them
45d051a7 3061 instead of signaling an error.
b86644f2 3062
e30bd7b7
EZ
30632001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3064
3065 * s/msdos.h: Update copyright notice.
3066
3067 * dosfns.h: Update copyright notice.
3068
3069 * dosfns.c: Update copyright notice.
3070
3071 * msdos.c: Update copyright notice.
3072
b52b65bd
GM
30732001-03-02 Gerd Moellmann <gerd@gnu.org>
3074
3075 * xterm.c (glyph_rect): New function.
3076 (XTmouse_position): Use it to raise the threshold for mouse
3077 movement event generation.
3078
53c4b1e6
EZ
30792001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3080
3081 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
3082 specifies (reverse . t), reverse the initial screen colors.
3083 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
3084 but we are reversing the colors, set bg_set, not fg_set.
3085 Likewise for setting background-color and reversing: set fg_set.
3086 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
3087 in effect.
3088
3089 * xfaces.c (Finternal_set_lisp_face_attribute)
3090 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
3091 parameters alist.
3092
f964b4d7
GM
30932001-03-02 Gerd Moellmann <gerd@gnu.org>
3094
ef53d75e
GM
3095 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
3096 to a single slash in the middle of file names.
3097
52283633 3098 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
3099 Accept only alphanumeric time zone names.
3100
f964b4d7
GM
3101 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
3102 or width area.
3103 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3104 a widget to zero height.
52283633 3105
c3c45f65
GM
31062001-03-01 Gerd Moellmann <gerd@gnu.org>
3107
3108 * window.c (Fwindow_end): Call move_it_past_eol only if
3109 ending up on a partially visible line.
3110
028d739a
DL
31112001-03-01 Dave Love <fx@gnu.org>
3112
3113 * ccl.c (Fccl_execute): Doc fix.
3114
57c5889c
GM
31152001-03-01 Gerd Moellmann <gerd@gnu.org>
3116
35f59f6b
GM
3117 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
3118 of the tool bar before calling x_figure_window_size.
3119
f84ff02c
GM
3120 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
3121 NULL after destroying it, otherwise XTread_socket can access a
3122 destroyed widget when input is unblocked.
3123
8b8f9197 3124 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 3125
57c5889c
GM
3126 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
3127 same name as before, although there was a change in fontsets.
3128
224227d1
KR
31292001-02-28 Ken Raeburn <raeburn@gnu.org>
3130
4560730a
KR
3131 * lisp.h (Fframe_parameter): Declare.
3132
224227d1 3133 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 3134 Lisp_Object.
224227d1 3135
ece93c02
GM
31362001-02-28 Gerd Moellmann <gerd@gnu.org>
3137
11ef99b9
GM
3138 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
3139 NULL instead.
3140
3141 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
3142 NULL instead.
3143
ece93c02
GM
3144 * alloc.c (toplevel): Include process.h.
3145 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
3146 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
3147 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
3148 (allocate_vector, allocate_hash_table, allocate_window)
3149 (allocate_frame, allocate_process, allocate_other_vector):
3150 New functions.
ece93c02
GM
3151 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
3152 (mark_maybe_pointer): New function.
52283633 3153 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
3154 remain and not Lisp_Objects.
3155 (min_heap_address, max_heap_address): New variables.
3156 (mem_find): Return MEM_NIL if START is below min_heap_address or
3157 above max_heap_address.
3158 (mem_insert): Compute min_heap_address and max_heap_address.
3159
3160 * process.c (make_process): Use allocate_process.
3161
3162 * frame.c (make_frame): Use allocate_frame.
3163
3164 * window.c (make_window, make_dummy_parent): Use allocate_window.
3165 (Fcurrent_window_configuration): Use allocate_other_vector.
3166
3167 * lisp.h (allocate_vectorlike): Remove prototype.
3168 (allocate_vector, allocate_other_vector, allocate_frame)
3169 (allocate_window, allocate_process, allocate_hash_table):
3170 Add prototypes.
3171
3172 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3173 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3174
063af457
KH
31752001-02-27 Kenichi Handa <handa@etl.go.jp>
3176
3177 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3178 treat the produced bytes as a valid multibyte sequence.
3179
3180 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
3181 (ccl_driver) <CCL_WriteMultibyteChar2>:
3182 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
3183 <ccl_finish>: Set ccl->eight_bit_control properly.
3184
3185 * ccl.h (struct ccl_program): New member eight_bit_control.
3186
f58c6494
SM
31872001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3188
3189 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3190 accessible_keymaps_char_table.
3191 (accessible_keymaps_char_table): Obey `is_metized'.
3192 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3193 Lisp_Object.
3194
c596c392
GM
31952001-02-26 Gerd Moellmann <gerd@gnu.org>
3196
3197 * dispnew.c: Check HAVE_TERM_H before including term.h.
3198
425de386
AI
31992001-02-24 Andrew Innes <andrewi@gnu.org>
3200
3201 * makefile.w32-in: Update copyright notice.
3202
2ba11bbd
SM
32032001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3204
3205 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3206
66c56ed1
KH
32072001-02-24 Kenichi Handa <handa@etl.go.jp>
3208
4c1593ce
KH
3209 * Makefile.in (lisp): Add international/utf-8.elc.
3210
66c56ed1
KH
3211 * fontset.c (Fnew_fontset): Fix handling of the case that an
3212 element of FONTLIST is a cons of family and registry.
3213
796ead7e
JR
32142001-02-23 Jason Rumney <jasonr@gnu.org>
3215
3216 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3217 to height unconditionally.
3218
3219 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 3220 background face to the end of the drawing area in the text area, only.
796ead7e
JR
3221 (x_insert_glyphs): Call window_box_left to obtain the left
3222 x-coordinate of the area to shift.
3223
3224 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3225 safe_run_hooks.
3226
f6839838
AI
32272001-02-22 Andrew Innes <andrewi@gnu.org>
3228
52283633 3229 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
3230 ($(BLD)\dispnew.obj):
3231 ($(BLD)\editfns.obj):
3232 ($(BLD)\fileio.obj):
3233 ($(BLD)\filelock.obj):
3234 ($(BLD)\keyboard.obj):
3235 ($(BLD)\w32proc.obj):
3236 ($(BLD)\process.obj):
3237 ($(BLD)\sysdep.obj): Ditto.
3238
3239 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3240 header files.
52283633
SM
3241 ($(BLD)/dispnew.$(O)):
3242 ($(BLD)/editfns.$(O)):
3243 ($(BLD)/fileio.$(O)):
3244 ($(BLD)/filelock.$(O)):
3245 ($(BLD)/keyboard.$(O)):
3246 ($(BLD)/w32proc.$(O)):
3247 ($(BLD)/process.$(O)):
f6839838
AI
3248 ($(BLD)/sysdep.$(O)): Ditto.
3249
c224f70b
GM
32502001-02-22 Gerd Moellmann <gerd@gnu.org>
3251
51695746
GM
3252 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3253 at the start of the function, check that the \n in it->c is
3254 from the iterator's current position.
52283633 3255
a61b7058
GM
3256 * xdisp.c (handle_single_display_prop): Add parameter
3257 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3258 properties which replace the display of text with something else.
3259 (handle_display_prop): Call handle_single_display_prop with
3260 additional argument saying if we already replaced text display
3261 with something else. Use AREF.
52283633 3262 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
3263 (decode_mode_spec_coding): Use AREF and ASIZE.
3264
3473f362
GM
3265 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3266 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3267 * vmstime.h: Files removed.
52283633 3268
2bb58df3
GM
3269 * unexencap.c, unexfx2800.c: Files removed.
3270
c224f70b
GM
3271 * dispnew.c (direct_output_for_insert): Give up if we are showing
3272 a message or just cleared the message because we might need to
3273 resize the echo area window or display an empty echo area.
3274
ffc9ff0c
GM
32752001-02-21 Gerd Moellmann <gerd@gnu.org>
3276
0528abe1
GM
3277 * xdisp.c (redisplay_internal): Do the
3278 mark_window_display_accurate after all windows have been
3279 redisplayed because this call resets flags in buffers which are
3280 needed for proper redisplay.
3281
52283633
SM
3282 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3283 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
3284 the old names.
3285
52283633
SM
3286 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3287 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3288
3289 * msdos.h (struct x_output): Rename busy_window to
3290 hourglass_window, busy_p to hourglass_p.
3291
52283633
SM
3292 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3293 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3294
3295 * xfns.c: Rename everything containing *busy_cursor* and similar
3296 to *hourglass*.
3297 (syms_of_w32fns): Rename x-busy-pointer-shape to
3298 x-hourglass-pointer-shape, display-busy-cursor to
3299 display-hourglass, busy-cursor-delay to hourglass-delay.
3300
3301 * w32fns.c: Rename everything containing *busy_cursor* and similar
3302 to *hourglass*.
3303 (syms_of_w32fns): Rename x-busy-pointer-shape to
3304 x-hourglass-pointer-shape, display-busy-cursor to
3305 display-hourglass, busy-cursor-delay to hourglass-delay.
3306
3307 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3308 of its busy_p flag.
3309
3310 * dispextern.h (start_hourglass, cancel_hourglass)
3311 (display_hourglass_p): Renamed from *busy_cursor*.
3312
ab2c5f0a
GM
33132001-02-20 Gerd Moellmann <gerd@gnu.org>
3314
d17e49a8
GM
3315 * keyboard.c (read_char): When an event from unread-command-events
3316 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3317
fa97adf6
GM
3318 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3319 equal to the current buffer.
3320
ab2c5f0a
GM
3321 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3322 nil, otherwise we're left with truncate_lines t when a message
3323 is printed with message-truncate-lines bound to t.
3324
aeac019e
GM
33252001-02-19 Gerd Moellmann <gerd@gnu.org>
3326
c8bc6f65
GM
3327 * window.c (Fmove_to_window_line): Undo last change.
3328 (displayed_window_lines): Call line_bottom_y to determine
3329 the line's bottom position.
3330
3331 * dispextern.h (line_bottom_y): Add prototype.
3332
52283633 3333 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
3334 (pos_visible_p): Use it.
3335
980a2d69
GM
3336 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3337 set redisplaying_p to 0 here instead of in Frecursive_edit.
3338 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3339 set redisplaying_p.
3340
52283633 3341 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
3342 New variables.
3343 (syms_of_xdisp): Initialize new variables.
3344 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3345 Specbind `inhibit-menubar-update' when updating the menu bar.
3346
65048e97
GM
3347 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3348 safe_run_hooks.
3349
3350 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3351 safe_run_hooks.
3352
a57c4026
GM
3353 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3354 is null.
3355
aeac019e
GM
3356 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3357 to the start of the file.
3358
76846b31
GM
33592001-02-16 Gerd Moellmann <gerd@gnu.org>
3360
f3f053f3 3361 * window.c (set_window_buffer): Fix last change.
52283633 3362
f3f053f3
GM
3363 * window.c (set_window_buffer): Set window's vscroll to 0.
3364
dad75588
GM
3365 * window.c (coordinates_in_window): Increase width of area
3366 where the vertical line can be dragged.
3367
c220b753
GM
3368 * xterm.c (x_set_glyph_string_background_width): Extend the
3369 background face to the end of the drawing area in the text
3370 area, only.
3371
c56b1c1b
GM
3372 * xdisp.c (handle_single_display_prop): Set iterator's position
3373 to where the `display' property starts, like for images.
3374 (dump_glyph): New function.
3375 (dump_glyph_row): Use it. Dump info about marginal areas.
3376
3377 * dispnew.c (direct_output_for_insert): Recognize more cases where
3378 glyphs can be written instead of being inserted.
3379
3380 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3381 the left x-coordinate of the area to shift.
3382
76846b31
GM
3383 * dired.c (directory_files_internal): Set result list to nil
3384 before retrying.
3385
0fc71a77
KH
33862001-02-15 Kenichi Handa <handa@etl.go.jp>
3387
3388 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3389 invalid multibyte sequence, treat *SRC as a character of
3390 eight-bit-graphic.
3391
25078b54
EZ
33922001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3393
3394 * textprop.c (Fset_text_properties): Doc fix.
3395
8399f8a0
GM
33962001-02-15 Gerd Moellmann <gerd@gnu.org>
3397
3398 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3399
9a2a6f73
DL
34002001-02-14 Dave Love <fx@gnu.org>
3401
3402 * coding.c: Doc and message fixes.
3403
bf853fee
AI
34042001-02-14 Andrew Innes <andrewi@gnu.org>
3405
3406 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3407 Emacs frame above the screen size.
3408
78c663d8
GM
34092001-02-14 Gerd Moellmann <gerd@gnu.org>
3410
3411 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3412
7cc9f69f
GM
34132001-02-13 Gerd Moellmann <gerd@gnu.org>
3414
0a411995
GM
3415 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3416 case that TO ends up beyond ZV after running before-change-functions.
3417
5ddc1b75
GM
3418 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3419 the selected window if it is showing the buffer in question.
3420
7cc9f69f
GM
3421 * dired.c (directory_files_internal): Initialize errno.
3422 (toplevel): Include errno.h.
3423
2e6621ca
GM
34242001-02-13 Kenichi Handa <handa@etl.go.jp>
3425
3426 * xfaces.c (best_matching_font): New parameter width_ratio.
3427 Multiply avgwidth by width_ratio.
3428 (choose_face_font): Call best_matching_font with width_ratio
3429 calculated from the column width of C.
3430
60222d69
AI
34312001-02-12 Andrew Innes <andrewi@gnu.org>
3432
3433 The following changes are to draw box lines inside characters area
3434 if line-width is negative.
52283633 3435
60222d69
AI
3436 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3437 face->box_line_width is negative.
3438 (x_produce_stretch_glyph): Likewise.
3439 (x_produce_glyphs): Likewise.
3440 (x_estimate_mode_line_height): Likewise.
3441 (x_draw_glyph_string_background): Likewise.
3442 (x_draw_glyph_string_foreground): Likewise.
3443 (x_draw_composite_glyph_string_foreground): Likewise.
3444 (x_draw_glyph_string_box): Likewise.
3445 (x_draw_image_foreground): Likewise.
3446 (x_draw_image_relief): Likewise.
3447 (x_draw_image_foreground_1): Likewise.
3448 (x_draw_image_glyph_string): Likewise.
3449
9804b846
KH
34502001-02-09 Kenichi Handa <handa@etl.go.jp>
3451
3452 The following changes are to draw box lines inside characters area
3453 if line-width is negative.
52283633 3454
9804b846
KH
3455 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3456 face->box_line_width is negative.
3457 (x_produce_stretch_glyph): Likewise.
3458 (x_produce_glyphs): Likewise.
3459 (x_estimate_mode_line_height): Likewise.
3460 (x_draw_glyph_string_background): Likewise.
3461 (x_draw_glyph_string_foreground): Likewise.
3462 (x_draw_composite_glyph_string_foreground): Likewise.
3463 (x_draw_glyph_string_box): Likewise.
3464 (x_draw_image_foreground): Likewise.
3465 (x_draw_image_relief): Likewise.
3466 (x_draw_image_foreground_1): Likewise.
3467 (x_draw_image_glyph_string): Likewise.
3468
3469 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3470 and :line-width can be negative.
52283633 3471 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 3472
49be9f70
JR
34732001-02-09 Jason Rumney <jasonr@gnu.org>
3474
3475 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3476 characters the same as ASCII and latin-1.
3477 (x_display_and_set_cursor): Check for the focus frame's selected
3478 window instead of selected_window.
3479 (x_after_update_window_line): Don't clear if frame's internal
3480 border width is zero.
3481 (x_new_font): Don't change a tooltip's size.
3482 (w32_initialize): Set char_ins_del_ok to 1.
3483
3484 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3485 (x_set_font): If font hasn't changed, avoid recomputing
3486 faces and other things.
52283633
SM
3487 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3488 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
3489 (x_create_tip_frame): Prevent changing the tooltip's
3490 background color by specifying a color for the default font
3491 in .Xdefaults.
3492 (Qcancel_timer): New variable.
3493 (syms_of_w32fns): Initialize and staticpro it.
3494 (Fx_hide_tip, Fx_show_tip): Use it.
3495 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3496 the timer.
3497 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3498
3499 * w32.c (init_environment): Duplicate local string before putenv.
3500
555e35d2
SZ
35012001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3502
3503 * charset.c (Fstring): A typo.
3504
19c92c94
KH
35052001-02-09 Kenichi Handa <handa@etl.go.jp>
3506
e47a1c33
KH
3507 * charset.c (Fstring): If all arguments are less than 256, return
3508 a unibyte string.
3509
3510 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3511 return a unibyte string.
3512
19c92c94
KH
3513 * coding.c (code_convert_region): After detecting a coding, if
3514 nothing found, set coding->composing to COMPOSITION_NO.
3515 (decode_coding_string): Likewise.
3516
d8e675f5
SM
35172001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3518
3519 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3520 to avoid overflow.
3521
bd503487
KH
35222001-02-07 Kenichi Handa <handa@etl.go.jp>
3523
3524 * charset.c (parse_str_to_multibyte): New function.
3525
3526 * charset.h (parse_str_to_multibyte): Extern it.
3527
3528 * print.c (print_string): If we are going to print a unibyte
3529 string into a multibyte buffer, convert the string to multibyte by
3530 str_to_multibyte.
3531
a8370d72
AI
35322001-02-06 Andrew Innes <andrewi@gnu.org>
3533
3534 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3535 been created. It seems we can get sent window messages such as
3536 WM_ERASEBKGND before we properly update a frame.
3537
c363a1d6
GM
35382001-02-06 Gerd Moellmann <gerd@gnu.org>
3539
3540 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3541 Avoid some unnecessary cursor positioning.
3542
a08332c0
GM
35432001-02-05 Gerd Moellmann <gerd@gnu.org>
3544
52283633 3545 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
3546 (LFACE_AVGWIDTH): New macro.
3547 (LFACEP): Use AREF.
3548 (check_lface_attrs): Check LFACE_AVGWIDTH.
3549 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3550 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3551 (merge_face_vectors): Check LFACE_AVGWIDTH.
3552 (Finternal_make_lisp_face): Use AREF.
3553 (xm_set_menu_resources_from_menu_face)
3554 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3555 (Finternal_lisp_face_empty_p): Use AREF.
3556 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3557 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3558 Compare average widths..
3559 (best_matching_font): Arrange for comparing average widths.
3560
52283633
SM
3561 * dispextern.h (enum lface_attribute_index):
3562 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3563
5cb3c8d4
DL
35642001-02-05 Dave Love <fx@gnu.org>
3565
3566 * puresize.h: Revert last change following loadup.el change.
3567
193fba87
AI
35682001-02-05 Andrew Innes <andrewi@gnu.org>
3569
3570 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3571 invocation of temacs, to work with Windows 2000.
3572 (bootstrap-emacs): Ditto.
3573
e16f52ce
GM
35742001-02-05 Gerd Moellmann <gerd@gnu.org>
3575
7a58ab59
GM
3576 * xterm.c (x_display_and_set_cursor): Check for the focus
3577 frame's selected window instead of selected_window.
3578
e89aaabd
GM
3579 * xdisp.c (try_scrolling): If point is in the line below the
3580 window, make sure to move the iterator at least a canonical
3581 char height down.
3582
52283633 3583 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 3584
789ce875
KH
35852001-02-05 Kenichi Handa <handa@etl.go.jp>
3586
52283633
SM
3587 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3588 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
3589 (ccl_driver): If the CCL program is terminated because of
3590 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3591 destination instead of throwing them away.
3592
20b28f82
GM
35932001-02-02 Gerd Moellmann <gerd@gnu.org>
3594
79fb38c0
GM
3595 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3596 faces and other things.
3597
20b28f82
GM
3598 * xdisp.c (get_next_display_element): Fix case of empty
3599 display table entry.
3600
5a72551e
EZ
36012001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3602
eb24d0bf
EZ
3603 * editfns.c (Fconstrain_to_field): Doc fix.
3604
6a3f48c7
EZ
3605 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3606 into `thoroughly', to make it consistent with the doc string.
3607
5a72551e
EZ
3608 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3609
01acdb05
GM
36102001-02-01 Gerd Moellmann <gerd@gnu.org>
3611
0353b28f
GM
3612 * search.c (search_buffer): Call set_search_regs with a byte
3613 position, not a character position.
3614
01acdb05
GM
3615 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3616 minibuffer-only,
3617
e86b5133
EZ
36182001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3619
3620 * frame.c (Fmodify_frame_parameters): Doc fix.
3621
7442878f
GM
36222001-01-31 Gerd Moellmann <gerd@gnu.org>
3623
01acdb05
GM
3624 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3625 identifier which is not reserved by Standard C.
52283633 3626
7442878f
GM
3627 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3628
3629 * window.c (enum window_part): New enumeration.
3630 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3631 Qright_bitmap_area.
3632 (coordinates_in_window): Return an enumerator from enum
3633 window_part. Fix handling of right scroll bar.
3634 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3635 `right-fringe' instead of `left-bitmap-area' and
3636 `right-bitmap-area'. Use enumerators from enum window_part
3637 instead of hard-coded integers.
52283633
SM
3638 (check_window_containing, window_from_coordinates):
3639 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
3640 (syms_of_window): Replace Qleft_bitmap_area and
3641 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3642
7c132cba
EZ
36432001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3644
3645 * editfns.c (Fformat_time_string): Doc fix.
3646
c359dd9e
SM
36472001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3648
3649 * keymap.c (Fwhere_is_internal): Use the first valid binding
3650 if no ascii binding is found (when firstonly is t).
3651
ce070307
GM
36522001-01-31 Gerd Moellmann <gerd@gnu.org>
3653
b4f30ec5
GM
3654 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3655 instead of Finteractive_p.
3656
3657 * lisp.h (interactive_p): Add prototype.
3658
3659 * eval.c (interactive_p): New function.
3660 (Finteractive_p): Use it.
3661
ce070307
GM
3662 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3663
f57b6e64
DL
36642001-01-31 Dave Love <fx@gnu.org>
3665
d61c7afe
DL
3666 * .gdbinit (hook-run): Define to run xreload.
3667
f57b6e64
DL
3668 * textprop.c (Fset_text_properties): Fix newline in doc string.
3669
eef93f99
GM
36702001-01-30 Gerd Moellmann <gerd@gnu.org>
3671
52283633
SM
3672 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3673 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
3674
3675 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 3676 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
3677 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3678
3679 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3680 height.
3681
d9c1f6f9
DL
36822001-01-30 Dave Love <fx@gnu.org>
3683
3684 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3685 AFTER_POTENTIAL_GC.
3686
e8f044a0
GM
36872001-01-29 Gerd Moellmann <gerd@gnu.org>
3688
52283633
SM
3689 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3690 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 3691
8e1db7b3
EZ
36922001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3693
3694 * textprop.c (Fset_text_properties): Doc fix.
3695
4eefd9d2
GM
36962001-01-29 Gerd Moellmann <gerd@gnu.org>
3697
3698 * xdisp.c (forward_to_next_line_start): Remove xassert.
3699
fccb8288
EZ
37002001-01-29 Jason Rumney <jasonr@gnu.org>
3701
4eefd9d2 3702 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
3703 returning without releasing it.
3704
76581eab
KH
37052001-01-29 Kenichi Handa <handa@etl.go.jp>
3706
3707 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3708 for '^', '$', and '\0'.
3709
83a96b4d
AC
37102001-01-28 Andrew Choi <akochoi@i-cable.com>
3711
5604ec34
AC
3712 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3713 regex for '^', '$', and '\0'.
3714
83a96b4d
AC
3715 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3716 only if current_sblock has been initialized.
3717
3718 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3719 terminal frame even if it is the only visible frame.
3720
c09a6440
KH
37212001-01-28 Kenichi Handa <handa@etl.go.jp>
3722
3723 * fontset.c (font_family_registry): Even if FONTNAME conform to
3724 XLFD, if it specifies other fields than family and registry,
52283633 3725 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 3726 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
3727 a signle byte character. Don't set FAMILY part to nil here.
3728 It is handled by the caller choose_face_font.
c09a6440
KH
3729 (Fnew_fontset): Call font_family_registry with FORCE 0.
3730 (Fset_fontset_font): Likewise.
3731
4dcd74e6
GM
37322001-01-27 Gerd Moellmann <gerd@gnu.org>
3733
3734 * xdisp.c (display_line): Don't treat a newline as fitting
3735 on the line.
3736
d2906bf8
GM
37372001-01-26 Gerd Moellmann <gerd@gnu.org>
3738
0130fe1a
GM
3739 * window.c (size_window): Set the window's orig_top to nil when
3740 changing heights, so that a future shrink_mini_window won't
3741 restore a bogus height.
3742
550f0e6a
GM
3743 * frame.c (do_switch_frame): If selected frame has a mini-window,
3744 resize that to exact size.
3745
b7b20fbd
GM
3746 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3747
a47b7816
GM
3748 * xdisp.c (display_line): Simplify check for glyphs fitting
3749 entirely in the line.
3750
d2906bf8
GM
3751 * xfns.c (xic_style): New variable.
3752 (create_frame_xic): Move static variable to global scope for
550f0e6a 3753 the case that `static' gets defined away.
d2906bf8 3754
73df2b1e
KH
37552001-01-26 Kenichi Handa <handa@etl.go.jp>
3756
3757 * coding.c (decode_coding): Set a flag for inhibiting
3758 inconsistent eol.
3759 (code_convert_region): Always set saved_coding_symbol.
3760 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 3761 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 3762
6613cfc4
GM
37632001-01-25 Gerd Moellmann <gerd@gnu.org>
3764
c5e6e06b
GM
3765 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3766 XClearArea.
3767
3768 * xterm.c (x_after_update_window_line): Don't clear if frame's
3769 internal border width is zero.
3770 (x_clear_area): New function.
3771 (x_after_update_window_line, x_clear_end_of_line)
3772 (x_scroll_bar_create, x_scroll_bar_set_handle)
3773 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3774 instead of XClearArea.
3775
3776 * xterm.h (x_clear_area): Add prototype.
3777
6613cfc4
GM
3778 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3779 which doesn't seem necessary anymore with Lesstif 0.92.
3780
650cc6cc
DL
37812001-01-25 Dave Love <fx@gnu.org>
3782
34ac3367
DL
3783 * puresize.h (BASE_PURESIZE): Up to 720000.
3784
650cc6cc
DL
3785 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3786
5e37dc22
GM
37872001-01-25 Gerd Moellmann <gerd@gnu.org>
3788
e1e441f9
GM
3789 * xdisp.c (echo_area_display): Don't call redisplay_internal
3790 when Emacs is shutting down. We can't run hooks etc. that
3791 would be necessary to do a redisplay.
3792
5e37dc22
GM
3793 * lread.c (read_integer): Use type EMACS_INT instead of int.
3794
0fb94c7f
EZ
37952001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3796
3797 * ccl.c (ccl_driver): Fix last change.
3798
e3778624
KH
37992001-01-25 Kenichi Handa <handa@etl.go.jp>
3800
3801 * ccl.h (sturct ccl_program): New member suppress_error.
3802
bb264518 3803 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
3804 insert error message to the output.
3805 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3806
3807 * coding.h (struct coding_system): New member suppress_error.
3808
3809 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3810 (Fset_terminal_coding_system_internal): Set the member
3811 suppress_error to 1.
3812 (Fset_safe_terminal_coding_system_internal): Likewise.
3813
245ed2b1
SM
38142001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3815
3816 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3817 as if it was a `charset'.
3818
f9aaedb6
GM
38192001-01-24 Gerd Moellmann <gerd@gnu.org>
3820
3821 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3822 value in where_is_cache; the next lookup in the cache returns
3823 something bogus if we do.
3824
c3902c3e
EZ
38252001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3826
3827 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3828 if HAVE_WINDOW_SYSTEM isn't defined.
3829
3497f73e
GM
38302001-01-24 Gerd Moellmann <gerd@gnu.org>
3831
e7e41584
GM
3832 * fns.c (sweep_weak_table): Fix code taking items out of
3833 the hash collision chain. Some cleanup.
3834
3497f73e
GM
3835 * xterm.c (x_new_font): Don't change a tooltip's size.
3836
3837 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3838 background color by specifying a color for the default font
3839 in .Xdefaults.
3840
3d48e687
KH
38412001-01-24 Kenichi Handa <handa@etl.go.jp>
3842
96531b20
KH
3843 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3844 a workaround for SunOS 4's cc.
3845 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3846 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3847 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3848 statement.
3d48e687 3849
a30629d2
GM
38502001-01-23 Gerd Moellmann <gerd@gnu.org>
3851
3852 * xterm.c (x_set_window_size_1): New function extracted from
3853 x_set_window_size.
3854 (x_set_window_size): Use it.
3855 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3856 doesn't have a widget, like tooltips.
3857
5a43decf
EZ
38582001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3859
52283633 3860 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 3861
b0e98867
KH
38622001-01-23 Kenichi Handa <handa@etl.go.jp>
3863
3864 * fns.c (Fset_char_table_default): Fix to make sub char-table
3865 correctly.
3866
50606b4c
GM
38672001-01-22 Gerd Moellmann <gerd@gnu.org>
3868
cb2ddc53 3869 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
3870 a desired tool bar string, even if there are no tool bar items.
3871
57c28064
GM
3872 * xdisp.c (Ftool_bar_lines_needed): New function.
3873 (syms_of_xdisp): Defsubr it.
3874
50606b4c
GM
3875 * editfns.c (Fformat): Don't extend text properties from arguments
3876 to padding chars in the result.
3877
2f169c38
EZ
38782001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3879
3880 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3881
0f32f023
AI
38822001-01-20 Andrew Innes <andrewi@gnu.org>
3883
52283633 3884 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
3885 (w32_initialize): Don't set term hooks that aren't actually needed
3886 in windowed mode.
3887
3888 * xfaces.c (realize_default_face):
3889 (realize_face):
3890 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3891
3892 * xdisp.c (handle_single_display_prop): Remove references to
3893 FRAME_W32_CONSOLE_P.
3894
52283633 3895 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
3896
3897 * frame.h (output_method): Remove output_w32_console method.
3898 (FRAME_W32_CONSOLE_P): Remove macro.
3899
3900 * frame.c (Qw32_console): Remove variable.
3901 (Fframep): Remove references to it.
3902 (syms_of_frame): Ditto.
3903 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3904
3905 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3906 redefinition.
3907
7173eada
KH
39082001-01-20 Kenichi Handa <handa@etl.go.jp>
3909
3910 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3911
755b45ce
AI
39122001-01-19 Andrew Innes <andrewi@gnu.org>
3913
3914 * w32.c (init_environment): Add a version-independent site-lisp
3915 directory to EMACSLOADPATH, after the version dependent one.
3916
0a949811
GM
39172001-01-19 Gerd Moellmann <gerd@gnu.org>
3918
8501998a
GM
3919 * editfns.c (Fbuffer_substring): Doc fix.
3920
52283633
SM
3921 * xdisp.c (message_dolog, message2, message2_nolog):
3922 Rename parameter LEN to NBYTES.
0a949811 3923
e6ebcbbe
KH
39242001-01-19 Kenichi Handa <handa@etl.go.jp>
3925
200ecca2
KH
3926 * charset.c (strwidth): Use c_string_width.
3927 (c_string_width): New function.
3928 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3929 Caller changed.
3930
3931 * charset.h (c_string_width, lisp_string_width): Extern them.
3932
52283633 3933 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 3934
e6ebcbbe
KH
3935 * indent.c (check_composition): Check validity of composition.
3936
200ecca2
KH
3937 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3938 characters by calling c_string_width.
3939 (x_consider_frame_title): Get byte length of frame tile string
3940 correctly.
3941 (display_mode_element): Pay attention to width of non-ASCII
3942 characters by calling strwidth.
3943
8692ca92
GM
39442001-01-18 Gerd Moellmann <gerd@gnu.org>
3945
8962e303
GM
3946 * xfns.c (Qcancel_timer): New variable.
3947 (syms_of_xfns): Initialize and staticpro it.
3948 (Fx_hide_tip, Fx_show_tip): Use it.
3949 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3950 the timer.
3951 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3952
91523be9
GM
3953 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3954
3955 * window.h (WINDOW_LIVE_P): New macro.
3956
b0b7ed0e
GM
3957 * window.c (window_size_fixed): New variable.
3958 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3959 the doc string.
3960
06bccf8e
GM
3961 * eval.c (specbind): If binding a per-buffer variable which
3962 doesn't have a buffer-local value in the current buffer, change
3963 the global value by changing the value of the symbol bound in all
3964 buffers not having their own value, to make it consistent with
3965 what happens with other buffer-local variables.
3966
8692ca92
GM
3967 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3968
3969 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3970 when searching for a newline.
3971
bb3a3b50
KH
39722001-01-18 Kenichi Handa <handa@etl.go.jp>
3973
3974 * xdisp.c (display_string): Fix previous change.
3975
c2cc16fa
JR
39762001-01-18 Jason Rumney <jasonr@gnu.org>
3977
3978 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3979 GLYPH_DEBUG is defined.
3980 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3981 true for images with `:ascent 100'.
3982 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3983 meantime, use face MOUSE_FACE_ID.
3984 If first glyph isn't a character glyph, use the ASCII NUL
3985 character to determine the face.
3986 (expose_area): Do not treat left margin specially.
3987 (note_mode_line_highlight): If no local_map, check global keymap.
3988 (note_mouse_highlight): Initialize overlay.
52283633 3989 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
3990 (show_scroll_bars): Remove unused function.
3991 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3992 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3993 Clip to row.
52283633 3994 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
3995 (x_free_frame_resources): Unload relief colors.
3996
9c11f79e
GM
39972001-01-17 Gerd Moellmann <gerd@gnu.org>
3998
3aec8722 3999 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
4000 get_next_display_element when the newline is already found.
4001 This may change the iterator's position, when its current position is
3aec8722
GM
4002 equal to the iterator's stop_charpos.
4003
f3ffc2c3
GM
4004 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4005 zero, use this method only at the end of a line.
4006
52283633 4007 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
4008 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4009 if SCALABLE_FONTS_P is set.
52283633 4010
d26d6fd9
GM
4011 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4012 so that scalable fonts are included.
4013
9c11f79e
GM
4014 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4015 In the cache, use a key containing the information if scalable
4016 fonts are included.
4017 (x_load_font): Adapt to change of keys in the font cache.
4018
40192001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 4020
d26d6fd9
GM
4021 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4022 XListFonts to take advantage of font caching.
4023
9c11f79e
GM
4024 * xterm.c (x_list_fonts): Ensure caching font information when
4025 called for a null frame, which is the case frequently when Emacs
4026 starts.
4027
51446987
GM
40282001-01-17 Gerd Moellmann <gerd@gnu.org>
4029
f864120f
GM
4030 * xfns.c (QCconversion): Replaces QCalgorithm.
4031
4032 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4033
4034 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4035 of :algorithm.
52283633 4036
e37d1417
GM
4037 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4038 not everything could be displayed.
4039
51446987
GM
4040 * line.h, x-list-font.c: Files removed because unused.
4041
9ad4f3e5
AI
40422001-01-17 Andrew Innes <andrewi@gnu.org>
4043
4044 * dired.c (directory_files_internal): Convert result from readdir
4045 to a unibyte string initially, to avoid possible misinterpretation
4046 of some bytes as the internal form of Emacs characters.
4047
2eda09b5
KH
40482001-01-17 Kenichi Handa <handa@etl.go.jp>
4049
4050 * fns.c (concat): Be sure to avoid putting the same `composition'
4051 property on the adjacent regions.
4052
826f3788
GM
40532001-01-16 Gerd Moellmann <gerd@gnu.org>
4054
52283633 4055 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
4056 (Fscroll_right, Fscroll_left): Set it here instead, if called
4057 interactively.
4058
d57b83b3
GM
4059 * buffer.c (Fset_buffer_modified_p): Set buffer's
4060 prevent_redisplay_optimizations_p flag.
4061
826f3788 4062 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
4063 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4064 with additional arg.
4065
4066 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4067 Change prototype.
826f3788 4068
826f3788
GM
4069 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4070 FROM_WHERE, for debugging.
4071
261d788b
KH
40722001-01-16 Kenichi Handa <handa@etl.go.jp>
4073
4074 * ccl.c (Fregister_ccl_program): Handle the return value of
4075 resolve_symbol_ccl_program correctly.
52283633 4076 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 4077
bccee4f2
GM
40782001-01-15 Gerd Moellmann <gerd@gnu.org>
4079
e4ded23c
GM
4080 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4081 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
4082
4083 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
4084 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
4085 the display; we didn't open it.
4086
bccee4f2
GM
4087 * dispnew.c (save_or_restore_current_matrices): Function removed.
4088 (save_current_matrix, restore_current_matrix): New functions.
4089 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
4090 restore the frame's current matrix. Due to the glyph pointer
4091 setup done in adjust_glyph_matrix, there is no easy way to make
4092 saving the current matrix in the desired matrix generally correct,
4093 so don't try it.
4094
ebeccffa
KH
40952001-01-15 Kenichi Handa <handa@etl.go.jp>
4096
4097 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
4098 truncation glyphs.
4099 (display_line): Optimize for wide characters.
e4ded23c 4100 (display_string): Don't try to display a multi-column character
ebeccffa
KH
4101 partially. On ttys, produce more than one truncation glyph for
4102 multi-column characters that don't fit on the line.
4103
64388126
KH
41042001-01-13 Kenichi Handa <handa@etl.go.jp>
4105
52283633
SM
4106 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
4107 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 4108
8edb0a6f
JR
41092001-01-13 Jason Rumney <jasonr@gnu.org>
4110
4111 * w32fns.c (Fimage_size, image_ascent, lookup_image)
4112 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
4113 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4114 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 4115
52283633
SM
4116 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
4117 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
4118 (x_draw_image_glyph_string): Adapt to change of image margins.
4119
4120 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
4121 variables.
4122
4123 * w32bdf.c (search_file_line, get_cached_font_char)
4124 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
4125
4126 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
4127
4128 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
4129 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
4130 (Fw32_send_sys_command): Remove unused variables.
4131 (w32_msg_pump): Add parentheses.
4132
4133 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
4134 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
4135 Add parentheses.
4136
4956d1ef
GM
41372001-01-12 Gerd Moellmann <gerd@gnu.org>
4138
b30623be
GM
4139 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
4140 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
4141 being a pair of margins.
4142 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
4143 to DEFVAR_LISP. Extend doc.
4144
4145 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
4146 margins.
4147 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
4148 pair of integers `(X . Y)', use X for the horizontal and Y for the
4149 vertical margin.
4150 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
4151 (parse_image_spec): Check it.
52283633
SM
4152 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4153 (tiff_format, gif_format, gs_format):
4154 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 4155
52283633
SM
4156 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4157 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
4158 (x_draw_image_glyph_string): Adapt to the change of image margins.
4159
4160 * dispextern.h (struct image): Replace member `margin' with
4161 `hmargin' and `vmargin'.
4162
4554cc79
GM
4163 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4164 and GLYPHS.
4165
4166 * dispnew.c (update_text_area): Put code which decrements the
4167 stop position when the row's face extends to the end of the
3bffc665 4168 line in #if 0.
4554cc79 4169
3cccce8d
GM
4170 * xfns.c (x_set_mouse_color): Fix color allocation.
4171
4956d1ef
GM
4172 * keyboard.c: Call get_local_map with new argument list.
4173
4174 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4175
4176 * intervals.h (enum map_property): Removed.
4177 (get_local_map): Change prototype.
4178
4179 * keymap.c: Call get_local_map with new argument list.
4180 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4181
2c2ff7f2
GM
41822001-01-11 Gerd Moellmann <gerd@gnu.org>
4183
a23887b9
GM
4184 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4185 of the size needed for the tool bar string. For the last image,
4186 use a `display' property that reaches to the end of the string.
4187
a7ee2d2e
GM
4188 * xselect.c (selection_request_dpyinfo): New variable.
4189 (x_handle_selection_request): Set it.
4190 (x_selection_request_lisp_error): Don't call
4191 x_decline_selection_request if selection request's display has
4192 been closed.
4193
52283633
SM
4194 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4195 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 4196
457b792c
GM
41972001-01-10 Dave Love <fx@gnu.org>
4198
4199 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4200 ${SOME_MACHINE_LISP}, not ${lisp}.
4201
c1efd260
GM
42022001-01-10 Gerd Moellmann <gerd@gnu.org>
4203
52283633
SM
4204 * xdisp.c (display_line): On ttys, produce more than one truncation
4205 glyph for multi-column characters that don't fit on the line.
a98b5ed9 4206
ac95a621
GM
4207 * xselect.c (x_reply_selection_request): Add a comment.
4208
c1efd260
GM
4209 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4210 XkbGetNames instead of XkbGetKeyboard.
4211
1bfb1345
DL
42122001-01-10 Dave Love <fx@gnu.org>
4213
4214 * sysdep.c (random): Revert the declaration.
4215
38119822
GM
42162001-01-09 Gerd Moellmann <gerd@gnu.org>
4217
52283633
SM
4218 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4219 Call function string_bytes.
35f464a7
GM
4220 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4221
4222 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4223 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4224 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4225 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4226 the current sblock.
4227 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4228 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4229 after sweeping strings, and at the end.
4230 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4231
38119822
GM
4232 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4233 ensure that pop_message is called.
4234
4235 * keyboard.c (Fexecute_extended_command): Use a
4236 record_unwind_protect to ensure that pop_message is called.
4237
4238 * lisp.h (push_message_unwind): Add prototype.
4239
4240 * xdisp.c (push_message_unwind): New function.
4241
4242 * fileio.c (do_auto_save_unwind): Do the pop_message here
4243 instead of in Fdo_auto_save.
4244 (Fdo_auto_save): Don't call pop_message.
4245
f47a9ec4
KR
42462001-01-08 Ken Raeburn <raeburn@gnu.org>
4247
4248 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4249 in inner block.
4250
a758f97d
GM
42512001-01-08 Gerd Moellmann <gerd@gnu.org>
4252
6d0afc03
GM
4253 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4254 when increasing window's vscroll.
4255
a758f97d
GM
4256 * macros.c (Qkbd_macro_termination_hook): New variable.
4257 (syms_of_macros): Initialize and staticpro it.
4258 (pop_kbd_macro): Run kbd-macro-termination-hook.
4259
4260 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4261
1bfb1345 42622001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
4263
4264 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4265 arglist, for documentation's sake.
4266
0dac6924
AI
42672001-01-06 Andrew Innes <andrewi@gnu.org>
4268
4269 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4270 of *.pdb.
4271
8182406a
AI
42722001-01-05 Andrew Innes <andrewi@gnu.org>
4273
4274 * term.c (update_end): Don't check updating_frame; for some reason
4275 this can be 0 sometimes, such as after dismissing a popup menu,
4276 and isn't necessary given the explicit frame argument.
4277
3828218c
GM
42782001-01-05 Gerd Moellmann <gerd@gnu.org>
4279
4280 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4281 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4282
2f5ded21
GM
42832001-01-04 Gerd Moellmann <gerd@gnu.org>
4284
52283633 4285 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
4286
4287 * xfns.c (x_create_tip_frame): Preserve the value of
4288 face_change_count around the creation of the tip frame.
52283633 4289
2f5ded21
GM
4290 * xfns.c (last_show_tip_args): New variable.
4291 (compute_tip_xy): New function.
4292 (Fx_show_tip): Reuse an existing tip frame, if possible.
4293 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4294
dfad65fa
DL
42952001-01-04 Dave Love <fx@gnu.org>
4296
64d4ec0f
DL
4297 * editfns.c (Fformat): Doc fix.
4298
dfad65fa
DL
4299 * systime.h (set_file_times): Prototype.
4300
4301 * widget.h (EmacsFrameSetCharSize_): Prototype.
4302
4303 * sysdep.c (random, srandom): Declare explicitly.
4304
4305 * dispextern.h (move_it_vertically_backward): Declare.
4306
85fe3b5e
GM
43072001-01-04 Gerd Moellmann <gerd@gnu.org>
4308
0f2ac578
GM
4309 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4310 like in Fx_create_frame.
4311
482cca61
GM
4312 * xfaces.c (set_font_frame_param): Don't do anything for
4313 non-graphical frames.
4314
85fe3b5e
GM
4315 * window.c (Fdelete_other_windows): Set window's window_end_valid
4316 to nil when changing the window's start. Don't change the
4317 window's start when its top position hasn't changed. If we do,
4318 this will set the window's optional_new_start, which act's like a
4319 force_start during redisplay with C-x 1 M-> under particular
4320 circumstances (see report from Per Starback to emacs-pretest-bug
4321 from 2000-12-13.).
4322
3e99d3b4
GM
43232001-01-03 Gerd Moellmann <gerd@gnu.org>
4324
a77dc1ec
GM
4325 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4326 short cut at the start of the function. Add an assertion.
4327 (reseat_at_next_visible_line_start): Add an assertion.
4328
2f3cad6c
GM
4329 * window.c (Frecenter): When changing the window start, set the
4330 window's window_end_valid to nil.
4331 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4332
4333 * dispextern.h (move_it_past_eol): Add prototype.
4334
4335 * xdisp.c (move_it_past_eol): New function.
4336
3e99d3b4
GM
4337 * window.c (Fwindow_end): Doc fix.
4338
43392001-01-03 Dave Love <fx@gnu.org>
4340
52283633 4341 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 4342
bafb434c
GM
43432001-01-03 Gerd Moellmann <gerd@gnu.org>
4344
4345 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4346 the enabled_p flag of the glyph row at window_end_vpos to 0.
4347 (handle_single_display_prop): Fix last change.
4348
5297fb00
RS
43492001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4350
4351 * window.c (Frecenter): Doc fix.
4352
13d6a61c
AI
43532001-01-02 Andrew Innes <andrewi@gnu.org>
4354
4355 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4356
4357 * frame.h (output_method): Add output_w32_console method.
4358 (FRAME_W32_CONSOLE_P): New macro.
4359
4360 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4361 use output_w32_console method.
4362 (Qw32_console): New Lisp_Object.
4363 (Fframep): Return it.
4364 (syms_of_frame): Init it.
52283633 4365 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
4366
4367 * xfaces.c (realize_default_face): Set face foreground and
4368 background to unspecified for w32_console frames.
4369 (realize_face): Realize face cache for w32_console frames.
4370 (realize_tty_face): Accept w32_console frames.
4371
52283633 4372 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
4373 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4374 necessary, even if running interactively.
4375
4376 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4377 w32_console frames.
4378
52283633
SM
4379 * w32term.c (x_update_begin):
4380 (x_update_end):
4381 (x_clear_frame):
4382 (x_ins_del_lines):
4383 (x_change_line_highlight):
4384 (x_delete_glyphs):
4385 (w32_ring_bell):
4386 (x_update_begin):
4387 (x_update_end):
4388 (w32_reassert_line_highlight):
4389 (w32_frame_rehighlight):
13d6a61c
AI
4390 (w32_frame_raise_lower): Do nothing if not w32 frame.
4391
4392 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4393
4394 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4395 system doesn't tell us directly.
4396 (Fx_display_visual_class): Implement properly.
4397
d6bb0c0d
GM
43982001-01-02 Gerd Moellmann <gerd@gnu.org>
4399
4400 * window.c (Frecenter): Handle centering in graphical frames
4401 specially. Centering on the basis of line counts doesn't work
4402 reliably with variable-height lines.
52283633 4403
315f5865
EZ
44042001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4405
4406 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4407 and al[].
4408
52283633 4409 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
4410 (update_compositions): Remove unused variable `hook'.
4411
4412 * intervals.c (get_local_map): Remove unused variable `tem'.
4413
4414 * doprnt.c (doprnt1): Remove unused variable `size'.
4415
4416 * fns.c (Flength): Remove unused variable `tail'.
4417 (Fdelete): Remove unused variable `size'.
4418
4419 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4420 and `gcpro2'.
4421
52283633 4422 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
4423
4424 * data.c (find_symbol_value): Remove extra 3rd argument in the
4425 call to swap_in_symval_forwarding.
4426
52283633 4427 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
4428
4429 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4430 (trivial_regexp_p): Remove unused variable `c'.
4431 (boyer_moore): Remove unused variable `k'.
4432
4433 * indent.c (current_column): Remove unused variable `stopchar'.
4434 (Fcompute_motion): Remove unused variable `contin'.
4435
4436 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4437
4438 * dired.c (directory_files_internal): Fix a typo in a comment.
4439 Remove an unused variable `handler'.
52283633 4440 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
4441 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4442 on BSD4_2.
4443
52283633 4444 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
4445
4446 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4447 and `buf'.
4448 (Fmarker_insertion_type): Remove unused variable `buf'.
4449
4450 * insdel.c (make_gap): Remove unused variable `result'.
4451
52283633 4452 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
4453 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4454 (menu_bar_items): Remove unused function-scope variable `tem'.
4455
4456 * fontset.c (fontset_ref): Remove unused variable `i'.
4457 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 4458 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
4459 (make_fontset_for_ascii_face): Remove unused variable `name'.
4460 (fs_load_font): Remove unused variable `font_idx'.
52283633 4461 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
4462 (list_fontsets): Remove unused variable `tail'.
4463 (Fnew_fontset): Remove unused variables `family' and `registry'.
4464 (accumulate_font_info): Remove unused variable `tmp'.
4465 (Ffontset_font): Remove unused variable `id'.
4466 (syms_of_fontset): Remove unused variable `i'.
4467
4468 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4469 to x_term_init.
4470 (lookup_image): Remove unused variable `file'.
4471 (xbm_load): Remove unused variables `bitmap_data', `height', and
4472 `width'. Remove function-local variable `i', leave the
4473 block-local one.
4474 (gif_load): Remove unused variable `inc'.
4475
52283633 4476 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
4477 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4478 leave only the one in the inner block.
4479
4480 * xfaces.c (face_fontset, realize_default_face): Remove unused
4481 variable `fontset'.
4482 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4483
4484 * term.c (encode_terminal_code): Remove unused variable `c'.
4485
4486 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4487 char *' instead of `char *'.
4488
4489 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 4490 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
4491 (Fchar_category_set): Remove unused variables `val', `charset',
4492 `c1' and `c2'.
4493
52283633
SM
4494 * coding.c (detect_coding_iso2022, setup_coding_system):
4495 Remove unused variable `i'.
315f5865
EZ
4496 (detect_coding_mask): Remove unused variable `idx'.
4497 (detect_coding): Remove unused variable `i'.
4498 (ccl_coding_driver): Remove unused variable `result'.
4499 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 4500 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
4501 (encode_coding_string): Remove unused variables `gcpro1' and
4502 `saved_coding_symbol'.
4503 (Ffind_coding_systems_region_internal): Remove function-local
4504 variable args[], leave only the block-local one.
4505 (code_convert_region1): Remove unused variable `len'.
4506
4507 * charset.c (char_printable_p): Remove unused variable `chars'.
4508 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4509 (str_to_multibyte): Remove unused variable `c'.
4510
4511 * window.c (size_window): Remove block-local variable `min_size'.
4512
4513 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4514 `header_line_height'.
4515 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4516 enum display_element_type.
4517
1a8a9daf
GM
45182001-01-02 Gerd Moellmann <gerd@gnu.org>
4519
6dde6abc 4520 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
4521 statements that call X. Save away the error message in a local copy.
4522
1883b2c6
GM
4523 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4524 the start.
4525
a13be207
GM
4526 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4527 in or at the start of invisible text.
4528
1a8a9daf
GM
4529 * dispnew.c (update_window): Don't check_current_matrix_flags.
4530
3608c0f9
JR
45312001-01-01 Jason Rumney <jasonr@gnu.org>
4532
4533 * w32fns.c (x_figure_window_size): Do not allow new_height and
4534 new_width of frame to override specified values.
4535
abb1acc4
KH
45362000-12-30 Kenichi Handa <handa@etl.go.jp>
4537
52283633 4538 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 4539
762a68ec
GM
45402000-12-29 Gerd Moellmann <gerd@gnu.org>
4541
52283633 4542 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
4543 (update_window) [GLYPH_DEBUG]: Call it.
4544 (scrolling_window): Prevent including current rows which are below
4545 what's displayed in the window.
4546
4547 * xdisp.c (try_window_reusing_current_matrix)
4548 <new start <= old start>: Disable rows in the current matrix
4549 which are below the window after scrolling.
52283633 4550
762a68ec
GM
4551 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4552 is zero. It's not worth the complexity.
4553 (invisible_text_between_p): Put in #if 0 because unused.
4554
2d5912c1
GM
45552000-12-28 Gerd Moellmann <gerd@gnu.org>
4556
46f6a258
GM
4557 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4558 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4559
89f93679
GM
4560 * keyboard.c (echo_char): If C is an integer, always call
4561 push_key_description. Former code could signal an invalid
4562 character error.
4563
4564 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4565 If set, print multibyte text.
4566 (Fsingle_key_description): Call push_key_description with
4567 FORCE_MULTIBYTE set.
4568 (describe_buffer_bindings): Likewise.
4569
4570 * lisp.h (push_key_description): Add prototype.
4571
c06017fb
GM
4572 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4573 around the call to redisplay_internal.
4574
f1d2ce7f
GM
4575 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4576
2d5912c1
GM
4577 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4578
9371f831
KH
45792000-12-28 Kenichi Handa <handa@etl.go.jp>
4580
4581 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4582 (ccl_driver): New local variable `extra_bytes'.
4583
4584 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4585
52283633
SM
4586 * coding.c (setup_coding_system):
4587 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
4588 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4589
0c80628a
KH
45902000-12-28 Kenichi Handa <handa@etl.go.jp>
4591
4592 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4593 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4594 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4595 (decode_composition_emacs_mule): New function.
4596 (decode_coding_emacs_mule): Decode composition sequence by calling
4597 decode_composition_emacs_mule.
4598 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
4599 (encode_coding_emacs_mule): Changed from macro to function.
4600 If a text contains compositions, encode them correctly.
0c80628a
KH
4601 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4602 that decoding and encoding are required.
4603
3e32cc27
GM
46042000-12-27 Gerd Moellmann <gerd@gnu.org>
4605
5e25feee
GM
4606 * xfaces.c (PT_PER_INCH): New macro.
4607 (xlfd_point_size): Compute real point size from font's pixel size.
4608 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4609 instead of 72.
4610
892d8fcd
GM
4611 * .gdbinit: Comment out the line pointing to the Lesstif source
4612 directory.
4613
12c8b416
GM
4614 * window.c (Frecenter): Use displayed_window_lines instead
4615 of window_internal_height.
4616
6061fbf0
GM
4617 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4618 instead of x-toolkit-scroll-bars-p.
4619 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4620
4621 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4622 instead of x-toolkit-scroll-bars-p.
4623 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 4624
3e32cc27
GM
4625 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4626 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
4627 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4628 New variables.
4629 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
4630 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4631 (build_frame_matrix_from_leaf_window): Remove unused code.
4632 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4633 redisplay history.
4634 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4635 (update_window) [GLYPH_DEBUG]: Likewise.
4636 (syms_of_display): Defsubr dump-redisplay-history.
4637
31798cfe
GM
46382000-12-23 Gerd Moellmann <gerd@gnu.org>
4639
f717c2ba
GM
4640 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4641 the end of the prompt. Set echo_after_prompt to the offset
4642 of echoptr in echobuf.
4643
aeb2b8fc
GM
4644 * xdisp.c (init_from_display_pos): Pop until the iterator's
4645 stack is empty; there may be frames for stretch or images
4646 on the stack.
4647
31798cfe
GM
4648 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4649 (save_or_restore_current_matrix): New function for the same
4650 purpose, but more efficient.
4651 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4652
f8156156
EZ
46532000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4654
4655 * xdisp.c (syms_of_xdisp): Fix last change.
4656
bdd6d4e8
GM
46572000-12-23 Gerd Moellmann <gerd@gnu.org>
4658
4659 * xdisp.c (syms_of_xdisp): Doc fix.
4660
4661 * xdisp.c (redisplay_window): Remove label restore_buffers;
4662 use finish_scroll_bars instead to make sure that scroll bars
4663 are redeemed. If we don't do this, flickering can result from
4664 scroll bars being destroyed and recreated.
4665
9436cdf9
JR
46662000-12-22 Jason Rumney <jasonr@gnu.org>
4667
4668 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4669 in the wrong colors when the foreground is not black.
4670 (expose_window): Don't redraw the window that's currently being
4671 updated.
4672
951f9df5
GM
46732000-12-22 Gerd Moellmann <gerd@gnu.org>
4674
856ff7a7
GM
4675 * window.c (size_window): When setting the window's too_small_ok
4676 flag, compare old size with minimum size depending on WIDTH_P,
4677 don't compare with window_min_width.
52283633 4678
951f9df5
GM
4679 * window.c (delete_window): Simplify somewhat.
4680 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4681 freeing window matrices. The flag windows_or_buffers_changed is
4682 set, so the next redisplay will consider all windows; this should
4683 suffice.
4684
886bc933
KH
46852000-12-22 Kenichi Handa <handa@etl.go.jp>
4686
4687 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4688
4689 * ccl.h (struct ccl_program): New member cr_consumed.
4690
4691 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4692 (CCL_READ_CHAR): Handle EOL conversion here.
4693 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4694
177f4e88
GM
46952000-12-21 Gerd Moellmann <gerd@gnu.org>
4696
52283633 4697 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
4698
4699 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4700 otherwise tabs of different size compare equal.
4701
4702 * callint.c (Fcall_interactively): Prevent a compiler warning.
4703
4704 * print.c (print_unwind): Return nil.
4705 (PRINTDECLARE): Initialize all local variables.
4706 (print_preprocess): Add a default case.
4707
8e15274f
GM
4708 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4709
4710 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4711
52283633 4712 * window.c (delete_window, Fsplit_window)
177f4e88
GM
4713 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4714
4715 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4716
4717 * dispnew.c (ensure_frame_matrix): Removed.
4718 (save_frame_matrix, restore_frame_matrix): New functions.
4719 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4720
4721 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4722 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4723
99012074
AI
47242000-12-21 Andrew Innes <andrewi@gnu.org>
4725
4726 * w32term.c (x_update_begin): Regenerate the palette here, rather
4727 than for each window.
4728
4729 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4730 palette is NULL, since this corrupts memory! Also get
4731 display_info reference from frame.
4732
29ef7d2d
JR
47332000-12-21 Jason Rumney <jasonr@gnu.org>
4734
4735 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4736
4737 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4738 to avoid returning without releasing it.
3e27fa1f 4739
3f9d67a6
KH
47402000-12-21 Kenichi Handa <handa@etl.go.jp>
4741
587fc3f9
KH
4742 * keymap.c (push_key_description): Don't convert eight-bit-control
4743 and eight-bit-graphic to multibyte character.
4744
3f9d67a6
KH
4745 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4746 generic character and CODE1 is nil, return the smallest character
4747 in CHARSET.
4748
774ba8c9
DL
47492000-12-20 Dave Love <fx@gnu.org>
4750
4751 * s/osf5-0.h (NSIG): Don't redefine.
4752
88416888
SM
47532000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4754
4755 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4756 excluding menu-bar and tool-bar.
4757 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4758 (menu_item_p): Remove.
4759 (where_is_internal_1): Don't ignore menu-items.
4760
a6426c6f
GM
47612000-12-20 Gerd Moellmann <gerd@gnu.org>
4762
03ff8aab
GM
4763 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4764 into account.
4765
4766 * window.c (make_window): Initialize window's min_hscroll.
4767 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4768 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4769 to zero.
4770 (struct saved_window): New member min_hscroll.
4771 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4772 (Fset_window_configuration): Set window's min_hscroll.
4773 (save_window_save): Save window's min_hscroll.
4774 (compare_window_configurations): Compare min_hscroll values.
4775
4776 * window.h (struct window): New member min_hscroll.
4777
4778 * keyboard.c (echo_prompt): Prevent a compiler warning.
4779
8de4aaf8
GM
4780 * xdisp.c (try_cursor_movement): Fix last change. The real
4781 condition is that PT is at the end of the row, and should
4782 be displayed at the start of the next row.
52283633 4783
3f7e3031
GM
4784 * xdisp.c (try_cursor_movement): If we end on a partially
4785 visible line, end we already decided to scroll, return -1.
4786
a6426c6f
GM
4787 * dispextern.h (ensure_frame_matrix): Add prototype.
4788
4789 * window.c (delete_window, Fsplit_window)
4790 (Fset_window_configuration): Call ensure_frame_matrix.
4791
52283633
SM
4792 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4793 New functions.
a6426c6f
GM
4794 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4795 completed, call fake_current_matrices instead of marking frame
4796 garbaged.
4797
57fa2774
JR
47982000-12-20 Jason Rumney <jasonr@gnu.org>
4799
4800 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4801
d925df90
EZ
48022000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4803
4804 * fns.c (Frequire): Doc fix.
4805
7b93a85b
GM
48062000-12-19 Gerd Moellmann <gerd@gnu.org>
4807
52283633 4808 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 4809
c74e645b
GM
4810 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4811 currently displaying a message.
4812
7b93a85b
GM
4813 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4814 xterm.h.
4815 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4816
90d97e64
AI
48172000-12-18 Andrew Innes <andrewi@gnu.org>
4818
4819 * w32.c (w32_strerror): New function.
4820
4821 * w32.h (w32_strerror): New extern.
4822
4823 * w32fns.c (Fw32_shell_execute): Use it.
4824
91c9e6ce
GM
48252000-12-18 Gerd Moellmann <gerd@gnu.org>
4826
4827 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4828
6f4745e2
EZ
48292000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4830
4831 * msdos.c (IT_set_face): Obey inverse_video.
4832
c9e088ce
KH
48332000-12-18 Kenichi Handa <handa@etl.go.jp>
4834
4835 * dired.c (directory_files_internal): Always return decoded filenames.
4836
c3695f5f
GM
48372000-12-18 Gerd Moellmann <gerd@gnu.org>
4838
52d8e4ff
GM
4839 * xterm.c (x_connection_closed): Prevent being called recursively
4840 because of an error condition in XtCloseDisplay.
52283633 4841
62be9979
GM
4842 * xdisp.c (init_iterator): If noninteractive, and the frame's
4843 face cache is null, make one.
4844
52283633 4845 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 4846
c3695f5f
GM
4847 * process.c (wait_reading_process_input): Check for pending
4848 input when running timers.
4849
78555fbe
EZ
48502000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4851
52283633 4852 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 4853
b2b36264
KH
48542000-12-18 Kenichi Handa <handa@etl.go.jp>
4855
4856 * process.c (read_process_output): Don't run a filter if the code
4857 decoder produces nothing but carryover.
4858
9c543fbf
AI
48592000-12-17 Andrew Innes <andrewi@gnu.org>
4860
4861 * w32.c (sys_rename): Only check errno against EEXIST, and not
4862 EACCES, when determining whether rename failed because the target
4863 exists. This was resulting in indefinite looping on Windows 9x if
4864 the source file was locked by another process.
4865
4866 * w32fns.c (Ffile_system_info): New function.
4867 (syms_of_w32fns): Defsubr it.
4868
10c2b5a8
GM
48692000-12-17 Gerd Moellmann <gerd@gnu.org>
4870
b0228ace
GM
4871 * window.c (coordinates_in_window): Fix computation for
4872 position on vertical line between mode lines.
4873
10c2b5a8
GM
4874 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4875 Don't alter tip_frame or tip_window.
4876 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4877 was deleted.
4878
c844a81a
GM
4879 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4880 Don't alter tip_frame or tip_window.
4881 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4882 was deleted.
4883
6c825f8e
EZ
48842000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4885
4886 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4887 be consistent with the doc string. Reported by NAKAJIMA Mikio
4888 <minakaji@osaka.email.ne.jp>.
4889
af4bb4c8
KH
48902000-12-16 Kenichi Handa <handa@etl.go.jp>
4891
4892 * xfaces.c (Vface_ignored_fonts): New variable.
4893 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4894 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4895
8062e53a
GM
48962000-12-15 Gerd Moellmann <gerd@gnu.org>
4897
e87b8809
GM
4898 * dispnew.c (update_window): Detect pending input every nth line
4899 updated, i.e. do it depending on real work done, and not on the
4900 vpos of the line.
4901
4902 * xterm.c (expose_window): Don't redraw the window that's
4903 currently being updated.
4904
a6768cc5
GM
4905 * window.c (Fset_window_point): Remove test for
4906 cursor_in_non_selected_windows.
4907
4ea7fdca
GM
4908 * lread.c (read1): Recognize end of file after `\\'.
4909
8062e53a
GM
4910 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4911 not unwind_create_frame.
4912
bb7959c1
GM
49132000-12-15 Dave Love <fx@gnu.org>
4914
4915 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4916 bcopy & al.
4917
4918 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4919
ced04c42
KH
49202000-12-15 Kenichi Handa <handa@etl.go.jp>
4921
c5443913
KH
4922 * coding.c (setup_coding_system): Clear all members of the struct
4923 coding_system at first.
bc137305
KH
4924 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4925 argument.
4926 (code_convert_region): Don't override coding->src_multibyte and
4927 coding->dst_multibyte.
c5443913 4928
ced04c42
KH
4929 * fns.c (Fmd5): Docstring improved.
4930
c2d7f289
MB
49312000-12-15 Miles Bader <miles@gnu.org>
4932
4933 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4934 are actually marked as mode-lines; otherwise use
4935 estimate_mode_line_height.
4936
9d7d9263
GM
49372000-12-14 Gerd Moellmann <gerd@gnu.org>
4938
4939 * editfns.c (Fformat): Prevent a buffer overrun when the format
4940 specifies a precision.
4941
7cf0153a
EZ
49422000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4943
4944 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4945 argument is outside the range [2..3].
4946
1de0f662
AI
49472000-12-14 Andrew Innes <andrewi@gnu.org>
4948
4949 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4950 nothing to do. Bind inhibit-quit.
4951 (tip_frame): Make it a Lisp_Object.
4952 (x_create_tip_frame): Set tip_frame after it has been added to
4953 Vframe_list.
4954 (Fx_show_tip): Don't set tip_frame here.
52283633 4955 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
4956 (unwind_create_frame, unwind_create_tip_frame): New functions.
4957 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4958 while a frame is only partially constructed.
4959
4960 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4961 (x_free_frame_resources): New function.
4962 (x_destroy_window): Use it.
4963
02387dcc
GM
49642000-12-14 Gerd Moellmann <gerd@gnu.org>
4965
4966 * xfns.c (Fx_backspace_delete_keys_p): New function.
4967 (syms_of_xfns): Defsubr it.
4968
4969 * config.in (HAVE_XKBGETKEYBOARD): Add.
4970
0544ef49
KH
49712000-12-14 Kenichi Handa <handa@etl.go.jp>
4972
98d62747
KH
4973 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4974 Always store string in multibyte representation in echobuf.
4975 (echo_char): Always store string in multibyte representation in
4976 echobuf.
4977 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4978 (read_key_sequence): Adjusted for the change of echo_prompt.
4979
a20193cd
KH
4980 * fns.c (Fmd5): Docstring improved.
4981
191b83b6
KH
4982 * lisp.h (detect_coding_system): Prototype adjusted.
4983
0544ef49
KH
4984 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4985 (detect_coding_emacs_mule, detect_coding_iso2022,)
4986 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
4987 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4988 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
4989 (detect_coding_mask, detect_coding_system): New argument
4990 MULTIBYTEP. Callers changed.
1da1bb05
KH
4991 (decode_coding_string): Set coding->src_multibyte and
4992 coding->dst_multibyte before calling detect_coding and detect_eol.
4993 Update them after some coding system is detected.
52283633 4994
d5b3eb1b
SM
49952000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4996
4997 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4998
4999 * keyboard.c (menu_bar_items, tool_bar_items):
5000 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5001
f7f8bb69
GM
50022000-12-13 Gerd Moellmann <gerd@gnu.org>
5003
52283633 5004 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
5005 New variables.
5006 (unwind_create_frame, unwind_create_tip_frame): New functions.
5007 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5008 while a frame is only partially constructed.
5009
5010 * xterm.h (x_free_frame_resources): Declare.
5011
5012 * xterm.c (x_free_frame_resources): New function.
5013 (x_destroy_window): Use it.
5014
e10da507
GM
5015 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5016 don't interrupt the update for pending input initially, i.e.
5017 update at least some lines.
5018
5019 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 5020
d5b3eb1b 5021 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
5022
5023 * xfns.c (gray_bitmap_bits): Declare `char *'.
5024
90aa2856
GM
50252000-12-12 Gerd Moellmann <gerd@gnu.org>
5026
5027 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5028 lines start with a relief line.
5029
a308c9cd
DL
50302000-12-12 Dave Love <fx@gnu.org>
5031
5032 * window.c (Fdisplay_buffer): Doc fix.
5033 (Fwindow_list): Remove unused var.
5034
5035 * buffer.h (mmap_set_vars): Declare.
5036
5037 * window.h (Fset_window_point): Declare.
5038
d575011f
EZ
50392000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5040
bf6282d2 5041 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
5042 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5043 variable `area'. When looking for a row under (X,Y), give up if some
5044 of the previous rows is not enabled.
d575011f 5045
ecf4d726
GM
50462000-12-12 Gerd Moellmann <gerd@gnu.org>
5047
2ebf6139
GM
5048 * window.c (Fset_window_point): If displaying cursors in windows
5049 other than the selected window, make sure redisplay updates
5050 other windows to show the new value of point in the window.
5051
5052 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5053
bfdb75ee
GM
5054 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5055 the buffer is the sole visible buffer when in the mini-buffer.
5056
52283633 5057 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
5058 Bind `inhibit-read-only' to t.
5059 (unwind_with_echo_area_buffer): Use AREF.
5060
c0006262
GM
5061 * xfns.c (Fx_hide_tip): Simplified.
5062
52283633
SM
5063 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5064 instead of `1'.
e9a59cad 5065
ecf4d726
GM
5066 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5067
e5959a9a
GM
50682000-12-11 Gerd Moellmann <gerd@gnu.org>
5069
a3642e49 5070 * xfns.c (Fx_hide_tip): Fix last change.
52283633 5071
44b5a125
GM
5072 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
5073 nothing to do. Bind inhibit-quit.
5074 (tip_frame): Make it a Lisp_Object.
5075 (x_create_tip_frame): Set tip_frame after it has been added to
5076 Vframe_list.
5077 (Fx_show_tip): Don't set tip_frame here.
5078
5079 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5080
5081 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
5082 Lisp_Object.
5083
5084 * dispextern.h: Change external declaration of tip_frame.
5085
d990421f
GM
5086 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
5087 return an empty string.
5088
4db87380
GM
5089 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
5090 of the window's update_mode_line flag, since the former is set by
5091 force-mode-line-update, not the latter. This makes
5092 column-number-mode slightly faster.
52283633 5093
e5959a9a
GM
5094 * xdisp.c (try_window_id) <all changes above window start>:
5095 Set the cursor.
5096
169fe44e
GM
50972000-12-11 Paul Eggert <eggert@twinsun.com>
5098
5099 * config.in (HAVE_FTELLO): Remove.
5100 (HAVE_FSEEKO): Add.
5101 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
5102 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
5103 HAVE_FTELLO.
5104 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
5105 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 5106
59ec59ae
MB
51072000-12-11 Miles Bader <miles@gnu.org>
5108
5109 * window.c (displayed_window_lines): Don't round up when
5110 converting empty space at bottom to lines.
ff904dd6
MB
5111 Handle non-newline-terminated final lines properly.
5112 (Fwindow_text_height): New function (used to be in lisp).
5113 (syms_of_window): Initialize it.
59ec59ae 5114
42ebfa31
SM
51152000-12-09 Stefan Monnier <monnier@cs.yale.edu>
5116
5117 * syntax.c (scan_lists): Check that the right quote char has the
5118 right Sstring syntax when jumping over strings.
5119 (init_syntax_once): Use Smax rather than 13.
5120
5cdb3cf3
MB
51212000-12-09 Miles Bader <miles@gnu.org>
5122
5123 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
5124 with PARTIALLY, inverting the sense.
5125 (window_scroll_pixel_based): Scroll partially visible lines into
5126 place if we hit the beginning or end of the buffer.
a12167c5
MB
5127 (displayed_window_lines): Don't include partially visible lines.
5128 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 5129
842b2a94
GM
51302000-12-08 Gerd Moellmann <gerd@gnu.org>
5131
5132 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
5133
5134 * tparam.c (tparam1): Change the way buffers are reallocated to be
5135 portable and less obfuscated.
5136
5137 * termcap.c (tgetent): Change the way buffers are reallocated to
5138 be portable and less obfuscated.
5139
5140 * macros.c (store_kbd_macro_char): Change the way buffers are
5141 reallocated to be portable and less obfuscated.
5142
5143 * lread.c (read1): Change the way buffers are reallocated to be
5144 portable and less obfuscated.
5145
5146 * doc.c (Fsubstitute_command_keys): Change the way buffers
5147 are reallocated so that it is portable.
5148
137cad7c
EZ
51492000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
5150
5151 * dosfns.c (Ffile_system_info): New function.
5152 (syms_of_dosfns): Defsubr it.
5153
5c7f629c
SM
51542000-12-07 Stefan Monnier <monnier@cs.yale.edu>
5155
5156 * alloc.c (gc_sweep): Add comment.
5157
959e647d
GM
51582000-12-07 Gerd Moellmann <gerd@gnu.org>
5159
52283633
SM
5160 * sound.c (vox_configure): Change order of ioctls.
5161 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
5162 Ignore errors when changing volume.
5163 (vox_close): Don't reset the device.
5164
926b7e5e
GM
5165 * process.c (read_process_output): Make sure the process marker's
5166 position is valid when the process buffer is changed in
5167 after-change functions. W3 does that.
52283633 5168
959e647d
GM
5169 * xfns.c (x_free_gcs): New function.
5170
5171 * xterm.h (x_free_gcs): Add prototype.
5172
5173 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5174 freeing GCs here.
5175
5176 * xterm.c (x_destroy_window): Call x_free_gcs so that
5177 resources of non-toolkit X windows will be freed.
5178
478ea067
AI
51792000-12-07 Andrew Innes <andrewi@gnu.org>
5180
5181 * w32fns.c (xlfd_charset_of_font): Fix last change.
5182
fbee3231
DL
51832000-12-06 Dave Love <fx@gnu.org>
5184
67292061
DL
5185 * md5.h (__P): Don't define -- it comes from config.h.
5186
fbee3231
DL
5187 * strftime.c: Change some #if foo to #ifdef foo.
5188
4ee87dbb
AI
51892000-12-06 Andrew Innes <andrewi@gnu.org>
5190
5191 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5192
52283633 5193 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 5194 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 5195 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 5196
9765b4a4
GM
51972000-12-06 Gerd Moellmann <gerd@gnu.org>
5198
d285b373
GM
5199 * alloc.c (gc_sweep): Prevent symbols read during loadup
5200 from being freed.
5201
384333ee
GM
5202 * xdisp.c (underlying_face_id): New function.
5203 (handle_face_prop, face_before_or_after_it_pos): Use it
5204 to determine the face ``under'' a string. Let strings inherit
5205 the face of the buffer under them.
5206
5207 * xfaces.c (face_at_string_position): Update function comment.
52283633 5208
d4b72d58
GM
5209 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5210 matrix if the window's left position has changed; we need to
5211 redraw it in this case.
5212
5213 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5214
e1d05387
GM
5215 * window.c (coordinates_in_window): Check mouse on mode-line or
5216 header-line first.
5217
eb1b0c74
GM
5218 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5219 advertized by the function documentation.
5220
d94d636f
GM
5221 * window.c (syms_of_window): Doc fix.
5222
3887b449
GM
5223 * sound.c (vox_configure): Set volume for left and right channel.
5224 (sound_cleanup): Return nil.
5225
efc8f57a
GM
5226 * xdisp.c (move_it_by_lines): Fix paren typo.
5227
9765b4a4
GM
5228 * xterm.c (x_load_font): Don't use the font's max_bounds for
5229 computing the height of the font. If max_bounds' ascent or
5230 descent are greater than the font's ascent or descent, this means
5231 glyphs overlap, which should be handled now by redisplay.
5232
6529ed87
GM
5233 * window.c (Veven_window_heights): New variable.
5234 (syms_of_window): DEFVAR_LISP it.
5235 (Fdisplay_buffer): Check Veven_window_heights before evening the
5236 window heights.
52283633 5237
0eb2ecde
MB
52382000-12-06 Miles Bader <miles@gnu.org>
5239
5240 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5241 update `default-frame-alist' instead of setting no frame parameters.
5242
03d7a167
KH
52432000-12-06 Kenichi Handa <handa@etl.go.jp>
5244
5245 * composite.c (update_compositions): Fix typo (use the correct
5246 variable).
5247
5f8803c2
JR
52482000-12-05 Jason Rumney <jasonr@gnu.org>
5249
5250 * md5.h: Remove underscores from function declarations.
5251 (__attribute__, __alignof__) [!__GNUC__]: Define.
5252
5253 * md5.c: Delay include of md5.h until after namespace cleaning.
5254
c28a075b
JR
5255 * makefile.w32-in (fns.o): Depend on md5.h
5256 (md5.o): New target.
5257 (sunfns.o): Remove.
5258
5259 * makefile.nt: Likewise.
5260
ff3c7056
JR
52612000-12-05 Jason Rumney <jasonr@altavista.net>
5262
5263 * w32term.c (expose_area): Complete last change.
5264
0c21eeeb
KR
52652000-12-05 Ken Raeburn <raeburn@gnu.org>
5266
5267 * minibuf.c: Include intervals.h.
5268
f201d732
JR
52692000-12-05 Jason Rumney <jasonr@gnu.org>
5270
5271 * w32term.c (x_produce_glyphs): If a font for a component of
5272 a composition is not found, use 1 pixel dot ascent and 0 dot
5273 descent value to avoid displaying terribly tall empty boxes.
5274 (expose_area): Pass x-coordinate relative to the exposed
5275 area to x_draw_glyphs instead of a window-relative coordinate.
5276
21999ab9
GM
52772000-12-05 Gerd Moellmann <gerd@gnu.org>
5278
4d2036e4
GM
5279 * xdisp.c (next_element_from_ellipsis): Save face before selective
5280 display in saved_face_id, and set face_before_selective_p.
5281 (reseat_1): Reset face_before_selective_p.
5282 (append_space, extend_face_to_end_of_line): If iterator's
5283 face_before_selective_p is set, use the face from saved_face_id.
5284 (extend_face_to_end_of_line): For tty frames, make sure to
5285 use the right face id when producing spaces at the end of
5286 the line.
5287
5288 * dispextern.h (struct it): Add face_before_selective_p.
5289
52be17cc
GM
5290 * keyboard.c (record_char): Don't record identical help-echo
5291 events in recent_keys.
5292
8a4f36cc
GM
5293 * xterm.c [USE_X_TOOLKIT]: Close the display.
5294 (xim_close_dpy): Handle case that the display has been closed.
5295
57d6e381
GM
5296 * xterm.c (x_destroy_window): Reset the frame's X window after
5297 destroying it.
5298
21999ab9
GM
5299 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5300 variable window_width.
5301 (line_draw_cost): Fix code skipping over spaces at the end of the
5302 line when must_write_spaces is not set.
5303 (scrolling_window): Fix code inserting runs in list of all runs.
5304
91372bb7
KH
53052000-12-05 Kenichi Handa <handa@etl.go.jp>
5306
5307 * coding.c (setup_coding_system): Be sure to initialize
5308 coding->category_idx.
5309
6c083b4c
GM
53102000-12-04 Gerd Moellmann <gerd@gnu.org>
5311
0c68ce6f 5312 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 5313
6452929e
GM
5314 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5315 area to x_draw_glyphs instead of a window-relative coordinate.
5316
d7f31e22
GM
5317 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5318 error in the message.
5319
ae18aa3b
GM
5320 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5321 timer after having read a key. It's not good for code reading
5322 several keys in a loop, like an input method.
5323
caa15ef7
GM
5324 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5325 record undo information for format-decode.
5326
5327 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5328 current buffer is read-only, not if it isn't.
5329
6c083b4c
GM
5330 * keyboard.c (record_char): Record `help-echo' input events
5331 in recent_keys only if they display some help. Don't record
5332 `help-echo' events as macro char.
5333
caa15ef7
GM
53342000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5335
5336 * editfns.c (save_excursion_restore): Don't move point
5337 in another window if it is showing the wrong buffer.
5338 Avoid the call to Fwindow_live_p, for speed.
5339
5a13529b
KH
53402000-12-04 Kenichi Handa <handa@etl.go.jp>
5341
e225faa7
KH
5342 * xfaces.c (struct font_name): New member registry_priority.
5343 (split_font_name): Initialize the above member to zero.
5344 (concat_font_list): New function.
5345 (font_list): Include fonts of all alternative registries.
5346 (FONT_POINT_SIZE_QUANTUM): New macro.
5347 (better_font_p): Ignore point size difference less than
5348 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5349
e89648b4
KH
5350 * xterm.c (x_produce_glyphs): If a font for a component of
5351 a composition is not found, use 1 pixel dot ascent and 0 dot
5352 descent value to avoid displaying terribly tall empty boxes.
5353
5a13529b
KH
5354 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5355
d7935eb6
KR
53562000-12-03 Ken Raeburn <raeburn@gnu.org>
5357
5358 * coding.h (code_convert_string1): Declare.
5359
5360 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5361
52283633 5362 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 5363
0dd5e255
JR
53642000-12-02 Jason Rumney <jasonr@gnu.org>
5365
5366 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5367 correctly for single byte character case.
5368 (w32_per_char_metric): Do not try to make any assumptions about
5369 the metrics of BDF fonts.
250cfece 5370 (x_estimate_mode_line_height): If `mode-line' face
52283633 5371 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
5372 (note_mouse_highlight): Change the cursor shape on the vertical
5373 border between windows [not enabled].
5374
5375 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5376
5377 * w32fns.c (Fx_create_frame): Reintroduce the call to
5378 face-set-after-frame-defaults.
5379 (Vx_window_horizontal_drag_shape): New variable.
5380 (syms_of_xfns): DEFVAR_LISP it.
5381 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5382 enabled].
0dd5e255 5383
b5d8d2ca
GM
53842000-12-02 Simon Josefsson <simon@josefsson.org>
5385
5386 * fns.c (Fmd5): Use a different logic to decide the coding system
5387 to use.
5388
5389 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5390
fbb87147
EZ
53912000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5392
52283633 5393 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 5394
447e9da0
GM
53952000-12-01 Gerd Moellmann <gerd@gnu.org>
5396
7708ced0
GM
5397 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5398 height for YNegative.
5399 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5400 height; also see comment there.
5401
447e9da0
GM
5402 * window.c (coordinates_in_window): Handle computations for
5403 positions on the vertical bar and fringes differently for
5404 window-system frames. Consider some pixels near the vertical bar
5405 as on the bar if the frame doesn't have vertical scroll bars.
5406 Associate positions between mode or header lines with the
5407 right window, the left one.
5408
86d1db20
JR
54092000-12-01 Jason Rumney <jasonr@gnu.org>
5410
5411 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5412
5413 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5414 invalid frame.
5415
a1d58e5b
GM
54162000-12-01 Gerd Moellmann <gerd@gnu.org>
5417
52283633 5418 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
5419 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5420 (save_window_save, Fset_window_configuration): Save/restore
5421 window's orig_top and orig_height.
5422
89c609af
JR
54232000-12-01 Jason Rumney <jasonr@gnu.org>
5424
4d177746 5425 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 5426
89c609af
JR
5427 * w32fns.c (x_set_cursor_color): Fix last change.
5428
eccc05db
GM
54292000-11-30 Gerd Moellmann <gerd@gnu.org>
5430
31b6671b
GM
5431 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5432 sure that the next redisplay displays the minibuffer, so that
5433 the cursor will be replaced with what the minibuffer wants.
5434
eccc05db
GM
5435 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5436 #ifndef instead of using #if.
5437 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5438 USE_TOOLKIT_SCROLL_BARS is defined.
5439
162de750
JR
54402000-11-30 Jason Rumney <jasonr@gnu.org>
5441
5442 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5443 x_display_cursor.
5444
693c4692
GM
54452000-11-30 Gerd Moellmann <gerd@gnu.org>
5446
5447 * fns.c (Fmd5): Doc fix.
5448
b5d8d2ca 54492000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
5450
5451 * fns.c (Fmd5): New function.
5452 (syms_of_fns): Defsubr md5.
5453
5454 * Makefile.in (obj): Add md5.o
5455
b02cd40b
GM
54562000-11-30 Gerd Moellmann <gerd@gnu.org>
5457
edfb795e
GM
5458 * md5.h, md5.c: New files, taken from glibc.
5459
df3aedcf
GM
5460 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5461
b02cd40b 5462 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 5463 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 5464
8b5176cd
SM
54652000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5466
5467 * eval.c (Frun_hooks): Allow 0 arguments.
5468
346598f1
GM
54692000-11-29 Gerd Moellmann <gerd@gnu.org>
5470
f9396e03
GM
5471 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5472 is over the menu bar widget, say it's not on the frame.
5473
4a967a9b
GM
5474 * xfns.c (Fx_create_frame): Reintroduce the call to
5475 face-set-after-frame-defaults.
5476
346598f1
GM
5477 * eval.c (Fsignal): Reset handling_signal.
5478
222456a1
JR
54792000-11-28 Jason Rumney <jasonr@gnu.org>
5480
5481 * w32menu.c (add_menu_item): Reset menu item text when changing
5482 type to radio button.
5483
8049ddc0
GM
54842000-11-28 Gerd Moellmann <gerd@gnu.org>
5485
346598f1 5486 * xselect.c: Update copyright.
f4f4ee4d 5487
bebe4a2c
GM
5488 * window.c (coordinates_in_window): If on a mode or header line,
5489 but sufficiently close to its start, return ``on vertical
5490 border''. This gives us a way to drag windows horizontally when
5491 using toolkit scroll bars.
5492
5493 * xterm.c (note_mouse_highlight): Change the cursor shape
5494 on the vertical border between windows.
5495
5496 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5497
5498 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5499 (syms_of_xfns): DEFVAR_LISP it.
5500 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5501
8d2c2642
GM
5502 * textprop.c (text_read_only): New function.
5503 (verify_interval_modification): Use it instead of signaling
5504 `text-read-only'. This makes it easier to catch this error
52283633 5505 with a breakpoint.:
8d2c2642 5506
52283633 5507 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
5508 not end of line, which includes CR.
5509
5a2bae6c
KH
55102000-11-28 Kenichi Handa <handa@etl.go.jp>
5511
5512 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5513 include no-conversion.
5514
ae31f84d
JR
55152000-11-27 Jason Rumney <jasonr@gnu.org>
5516
5517 * w32fns.c (w32_load_system_font): Always mark font as double byte
5518 if codepage is unicode.
5519
67f1cf4c
GM
55202000-11-27 Gerd Moellmann <gerd@gnu.org>
5521
4a74d071 5522 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 5523 just consume it to avoid unintended skipping over invisible text below.
4a74d071 5524
902ae620
GM
5525 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5526 `vertical-line', `mode-line' and `header-line' events.
5527
5528 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
5529 of a character, a TAB for instance. This is easier than to set
5530 up the iterator exactly, and it's not a frequent case, so the
5531 additional effort wouldn't really pay off.
5532
c1e279c2
AC
55332000-11-26 Andrew Choi <akochoi@i-cable.com>
5534
67f1cf4c 5535 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
5536 init_window_once.
5537
a609568a
JR
55382000-11-25 Jason Rumney <jasonr@gnu.org>
5539
52283633
SM
5540 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5541 Args to window_from_coordinates should be pixel coordinates.
48b21762 5542
a609568a
JR
5543 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5544 redisplay handles them properly.
5545
a658d039
MB
55462000-11-25 Miles Bader <miles@gnu.org>
5547
5548 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5549
d3416cca
JR
55502000-11-24 Jason Rumney <jasonr@gnu.org>
5551
5552 * w32.c (init_environment): Set LANG environment variable based on
5553 locale settings, if not set.
5554
5555 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5556 making tool bar smaller. When clearing the frame, also
5557 clear current matrices. Clear frame when tool bar disappears.
5558 Don't use more lines for the tool-bar than is available.
5559 (x_change_window_heights): New function.
5560
ba193890
GM
55612000-11-24 Gerd Moellmann <gerd@gnu.org>
5562
2be8f184
GM
5563 * xdisp.c (init_from_display_pos): If POS says we're already after
5564 an overlay string ending at POS, make sure to pop the iterator
5565 because it will be in front of that overlay string. When POS is
5566 ZV, we've thereby also ``processed'' overlay strings at ZV.
5567
ba193890
GM
5568 * xfaces.c (lface_from_face_name): Function comment fix.
5569
1862a24e
MB
55702000-11-24 Miles Bader <miles@gnu.org>
5571
5572 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5573 apply `mode-line-inverse-video' -- zero means force display using
5574 the default face, non-zero means display using the specialized face.
5575 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5576
f07fa1b8
KH
55772000-11-23 Kenichi Handa <handa@etl.go.jp>
5578
5579 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5580 hard coded `4'.
5581
2bcdf662
EZ
55822000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5583
5584 * coding.c (decode_coding_emacs_mule): Fix the case of
5585 CODING_EOL_LF, which used uninitialized value of c.
5586
ba8299ff
SM
55872000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5588
5589 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5590
f4117c4d
GM
55912000-11-22 Gerd Moellmann <gerd@gnu.org>
5592
03e757c1
GM
5593 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5594 buffer object.
5595
f4117c4d
GM
5596 * frame.h (struct frame): Replace desired_tool_bar_items,
5597 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 5598 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
5599
5600 * frame.c (make_frame): Change initialization of tool bar
5601 items accordingly.
5602
5603 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 5604 Change references to members deleted from struct frame to use the
f4117c4d
GM
5605 new ones.
5606
5607 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 5608 references to members deleted from struct frame to use the new ones.
f4117c4d 5609
52283633 5610 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
5611
5612 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5613
5614 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 5615 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
5616 from struct frame to use the new ones.
5617
f8e2f3f2
MB
56182000-11-23 Miles Bader <miles@gnu.org>
5619
5620 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5621 the face's inverse-video attribute, rather than overriding it.
5622
60e8e0a5
GM
56232000-11-22 Gerd Moellmann <gerd@gnu.org>
5624
5625 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5626 making tool bar smaller.
5627
92dd1b29
DL
56282000-11-22 Dave Love <fx@gnu.org>
5629
5630 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5631
e672fdce
MB
56322000-11-22 Miles Bader <miles@gnu.org>
5633
3a17d6cc
MB
5634 * keyboard.c (Vminibuffer_message_timeout): New variable.
5635 (command_loop_1): Use it to determine message timeout.
5636 (syms_of_keyboard): Initialize it.
5637
60e8e0a5 5638 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 5639
e9655d81
KH
56402000-11-22 Kenichi Handa <handa@etl.go.jp>
5641
5642 * sysdep.c: Move the code for declaring h_errno after #include
5643 <netdb.h>.
5644
77270fac
GM
56452000-11-21 Gerd Moellmann <gerd@gnu.org>
5646
cd913aae
GM
5647 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5648 the menu bar when the tooltip is unmapped.
5649
77270fac
GM
5650 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5651 sole visible buffer when we're currently in the mini-buffer, and
5652 give up if so.
52283633 5653
556635d6
JR
56542000-11-21 Jason Rumney <jasonr@gnu.org>
5655
5656 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5657 put on the clipboard.
5658 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5659 copy of what Emacs last put there. If they are the same, do not
52283633 5660 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 5661
5b7bde64
MB
56622000-11-22 Miles Bader <miles@gnu.org>
5663
5664 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5665 (syms_of_minibuf): Initialize it.
5666 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5667 to prompt, don't make read-only.
5668
ff23e1dd
GM
56692000-11-21 Gerd Moellmann <gerd@gnu.org>
5670
52283633
SM
5671 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5672 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 5673
7aaf4388
GM
5674 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5675
f5f47add 5676 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 5677
ff23e1dd
GM
5678 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5679
37c35586
KH
56802000-11-21 Kenichi Handa <handa@etl.go.jp>
5681
5682 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5683 ... #endif scope.
5684
ff9ab414
GM
56852000-11-20 Gerd Moellmann <gerd@gnu.org>
5686
52283633 5687 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
5688 screen supports it.
5689
29a01b72
GM
5690 * s/gnu-linux.h: Don't use `#cpu'.
5691
09dfdf85
GM
5692 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5693 not defined in mman.h.
5694
52283633 5695 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
5696 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5697 and store an index in the XClientMessageEvent. Storing a
5698 Lisp_Object or pointer can fail on a 64 bit system, since X only
5699 transfers 32 bits.
52283633
SM
5700 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5701
81459ac9
DL
57022000-11-20 Dave Love <fx@gnu.org>
5703
5704 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5705
56c13ae6
GM
57062000-11-20 Gerd Moellmann <gerd@gnu.org>
5707
5708 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5709
495a6df3
KH
57102000-11-20 Kenichi Handa <handa@etl.go.jp>
5711
2bcf3714
KH
5712 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5713 by WIDTH.
5714
495a6df3
KH
5715 * alloc.c (make_string): Fix previous change. Be sure to make
5716 unibyte string correctly.
5717
6d950f4c
GM
57182000-11-19 Gerd Moellmann <gerd@gnu.org>
5719
39b39373
GM
5720 * window.c (Fwindow_list): Change parameter list to be XEmacs
5721 compatible.
5722 (window_list_1): New function.
5723 (window_loop): Use it instead of Fwindow_list.
5724
b95b34e5
GM
5725 * sysdep.c (emacs_ospeed): New variable.
5726 (toplevel): Don't declare ospeed extern.
5727 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5728
5729 * termcap.c (ospeed): Remove.
5730 (tputs) [!emacs]: Remove unused code.
5731 (tgetent): Avoid a compiler warning.
5732
e83dc917
GM
5733 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5734 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 5735 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
5736
5737 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5738 removed.
5739 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5740 Take the X display as additional argument.
5741 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5742 `Widget' is a pointer type that's not easily stored in Lisp_Object
5743 form in a portable way.
52283633 5744
6d950f4c
GM
5745 * dispnew.c (update_text_area): Fix last change.
5746
e47306e6
GM
57472000-11-18 Gerd Moellmann <gerd@gnu.org>
5748
fb3cd89b
GM
5749 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5750
5751 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5752 clear current matrices.
5753
edaa9aed
GM
5754 * buffer.c (mmap_enlarge): Don't print a message on stderr
5755 if mapping new memory at the end of the existing region fails.
5756
e47306e6
GM
5757 * dispnew.c (update_text_area): Don't skip over equal glyphs
5758 when the last current glyph overlaps the glyph to its right.
5759
509633e3
MB
57602000-11-18 Miles Bader <miles@gnu.org>
5761
5762 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5763 lines that *end* with "..." too (that's the most common case!).
5764
d392e9c5
GM
57652000-11-18 Gerd Moellmann <gerd@gnu.org>
5766
67988445
GM
5767 * xdisp.c (resize_mini_window): Temporarily change to the
5768 mini-window's buffer if necessary.
1bfdbe43 5769
d392e9c5
GM
5770 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5771 the tooltip obscures less text under it.
5772
57732000-11-17 Gerd Moellmann <gerd@gnu.org>
5774
5775 * puresize.h (BASE_PURESIZE): Increase to 700000.
5776
92bb977f
JR
57772000-11-18 Jason Rumney <jasonr@gnu.org>
5778
5779 * w32term.c (w32_draw_bitmap): Use face to set colors.
5780
26fbf20b
DL
57812000-11-17 Dave Love <fx@gnu.org>
5782
5783 * lread.c (Fload): Fix #ifdef for pcc.
5784
100b593b
GM
57852000-11-17 Gerd Moellmann <gerd@gnu.org>
5786
5787 * xdisp.c (pos_visible_p): Compute the default character height
5788 differently.
5789
a288d0d1
GM
57902000-11-16 Gerd Moellmann <gerd@gnu.org>
5791
cac94de6 5792 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 5793 knowing the line's height; use the default font's height in that case.
cac94de6 5794
a288d0d1
GM
5795 * xfaces.c (weight_table): Add `demi' with the same meaning as
5796 `demibold'.
5797
981fb6f6
KH
57982000-11-16 Kenichi Handa <handa@etl.go.jp>
5799
2cca872d 5800 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
5801 (clear_glyph_row): Delete local static variable null_row.
5802
e5fa381b
JR
58032000-11-15 Jason Rumney <jasonr@gnu.org>
5804
5805 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5806 (w32_alloc_lighter_color): Use new brightness calculations from
5807 xterm.c. Scale delta to be in the range expected by W32.
5808 (w32_draw_relief_rect): Use frame relief colors.
5809
8e42f043
GM
58102000-11-15 Gerd Moellmann <gerd@gnu.org>
5811
6d133d1f
GM
5812 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5813 (Qinhibit_default_face_x_resources): New variable.
5814 (syms_of_frame): Initialize it.
5815 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5816
5817 * xdisp.c (pos_visible_p): Improve function comment.
5818
5819 * lisp.h (BINDING_STACK_SIZE): New macro.
5820
8e42f043
GM
5821 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5822 reading the directory if readdir returns null and errno is EAGAIN
5823 or EINTR.
5824
e8c87124
SM
58252000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5826
5827 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5828 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5829 Set amount_to_scroll to max of dx and scroll_step so that
5830 scroll-conservatively doesn't defeat scroll-step>1.
5831 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5832 scroll-conservatively for line-at-a-time scrolling.
5833
5f0c971d
GM
58342000-11-14 Gerd Moellmann <gerd@gnu.org>
5835
5836 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5837 extra argument.
5838
5839 * xdisp.c (current_mode_line_height, current_header_line_height):
5840 New variables.
5841 (init_xdisp): Initialize them.
5842 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5843 and use exact mode line heights if it is set.
5844
5845 * lisp.h (pos_visible_p): Change prototype.
5846
5847 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5848 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5849 and current_header_line_height first.
52283633
SM
5850 (current_mode_line_height, current_header_line_height):
5851 Declare extern.
5f0c971d 5852
d7361edf
MB
58532000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5854
5855 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5856 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5857 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5858
ee5e440a
MB
58592000-11-14 Miles Bader <miles@gnu.org>
5860
5861 * xterm.c (x_alloc_lighter_color): Include an additive component
5862 too for dark colors, because FACTOR isn't enough.
5863 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5864 New macros.
5865
5ca020fc
GM
58662000-11-13 Gerd Moellmann <gerd@gnu.org>
5867
5868 * keyboard.c (show_help_echo): Call message3_nolog with number of
5869 bytes in the help string as 2nd parameter, instead of the number
5870 of characters.
5871
9d348294
MB
58722000-11-13 Miles Bader <miles@gnu.org>
5873
5874 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5875 (Fload): Use new openp return protocol.
5876 Don't try to use Vload_source_file_function to load .elc files.
5877 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5878 openp return protocol.
5879 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5880
1729bb9a
KH
58812000-11-11 Kenichi Handa <handa@etl.go.jp>
5882
4e677396
KH
5883 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5884
5885 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5886 Defined these macros.
5887 (NLIST_STRUCT): Avoid re-defining it.
5888
1729bb9a
KH
5889 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5890 -I/usr/contrib/X11R6/include.
5891 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5892
a82fe213
JR
58932000-11-10 Jason Rumney <jasonr@gnu.org>
5894
5895 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5896
5897 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5898 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5899
5900 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5901 (Qw32_charset_vietnamese): New symbol.
5902 (xlfd_charset_of_font): New function.
5903 (w32_load_system_font): Use it.
5904 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5905 when Vw32_charset_info_alist is nil to ensure default face always
5906 has font. Use Fcar and Fcdr for safety.
5907 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5908 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5909 pseudo-codepages for special cases.
5910 (w32_to_x_font): New parameter to allow charset portion to be
5911 specified where there is many to one mapping. Callers changed.
5912 (w32_list_fonts): Avoid listing fonts that won't display.
5913
52d89894
GM
59142000-11-10 Gerd Moellmann <gerd@gnu.org>
5915
5916 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5917 (font_list_1): Renamed from font_list.
5918 (font_list): New function, trying alternative registries from
5919 Vface_alternative_font_registry_alist.
5920 (Finternal_set_alternative_font_registry_alist): New function.
5921 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
5922 Vface_alternative_font_registry_alist.
5923 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 5924
651cd3da
KR
59252000-11-09 Ken Raeburn <raeburn@gnu.org>
5926
5927 * lisp.h (Flooking_at): Declare.
5928
388ac098
GM
59292000-11-09 Gerd Moellmann <gerd@gnu.org>
5930
778fbc46 5931 * dired.c (directory_files_internal): Fix a braino.
52283633 5932
388ac098
GM
5933 * dired.c (directory_files_internal): Add missing GCPRO's.
5934 Some cleanup.
5935
ecaedde1
GM
59362000-11-08 Gerd Moellmann <gerd@gnu.org>
5937
f7eb32aa
GM
5938 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5939 (resize_mini_window): Return quickly if Vresize_mini_window is
5940 nil. Don't return if Vmax_mini_window_height is nil.
5941
5942 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5943 (syms_of_xdisp): Initialize them.
5944 (resize_mini_window): Act according to the setting of
5945 Vresize_mini_window.
5946 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5947
ecaedde1
GM
5948 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5949 scroll bar widget after configuring it, so that it will appear at
5950 the right position from the start.
5951 (XTredeem_scroll_bar): Cleaned up.
5952
3747ef2c
KH
59532000-11-08 Kenichi Handa <handa@etl.go.jp>
5954
5955 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 5956 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
5957 division by two.
5958
5959 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5960
03391420
DL
59612000-11-07 Dave Love <fx@gnu.org>
5962
7758f1c1 5963 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
5964
5965 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5966
b5de343d
GM
59672000-11-07 Gerd Moellmann <gerd@gnu.org>
5968
acad3c0b
GM
5969 * window.c (Fset_window_configuration): Don't try to preserve
5970 point in the current buffer, if that buffer is displayed in more
5971 than one window.
5972
b5de343d
GM
5973 * xfaces.c (lookup_named_face): If default face isn't realized,
5974 try to realize it. Return -1 if not successful.
5975 (Fx_list_fonts): Handle case that face cannot be determined.
5976 (Fface_font): Likewise.
5977
cdb1fe49
GM
59782000-11-06 Gerd Moellmann <gerd@gnu.org>
5979
5980 * window.c (displayed_window_lines): Detect partially
5981 visible lines at the bottom correctly.
5982
d3a67486
SM
59832000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5984
5985 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5986 when ensuring we don't do visit in indirect buffer.
5987
ff8dd5d5
KH
59882000-11-06 Kenichi Handa <handa@etl.go.jp>
5989
5990 * composite.h (compose_chars_in_text): Add prototype.
5991
5992 * composite.c (Vcomposition_function_table): New variable.
5993 (Qcomposition_function_table): New variable.
5994 (run_composition_function): Call
5995 Vcompose_chars_after_function with three arguments.
5996 (compose_chars_in_text): New function.
5997 (syms_of_composite): Modified the doc-string of
5998 Vcompose_chars_after_function. Declare composition-function-table
5999 as a lisp variable, and initialize it.
6000
6001 * xfns.c (x_encode_text): Suppress producing escape sequences for
6002 composition.
6003
6004 * xselect.c: Include composite.h.
6005 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6006
d1145f85
AI
60072000-11-05 Andrew Innes <andrewi@gnu.org>
6008
6009 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6010
6011 * sysdep.c (read_input_waiting): Remove extraneous argument to
6012 read_socket_hook.
6013
6014 * w32fns.c (Fx_server_version): Include w32_build_number in the
6015 return list.
6016
6017 * w32heap.c (w32_build_number): New variable.
6018 (cache_system_info): Set it.
6019
6020 * w32heap.h (w32_build_number): Add extern.
6021
6022 * emacs.c (syms_of_emacs): Update docstring for
6023 system-configuration, to reflect the actual usage on MS-Windows.
6024
e85ee976
GM
60252000-10-31 Gerd Moellmann <gerd@gnu.org>
6026
26dcb81b
GM
6027 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6028 process idle timers while waiting for another event.
6029
52283633 6030 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
6031 the default face are colored.
6032
e85ee976
GM
6033 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6034 window height hasn't changed.
6035
01b220b6
JR
60362000-10-31 Jason Rumney <jasonr@gnu.org>
6037
6038 * w32term.c (x_produce_glyphs): Handle composite characters.
6039 (x_draw_glyph_string_foreground)
6040 (x_draw_composite_glyph_string_foreground): Restore old font.
6041
4e6b7204
MB
60422000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6043
6044 * minibuf.c (read_minibuf): Reset the undo history just before
6045 starting the recursive-edit.
6046
d4358b37
GM
60472000-10-30 Gerd Moellmann <gerd@gnu.org>
6048
563f68f1
GM
6049 * xfaces.c (menu_face_change_count): New variable.
6050 (Finternal_set_lisp_face_attribute): Increment it for changes
6051 of the `menu' face.
6052 (realize_basic_faces): Reflect changes in the `menu' faces
6053 in menu bars.
6054
82e274d1
GM
6055 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6056 dy obtained from the iterator's y-position after moving from
6057 scroll_margin_pos to PT; see comment there.
52283633 6058
0dbf9fd2
GM
6059 * xdisp.c (safe_eval_handler): Call add_to_log.
6060
906b3b14
GM
6061 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6062 is not a symbol or string.
6063
d4358b37
GM
6064 * xdisp.c (echo_area_display): Don't perform a display update from
6065 inside redisplay. The update will happen anyway at the end of
6066 redisplay, and it can confuse redisplay (GC messages while
6067 redisplaying, for instance.)
6068
70c825df
SM
60692000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6070
cf9b4b0b
SM
6071 * xrdb.c (x_load_resources): Use the class name in the defaults.
6072
70c825df
SM
6073 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
6074 (regex_compile): Catch bogus \(\1\).
6075
a1d34b1e
GM
60762000-10-30 Gerd Moellmann <gerd@gnu.org>
6077
cae71efe
GM
6078 * xterm.c (x_alloc_nearest_color): Fix last change to compare
6079 RGB values.
52283633 6080
35efe0a1
GM
6081 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
6082 we have a color cache, check that the cached color equals the
6083 allocated color. If not, clear the color cache.
6084
1d3baf74
GM
6085 * window.c (displayed_window_lines): Change buffers if necessary.
6086 Fix computation of displayed lines.
6087
a1d34b1e
GM
6088 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
6089 update_menu_bindings to DEFVAR_BOOL.
6090
70737ea9
KH
60912000-10-30 Kenichi Handa <handa@etl.go.jp>
6092
70c825df 6093 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 6094
fa0cb51d
KH
6095 * puresize.h (BASE_PURESIZE): Increase to 680000.
6096
70737ea9
KH
6097 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
6098
0e4c08e8
JR
60992000-10-29 Jason Rumney <jasonr@gnu.org>
6100
6101 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
6102
6103 * w32term.c (w32_bdf_per_char_metric): Negate descent.
6104 (w32_cache_char_metrics): Handle possibility that 'x' does not
6105 exist in a BDF font.
6106 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
6107
6108 * w32bdf.h (bdffont): Add nchars.
6109
6110 * w32bdf.c (set_bdf_font_info): Set it.
6111 (w32_BDF_TextOut): Swap byte order of double byte characters.
6112 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
6113
45b84006
EZ
61142000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6115
6116 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
6117 don't override the colors in frame's param_alist, unless they are
6118 unspecified.
6119
6120 * term.c (reassert_line_highlight): If inverse_video is non-zero,
6121 reverse the effect of the highlight flag.
6122
caf9deee
KR
61232000-10-27 Ken Raeburn <raeburn@gnu.org>
6124
6125 * window.h (Fwindow_live_p): Declare.
6126
ae0b9b46
KR
6127 * undo.c (record_delete): Check that last_undo_buffer is really a
6128 buffer before applying XBUFFER to it.
6129
6130 * keymap.c (where_is_internal): Pass lisp object, not integer, to
6131 Faref.
6132
02067692
SM
61332000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6134
6135 * lisp.h (KEYMAPP): New macro.
6136 (get_keymap): Remove.
6137 (get_keymap_1): Rename get_keymap.
6138
6139 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
6140
6141 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
6142
6143 * xmenu.c (single_submenu): Use KEYMAPP.
6144 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6145 Use KEYMAPP rather than Fkeymapp.
6146
6147 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
6148
6149 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
6150 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6151 Use KEYMAPP rather than Fkeymapp.
6152 (single_submenu): Use KEYMAPP.
6153 (w32_menu_show, w32_dialog_show): Use TRUE.
6154
6155 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
6156
6157 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
6158 (Fkeymapp): Use KEYMAPP.
6159 (get_keymap): Rename from get_keymap_1. Remove old def.
6160 Return t when autoload=0 and error=0 and the keymap needs autoloading.
6161 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
6162 (Fminor_mode_key_binding): Don't raise an error if the binding
6163 is not a keymap.
6164 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6165 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6166
6167 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6168 Allow Vspecial_event_map to be autoloaded.
6169 (menu_bar_items): Fetch the keymap rather than using keymapp.
6170 (menu_bar_one_keymap): No need to follow func-indirect any more.
6171 (parse_menu_item): get_keymap_1 -> get_keymap.
6172 (tool_bar_items): Fetch the keymap rather than using keymapp.
6173 (read_key_sequence): Use KEYMAPP.
6174
6175 * intervals.c (get_local_map): Use get_keymap rather than following
6176 function-indirections explicitly.
6177
6178 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6179
f9d80af3
JR
61802000-10-27 Jason Rumney <jasonr@gnu.org>
6181
6182 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6183 point, as Windows has oversized fonts.
6184
6185 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6186
a3ba27da
GM
61872000-10-27 Gerd Moellmann <gerd@gnu.org>
6188
6189 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6190 (freehook, reallochook): Handle null pointer arguments.
6191 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6192
aa3b80cc
SM
61932000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6194
6195 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6196 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6197 Giving in to popular pressure to shut up the compiler with casts.
6198
e24e84cc
GM
61992000-10-27 Gerd Moellmann <gerd@gnu.org>
6200
6201 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6202 signed value, and use a default value computed from the font's
6203 maximum descent.
6204
05ea7ef2
MB
62052000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6206
6207 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6208 that specify a negative underline position can still use underlines.
6209
6210 * window.c (Fpos_visible_in_window_p): Make POS default to
6211 WINDOW's point, not the current buffer's point.
6212
0b95284b
DL
62132000-10-26 Dave Love <fx@gnu.org>
6214
6215 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6216 when it's necessary.
6217
6c5b90af
GM
62182000-10-26 Gerd Moellmann <gerd@gnu.org>
6219
8b6d9dc9
GM
6220 * window.c (size_window): Compute size difference from sum of old
6221 child window sizes instead of from parent's size.
6222
6bc92b2e
GM
6223 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6224 Handle obscured lines at the top of the window.
6225
6226 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6227 down after the last error condition check.
6228
6c5b90af
GM
6229 * frame.c (Fdelete_frame): Run delete-frame-hook.
6230
42f92d4d
KH
62312000-10-26 Kenichi Handa <handa@etl.go.jp>
6232
6233 * coding.c (decode_coding): Fix previous change (check also
6234 CODING_MODE_LAST_BLOCK).
6235
d97151cb
SM
62362000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6237
e7efc503
SM
6238 * regex.c: More `unsigned char' -> `re_char' changes.
6239 Also change several `int' into `re_wchar_t'.
6240 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6241 (PUSH_FAILURE_POINTER): Don't cast any more.
6242 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6243 We want GCC to complain, since this piece of code makes
6244 re_match non-reentrant, which *should* be fixed.
6245 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6246 (EXTEND_BUFFER): Use RETALLOC.
6247 (SET_LIST_BIT): Don't cast.
6248 (re_wchar_t): New type.
6249 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6250 that those two functions will always properly return.
6251 (IMMEDIATE_QUIT_CHECK): Cast to void.
6252 (analyse_first): Use recursion rather than an explicit stack.
6253 (re_compile_fastmap): Can't fail anymore.
6254 (re_search_2): Don't check re_compile_fastmap for failure.
6255 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6256 Now also sets the new value (passed in a new argument).
6257 (re_match_2_internal): Use it.
6258 Also, use a new var `reg' of type size_t when looping through regs
6259 rather than reuse the inappropriate `mcnt'.
6260
d97151cb
SM
6261 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6262 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6263 (where_is_internal): Renamed from Fwhere_is_internal.
6264 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6265 (Fwhere_is_internal): New function wrapping where_is_internal.
6266 (where_is_internal_1): Handle the case where we're filling the cache.
6267 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6268
d5789b65
MB
62692000-10-25 Miles Bader <miles@gnu.org>
6270
6271 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6272
4ecda532
GM
62732000-10-25 Gerd Moellmann <gerd@gnu.org>
6274
6275 * window.c (pos_fully_visible_p): Removed.
6276 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6277 if position is visible and/or fully visible.
6278
6279 * lisp.h (pos_visible_p): Add prototype.
6280
6281 * xdisp.c (pos_visible_p): New function.
6282
68c3a137
KH
62832000-10-25 Kenichi Handa <handa@etl.go.jp>
6284
6285 * process.c (send_process): If OBJECT is t, it means that the data
6286 is from C string, but we should encode it. Before calling
6287 setup_raw_text_coding_system, be sure to flush out data by the
6288 previous coding system.
6289
7ae1c032
MB
62902000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6291
ff4dcd4b
MB
6292 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6293 assignment of startpos to prev when startpos == pos.
6294
7ae1c032
MB
6295 * editfns.c (find_field): Set the field stickiness correctly from
6296 overlay fields. Use renamed `text_property_stickiness'.
6297 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 6298 Only check text properties, not overlays.
7ae1c032
MB
6299 * textprop.c (get_char_property_and_overlay): New function.
6300 (Fget_char_property): Use it.
6301 * intervals.h (get_char_property_and_overlay): Add declaration.
6302
49801145
SM
63032000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6304
6305 * keymap.c: Use AREF, ASET and ASIZE macros.
6306 (Fmake_sparse_keymap): Docstring fix.
6307 (synkey): Remove.
6308 (shadow_lookup): Move up.
6309 Handle the case where lookup-key returns an integer.
6310 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6311 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6312 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6313 Simplify/rewrite the keymap-finding code.
6314 Add check for command shadowing, using shadow_lookup.
6315
39e776cd
SM
63162000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6317
6318 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6319 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6320 a symbol.
6321
2488aba5
AI
63222000-10-24 Andrew Innes <andrewi@gnu.org>
6323
6324 * dired.c (directory_files_internal_unwind): New function.
6325 (directory_files_internal): Use it to ensure closedir is called
6326 even if expand-file-name or file-attributes throw, eg. because of
6327 a user interrupt. Also enable immediate_quit while calling
6328 re_search, so that matching can be interrupted as well.
6329
b94fdf61
AI
63302000-10-24 Andrew Innes <andrewi@gnu.org>
6331
6332 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6333 NT-Emacs only.
6334 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6335 so that re_search functions only quit when callers expect them to.
6336
63372000-10-24 Kenichi Handa <handa@etl.go.jp>
6338
6339 * regex.c (regex_compile): Change the way of handling a range from
6340 a char less than 256 to a char not less than 256.
6341
1946f901
GM
63422000-10-24 Gerd Moellmann <gerd@gnu.org>
6343
7ae2f10f
GM
6344 * window.c (size_window): Prevent setting window's width or
6345 height to a negative value (esp. with XSETFASTINT).
6346
5dcab13e
GM
6347 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6348 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6349 (protect_malloc_state) [GC_MALLOC_CHECK &&
6350 GC_PROTECT_MALLOC_STATE]: New function.
6351 (PROTECT_MALLOC_STATE): New macro.
6352 (__malloc_initialize, morecore, _malloc_internal)
6353 (_free_internal) _realloc_internal): Use it to make _heapinfo
6354 read-only outside of gmalloc.
6355
63e1b552
GM
6356 * keymap.c: Update copyright.
6357
1946f901
GM
6358 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6359 a symbol.
6360
4fa09beb
GM
63612000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6362
6363 * filelock.c (unlock_all_files): Use unlock_file to expand each
6364 buffer's file_truename before trying remove its lock file.
6365
23afac01
EZ
63662000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6367
6368 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6369 or CRLF, decode EOLs.
6370
04448b95
KH
63712000-10-24 Kenichi Handa <handa@etl.go.jp>
6372
6373 * window.c (Fdisplay_buffer): Fix doc.
6374
3090a5a5
JR
63752000-10-23 Jason Rumney <jasonr@gnu.org>
6376
6377 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6378 ASCII font of default fontset on Windows.
6379
6380 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6381 xterm.c comment below).
6382
6383 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6384
a83fee2c
GM
63852000-10-23 Gerd Moellmann <gerd@gnu.org>
6386
6387 * xterm.c (x_connection_closed): Reset handling_signal.
6388
52283633 6389 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 6390
6ffdb539
MB
63912000-10-23 Miles Bader <miles@gnu.org>
6392
6393 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6394 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6395 maintain old behavior.
6396 * minibuf.c (Fminibuffer_complete): Likewise.
6397
7f1c969b
MB
63982000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6399
6400 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6401 that when a font can't be exactly centered, it errs up rather than
6402 down.
6403
23afac01 64042000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 6405
52283633 6406 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 6407
1a578e9b
AC
64082000-10-23 Andrew Choi <akochoi@i-cable.com>
6409
6410 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6411
6412 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 6413 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
6414
6415 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6416 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6417 syms_of_search, x_term_init, and init_keyboard before calling
6418 init_window_once. Also, call syms_of_xmenu.
6419
6420 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6421 default fontset to Monaco.
6422
6423 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6424 NewMacWindow and DisposeMacWindow.
6425 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6426 instead of calling NewMacWindow and setting fields of
6427 f->output_data.mac directly. Call init_frame_faces.
6428 (Fdelete_frame) [macintosh]: Remove unused code.
6429 (Fmodify_frame_parameters) [macintosh]: Call
6430 x_set_frame_parameters instead of mac_set_frame_parameters.
6431
6432 * frame.h [macintosh]: Define menu_bar_lines field in struct
6433 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6434
6435 * keyboard.c [macintosh]: Include macterm.h.
6436 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6437 and menu_bar_activate_event type events as for X and NT.
6438 (make_lispy_event) [macintosh]: Construct lisp events of type
6439 MENU_BAR_EVENT as for X and NT.
6440
6441 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6442 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6443 (sys_subshell) [macintosh]: Remove definition entirely.
6444 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6445 Vwindow_system_version here. Remove initialization of
6446 Vx_bitmap_file_path.
6447 (read_input_waiting): Correct the number of parameters passed to
6448 read_socket_hook.
6449 Move all Macintosh functions to mac/mac.c.
6450
6451 * term.c [macintosh]: Include macterm.h.
6452
6453 * window.c [macintosh]: Include macterm.h.
6454
6455 * xdisp.c [macintosh]: Include macterm.h. Declare
6456 set_frame_menubar and pending_menu_activation.
6457 (echo_area_display) [macintosh]: Do not return if terminal frame
6458 is the selected frame.
6459 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6460 Allow only the selected frame to set menu bar.
6461 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6462 calling FRAME_EXTERNAL_MENU_BAR (f).
6463 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6464
6465 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6466 and check_x. Declare XCreateGC. Define x_create_gc and
6467 x_free_gc. Initialize font_sort_order.
6468 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6469 but call x_list_fonts instead of w32_list_fonts.
6470 (Finternal_face_x_get_resource) [macintosh]: Do not call
6471 display_x_get_resource.
6472 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6473 (realize_x_face) [macintosh]: Load the font if it is specified in
6474 ATTRS.
52283633 6475 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 6476
1ffbabe3
SM
64772000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6478
6479 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6480 is nil: since we go to the end of submap anyway, we'd end up
6481 setting nil to nil.
6482 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6483 doesn't obey autoload.
6484
bed43f1d
EZ
64852000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6486
1ffbabe3 6487 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 6488
ea4233a7
JR
64892000-10-21 Jason Rumney <jasonr@gnu.org>
6490
6491 * w32term.c (w32_cache_char_metrics): Double check that font is
6492 really fixed pitch before trusting tmPitchAndFamily.
6493
f3d3c491
AI
64942000-10-21 Andrew Innes <andrewi@gnu.org>
6495
6496 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6497
6498 * w32term.h: Extern decl for w32_cache_char_metrics.
6499
6500 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6501
6502 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6503 (w32_unload_font): Free per_char array if present.
6504
6505 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6506 cached information in emulated XFontStruct to handle common cases
6507 quickly. Do not allocate XCharStruct for return.
6508 (w32_native_per_char_metric): New function.
6509 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6510 allocating one.
6511 (x_produce_glyphs): Don't get an HDC. Change calls to
6512 w32_per_char_metric to match arg change above. Remove calls to
6513 free results.
6514 (w32_get_glyph_overhangs): Ditto.
6515 (w32_cache_char_metrics): New function.
6516
6517 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6518 ($(BLD)/casefiddle.$(O)): Remove compile command.
6519 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
6520 ($(BLD)/dispnew.obj):
6521 ($(BLD)/keyboard.obj):
6522 ($(BLD)/w32inevt.obj):
6523 ($(BLD)/w32bdf.obj):
6524 ($(BLD)/alloc.obj):
6525 ($(BLD)/buffer.obj):
6526 ($(BLD)/editfns.obj):
6527 ($(BLD)/emacs.obj):
6528 ($(BLD)/fileio.obj):
6529 ($(BLD)/fns.obj):
6530 ($(BLD)/indent.obj):
6531 ($(BLD)/insdel.obj):
6532 ($(BLD)/intervals.obj):
6533 ($(BLD)/minibuf.obj):
6534 ($(BLD)/print.obj):
6535 ($(BLD)/scroll.obj):
6536 ($(BLD)/sysdep.obj):
6537 ($(BLD)/textprop.obj):
6538 ($(BLD)/widget.obj):
f3d3c491
AI
6539 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6540 ($(BLD)/term.obj): Add dependency on dispextern.h.
6541
52283633
SM
6542 * makefile.nt ($(BLD)\dispnew.obj):
6543 ($(BLD)\keyboard.obj):
6544 ($(BLD)\w32inevt.obj):
6545 ($(BLD)\w32bdf.obj):
6546 ($(BLD)\alloc.obj):
6547 ($(BLD)\buffer.obj):
6548 ($(BLD)\editfns.obj):
6549 ($(BLD)\emacs.obj):
6550 ($(BLD)\fileio.obj):
6551 ($(BLD)\fns.obj):
6552 ($(BLD)\indent.obj):
6553 ($(BLD)\insdel.obj):
6554 ($(BLD)\intervals.obj):
6555 ($(BLD)\minibuf.obj):
6556 ($(BLD)\print.obj):
6557 ($(BLD)\scroll.obj):
6558 ($(BLD)\sysdep.obj):
6559 ($(BLD)\textprop.obj):
6560 ($(BLD)\widget.obj):
f3d3c491
AI
6561 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6562 ($(BLD)\term.obj): Add dependency on dispextern.h
6563
18ad4821
EZ
65642000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6565
6566 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6567 with an additional argument of Qt.
6568
de54681a
MB
65692000-10-21 Miles Bader <miles@gnu.org>
6570
6571 * window.c (pos_fully_visible_in_window_p): New function.
6572 (Fpos_visible_in_window_p): Add FULLY argument.
6573 Use pos_fully_visible_in_window_p.
6574 (window_scroll_pixel_based, window_scroll_line_based): Update
6575 calls to Fpos_visible_in_window_p.
6576 * lisp.h (Fpos_visible_in_window_p): Update prototype
6577
13c844fb
GM
65782000-10-20 Gerd Moellmann <gerd@gnu.org>
6579
6580 * alloc.c (toplevel): Conditionalize compilation of mem_*
6581 functions differently.
52283633 6582
d9506268
JR
65832000-10-20 Jason Rumney <jasonr@gnu.org>
6584
6585 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6586 mem_init where it used to be. mem_z etc not defined otherwise.
6587
8094989b
GM
65882000-10-20 Gerd Moellmann <gerd@gnu.org>
6589
6590 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6591 GC_MALLOC_CHECK.
6592 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6593 structure definition and related variabled to the top of the file.
6594 Include this code when GC_MALLOC_CHECK is defined.
6595 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6596 register/unregister allocated region.
6597 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6598 which isn't allocated.
6599 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6600 something which is already in use.
6601 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6602 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6603 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6604 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6605
6606 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6607 _malloc_internal instead of malloc.
6608 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6609 of free.
6610
ea456eb4
AI
66112000-10-20 Andrew Innes <andrewi@gnu.org>
6612
6613 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6614 Windows.
6615 (my_strftime) <macro>: Don't use macro arg list when redefining as
6616 _strftime_copytm.
6617 (my_strftime) <function>: Supply 0 as ut argument.
6618
e64c3a75
JR
66192000-10-19 Jason Rumney <jasonr@altavista.net>
6620
6621 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6622 including dispextern.h, as it stops faces from working.
6623
6624 * w32fns.c (Fx_create_frame): Don't bother calling
6625 face-set-after-frame-default since the caller does it for us
6626 anyway. Clean up calls to x_get_arg to be consistent with X.
6627
6628 * w32term.c (x_produce_glyphs): Handle
6629 unibyte_display_via_language_environment correctly.
6630 (w32_draw_box_rect): Fix the calculation of width and height.
6631
6632 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6633 as it has stopped working.
6634 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6635 menu-bar.
6636
17401c97
GM
66372000-10-19 Gerd Moellmann <gerd@gnu.org>
6638
6639 * eval.c (skip_debugger): Prevent a compiler warning.
6640 (Fcondition_case): Likewise.
6641 (Fbacktrace_frame): Use a null interactive spec.
6642
773272d8
KH
66432000-10-19 Kenichi Handa <handa@etl.go.jp>
6644
6645 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6646
a42943e9
GM
66472000-10-18 Gerd Moellmann <gerd@gnu.org>
6648
e50517d9
GM
6649 * strftime.c: Sync with glibc, file version 1.78.
6650 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6651 should no longer be used according to ISO 8601.
6652
9035a35a
GM
6653 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6654 no map for meta_prefix_char, don't try to use it as a keymap.
6655 Instead, if T_OK is non-zero, look up a default binding, if any,
6656 otherwise, if T_OK is zero, return nil.
6657
a42943e9
GM
6658 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6659 (x_to_xcolors, png_load): Use x_query_color.
6660
52283633
SM
6661 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6662 New functions.
a42943e9
GM
6663 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6664 which can be slow.
6665 (x_copy_color, x_alloc_lighter_color): Likewise.
6666
6667 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6668 (x_query_color, x_query_colors): Add prototype.
6669
6670 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6671 check_string_bytes only if not noninteractive, increase count to 50.
6672
00de2987
MB
66732000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6674
6675 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6676 markers correctly.
6677
54918e2b
GM
66782000-10-17 Gerd Moellmann <gerd@gnu.org>
6679
1f0b3fd2
GM
6680 * alloc.c (pure_bytes_used): Renamed from pureptr.
6681 (ALIGN): New macro.
6682 (pure_alloc): New function.
6683 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6684 Use it.
6685 (Fpurecopy): Use PURE_POINTER_P.
6686
68c5d1db
GM
6687 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6688 PT has moved backward.
52283633 6689
9a038881
GM
6690 * xdisp.c (cursor_row_p): Take continued lines into account.
6691
361b097f
GM
6692 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6693 string's size_byte.
6694 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6695 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6696 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6697 string allocated.
6698
54918e2b
GM
6699 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6700 of selective display off while searching for the next line start.
6701
03ed0806
KH
67022000-10-17 Kenichi Handa <handa@etl.go.jp>
6703
6704 * Makefile.in (term.o): Depend on dispextern.h.
6705
7e05cdaf
SM
67062000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6707
6708 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6709
a6801fd1
GM
67102000-10-16 Gerd Moellmann <gerd@gnu.org>
6711
483de32b
GM
6712 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6713 the iterator at the beginning, so that they can be set later on,
6714 for instance in reseat_at_next_visible_line_start, without being
6715 overwritten.
6716
a6801fd1
GM
6717 * xfns.c (pbm_format): Add :foreground and :background keywords.
6718 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 6719 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 6720
dbf1fcc1
EZ
67212000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6722
6723 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6724
52283633 6725 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
6726
6727 * msdos.c (IT_set_face): Compare highlighted face with the default
6728 face, and invert colors if these faces' colors are identical.
6729 (Fmsdos_remember_default_colors): Don't swap foreground and
6730 background colors in initial_colors[].
6731 (IT_set_frame_parameters): Don't swap frame's foreground and
6732 background pixels. If ALIST includes "(reverse . t)", swap
6733 foreground-color and background-color properties in frame's
6734 param_alist. If the original frame's param_alist doesn't specify
6735 the colors, store unspecified-fg and unspecified-bg, reversed if
6736 required.
6737
6738 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6739 the colors are unspecified and reversed, reverse fore- and back-
6740 ground in the returned value.
6741 (Fframe_parameter): Ditto.
6742
b41fe2c3 67432000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 6744
3a6b59d9
GM
6745 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6746 get_last_unchanged_at_beg_row.
6747 (find_first_unchanged_at_end_row): Renamed from
6748 get_first_unchanged_at_end_row.
6749 (find_first_unchanged_at_end_row): Convert assertions to
6750 unconditional tests which abort. When looking for a row in
6751 unchanged text, don't go further back than first_text_row.
6752
b41fe2c3
GM
6753 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6754 Don't add in the last line's height when deciding if the new
6755 position is below the scroll margin.
9d1af64f 6756
b41fe2c3 67572000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
6758
6759 * editfns.c (Fconstrain_to_field): Check carefully for field
6760 boundaries if either OLD_POS or NEW_POS has a non-nil field
6761 property, even if they're the same.
6762
c412cb7b
KH
67632000-10-16 Kenichi Handa <handa@etl.go.jp>
6764
6765 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6766 height for XFillRectangle.
6767
5586f3eb
SM
67682000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6769
6770 * syntax.c (Fstring_to_syntax): New function extracted from
6771 Fmodify_syntax_entry.
6772 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6773 (skip_chars, Fforward_comment): Remove unused variables.
6774 (syms_of_syntax): Add defsubr for string-to-syntax.
6775 (describe_syntax): Add code for comment and string fences.
6776
db785038
SM
67772000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6778
6779 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6780 Do the meta->esc mapping. Call get_keyelt before returning.
6781 Start scanning from the second element (the first is always `keymap')
6782 to make it easier to detect when we reach a parent map.
6783 Handle the case of inheriting from a symbol whose function is a map.
6784 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6785 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6786 (get_keyelt, Flookup_key): Update call to access_keymap.
6787 Remove the meta->esc mappings.
6788 (define_as_prefix): Delete old disabled code.
6789 (menu_item_p): New function.
6790 (where_is_internal_1): Skip over the few remaining menu items.
6791 * lisp.h (access_keymap): Update prototype.
6792 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6793 Update call to access_keymap.
6794 (follow_key, read_key_sequence): Update calls to access_keymap.
6795 Remove the meta->esc mappings.
6796
cafafe0b
GM
67972000-10-13 Gerd Moellmann <gerd@gnu.org>
6798
a2e2a7f6
GM
6799 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6800 with additional argument.
6801
cafafe0b
GM
6802 * xdisp.c (cursor_row_p): New function.
6803 (try_cursor_movement, display_line): Use it.
52283633 6804
cafafe0b
GM
6805 * xdisp.c (append_space): Also save/restore iterator's current
6806 character and its length.
6807
6808 * xdisp.c (init_from_display_pos): Add an assertion.
6809 (handle_stop): Don't set iterator's add_overlay_start.
6810 (handle_invisible_prop): Likewise.
6811 (load_overlay_strings): If text under an overlay is invisible,
6812 take both before- and after-strings into account when the iterator
6813 is positioned either at the start or at the end of the overlay.
6814 (forward_to_next_line_start): Rewritten.
6815 (reseat_at_next_visible_line_start): Rewritten.
6816 (set_iterator_to_next): Add parameter RESEAT_P.
6817
6818 * dispextern.h (struct it): Remove member add_overlay_start.
6819 (set_iterator_to_next): Change prototype.
6820
c744452b
KH
68212000-10-13 Kenichi Handa <handa@etl.go.jp>
6822
6823 * coding.c (code_convert_region): Be sure to initialize
6824 coding->category_idx.
e4a3f4e1
KH
6825 (decode_coding_string): Set coding->src_multibyte and
6826 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6827 (encode_coding_string): Set coding->src_multibyte and
6828 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 6829
321fd26f
SM
68302000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6831
6832 * xfns.c (Fx_create_frame): Don't bother calling
6833 face-set-after-frame-default since the caller does it for us anyway.
6834
76832439
EZ
68352000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6836
6837 * window.c (coordinates_in_window): Fix detection of vertical line
6838 on character terminals.
6839
2483cf58
GM
68402000-10-12 Gerd Moellmann <gerd@gnu.org>
6841
6842 * editfns.c (save_excursion_save): Additionally record the
6843 selected window.
6844 (save_excursion_restore): If buffer was visible in a window, and a
6845 different window was selected, and the old selected window is
6846 still live, restore point in that window.
6847
eb991b25
KH
68482000-10-12 Kenichi Handa <handa@etl.go.jp>
6849
8a0eba09
KH
6850 * xterm.c (x_produce_glyphs): Handle
6851 unibyte_display_via_language_environment correctly.
6852
20401fcc
KH
6853 * regex.c (regex_compile): Change the way of handling a range from
6854 unibyte char to multibyte char.
6855
6856 * syntax.c (skip_chars): Change the way of handling a range from
6857 unibyte char to multibyte char.
6858
eb991b25
KH
6859 * process.c (read_process_output): Cancel previous change.
6860
365dd325
EZ
68612000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6862
c1b096cb
EZ
6863 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6864
365dd325
EZ
6865 * charset.c (Ffind_charset_string): Doc fix.
6866 (Ffind_charset_region): Doc fix.
6867
eb483c2b
KH
68682000-10-11 Kenichi Handa <handa@mule.m17n.org>
6869
6870 * process.c (read_process_output): Fix previous change. Adjust
6871 multibyteness of text to insert in a buffer by
52283633 6872 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 6873
b40bfb99
AS
68742000-10-10 Andreas Schwab <schwab@suse.de>
6875
6876 * alloc.c (mark_object): Remove all workarounds installed on
6877 1993-08-08.
6878
caff31d4
KH
68792000-10-10 Kenichi Handa <handa@etl.go.jp>
6880
52283633 6881 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
6882 (base64_encode_1): Make it work for a text of multibyte form.
6883 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6884 case. Don't call str_to_multibyte because base64_decode_1
6885 produces correct multibyte form for eight-bit codes.
52283633 6886 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
6887 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6888 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6889 codes.
6890
6891 * charset.h (CHAR_STRING): Optimized for single byte characters.
6892
cba026ef
AS
68932000-10-09 Andreas Schwab <schwab@suse.de>
6894
6895 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6896 -1 after socket is closed, to fall through to error processing.
6897
1e21fe48
EZ
68982000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6899
6900 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 6901 variables. If ALIST includes foreground-color or
1e21fe48
EZ
6902 background-color, change also the colors of the default face for
6903 this frame.
6904
a640322e
EZ
69052000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6906
6907 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6908 them extern (they are defined on xfaces.c).
6909 (syms_of_msdos): Don't intern and don't staticpro
6910 Qbackground_color and Qforeground_color.
6911
a115794c
EZ
69122000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6913
6914 * frame.c (Fframe_parameter): For non-windowed frames, if
6915 f->param_alist says foreground or background color is unspecified,
6916 call tty_color_name to return the color name computed from the
6917 frame's current colors.
6918
f5533b63
DL
69192000-10-06 Dave Love <fx@gnu.org>
6920
6921 * terminfo.c (ospeed): Don't declare.
6922
6923 * sysdep.c: Don't include string.h.
6924 (h_errno): Declare conditional also on TRY_AGAIN.
6925
6926 * charset.c (Ffind_charset_string): Doc fix.
6927
52283633 6928 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
6929 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6930 error messages.
6931
2b06561a
DL
69322000-10-05 Dave Love <fx@gnu.org>
6933
6934 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6935 position like menu-bar.
6936
ca839c85
GM
69372000-10-05 Gerd Moellmann <gerd@gnu.org>
6938
6939 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6940
6941 * xdisp.c (handle_single_display_prop): Use safe_call1.
6942 (safe_call): Renamed from call_function.
6943 (safe_call1): New function.
6944 (handle_fontified_prop): Use safe_call1 instead of call1.
6945 (safe_eval): Renamed from eval_form.
6946 (safe_eval_handler): Renamed from eval_handler.
6947 (handle_single_display_prop, display_mode_element): Use safe_eval
6948 instead of eval_form.
6949
6950 * xfaces.c (merge_face_heights): Use safe_call instead of
6951 call_function.
6952
6953 * keyboard.c (show_help_echo): Use safe_call instead of
6954 call_function; use safe_eval instead of eval_form.
6955
6956 * lisp.h (safe_call): Renamed from call_function.
6957 (safe_eval): Renamed from eval_form.
6958 (safe_call1): Add prototype.
6959
a3489ece
MB
69602000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6961
6962 * xfns.c (image_ascent): Rearrange ascent calculation for the
6963 has-a-font case.
6964
35810b6f
SM
69652000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6966
6967 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6968 (where_is_internal_1): Don't bother ignoring menu-items any more.
6969
3dc78168
GM
69702000-10-04 Gerd Moellmann <gerd@gnu.org>
6971
6972 * keyboard.c (update_menu_bindings): New variable.
6973 (parse_menu_item): Use AREF. If update_menu_bindings
6974 is 0, don't update menu bindings.
6975 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6976
1efc2bb9
EZ
69772000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6978
6979 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6980 to `mark_object'.
6981
3f679f55
SM
69822000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6983
6984 * syntax.c (forw_comment): Match nestedness of ender/starter.
6985 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6986 (prev_char_comstart_first): Remove.
6987 (back_comment): Check two-char comment markers more carefully
6988 to better handle overlapping cases like *//* or /* */* */ ...
6989 Match nestedness of ender/starter.
6990
2021ab61
DL
69912000-10-02 Dave Love <fx@gnu.org>
6992
6993 * config.in (HAVE_GAI_STRERROR): Add undef.
6994
6995 * process.c (Fopen_network_stream): Use it.
6996
6997 * m/alpha.h (NO_REMAP): Don't define.
6998
64e6cc18
GM
69992000-10-02 Gerd Moellmann <gerd@gnu.org>
7000
7001 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7002 return with a string converted to an integer or vice versa when
7003 Vmocklisp_arguments is t.
7004 (Fsignal): Likewise. The function can return for `quit'.
7005 (struct gcpro): Declare member `var' to point to a volatile
7006 Lisp_Object.
7007
7008 * eval.c (error): Prevent compiler warning.
7009
b1904cd9
SM
70102000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7011
7012 * keymap.c (keymap_memberp): New function.
7013 (Fset_keymap_parent): Use it.
7014 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7015 Use keymap_memberp to avoid creating cycles.
7016 (access_keymap): Use KEYMAPP.
7017
71c9ec51
GM
70182000-09-30 Gerd Moellmann <gerd@gnu.org>
7019
7020 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
7021 gai_strerror. Make sure xerrno is set if connect fails. Improve
7022 error recovery.
71c9ec51 7023
c70c6b58
JR
70242000-09-29 Jason Rumney <jasonr@gnu.org>
7025
7026 * w32term.c (w32_char_font_type, w32_encode_char)
7027 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7028 (w32_bdf_per_char_metric): New function.
7029 (w32_per_char_metric): Use it.
7030 (x_draw_glyph_string_background): Always draw background for BDF
7031 glyphs.
7032
7033 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7034 GDI object which is a scarce resource.
7035
7036 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7037 (get_quoted_string): Fix limit on memchr search.
7038 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7039 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7040 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7041 (get_cached_font_char, cache_char_offset): Use macro
7042 BDF_CODEPOINT_RANGE_COVER_P.
7043 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7044 (clear_cached_bitmap_slots): New function.
7045 (GET_HEX_VALUE): G-Z, g-z are not hex.
7046 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7047 (get_bitmap_with_cache): Use new cache implementation.
7048 (create_offscreen_bitmap): New function.
7049 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7050
7051 * w32term.c (x_produce_glyphs): If the distance from the current
7052 position to the next tab stop is less than a canonical character
7053 width, use the tab stop after that.
7054 (x_draw_glyphs): Handle case START and END are out of bounds more
7055 carefully.
7056 (x_clear_mouse_face): Block/unblock input.
7057 (x_display_and_set_cursor): Don't show a hollow box cursor for
7058 buffers whose cursor_type is nil.
7059
fe01239f
GM
70602000-09-29 Gerd Moellmann <gerd@gnu.org>
7061
52283633 7062 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
7063
7064 * dispextern.h (updating_frame): Declare extern.
7065
e7c52f1f
AS
70662000-09-29 Andreas Schwab <schwab@suse.de>
7067
7068 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7069
de6e1f7c
GM
70702000-09-29 Gerd Moellmann <gerd@gnu.org>
7071
25126faa
GM
7072 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
7073 use its function definition.
7074 (tool_bar_items): Likewise.
7075
de6e1f7c 7076 * lisp.h (fatal): Declare NO_RETURN.
52283633 7077
454ee39b
KH
70782000-09-29 Kenichi Handa <handa@etl.go.jp>
7079
7080 * keymap.c: Remove the line "#undef NULL".
7081
96301c5f
GM
70822000-09-28 Gerd Moellmann <gerd@gnu.org>
7083
52283633 7084 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 7085
efffeeb4
DL
70862000-09-28 Dave Love <fx@gnu.org>
7087
ecb8b666
DL
7088 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
7089
dc3cd20f
DL
7090 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
7091
7092 * .gdbinit (xreload): Note its need on GNU/Linux.
7093
efffeeb4
DL
7094 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
7095 r_alloc, r_alloc_free.
7096
8610d903
KH
70972000-09-28 Kenichi Handa <handa@etl.go.jp>
7098
7099 * syntax.c (skip_chars): Handle negation correctly.
7100
8901d1ac
GM
71012000-09-27 Gerd Moellmann <gerd@gnu.org>
7102
6f22f1ad
GM
7103 * xfaces.c (realize_default_face): Call set_lface_from_font_name
7104 with non-zero FORCE_P argument.
7105
52283633 7106 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
7107 Add assertions.
7108
7109 * xdisp.c (window_box_height): Add an assertion.
7110
7111 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
7112 tool-bar than is available.
7113 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
7114
36f1966f
DL
71152000-09-27 Dave Love <fx@gnu.org>
7116
efffeeb4 7117 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 7118
31d929e5
GM
71192000-09-26 Gerd Moellmann <gerd@gnu.org>
7120
c98863bf
GM
7121 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
7122 instead of BITS_PER_INT.
7123 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
7124 EMACS_UINT, respectively.
7125 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
7126
7127 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
7128
7129 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
7130
77072ab1
GM
7131 * window.c (freeze_window_starts): Construct last argument for
7132 foreach_window differently.
7133
7134 * xfns.c (x_decode_color): Don't return a Lisp_Object.
7135
7136 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
7137 EMACS_UINT instead of `int' and `unsigned int'.
7138 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
7139
7140 * frame.h (struct frame): Make the `nothing' member of union
7141 output_data an EMACS_INT.
7142
52283633 7143 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
7144 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
7145 size in the sdata structure.
7146 (SDATA_NBYTES, SDATA_DATA): New macros.
7147 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
7148 differently for the different layout of the sdata structure.
7149 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
7150 in sdata.
7151 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
7152 Check that size recorded in the string size and size recorded in
7153 the sdata structure agree.
7154
3e60b029
DL
71552000-09-25 Dave Love <fx@gnu.org>
7156
7157 * buffer.c: Include stdio.h.
7158
7159 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 7160
3e60b029
DL
7161 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
7162
7163 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 7164 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
7165 (__malloc_extra_blocks): Declare as __malloc_size_t.
7166
8ff16b4e
GM
71672000-09-25 Gerd Moellmann <gerd@gnu.org>
7168
755a2ccd
GM
7169 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7170
d8b4516f
GM
7171 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7172 (read_char): If help-echo is showing, preserve the echo area
7173 when redisplaying.
7174
7175 * xdisp.c (help_echo_showing_p): New variable.
7176 (set_message): Reset it to 0.
7177 (init_xdisp): Initialize help_echo_showing_p.
7178
7179 * dispextern.h (help_echo_showing_p): Declare extern.
7180
7181 * config.in: Fix typo in __GNUC_MINOR__.
7182
7183 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7184
b11af2dd
GM
7185 * s/freebsd.h (POSIX_SIGNALS): Define.
7186
8ff16b4e
GM
7187 * xterm.c (x_clear_mouse_face): Block/unblock input.
7188
844eb643
DL
71892000-09-24 Dave Love <fx@gnu.org>
7190
7191 * fns.c (base64_encode_1): Fix last change.
7192
b30ab1b3
GM
71932000-09-22 Gerd Moellmann <gerd@gnu.org>
7194
7195 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7196
7197 * xdisp.c (try_window_reusing_current_matrix): More fixes
7198 for the case window has a header-line.
7199
c6cbe5f0
DL
72002000-09-22 Dave Love <fx@gnu.org>
7201
4c7c1f3f
DL
7202 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7203 a doc string.
7204
7205 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7206
c6cbe5f0
DL
7207 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7208
550a625e
GM
72092000-09-21 Gerd Moellmann <gerd@gnu.org>
7210
4c7c1f3f 7211 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
7212 for GCC >= 2.5.
7213
52283633
SM
7214 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7215 Declare NO_RETURN.
fca99116 7216
80d26f99
GM
7217 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7218 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7219 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7220 warnings.
52283633 7221
80d26f99
GM
7222 * marker.c (byte_char_debug_check): Return void.
7223
623a0aae
GM
7224 * xfns.c (Fx_create_frame): Set default frame parameter value
7225 for tool-bar-lines to 1.
7226
7227 * dispnew.c (scrolling_window): Compare y-positions of rows
7228 equal at the start. Some simplification.
7229
7230 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7231 reused rows' y-position in the case window has a header-line, and
7232 new window start is greater than old window start.
7233
42ac0ae5
GM
7234 * process.c (process_sent_to): New variable.
7235 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7236 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7237 Declare more parameters volatile.
7238
550a625e
GM
7239 * lread.c (Vrecursive_load_depth_limit): New variable.
7240 (Fload): Check recursive loads whose recursion depth exceeds
7241 Vrecursive_load_depth_limit.
7242 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7243
8320414c
GM
72442000-09-20 Gerd Moellmann <gerd@gnu.org>
7245
f46c275e
GM
7246 * fileio.c (Fread_file_name): Doc fix.
7247
7248 * editfns.c (Fmessage_or_box): Doc fix.
7249
7250 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7251
b7e11c5b 7252 * xfns.c (xbm_scan): Allow C-style comments.
52283633 7253
8320414c
GM
7254 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7255 symbols are specified, add color translations to the cache.
52283633 7256 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
7257 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7258 xpm_cache_color.
7259 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7260 structures to xpm_init_color_cache.
7261
da1608d9
GM
72622000-09-19 Gerd Moellmann <gerd@gnu.org>
7263
52283633 7264 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 7265
6badfa25
AI
72662000-09-19 Andrew Innes <andrewi@gnu.org>
7267
7268 * makefile.nt (bootstrap-emacs): Don't change directory.
7269
3a5f42bb
KH
72702000-09-19 Kenichi Handa <handa@etl.go.jp>
7271
1b7649bd
KH
7272 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7273
3a5f42bb
KH
7274 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7275 If output buffer is too small, signal an appropriated error.
7276
9f83cf0b
DL
72772000-09-18 Dave Love <fx@gnu.org>
7278
52283633 7279 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
7280 (current_active_maps): Remove redundant get_local_map call.
7281
28c7826c
GM
72822000-09-18 Gerd Moellmann <gerd@gnu.org>
7283
5cefa566
GM
7284 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7285 cursor for buffers whose cursor_type is nil.
52283633 7286
6fed3546
GM
7287 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7288 a feature to implement that is already implemented.
7289 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7290 warnings.
7291
7292 * xfns.c (x_clear_image_1): New function.
7293 (x_clear_image): Use it.
52283633 7294 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 7295
05b1f851
GM
7296 * dispnew.c (update_window): Move test for invisible lines
7297 at the top to update_window_line.
7298 (update_window_line): Handle invisible lines here.
7299
f4779de9
GM
7300 * xfns.c (clear_image_cache): Clear current matrices of all
7301 frames sharing an image cache. Block input while freeing
7302 images. Fix timestamp comparison.
7303 (x_clear_image): Also free the mask.
7304
28c7826c
GM
7305 * xfns.c (lookup_image): Block input while loading the image so
7306 that we won't get interrupted in a state where the image isn't yet
7307 set up completely.
7308 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7309 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7310 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 7311 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 7312
b7412313
GM
73132000-09-16 Gerd Moellmann <gerd@gnu.org>
7314
7315 * dispnew.c (update_window): Make sure to make desired rows
7316 current even if they are completely invisible at the top
7317 of a window.
7318
47e351a3
GM
73192000-09-15 Gerd Moellmann <gerd@gnu.org>
7320
7f8f1edc
GM
7321 * xfns.c (lookup_image): Build mask before applying an algorithm.
7322 Recognize algorithm `disabled'.
7323 (cross_disabled_images): New variable.
7324 (COLOR_INTENSITY): New macro.
7325 (x_detect_edges): Use COLOR_INTENSITY.
7326 (x_disable_image): New function.
7327 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7328
7329 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7330 disabled state, don't apply an image transformation algorithm if
7331 the user specified an image for the disabled state. Use
28c7826c 7332 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
7333 user hasn't specified an image.
7334
ebb8f116
GM
7335 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7336 allocation functions with the XPM lib.
7337 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7338 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7339 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7340 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 7341 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
7342 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7343 functions, if possible, because these handle color allocation
7344 failure more gracefully.
7345 (Fimage_mask_p): New function.
7346
47e351a3
GM
7347 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7348 (Qedge_detection, Qheuristic): New symbols.
7349 (syms_of_xfns): Initialize new symbols.
7350 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7351 `algorithm (edge-detection ...)'.
7352 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7353 (tiff_format, gif_format, gs_format): Add `:mask'.
7354 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7355 (GIF_MASK, GS_MASK): New enumerators.
7356 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7357 (emboss_matrix, laplace_matrix): New variables.
7358 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7359 (x_edge_detection): New functions.
7360 (x_laplace): Rewritten in terms of x_detect_edges.
7361 (x_build_heuristic_mask): If image has a mask, free it.
7362
fe83b953
AI
73632000-09-14 Andrew Innes <andrewi@gnu.org>
7364
7365 * makefile.w32-in: Revert to Unix line endings.
7366
3021e816
AI
73672000-09-14 Andrew Innes <andrewi@gnu.org>
7368
7369 * makefile.w32-in: Standardize indentation somewhat.
7370 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7371 cater for differences between shells.
7372
7373 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7374
2a32b5ea
GM
73752000-09-14 Gerd Moellmann <gerd@gnu.org>
7376
7377 * xterm.c (x_produce_glyphs): If the distance from the current
7378 position to the next tab stop is less than a canonical character
7379 width, use the tab stop after that.
7380
b4331e96
DL
73812000-09-14 Dave Love <fx@gnu.org>
7382
7383 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7384
ef9e4345
GM
73852000-09-14 Gerd Moellmann <gerd@gnu.org>
7386
085536c2
GM
7387 * xdisp.c (handle_fontified_prop): While running fontification
7388 functions, bind `fontification-functions' and
7389 `after-change-functions' to nil.
7390
ef9e4345
GM
7391 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7392 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7393
7394 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7395
7396 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7397 USE_MMAP_FOR_BUFFERS.
7398
7399 * insdel.c (make_gap): Use enlarge_buffer_text.
7400
7401 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7402 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7403 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7404 from former r_alloc_* functions in ralloc.c.
52283633 7405 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
7406 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7407 (mmap_init) [REL_ALLOC_MMAP]: New function.
7408 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7409 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7410 BUFFER_FREE.
7411
7412 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7413 (enlarge_buffer_text): Add prototype.
7414
7415 * ralloc.c: Remove everything having to do with the use of mmap.
7416
f8608968
GM
74172000-09-13 Gerd Moellmann <gerd@gnu.org>
7418
2a494b2d
GM
7419 * sound.c (Fplay_sound): Doc fix.
7420
8c907a56
GM
7421 * keyboard.c: Avoid some more compiler warnings.
7422 (parse_tool_bar_item): Ignore cached key bindings.
7423
f8608968
GM
7424 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7425 and allocation of Lisp data.
7426
6ab70e9a
GM
74272000-09-12 Gerd Moellmann <gerd@gnu.org>
7428
d12d0a9b
GM
7429 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7430 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7431 defaults first.
7432
6ab70e9a
GM
7433 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7434
63c36c3c
KH
74352000-09-12 Miyashita Hisashi <himi@meadowy.org>
7436
7437 * ccl.c: Comment fixed.
7438 (MAX_MAP_SET_LEVEL): Increased to 30.
7439 (PUSH_MAPPING_STACK): Enclose with do-while block.
7440 (POP_MAPPING_STACK): Likewise.
7441 (stack_idx_of_map_multiple): New variable.
7442 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7443 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 7444 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
7445 (ccl_driver) <CCL_MapSingle>: Likewise.
7446 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7447 with the case where looking up process reaches to the end of
7448 map-set, and call CCL programs as the above change.
7449
7ee3bd7b
GM
74502000-09-11 Gerd Moellmann <gerd@gnu.org>
7451
8ec8a5ec
GM
7452 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7453 that might be clobbered by longjmp.
7454 (check_x_display_info, x_decode_color, create_frame_xic)
7455 (Fx_display_backing_store, Fx_display_visual_class)
52283633 7456 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 7457
f74b0705
GM
7458 * lread.c (init_lread): Set Vloads_in_progress to nil.
7459 (Fload): Show list of recursively loaded files, when signaling an
7460 error.
7461
7ee3bd7b
GM
7462 * lread.c (Vloads_in_progress): New variable.
7463 (record_load_unwind): New function.
7464 (Fload): Check for recursive loads.
7465 (syms_of_lread): Initialize Vloads_in_progress.
7466 (read_integer, read1): Avoid some compiler warnings.
7467
7468 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7469 compiler warnings.
7470
974e1e5b
MB
74712000-09-11 Miles Bader <miles@gnu.org>
7472
7473 * editfns.c (Fbuffer_string): Doc fix.
7474
9824c4e3
GM
74752000-09-10 Gerd Moellmann <gerd@gnu.org>
7476
7477 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7478
6a72fdd1
KR
74792000-09-09 Ken Raeburn <raeburn@gnu.org>
7480
7481 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7482 whether to include other header files.
7483
28e6fb66
GM
74842000-09-09 Gerd Moellmann <gerd@gnu.org>
7485
52283633 7486 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 7487 by Fmemq as a boolean.
28e6fb66 7488
7f8b6551
SM
74892000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7490
7491 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7492
a8710abf
GM
74932000-09-08 Gerd Moellmann <gerd@gnu.org>
7494
d1a02881
GM
7495 * ralloc.c (mmap_fd): Remove initializer which can make it
7496 read-only in a dumped Emacs.
7497 (mmap_fd_1): New variable.
7498 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7499 restore it from there.
7500 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7501 unconditionally so that mmap_fd can be initialized there.
7502 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7503 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7504 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7505
c454aac1
GM
7506 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7507
7508 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 7509 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 7510
fc653ef2
GM
7511 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7512
3015eec0
GM
7513 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7514 inheritance.
7515
bfe0ee88
GM
7516 * xdisp.c (try_window_id): When trying to locate cursor in
7517 unchanged rows at the top, handle the case that we can't find it.
7518
a8710abf
GM
7519 * xterm.c (x_draw_glyphs): Handle case START and END are out
7520 of bounds more carefully.
7521
6b7d4ae4
DL
75222000-09-08 Dave Love <fx@gnu.org>
7523
423193c5
DL
7524 * s/sol2.h (REL_ALLOC_MMAP): Define.
7525 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7526
7527 * ralloc.c: Don't include string.h (redundant).
7528 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7529 [!MAP_ANON]: Include fcntl.h.
7530 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7531 (r_alloc, r_re_alloc, r_alloc_free)
7532 (mmap_enlarge, mmap_set_vars): Use it.
7533 (r_alloc_init_fd): New function.
7534 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7535 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7536 malloc type.
7537
7538 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7539 Remove vm-limit.o.
7540
6b7d4ae4
DL
7541 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7542 change to __NetBSD__.
7543
44d31981
KH
75442000-09-08 Kenichi Handa <handa@etl.go.jp>
7545
7546 * search.c (compile_pattern): Check the multibyteness of cached
7547 string and PATTERN.
7548
aad40737
MB
75492000-09-08 Miles Bader <miles@gnu.org>
7550
7551 * xfaces.c (default_face_vector): Function removed.
7552 (Finternal_merge_in_global_face): Restore old global/local
7553 attribute override order. Use inline loop instead of calling
7554 default_face_vector.
7555
91a211b5
GM
75562000-09-07 Gerd Moellmann <gerd@gnu.org>
7557
7558 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7559 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7560 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7561 where necessary, in case POINTER_TYPE is `void'.
7562
03419440
EZ
75632000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7564
7565 * frame.c (make_terminal_frame): Initialize frame foreground and
7566 background colors to unspecified, for the initial instance of an
7567 MSDOS frame.
7568
f46f845b
GM
75692000-09-07 Gerd Moellmann <gerd@gnu.org>
7570
24f76fbf
GM
7571 * ralloc.c (mmap_find): Fix overlap computation.
7572 (mmap_enlarge): Compute nbytes before trying to find an
7573 overlapping region.
7574
f46f845b
GM
7575 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7576 instead of `!='.
7577
7578 * lread.c (syms_of_lread): Change value of regexp
7579 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7580
7581 * xmenu.c (xdialog_show): When looking up the selection in
7582 menu_items, take `quote' boundaries into account; this corresponds
7583 to a nil ITEM in x-popup-dialog.
7584
3c014385
KH
75852000-09-07 Kenichi Handa <handa@etl.go.jp>
7586
fd6f711b
KH
7587 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7588 not 0x81.
7589 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7590
3c014385 7591 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
7592 encoding, not decoding. Fix the handling of latin-jisx0201.
7593 Check for the charset katakana-jisx0201 too.
3c014385 7594 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 7595 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 7596
0da3ecef
GM
75972000-09-07 Gerd Moellmann <gerd@gnu.org>
7598
ab0ee409
GM
7599 * xfaces.c (Vparam_value_alist): New variable.
7600 (syms_of_xfaces): Initialize it.
7601 (Finternal_set_lisp_face_attribute): Avoid more consing.
7602
7603 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7604 specially.
7605 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7606 (Qbackground_mode): New variable.
7607 (syms_of_frame_1): Initialize Qbackground_mode.
7608
7609 * lisp.h (Qdisplay): Declare extern.
1091dd67 7610
0da3ecef
GM
7611 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7612 change face on all frames, and change the default for new frames.
7613
b14654b9
DL
76142000-09-07 Dave Love <fx@gnu.org>
7615
7616 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7617
d24fd56f
KH
76182000-09-07 Kenichi Handa <handa@etl.go.jp>
7619
794f3670
KH
7620 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7621
0fddd0dc
KH
7622 * charset.c: Include composite.h
7623 (lisp_string_width): New function.
7624 (Fstring_width): Call lisp_string_width instead of strwidth.
7625
7626 * Makefile.in (charset.o): Depends on composite.h.
7627
d24fd56f
KH
7628 * process.c (read_process_output): Before inserting the decoded
7629 text in the buffer, adjust the multibyteness.
7630
fa0b693c
GM
76312000-09-06 Gerd Moellmann <gerd@gnu.org>
7632
52283633 7633 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
7634 buffer's text buffer is null, map new memory.
7635
0a58f946
GM
7636 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7637 POINTER_TYPE and size_t.
7638 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7639 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7640 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7641 [REL_ALLOC_MMAP]: New macros.
7642 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7643 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7644 [REL_ALLOC_MMAP]: New functions.
7645
7646 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7647 before and after unexec.
7648
7649 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7650 text buffers if necessary.
7651
7652 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7653 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7654 in prototypes.
7655
fa0b693c
GM
7656 * config.in (HAVE_MMAP): Add #undef.
7657
877055f6
GM
76582000-09-05 Gerd Moellmann <gerd@gnu.org>
7659
08ba3862
GM
7660 * frame.c (Qdisplay_type): New variable.
7661 (syms_of_frame_1): Initialize it.
7662 (Fframe_parameter): New function that avoids consing.
7663 (syms_of_frame): Defsubr it.
7664
66ffe51c
GM
7665 * buffer.c (Fother_buffer): Consider buffers as invisible when
7666 they are displayed in a window on an invisible frame.
7667
877055f6
GM
7668 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7669 get-largest-window always return nil.
7670
bb970e67
GM
76712000-09-04 Gerd Moellmann <gerd@gnu.org>
7672
7673 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7674 variable; recognize Emacs 19 elc files.
7675
7a3d0e0e
MB
76762000-09-04 Miles Bader <miles@gnu.org>
7677
7678 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7679 before initially popping up the menu, so the menu doesn't flash
52283633 7680 when the face settings are significantly different from the defaults.
7a3d0e0e 7681
14473664
SM
76822000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7683
7684 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7685 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7686 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7687 (BIT_UNIBYTE): Remove.
7688 (re_match_2_internal): Delete corresponding code and streamline the
7689 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7690 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7691 (re_wctype_t): New type.
7692 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7693 (regex_compile): Use them and fix handling of overly long char classes.
7694
c1174479
AI
76952000-09-03 Andrew Innes <andrewi@gnu.org>
7696
f8803e97
AI
7697 * makefile.w32-in: Change to DOS line endings.
7698
c1174479
AI
7699 * s/ms-w32.h (ORDINARY_LINK): New define.
7700
7701 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7702 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7703
7704 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7705 (distclean): Delete them here instead.
7706
44ef7cf6
AI
7707 * w32proc.c (compare_env): Convert to uppercase for comparison,
7708 not lowercase, to match how the native Windows shell works.
7709
49b3bd82
JR
77102000-09-03 Jason Rumney <jasonr@gnu.org>
7711
7712 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7713 CVS changes the line-ends when checking in/out on DOS/Windows.
7714
7715 * makefile.nt (emacs): Do not change directory to run temacs, as
7716 the load-path is set relative to current directory.
7717
a3d35a39
MB
77182000-09-03 Miles Bader <miles@gnu.org>
7719
7720 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7721
d276b0cf
GM
77222000-09-02 Gerd Moellmann <gerd@gnu.org>
7723
715e84c9
GM
7724 * xdisp.c (redisplay_mode_lines): New function.
7725 (display_mode_lines): Return number of mode lines displayed.
7726 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7727 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7728
8892f40b
GM
7729 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7730 string.h and strings.h.
7731 (index) [HAVE_INDEX]: Add prototype.
7732
d276b0cf
GM
7733 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7734 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7735
7736 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7737 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7738
38404229
GM
77392000-09-01 Gerd Moellmann <gerd@gnu.org>
7740
7741 * lread.c (read1): Accept `?' as symbol constituent, for
7742 compatiblity with XEmacs.
7743
c0f9ea08
SM
77442000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7745
7746 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7747 (struct re_pattern_buffer): Remove newline_anchor.
7748 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7749 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7750 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7751 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7752 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7753 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7754 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7755 Get rid of references to newline_anchor.
7756 (regcomp): Allocate and precompute a fastmap.
7757
8c0f83fe
GM
77582000-08-31 Gerd Moellmann <gerd@gnu.org>
7759
7760 * lread.c (openp): GCPRO local variable `filename'.
7761
4bb91c68
SM
77622000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7763
7764 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7765
7766 * regex.c: Merge some changes from GNU libc. Add prototypes.
7767 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7768 Use memcmp and memcpy instead of bcopy and bcmp.
7769 (init_syntax_once): Use ISALNUM.
7770 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7771 (REG_UNSET_VALUE): Remove. Use NULL instead.
7772 (REG_UNSET, re_match_2_internal): Use NULL.
7773 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7774 New macros.
7775 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7776 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7777 (regex_compile): In handle_interval, return an error rather than try to
7778 unfetch the interval if we can't find the closing brace.
7779 Obey the RE_NO_GNU_OPS syntax bit.
7780 (TOLOWER): New macro.
7781 (regcomp): Use it.
7782 (regexec): Allocate regs.start and regs.end as one block.
7783
5226a931
GM
77842000-08-30 Gerd Moellmann <gerd@gnu.org>
7785
868dd24b
GM
7786 * xdisp.c (echo_area_display): Check display_completed instead
7787 of calling detect_input_pending.
7788
7789 * dispnew.c (update_frame): Only set display_completed here; move
7790 the update_begin and update_end calls here from update_frame_1.
7791 (update_frame_1): Don't set display_completed here, don't call
7792 update_begin/update_end.
7793
5226a931
GM
7794 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7795 instead of store_frame_param.
7796
2a8bd25f
GM
77972000-08-29 Gerd Moellmann <gerd@gnu.org>
7798
7799 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7800 desired window matrix hasn't been displayed, use the current row
7801 instead. Make sure that only those frame rows are updated for
7802 which there exists a corresponding enabled desired row.
52283633 7803
ba3478d9
MB
78042000-08-29 Miles Bader <miles@gnu.org>
7805
7806 * xfaces.c (default_face_vector): New function.
7807 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7808
87d0f685
GM
78092000-08-29 Gerd Moellmann <gerd@gnu.org>
7810
7811 * lread.c (openp): Prevent temporary string passed to
7812 Ffile_readable_p from being garbage collected.
7813
6fa86045
DL
78142000-08-28 Dave Love <fx@gnu.org>
7815
7816 * keymap.c (store_in_keymap): Add `static' to declaration.
7817
bb17930d
GM
78182000-08-28 Gerd Moellmann <gerd@gnu.org>
7819
7820 * emacs.c, callint.c, doc.c, editfns.c
7821 (toplevel) [HAVE_STRING_H]: Include string.h.
7822 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7823 (index): Remove prototypes which might conflict with non-standard
7824 definitions of index/strchr.
7825
7826 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7827 (rindex): Define only if !HAVE_RINDEX.
7828
7829 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7830
7831 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7832
87188200
MB
78332000-08-28 Miles Bader <miles@gnu.org>
7834
7835 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7836 made inconsistent by a font-related attribute in FROM.
7837 (merge_face_inheritance): Add function comment.
7838
41a68aef
KH
78392000-08-28 Kenichi Handa <handa@etl.go.jp>
7840
7841 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7842 the 4th arg (PREV_EVENT) Qt to suppress input method.
7843
f7c436c1
SM
78442000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7845
0b32bf0e
SM
7846 * regex.c: Indent cpp directives and remove parens after `defined'.
7847 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7848 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7849 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7850 (re_compile_pattern): Use size_t for length.
7851 (init_syntax_once): Move to a better place.
7852 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7853 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7854
f7c436c1
SM
7855 * syntax.c (back_comment): Detect cases where a comment-starter is
7856 actually inside another comment as in: /* a // b */ c // d \n.
7857 Make it clear that `comstart_pos' is unused for nested comments.
7858
7859 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7860 (KEYMAPP): New macro.
7861 (Fkeymap_parent, Fset_keymap_parent): Use it.
7862 (fix_submap_inheritance): Mark it static.
7863 (define_as_prefix, describe_buffer_bindings, describe_command)
7864 (describe_translation, describe_map): Complete prototypes.
7865
7866 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7867
7868 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7869 to better match the key-lookup behavior.
7870
6288c62f
GM
78712000-08-27 Gerd Moellmann <gerd@gnu.org>
7872
7873 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7874 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7875
e931344e
EZ
78762000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7877
7878 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7879 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7880 (xterm.o): Depend on coding.h
7881
d10dfeef
KH
78822000-08-26 Kenichi Handa <handa@etl.go.jp>
7883
7884 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7885 the corresponding '#endif'.
7886
2d73e8d3
MB
78872000-08-26 Miles Bader <miles@gnu.org>
7888
7889 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7890 * xfaces.c (QCinherit): New variable.
7891 (syms_of_xfaces): Initialize it.
7892 (LFACE_INHERIT): New macro.
7893 (Finternal_get_lisp_face_attribute)
52283633 7894 (merge_face_vector_with_property)
2d73e8d3
MB
7895 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7896 (check_lface_attrs): Allow new types of face height. Check
7897 inherit attribute.
7898 (CYCLE_CHECK): New macro.
7899 (merge_face_inheritance): New function.
7900 (merge_face_vectors): Merge inherited faces too. Add F and
7901 CYCLE_CHECK arguments.
7902 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7903 (lookup_named_face, lookup_derived_face, realize_named_face)
7904 (face_at_string_position, face_at_buffer_position): Supply
7905 new F and CYCLE_CHECK arguments to merge_face_vectors.
7906 (merge_face_heights): New function.
52283633 7907 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
7908 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7909 handle relative face heights.
7910 (lface_same_font_attributes_p): Compare heights using EQ.
7911
6ce974d4
KH
79122000-08-26 Kenichi Handa <handa@etl.go.jp>
7913
7914 * charset.c (char_to_string): Check the character validity.
52283633 7915 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 7916
dc1e502d
SM
79172000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7918
7919 * regex.c (PUSH_FAILURE_COUNT): New macro.
7920 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7921 Handle popping of a register's or a counter's data.
7922 (POP_FAILURE_POINT): Use the new name.
7923 (re_match_2_internal): Push counter data on the stack for succeed_n,
7924 jump_n and set_number_at and remove misleading dead code in succeed_n.
7925
bd9d0f3f
GM
79262000-08-25 Gerd Moellmann <gerd@gnu.org>
7927
7928 * xdisp.c (redisplay_internal): If considering all windows on all
7929 frames, update the display for each frame as soon as possible,
7930 instead of first building all desired matrices for all frames, and
7931 then updating them all.
7932 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7933
aa5b8e15
GM
79342000-08-24 Gerd Moellmann <gerd@gnu.org>
7935
17494071
GM
7936 * bytecode.c (mark_byte_stack): Add a comment.
7937
52283633
SM
7938 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7939 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
7940 a graphical frame.
7941
c543db81
KH
79422000-08-24 Kenichi Handa <handa@etl.go.jp>
7943
d246d5f5
KH
7944 * minibuf.c (do_completion): Always use compare-string, not
7945 string-equal because the latter doesn't pay attention to
7946 multibyteness of strings.
7947
c543db81
KH
7948 * process.c (create_process): Don't setup raw-text coding here.
7949 (Fopen_network_stream): Don't set coding->src_multibyte and
7950 coding->dst_multibyte here.
7951 (read_process_output): For process filter, return unibyte string
7952 if default-enable-multibyte-characters is nil.
7953 (send_process): If OBJECT is multibyte text, be sure to encoded it
7954 by the specified coding system for the process. Otherwise, setup
7955 raw-text coding.
52283633 7956 (init_process): Don't initialize default-process-coding-system here.
c543db81 7957
9b47cfe0
EZ
79582000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7959
7960 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7961 <scroll-down-aggressively>: Likewise.
7962
f5a36960
KH
79632000-08-23 Kenichi Handa <handa@etl.go.jp>
7964
7965 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7966 zero. Set coding->produced_char correctly.
7967
69a7ffa7
AI
79682000-08-22 Andrew Innes <andrewi@gnu.org>
7969
7970 * makefile.w32-in: New file.
7971
7972 * unexw32.c (unexec): Ignore old_name, and use the actual location
7973 of the current executable instead. Base new_name on this.
7974
7975 * w32proc.c (create_child): Remove reference to security
7976 descriptor, which isn't needed and doesn't compile with mingw32.
7977
7978 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7979 up dllimport attributes.
7980 (x_update_window_end): Update prototype.
7981
7982 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7983 extern, which screws up dllimport attributes.
7984
7985 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7986 up dllimport attributes.
7987
7988 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7989 screws up dllimport attributes.
7990
7991 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7992 up dllimport attributes.
7993 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7994 screws up dllimport attributes.
7995
7996 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7997 up dllimport attributes.
7998
7999 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8000 screws up dllimport attributes.
8001
8002 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8003 screws up dllimport attributes.
8004
8005 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8006 up dllimport attributes.
8007
8008 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8009 unnecessary extern, which screws up dllimport attributes.
8010 (main): Ditto.
8011
8012 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8013 up dllimport attributes.
8014
8015 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8016 unnecessary extern, which screws up dllimport attributes.
8017
8018 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8019 screws up dllimport attributes.
8020
8021 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8022 up dllimport attributes.
8023
8024 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8025
52283633
SM
8026 * w32bdf.c (search_file_line):
8027 (set_bdf_font_info):
8028 (seek_char):
8029 (w32_get_bdf_glyph):
69a7ffa7
AI
8030 (w32_BDF_to_x_font): Fix compile warnings.
8031
52283633 8032 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
8033
8034 * w32select.c: Include keyboard.h before frame.h.
8035
8036 * w32fns.c (max): Define macro.
8037 (JOHAB_CHARSET): Define if not known.
8038 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8039 (Fx_show_tip): Synch with X version.
8040
8041 * w32xfns.c: Include keyboard.h before frame.h.
8042
8043 * w32fns.c: Include keyboard.h before frame.h.
8044
8045 * w32term.c: Include keyboard.h before frame.h.
8046
8047 * fontset.c: Include keyboard.h before frame.h.
8048
8049 * w32inevt.c: Include keyboard.h before frame.h.
8050 (MOUSE_MOVED): Define if not known.
8051
8052 * minibuf.c: Include keyboard.h before frame.h.
8053
8054 * keyboard.c: Include keyboard.h before frame.h.
8055
8056 * indent.c: Include keyboard.h before frame.h.
8057
8058 * dispnew.c: Include keyboard.h before frame.h.
8059
8060 * buffer.c: Include keyboard.h before frame.h.
8061
8062 * alloc.c: Include keyboard.h before frame.h.
8063
8064 * print.c: Include keyboard.h before frame.h.
8065
8066 * process.c: Include keyboard.h before frame.h.
8067
8068 * scroll.c: Include keyboard.h before frame.h.
8069
8070 * sysdep.c: Include keyboard.h before frame.h.
8071
8072 * term.c: Include keyboard.h before frame.h.
8073
8074 * window.c: Include keyboard.h before frame.h.
8075
8076 * xdisp.c: Include keyboard.h before frame.h.
8077 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
8078
8079 * frame.c: Include keyboard.h before frame.h.
8080
8081 * w32heap.h: Undefine min, max.
8082
8083 * w32gui.h: Undefine min, max.
8084
8085 * unexw32.c: Change PUCHAR to PCHAR.
8086 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
8087 (relocate_offset):
8088 (get_section_info):
69a7ffa7
AI
8089 (copy_executable_and_dump_data): Remove unnecessary static defs.
8090 (copy_executable_and_dump_data): Fix compile warnings.
8091
8092 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
8093
8094 * w32console.c (min): Define macro.
8095 (clear_frame, write_glyphs): Fix compile warning.
8096
52283633 8097 * w32proc.c (compare_env):
69a7ffa7
AI
8098 (find_child_console): Fix compile warning.
8099
8100 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
8101 sys_errlist instead of _sys_errlist.
8102 (get_emacs_configuration_options): New function.
8103
8104 * s/ms-w32.h (sys_nerr): Provide default definition.
8105 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
8106 name with _ prepended.
8107 (NSIG): Define if not known.
8108 (get_emacs_configuration): Provide extern declaration.
8109 (get_emacs_configuration_options): Provide extern declaration.
8110 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
8111
8112 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 8113 (map_w32_filename):
69a7ffa7
AI
8114 (read_unc_volume): Fix compile warning.
8115
8116 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
8117 definitions from being used.
8118
8119 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
8120
52283633 8121 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
8122 (open_unc_volume): Make arg const.
8123
8124 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
8125 (read_input_waiting): Remove excess parameter.
8126
8127 * w32.c (init_environment): Call _access.
8128 (check_windows_init_file): Call _close.
8129 (init_user_info): Call _putenv.
8130 (init_environment): Call _putenv and _strdup.
8131 (init_ntproc): Reset volume info cache on startup.
8132
8133 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
8134 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
8135 cannot override the CRT malloc.
8136
8137 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
8138 (LINK_FLAGS): Append to original value of LINK_FLAGS.
8139
8140 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
8141 unless we are linking with a static CRT.
8142 (RVA_TO_PTR): Cast result to unsigned char*.
8143
8144 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
8145 (add_volume_info): Use xstrdup.
8146
25060080
SM
81472000-08-22 Stefan Monnier <monnier@cs.yale.edu>
8148
8149 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
8150 (do_completion, Fminibuffer_complete_word): Use it.
8151 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
8152 var so it can take non-boolean values.
8153
6917e6bb
GM
81542000-08-21 Gerd Moellmann <gerd@gnu.org>
8155
acb7cc89 8156 * editfns.c (find_field): Formatting changes.
52283633 8157 (toplevel): Some old-style function forward declarations
acb7cc89
GM
8158 changed to prototypes, some new protypes added, some functions
8159 made static.
8160
8161 * lisp.h (set_time_zone_rule): Add prototype.
8162 (use_dialog_box): External declaration.
8163
0bbfdc25
GM
8164 * keyboard.c (gen_help_event): Add parameter SIZE.
8165 (kbd_buffer_events_waiting): Slightly rewritten.
8166 (clear_event): New function.
8167 (kbd_buffer_get_event): Use it, and clear the input_events of
8168 HELP_EVENTs.
8169 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8170 don't fill the newly created array with nils.
8171 (toplevel): Convert some old-style function forward declarations
8172 to prototypes.
8173
8174 * keyboard.h (gen_help_event): Change prototype.
8175
8176 * xterm.c (XTread_socket): Change calls to gen_help_event.
8177
8178 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8179
6917e6bb
GM
8180 * eval.c (Fmacroexpand): Doc fix.
8181
e5cd3d11
JR
81822000-08-20 Jason Rumney <jasonr@gnu.org>
8183
8184 * w32term.h (x_display_info_for_display): Remove as this function
8185 does not exist on W32.
8186
8187 * w32term.c (help_echo_window): New variable.
8188 (syms_of_w32term): staticpro it.
8189 (note_mode_line_highlight): Set it.
8190 (XTextExtents16): Removed as there is no equivalent on W32.
8191 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8192 the X way of doing this will not work for W32.
8193 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8194 (x_draw_image_foreground): Avoid drawing outside of the clip area
8195 when image doesn't have a mask.
8196 (note_mouse_highlight): Process overlays in the right order of
8197 priority. Set help_echo_window.
8198 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8199 because that's more visible for large images.
8200
8201 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8202 name to single_keymap_panes.
8203 (w32_menu_show): Set wv->title when dealing with titles.
8204 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8205
6e69ab8c
MB
82062000-08-21 Miles Bader <miles@gnu.org>
8207
8208 * minibuf.c (do_completion): Try again if we rewrite the input
8209 string, but no completion was done, so that any completion message
8210 will be correct.
8211
511bd4eb
GM
82122000-08-20 Gerd Moellmann <gerd@gnu.org>
8213
8214 * xfaces.c (lface_equal_p): Compare strings differently.
8215 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8216 (realize_tty_face): Use them.
8217 (syms_of_xfaces): Initialize new variables.
8218 (map_tty_color): New function, extracted from realize_tty_face.
8219 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8220 foreground or background color, store the new color name in the
8221 realized face; previous code trying to do this had no effect.
8222 (realize_tty_face): Use map_tty_color.
8223 (Fclear_face_cache): Set face_change_count and ensure thorough
8224 redisplay.
8225
1433385f
GM
82262000-08-19 Gerd Moellmann <gerd@gnu.org>
8227
511bd4eb
GM
8228 * undo.c (record_first_change, record_marker_adjustment): Don't
8229 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 8230
419ac0a2
KH
82312000-08-18 Kenichi Handa <handa@etl.go.jp>
8232
8233 * coding.c (decode_coding_string): Set members consumed,
8234 consumed_char, produced, produced_char of *coding correctly. If
8235 decode_coding doesn't consume any byte, don't try anymore.
8236 (encode_coding_string): Likewise.
8237
7eb9e30d
GM
82382000-08-18 Gerd Moellmann <gerd@gnu.org>
8239
511bd4eb
GM
8240 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8241 conditional have void type, for Standard C compilers.
7eb9e30d
GM
8242
8243 * xdisp.c (redisplay_internal): Compare windows for equality with
8244 EQ, instead of applying XWINDOW to something that might not
8245 be a window.
52283633 8246
dd34a735
KH
82472000-08-18 Kenichi Handa <handa@etl.go.jp>
8248
8249 * fontset.c (Finternal_char_font): Search only the selected frame
8250 for a window of the current buffer.
8251
385ff9e3
GM
82522000-08-18 Gerd Moellmann <gerd@gnu.org>
8253
511bd4eb 8254 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
8255 Lisp_Objects.
8256
385ff9e3
GM
8257 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8258 second half of a HELP_EVENT is found at the start of kbd_buffer.
8259
d6abb4c7
MB
82602000-08-18 Miles Bader <miles@gnu.org>
8261
4618074a
MB
8262 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8263
d6abb4c7
MB
8264 * editfns.c (save_restriction_save): Rewrite to use markers.
8265 (save_restriction_restore): Rewrite to understand new form of data
8266 saved by save_restriction_save.
8267 (Fsave_restriction): Remove cautionary note in doc-string.
8268
a7b28523
GM
82692000-08-17 Gerd Moellmann <gerd@gnu.org>
8270
8271 * fileio.c (build_annotations): Add a comment explaining the
8272 return value of format-annotate-function. Replace a spurious call
8273 to Flength with a CONSP test. Call format-annotate-function with
8274 a fifth arg specifying how many times the function is been called
8275 in a row, to let it choose temporary buffers appropriately.
8276
03c9ed77
DL
82772000-08-17 Dave Love <fx@gnu.org>
8278
8279 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8280 declare make_temp_name twice.
8281
52283633 8282 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
8283 (unreadpure): Give it an arg.
8284
8285 * unexalpha.c: Prototype fatal_unexec, mark_x,
8286 update_dynamic_symbols. Declare unexec as void.
8287
8288 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8289 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8290
8291 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 8292 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
8293
8294 * alloca.c: Use #error.
8295 [POINTER_TYPE]: Use it.
8296
8297 * eval.c (Fdefvar): Doc fix.
8298
8299 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8300 INITIALIZE_INTERVAL.
8301
8302 * buffer.h: Avoid DECLARE_INTERVALS.
8303
8304 * config.in: Add size_t.
8305
aae41d97
EZ
83062000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8307
8308 * w16select.c (set_clipboard_data): If there's not enough memory
8309 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8310 expects. In case of other failures, return 3.
8311 (system_error_msg): New error message.
8312 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8313 system_error_msg.
8314
65aa5e85
GM
83152000-08-16 Gerd Moellmann <gerd@gnu.org>
8316
8317 * term.c (write_glyphs): Also turn off inverse video after turning
8318 off other appearances in case TS_exit_attribute_mode is not equal
8319 to TS_end_standout_mode.
8320 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8321 with the same face.
8322 (turn_off_face): Reset standout_mode only if
8323 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8324 is equal to TS_end_standout_mode.
8325
ece23901
KH
83262000-08-16 Kenichi Handa <handa@etl.go.jp>
8327
9d7bcb2e
KH
8328 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8329 sequence at the end of the source block.
8330
ece23901
KH
8331 * ccl.c (Fccl_program_p): Docstring modified.
8332 (Fccl_execute): Likewise.
8333 (Fccl_execute_on_string): Likewise.
8334
5e30eaa2
EZ
83352000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8336
8337 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8338
290602fd
KH
83392000-08-16 Kenichi Handa <handa@etl.go.jp>
8340
8341 The following changes are mainly to fix bugs of
8342 encode/decode-coding-string failing if encoding/decoding return
8343 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8344 variable conversion_buffer.
8345
8346 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8347 decrement dst_end to avoid buffer overflow in the later call of
8348 string_as_multibyte
8349
8350 * coding.h (conversion_buffer_size, conversion_buffer)
8351 (get_conversion_buffer): Extern deleted.
8352
8353 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8354 (conversion_buffer, conversion_buffer_size): Variables deleted.
8355 (get_conversion_buffer): Function deleted.
8356 (struct conversion_buffer): New structure.
8357 (MAX_ALLOCA): New macro.
8358 (allocate_conversion_buffer): New macro.
8359 (extend_conversion_buffer, free_conversion_buffer): New functions.
8360 (ccl_coding_driver): Set coding->result.
8361 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8362 this is the last block of source.
8363 (encode_coding): Likewise. Handle the source block as the last
8364 one only when the whole source text is consumed.
8365 (decode_coding_string): Handle the case that the output buffer is
8366 too small to decode the whole source text. Use
8367 allocate_conversion_buffer, extend_conversion_buffer and
8368 free_conversion_buffer, not get_conversion_buffer.
8369 (encode_coding_string): Likewise.
8370 (init_coding): Function deleted.
52283633 8371 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
8372
8373 * emacs.c (main): Don't call init_coding.
8374
52283633 8375 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
8376
8377 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8378 (insert_glyphs): Likewise.
8379
8380 * w32console.c (write_glyphs): Use a locally declared
8381 conversion_buffer.
8382
b9f80d41
EZ
83832000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8384
8385 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8386 member of display_info is NULL.
8387
32dc52f7
GM
83882000-08-15 Gerd Moellmann <gerd@gnu.org>
8389
52283633 8390 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 8391
32dc52f7 8392 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 8393 appearances with capability `me'.
32dc52f7
GM
8394 (write_glyphs): Switch on inverse video before each face change.
8395
4eb22d33
DL
83962000-08-14 Dave Love <fx@gnu.org>
8397
8398 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8399 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8400 (lisp_free): Declare and make static.
8401
8402 * window.c: Fix embedded comment.
8403 (syms_of_window): Fix doc string.
8404
90cbf47e
GM
84052000-08-14 Gerd Moellmann <gerd@gnu.org>
8406
52283633 8407 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
8408 make sure to print `C-' before `M-', like in the manual.
8409
440fc135
GM
84102000-08-11 Gerd Moellmann <gerd@gnu.org>
8411
8412 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8413 since they aren't relocated anymore.
52283633 8414 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
8415
8416 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 8417 partially visible line which is smaller than the window's height.
440fc135 8418
6e264fad
KH
84192000-08-11 Kenichi Handa <handa@etl.go.jp>
8420
8421 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 8422 the multibyte form of eight-bit-control characters.
6e264fad
KH
8423 (Fccl_execute_on_string): Initialize ccl->multibyte.
8424
8425 * ccl.h (struct ccl_program): New member multibyte.
8426
8427 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8428
c371f69a
KH
84292000-08-11 Kenichi Handa <handa@etl.go.jp>
8430
8431 * regex.c (regex_compile) <normal_char>: Pay attention to
8432 multibyteness.
8433 (analyse_first) <exactn>: Setup fastmap correctly for
8434 eight-bit-control characters.
8435
84362000-08-11 Kenichi Handa <handa@etl.go.jp>
8437
52283633 8438 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
8439
8440 * keyboard.c (make_lispy_event): Handle the new event type
8441 multibyte_char_keystroke.
8442
8443 * xterm.c: Include coding.h.
8444 (XTread_socket): Work around a bug of XmbLookupString. If the
8445 input is from XIM, decode it according to the current locale. In
8446 that case, generate multibyte_char_keystroke events.
8447
b8ddbe71
KH
84482000-08-11 Kenichi Handa <handa@etl.go.jp>
8449
8450 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8451 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8452
47589c8c
GM
84532000-08-10 Gerd Moellmann <gerd@gnu.org>
8454
8455 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8456 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8457 (move_it_in_display_line_to): Record iterator's ascent and descent
8458 before producing glyphs, and restore them when we know the glyph
8459 doesn't fit on the line.
8460 (move_it_to): Restructured so that it's easier to debug. If
8461 moving to a vpos, and not moving to an x or character position,
8462 stop as soon as the specified vpos is reached; don't move further
8463 into that line because that might change the computed line height.
8464 (try_cursor_movement): New function, extracted from the cursor
8465 movement branch of redisplay_window. If ending on a partially
8466 visible line, don't try to scroll if the cursor line is taller
8467 than the window.
8468 (redisplay_window): Use try_cursor_movement.
8469
8470 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8471 because that function doesn't cope with variable-height lines.
8472
8473 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8474 box cursor because that's better visible for large images.
52283633 8475
c51bacd6
MB
84762000-08-10 Miles Bader <miles@gnu.org>
8477
8478 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8479
bea56df7
GM
84802000-08-10 Gerd Moellmann <gerd@gnu.org>
8481
8482 * xdisp.c (Vmessages_buffer_name): New variable.
8483 (message_dolog): Use it.
8484 (syms_of_xdisp): Initialize it.
8485
99cd7364
EZ
84862000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8487
52283633 8488 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
8489 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8490 redundant now that keyboard.h is included.
8491
7d093d56
EZ
84922000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8493
8494 * keyboard.c (kbd_buffer_events_waiting): New function.
8495
8496 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8497
8498 * msdos.c: Include keyboard.h.
8499 (XMenuActivate): Empty no_event events from the event buffer. If
8500 no events are left after that, call clear_input_pending.
8501 (mouse_clear_clicks): New function, code moved from mouse_init.
8502 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8503 mouse driver to ``forget'' any past clicks.
8504
8505 * Makefile.in (msdos.o): Depend on keyboard.h.
8506
41e757a6
GM
85072000-08-09 Gerd Moellmann <gerd@gnu.org>
8508
8e7bd231
GM
8509 * lisp.h (input_pending): External declaration.
8510
8511 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 8512
8e7bd231
GM
8513 * xdisp.c (echo_area_display): Display thoroughly if input is
8514 pending. Bind redisplay-dont-pause to t during the redisplay.
8515 in case input is pending.
8516
8517 * dispnew.c (Qredisplay_dont_pause): New variable.
8518 (syms_of_display): Initialize and staticpro it.
8519 (update_frame_1): Don't interrupt the display for pending input if
8520 redisplay_dont_pause is set.
52283633 8521
43028b7e
GM
8522 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8523
41e757a6
GM
8524 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8525
2f2174fa
KH
85262000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8527
8528 * callproc.c (Fcall_process): Terminate the unwind-protect around
8529 the post-read-conversion of coding system.
8530
0a6fd67e
MB
8531 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8532 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8533 * buffer.h (overlays_at): Update prototype.
8534 * xdisp.c (next_overlay_change): Update call to overlays_at.
8535 * xfaces.c (face_at_buffer_position): Likewise.
8536 * textprop.c (Fget_char_property): Likewise.
8537 * xterm.c (note_mouse_highlight): Likewise.
8538
0c80756e
MB
8539 * minibuf.c (do_completion): Don't consider a simple change of
8540 case as `completion'.
8541
975f250a
KR
85422000-08-08 Ken Raeburn <raeburn@gnu.org>
8543
52283633 8544 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
8545 * undo.c (record_delete): Make sure last_point_position_buffer is
8546 a buffer before comparing pointers.
8547
8548 * coding.h (decode_coding_string): Declare.
8549
8550 * intervals.h (Fprevious_single_char_property_change): Declare.
8551
8552 * textprop.c (Fprevious_single_char_property_change): Don't do
8553 arithmetic directly on lisp objects.
8554
52283633 8555 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
8556
8557 * keyboard.h (menu_item_eval_property): Declare.
8558
8559 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8560 reuse as buffer name, instead of recreating (and discarding) every
8561 time a message is logged.
8562 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
8563 (current_message_1, truncate_message_1, set_message_1)
8564 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8565 (current_message, truncate_echo_area, display_echo_area)
8566 (resize_echo_area_axactly): Changed calls.
b347b3fd 8567
975f250a 8568 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 8569 Lisp object.
975f250a 8570 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 8571 must be an integer, not a Lisp object.
975f250a 8572
46dc9912
KH
85732000-08-08 Kenichi Handa <handa@etl.go.jp>
8574
8575 * charset.c (Fchar_width): Doc fix.
8576
9f6d1a6c
GM
85772000-08-08 Gerd Moellmann <gerd@gnu.org>
8578
8579 * charset.c (Fstring_width): Doc fix.
8580
ff3d9573
GM
85812000-08-07 Gerd Moellmann <gerd@gnu.org>
8582
41e757a6 8583 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
8584 line, clear ascent and descent members of the iterator structure;
8585 the height of the continued line does not affect the height of the
8586 continuation line.
8587 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8588 line taller than the window.
8589 (redisplay_window) <forced window start>: Handle case that the
8590 middle of the window is not found in any row.
8591 (dump_glyph_row): Show more information.
8592 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8593 first text line in a glyph matrix.
8594
8595 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8596 of the clip area when image doesn't have a mask.
8597
70fc58b3
GM
8598 * fns.c (sweep_weak_table): Fix survival conditions for
8599 key-or-value and key-and-value weakness.
8600
8601 * .gdbinit (xhashtable): New command.
8602
ac0e96ee
GM
8603 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8604 tables out of the list of all weak hash tables.
8605
ff3d9573
GM
8606 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8607 a new buffer is created, make sure echo_area_buffer[] references
8608 the new buffer.
8609
e0d8827b
EZ
86102000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8611
8612 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8613 the doc string.
8614
c6f35378
KH
86152000-08-07 Kenichi Handa <handa@etl.go.jp>
8616
8617 * syntax.c (skip_chars): Fix previous change. Make the handling
8618 of unibyte string consistent with that of regex search.
8619
1fd4c450
GM
86202000-08-05 Gerd Moellmann <gerd@gnu.org>
8621
e49aa397
GM
8622 * xmenu.c (popup_get_selection): Use xfree instead of free.
8623
8624 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8625
8626 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8627
8628 * callproc.c (child_setup): Use xfree instead of free.
8629
8630 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8631 instead of malloc.
8632 (run_mac_command, closedir): Use `xfree' instead of `free'.
8633
8634 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8635
8636 * eval.c (error): Use xfree instead of free.
8637
1fd4c450
GM
8638 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8639
8640 * fns.c: Replace `illegal' with `invalid'.
e49aa397 8641 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 8642
82d497fc
KH
86432000-08-05 Kenichi Handa <handa@etl.go.jp>
8644
8645 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8646 conversion.
8647
59f953a2
NF
86482000-08-04 Noah Friedman <friedman@splode.com>
8649
8650 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8651 docstring.
8652
688351f2
GM
86532000-08-04 Gerd Moellmann <gerd@gnu.org>
8654
8655 * syntax.c (skip_chars): Fix typo in error message.
8656
2dad51cc
AS
86572000-08-04 Andreas Schwab <schwab@suse.de>
8658
8659 * m/ia64.h: Moved from s/ia64.h.
8660
99bb2c60
KH
86612000-08-04 Kenichi Handa <handa@etl.go.jp>
8662
082a1df2
KH
8663 * process.c (read_process_output): Big simplification. Handle
8664 composition and post-read-conversion of coding system correctly.
8665 (send_process): Handle composition correctly.
8666
8667 * callproc.c (Fcall_process): Handle post-read-conversion of
8668 coding system if any.
8669
99bb2c60
KH
8670 * coding.c (decode_coding_iso2022): More strict check for handling
8671 single shifting.
082a1df2
KH
8672 (coding_restore_composition): Pay attention to the case that
8673 cmp_data is not set properly (because of invalid code in the
8674 source text).
8675 (run_pre_post_conversion_on_str): Include text properties in the
8676 resulting string.
8677 (decode_coding_string): Set members of coding correctly.
99bb2c60 8678
f4988be7
GM
86792000-08-03 Gerd Moellmann <gerd@gnu.org>
8680
8681 * s/ia64.h: New file.
8682
8683 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8684 Use NULL instead of 0 at the end of variable argument list of
8685 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8686 sizeof (int) < sizeof (void *).
8687
8688 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8689 of variable argument lists of XtVaGetValues and XtVaSetValues.
8690
8691 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8692 variable argument lists of XtVaGetValues and XtVaSetValues.
8693
ead53494
GM
86942000-08-02 Gerd Moellmann <gerd@gnu.org>
8695
8696 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8697 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8698
8699 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8700 prototype.
8701
8702 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8703 in call to Fsingle_key_description.
8704
8705 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8706 Callers changed.
8707
87082000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8709
8710 * window.c (display_buffer_reuse_frames): New variable.
8711 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8712 frames displaying BUFFER.
52283633 8713 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 8714
10b0f752
MB
87152000-08-01 Miles Bader <miles@gnu.org>
8716
8717 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8718 when to constrain NEW_POS (they were pretty screwed up before).
8719
16425c4a
EZ
87202000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8721
8722 * msdos.c (run_msdos_command): Save and restore the master
8723 environment, for the case that child_setup signals an error.
8724 When mirroring slashes in DOS shell commands, don't fail when
8725 argv[2] has embedded blanks.
da288c14
EZ
8726 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8727 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8728 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
8729
8730 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8731 using alloca; free it after run_msdos_command returns.
8732
27f73852
DL
87332000-07-27 Dave Love <fx@gnu.org>
8734
52283633
SM
8735 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8736 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
8737
8738 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8739
c0261b5e
EZ
87402000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8741
8742 * editfns.c (lisp_time_argument): Fix last change.
8743
b548072f
GM
87442000-07-27 Gerd Moellmann <gerd@gnu.org>
8745
3ab82477
GM
8746 * fns.c (Fdelete): Make it work on vectors and strings in addition
8747 to lists.
8748
b548072f
GM
8749 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8750 (syms_of_fns): Initialize new variables.
52283633 8751 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
8752 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8753 weakness, with t meaning the same as `key-and-value'.
8754
91ae8751
KH
87552000-07-27 Kenichi Handa <handa@etl.go.jp>
8756
8757 * coding.h (struct coding_system): Member safe_charset deleted.
8758
8759 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
8760 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8761 New variables.
91ae8751
KH
8762 (coding_safe_chars): New function.
8763 (CODING_SAFE_CHAR_P): New macro.
8764 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 8765 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
8766 (detect_coding_iso2022): New local variable safe_chars.
8767 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8768 safe_charsets member of the coding system.
8769 (decode_coding_iso2022): New local variable safe_chars.
8770 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8771 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8772 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8773 (ENCODE_UNSAFE_CHARACTER): New macro.
8774 (encode_coding_iso2022): New local variable safe_chars. Check
8775 unsafe chars.
8776 (setup_coding_system): Delete the code to initialize
8777 coding->safe_charses
8778 (intersection, find_safe_codings): New functions.
8779 (Ffind_coding_systems_region_internal): New function.
8780 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8781 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8782 variable and initialize it.
8783
8784 * fns.c (char_table_ref_and_index): New function.
8785
8786 * lisp.h (char_table_ref_and_index): Add prototype.
8787
34a7a267
SS
87882000-07-26 Sam Steingold <sds@gnu.org>
8789
8790 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 8791 (Ffloat_time): New built-in Lisp function.
34a7a267 8792
a95cb10a
GM
87932000-07-26 Gerd Moellmann <gerd@gnu.org>
8794
3353ef5a
GM
8795 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8796 for the character code.
8797
8798 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8799 GNU/Linux.
8800
a95cb10a
GM
8801 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8802 if called for a popup menu.
8803 (xmenu_show): Store help string in widget values.
8804
b4a12321
DL
88052000-07-26 Dave Love <fx@gnu.org>
8806
8807 * syswait.h: Move some definitions.
8808 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8809 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8810 perspicuous definitions.
8811 (WTERMSIG): Fix bit pattern used.
8812
13f5ad37
KH
88132000-07-26 Kenichi Handa <handa@etl.go.jp>
8814
8815 * print.c (print_object): If vector printing is truncated, print
8816 "..." to indicate it as well as the case of list printing.
8817
070fe99c
GM
88182000-07-25 Gerd Moellmann <gerd@gnu.org>
8819
969065c3
GM
8820 * xdisp.c (next_element_from_display_vector): Improve comments.
8821
8822 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8823 for the character code, and the rest for the face id as in 20.x.
8824 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8825
8826 * window.c (window_display_table): Cleaned up.
8827
070fe99c
GM
8828 * syntax.c (Fforward_word): Add last arg nil in call of
8829 Fconstrain_to_field.
8830
bad77ef7
EZ
88312000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8832
969065c3 8833 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
8834 identical but for the letter-case, don't call
8835 barf_or_query_if_file_exists.
bad77ef7 8836
c28da489
MB
88372000-07-25 Miles Bader <miles@gnu.org>
8838
8839 * editfns.c (find_field): Honor special `boundary' fields.
8840 (Qboundary): New variables.
8841 (syms_of_editfns): Initialize Qboundary.
8842 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8843 Use scan_buffer instead of find_before_next_newline, because it
8844 allows us to detect the boundary case where there's a newline at
8845 the search limit.
8846 * lisp.h (Fconstrain_to_field): Update external declaration.
8847
e3c31fd5
GM
88482000-07-24 Gerd Moellmann <gerd@gnu.org>
8849
8850 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8851 if that is nil.
c28da489 8852
c66c29a2
DL
88532000-07-24 Dave Love <fx@gnu.org>
8854
8855 * s/sunos4-0.h, s/sol2.h:
8856 (LIBS_TERMCAP): Move from m/sparc.h.
8857
8858 * m/sparc.h (TERMINFO): Moved to system files (probably only
8859 relevant for sunos4 judging by its vintage).
8860 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8861 __arch64__.
8862
fbe0a958
EZ
88632000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8864
8865 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8866 name to single_keymap_panes.
8867
7d88e5c9
AS
88682000-07-24 Andreas Schwab <schwab@suse.de>
8869
8870 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8871
e024b101
GM
88722000-07-24 Gerd Moellmann <gerd@gnu.org>
8873
8874 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8875 parameters instead of using int parameters. Expect FN to accept
8876 EMACS_INT parameters.
8877 (display_echo_area, resize_echo_area_axactly, current_message)
8878 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8879 with new argument list.
8880 (resize_mini_window_1): New callback function.
8881 (current_message_1, truncate_message_1, set_message_1): Change
52283633 8882 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 8883
25c1a9ce
KH
88842000-07-24 Kenichi Handa <handa@etl.go.jp>
8885
8886 * fontset.c (fontset_ref): Remove INLINE declaration.
8887 (fontset_ref_via_base): Likewise.
8888 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8889 to downcase.
8890
7f987ac0
EZ
88912000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8892
8893 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8894 correct order of priority. If help echo was found in an overlay,
8895 use that overlay as the object in which the help echo was found.
8896
e2db3069
MB
88972000-07-22 Miles Bader <miles@gnu.org>
8898
8899 * textprop.c (Fprevious_single_char_property_change): The initial
8900 property value should be from the position preceding POSITION, not
8901 following it.
8902
5e3203e4
EZ
89032000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8904
8905 * coding.c (syms_of_coding): Doc fix for
8906 inhibit-iso-escape-detection.
8907
62145073
GM
89082000-07-21 Gerd Moellmann <gerd@gnu.org>
8909
c20aeb83
GM
8910 * xterm.c (note_mouse_highlight): Process overlays in the right
8911 order of priority.
34a7a267 8912
743934db
GM
8913 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8914
8915 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 8916 overlay, use that overlay as the object in which the help was found.
743934db 8917
d1dc7e43 8918 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 8919
62145073
GM
8920 * window.c (foreach_window): Instead of a fake variable argument
8921 list, take one USER_DATA argument.
8922 (foreach_window_1): Likewise, and call callback functions with two
8923 args, the window and USER_DATA.
8924 (struct check_window_data): New struct.
8925 (check_window_containing): Use it.
8926 (window_from_coordinates): Set up a struct check_window_data for
8927 foreach_window.
8928 (add_window_to_list, freeze_window_start): Change parameters
8929 according to new calling convention.
8930
8931 * window.h (foreach_window): Change prototype.
8932
8933 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8934
89352000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8936
8937 * xmenu.c (menu_help_callback): Call show_help_echo with
8938 additional arguments OBJECT and POS.
8939
11270583
KH
89402000-07-21 Kenichi Handa <handa@etl.go.jp>
8941
07b14857
KH
8942 * data.c (Faset): Allow storing any multibyte character in a
8943 string. Convert unibyte string to multibyte if necessary.
8944
11270583
KH
8945 * xfns.c (x_encode_text): New function.
8946 (x_set_name): Use x_encode_text.
8947 (x_set_title): Likewise.
8948
8949 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8950
8951 * xterm.h (x_encode_text): Add prototype.
8952
bc75b4fd
DL
89532000-07-20 Dave Love <fx@gnu.org>
8954
8955 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8956 xfree, not free.
8957
48c14970
EZ
89582000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8959
8960 * msdos.c (help_echo_window): New variable.
8961 (syms_of_msdos): Initialize and staticpro it.
8962 (IT_note_mode_line_highlight): Set help_echo_window.
8963 (IT_note_mouse_highlight): Ditto.
8964 (dos_rawgetc): Store help_echo_window in the second event produced
8965 for HELP_EVENTs.
8966
8967 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8968 Record the object that generated the help echo and the position of
8969 that object in help_echo_object and help_echo_pos. Record that
8970 some glyphs in a row are displayed in mouse-face.
8971 (IT_update_begin): Don't clear mouse highlight unless one of the
8972 enabled glyph rows is marked as being displayed in mouse-face.
8973 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8974 and position recorded in help_echo_object and help_echo_pos to the
8975 event queue.
8976 (IT_menu_display): Accept a new argument PN: the pane number of
8977 the current menu pane. Record the pane number and the item
8978 number of the item which has associated help string.
8979 (XMenuActivate): Update the prototype for help_callback in
8980 function declaration. Call IT_menu_display with the current menu
8981 pane number as an additional argument. Call help_callback with
8982 two additional arguments: the pane number and the item number of
8983 the menu item associated with the help text.
8984 (help_echo_object, help_echo_pos): New variables.
8985 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8986
8987 * msdos.h (XMenuActivate): Update prototype.
8988
4279296d
GM
89892000-07-19 Gerd Moellmann <gerd@gnu.org>
8990
47db06aa
GM
8991 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8992 Add some more prototypes.
8993
8994 * xterm.c, xterm.h: Add some more prototypes.
8995
8996 * lisp.h (Fnext_single_char_property_change): Add prototype.
8997
8998 * dispnew.c (direct_output_for_insert): Remove confusing
8999 outer local variable mouse_face_overwritten_p.
9000 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9001
4279296d
GM
9002 * alloc.c (allocate_string_data): Don't copy old string contents.
9003
670acd62
KH
90042000-07-19 Kenichi Handa <handa@etl.go.jp>
9005
9006 * coding.c (code_convert_region): Delete text properties before
9007 shrinking the conversion region.
9008
7cea38bc
GM
90092000-07-18 Gerd Moellmann <gerd@gnu.org>
9010
dc1cac59
GM
9011 * dispnew.c (update_text_area): Write the whole row if it
9012 has mouse-face in it.
9013
85a8aca9
GM
9014 * xfaces.c (face-alternative-font-family-alist): Remove
9015 DEFVAR_LISP; staticpro instead.
9016
34a7a267 9017 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
9018 new arguments.
9019
9020 * keyboard.c (show_help_echo): Add parameter WINDOW.
9021 (read_char): Call show_help_echo with window extracted from Lisp
9022 help event.
9023 (gen_help_event): Add parameter WINDOW.
9024
9025 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9026
9027 * xterm.c (help_echo_window): New variable.
52283633 9028 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
9029 (XTread_socket): Pass help_echo_window to gen_help_event.
9030 (syms_of_xterm): Initialize and staticpro help_echo_window.
9031
f8276b77
DL
90322000-07-18 Dave Love <fx@gnu.org>
9033
52283633 9034 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 9035
088831a6
GM
90362000-07-18 Gerd Moellmann <gerd@gnu.org>
9037
3d6cd763
GM
9038 * alloc.c (allocate_string_data): If string had already data
9039 assigned, copy old contents to new string data.
9040
9041 * coding.c (syms_of_coding): Fix typo in spelling of variable
9042 `inhibit-iso-escape-detection'.
9043
088831a6
GM
9044 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9045
9046 * Makefile.in: Add dependencies on dispextern.h.
9047 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9048 `free'; both can conflict with system header files.
9049
bc8a8d55
KH
90502000-07-18 Kenichi Handa <handa@etl.go.jp>
9051
9052 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9053 undefined.
9054
069f5950
DL
90552000-07-18 Dave Love <fx@gnu.org>
9056
9057 * window.c (Fwindow_list): Declare arg `window'.
9058
aa96c820
KH
90592000-07-18 Kenichi Handa <handa@etl.go.jp>
9060
9061 * coding.c (setup_coding_system): Don't override the explicitly
9062 specified designations.
9063
06be8d32
MB
90642000-07-15 Miles Bader <miles@gnu.org>
9065
9066 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9067 from `text_property_eq' and `text_property_stickiness', respectively.
9068 (find_field, Fconstrain_to_field, char_property_eq)
9069 (char_property_stickiness): Changed to call char-property functions
9070 instead of text-property-only ones.
9071
9072 * textprop.c (Fnext_single_char_property_change): Made a subr (was
9073 `next_single_char_property_change'). Do more error checking, and
9074 cleanup limit behavior.
9075 (Fprevious_single_char_property_change): New function.
9076 (syms_of_textprop): Initialize new subrs.
9077
9078 * xdisp.c (display_prop_end, invisible_text_between_p):
9079 Call Fnext_single_char_property_change instead of
9080 next_single_char_property_change.
9081
3fddcdc3
JR
90822000-07-15 Jason Rumney <jasonr@gnu.org>
9083
9084 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
9085 after menu is finished with.
9086 (add_menu_item): Only consider wv->title as a menu title.
9087 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
9088
9089 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
9090 null title.
9091 (FONT_REGEXP): Remove unused macro, and its sub-components.
9092 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
9093
9094 * w32term.c (help_echo_object, help_echo_pos): New variables.
9095 (note_mode_line_highlight): Store additional information about the
9096 help-echo in help_echo_object and help_echo_pos. Check both
9097 `local-map' and `keymap' properties for changing the cursor
9098 (note_mouse_highlight): Store additional information about the
9099 help-echo in help_echo_object and help_echo_pos.
9100 (note_tool_bar_highlight): Set help_echo_object to nil and
9101 help_echo_pos to -1.
9102 (w32_read_socket): Use gen_help_event instead of filling
9103 input_events manually.
9104 (syms_of_w32term): Staticpro help_echo_object.
9105 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 9106 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
9107 (x_clear_mouse_face): New function.
9108 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
9109 (x_update_window_begin): No need to turn off the mouse
9110 highlight here.
9111 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 9112 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
9113 (x_fill_stretch_glyph_string): Consume runs of stretch
9114 glyphs instead of a single one.
9115 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9116 with new argument list.
9117 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9118 (x_append_glyph, x_append_composite_glyph)
9119 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9120 changes in struct glyph starting 1999-12-27. See comments for
9121 xterm.c on 2000-07-05.
9122
178c5d9c
SS
91232000-07-14 Sam Steingold <sds@gnu.org>
9124
9125 * xfaces.c (realize_x_face): Fix the last patch:
9126 check `default_face' before dereferencing.
9127
6fe533f6
DL
91282000-07-14 Dave Love <fx@gnu.org>
9129
069f5950 9130 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 9131
dd7b81cf
KH
91322000-07-14 Kenichi Handa <handa@etl.go.jp>
9133
0693904a 9134 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 9135 default_face's fontset, not using the default fontset.
0693904a 9136
dd7b81cf
KH
9137 * coding.c (inhibit_iso_escape_detection): New variable.
9138 (syms_of_coding): Make it a Lisp variable.
9139 (detect_coding_iso2022): If inhibit_iso_escape_detection is
9140 nonzero, ignore ISO2022's escape sequence.
9141
d5aa31d8
GM
91422000-07-14 Gerd Moellmann <gerd@gnu.org>
9143
e5acf0ca
GM
9144 * alloca.c (malloc) [emacs]: Define as xmalloc.
9145
bd23a692
GM
9146 * xfns.c (Fx_show_tip): If frame parameters contain a position,
9147 use that instead of the mouse position. Add parameters DX and DY.
9148
9149 * dispextern.h (Fx_show_tip): Adjust number of parameters
9150 in prototype.
9151
9662da0b
GM
9152 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
9153 if HELP is a function, call it with OBJECT and POS as parameters
9154 to get the help to display.
9155 (gen_help_event, kbd_buffer_store_help_event): New functions.
9156 (kbd_buffer_get_event): Construct the Lisp help-event differently.
9157 (read_char): Call show_help_echo with new parameters.
9158
178c5d9c 9159 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
9160 Add prototypes.
9161
9162 * xterm.c (help_echo_object, help_echo_pos): New variables.
9163 (note_mode_line_highlight): Store additional information about the
9164 help-echo in help_echo_object and help_echo_pos. Check both
9165 `local-map' and `keymap' properties for changing the cursor
9166 (note_mouse_highlight): Store additional information about the
9167 help-echo in help_echo_object and help_echo_pos.
9168 (note_tool_bar_highlight): Set help_echo_object to nil and
9169 help_echo_pos to -1.
9170 (XTread_socket): Use gen_help_event instead of filling
9171 input_events manually.
9172 (syms_of_xterm): Staticpro help_echo_object.
9173
9174 * xmenu.c (menu_highlight_callback): Use
9175 kbd_buffer_store_help_event instead of setting up and input_event
9176 structure manually.
9177
9178 * xdisp.c (eval_form): GCPRO argument sexpr.
9179 (call_function): New function.
9180 (handle_single_display_prop): Use call_function and FUNCTIONP
9181 instead of checking whether if font_height is a symbol and
9182 using eval_form.
9183
9184 * eval.c (internal_condition_case_2): New function.
9185
9186 * lisp.h (FUNCTIONP): New macro.
9187 (internal_condition_case_2, call_function): Add prototypes.
9188
d5aa31d8
GM
9189 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9190 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9191 Always set `arg' member of input_events.
9192 (construct_menu_click): Unused function removed.
9193
9194 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9195
9196 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9197 (construct_drag_n_drop, x_scroll_bar_handle_click)
9198 (w32_read_socket): Always set `arg' member of input_events.
9199
9200 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9201
9202 * lisp.h (eval_form): Add prototype.
9203
9204 * xdisp.c (eval_form): Make it externally visible.
9205
0f1a9b23
GM
92062000-07-13 Gerd Moellmann <gerd@gnu.org>
9207
9208 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9209 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9210 consing. For prefix events, store the frame in the `arg' slot of
9211 the event, otherwise store the key there.
9212 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 9213 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
9214
9215 * xmenu.c (menu_highlight_callback): Store help string in the
9216 `arg' member of the input event; don't cons.
9217 (menubar_selection_callback): Use the `arg' slot of input events
9218 to queue additional information, instead of consing.
9219
9220 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9221
9222 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9223 TOOL_BAR_EVENTs.
9224 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9225
9226 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9227 input events to queue additional information, instead of consing.
9228
9229 * keyboard.c (kbd_buffer_gcpro): Renamed from
9230 kbd_buffer_frame_or_window. Now used for all Lisp objects
9231 referenced from the input queue.
9232 (kbd_buffer_store_event): Always use structure assignment for
9233 copying input events. Record all Lisp objects referenced from
9234 events in kbd_buffer_gcpro.
9235 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9236 differently from input events. Test for prefix menu_bar_events
9237 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9238 event in kbd_buffer_gcpro to nil.
9239 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9240 frame_or_window is equal to its arg member as prefix events.
9241 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9242 used by an input event to nil.
9243 (init_keyboard): Use two times the size of the input queue
9244 for kbd_buffer_gcpro.
9245 (syms_of_keyboard): Likewise.
9246
52283633
SM
9247 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9248 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
9249
9250 * termhooks.h (struct input_event): Add member `arg'.
9251 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9252 (USER_SIGNAL_EVENT): Renamed from user_signal.
9253
9254 * xfaces.c (ASET): Remove definition.
9255
9256 * lisp.h (AREF, ASET, ASIZE): New macros.
9257
9258 * fontset.c (AREF, ASIZE): Remove definitions.
9259
9260 * fns.c (AREF): Remove definition.
178c5d9c 9261
0f1a9b23
GM
9262 * composite.c (AREF): Remove definition.
9263
712eaef2
GM
92642000-07-12 Gerd Moellmann <gerd@gnu.org>
9265
d8ee7803
GM
9266 * dispnew.c (redraw_overlapped_rows): Add missing local.
9267 (scrolling_window): Remove debug code.
9268
712eaef2
GM
9269 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9270 Before scrolling, turn off a mouse-highlight in the window
9271 being scrolled.
9272
9273 * xterm.c (x_update_window_end): Add parameter
9274 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9275 redisplay in XTframe_up_to_date.
9276 (x_clear_mouse_face): New function.
9277 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9278
9279 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9280 current glyph row.
9281 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9282 it when any row is written to that contains glyphs highlighted in
9283 mouse-face.
9284 (update_window): Call the window update end hook with new
9285 parameter MOUSE_FACE_OVERWRITTEN_P.
9286 (direct_output_for_insert): Give up if row contains mouse-face.
9287
9288 * dispextern.h (struct redisplay_interface): Add parameter
9289 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9290 (clear_mouse_face): New function pointer member.
9291
02010917
SM
92922000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9293
9294 * syntax.c (back_comment): Use one switch rather than a few `if's.
9295 Obey open_paren_in_column_0_is_defun_start.
9296 When reverting to the `slow' method, try to nicely handle the case
9297 of nested comments by checking that the comment-starter we found
9298 does indeed match the comment-ender.
9299 (scan_sexps_forward, scan_sexps_forward):
9300 Ignore excessive opening parenthesis rather than throwing an error.
9301
d76c03ea
GM
93022000-07-11 Gerd Moellmann <gerd@gnu.org>
9303
9304 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9305 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9306
9307 * dispnew.c (direct_output_forward_char): Give up if currently
9308 displaying a message instead of the minibuffer contents.
9309
9310 * xterm.c (x_update_window_begin): No need to turn off the mouse
9311 highlight here.
9312 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 9313 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
9314
9315 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9316 compare the mouse_face_p flags of both rows.
9317
9318 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9319
d55ead18
EZ
93202000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9321
9322 * keyboard.c (show_help_echo): Accept additional parameter
9323 ok_to_overwrite_keystroke_echo.
9324 (read_char): Call show_help_echo with a zero
9325 ok_to_overwrite_keystroke_echo argument.
52283633 9326 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
9327 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9328 ok_to_overwrite_keystroke_echo argument.
9329 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9330 non-zero ok_to_overwrite_keystroke_echo argument.
9331
df75b1a3
GM
93322000-07-10 Gerd Moellmann <gerd@gnu.org>
9333
4b92c49a
GM
9334 * xdisp.c (try_window_id): If changes are all below what is
9335 displayed in the window, and point is in the window, we still
9336 might have to find point on the display.
9337
9338 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9339 glyphs instead of a single one.
9340 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9341 with new argument list.
9342 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9343
df75b1a3
GM
9344 * keymap.c (get_keymap_1): Add comment that this function can GC.
9345 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9346 comment that functions can GC.
9347 (Fset_keymap_parent): GCPRO arg KEYMAP.
9348
4314cf3e
EZ
93492000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9350
9351 * msdos.c (XMenuActivate): After exiting the menu, restore the
9352 echo area message and erase it.
9353
ab49ce15
KH
93542000-07-10 Kenichi Handa <handa@etl.go.jp>
9355
9356 * fontset.c (Ffontset_info): Make the return value more compatible
9357 with that of Emacs 20.
9358
090a072f
GM
93592000-07-07 Gerd Moellmann <gerd@gnu.org>
9360
9361 * eval.c (Fsignal): Handle case that backtrace_list is null.
9362
f92de4a6
KH
93632000-07-07 Kenichi Handa <handa@etl.go.jp>
9364
9365 * ccl.c (Fccl_execute): Typo fixed.
9366
dd8888a1
GM
93672000-07-06 Gerd Moellmann <gerd@gnu.org>
9368
e5c81191 9369 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 9370
dd8888a1
GM
9371 * window.c (Fwindow_list): Reverse list at the end.
9372 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9373 means allow windows on OWINDOW's frame, only.
9374 (window_loop): Simplified; use Fwindow_list.
9375
9376 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9377
485266d0
GM
93782000-07-05 Gerd Moellmann <gerd@gnu.org>
9379
9380 * xterm.c (XTread_socket): Increment handling_signal at the start,
9381 decrement it at the end.
9382
9383 * eval.c (handling_signal): New variable.
9384 (Fsignal): Abort if handling_signal is non-zero.
9385
9386 * lisp.h (handling_signal): External declaration.
178c5d9c 9387
485266d0
GM
9388 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9389
80fcd514
KR
93902000-07-05 Ken Raeburn <raeburn@gnu.org>
9391
9392 Sound support for NetBSD through "Linux emulation" support:
9393 * config.in (HAVE_SOUNDCARD_H): Undef.
9394 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9395 * Makefile.in (LIBSOUND): New variable.
9396 (LIBES): Include it.
52283633
SM
9397 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9398 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
9399 (vox_open): Use DEFAULT_SOUND_DEVICE.
9400 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9401
d5c5cddd
GM
94022000-07-05 Gerd Moellmann <gerd@gnu.org>
9403
9404 * print.c (print_error_message): If Vsignaling_function is set,
9405 show it in *Messages*.
9406
9407 * lisp.h (Vsignaling_function): External declaration.
9408
9409 * eval.c (Vsignaling_function): New variable.
9410 (Fsignal): Compute it.
9411 (syms_of_eval): Staticpro it.
9412
65171e3a
DL
94132000-07-05 Dave Love <fx@gnu.org>
9414
9415 * syswait.h: Use the autoconf recommended approach. Old code
9416 #if'd out in case we need to revert.
9417
178c5d9c 9418 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 9419
e2c46326
AI
94202000-07-05 Andrew Innes <andrewi@gnu.org>
9421
9422 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9423 when non-NULL instead of __morecore, to take account of buffer
9424 memory. This also solves a problem with spurious memory warnings
9425 on Windows.
9426
9427 * ralloc.c: Make real_morecore non-static.
9428
9429 * eval.c (internal_condition_case): Comment out abort if
9430 interrupt_input_blocked is not zero.
9431
9432 * makefile.nt: Add support for `bootstrap' and related targets.
9433 Include minimal debug info in emacs.exe in release build.
9434 Remove all dependencies on lisp.h, and fixup some others.
9435
9436 * w32.c (init_environment): Install code from 20.7 for providing
9437 default values for environment variables, based on the
9438 executable's own location.
52283633 9439 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
9440 (sys_socket): Install socket inheritance bug fix from 20.7.
9441
9442 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9443 here via blockinput.h).
9444
a027a91b
SM
94452000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9446
e4b31601
SM
9447 * w32menu.c (w32_menu_display_help):
9448 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
9449
9450 * keyboard.h (show_help_echo): Declare.
9451
9452 * keyboard.c (show_help_echo): New function, extracted from read_char.
9453 Feval its `msg' argument if it's a cons cell.
9454 (read_char): Use it.
4cf8d9d5 9455 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 9456
178c5d9c 9457 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 9458 (note_tool_bar_highlight, XTread_socket):
178c5d9c 9459 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
9460 (dos_rawgetc):
9461 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9462 (note_tool_bar_highlight, w32_read_socket):
9463 Do not gratuitously ignore non-string `help-echo' properties.
9464
88d75730
GM
94652000-07-05 Gerd Moellmann <gerd@gnu.org>
9466
969f7e79
GM
9467 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9468
71201b00
GM
9469 * window.c (delete_all_subwindows): Reset Vwindow_list.
9470
88d75730
GM
9471 * xterm.c (x_append_glyph, x_append_composite_glyph)
9472 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9473 changes in struct glyph starting 1999-12-27. Some bit-fields of
9474 struct glyph were not set, which made glyphs unequal when compared
9475 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9476 effects were the result. This also depended on the contents of
9477 memory returned by xmalloc. If flickering happens again, activate
9478 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 9479 gone with that, chances are that it is caused by something similar.
88d75730
GM
9480
9481 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 9482
88d75730
GM
9483 * dispextern.h: Add some comments.
9484
9485 * window.c (add_window_to_list): Add parameter LIST.
9486 (window_list): Order list so that, for each frame, windows are
9487 in canonical order, and so that frames appear in the list in
9488 the order given by Vframe_list.
9489 (next_window): Reverse the handling of NEXT_P.
9490
53654733
GM
94912000-07-04 Gerd Moellmann <gerd@gnu.org>
9492
87efd256
GM
9493 * window.c (Vwindow_list): New variable.
9494 (make_window, delete_window): Set Vwindow_list to nil.
9495 (check_window_containing): New function.
9496 (window_from_coordinates): Rewritten.
9497 (add_window_to_list, window_list, candidate_window_p)
9498 (decode_next_window_args, next_window): New functions.
52283633 9499 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
9500 (Fwindow_list): New function.
9501 (Fother_window): Cleaned up.
9502 (foreach_window): Add a longer "variable argument list". Let
9503 callback function return 0 to indicate that cycling over windows
9504 should stop.
9505 (foreach_window_1): Likewise.
9506 (freeze_window_start): Return int.
9507 (init_window): New function.
9508 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9509
9510 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9511 input_event with bzero.
9512 (main): Call init_window.
9513
53654733
GM
9514 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9515 a menu filter.
9516
4a8c194f
KH
95172000-07-04 Kenichi Handa <handa@etl.go.jp>
9518
9519 * composite.h (make_composition_value_copy): Extern it.
9520
9521 * composite.c (make_composition_value_copy): New function.
9522
9523 * editfns.c (Fformat): While copying text properties, make each
9524 composition property value a copy.
9525
9526 * fns.c (concat): While copying text properties, make each
9527 composition property value a copy.
9528
831a6cb0
GM
95292000-07-03 Gerd Moellmann <gerd@gnu.org>
9530
2f516940
GM
9531 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9532
178c5d9c 9533 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
9534 marked already.
9535
831a6cb0
GM
9536 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9537 include those frames as candidates which have their focus
9538 redirected to the minibuffer frame.
9539
d9c4f922
SM
95402000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9541
9542 * fns.c (Fputhash): Return `value' rather than nil.
9543
3780bc22
GM
95442000-06-30 Gerd Moellmann <gerd@gnu.org>
9545
97d176db
GM
9546 * frame.c (next_frame): Don't check focus redirection in case
9547 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
9548 unless their focus is redirected, which contradicts the
9549 specification of next-frame, and leads to infinite loops in
9550 certain situations when cycling through windows with next-window.
9551
dca9961d
KH
95522000-06-30 Kenichi Handa <handa@etl.go.jp>
9553
9554 * coding.c (code_convert_region): Even if the length of text is
9555 zero, try to convert it if coding->type is coding_type_ccl.
9556 (decode_coding_string, encode_coding_string): Likewise.
9557
d5483ab1
GM
95582000-06-28 Gerd Moellmann <gerd@gnu.org>
9559
af5c25e1 9560 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 9561 the display if windows_or_buffers_changed.
af5c25e1
GM
9562
9563 * dispnew.c (struct row_entry): New structure.
9564 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9565 (row_table_size, old_lines, new_lines, old_lines_size)
9566 (new_lines_size, run_pool, runs_size, runs): New variables.
9567 (add_row_entry): New function.
9568 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 9569 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
9570 holding them in local variables. Use a larger hash table whose
9571 size depends on glyph matrix sizes. Don't use bzero to clear the
9572 hash table; instead, clear used slots only.
9573
9574 * fns.c (next_almost_prime): Make it externally visible.
9575
9576 * lisp.h (next_almost_prime): Add prototype.
9577
d5483ab1
GM
9578 * s/isc4-0.h (sigunblock): Define.
9579
9580 * s/sco5.h (sigunblock): Define.
9581
93e40f40
DL
95822000-06-27 Dave Love <fx@gnu.org>
9583
9584 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9585 (moved to osf5-0.h).
9586 [!NOT_C_CODE]: Protect string.h stuff.
9587
9588 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9589 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9590
3c4b7685
GM
95912000-06-27 Gerd Moellmann <gerd@gnu.org>
9592
97d176db 9593 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
9594 below the last line from the needed window height.
9595
32cad0aa
SM
95962000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9597
9598 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9599 (Fwidget_get): Use it.
9600 (syms_of_fns): Defsubr it.
9601
2c69ced2
GM
96022000-06-26 Gerd Moellmann <gerd@gnu.org>
9603
178c5d9c 9604 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
9605 display info for XIM.
9606 (xim_open_dpy): Likewise.
9607 (xim_close_dpy): Don't free the display info's XIM.
9608
9609 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9610
9611 * config.in (USE_XIM): New define.
9612
3fc720e4
GM
9613 * keymap.c (get_keyelt): For menu-items containing a `:filter
9614 FILTER', apply FILTER to the menu-item's definition to get the
9615 real definition to use.
9616
9617 * lisp.h (QCfilter): External declaration.
9618
2c69ced2
GM
9619 * xfns.c (Fimage_size): New function.
9620 (syms_of_xfns): Defsubr it.
9621
f978b2a2
AS
96222000-06-26 Andreas Schwab <schwab@suse.de>
9623
9624 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9625 Fstring_as_unibyte.
9626
94cc7892
DL
96272000-06-25 Dave Love <fx@gnu.org>
9628
52283633 9629 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
9630
9631 * Makefile.in (blockinput.h): Depend on atimer.h.
9632 (atimer.h): Depend on systime.h.
9633
52283633 9634 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 9635
52283633 9636 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
9637
9638 * lisp.h (swap_in_global_binding): Declare.
9639
b8c24556
KR
96402000-06-24 Ken Raeburn <raeburn@gnu.org>
9641
9642 * process.c (Fopen_network_stream): Turn off atimers for duration
9643 of call to connect. (Patch from Gerd.)
9644
8cf8560b
DL
96452000-06-23 Dave Love <fx@gnu.org>
9646
511c7541
DL
9647 * ralloc.c: Maybe include unistd.h
9648
8cf8560b
DL
9649 * emacs.c (setgrp): Undefine before defining.
9650 (malloc_warning, set_time_zone_rule, index): Prototype.
9651
9652 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9653 HAVE_STRUCT_TIMEZONE.
9654
9655 * s/osf1.h: Move string.h hack here from alpha.h and make it
9656 conditional.
9657 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9658 _XOPEN_SOURCE.
9659 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9660 (SOCKLEN_TYPE): Don't define.
9661
9662 * m/alpha.h: Remove string.h hack.
9663
9664 * s/osf5-0.h: New file.
9665
9666 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9667 include time.h, done by systime.h.
9668 [__FreeBSD__]: Remove redundant includes.
9669
3fc720e4 9670 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
9671 (delete_temp_file): Return Qnil to avoid warning.
9672
9673 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9674
9675 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9676 HAVE_X_WINDOWS.
9677
9678 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9679
9680 * composite.h (compose_text): Declare.
9681
9682 * xterm.c: Don't include sys/types.h unconditionally. Don't
9683 protect its inclusion with !USG (following xmenu.c).
9684
ea055732
GM
96852000-06-23 Gerd Moellmann <gerd@gnu.org>
9686
9687 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9688 in x_create_frame.
9689
74b01b80
EZ
96902000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9691
9692 * coding.c (decode_eol_post_ccl): Special handling for undecided
9693 and inconsistent EOL types.
9694
64f3a166
GM
96952000-06-22 Gerd Moellmann <gerd@gnu.org>
9696
16cf31f7
GM
9697 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9698 trough color and main window's background color.
9699
52283633 9700 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
9701
9702 * xterm.h (Xt_app_con): External declaration.
9703
9704 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 9705
486a103d
GM
9706 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9707
64f3a166
GM
9708 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9709 (handle_invisible_prop): Record the start of invisible text in
9710 it->add_overlay_start.
9711 (struct overlay_entry): Add member `overlay'.
9712 (handle_overlay_change): Simplify.
9713 (next_overlay_string): After having processed overlay strings at the
9714 end of the buffer, record that fact in
9715 it->overlay_strings_at_end_processed_p.
9716 (compare_overlay_entries): If before- and after-strings come
9717 from the same overlay, let before-strings come first.
9718 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9719 (load_overlay_strings): Take it->add_overlay_start into account
9720 when adding overlay strings.
9721
9722 * dispextern.h (struct it): Add member add_overlay_start.
9723
bb746ea6
DL
97242000-06-22 Dave Love <fx@gnu.org>
9725
9726 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9727
9728 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9729
a8f573f3
KH
97302000-06-22 Kenichi Handa <handa@etl.go.jp>
9731
9732 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9733 is greater than 0.
9734
9f2bbc92
DL
97352000-06-21 Dave Love <fx@gnu.org>
9736
178c5d9c 9737 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 9738
3ee5041c
SM
97392000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9740
9741 * syntax.c (back_comment): Simplify string-parity counting (with
9742 the added benefit of handling multiple string-styles as long as
9743 they are not intertwined).
9744 Jump to the slow code as soon as a comment starter is found in
9745 a "string_lossage" position. Fixes the case: " /* " /* " */.
9746
4c343001
DL
97472000-06-21 Dave Love <fx@gnu.org>
9748
9749 * Makefile.in: Use GETLOADAVG_LIBS.
9750
9751 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9752 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9753
e6365855
SM
97542000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9755
9756 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9757 (Fforward_comment, scan_lists):
9758 Check the comstyle of single-char comment-starters.
9759 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9760 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
9761 Check the comstyle of single-char comment-starters.
9762 Clarify control-flow around the Scomment case.
e6365855 9763
5700d2cc
DL
97642000-06-20 Dave Love <fx@gnu.org>
9765
d355bd8a
SM
9766 * fns.c (make_hash_table, maybe_resize_hash_table):
9767 Cast arg of next_almost_prime.
5700d2cc 9768
178c5d9c 9769 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
9770
9771 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9772 and unistd.h.
9773
4a27bdfb
GM
97742000-06-20 Gerd Moellmann <gerd@gnu.org>
9775
a61d762c 9776 * keyboard.c (adjust_point_for_property): Check if display
52283633 9777 property should be treated as intangible by looking at its value.
a61d762c 9778
178c5d9c 9779 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
9780 (display_prop_intangible_p): New functions.
9781
9782 * dispextern.h (display_prop_intangible_p): Add prototype.
9783
9784 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 9785
4a27bdfb
GM
9786 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9787 argument to sigprocmask.
9788
9789 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9790 argument to sigprocmask.
9791
9792 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9793 sigprocmask_set, and pass a pointer to it to sigprocmask.
9794
9795 * sysdep.c (sigprocmask_set): New variable.
9796
9797 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9798 report_file_error.
9799
427ec082
SS
98002000-06-20 Sam Steingold <sds@gnu.org>
9801
9802 * xrdb.c: Don't declare xmalloc, xrealloc.
9803
8972fe79 98042000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
9805
9806 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9807 (re_comp): Cast gettext return value to avoid complaints when
9808 !HAVE_LIBINTL.
9809
074b6efe
DL
98102000-06-20 Dave Love <fx@gnu.org>
9811
52283633 9812 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 9813
5700d2cc 9814 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 9815
d355bd8a 9816 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
9817
9818 * m/alpha.h: Don't declare xmalloc, xrealloc.
9819
0af4f205
DL
9820 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9821
9822 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9823
9824 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9825
9826 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9827 HAVE_GETWD.
9828
074b6efe
DL
9829 * keyboard.h (poll_for_input_1): Declare.
9830
9831 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9832
9833 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9834
9835 * doprnt.c: Don't declare xmalloc, xrealloc.
9836
9837 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9838 (getenv, ctime, getwd): Removed.
9839 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9840
9841 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9842 x_set_tool_bar_lines.
9843
9844 * config.in: Add HAVE_GETWD. Move some definitions above
9845 machine/system includes.
9846
68a5e97b
KH
98472000-06-20 Kenichi Handa <handa@etl.go.jp>
9848
95417e1e
KH
9849 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9850
68a5e97b
KH
9851 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9852 contain information about ENCODING.
9853
9854 * fontset.c (FONTSET_ASCII): Use the first element of char table
9855 for an ASCII font, not defalt slot.
9856 (fontset_ref_via_base): If FONTSET doesn't contain information for
9857 C, try the default fontset.
9858 (make_fontset): Don't copy the default fontset.
9859 (fontset_font_pattern): Likewise.
9860 (accumulate_font_info): If ELT is nil, use the corresponding
9861 element in the default fontset.
9862
3b4fa1b2
DL
98632000-06-19 Dave Love <fx@gnu.org>
9864
943e731c
DL
9865 * syntax.c (Fparse_partial_sexp): Doc fix.
9866
9867 * regex.h: Test PROTOTYPES as well as __STDC__.
9868
3b4fa1b2
DL
9869 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9870 errno, strerror. Put text after #endif in comment.
9871
52283633 9872 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
9873
9874 * xterm.c (x_frame_of_widget): Likewise.
9875
cdf0357b
GM
98762000-06-19 Gerd Moellmann <gerd@gnu.org>
9877
9878 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9879 to Vfundamental_mode_abbrev_table.
9880
9881 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9882 bogus objects are marked. This slows down GC by ~80 percent, but
9883 it might be worth trying when debugging GC-related problems.
9884 This feature requires conservative stack marking to be enabled.
9885
9886 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9887 returns XLookupChars, reset `modifiers' to zero.
9888
998e9f8c
DL
98892000-06-19 Dave Love <fx@gnu.org>
9890
9891 * mktime.c: Unprotoized.
9892
18e21ce8 98932000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
9894
9895 * data.c (set_internal): If variable is frame-local,
9896 store the new value immediately into the frame parameter alist.
9897
140c4ac6
KR
98982000-06-19 Ken Raeburn <raeburn@gnu.org>
9899
14358466
KR
9900 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9901 in the custom handler pointer.
9902
140c4ac6
KR
9903 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9904 value, or checks for CHAR_META can fail when Lisp_Object is a
9905 union type.
9906 * keymap.c (get_keyelt): Likewise.
9907
10d7bf84
KH
99082000-06-19 Kenichi Handa <handa@etl.go.jp>
9909
9910 * ccl.h (struct ccl_program): New member eol_type.
9911 (struct ccl_spec): New member cr_carryover.
9912
9913 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9914 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9915
9916 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9917 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9918 (decode_eol_post_ccl): New function.
9919 (decode_coding): Don't detect EOL format here for CCL based coding
9920 systems.
9921 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9922 decode_eol_post_ccl after running the CCL program.
9923 (code_convert_region): Don't detect EOL format here for CCL based
9924 coding systems.
9925 (decode_coding_string): Likewise.
9926
52e386c2
KR
99272000-06-18 Ken Raeburn <raeburn@gnu.org>
9928
9929 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9930 when treating it as an integer.
9931
9932 * coding.h (encode_coding_string): Declare.
9933
9934 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9935 it as an integer.
9936
9937 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9938 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9939 to be passed to get_local_map.
9940
9941 * sound.c (Fplay_sound): Don't call make_number on
9942 Frun_hook_with_args count argument.
9943
9944 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9945 for lisp objects in X event structure data field, when lisp
9946 objects are represented with unions.
9947 (x_scroll_bar_to_input_event): Ditto.
9948
b357b9d4
KR
99492000-06-16 Ken Raeburn <raeburn@gnu.org>
9950
9951 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
9952 termination of string. Fix sense of test whether
9953 Vline_number_display_limit is an integer.
b357b9d4 9954
a871441d
GM
99552000-06-16 Gerd Moellmann <gerd@gnu.org>
9956
a9021acd
GM
9957 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9958 only if HAVE_X_WINDOWS.
9959
6344985d
GM
9960 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9961 of titles.
9962
427ec082 9963 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
9964 out of bounds.
9965
228b083e
EZ
99662000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9967
9968 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9969 of its headers.
9970
c25b53a2
KH
99712000-06-15 Kenichi Handa <handa@etl.go.jp>
9972
9973 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9974 start of the while loop.
9975
a6981b11
GM
99762000-06-15 Gerd Moellmann <gerd@gnu.org>
9977
e9924e52
GM
9978 * atimer.c (alarm_signal_handler): Add forward declaration.
9979
a6981b11
GM
9980 * data.c (set_internal): Remove debug code.
9981
25fa6deb
GM
99822000-06-14 Gerd Moellmann <gerd@gnu.org>
9983
dce6b995
GM
9984 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9985
9f817ea4
GM
9986 * unexec.c (toplevel) [COFF]: Include coff.h.
9987
9988 * s/lynxos.h: New file.
9989
9990 * keymap.c (Fsingle_key_description): Enclose function key and
9991 event symbol names in angle brackets.
9992
8a4e3c0c
GM
9993 * xdisp.c (setup_echo_area_for_printing): Call
9994 message_log_maybe_newline if message_buf_print is not set.
9995
9996 * print.c (printchar, strout): Don't check message_buf_print
427ec082 9997 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
9998 function does something useful even when message_buf_print is
9999 already set.
10000
52283633
SM
10001 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10002 New variables.
25fa6deb
GM
10003 (ensure_echo_area_buffers): Initialize echo buffer's
10004 truncate lines setting to nil.
10005 (with_echo_area_buffer): Don't set the echo buffer's truncate
10006 lines setting here.
8a4e3c0c 10007 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
10008 of message_truncate_lines.
10009 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
10010 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10011 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
10012
10013 * keyboard.c (read_char): Bind message-truncate-lines to t
10014 while displaying a help-echo.
10015
10016 * lisp.h (Qmessage_truncate_lines): External declaration.
10017
163dcff3
GM
100182000-06-13 Gerd Moellmann <gerd@gnu.org>
10019
1681ead6
GM
10020 * xdisp.c (Vline_number_display_limit): Renamed from
10021 line_number_display_limit.
10022 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10023 Extend documentation string. Initialize
10024 Vline_number_display_limit to nil meaning no limit.
10025 (decode_mode_spec): Use Vline_number_display_limit with its new
10026 meaning.
10027
163dcff3
GM
10028 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10029
18e21ce8 100302000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
10031
10032 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 10033
163dcff3
GM
10034 * xfns.c (x_set_frame_parameters): Comment fix.
10035
10036 * frame.c (store_frame_param): Call swap_in_global_binding if the
10037 variable's current binding was chosen based on this frame.
10038
10039 * data.c (swap_in_global_binding): New function.
10040
a704139d
EZ
100412000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10042
10043 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10044 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10045
9b6610db
EZ
100462000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10047
10048 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10049
c68833d2
JR
100502000-06-12 Jason Rumney <jasonr@gnu.org>
10051
10052 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10053
10054 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10055
10056 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10057
10058 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10059
ed1056b3
GM
100602000-06-12 Gerd Moellmann <gerd@gnu.org>
10061
10062 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10063 (syms_of_xfaces): Defsubr Sdump_colors.
10064 (x_free_colors): Don't treat b&w specially on default visual.
10065 (x_free_dpy_colors): New function.
10066 (free_face_colors): Don't check visual class; it's done
10067 in x_free_colors.
10068
10069 * xterm.c (x_frame_of_widget): New function.
10070 (x_alloc_nearest_color_for_widget): Use it.
10071 (x_copy_dpy_color): New function.
10072 (x_destroy_window): Free various colors.
10073
5050a2ef
KH
100742000-06-12 Kenichi Handa <handa@etl.go.jp>
10075
10076 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
10077
10078 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
10079
10080 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
10081
10082 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
10083
10084 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
10085
fb1b041d
DL
100862000-06-11 Dave Love <fx@gnu.org>
10087
10088 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
10089
ff96b5f4
EZ
100902000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
10091
10092 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
10093
db8eeecd
GM
100942000-06-11 Gerd Moellmann <gerd@gnu.org>
10095
ed1056b3 10096 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
10097 to `XEvent *'.
10098
49b71c5f
KH
100992000-06-10 Kenichi Handa <handa@etl.go.jp>
10100
c479bd55
KH
10101 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
10102 (regex_compile): Fix the code for handling the case of single byte
10103 char and multibyte char being mixed in a range within [...].
10104
ff6a65c2
KH
10105 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
10106 and dst_multibyte members of coding.
10107
49b71c5f
KH
10108 * charset.c (update_charset_table): Update the table
10109 bytes_by_char_head.
10110 (init_charset_once): Initialize elements of bytes_by_char_head to
10111 1 except for leading codes for private charases.
10112
10113 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 10114 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 10115
9e80b57d
KR
101162000-06-09 Ken Raeburn <raeburn@gnu.org>
10117
10118 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
10119 access the data it doesn't point to.
10120
f83fe4b4
GM
101212000-06-08 Gerd Moellmann <gerd@gnu.org>
10122
10123 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 10124 will be translated to a switch-frame event when reading the
f83fe4b4
GM
10125 event queue. This is necessary because Emacs otherwise won't
10126 perform a switch-frame to a new frame until some other event, for
10127 example a keystroke event, forces it to do so. This has various
10128 effects, one visible being that the cursor of a frame created with
10129 C-x 5 2 or switched to with a window manager key binding like
10130 A-TAB stays hollow because selected_window isn't on the newly
10131 focused frame until the switch-frame is performed.
10132
10133 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
10134 generating a switch-frame event if necessary.
10135
10136 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
10137
10138 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
10139 it's an integer.
10140
0890801b
KH
101412000-06-08 Kenichi Handa <handa@etl.go.jp>
10142
52283633 10143 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 10144
173cbca8
GM
101452000-06-07 Gerd Moellmann <gerd@gnu.org>
10146
3091c2a6
GM
10147 * window.c (displayed_window_lines): Take empty lines at
10148 the bottom of a window into account.
427ec082 10149
f38952fe
GM
10150 * window.c (displayed_window_lines): New function.
10151 (Fmove_to_window_line): Use displayed_window_lines to determine
10152 the number of lines to move, instead of using the window's height.
10153
10154 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
10155 to stop reading, even if the form read sets point to a different
10156 value when evaluated.
10157
427ec082 10158 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
10159 put the cursor.
10160
6ba6c818
KH
101612000-06-07 Kenichi Handa <handa@etl.go.jp>
10162
10163 * fileio.c (e_write): Free composition data if stored in
10164 coding->cmp_data.
10165
5f1aea9a
GM
101662000-06-06 Gerd Moellmann <gerd@gnu.org>
10167
666852af
GM
10168 * xdisp.c (display_line): Set row's and iterator's
10169 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10170 Set cursor even if row ends in the middle of a character.
10171 (dump_glyph_row): Print values of new flags.
10172 (redisplay_window) <cursor movement in unchanged window>: When
10173 point has been moved forward, and PT is at the end of the cursor
10174 row, don't place the cursor in the next row if the cursor row ends
10175 in the middle of a character or at ZV.
10176
10177 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10178 (struct glyph_row): Add starts_in_middle_of_char_p and
10179 ends_in_middle_of_char_p.
10180 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10181 ends_in_middle_of_char_p flag.
10182 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10183
d13f3e2e
GM
10184 * term.c (append_glyph): Revert change of 2000-06-06.
10185
10186 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10187 padding glyph not fitting on line as whole character not
10188 fitting on line.
10189
5f1aea9a
GM
10190 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10191 this isn't true for images with `:ascent 100'.
10192
10cda9b0
KH
101932000-06-06 Kenichi Handa <handa@etl.go.jp>
10194
ed00559d
KH
10195 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10196 as modified if it is originally unmodified.
10197
10cda9b0
KH
10198 * term.c (encode_terminal_code): Change the way to check if
10199 terminal coding does any conversion.
10200 (append_glyph): Set glyph->pixel_width correctly.
10201
10202 * xdisp.c (display_line): While checking line continuation, pay
10203 attention to a padding glyph.
10204
1969fae2
GM
102052000-06-05 Gerd Moellmann <gerd@gnu.org>
10206
10207 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10208
162ccef4
DL
102092000-06-05 Dave Love <fx@gnu.org>
10210
f19f32dd
DL
10211 * xdisp.c: Include fontset.h.
10212
10213 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10214
10215 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10216
10217 * dispnew.c: Conditionally include term.h.
10218
10219 * coding.h: Declare code_convert_string_norecord.
10220
10221 * frame.h (struct frame): Use volatile unconditionally.
10222
10223 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10224
10225 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10226
10227 * systime.h: Protect against multiple inclusion.
10228 (timezone) [USG5_4]: Define as time_t.
10229
10230 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10231 (Foptimize_char_table, make_temp_name): Declare.
10232
10233 * Makefile.in (xdisp.o): Depend on fontset.h.
10234
10235 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10236
10237 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10238 (Foptimize_char_table, make_temp_name): Declare.
10239
427ec082 10240 * s/irix4-0.h:
162ccef4
DL
10241 * s/irix5-0.h:
10242 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10243
2082fe81
DL
102442000-06-02 Dave Love <fx@gnu.org>
10245
10246 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10247
dcf671d2
GM
102482000-06-02 Gerd Moellmann <gerd@gnu.org>
10249
10250 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 10251 result face, set flags in that face indicating that colors may not
dcf671d2
GM
10252 be freed.
10253
10254 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10255 glyph, use the ASCII NUL character to determine the face.
10256
d42122a3
DL
102572000-06-02 Dave Love <fx@gnu.org>
10258
10259 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10260 (VFORK_RETURN_TYPE): Remove.
427ec082 10261
d42122a3
DL
10262 * config.in: Add NO_MATHERR.
10263
dd432f16
DL
102642000-06-01 Dave Love <fx@gnu.org>
10265
90aa4ea8
DL
10266 * cmds.c (internal_self_insert): Don't check
10267 Vbefore_change_function, Vafter_change_function.
10268
10269 * insdel.c (signal_before_change, signal_after_change): Likewise.
10270
10271 * buffer.c (Vbefore_change_function, Vafter_change_function):
10272 Variables and their initializations deleted.
10273
2330c9d4
DL
10274 * callint.c (Fcall_interactively): Doc fix.
10275
dd432f16
DL
10276 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10277
bf9e8804
DL
102782000-05-31 Dave Love <fx@gnu.org>
10279
10280 * textprop.c: Revert last change -- duplicated.
10281
3694b4ab
GM
102822000-05-31 Gerd Moellmann <gerd@gnu.org>
10283
10284 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10285 in #if 0.
10286
10287 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10288
f14156cd
JR
102892000-05-31 Jason Rumney <jasonr@gnu.org>
10290
8119aab8
JR
10291 * search.c (Fre_search_forward, Fre_search_backward)
10292 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10293
f14156cd
JR
10294 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10295
4aab9be3
JR
102962000-05-30 Jason Rumney <jasonr@gnu.org>
10297
10298 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10299 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10300
52283633 10301 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
10302
10303 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10304 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10305 expand a nil default_filename.
10306
10307 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10308 pointer to glyph_to_pixel_coords, not a frame.
10309
10310 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10311 coding.h to dependencies.
10312
10313 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10314
10315 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10316 window pointer to be consistent with w32term.c and xterm.c.
10317
10318 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10319 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10320 (Qline_spacing, Qcenter): New variables.
10321 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10322 (x_set_line_spacing): New function.
52283633 10323 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
10324 (x_specified_cursor_type): New function.
10325 (x_set_cursor_type): Use it.
10326 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10327 and icon strings.
10328 (validate_x_resource_name, x_get_resource_string): Measure lengths
10329 of external strings in bytes.
10330 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10331 GetTextExtentPoint32 with NULL title.
10332 (Fx_create_frame): Initialize Qline_spacing.
10333 (w32_load_system_font): Initialize font->double_byte_p.
10334 (x_to_w32_charset): Use Vw32_charset_info_alist.
10335 (Image, busy cursor, tooltip functions): Merged changes from
10336 xfns.c. Not yet functional on Windows.
10337
10338 * w32gui.h (W32FontStruct): Add double_byte_p member.
10339
10340 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10341 (emacs_button_translation): Use it.
10342 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10343 in `mask' to be set.
10344
10345 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10346 menu strings.
10347
10348 * w32term.c: Format and doc changes to bring closer to xterm.c.
10349 (w32_char_font_type): New enum.
10350 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10351 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10352 (w32_encode_char): New function.
10353 (x_encode_char): Removed.
10354 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10355 x_encode_char and w32_font_is_double_byte.
10356 (x_produce_image_glyph): Use image_ascent.
10357 (x_produce_glyphs): Use new version of w32_per_char_metric and
10358 handle NULL return value. Allow extra line spacing.
10359 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10360 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10361 w32_font_type member of glyph instead.
10362 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10363 (fast_find_position): Make sure not to consider rows not visible
10364 in the window.
10365 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10366 w32_menu_display_help with input blocked, as it can abort.
10367 (x_display_and_set_cursor): Choose cursor depending
10368 on buffer-local value of cursor_type.
10369 (x_draw_bar_cursor): Add parameter WIDTH.
10370
10371 * w32term.h (CP_DEFAULT): Define.
10372 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10373
10fc3187
GM
103742000-05-30 Gerd Moellmann <gerd@gnu.org>
10375
10376 * search.c (Fre_search_forward, Fre_search_backward)
10377 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10378
d0555360
KH
103792000-05-30 Kenichi Handa <handa@etl.go.jp>
10380
10381 * coding.c (detect_coding_iso2022): Fix code for checking
10382 CODING_CATEGORY_MASK_ISO_8_2.
10383
f1ad044f
SM
103842000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10385
10386 * regex.c (PREFETCH_NOLIMIT): New function.
10387 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10388
84ec3b4b
GM
103892000-05-29 Gerd Moellmann <gerd@gnu.org>
10390
66254a13
GM
10391 * syntax.c (find_defun_start): Move test for
10392 open_paren_in_column_0_is_defun_start outside of the loop.
10393
49e70dec
GM
10394 * xdisp.c (redisplay_window): Really switch buffers when
10395 displaying mode lines, and temporarily set selected_frame to the
10396 frame of the window that's redisplayed.
10397
84ec3b4b
GM
10398 * xfaces.c (free_realized_faces): Block/unblock input.
10399 (free_realized_multibyte_face): Ditto.
10400
869a3a14
DL
104012000-05-29 Dave Love <fx@gnu.org>
10402
10403 * textprop.c (Qkeymap): New variable.
10404 (syms_of_textprop): Intern it.
10405
10406 * keymap.c: Include intervals.h.
10407 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10408
10409 * Makefile.in (keymap.o): Depend on intervals.h.
10410
10411 * keyboard.c (menu_bar_items, tool_bar_items)
10412 (Fexecute_extended_command): Deal with `keymap' property.
10413 (read_key_sequence): Track map from `keymap' property as well as
10414 `local_map'.
10415
10416 * intervals.c (get_local_map): Extra arg to allow looking for
10417 `keymap' too.
10418
10419 * intervals.h (map_property): New enum.
10420 (get_local_map): Extra arg using it.
10421 (Qkeymap): Declare.
10422
84ec3b4b 10423 * lisp.h (get_local_map): Don't declare here.
869a3a14 10424
89d0c844
KH
104252000-05-29 Kenichi Handa <handa@etl.go.jp>
10426
10427 * Makefile.in (callproc.o): Depend on composite.h.
10428
10429 * callproc.c: Include composite.h.
10430 (Fcall_process): Handle composition correctly.
10431
10432 * coding.h (coding_allocate_composition_data): Extern it.
10433 (coding_restore_composition): Likewise.
10434
10435 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10436 yet allocated, finish decoding with result
10437 CODING_FINISH_INSUFFICIENT_CMP.
10438 (coding_allocate_composition_data): Make it non-static.
10439 (coding_restore_composition): Likewise.
10440
797a084a
EZ
104412000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10442
10443 * charset.c (syms_of_charset): Revert last change.
10444
cf872af5
EZ
104452000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10446
10447 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
10448 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10449 Handa.
cf872af5 10450
5b1ae051
EZ
104512000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10452
10453 * charset.c (syms_of_charset): Set width of character sets
10454 eight-bit-control and eight-bit-graphic to 1 column.
10455
34ec9ebe
GM
104562000-05-26 Gerd Moellmann <gerd@gnu.org>
10457
10458 * config.in (HAVE_SPEED_T): New define.
10459
10460 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10461 `extern speed_t'.
10462
dd854dc2
DL
104632000-05-26 Dave Love <fx@gnu.org>
10464
10465 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10466
10467 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10468 (Fsubr_arity): New function.
10469 (syms_of_data): Install them.
10470
ba9f8f95
KH
104712000-05-26 Kenichi Handa <handa@etl.go.jp>
10472
0f3e0672
KH
10473 * charset.c (init_charset_once): Set the table bytes_by_char_head
10474 correctly.
10475
cebefb44
KH
10476 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10477 the default fontset to what Emacs uses by default.
0f3e0672
KH
10478 (check_registry_encoding): This function deleted.
10479 (Fset_fontset_font): Remove the adhoc condition for the default
10480 fontset. Allow cons in FONTNAME.
cebefb44 10481
0f3e0672
KH
10482 * fns.c (map_char_table): Ignore char-table entries for
10483 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 10484
7a18af49
KR
104852000-05-25 Ken Raeburn <raeburn@gnu.org>
10486
10487 * emacs.c (main): Initialize keyboard syms before initializing
10488 window code, so face names are available.
10489
d2af47df
SM
104902000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10491
10492 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10493 of an anchor at the beginning of a shy-group.
10494
fc6a6a4e
GM
104952000-05-25 Gerd Moellmann <gerd@gnu.org>
10496
10497 * xdisp.c (handle_invisible_prop): Don't try to skip over
10498 invisible text if end of text is already reached.
10499
005f0d35
DL
105002000-05-25 Dave Love <fx@gnu.org>
10501
02513cdd
DL
10502 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10503
005f0d35
DL
10504 * coding.c (encode_eol): Add null statement after label.
10505
89f6ca4e
EZ
105062000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10507
10508 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10509 2000-05-20.
10510
a4e1759e
KH
105112000-05-25 Kenichi Handa <handa@etl.go.jp>
10512
10513 * ccl.c (ccl_driver): Fix previous change.
10514
eacfd7fe
KH
105152000-05-25 Kenichi Handa <handa@etl.go.jp>
10516
46ab33a9
KH
10517 * coding.c (run_pre_post_conversion_on_str): Set point to the
10518 beginning of buffer before calling coding->post_read_conversion.
10519 (decode_coding_string): Give correct args to
10520 run_pre_post_conversion_on_str.
10521 (encode_coding_string): Likewise.
10522
eacfd7fe
KH
10523 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10524 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10525 eight-bit-graphic correctly.
10526
f8569325
DL
105272000-05-24 Kenichi HANDA <handa@etl.go.jp>
10528
10529 * fileio.c (Finsert_file_contents): Even if a file is not found,
10530 execute codes for setting up coding system. Call
10531 after-insert-file-functions unconditionally.
10532
04545643
GM
105332000-05-24 Gerd Moellmann <gerd@gnu.org>
10534
10535 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10536 BSD_PGRPS are not defined.
10537
747d90ea
KH
105382000-05-24 Kenichi Handa <handa@etl.go.jp>
10539
10540 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10541 DESCRIPTION.
10542 (syms_of_charset): Avoid building same strings.
10543
716e3b88
GM
105442000-05-23 Gerd Moellmann <gerd@gnu.org>
10545
10546 * lread.c (Fload): Add a comment about the meaning of
10547 Vuser_init_file being t.
10548
10549 * puresize.h (BASE_PURESIZE): Increase to 675000.
10550
10551 * s/gnu-linux.h (setpgrp): Don't define it here because this
10552 prevents compilation on GNU/Linux systems with glib 2.2.
10553
10554 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10555 as setpgid.
427ec082 10556
9aeb39fa
EZ
105572000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10558
10559 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10560 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10561 version.
10562 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10563
29ced61b
KH
105642000-05-23 Kenichi Handa <handa@etl.go.jp>
10565
52283633 10566 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 10567
3d80f24d
KH
10568 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10569
52283633 10570 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 10571
29ced61b
KH
10572 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10573
d7e00792
KH
105742000-05-22 Kenichi Handa <handa@etl.go.jp>
10575
c9d80d38
KH
10576 * keyboard.c (read_char): Allow character codes 128..255 to be
10577 handled by input-method-function.
10578
d7e00792
KH
10579 * insdel.c (adjust_markers_for_replace): Fix previous change.
10580 (adjust_after_replace): If PREV_TEXT is nil, call
10581 adjust_markers_for_insert, not adjust_markers_for_replace.
10582
087121cc 105832000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 10584
087121cc
GM
10585 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10586 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10587 [HAVE_GRANDPT]: Define.
10588 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10589
10590 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10591 like SYSV_PTYS.
10592
10593 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10594
10595 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10596
c9671f81
KH
105972000-05-20 Kenichi Handa <handa@etl.go.jp>
10598
10599 The following changes are to handle 8-bit characters in a
10600 multibyte buffer/string without facing with byte combining
10601 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10602 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10603
10604 * Makefile.in (fns.o): Depend on charset.h.
10605
10606 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10607 convert it to unibyte.
10608 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10609
10610 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10611 apparent char boundary.
10612 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10613 0x80..0x9F to/from multibyte form.
10614
10615 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10616 to unibyte.
10617
10618 * callproc.c (Fcall_process): Always encode an argument string if
10619 it is multibyte. Setup src_multibyte and dst_multibyte members of
10620 process_coding properly.
ce75fd23 10621
c9671f81
KH
10622 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10623 SPLIT_NON_ASCII_CHAR.
10624
10625 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10626 as is.
10627 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10628
52283633 10629 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 10630 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 10631 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
10632 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10633 and eight-bit-graphic.
10634 (char_to_string): Likewise. Signal an error for too large
10635 character code.
10636 (char_printable_p): Return 0 for 8-bit characters.
10637 (update_charset_table): Update iso_charset_table only when a final
10638 character is non-negative.
10639 (find_charset_in_text): Renamed from find_charset_in_str.
10640 Arguments and return value changed. Callers changed.
10641 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10642 be -1 if CHARSET is used only internally.
10643 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10644 eight-bit-graphic.
10645 (Fcharset_after): Simplified.
10646 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10647 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10648 (multibyte_chars_in_text): Simplified by assuming there's no
10649 invalid multibyte sequence.
52283633
SM
10650 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10651 (str_as_unibyte): New functions.
10652 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
10653 (init_charset_once): Initialization for
10654 LEADING_CODE_8_BIT_CONTROL.
10655 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10656 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10657 eight-bit-control and eight-bit-graphic.
10658
52283633
SM
10659 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10660 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
10661 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10662 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10663 (CHARSET_REVERSE_CHARSET): Likewise.
10664 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10665 eight-bit-graphic.
10666 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10667 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10668 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10669 encounter an invalid multibyte sequence.
10670 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10671 sequence is always valid.
10672 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 10673 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
10674 (CHAR_STRING): For 8-bit characters, call char_to_string.
10675 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10676 multibyte sequence is always valid.
10677 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
10678 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10679 (str_as_unibyte): Extern them.
c9671f81 10680 (BCOPY_SHORT): Fix a bug.
52283633 10681 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
10682 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10683 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10684 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10685
bd4bde7f 10686 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 10687 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
10688 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10689 (EMIT_BYTES): New macros.
10690 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10691 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
10692 macros deleted.
10693 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10694 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10695 check the validity of multibyte sequence.
10696 (decode_coding_emacs_mule): New function.
10697 (encode_coding_emacs_mule): New macro.
10698 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10699 the source.
10700 (DECODE_ISO_CHARACTER): Just return a character code.
10701 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10702 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10703 EMIT_CHAR to produced decoded characters. Exit the loop only by
10704 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10705 block here.
10706 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10707 only position codes for an invalid character.
10708 (encode_designation_at_bol): Return new destination pointer. 5th
10709 arg DSTP is changed to DST.
10710 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10711 from the source by ONE_MORE_CHAR. Don't handle the case of last
10712 block here.
10713 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10714 macros deleted.
52283633
SM
10715 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10716 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
10717 TWO_MORE_BYTES to fetch a byte from the source.
10718 (encode_eol): Pay attention to coding->src_multibyte.
10719 (detect_coding, detect_eol): Preserve members src_multibyte and
10720 dst_multibyte.
10721 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10722 (encoding_buffer_size): Set magnification to 3 for all coding
10723 systems that require encoding.
10724 (ccl_coding_driver): For decoding, be sure that the result is
10725 valid multibyte sequence.
10726 (decode_coding): Initialize coding->errors and coding->result.
10727 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10728 and raw-text, always call decode_eol. Handle the case of last
10729 block here. If not coding->dst_multibyte, convert the resulting
10730 sequence to unibyte.
10731 (encode_coding): Initialize coding->errors and coding->result.
10732 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10733 and raw-text, always call encode_eol. Handle the case of last
10734 block here.
10735 (shrink_decoding_region, shrink_encoding_region): Detect cases
10736 that we can't skip data more rigidly.
10737 (code_convert_region): Setup src_multibyte and dst_multibyte
10738 members of coding. For decoding, if the buffer is multibyte,
10739 convert the source sequence to unibyte in advance. For encoding,
10740 if the buffer is multibyte, convert the resulting sequence to
10741 multibyte afterward.
10742 (run_pre_post_conversion_on_str): New function.
10743 (code_convert_string): Deleted and divided into the following two.
10744 (decode_coding_string, encode_coding_string): New functions.
10745 (code_convert_string1, code_convert_string_norecord): Call one of
10746 above.
10747 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10748 MAKE_NON_ASCII_CHAR.
52283633
SM
10749 (Fset_terminal_coding_system_internal)
10750 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
10751 and dst_multibyte members.
10752 (init_coding_once): Initialize iso_code_class with new enum
10753 ISO_control_0 and ISO_control_1.
10754
10755 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10756 devided into ISO_control_0 and ISO_control_1.
10757 (struct coding_system): New members src_multibyte, dst_multibyte,
10758 errors, and result. Delete member fake_multibyte.
10759 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10760 nonzero.
10761 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10762 nonzero.
10763
10764 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10765 (Faset): Likewise.
10766
10767 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10768 multibyte form.
10769 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10770 combining occurs.
10771 (Ftranspose_region): Delete codes for handling byte combining.
10772
10773 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10774 dst_multibyte members of coding. On handling REPLACE on unibyte
10775 buffer, convert the result of decode_coding to unibyte. On
10776 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 10777 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
10778 multibyteness of the source (buffer or string).
10779
10780 * fns.c (concat): Handle 8-bit characters correctly.
10781 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10782 unibyte in the result.
10783 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10784 valid multibyte form in the result.
10785 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10786 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10787 return -1, signal an error.
10788 (base64_encode_1): New arg MULTIBYTE. Get each character by
10789 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10790 character is found, return -1.
10791 (Fbase64_decode_region): Delete codes for handling byte-combining.
10792 Treat each decoded byte as a unibyte character.
10793 (Fbase64_decode_string): Return unibyte string.
10794 (Fcompare_strings, concat, string_byte_to_char): Use
10795 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10796 FETCH_STRING_CHAR_ADVANCE.
10797 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10798 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10799
10800 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10801 SPLIT_NON_ASCII_CHAR.
10802 (fontset_ref_via_base, fontset_set): Likewise
10803
10804 * insdel.c (adjust_markers_for_record_delete): Deleted.
10805 (adjust_markers_for_insert): Argument changed. Caller changed.
10806 (adjust_markers_for_replace): Likewise.
52283633
SM
10807 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10808 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
10809 (copy_text): Delete unused local varialbe c_save. For converting
10810 to multibyte, be sure to make all 8-bit characters in valid
10811 multibyte form.
10812 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
10813 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10814 (adjust_after_replace, replace_range, del_range_2)
c9671f81 10815 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
10816 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10817 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
10818 handling byte combining.
10819 (adjust_before_replace): Deleted.
427ec082 10820
c9671f81
KH
10821 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10822 SPLIT_NON_ASCII_CHAR.
10823 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 10824 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10825 (Fkey_description): Likewise.
10826
10827 * lread.c (read1): On reading multibyte string, be sure to make
10828 all 8-bit chararacters in valid multibyte form.
10829 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10830
10831 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10832 unconditionally.
10833
10834 * process.c (Fstart_process): GCPRO current_dir before calling
10835 Ffind_operation_coding_system. Encode arguments here.
10836 (create_process): Don't encode arguments here. Setup
10837 src_multibyte and dst_multibyte members of struct coding.
10838 (read_process_output): Setup src_multibyte and dst_multibyte
10839 members of struct coding. If the output is to multibyte buffer,
10840 always decode the output of the process. Adjust the
52283633 10841 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
10842 (send_process): Setup coding->src_multibyte according to the
10843 multibyteness of the source.
10844
52283633 10845 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10846 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10847 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10848
52283633 10849 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
10850
10851 * w16select.c (Fw16_set_clipboard_data): Setup members
10852 src_multibyte and dst_multibyte of coding. Adjusted for the
10853 change for find_charset_in_str.
10854 (Fw16_get_clipboard_data): Likewise.
10855
10856 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10857 dst_multibyte of coding.
10858 (x_to_w32_font): Likewise.
10859
10860 * w32select.c (Fw32_set_clipboard_data): Setup members
10861 src_multibyte and dst_multibyte of coding. Adjusted for the
10862 change for find_charset_in_str.
10863 (Fw32_get_clipboard_data): Likewise.
10864
10865 * xdisp.c (get_next_display_element): Handle 8-bit characters
10866 correctly.
52283633
SM
10867 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10868 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
10869
10870 * xselect.c (selection_data_to_lisp_data): Setup members
10871 src_multibyte and dst_multibyte of coding. Adjusted for the
10872 change for find_charset_in_str.
10873 (lisp_data_to_selection_data): Likewise.
10874
5f64c9e0
GM
108752000-05-19 Gerd Moellmann <gerd@gnu.org>
10876
52283633 10877 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 10878
5f64c9e0
GM
10879 * dispextern.h (Vimage_types): Add extern declaration.
10880
10881 * xdisp.c (Vimage_types): Moved here from xfns.c.
10882 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10883
10884 * xfns.c (Vimages_types): Moved to xdisp.c.
10885 (syms_of_xfns): Move `image-types' to xdisp.c.
10886
10887 * w32fns.c (Vimage_types): Removed.
10888 (syms_of_w32fns): Remove `image-types'.
10889
813086ea
KH
108902000-05-18 Kenichi Handa <handa@etl.go.jp>
10891
10892 * fns.c (map_char_table): Pay attention to character number of
10893 charset. Check the validity of charset at the first level. For
10894 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10895 the default value.
10896
10897 * fontset.c: Include "buffer.h".
10898 (fs_load_font): If the face has fontset, record the face ID in
10899 that fontset.
10900 (Finternal_char_font): New function.
10901 (accumulate_font_info): New function.
10902 (Ffontset_info): Rewritten for the new fontset implementation.
10903 (syms_of_fontset): Register Vdefault_fontset in the first element
10904 of Vfontset_table. Include Vdefault_fontset in
10905 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10906 function.
10907
bdaebbf0
DL
109082000-05-16 Dave Love <fx@gnu.org>
10909
10910 * m/iris5d.h: Deleted -- unused.
10911
cb613bb8
GM
109122000-05-16 Gerd Moellmann <gerd@gnu.org>
10913
b15f3b77
GM
10914 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10915 `invalid' instead of `illegal'.
10916
10917 * indent.c (Fmove_to_column): When ending within a tab, insert
10918 spaces first so that markers at the end of the tab get adjusted.
10919
835c1b36
GM
10920 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10921 buffer list that wasn't selected in that frame.
10922
cb613bb8
GM
10923 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10924 is needed on mescaline, use a 2 char prefix, and call
10925 make_temp_name with second arg non-zero.
10926
10927 * fileio.c (make_temp_name): New function, extracted from
10928 Fmake_temp_name.
10929 (Fmake_temp_name): Use it.
10930
f685bea9
EZ
109312000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10932
52283633 10933 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 10934
a1b8d58b
GM
109352000-05-15 Gerd Moellmann <gerd@gnu.org>
10936
10937 * Makefile.in (lisp): Add env.elc.
10938
10939 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10940
a265079f
GM
109412000-05-12 Gerd Moellmann <gerd@gnu.org>
10942
10943 * search.c (Freplace_match): Handle case of `\N' in the
10944 replacement when there's no group N.
10945
da4496b6
GM
109462000-05-11 Gerd Moellmann <gerd@gnu.org>
10947
0ace421a
GM
10948 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10949 of the message to message_dolog.
10950
1172eb8d
GM
10951 * keyboard.c (read_char): Don't clear current message for help
10952 events; let the code handling help events handle this. Change
10953 code detecting help events that should be ignored.
10954
da4496b6
GM
10955 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10956 we're interating over a string.
10957
0623e40f
DL
109582000-05-09 Dave Love <fx@gnu.org>
10959
10960 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10961 that offset before writing. Move gcpro region past call of
10962 Ffile_regular_p.
10963
bae2503b
DL
109642000-05-04 Dave Love <fx@gnu.org>
10965
10966 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10967
ec82fb2f
GM
109682000-05-04 Gerd Moellmann <gerd@gnu.org>
10969
10970 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10971 of inserted characters when BUF equals the current buffer, and PT
10972 is in front of or equal to FROM.
10973
cbf18892
GM
109742000-05-03 Gerd Moellmann <gerd@gnu.org>
10975
4ff40dd0
GM
10976 * xdisp.c (handle_single_display_prop): If display property value
10977 is invalid, or something not supported on the frame, restore
10978 iterator's position to what it was initially. Make sure to return
10979 0 for invalid and unsupported property values.
10980
cbf18892
GM
10981 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10982 that x_per_char_metric returns null.
10983
1b0672c3
GM
109842000-05-02 Gerd Moellmann <gerd@gnu.org>
10985
576da55d
GM
10986 * xterm.h (struct face): Add forward declaration.
10987 (struct image): Ditto.
10988 (image_ascent): Add prototype.
10989
10990 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10991 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10992 image_ascent instead of using IMAGE_ASCENT.
10993
10994 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10995 (IMAGE_ASCENT): Removed.
10996
10997 * xfns.c (Qcenter): New variable.
10998 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10999 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11000 (image_ascent): New function.
11001 (lookup_image): Recognize `:ascent center'.
11002 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11003 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11004 (xbm_load): Don't set image's ascent here.
11005 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11006 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11007 check ascent values here.
11008 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11009 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11010 (syms_of_xfns): Initialize Qcenter.
11011
1b0672c3
GM
11012 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11013 to the limits, increase the limits.
11014
0d7811ed
KH
110152000-05-01 Kenichi Handa <handa@etl.go.jp>
11016
11017 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 11018 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 11019
a943a5ca
GM
110202000-04-28 Gerd Moellmann <gerd@gnu.org>
11021
11022 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11023 taller than the window.
11024
5dba1e29
KH
110252000-04-28 Kenichi Handa <handa@etl.go.jp>
11026
11027 * xfaces.c (realize_x_face): Fix the argument of the second
11028 xassert. BASE_FACE may not be a face for ASCII.
11029
353964e3
GM
110302000-04-27 Gerd Moellmann <gerd@gnu.org>
11031
c76e04a8
GM
11032 * print.c (print_object): Treat print-length < 0 as nil.
11033
11034 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11035
11036 * s/freebsd.h (TERMCAP_OBJ): Removed.
11037 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11038
11039 * lread.c (read1): Don't treat period followed by certain
11040 characters as symbol start.
11041
11042 * xfns.c (slurp_file): New function.
11043 (xbm_image_p): Handle case of in-memory XBM files.
11044 (xbm_scan): Rewritten to work on memory buffers instead of files.
11045 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11046 Work on memory buffers instead of files. If DATA is null test
11047 if buffer looks like an in-memory XBM file.
11048 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11049 memory buffers instead of files.
11050 (xbm_file_p): New function.
11051 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11052
353964e3
GM
11053 * lread.c (end_of_file_error): New function.
11054 (read1): Call it instead of signaling `end-of-file' directly.
11055
427ec082 11056 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
11057 with Fprinc instead of Fprin1.
11058
24d744ac
KR
110592000-04-26 Ken Raeburn <raeburn@gnu.org>
11060
11061 * window.c (freeze_window_start): Check that minibuffer scroll
11062 window isn't nil before extracting the window structure pointer
11063 from it.
11064
11065 * undo.c (record_delete): If we hit the end of the undo list, stop
11066 picking elements apart.
11067
7464346d
GM
110682000-04-26 Gerd Moellmann <gerd@gnu.org>
11069
11070 * xdisp.c (display_line): If lines are continued, restore
11071 iterator's ascent/descent information to the values before the
11072 first glyph not fitting on the line.
11073
612839b6
GM
110742000-04-25 Gerd Moellmann <gerd@gnu.org>
11075
11076 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 11077 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
11078
11079 * dispnew.c (increment_matrix_positions): Renamed from
11080 increment_glyph_matrix_buffer_positions.
11081 (increment_row_positions): Renamed from
11082 increment_glyph_row_buffer_positions.
11083
11084 * dispextern.h: Change names of renamed functions from dispnew.c
11085 in prototypes.
11086
cc181e95
GM
110872000-04-24 Gerd Moellmann <gerd@gnu.org>
11088
abfcc168
GM
11089 * fileio.c (Fdo_auto_save): Create directories for auto-save
11090 list file if necessary.
11091
cc181e95
GM
11092 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
11093 from buffer or frame.
11094 (automatic_hscrolling_p): New variable.
11095 (hscroll_windows): Scroll windows horizontally only if automatic
11096 hscrolling is allowed.
11097 (syms_of_xdisp): New variable `automatic-hscrolling'.
11098
11099 * frame.h (struct frame): Add member extra_line_spacing.
11100
11101 * xfns.c (x_set_line_spacing): New function.
11102 (Fx_create_frame): Set line spacing from resources.
11103 (Qline_spacing): New variable.
11104 (syms_of_xfns): Initialize Qline_spacing.
427ec082 11105
cc181e95
GM
11106 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
11107
11108 * buffer.c (init_buffer_once): Handle extra_line_spacing.
11109 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 11110 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
11111 extra_line_spacing from default value.
11112 (init_buffer_once): Initialize default value of extra_line_spacing.
11113
11114 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
11115 and extra3.
11116
11117 * xterm.c (x_produce_glyphs): Remove reference to struct it's
11118 prompt_width. Add extra line spacing.
11119
11120 * term.c (produce_glyphs): Remove reference to struct it's
11121 prompt_width.
11122
11123 * dispextern.h (struct it): Remove member prompt_width, add
11124 extra_line_spacing.
11125
58827478
GM
111262000-04-22 Gerd Moellmann <gerd@gnu.org>
11127
11128 * dispnew.c (update_frame_line): When writing a whole line, make
11129 sure cursor is in the right row afterwards, otherwise a use of
11130 capability `ch' in cmgoto might leave the cursor in the row below.
11131
25a87f42
GM
111322000-04-21 Gerd Moellmann <gerd@gnu.org>
11133
11134 * lisp.h (struct Lisp_Buffer_Cons): Remove.
11135
11136 * keyboard.c (timer_check): Fix typo in comment.
11137
54edf5c2
KH
111382000-04-21 Kenichi Handa <handa@etl.go.jp>
11139
11140 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
11141 name change: ch -> character.
11142
3a64eef5
GM
111432000-04-20 Gerd Moellmann <gerd@gnu.org>
11144
11145 * keyboard.c (echo_message_buffer): New variable.
11146 (echo_now): Set echo_message_buffer to the echo area buffer used
11147 to display the echo.
11148 (cancel_echoing): Reset echo_message_buffer to nil.
11149 (read_char): Code rewritten that handles canceling an echo or
11150 echoing a dash, respectively.
11151
11152 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
11153 directory doesn't exist.
11154
6142fdcb
DL
111552000-04-19 Dave Love <fx@gnu.org>
11156
11157 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
11158 (concat): Don't allow numeric args.
11159 (Fconcat): Doc change.
6142fdcb 11160
ac6b5352
SM
111612000-04-19 Stefan Monnier <monnier@cs.yale.edu>
11162
11163 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11164 instead define end_match(1|2) more carefully.
11165 Use GET_CHAR_BEFORE_2 for `begline'.
11166
cb9215e4
GM
111672000-04-19 Gerd Moellmann <gerd@gnu.org>
11168
5e3dac3f
GM
11169 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11170 on 64-bit systems where NULL is defined as `0'.
11171
11172 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11173 the `variable argument list' to make it work on Alpha.
11174
cb9215e4
GM
11175 * m/alpha.h (_LP64) [!_LP64]: Define.
11176 (ORDINARY_LINK): Define for NetBSD.
11177
11178 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 11179
f532dca0
DL
111802000-04-19 Dave Love <fx@gnu.org>
11181
c750667e
DL
11182 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11183 change.
11184
11185 * Makefile.in (LIBS): Don't use.
11186 (GETLOADAVG_OBJ): Define again.
11187 (otherobj): Add GETLOADAVG_OBJ.
11188
f532dca0
DL
11189 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11190
1c7e22fd
GM
111912000-04-18 Gerd Moellmann <gerd@gnu.org>
11192
f6d3257b
GM
11193 * lread.c (read_filtered_event): Cancel and start busy cursor.
11194
427ec082 11195 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
11196 that the per-character metrics may be null.
11197
e10f64e7
GM
111982000-04-17 Gerd Moellmann <gerd@gnu.org>
11199
0daee095
GM
11200 * buffer.c (clone_per_buffer_values): New function.
11201 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11202 clone_per_buffer_values if CLONE is not nil.
11203
e10f64e7
GM
11204 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11205
38687d43
DL
112062000-04-16 Dave Love <fx@gnu.org>
11207
11208 * Makefile.in: Remove obsolete localcpp stuff.
11209 (GETLOADAVG_OBJ): Don't define.
11210 (obj): Move LIBOBJS...
11211 (otherobj): ... to here.
11212 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11213 whitespace-only lines after the continuation (Irix).
11214
c21c7262
GM
112152000-04-14 Gerd Moellmann <gerd@gnu.org>
11216
11217 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11218
11219 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11220
314767c0
DL
112212000-04-14 Dave Love <fx@gnu.org>
11222
11223 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11224 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11225 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11226 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11227 NLIST_STRUCT.
11228
11229 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11230 autoconfiscated HAVE_GETLOADAVG.
11231
11232 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11233 BROKEN_MKTIME.
11234
a2522dca
GM
112352000-04-14 Gerd Moellmann <gerd@gnu.org>
11236
11237 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 11238 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 11239
33744b5d
DL
112402000-04-14 Dave Love <fx@gnu.org>
11241
c21c7262 11242 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
11243 (INTERVAL_SRC): Convert to make variable.
11244 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11245 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11246 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11247 add LIBOBJS.
11248 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11249 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11250 (shortlisp): Add facemenu, float-sup, frame.
11251 (SOME_MACHINE_LISP): Remove them from here.
11252 (LIBES): Change unused LDLIBS to autoconf LIBS.
11253
11254 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11255
9d3d5916
KH
112562000-04-14 Kenichi Handa <handa@etl.go.jp>
11257
11258 * composite.c (update_compositions): If FROM and TO are not in a
11259 valid range, do nothing.
11260
198e3c7a
GM
112612000-04-13 Gerd Moellmann <gerd@gnu.org>
11262
52283633 11263 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 11264
52283633 11265 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
11266
11267 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11268 as TERMCAP_OBJ.
11269
055a28c9
EZ
112702000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11271
11272 * fileio.c (a_write): Remove redundant semi-colons.
11273 (e_write): Return -1 if failed to write all the data.
11274 This fixes the changes made at 1999-12-15.
11275
f5c75033
DL
112762000-04-12 Dave Love <fx@gnu.org>
11277
11278 * fns.c (mapcar1): Test for null vals to support mapc.
11279 (Fmapc): New function.
11280
0c3cfc51
EZ
112812000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11282
11283 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11284 (IT_frame_up_to_date): Support the buffer local value of
11285 cursor-type, if defined.
11286
33465a31
DL
112872000-04-10 Dave Love <fx@gnu.org>
11288
11289 * editfns.c (preceding-char, following-char): Doc fix.
11290
6ed56568
KR
112912000-04-10 Ken Raeburn <raeburn@gnu.org>
11292
11293 * Makefile.in (temacs): Revert 2000-03-12 change.
11294
7cf80d4e
JR
112952000-04-10 Jason Rumney <jasonr@gnu.org>
11296
11297 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11298
34f3f342
GM
112992000-04-10 Gerd Moellmann <gerd@gnu.org>
11300
1a1b1895
GM
11301 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11302 area buffer, if it's not set up yet.
11303
34f3f342
GM
11304 * indent.c (compute_motion): Set immediate_quit.
11305
be0dbdab
GM
113062000-04-09 Gerd Moellmann <gerd@gnu.org>
11307
52283633 11308 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
11309 (realize_tty_face): Suppress boldness if colors are the inverse of
11310 the default colors, and tty_suppress_bold_inverse_default_colors_p
11311 is set.
11312 (Ftty_suppress_bold_inverse_default_colors): New function.
11313 (syms_of_xfaces): Defsubr it.
11314
be0dbdab
GM
11315 * buffer.c (Frestore_buffer_modified_p): New function.
11316 (syms_of_buffer): Defsubr it.
11317
e8413c3b
KR
113182000-04-08 Ken Raeburn <raeburn@gnu.org>
11319
87f67317
KR
11320 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11321 charset id (int) argument, not a charset (Lisp_Object).
11322
e8413c3b
KR
11323 * coding.h (code_convert_string): Declare.
11324 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11325 object, as the fourth argument to code_convert_string.
11326
52283633 11327 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
11328 (Fset_fontset_font): Use EQ to compare lisp objects.
11329
7c752c80
KR
113302000-04-05 Ken Raeburn <raeburn@gnu.org>
11331
c0333abc
KR
11332 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11333 a pointer that looks like a lisp object.
11334 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11335 zero, instead see whether it's an integer object, since they can't
11336 have intervals.
11337 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11338
52283633
SM
11339 * dispnew.c (allocate_matrices_for_frame_redisplay)
11340 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
11341 to convert between (unsigned) int values and lisp integers.
11342 * keyboard.c (read_key_sequence): Likewise.
11343 * lread.c (substitute_object_recurse): Likewise.
11344 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
11345 * minibuf.c (do_completion, Fminibuffer_complete_word)
11346 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
11347 * term.c (produce_special_glyphs): Likewise.
11348
11349 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11350 * print.c (print_preprocess, print_object): Likewise.
11351
11352 * search.c (compile_pattern): Use NILP when checking for nil.
11353
74e49b38
KR
11354 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11355 __OPTIMIZE__]: Provide a GNU C macro version that handles
11356 lisp-object unions.
11357 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11358 field, to better cope with ENABLE_CHECKING and calls that modify a
11359 Lisp_Object using its old value.
11360
685e5ed2
GM
113612000-04-04 Gerd Moellmann <gerd@gnu.org>
11362
c407c570
GM
11363 * window.c (compare_window_configurations): Signal an error
11364 if parameters C1 or C2 aren't window configurations.
11365
685e5ed2
GM
11366 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11367 AFTER_POTENTIAL_GC calls around calls to functions that can
11368 signal an error and thus invoke the debugger.
11369
587a49ab
GM
113702000-04-03 Gerd Moellmann <gerd@gnu.org>
11371
62f20204
GM
11372 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11373 an error if decoding fails.
11374
587a49ab
GM
11375 * keyboard.c (lispy_mouse_names): Variable removed.
11376 (Vlispy_mouse_stem): New variable.
11377 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11378 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11379 for any mouse button number. Increase size of mouse_syms and
11380 button_down_location as needed. Call modify_event_symbol with
11381 different arguments.
11382 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11383 Call modify_event_symbol with different arguments.
11384 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11385 for any button number. Call modify_event_symbol with different
11386 arguments.
11387 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11388 Accept a string for NAME_ALIST_OR_STEM.
11389
11390 * lisp.h (larger_vector): Add prototype.
11391
11392 * fns.c (larger_vector): Make externally visible.
11393
11394 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11395
2d1675e4
SM
113962000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11397
11398 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11399 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11400 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11401 we are between str1 and str2.
11402 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11403 (PATFETCH): Use `TRANSLATE'.
11404 (PATFETCH_RAW): Fetch multibyte char if applicable.
11405 (PATUNFETCH): Remove.
11406 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11407 When writing a char, write it directly into the pattern buffer rather
11408 than going needlessly through a temp char-array.
11409 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11410 multibyte magic and remove the useless `#ifdef emacs'.
11411 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11412 buffer.
11413
11414 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11415 conditional on `emacs'.
11416
11417 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11418
cc2d8c6b
KR
114192000-04-01 Ken Raeburn <raeburn@gnu.org>
11420
11421 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11422 non-union-type versions of XMARK and friends here, because XMARK
11423 and friends won't work on an integer field if NO_UNION_TYPE is not
11424 defined.
52283633 11425 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 11426
52283633 11427 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
11428 (syms_of_composite): Delete local var NARGS, pass an int as first
11429 argument to Fmake_hash_table.
11430
2387b382
KR
11431 * editfns.c (text_property_stickiness): Use NILP to test
11432 Lisp_Object boolean value.
11433 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
11434 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11435 problems reading from and changing the same lisp value in an
11436 XSETSTRING call.
11437
27660e89
GM
114382000-04-01 Gerd Moellmann <gerd@gnu.org>
11439
11440 * term.c (TN_no_color_video): New variable.
11441 (term_init): Intitialize TN_no_color_video.
11442 (enum no_color_bit): New enumeration.
11443 (MAY_USE_WITH_COLORS_P): New macro.
11444 (turn_on_face): Use it to determine if attributes may be used
11445 combined with colors.
11446
3578db3c
KR
114472000-04-01 Ken Raeburn <raeburn@gnu.org>
11448
11449 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 11450 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
11451 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11452 proper accessor macros.
11453 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11454 (grow_mini_window): Fix typo getting int value of root->height.
11455
6fc556fd
KR
11456 * xdisp.c (compute_string_pos): Fix order of arguments to
11457 string_pos_nchars_ahead.
11458 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11459 count arg to variable-arg routines like Frun_hook_with_args and
11460 Fformat.
587a49ab
GM
11461 (back_to_previous_visible_line_start)
11462 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
11463 fixed-arg routines like Fget_char_property and Fmake_string.
11464 (reconsider_clip_changes): Use XINT when comparing integer lisp
11465 objects, or passing them as int arguments.
587a49ab
GM
11466 (mark_window_display_accurate, insert_left_trunc_glyphs)
11467 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
11468 storing or passing integer values as lisp objects.
11469 (set_cursor_from_row, highlight_trailing_whitespace): Use
11470 INTEGERP, not implicit test against zero, for glyph object.
11471 (try_window_id): Don't use make_number when we want an int value.
11472
11473 * xfaces.c (xlfd_symbolic_value): Make last argument a
11474 Lisp_Object, to be consistent with callers.
11475 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11476 (lface_hash): Apply XFASTINT to lisp values before folding in.
11477
11478 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11479 fill in window width and height. Pass an int, not a lisp object,
11480 as first arg to Finsert.
11481
6e7b2457
GM
114822000-04-01 Gerd Moellmann <gerd@gnu.org>
11483
610d841e
GM
11484 * xfaces.c (realize_basic_faces): Block input while realizing
11485 the faces.
11486
6e7b2457
GM
11487 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11488
11489 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11490
aa110c0c
GM
114912000-03-31 Gerd Moellmann <gerd@gnu.org>
11492
11493 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 11494 or ASCII, handle case that per-char metric is null.
aa110c0c 11495
8801a864
KR
114962000-03-30 Ken Raeburn <raeburn@gnu.org>
11497
c6129d7e
KR
11498 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11499
52283633
SM
11500 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11501 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
11502 pointer, using eassert.
11503 * frame.h (XFRAME): Likewise.
11504
52283633
SM
11505 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11506 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11507 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 11508 * data.c (set_internal): Likewise.
52283633
SM
11509 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11510 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
11511 * fileio.c (auto_save_1): Likewise.
11512 * insdel.c (check_markers): Likewise.
11513 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11514 * undo.c (record_insert): Likewise.
11515 * vmsproc.c (child_sig): Likewise.
11516 * window.c (unshow_buffer, window_loop): Likewise.
11517 * xterm.c (x_erase_phys_cursor): Likewise.
11518
8e7af858
GM
115192000-03-30 Gerd Moellmann <gerd@gnu.org>
11520
11521 * xfns.c (free_image_cache): Free the cache structure itself
11522 last, after all its members have been freed.
11523
11524 * lisp.h (xstrdup): Add prototype.
11525
11526 * alloc.c (xstrdup): Moved here from xfaces.c.
11527 (allocating_for_lisp): Variable removed.
52283633 11528 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
11529
11530 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11531 of Fsymbol_value.
11532 (xstrdup): Moved to alloc.c.
11533
e0b8c689
KR
115342000-03-29 Ken Raeburn <raeburn@gnu.org>
11535
b96f9fb7
KR
11536 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11537
11538 * emacs.c (main): Fix sense of no-loadup test.
11539
e0b8c689
KR
11540 * config.in (ENABLE_CHECKING): Undef.
11541
11542 * lisp.h (struct interval): Replace "parent" field with a union of
11543 interval pointer and Lisp_Object; add new bitfield to use as
11544 discriminant. Change other flag fields to bitfields.
11545 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
11546 is defined and the supplied test fails, print a message and abort.
11547 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
11548
11549 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11550 pointers; abort if the value looks like a lisp object.
52283633
SM
11551 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11552 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
11553 Modify for new interval parent definition.
11554
52283633
SM
11555 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11556 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
11557 addressable lisp object in the interval structure.
11558 (die): New function.
11559 (suppress_checking): New variable.
11560
11561 * intervals.c (interval_start_pos): Just return 0 if there's no
11562 parent object.
11563
f83c5440
GM
115642000-03-29 Gerd Moellmann <gerd@gnu.org>
11565
11566 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11567 and earlier Emacs versions.
11568
11569 * keyboard.c (Ftop_level): Cancel busy-cursor.
11570
11571 * eval.c (call_debugger): Cancel busy-cursor.
11572
fdce64ff
KH
115732000-03-29 Kenichi Handa <handa@etl.go.jp>
11574
11575 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 11576 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 11577
f6a3f532
SM
115782000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11579
11580 * regex.c (analyse_first): New function obtained by ripping out most
11581 of re_compile_fastmap and generalizing it a little bit so that it
11582 can also just return whether a given (sub)pattern can match the empty
11583 string or not.
11584 (regex_compile): Use `analyse_first' to decide whether the loop-check
11585 needs to be done or not for *, +, *? and +? (the loop check is costly
11586 for non-greedy repetition).
11587 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11588
e9b309ac
DL
115892000-03-28 Dave Love <fx@gnu.org>
11590
52283633 11591 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 11592
e9b309ac
DL
11593 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11594
ed0767d8
SM
115952000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11596
11597 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11598 an expression.
11599 (enum re_opcode_t): Update description of succeed_n.
11600 (PATFETCH): Always define.
11601 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11602 operators, char classes, shy-groups and intervals).
11603 Optimize special cases of intervals so as to only use succeed_n and
11604 jump_n when really needed.
11605 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11606 that we don't have to handle the special cases any more.
11607 Simplify on_failure_jump handling as well.
11608
e11e7e46
JR
116092000-03-28 Jason Rumney <jasonr@gnu.org>
11610
11611 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11612
88faab89
GM
116132000-03-27 Gerd Moellmann <gerd@gnu.org>
11614
182ff242
GM
11615 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11616
11617 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 11618
182ff242
GM
11619 * alloc.c (mark_maybe_object): New function.
11620 (mark_memory): Use it.
11621 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11622 (setjmp_tested_p, longjmp_done): New variables.
11623 (test_setjmp): New function.
11624 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11625 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11626
c1005d06
GM
11627 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11628 to DEC_TEXT_POS and INC_TEXT_POS.
11629
11630 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11631 with parameter MULTIBYTE_P.
11632
52283633 11633 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 11634
7439e5b9 11635 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
11636 buffers because it looks for multibyte character byte sequences
11637 which don't exist in unibyte text.
7439e5b9 11638
d9c545da
GM
11639 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11640
11fd416e 11641 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
11642 [DEBUG_X_COLORS]: New functions.
11643 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11644
11645 * xfns.c (x_set_cursor_color): Get color reference counts right.
11646
11647 * xterm.c (x_copy_color): New function.
11648 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11649
11650 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11651 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11652 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11653 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11654 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11655 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11656 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11657 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11658 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11659 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11660
11fd416e
GM
11661 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11662 names for handling per-buffer variables.
d9c545da
GM
11663
11664 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11665 instead of MAX_BUFFER_LOCAL_VARS.
11666 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11667
11668 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11669
88faab89
GM
11670 * xfns.c (x_specified_cursor_type): New function.
11671 (x_set_cursor_type): Use it.
11672
11673 * buffer.h (struct buffer): Add cursor_type.
11674
d80f42b7
SM
116752000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11676
11677 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
11678 (print_partial_compiled_pattern, re_compile_fastmap):
11679 Handle new opcode.
d80f42b7
SM
11680 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11681 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11682 executing it as well as when popping it off the stack to find infinite
11683 loops in non-greedy repetition operators.
11684
89e80928
GM
116852000-03-26 Gerd Moellmann <gerd@gnu.org>
11686
3d4ff2dd
GM
11687 * doc.c (Qfunction_documentation): New variable.
11688 (syms_of_doc): Initialize Qfunction_documentation.
11689 (Fdocumentation): If FUNCTION is a symbol with non-nil
11690 `function-documentation' property, return a documentation derived
11691 from that.
11692
bd96bd79
GM
11693 * buffer.c (syms_of_buffer): Add default-cursor-type.
11694 (init_buffer_once): Don't let cursor_type have a local value
11695 in every buffer.
11696
19d1bc27
GM
11697 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11698 on buffer-local value of cursor_type.
11699 (x_draw_bar_cursor): Add parameter WIDTH.
11700
11701 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11702 (init_buffer_once): Set default cursor_type value to t.
11703 Mark cursor_type as local everywhere.
11704 (syms_of_buffer): New per-buffer variable cursor-type.
11705
89e80928
GM
11706 * buffer.h (struct buffer): Remove member local_var_flags,
11707 add local_flags.
11708 (MAX_BUFFER_LOCAL_VARS): New macro.
11709 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11710 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11711 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11712 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11713
52283633 11714 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
11715
11716 * category.c (Fset_category_table): Use new macros for per-buffer
11717 variables.
11718
11719 * buffer.c (buffer_permanent_local_flags): Make a char array.
11720 (max_buffer_local_idx): New variable.
11721 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11722 for new handling of per-buffer variables.
11723 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11724 (init_buffer_once): Initialize per-buffer vars differently.
11725 Set max_buffer_local_idx.
11726
11727 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11728 variables.
11729
52283633 11730 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
11731
11732 * data.c (do_symval_forwarding, store_symval_forwarding)
11733 (find_symbol_value, set_internal, default_value, Fset_default)
11734 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11735 per-buffer variables.
11736
11737 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11738
9a0dd3dc
GM
117392000-03-24 Gerd Moellmann <gerd@gnu.org>
11740
b68c375f
GM
11741 * xterm.c (x_term_init): Unblock input around call1 of
11742 Qvendor_specific_keysyms.
11743
9a0dd3dc
GM
11744 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11745 (find_defun_start): Consider an open parenthesis in column 0
11746 a defun start only if open_paren_in_column_0_is_defun_start is set.
11747 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11748
7973e637
SM
117492000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11750
11751 * eval.c (Fautoload): Add entry in load-history (if after dump).
11752 * lread.c (load-history): Update docstring.
11753
39210e90
GM
117542000-03-24 Gerd Moellmann <gerd@gnu.org>
11755
11756 * indent.c (Fvertical_motion): Always use the current buffer.
11757 Temporarily change the window's buffer, if necessary.
11758
72db3ab5
GM
117592000-03-23 Gerd Moellmann <gerd@gnu.org>
11760
11761 * xterm.c (fast_find_position): Make sure not to consider rows
11762 not visible in the window.
11763
990b2375
SM
117642000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11765
11766 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11767 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11768
ff4df011
JR
117692000-03-22 Jason Rumney <jasonr@gnu.org>
11770
11771 * w32menu.c (single_submenu): Set help string to NULL if none.
11772 (w32_menu_show): Set help string correctly.
11773 (add-menu-item): Set help string in MIIM_DATA for menu item.
11774 Load SetMenuItemInfoA explicitly.
11775 (w32_menu_display_help): New function.
427ec082 11776
ff4df011
JR
11777 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11778 (QCdata): Moved to xdisp.c.
11779
11780 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11781 (Vw32_charset_to_codepage_alist): Removed.
11782 (Vw32_charset_info_alist): New variable.
52283633
SM
11783 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11784 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11785 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
11786 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11787 with TODO comment.
11788 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11789 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11790 Define Vw32_charset_info_alist and w32_charset symbols.
11791
117922000-03-22 Jason Rumney <jasonr@gnu.org>
11793
11794 * makefile.nt (w32bdf.obj): Update dependencies.
11795
11796 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11797
11798 * w32fns.c: Include fontset.h after dispextern.h.
11799 (Fx_create_frame): Do not create fontset.
11800 (w32_load_system_font): Doc fix.
11801 (Fx_close_connection): Free full_name if it is not shared.
11802
11803 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
11804 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11805 Callers updated.
ff4df011
JR
11806 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11807 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11808 (w32_font_is_double_byte): New function, needs body.
11809 (x_append_glyph): Set glyph->glyph_not_available_p.
11810 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11811 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11812 character, convert it to a unibyte character.
11813 (struct glyph_string): Delete member `charset'.
11814 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11815 calculating it is found.
11816 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11817 the case that per char metric is not available correctly.
11818 (x_fill_glyph_string): Handle the case that the specific glyph is
11819 not available correctly.
11820 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11821 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11822 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11823 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11824 fontset. Don't call FS_LOAD_FONT.
11825
439d5cb4
KR
118262000-03-22 Ken Raeburn <raeburn@gnu.org>
11827
11828 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11829 (INT_LISPLIKE): New macro.
11830 (NULL_INTERVAL_P): Use it.
52283633
SM
11831 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11832 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11833 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
11834
11835 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11836 explicit references to "parent" field of struct interval and
11837 associated unclean type conversions.
52283633
SM
11838 * intervals.c (create_root_interval, root_interval, rotate_right)
11839 (rotate_left, balance_possible_root_interval, split_interval_right)
11840 (split_interval_left, interval_start_pos, find_interval)
11841 (next_interval, previous_interval, update_interval)
11842 (adjust_intervals_for_insertion, delete_node, delete_interval)
11843 (adjust_intervals_for_deletion, merge_interval_right)
11844 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11845 (copy_intervals_to_string): Likewise.
439d5cb4
KR
11846 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11847 Likewise.
11848 * syntax.c (update_syntax_table): Likewise.
11849
11850 * intervals.c (reproduce_tree_obj): New function, like
11851 reproduce_tree but takes a Lisp_Object for the parent. Declare
11852 with prototype.
11853 (graft_intervals_into_buffer): Use it when appropriate.
11854 (reproduce_tree): Declare with prototype.
11855 (balance_possible_root_interval): Check that the parent is a lisp
11856 object before trying to examine its type.
11857
ee1c5b21
GM
118582000-03-22 Gerd Moellmann <gerd@gnu.org>
11859
11860 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11861 as strings only if both are known to be strings.
11862
11863 * s/openbsd.h (LIBS_TERMCAP): Undef.
11864
1fb352e0
SM
118652000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11866
11867 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11868 definitions for non-Emacs compilation.
11869 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11870 outside of `#ifdef emacs'.
11871 (print_partial_compiled_pattern): Update.
11872 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11873 (re_compile_fastmap): Merge handling of charset and charset_not (for
11874 emacs and non-emacs compilation as well).
11875 Similarly for (not)categoryspec and (not)syntaxspec.
11876 Don't use the fastmap when reaching `anychar' since the added
11877 complexity is not justified.
11878 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11879 and (not)syntaxspec. Merge (not)categoryspec.
11880
fdaa1f77
KH
118812000-03-22 Kenichi Handa <handa@etl.go.jp>
11882
52283633
SM
11883 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11884 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 11885 --without-x.
fdaa1f77 11886
d152fb46
DL
118872000-03-21 Dave Love <fx@gnu.org>
11888
11889 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11890 doc string.
11891
d2cafc8c
GM
118922000-03-21 Gerd Moellmann <gerd@gnu.org>
11893
11894 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11895 (lface_fully_specified_p): Don't check contents of
11896 LFACE_FONT_INDEX because that attribute is optional.
11897 (realize_x_face): Remove now unwarranted xassert.
11898
9111d4b5
KH
118992000-03-21 Kenichi HANDA <handa@etl.go.jp>
11900
11901 The following changes are to make font selection based on
11902 characters, not charset. In addition, they recover fontset
11903 facilities while utilizing the new font selection mechanism.
11904
6c4bfdc0
KH
11905 * Makefile.in (fontset.o): Depend on dispextern.h.
11906
11907 * alloc.c (mark_face_cache): Don't mark face->registry.
11908
9111d4b5
KH
11909 * dispextern.h (struct glyph): New member glyph_not_available_p.
11910 Use 22 bits for face_id.
11911 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11912 (struct face): Delete member registry, new member ascii_face.
11913 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11914 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11915 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 11916 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
11917
11918 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11919 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
11920 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11921 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 11922 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
11923 (fs_free_face_fontset, fontset_font_pattern)
11924 (face_suitable_for_char_p, face_for_char)
11925 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
11926 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11927 (FS_LOAD_FACE_FONT): New macro.
11928
11929 * fontset.c: All codes rewritten or adjusted for the change of
11930 fontset implementation. Now fontset is represented by char table.
52283633
SM
11931 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11932 Variables removed.
9111d4b5 11933 (my_strcasecmp): Function removed.
52283633 11934 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 11935 (AREF, ASIZE): New macros.
52283633
SM
11936 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11937 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11938 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11939 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11940 (fontset_id_valid_p, font_family_registry, fontset_name)
11941 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11942 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
11943 New functions.
11944 (fs_load_font): New arg FACE. Caller changed.
11945 (fs_query_fontset): Argument changed. Caller changed.
11946 (Fquery_fontset): call fs_query_fontset.
11947 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11948 Functions removed.
52283633
SM
11949 (clear_fontset_elements, check_registry_encoding)
11950 (check_fontset_name): New functions.
9111d4b5
KH
11951 (syms_of_fontset): Set char-table-extra-slots property of fontset
11952 to 3. Staticpro and initialize Vfontset_table and
11953 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11954
11955 * frame.h (struct frame): Member `fontset_data' removed.
11956 (FRAME_FONTSET_DATA): Macro removed.
11957
11958 * frame.c (make_frame): Don't allocate f->fontset_data.
11959 (Fdelete_frame): Don't free f->fontset_data.
11960
6c4bfdc0
KH
11961 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11962
9111d4b5
KH
11963 * xdisp.c (charset_at_position): Function removed.
11964 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
11965 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11966 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
11967 Likewise.
11968 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11969 FACE_FOR_CHARSET.
52283633
SM
11970 (get_next_display_element, append_space)
11971 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
11972
11973 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11974 Variables removed.
11975 (clear_font_table, frame_update_line_height, load_face_font):
11976 Adjusted for the change of fontset implementation.
11977 (load_face_fontset_font): Function removed.
11978 (pixel_point_size): New function.
11979 (font_list): Argument type changed. Caller changed.
11980 (LFACE_FONT): New macro.
11981 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11982 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11983 Lisp_Object. Determine the font name by actually loading a font
11984 by the specified pattern. Set LFACE_FONT (lface) to the specified
11985 pattern. Even if a font is not found, don't try alternatives.
11986 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11987 (set_font_frame_param): If `font' is specified in lface, use it.
11988 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11989 (lface_same_font_attributes_p): Likewise.
11990 (make_realized_face): Arguent changed. Caller changed. Set
11991 face->ascii_face to face itself.
11992 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
11993 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11994 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
11995 (free_realized_multibyte_face): New function.
11996 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11997 changed. Caller changed.
11998 (try_font_list): Argument type changed.
11999 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12000 (choose_face_font): Argument changed. Handle fontset properly.
12001 (choose_face_fontset_font): Function removed.
12002 (realize_default_face, realize_named_face): Don't remove the
12003 former face here.
12004 (realize_face): Argument changed. Caller changed. Remove face
52283633 12005 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
12006 (realize_x_face): Argument changed. Caller changed. For a
12007 multibyte character, share fontset with base_face. For a single
52283633 12008 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
12009 (realize_tty_face): Argument changed. Caller changed.
12010 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12011 (face_at_buffer_position): Don't check multibyte_p for returning
12012 DEFAULT_FACE_ID.
12013 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12014 FACE_SUITABLE_FOR_CHARSET_P.
12015 (syms_of_xfaces): Remove code for Qx_charset_registry and
12016 Vface_default_registry.
12017
6c4bfdc0
KH
12018 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12019 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
12020 (x_per_char_metric): Don't try FONT->default_char. Even if
12021 pcm->width is zero, glyph bits may exist.
12022 (x_encode_char): Always initialize char2b->byte1.
12023 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 12024 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
12025 (x_append_glyph): Set glyph->glyph_not_available_p.
12026 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12027 it->charset. Handle the case that per char metric is not
12028 available. If it->multibyte_p is zero and it->c is a multibyte
12029 character, convert it to a unibyte character.
12030 (struct glyph_string): Delete member `charset'.
12031 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12032 the case that per char metric is not available correctly.
12033 (x_fill_glyph_string): Handle the case that the specific glyph is
12034 not available correctly.
12035 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12036 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12037 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12038 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12039 fontset. Don't call FS_LOAD_FONT.
12040
12041 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12042 (x_create_tip_frame): Likewise.
12043 (Fx_close_connection): Free full_name of font_info.
12044
12045 * fns.c (optimize_sub_char_table): New function.
12046 (Foptimize_char_table): New function.
12047 (syms_of_fns): Defsubr Soptimize_char_table.
12048
b33dd3b0
GM
120492000-03-20 Gerd Moellmann <gerd@gnu.org>
12050
12051 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12052 only if buffer is displayed in some window.
12053
12054 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12055 (try_window_reusing_current_matrix): Don't call scroll run
12056 function if run's current and desired position are the same;
12057 this prevents cursor flickering.
12058
4e8a9132
SM
120592000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12060
12061 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12062
12063 * regex.c (RE_STRING_CHAR): New macro.
12064 (GET_CHAR_AFER_2): Remove.
12065 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12066 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12067 (print_partial_compiled_pattern, re_compile_fastmap)
12068 (re_match_2_internal): Remove on_failure_jump_exclusive.
12069 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12070 optimization only need to work for * (ie. can use of_keep_string_jump).
12071 Remove the special case for .*\n since it is now covered by the general
12072 optimization.
12073 (re_search_2): Don't bother with `room'.
12074 (skip_one_char): New function.
12075 (skip_noops): Simplify since `memory' is not needed any more.
12076 (mutually_exclusive_p): Restructure slightly to use `switch' and
12077 add handling for "all" remaining cases.
12078 (re_match_2_internal): Change on_failure_jump_smart to use
12079 on_failure_keep_string_jump (and redirect the end-of-loop jump)
12080 rather than on_failure_jump_exclusive.
12081
2136fdd4
GM
120822000-03-19 Gerd Moellmann <gerd@gnu.org>
12083
12084 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
12085 number of bits per RGB because it's everywhere used as the depth
12086 of the visual.
12087
12088 * term.c (calculate_costs): Remove code dealing with X frames.
12089
18e21ce8 120902000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
12091
12092 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
12093
d7b511c4
GM
120942000-03-18 Gerd Moellmann <gerd@gnu.org>
12095
12096 * lread.c (read_integer): Unread the last char not consumed.
12097
16b5d424
GM
120982000-03-17 Gerd Moellmann <gerd@gnu.org>
12099
12100 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 12101 which are in the process of being deleted.
16b5d424 12102
1fa28578
GM
121032000-03-16 Gerd Moellmann <gerd@gnu.org>
12104
83488cce
GM
12105 * Makefile.in (mostlyclean): Add `*.core'.
12106 (clean): Add `bootstrap-emacs'.
12107
1fa28578
GM
12108 * lread.c (read_integer): New function.
12109 (read1): Support read syntax #o, #x, #b, #r.
12110
99633e97
SM
121112000-03-15 Stefan Monnier <monnier@cs.yale.edu>
12112
1fa28578
GM
12113 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
12114 make sure POINTER_TO_OFFSET gives the same value before and after
12115 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
12116 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
12117 (debug): Now only active if > 0 rather than if != 0.
12118 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
12119 (print_partial_compiled_pattern): Add missing `succeed' case. Use
12120 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
12121 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
12122 (store_op1, store_op2, insert_op1, insert_op2)
12123 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
12124 (group_in_compile_stack): Move to after its arg's types are
12125 declared and add a prototype.
99633e97 12126 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 12127 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 12128 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
12129 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
12130 indentation of the greedy-op and shy-group code.
99633e97
SM
12131 (at_(beg|end)line_loc_p): Fix argument's types.
12132 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
12133 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
12134 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
12135 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
12136 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
12137 QUIT unconditionally.
99633e97 12138
699238d9
GM
121392000-03-15 Gerd Moellmann <gerd@gnu.org>
12140
12141 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
12142 a sole completion.
12143
12144 * process.c (send_process): Add a hint that the function
12145 can call Lisp code to its comment.
12146
12147 * lread.c (load_dangerous_libraries): New variable.
12148 (Vbytecomp_version_regexp): New variable.
12149 (safe_to_load_p): New function.
12150 (Fload): Handle files not compiled with Emacs specially.
12151 (syms_of_lread): New Lisp variable load-dangerous-libraries.
12152
34e23e5a
GM
121532000-03-14 Gerd Moellmann <gerd@gnu.org>
12154
9c763cca
GM
12155 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
12156
12157 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
12158 support functions only if HAVE_X11R6_XIM is defined.
12159 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
12160
12161 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
12162
12163 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 12164 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
12165 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12166
12167 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12168 (HAVE_X11R6_XIM): Define.
12169
12170 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12171
34e23e5a
GM
12172 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12173 If set, call XSynchronize.
12174
66f0296e
SM
121752000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12176
34e23e5a
GM
12177 * regex.c: Declare a new type `re_char' used throughout the code
12178 for the string char type. It's `const unsigned char' to match the
12179 rest of Emacs. Consistently make sure all pointers to strings use
52283633 12180 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 12181 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
12182 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12183 code duplication.
66f0296e
SM
12184
12185 * charset.h (GET_CHAR_AFTER_2): Remove.
12186 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12187
854a025c
KR
121882000-03-12 Ken Raeburn <raeburn@gnu.org>
12189
12190 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12191 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12192 of them try to use backquotes.
12193
b9d2c7e2
DL
121942000-03-12 Dave Love <fx@gnu.org>
12195
12196 * unexelf.c: Restore changes of 1999-10-19.
12197 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12198 fix its type and alignment; copy it from current process.
12199
5e5dff44
GM
122002000-03-12 Gerd Moellmann <gerd@gnu.org>
12201
9b2f3c38
GM
12202 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12203 has been found. Fix bug not computing timer's predecessor.
12204
427ec082 12205 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
12206 file name.
12207
e1cff360
GM
12208 * window.c (Fsave_window_excursion): Doc fix.
12209
52283633 12210 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 12211
e411ce4b
EZ
122122000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12213
12214 * msdos.c (vga_installed): New function, code moved from
12215 dos_set_window_size.
12216 (Qbar, Qcursor_type, outside_cursor): New variables.
12217 (syms_of_msdos): Intern and staticpro them.
12218 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12219 shape used outside Emacs when called for the first time.
12220 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12221 cursor shape used outside Emacs.
12222 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12223 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12224 type has changed.
12225 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12226 parameters specify the cursor. Make qreverse a global
12227 variable (renamed to Qreverse).
12228
80460654
GM
122292000-03-09 Gerd Moellmann <gerd@gnu.org>
12230
12231 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12232
95cd4c40
SM
122332000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12234
12235 This is a big redesign of failure-stack and register handling, prompted
12236 by bugs revealed when trying to add shy-groups. Overall, what happened
12237 is that loops are now structured a little differently, groups can be
12238 shy and the code is a little simpler.
12239
12240 * regex.h: Update the copyright.
12241 (RE_SHY_GROUPS): New value.
12242 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12243 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12244
80460654
GM
12245 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12246 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12247 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12248 for (start|stop)_memory since they now only take one argument (the
12249 second has becomes unnecessary).
52283633 12250 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
12251 (print_compiled_pattern): Use %ld to printf long ints and flush to
12252 make debugging a little easier.
95cd4c40
SM
12253 (union fail_stack_elt): Make the integer unsigned.
12254 (struct fail_stack_type): Add a `frame' element.
12255 (INIT_FAIL_STACK): Init `frame' as well.
12256 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12257 (DEBUG_PUSH, DEBUG_POP): Remove.
12258 (NUM_REG_ITEMS): Remove.
12259 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
12260 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12261 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 12262 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
12263 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12264 New macros.
80460654
GM
12265 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12266 address pushed is not the destination of the jump but the source
12267 of it instead.
95cd4c40
SM
12268 (NUM_FAILURE_ITEMS): Remove.
12269 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
12270 registers before the actual failure point). Don't hardcode any
12271 meaning for str==NULL anymore.
95cd4c40 12272 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
12273 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12274 Remove.
95cd4c40
SM
12275 (REG_UNSET_VALUE): Use NULL (why not?).
12276 (compile_range): Remove declaration since it doesn't exist.
12277 (struct compile_stack_elt_t): Remove inner_group_offset.
12278 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12279 (regex_grow_registers): Remove dead code.
12280 (FIXUP_ALT_JUMP): New macro.
80460654
GM
12281 (regex_compile): Add shy-groups Change loops to use
12282 on_failure_jump_smart&jump instead of
12283 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12284 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12285 variable to me). Use `jump' instead of `jump_past_alt' and don't
12286 bother with push_dummy_failure in alternatives since it is now
12287 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12288 emacs' for (re)allocating the stack.
12289 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12290 from loop when bufp->can_be_null rather than jumping to `done'.
12291 Avoid jumping backwards so as to ensure termination. Use
12292 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12293 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 12294 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
12295 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12296 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
12297 (lowest_active_reg, highest_active_reg)
12298 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
12299 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12300 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12301 variables. Push register (in `start_memory') on the stack rather
12302 than storing it in old_reg(start|end). Remove the cycle detection
12303 from `stop_memory', replaced by the use of on_failure_jump_loop
12304 for greedy loops. Add code for the new on_failure_jump_<foo>.
12305 Remove ad-hoc code in `on_failure_jump' to push more registers in
12306 the case of a loop. Take out code from `maybe_pop_jump' into
12307 separate functions and adapt it to the semantics of
12308 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12309 and push_dummy_failure. Remove dummy_failure handling and
12310 handling of `failures to jump to on_failure_jump' (this last one
12311 was already dead code, it seems).
12312 (group_match_null_string_p, alt_match_null_string_p)
12313 (common_op_match_null_string_p): Remove.
95cd4c40 12314
7397acc4
DL
123152000-03-08 Dave Love <fx@gnu.org>
12316
12317 * config.in: Don't depend on __STDC__ for volatile.
12318 Add POINTER_TYPE, PTR, PROTOTYPES.
12319
12320 * hftctl.c, strftime.c: Use PROTOTYPES.
12321 * eval.c (find_handler_clause): Likewise.
12322
12323 * mem-limits.h: Use POINTER_TYPE.
12324
12325 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12326 (memory_warnings): Declare using POINTER_TYPE.
12327
5e91ff9e
GM
123282000-03-08 Gerd Moellmann <gerd@gnu.org>
12329
feab4fba
GM
12330 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12331
52283633 12332 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 12333
5e91ff9e
GM
12334 * xfns.c: Remove obsolete code in #if 0.
12335 (Fx_focus_frame): New function.
12336
a735b7e1
KH
123372000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12338
12339 * coding.c (coding_category_name): Add coding-category-utf-8,
12340 coding-category-utf-16-be, coding-category-utf-16-le.
12341 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12342 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12343 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12344 (detect_coding_utf_8): New function.
12345 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12346 UTF_16_LOW_SURROGATE_P): New macros.
12347 (detect_coding_utf_16): New function
12348 (detect_coding_mask): When priorities are specified, skip any
12349 categories that have `nil' coding-system. Fix bug of returning
12350 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12351 returns a mask not set in PRIORITIES.
12352 (detect_eol_type_in_2_octet_form): New function.
12353 (detect_eol): selects detect_eol_type_XXX to call according to
12354 cooding->category_idx.
12355 (detect_coding_system): Remove `nil' coding-system in the result.
12356 (Fupdate_coding_systems_internal): Update all coding-categories.
12357
52283633
SM
12358 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12359 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12360 New macros.
12361 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12362 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12363 (CODING_CATEGORY_IDX_UTF_16_LE)
12364 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12365 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
12366 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12367 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12368
9994cc69
GM
123692000-03-07 Gerd Moellmann <gerd@gnu.org>
12370
e9b4e5ff
GM
12371 * doc.c (Fdocumentation_property): If value is not a string,
12372 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12373
f7daf1e1
GM
12374 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12375 close the display with XtCloseDisplay. This caused a bus error
12376 on OpenWindows.
12377
9994cc69
GM
12378 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12379 complete but not unique.
12380
4336c705
GM
123812000-03-06 Gerd Moellmann <gerd@gnu.org>
12382
18bb0684
GM
12383 * process.c (send_process): Remove local variable `procname' that
12384 might become invalid when a GC happens. Instead, access the
12385 process name slot directly.
12386
4336c705
GM
12387 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12388 orig_height if set.
12389
12390 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12391 orig_height if set.
12392
515d0d0e
EZ
123932000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12394
12395 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12396 glyph matrices have been freed.
12397
100b3cbb
GM
123982000-03-05 Gerd Moellmann <gerd@gnu.org>
12399
50df5e5a 12400 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 12401 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
12402
12403 * xfns.c (QCdata): Moved to xdisp.c.
12404
12405 * xdisp.c (QCdata): Moved here from xfns.c.
12406 (syms_of_xdisp): Initialize QCdata.
12407
12408 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12409
12410 * window.c (coordinates_in_window): Use
12411 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12412 FRAME_INTERNAL_BORDER_WIDTH.
12413
100b3cbb 12414 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 12415 it is obviously invalid.
100b3cbb
GM
12416
12417 * xterm.c (x_term_init): Create a colormap if not using the
12418 default visual.
12419
12420 * xterm.h (select_visual): Change prototype.
12421
12422 * xfns.c (select_visual): Rewritten. Recognize user-specified
12423 visual classes.
12424 (visual_classes): New variable.
12425
64d739c4
GM
124262000-03-04 Gerd Moellmann <gerd@gnu.org>
12427
12428 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12429 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12430 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 12431 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
12432 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12433 XtNcolormap resources.
12434 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12435 (Fx_create_frame): Initialize color members of x_output structure.
12436 (xpm_load): Pass colormap to XPM lib.
12437
12438 * xfaces.c (x_free_colors): Access colormap of frame using
12439 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12440 when default colormap is used.
12441
12442 * xterm.c (x_term_init): Set Colormap member of x_display_info
12443 structure. Copy colormap if resource `privateColormap' is
12444 specified (PseudoColor only).
12445 (x_setup_relief_color): Access colormap of frame using
12446 FRAME_X_COLORMAP.
12447
12448 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12449 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12450
c3cee013
JR
124512000-03-04 Jason Rumney <jasonr@gnu.org>
12452
12453 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12454 other non-platform-specific equivalents.
64d739c4 12455 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
12456 specific functions and macros as their w32 equivalents where
12457 non-platform-specifics are not available.
12458 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12459 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12460 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12461 (frame_update_line_height): Use macros to access f->output_data.
12462 (defined_color): Remove FIXME comments; fixed.
12463 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12464 into #ifdef blocks. Add WINDOWSNT blocks.
12465 (Fx_list_fonts): Use macros for accessing font data.
12466 (set_lface_from_font_name): Different default fonts for X and
12467 WINDOWSNT.
12468 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12469 scalable for backward compatibility.
64d739c4 12470 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
12471 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12472
64d739c4 12473 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
12474 syms_of_w32faces.
12475
12476 * makefile.nt (w32faces.obj): Remove.
12477 (xfaces.obj): Add.
12478
807cc41c
JR
124792000-03-03 Jason Rumney <jasonr@gnu.org>
12480
12481 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12482 correct parameters.
12483
0007072a
KR
124842000-03-03 Ken Raeburn <raeburn@gnu.org>
12485
12486 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12487 standard ELF definitions here if the system header does not.
12488
71a6ba55
GM
124892000-03-03 Gerd Moellmann <gerd@gnu.org>
12490
12491 * xterm.c (PER_CHAR_METRIC): Removed.
12492 (x_per_char_metric_1, x_default_char): New functions.
12493 (x_per_char_metric): If font's default char is invalid, return
12494 metrics of a suitably chosen usable default char.
12495 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
12496 char, replace occurrences of unprintable chars with a suitably
12497 chosen usable default char.
71a6ba55 12498
900fa1f1
GM
124992000-03-02 Gerd Moellmann <gerd@gnu.org>
12500
42f55fe0
GM
12501 * xterm.c (note_mouse_highlight): Return quickly if frame's
12502 glyph matrices have been freed.
12503
12504 * dispnew.c (free_glyphs): Block input while freeing matrices.
12505
900fa1f1
GM
12506 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12507
52283633
SM
12508 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12509 Use x_free_colors.
900fa1f1
GM
12510
12511 * dispextern.h (x_free_colors): Add prototype.
12512
12513 * xfaces.c (x_free_colors): New function.
12514 (unload_color, free_face_colors): Use it.
12515
2f950292
EZ
125162000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12517
12518 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12519
12520 * window.c [MSDOS]: Include msdos.h.
12521
54d04320
DL
125222000-03-02 Dave Love <fx@gnu.org>
12523
12524 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12525
12526 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12527 set C_OPTIMIZE_SWITCH for gcc.
12528
0ba93ac4
KH
125292000-03-02 Kenichi Handa <handa@etl.go.jp>
12530
12531 * coding.c (coding_save_composition): Be sure to allocate
12532 composition data area in coding even if there's no composition in
12533 the current run.
12534
a2bc11d4
JR
125352000-03-01 Jason Rumney <jasonr@gnu.org>
12536
12537 * w32term.c: Equivalent changes to those made to xterm.c on
12538 2000-02-25 and 2000-02-24.
12539
12540 * w32fns.c: Equivalent changes to those made to xfns.c on
12541 2000-02-25 and 2000-02-21.
12542
12543 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12544 correct line-end convention is followed.
12545
12546 * w32menu.c [HAVE_BOXES]: Remove #undef.
12547 (single_keymap_panes): Remove code for simulating checkmarks.
12548 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12549 Remove code for drawing simulated checkmarks.
12550 (w32_menu_show): make unibyte help string correctly.
12551 (add_menu_item): draw standard Windows checkmarks. Draw radio
12552 buttons as radio buttons if possible.
12553
72d19d75
GM
125542000-03-01 Gerd Moellmann <gerd@gnu.org>
12555
2df636f4
GM
12556 * sysdep.c (start_of_text): Don't define this function for NetBSD
12557 with ELF.
12558
427ec082 12559 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
12560 Don't define.
12561 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12562 (LINKER): Don't undef if __NetBSD__ is defined.
12563
12564 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12565
12566 * fileio.c [__NetBSD__]: Define `unix'.
12567
72d19d75
GM
12568 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12569
ed4d0512
GM
125702000-02-29 Gerd Moellmann <gerd@gnu.org>
12571
50b1039f
GM
12572 * atimer.c (start_atimer): Don't abort when timers are stopped.
12573 (append_atimer_lists): New function.
12574 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12575 arbitrary lists of stopped and running atimers.
12576
ed4d0512
GM
12577 * atimer.c (cancel_atimer): Handle canceling an atimer when
12578 some timers are stopped.
12579
12580 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12581 after canceling it.
12582
12583 * fns.c (maybe_resize_hash_table): Handle case of new size
12584 coming out as being the same as old size.
12585
387023ee
JR
125862000-02-27 Jason Rumney <jasonr@gnu.org>
12587
12588 * makefile.nt: Add atimer.h to dependencies.
12589 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12590 * w32console.c: Only disable window system features for dispextern.h
12591 (initialize_w32_display): Build a display info for the console.
12592 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12593 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12594 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12595 as 2 button mice.
12596 * w32gui.h (struct W32FontStruct): Revert last change after change
12597 to xdisp.c.
12598 * w32menu.c (single_submenu): Set up help string.
12599 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12600 (w32_dialog_show): Set up help string.
12601 * w32term.c (w32_display_info_for_display): Remove unused function.
12602 (w32_draw_bitmap): Use pre-built bitmaps.
12603 (w32_initialize_display_info): New function to initialize parts of
12604 display info that are common to both GUI and console frames.
12605 (w32_term_init): Use w32_initialize_display_info. Do not set
12606 Vw32_num_mouse_buttons here, as it is not called for console
12607 frames. Build bitmaps for indicating truncated lines etc.
12608 (x_delete_display): Destroy pre-built bitmaps.
12609 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12610 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12611
4516715a
DL
126122000-02-27 Dave Love <fx@gnu.org>
12613
12614 * lisp.h: Add a bunch of prototypes.
12615
171ca836
KH
126162000-02-26 Kenichi Handa <handa@etl.go.jp>
12617
12618 * keyboard.c (read_char): Set `usec' correctly.
12619
4013921d
KH
126202000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12621
12622 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12623 `lambda', set reg[RRR] to the map index.
12624 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12625 reg[RRR] to 0. Otherwise, set it to -1.
12626
9244a058
GM
126272000-02-25 Gerd Moellmann <gerd@gnu.org>
12628
2df636f4 12629 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 12630
18e21ce8 126312000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 12632
f43d79c1
GM
12633 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12634 and contains a `:', prepend `/:'.
12635
12636 * window.c (select_window_1): If selected_window is nil,
12637 don't "swap out" the buffer's point.
12638 (Fset_window_configuration): Set selected_window to nil
12639 before calling Fselect_window.
12640 (unshow_buffer): Don't set point in buffer from window's point
12641 if another more recently selected window also shows the buffer.
12642
bed0c171
GM
126432000-02-25 Gerd Moellmann <gerd@gnu.org>
12644
449c3c52
GM
12645 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12646
f5b58615
GM
12647 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12648 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
12649 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12650 New variables.
f5b58615
GM
12651 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12652 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12653 (hide_busy_cursor): New functions.
12654 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12655
12656 * minibuf.c (read_minibuf): Cancel busy-cursor.
12657
12658 * keyboard.c (command_loop_1): Call start_busy_cursor before
12659 Fcommand_execute and cancel_busy_cursor after it.
12660 (timer_check): Remove busy-cursor code.
12661 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12662 cursor timer.
12663
12664 * process.c (wait_reading_process_input): Remove busy-cursor code.
12665
12666 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12667 Fx_hide_busy_cursor.
12668
12669 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12670 Remove prototyoes.
12671 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12672
12673 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12674
12675 * xterm.c (XTread_socket): Remove busy-cursor code.
12676
4eb8436f
GM
12677 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12678 (build_frame_matrix_from_leaf_window): Put code handling
12679 glyph row's not being a slice of a frame row in #if 0.
12680 (sync_window_with_frame_matrix_rows): New function.
12681 (frame_row_to_window): New function.
12682 (mirror_line_dance): Handle copies between windows.
12683
3cb65b0e
GM
12684 * lread.c (Fload): Use `xfree' instead of `free'.
12685 (init_obarray): Use `xmalloc' instead of `malloc'.
12686
bed0c171
GM
12687 * window.c (Fset_window_buffer): Set WINDOW to the window
12688 after decoding.
2add4349
GM
12689 (coordinates_in_window): Take frame's internal border width
12690 into account.
bed0c171 12691
42088c12
GM
126922000-02-24 Gerd Moellmann <gerd@gnu.org>
12693
12694 * xterm.c (x_display_and_set_cursor): Display cursor of
12695 non-selected windows depending on the setting of
12696 cursor_in_non_selected_windows.
12697
12698 * xdisp.c (cursor_in_non_selected_windows): New variable.
12699 (syms_of_xdisp): DEFVAR_BOOL it.
12700
d1e103b2
GM
127012000-02-23 Gerd Moellmann <gerd@gnu.org>
12702
723e779c
GM
12703 * data.c (Fstring_to_number): If number is greater than what
12704 fits into an integer, return a float.
12705
d1e103b2
GM
12706 * eval.c (specbind): Remove references to
12707 keyword_symbols_constant_flag.
12708
12709 * data.c (keyword_symbols_constant_flag): Removed.
12710 (Fmakunbound, set_internal, syms_of_data): Remove references to
12711 keyword_symbols_constant_flag.
12712
12713 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12714
214f877f
KH
127152000-02-23 Kenichi Handa <handa@etl.go.jp>
12716
12717 * syntax.c (multibyte_syntax_as_symbol): New variable.
12718 (syms_of_syntax): Declare it as a Lisp variable.
12719 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12720 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12721 nonzero, treat all multibyte characters as symbol.
52283633 12722 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 12723
130adcb7
EZ
127242000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12725
3cb65b0e 12726 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 12727 a deleted frame.
130adcb7 12728
17cbbf95
GM
127292000-02-21 Gerd Moellmann <gerd@gnu.org>
12730
12731 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12732
12733 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12734 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12735
beb0bc36
DL
127362000-02-21 Dave Love <fx@gnu.org>
12737
12738 * frame.c (Vmouse_position_function): New variable.
12739 (Fmouse_position): Use it.
12740 (syms_of_frame): Install it.
12741
12742 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12743
1d92afcd
GM
127442000-02-20 Gerd Moellmann <gerd@gnu.org>
12745
12746 * fileio.c (Finsert_file_contents): Unbind the binding of
12747 standard-output done by temp_output_buffer_setup.
329eed9f
GM
12748
12749 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12750 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12751 (specbind, unbind_to): Handle most common case of non-constant
12752 symbol with trivial value specially.
12753
12754 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12755
18e21ce8 127562000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
12757
12758 * data.c (Fmake_variable_buffer_local): Doc fix.
12759 Init found_for_buffer to 0.
12760 (Fmake_variable_frame_local): If the variable has already
12761 been buffer-local, set the check_frame field.
12762
1d4311c3
EZ
127632000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12764
12765 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12766 produced for CODING_MODE_LAST_BLOCK requires.
12767
2dc95ddd
DL
127682000-02-18 Dave Love <fx@gnu.org>
12769
12770 * keyboard.c (echo_keystrokes): Remove declaration.
12771 (Vecho_keystrokes) New variable.
12772 (read_char, record_menu_key, read_key_sequence): Use it to allow
12773 use of float value.
12774 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12775
12776 * lread.c: Undef feature selection macros before defining.
12777
f0930f35
GM
127782000-02-18 Gerd Moellmann <gerd@gnu.org>
12779
12780 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12781 for symbols other than the symbol in question.
12782
e3d4de90
DL
127832000-02-17 Dave Love <fx@gnu.org>
12784
12785 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12786
0b378936
GM
127872000-02-17 Gerd Moellmann <gerd@gnu.org>
12788
d621caf7
GM
12789 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12790
0b378936
GM
12791 * alloc.c (enum mem_type): Compile unconditionally.
12792
3b451f74
EZ
127932000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12794
12795 * xfaces.c (tty_defined_color): Don't return faulire indication
12796 for unspecified-fg and unspecified-bg pseudo-colors.
12797
10689a01
GM
127982000-02-17 Gerd Moellmann <gerd@gnu.org>
12799
1216f5e4
GM
12800 * alloc.c (mark_object): Don't mark symbol names in pure space.
12801 (gc_sweep): Don't unmark symbol names in pure space.
12802
12803 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12804 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12805 [GC_MARK_STACK]: New defines.
427ec082 12806 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
12807 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12808
12809 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12810
12811 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12812 allocate_buffer instead of xmalloc.
12813
12814 * alloc.c (toplevel): Include setjmp.h.
12815 (PURE_POINTER_P): New define.
12816 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12817 (Vdead) [GC_MARK_STACK]: New variable.
12818 (lisp_malloc): Add parameter TYPE, call mem_insert if
12819 GC_MARK_STACK is defined.
12820 (allocate_buffer): New function.
427ec082 12821 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
12822 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12823 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12824 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12825 (MEM_NIL) [GC_MARK_STACK]: New define.
12826 (struct mem_node) [GC_MARK_STACK]: New structure.
12827 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12828 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12829 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12830 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12831 (mark_stack) [GC_MARK_STACK]: New functions.
12832 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12833 (clear_marks): Removed.
12834 (gc_sweep): Set free conses' car, free floats' type, free
12835 symbols' function to Vdead. Use lisp_free to free buffers.
12836 (init_alloc_once): Initialize Vdead.
12837 (survives_gc_p): Return non-zero for pure objects.
12838
12839 * alloc.c: Add comments throughout the file.
12840
2503c8b1
GM
12841 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12842 that unblocks alarms.
12843
8389e1e2
GM
12844 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12845 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12846 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12847
10689a01 12848 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 12849
bfc17d18
KH
128502000-02-17 Kenichi Handa <handa@etl.go.jp>
12851
4a09dee0
KH
12852 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12853 avoid infinite error signaling. Allocate sufficient memory for
12854 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 12855
2b927d02
SM
128562000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12857
12858 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12859 depends on the previous behavior.
12860
b49cb764
GM
128612000-02-16 Gerd Moellmann <gerd@gnu.org>
12862
12863 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12864
99e95407
GM
128652000-02-15 Gerd Moellmann <gerd@gnu.org>
12866
12867 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12868
12869 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 12870 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
12871 write(2).
12872
6ffd3cf7
RS
128732000-02-15 Richard M. Stallman <rms@gnu.org>
12874
12875 * data.c (set_internal): Don't make variable buffer-local
12876 if within a let-binding for the same buffer.
12877 (let_shadows_buffer_binding_p): New function.
12878
12879 * eval.c (specbind): For buffer-local value,
12880 record the current buffer also.
12881 (unbind_to): Cope with that change.
12882
cad53475
GM
128832000-02-15 Gerd Moellmann <gerd@gnu.org>
12884
12885 * window.c (Fsave_window_excursion): Doc fix.
12886
1aa963c8
SM
128872000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12888
12889 * syntax.c (back_comment): Make sure we only consider comment-starters
12890 of the relevant style and return -1 in case of a failure to find the
12891 beginning of the comment.
12892 (Fforward_comment): If back_comment fails, go back to the position just
12893 after the comment-end.
12894 (scan_lists): Add comment describing a very minor bug.
12895
b9b84fd3
SM
128962000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12897
12898 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12899 `completion-regexp-list' in the docstring.
12900
3a28db80
DL
129012000-02-14 Dave Love <fx@gnu.org>
12902
12903 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12904
fb4a568d
SM
129052000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12906
12907 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12908 to Emacs' syntax. Also fix the comment about set/not-set meanings
12909 since Emacs syntax is not the value 0 any more.
12910 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12911 since it's now part of RE_SYNTAX_EMACS.
12912
1063ebb5
DL
129132000-02-12 Dave Love <fx@gnu.org>
12914
52283633 12915 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 12916
fb07a302
GM
129172000-02-12 Gerd Moellmann <gerd@gnu.org>
12918
12919 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12920
aaf2320c
DL
129212000-02-12 Dave Love <fx@gnu.org>
12922
12923 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12924
12925 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
12926 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12927 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
12928
12929 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12930
12931 * s/nextstep.h: Don't define HAVE_ALLOCA.
12932
12933 * config.in: Add vfork bits.
12934
eedf8bde
GM
129352000-02-12 Gerd Moellmann <gerd@gnu.org>
12936
12937 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12938 unwind function to undo the effect of stopping atimers.
12939
52283633 12940 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
12941
12942 * atimer.c (stopped_atimers): New variable.
12943 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12944 New functions.
12945
12946 * atimer.h (stop_other_atimers, run_all_atimers)
12947 (unwind_stop_other_atimers): Add function prototypes.
427ec082 12948
eedf8bde
GM
12949 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12950
8476c2f8
KR
129512000-02-11 Ken Raeburn <raeburn@gnu.org>
12952
12953 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12954 library may depend on jpeg.
12955 (atimer.o): Depends on atimer.c.
12956
0e85e4a3
KH
129572000-02-11 Kenichi Handa <handa@etl.go.jp>
12958
12959 * insdel.c (del_range_1): Call update_compositions.
12960 (del_range_both): Call update_compositions just once..
12961
97fa0cc8
DL
129622000-02-10 Dave Love <fx@gnu.org>
12963
12964 * xfns.c (create_frame_xic): Fix initialization of automatic
12965 aggregates for pcc.
12966
25566a3c
KH
129672000-02-09 Kenichi Handa <handa@etl.go.jp>
12968
12969 * ccl.c (CCL_MAKE_CHAR): New macro.
12970 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12971 registers by CCL_MAKE_CHAR before calling translate_char.
12972 <CCL_TranslateCharacterConstTbl> Likewise.
12973
69da54ba
DL
129742000-02-08 Dave Love <fx@gnu.org>
12975
12976 * lread.c (__EXTENSIONS__): Define.
12977
f7136ee8
GM
129782000-02-08 Gerd Moellmann <gerd@gnu.org>
12979
12980 * puresize.h (BASE_PURESIZE): Increase to 650000.
12981
7768790b
EZ
129822000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12983
12984 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12985 the help message.
12986
38fd211b
EZ
129872000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12988
12989 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12990 md, mh, mb, mr, and me to the fake termcap entry.
12991
66e4690f
KR
129922000-02-06 Ken Raeburn <raeburn@gnu.org>
12993
12994 * sound.c (sound_cleanup): Don't call device close routine if the
12995 function pointer is null.
12996
a75dfea0
AI
129972000-02-06 Andrew Innes <andrewi@gnu.org>
12998
12999 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13000 around image definitions and prototypes.
13001 (gamma_correct) [WINDOWSNT]: New prototype.
13002
13003 * w32term.c (x_make_frame_visible): Replace call to
13004 input_poll_signal with poll_for_input.
13005
13006 * window.c [WINDOWSNT]: Include w32term.h.
13007
13008 * xdisp.c [WINDOWSNT]: Include w32term.h.
13009
13010 * makefile.nt: Add dependencies on w32gui.h.
13011 (OBJ1): Include atimer.obj.
13012 ($(BLD)\atimer.obj): New dependency rule.
13013
13014 * w32.c (sigmask): New function (does nothing).
13015 (sigunblock): Ditto.
13016
13017 * frame.c [WINDOWSNT]: Include w32term.h.
13018
13019 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13020
13021 * lread.c (syms_of_lread): Fix literal newlines.
13022
13023 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13024 the string constant limit (2048 bytes) in MSVC.
13025 (main): Ditto.
13026
59ddecde
GM
130272000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13028
52283633 13029 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
13030 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13031 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13032 dispatch the event.
13033
07590973
DL
130342000-02-04 Dave Love <fx@gnu.org>
13035
13036 * fileio.c: Remove some unused vars.
13037 (_GNU_SOURCE): Define (for euidaccess).
13038
13039 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13040
13041 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13042 gcpro1, gcpro2.
13043 (read_minibuf): Deal with allow_props correctly.
13044
649351f9
EZ
130452000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13046
13047 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13048
66e4690f 130492000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
13050
13051 * search.c (compile_pattern): If a cache entry has a nil regexp,
13052 fill in that entry instead of clobbering a previously cached
13053 string regexp.
13054
66e4690f 130552000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
13056
13057 * puresize.h (BASE_PURESIZE): Increase to 610000.
13058
d240a249
GM
130592000-02-02 Gerd Moellmann <gerd@gnu.org>
13060
13061 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13062 can GC.
13063
ca91fb26
KH
130642000-02-02 Kenichi Handa <handa@etl.go.jp>
13065
25660570
KH
13066 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13067 instead of incrementing ic directly.
13068 <CCL_WriteExprConst> Likewise.
13069 <ccl_set_expr>: Set ic to jump_address.
13070
ca91fb26
KH
13071 * fileio.c (e_write): Fix the handling of
13072 CODING_FINISH_INSUFFICIENT_SRC.
13073
2ede9689
DL
130742000-02-01 Dave Love <fx@gnu.org>
13075
13076 * editfns.c (Fpropertize): Doc fix.
13077
13078 * process.c (Fstart_process): Doc fix.
13079
13080 * eval.c: Fix various doc strings not to duplicate information
13081 from help-manyarg-func-alist.
13082
52283633 13083 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
13084
13085 * doc.c (Vhelp_manyarg_func_alist): New variable.
13086 (Fdocumentation): Use it.
13087 (syms_of_doc): Define it.
13088
b6680a0e
GM
130892000-01-31 Gerd Moellmann <gerd@gnu.org>
13090
2cb750ba
GM
13091 * xterm.c (xim_open_dpy): Remove unused local variable.
13092
52283633 13093 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
13094
13095 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
13096 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13097
b6680a0e
GM
13098 * fns.c (sweep_weak_table): New function.
13099 (sweep_weak_hash_tables): Use it. Keep on marking until there
13100 is no more change.
13101
994c5afe
GM
131022000-01-30 Gerd Moellmann <gerd@gnu.org>
13103
13104 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
13105 that XTread_socket does not crash by trying to call XNoOp on a
13106 closed display.
427ec082 13107
f00276e3
JR
131082000-01-30 Jason Rumney <jasonr@gnu.org>
13109
13110 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13111 Change selected_frame to SELECTED_FRAME ().
13112 (w32_console_mouse_position): Remove #ifndef MULE from around
13113 `insist' parameter.
13114
13115 * makefile.nt: Remove dosfns.obj.
13116
13117 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
13118
13119 * w32fns.c (w32_defined_color): Check for valid frame before
13120 applying gamma correction. Eliminate dependency on frame elsewhere.
13121 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
13122 (w32_to_x_font): Use resx and resy not height_in and width_in.
13123 (x_to_w32_font): Doc fix.
13124 (xlfd_strip_height): New function to strip and return font height.
13125 (w32_font_match): Compare height separately from rest of xlfd
13126 spec, using xlfd_strip_height.
13127
13128 * w32term.c (w32_term_init): Swap resx and height_in, resy and
13129 width_in. Use w32_defined_color in place of defined_color.
13130
13131 * w32faces.c: Merge more of DOS and X specifics in preparation for
13132 merge with xfaces.c.
13133 (defined_color): Remove FIXME comment.
13134 (tty_color_name): Provide w32-specific function.
13135 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
13136
13137 * w32console.c (turn_on_face, turn_off_face): Removed.
13138 (w32_face_attributes): New function.
13139 (Global_variables): Reduce scope where possible.
13140 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
13141 fill attribute.
13142 (hl_mode): Don't modify text attributes.
13143 (write_glyphs): Don't do anything if len <= 0. Use
13144 w32_face_attributes to get attributes for drawing. Write
13145 terminating codes using char_attr_normal.
13146 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
13147 (update_begin, update_end): Likewise.
13148 (vga_stdcolor_name): New function.
13149 (initialize_w32_display): Remove char_attr_reverse and char_attr.
13150 (Fset_screen_color): Remove char_attr_reverse.
13151
b08e8bb2
GM
131522000-01-29 Gerd Moellmann <gerd@gnu.org>
13153
13154 * xfns.c (xic_set_preeditarea): Take window parameter and
13155 window-relative pixel-positions.
13156
13157 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
13158 is its frame's selected window.
13159 (xim_instantiate_callback): Likewise.
13160
13161 * xfns.c (x_create_im): Removed.
13162 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
13163 (supported_xim_styles): Renamed from supported_styles.
13164 (best_xim_style): Renamed from best_style.
13165 (create_frame_xic): Renamed from xic_create_frame.
13166 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 13167
b08e8bb2
GM
131682000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13169
13170 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13171 our frames, call XFilterEvent with 2nd parameter `None'.
13172 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13173 returning XBufferOverflow.
52283633 13174 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
13175 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13176 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13177 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13178 (xim_initialize, xim_close)
13179 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13180 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13181 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13182 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13183
13184 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13185 and `xim_styles'.
13186 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13187 `xic_style' and `xic_xfs'.
13188 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13189 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13190 (FRAME_XIM): Removed.
13191
13192 * xfns.c (supported_styles): New variable.
13193 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13194 (xic_create_xfontset, best_style, xic_create_frame)
13195 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13196 (xic_set_xfontset): New functions.
13197
142e109c
DL
131982000-01-28 Dave Love <fx@gnu.org>
13199
13200 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13201
13202 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13203
b02786f9
GM
132042000-01-28 Gerd Moellmann <gerd@gnu.org>
13205
d060bc9f
GM
13206 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13207 for *scratch* if it already existed.
13208
b02786f9
GM
13209 * emacs.c (USAGE): New macro.
13210 (main): Use it to display usage information.
13211
2c52d7e4
EZ
132122000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13213
13214 Support for the menu-help feature:
13215
52283633 13216 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
13217
13218 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13219 part of the line to the termscript file.
13220 (IT_clear_to_end): Clear the entire line, not just its beginning.
13221 (menu_help_message, prev_menu_help_message): New variables.
13222 (IT_menu_make_room): Make room for the help_text member.
13223 (IT_menu_display): New argument disp_help; all callers changed.
13224 If disp_help is non-zero, store the help text of the active menu
13225 item in menu_help_message.
13226 (XMenuAddPane): Initialize the help_text member to NULL.
13227 (XMenuAddSelection): New argument help_text. Store it in the
13228 XMenu structure.
13229 (XMenuActivate): New argument help_callback. If the value of
13230 menu_help_message has changed since the last time, display the
13231 menu help message text while waiting for the mouse to move. Clear
13232 the echo area before exiting.
13233 (XMenuDestroy): Free the help_text member.
13234
ffe0bcd1
GM
132352000-01-27 Gerd Moellmann <gerd@gnu.org>
13236
13237 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13238 XMenuAddSelection. Pass help callback to XMenuActivate.
13239 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13240
50dbd23f
EZ
132412000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13242
13243 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13244 and EMACS_SET_USECS.
13245
f5941bf8
GM
132462000-01-26 Dave Love <fx@gnu.org>
13247
6c67ddee
DL
13248 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13249
f5941bf8
GM
13250 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13251 an error may be signalled.
13252
9e49c990
GM
132532000-01-26 Gerd Moellmann <gerd@gnu.org>
13254
fc3cb460
GM
13255 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13256 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13257
9e49c990
GM
13258 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13259
d0c037d8
GM
132602000-01-25 Gerd Moellmann <gerd@gnu.org>
13261
13262 * charset.c (Fstring): If there is a multibyte char among
13263 the args, always return a multibyte string.
13264
e12489f9
GM
132652000-01-25 Gerd Moellmann <gerd@gnu.org>
13266
13267 * sysdep.c (sys_select): Turn atimers off and on instead of
13268 recording and restoring old alarm handler
13269
13270 * process.c (toplevel): Include atimer.h.
13271 (create_process_1): Rewritten.
13272 (create_process): Use atimers instead of alarm.
13273 (wait_reading_process_input) [hpux]: Turn atimers off instead
13274 of turning off SIGALRM.
13275 (wait_reading_process_input): Turn off atimers instead off
13276 calling stop_polling.
13277
13278 * emacs.c (main): Call init_atimer.
13279
13280 * keyboard.c (toplevel): Include systime.h and atimer.h.
13281 (polling_for_input): Removed because unused.
13282 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13283 (poll_timer): New variable.
13284 (poll_for_input, poll_for_input_1): New functions.
13285 (start_polling, stop_polling): Rewritten.
13286
13287 * keyboard.h (polling_for_input): Removed.
427ec082 13288
e12489f9
GM
13289 * atimer.h, atimer.c: New files.
13290
13291 * Makefile.in (obj): Add atimer.o.
13292 (atimer.o): New target.
13293
13294 * blockinput.h (pending_atimers): Add extern declaration.
13295 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13296
13297 * lisp.h (popup_activated_flag): Add extern declaration.
13298
13299 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 13300 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
13301 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13302
13303 * xterm.c (toplevel): Include atimer.h.
13304 (toolkit_scroll_bar_interaction): New variable.
13305 (Fxt_process_timeouts): Removed.
13306 (x_process_timeouts): New function.
13307 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13308 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13309 (x_make_frame_visible): Call poll_for_input_1 instead of
13310 input_poll_signal. Don't call alarm.
13311 (x_initialize): Install timer calling x_process_timeouts.
427ec082 13312
1e5279b9
DL
133132000-01-24 Dave Love <fx@gnu.org>
13314
6c67ddee 13315 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
13316 Don't use -cckr -- apparently not now necessary.
13317
edf6aeb8
EZ
133182000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13319
13320 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13321 screen boundary.
13322
9badad41
JR
133232000-01-23 Jason Rumney <jasonr@gnu.org>
13324
13325 * w32fns.c (w32_defined_color): Apply gamma correction before
13326 trying to map to the palette.
13327 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13328 to w32_clear_rect.
13329
13330 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13331 here. Callers changed to always pass real device context.
13332 (w32_draw_bitmap): Likewise.
13333 (w32_get_glyph_overhangs): Likewise.
52283633 13334 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
13335 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13336 pfnSetScrollInfo and SetScrollRange.
13337 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13338 back into MULE characters after decoding them.
13339 (x_get_glyph_face_and_encoding): Likewise.
13340 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13341 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13342 (x_produce_glyphs): Calculate per char metrics for a character
13343 that we know exists in default font when font_not_found_p is true.
13344
63bd786b
JR
133452000-01-22 Jason Rumney <jasonr@gnu.org>
13346
13347 * makefile.nt (intervals.obj, composite.obj): New modules.
13348 (composite.h): Added as dependency where appropriate.
13349
13350 * w32gui.h (XGCValue): New struct for emulating X GCs.
13351
13352 * w32term.h (XCharStruct): New struct for emulating X.
13353
13354 * w32console.c (turn_on_face, turn_off_face): New functions.
13355 (change_line_highlight): New prototype for new redisplay.
13356 (write_glyphs): Support multibyte text. Support faces.
13357
52283633 13358 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
13359
13360 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13361 throughout. struct frame * in place of FRAME_PTR.
13362 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 13363 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
13364 (w32_get_arg): Renamed from x_get_arg.
13365 (Fx_file_dialog): New function.
13366 (w32_list_fonts): Check cache before asking system.
13367 (Vw32_enable_synthesized_fonts): New variable.
13368 (Vw32_enable_italics): Obsolete, removed.
13369
13370 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13371 Use SELECTED_FRAME macro.
13372
13373 * w32menu.c: Add skeleton support for help strings on menus.
13374 (add_menu_item): Native checkbox and radio support added, but not
13375 yet enabled due to bugs.
13376 (push_menu_item): Add parameters type, selection and help.
13377 Callers updated.
13378 Formatting changes to reduce unnecessary diffs with xmenu.c.
13379
13380 * w32select.c (Fw32_set_clipboard_data): Update call to
13381 find_charset_in_str.
13382
13383 * w32term.c: Complete rewrite for new redisplay based on new
13384 xterm.c with necessary sections merged back in from old w32term.c.
13385
6ffd3cf7 133862000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
13387
13388 * data.c (set_internal): Further fix in same criterion.
13389
6ffd3cf7 133902000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
13391
13392 * data.c (set_internal): Fix the criteria for whether
13393 to swap out the old cached binding.
13394
60af03f1
DL
133952000-01-19 Dave Love <fx@gnu.org>
13396
13397 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13398
f9be074f
KH
133992000-01-18 Kenichi Handa <handa@etl.go.jp>
13400
13401 * regex.c (re_compile_fastmap): While checking a range table for
13402 `charset', skip flag bits for a character class correctly.
13403
52b8dbf9
GM
134042000-01-17 Gerd Moellmann <gerd@gnu.org>
13405
d36100c9
GM
13406 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13407
52283633 13408 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
13409
13410 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 13411 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
13412
13413 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13414 MENU_ITEMS_ITEM_.*.
13415 (MENU_ITEMS_ITEM_HELP): New enumerator.
13416 (push_menu_item): Add parameter HELP. Record help in menu_items.
13417 (single_menu_item, single_submenu, list_of_items): Call
13418 push_menu_item with new parameter.
13419 (single_submenu): Set help string in widget value.
13420 (menu_highlight_callback): New function.
13421 (set_frame_menubar): Call lw_create_widget with new
13422 parameter list.
13423 (xmenu_show, xdialog_show): Ditto.
13424
3139018f
GM
134252000-01-13 Gerd Moellmann <gerd@gnu.org>
13426
13427 * sound.c (Fplay_sound): Improve doc string.
13428
83c8f461
RS
134292000-01-11 Richard M. Stallman <rms@gnu.org>
13430
13431 * lisp.h (set_internal): Enter the new arg.
13432
13433 * eval.c (specbind): Record buffer-local variables specially,
13434 indicating which buffer's binding was saved.
13435 (unbind_to): Restore buffer-local variables specially
13436 in the proper buffer.
13437
13438 * data.c (set_internal): New arg BUF.
427ec082 13439
83c8f461
RS
13440 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13441 * data.c (Fset): Pass new arg to set_internal.
13442 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 13443
1fab1775
GM
134442000-01-11 Gerd Moellmann <gerd@gnu.org>
13445
52283633 13446 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 13447
83c8f461 134482000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
13449
13450 * minibuf.c (Ftry_completion): Doc fix.
13451
7a85e4df
GM
134522000-01-11 Gerd Moellmann <gerd@gnu.org>
13453
13454 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13455 vector, too.
13456
a970dae4
AS
134572000-01-11 Andreas Schwab <schwab@suse.de>
13458
13459 * coding.c (code_convert_region): Initialize total_skip.
13460
c65d14ee
DL
134612000-01-08 Dave Love <fx@gnu.org>
13462
13463 * eval.c (Fuser_variable_p): Check customizability too.
13464
834938d2
GM
134652000-01-07 Gerd Moellmann <gerd@gnu.org>
13466
13467 * minibuf.c (Fcompleting_read): Doc fix.
13468
e0303cd6
GM
134692000-01-05 Gerd Moellmann <gerd@gnu.org>
13470
8a26744b
GM
13471 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13472 -L /usr/local/lib.
13473
e0303cd6
GM
13474 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13475 Check that input style is supported before trying to create an
13476 IC for it.
13477 (x_window): Call x_create_im.
427ec082 13478
2e471eb5
GM
134792000-01-04 Gerd Moellmann <gerd@gnu.org>
13480
560a7bd2
GM
13481 * xfns.c (current_gif_memory_src): New variable.
13482 (gif_load): Record the address of the current memory source
13483 in current_gif_memory_src.
13484 (gif_read_from_memory): Use current_gif_memory_src.
13485
f9ee84a3
GM
13486 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13487 macros statement form.
13488
d1299cde
GM
13489 * sound.c (struct sound): Renamed from struct sound_file.
13490 (struct sound): Add members `data' and `header_size'.
13491 (enum sound_attr): Add SOUND_DATA.
13492 (current_sound, current_sound_device): Variables renamed from
13493 sound_file and sound_device.
13494 (parse_sound): Parse :data.
13495 (parse_sound): Handle sound data in strings.
13496 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 13497 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
13498 needed header size.
13499 (wav_play, au_play): Play sounds from string data.
13500
2e471eb5
GM
13501 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13502
13503 * lisp.h: Add prototype for allocate_string_data.
13504
52283633 13505 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
13506
13507 * alloc.c (mark_buffer): Remove code in #if 0.
13508 (gc_sweep): Ditto.
13509 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13510 (strings_consed): New variable.
13511 (allocate_string): Set it.
13512 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13513 (Fmemory_use_counts): Return strings_consed. Use Flist.
13514
13515 * alloc.c: General cleanup in comments etc. Remove conditional
13516 compilation for `standalone'.
13517
13518 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13519
13520 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13521 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13522 (DONT_COPY_FLAG): Removed.
13523 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13524 (struct sdata, struct sblock): New
13525 (struct string_block): Rewritten.
13526 (STRINGS_IN_STRING_BLOCK): New macro.
13527 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13528 (large_sblocks, string_blocks, string_free_list): New variables.
13529 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13530 (init_strings): Rewritten.
13531 (allocate_string, allocate_string_data, compact_small_strings)
13532 (free_large_strings, sweep_strings): New functions.
13533 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13534 (struct string_block_head, current_string_block)
13535 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13536 (STRING_PAD): Removed.
13537 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13538 (Fgarbage_collect): Don't set mark bit in large strings.
13539 (mark_object): Mark strings differently. Mark symbol names
13540 differently.
13541 (survives_gc_p): Test marked strings differently.
427ec082 13542 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
13543 symbol names.
13544 (compact_strings): Removed.
13545
42608ba8
EZ
135462000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13547
13548 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13549 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13550
e0a09e1a
KH
135512000-01-04 Kenichi Handa <handa@etl.go.jp>
13552
dd9f0750 13553 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 13554 in a non-empty buffer.
dd9f0750 13555
3c0f3b15 13556 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 13557
44cd3ae5
GM
135582000-01-03 Gerd Moellmann <gerd@gnu.org>
13559
13560 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13561 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13562
13563 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13564
c182a70f
EZ
135652000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13566
13567 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13568 need to test for MSDOS frames.
13569
24480d5b
EZ
135702000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13571
13572 * dosfns.c (unspecified_colors): Remove.
13573 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13574 unspecified_bg.
13575 (msdos_stdcolor_name): Return strings for unspecified fore- and
13576 back-ground colors.
13577
13578 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 13579 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
13580 (tty_color_name): Return Lisp strings for unspecified fore- and
13581 back-ground colors.
13582 (Finternal_set_lisp_face_attribute): Remove the special treatment
13583 for Qunspecified_{f,b}g.
52283633 13584 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 13585
047f434a
GM
135862000-01-03 Gerd Moellmann <gerd@gnu.org>
13587
13588 * xdisp.c (reseat_at_next_visible_line_start): Position before
13589 newline only if ending up on a newline.
13590 (next_element_from_ellipsis): Return success. Handle case of
52283633 13591 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
13592 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13593 returns 0.
13594
d684c676
EZ
135952000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13596
13597 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13598 (Fcolor_supported_p): Renamed from face-color-supported-p.
13599
5fe1d139
EZ
136002000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13601
13602 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13603 list of colors renamed to tty-defined-color-alist.
13604 (tty_color_name): Pass the frame to tty-color-by-index.
13605 (realize_tty_face): tty-color-alist is now a function which
13606 accepts the frame as argument.
13607
52283633 13608 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 13609
816be8b8
EZ
136102000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13611
13612 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13613 encode_terminal_code.
13614
b635321e
EZ
136152000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13616
13617 * dispnew.c (mode_line_string): Support termcap frames as well.
13618
9b784e96
GM
136192000-01-01 Gerd Moellmann <gerd@gnu.org>
13620
27189709
GM
13621 * syntax.c (Fforward_word): Undo previous change.
13622
13623 * editfns.c (Fconstrain_to_field): Don't constrain if
13624 inhibit-field-text-motion is non-nil.
13625 (Fline_beginning_position): Undo previous change.
13626 (Fline_end_position): Ditto.
13627
13628 * syntax.c (Fforward_word): Notice field boundaries only if
13629 inhibit-field-text-motion is nil.
13630
13631 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13632
13633 * editfns.c (Vinhibit_field_text_motion): New variable.
13634 (inhibit-field-text-motion): New DEFVAR_LISP.
13635 (Fline_beginning_position, Fline_end_position): Notice field
13636 boundaries only if inhibit-field-text-motion is nil.
13637
45158a91
GM
13638 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13639 All calls adjusted.
13640 (x_build_heuristic_mask): Likewise.
13641 (xbm_load_image_from_file): Change error output.
13642 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13643 (gif_load, gs_load, x_kill_gs_process): Ditto.
13644
9b784e96
GM
13645 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13646 color indices when accessing raster pixels.
63cec32f
GM
13647 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13648 one of :file or :data.
13649 (enum pbm_keyword_index): Add PBM_DATA.
13650 (pbm_format): Add :data.
13651 (pbm_image_p): Allow either :file or :data.
13652 (pbm_read_file): New function.
13653 (pbm_scan_number): Rewritten to read from string.
13654 (pbm_load): Support :data.
9b784e96 13655
2cb085db 13656See ChangeLog.8 for earlier changes.
6922b018
KH
13657
13658;; Local Variables:
49b3bd82 13659;; coding: iso-2022-7bit
6922b018 13660;; End:
2a34a036
GM
13661
13662 Copyright (C) 2001 Free Software Foundation, Inc.
13663 Copying and distribution of this file, with or without modification,
13664 are permitted provided the copyright notice and this notice are preserved.