[LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
[bpt/emacs.git] / src / ChangeLog
CommitLineData
653c329b
GM
12001-10-22 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (display_line): Fix computation of continuation lines
4 width for TABs.
5
f958c5ac
PJ
62001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7
7ba51063
PJ
8 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
9 `Qlaplace'.
10
f958c5ac
PJ
11 * fileio.c: Remove unused code.
12
eb360291
MB
132001-10-22 Miles Bader <miles@gnu.org>
14
15 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18
98515cf0
JR
192001-10-21 Jason Rumney <jasonr@gnu.org>
20
21 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
22
93026d88
EZ
232001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
24
25 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
26 (Finsert_string): Avoid the multi-line string literals warning.
27
c9a95b79
MB
282001-10-22 Miles Bader <miles@gnu.org>
29
30 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
31 (Fdocumentation): Don't use it.
32 (syms_of_doc): Don't initialize it.
33
34 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
35 * print.c (Fwith_output_to_temp_buffer): Likewise.
36 * window.c (Fsave_window_excursion): Likewise.
37 * editfns.c (Fsave_excursion, Fsave_current_buffer)
38 (Fsave_restriction): Likewise.
39 * eval.c (Frun_hooks, Frun_hook_with_args)
40 (Frun_hook_with_args_until_failure)
41 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
42 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
43 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
44 (Funwind_protect, Fcondition_case): Likewise.
45 * coding.c (Ffind_operation_coding_system): Likewise.
46 * keyboard.c (Ftrack_mouse): Likewise.
47
a3b10252
MB
482001-10-21 Miles Bader <miles@gnu.org>
49
50 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
51 (Fmake_hash_table): Add usage: string to doc string.
52 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
53 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
54 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
55 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
56 (Fml_prefix_argument_loop): Likewise.
57
c6f73eec
PJ
582001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
59
888ebd13
PJ
60 * fileio.c (Finsert_file_contents): Remove unused variable
61 `gap_size'.
62
c6f73eec
PJ
63 * sysdep.c (init_sys_modes): Change doc-string comments to `new
64 style' [w/`doc:' keyword].
65
66 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
67 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
68 comments to `new style' [w/`doc:' keyword].
69
3cf3436e
JR
702001-10-21 Jason Rumney <jasonr@gnu.org>
71
72 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
73
c169b8f1
JR
74 * w32term.c (remember_mouse_glyph): New function.
75 (w32_mouse_position): Use it.
76 (note_mouse_movement): If the mouse moved off the glyph, remember
77 its new position.
78
4fdd691b
JR
79 * w32term.h (struct w32_output): Correct spelling of x_compatible.
80 (w32_display_info): Add mouse_face_overlay.
81
c169b8f1
JR
82 * w32term.c (notice_overwritten_cursor): Renamed from
83 note_overwritten_text_cursor. Rewritten to take glyph widths into
84 account.
85 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
86 (fast_find_string_pos): New function.
87 (fast_find_position): Return the correct vpos. Add parameter
88 STOP. In the final row, stop before glyphs having STOP as object.
89 Don't consider glyphs that are not from a buffer.
90 (fast_find_position) [0]: Add a presumably more correct version
91 for after 21.1.
92 (expose_window_tree, expose_frame): Don't compute intersections here.
93 (expose_window): Do it here instead.
94 (expose_window_tree, expose_window, expose_line): Return 1 when
95 overwriting mouse-face.
96 (expose_window): If W is the window currently being updated, mark
97 the frame garbaged.
98 (expose_frame): If mouse-face was overwritten, redo it.
99 (x_use_underline_position_properties): New variable.
100 (syms_of_xterm): DEFVAR_BOOL it.
101 (x_draw_glyph_string): Add comment to use it in future.
102 (x_draw_glyph_string): Restore clipping after drawing box.
103 Fix a computation of the underline position.
104 (w32_get_glyph_string_clip_rect): Minor cleanup.
105 (x_fill_stretch_glyph_string): Remove an assertion.
106 (x_produce_glyphs): Don't convert multibyte characters
107 to unibyte characters in unibyte buffers.
108 (cursor_in_mouse_face_p): New function.
109 (x_draw_stretch_glyph_string): Use it to choose a different GC
110 when drawing a cursor within highlighted text. Don't draw
111 background again if it has already been drawn.
112 (x_draw_glyph_string_box): Don't draw a full-width
113 box just because the glyph row's full_width_p flag is set.
114 (x_draw_glyphs): Fix computation of rightmost x for
115 full-width rows.
116 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
117 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
118 change bottom shadow accordingly. Some cleanup.
119 (x_update_window_end): Handle overwritten mouse face
120 also for tool bar windows.
121 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
122 DRAW is DRAW_IMAGE_RAISED.
123 (clear_mouse_face): Return 1 if text with mouse face was
124 actually redrawn. Make the function static. Reset
125 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
126 optimize away highlighting if we pass over that same overlay again.
127 (note_mouse_highlight): Call mouse_face_overlay_overlaps
128 to detect a case where we have to highlight a different region
129 despite not having left the currently highlighted region.
130 Set mouse_face_overlay in the x_display_info. Avoid changing the
131 mouse pointer shape when show_mouse_face has already done it, or
132 there is no need. Handle mouse-face and help-echo in strings.
133 (glyph_rect): New function.
134 (w32_mouse_position): Use it to raise the threshold for mouse
135 movement event generation.
136 (w32_initialize_display_info): Initialize the x_display_info's
137 mouse_face_overlay.
138 (w32_set_vertical_scroll_bar): Don't clear a zero height
139 or width area.
140 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
141 a widget to zero height.
142
3cf3436e 143 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 144 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
145 equivalents in menu_items.
146 (w32_menu_show): Don't overwrite an item's name with its key
147 description in case the description is a multibyte string.
148 (single_submenu): Some cleanup.
149
150 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
151 (postprocess_image): New function.
152 (lookup_image): Call it for all image types except PostScript.
153 (x_kill_gs_process): Call postprocess_image.
154 (tiff_error_handler, tiff_warning_handler): New functions.
155 (tiff_load): Install them as handlers.
156 (x_kill_gs_process): Recognize if someone has cleared the image
157 cache under us.
158 (valid_image_p): Protect better against invalid image
159 specifications. Previous code could signal an error.
160 (Fx_hide_tip, Fshow_tip): Doc fix.
161 (Fv_max_tooltip_size): New variable.
162 (syns_of_xfns): DEFVAR_LISP it.
163 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
164 window buffer to *tip* right after creating the frame. Set frame's
165 window_width. Use a maximum tooltip size specified by
166 Vx_max_tooltip_size, if that has valid contents.
167 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
168 Make sure the tooltip is completely visible.
169 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
170 (Fx_create_frame): Adjust the frame's height for presence
171 of the tool bar before calling x_figure_window_size.
172 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
173 when the window gets smaller.
174 (x_set_foreground_color): Set frame's cursor_pixel.
175 (x_set_foreground_color, x_set_background_color): Cleaned up.
176 (x_set_font): Handle case of x_new_fontset returning the same name
177 as before, although there was a change in fontsets.
178
386ca361
MB
1792001-10-21 Miles Bader <miles@gnu.org>
180
181 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
182 (Flogxor): Add usage: string to doc string.
183 * charset.c (Fstring): Likewise.
184 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
185 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
186
14ff1ee0
PJ
1872001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
188
03be2694
PJ
189 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
190
191 * alloc.c: Reindent DEFUNs with doc: keywords.
192
193 * abbrev.c (Finsert_abbrev_table_description): Reindent.
194
14ff1ee0
PJ
195 * frame.c: Change doc-string comments to `new style' [w/`doc:'
196 keyword].
197
71431a0e
GM
1982001-10-20 Gerd Moellmann <gerd@gnu.org>
199
6aa97356 200 * (Version 21.1 released.)
71431a0e 201
39f624fa
PJ
2022001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
203
c0a53abb
PJ
204 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes
205 removed.
206
207 * xdisp.c (invisible_text_between_p): Put prototype inside #if
208 0 because unused.
209
210 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
fdb82f93 211 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c: Change
c0a53abb 212 doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 213
abcce93a
MB
2142001-10-20 Miles Bader <miles@gnu.org>
215
216 The following changes remove the glyph_row `inverse_p' field,
217 which is never set anymore, due to other changes:
218
219 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
220 (reassert_line_highlight, change_line_highlight): Declarations removed.
221 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
222 (line_hash_code, row_equal_p, fake_current_matrices)
223 (build_frame_matrix_from_leaf_window, update_frame_line)
224 (update_frame_line, update_frame_line, update_frame_line):
225 Don't use `inverse_p' field.
226 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
227 change_line_highlight_hook.
228 (XTreassert_line_highlight, x_change_line_highlight):
229 Functions removed.
230 (x_fix_overlapping_area, x_write_glyphs, expose_area)
231 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
232 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
233 `inverse_p' field.
234 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
235 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
236 (w32_reassert_line_highlight, x_change_line_highlight):
237 Functions removed.
238 * w32console.c (reassert_line_highlight, change_line_highlight):
239 Functions removed.
240 (initialize_w32_display): Don't set reassert_line_highlight_hook
241 or change_line_highlight_hook.
242 (hl_mode): Function removed.
243 (reset_terminal_modes, set_terminal_modes, update_begin)
244 (update_end, w32_face_attributes, initialize_w32_display):
245 (clear_frame, ins_del_lines): Don't call it.
246 * termhooks.h (reassert_line_highlight_hook)
247 (change_line_highlight_hook): Declarations removed.
248 * term.c (reassert_line_highlight_hook)
249 (change_line_highlight_hook): Variables removed.
250 (reassert_line_highlight, change_line_highlight): Functions removed.
251 * msdos.c (IT_reassert_line_highlight)
252 (IT_change_line_highlight): Functions removed.
253 (internal_terminal_init): Don't set reassert_line_highlight_hook
254 or change_line_highlight_hook.
255 (highlight): Variable removed.
256 (IT_set_face, IT_update_begin, IT_update_end)
257 (IT_set_terminal_modes): Don't set or use it.
258
259 The following changes remove inverse-video support for terminals
260 that use a `magic cookie' standout mode. Due to changes in the
261 way mode-lines are displayed, such support no longer works
262 anyway, and it's probable that almost no one uses such terminals
263 anymore:
264
265 * term.c (standout_requested): Variable removed.
266 (update_end, highlight_if_desired): Don't use it.
267 (chars_wasted, copybuf): Variables removed.
268 (write_standout_marker): Function removed.
269 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
270 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
271 Don't use `chars_wasted' or `copybuf'.
272 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
273 Set `costs_set' to true.
274 (cursor_to, clear_end_of_line): Test `costs_set' instead of
275 `chars_wasted'.
276 (clear_end_of_line): Function removed.
277 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
278 (clear_to_end): Call `clear_end_of_line' instead of
279 `clear_end_of_line_raw'.
54800acb
MB
280 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
281 (term_init): Don't set them.
282 Turn off any standout/underline modes that require magic cookies.
283 (ins_del_lines, highlight_if_desired, background_highlight)
284 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
285 Remove special processing for magic-cookie standout modes.
286 (turn_off_face, turn_on_face): Remove special processing for
287 underline magic-cookie glitch.
abcce93a 288
0b5f679f
RS
2892001-10-19 Richard M. Stallman <rms@gnu.org>
290
291 * eval.c (syms_of_eval): Doc fixes.
292
5a4a5bd4
GM
2932001-10-19 Gerd Moellmann <gerd@gnu.org>
294
295 * xdisp.c (redisplay_internal): Don't clear echo area if the
296 mini-window is selected.
297
79f1f96c
MB
2982001-10-19 Miles Bader <miles@gnu.org>
299
b57c2708
MB
300 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
301 doesn't take precedence if the affected property's value is nil.
302
303 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
304
79f1f96c
MB
305 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
306 with fields and suggest using `forward-line' to avoid them.
307 * editfns.c (Fline_beginning_position, Fline_end_position):
308 Clarify documentation.
309
ef879104
SM
3102001-10-18 Stefan Monnier <monnier@cs.yale.edu>
311
312 * keymap.c (current_minor_maps): `override' only shadows its
313 correspondent in minor-mode-map-alist, not the whole tail.
314
97f4db8c
AI
3152001-10-18 Andrew Innes <andrewi@gnu.org>
316
317 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
318 optimization. The fontp->encoding array was not being initialized
319 correctly when compiled with optimizations by MSVC.
320
e6b70fd8
GM
3212001-10-18 Gerd Moellmann <gerd@gnu.org>
322
30903479 323 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 324
0e804d38
AI
3252001-10-17 Andrew Innes <andrewi@gnu.org>
326
327 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
328
329 * w32fns.c (w32_load_system_font): Cache codepage for font, in
330 font_info.charset field.
331
332 * w32term.c (w32_encode_char): Get cached codepage from font_info,
333 rather than working it out by calling w32_codepage_for_font for
334 every glyph.
335
66e5868a
AI
3362001-10-17 Andrew Innes <andrewi@gnu.org>
337
338 * w32term.c (w32_read_socket): Determine clipping rectangle for
339 the entire frame, including areas covered by scrollbars and the
340 menubar. This avoids internal arguments about whether a frame is
341 fully obscured or not.
342
15b00083
GM
3432001-10-17 Gerd Moellmann <gerd@gnu.org>
344
23e8bd86
GM
345 * xdisp.c (try_window_id): Undo last change. Give up if
346 window ends in strings.
30903479 347
9c6ba6d1 348 * xdisp.c (try_window_id): Don't display lines after the window
30903479 349 end if the rest of the window after the window end was already blank.
23e8bd86 350
30903479 351 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
352 for the release of 21.1.
353
30903479 354 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 355
945220bd
MB
3562001-10-17 Miles Bader <miles@gnu.org>
357
358 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
359 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
360 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
361 Change doc-string comments to `new style' [w/`doc:' keyword].
362 (DOC_STRINGS_IN_COMMENTS): Macro removed.
363 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
364 out make-docfile.
365
14242528
MB
3662001-10-16 Miles Bader <miles@gnu.org>
367
368 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
369
3ddf952f
GM
3702001-10-16 Gerd Moellmann <gerd@gnu.org>
371
372 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
373 *scratch*.
374
f3fbd155
KR
3752001-10-16 Ken Raeburn <raeburn@gnu.org>
376
377 Avoid the assumption that car and cdr slots of cons cells are
378 addressable lvalues; this allows for easier experimentation with
379 other lisp implementations that may not permit such accesses for
380 various reasons. Not quite complete -- buffer.c still needs some
381 work, and w32/mac files need rechecking -- so compile-time
382 enforcement is left disabled for now.
383
384 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 385 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
386 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
387 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
388 (XSETCAR, XSETCDR): New macros.
389 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
390 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
391 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
392 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
393 XSETCDR.
394 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
395 * buffer.c (record_buffer, Fbury_buffer)
396 (swap_out_buffer_local_variables, recenter_overlay_lists)
397 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
398 fields of a cons cell respectively.
399 * callint.c (quotify_args, Fcall_interactively): Likewise.
400 * ccl.c (Fregister_code_conversion_map): Likewise.
401 * coding.c (detect_coding_system): Likewise.
402 * composite.c (get_composition_id, make_composition_value_copy):
403 Likewise.
30903479
SM
404 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
405 (swap_in_symval_forwarding, set_internal, Fset_default)
406 (Fmake_variable_buffer_local, Fmake_local_variable)
407 (Fmake_variable_frame_local): Likewise.
f3fbd155 408 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479
SM
409 * keymap.c (Fset_keymap_parent, store_in_keymap)
410 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap):
f3fbd155
KR
411 Likewise.
412 * minibuf.c (get_minibuffer): Likewise.
413 * search.c (Fmatch_data): Likewise.
414 * textprop.c (extend_property_ranges): Likewise.
415 * undo.c (record_insert, Fundo_boundary, truncate_undo_list):
416 Likewise.
417 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
418 Likewise.
419 * w32term.c (x_delete_display): Likewise.
420 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
421 Likewise.
422 * xterm.c (x_list_fonts, x_load_font, x_delete_display):
423 Likewise.
424 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 425 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
426 (Fread_file_name): Use XSETCAR.
427 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
428 CHECK_NUMBER_CDR.
429 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
430 * frame.c (Fmake_terminal_frame): Use XSETCDR.
431 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
432 CHECK_NUMBER_CDR.
433 * keyboard.c (read_char): Alter list traversal to avoid taking the
434 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
435 (parse_menu_item): Use XSETCAR and XSETCDR.
436 (reach_char_x_menu_prompt): Use XSETCAR.
437 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
438 (Fcommand_execute): Use XSETCDR.
439 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
440 (openp): Change list traversal to avoid using XCAR as lvalue.
441 (read_list): Use XSETCDR.
442 * process.c (wait_reading_process_input): Change wait_for_cell
443 handling to avoid taking addresses of cons cell slots.
30903479
SM
444 * xselect.c (x_own_selection, x_handle_selection_clear)
445 (x_clear_frame_selections): Use XSETCDR.
446 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
447 (x_handle_property_notify, x_get_foreign_selection)
448 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 449
502150e5
PJ
4502001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
451
018ba359
PJ
452 * buffer.c: Put doc strings in comments.
453
30903479 454 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 455
b56ba8de
SS
4562001-10-15 Sam Steingold <sds@gnu.org>
457
458 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
459
6a0b793a
PJ
4602001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
461
30903479
SM
462 * process.c (process-inherit-coding-system-flag)
463 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
464 in comment.
465
a1f17501 466 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 467 arguments. Put doc strings in comments.
a65da641
PJ
468
469 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 470
aa601ad0
GM
4712001-10-15 Gerd Moellmann <gerd@gnu.org>
472
30903479 473 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 474
aa601ad0
GM
475 * window.c (select_window_1): Unfreeze window start. Remove a
476 doubled test for WINDOW being live.
477
288148a1
PJ
4782001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
479
dd8d1e71
PJ
480 * fns.c (Fmapconcat): Fix typo in a doc string.
481
288148a1
PJ
482 * dispnew.c (Fsleep_for): Fix typo in a doc string.
483
9f5eb4a3
GM
4842001-10-15 Gerd Moellmann <gerd@gnu.org>
485
486 * xterm.c (x_draw_glyph_string): Restore clipping after
487 drawing box.
488
dbae44c8
PJ
4892001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
490
30903479 491 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 492
0c88c937
SM
4932001-10-14 Stefan Monnier <monnier@cs.yale.edu>
494
56378db4
GM
495 * indent.c (skip_invisible): Use new retval of
496 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 497
845e4cf4
SM
498 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
499 If a parent is reached and noinherit is set, exit immediately.
500 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
501
0c88c937
SM
502 * s/ms-w32.h (EXEC_SUFFIXES):
503 * s/msdos.h (EXEC_SUFFIXES):
504 * process.h (EXEC_SUFFIXES): Remove.
505
506 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
507 (decode_suffixes): Remove.
508
509 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
510 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
511 (invisible_ellipsis_p): Remove.
0c88c937
SM
512
513 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
514 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
515 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
516 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
517 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 518
d19be8a9
PJ
5192001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
520
04d7d066
PJ
521 * lisp.h (Ftop_level): Add prototype.
522
d624284c
PJ
523 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
524 (XTread_socket): Improve style of comments to follow other
525 comments.
526
a87414f9
PJ
527 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
528 is already prototyped in included lisp.h).
529
d19be8a9
PJ
530 * frame.c (Fset_mouse_position): Improve style of comment to
531 follow other comments.
532 (Fset_mouse_pixel_position): Improve style of comment to follow
533 other comments.
534 (Fmake_frame_visible): Doc fix and typo in comment.
535 (Fmake_frame_invisible): Doc fix and typo in comment.
536 (Ficonify_frame): Fix typo in comment.
537
c061c855
GM
5382001-10-14 Gerd Moellmann <gerd@gnu.org>
539
37f6b5b6 540 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 541 * term.c, alloc.c: Put doc strings in comments.
c061c855 542
e641b454
GM
5432001-10-13 Gerd Moellmann <gerd@gnu.org>
544
545 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
546 Provide definitions for doc strings in comments.
547
548 * fns.c: Put doc strings in comments.
549
51724e26
EZ
5502001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
551
552 * dired.c (file_name_completion): Ignore a candidate directory if
553 it matches an element in completion-ignored-extensions that ends
554 in a slash.
555 (syms_of_dired) <completion-ignored-extensions>: Mention the above
556 feature in the doc string.
557 (Ffile_name_completion): Ditto.
558
be5fc59b
SM
5592001-10-12 Stefan Monnier <monnier@cs.yale.edu>
560
5a1373f3
SM
561 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
562
563 * xfns.c (syms_of_xfns): Update calls to Fprovide.
564
565 * lisp.h (Fprovide): Update prototype.
566 (Ffeaturep, invisible_p): Remove.
567
bbc4a3d3 568 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
569 (DOLIST, LOOP_PROPVAL): New macros.
570 (invisible_p, invisible_ellipsis_p): Use them.
571 (invisible_noellipsis_p): New function.
572 (syms_of_xdisp): Use empty_string.
573
574 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
575
576 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
577 (syms_of_lread) <Vafter_load_alist>: Update docstring.
578
579 * print.c (Fwith_output_to_temp_buffer): Align with
580 internal_with_output_to_temp_buffer.
581 (print_preprocess): Use traverse_intervals_noorder.
582 (print_object): Update call to traverse_intervals.
583
584 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
585 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
586
587 * intervals.c (traverse_intervals_noorder): New function.
588 (search_for_interval, count_intervals): Use it.
589 (traverse_intervals): Use less stack space and drop `depth' arg.
590
591 * fns.c (Ffeaturep): Add new `subfeature' arg.
592 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
593 (Qsubfeatures): New var.
594 (syms_of_fns): Initialize it.
595
026f408d
SM
596 * keymap.c (Fkey_description): Use empty_string.
597 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
598 (syms_of_keymap): Setup inheritance between maps.
599 Don't export Sdescribe_bindings_internal any more.
600
be5fc59b
SM
601 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
602
3365175e
GM
6032001-10-12 Gerd Moellmann <gerd@gnu.org>
604
605 * xterm.c (notice_overwritten_cursor): Renamed from
606 note_overwritten_text_cursor. Rewritten to take glyph widths into
607 account.
608
2ab7765c
EZ
6092001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
610
611 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
612 multi-line strings without a trailing "\n\".
613
311346bb
PJ
6142001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
615
616 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
617 defined.
618
2168e04d
SM
6192001-10-11 Stefan Monnier <monnier@cs.yale.edu>
620
026f408d
SM
621 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
622
c0ec53ad
SM
623 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
624 * w32proc.c (sys_spawnve):
625 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
626 * w32.c (check_windows_init_file):
627 * sound.c (Fplay_sound):
026f408d 628 * emacs.c (init_cmdargs):
c0ec53ad
SM
629 * process.c (Fstart_process): Update calls to openp.
630
631 * callproc.c (Vexec_suffixes): New var.
632 (Fcall_process): Update call to openp.
633 (decode_suffixes): New function.
634 (syms_of_callproc): Init exec-suffixes.
635
636 * lread.c (Vload_suffixes, default_suffixes): New vars.
637 (openp): Take a lisp list of suffixes.
638 Check for file-name-handlers even if the file was absolute already.
639 (syms_of_lread): Declare load-suffixes.
640 (Fload): Fix up call to openp.
641 Don't bother checking for file-name-handler at the very beginning.
642
f6333468
SM
643 * keymap.h (Fcopy_keymap): Don't export.
644
645 * lisp.h (empty_string): Declare.
c0ec53ad
SM
646 (Vload_suffixes, Vexec_suffixes): Declare.
647 (openp): Update prototype.
f6333468
SM
648
649 * emacs.c (empty_string): New var.
650 (syms_of_emacs): Initialize it.
651
652 * search.c (wordify): Use it.
653
654 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
655 selected window if it's not displayed there. Handle the case
656 when the window is dedicated.
657 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
658
659 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
660
2168e04d
SM
661 * syntax.h (struct gl_state_s): Change the meaning of b_property.
662 Remove left_ok and right_ok.
663 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
664 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
665 new meaning of b_property.
666
667 * syntax.c (update_syntax_table): Simplify.
668 (Fforward_comment): Don't skip quoted chars when going backward.
669
13d95cc0
GM
6702001-10-11 Gerd Moellmann <gerd@gnu.org>
671
beb0990f
GM
672 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
673 in case I is of some unsigned type, in which case
674 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
675 comparison becomes bogus.
676
cb938d46
GM
677 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
678 (Fuser_full_name): Fix bug treating a float as a fixnum.
679
680 * data.c (Fstring_to_number): Use make_fixnum_or_float.
681
682 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 683
13d95cc0
GM
684 * lisp.h (circular_list_error): Add prototype.
685
686 * data.c (Qcircular_list): New variable.
687 (circular_list_error): New function.
688 (syms_of_data): Initialize it Qcircular_list.
689
e35f6ff7
SM
6902001-10-10 Stefan Monnier <monnier@cs.yale.edu>
691
692 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
693 casefiddle.c, buffer.c: Include keymap.h.
694
619632ac
GM
6952001-10-10 Gerd Moellmann <gerd@gnu.org>
696
697 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
698 options. From Dave Love <d.love@dl.ac.uk>.
699
5e5388f6
GM
7002001-10-09 Gerd Moellmann <gerd@gnu.org>
701
702 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
703 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
704
14a3dff7
GM
705 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
706 unsigned char.
707 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 708
76ba8daf
AI
7092001-10-08 Andrew Innes <andrewi@gnu.org>
710
711 * lisp.h [max]: Undef min and max before redefining them.
712
713 * w32gui.h: Do not undef min and max.
714
715 * w32heap.h: Do not undef min and max.
716
717 * s/ms-w32.h: Do not undef min and max.
718
166253cb
SM
7192001-10-08 Stefan Monnier <monnier@cs.yale.edu>
720
721 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
722
0c4d9527
SS
7232001-10-08 Sam Steingold <sds@gnu.org>
724
725 * keymap.c (current-active-maps): Quote newlines (compilation error).
726
14bfa771
EZ
7272001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
728
729 * Makefile.in (lisp, shortlisp): Replace bindings.el with
730 bindings.elc, since otherwise doc strings in bindings.el get wrong
731 offsets in etc/DOC.
732
bdb7aa47
SM
7332001-10-08 Stefan Monnier <monnier@cs.yale.edu>
734
9985827f
SM
735 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
736
737 * keyboard.h (map_prompt): Remove.
738
739 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 740 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 741
bdb7aa47
SM
742 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
743
744 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
745
746 * keyboard.c (map_prompt): Remove.
747 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
748 Use Fkeymap_prompt.
749
750 * keymap.h: New file. Extracted from lisp.h.
751
9985827f
SM
752 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
753 (accessible_keymaps_1): New function.
754 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
755 (Fwhere_is_internal): Use Fcurrent_active_maps.
756 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
757 Insert in current buffer rather than standard-output.
758 Don't call `help-mode'. Export to elisp.
759 (describe_buffer_bindings): New wrapper.
760 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
761 and Sdescribe_buffer_bindings.
762
402c9a51
GM
7632001-10-08 Gerd Moellmann <gerd@gnu.org>
764
9985827f 765 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
766 Remove code setting signal handler.
767
9985827f 768 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
769 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
770
3fe81fdf
PJ
7712001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
772
773 * keyboard.c: Don't define min/max.
774
55fa7820
GM
7752001-10-08 Gerd Moellmann <gerd@gnu.org>
776
9985827f 777 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 778 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 779 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 780 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 781 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
782 Don't define min/max.
783
784 * lisp.h (min, max): New macros.
785
55fa7820
GM
786 * puresize.h (BASE_PURESIZE): Increase to 725000.
787
1aad31e4
PJ
7882001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
789
9180dc8c
PJ
790 * xfaces.c (free_frame_menubar): Add prototype.
791
01f67d2c
PJ
792 * lisp.h (init_window): Add prototype.
793
794 * editfns.c: Include ctype.h.
795
796 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 797 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
798 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
799 variable `sb'.
800
5f351ff1
PJ
801 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
802 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
803 `popup_activated_flag' and `title'.
804
479dfe87
PJ
805 * doc.c (Fdocumentation_property): Fix typo in a doc string.
806
dff49fc8
PJ
807 * emacs.c (main): Remove extra `;'.
808
248ac615
PJ
809 * atimer.h (struct atimer): Fix typos in a comment.
810
811 * atimer.c: Fix typo.
812
af232c7d
PJ
813 * Makefile.in: Fix typo.
814
815 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 816
d876f455
MB
8172001-10-07 Miles Bader <miles@gnu.org>
818
819 * Makefile.in (lisp, shortlisp): Add `button.elc'.
820
0037e2f2
KR
8212001-10-07 Ken Raeburn <raeburn@gnu.org>
822
b056f36d
KR
823 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
824 Lisp_Object.
825
0037e2f2
KR
826 * lisp.h (Ffield_end): Declare.
827
1a4372ef
GM
8282001-10-07 Gerd Moellmann <gerd@gnu.org>
829
a4a74e8c
GM
830 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
831
832 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
833
834 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
835
836 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
837
1a4372ef
GM
838 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
839 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
840
841 * alloc.c (inhibit_garbage_collection): Simplify.
842 (Fmemory_use_counts): Ditto.
843
9985827f 844 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
845 (syms_of_data): DEFVAR_INT most-positive-fixnum and
846 most-negative-fixnum.
847
9985827f 848 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
849 (FIXNUM_OVERFLOW_P): New macros.
850
4650e362
MB
8512001-10-06 Miles Bader <miles@gnu.org>
852
853 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
854 scroll_bar_bottom_shadow_pixel fields.
855 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
856 for the shadows, and tell the toolkit about them if we succeed.
857 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
858 Free scroll-bar shadow colors.
859 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
860 Free scroll-bar shadow colors when the background color changes.
861 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
862 Initialize scroll-bar shadow-color fields.
863
ace64e0a
GM
8642001-10-05 Gerd Moellmann <gerd@gnu.org>
865
866 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
867
ec66bdc7
MB
8682001-10-05 Miles Bader <miles@gnu.org>
869
9985827f
SM
870 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
871 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 872 New functions (were in simple.el).
9985827f 873 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
874 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
875 (syms_of_minibuf): Initialize them.
876
a0fb4492
GM
8772001-10-05 Gerd Moellmann <gerd@gnu.org>
878
879 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
880 (tiff_load): Install them as error and warning handler.
881
0bcf87c1
AI
8822001-10-04 Andrew Innes <andrewi@gnu.org>
883
884 * w32fns.c (x_to_w32_color): Fix argument to alloca.
885 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 886 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
887 (x_to_w32_charset): Handle private format for unknown charsets.
888 Handle wildcards in charset spec, by ignoring them.
889 (w32_codepage_for_font): Fix argument to alloca. Don't remove
890 "*-" prefix from charset.
891 (x_to_w32_font): Enlarge remainder array for safety. Specifically
892 handle the truncated font spec form constructed by font_list_1, so
893 that we correctly identify the charset fields. Don't remove "*-"
894 prefix from charset.
895 (w32_list_synthesized_fonts): Fix argument to alloca.
896
c89e4bc5
GM
8972001-10-04 Stefan Monnier <monnier@cs.yale.edu>
898
899 * window.h (MINI_WINDOW_P): Use NILP.
900
901 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
902
903 * termhooks.h (struct input_event): Use proper type for `kind'.
904
9052001-10-04 Gerd Moellmann <gerd@gnu.org>
906
907 This handles unknown keysyms better than before. For example,
908 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
909 Emacs formerly completely ignored F5. With the change, it derives
910 a key symbol from the name of the X keysym, `ccaron' in this case.
911 Reported by Martin Buchholz.
912
913 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
914 unknown keysyms.
915
916 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
917 that EVENT->code isn't a function key, use the keysym's name.
918
9192001-10-04 Gerd Moellmann <gerd@gnu.org>
920
921 FOREACH is a macro that should make it easier to loop over Lisp
922 lists with checks for cycles and proper lists.
923
924 * lisp.h (LIST_END_P, FOREACH): New macros.
925
9262001-10-04 Gerd Moellmann <gerd@gnu.org>
927
928 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
929 called for a lost connection. Prevent dumping core in this case.
930 Instead print the X error, and exit. On user request.
931
932 * xterm.c (error_msg): New variable.
933 (x_fatal_error_signal): New function.
934 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
935 as fatal_error_signal_hook around the call to XtCloseDisplay.
936
937 * emacs.c (fatal_error_signal_hook): New variable.
938 (fatal_error_signal): Call that function.
939
9402001-10-04 Gerd Moellmann <gerd@gnu.org>
941
942 With this, Emacs prints how much pure storage it will
943 approximately need in case pure storage overflows while dumping.
944
945 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
946 New variables.
947 (init_alloc_once): Initialize new variables.
948 (PURE_POINTER_P): Use new variables.
949 (pure_alloc): If pure storage overflows, allocate from the heap.
950 (check_pure_size): New function.
951 (Fgarbage_collect): Don't GC if pure storage has overflowed.
952
953 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
954 (check_pure_size): Add prototype.
955
956 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
957
9582001-10-04 Gerd Moellmann <gerd@gnu.org>
959
960 This adds a post-gc-hook that's run with GC inhibited.
961 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
962
963 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
964 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
965 (Fgarbage_collect): Run post-gc-hook.
966
9672001-10-04 Gerd Moellmann <gerd@gnu.org>
968
969 This adds `defvaralias' and `indirect-variable'. Changes not
970 directly related to this feature are there to gain the same
971 performance again as before variable aliases.
972
973 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
974 code to get and set symbol values, to take defvaralias into account.
975
976 (Note: the new `constant' bit-flag in symbols would make it
977 possible to define arbitrary read-only variables, e.g. with
978 `defconst'.)
979
980 Documentation is in lispref/variables.texi. Added to NEWS.
981
982 * lisp.h (enum symbol_interned): New enumeration.
983 (struct Lisp_Symbol): Remove member `obarray', add
984 `indirect_variable', `constant', and `interned'.
985 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
986 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
987 (indirect_variable): Add prototype.
988
989 * print.c (print_preprocess, print_object): Test internedness of
990 symbols differently.
991
992 * lread.c (Fintern, Funintern): Set symbol's interned and constant
993 bit-fields.
994 (init_obarray): Likewise for t and nil.
995
996 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
997 (Fdefvaralias): New function.
998 (specbind): Simplify the test if symbol is a constant.
999 (syms_of_eval): Defsubr Fdefvaralias.
1000
1001 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1002 (Qcyclic_variable_indirection): New variable.
1003 (Fkeywordp): Check for internedness differently.
1004 (Fmakunbound): Simplify the test if symbol is a constant.
1005 (indirect_variable, Findirect_variable): New functions.
1006 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1007 aliased symbol.
1008 (let_shadows_buffer_binding_p): Check for variable aliases.
1009 (set_internal): Simplify the test if SYMBOL is a constant.
1010 If SYMBOL has a buffer-local value and is an alias, use the aliased
1011 symbol instead.
1012 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1013 Sindirect_variable.
1014
1015 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1016 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1017 set directly.
1018
1019 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1020
1021 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1022 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1023 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1024
ab952a4f
GM
10252001-10-04 Gerd Moellmann <gerd@gnu.org>
1026
1027 * Branch for 21.1.
b56ba8de 1028
ba88ff28
MB
10292001-10-03 Miles Bader <miles@gnu.org>
1030
1031 * callproc.c (syms_of_callproc): Explicitly state in the
1032 documentation for `process-environment' that earlier entries take
1033 precedence over later ones.
1034
ae1a9581
MB
10352001-10-02 Miles Bader <miles@gnu.org>
1036
1037 * textprop.c (Fnext_char_property_change)
1038 (Fprevious_char_property_change): Remove reference to non-existant
1039 argument OBJECT from doc-string.
1040
257e3f57
GM
10412001-10-01 Gerd Moellmann <gerd@gnu.org>
1042
1043 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1044 (try_window_id): Skip back over lines ending in a newline from a
1045 string.
1046
1047 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1048 New bit flag
1049
c1f29759
RS
10502001-10-01 Richard M. Stallman <rms@gnu.org>
1051
1052 * search.c (Freplace_match): Doc fix.
1053
c30dce3d
AI
10542001-09-28 Andrew Innes <andrewi@gnu.org>
1055
1056 * w32menu.c (set_frame_menubar): Take into account that
1057 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1058 <raeburn@gnu.org>.
1059
03be5931
EZ
10602001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1061
1062 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1063
75bec752
PJ
10642001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1065
1066 * s/gnu-linux.h: Fix a typo in comment.
1067
83100e0a
AS
10682001-09-28 Andreas Schwab <schwab@suse.de>
1069
1070 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1071 nocombreloc, in case -z combreloc is the default.
1072
a74b48cf
GM
10732001-09-28 Gerd Moellmann <gerd@gnu.org>
1074
1075 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1076 really going on here.
1077
09c4719e
SM
10782001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1079
1080 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1081
f7d5d963
EZ
10822001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1083
1084 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1085 utf-8, menu-bar, and latin-N.
1086 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1087 unconditionally now.
1088 (lisp): Add latin-N, since they are preloaded.
1089
9240e746
GM
10902001-09-27 Gerd Moellmann <gerd@gnu.org>
1091
14531065
GM
1092 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1093 to the left. Some cleanup.
1094
9240e746
GM
1095 * xdisp.c (display_mode_element): One more case where a string's
1096 multibyteness should be used for display.
1097
edd1e654
GM
10982001-09-26 Gerd Moellmann <gerd@gnu.org>
1099
b02439c8
GM
1100 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1101 reading at EOF.
1102
032906b1 1103 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 1104 of the only temporarily set echoing flag for deciding when
032906b1
GM
1105 the cancel echoing.
1106
1107 * keyboard.c (echo_kboard): Make externally visible.
1108
1109 * lisp.h (echo_kboard): Declare extern.
1110
cb617e7c 1111 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 1112 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
1113 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1114 this round of redisplay if make_cursor_line_fully_visible fails.
1115 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 1116 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
1117
1118 * dispextern.h (required_matrix_width, required_matrix_height):
1119 Add prototypes.
1120
09c4719e
SM
1121 * dispnew.c (required_matrix_width, required_matrix_height):
1122 New functions.
cb617e7c 1123 (allocate_matrices_for_window_redisplay)
09c4719e
SM
1124 (allocate_matrices_for_frame_redisplay: Use them.
1125 Remove parameters CH_DIM.
cb617e7c 1126
edd1e654
GM
1127 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1128 and selected_window to the frame of the window whose mode-lines
1129 are displayed, and to the window itself.
1130 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 1131 here.
edd1e654 1132
924b604c
GM
11332001-09-25 Gerd Moellmann <gerd@gnu.org>
1134
daba7643
GM
1135 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1136 the image cache under us.
1137
b7a22712 1138 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 1139 with a string value, use that string's multibyteness for displaying.
b7a22712 1140
ad648212
GM
1141 * keyboard.c (read_char): Don't clear a message for a switch-frame
1142 event. From Stefan Monnier <monnier@cs.yale.edu>.
1143
9f8531e5
GM
1144 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1145 version for after 21.1.
1146
1147 * xdisp.c (row_containing_pos): Make externally visible.
1148
1149 * dispextern.h (row_containing_pos): Add prototype.
1150
924b604c
GM
1151 * process.c (send_process): Disable composition if from_byte < 0.
1152 From Kenichi Handa <handa@etl.go.jp>.
1153
6f3f0db4
GM
11542001-09-24 Gerd Moellmann <gerd@gnu.org>
1155
c69c0ebc
GM
1156 * xterm.c (refreshicon): Function removed.
1157
d1182bc4
GM
1158 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1159
1160 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1161
1162 * xterm.c (toplevel): Remove includes in #if 0.
1163
6f3f0db4
GM
1164 * process.c (sigchld_handler) [LINUX]: Don't return from
1165 the signal handler at the end of the loop.
1166
59957f85
GM
11672001-09-21 Gerd Moellmann <gerd@gnu.org>
1168
09c4719e
SM
1169 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1170 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 1171
a0528984
EZ
11722001-09-21 Markus Rost <rost@math.ohio-state.edu>
1173
1174 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1175
db92b288
GM
11762001-09-20 Gerd Moellmann <gerd@gnu.org>
1177
3fed8ad5
GM
1178 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1179 since this function can be called during GC.
1180
db92b288
GM
1181 * callproc.c (Fcall_process): Handle errors from pipe(2).
1182 (child_setup): Delete code in #ifdef vipc.
1183
7121b85a
GM
11842001-09-19 Gerd Moellmann <gerd@gnu.org>
1185
72f62cb5
GM
1186 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1187 (display_mode_element): Display the string from decode_mode_spec
1188 depending on its multibyteness.
1189
a2697022
GM
1190 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1191
7121b85a
GM
1192 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1193
bfc97351
GM
11942001-09-18 Gerd Moellmann <gerd@gnu.org>
1195
c9063433
GM
1196 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1197 recursive_edit_unwind.
1198 (recursive_edit_unwind): Set kboard state according to
1199 SINGLE-KBOARD.
1200
3fbdba3e
GM
1201 * buffer.c (modify_overlay): Don't do nothing if START == END;
1202 This can still be a modification, for example when an overlay has
1203 a before-string or after-string.
1204 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1205 an overlay with before-string or after-string.
1206
1270031d
GM
1207 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1208 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1209
bfc97351
GM
1210 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1211 first_unchanged_at_end_row is in front of
1212 last_unchanged_at_beg_row. This code should be removed after the
1213 release of 21.1.
1214
d8a973aa
GM
12152001-09-17 Gerd Moellmann <gerd@gnu.org>
1216
e18c8b8d
GM
1217 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1218 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1219
d8a973aa
GM
1220 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1221 versions >= 2.95.
1222
ed7d6ba4
EZ
12232001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1224
1225 * dired.c (Ffile_attributes): Doc fix.
1226
551629f9
GM
12272001-09-14 Gerd Moellmann <gerd@gnu.org>
1228
1229 * fileio.c (Ffile_symlink_p): Fix last change.
1230
1231 * filelock.c (current_lock_owner): Fix last change.
1232
4c8c7926
GM
12332001-09-13 Gerd Moellmann <gerd@gnu.org>
1234
620c4704
GM
1235 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1236 take that to mean that the buffer is too small.
1237
81c3310d
GM
1238 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1239 that to mean that the buffer is too small.
1240
06fd3792
GM
1241 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1242 current buffer's multibyteness when discarding the iterator's
1243 stack.
1244
4c8c7926
GM
1245 * xfns.c (Fx_window_property): Handle case that property gets
1246 deleted between the two calls to XGetWindowProperty.
1247
9a72e4c1
GM
12482001-09-11 Gerd Moellmann <gerd@gnu.org>
1249
bd819d14 1250 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 1251
a41edd99
GM
1252 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1253 in addition to read-only.
1254
1255 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1256 to t in addition to read-only.
1257
1258 * lisp.h (Qinhibit_modification_hooks): Declare.
1259
1260 * insdel.c (Qinhibit_modification_hooks): New variable.
1261 (syms_of_insdel): Initialize and staticpro it.
1262
d4881c6a
GM
1263 * textprop.c (verify_interval_modification): Don't run
1264 modification-hooks if inhibit_modification_hooks.
1265
1266 * dispnew.c (set_window_cursor_after_update): Fix code
1267 finding glyph row containing cursor when cursor_in_echo_area
1268 is >= 0.
1269
9a72e4c1
GM
1270 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1271 (add_to_log): Use bcopy instead of strcpy.
1272 (init_from_display_pos): Use an explicit loop over bytes in
1273 overlay strings instead of calling index.
1274
f4a374a1
GM
12752001-09-10 Gerd Moellmann <gerd@gnu.org>
1276
300e57bd
GM
1277 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1278
1279 * dispnew.c (direct_output_for_insert): Don't change IT's
1280 stop_charpos to something in front of its current position.
1281
f4a374a1
GM
1282 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1283 `format'.
1284
7e4cbc91
RS
12852001-09-10 Richard M. Stallman <rms@gnu.org>
1286
1287 * frame.c (Fmouse_position): Doc fix.
1288
6afad91e
GM
12892001-09-07 Gerd Moellmann <gerd@gnu.org>
1290
1291 * xdisp.c (init_from_display_pos): Don't compare the result
1292 of calling index with NULL.
1293
f76e0368
GM
12942001-09-06 Gerd Moellmann <gerd@gnu.org>
1295
1296 * xfns.c (x_set_background_color): Don't change the colors
1297 of the X window of scroll bar widgets.
1298
9ead1b60
AI
12992001-09-05 Andrew Innes <andrewi@gnu.org>
1300
1301 * w32fns.c (w32_createwindow): Undo last change.
1302
c3b497b3
GM
13032001-09-05 Gerd Moellmann <gerd@gnu.org>
1304
08e1d6df
GM
1305 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1306
c3b497b3
GM
1307 * xdisp.c (string_buffer_position): Use *single_char_property*
1308 functions instead of the *single_property* functions.
b56ba8de 1309
8f860180
AI
13102001-09-04 Andrew Innes <andrewi@gnu.org>
1311
9a72e4c1
GM
1312 * w32term.c (w32_read_socket): Add more information to debugging
1313 output.
8f860180
AI
1314
1315 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1316 from Emacs frames, so that calls to GetClipBox in w32term.c
1317 correctly report when part of a frame is visible (including
1318 scrollbars, etc). This prevents repeated redrawing of frames when
1319 only a scrollbar is visible.
1320 (w32_wnd_proc): Add more frame information to debugging output.
1321
2ee1aa00
SM
13222001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1323
1324 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1325
e3b22517
GM
13262001-09-03 Gerd Moellmann <gerd@gnu.org>
1327
7e376260
GM
1328 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1329 help-echo for a string which doesn't have help-echo itself, use
1330 get-char-property to obtain the help-echo from the string's buffer
1331 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1332 have mouse-face, look ``under'' the string for mouse-face from an
1333 overlay.
1334 (fast_find_position): Add parameter STOP. In the final row, stop
1335 before glyphs having STOP as object. Don't consider glyphs that
1336 are not from a buffer.
1337
e3b22517
GM
1338 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1339
9a249bba
EZ
13402001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1341
1342 * fns.c (Fmd5): Doc fix.
1343
c9979669
GM
13442001-08-31 Gerd Moellmann <gerd@gnu.org>
1345
1346 * composite.c (update_compositions): Do nothing if
1347 inhibit-modification-hooks is set.
1348
9584e63a
GM
13492001-08-30 Gerd Moellmann <gerd@gnu.org>
1350
986ec8f2 1351 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 1352 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
1353 glyph matrices etc. in a core dump.
1354
92a25631
GM
1355 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1356 (syms_of_xdisp): Initialize them.
1357 (handle_single_display_prop): Don't change point, bind `object',
1358 `position', and `buffer-position' instead to the object having the
2ee1aa00 1359 `display' property, position in the object and position in the buffer.
92a25631 1360
9584e63a
GM
1361 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1362 of the buffer if REPLACE is non-nil.
1363
d38633a3
GM
13642001-08-29 Gerd Moellmann <gerd@gnu.org>
1365
1366 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1367
f4fccc1e
EZ
13682001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1369
1370 * w32term.c (x_set_glyph_string_background_width)
1371 (show_mouse_face): Track the last changes in xterm.c.
1372
eaaa65b0
GM
13732001-08-28 Gerd Moellmann <gerd@gnu.org>
1374
7b0870b2
GM
1375 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1376 string's background width so that multi-line mouse-face is drawn
1377 to the right edge of the window.
1378 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1379 glyphs.
1380
6b6e2422 1381 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 1382 before inserting/writing glyphs.
6b6e2422 1383
eaaa65b0
GM
1384 * xdisp.c (display_mode_element): Use string_byte_to_char to
1385 determine character positions in strings, use chars_in_text
1386 instead of strwidth.
1387 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1388 a matrix as parameter; this is easier to use from GDB.
1389
9ad62cf8
MB
13902001-08-28 Miles Bader <miles@gnu.org>
1391
2ee1aa00
SM
1392 * textprop.c (Fprevious_single_char_property_change)
1393 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 1394
32171635
GM
13952001-08-27 Gerd Moellmann <gerd@gnu.org>
1396
47d57b22
GM
1397 * fileio.c (Finsert_file_contents): Allocate, restore, and
1398 free composition data in the case of REPLACE not being nil.
1399
1400 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1401 there exist overlay strings with newlines at POS.
1402 (text_outside_line_unchanged_p): Return 0 if changes start at
1403 START and overlays exist at START. Likewise for END.
1404 (try_window_id): Give up if init_to_row_end returns 0.
1405
32171635
GM
1406 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1407 unconditionally.
1408
e1249666
GM
14092001-08-24 Gerd Moellmann <gerd@gnu.org>
1410
33954c45
GM
1411 * keymap.c (access_keymap): Return the cdr of the binding of
1412 a generic character instead of its definition (KEY . BINDING).
1413
e1249666
GM
1414 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1415 to 0 also in the REPLACE case.
1416
fb4c6c96
AC
14172001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1418
1419 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1420 open to determine whether file is readable (as for DOS_NT).
1421
59ecf80b
GM
14222001-08-23 Gerd Moellmann <gerd@gnu.org>
1423
1424 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1425 coding.type is coding_type_no_conversion or coding_type_raw_text,
1426 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1427 non-nil instead of just setting enable_multibyte_characters in the
1428 buffer to nil.
1429
40e33037
GM
14302001-08-22 Gerd Moellmann <gerd@gnu.org>
1431
374388c3
GM
1432 * dispextern.h (struct face_cache): Add member
1433 menu_face_changed_p.
1434
1435 * xfaces.c (menu_face_changed_default): New variable.
1436 (menu_face_changed_count): Variable removed.
1437 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1438 the menu_face_changed_default flag, otherwise set the FRAME's
1439 menu_face_changed_p flag if the `menu' face has been changed.
1440 Prevent calling set_font_frame_param if FRAME is t.
1441 (make_face_cache): Initialize cache's menu_face_changed_p
1442 from menu_face_changed_default.
1443 (realize_basic_faces): Look into the frame's face cache to
1444 determine if the menu appearance needs updating.
1445
40e33037
GM
1446 * keymap.c (access_keymap): Fix last change to not consider
1447 IDX when it has modifiers.
1448
859ea4b8
GM
14492001-08-21 Gerd Moellmann <gerd@gnu.org>
1450
1451 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1452 . BINDING) exists, where GENERIC-CHAR is the generic character of
1453 the charset of IDX, return BINDING unless there exists a binding
1454 for IDX itself.
1455
e8660d73
GM
14562001-08-16 Gerd Moellmann <gerd@gnu.org>
1457
cca1b1d7
GM
1458 * xrdb.c (SYSV): Don't define on Solaris 2.
1459 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1460
e8660d73 1461 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 1462 of the screen line, not text line, containing IT's current position.
e8660d73 1463
93aba6fc
GM
14642001-08-15 Gerd Moellmann <gerd@gnu.org>
1465
288d4e06
GM
1466 * window.c (window_scroll_pixel_based): Don't recenter if
1467 PT is partially visible in the window.
1468
3452efc2
SM
1469 * xterm.c (expose_window_tree, expose_window, expose_line):
1470 Return 1 when overwriting mouse-face.
82f053ab
GM
1471 (expose_frame): If mouse-face was overwritten, redo it.
1472
93aba6fc
GM
1473 * xfaces.c (x_update_menu_appearance): Don't call
1474 set_frame_menubar, let the next redisplay do it.
1475
858a55c1
AI
14762001-08-14 Andrew Innes <andrewi@gnu.org>
1477
1478 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1479 drawing glyph string.
1480
3a990b67
EZ
14812001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1482
1483 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1484 running HI-UX/MPP.
1485
04386463
GM
14862001-08-14 Gerd Moellmann <gerd@gnu.org>
1487
1488 * xfaces.c (x_update_menu_appearance): Save and restore value of
1489 interrupt_input_blocked.
1490
3e6385a4
GM
14912001-08-13 Gerd Moellmann <gerd@gnu.org>
1492
b0e619b4
GM
1493 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1494 a line start, move back to the line start.
3452efc2 1495
0de73d5a
GM
1496 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1497 exactly when a mini-buffer is active.
1498
3e6385a4
GM
1499 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1500 in units of 1/8 character on non window-system frames.
1501 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1502
d1b5f629
EZ
15032001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1504
1505 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1506 a doc string.
1507
eaa2319f
GM
15082001-08-09 Gerd Moellmann <gerd@gnu.org>
1509
8e3189f0
GM
1510 * keyboard.c (Vpre_help_message): New variable.
1511 (syms_of_keyboard): Initialize and staticpro it.
1512 (show_help_echo): Record current message before displaying a
1513 help-echo, and restore that message when clearing the help.
1514
eaa2319f
GM
1515 * xfns.c (x_create_im): Remove prototype.
1516
1517 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1518
1519 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 1520
eaa2319f
GM
15212001-08-08 Gerd Moellmann <gerd@gnu.org>
1522
1523 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 1524 windows whose height has changed, disable partially visible lines.
eaa2319f 1525
17fdcfc8
GM
15262001-08-07 Gerd Moellmann <gerd@gnu.org>
1527
22d01aed 1528 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 1529 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 1530
17fdcfc8
GM
1531 * xdisp.c (start_display): Don't try to determine the continuation
1532 lines width if lines are truncated. It's superfluous and leads to
1533 incorrect results if POS is not visible in the window after
1534 reseating the iterator at the previous line start.
1535
8e3fe78e
GM
15362001-08-06 Gerd Moellmann <gerd@gnu.org>
1537
1538 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1539
98a8938c
GM
15402001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1541
1542 * alloc.c (init_stack): Remove declaration.
1543
18f9986a
GM
15442001-08-03 Gerd Moellmann <gerd@gnu.org>
1545
5e1f85e0
GM
1546 * keyboard.c (read_key_sequence): Check that key is an integer
1547 before comparing it with quit_char.
1548 (add_command_key): Use larger_vector.
1549 (read_char_x_menu_prompt): Instead of converting symbol and
1550 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 1551 which cannot be confused with valid events.
5e1f85e0
GM
1552 (read_char): When reading from Vunread_command_events, check for
1553 events of the form (EVENT . disabled) instead of
1554 (EVENT . nil).
1555
18f9986a
GM
1556 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1557 a float, determine the max height from the frame's height.
1558
fbc7f2a6
GM
15592001-08-02 Gerd Moellmann <gerd@gnu.org>
1560
1561 * xdisp.c (redisplay_internal): Take message_cleared_p into
1562 account only if minibuf_level == 0.
1563
81b1a79d
GM
15642001-08-01 Gerd Moellmann <gerd@gnu.org>
1565
e5c60873
GM
1566 * xdisp.c (redisplay_internal): Add a check for the last
1567 displayed message.
3452efc2 1568
6e019995
GM
1569 * xdisp.c (message_cleared_p): New variable.
1570 (clear_message): Set message_cleared_p when clearing the current
1571 message.
1572 (redisplay_internal): Look at message_cleared_p to capture
1573 the case that the echo area should be cleared.
1574
308a74d8
GM
1575 * keyboard.c (command_loop_1): Fix spelling of
1576 resize_echo_area_exactly.
1577
3452efc2 1578 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
1579
1580 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1581
81b1a79d
GM
1582 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1583 current matrix when the window gets smaller.
1584
ada329e6
EZ
15852001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1586
1587 * print.c (strout): Cast the character passed to insert_char to
1588 unsigned char, to avoid sign extension when it is promoted to int.
1589
ed86208c
GM
15902001-07-31 Gerd Moellmann <gerd@gnu.org>
1591
1592 * fileio.c (Finsert_file_contents): Don't treat a return value
1593 of 0 from emacs_read as an IO error.
1594
6594ac22
GM
15952001-07-30 Gerd Moellmann <gerd@gnu.org>
1596
cef68af5
GM
1597 * keyboard.c (abs): New macro.
1598 (double_click_fuzz): New variable.
1599 (make_lispy_event): Use it to determine what makes a double-click.
1600 (syms_of_keyboard): DEFVAR_INT it.
1601
6594ac22
GM
1602 * xmenu.c (set_frame_menubar): Take into account that
1603 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1604 <raeburn@gnu.org>.
1605
75c5350a
GM
16062001-07-27 Gerd Moellmann <gerd@gnu.org>
1607
1608 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1609
1610 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1611 of row's visible height.
1612
1613 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
1614 deal with the first overlay string having an image `display' property.
1615 (try_window_reusing_current_matrix, compute_line_metrics):
1616 Fix computation of row's visible height for the case that part of the
75c5350a
GM
1617 row is invisible above and part of the row is at the same time
1618 invisible below the window.
1619
ac49effe
GM
16202001-07-26 Gerd Moellmann <gerd@gnu.org>
1621
1622 * xfns.c (x-show-tip): Doc fix.
3452efc2 1623
ac49effe
GM
1624 * xfns.c (Vx_max_tooltip_size): New variable.
1625 (syms_of_xfns): DEFVAR_LISP it.
1626 (Fx_show_tip): Set frame's window_width to the width of the
1627 window. Use a maximum tooltip size specified by
1628 Vx_max_tooltip_size, if that has valid contents.
1629 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 1630
8c3b00cb
AI
16312001-07-26 Andrew Innes <andrewi@gnu.org>
1632
1633 * w32term.c (x_display_list): New variable.
1634 (w32_term_init): Set it.
1635
1636 * w32term.h (x_display_list): New extern.
1637
16098288
GM
16382001-07-26 Gerd Moellmann <gerd@gnu.org>
1639
1640 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
1641 is non-nil, instead of when redisplaying_p is non-zero.
1642 See comment there.
16098288
GM
1643 (mark_window_display_accurate_1): Add an assertion.
1644
64c5be50
GM
16452001-07-25 Gerd Moellmann <gerd@gnu.org>
1646
e743f599
GM
1647 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1648
563b384d
GM
1649 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1650 events so that we get a chance of processing expose events.
1651
64c5be50
GM
1652 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1653
296808a5
GM
16542001-07-24 Gerd Moellmann <gerd@gnu.org>
1655
1656 * xfns.c (valid_image_p): Protect better against invalid image
1657 specifications. Previous code could signal an error.
1658
5247262a
GM
16592001-07-23 Gerd Moellmann <gerd@gnu.org>
1660
3452efc2 1661 * indent.c (current_column): Fix column computation in the
f1004faf
GM
1662 presence of display table entries.
1663 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1664
dd42b31a
GM
1665 * dispnew.c (adjust_glyph_matrix): In the optimization for
1666 windows whose height has changed, use the new window height
1667 to compute which rows to invalidate.
1668
9e5a7f2a
GM
1669 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1670 (MAX_10_EXP): New macro.
1671 (Fformat): Use it.
1672
5247262a
GM
1673 * coding.c (code_convert_region): Handle the multibyte case if
1674 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1675
177ab8ce
GM
16762001-07-20 Gerd Moellmann <gerd@gnu.org>
1677
6e07c0a5
GM
1678 * dispextern.h (struct face): Change type of `stipple' to
1679 int; it's an ID.
1680
177ab8ce
GM
1681 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1682
b5b80599
GM
16832001-07-19 Gerd Moellmann <gerd@gnu.org>
1684
4e2a256b
GM
1685 * dispnew.c (update_window): Don't set the cursor at the end
1686 of the update if display update has been paused.
1687
3452efc2 1688 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 1689
c1fd9232
KR
16902001-07-18 Ken Raeburn <raeburn@gnu.org>
1691
1692 * fns.c (Fset_char_table_default): Check that a charset is defined
1693 before checking its dimension.
1694
928a85c1
KR
16952001-07-17 Ken Raeburn <raeburn@gnu.org>
1696
1697 * coding.c (setup_coding_system): Don't do any designation based
1698 on reg_bits if charset is not yet defined.
1699
fb4c6c96 1700 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
1701 pointer, using eassert.
1702
de11c1ea
GM
17032001-07-17 Gerd Moellmann <gerd@gnu.org>
1704
3452efc2
SM
1705 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1706 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 1707
467f1209
GM
17082001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1709
1710 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1711
c3d6be34
GM
17122001-07-16 Gerd Moellmann <gerd@gnu.org>
1713
c1d61a7d
GM
1714 * fileio.c (unwind_read): Function removed.
1715 (read_non_regular, read_non_regular_quit): New functions.
1716 (Finsert_file_contents): When reading from non-regular files,
1717 arrange to catch a `quit' and terminate the loop. Rearrange
1718 code so that a `quit' when reading from a regular file doesn't
1719 insert text in the buffer.
1720
c3d6be34
GM
1721 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1722 Clear faces afterwards.
1723 (clear_font_table): Take a x_display_info parameter. Don't free
1724 fonts being the default font of any frame on the given display.
1725
e06aa1f9
GM
17262001-07-13 Gerd Moellmann <gerd@gnu.org>
1727
1728 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1729 instead of CHAR_STRING which can signal an error.
1730
1731 * charset.c (char_to_string_1): Extracted from char_to_string.
1732 Return -1 instead of signaling an error.
1733 (char_to_string): Use it.
1734
1735 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1736
176c92e6
SM
17372001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1738
1739 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1740 is t, don't try to append anything to it.
1741
1c56232f
EZ
17422001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1743
1744 * dired.c (file_name_completion): Pass dp->d_name to
1745 Fstring_match, not elt, which is always nil here.
1746
1d2b2268
GM
17472001-07-12 Gerd Moellmann <gerd@gnu.org>
1748
1749 * xselect.c (x_decline_selection_request): Handle errors
1750 caused by receivers that have vanished.
1751
1752 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1753 ignoring events on foreign windows in #if 0. Always dispatch
1754 the event after checking it with x_handle_property_notify.
1755
1756 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
1757 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1758 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
1759 (toplevel): Add prototypes for file-local functions.
1760 (x_atom_to_symbol): Remove DPYINFO parameter.
1761
fe5a0162
SM
17622001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1763
1764 * w32menu.c (menubar_selection_callback, w32_menu_show):
1765 Initialize `entry' to nil.
1766 (w32_dialog_show): Remove unused `save_wv' variable.
1767 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1768
a777242c
GM
17692001-07-11 Gerd Moellmann <gerd@gnu.org>
1770
8ee5b6a3
GM
1771 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1772
d0e2444e
GM
1773 * fileio.c (unwind_read): Print a message when discarding inserted
1774 text or switching the buffer to unibyte. Change parameter.
1775 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 1776
a777242c
GM
1777 * fileio.c (unwind_read): New function.
1778 (Finsert_file_contents): Record it as unwind-function for
1779 the case that reading is interrupted by C-g.
1780
ae794295
GM
17812001-07-10 Gerd Moellmann <gerd@gnu.org>
1782
fe5a0162 1783 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
1784 update when scrolling_window returns 0.
1785
6b05fae3
GM
1786 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1787
1788 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 1789 for the case that x_decode_color signals an error.
6b05fae3 1790
ae794295
GM
1791 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1792
bb6e8cee
GM
17932001-07-09 Gerd Moellmann <gerd@gnu.org>
1794
1795 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1796 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1797 around ioctls.
1798
36b40a8a
EZ
17992001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1800
24b97d4b
EZ
1801 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1802 doc string line for dos-timezone-offset.
1803
36b40a8a
EZ
1804 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1805 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
1806 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1807 line for dos-unsupported-char-glyph.
36b40a8a
EZ
1808
1809 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1810
0967b4b0
GM
18112001-07-05 Gerd Moellmann <gerd@gnu.org>
1812
f25cfe53
GM
1813 * sound.c: Include Emacs' header files with #include "...".
1814
0967b4b0
GM
1815 * eval.c (specbind): Additionally record the buffer that was
1816 current when a buffer-local or frame-local variable was bound.
1817
c347a1c3
GM
18182001-07-04 Gerd Moellmann <gerd@gnu.org>
1819
1820 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1821 to unibyte characters in unibyte buffers.
1822
6332ca8a
GM
18232001-07-03 Gerd Moellmann <gerd@gnu.org>
1824
38472d44
GM
1825 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1826 the frame on the binding stack. Change format of entries for
1827 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1828 (unbind_to): Handle unbinding a frame-local variable.
1829
6332ca8a 1830 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 1831 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
1832 (dump_glyph_row): Print row's continuation_lines_width.
1833 (try_window_id): Take the shortcut if ZV is visible in the
1834 window, but there are actually no changes at ZV.
1835
63d1b174
GM
18362001-07-02 Gerd Moellmann <gerd@gnu.org>
1837
4c175203
GM
1838 * xterm.h (x_free_dpy_colors): Add prototype.
1839
1840 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1841 right number of arguments.
1842
0b54ce28
GM
1843 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1844 ($(lwlibdir)TAGS): New target.
4c175203 1845 (TAGS): Fix dependency list.
0b54ce28 1846
63d1b174
GM
1847 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1848 with input blocked.
1849
d827466c
GM
18502001-06-30 Gerd Moellmann <gerd@gnu.org>
1851
1852 * emacs.c (main): Remove extern declaration for sys_nerr, which
1853 isn't used and causes a compilation error with GCC 3.0 on
1854 FreeBSD 4.3.
1855
b5cb1ada
GM
18562001-06-27 Gerd Moellmann <gerd@gnu.org>
1857
a5d3ec3f 1858 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 1859 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
1860 (toplevel): Include <signal.h> and syssignal.h.
1861
b5cb1ada
GM
1862 * sound.c (vox_configure, vox_close): Turn off atimers
1863 around ioctls.
1864
d9bad487
GM
18652001-06-26 Gerd Moellmann <gerd@gnu.org>
1866
fdbb67fe
GM
1867 * keyboard.c (read_char) <non_reread>: Record the previous idle
1868 start time before calling timer_stop_idle.
1869 (read_char) <reread_first>: After processing a help-echo event,
1870 restore the previous idle start time.
1871
d9bad487
GM
1872 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1873 the start of invisible text.
1874 (setup_for_ellipsis): New function.
1875 (next_overlay_string): After all overlay strings have been
1876 processed, display an ellipsis if necessary.
1877 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1878 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1879
1880 * dispextern.h (struct iterator_stack_entry): Add member
1881 display_ellipsis_p.
1882
2b9c25e0
GM
18832001-06-25 Gerd Moellmann <gerd@gnu.org>
1884
80de57df
GM
1885 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1886 on the value of the wait-for-wm frame parameter.
1887
1888 * xterm.h (struct x_output): Add member wait_for_wm.
1889
1890 * xfns.c (Qwait_for_wm): New variable.
1891 (x_frame_parms): Add entry for `wait-for-wm".
1892 (x_set_wait_for_wm): New function.
1893 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1894 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1895
2b9c25e0
GM
1896 * xdisp.c (try_window_id) <all changes below window end>: Don't
1897 take this shortcut if ZV is visible in the window.
1898 (try_window_id): When checking for window start being in changed
1899 text, don't check that the buffer's size has changed.
1900
f772775c
RS
19012001-06-23 Richard M. Stallman <rms@gnu.org>
1902
1903 * minibuf.c (Fcompleting_read): Doc fix.
1904
fa9090b8
GM
19052001-06-19 Gerd Moellmann <gerd@gnu.org>
1906
1907 * composite.c (Ffind_composition_internal): Accept ZV
1908 and a string's end position as POS.
1909
f6f1beba
GM
19102001-06-18 Gerd Moellmann <gerd@gnu.org>
1911
1912 * composite.c (Ffind_composition_internal): Check POS
1913 for validity.
1914
0ae83348
EZ
19152001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1916
1917 * editfns.c (Fmessage_box): If the frame is not under a window
1918 system, output the message in the echo area.
1919
e4cdc335
RS
19202001-06-14 Richard M. Stallman <rms@gnu.org>
1921
1922 * xdisp.c (try_window_id): When EOB is visible, don't treat
1923 insertion at EOB as if it were "off the bottom of the screen."
1924
a55a5f3c
AI
19252001-06-11 Andrew Innes <andrewi@gnu.org>
1926
1927 * w32proc.c (create_child): Add new parameter is_gui_app.
1928 (w32_executable_type): Add new parameter is_gui_app.
1929 (sys_spawnve): Use it.
1930 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1931 SIGQUIT. This matches better how the signals are interpreted by
1932 MSVC compiled programs.
1933 (syms_of_ntproc): Update docstring.
1934
1b85dc1c
SM
19352001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1936
1937 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1938 well otherwise note_mouse_highlight might optimize away highlighting
1939 if we pass over that same overlay again.
1940
b75f8eab
EZ
19412001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1942
1943 * lread.c (Fload): Document that the argument is run via
1944 substitute-in-file-name.
1945
94843cc1
GM
19462001-05-31 Gerd Moellmann <gerd@gnu.org>
1947
b14659e6
GM
1948 * Makefile.in (bootstrap-doc): New target.
1949 (bootstrap-emacs): Depend on it.
1950
0894672f
GM
1951 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1952 auto-save-list-file-name when shutting down Emacs, because
1953 creating the directory might signal an error, and leaves
1954 Emacs in a strange state.
1955
94843cc1
GM
1956 * term.c: (tty_cursor_hidden): New variable.
1957 (update_begin): Don't call tty_hide_cursor. Clean up.
1958 (update_end, set_terminal_window, set_scroll_region): Clean up.
1959 (ring_bell, reset_terminal_modes): Clean up.
1960 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1961 on tty_cursor_hidden.
1962 (write_glyphs): Call tty_hide_cursor.
1963
db3a49a6
SM
19642001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1965
1966 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1967
8bd189fb
GM
19682001-05-30 Gerd Moellmann <gerd@gnu.org>
1969
6f1be3b9
GM
1970 * xfns.c (enum image_value_type): New enumerator
1971 IMAGE_STRING_OR_NIL_VALUE.
1972 (parse_image_spec): Handle it.
1973 (xbm_format, pbm_format): Use it for :foreground and :background.
1974 (xbm_load, pbm_load): Check for nil color names.
1975
8bd189fb
GM
1976 * xterm.c (note_mouse_highlight): If an overlapping overlay
1977 exists, but we find that we highlight the same overlay as before,
1978 don't do the highlighting again.
1979
7bdba03c
GM
19802001-05-29 Gerd Moellmann <gerd@gnu.org>
1981
4c329aa8
GM
1982 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1983 Protect unibyte strings created by replacing their multibyte
1984 equivalents in menu_items.
1985
e15e2828
GM
1986 * keymap.c (Fsingle_key_description): NUL-terminate the string
1987 buffer before calling build_string.
1988
7bdba03c
GM
1989 * callproc.c (Fcall_process): Deal with decode_coding returning
1990 CODING_FINISH_INCONSISTENT_EOL.
1991
89c8dc6c
GM
19922001-05-28 Gerd Moellmann <gerd@gnu.org>
1993
db3a49a6 1994 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
1995 an item's name with its key description in case the description
1996 is a multibyte string.
1997
1998 * keymap.c (Fsingle_key_description): Create a multibyte string
1999 only if necessary.
2000
eb04d6cd
GM
2001 * macros.c (Fstart_kbd_macro): Doc fix.
2002
8bd6307f
GM
2003 * xterm.c (cursor_in_mouse_face_p): New function.
2004 (x_draw_stretch_glyph_string): Use it to choose a different GC
2005 when drawing a cursor within highlighted text.
2006
e26c4089
GM
2007 * editfns.c (char_property_eq): Put in #if 0.
2008
2009 * indent.c (string_display_width): Put in #if 0.
2010
2011 * lread.c (Fload): Remove unused label.
2012
89c8dc6c
GM
2013 * termcap.c (speeds): Put in #if 0.
2014
9a1211f2
GM
20152001-05-18 Gerd Moellmann <gerd@gnu.org>
2016
29148a3f
GM
2017 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2018
9a1211f2
GM
2019 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2020 transformation matrix by 10.
2021
09393d07
GM
20222001-05-16 Gerd Moellmann <gerd@gnu.org>
2023
2024 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2025 only if it's equal to the former foreground pixel color.
db3a49a6 2026 (x_set_foreground_color, x_set_background_color)
09393d07
GM
2027 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2028
460e6bae
GM
20292001-05-16 Dave Love <fx@gnu.org>
2030
2031 * insdel.c (signal_before_change, signal_after_change): Consider a
2032 local change hook which changes the buffer.
99c78ce8
GM
2033
2034 * process.c (read_process_output): Don't call signal_after_change
2035 and update_compositions after insert_from_string_before_markers.
2036
dbcf3c03
GM
20372001-05-16 Gerd Moellmann <gerd@gnu.org>
2038
a90b3d3c
GM
2039 * xfaces.c (split_font_name): Use the right field when
2040 checking for `[...]' syntax.
2041
1b7818b4
GM
2042 * buffer.c (copy_overlays): New function.
2043 (clone_per_buffer_values): Use it.
2044
2045 * buffer.h (OVERLAY_PLIST): New macro.
2046
9bae8781
GM
2047 * keymap.c (Fsingle_key_description): Replace a build_string with
2048 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2049
dbcf3c03
GM
2050 * fontset.c (Ffontset_info): Check that face is non-null
2051 before accessing its fields.
2052
8a1ae4dd
GM
20532001-05-15 Gerd Moellmann <gerd@gnu.org>
2054
18a0a39e
GM
2055 * keyboard.c (read_key_sequence): Prevent generating a fake
2056 prefix key twice.
2057
e335b66a
GM
2058 * xfaces.c (split_font_name): Handle `[...]' for the right
2059 font name fields.
2060
8a1ae4dd
GM
2061 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2062 of CCL_STAT_INVALID_CMD.
2063
3cf80731
SM
20642001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2065
33568849
SM
2066 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2067 in <var> has no default value yet.
2068
3cf80731
SM
2069 * xfaces.c (try_alternative_families): First try the FAMILY.
2070 And if nothing is found in the end, try again with scalable fonts.
2071 (try_font_list): Let try_alternative_families do a bit more of
2072 the work. Only use FAMILY if it is not nil.
2073 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2074
933b0249
GM
20752001-05-14 Gerd Moellmann <gerd@gnu.org>
2076
58e5af83
GM
2077 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2078 pointer shape when show_mouse_face has already done it.
33568849 2079
58e5af83 2080 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
2081 full-width rows.
2082
7b16a6bf
GM
2083 * xfaces.c (split_font_name): Make sure to leave the loop
2084 with the right value of `i'.
3cf80731 2085
933b0249
GM
2086 * xfaces.c (split_font_name): Handle matrix transformations
2087 in the pixel and point size fields of XLFD font names.
2088 (xlfd_point_size): Likewise.
2089
dddcbf00
EZ
20902001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2091
3cf80731 2092 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
2093 (x_to_w32_font): Add prototype.
2094
7689ef0b
EZ
2095 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2096 redefining, to avoid compiler warnings.
2097
e7c15bba
EZ
2098 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2099
dddcbf00
EZ
2100 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2101 (w32_get_bdf_glyph): Cast between unsigned char and char when
2102 passing arguments to subroutines, to shut up compiler warnings.
2103 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2104 GET_HEX_VAL.
2105
2106 * xfaces.c: Include keyboard.h before frame.h, not after it.
2107
2108 * widget.c: Include keyboard.h before frame.h.
2109
2110 * w32term.h (struct image, struct face): Forward declaration, to
2111 avoid compiler warnings.
2112
7bd2d083
GM
21132001-05-11 Gerd Moellmann <gerd@gnu.org>
2114
47e72862
GM
2115 * keyboard.c (read_key_sequence): Don't modify events when
2116 generating fake prefix keys (mode-line, scroll-bar, ...) since
2117 this prevents proper processing of such events when pushed back
2118 into unread-command-events.
2119
dd5f324b
GM
2120 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2121 actually redrawn. Make the function static.
2122 (note_mouse_highlight): Fix a case where the mouse cursor
2123 was changed back to the text cursor.
2124
2125 * xterm.h (clear_mouse_face): Remove prototype.
2126
d88a79d4
GM
2127 * xdisp.c (try_window_id): Fix the fix and set the right
2128 window_end_vpos.
2129
2130 * xdisp.c (try_window_id): Fix computation of window end in the
2131 case that lines were deleted at the end of the window. Add some
2132 more debug_method_adds.
0416532f 2133
7bd2d083
GM
2134 * xfaces.c (try_alternative_families): New function.
2135 (try_font_list): Use it. If ATTRS specifies a family, check
2136 fonts from that family first.
2137 (choose_face_font): Remove code setting the family part of
2138 the pattern to nil.
2139
23fca891
GM
21402001-05-10 Gerd Moellmann <gerd@gnu.org>
2141
ff9aa2ca
GM
2142 * xdisp.c (try_window_id): Fix case of all changes before
2143 the window start.
7b2654b5 2144
23fca891
GM
2145 * xdisp.c (try_window_id): Add some xasserts.
2146
e9726794
GM
21472001-05-09 Gerd Moellmann <gerd@gnu.org>
2148
2149 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2150
9e53a675
GM
21512001-05-09 Dave Love <fx@gnu.org>
2152
2153 * xdisp.c (GIVE_UP): Fix for K&R C.
2154
0d487c52
GM
21552001-05-09 Gerd Moellmann <gerd@gnu.org>
2156
fe88d421
GM
2157 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2158
0d487c52
GM
2159 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2160 back to the text cursor shape without need.
2161
1e9fc92e
GM
21622001-05-07 Gerd Moellmann <gerd@gnu.org>
2163
a2a6232e
GM
2164 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2165
2166 * dispextern.h (inverse_video): Declare extern.
2167
1e9fc92e
GM
2168 * keyboard.c (delete_kboard): Handle the case that selected_frame
2169 has been deleted in the course of x_connection_closed.
2170
12949a7f
EZ
21712001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2172
7b2654b5
SM
2173 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2174 Fix the change from 2001-04-30.
12949a7f 2175
2fa2f461
GM
21762001-05-03 Gerd Moellmann <gerd@gnu.org>
2177
a779d213
GM
2178 * xfns.c (file_dialog_unmap_cb): New function.
2179 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2180 where a dialog is closed via the window manager.
2181
7b2654b5 2182 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
2183 the window start or all below the window end mostly rewritten.
2184 (redisplay_window): Move the tests if try_window_id is
2185 applicable to try_window_id.
2186 (GIVE_UP): New macro.
2187
3356df63
GM
21882001-05-02 Gerd Moellmann <gerd@gnu.org>
2189
a39202f6 2190 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
2191 currently being updated, mark the frame garbaged.
2192 Fix computation of rows intersecting the exposed rectangle.
a39202f6 2193 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 2194
3356df63
GM
2195 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2196 again if it has already been drawn.
2197
a9d2fd1d
SM
21982001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2199
2200 * syntax.c (update_syntax_table): Check that oldi has the same
2201 properties as old_prop before deciding not to invalidate.
2202
c95fc5f1
GM
22032001-04-30 Gerd Moellmann <gerd@gnu.org>
2204
a9793e45
GM
2205 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2206 read-only text that is so because of text properties.
2207
c95fc5f1 2208 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 2209 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
2210 windows that are components of a Lucid menu bar.
2211
5a5d9185
GM
22122001-04-27 Gerd Moellmann <gerd@gnu.org>
2213
2214 * term.c (turn_on_face): Fix reverse video handling on terminals
2215 that don't support colors.
2216
ba973f7a
GM
22172001-04-26 Gerd Moellmann <gerd@gnu.org>
2218
2219 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2220 a non-buffer.
2221
8c56a983
GM
22222001-04-25 Gerd Moellmann <gerd@gnu.org>
2223
a728644c
GM
2224 * term.c (toggle_highlight): New function.
2225 (turn_on_face): Change handling of reverse video.
2226
7b2654b5
SM
2227 * process.c (wait_reading_process_input):
2228 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 2229
bfd8410f
GM
2230 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2231 of the number of overlays to check.
2232
be2488ca
GM
2233 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2234
8c56a983
GM
2235 * xdisp.c (try_window_id): Fix a case where window_end_pos
2236 and window_end_bytepos were not adjusted.
2237
522d42f7
GM
22382001-04-23 Gerd Moellmann <gerd@gnu.org>
2239
2240 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2241 zero instead of -1.
2242
78c1afb6
EZ
22432001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2244
a9d2fd1d
SM
2245 * process.c (wait_reading_process_input) [!subprocesses]:
2246 Don't reference waiting_for_user_input_p, it's not defined in the
2247 branch without async subprocesses support.
78c1afb6 2248
a2fab450
GM
22492001-04-19 Gerd Moellmann <gerd@gnu.org>
2250
a122a38e
GM
2251 * keyboard.c (delete_kboard): Prevent a dangling reference
2252 from current_kboard to KB, which is freed.
2253
a9d2fd1d
SM
2254 * process.c (wait_reading_process_input):
2255 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
2256 read_key_sequence aware of buffer changes from under it.
2257
0f8d6dc7
GM
22582001-04-18 Gerd Moellmann <gerd@gnu.org>
2259
eeffb293
GM
2260 * xfaces.c (Qscalable_fonts_allowed): New variable.
2261 (realizing_basic_faces_p): Removed.
2fa2f461
GM
2262 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2263 removed.
eeffb293 2264 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
2265 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2266 for scalable-fonts-allowed to t.
eeffb293 2267
0f8d6dc7
GM
2268 * fileio.c (Finsert_file_contents): If the file size returned from
2269 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 2270 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 2271
eec2d1de
EZ
22722001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2273
2274 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2275 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2276 (__memalign_hook): Make the two prototypes consistent.
2277
f4f480bd
GM
22782001-04-17 Gerd Moellmann <gerd@gnu.org>
2279
2280 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2281 matrix of mini-windows.
2282
52283633
SM
22832001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2284
2285 * intervals.c (find_interval): Don't rebalance during signal handling.
2286
ec2423c9
GM
22872001-04-11 Gerd Moellmann <gerd@gnu.org>
2288
30cb0001 2289 * fns.c: Include blockinput.h.
52283633 2290
ec2423c9
GM
2291 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2292
719d83ad
GM
22932001-04-10 Gerd Moellmann <gerd@gnu.org>
2294
60f8d735
GM
2295 * fns.c (Fcompare_strings): Fix return values.
2296
afffeb57
GM
2297 * window.c (window_scroll): Change the meaning of N to mean
2298 N screen-fulls or N lines.
2299 (window_scroll_pixel_based, window_scroll_line_based)
2300 (scroll_command, Fscroll_other_window): Change accordingly.
2301
52283633
SM
2302 * window.c (window_scroll_pixel_based, Frecenter):
2303 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
2304 height of the window.
2305
2306 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2307 instead of using it.last_visible_y for the height of the window.
52283633 2308
719d83ad 2309 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 2310 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
2311
2312 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
2313 able to write to hidden and system files. From Dan Holmsand
2314 <dan@eyebee.com>.
719d83ad 2315
8ddf3ee1
GM
2316 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2317 Holmsand <dan@eyebee.com>.
719d83ad 2318
522ed7fb
GM
23192001-04-09 Gerd Moellmann <gerd@gnu.org>
2320
9170e5d4
GM
2321 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2322
522ed7fb
GM
2323 * window.c (window_internal_height): Return 1 less if the
2324 window has a header line.
2325
2326 * xdisp.c (try_window_id): When scrolling on a terminal, take
2327 the change of window_internal_height into account.
2328
ceeb3d7d
EZ
23292001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2330
2331 * gmalloc.c (align): If the argument SIZE would overflow
2332 __malloc_ptrdiff_t, fail right away.
2333
63685b9d
GM
23342001-04-06 Gerd Moellmann <gerd@gnu.org>
2335
2336 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2337 Make sure the tooltip is completely visible.
2338 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2339
2340 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2341
2342 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2343
3ffb33bb
DL
23442001-04-06 Dave Love <fx@gnu.org>
2345
52283633
SM
2346 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2347 Fix test of `from'.
3ffb33bb 2348
869fb12c
GM
23492001-04-06 Gerd Moellmann <gerd@gnu.org>
2350
52283633 2351 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 2352
869fb12c
GM
2353 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2354
441bf856
GM
23552001-04-05 Gerd Moellmann <gerd@gnu.org>
2356
4d664b04
GM
2357 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2358
52283633 2359 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 2360
30ca89f5
GM
2361 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2362 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2363
2364 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2365 shell widget's position only if it is non-null.
2366
52283633
SM
2367 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2368 Set f->output_data.x->widget to null after destroying it.
30ca89f5 2369
81a81c0f
GM
2370 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2371 FILENAME to bring it in synch with the documentation.
2372
441bf856
GM
2373 * xfaces.c (realizing_basic_faces_p): Renamed from
2374 realize_default_face_p.
2375 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2376 (realize_default_face): Don't set the flag.
2377
702a1e8e
GM
23782001-04-04 Gerd Moellmann <gerd@gnu.org>
2379
1013f4e3
GM
2380 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2381
52283633
SM
2382 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2383
1013f4e3
GM
2384 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2385 the buffer that was used for echoing.
2386
702a1e8e
GM
2387 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2388 (first_font_matching): Removed unused function.
2389 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2390 (may_use_scalable_font_p): Remove parameter FONT; rename
2391 parameter NAME to FONT.
2392 (x_face_list_fonts): Fix missing bounds check.
2393 (realizing_default_face_p): New variable.
2394 (realize_default_face): Set and clear that flag.
2395 (x_face_list_fonts): When called during the realization of the
2396 default face, and no matching fonts are found when ignoring
2397 scalable fonts and fonts matching a regexp from
2398 face-ignored-fonts, try without ignoring fonts.
2399
f9dbcda4
GM
24002001-04-03 Gerd Moellmann <gerd@gnu.org>
2401
ad18ffb1
GM
2402 * xfns.c (postprocess_image): New function.
2403 (lookup_image): Call it for all image types except PostScript.
2404 (x_kill_gs_process): Call postprocess_image.
2405
f9dbcda4
GM
2406 * xterm.c (x_use_underline_position_properties): New variable.
2407 (x_draw_glyph_string): Use it.
2408 (syms_of_xterm): DEFVAR_BOOL it.
2409
651f03b6
GM
24102001-04-02 Gerd Moellmann <gerd@gnu.org>
2411
2412 * xterm.c (x_alloc_nearest_color_1): New function.
2413 (x_alloc_nearest_color): Use it.
2414 (x_color_cells): Take a Display as argument, instead of a frame.
2415 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2416 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2417 (x_initialize): Register cvt_string_to_pixel as resource converter
2418 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2419
73d75a62
GM
24202001-03-30 Gerd Moellmann <gerd@gnu.org>
2421
b2046df8
GM
2422 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2423 (set_iterator_to_next): If a string from a display property ends,
2424 consider the case that this might also be the end of an
2425 overlay string having the display property.
2426
52283633 2427 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 2428
87d8eba4
GM
2429 * xdisp.c (reseat_to_string): Undo last change.
2430
73d75a62
GM
2431 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2432 matrix of a window when the header line changes, when
2433 new rows are allocated, or when the width changes.
2434
911a2406
EZ
24352001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2436
52283633 2437 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 2438
aea51abe
EZ
24392001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2440
2441 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2442 deprecated.
2443
176bc847
GM
24442001-03-29 Gerd Moellmann <gerd@gnu.org>
2445
ed31fabf
GM
2446 * data.c (Fsubr_interactive_form): New function.
2447 (syms_of_data): Defsubr it.
2448
176bc847
GM
2449 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2450 (live_float_p, live_misc_p): Return 1 only if the offset of the
2451 pointer in its block is >= 0.
2452
e59d0e9d
GM
24532001-03-28 Paul Eggert <eggert@twinsun.com>
2454
2455 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2456 microseconds calcuation. Avoid double-rounding problem.
2457 In doc string, warn that the result is approximate.
2458
f827b862
GM
24592001-03-28 Gerd Moellmann <gerd@gnu.org>
2460
30a3f61c
GM
2461 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2462 bind `inhibit-eval-during-redisplay' to t.
2463
2464 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2465
2466 * xdisp.c (inhibit_eval_during_redisplay)
2467 (Qinhibit_eval_during_redisplay): New variables.
2468 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2469 don't eval, return nil instead.
2470 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2471 Initialize Qinhibit_eval_during_redisplay.
2472
e719f5ae
GM
2473 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2474 the iterator's multibyte_p flag.
2475
deb2613a
GM
2476 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2477 instead of setting it to zero; it's incremented for each frame
2478 where the menu face is changed.
2479
52283633
SM
2480 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2481 change bottom shadow accordingly.
2482
2483 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
2484 intersections here.
2485 (expose_window): Do it here instead.
52283633 2486 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 2487
f827b862
GM
2488 * bytecode.c (BYTE_CODE_QUIT): New macro.
2489 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2490
4bde0ebb
GM
24912001-03-27 Gerd Moellmann <gerd@gnu.org>
2492
607ec83c
GM
2493 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2494 Give up if matrix starts in an ellipsis.
2495 (init_from_display_pos): Do nothing if POS doesn't specify
2496 a dpvec_index but the iterator has such a position.
2497
0245398f
GM
2498 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2499
aba25348
GM
2500 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2501 x/y position is (0, 0) after destroying the menu bar, restore
2502 its original position.
2503
4bde0ebb
GM
2504 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2505 (init_from_display_pos): Use it.
2506 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2507
8cdb267e
GM
25082001-03-26 Gerd Moellmann <gerd@gnu.org>
2509
2510 * xdisp.c (try_window_id): Undo last change.
2511
9948db79
EZ
25122001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2513
2514 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2515
2516 * buffer.c (syms_of_buffer): Doc fix.
2517
2eddf899
GM
25182001-03-26 Gerd Moellmann <gerd@gnu.org>
2519
2520 * xfaces.c (x_update_menu_appearance): Use local variable
2521 popup_path for setting font resources.
2522
6c145d35
EZ
25232001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2524
6a65b1b5
EZ
2525 * frame.c (Fframe_list): Don't reference tip_frame if
2526 HAVE_WINDOW_SYSTEM is not defined.
2527
6c145d35
EZ
2528 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2529 <wl@gnu.org>.
2530
d74c1900
GM
25312001-03-25 Gerd Moellmann <gerd@gnu.org>
2532
20fbd925
GM
2533 * xdisp.c (init_from_display_pos): Test invisible property
2534 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 2535
927c5b3b
GM
2536 * xdisp.c (redisplay_internal) <update one window>: Make sure
2537 last_arrow_position and last_arrow_string are set.
2538
d74c1900
GM
2539 * frame.c (Fframe_list): Don't return a tooltip frame.
2540
091f8878
GM
25412001-03-23 Gerd Moellmann <gerd@gnu.org>
2542
52283633
SM
2543 * xdisp.c (mark_window_display_accurate_1): New function,
2544 extracted from mark_window_display_accurate.
2545 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
2546 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2547 (mark_window_display_accurate): Use it.
2548 (redisplay_internal): Use it for the selected window.
2549 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2550 for the selected frame.
2551
ac90c44f
GM
2552 * xdisp.c Use make_number, for readability.
2553 (try_window_id): Disable rows below the window end.
2554 (try_window_reusing_current_matrix): Use cursor_row_p.
2555 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2556 of rows.
2557 (init_from_display_pos): If POS specifies a position in a display
2558 vector, maybe get the iterator set up for that ellipsis.
43c09969 2559
091f8878
GM
2560 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2561
991786dd
EZ
25622001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2563
2564 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2565
6c29b43c
GM
25662001-03-23 Gerd Moellmann <gerd@gnu.org>
2567
2568 * xfaces.c (x_update_menu_appearance): Use a different path
2569 for Lucid popup menus.
2570
d8731202
SM
25712001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2572
2573 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2574
2575 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2576 (string_buffer_position): Use `make_number'.
2577
f61a541b
GM
25782001-03-22 Gerd Moellmann <gerd@gnu.org>
2579
3c9e997b
GM
2580 * xfaces.c (x_update_menu_appearance): Renamed from
2581 x_set_menu_face_resources. Use different resources for popups.
2582
2583 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2584 (GC_CHECK_STRING_BYTES): Don't define.
2585
364cd450
GM
2586 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2587 Removed, together with subroutines.
2588 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 2589 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 2590
d8731202
SM
2591 * dispextern.h (x_set_menu_resources_from_menu_face):
2592 Remove prototype.
364cd450 2593
d8731202 2594 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
2595 Remove calls to x_set_menu_resources_from_menu_face.
2596
d8731202
SM
2597 * xfaces.c (xm_set_menu_resources_from_menu_face):
2598 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
2599
2600 * xmenu.c: Include widget.h.
2601 (single_submenu): Return int. Some cleanup.
2602 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2603
140330de
GM
26042001-03-21 Gerd Moellmann <gerd@gnu.org>
2605
2606 * xterm.c (x_update_window_end): Handle overwritten mouse face
2607 also for tool bar windows.
2608 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2609 DRAW is DRAW_IMAGE_RAISED.
2610
1741905c
GM
26112001-03-20 Gerd Moellmann <gerd@gnu.org>
2612
fa88947e
GM
2613 * print.c (syms_of_print): Doc fixes.
2614
1741905c
GM
2615 * fns.c (Fmd5): Doc fix.
2616
ade0bee1
GM
26172001-03-19 Gerd Moellmann <gerd@gnu.org>
2618
357e7376
GM
2619 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2620 Clear area of the frame not occupied by the scroll bar.
2621
c2c097cc
GM
2622 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2623 tip frame's root window buffer to *tip* right after creating
2624 the frame.
2625
ade0bee1
GM
2626 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2627 is an integer don't have to be for space characters.
2628
88c6e37e
GM
26292001-03-16 Gerd Moellmann <gerd@gnu.org>
2630
52283633
SM
2631 * indent.c (current_column, current_column_1, Fmove_to_column)
2632 (compute_motion): Handle characters from display vectors differently.
88c6e37e 2633
c62eed76
KH
26342001-03-15 Kenichi Handa <handa@etl.go.jp>
2635
2636 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2637 drawing glyph string.
2638
c899e7e6
GM
26392001-03-15 Gerd Moellmann <gerd@gnu.org>
2640
d0bbfc99
GM
2641 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2642 (command_loop_1): Undo last change.
2643
03d1a189
GM
2644 * xterm.c (fast_find_position): Return the correct vpos.
2645
c899e7e6 2646 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 2647 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
2648 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2649 Call store_symval_forwarding with BUF null.
2650 (set_internal): Call store_symval_forwarding with the BUF
2651 parameter passed to set_internal. Formerly, the value was always
2652 set in the current buffer; the buffer recorded in specbind for
2653 this case wasn't used.
2654 (arith_driver): Reindent.
2655
52283633
SM
2656 * buffer.c (swap_out_buffer_local_variables):
2657 Call store_symval_forwarding with BUF null.
c899e7e6
GM
2658
2659 * lisp.h (store_symval_forwarding): Change prototype.
2660
2661 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2662
57ac7c81
GM
26632001-03-14 Gerd Moellmann <gerd@gnu.org>
2664
697617d9
GM
2665 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2666 FOR_DELETION. Avoid resizing the mini-window of the selected
2667 frame if FOR_DELETION is set.
2668 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2669 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2670 signature.
2671
2672 * window.c (Fset_window_configuration): Change call to
2673 do_switch_frame to new format.
2674
2675 * keyboard.c (quit_throw_to_read_char): Change call to
2676 do_switch_frame to new format.
2677
2678 * lisp.h (do_switch_frame): Change prototype.
2679
819dce0f
GM
2680 * frame.c (Fframe_parameters): In the `buffer-list' frame
2681 parameter, store the buffer list of FRAME, not the list of the
2682 selected frame.
2683
57ac7c81
GM
2684 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2685 box just because the glyph row's full_width_p flag is set.
2686
65008712
GM
26872001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2688
2689 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2690 skip the padding blanks inserted in extend_face_to_end_of_line,
2691 before checking for trailing whitespace.
2692
159cf431
GM
26932001-03-13 Gerd Moellmann <gerd@gnu.org>
2694
52283633 2695 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
2696 Remove special handling for LessTif/Motif.
2697 (toplevel): Don't include Xm/Xm.h.
2698
52283633
SM
2699 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2700 Remove workaround code for LessTif; it doesn't work anymore.
2701
2564ea1b 2702 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 2703 Xm/ScrollBarP.h.
afcdc0a1 2704
52283633
SM
2705 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2706 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
2707 contemporary LessTif.
2708
52283633
SM
2709 * xfaces.c (xm_set_menu_resources_from_menu_face):
2710 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 2711
159cf431
GM
2712 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2713 removing button grabs.
2714
c6f7429a
KH
27152001-03-13 Kenichi Handa <handa@etl.go.jp>
2716
cb82d767
KH
2717 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2718 and clip-large-size-font as obsolete.
2719
c6f7429a
KH
2720 * lread.c (read_multibyte): Check the validity of multibyte
2721 sequence. If invalid, return the first byte.
2722
760cefb5
GM
27232001-03-12 Gerd Moellmann <gerd@gnu.org>
2724
2725 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2726 before running the command; timer functions or process
2727 filters may have set it.
2728
5141f9d0
EZ
27292001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2730
2731 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2732 Doc fix.
2733
b6a15240
GM
27342001-03-12 Gerd Moellmann <gerd@gnu.org>
2735
2736 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2737 to sprintf.
2738
95522746
GM
27392001-03-09 Gerd Moellmann <gerd@gnu.org>
2740
db14cfc5
GM
2741 * dispextern.h (string_buffer_position): Add prototype.
2742
52283633 2743 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
2744 (single_display_prop_string_p): New functions.
2745
2746 * xterm.c (note_mouse_highlight): If there's no help-echo on
2747 a string, look at the buffer text ``under'' it.
2748
2749 * keyboard.c (make_lispy_event): Add string info to the event,
2750 analogous to what's done on mode lines.
2751 (read_key_sequence): For a click on a string, consider `local-map'
2752 and `keymap' of that string.
2753
52283633
SM
2754 * keyboard.c (make_lispy_event, make_lispy_movement):
2755 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
2756
2757 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2758
2759 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2760 POS; return void.
2761
95522746
GM
2762 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2763 flags argument to emacs_open; it seems to conflict with O_EXCL.
2764
898a399d
KH
27652001-03-09 Kenichi Handa <handa@etl.go.jp>
2766
28cd4910
KH
2767 * composite.h (struct composition): Change types of members;
2768 glyph_len to unsigned, width to unsigned short.
898a399d 2769
4cdf6a6c
AI
27702001-03-08 Andrew Innes <andrewi@gnu.org>
2771
2772 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2773 menu titles.
2774
129004d3
GM
27752001-03-08 Gerd Moellmann <gerd@gnu.org>
2776
221dd3e7
GM
2777 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2778 instead of nil.
2779
52283633 2780 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
2781 help-echo in strings.
2782 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2783 (fast_find_string_pos): New function.
2784
52283633
SM
2785 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2786 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
2787
2788 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2789 Handle `mouse-face'.
2790
2791 * dispextern.h (face_at_string_position): Change prototype.
2792
52283633 2793 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 2794
129004d3
GM
2795 * keyboard.c (make_lispy_event): Avoid generating drag events
2796 if the mouse hasn't actually moved to another buffer position.
52283633 2797
80c8ab8c
DL
27982001-03-08 Dave Love <fx@gnu.org>
2799
129004d3 2800 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 2801
989521fd
GM
28022001-03-08 Gerd Moellmann <gerd@gnu.org>
2803
2804 * process.c (Fset_process_window_size): Fix a typo.
2805
bb5c338d
KH
28062001-03-08 Kenichi Handa <handa@etl.go.jp>
2807
2808 * coding.c (detect_coding_sjis): Do more rigid check.
2809 (detect_coding_big5): Likewise.
2810 (decode_coding_sjis_big5): Likewise.
2811 (Fdetect_coding_region): Call detect_coding_system with tailing
2812 anchor byte `\0' for more rigid detection.
52283633 2813 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
2814 (Fdetect_coding_string): Likewise.
2815
8b8f9197
SM
28162001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2817
2818 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2819 a string before extracting its data.
2820
3bdf2660
GM
28212001-03-07 Gerd Moellmann <gerd@gnu.org>
2822
2823 * window.c (Frecenter): Rewrite code handling negative values
2824 of ARG on graphical frames.
2825
28262001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2827
2828 * window.c (displayed_window_lines): If W->start is outside the
2829 accessible portion of the buffer, call start_display with BEGV or
2830 ZV instead of W->start.
2831
471f86b9
GM
28322001-03-07 Gerd Moellmann <gerd@gnu.org>
2833
2ab62c6c
GM
2834 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2835
471f86b9
GM
2836 * process.c (Fset_process_filter): Don't crash if the input
2837 file descriptor of PROCESS is closed.
2838 (Fset_process_window_size): Likewise.
2839
101922c3
GM
28402001-03-06 Kenichi Handa <handa@etl.go.jp>
2841
2842 * xterm.c (XTflash): Make the timeout of select shorter, and call
2843 select repeatedly until the desired time expires.
2844
45d051a7
GM
28452001-03-06 Gerd Moellmann <gerd@gnu.org>
2846
2847 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2848
2849 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2850
2851 * lisp.h (Vwindow_list): Declare extern.
2852
8f372c46
EZ
28532001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2854
2855 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2856
f16a7aa5
GM
28572001-03-06 Gerd Moellmann <gerd@gnu.org>
2858
157ae273
GM
2859 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2860 to detect a case where we have to highlight a different region
2861 despite not having left the currently highlighted region.
2862 Set mouse_face_overlay in the x_display_info.
45d051a7 2863 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
2864
2865 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2866
2867 * buffer.c (mouse_face_overlay_overlaps): New function.
2868
2869 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2870 (Qmouse_face): Declare extern.
2871
f16a7aa5
GM
2872 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2873 if face_change_count is non-zero.
2874
827afcac
KH
28752001-03-06 Kenichi Handa <handa@etl.go.jp>
2876
2877 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2878 that the source is unibyte.
2879
14c7242e
DL
28802001-03-05 Dave Love <fx@gnu.org>
2881
827afcac 2882 * xterm.c (XTmouse_position): Fix typo.
14c7242e 2883
c28b847b
GM
28842001-03-05 Gerd Moellmann <gerd@gnu.org>
2885
2886 * minibuf.c (read_minibuf): Clean up the binding stack if
2887 called noninteractively.
2888
b86644f2
KH
28892001-03-05 Kenichi Handa <handa@etl.go.jp>
2890
2891 * coding.c (syms_of_coding): Docstring modified.
2892
203682cc 28932001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
2894
2895 * charset.c (char_to_string): If a single byte char has modifier
2896 bits that can't be reflected to the character code, ignore them
45d051a7 2897 instead of signaling an error.
b86644f2 2898
e30bd7b7
EZ
28992001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2900
2901 * s/msdos.h: Update copyright notice.
2902
2903 * dosfns.h: Update copyright notice.
2904
2905 * dosfns.c: Update copyright notice.
2906
2907 * msdos.c: Update copyright notice.
2908
b52b65bd
GM
29092001-03-02 Gerd Moellmann <gerd@gnu.org>
2910
2911 * xterm.c (glyph_rect): New function.
2912 (XTmouse_position): Use it to raise the threshold for mouse
2913 movement event generation.
2914
53c4b1e6
EZ
29152001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2916
2917 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2918 specifies (reverse . t), reverse the initial screen colors.
2919 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
2920 but we are reversing the colors, set bg_set, not fg_set.
2921 Likewise for setting background-color and reversing: set fg_set.
2922 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
2923 in effect.
2924
2925 * xfaces.c (Finternal_set_lisp_face_attribute)
2926 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2927 parameters alist.
2928
f964b4d7
GM
29292001-03-02 Gerd Moellmann <gerd@gnu.org>
2930
ef53d75e
GM
2931 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2932 to a single slash in the middle of file names.
2933
52283633 2934 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
2935 Accept only alphanumeric time zone names.
2936
f964b4d7
GM
2937 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2938 or width area.
2939 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2940 a widget to zero height.
52283633 2941
c3c45f65
GM
29422001-03-01 Gerd Moellmann <gerd@gnu.org>
2943
2944 * window.c (Fwindow_end): Call move_it_past_eol only if
2945 ending up on a partially visible line.
2946
028d739a
DL
29472001-03-01 Dave Love <fx@gnu.org>
2948
2949 * ccl.c (Fccl_execute): Doc fix.
2950
57c5889c
GM
29512001-03-01 Gerd Moellmann <gerd@gnu.org>
2952
35f59f6b
GM
2953 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2954 of the tool bar before calling x_figure_window_size.
2955
f84ff02c
GM
2956 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2957 NULL after destroying it, otherwise XTread_socket can access a
2958 destroyed widget when input is unblocked.
2959
8b8f9197 2960 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 2961
57c5889c
GM
2962 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2963 same name as before, although there was a change in fontsets.
2964
224227d1
KR
29652001-02-28 Ken Raeburn <raeburn@gnu.org>
2966
4560730a
KR
2967 * lisp.h (Fframe_parameter): Declare.
2968
224227d1 2969 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 2970 Lisp_Object.
224227d1 2971
ece93c02
GM
29722001-02-28 Gerd Moellmann <gerd@gnu.org>
2973
11ef99b9
GM
2974 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2975 NULL instead.
2976
2977 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2978 NULL instead.
2979
ece93c02
GM
2980 * alloc.c (toplevel): Include process.h.
2981 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2982 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2983 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
2984 (allocate_vector, allocate_hash_table, allocate_window)
2985 (allocate_frame, allocate_process, allocate_other_vector):
2986 New functions.
ece93c02
GM
2987 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2988 (mark_maybe_pointer): New function.
52283633 2989 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
2990 remain and not Lisp_Objects.
2991 (min_heap_address, max_heap_address): New variables.
2992 (mem_find): Return MEM_NIL if START is below min_heap_address or
2993 above max_heap_address.
2994 (mem_insert): Compute min_heap_address and max_heap_address.
2995
2996 * process.c (make_process): Use allocate_process.
2997
2998 * frame.c (make_frame): Use allocate_frame.
2999
3000 * window.c (make_window, make_dummy_parent): Use allocate_window.
3001 (Fcurrent_window_configuration): Use allocate_other_vector.
3002
3003 * lisp.h (allocate_vectorlike): Remove prototype.
3004 (allocate_vector, allocate_other_vector, allocate_frame)
3005 (allocate_window, allocate_process, allocate_hash_table):
3006 Add prototypes.
3007
3008 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3009 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3010
063af457
KH
30112001-02-27 Kenichi Handa <handa@etl.go.jp>
3012
3013 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3014 treat the produced bytes as a valid multibyte sequence.
3015
3016 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
3017 (ccl_driver) <CCL_WriteMultibyteChar2>:
3018 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
3019 <ccl_finish>: Set ccl->eight_bit_control properly.
3020
3021 * ccl.h (struct ccl_program): New member eight_bit_control.
3022
f58c6494
SM
30232001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3024
3025 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3026 accessible_keymaps_char_table.
3027 (accessible_keymaps_char_table): Obey `is_metized'.
3028 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3029 Lisp_Object.
3030
c596c392
GM
30312001-02-26 Gerd Moellmann <gerd@gnu.org>
3032
3033 * dispnew.c: Check HAVE_TERM_H before including term.h.
3034
425de386
AI
30352001-02-24 Andrew Innes <andrewi@gnu.org>
3036
3037 * makefile.w32-in: Update copyright notice.
3038
2ba11bbd
SM
30392001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3040
3041 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3042
66c56ed1
KH
30432001-02-24 Kenichi Handa <handa@etl.go.jp>
3044
4c1593ce
KH
3045 * Makefile.in (lisp): Add international/utf-8.elc.
3046
66c56ed1
KH
3047 * fontset.c (Fnew_fontset): Fix handling of the case that an
3048 element of FONTLIST is a cons of family and registry.
3049
796ead7e
JR
30502001-02-23 Jason Rumney <jasonr@gnu.org>
3051
3052 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3053 to height unconditionally.
3054
3055 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 3056 background face to the end of the drawing area in the text area, only.
796ead7e
JR
3057 (x_insert_glyphs): Call window_box_left to obtain the left
3058 x-coordinate of the area to shift.
3059
3060 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3061 safe_run_hooks.
3062
f6839838
AI
30632001-02-22 Andrew Innes <andrewi@gnu.org>
3064
52283633 3065 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
3066 ($(BLD)\dispnew.obj):
3067 ($(BLD)\editfns.obj):
3068 ($(BLD)\fileio.obj):
3069 ($(BLD)\filelock.obj):
3070 ($(BLD)\keyboard.obj):
3071 ($(BLD)\w32proc.obj):
3072 ($(BLD)\process.obj):
3073 ($(BLD)\sysdep.obj): Ditto.
3074
3075 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3076 header files.
52283633
SM
3077 ($(BLD)/dispnew.$(O)):
3078 ($(BLD)/editfns.$(O)):
3079 ($(BLD)/fileio.$(O)):
3080 ($(BLD)/filelock.$(O)):
3081 ($(BLD)/keyboard.$(O)):
3082 ($(BLD)/w32proc.$(O)):
3083 ($(BLD)/process.$(O)):
f6839838
AI
3084 ($(BLD)/sysdep.$(O)): Ditto.
3085
c224f70b
GM
30862001-02-22 Gerd Moellmann <gerd@gnu.org>
3087
51695746
GM
3088 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3089 at the start of the function, check that the \n in it->c is
3090 from the iterator's current position.
52283633 3091
a61b7058
GM
3092 * xdisp.c (handle_single_display_prop): Add parameter
3093 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3094 properties which replace the display of text with something else.
3095 (handle_display_prop): Call handle_single_display_prop with
3096 additional argument saying if we already replaced text display
3097 with something else. Use AREF.
52283633 3098 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
3099 (decode_mode_spec_coding): Use AREF and ASIZE.
3100
3473f362
GM
3101 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3102 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3103 * vmstime.h: Files removed.
52283633 3104
2bb58df3
GM
3105 * unexencap.c, unexfx2800.c: Files removed.
3106
c224f70b
GM
3107 * dispnew.c (direct_output_for_insert): Give up if we are showing
3108 a message or just cleared the message because we might need to
3109 resize the echo area window or display an empty echo area.
3110
ffc9ff0c
GM
31112001-02-21 Gerd Moellmann <gerd@gnu.org>
3112
0528abe1
GM
3113 * xdisp.c (redisplay_internal): Do the
3114 mark_window_display_accurate after all windows have been
3115 redisplayed because this call resets flags in buffers which are
3116 needed for proper redisplay.
3117
52283633
SM
3118 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3119 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
3120 the old names.
3121
52283633
SM
3122 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3123 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3124
3125 * msdos.h (struct x_output): Rename busy_window to
3126 hourglass_window, busy_p to hourglass_p.
3127
52283633
SM
3128 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3129 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3130
3131 * xfns.c: Rename everything containing *busy_cursor* and similar
3132 to *hourglass*.
3133 (syms_of_w32fns): Rename x-busy-pointer-shape to
3134 x-hourglass-pointer-shape, display-busy-cursor to
3135 display-hourglass, busy-cursor-delay to hourglass-delay.
3136
3137 * w32fns.c: Rename everything containing *busy_cursor* and similar
3138 to *hourglass*.
3139 (syms_of_w32fns): Rename x-busy-pointer-shape to
3140 x-hourglass-pointer-shape, display-busy-cursor to
3141 display-hourglass, busy-cursor-delay to hourglass-delay.
3142
3143 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3144 of its busy_p flag.
3145
3146 * dispextern.h (start_hourglass, cancel_hourglass)
3147 (display_hourglass_p): Renamed from *busy_cursor*.
3148
ab2c5f0a
GM
31492001-02-20 Gerd Moellmann <gerd@gnu.org>
3150
d17e49a8
GM
3151 * keyboard.c (read_char): When an event from unread-command-events
3152 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3153
fa97adf6
GM
3154 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3155 equal to the current buffer.
3156
ab2c5f0a
GM
3157 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3158 nil, otherwise we're left with truncate_lines t when a message
3159 is printed with message-truncate-lines bound to t.
3160
aeac019e
GM
31612001-02-19 Gerd Moellmann <gerd@gnu.org>
3162
c8bc6f65
GM
3163 * window.c (Fmove_to_window_line): Undo last change.
3164 (displayed_window_lines): Call line_bottom_y to determine
3165 the line's bottom position.
3166
3167 * dispextern.h (line_bottom_y): Add prototype.
3168
52283633 3169 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
3170 (pos_visible_p): Use it.
3171
980a2d69
GM
3172 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3173 set redisplaying_p to 0 here instead of in Frecursive_edit.
3174 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3175 set redisplaying_p.
3176
52283633 3177 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
3178 New variables.
3179 (syms_of_xdisp): Initialize new variables.
3180 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3181 Specbind `inhibit-menubar-update' when updating the menu bar.
3182
65048e97
GM
3183 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3184 safe_run_hooks.
3185
3186 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3187 safe_run_hooks.
3188
a57c4026
GM
3189 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3190 is null.
3191
aeac019e
GM
3192 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3193 to the start of the file.
3194
76846b31
GM
31952001-02-16 Gerd Moellmann <gerd@gnu.org>
3196
f3f053f3 3197 * window.c (set_window_buffer): Fix last change.
52283633 3198
f3f053f3
GM
3199 * window.c (set_window_buffer): Set window's vscroll to 0.
3200
dad75588
GM
3201 * window.c (coordinates_in_window): Increase width of area
3202 where the vertical line can be dragged.
3203
c220b753
GM
3204 * xterm.c (x_set_glyph_string_background_width): Extend the
3205 background face to the end of the drawing area in the text
3206 area, only.
3207
c56b1c1b
GM
3208 * xdisp.c (handle_single_display_prop): Set iterator's position
3209 to where the `display' property starts, like for images.
3210 (dump_glyph): New function.
3211 (dump_glyph_row): Use it. Dump info about marginal areas.
3212
3213 * dispnew.c (direct_output_for_insert): Recognize more cases where
3214 glyphs can be written instead of being inserted.
3215
3216 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3217 the left x-coordinate of the area to shift.
3218
76846b31
GM
3219 * dired.c (directory_files_internal): Set result list to nil
3220 before retrying.
3221
0fc71a77
KH
32222001-02-15 Kenichi Handa <handa@etl.go.jp>
3223
3224 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3225 invalid multibyte sequence, treat *SRC as a character of
3226 eight-bit-graphic.
3227
25078b54
EZ
32282001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3229
3230 * textprop.c (Fset_text_properties): Doc fix.
3231
8399f8a0
GM
32322001-02-15 Gerd Moellmann <gerd@gnu.org>
3233
3234 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3235
9a2a6f73
DL
32362001-02-14 Dave Love <fx@gnu.org>
3237
3238 * coding.c: Doc and message fixes.
3239
bf853fee
AI
32402001-02-14 Andrew Innes <andrewi@gnu.org>
3241
3242 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3243 Emacs frame above the screen size.
3244
78c663d8
GM
32452001-02-14 Gerd Moellmann <gerd@gnu.org>
3246
3247 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3248
7cc9f69f
GM
32492001-02-13 Gerd Moellmann <gerd@gnu.org>
3250
0a411995
GM
3251 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3252 case that TO ends up beyond ZV after running before-change-functions.
3253
5ddc1b75
GM
3254 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3255 the selected window if it is showing the buffer in question.
3256
7cc9f69f
GM
3257 * dired.c (directory_files_internal): Initialize errno.
3258 (toplevel): Include errno.h.
3259
2e6621ca
GM
32602001-02-13 Kenichi Handa <handa@etl.go.jp>
3261
3262 * xfaces.c (best_matching_font): New parameter width_ratio.
3263 Multiply avgwidth by width_ratio.
3264 (choose_face_font): Call best_matching_font with width_ratio
3265 calculated from the column width of C.
3266
60222d69
AI
32672001-02-12 Andrew Innes <andrewi@gnu.org>
3268
3269 The following changes are to draw box lines inside characters area
3270 if line-width is negative.
52283633 3271
60222d69
AI
3272 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3273 face->box_line_width is negative.
3274 (x_produce_stretch_glyph): Likewise.
3275 (x_produce_glyphs): Likewise.
3276 (x_estimate_mode_line_height): Likewise.
3277 (x_draw_glyph_string_background): Likewise.
3278 (x_draw_glyph_string_foreground): Likewise.
3279 (x_draw_composite_glyph_string_foreground): Likewise.
3280 (x_draw_glyph_string_box): Likewise.
3281 (x_draw_image_foreground): Likewise.
3282 (x_draw_image_relief): Likewise.
3283 (x_draw_image_foreground_1): Likewise.
3284 (x_draw_image_glyph_string): Likewise.
3285
9804b846
KH
32862001-02-09 Kenichi Handa <handa@etl.go.jp>
3287
3288 The following changes are to draw box lines inside characters area
3289 if line-width is negative.
52283633 3290
9804b846
KH
3291 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3292 face->box_line_width is negative.
3293 (x_produce_stretch_glyph): Likewise.
3294 (x_produce_glyphs): Likewise.
3295 (x_estimate_mode_line_height): Likewise.
3296 (x_draw_glyph_string_background): Likewise.
3297 (x_draw_glyph_string_foreground): Likewise.
3298 (x_draw_composite_glyph_string_foreground): Likewise.
3299 (x_draw_glyph_string_box): Likewise.
3300 (x_draw_image_foreground): Likewise.
3301 (x_draw_image_relief): Likewise.
3302 (x_draw_image_foreground_1): Likewise.
3303 (x_draw_image_glyph_string): Likewise.
3304
3305 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3306 and :line-width can be negative.
52283633 3307 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 3308
49be9f70
JR
33092001-02-09 Jason Rumney <jasonr@gnu.org>
3310
3311 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3312 characters the same as ASCII and latin-1.
3313 (x_display_and_set_cursor): Check for the focus frame's selected
3314 window instead of selected_window.
3315 (x_after_update_window_line): Don't clear if frame's internal
3316 border width is zero.
3317 (x_new_font): Don't change a tooltip's size.
3318 (w32_initialize): Set char_ins_del_ok to 1.
3319
3320 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3321 (x_set_font): If font hasn't changed, avoid recomputing
3322 faces and other things.
52283633
SM
3323 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3324 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
3325 (x_create_tip_frame): Prevent changing the tooltip's
3326 background color by specifying a color for the default font
3327 in .Xdefaults.
3328 (Qcancel_timer): New variable.
3329 (syms_of_w32fns): Initialize and staticpro it.
3330 (Fx_hide_tip, Fx_show_tip): Use it.
3331 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3332 the timer.
3333 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3334
3335 * w32.c (init_environment): Duplicate local string before putenv.
3336
555e35d2
SZ
33372001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3338
3339 * charset.c (Fstring): A typo.
3340
19c92c94
KH
33412001-02-09 Kenichi Handa <handa@etl.go.jp>
3342
e47a1c33
KH
3343 * charset.c (Fstring): If all arguments are less than 256, return
3344 a unibyte string.
3345
3346 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3347 return a unibyte string.
3348
19c92c94
KH
3349 * coding.c (code_convert_region): After detecting a coding, if
3350 nothing found, set coding->composing to COMPOSITION_NO.
3351 (decode_coding_string): Likewise.
3352
d8e675f5
SM
33532001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3354
3355 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3356 to avoid overflow.
3357
bd503487
KH
33582001-02-07 Kenichi Handa <handa@etl.go.jp>
3359
3360 * charset.c (parse_str_to_multibyte): New function.
3361
3362 * charset.h (parse_str_to_multibyte): Extern it.
3363
3364 * print.c (print_string): If we are going to print a unibyte
3365 string into a multibyte buffer, convert the string to multibyte by
3366 str_to_multibyte.
3367
a8370d72
AI
33682001-02-06 Andrew Innes <andrewi@gnu.org>
3369
3370 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3371 been created. It seems we can get sent window messages such as
3372 WM_ERASEBKGND before we properly update a frame.
3373
c363a1d6
GM
33742001-02-06 Gerd Moellmann <gerd@gnu.org>
3375
3376 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3377 Avoid some unnecessary cursor positioning.
3378
a08332c0
GM
33792001-02-05 Gerd Moellmann <gerd@gnu.org>
3380
52283633 3381 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
3382 (LFACE_AVGWIDTH): New macro.
3383 (LFACEP): Use AREF.
3384 (check_lface_attrs): Check LFACE_AVGWIDTH.
3385 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3386 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3387 (merge_face_vectors): Check LFACE_AVGWIDTH.
3388 (Finternal_make_lisp_face): Use AREF.
3389 (xm_set_menu_resources_from_menu_face)
3390 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3391 (Finternal_lisp_face_empty_p): Use AREF.
3392 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3393 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3394 Compare average widths..
3395 (best_matching_font): Arrange for comparing average widths.
3396
52283633
SM
3397 * dispextern.h (enum lface_attribute_index):
3398 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3399
5cb3c8d4
DL
34002001-02-05 Dave Love <fx@gnu.org>
3401
3402 * puresize.h: Revert last change following loadup.el change.
3403
193fba87
AI
34042001-02-05 Andrew Innes <andrewi@gnu.org>
3405
3406 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3407 invocation of temacs, to work with Windows 2000.
3408 (bootstrap-emacs): Ditto.
3409
e16f52ce
GM
34102001-02-05 Gerd Moellmann <gerd@gnu.org>
3411
7a58ab59
GM
3412 * xterm.c (x_display_and_set_cursor): Check for the focus
3413 frame's selected window instead of selected_window.
3414
e89aaabd
GM
3415 * xdisp.c (try_scrolling): If point is in the line below the
3416 window, make sure to move the iterator at least a canonical
3417 char height down.
3418
52283633 3419 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 3420
789ce875
KH
34212001-02-05 Kenichi Handa <handa@etl.go.jp>
3422
52283633
SM
3423 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3424 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
3425 (ccl_driver): If the CCL program is terminated because of
3426 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3427 destination instead of throwing them away.
3428
20b28f82
GM
34292001-02-02 Gerd Moellmann <gerd@gnu.org>
3430
79fb38c0
GM
3431 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3432 faces and other things.
3433
20b28f82
GM
3434 * xdisp.c (get_next_display_element): Fix case of empty
3435 display table entry.
3436
5a72551e
EZ
34372001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3438
eb24d0bf
EZ
3439 * editfns.c (Fconstrain_to_field): Doc fix.
3440
6a3f48c7
EZ
3441 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3442 into `thoroughly', to make it consistent with the doc string.
3443
5a72551e
EZ
3444 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3445
01acdb05
GM
34462001-02-01 Gerd Moellmann <gerd@gnu.org>
3447
0353b28f
GM
3448 * search.c (search_buffer): Call set_search_regs with a byte
3449 position, not a character position.
3450
01acdb05
GM
3451 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3452 minibuffer-only,
3453
e86b5133
EZ
34542001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3455
3456 * frame.c (Fmodify_frame_parameters): Doc fix.
3457
7442878f
GM
34582001-01-31 Gerd Moellmann <gerd@gnu.org>
3459
01acdb05
GM
3460 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3461 identifier which is not reserved by Standard C.
52283633 3462
7442878f
GM
3463 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3464
3465 * window.c (enum window_part): New enumeration.
3466 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3467 Qright_bitmap_area.
3468 (coordinates_in_window): Return an enumerator from enum
3469 window_part. Fix handling of right scroll bar.
3470 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3471 `right-fringe' instead of `left-bitmap-area' and
3472 `right-bitmap-area'. Use enumerators from enum window_part
3473 instead of hard-coded integers.
52283633
SM
3474 (check_window_containing, window_from_coordinates):
3475 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
3476 (syms_of_window): Replace Qleft_bitmap_area and
3477 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3478
7c132cba
EZ
34792001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3480
3481 * editfns.c (Fformat_time_string): Doc fix.
3482
c359dd9e
SM
34832001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3484
3485 * keymap.c (Fwhere_is_internal): Use the first valid binding
3486 if no ascii binding is found (when firstonly is t).
3487
ce070307
GM
34882001-01-31 Gerd Moellmann <gerd@gnu.org>
3489
b4f30ec5
GM
3490 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3491 instead of Finteractive_p.
3492
3493 * lisp.h (interactive_p): Add prototype.
3494
3495 * eval.c (interactive_p): New function.
3496 (Finteractive_p): Use it.
3497
ce070307
GM
3498 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3499
f57b6e64
DL
35002001-01-31 Dave Love <fx@gnu.org>
3501
d61c7afe
DL
3502 * .gdbinit (hook-run): Define to run xreload.
3503
f57b6e64
DL
3504 * textprop.c (Fset_text_properties): Fix newline in doc string.
3505
eef93f99
GM
35062001-01-30 Gerd Moellmann <gerd@gnu.org>
3507
52283633
SM
3508 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3509 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
3510
3511 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 3512 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
3513 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3514
3515 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3516 height.
3517
d9c1f6f9
DL
35182001-01-30 Dave Love <fx@gnu.org>
3519
3520 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3521 AFTER_POTENTIAL_GC.
3522
e8f044a0
GM
35232001-01-29 Gerd Moellmann <gerd@gnu.org>
3524
52283633
SM
3525 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3526 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 3527
8e1db7b3
EZ
35282001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3529
3530 * textprop.c (Fset_text_properties): Doc fix.
3531
4eefd9d2
GM
35322001-01-29 Gerd Moellmann <gerd@gnu.org>
3533
3534 * xdisp.c (forward_to_next_line_start): Remove xassert.
3535
fccb8288
EZ
35362001-01-29 Jason Rumney <jasonr@gnu.org>
3537
4eefd9d2 3538 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
3539 returning without releasing it.
3540
76581eab
KH
35412001-01-29 Kenichi Handa <handa@etl.go.jp>
3542
3543 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3544 for '^', '$', and '\0'.
3545
83a96b4d
AC
35462001-01-28 Andrew Choi <akochoi@i-cable.com>
3547
5604ec34
AC
3548 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3549 regex for '^', '$', and '\0'.
3550
83a96b4d
AC
3551 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3552 only if current_sblock has been initialized.
3553
3554 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3555 terminal frame even if it is the only visible frame.
3556
c09a6440
KH
35572001-01-28 Kenichi Handa <handa@etl.go.jp>
3558
3559 * fontset.c (font_family_registry): Even if FONTNAME conform to
3560 XLFD, if it specifies other fields than family and registry,
52283633 3561 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 3562 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
3563 a signle byte character. Don't set FAMILY part to nil here.
3564 It is handled by the caller choose_face_font.
c09a6440
KH
3565 (Fnew_fontset): Call font_family_registry with FORCE 0.
3566 (Fset_fontset_font): Likewise.
3567
4dcd74e6
GM
35682001-01-27 Gerd Moellmann <gerd@gnu.org>
3569
3570 * xdisp.c (display_line): Don't treat a newline as fitting
3571 on the line.
3572
d2906bf8
GM
35732001-01-26 Gerd Moellmann <gerd@gnu.org>
3574
0130fe1a
GM
3575 * window.c (size_window): Set the window's orig_top to nil when
3576 changing heights, so that a future shrink_mini_window won't
3577 restore a bogus height.
3578
550f0e6a
GM
3579 * frame.c (do_switch_frame): If selected frame has a mini-window,
3580 resize that to exact size.
3581
b7b20fbd
GM
3582 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3583
a47b7816
GM
3584 * xdisp.c (display_line): Simplify check for glyphs fitting
3585 entirely in the line.
3586
d2906bf8
GM
3587 * xfns.c (xic_style): New variable.
3588 (create_frame_xic): Move static variable to global scope for
550f0e6a 3589 the case that `static' gets defined away.
d2906bf8 3590
73df2b1e
KH
35912001-01-26 Kenichi Handa <handa@etl.go.jp>
3592
3593 * coding.c (decode_coding): Set a flag for inhibiting
3594 inconsistent eol.
3595 (code_convert_region): Always set saved_coding_symbol.
3596 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 3597 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 3598
6613cfc4
GM
35992001-01-25 Gerd Moellmann <gerd@gnu.org>
3600
c5e6e06b
GM
3601 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3602 XClearArea.
3603
3604 * xterm.c (x_after_update_window_line): Don't clear if frame's
3605 internal border width is zero.
3606 (x_clear_area): New function.
3607 (x_after_update_window_line, x_clear_end_of_line)
3608 (x_scroll_bar_create, x_scroll_bar_set_handle)
3609 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3610 instead of XClearArea.
3611
3612 * xterm.h (x_clear_area): Add prototype.
3613
6613cfc4
GM
3614 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3615 which doesn't seem necessary anymore with Lesstif 0.92.
3616
650cc6cc
DL
36172001-01-25 Dave Love <fx@gnu.org>
3618
34ac3367
DL
3619 * puresize.h (BASE_PURESIZE): Up to 720000.
3620
650cc6cc
DL
3621 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3622
5e37dc22
GM
36232001-01-25 Gerd Moellmann <gerd@gnu.org>
3624
e1e441f9
GM
3625 * xdisp.c (echo_area_display): Don't call redisplay_internal
3626 when Emacs is shutting down. We can't run hooks etc. that
3627 would be necessary to do a redisplay.
3628
5e37dc22
GM
3629 * lread.c (read_integer): Use type EMACS_INT instead of int.
3630
0fb94c7f
EZ
36312001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3632
3633 * ccl.c (ccl_driver): Fix last change.
3634
e3778624
KH
36352001-01-25 Kenichi Handa <handa@etl.go.jp>
3636
3637 * ccl.h (sturct ccl_program): New member suppress_error.
3638
bb264518 3639 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
3640 insert error message to the output.
3641 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3642
3643 * coding.h (struct coding_system): New member suppress_error.
3644
3645 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3646 (Fset_terminal_coding_system_internal): Set the member
3647 suppress_error to 1.
3648 (Fset_safe_terminal_coding_system_internal): Likewise.
3649
245ed2b1
SM
36502001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3651
3652 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3653 as if it was a `charset'.
3654
f9aaedb6
GM
36552001-01-24 Gerd Moellmann <gerd@gnu.org>
3656
3657 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3658 value in where_is_cache; the next lookup in the cache returns
3659 something bogus if we do.
3660
c3902c3e
EZ
36612001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3662
3663 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3664 if HAVE_WINDOW_SYSTEM isn't defined.
3665
3497f73e
GM
36662001-01-24 Gerd Moellmann <gerd@gnu.org>
3667
e7e41584
GM
3668 * fns.c (sweep_weak_table): Fix code taking items out of
3669 the hash collision chain. Some cleanup.
3670
3497f73e
GM
3671 * xterm.c (x_new_font): Don't change a tooltip's size.
3672
3673 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3674 background color by specifying a color for the default font
3675 in .Xdefaults.
3676
3d48e687
KH
36772001-01-24 Kenichi Handa <handa@etl.go.jp>
3678
96531b20
KH
3679 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3680 a workaround for SunOS 4's cc.
3681 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3682 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3683 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3684 statement.
3d48e687 3685
a30629d2
GM
36862001-01-23 Gerd Moellmann <gerd@gnu.org>
3687
3688 * xterm.c (x_set_window_size_1): New function extracted from
3689 x_set_window_size.
3690 (x_set_window_size): Use it.
3691 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3692 doesn't have a widget, like tooltips.
3693
5a43decf
EZ
36942001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3695
52283633 3696 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 3697
b0e98867
KH
36982001-01-23 Kenichi Handa <handa@etl.go.jp>
3699
3700 * fns.c (Fset_char_table_default): Fix to make sub char-table
3701 correctly.
3702
50606b4c
GM
37032001-01-22 Gerd Moellmann <gerd@gnu.org>
3704
cb2ddc53 3705 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
3706 a desired tool bar string, even if there are no tool bar items.
3707
57c28064
GM
3708 * xdisp.c (Ftool_bar_lines_needed): New function.
3709 (syms_of_xdisp): Defsubr it.
3710
50606b4c
GM
3711 * editfns.c (Fformat): Don't extend text properties from arguments
3712 to padding chars in the result.
3713
2f169c38
EZ
37142001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3715
3716 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3717
0f32f023
AI
37182001-01-20 Andrew Innes <andrewi@gnu.org>
3719
52283633 3720 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
3721 (w32_initialize): Don't set term hooks that aren't actually needed
3722 in windowed mode.
3723
3724 * xfaces.c (realize_default_face):
3725 (realize_face):
3726 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3727
3728 * xdisp.c (handle_single_display_prop): Remove references to
3729 FRAME_W32_CONSOLE_P.
3730
52283633 3731 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
3732
3733 * frame.h (output_method): Remove output_w32_console method.
3734 (FRAME_W32_CONSOLE_P): Remove macro.
3735
3736 * frame.c (Qw32_console): Remove variable.
3737 (Fframep): Remove references to it.
3738 (syms_of_frame): Ditto.
3739 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3740
3741 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3742 redefinition.
3743
7173eada
KH
37442001-01-20 Kenichi Handa <handa@etl.go.jp>
3745
3746 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3747
755b45ce
AI
37482001-01-19 Andrew Innes <andrewi@gnu.org>
3749
3750 * w32.c (init_environment): Add a version-independent site-lisp
3751 directory to EMACSLOADPATH, after the version dependent one.
3752
0a949811
GM
37532001-01-19 Gerd Moellmann <gerd@gnu.org>
3754
8501998a
GM
3755 * editfns.c (Fbuffer_substring): Doc fix.
3756
52283633
SM
3757 * xdisp.c (message_dolog, message2, message2_nolog):
3758 Rename parameter LEN to NBYTES.
0a949811 3759
e6ebcbbe
KH
37602001-01-19 Kenichi Handa <handa@etl.go.jp>
3761
200ecca2
KH
3762 * charset.c (strwidth): Use c_string_width.
3763 (c_string_width): New function.
3764 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3765 Caller changed.
3766
3767 * charset.h (c_string_width, lisp_string_width): Extern them.
3768
52283633 3769 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 3770
e6ebcbbe
KH
3771 * indent.c (check_composition): Check validity of composition.
3772
200ecca2
KH
3773 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3774 characters by calling c_string_width.
3775 (x_consider_frame_title): Get byte length of frame tile string
3776 correctly.
3777 (display_mode_element): Pay attention to width of non-ASCII
3778 characters by calling strwidth.
3779
8692ca92
GM
37802001-01-18 Gerd Moellmann <gerd@gnu.org>
3781
8962e303
GM
3782 * xfns.c (Qcancel_timer): New variable.
3783 (syms_of_xfns): Initialize and staticpro it.
3784 (Fx_hide_tip, Fx_show_tip): Use it.
3785 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3786 the timer.
3787 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3788
91523be9
GM
3789 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3790
3791 * window.h (WINDOW_LIVE_P): New macro.
3792
b0b7ed0e
GM
3793 * window.c (window_size_fixed): New variable.
3794 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3795 the doc string.
3796
06bccf8e
GM
3797 * eval.c (specbind): If binding a per-buffer variable which
3798 doesn't have a buffer-local value in the current buffer, change
3799 the global value by changing the value of the symbol bound in all
3800 buffers not having their own value, to make it consistent with
3801 what happens with other buffer-local variables.
3802
8692ca92
GM
3803 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3804
3805 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3806 when searching for a newline.
3807
bb3a3b50
KH
38082001-01-18 Kenichi Handa <handa@etl.go.jp>
3809
3810 * xdisp.c (display_string): Fix previous change.
3811
c2cc16fa
JR
38122001-01-18 Jason Rumney <jasonr@gnu.org>
3813
3814 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3815 GLYPH_DEBUG is defined.
3816 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3817 true for images with `:ascent 100'.
3818 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3819 meantime, use face MOUSE_FACE_ID.
3820 If first glyph isn't a character glyph, use the ASCII NUL
3821 character to determine the face.
3822 (expose_area): Do not treat left margin specially.
3823 (note_mode_line_highlight): If no local_map, check global keymap.
3824 (note_mouse_highlight): Initialize overlay.
52283633 3825 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
3826 (show_scroll_bars): Remove unused function.
3827 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3828 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3829 Clip to row.
52283633 3830 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
3831 (x_free_frame_resources): Unload relief colors.
3832
9c11f79e
GM
38332001-01-17 Gerd Moellmann <gerd@gnu.org>
3834
3aec8722 3835 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
3836 get_next_display_element when the newline is already found.
3837 This may change the iterator's position, when its current position is
3aec8722
GM
3838 equal to the iterator's stop_charpos.
3839
f3ffc2c3
GM
3840 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3841 zero, use this method only at the end of a line.
3842
52283633 3843 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
3844 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3845 if SCALABLE_FONTS_P is set.
52283633 3846
d26d6fd9
GM
3847 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3848 so that scalable fonts are included.
3849
9c11f79e
GM
3850 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3851 In the cache, use a key containing the information if scalable
3852 fonts are included.
3853 (x_load_font): Adapt to change of keys in the font cache.
3854
38552001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 3856
d26d6fd9
GM
3857 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3858 XListFonts to take advantage of font caching.
3859
9c11f79e
GM
3860 * xterm.c (x_list_fonts): Ensure caching font information when
3861 called for a null frame, which is the case frequently when Emacs
3862 starts.
3863
51446987
GM
38642001-01-17 Gerd Moellmann <gerd@gnu.org>
3865
f864120f
GM
3866 * xfns.c (QCconversion): Replaces QCalgorithm.
3867
3868 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3869
3870 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3871 of :algorithm.
52283633 3872
e37d1417
GM
3873 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3874 not everything could be displayed.
3875
51446987
GM
3876 * line.h, x-list-font.c: Files removed because unused.
3877
9ad4f3e5
AI
38782001-01-17 Andrew Innes <andrewi@gnu.org>
3879
3880 * dired.c (directory_files_internal): Convert result from readdir
3881 to a unibyte string initially, to avoid possible misinterpretation
3882 of some bytes as the internal form of Emacs characters.
3883
2eda09b5
KH
38842001-01-17 Kenichi Handa <handa@etl.go.jp>
3885
3886 * fns.c (concat): Be sure to avoid putting the same `composition'
3887 property on the adjacent regions.
3888
826f3788
GM
38892001-01-16 Gerd Moellmann <gerd@gnu.org>
3890
52283633 3891 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
3892 (Fscroll_right, Fscroll_left): Set it here instead, if called
3893 interactively.
3894
d57b83b3
GM
3895 * buffer.c (Fset_buffer_modified_p): Set buffer's
3896 prevent_redisplay_optimizations_p flag.
3897
826f3788 3898 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
3899 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3900 with additional arg.
3901
3902 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3903 Change prototype.
826f3788 3904
826f3788
GM
3905 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3906 FROM_WHERE, for debugging.
3907
261d788b
KH
39082001-01-16 Kenichi Handa <handa@etl.go.jp>
3909
3910 * ccl.c (Fregister_ccl_program): Handle the return value of
3911 resolve_symbol_ccl_program correctly.
52283633 3912 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 3913
bccee4f2
GM
39142001-01-15 Gerd Moellmann <gerd@gnu.org>
3915
e4ded23c
GM
3916 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3917 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
3918
3919 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3920 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
3921 the display; we didn't open it.
3922
bccee4f2
GM
3923 * dispnew.c (save_or_restore_current_matrices): Function removed.
3924 (save_current_matrix, restore_current_matrix): New functions.
3925 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3926 restore the frame's current matrix. Due to the glyph pointer
3927 setup done in adjust_glyph_matrix, there is no easy way to make
3928 saving the current matrix in the desired matrix generally correct,
3929 so don't try it.
3930
ebeccffa
KH
39312001-01-15 Kenichi Handa <handa@etl.go.jp>
3932
3933 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3934 truncation glyphs.
3935 (display_line): Optimize for wide characters.
e4ded23c 3936 (display_string): Don't try to display a multi-column character
ebeccffa
KH
3937 partially. On ttys, produce more than one truncation glyph for
3938 multi-column characters that don't fit on the line.
3939
64388126
KH
39402001-01-13 Kenichi Handa <handa@etl.go.jp>
3941
52283633
SM
3942 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3943 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 3944
8edb0a6f
JR
39452001-01-13 Jason Rumney <jasonr@gnu.org>
3946
3947 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3948 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
3949 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3950 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 3951
52283633
SM
3952 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3953 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
3954 (x_draw_image_glyph_string): Adapt to change of image margins.
3955
3956 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3957 variables.
3958
3959 * w32bdf.c (search_file_line, get_cached_font_char)
3960 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3961
3962 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3963
3964 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3965 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3966 (Fw32_send_sys_command): Remove unused variables.
3967 (w32_msg_pump): Add parentheses.
3968
3969 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3970 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3971 Add parentheses.
3972
4956d1ef
GM
39732001-01-12 Gerd Moellmann <gerd@gnu.org>
3974
b30623be
GM
3975 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3976 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3977 being a pair of margins.
3978 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3979 to DEFVAR_LISP. Extend doc.
3980
3981 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3982 margins.
3983 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3984 pair of integers `(X . Y)', use X for the horizontal and Y for the
3985 vertical margin.
3986 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3987 (parse_image_spec): Check it.
52283633
SM
3988 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3989 (tiff_format, gif_format, gs_format):
3990 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 3991
52283633
SM
3992 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3993 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
3994 (x_draw_image_glyph_string): Adapt to the change of image margins.
3995
3996 * dispextern.h (struct image): Replace member `margin' with
3997 `hmargin' and `vmargin'.
3998
4554cc79
GM
3999 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4000 and GLYPHS.
4001
4002 * dispnew.c (update_text_area): Put code which decrements the
4003 stop position when the row's face extends to the end of the
3bffc665 4004 line in #if 0.
4554cc79 4005
3cccce8d
GM
4006 * xfns.c (x_set_mouse_color): Fix color allocation.
4007
4956d1ef
GM
4008 * keyboard.c: Call get_local_map with new argument list.
4009
4010 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4011
4012 * intervals.h (enum map_property): Removed.
4013 (get_local_map): Change prototype.
4014
4015 * keymap.c: Call get_local_map with new argument list.
4016 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4017
2c2ff7f2
GM
40182001-01-11 Gerd Moellmann <gerd@gnu.org>
4019
a23887b9
GM
4020 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4021 of the size needed for the tool bar string. For the last image,
4022 use a `display' property that reaches to the end of the string.
4023
a7ee2d2e
GM
4024 * xselect.c (selection_request_dpyinfo): New variable.
4025 (x_handle_selection_request): Set it.
4026 (x_selection_request_lisp_error): Don't call
4027 x_decline_selection_request if selection request's display has
4028 been closed.
4029
52283633
SM
4030 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4031 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 4032
457b792c
GM
40332001-01-10 Dave Love <fx@gnu.org>
4034
4035 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4036 ${SOME_MACHINE_LISP}, not ${lisp}.
4037
c1efd260
GM
40382001-01-10 Gerd Moellmann <gerd@gnu.org>
4039
52283633
SM
4040 * xdisp.c (display_line): On ttys, produce more than one truncation
4041 glyph for multi-column characters that don't fit on the line.
a98b5ed9 4042
ac95a621
GM
4043 * xselect.c (x_reply_selection_request): Add a comment.
4044
c1efd260
GM
4045 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4046 XkbGetNames instead of XkbGetKeyboard.
4047
1bfb1345
DL
40482001-01-10 Dave Love <fx@gnu.org>
4049
4050 * sysdep.c (random): Revert the declaration.
4051
38119822
GM
40522001-01-09 Gerd Moellmann <gerd@gnu.org>
4053
52283633
SM
4054 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4055 Call function string_bytes.
35f464a7
GM
4056 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4057
4058 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4059 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4060 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4061 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4062 the current sblock.
4063 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4064 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4065 after sweeping strings, and at the end.
4066 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4067
38119822
GM
4068 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4069 ensure that pop_message is called.
4070
4071 * keyboard.c (Fexecute_extended_command): Use a
4072 record_unwind_protect to ensure that pop_message is called.
4073
4074 * lisp.h (push_message_unwind): Add prototype.
4075
4076 * xdisp.c (push_message_unwind): New function.
4077
4078 * fileio.c (do_auto_save_unwind): Do the pop_message here
4079 instead of in Fdo_auto_save.
4080 (Fdo_auto_save): Don't call pop_message.
4081
f47a9ec4
KR
40822001-01-08 Ken Raeburn <raeburn@gnu.org>
4083
4084 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4085 in inner block.
4086
a758f97d
GM
40872001-01-08 Gerd Moellmann <gerd@gnu.org>
4088
6d0afc03
GM
4089 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4090 when increasing window's vscroll.
4091
a758f97d
GM
4092 * macros.c (Qkbd_macro_termination_hook): New variable.
4093 (syms_of_macros): Initialize and staticpro it.
4094 (pop_kbd_macro): Run kbd-macro-termination-hook.
4095
4096 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4097
1bfb1345 40982001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
4099
4100 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4101 arglist, for documentation's sake.
4102
0dac6924
AI
41032001-01-06 Andrew Innes <andrewi@gnu.org>
4104
4105 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4106 of *.pdb.
4107
8182406a
AI
41082001-01-05 Andrew Innes <andrewi@gnu.org>
4109
4110 * term.c (update_end): Don't check updating_frame; for some reason
4111 this can be 0 sometimes, such as after dismissing a popup menu,
4112 and isn't necessary given the explicit frame argument.
4113
3828218c
GM
41142001-01-05 Gerd Moellmann <gerd@gnu.org>
4115
4116 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4117 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4118
2f5ded21
GM
41192001-01-04 Gerd Moellmann <gerd@gnu.org>
4120
52283633 4121 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
4122
4123 * xfns.c (x_create_tip_frame): Preserve the value of
4124 face_change_count around the creation of the tip frame.
52283633 4125
2f5ded21
GM
4126 * xfns.c (last_show_tip_args): New variable.
4127 (compute_tip_xy): New function.
4128 (Fx_show_tip): Reuse an existing tip frame, if possible.
4129 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4130
dfad65fa
DL
41312001-01-04 Dave Love <fx@gnu.org>
4132
64d4ec0f
DL
4133 * editfns.c (Fformat): Doc fix.
4134
dfad65fa
DL
4135 * systime.h (set_file_times): Prototype.
4136
4137 * widget.h (EmacsFrameSetCharSize_): Prototype.
4138
4139 * sysdep.c (random, srandom): Declare explicitly.
4140
4141 * dispextern.h (move_it_vertically_backward): Declare.
4142
85fe3b5e
GM
41432001-01-04 Gerd Moellmann <gerd@gnu.org>
4144
0f2ac578
GM
4145 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4146 like in Fx_create_frame.
4147
482cca61
GM
4148 * xfaces.c (set_font_frame_param): Don't do anything for
4149 non-graphical frames.
4150
85fe3b5e
GM
4151 * window.c (Fdelete_other_windows): Set window's window_end_valid
4152 to nil when changing the window's start. Don't change the
4153 window's start when its top position hasn't changed. If we do,
4154 this will set the window's optional_new_start, which act's like a
4155 force_start during redisplay with C-x 1 M-> under particular
4156 circumstances (see report from Per Starback to emacs-pretest-bug
4157 from 2000-12-13.).
4158
3e99d3b4
GM
41592001-01-03 Gerd Moellmann <gerd@gnu.org>
4160
a77dc1ec
GM
4161 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4162 short cut at the start of the function. Add an assertion.
4163 (reseat_at_next_visible_line_start): Add an assertion.
4164
2f3cad6c
GM
4165 * window.c (Frecenter): When changing the window start, set the
4166 window's window_end_valid to nil.
4167 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4168
4169 * dispextern.h (move_it_past_eol): Add prototype.
4170
4171 * xdisp.c (move_it_past_eol): New function.
4172
3e99d3b4
GM
4173 * window.c (Fwindow_end): Doc fix.
4174
41752001-01-03 Dave Love <fx@gnu.org>
4176
52283633 4177 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 4178
bafb434c
GM
41792001-01-03 Gerd Moellmann <gerd@gnu.org>
4180
4181 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4182 the enabled_p flag of the glyph row at window_end_vpos to 0.
4183 (handle_single_display_prop): Fix last change.
4184
5297fb00
RS
41852001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4186
4187 * window.c (Frecenter): Doc fix.
4188
13d6a61c
AI
41892001-01-02 Andrew Innes <andrewi@gnu.org>
4190
4191 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4192
4193 * frame.h (output_method): Add output_w32_console method.
4194 (FRAME_W32_CONSOLE_P): New macro.
4195
4196 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4197 use output_w32_console method.
4198 (Qw32_console): New Lisp_Object.
4199 (Fframep): Return it.
4200 (syms_of_frame): Init it.
52283633 4201 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
4202
4203 * xfaces.c (realize_default_face): Set face foreground and
4204 background to unspecified for w32_console frames.
4205 (realize_face): Realize face cache for w32_console frames.
4206 (realize_tty_face): Accept w32_console frames.
4207
52283633 4208 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
4209 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4210 necessary, even if running interactively.
4211
4212 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4213 w32_console frames.
4214
52283633
SM
4215 * w32term.c (x_update_begin):
4216 (x_update_end):
4217 (x_clear_frame):
4218 (x_ins_del_lines):
4219 (x_change_line_highlight):
4220 (x_delete_glyphs):
4221 (w32_ring_bell):
4222 (x_update_begin):
4223 (x_update_end):
4224 (w32_reassert_line_highlight):
4225 (w32_frame_rehighlight):
13d6a61c
AI
4226 (w32_frame_raise_lower): Do nothing if not w32 frame.
4227
4228 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4229
4230 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4231 system doesn't tell us directly.
4232 (Fx_display_visual_class): Implement properly.
4233
d6bb0c0d
GM
42342001-01-02 Gerd Moellmann <gerd@gnu.org>
4235
4236 * window.c (Frecenter): Handle centering in graphical frames
4237 specially. Centering on the basis of line counts doesn't work
4238 reliably with variable-height lines.
52283633 4239
315f5865
EZ
42402001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4241
4242 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4243 and al[].
4244
52283633 4245 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
4246 (update_compositions): Remove unused variable `hook'.
4247
4248 * intervals.c (get_local_map): Remove unused variable `tem'.
4249
4250 * doprnt.c (doprnt1): Remove unused variable `size'.
4251
4252 * fns.c (Flength): Remove unused variable `tail'.
4253 (Fdelete): Remove unused variable `size'.
4254
4255 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4256 and `gcpro2'.
4257
52283633 4258 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
4259
4260 * data.c (find_symbol_value): Remove extra 3rd argument in the
4261 call to swap_in_symval_forwarding.
4262
52283633 4263 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
4264
4265 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4266 (trivial_regexp_p): Remove unused variable `c'.
4267 (boyer_moore): Remove unused variable `k'.
4268
4269 * indent.c (current_column): Remove unused variable `stopchar'.
4270 (Fcompute_motion): Remove unused variable `contin'.
4271
4272 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4273
4274 * dired.c (directory_files_internal): Fix a typo in a comment.
4275 Remove an unused variable `handler'.
52283633 4276 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
4277 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4278 on BSD4_2.
4279
52283633 4280 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
4281
4282 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4283 and `buf'.
4284 (Fmarker_insertion_type): Remove unused variable `buf'.
4285
4286 * insdel.c (make_gap): Remove unused variable `result'.
4287
52283633 4288 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
4289 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4290 (menu_bar_items): Remove unused function-scope variable `tem'.
4291
4292 * fontset.c (fontset_ref): Remove unused variable `i'.
4293 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 4294 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
4295 (make_fontset_for_ascii_face): Remove unused variable `name'.
4296 (fs_load_font): Remove unused variable `font_idx'.
52283633 4297 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
4298 (list_fontsets): Remove unused variable `tail'.
4299 (Fnew_fontset): Remove unused variables `family' and `registry'.
4300 (accumulate_font_info): Remove unused variable `tmp'.
4301 (Ffontset_font): Remove unused variable `id'.
4302 (syms_of_fontset): Remove unused variable `i'.
4303
4304 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4305 to x_term_init.
4306 (lookup_image): Remove unused variable `file'.
4307 (xbm_load): Remove unused variables `bitmap_data', `height', and
4308 `width'. Remove function-local variable `i', leave the
4309 block-local one.
4310 (gif_load): Remove unused variable `inc'.
4311
52283633 4312 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
4313 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4314 leave only the one in the inner block.
4315
4316 * xfaces.c (face_fontset, realize_default_face): Remove unused
4317 variable `fontset'.
4318 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4319
4320 * term.c (encode_terminal_code): Remove unused variable `c'.
4321
4322 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4323 char *' instead of `char *'.
4324
4325 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 4326 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
4327 (Fchar_category_set): Remove unused variables `val', `charset',
4328 `c1' and `c2'.
4329
52283633
SM
4330 * coding.c (detect_coding_iso2022, setup_coding_system):
4331 Remove unused variable `i'.
315f5865
EZ
4332 (detect_coding_mask): Remove unused variable `idx'.
4333 (detect_coding): Remove unused variable `i'.
4334 (ccl_coding_driver): Remove unused variable `result'.
4335 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 4336 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
4337 (encode_coding_string): Remove unused variables `gcpro1' and
4338 `saved_coding_symbol'.
4339 (Ffind_coding_systems_region_internal): Remove function-local
4340 variable args[], leave only the block-local one.
4341 (code_convert_region1): Remove unused variable `len'.
4342
4343 * charset.c (char_printable_p): Remove unused variable `chars'.
4344 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4345 (str_to_multibyte): Remove unused variable `c'.
4346
4347 * window.c (size_window): Remove block-local variable `min_size'.
4348
4349 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4350 `header_line_height'.
4351 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4352 enum display_element_type.
4353
1a8a9daf
GM
43542001-01-02 Gerd Moellmann <gerd@gnu.org>
4355
6dde6abc 4356 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
4357 statements that call X. Save away the error message in a local copy.
4358
1883b2c6
GM
4359 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4360 the start.
4361
a13be207
GM
4362 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4363 in or at the start of invisible text.
4364
1a8a9daf
GM
4365 * dispnew.c (update_window): Don't check_current_matrix_flags.
4366
3608c0f9
JR
43672001-01-01 Jason Rumney <jasonr@gnu.org>
4368
4369 * w32fns.c (x_figure_window_size): Do not allow new_height and
4370 new_width of frame to override specified values.
4371
abb1acc4
KH
43722000-12-30 Kenichi Handa <handa@etl.go.jp>
4373
52283633 4374 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 4375
762a68ec
GM
43762000-12-29 Gerd Moellmann <gerd@gnu.org>
4377
52283633 4378 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
4379 (update_window) [GLYPH_DEBUG]: Call it.
4380 (scrolling_window): Prevent including current rows which are below
4381 what's displayed in the window.
4382
4383 * xdisp.c (try_window_reusing_current_matrix)
4384 <new start <= old start>: Disable rows in the current matrix
4385 which are below the window after scrolling.
52283633 4386
762a68ec
GM
4387 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4388 is zero. It's not worth the complexity.
4389 (invisible_text_between_p): Put in #if 0 because unused.
4390
2d5912c1
GM
43912000-12-28 Gerd Moellmann <gerd@gnu.org>
4392
46f6a258
GM
4393 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4394 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4395
89f93679
GM
4396 * keyboard.c (echo_char): If C is an integer, always call
4397 push_key_description. Former code could signal an invalid
4398 character error.
4399
4400 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4401 If set, print multibyte text.
4402 (Fsingle_key_description): Call push_key_description with
4403 FORCE_MULTIBYTE set.
4404 (describe_buffer_bindings): Likewise.
4405
4406 * lisp.h (push_key_description): Add prototype.
4407
c06017fb
GM
4408 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4409 around the call to redisplay_internal.
4410
f1d2ce7f
GM
4411 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4412
2d5912c1
GM
4413 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4414
9371f831
KH
44152000-12-28 Kenichi Handa <handa@etl.go.jp>
4416
4417 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4418 (ccl_driver): New local variable `extra_bytes'.
4419
4420 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4421
52283633
SM
4422 * coding.c (setup_coding_system):
4423 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
4424 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4425
0c80628a
KH
44262000-12-28 Kenichi Handa <handa@etl.go.jp>
4427
4428 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4429 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4430 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4431 (decode_composition_emacs_mule): New function.
4432 (decode_coding_emacs_mule): Decode composition sequence by calling
4433 decode_composition_emacs_mule.
4434 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
4435 (encode_coding_emacs_mule): Changed from macro to function.
4436 If a text contains compositions, encode them correctly.
0c80628a
KH
4437 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4438 that decoding and encoding are required.
4439
3e32cc27
GM
44402000-12-27 Gerd Moellmann <gerd@gnu.org>
4441
5e25feee
GM
4442 * xfaces.c (PT_PER_INCH): New macro.
4443 (xlfd_point_size): Compute real point size from font's pixel size.
4444 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4445 instead of 72.
4446
892d8fcd
GM
4447 * .gdbinit: Comment out the line pointing to the Lesstif source
4448 directory.
4449
12c8b416
GM
4450 * window.c (Frecenter): Use displayed_window_lines instead
4451 of window_internal_height.
4452
6061fbf0
GM
4453 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4454 instead of x-toolkit-scroll-bars-p.
4455 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4456
4457 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4458 instead of x-toolkit-scroll-bars-p.
4459 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 4460
3e32cc27
GM
4461 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4462 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
4463 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4464 New variables.
4465 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
4466 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4467 (build_frame_matrix_from_leaf_window): Remove unused code.
4468 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4469 redisplay history.
4470 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4471 (update_window) [GLYPH_DEBUG]: Likewise.
4472 (syms_of_display): Defsubr dump-redisplay-history.
4473
31798cfe
GM
44742000-12-23 Gerd Moellmann <gerd@gnu.org>
4475
f717c2ba
GM
4476 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4477 the end of the prompt. Set echo_after_prompt to the offset
4478 of echoptr in echobuf.
4479
aeb2b8fc
GM
4480 * xdisp.c (init_from_display_pos): Pop until the iterator's
4481 stack is empty; there may be frames for stretch or images
4482 on the stack.
4483
31798cfe
GM
4484 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4485 (save_or_restore_current_matrix): New function for the same
4486 purpose, but more efficient.
4487 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4488
f8156156
EZ
44892000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4490
4491 * xdisp.c (syms_of_xdisp): Fix last change.
4492
bdd6d4e8
GM
44932000-12-23 Gerd Moellmann <gerd@gnu.org>
4494
4495 * xdisp.c (syms_of_xdisp): Doc fix.
4496
4497 * xdisp.c (redisplay_window): Remove label restore_buffers;
4498 use finish_scroll_bars instead to make sure that scroll bars
4499 are redeemed. If we don't do this, flickering can result from
4500 scroll bars being destroyed and recreated.
4501
9436cdf9
JR
45022000-12-22 Jason Rumney <jasonr@gnu.org>
4503
4504 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4505 in the wrong colors when the foreground is not black.
4506 (expose_window): Don't redraw the window that's currently being
4507 updated.
4508
951f9df5
GM
45092000-12-22 Gerd Moellmann <gerd@gnu.org>
4510
856ff7a7
GM
4511 * window.c (size_window): When setting the window's too_small_ok
4512 flag, compare old size with minimum size depending on WIDTH_P,
4513 don't compare with window_min_width.
52283633 4514
951f9df5
GM
4515 * window.c (delete_window): Simplify somewhat.
4516 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4517 freeing window matrices. The flag windows_or_buffers_changed is
4518 set, so the next redisplay will consider all windows; this should
4519 suffice.
4520
886bc933
KH
45212000-12-22 Kenichi Handa <handa@etl.go.jp>
4522
4523 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4524
4525 * ccl.h (struct ccl_program): New member cr_consumed.
4526
4527 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4528 (CCL_READ_CHAR): Handle EOL conversion here.
4529 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4530
177f4e88
GM
45312000-12-21 Gerd Moellmann <gerd@gnu.org>
4532
52283633 4533 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
4534
4535 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4536 otherwise tabs of different size compare equal.
4537
4538 * callint.c (Fcall_interactively): Prevent a compiler warning.
4539
4540 * print.c (print_unwind): Return nil.
4541 (PRINTDECLARE): Initialize all local variables.
4542 (print_preprocess): Add a default case.
4543
8e15274f
GM
4544 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4545
4546 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4547
52283633 4548 * window.c (delete_window, Fsplit_window)
177f4e88
GM
4549 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4550
4551 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4552
4553 * dispnew.c (ensure_frame_matrix): Removed.
4554 (save_frame_matrix, restore_frame_matrix): New functions.
4555 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4556
4557 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4558 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4559
99012074
AI
45602000-12-21 Andrew Innes <andrewi@gnu.org>
4561
4562 * w32term.c (x_update_begin): Regenerate the palette here, rather
4563 than for each window.
4564
4565 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4566 palette is NULL, since this corrupts memory! Also get
4567 display_info reference from frame.
4568
29ef7d2d
JR
45692000-12-21 Jason Rumney <jasonr@gnu.org>
4570
4571 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4572
4573 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4574 to avoid returning without releasing it.
3e27fa1f 4575
3f9d67a6
KH
45762000-12-21 Kenichi Handa <handa@etl.go.jp>
4577
587fc3f9
KH
4578 * keymap.c (push_key_description): Don't convert eight-bit-control
4579 and eight-bit-graphic to multibyte character.
4580
3f9d67a6
KH
4581 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4582 generic character and CODE1 is nil, return the smallest character
4583 in CHARSET.
4584
774ba8c9
DL
45852000-12-20 Dave Love <fx@gnu.org>
4586
4587 * s/osf5-0.h (NSIG): Don't redefine.
4588
88416888
SM
45892000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4590
4591 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4592 excluding menu-bar and tool-bar.
4593 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4594 (menu_item_p): Remove.
4595 (where_is_internal_1): Don't ignore menu-items.
4596
a6426c6f
GM
45972000-12-20 Gerd Moellmann <gerd@gnu.org>
4598
03ff8aab
GM
4599 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4600 into account.
4601
4602 * window.c (make_window): Initialize window's min_hscroll.
4603 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4604 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4605 to zero.
4606 (struct saved_window): New member min_hscroll.
4607 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4608 (Fset_window_configuration): Set window's min_hscroll.
4609 (save_window_save): Save window's min_hscroll.
4610 (compare_window_configurations): Compare min_hscroll values.
4611
4612 * window.h (struct window): New member min_hscroll.
4613
4614 * keyboard.c (echo_prompt): Prevent a compiler warning.
4615
8de4aaf8
GM
4616 * xdisp.c (try_cursor_movement): Fix last change. The real
4617 condition is that PT is at the end of the row, and should
4618 be displayed at the start of the next row.
52283633 4619
3f7e3031
GM
4620 * xdisp.c (try_cursor_movement): If we end on a partially
4621 visible line, end we already decided to scroll, return -1.
4622
a6426c6f
GM
4623 * dispextern.h (ensure_frame_matrix): Add prototype.
4624
4625 * window.c (delete_window, Fsplit_window)
4626 (Fset_window_configuration): Call ensure_frame_matrix.
4627
52283633
SM
4628 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4629 New functions.
a6426c6f
GM
4630 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4631 completed, call fake_current_matrices instead of marking frame
4632 garbaged.
4633
57fa2774
JR
46342000-12-20 Jason Rumney <jasonr@gnu.org>
4635
4636 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4637
d925df90
EZ
46382000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4639
4640 * fns.c (Frequire): Doc fix.
4641
7b93a85b
GM
46422000-12-19 Gerd Moellmann <gerd@gnu.org>
4643
52283633 4644 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 4645
c74e645b
GM
4646 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4647 currently displaying a message.
4648
7b93a85b
GM
4649 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4650 xterm.h.
4651 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4652
90d97e64
AI
46532000-12-18 Andrew Innes <andrewi@gnu.org>
4654
4655 * w32.c (w32_strerror): New function.
4656
4657 * w32.h (w32_strerror): New extern.
4658
4659 * w32fns.c (Fw32_shell_execute): Use it.
4660
91c9e6ce
GM
46612000-12-18 Gerd Moellmann <gerd@gnu.org>
4662
4663 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4664
6f4745e2
EZ
46652000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4666
4667 * msdos.c (IT_set_face): Obey inverse_video.
4668
c9e088ce
KH
46692000-12-18 Kenichi Handa <handa@etl.go.jp>
4670
4671 * dired.c (directory_files_internal): Always return decoded filenames.
4672
c3695f5f
GM
46732000-12-18 Gerd Moellmann <gerd@gnu.org>
4674
52d8e4ff
GM
4675 * xterm.c (x_connection_closed): Prevent being called recursively
4676 because of an error condition in XtCloseDisplay.
52283633 4677
62be9979
GM
4678 * xdisp.c (init_iterator): If noninteractive, and the frame's
4679 face cache is null, make one.
4680
52283633 4681 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 4682
c3695f5f
GM
4683 * process.c (wait_reading_process_input): Check for pending
4684 input when running timers.
4685
78555fbe
EZ
46862000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4687
52283633 4688 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 4689
b2b36264
KH
46902000-12-18 Kenichi Handa <handa@etl.go.jp>
4691
4692 * process.c (read_process_output): Don't run a filter if the code
4693 decoder produces nothing but carryover.
4694
9c543fbf
AI
46952000-12-17 Andrew Innes <andrewi@gnu.org>
4696
4697 * w32.c (sys_rename): Only check errno against EEXIST, and not
4698 EACCES, when determining whether rename failed because the target
4699 exists. This was resulting in indefinite looping on Windows 9x if
4700 the source file was locked by another process.
4701
4702 * w32fns.c (Ffile_system_info): New function.
4703 (syms_of_w32fns): Defsubr it.
4704
10c2b5a8
GM
47052000-12-17 Gerd Moellmann <gerd@gnu.org>
4706
b0228ace
GM
4707 * window.c (coordinates_in_window): Fix computation for
4708 position on vertical line between mode lines.
4709
10c2b5a8
GM
4710 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4711 Don't alter tip_frame or tip_window.
4712 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4713 was deleted.
4714
c844a81a
GM
4715 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4716 Don't alter tip_frame or tip_window.
4717 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4718 was deleted.
4719
6c825f8e
EZ
47202000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4721
4722 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4723 be consistent with the doc string. Reported by NAKAJIMA Mikio
4724 <minakaji@osaka.email.ne.jp>.
4725
af4bb4c8
KH
47262000-12-16 Kenichi Handa <handa@etl.go.jp>
4727
4728 * xfaces.c (Vface_ignored_fonts): New variable.
4729 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4730 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4731
8062e53a
GM
47322000-12-15 Gerd Moellmann <gerd@gnu.org>
4733
e87b8809
GM
4734 * dispnew.c (update_window): Detect pending input every nth line
4735 updated, i.e. do it depending on real work done, and not on the
4736 vpos of the line.
4737
4738 * xterm.c (expose_window): Don't redraw the window that's
4739 currently being updated.
4740
a6768cc5
GM
4741 * window.c (Fset_window_point): Remove test for
4742 cursor_in_non_selected_windows.
4743
4ea7fdca
GM
4744 * lread.c (read1): Recognize end of file after `\\'.
4745
8062e53a
GM
4746 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4747 not unwind_create_frame.
4748
bb7959c1
GM
47492000-12-15 Dave Love <fx@gnu.org>
4750
4751 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4752 bcopy & al.
4753
4754 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4755
ced04c42
KH
47562000-12-15 Kenichi Handa <handa@etl.go.jp>
4757
c5443913
KH
4758 * coding.c (setup_coding_system): Clear all members of the struct
4759 coding_system at first.
bc137305
KH
4760 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4761 argument.
4762 (code_convert_region): Don't override coding->src_multibyte and
4763 coding->dst_multibyte.
c5443913 4764
ced04c42
KH
4765 * fns.c (Fmd5): Docstring improved.
4766
c2d7f289
MB
47672000-12-15 Miles Bader <miles@gnu.org>
4768
4769 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4770 are actually marked as mode-lines; otherwise use
4771 estimate_mode_line_height.
4772
9d7d9263
GM
47732000-12-14 Gerd Moellmann <gerd@gnu.org>
4774
4775 * editfns.c (Fformat): Prevent a buffer overrun when the format
4776 specifies a precision.
4777
7cf0153a
EZ
47782000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4779
4780 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4781 argument is outside the range [2..3].
4782
1de0f662
AI
47832000-12-14 Andrew Innes <andrewi@gnu.org>
4784
4785 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4786 nothing to do. Bind inhibit-quit.
4787 (tip_frame): Make it a Lisp_Object.
4788 (x_create_tip_frame): Set tip_frame after it has been added to
4789 Vframe_list.
4790 (Fx_show_tip): Don't set tip_frame here.
52283633 4791 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
4792 (unwind_create_frame, unwind_create_tip_frame): New functions.
4793 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4794 while a frame is only partially constructed.
4795
4796 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4797 (x_free_frame_resources): New function.
4798 (x_destroy_window): Use it.
4799
02387dcc
GM
48002000-12-14 Gerd Moellmann <gerd@gnu.org>
4801
4802 * xfns.c (Fx_backspace_delete_keys_p): New function.
4803 (syms_of_xfns): Defsubr it.
4804
4805 * config.in (HAVE_XKBGETKEYBOARD): Add.
4806
0544ef49
KH
48072000-12-14 Kenichi Handa <handa@etl.go.jp>
4808
98d62747
KH
4809 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4810 Always store string in multibyte representation in echobuf.
4811 (echo_char): Always store string in multibyte representation in
4812 echobuf.
4813 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4814 (read_key_sequence): Adjusted for the change of echo_prompt.
4815
a20193cd
KH
4816 * fns.c (Fmd5): Docstring improved.
4817
191b83b6
KH
4818 * lisp.h (detect_coding_system): Prototype adjusted.
4819
0544ef49
KH
4820 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4821 (detect_coding_emacs_mule, detect_coding_iso2022,)
4822 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
4823 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4824 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
4825 (detect_coding_mask, detect_coding_system): New argument
4826 MULTIBYTEP. Callers changed.
1da1bb05
KH
4827 (decode_coding_string): Set coding->src_multibyte and
4828 coding->dst_multibyte before calling detect_coding and detect_eol.
4829 Update them after some coding system is detected.
52283633 4830
d5b3eb1b
SM
48312000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4832
4833 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4834
4835 * keyboard.c (menu_bar_items, tool_bar_items):
4836 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4837
f7f8bb69
GM
48382000-12-13 Gerd Moellmann <gerd@gnu.org>
4839
52283633 4840 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
4841 New variables.
4842 (unwind_create_frame, unwind_create_tip_frame): New functions.
4843 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4844 while a frame is only partially constructed.
4845
4846 * xterm.h (x_free_frame_resources): Declare.
4847
4848 * xterm.c (x_free_frame_resources): New function.
4849 (x_destroy_window): Use it.
4850
e10da507
GM
4851 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4852 don't interrupt the update for pending input initially, i.e.
4853 update at least some lines.
4854
4855 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 4856
d5b3eb1b 4857 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
4858
4859 * xfns.c (gray_bitmap_bits): Declare `char *'.
4860
90aa2856
GM
48612000-12-12 Gerd Moellmann <gerd@gnu.org>
4862
4863 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4864 lines start with a relief line.
4865
a308c9cd
DL
48662000-12-12 Dave Love <fx@gnu.org>
4867
4868 * window.c (Fdisplay_buffer): Doc fix.
4869 (Fwindow_list): Remove unused var.
4870
4871 * buffer.h (mmap_set_vars): Declare.
4872
4873 * window.h (Fset_window_point): Declare.
4874
d575011f
EZ
48752000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4876
bf6282d2 4877 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
4878 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4879 variable `area'. When looking for a row under (X,Y), give up if some
4880 of the previous rows is not enabled.
d575011f 4881
ecf4d726
GM
48822000-12-12 Gerd Moellmann <gerd@gnu.org>
4883
2ebf6139
GM
4884 * window.c (Fset_window_point): If displaying cursors in windows
4885 other than the selected window, make sure redisplay updates
4886 other windows to show the new value of point in the window.
4887
4888 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4889
bfdb75ee
GM
4890 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4891 the buffer is the sole visible buffer when in the mini-buffer.
4892
52283633 4893 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
4894 Bind `inhibit-read-only' to t.
4895 (unwind_with_echo_area_buffer): Use AREF.
4896
c0006262
GM
4897 * xfns.c (Fx_hide_tip): Simplified.
4898
52283633
SM
4899 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4900 instead of `1'.
e9a59cad 4901
ecf4d726
GM
4902 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4903
e5959a9a
GM
49042000-12-11 Gerd Moellmann <gerd@gnu.org>
4905
a3642e49 4906 * xfns.c (Fx_hide_tip): Fix last change.
52283633 4907
44b5a125
GM
4908 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4909 nothing to do. Bind inhibit-quit.
4910 (tip_frame): Make it a Lisp_Object.
4911 (x_create_tip_frame): Set tip_frame after it has been added to
4912 Vframe_list.
4913 (Fx_show_tip): Don't set tip_frame here.
4914
4915 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4916
4917 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4918 Lisp_Object.
4919
4920 * dispextern.h: Change external declaration of tip_frame.
4921
d990421f
GM
4922 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4923 return an empty string.
4924
4db87380
GM
4925 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4926 of the window's update_mode_line flag, since the former is set by
4927 force-mode-line-update, not the latter. This makes
4928 column-number-mode slightly faster.
52283633 4929
e5959a9a
GM
4930 * xdisp.c (try_window_id) <all changes above window start>:
4931 Set the cursor.
4932
169fe44e
GM
49332000-12-11 Paul Eggert <eggert@twinsun.com>
4934
4935 * config.in (HAVE_FTELLO): Remove.
4936 (HAVE_FSEEKO): Add.
4937 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4938 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4939 HAVE_FTELLO.
4940 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4941 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 4942
59ec59ae
MB
49432000-12-11 Miles Bader <miles@gnu.org>
4944
4945 * window.c (displayed_window_lines): Don't round up when
4946 converting empty space at bottom to lines.
ff904dd6
MB
4947 Handle non-newline-terminated final lines properly.
4948 (Fwindow_text_height): New function (used to be in lisp).
4949 (syms_of_window): Initialize it.
59ec59ae 4950
42ebfa31
SM
49512000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4952
4953 * syntax.c (scan_lists): Check that the right quote char has the
4954 right Sstring syntax when jumping over strings.
4955 (init_syntax_once): Use Smax rather than 13.
4956
5cdb3cf3
MB
49572000-12-09 Miles Bader <miles@gnu.org>
4958
4959 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4960 with PARTIALLY, inverting the sense.
4961 (window_scroll_pixel_based): Scroll partially visible lines into
4962 place if we hit the beginning or end of the buffer.
a12167c5
MB
4963 (displayed_window_lines): Don't include partially visible lines.
4964 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 4965
842b2a94
GM
49662000-12-08 Gerd Moellmann <gerd@gnu.org>
4967
4968 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4969
4970 * tparam.c (tparam1): Change the way buffers are reallocated to be
4971 portable and less obfuscated.
4972
4973 * termcap.c (tgetent): Change the way buffers are reallocated to
4974 be portable and less obfuscated.
4975
4976 * macros.c (store_kbd_macro_char): Change the way buffers are
4977 reallocated to be portable and less obfuscated.
4978
4979 * lread.c (read1): Change the way buffers are reallocated to be
4980 portable and less obfuscated.
4981
4982 * doc.c (Fsubstitute_command_keys): Change the way buffers
4983 are reallocated so that it is portable.
4984
137cad7c
EZ
49852000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4986
4987 * dosfns.c (Ffile_system_info): New function.
4988 (syms_of_dosfns): Defsubr it.
4989
5c7f629c
SM
49902000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4991
4992 * alloc.c (gc_sweep): Add comment.
4993
959e647d
GM
49942000-12-07 Gerd Moellmann <gerd@gnu.org>
4995
52283633
SM
4996 * sound.c (vox_configure): Change order of ioctls.
4997 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
4998 Ignore errors when changing volume.
4999 (vox_close): Don't reset the device.
5000
926b7e5e
GM
5001 * process.c (read_process_output): Make sure the process marker's
5002 position is valid when the process buffer is changed in
5003 after-change functions. W3 does that.
52283633 5004
959e647d
GM
5005 * xfns.c (x_free_gcs): New function.
5006
5007 * xterm.h (x_free_gcs): Add prototype.
5008
5009 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5010 freeing GCs here.
5011
5012 * xterm.c (x_destroy_window): Call x_free_gcs so that
5013 resources of non-toolkit X windows will be freed.
5014
478ea067
AI
50152000-12-07 Andrew Innes <andrewi@gnu.org>
5016
5017 * w32fns.c (xlfd_charset_of_font): Fix last change.
5018
fbee3231
DL
50192000-12-06 Dave Love <fx@gnu.org>
5020
67292061
DL
5021 * md5.h (__P): Don't define -- it comes from config.h.
5022
fbee3231
DL
5023 * strftime.c: Change some #if foo to #ifdef foo.
5024
4ee87dbb
AI
50252000-12-06 Andrew Innes <andrewi@gnu.org>
5026
5027 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5028
52283633 5029 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 5030 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 5031 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 5032
9765b4a4
GM
50332000-12-06 Gerd Moellmann <gerd@gnu.org>
5034
d285b373
GM
5035 * alloc.c (gc_sweep): Prevent symbols read during loadup
5036 from being freed.
5037
384333ee
GM
5038 * xdisp.c (underlying_face_id): New function.
5039 (handle_face_prop, face_before_or_after_it_pos): Use it
5040 to determine the face ``under'' a string. Let strings inherit
5041 the face of the buffer under them.
5042
5043 * xfaces.c (face_at_string_position): Update function comment.
52283633 5044
d4b72d58
GM
5045 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5046 matrix if the window's left position has changed; we need to
5047 redraw it in this case.
5048
5049 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5050
e1d05387
GM
5051 * window.c (coordinates_in_window): Check mouse on mode-line or
5052 header-line first.
5053
eb1b0c74
GM
5054 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5055 advertized by the function documentation.
5056
d94d636f
GM
5057 * window.c (syms_of_window): Doc fix.
5058
3887b449
GM
5059 * sound.c (vox_configure): Set volume for left and right channel.
5060 (sound_cleanup): Return nil.
5061
efc8f57a
GM
5062 * xdisp.c (move_it_by_lines): Fix paren typo.
5063
9765b4a4
GM
5064 * xterm.c (x_load_font): Don't use the font's max_bounds for
5065 computing the height of the font. If max_bounds' ascent or
5066 descent are greater than the font's ascent or descent, this means
5067 glyphs overlap, which should be handled now by redisplay.
5068
6529ed87
GM
5069 * window.c (Veven_window_heights): New variable.
5070 (syms_of_window): DEFVAR_LISP it.
5071 (Fdisplay_buffer): Check Veven_window_heights before evening the
5072 window heights.
52283633 5073
0eb2ecde
MB
50742000-12-06 Miles Bader <miles@gnu.org>
5075
5076 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5077 update `default-frame-alist' instead of setting no frame parameters.
5078
03d7a167
KH
50792000-12-06 Kenichi Handa <handa@etl.go.jp>
5080
5081 * composite.c (update_compositions): Fix typo (use the correct
5082 variable).
5083
5f8803c2
JR
50842000-12-05 Jason Rumney <jasonr@gnu.org>
5085
5086 * md5.h: Remove underscores from function declarations.
5087 (__attribute__, __alignof__) [!__GNUC__]: Define.
5088
5089 * md5.c: Delay include of md5.h until after namespace cleaning.
5090
c28a075b
JR
5091 * makefile.w32-in (fns.o): Depend on md5.h
5092 (md5.o): New target.
5093 (sunfns.o): Remove.
5094
5095 * makefile.nt: Likewise.
5096
ff3c7056
JR
50972000-12-05 Jason Rumney <jasonr@altavista.net>
5098
5099 * w32term.c (expose_area): Complete last change.
5100
0c21eeeb
KR
51012000-12-05 Ken Raeburn <raeburn@gnu.org>
5102
5103 * minibuf.c: Include intervals.h.
5104
f201d732
JR
51052000-12-05 Jason Rumney <jasonr@gnu.org>
5106
5107 * w32term.c (x_produce_glyphs): If a font for a component of
5108 a composition is not found, use 1 pixel dot ascent and 0 dot
5109 descent value to avoid displaying terribly tall empty boxes.
5110 (expose_area): Pass x-coordinate relative to the exposed
5111 area to x_draw_glyphs instead of a window-relative coordinate.
5112
21999ab9
GM
51132000-12-05 Gerd Moellmann <gerd@gnu.org>
5114
4d2036e4
GM
5115 * xdisp.c (next_element_from_ellipsis): Save face before selective
5116 display in saved_face_id, and set face_before_selective_p.
5117 (reseat_1): Reset face_before_selective_p.
5118 (append_space, extend_face_to_end_of_line): If iterator's
5119 face_before_selective_p is set, use the face from saved_face_id.
5120 (extend_face_to_end_of_line): For tty frames, make sure to
5121 use the right face id when producing spaces at the end of
5122 the line.
5123
5124 * dispextern.h (struct it): Add face_before_selective_p.
5125
52be17cc
GM
5126 * keyboard.c (record_char): Don't record identical help-echo
5127 events in recent_keys.
5128
8a4f36cc
GM
5129 * xterm.c [USE_X_TOOLKIT]: Close the display.
5130 (xim_close_dpy): Handle case that the display has been closed.
5131
57d6e381
GM
5132 * xterm.c (x_destroy_window): Reset the frame's X window after
5133 destroying it.
5134
21999ab9
GM
5135 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5136 variable window_width.
5137 (line_draw_cost): Fix code skipping over spaces at the end of the
5138 line when must_write_spaces is not set.
5139 (scrolling_window): Fix code inserting runs in list of all runs.
5140
91372bb7
KH
51412000-12-05 Kenichi Handa <handa@etl.go.jp>
5142
5143 * coding.c (setup_coding_system): Be sure to initialize
5144 coding->category_idx.
5145
6c083b4c
GM
51462000-12-04 Gerd Moellmann <gerd@gnu.org>
5147
0c68ce6f 5148 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 5149
6452929e
GM
5150 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5151 area to x_draw_glyphs instead of a window-relative coordinate.
5152
d7f31e22
GM
5153 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5154 error in the message.
5155
ae18aa3b
GM
5156 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5157 timer after having read a key. It's not good for code reading
5158 several keys in a loop, like an input method.
5159
caa15ef7
GM
5160 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5161 record undo information for format-decode.
5162
5163 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5164 current buffer is read-only, not if it isn't.
5165
6c083b4c
GM
5166 * keyboard.c (record_char): Record `help-echo' input events
5167 in recent_keys only if they display some help. Don't record
5168 `help-echo' events as macro char.
5169
caa15ef7
GM
51702000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5171
5172 * editfns.c (save_excursion_restore): Don't move point
5173 in another window if it is showing the wrong buffer.
5174 Avoid the call to Fwindow_live_p, for speed.
5175
5a13529b
KH
51762000-12-04 Kenichi Handa <handa@etl.go.jp>
5177
e225faa7
KH
5178 * xfaces.c (struct font_name): New member registry_priority.
5179 (split_font_name): Initialize the above member to zero.
5180 (concat_font_list): New function.
5181 (font_list): Include fonts of all alternative registries.
5182 (FONT_POINT_SIZE_QUANTUM): New macro.
5183 (better_font_p): Ignore point size difference less than
5184 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5185
e89648b4
KH
5186 * xterm.c (x_produce_glyphs): If a font for a component of
5187 a composition is not found, use 1 pixel dot ascent and 0 dot
5188 descent value to avoid displaying terribly tall empty boxes.
5189
5a13529b
KH
5190 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5191
d7935eb6
KR
51922000-12-03 Ken Raeburn <raeburn@gnu.org>
5193
5194 * coding.h (code_convert_string1): Declare.
5195
5196 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5197
52283633 5198 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 5199
0dd5e255
JR
52002000-12-02 Jason Rumney <jasonr@gnu.org>
5201
5202 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5203 correctly for single byte character case.
5204 (w32_per_char_metric): Do not try to make any assumptions about
5205 the metrics of BDF fonts.
250cfece 5206 (x_estimate_mode_line_height): If `mode-line' face
52283633 5207 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
5208 (note_mouse_highlight): Change the cursor shape on the vertical
5209 border between windows [not enabled].
5210
5211 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5212
5213 * w32fns.c (Fx_create_frame): Reintroduce the call to
5214 face-set-after-frame-defaults.
5215 (Vx_window_horizontal_drag_shape): New variable.
5216 (syms_of_xfns): DEFVAR_LISP it.
5217 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5218 enabled].
0dd5e255 5219
b5d8d2ca
GM
52202000-12-02 Simon Josefsson <simon@josefsson.org>
5221
5222 * fns.c (Fmd5): Use a different logic to decide the coding system
5223 to use.
5224
5225 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5226
fbb87147
EZ
52272000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5228
52283633 5229 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 5230
447e9da0
GM
52312000-12-01 Gerd Moellmann <gerd@gnu.org>
5232
7708ced0
GM
5233 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5234 height for YNegative.
5235 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5236 height; also see comment there.
5237
447e9da0
GM
5238 * window.c (coordinates_in_window): Handle computations for
5239 positions on the vertical bar and fringes differently for
5240 window-system frames. Consider some pixels near the vertical bar
5241 as on the bar if the frame doesn't have vertical scroll bars.
5242 Associate positions between mode or header lines with the
5243 right window, the left one.
5244
86d1db20
JR
52452000-12-01 Jason Rumney <jasonr@gnu.org>
5246
5247 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5248
5249 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5250 invalid frame.
5251
a1d58e5b
GM
52522000-12-01 Gerd Moellmann <gerd@gnu.org>
5253
52283633 5254 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
5255 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5256 (save_window_save, Fset_window_configuration): Save/restore
5257 window's orig_top and orig_height.
5258
89c609af
JR
52592000-12-01 Jason Rumney <jasonr@gnu.org>
5260
4d177746 5261 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 5262
89c609af
JR
5263 * w32fns.c (x_set_cursor_color): Fix last change.
5264
eccc05db
GM
52652000-11-30 Gerd Moellmann <gerd@gnu.org>
5266
31b6671b
GM
5267 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5268 sure that the next redisplay displays the minibuffer, so that
5269 the cursor will be replaced with what the minibuffer wants.
5270
eccc05db
GM
5271 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5272 #ifndef instead of using #if.
5273 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5274 USE_TOOLKIT_SCROLL_BARS is defined.
5275
162de750
JR
52762000-11-30 Jason Rumney <jasonr@gnu.org>
5277
5278 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5279 x_display_cursor.
5280
693c4692
GM
52812000-11-30 Gerd Moellmann <gerd@gnu.org>
5282
5283 * fns.c (Fmd5): Doc fix.
5284
b5d8d2ca 52852000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
5286
5287 * fns.c (Fmd5): New function.
5288 (syms_of_fns): Defsubr md5.
5289
5290 * Makefile.in (obj): Add md5.o
5291
b02cd40b
GM
52922000-11-30 Gerd Moellmann <gerd@gnu.org>
5293
edfb795e
GM
5294 * md5.h, md5.c: New files, taken from glibc.
5295
df3aedcf
GM
5296 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5297
b02cd40b 5298 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 5299 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 5300
8b5176cd
SM
53012000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5302
5303 * eval.c (Frun_hooks): Allow 0 arguments.
5304
346598f1
GM
53052000-11-29 Gerd Moellmann <gerd@gnu.org>
5306
f9396e03
GM
5307 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5308 is over the menu bar widget, say it's not on the frame.
5309
4a967a9b
GM
5310 * xfns.c (Fx_create_frame): Reintroduce the call to
5311 face-set-after-frame-defaults.
5312
346598f1
GM
5313 * eval.c (Fsignal): Reset handling_signal.
5314
222456a1
JR
53152000-11-28 Jason Rumney <jasonr@gnu.org>
5316
5317 * w32menu.c (add_menu_item): Reset menu item text when changing
5318 type to radio button.
5319
8049ddc0
GM
53202000-11-28 Gerd Moellmann <gerd@gnu.org>
5321
346598f1 5322 * xselect.c: Update copyright.
f4f4ee4d 5323
bebe4a2c
GM
5324 * window.c (coordinates_in_window): If on a mode or header line,
5325 but sufficiently close to its start, return ``on vertical
5326 border''. This gives us a way to drag windows horizontally when
5327 using toolkit scroll bars.
5328
5329 * xterm.c (note_mouse_highlight): Change the cursor shape
5330 on the vertical border between windows.
5331
5332 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5333
5334 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5335 (syms_of_xfns): DEFVAR_LISP it.
5336 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5337
8d2c2642
GM
5338 * textprop.c (text_read_only): New function.
5339 (verify_interval_modification): Use it instead of signaling
5340 `text-read-only'. This makes it easier to catch this error
52283633 5341 with a breakpoint.:
8d2c2642 5342
52283633 5343 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
5344 not end of line, which includes CR.
5345
5a2bae6c
KH
53462000-11-28 Kenichi Handa <handa@etl.go.jp>
5347
5348 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5349 include no-conversion.
5350
ae31f84d
JR
53512000-11-27 Jason Rumney <jasonr@gnu.org>
5352
5353 * w32fns.c (w32_load_system_font): Always mark font as double byte
5354 if codepage is unicode.
5355
67f1cf4c
GM
53562000-11-27 Gerd Moellmann <gerd@gnu.org>
5357
4a74d071 5358 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 5359 just consume it to avoid unintended skipping over invisible text below.
4a74d071 5360
902ae620
GM
5361 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5362 `vertical-line', `mode-line' and `header-line' events.
5363
5364 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
5365 of a character, a TAB for instance. This is easier than to set
5366 up the iterator exactly, and it's not a frequent case, so the
5367 additional effort wouldn't really pay off.
5368
c1e279c2
AC
53692000-11-26 Andrew Choi <akochoi@i-cable.com>
5370
67f1cf4c 5371 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
5372 init_window_once.
5373
a609568a
JR
53742000-11-25 Jason Rumney <jasonr@gnu.org>
5375
52283633
SM
5376 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5377 Args to window_from_coordinates should be pixel coordinates.
48b21762 5378
a609568a
JR
5379 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5380 redisplay handles them properly.
5381
a658d039
MB
53822000-11-25 Miles Bader <miles@gnu.org>
5383
5384 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5385
d3416cca
JR
53862000-11-24 Jason Rumney <jasonr@gnu.org>
5387
5388 * w32.c (init_environment): Set LANG environment variable based on
5389 locale settings, if not set.
5390
5391 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5392 making tool bar smaller. When clearing the frame, also
5393 clear current matrices. Clear frame when tool bar disappears.
5394 Don't use more lines for the tool-bar than is available.
5395 (x_change_window_heights): New function.
5396
ba193890
GM
53972000-11-24 Gerd Moellmann <gerd@gnu.org>
5398
2be8f184
GM
5399 * xdisp.c (init_from_display_pos): If POS says we're already after
5400 an overlay string ending at POS, make sure to pop the iterator
5401 because it will be in front of that overlay string. When POS is
5402 ZV, we've thereby also ``processed'' overlay strings at ZV.
5403
ba193890
GM
5404 * xfaces.c (lface_from_face_name): Function comment fix.
5405
1862a24e
MB
54062000-11-24 Miles Bader <miles@gnu.org>
5407
5408 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5409 apply `mode-line-inverse-video' -- zero means force display using
5410 the default face, non-zero means display using the specialized face.
5411 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5412
f07fa1b8
KH
54132000-11-23 Kenichi Handa <handa@etl.go.jp>
5414
5415 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5416 hard coded `4'.
5417
2bcdf662
EZ
54182000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5419
5420 * coding.c (decode_coding_emacs_mule): Fix the case of
5421 CODING_EOL_LF, which used uninitialized value of c.
5422
ba8299ff
SM
54232000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5424
5425 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5426
f4117c4d
GM
54272000-11-22 Gerd Moellmann <gerd@gnu.org>
5428
03e757c1
GM
5429 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5430 buffer object.
5431
f4117c4d
GM
5432 * frame.h (struct frame): Replace desired_tool_bar_items,
5433 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 5434 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
5435
5436 * frame.c (make_frame): Change initialization of tool bar
5437 items accordingly.
5438
5439 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 5440 Change references to members deleted from struct frame to use the
f4117c4d
GM
5441 new ones.
5442
5443 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 5444 references to members deleted from struct frame to use the new ones.
f4117c4d 5445
52283633 5446 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
5447
5448 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5449
5450 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 5451 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
5452 from struct frame to use the new ones.
5453
f8e2f3f2
MB
54542000-11-23 Miles Bader <miles@gnu.org>
5455
5456 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5457 the face's inverse-video attribute, rather than overriding it.
5458
60e8e0a5
GM
54592000-11-22 Gerd Moellmann <gerd@gnu.org>
5460
5461 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5462 making tool bar smaller.
5463
92dd1b29
DL
54642000-11-22 Dave Love <fx@gnu.org>
5465
5466 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5467
e672fdce
MB
54682000-11-22 Miles Bader <miles@gnu.org>
5469
3a17d6cc
MB
5470 * keyboard.c (Vminibuffer_message_timeout): New variable.
5471 (command_loop_1): Use it to determine message timeout.
5472 (syms_of_keyboard): Initialize it.
5473
60e8e0a5 5474 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 5475
e9655d81
KH
54762000-11-22 Kenichi Handa <handa@etl.go.jp>
5477
5478 * sysdep.c: Move the code for declaring h_errno after #include
5479 <netdb.h>.
5480
77270fac
GM
54812000-11-21 Gerd Moellmann <gerd@gnu.org>
5482
cd913aae
GM
5483 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5484 the menu bar when the tooltip is unmapped.
5485
77270fac
GM
5486 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5487 sole visible buffer when we're currently in the mini-buffer, and
5488 give up if so.
52283633 5489
556635d6
JR
54902000-11-21 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5493 put on the clipboard.
5494 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5495 copy of what Emacs last put there. If they are the same, do not
52283633 5496 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 5497
5b7bde64
MB
54982000-11-22 Miles Bader <miles@gnu.org>
5499
5500 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5501 (syms_of_minibuf): Initialize it.
5502 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5503 to prompt, don't make read-only.
5504
ff23e1dd
GM
55052000-11-21 Gerd Moellmann <gerd@gnu.org>
5506
52283633
SM
5507 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5508 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 5509
7aaf4388
GM
5510 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5511
f5f47add 5512 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 5513
ff23e1dd
GM
5514 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5515
37c35586
KH
55162000-11-21 Kenichi Handa <handa@etl.go.jp>
5517
5518 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5519 ... #endif scope.
5520
ff9ab414
GM
55212000-11-20 Gerd Moellmann <gerd@gnu.org>
5522
52283633 5523 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
5524 screen supports it.
5525
29a01b72
GM
5526 * s/gnu-linux.h: Don't use `#cpu'.
5527
09dfdf85
GM
5528 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5529 not defined in mman.h.
5530
52283633 5531 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
5532 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5533 and store an index in the XClientMessageEvent. Storing a
5534 Lisp_Object or pointer can fail on a 64 bit system, since X only
5535 transfers 32 bits.
52283633
SM
5536 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5537
81459ac9
DL
55382000-11-20 Dave Love <fx@gnu.org>
5539
5540 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5541
56c13ae6
GM
55422000-11-20 Gerd Moellmann <gerd@gnu.org>
5543
5544 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5545
495a6df3
KH
55462000-11-20 Kenichi Handa <handa@etl.go.jp>
5547
2bcf3714
KH
5548 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5549 by WIDTH.
5550
495a6df3
KH
5551 * alloc.c (make_string): Fix previous change. Be sure to make
5552 unibyte string correctly.
5553
6d950f4c
GM
55542000-11-19 Gerd Moellmann <gerd@gnu.org>
5555
39b39373
GM
5556 * window.c (Fwindow_list): Change parameter list to be XEmacs
5557 compatible.
5558 (window_list_1): New function.
5559 (window_loop): Use it instead of Fwindow_list.
5560
b95b34e5
GM
5561 * sysdep.c (emacs_ospeed): New variable.
5562 (toplevel): Don't declare ospeed extern.
5563 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5564
5565 * termcap.c (ospeed): Remove.
5566 (tputs) [!emacs]: Remove unused code.
5567 (tgetent): Avoid a compiler warning.
5568
e83dc917
GM
5569 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5570 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 5571 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
5572
5573 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5574 removed.
5575 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5576 Take the X display as additional argument.
5577 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5578 `Widget' is a pointer type that's not easily stored in Lisp_Object
5579 form in a portable way.
52283633 5580
6d950f4c
GM
5581 * dispnew.c (update_text_area): Fix last change.
5582
e47306e6
GM
55832000-11-18 Gerd Moellmann <gerd@gnu.org>
5584
fb3cd89b
GM
5585 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5586
5587 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5588 clear current matrices.
5589
edaa9aed
GM
5590 * buffer.c (mmap_enlarge): Don't print a message on stderr
5591 if mapping new memory at the end of the existing region fails.
5592
e47306e6
GM
5593 * dispnew.c (update_text_area): Don't skip over equal glyphs
5594 when the last current glyph overlaps the glyph to its right.
5595
509633e3
MB
55962000-11-18 Miles Bader <miles@gnu.org>
5597
5598 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5599 lines that *end* with "..." too (that's the most common case!).
5600
d392e9c5
GM
56012000-11-18 Gerd Moellmann <gerd@gnu.org>
5602
67988445
GM
5603 * xdisp.c (resize_mini_window): Temporarily change to the
5604 mini-window's buffer if necessary.
1bfdbe43 5605
d392e9c5
GM
5606 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5607 the tooltip obscures less text under it.
5608
56092000-11-17 Gerd Moellmann <gerd@gnu.org>
5610
5611 * puresize.h (BASE_PURESIZE): Increase to 700000.
5612
92bb977f
JR
56132000-11-18 Jason Rumney <jasonr@gnu.org>
5614
5615 * w32term.c (w32_draw_bitmap): Use face to set colors.
5616
26fbf20b
DL
56172000-11-17 Dave Love <fx@gnu.org>
5618
5619 * lread.c (Fload): Fix #ifdef for pcc.
5620
100b593b
GM
56212000-11-17 Gerd Moellmann <gerd@gnu.org>
5622
5623 * xdisp.c (pos_visible_p): Compute the default character height
5624 differently.
5625
a288d0d1
GM
56262000-11-16 Gerd Moellmann <gerd@gnu.org>
5627
cac94de6 5628 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 5629 knowing the line's height; use the default font's height in that case.
cac94de6 5630
a288d0d1
GM
5631 * xfaces.c (weight_table): Add `demi' with the same meaning as
5632 `demibold'.
5633
981fb6f6
KH
56342000-11-16 Kenichi Handa <handa@etl.go.jp>
5635
2cca872d 5636 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
5637 (clear_glyph_row): Delete local static variable null_row.
5638
e5fa381b
JR
56392000-11-15 Jason Rumney <jasonr@gnu.org>
5640
5641 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5642 (w32_alloc_lighter_color): Use new brightness calculations from
5643 xterm.c. Scale delta to be in the range expected by W32.
5644 (w32_draw_relief_rect): Use frame relief colors.
5645
8e42f043
GM
56462000-11-15 Gerd Moellmann <gerd@gnu.org>
5647
6d133d1f
GM
5648 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5649 (Qinhibit_default_face_x_resources): New variable.
5650 (syms_of_frame): Initialize it.
5651 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5652
5653 * xdisp.c (pos_visible_p): Improve function comment.
5654
5655 * lisp.h (BINDING_STACK_SIZE): New macro.
5656
8e42f043
GM
5657 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5658 reading the directory if readdir returns null and errno is EAGAIN
5659 or EINTR.
5660
e8c87124
SM
56612000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5662
5663 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5664 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5665 Set amount_to_scroll to max of dx and scroll_step so that
5666 scroll-conservatively doesn't defeat scroll-step>1.
5667 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5668 scroll-conservatively for line-at-a-time scrolling.
5669
5f0c971d
GM
56702000-11-14 Gerd Moellmann <gerd@gnu.org>
5671
5672 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5673 extra argument.
5674
5675 * xdisp.c (current_mode_line_height, current_header_line_height):
5676 New variables.
5677 (init_xdisp): Initialize them.
5678 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5679 and use exact mode line heights if it is set.
5680
5681 * lisp.h (pos_visible_p): Change prototype.
5682
5683 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5684 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5685 and current_header_line_height first.
52283633
SM
5686 (current_mode_line_height, current_header_line_height):
5687 Declare extern.
5f0c971d 5688
d7361edf
MB
56892000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5690
5691 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5692 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5693 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5694
ee5e440a
MB
56952000-11-14 Miles Bader <miles@gnu.org>
5696
5697 * xterm.c (x_alloc_lighter_color): Include an additive component
5698 too for dark colors, because FACTOR isn't enough.
5699 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5700 New macros.
5701
5ca020fc
GM
57022000-11-13 Gerd Moellmann <gerd@gnu.org>
5703
5704 * keyboard.c (show_help_echo): Call message3_nolog with number of
5705 bytes in the help string as 2nd parameter, instead of the number
5706 of characters.
5707
9d348294
MB
57082000-11-13 Miles Bader <miles@gnu.org>
5709
5710 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5711 (Fload): Use new openp return protocol.
5712 Don't try to use Vload_source_file_function to load .elc files.
5713 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5714 openp return protocol.
5715 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5716
1729bb9a
KH
57172000-11-11 Kenichi Handa <handa@etl.go.jp>
5718
4e677396
KH
5719 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5720
5721 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5722 Defined these macros.
5723 (NLIST_STRUCT): Avoid re-defining it.
5724
1729bb9a
KH
5725 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5726 -I/usr/contrib/X11R6/include.
5727 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5728
a82fe213
JR
57292000-11-10 Jason Rumney <jasonr@gnu.org>
5730
5731 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5732
5733 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5734 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5735
5736 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5737 (Qw32_charset_vietnamese): New symbol.
5738 (xlfd_charset_of_font): New function.
5739 (w32_load_system_font): Use it.
5740 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5741 when Vw32_charset_info_alist is nil to ensure default face always
5742 has font. Use Fcar and Fcdr for safety.
5743 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5744 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5745 pseudo-codepages for special cases.
5746 (w32_to_x_font): New parameter to allow charset portion to be
5747 specified where there is many to one mapping. Callers changed.
5748 (w32_list_fonts): Avoid listing fonts that won't display.
5749
52d89894
GM
57502000-11-10 Gerd Moellmann <gerd@gnu.org>
5751
5752 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5753 (font_list_1): Renamed from font_list.
5754 (font_list): New function, trying alternative registries from
5755 Vface_alternative_font_registry_alist.
5756 (Finternal_set_alternative_font_registry_alist): New function.
5757 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
5758 Vface_alternative_font_registry_alist.
5759 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 5760
651cd3da
KR
57612000-11-09 Ken Raeburn <raeburn@gnu.org>
5762
5763 * lisp.h (Flooking_at): Declare.
5764
388ac098
GM
57652000-11-09 Gerd Moellmann <gerd@gnu.org>
5766
778fbc46 5767 * dired.c (directory_files_internal): Fix a braino.
52283633 5768
388ac098
GM
5769 * dired.c (directory_files_internal): Add missing GCPRO's.
5770 Some cleanup.
5771
ecaedde1
GM
57722000-11-08 Gerd Moellmann <gerd@gnu.org>
5773
f7eb32aa
GM
5774 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5775 (resize_mini_window): Return quickly if Vresize_mini_window is
5776 nil. Don't return if Vmax_mini_window_height is nil.
5777
5778 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5779 (syms_of_xdisp): Initialize them.
5780 (resize_mini_window): Act according to the setting of
5781 Vresize_mini_window.
5782 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5783
ecaedde1
GM
5784 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5785 scroll bar widget after configuring it, so that it will appear at
5786 the right position from the start.
5787 (XTredeem_scroll_bar): Cleaned up.
5788
3747ef2c
KH
57892000-11-08 Kenichi Handa <handa@etl.go.jp>
5790
5791 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 5792 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
5793 division by two.
5794
5795 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5796
03391420
DL
57972000-11-07 Dave Love <fx@gnu.org>
5798
7758f1c1 5799 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
5800
5801 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5802
b5de343d
GM
58032000-11-07 Gerd Moellmann <gerd@gnu.org>
5804
acad3c0b
GM
5805 * window.c (Fset_window_configuration): Don't try to preserve
5806 point in the current buffer, if that buffer is displayed in more
5807 than one window.
5808
b5de343d
GM
5809 * xfaces.c (lookup_named_face): If default face isn't realized,
5810 try to realize it. Return -1 if not successful.
5811 (Fx_list_fonts): Handle case that face cannot be determined.
5812 (Fface_font): Likewise.
5813
cdb1fe49
GM
58142000-11-06 Gerd Moellmann <gerd@gnu.org>
5815
5816 * window.c (displayed_window_lines): Detect partially
5817 visible lines at the bottom correctly.
5818
d3a67486
SM
58192000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5820
5821 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5822 when ensuring we don't do visit in indirect buffer.
5823
ff8dd5d5
KH
58242000-11-06 Kenichi Handa <handa@etl.go.jp>
5825
5826 * composite.h (compose_chars_in_text): Add prototype.
5827
5828 * composite.c (Vcomposition_function_table): New variable.
5829 (Qcomposition_function_table): New variable.
5830 (run_composition_function): Call
5831 Vcompose_chars_after_function with three arguments.
5832 (compose_chars_in_text): New function.
5833 (syms_of_composite): Modified the doc-string of
5834 Vcompose_chars_after_function. Declare composition-function-table
5835 as a lisp variable, and initialize it.
5836
5837 * xfns.c (x_encode_text): Suppress producing escape sequences for
5838 composition.
5839
5840 * xselect.c: Include composite.h.
5841 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5842
d1145f85
AI
58432000-11-05 Andrew Innes <andrewi@gnu.org>
5844
5845 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5846
5847 * sysdep.c (read_input_waiting): Remove extraneous argument to
5848 read_socket_hook.
5849
5850 * w32fns.c (Fx_server_version): Include w32_build_number in the
5851 return list.
5852
5853 * w32heap.c (w32_build_number): New variable.
5854 (cache_system_info): Set it.
5855
5856 * w32heap.h (w32_build_number): Add extern.
5857
5858 * emacs.c (syms_of_emacs): Update docstring for
5859 system-configuration, to reflect the actual usage on MS-Windows.
5860
e85ee976
GM
58612000-10-31 Gerd Moellmann <gerd@gnu.org>
5862
26dcb81b
GM
5863 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5864 process idle timers while waiting for another event.
5865
52283633 5866 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
5867 the default face are colored.
5868
e85ee976
GM
5869 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5870 window height hasn't changed.
5871
01b220b6
JR
58722000-10-31 Jason Rumney <jasonr@gnu.org>
5873
5874 * w32term.c (x_produce_glyphs): Handle composite characters.
5875 (x_draw_glyph_string_foreground)
5876 (x_draw_composite_glyph_string_foreground): Restore old font.
5877
4e6b7204
MB
58782000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5879
5880 * minibuf.c (read_minibuf): Reset the undo history just before
5881 starting the recursive-edit.
5882
d4358b37
GM
58832000-10-30 Gerd Moellmann <gerd@gnu.org>
5884
563f68f1
GM
5885 * xfaces.c (menu_face_change_count): New variable.
5886 (Finternal_set_lisp_face_attribute): Increment it for changes
5887 of the `menu' face.
5888 (realize_basic_faces): Reflect changes in the `menu' faces
5889 in menu bars.
5890
82e274d1
GM
5891 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5892 dy obtained from the iterator's y-position after moving from
5893 scroll_margin_pos to PT; see comment there.
52283633 5894
0dbf9fd2
GM
5895 * xdisp.c (safe_eval_handler): Call add_to_log.
5896
906b3b14
GM
5897 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5898 is not a symbol or string.
5899
d4358b37
GM
5900 * xdisp.c (echo_area_display): Don't perform a display update from
5901 inside redisplay. The update will happen anyway at the end of
5902 redisplay, and it can confuse redisplay (GC messages while
5903 redisplaying, for instance.)
5904
70c825df
SM
59052000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5906
cf9b4b0b
SM
5907 * xrdb.c (x_load_resources): Use the class name in the defaults.
5908
70c825df
SM
5909 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5910 (regex_compile): Catch bogus \(\1\).
5911
a1d34b1e
GM
59122000-10-30 Gerd Moellmann <gerd@gnu.org>
5913
cae71efe
GM
5914 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5915 RGB values.
52283633 5916
35efe0a1
GM
5917 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5918 we have a color cache, check that the cached color equals the
5919 allocated color. If not, clear the color cache.
5920
1d3baf74
GM
5921 * window.c (displayed_window_lines): Change buffers if necessary.
5922 Fix computation of displayed lines.
5923
a1d34b1e
GM
5924 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5925 update_menu_bindings to DEFVAR_BOOL.
5926
70737ea9
KH
59272000-10-30 Kenichi Handa <handa@etl.go.jp>
5928
70c825df 5929 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 5930
fa0cb51d
KH
5931 * puresize.h (BASE_PURESIZE): Increase to 680000.
5932
70737ea9
KH
5933 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5934
0e4c08e8
JR
59352000-10-29 Jason Rumney <jasonr@gnu.org>
5936
5937 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5938
5939 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5940 (w32_cache_char_metrics): Handle possibility that 'x' does not
5941 exist in a BDF font.
5942 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5943
5944 * w32bdf.h (bdffont): Add nchars.
5945
5946 * w32bdf.c (set_bdf_font_info): Set it.
5947 (w32_BDF_TextOut): Swap byte order of double byte characters.
5948 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5949
45b84006
EZ
59502000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5951
5952 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5953 don't override the colors in frame's param_alist, unless they are
5954 unspecified.
5955
5956 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5957 reverse the effect of the highlight flag.
5958
caf9deee
KR
59592000-10-27 Ken Raeburn <raeburn@gnu.org>
5960
5961 * window.h (Fwindow_live_p): Declare.
5962
ae0b9b46
KR
5963 * undo.c (record_delete): Check that last_undo_buffer is really a
5964 buffer before applying XBUFFER to it.
5965
5966 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5967 Faref.
5968
02067692
SM
59692000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5970
5971 * lisp.h (KEYMAPP): New macro.
5972 (get_keymap): Remove.
5973 (get_keymap_1): Rename get_keymap.
5974
5975 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5976
5977 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5978
5979 * xmenu.c (single_submenu): Use KEYMAPP.
5980 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5981 Use KEYMAPP rather than Fkeymapp.
5982
5983 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5984
5985 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5986 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5987 Use KEYMAPP rather than Fkeymapp.
5988 (single_submenu): Use KEYMAPP.
5989 (w32_menu_show, w32_dialog_show): Use TRUE.
5990
5991 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5992
5993 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5994 (Fkeymapp): Use KEYMAPP.
5995 (get_keymap): Rename from get_keymap_1. Remove old def.
5996 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5997 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5998 (Fminor_mode_key_binding): Don't raise an error if the binding
5999 is not a keymap.
6000 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6001 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6002
6003 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6004 Allow Vspecial_event_map to be autoloaded.
6005 (menu_bar_items): Fetch the keymap rather than using keymapp.
6006 (menu_bar_one_keymap): No need to follow func-indirect any more.
6007 (parse_menu_item): get_keymap_1 -> get_keymap.
6008 (tool_bar_items): Fetch the keymap rather than using keymapp.
6009 (read_key_sequence): Use KEYMAPP.
6010
6011 * intervals.c (get_local_map): Use get_keymap rather than following
6012 function-indirections explicitly.
6013
6014 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6015
f9d80af3
JR
60162000-10-27 Jason Rumney <jasonr@gnu.org>
6017
6018 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6019 point, as Windows has oversized fonts.
6020
6021 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6022
a3ba27da
GM
60232000-10-27 Gerd Moellmann <gerd@gnu.org>
6024
6025 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6026 (freehook, reallochook): Handle null pointer arguments.
6027 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6028
aa3b80cc
SM
60292000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6030
6031 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6032 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6033 Giving in to popular pressure to shut up the compiler with casts.
6034
e24e84cc
GM
60352000-10-27 Gerd Moellmann <gerd@gnu.org>
6036
6037 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6038 signed value, and use a default value computed from the font's
6039 maximum descent.
6040
05ea7ef2
MB
60412000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6042
6043 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6044 that specify a negative underline position can still use underlines.
6045
6046 * window.c (Fpos_visible_in_window_p): Make POS default to
6047 WINDOW's point, not the current buffer's point.
6048
0b95284b
DL
60492000-10-26 Dave Love <fx@gnu.org>
6050
6051 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6052 when it's necessary.
6053
6c5b90af
GM
60542000-10-26 Gerd Moellmann <gerd@gnu.org>
6055
8b6d9dc9
GM
6056 * window.c (size_window): Compute size difference from sum of old
6057 child window sizes instead of from parent's size.
6058
6bc92b2e
GM
6059 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6060 Handle obscured lines at the top of the window.
6061
6062 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6063 down after the last error condition check.
6064
6c5b90af
GM
6065 * frame.c (Fdelete_frame): Run delete-frame-hook.
6066
42f92d4d
KH
60672000-10-26 Kenichi Handa <handa@etl.go.jp>
6068
6069 * coding.c (decode_coding): Fix previous change (check also
6070 CODING_MODE_LAST_BLOCK).
6071
d97151cb
SM
60722000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6073
e7efc503
SM
6074 * regex.c: More `unsigned char' -> `re_char' changes.
6075 Also change several `int' into `re_wchar_t'.
6076 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6077 (PUSH_FAILURE_POINTER): Don't cast any more.
6078 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6079 We want GCC to complain, since this piece of code makes
6080 re_match non-reentrant, which *should* be fixed.
6081 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6082 (EXTEND_BUFFER): Use RETALLOC.
6083 (SET_LIST_BIT): Don't cast.
6084 (re_wchar_t): New type.
6085 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6086 that those two functions will always properly return.
6087 (IMMEDIATE_QUIT_CHECK): Cast to void.
6088 (analyse_first): Use recursion rather than an explicit stack.
6089 (re_compile_fastmap): Can't fail anymore.
6090 (re_search_2): Don't check re_compile_fastmap for failure.
6091 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6092 Now also sets the new value (passed in a new argument).
6093 (re_match_2_internal): Use it.
6094 Also, use a new var `reg' of type size_t when looping through regs
6095 rather than reuse the inappropriate `mcnt'.
6096
d97151cb
SM
6097 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6098 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6099 (where_is_internal): Renamed from Fwhere_is_internal.
6100 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6101 (Fwhere_is_internal): New function wrapping where_is_internal.
6102 (where_is_internal_1): Handle the case where we're filling the cache.
6103 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6104
d5789b65
MB
61052000-10-25 Miles Bader <miles@gnu.org>
6106
6107 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6108
4ecda532
GM
61092000-10-25 Gerd Moellmann <gerd@gnu.org>
6110
6111 * window.c (pos_fully_visible_p): Removed.
6112 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6113 if position is visible and/or fully visible.
6114
6115 * lisp.h (pos_visible_p): Add prototype.
6116
6117 * xdisp.c (pos_visible_p): New function.
6118
68c3a137
KH
61192000-10-25 Kenichi Handa <handa@etl.go.jp>
6120
6121 * process.c (send_process): If OBJECT is t, it means that the data
6122 is from C string, but we should encode it. Before calling
6123 setup_raw_text_coding_system, be sure to flush out data by the
6124 previous coding system.
6125
7ae1c032
MB
61262000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6127
ff4dcd4b
MB
6128 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6129 assignment of startpos to prev when startpos == pos.
6130
7ae1c032
MB
6131 * editfns.c (find_field): Set the field stickiness correctly from
6132 overlay fields. Use renamed `text_property_stickiness'.
6133 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 6134 Only check text properties, not overlays.
7ae1c032
MB
6135 * textprop.c (get_char_property_and_overlay): New function.
6136 (Fget_char_property): Use it.
6137 * intervals.h (get_char_property_and_overlay): Add declaration.
6138
49801145
SM
61392000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6140
6141 * keymap.c: Use AREF, ASET and ASIZE macros.
6142 (Fmake_sparse_keymap): Docstring fix.
6143 (synkey): Remove.
6144 (shadow_lookup): Move up.
6145 Handle the case where lookup-key returns an integer.
6146 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6147 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6148 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6149 Simplify/rewrite the keymap-finding code.
6150 Add check for command shadowing, using shadow_lookup.
6151
39e776cd
SM
61522000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6153
6154 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6155 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6156 a symbol.
6157
2488aba5
AI
61582000-10-24 Andrew Innes <andrewi@gnu.org>
6159
6160 * dired.c (directory_files_internal_unwind): New function.
6161 (directory_files_internal): Use it to ensure closedir is called
6162 even if expand-file-name or file-attributes throw, eg. because of
6163 a user interrupt. Also enable immediate_quit while calling
6164 re_search, so that matching can be interrupted as well.
6165
b94fdf61
AI
61662000-10-24 Andrew Innes <andrewi@gnu.org>
6167
6168 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6169 NT-Emacs only.
6170 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6171 so that re_search functions only quit when callers expect them to.
6172
61732000-10-24 Kenichi Handa <handa@etl.go.jp>
6174
6175 * regex.c (regex_compile): Change the way of handling a range from
6176 a char less than 256 to a char not less than 256.
6177
1946f901
GM
61782000-10-24 Gerd Moellmann <gerd@gnu.org>
6179
7ae2f10f
GM
6180 * window.c (size_window): Prevent setting window's width or
6181 height to a negative value (esp. with XSETFASTINT).
6182
5dcab13e
GM
6183 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6184 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6185 (protect_malloc_state) [GC_MALLOC_CHECK &&
6186 GC_PROTECT_MALLOC_STATE]: New function.
6187 (PROTECT_MALLOC_STATE): New macro.
6188 (__malloc_initialize, morecore, _malloc_internal)
6189 (_free_internal) _realloc_internal): Use it to make _heapinfo
6190 read-only outside of gmalloc.
6191
63e1b552
GM
6192 * keymap.c: Update copyright.
6193
1946f901
GM
6194 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6195 a symbol.
6196
4fa09beb
GM
61972000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6198
6199 * filelock.c (unlock_all_files): Use unlock_file to expand each
6200 buffer's file_truename before trying remove its lock file.
6201
23afac01
EZ
62022000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6203
6204 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6205 or CRLF, decode EOLs.
6206
04448b95
KH
62072000-10-24 Kenichi Handa <handa@etl.go.jp>
6208
6209 * window.c (Fdisplay_buffer): Fix doc.
6210
3090a5a5
JR
62112000-10-23 Jason Rumney <jasonr@gnu.org>
6212
6213 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6214 ASCII font of default fontset on Windows.
6215
6216 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6217 xterm.c comment below).
6218
6219 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6220
a83fee2c
GM
62212000-10-23 Gerd Moellmann <gerd@gnu.org>
6222
6223 * xterm.c (x_connection_closed): Reset handling_signal.
6224
52283633 6225 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 6226
6ffdb539
MB
62272000-10-23 Miles Bader <miles@gnu.org>
6228
6229 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6230 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6231 maintain old behavior.
6232 * minibuf.c (Fminibuffer_complete): Likewise.
6233
7f1c969b
MB
62342000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6235
6236 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6237 that when a font can't be exactly centered, it errs up rather than
6238 down.
6239
23afac01 62402000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 6241
52283633 6242 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 6243
1a578e9b
AC
62442000-10-23 Andrew Choi <akochoi@i-cable.com>
6245
6246 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6247
6248 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 6249 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
6250
6251 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6252 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6253 syms_of_search, x_term_init, and init_keyboard before calling
6254 init_window_once. Also, call syms_of_xmenu.
6255
6256 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6257 default fontset to Monaco.
6258
6259 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6260 NewMacWindow and DisposeMacWindow.
6261 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6262 instead of calling NewMacWindow and setting fields of
6263 f->output_data.mac directly. Call init_frame_faces.
6264 (Fdelete_frame) [macintosh]: Remove unused code.
6265 (Fmodify_frame_parameters) [macintosh]: Call
6266 x_set_frame_parameters instead of mac_set_frame_parameters.
6267
6268 * frame.h [macintosh]: Define menu_bar_lines field in struct
6269 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6270
6271 * keyboard.c [macintosh]: Include macterm.h.
6272 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6273 and menu_bar_activate_event type events as for X and NT.
6274 (make_lispy_event) [macintosh]: Construct lisp events of type
6275 MENU_BAR_EVENT as for X and NT.
6276
6277 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6278 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6279 (sys_subshell) [macintosh]: Remove definition entirely.
6280 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6281 Vwindow_system_version here. Remove initialization of
6282 Vx_bitmap_file_path.
6283 (read_input_waiting): Correct the number of parameters passed to
6284 read_socket_hook.
6285 Move all Macintosh functions to mac/mac.c.
6286
6287 * term.c [macintosh]: Include macterm.h.
6288
6289 * window.c [macintosh]: Include macterm.h.
6290
6291 * xdisp.c [macintosh]: Include macterm.h. Declare
6292 set_frame_menubar and pending_menu_activation.
6293 (echo_area_display) [macintosh]: Do not return if terminal frame
6294 is the selected frame.
6295 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6296 Allow only the selected frame to set menu bar.
6297 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6298 calling FRAME_EXTERNAL_MENU_BAR (f).
6299 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6300
6301 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6302 and check_x. Declare XCreateGC. Define x_create_gc and
6303 x_free_gc. Initialize font_sort_order.
6304 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6305 but call x_list_fonts instead of w32_list_fonts.
6306 (Finternal_face_x_get_resource) [macintosh]: Do not call
6307 display_x_get_resource.
6308 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6309 (realize_x_face) [macintosh]: Load the font if it is specified in
6310 ATTRS.
52283633 6311 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 6312
1ffbabe3
SM
63132000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6314
6315 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6316 is nil: since we go to the end of submap anyway, we'd end up
6317 setting nil to nil.
6318 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6319 doesn't obey autoload.
6320
bed43f1d
EZ
63212000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6322
1ffbabe3 6323 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 6324
ea4233a7
JR
63252000-10-21 Jason Rumney <jasonr@gnu.org>
6326
6327 * w32term.c (w32_cache_char_metrics): Double check that font is
6328 really fixed pitch before trusting tmPitchAndFamily.
6329
f3d3c491
AI
63302000-10-21 Andrew Innes <andrewi@gnu.org>
6331
6332 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6333
6334 * w32term.h: Extern decl for w32_cache_char_metrics.
6335
6336 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6337
6338 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6339 (w32_unload_font): Free per_char array if present.
6340
6341 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6342 cached information in emulated XFontStruct to handle common cases
6343 quickly. Do not allocate XCharStruct for return.
6344 (w32_native_per_char_metric): New function.
6345 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6346 allocating one.
6347 (x_produce_glyphs): Don't get an HDC. Change calls to
6348 w32_per_char_metric to match arg change above. Remove calls to
6349 free results.
6350 (w32_get_glyph_overhangs): Ditto.
6351 (w32_cache_char_metrics): New function.
6352
6353 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6354 ($(BLD)/casefiddle.$(O)): Remove compile command.
6355 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
6356 ($(BLD)/dispnew.obj):
6357 ($(BLD)/keyboard.obj):
6358 ($(BLD)/w32inevt.obj):
6359 ($(BLD)/w32bdf.obj):
6360 ($(BLD)/alloc.obj):
6361 ($(BLD)/buffer.obj):
6362 ($(BLD)/editfns.obj):
6363 ($(BLD)/emacs.obj):
6364 ($(BLD)/fileio.obj):
6365 ($(BLD)/fns.obj):
6366 ($(BLD)/indent.obj):
6367 ($(BLD)/insdel.obj):
6368 ($(BLD)/intervals.obj):
6369 ($(BLD)/minibuf.obj):
6370 ($(BLD)/print.obj):
6371 ($(BLD)/scroll.obj):
6372 ($(BLD)/sysdep.obj):
6373 ($(BLD)/textprop.obj):
6374 ($(BLD)/widget.obj):
f3d3c491
AI
6375 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6376 ($(BLD)/term.obj): Add dependency on dispextern.h.
6377
52283633
SM
6378 * makefile.nt ($(BLD)\dispnew.obj):
6379 ($(BLD)\keyboard.obj):
6380 ($(BLD)\w32inevt.obj):
6381 ($(BLD)\w32bdf.obj):
6382 ($(BLD)\alloc.obj):
6383 ($(BLD)\buffer.obj):
6384 ($(BLD)\editfns.obj):
6385 ($(BLD)\emacs.obj):
6386 ($(BLD)\fileio.obj):
6387 ($(BLD)\fns.obj):
6388 ($(BLD)\indent.obj):
6389 ($(BLD)\insdel.obj):
6390 ($(BLD)\intervals.obj):
6391 ($(BLD)\minibuf.obj):
6392 ($(BLD)\print.obj):
6393 ($(BLD)\scroll.obj):
6394 ($(BLD)\sysdep.obj):
6395 ($(BLD)\textprop.obj):
6396 ($(BLD)\widget.obj):
f3d3c491
AI
6397 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6398 ($(BLD)\term.obj): Add dependency on dispextern.h
6399
18ad4821
EZ
64002000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6401
6402 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6403 with an additional argument of Qt.
6404
de54681a
MB
64052000-10-21 Miles Bader <miles@gnu.org>
6406
6407 * window.c (pos_fully_visible_in_window_p): New function.
6408 (Fpos_visible_in_window_p): Add FULLY argument.
6409 Use pos_fully_visible_in_window_p.
6410 (window_scroll_pixel_based, window_scroll_line_based): Update
6411 calls to Fpos_visible_in_window_p.
6412 * lisp.h (Fpos_visible_in_window_p): Update prototype
6413
13c844fb
GM
64142000-10-20 Gerd Moellmann <gerd@gnu.org>
6415
6416 * alloc.c (toplevel): Conditionalize compilation of mem_*
6417 functions differently.
52283633 6418
d9506268
JR
64192000-10-20 Jason Rumney <jasonr@gnu.org>
6420
6421 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6422 mem_init where it used to be. mem_z etc not defined otherwise.
6423
8094989b
GM
64242000-10-20 Gerd Moellmann <gerd@gnu.org>
6425
6426 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6427 GC_MALLOC_CHECK.
6428 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6429 structure definition and related variabled to the top of the file.
6430 Include this code when GC_MALLOC_CHECK is defined.
6431 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6432 register/unregister allocated region.
6433 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6434 which isn't allocated.
6435 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6436 something which is already in use.
6437 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6438 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6439 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6440 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6441
6442 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6443 _malloc_internal instead of malloc.
6444 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6445 of free.
6446
ea456eb4
AI
64472000-10-20 Andrew Innes <andrewi@gnu.org>
6448
6449 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6450 Windows.
6451 (my_strftime) <macro>: Don't use macro arg list when redefining as
6452 _strftime_copytm.
6453 (my_strftime) <function>: Supply 0 as ut argument.
6454
e64c3a75
JR
64552000-10-19 Jason Rumney <jasonr@altavista.net>
6456
6457 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6458 including dispextern.h, as it stops faces from working.
6459
6460 * w32fns.c (Fx_create_frame): Don't bother calling
6461 face-set-after-frame-default since the caller does it for us
6462 anyway. Clean up calls to x_get_arg to be consistent with X.
6463
6464 * w32term.c (x_produce_glyphs): Handle
6465 unibyte_display_via_language_environment correctly.
6466 (w32_draw_box_rect): Fix the calculation of width and height.
6467
6468 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6469 as it has stopped working.
6470 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6471 menu-bar.
6472
17401c97
GM
64732000-10-19 Gerd Moellmann <gerd@gnu.org>
6474
6475 * eval.c (skip_debugger): Prevent a compiler warning.
6476 (Fcondition_case): Likewise.
6477 (Fbacktrace_frame): Use a null interactive spec.
6478
773272d8
KH
64792000-10-19 Kenichi Handa <handa@etl.go.jp>
6480
6481 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6482
a42943e9
GM
64832000-10-18 Gerd Moellmann <gerd@gnu.org>
6484
e50517d9
GM
6485 * strftime.c: Sync with glibc, file version 1.78.
6486 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6487 should no longer be used according to ISO 8601.
6488
9035a35a
GM
6489 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6490 no map for meta_prefix_char, don't try to use it as a keymap.
6491 Instead, if T_OK is non-zero, look up a default binding, if any,
6492 otherwise, if T_OK is zero, return nil.
6493
a42943e9
GM
6494 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6495 (x_to_xcolors, png_load): Use x_query_color.
6496
52283633
SM
6497 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6498 New functions.
a42943e9
GM
6499 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6500 which can be slow.
6501 (x_copy_color, x_alloc_lighter_color): Likewise.
6502
6503 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6504 (x_query_color, x_query_colors): Add prototype.
6505
6506 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6507 check_string_bytes only if not noninteractive, increase count to 50.
6508
00de2987
MB
65092000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6510
6511 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6512 markers correctly.
6513
54918e2b
GM
65142000-10-17 Gerd Moellmann <gerd@gnu.org>
6515
1f0b3fd2
GM
6516 * alloc.c (pure_bytes_used): Renamed from pureptr.
6517 (ALIGN): New macro.
6518 (pure_alloc): New function.
6519 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6520 Use it.
6521 (Fpurecopy): Use PURE_POINTER_P.
6522
68c5d1db
GM
6523 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6524 PT has moved backward.
52283633 6525
9a038881
GM
6526 * xdisp.c (cursor_row_p): Take continued lines into account.
6527
361b097f
GM
6528 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6529 string's size_byte.
6530 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6531 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6532 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6533 string allocated.
6534
54918e2b
GM
6535 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6536 of selective display off while searching for the next line start.
6537
03ed0806
KH
65382000-10-17 Kenichi Handa <handa@etl.go.jp>
6539
6540 * Makefile.in (term.o): Depend on dispextern.h.
6541
7e05cdaf
SM
65422000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6543
6544 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6545
a6801fd1
GM
65462000-10-16 Gerd Moellmann <gerd@gnu.org>
6547
483de32b
GM
6548 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6549 the iterator at the beginning, so that they can be set later on,
6550 for instance in reseat_at_next_visible_line_start, without being
6551 overwritten.
6552
a6801fd1
GM
6553 * xfns.c (pbm_format): Add :foreground and :background keywords.
6554 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 6555 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 6556
dbf1fcc1
EZ
65572000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6558
6559 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6560
52283633 6561 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
6562
6563 * msdos.c (IT_set_face): Compare highlighted face with the default
6564 face, and invert colors if these faces' colors are identical.
6565 (Fmsdos_remember_default_colors): Don't swap foreground and
6566 background colors in initial_colors[].
6567 (IT_set_frame_parameters): Don't swap frame's foreground and
6568 background pixels. If ALIST includes "(reverse . t)", swap
6569 foreground-color and background-color properties in frame's
6570 param_alist. If the original frame's param_alist doesn't specify
6571 the colors, store unspecified-fg and unspecified-bg, reversed if
6572 required.
6573
6574 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6575 the colors are unspecified and reversed, reverse fore- and back-
6576 ground in the returned value.
6577 (Fframe_parameter): Ditto.
6578
b41fe2c3 65792000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 6580
3a6b59d9
GM
6581 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6582 get_last_unchanged_at_beg_row.
6583 (find_first_unchanged_at_end_row): Renamed from
6584 get_first_unchanged_at_end_row.
6585 (find_first_unchanged_at_end_row): Convert assertions to
6586 unconditional tests which abort. When looking for a row in
6587 unchanged text, don't go further back than first_text_row.
6588
b41fe2c3
GM
6589 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6590 Don't add in the last line's height when deciding if the new
6591 position is below the scroll margin.
9d1af64f 6592
b41fe2c3 65932000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
6594
6595 * editfns.c (Fconstrain_to_field): Check carefully for field
6596 boundaries if either OLD_POS or NEW_POS has a non-nil field
6597 property, even if they're the same.
6598
c412cb7b
KH
65992000-10-16 Kenichi Handa <handa@etl.go.jp>
6600
6601 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6602 height for XFillRectangle.
6603
5586f3eb
SM
66042000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6605
6606 * syntax.c (Fstring_to_syntax): New function extracted from
6607 Fmodify_syntax_entry.
6608 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6609 (skip_chars, Fforward_comment): Remove unused variables.
6610 (syms_of_syntax): Add defsubr for string-to-syntax.
6611 (describe_syntax): Add code for comment and string fences.
6612
db785038
SM
66132000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6614
6615 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6616 Do the meta->esc mapping. Call get_keyelt before returning.
6617 Start scanning from the second element (the first is always `keymap')
6618 to make it easier to detect when we reach a parent map.
6619 Handle the case of inheriting from a symbol whose function is a map.
6620 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6621 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6622 (get_keyelt, Flookup_key): Update call to access_keymap.
6623 Remove the meta->esc mappings.
6624 (define_as_prefix): Delete old disabled code.
6625 (menu_item_p): New function.
6626 (where_is_internal_1): Skip over the few remaining menu items.
6627 * lisp.h (access_keymap): Update prototype.
6628 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6629 Update call to access_keymap.
6630 (follow_key, read_key_sequence): Update calls to access_keymap.
6631 Remove the meta->esc mappings.
6632
cafafe0b
GM
66332000-10-13 Gerd Moellmann <gerd@gnu.org>
6634
a2e2a7f6
GM
6635 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6636 with additional argument.
6637
cafafe0b
GM
6638 * xdisp.c (cursor_row_p): New function.
6639 (try_cursor_movement, display_line): Use it.
52283633 6640
cafafe0b
GM
6641 * xdisp.c (append_space): Also save/restore iterator's current
6642 character and its length.
6643
6644 * xdisp.c (init_from_display_pos): Add an assertion.
6645 (handle_stop): Don't set iterator's add_overlay_start.
6646 (handle_invisible_prop): Likewise.
6647 (load_overlay_strings): If text under an overlay is invisible,
6648 take both before- and after-strings into account when the iterator
6649 is positioned either at the start or at the end of the overlay.
6650 (forward_to_next_line_start): Rewritten.
6651 (reseat_at_next_visible_line_start): Rewritten.
6652 (set_iterator_to_next): Add parameter RESEAT_P.
6653
6654 * dispextern.h (struct it): Remove member add_overlay_start.
6655 (set_iterator_to_next): Change prototype.
6656
c744452b
KH
66572000-10-13 Kenichi Handa <handa@etl.go.jp>
6658
6659 * coding.c (code_convert_region): Be sure to initialize
6660 coding->category_idx.
e4a3f4e1
KH
6661 (decode_coding_string): Set coding->src_multibyte and
6662 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6663 (encode_coding_string): Set coding->src_multibyte and
6664 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 6665
321fd26f
SM
66662000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6667
6668 * xfns.c (Fx_create_frame): Don't bother calling
6669 face-set-after-frame-default since the caller does it for us anyway.
6670
76832439
EZ
66712000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6672
6673 * window.c (coordinates_in_window): Fix detection of vertical line
6674 on character terminals.
6675
2483cf58
GM
66762000-10-12 Gerd Moellmann <gerd@gnu.org>
6677
6678 * editfns.c (save_excursion_save): Additionally record the
6679 selected window.
6680 (save_excursion_restore): If buffer was visible in a window, and a
6681 different window was selected, and the old selected window is
6682 still live, restore point in that window.
6683
eb991b25
KH
66842000-10-12 Kenichi Handa <handa@etl.go.jp>
6685
8a0eba09
KH
6686 * xterm.c (x_produce_glyphs): Handle
6687 unibyte_display_via_language_environment correctly.
6688
20401fcc
KH
6689 * regex.c (regex_compile): Change the way of handling a range from
6690 unibyte char to multibyte char.
6691
6692 * syntax.c (skip_chars): Change the way of handling a range from
6693 unibyte char to multibyte char.
6694
eb991b25
KH
6695 * process.c (read_process_output): Cancel previous change.
6696
365dd325
EZ
66972000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6698
c1b096cb
EZ
6699 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6700
365dd325
EZ
6701 * charset.c (Ffind_charset_string): Doc fix.
6702 (Ffind_charset_region): Doc fix.
6703
eb483c2b
KH
67042000-10-11 Kenichi Handa <handa@mule.m17n.org>
6705
6706 * process.c (read_process_output): Fix previous change. Adjust
6707 multibyteness of text to insert in a buffer by
52283633 6708 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 6709
b40bfb99
AS
67102000-10-10 Andreas Schwab <schwab@suse.de>
6711
6712 * alloc.c (mark_object): Remove all workarounds installed on
6713 1993-08-08.
6714
caff31d4
KH
67152000-10-10 Kenichi Handa <handa@etl.go.jp>
6716
52283633 6717 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
6718 (base64_encode_1): Make it work for a text of multibyte form.
6719 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6720 case. Don't call str_to_multibyte because base64_decode_1
6721 produces correct multibyte form for eight-bit codes.
52283633 6722 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
6723 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6724 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6725 codes.
6726
6727 * charset.h (CHAR_STRING): Optimized for single byte characters.
6728
cba026ef
AS
67292000-10-09 Andreas Schwab <schwab@suse.de>
6730
6731 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6732 -1 after socket is closed, to fall through to error processing.
6733
1e21fe48
EZ
67342000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6735
6736 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 6737 variables. If ALIST includes foreground-color or
1e21fe48
EZ
6738 background-color, change also the colors of the default face for
6739 this frame.
6740
a640322e
EZ
67412000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6742
6743 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6744 them extern (they are defined on xfaces.c).
6745 (syms_of_msdos): Don't intern and don't staticpro
6746 Qbackground_color and Qforeground_color.
6747
a115794c
EZ
67482000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6749
6750 * frame.c (Fframe_parameter): For non-windowed frames, if
6751 f->param_alist says foreground or background color is unspecified,
6752 call tty_color_name to return the color name computed from the
6753 frame's current colors.
6754
f5533b63
DL
67552000-10-06 Dave Love <fx@gnu.org>
6756
6757 * terminfo.c (ospeed): Don't declare.
6758
6759 * sysdep.c: Don't include string.h.
6760 (h_errno): Declare conditional also on TRY_AGAIN.
6761
6762 * charset.c (Ffind_charset_string): Doc fix.
6763
52283633 6764 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
6765 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6766 error messages.
6767
2b06561a
DL
67682000-10-05 Dave Love <fx@gnu.org>
6769
6770 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6771 position like menu-bar.
6772
ca839c85
GM
67732000-10-05 Gerd Moellmann <gerd@gnu.org>
6774
6775 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6776
6777 * xdisp.c (handle_single_display_prop): Use safe_call1.
6778 (safe_call): Renamed from call_function.
6779 (safe_call1): New function.
6780 (handle_fontified_prop): Use safe_call1 instead of call1.
6781 (safe_eval): Renamed from eval_form.
6782 (safe_eval_handler): Renamed from eval_handler.
6783 (handle_single_display_prop, display_mode_element): Use safe_eval
6784 instead of eval_form.
6785
6786 * xfaces.c (merge_face_heights): Use safe_call instead of
6787 call_function.
6788
6789 * keyboard.c (show_help_echo): Use safe_call instead of
6790 call_function; use safe_eval instead of eval_form.
6791
6792 * lisp.h (safe_call): Renamed from call_function.
6793 (safe_eval): Renamed from eval_form.
6794 (safe_call1): Add prototype.
6795
a3489ece
MB
67962000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6797
6798 * xfns.c (image_ascent): Rearrange ascent calculation for the
6799 has-a-font case.
6800
35810b6f
SM
68012000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6802
6803 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6804 (where_is_internal_1): Don't bother ignoring menu-items any more.
6805
3dc78168
GM
68062000-10-04 Gerd Moellmann <gerd@gnu.org>
6807
6808 * keyboard.c (update_menu_bindings): New variable.
6809 (parse_menu_item): Use AREF. If update_menu_bindings
6810 is 0, don't update menu bindings.
6811 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6812
1efc2bb9
EZ
68132000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6814
6815 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6816 to `mark_object'.
6817
3f679f55
SM
68182000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6819
6820 * syntax.c (forw_comment): Match nestedness of ender/starter.
6821 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6822 (prev_char_comstart_first): Remove.
6823 (back_comment): Check two-char comment markers more carefully
6824 to better handle overlapping cases like *//* or /* */* */ ...
6825 Match nestedness of ender/starter.
6826
2021ab61
DL
68272000-10-02 Dave Love <fx@gnu.org>
6828
6829 * config.in (HAVE_GAI_STRERROR): Add undef.
6830
6831 * process.c (Fopen_network_stream): Use it.
6832
6833 * m/alpha.h (NO_REMAP): Don't define.
6834
64e6cc18
GM
68352000-10-02 Gerd Moellmann <gerd@gnu.org>
6836
6837 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6838 return with a string converted to an integer or vice versa when
6839 Vmocklisp_arguments is t.
6840 (Fsignal): Likewise. The function can return for `quit'.
6841 (struct gcpro): Declare member `var' to point to a volatile
6842 Lisp_Object.
6843
6844 * eval.c (error): Prevent compiler warning.
6845
b1904cd9
SM
68462000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6847
6848 * keymap.c (keymap_memberp): New function.
6849 (Fset_keymap_parent): Use it.
6850 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6851 Use keymap_memberp to avoid creating cycles.
6852 (access_keymap): Use KEYMAPP.
6853
71c9ec51
GM
68542000-09-30 Gerd Moellmann <gerd@gnu.org>
6855
6856 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
6857 gai_strerror. Make sure xerrno is set if connect fails. Improve
6858 error recovery.
71c9ec51 6859
c70c6b58
JR
68602000-09-29 Jason Rumney <jasonr@gnu.org>
6861
6862 * w32term.c (w32_char_font_type, w32_encode_char)
6863 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6864 (w32_bdf_per_char_metric): New function.
6865 (w32_per_char_metric): Use it.
6866 (x_draw_glyph_string_background): Always draw background for BDF
6867 glyphs.
6868
6869 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6870 GDI object which is a scarce resource.
6871
6872 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6873 (get_quoted_string): Fix limit on memchr search.
6874 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6875 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6876 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6877 (get_cached_font_char, cache_char_offset): Use macro
6878 BDF_CODEPOINT_RANGE_COVER_P.
6879 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6880 (clear_cached_bitmap_slots): New function.
6881 (GET_HEX_VALUE): G-Z, g-z are not hex.
6882 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6883 (get_bitmap_with_cache): Use new cache implementation.
6884 (create_offscreen_bitmap): New function.
6885 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6886
6887 * w32term.c (x_produce_glyphs): If the distance from the current
6888 position to the next tab stop is less than a canonical character
6889 width, use the tab stop after that.
6890 (x_draw_glyphs): Handle case START and END are out of bounds more
6891 carefully.
6892 (x_clear_mouse_face): Block/unblock input.
6893 (x_display_and_set_cursor): Don't show a hollow box cursor for
6894 buffers whose cursor_type is nil.
6895
fe01239f
GM
68962000-09-29 Gerd Moellmann <gerd@gnu.org>
6897
52283633 6898 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
6899
6900 * dispextern.h (updating_frame): Declare extern.
6901
e7c52f1f
AS
69022000-09-29 Andreas Schwab <schwab@suse.de>
6903
6904 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6905
de6e1f7c
GM
69062000-09-29 Gerd Moellmann <gerd@gnu.org>
6907
25126faa
GM
6908 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6909 use its function definition.
6910 (tool_bar_items): Likewise.
6911
de6e1f7c 6912 * lisp.h (fatal): Declare NO_RETURN.
52283633 6913
454ee39b
KH
69142000-09-29 Kenichi Handa <handa@etl.go.jp>
6915
6916 * keymap.c: Remove the line "#undef NULL".
6917
96301c5f
GM
69182000-09-28 Gerd Moellmann <gerd@gnu.org>
6919
52283633 6920 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 6921
efffeeb4
DL
69222000-09-28 Dave Love <fx@gnu.org>
6923
ecb8b666
DL
6924 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6925
dc3cd20f
DL
6926 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6927
6928 * .gdbinit (xreload): Note its need on GNU/Linux.
6929
efffeeb4
DL
6930 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6931 r_alloc, r_alloc_free.
6932
8610d903
KH
69332000-09-28 Kenichi Handa <handa@etl.go.jp>
6934
6935 * syntax.c (skip_chars): Handle negation correctly.
6936
8901d1ac
GM
69372000-09-27 Gerd Moellmann <gerd@gnu.org>
6938
6f22f1ad
GM
6939 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6940 with non-zero FORCE_P argument.
6941
52283633 6942 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
6943 Add assertions.
6944
6945 * xdisp.c (window_box_height): Add an assertion.
6946
6947 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6948 tool-bar than is available.
6949 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6950
36f1966f
DL
69512000-09-27 Dave Love <fx@gnu.org>
6952
efffeeb4 6953 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 6954
31d929e5
GM
69552000-09-26 Gerd Moellmann <gerd@gnu.org>
6956
c98863bf
GM
6957 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6958 instead of BITS_PER_INT.
6959 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6960 EMACS_UINT, respectively.
6961 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6962
6963 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6964
6965 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6966
77072ab1
GM
6967 * window.c (freeze_window_starts): Construct last argument for
6968 foreach_window differently.
6969
6970 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6971
6972 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6973 EMACS_UINT instead of `int' and `unsigned int'.
6974 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6975
6976 * frame.h (struct frame): Make the `nothing' member of union
6977 output_data an EMACS_INT.
6978
52283633 6979 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
6980 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6981 size in the sdata structure.
6982 (SDATA_NBYTES, SDATA_DATA): New macros.
6983 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6984 differently for the different layout of the sdata structure.
6985 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6986 in sdata.
6987 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6988 Check that size recorded in the string size and size recorded in
6989 the sdata structure agree.
6990
3e60b029
DL
69912000-09-25 Dave Love <fx@gnu.org>
6992
6993 * buffer.c: Include stdio.h.
6994
6995 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 6996
3e60b029
DL
6997 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6998
6999 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 7000 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
7001 (__malloc_extra_blocks): Declare as __malloc_size_t.
7002
8ff16b4e
GM
70032000-09-25 Gerd Moellmann <gerd@gnu.org>
7004
755a2ccd
GM
7005 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7006
d8b4516f
GM
7007 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7008 (read_char): If help-echo is showing, preserve the echo area
7009 when redisplaying.
7010
7011 * xdisp.c (help_echo_showing_p): New variable.
7012 (set_message): Reset it to 0.
7013 (init_xdisp): Initialize help_echo_showing_p.
7014
7015 * dispextern.h (help_echo_showing_p): Declare extern.
7016
7017 * config.in: Fix typo in __GNUC_MINOR__.
7018
7019 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7020
b11af2dd
GM
7021 * s/freebsd.h (POSIX_SIGNALS): Define.
7022
8ff16b4e
GM
7023 * xterm.c (x_clear_mouse_face): Block/unblock input.
7024
844eb643
DL
70252000-09-24 Dave Love <fx@gnu.org>
7026
7027 * fns.c (base64_encode_1): Fix last change.
7028
b30ab1b3
GM
70292000-09-22 Gerd Moellmann <gerd@gnu.org>
7030
7031 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7032
7033 * xdisp.c (try_window_reusing_current_matrix): More fixes
7034 for the case window has a header-line.
7035
c6cbe5f0
DL
70362000-09-22 Dave Love <fx@gnu.org>
7037
4c7c1f3f
DL
7038 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7039 a doc string.
7040
7041 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7042
c6cbe5f0
DL
7043 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7044
550a625e
GM
70452000-09-21 Gerd Moellmann <gerd@gnu.org>
7046
4c7c1f3f 7047 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
7048 for GCC >= 2.5.
7049
52283633
SM
7050 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7051 Declare NO_RETURN.
fca99116 7052
80d26f99
GM
7053 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7054 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7055 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7056 warnings.
52283633 7057
80d26f99
GM
7058 * marker.c (byte_char_debug_check): Return void.
7059
623a0aae
GM
7060 * xfns.c (Fx_create_frame): Set default frame parameter value
7061 for tool-bar-lines to 1.
7062
7063 * dispnew.c (scrolling_window): Compare y-positions of rows
7064 equal at the start. Some simplification.
7065
7066 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7067 reused rows' y-position in the case window has a header-line, and
7068 new window start is greater than old window start.
7069
42ac0ae5
GM
7070 * process.c (process_sent_to): New variable.
7071 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7072 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7073 Declare more parameters volatile.
7074
550a625e
GM
7075 * lread.c (Vrecursive_load_depth_limit): New variable.
7076 (Fload): Check recursive loads whose recursion depth exceeds
7077 Vrecursive_load_depth_limit.
7078 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7079
8320414c
GM
70802000-09-20 Gerd Moellmann <gerd@gnu.org>
7081
f46c275e
GM
7082 * fileio.c (Fread_file_name): Doc fix.
7083
7084 * editfns.c (Fmessage_or_box): Doc fix.
7085
7086 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7087
b7e11c5b 7088 * xfns.c (xbm_scan): Allow C-style comments.
52283633 7089
8320414c
GM
7090 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7091 symbols are specified, add color translations to the cache.
52283633 7092 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
7093 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7094 xpm_cache_color.
7095 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7096 structures to xpm_init_color_cache.
7097
da1608d9
GM
70982000-09-19 Gerd Moellmann <gerd@gnu.org>
7099
52283633 7100 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 7101
6badfa25
AI
71022000-09-19 Andrew Innes <andrewi@gnu.org>
7103
7104 * makefile.nt (bootstrap-emacs): Don't change directory.
7105
3a5f42bb
KH
71062000-09-19 Kenichi Handa <handa@etl.go.jp>
7107
1b7649bd
KH
7108 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7109
3a5f42bb
KH
7110 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7111 If output buffer is too small, signal an appropriated error.
7112
9f83cf0b
DL
71132000-09-18 Dave Love <fx@gnu.org>
7114
52283633 7115 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
7116 (current_active_maps): Remove redundant get_local_map call.
7117
28c7826c
GM
71182000-09-18 Gerd Moellmann <gerd@gnu.org>
7119
5cefa566
GM
7120 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7121 cursor for buffers whose cursor_type is nil.
52283633 7122
6fed3546
GM
7123 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7124 a feature to implement that is already implemented.
7125 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7126 warnings.
7127
7128 * xfns.c (x_clear_image_1): New function.
7129 (x_clear_image): Use it.
52283633 7130 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 7131
05b1f851
GM
7132 * dispnew.c (update_window): Move test for invisible lines
7133 at the top to update_window_line.
7134 (update_window_line): Handle invisible lines here.
7135
f4779de9
GM
7136 * xfns.c (clear_image_cache): Clear current matrices of all
7137 frames sharing an image cache. Block input while freeing
7138 images. Fix timestamp comparison.
7139 (x_clear_image): Also free the mask.
7140
28c7826c
GM
7141 * xfns.c (lookup_image): Block input while loading the image so
7142 that we won't get interrupted in a state where the image isn't yet
7143 set up completely.
7144 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7145 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7146 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 7147 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 7148
b7412313
GM
71492000-09-16 Gerd Moellmann <gerd@gnu.org>
7150
7151 * dispnew.c (update_window): Make sure to make desired rows
7152 current even if they are completely invisible at the top
7153 of a window.
7154
47e351a3
GM
71552000-09-15 Gerd Moellmann <gerd@gnu.org>
7156
7f8f1edc
GM
7157 * xfns.c (lookup_image): Build mask before applying an algorithm.
7158 Recognize algorithm `disabled'.
7159 (cross_disabled_images): New variable.
7160 (COLOR_INTENSITY): New macro.
7161 (x_detect_edges): Use COLOR_INTENSITY.
7162 (x_disable_image): New function.
7163 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7164
7165 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7166 disabled state, don't apply an image transformation algorithm if
7167 the user specified an image for the disabled state. Use
28c7826c 7168 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
7169 user hasn't specified an image.
7170
ebb8f116
GM
7171 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7172 allocation functions with the XPM lib.
7173 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7174 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7175 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7176 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 7177 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
7178 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7179 functions, if possible, because these handle color allocation
7180 failure more gracefully.
7181 (Fimage_mask_p): New function.
7182
47e351a3
GM
7183 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7184 (Qedge_detection, Qheuristic): New symbols.
7185 (syms_of_xfns): Initialize new symbols.
7186 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7187 `algorithm (edge-detection ...)'.
7188 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7189 (tiff_format, gif_format, gs_format): Add `:mask'.
7190 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7191 (GIF_MASK, GS_MASK): New enumerators.
7192 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7193 (emboss_matrix, laplace_matrix): New variables.
7194 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7195 (x_edge_detection): New functions.
7196 (x_laplace): Rewritten in terms of x_detect_edges.
7197 (x_build_heuristic_mask): If image has a mask, free it.
7198
fe83b953
AI
71992000-09-14 Andrew Innes <andrewi@gnu.org>
7200
7201 * makefile.w32-in: Revert to Unix line endings.
7202
3021e816
AI
72032000-09-14 Andrew Innes <andrewi@gnu.org>
7204
7205 * makefile.w32-in: Standardize indentation somewhat.
7206 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7207 cater for differences between shells.
7208
7209 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7210
2a32b5ea
GM
72112000-09-14 Gerd Moellmann <gerd@gnu.org>
7212
7213 * xterm.c (x_produce_glyphs): If the distance from the current
7214 position to the next tab stop is less than a canonical character
7215 width, use the tab stop after that.
7216
b4331e96
DL
72172000-09-14 Dave Love <fx@gnu.org>
7218
7219 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7220
ef9e4345
GM
72212000-09-14 Gerd Moellmann <gerd@gnu.org>
7222
085536c2
GM
7223 * xdisp.c (handle_fontified_prop): While running fontification
7224 functions, bind `fontification-functions' and
7225 `after-change-functions' to nil.
7226
ef9e4345
GM
7227 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7228 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7229
7230 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7231
7232 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7233 USE_MMAP_FOR_BUFFERS.
7234
7235 * insdel.c (make_gap): Use enlarge_buffer_text.
7236
7237 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7238 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7239 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7240 from former r_alloc_* functions in ralloc.c.
52283633 7241 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
7242 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7243 (mmap_init) [REL_ALLOC_MMAP]: New function.
7244 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7245 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7246 BUFFER_FREE.
7247
7248 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7249 (enlarge_buffer_text): Add prototype.
7250
7251 * ralloc.c: Remove everything having to do with the use of mmap.
7252
f8608968
GM
72532000-09-13 Gerd Moellmann <gerd@gnu.org>
7254
2a494b2d
GM
7255 * sound.c (Fplay_sound): Doc fix.
7256
8c907a56
GM
7257 * keyboard.c: Avoid some more compiler warnings.
7258 (parse_tool_bar_item): Ignore cached key bindings.
7259
f8608968
GM
7260 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7261 and allocation of Lisp data.
7262
6ab70e9a
GM
72632000-09-12 Gerd Moellmann <gerd@gnu.org>
7264
d12d0a9b
GM
7265 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7266 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7267 defaults first.
7268
6ab70e9a
GM
7269 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7270
63c36c3c
KH
72712000-09-12 Miyashita Hisashi <himi@meadowy.org>
7272
7273 * ccl.c: Comment fixed.
7274 (MAX_MAP_SET_LEVEL): Increased to 30.
7275 (PUSH_MAPPING_STACK): Enclose with do-while block.
7276 (POP_MAPPING_STACK): Likewise.
7277 (stack_idx_of_map_multiple): New variable.
7278 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7279 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 7280 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
7281 (ccl_driver) <CCL_MapSingle>: Likewise.
7282 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7283 with the case where looking up process reaches to the end of
7284 map-set, and call CCL programs as the above change.
7285
7ee3bd7b
GM
72862000-09-11 Gerd Moellmann <gerd@gnu.org>
7287
8ec8a5ec
GM
7288 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7289 that might be clobbered by longjmp.
7290 (check_x_display_info, x_decode_color, create_frame_xic)
7291 (Fx_display_backing_store, Fx_display_visual_class)
52283633 7292 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 7293
f74b0705
GM
7294 * lread.c (init_lread): Set Vloads_in_progress to nil.
7295 (Fload): Show list of recursively loaded files, when signaling an
7296 error.
7297
7ee3bd7b
GM
7298 * lread.c (Vloads_in_progress): New variable.
7299 (record_load_unwind): New function.
7300 (Fload): Check for recursive loads.
7301 (syms_of_lread): Initialize Vloads_in_progress.
7302 (read_integer, read1): Avoid some compiler warnings.
7303
7304 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7305 compiler warnings.
7306
974e1e5b
MB
73072000-09-11 Miles Bader <miles@gnu.org>
7308
7309 * editfns.c (Fbuffer_string): Doc fix.
7310
9824c4e3
GM
73112000-09-10 Gerd Moellmann <gerd@gnu.org>
7312
7313 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7314
6a72fdd1
KR
73152000-09-09 Ken Raeburn <raeburn@gnu.org>
7316
7317 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7318 whether to include other header files.
7319
28e6fb66
GM
73202000-09-09 Gerd Moellmann <gerd@gnu.org>
7321
52283633 7322 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 7323 by Fmemq as a boolean.
28e6fb66 7324
7f8b6551
SM
73252000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7326
7327 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7328
a8710abf
GM
73292000-09-08 Gerd Moellmann <gerd@gnu.org>
7330
d1a02881
GM
7331 * ralloc.c (mmap_fd): Remove initializer which can make it
7332 read-only in a dumped Emacs.
7333 (mmap_fd_1): New variable.
7334 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7335 restore it from there.
7336 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7337 unconditionally so that mmap_fd can be initialized there.
7338 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7339 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7340 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7341
c454aac1
GM
7342 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7343
7344 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 7345 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 7346
fc653ef2
GM
7347 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7348
3015eec0
GM
7349 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7350 inheritance.
7351
bfe0ee88
GM
7352 * xdisp.c (try_window_id): When trying to locate cursor in
7353 unchanged rows at the top, handle the case that we can't find it.
7354
a8710abf
GM
7355 * xterm.c (x_draw_glyphs): Handle case START and END are out
7356 of bounds more carefully.
7357
6b7d4ae4
DL
73582000-09-08 Dave Love <fx@gnu.org>
7359
423193c5
DL
7360 * s/sol2.h (REL_ALLOC_MMAP): Define.
7361 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7362
7363 * ralloc.c: Don't include string.h (redundant).
7364 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7365 [!MAP_ANON]: Include fcntl.h.
7366 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7367 (r_alloc, r_re_alloc, r_alloc_free)
7368 (mmap_enlarge, mmap_set_vars): Use it.
7369 (r_alloc_init_fd): New function.
7370 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7371 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7372 malloc type.
7373
7374 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7375 Remove vm-limit.o.
7376
6b7d4ae4
DL
7377 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7378 change to __NetBSD__.
7379
44d31981
KH
73802000-09-08 Kenichi Handa <handa@etl.go.jp>
7381
7382 * search.c (compile_pattern): Check the multibyteness of cached
7383 string and PATTERN.
7384
aad40737
MB
73852000-09-08 Miles Bader <miles@gnu.org>
7386
7387 * xfaces.c (default_face_vector): Function removed.
7388 (Finternal_merge_in_global_face): Restore old global/local
7389 attribute override order. Use inline loop instead of calling
7390 default_face_vector.
7391
91a211b5
GM
73922000-09-07 Gerd Moellmann <gerd@gnu.org>
7393
7394 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7395 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7396 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7397 where necessary, in case POINTER_TYPE is `void'.
7398
03419440
EZ
73992000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7400
7401 * frame.c (make_terminal_frame): Initialize frame foreground and
7402 background colors to unspecified, for the initial instance of an
7403 MSDOS frame.
7404
f46f845b
GM
74052000-09-07 Gerd Moellmann <gerd@gnu.org>
7406
24f76fbf
GM
7407 * ralloc.c (mmap_find): Fix overlap computation.
7408 (mmap_enlarge): Compute nbytes before trying to find an
7409 overlapping region.
7410
f46f845b
GM
7411 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7412 instead of `!='.
7413
7414 * lread.c (syms_of_lread): Change value of regexp
7415 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7416
7417 * xmenu.c (xdialog_show): When looking up the selection in
7418 menu_items, take `quote' boundaries into account; this corresponds
7419 to a nil ITEM in x-popup-dialog.
7420
3c014385
KH
74212000-09-07 Kenichi Handa <handa@etl.go.jp>
7422
fd6f711b
KH
7423 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7424 not 0x81.
7425 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7426
3c014385 7427 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
7428 encoding, not decoding. Fix the handling of latin-jisx0201.
7429 Check for the charset katakana-jisx0201 too.
3c014385 7430 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 7431 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 7432
0da3ecef
GM
74332000-09-07 Gerd Moellmann <gerd@gnu.org>
7434
ab0ee409
GM
7435 * xfaces.c (Vparam_value_alist): New variable.
7436 (syms_of_xfaces): Initialize it.
7437 (Finternal_set_lisp_face_attribute): Avoid more consing.
7438
7439 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7440 specially.
7441 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7442 (Qbackground_mode): New variable.
7443 (syms_of_frame_1): Initialize Qbackground_mode.
7444
7445 * lisp.h (Qdisplay): Declare extern.
1091dd67 7446
0da3ecef
GM
7447 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7448 change face on all frames, and change the default for new frames.
7449
b14654b9
DL
74502000-09-07 Dave Love <fx@gnu.org>
7451
7452 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7453
d24fd56f
KH
74542000-09-07 Kenichi Handa <handa@etl.go.jp>
7455
794f3670
KH
7456 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7457
0fddd0dc
KH
7458 * charset.c: Include composite.h
7459 (lisp_string_width): New function.
7460 (Fstring_width): Call lisp_string_width instead of strwidth.
7461
7462 * Makefile.in (charset.o): Depends on composite.h.
7463
d24fd56f
KH
7464 * process.c (read_process_output): Before inserting the decoded
7465 text in the buffer, adjust the multibyteness.
7466
fa0b693c
GM
74672000-09-06 Gerd Moellmann <gerd@gnu.org>
7468
52283633 7469 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
7470 buffer's text buffer is null, map new memory.
7471
0a58f946
GM
7472 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7473 POINTER_TYPE and size_t.
7474 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7475 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7476 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7477 [REL_ALLOC_MMAP]: New macros.
7478 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7479 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7480 [REL_ALLOC_MMAP]: New functions.
7481
7482 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7483 before and after unexec.
7484
7485 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7486 text buffers if necessary.
7487
7488 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7489 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7490 in prototypes.
7491
fa0b693c
GM
7492 * config.in (HAVE_MMAP): Add #undef.
7493
877055f6
GM
74942000-09-05 Gerd Moellmann <gerd@gnu.org>
7495
08ba3862
GM
7496 * frame.c (Qdisplay_type): New variable.
7497 (syms_of_frame_1): Initialize it.
7498 (Fframe_parameter): New function that avoids consing.
7499 (syms_of_frame): Defsubr it.
7500
66ffe51c
GM
7501 * buffer.c (Fother_buffer): Consider buffers as invisible when
7502 they are displayed in a window on an invisible frame.
7503
877055f6
GM
7504 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7505 get-largest-window always return nil.
7506
bb970e67
GM
75072000-09-04 Gerd Moellmann <gerd@gnu.org>
7508
7509 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7510 variable; recognize Emacs 19 elc files.
7511
7a3d0e0e
MB
75122000-09-04 Miles Bader <miles@gnu.org>
7513
7514 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7515 before initially popping up the menu, so the menu doesn't flash
52283633 7516 when the face settings are significantly different from the defaults.
7a3d0e0e 7517
14473664
SM
75182000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7519
7520 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7521 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7522 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7523 (BIT_UNIBYTE): Remove.
7524 (re_match_2_internal): Delete corresponding code and streamline the
7525 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7526 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7527 (re_wctype_t): New type.
7528 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7529 (regex_compile): Use them and fix handling of overly long char classes.
7530
c1174479
AI
75312000-09-03 Andrew Innes <andrewi@gnu.org>
7532
f8803e97
AI
7533 * makefile.w32-in: Change to DOS line endings.
7534
c1174479
AI
7535 * s/ms-w32.h (ORDINARY_LINK): New define.
7536
7537 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7538 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7539
7540 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7541 (distclean): Delete them here instead.
7542
44ef7cf6
AI
7543 * w32proc.c (compare_env): Convert to uppercase for comparison,
7544 not lowercase, to match how the native Windows shell works.
7545
49b3bd82
JR
75462000-09-03 Jason Rumney <jasonr@gnu.org>
7547
7548 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7549 CVS changes the line-ends when checking in/out on DOS/Windows.
7550
7551 * makefile.nt (emacs): Do not change directory to run temacs, as
7552 the load-path is set relative to current directory.
7553
a3d35a39
MB
75542000-09-03 Miles Bader <miles@gnu.org>
7555
7556 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7557
d276b0cf
GM
75582000-09-02 Gerd Moellmann <gerd@gnu.org>
7559
715e84c9
GM
7560 * xdisp.c (redisplay_mode_lines): New function.
7561 (display_mode_lines): Return number of mode lines displayed.
7562 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7563 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7564
8892f40b
GM
7565 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7566 string.h and strings.h.
7567 (index) [HAVE_INDEX]: Add prototype.
7568
d276b0cf
GM
7569 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7570 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7571
7572 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7573 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7574
38404229
GM
75752000-09-01 Gerd Moellmann <gerd@gnu.org>
7576
7577 * lread.c (read1): Accept `?' as symbol constituent, for
7578 compatiblity with XEmacs.
7579
c0f9ea08
SM
75802000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7581
7582 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7583 (struct re_pattern_buffer): Remove newline_anchor.
7584 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7585 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7586 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7587 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7588 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7589 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7590 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7591 Get rid of references to newline_anchor.
7592 (regcomp): Allocate and precompute a fastmap.
7593
8c0f83fe
GM
75942000-08-31 Gerd Moellmann <gerd@gnu.org>
7595
7596 * lread.c (openp): GCPRO local variable `filename'.
7597
4bb91c68
SM
75982000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7599
7600 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7601
7602 * regex.c: Merge some changes from GNU libc. Add prototypes.
7603 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7604 Use memcmp and memcpy instead of bcopy and bcmp.
7605 (init_syntax_once): Use ISALNUM.
7606 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7607 (REG_UNSET_VALUE): Remove. Use NULL instead.
7608 (REG_UNSET, re_match_2_internal): Use NULL.
7609 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7610 New macros.
7611 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7612 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7613 (regex_compile): In handle_interval, return an error rather than try to
7614 unfetch the interval if we can't find the closing brace.
7615 Obey the RE_NO_GNU_OPS syntax bit.
7616 (TOLOWER): New macro.
7617 (regcomp): Use it.
7618 (regexec): Allocate regs.start and regs.end as one block.
7619
5226a931
GM
76202000-08-30 Gerd Moellmann <gerd@gnu.org>
7621
868dd24b
GM
7622 * xdisp.c (echo_area_display): Check display_completed instead
7623 of calling detect_input_pending.
7624
7625 * dispnew.c (update_frame): Only set display_completed here; move
7626 the update_begin and update_end calls here from update_frame_1.
7627 (update_frame_1): Don't set display_completed here, don't call
7628 update_begin/update_end.
7629
5226a931
GM
7630 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7631 instead of store_frame_param.
7632
2a8bd25f
GM
76332000-08-29 Gerd Moellmann <gerd@gnu.org>
7634
7635 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7636 desired window matrix hasn't been displayed, use the current row
7637 instead. Make sure that only those frame rows are updated for
7638 which there exists a corresponding enabled desired row.
52283633 7639
ba3478d9
MB
76402000-08-29 Miles Bader <miles@gnu.org>
7641
7642 * xfaces.c (default_face_vector): New function.
7643 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7644
87d0f685
GM
76452000-08-29 Gerd Moellmann <gerd@gnu.org>
7646
7647 * lread.c (openp): Prevent temporary string passed to
7648 Ffile_readable_p from being garbage collected.
7649
6fa86045
DL
76502000-08-28 Dave Love <fx@gnu.org>
7651
7652 * keymap.c (store_in_keymap): Add `static' to declaration.
7653
bb17930d
GM
76542000-08-28 Gerd Moellmann <gerd@gnu.org>
7655
7656 * emacs.c, callint.c, doc.c, editfns.c
7657 (toplevel) [HAVE_STRING_H]: Include string.h.
7658 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7659 (index): Remove prototypes which might conflict with non-standard
7660 definitions of index/strchr.
7661
7662 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7663 (rindex): Define only if !HAVE_RINDEX.
7664
7665 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7666
7667 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7668
87188200
MB
76692000-08-28 Miles Bader <miles@gnu.org>
7670
7671 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7672 made inconsistent by a font-related attribute in FROM.
7673 (merge_face_inheritance): Add function comment.
7674
41a68aef
KH
76752000-08-28 Kenichi Handa <handa@etl.go.jp>
7676
7677 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7678 the 4th arg (PREV_EVENT) Qt to suppress input method.
7679
f7c436c1
SM
76802000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7681
0b32bf0e
SM
7682 * regex.c: Indent cpp directives and remove parens after `defined'.
7683 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7684 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7685 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7686 (re_compile_pattern): Use size_t for length.
7687 (init_syntax_once): Move to a better place.
7688 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7689 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7690
f7c436c1
SM
7691 * syntax.c (back_comment): Detect cases where a comment-starter is
7692 actually inside another comment as in: /* a // b */ c // d \n.
7693 Make it clear that `comstart_pos' is unused for nested comments.
7694
7695 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7696 (KEYMAPP): New macro.
7697 (Fkeymap_parent, Fset_keymap_parent): Use it.
7698 (fix_submap_inheritance): Mark it static.
7699 (define_as_prefix, describe_buffer_bindings, describe_command)
7700 (describe_translation, describe_map): Complete prototypes.
7701
7702 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7703
7704 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7705 to better match the key-lookup behavior.
7706
6288c62f
GM
77072000-08-27 Gerd Moellmann <gerd@gnu.org>
7708
7709 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7710 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7711
e931344e
EZ
77122000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7713
7714 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7715 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7716 (xterm.o): Depend on coding.h
7717
d10dfeef
KH
77182000-08-26 Kenichi Handa <handa@etl.go.jp>
7719
7720 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7721 the corresponding '#endif'.
7722
2d73e8d3
MB
77232000-08-26 Miles Bader <miles@gnu.org>
7724
7725 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7726 * xfaces.c (QCinherit): New variable.
7727 (syms_of_xfaces): Initialize it.
7728 (LFACE_INHERIT): New macro.
7729 (Finternal_get_lisp_face_attribute)
52283633 7730 (merge_face_vector_with_property)
2d73e8d3
MB
7731 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7732 (check_lface_attrs): Allow new types of face height. Check
7733 inherit attribute.
7734 (CYCLE_CHECK): New macro.
7735 (merge_face_inheritance): New function.
7736 (merge_face_vectors): Merge inherited faces too. Add F and
7737 CYCLE_CHECK arguments.
7738 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7739 (lookup_named_face, lookup_derived_face, realize_named_face)
7740 (face_at_string_position, face_at_buffer_position): Supply
7741 new F and CYCLE_CHECK arguments to merge_face_vectors.
7742 (merge_face_heights): New function.
52283633 7743 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
7744 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7745 handle relative face heights.
7746 (lface_same_font_attributes_p): Compare heights using EQ.
7747
6ce974d4
KH
77482000-08-26 Kenichi Handa <handa@etl.go.jp>
7749
7750 * charset.c (char_to_string): Check the character validity.
52283633 7751 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 7752
dc1e502d
SM
77532000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7754
7755 * regex.c (PUSH_FAILURE_COUNT): New macro.
7756 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7757 Handle popping of a register's or a counter's data.
7758 (POP_FAILURE_POINT): Use the new name.
7759 (re_match_2_internal): Push counter data on the stack for succeed_n,
7760 jump_n and set_number_at and remove misleading dead code in succeed_n.
7761
bd9d0f3f
GM
77622000-08-25 Gerd Moellmann <gerd@gnu.org>
7763
7764 * xdisp.c (redisplay_internal): If considering all windows on all
7765 frames, update the display for each frame as soon as possible,
7766 instead of first building all desired matrices for all frames, and
7767 then updating them all.
7768 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7769
aa5b8e15
GM
77702000-08-24 Gerd Moellmann <gerd@gnu.org>
7771
17494071
GM
7772 * bytecode.c (mark_byte_stack): Add a comment.
7773
52283633
SM
7774 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7775 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
7776 a graphical frame.
7777
c543db81
KH
77782000-08-24 Kenichi Handa <handa@etl.go.jp>
7779
d246d5f5
KH
7780 * minibuf.c (do_completion): Always use compare-string, not
7781 string-equal because the latter doesn't pay attention to
7782 multibyteness of strings.
7783
c543db81
KH
7784 * process.c (create_process): Don't setup raw-text coding here.
7785 (Fopen_network_stream): Don't set coding->src_multibyte and
7786 coding->dst_multibyte here.
7787 (read_process_output): For process filter, return unibyte string
7788 if default-enable-multibyte-characters is nil.
7789 (send_process): If OBJECT is multibyte text, be sure to encoded it
7790 by the specified coding system for the process. Otherwise, setup
7791 raw-text coding.
52283633 7792 (init_process): Don't initialize default-process-coding-system here.
c543db81 7793
9b47cfe0
EZ
77942000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7795
7796 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7797 <scroll-down-aggressively>: Likewise.
7798
f5a36960
KH
77992000-08-23 Kenichi Handa <handa@etl.go.jp>
7800
7801 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7802 zero. Set coding->produced_char correctly.
7803
69a7ffa7
AI
78042000-08-22 Andrew Innes <andrewi@gnu.org>
7805
7806 * makefile.w32-in: New file.
7807
7808 * unexw32.c (unexec): Ignore old_name, and use the actual location
7809 of the current executable instead. Base new_name on this.
7810
7811 * w32proc.c (create_child): Remove reference to security
7812 descriptor, which isn't needed and doesn't compile with mingw32.
7813
7814 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7815 up dllimport attributes.
7816 (x_update_window_end): Update prototype.
7817
7818 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7819 extern, which screws up dllimport attributes.
7820
7821 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7822 up dllimport attributes.
7823
7824 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7825 screws up dllimport attributes.
7826
7827 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7828 up dllimport attributes.
7829 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7830 screws up dllimport attributes.
7831
7832 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7833 up dllimport attributes.
7834
7835 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7836 screws up dllimport attributes.
7837
7838 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7839 screws up dllimport attributes.
7840
7841 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7842 up dllimport attributes.
7843
7844 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7845 unnecessary extern, which screws up dllimport attributes.
7846 (main): Ditto.
7847
7848 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7849 up dllimport attributes.
7850
7851 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7852 unnecessary extern, which screws up dllimport attributes.
7853
7854 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7855 screws up dllimport attributes.
7856
7857 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7858 up dllimport attributes.
7859
7860 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7861
52283633
SM
7862 * w32bdf.c (search_file_line):
7863 (set_bdf_font_info):
7864 (seek_char):
7865 (w32_get_bdf_glyph):
69a7ffa7
AI
7866 (w32_BDF_to_x_font): Fix compile warnings.
7867
52283633 7868 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
7869
7870 * w32select.c: Include keyboard.h before frame.h.
7871
7872 * w32fns.c (max): Define macro.
7873 (JOHAB_CHARSET): Define if not known.
7874 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7875 (Fx_show_tip): Synch with X version.
7876
7877 * w32xfns.c: Include keyboard.h before frame.h.
7878
7879 * w32fns.c: Include keyboard.h before frame.h.
7880
7881 * w32term.c: Include keyboard.h before frame.h.
7882
7883 * fontset.c: Include keyboard.h before frame.h.
7884
7885 * w32inevt.c: Include keyboard.h before frame.h.
7886 (MOUSE_MOVED): Define if not known.
7887
7888 * minibuf.c: Include keyboard.h before frame.h.
7889
7890 * keyboard.c: Include keyboard.h before frame.h.
7891
7892 * indent.c: Include keyboard.h before frame.h.
7893
7894 * dispnew.c: Include keyboard.h before frame.h.
7895
7896 * buffer.c: Include keyboard.h before frame.h.
7897
7898 * alloc.c: Include keyboard.h before frame.h.
7899
7900 * print.c: Include keyboard.h before frame.h.
7901
7902 * process.c: Include keyboard.h before frame.h.
7903
7904 * scroll.c: Include keyboard.h before frame.h.
7905
7906 * sysdep.c: Include keyboard.h before frame.h.
7907
7908 * term.c: Include keyboard.h before frame.h.
7909
7910 * window.c: Include keyboard.h before frame.h.
7911
7912 * xdisp.c: Include keyboard.h before frame.h.
7913 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7914
7915 * frame.c: Include keyboard.h before frame.h.
7916
7917 * w32heap.h: Undefine min, max.
7918
7919 * w32gui.h: Undefine min, max.
7920
7921 * unexw32.c: Change PUCHAR to PCHAR.
7922 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
7923 (relocate_offset):
7924 (get_section_info):
69a7ffa7
AI
7925 (copy_executable_and_dump_data): Remove unnecessary static defs.
7926 (copy_executable_and_dump_data): Fix compile warnings.
7927
7928 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7929
7930 * w32console.c (min): Define macro.
7931 (clear_frame, write_glyphs): Fix compile warning.
7932
52283633 7933 * w32proc.c (compare_env):
69a7ffa7
AI
7934 (find_child_console): Fix compile warning.
7935
7936 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7937 sys_errlist instead of _sys_errlist.
7938 (get_emacs_configuration_options): New function.
7939
7940 * s/ms-w32.h (sys_nerr): Provide default definition.
7941 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7942 name with _ prepended.
7943 (NSIG): Define if not known.
7944 (get_emacs_configuration): Provide extern declaration.
7945 (get_emacs_configuration_options): Provide extern declaration.
7946 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7947
7948 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 7949 (map_w32_filename):
69a7ffa7
AI
7950 (read_unc_volume): Fix compile warning.
7951
7952 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7953 definitions from being used.
7954
7955 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7956
52283633 7957 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
7958 (open_unc_volume): Make arg const.
7959
7960 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7961 (read_input_waiting): Remove excess parameter.
7962
7963 * w32.c (init_environment): Call _access.
7964 (check_windows_init_file): Call _close.
7965 (init_user_info): Call _putenv.
7966 (init_environment): Call _putenv and _strdup.
7967 (init_ntproc): Reset volume info cache on startup.
7968
7969 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7970 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7971 cannot override the CRT malloc.
7972
7973 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7974 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7975
7976 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7977 unless we are linking with a static CRT.
7978 (RVA_TO_PTR): Cast result to unsigned char*.
7979
7980 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7981 (add_volume_info): Use xstrdup.
7982
25060080
SM
79832000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7984
7985 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7986 (do_completion, Fminibuffer_complete_word): Use it.
7987 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7988 var so it can take non-boolean values.
7989
6917e6bb
GM
79902000-08-21 Gerd Moellmann <gerd@gnu.org>
7991
acb7cc89 7992 * editfns.c (find_field): Formatting changes.
52283633 7993 (toplevel): Some old-style function forward declarations
acb7cc89
GM
7994 changed to prototypes, some new protypes added, some functions
7995 made static.
7996
7997 * lisp.h (set_time_zone_rule): Add prototype.
7998 (use_dialog_box): External declaration.
7999
0bbfdc25
GM
8000 * keyboard.c (gen_help_event): Add parameter SIZE.
8001 (kbd_buffer_events_waiting): Slightly rewritten.
8002 (clear_event): New function.
8003 (kbd_buffer_get_event): Use it, and clear the input_events of
8004 HELP_EVENTs.
8005 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8006 don't fill the newly created array with nils.
8007 (toplevel): Convert some old-style function forward declarations
8008 to prototypes.
8009
8010 * keyboard.h (gen_help_event): Change prototype.
8011
8012 * xterm.c (XTread_socket): Change calls to gen_help_event.
8013
8014 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8015
6917e6bb
GM
8016 * eval.c (Fmacroexpand): Doc fix.
8017
e5cd3d11
JR
80182000-08-20 Jason Rumney <jasonr@gnu.org>
8019
8020 * w32term.h (x_display_info_for_display): Remove as this function
8021 does not exist on W32.
8022
8023 * w32term.c (help_echo_window): New variable.
8024 (syms_of_w32term): staticpro it.
8025 (note_mode_line_highlight): Set it.
8026 (XTextExtents16): Removed as there is no equivalent on W32.
8027 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8028 the X way of doing this will not work for W32.
8029 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8030 (x_draw_image_foreground): Avoid drawing outside of the clip area
8031 when image doesn't have a mask.
8032 (note_mouse_highlight): Process overlays in the right order of
8033 priority. Set help_echo_window.
8034 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8035 because that's more visible for large images.
8036
8037 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8038 name to single_keymap_panes.
8039 (w32_menu_show): Set wv->title when dealing with titles.
8040 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8041
6e69ab8c
MB
80422000-08-21 Miles Bader <miles@gnu.org>
8043
8044 * minibuf.c (do_completion): Try again if we rewrite the input
8045 string, but no completion was done, so that any completion message
8046 will be correct.
8047
511bd4eb
GM
80482000-08-20 Gerd Moellmann <gerd@gnu.org>
8049
8050 * xfaces.c (lface_equal_p): Compare strings differently.
8051 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8052 (realize_tty_face): Use them.
8053 (syms_of_xfaces): Initialize new variables.
8054 (map_tty_color): New function, extracted from realize_tty_face.
8055 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8056 foreground or background color, store the new color name in the
8057 realized face; previous code trying to do this had no effect.
8058 (realize_tty_face): Use map_tty_color.
8059 (Fclear_face_cache): Set face_change_count and ensure thorough
8060 redisplay.
8061
1433385f
GM
80622000-08-19 Gerd Moellmann <gerd@gnu.org>
8063
511bd4eb
GM
8064 * undo.c (record_first_change, record_marker_adjustment): Don't
8065 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 8066
419ac0a2
KH
80672000-08-18 Kenichi Handa <handa@etl.go.jp>
8068
8069 * coding.c (decode_coding_string): Set members consumed,
8070 consumed_char, produced, produced_char of *coding correctly. If
8071 decode_coding doesn't consume any byte, don't try anymore.
8072 (encode_coding_string): Likewise.
8073
7eb9e30d
GM
80742000-08-18 Gerd Moellmann <gerd@gnu.org>
8075
511bd4eb
GM
8076 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8077 conditional have void type, for Standard C compilers.
7eb9e30d
GM
8078
8079 * xdisp.c (redisplay_internal): Compare windows for equality with
8080 EQ, instead of applying XWINDOW to something that might not
8081 be a window.
52283633 8082
dd34a735
KH
80832000-08-18 Kenichi Handa <handa@etl.go.jp>
8084
8085 * fontset.c (Finternal_char_font): Search only the selected frame
8086 for a window of the current buffer.
8087
385ff9e3
GM
80882000-08-18 Gerd Moellmann <gerd@gnu.org>
8089
511bd4eb 8090 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
8091 Lisp_Objects.
8092
385ff9e3
GM
8093 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8094 second half of a HELP_EVENT is found at the start of kbd_buffer.
8095
d6abb4c7
MB
80962000-08-18 Miles Bader <miles@gnu.org>
8097
4618074a
MB
8098 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8099
d6abb4c7
MB
8100 * editfns.c (save_restriction_save): Rewrite to use markers.
8101 (save_restriction_restore): Rewrite to understand new form of data
8102 saved by save_restriction_save.
8103 (Fsave_restriction): Remove cautionary note in doc-string.
8104
a7b28523
GM
81052000-08-17 Gerd Moellmann <gerd@gnu.org>
8106
8107 * fileio.c (build_annotations): Add a comment explaining the
8108 return value of format-annotate-function. Replace a spurious call
8109 to Flength with a CONSP test. Call format-annotate-function with
8110 a fifth arg specifying how many times the function is been called
8111 in a row, to let it choose temporary buffers appropriately.
8112
03c9ed77
DL
81132000-08-17 Dave Love <fx@gnu.org>
8114
8115 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8116 declare make_temp_name twice.
8117
52283633 8118 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
8119 (unreadpure): Give it an arg.
8120
8121 * unexalpha.c: Prototype fatal_unexec, mark_x,
8122 update_dynamic_symbols. Declare unexec as void.
8123
8124 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8125 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8126
8127 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 8128 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
8129
8130 * alloca.c: Use #error.
8131 [POINTER_TYPE]: Use it.
8132
8133 * eval.c (Fdefvar): Doc fix.
8134
8135 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8136 INITIALIZE_INTERVAL.
8137
8138 * buffer.h: Avoid DECLARE_INTERVALS.
8139
8140 * config.in: Add size_t.
8141
aae41d97
EZ
81422000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8143
8144 * w16select.c (set_clipboard_data): If there's not enough memory
8145 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8146 expects. In case of other failures, return 3.
8147 (system_error_msg): New error message.
8148 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8149 system_error_msg.
8150
65aa5e85
GM
81512000-08-16 Gerd Moellmann <gerd@gnu.org>
8152
8153 * term.c (write_glyphs): Also turn off inverse video after turning
8154 off other appearances in case TS_exit_attribute_mode is not equal
8155 to TS_end_standout_mode.
8156 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8157 with the same face.
8158 (turn_off_face): Reset standout_mode only if
8159 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8160 is equal to TS_end_standout_mode.
8161
ece23901
KH
81622000-08-16 Kenichi Handa <handa@etl.go.jp>
8163
9d7bcb2e
KH
8164 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8165 sequence at the end of the source block.
8166
ece23901
KH
8167 * ccl.c (Fccl_program_p): Docstring modified.
8168 (Fccl_execute): Likewise.
8169 (Fccl_execute_on_string): Likewise.
8170
5e30eaa2
EZ
81712000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8172
8173 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8174
290602fd
KH
81752000-08-16 Kenichi Handa <handa@etl.go.jp>
8176
8177 The following changes are mainly to fix bugs of
8178 encode/decode-coding-string failing if encoding/decoding return
8179 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8180 variable conversion_buffer.
8181
8182 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8183 decrement dst_end to avoid buffer overflow in the later call of
8184 string_as_multibyte
8185
8186 * coding.h (conversion_buffer_size, conversion_buffer)
8187 (get_conversion_buffer): Extern deleted.
8188
8189 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8190 (conversion_buffer, conversion_buffer_size): Variables deleted.
8191 (get_conversion_buffer): Function deleted.
8192 (struct conversion_buffer): New structure.
8193 (MAX_ALLOCA): New macro.
8194 (allocate_conversion_buffer): New macro.
8195 (extend_conversion_buffer, free_conversion_buffer): New functions.
8196 (ccl_coding_driver): Set coding->result.
8197 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8198 this is the last block of source.
8199 (encode_coding): Likewise. Handle the source block as the last
8200 one only when the whole source text is consumed.
8201 (decode_coding_string): Handle the case that the output buffer is
8202 too small to decode the whole source text. Use
8203 allocate_conversion_buffer, extend_conversion_buffer and
8204 free_conversion_buffer, not get_conversion_buffer.
8205 (encode_coding_string): Likewise.
8206 (init_coding): Function deleted.
52283633 8207 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
8208
8209 * emacs.c (main): Don't call init_coding.
8210
52283633 8211 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
8212
8213 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8214 (insert_glyphs): Likewise.
8215
8216 * w32console.c (write_glyphs): Use a locally declared
8217 conversion_buffer.
8218
b9f80d41
EZ
82192000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8220
8221 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8222 member of display_info is NULL.
8223
32dc52f7
GM
82242000-08-15 Gerd Moellmann <gerd@gnu.org>
8225
52283633 8226 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 8227
32dc52f7 8228 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 8229 appearances with capability `me'.
32dc52f7
GM
8230 (write_glyphs): Switch on inverse video before each face change.
8231
4eb22d33
DL
82322000-08-14 Dave Love <fx@gnu.org>
8233
8234 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8235 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8236 (lisp_free): Declare and make static.
8237
8238 * window.c: Fix embedded comment.
8239 (syms_of_window): Fix doc string.
8240
90cbf47e
GM
82412000-08-14 Gerd Moellmann <gerd@gnu.org>
8242
52283633 8243 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
8244 make sure to print `C-' before `M-', like in the manual.
8245
440fc135
GM
82462000-08-11 Gerd Moellmann <gerd@gnu.org>
8247
8248 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8249 since they aren't relocated anymore.
52283633 8250 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
8251
8252 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 8253 partially visible line which is smaller than the window's height.
440fc135 8254
6e264fad
KH
82552000-08-11 Kenichi Handa <handa@etl.go.jp>
8256
8257 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 8258 the multibyte form of eight-bit-control characters.
6e264fad
KH
8259 (Fccl_execute_on_string): Initialize ccl->multibyte.
8260
8261 * ccl.h (struct ccl_program): New member multibyte.
8262
8263 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8264
c371f69a
KH
82652000-08-11 Kenichi Handa <handa@etl.go.jp>
8266
8267 * regex.c (regex_compile) <normal_char>: Pay attention to
8268 multibyteness.
8269 (analyse_first) <exactn>: Setup fastmap correctly for
8270 eight-bit-control characters.
8271
82722000-08-11 Kenichi Handa <handa@etl.go.jp>
8273
52283633 8274 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
8275
8276 * keyboard.c (make_lispy_event): Handle the new event type
8277 multibyte_char_keystroke.
8278
8279 * xterm.c: Include coding.h.
8280 (XTread_socket): Work around a bug of XmbLookupString. If the
8281 input is from XIM, decode it according to the current locale. In
8282 that case, generate multibyte_char_keystroke events.
8283
b8ddbe71
KH
82842000-08-11 Kenichi Handa <handa@etl.go.jp>
8285
8286 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8287 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8288
47589c8c
GM
82892000-08-10 Gerd Moellmann <gerd@gnu.org>
8290
8291 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8292 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8293 (move_it_in_display_line_to): Record iterator's ascent and descent
8294 before producing glyphs, and restore them when we know the glyph
8295 doesn't fit on the line.
8296 (move_it_to): Restructured so that it's easier to debug. If
8297 moving to a vpos, and not moving to an x or character position,
8298 stop as soon as the specified vpos is reached; don't move further
8299 into that line because that might change the computed line height.
8300 (try_cursor_movement): New function, extracted from the cursor
8301 movement branch of redisplay_window. If ending on a partially
8302 visible line, don't try to scroll if the cursor line is taller
8303 than the window.
8304 (redisplay_window): Use try_cursor_movement.
8305
8306 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8307 because that function doesn't cope with variable-height lines.
8308
8309 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8310 box cursor because that's better visible for large images.
52283633 8311
c51bacd6
MB
83122000-08-10 Miles Bader <miles@gnu.org>
8313
8314 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8315
bea56df7
GM
83162000-08-10 Gerd Moellmann <gerd@gnu.org>
8317
8318 * xdisp.c (Vmessages_buffer_name): New variable.
8319 (message_dolog): Use it.
8320 (syms_of_xdisp): Initialize it.
8321
99cd7364
EZ
83222000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8323
52283633 8324 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
8325 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8326 redundant now that keyboard.h is included.
8327
7d093d56
EZ
83282000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8329
8330 * keyboard.c (kbd_buffer_events_waiting): New function.
8331
8332 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8333
8334 * msdos.c: Include keyboard.h.
8335 (XMenuActivate): Empty no_event events from the event buffer. If
8336 no events are left after that, call clear_input_pending.
8337 (mouse_clear_clicks): New function, code moved from mouse_init.
8338 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8339 mouse driver to ``forget'' any past clicks.
8340
8341 * Makefile.in (msdos.o): Depend on keyboard.h.
8342
41e757a6
GM
83432000-08-09 Gerd Moellmann <gerd@gnu.org>
8344
8e7bd231
GM
8345 * lisp.h (input_pending): External declaration.
8346
8347 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 8348
8e7bd231
GM
8349 * xdisp.c (echo_area_display): Display thoroughly if input is
8350 pending. Bind redisplay-dont-pause to t during the redisplay.
8351 in case input is pending.
8352
8353 * dispnew.c (Qredisplay_dont_pause): New variable.
8354 (syms_of_display): Initialize and staticpro it.
8355 (update_frame_1): Don't interrupt the display for pending input if
8356 redisplay_dont_pause is set.
52283633 8357
43028b7e
GM
8358 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8359
41e757a6
GM
8360 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8361
2f2174fa
KH
83622000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8363
8364 * callproc.c (Fcall_process): Terminate the unwind-protect around
8365 the post-read-conversion of coding system.
8366
0a6fd67e
MB
8367 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8368 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8369 * buffer.h (overlays_at): Update prototype.
8370 * xdisp.c (next_overlay_change): Update call to overlays_at.
8371 * xfaces.c (face_at_buffer_position): Likewise.
8372 * textprop.c (Fget_char_property): Likewise.
8373 * xterm.c (note_mouse_highlight): Likewise.
8374
0c80756e
MB
8375 * minibuf.c (do_completion): Don't consider a simple change of
8376 case as `completion'.
8377
975f250a
KR
83782000-08-08 Ken Raeburn <raeburn@gnu.org>
8379
52283633 8380 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
8381 * undo.c (record_delete): Make sure last_point_position_buffer is
8382 a buffer before comparing pointers.
8383
8384 * coding.h (decode_coding_string): Declare.
8385
8386 * intervals.h (Fprevious_single_char_property_change): Declare.
8387
8388 * textprop.c (Fprevious_single_char_property_change): Don't do
8389 arithmetic directly on lisp objects.
8390
52283633 8391 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
8392
8393 * keyboard.h (menu_item_eval_property): Declare.
8394
8395 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8396 reuse as buffer name, instead of recreating (and discarding) every
8397 time a message is logged.
8398 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
8399 (current_message_1, truncate_message_1, set_message_1)
8400 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8401 (current_message, truncate_echo_area, display_echo_area)
8402 (resize_echo_area_axactly): Changed calls.
b347b3fd 8403
975f250a 8404 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 8405 Lisp object.
975f250a 8406 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 8407 must be an integer, not a Lisp object.
975f250a 8408
46dc9912
KH
84092000-08-08 Kenichi Handa <handa@etl.go.jp>
8410
8411 * charset.c (Fchar_width): Doc fix.
8412
9f6d1a6c
GM
84132000-08-08 Gerd Moellmann <gerd@gnu.org>
8414
8415 * charset.c (Fstring_width): Doc fix.
8416
ff3d9573
GM
84172000-08-07 Gerd Moellmann <gerd@gnu.org>
8418
41e757a6 8419 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
8420 line, clear ascent and descent members of the iterator structure;
8421 the height of the continued line does not affect the height of the
8422 continuation line.
8423 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8424 line taller than the window.
8425 (redisplay_window) <forced window start>: Handle case that the
8426 middle of the window is not found in any row.
8427 (dump_glyph_row): Show more information.
8428 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8429 first text line in a glyph matrix.
8430
8431 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8432 of the clip area when image doesn't have a mask.
8433
70fc58b3
GM
8434 * fns.c (sweep_weak_table): Fix survival conditions for
8435 key-or-value and key-and-value weakness.
8436
8437 * .gdbinit (xhashtable): New command.
8438
ac0e96ee
GM
8439 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8440 tables out of the list of all weak hash tables.
8441
ff3d9573
GM
8442 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8443 a new buffer is created, make sure echo_area_buffer[] references
8444 the new buffer.
8445
e0d8827b
EZ
84462000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8447
8448 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8449 the doc string.
8450
c6f35378
KH
84512000-08-07 Kenichi Handa <handa@etl.go.jp>
8452
8453 * syntax.c (skip_chars): Fix previous change. Make the handling
8454 of unibyte string consistent with that of regex search.
8455
1fd4c450
GM
84562000-08-05 Gerd Moellmann <gerd@gnu.org>
8457
e49aa397
GM
8458 * xmenu.c (popup_get_selection): Use xfree instead of free.
8459
8460 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8461
8462 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8463
8464 * callproc.c (child_setup): Use xfree instead of free.
8465
8466 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8467 instead of malloc.
8468 (run_mac_command, closedir): Use `xfree' instead of `free'.
8469
8470 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8471
8472 * eval.c (error): Use xfree instead of free.
8473
1fd4c450
GM
8474 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8475
8476 * fns.c: Replace `illegal' with `invalid'.
e49aa397 8477 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 8478
82d497fc
KH
84792000-08-05 Kenichi Handa <handa@etl.go.jp>
8480
8481 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8482 conversion.
8483
59f953a2
NF
84842000-08-04 Noah Friedman <friedman@splode.com>
8485
8486 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8487 docstring.
8488
688351f2
GM
84892000-08-04 Gerd Moellmann <gerd@gnu.org>
8490
8491 * syntax.c (skip_chars): Fix typo in error message.
8492
2dad51cc
AS
84932000-08-04 Andreas Schwab <schwab@suse.de>
8494
8495 * m/ia64.h: Moved from s/ia64.h.
8496
99bb2c60
KH
84972000-08-04 Kenichi Handa <handa@etl.go.jp>
8498
082a1df2
KH
8499 * process.c (read_process_output): Big simplification. Handle
8500 composition and post-read-conversion of coding system correctly.
8501 (send_process): Handle composition correctly.
8502
8503 * callproc.c (Fcall_process): Handle post-read-conversion of
8504 coding system if any.
8505
99bb2c60
KH
8506 * coding.c (decode_coding_iso2022): More strict check for handling
8507 single shifting.
082a1df2
KH
8508 (coding_restore_composition): Pay attention to the case that
8509 cmp_data is not set properly (because of invalid code in the
8510 source text).
8511 (run_pre_post_conversion_on_str): Include text properties in the
8512 resulting string.
8513 (decode_coding_string): Set members of coding correctly.
99bb2c60 8514
f4988be7
GM
85152000-08-03 Gerd Moellmann <gerd@gnu.org>
8516
8517 * s/ia64.h: New file.
8518
8519 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8520 Use NULL instead of 0 at the end of variable argument list of
8521 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8522 sizeof (int) < sizeof (void *).
8523
8524 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8525 of variable argument lists of XtVaGetValues and XtVaSetValues.
8526
8527 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8528 variable argument lists of XtVaGetValues and XtVaSetValues.
8529
ead53494
GM
85302000-08-02 Gerd Moellmann <gerd@gnu.org>
8531
8532 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8533 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8534
8535 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8536 prototype.
8537
8538 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8539 in call to Fsingle_key_description.
8540
8541 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8542 Callers changed.
8543
85442000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8545
8546 * window.c (display_buffer_reuse_frames): New variable.
8547 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8548 frames displaying BUFFER.
52283633 8549 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 8550
10b0f752
MB
85512000-08-01 Miles Bader <miles@gnu.org>
8552
8553 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8554 when to constrain NEW_POS (they were pretty screwed up before).
8555
16425c4a
EZ
85562000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8557
8558 * msdos.c (run_msdos_command): Save and restore the master
8559 environment, for the case that child_setup signals an error.
8560 When mirroring slashes in DOS shell commands, don't fail when
8561 argv[2] has embedded blanks.
da288c14
EZ
8562 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8563 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8564 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
8565
8566 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8567 using alloca; free it after run_msdos_command returns.
8568
27f73852
DL
85692000-07-27 Dave Love <fx@gnu.org>
8570
52283633
SM
8571 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8572 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
8573
8574 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8575
c0261b5e
EZ
85762000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8577
8578 * editfns.c (lisp_time_argument): Fix last change.
8579
b548072f
GM
85802000-07-27 Gerd Moellmann <gerd@gnu.org>
8581
3ab82477
GM
8582 * fns.c (Fdelete): Make it work on vectors and strings in addition
8583 to lists.
8584
b548072f
GM
8585 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8586 (syms_of_fns): Initialize new variables.
52283633 8587 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
8588 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8589 weakness, with t meaning the same as `key-and-value'.
8590
91ae8751
KH
85912000-07-27 Kenichi Handa <handa@etl.go.jp>
8592
8593 * coding.h (struct coding_system): Member safe_charset deleted.
8594
8595 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
8596 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8597 New variables.
91ae8751
KH
8598 (coding_safe_chars): New function.
8599 (CODING_SAFE_CHAR_P): New macro.
8600 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 8601 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
8602 (detect_coding_iso2022): New local variable safe_chars.
8603 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8604 safe_charsets member of the coding system.
8605 (decode_coding_iso2022): New local variable safe_chars.
8606 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8607 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8608 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8609 (ENCODE_UNSAFE_CHARACTER): New macro.
8610 (encode_coding_iso2022): New local variable safe_chars. Check
8611 unsafe chars.
8612 (setup_coding_system): Delete the code to initialize
8613 coding->safe_charses
8614 (intersection, find_safe_codings): New functions.
8615 (Ffind_coding_systems_region_internal): New function.
8616 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8617 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8618 variable and initialize it.
8619
8620 * fns.c (char_table_ref_and_index): New function.
8621
8622 * lisp.h (char_table_ref_and_index): Add prototype.
8623
34a7a267
SS
86242000-07-26 Sam Steingold <sds@gnu.org>
8625
8626 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 8627 (Ffloat_time): New built-in Lisp function.
34a7a267 8628
a95cb10a
GM
86292000-07-26 Gerd Moellmann <gerd@gnu.org>
8630
3353ef5a
GM
8631 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8632 for the character code.
8633
8634 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8635 GNU/Linux.
8636
a95cb10a
GM
8637 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8638 if called for a popup menu.
8639 (xmenu_show): Store help string in widget values.
8640
b4a12321
DL
86412000-07-26 Dave Love <fx@gnu.org>
8642
8643 * syswait.h: Move some definitions.
8644 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8645 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8646 perspicuous definitions.
8647 (WTERMSIG): Fix bit pattern used.
8648
13f5ad37
KH
86492000-07-26 Kenichi Handa <handa@etl.go.jp>
8650
8651 * print.c (print_object): If vector printing is truncated, print
8652 "..." to indicate it as well as the case of list printing.
8653
070fe99c
GM
86542000-07-25 Gerd Moellmann <gerd@gnu.org>
8655
969065c3
GM
8656 * xdisp.c (next_element_from_display_vector): Improve comments.
8657
8658 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8659 for the character code, and the rest for the face id as in 20.x.
8660 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8661
8662 * window.c (window_display_table): Cleaned up.
8663
070fe99c
GM
8664 * syntax.c (Fforward_word): Add last arg nil in call of
8665 Fconstrain_to_field.
8666
bad77ef7
EZ
86672000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8668
969065c3 8669 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
8670 identical but for the letter-case, don't call
8671 barf_or_query_if_file_exists.
bad77ef7 8672
c28da489
MB
86732000-07-25 Miles Bader <miles@gnu.org>
8674
8675 * editfns.c (find_field): Honor special `boundary' fields.
8676 (Qboundary): New variables.
8677 (syms_of_editfns): Initialize Qboundary.
8678 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8679 Use scan_buffer instead of find_before_next_newline, because it
8680 allows us to detect the boundary case where there's a newline at
8681 the search limit.
8682 * lisp.h (Fconstrain_to_field): Update external declaration.
8683
e3c31fd5
GM
86842000-07-24 Gerd Moellmann <gerd@gnu.org>
8685
8686 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8687 if that is nil.
c28da489 8688
c66c29a2
DL
86892000-07-24 Dave Love <fx@gnu.org>
8690
8691 * s/sunos4-0.h, s/sol2.h:
8692 (LIBS_TERMCAP): Move from m/sparc.h.
8693
8694 * m/sparc.h (TERMINFO): Moved to system files (probably only
8695 relevant for sunos4 judging by its vintage).
8696 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8697 __arch64__.
8698
fbe0a958
EZ
86992000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8700
8701 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8702 name to single_keymap_panes.
8703
7d88e5c9
AS
87042000-07-24 Andreas Schwab <schwab@suse.de>
8705
8706 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8707
e024b101
GM
87082000-07-24 Gerd Moellmann <gerd@gnu.org>
8709
8710 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8711 parameters instead of using int parameters. Expect FN to accept
8712 EMACS_INT parameters.
8713 (display_echo_area, resize_echo_area_axactly, current_message)
8714 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8715 with new argument list.
8716 (resize_mini_window_1): New callback function.
8717 (current_message_1, truncate_message_1, set_message_1): Change
52283633 8718 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 8719
25c1a9ce
KH
87202000-07-24 Kenichi Handa <handa@etl.go.jp>
8721
8722 * fontset.c (fontset_ref): Remove INLINE declaration.
8723 (fontset_ref_via_base): Likewise.
8724 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8725 to downcase.
8726
7f987ac0
EZ
87272000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8728
8729 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8730 correct order of priority. If help echo was found in an overlay,
8731 use that overlay as the object in which the help echo was found.
8732
e2db3069
MB
87332000-07-22 Miles Bader <miles@gnu.org>
8734
8735 * textprop.c (Fprevious_single_char_property_change): The initial
8736 property value should be from the position preceding POSITION, not
8737 following it.
8738
5e3203e4
EZ
87392000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8740
8741 * coding.c (syms_of_coding): Doc fix for
8742 inhibit-iso-escape-detection.
8743
62145073
GM
87442000-07-21 Gerd Moellmann <gerd@gnu.org>
8745
c20aeb83
GM
8746 * xterm.c (note_mouse_highlight): Process overlays in the right
8747 order of priority.
34a7a267 8748
743934db
GM
8749 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8750
8751 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 8752 overlay, use that overlay as the object in which the help was found.
743934db 8753
d1dc7e43 8754 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 8755
62145073
GM
8756 * window.c (foreach_window): Instead of a fake variable argument
8757 list, take one USER_DATA argument.
8758 (foreach_window_1): Likewise, and call callback functions with two
8759 args, the window and USER_DATA.
8760 (struct check_window_data): New struct.
8761 (check_window_containing): Use it.
8762 (window_from_coordinates): Set up a struct check_window_data for
8763 foreach_window.
8764 (add_window_to_list, freeze_window_start): Change parameters
8765 according to new calling convention.
8766
8767 * window.h (foreach_window): Change prototype.
8768
8769 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8770
87712000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8772
8773 * xmenu.c (menu_help_callback): Call show_help_echo with
8774 additional arguments OBJECT and POS.
8775
11270583
KH
87762000-07-21 Kenichi Handa <handa@etl.go.jp>
8777
07b14857
KH
8778 * data.c (Faset): Allow storing any multibyte character in a
8779 string. Convert unibyte string to multibyte if necessary.
8780
11270583
KH
8781 * xfns.c (x_encode_text): New function.
8782 (x_set_name): Use x_encode_text.
8783 (x_set_title): Likewise.
8784
8785 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8786
8787 * xterm.h (x_encode_text): Add prototype.
8788
bc75b4fd
DL
87892000-07-20 Dave Love <fx@gnu.org>
8790
8791 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8792 xfree, not free.
8793
48c14970
EZ
87942000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8795
8796 * msdos.c (help_echo_window): New variable.
8797 (syms_of_msdos): Initialize and staticpro it.
8798 (IT_note_mode_line_highlight): Set help_echo_window.
8799 (IT_note_mouse_highlight): Ditto.
8800 (dos_rawgetc): Store help_echo_window in the second event produced
8801 for HELP_EVENTs.
8802
8803 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8804 Record the object that generated the help echo and the position of
8805 that object in help_echo_object and help_echo_pos. Record that
8806 some glyphs in a row are displayed in mouse-face.
8807 (IT_update_begin): Don't clear mouse highlight unless one of the
8808 enabled glyph rows is marked as being displayed in mouse-face.
8809 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8810 and position recorded in help_echo_object and help_echo_pos to the
8811 event queue.
8812 (IT_menu_display): Accept a new argument PN: the pane number of
8813 the current menu pane. Record the pane number and the item
8814 number of the item which has associated help string.
8815 (XMenuActivate): Update the prototype for help_callback in
8816 function declaration. Call IT_menu_display with the current menu
8817 pane number as an additional argument. Call help_callback with
8818 two additional arguments: the pane number and the item number of
8819 the menu item associated with the help text.
8820 (help_echo_object, help_echo_pos): New variables.
8821 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8822
8823 * msdos.h (XMenuActivate): Update prototype.
8824
4279296d
GM
88252000-07-19 Gerd Moellmann <gerd@gnu.org>
8826
47db06aa
GM
8827 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8828 Add some more prototypes.
8829
8830 * xterm.c, xterm.h: Add some more prototypes.
8831
8832 * lisp.h (Fnext_single_char_property_change): Add prototype.
8833
8834 * dispnew.c (direct_output_for_insert): Remove confusing
8835 outer local variable mouse_face_overwritten_p.
8836 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8837
4279296d
GM
8838 * alloc.c (allocate_string_data): Don't copy old string contents.
8839
670acd62
KH
88402000-07-19 Kenichi Handa <handa@etl.go.jp>
8841
8842 * coding.c (code_convert_region): Delete text properties before
8843 shrinking the conversion region.
8844
7cea38bc
GM
88452000-07-18 Gerd Moellmann <gerd@gnu.org>
8846
dc1cac59
GM
8847 * dispnew.c (update_text_area): Write the whole row if it
8848 has mouse-face in it.
8849
85a8aca9
GM
8850 * xfaces.c (face-alternative-font-family-alist): Remove
8851 DEFVAR_LISP; staticpro instead.
8852
34a7a267 8853 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
8854 new arguments.
8855
8856 * keyboard.c (show_help_echo): Add parameter WINDOW.
8857 (read_char): Call show_help_echo with window extracted from Lisp
8858 help event.
8859 (gen_help_event): Add parameter WINDOW.
8860
8861 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8862
8863 * xterm.c (help_echo_window): New variable.
52283633 8864 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
8865 (XTread_socket): Pass help_echo_window to gen_help_event.
8866 (syms_of_xterm): Initialize and staticpro help_echo_window.
8867
f8276b77
DL
88682000-07-18 Dave Love <fx@gnu.org>
8869
52283633 8870 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 8871
088831a6
GM
88722000-07-18 Gerd Moellmann <gerd@gnu.org>
8873
3d6cd763
GM
8874 * alloc.c (allocate_string_data): If string had already data
8875 assigned, copy old contents to new string data.
8876
8877 * coding.c (syms_of_coding): Fix typo in spelling of variable
8878 `inhibit-iso-escape-detection'.
8879
088831a6
GM
8880 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8881
8882 * Makefile.in: Add dependencies on dispextern.h.
8883 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8884 `free'; both can conflict with system header files.
8885
bc8a8d55
KH
88862000-07-18 Kenichi Handa <handa@etl.go.jp>
8887
8888 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8889 undefined.
8890
069f5950
DL
88912000-07-18 Dave Love <fx@gnu.org>
8892
8893 * window.c (Fwindow_list): Declare arg `window'.
8894
aa96c820
KH
88952000-07-18 Kenichi Handa <handa@etl.go.jp>
8896
8897 * coding.c (setup_coding_system): Don't override the explicitly
8898 specified designations.
8899
06be8d32
MB
89002000-07-15 Miles Bader <miles@gnu.org>
8901
8902 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8903 from `text_property_eq' and `text_property_stickiness', respectively.
8904 (find_field, Fconstrain_to_field, char_property_eq)
8905 (char_property_stickiness): Changed to call char-property functions
8906 instead of text-property-only ones.
8907
8908 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8909 `next_single_char_property_change'). Do more error checking, and
8910 cleanup limit behavior.
8911 (Fprevious_single_char_property_change): New function.
8912 (syms_of_textprop): Initialize new subrs.
8913
8914 * xdisp.c (display_prop_end, invisible_text_between_p):
8915 Call Fnext_single_char_property_change instead of
8916 next_single_char_property_change.
8917
3fddcdc3
JR
89182000-07-15 Jason Rumney <jasonr@gnu.org>
8919
8920 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8921 after menu is finished with.
8922 (add_menu_item): Only consider wv->title as a menu title.
8923 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8924
8925 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8926 null title.
8927 (FONT_REGEXP): Remove unused macro, and its sub-components.
8928 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8929
8930 * w32term.c (help_echo_object, help_echo_pos): New variables.
8931 (note_mode_line_highlight): Store additional information about the
8932 help-echo in help_echo_object and help_echo_pos. Check both
8933 `local-map' and `keymap' properties for changing the cursor
8934 (note_mouse_highlight): Store additional information about the
8935 help-echo in help_echo_object and help_echo_pos.
8936 (note_tool_bar_highlight): Set help_echo_object to nil and
8937 help_echo_pos to -1.
8938 (w32_read_socket): Use gen_help_event instead of filling
8939 input_events manually.
8940 (syms_of_w32term): Staticpro help_echo_object.
8941 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 8942 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
8943 (x_clear_mouse_face): New function.
8944 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8945 (x_update_window_begin): No need to turn off the mouse
8946 highlight here.
8947 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 8948 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
8949 (x_fill_stretch_glyph_string): Consume runs of stretch
8950 glyphs instead of a single one.
8951 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8952 with new argument list.
8953 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8954 (x_append_glyph, x_append_composite_glyph)
8955 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8956 changes in struct glyph starting 1999-12-27. See comments for
8957 xterm.c on 2000-07-05.
8958
178c5d9c
SS
89592000-07-14 Sam Steingold <sds@gnu.org>
8960
8961 * xfaces.c (realize_x_face): Fix the last patch:
8962 check `default_face' before dereferencing.
8963
6fe533f6
DL
89642000-07-14 Dave Love <fx@gnu.org>
8965
069f5950 8966 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 8967
dd7b81cf
KH
89682000-07-14 Kenichi Handa <handa@etl.go.jp>
8969
0693904a 8970 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 8971 default_face's fontset, not using the default fontset.
0693904a 8972
dd7b81cf
KH
8973 * coding.c (inhibit_iso_escape_detection): New variable.
8974 (syms_of_coding): Make it a Lisp variable.
8975 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8976 nonzero, ignore ISO2022's escape sequence.
8977
d5aa31d8
GM
89782000-07-14 Gerd Moellmann <gerd@gnu.org>
8979
e5acf0ca
GM
8980 * alloca.c (malloc) [emacs]: Define as xmalloc.
8981
bd23a692
GM
8982 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8983 use that instead of the mouse position. Add parameters DX and DY.
8984
8985 * dispextern.h (Fx_show_tip): Adjust number of parameters
8986 in prototype.
8987
9662da0b
GM
8988 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8989 if HELP is a function, call it with OBJECT and POS as parameters
8990 to get the help to display.
8991 (gen_help_event, kbd_buffer_store_help_event): New functions.
8992 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8993 (read_char): Call show_help_echo with new parameters.
8994
178c5d9c 8995 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
8996 Add prototypes.
8997
8998 * xterm.c (help_echo_object, help_echo_pos): New variables.
8999 (note_mode_line_highlight): Store additional information about the
9000 help-echo in help_echo_object and help_echo_pos. Check both
9001 `local-map' and `keymap' properties for changing the cursor
9002 (note_mouse_highlight): Store additional information about the
9003 help-echo in help_echo_object and help_echo_pos.
9004 (note_tool_bar_highlight): Set help_echo_object to nil and
9005 help_echo_pos to -1.
9006 (XTread_socket): Use gen_help_event instead of filling
9007 input_events manually.
9008 (syms_of_xterm): Staticpro help_echo_object.
9009
9010 * xmenu.c (menu_highlight_callback): Use
9011 kbd_buffer_store_help_event instead of setting up and input_event
9012 structure manually.
9013
9014 * xdisp.c (eval_form): GCPRO argument sexpr.
9015 (call_function): New function.
9016 (handle_single_display_prop): Use call_function and FUNCTIONP
9017 instead of checking whether if font_height is a symbol and
9018 using eval_form.
9019
9020 * eval.c (internal_condition_case_2): New function.
9021
9022 * lisp.h (FUNCTIONP): New macro.
9023 (internal_condition_case_2, call_function): Add prototypes.
9024
d5aa31d8
GM
9025 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9026 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9027 Always set `arg' member of input_events.
9028 (construct_menu_click): Unused function removed.
9029
9030 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9031
9032 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9033 (construct_drag_n_drop, x_scroll_bar_handle_click)
9034 (w32_read_socket): Always set `arg' member of input_events.
9035
9036 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9037
9038 * lisp.h (eval_form): Add prototype.
9039
9040 * xdisp.c (eval_form): Make it externally visible.
9041
0f1a9b23
GM
90422000-07-13 Gerd Moellmann <gerd@gnu.org>
9043
9044 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9045 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9046 consing. For prefix events, store the frame in the `arg' slot of
9047 the event, otherwise store the key there.
9048 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 9049 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
9050
9051 * xmenu.c (menu_highlight_callback): Store help string in the
9052 `arg' member of the input event; don't cons.
9053 (menubar_selection_callback): Use the `arg' slot of input events
9054 to queue additional information, instead of consing.
9055
9056 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9057
9058 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9059 TOOL_BAR_EVENTs.
9060 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9061
9062 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9063 input events to queue additional information, instead of consing.
9064
9065 * keyboard.c (kbd_buffer_gcpro): Renamed from
9066 kbd_buffer_frame_or_window. Now used for all Lisp objects
9067 referenced from the input queue.
9068 (kbd_buffer_store_event): Always use structure assignment for
9069 copying input events. Record all Lisp objects referenced from
9070 events in kbd_buffer_gcpro.
9071 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9072 differently from input events. Test for prefix menu_bar_events
9073 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9074 event in kbd_buffer_gcpro to nil.
9075 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9076 frame_or_window is equal to its arg member as prefix events.
9077 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9078 used by an input event to nil.
9079 (init_keyboard): Use two times the size of the input queue
9080 for kbd_buffer_gcpro.
9081 (syms_of_keyboard): Likewise.
9082
52283633
SM
9083 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9084 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
9085
9086 * termhooks.h (struct input_event): Add member `arg'.
9087 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9088 (USER_SIGNAL_EVENT): Renamed from user_signal.
9089
9090 * xfaces.c (ASET): Remove definition.
9091
9092 * lisp.h (AREF, ASET, ASIZE): New macros.
9093
9094 * fontset.c (AREF, ASIZE): Remove definitions.
9095
9096 * fns.c (AREF): Remove definition.
178c5d9c 9097
0f1a9b23
GM
9098 * composite.c (AREF): Remove definition.
9099
712eaef2
GM
91002000-07-12 Gerd Moellmann <gerd@gnu.org>
9101
d8ee7803
GM
9102 * dispnew.c (redraw_overlapped_rows): Add missing local.
9103 (scrolling_window): Remove debug code.
9104
712eaef2
GM
9105 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9106 Before scrolling, turn off a mouse-highlight in the window
9107 being scrolled.
9108
9109 * xterm.c (x_update_window_end): Add parameter
9110 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9111 redisplay in XTframe_up_to_date.
9112 (x_clear_mouse_face): New function.
9113 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9114
9115 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9116 current glyph row.
9117 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9118 it when any row is written to that contains glyphs highlighted in
9119 mouse-face.
9120 (update_window): Call the window update end hook with new
9121 parameter MOUSE_FACE_OVERWRITTEN_P.
9122 (direct_output_for_insert): Give up if row contains mouse-face.
9123
9124 * dispextern.h (struct redisplay_interface): Add parameter
9125 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9126 (clear_mouse_face): New function pointer member.
9127
02010917
SM
91282000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9129
9130 * syntax.c (back_comment): Use one switch rather than a few `if's.
9131 Obey open_paren_in_column_0_is_defun_start.
9132 When reverting to the `slow' method, try to nicely handle the case
9133 of nested comments by checking that the comment-starter we found
9134 does indeed match the comment-ender.
9135 (scan_sexps_forward, scan_sexps_forward):
9136 Ignore excessive opening parenthesis rather than throwing an error.
9137
d76c03ea
GM
91382000-07-11 Gerd Moellmann <gerd@gnu.org>
9139
9140 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9141 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9142
9143 * dispnew.c (direct_output_forward_char): Give up if currently
9144 displaying a message instead of the minibuffer contents.
9145
9146 * xterm.c (x_update_window_begin): No need to turn off the mouse
9147 highlight here.
9148 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 9149 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
9150
9151 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9152 compare the mouse_face_p flags of both rows.
9153
9154 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9155
d55ead18
EZ
91562000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9157
9158 * keyboard.c (show_help_echo): Accept additional parameter
9159 ok_to_overwrite_keystroke_echo.
9160 (read_char): Call show_help_echo with a zero
9161 ok_to_overwrite_keystroke_echo argument.
52283633 9162 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
9163 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9164 ok_to_overwrite_keystroke_echo argument.
9165 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9166 non-zero ok_to_overwrite_keystroke_echo argument.
9167
df75b1a3
GM
91682000-07-10 Gerd Moellmann <gerd@gnu.org>
9169
4b92c49a
GM
9170 * xdisp.c (try_window_id): If changes are all below what is
9171 displayed in the window, and point is in the window, we still
9172 might have to find point on the display.
9173
9174 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9175 glyphs instead of a single one.
9176 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9177 with new argument list.
9178 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9179
df75b1a3
GM
9180 * keymap.c (get_keymap_1): Add comment that this function can GC.
9181 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9182 comment that functions can GC.
9183 (Fset_keymap_parent): GCPRO arg KEYMAP.
9184
4314cf3e
EZ
91852000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9186
9187 * msdos.c (XMenuActivate): After exiting the menu, restore the
9188 echo area message and erase it.
9189
ab49ce15
KH
91902000-07-10 Kenichi Handa <handa@etl.go.jp>
9191
9192 * fontset.c (Ffontset_info): Make the return value more compatible
9193 with that of Emacs 20.
9194
090a072f
GM
91952000-07-07 Gerd Moellmann <gerd@gnu.org>
9196
9197 * eval.c (Fsignal): Handle case that backtrace_list is null.
9198
f92de4a6
KH
91992000-07-07 Kenichi Handa <handa@etl.go.jp>
9200
9201 * ccl.c (Fccl_execute): Typo fixed.
9202
dd8888a1
GM
92032000-07-06 Gerd Moellmann <gerd@gnu.org>
9204
e5c81191 9205 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 9206
dd8888a1
GM
9207 * window.c (Fwindow_list): Reverse list at the end.
9208 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9209 means allow windows on OWINDOW's frame, only.
9210 (window_loop): Simplified; use Fwindow_list.
9211
9212 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9213
485266d0
GM
92142000-07-05 Gerd Moellmann <gerd@gnu.org>
9215
9216 * xterm.c (XTread_socket): Increment handling_signal at the start,
9217 decrement it at the end.
9218
9219 * eval.c (handling_signal): New variable.
9220 (Fsignal): Abort if handling_signal is non-zero.
9221
9222 * lisp.h (handling_signal): External declaration.
178c5d9c 9223
485266d0
GM
9224 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9225
80fcd514
KR
92262000-07-05 Ken Raeburn <raeburn@gnu.org>
9227
9228 Sound support for NetBSD through "Linux emulation" support:
9229 * config.in (HAVE_SOUNDCARD_H): Undef.
9230 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9231 * Makefile.in (LIBSOUND): New variable.
9232 (LIBES): Include it.
52283633
SM
9233 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9234 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
9235 (vox_open): Use DEFAULT_SOUND_DEVICE.
9236 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9237
d5c5cddd
GM
92382000-07-05 Gerd Moellmann <gerd@gnu.org>
9239
9240 * print.c (print_error_message): If Vsignaling_function is set,
9241 show it in *Messages*.
9242
9243 * lisp.h (Vsignaling_function): External declaration.
9244
9245 * eval.c (Vsignaling_function): New variable.
9246 (Fsignal): Compute it.
9247 (syms_of_eval): Staticpro it.
9248
65171e3a
DL
92492000-07-05 Dave Love <fx@gnu.org>
9250
9251 * syswait.h: Use the autoconf recommended approach. Old code
9252 #if'd out in case we need to revert.
9253
178c5d9c 9254 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 9255
e2c46326
AI
92562000-07-05 Andrew Innes <andrewi@gnu.org>
9257
9258 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9259 when non-NULL instead of __morecore, to take account of buffer
9260 memory. This also solves a problem with spurious memory warnings
9261 on Windows.
9262
9263 * ralloc.c: Make real_morecore non-static.
9264
9265 * eval.c (internal_condition_case): Comment out abort if
9266 interrupt_input_blocked is not zero.
9267
9268 * makefile.nt: Add support for `bootstrap' and related targets.
9269 Include minimal debug info in emacs.exe in release build.
9270 Remove all dependencies on lisp.h, and fixup some others.
9271
9272 * w32.c (init_environment): Install code from 20.7 for providing
9273 default values for environment variables, based on the
9274 executable's own location.
52283633 9275 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
9276 (sys_socket): Install socket inheritance bug fix from 20.7.
9277
9278 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9279 here via blockinput.h).
9280
a027a91b
SM
92812000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9282
e4b31601
SM
9283 * w32menu.c (w32_menu_display_help):
9284 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
9285
9286 * keyboard.h (show_help_echo): Declare.
9287
9288 * keyboard.c (show_help_echo): New function, extracted from read_char.
9289 Feval its `msg' argument if it's a cons cell.
9290 (read_char): Use it.
4cf8d9d5 9291 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 9292
178c5d9c 9293 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 9294 (note_tool_bar_highlight, XTread_socket):
178c5d9c 9295 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
9296 (dos_rawgetc):
9297 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9298 (note_tool_bar_highlight, w32_read_socket):
9299 Do not gratuitously ignore non-string `help-echo' properties.
9300
88d75730
GM
93012000-07-05 Gerd Moellmann <gerd@gnu.org>
9302
969f7e79
GM
9303 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9304
71201b00
GM
9305 * window.c (delete_all_subwindows): Reset Vwindow_list.
9306
88d75730
GM
9307 * xterm.c (x_append_glyph, x_append_composite_glyph)
9308 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9309 changes in struct glyph starting 1999-12-27. Some bit-fields of
9310 struct glyph were not set, which made glyphs unequal when compared
9311 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9312 effects were the result. This also depended on the contents of
9313 memory returned by xmalloc. If flickering happens again, activate
9314 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 9315 gone with that, chances are that it is caused by something similar.
88d75730
GM
9316
9317 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 9318
88d75730
GM
9319 * dispextern.h: Add some comments.
9320
9321 * window.c (add_window_to_list): Add parameter LIST.
9322 (window_list): Order list so that, for each frame, windows are
9323 in canonical order, and so that frames appear in the list in
9324 the order given by Vframe_list.
9325 (next_window): Reverse the handling of NEXT_P.
9326
53654733
GM
93272000-07-04 Gerd Moellmann <gerd@gnu.org>
9328
87efd256
GM
9329 * window.c (Vwindow_list): New variable.
9330 (make_window, delete_window): Set Vwindow_list to nil.
9331 (check_window_containing): New function.
9332 (window_from_coordinates): Rewritten.
9333 (add_window_to_list, window_list, candidate_window_p)
9334 (decode_next_window_args, next_window): New functions.
52283633 9335 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
9336 (Fwindow_list): New function.
9337 (Fother_window): Cleaned up.
9338 (foreach_window): Add a longer "variable argument list". Let
9339 callback function return 0 to indicate that cycling over windows
9340 should stop.
9341 (foreach_window_1): Likewise.
9342 (freeze_window_start): Return int.
9343 (init_window): New function.
9344 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9345
9346 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9347 input_event with bzero.
9348 (main): Call init_window.
9349
53654733
GM
9350 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9351 a menu filter.
9352
4a8c194f
KH
93532000-07-04 Kenichi Handa <handa@etl.go.jp>
9354
9355 * composite.h (make_composition_value_copy): Extern it.
9356
9357 * composite.c (make_composition_value_copy): New function.
9358
9359 * editfns.c (Fformat): While copying text properties, make each
9360 composition property value a copy.
9361
9362 * fns.c (concat): While copying text properties, make each
9363 composition property value a copy.
9364
831a6cb0
GM
93652000-07-03 Gerd Moellmann <gerd@gnu.org>
9366
2f516940
GM
9367 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9368
178c5d9c 9369 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
9370 marked already.
9371
831a6cb0
GM
9372 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9373 include those frames as candidates which have their focus
9374 redirected to the minibuffer frame.
9375
d9c4f922
SM
93762000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9377
9378 * fns.c (Fputhash): Return `value' rather than nil.
9379
3780bc22
GM
93802000-06-30 Gerd Moellmann <gerd@gnu.org>
9381
97d176db
GM
9382 * frame.c (next_frame): Don't check focus redirection in case
9383 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
9384 unless their focus is redirected, which contradicts the
9385 specification of next-frame, and leads to infinite loops in
9386 certain situations when cycling through windows with next-window.
9387
dca9961d
KH
93882000-06-30 Kenichi Handa <handa@etl.go.jp>
9389
9390 * coding.c (code_convert_region): Even if the length of text is
9391 zero, try to convert it if coding->type is coding_type_ccl.
9392 (decode_coding_string, encode_coding_string): Likewise.
9393
d5483ab1
GM
93942000-06-28 Gerd Moellmann <gerd@gnu.org>
9395
af5c25e1 9396 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 9397 the display if windows_or_buffers_changed.
af5c25e1
GM
9398
9399 * dispnew.c (struct row_entry): New structure.
9400 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9401 (row_table_size, old_lines, new_lines, old_lines_size)
9402 (new_lines_size, run_pool, runs_size, runs): New variables.
9403 (add_row_entry): New function.
9404 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 9405 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
9406 holding them in local variables. Use a larger hash table whose
9407 size depends on glyph matrix sizes. Don't use bzero to clear the
9408 hash table; instead, clear used slots only.
9409
9410 * fns.c (next_almost_prime): Make it externally visible.
9411
9412 * lisp.h (next_almost_prime): Add prototype.
9413
d5483ab1
GM
9414 * s/isc4-0.h (sigunblock): Define.
9415
9416 * s/sco5.h (sigunblock): Define.
9417
93e40f40
DL
94182000-06-27 Dave Love <fx@gnu.org>
9419
9420 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9421 (moved to osf5-0.h).
9422 [!NOT_C_CODE]: Protect string.h stuff.
9423
9424 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9425 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9426
3c4b7685
GM
94272000-06-27 Gerd Moellmann <gerd@gnu.org>
9428
97d176db 9429 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
9430 below the last line from the needed window height.
9431
32cad0aa
SM
94322000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9433
9434 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9435 (Fwidget_get): Use it.
9436 (syms_of_fns): Defsubr it.
9437
2c69ced2
GM
94382000-06-26 Gerd Moellmann <gerd@gnu.org>
9439
178c5d9c 9440 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
9441 display info for XIM.
9442 (xim_open_dpy): Likewise.
9443 (xim_close_dpy): Don't free the display info's XIM.
9444
9445 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9446
9447 * config.in (USE_XIM): New define.
9448
3fc720e4
GM
9449 * keymap.c (get_keyelt): For menu-items containing a `:filter
9450 FILTER', apply FILTER to the menu-item's definition to get the
9451 real definition to use.
9452
9453 * lisp.h (QCfilter): External declaration.
9454
2c69ced2
GM
9455 * xfns.c (Fimage_size): New function.
9456 (syms_of_xfns): Defsubr it.
9457
f978b2a2
AS
94582000-06-26 Andreas Schwab <schwab@suse.de>
9459
9460 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9461 Fstring_as_unibyte.
9462
94cc7892
DL
94632000-06-25 Dave Love <fx@gnu.org>
9464
52283633 9465 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
9466
9467 * Makefile.in (blockinput.h): Depend on atimer.h.
9468 (atimer.h): Depend on systime.h.
9469
52283633 9470 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 9471
52283633 9472 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
9473
9474 * lisp.h (swap_in_global_binding): Declare.
9475
b8c24556
KR
94762000-06-24 Ken Raeburn <raeburn@gnu.org>
9477
9478 * process.c (Fopen_network_stream): Turn off atimers for duration
9479 of call to connect. (Patch from Gerd.)
9480
8cf8560b
DL
94812000-06-23 Dave Love <fx@gnu.org>
9482
511c7541
DL
9483 * ralloc.c: Maybe include unistd.h
9484
8cf8560b
DL
9485 * emacs.c (setgrp): Undefine before defining.
9486 (malloc_warning, set_time_zone_rule, index): Prototype.
9487
9488 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9489 HAVE_STRUCT_TIMEZONE.
9490
9491 * s/osf1.h: Move string.h hack here from alpha.h and make it
9492 conditional.
9493 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9494 _XOPEN_SOURCE.
9495 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9496 (SOCKLEN_TYPE): Don't define.
9497
9498 * m/alpha.h: Remove string.h hack.
9499
9500 * s/osf5-0.h: New file.
9501
9502 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9503 include time.h, done by systime.h.
9504 [__FreeBSD__]: Remove redundant includes.
9505
3fc720e4 9506 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
9507 (delete_temp_file): Return Qnil to avoid warning.
9508
9509 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9510
9511 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9512 HAVE_X_WINDOWS.
9513
9514 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9515
9516 * composite.h (compose_text): Declare.
9517
9518 * xterm.c: Don't include sys/types.h unconditionally. Don't
9519 protect its inclusion with !USG (following xmenu.c).
9520
ea055732
GM
95212000-06-23 Gerd Moellmann <gerd@gnu.org>
9522
9523 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9524 in x_create_frame.
9525
74b01b80
EZ
95262000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9527
9528 * coding.c (decode_eol_post_ccl): Special handling for undecided
9529 and inconsistent EOL types.
9530
64f3a166
GM
95312000-06-22 Gerd Moellmann <gerd@gnu.org>
9532
16cf31f7
GM
9533 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9534 trough color and main window's background color.
9535
52283633 9536 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
9537
9538 * xterm.h (Xt_app_con): External declaration.
9539
9540 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 9541
486a103d
GM
9542 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9543
64f3a166
GM
9544 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9545 (handle_invisible_prop): Record the start of invisible text in
9546 it->add_overlay_start.
9547 (struct overlay_entry): Add member `overlay'.
9548 (handle_overlay_change): Simplify.
9549 (next_overlay_string): After having processed overlay strings at the
9550 end of the buffer, record that fact in
9551 it->overlay_strings_at_end_processed_p.
9552 (compare_overlay_entries): If before- and after-strings come
9553 from the same overlay, let before-strings come first.
9554 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9555 (load_overlay_strings): Take it->add_overlay_start into account
9556 when adding overlay strings.
9557
9558 * dispextern.h (struct it): Add member add_overlay_start.
9559
bb746ea6
DL
95602000-06-22 Dave Love <fx@gnu.org>
9561
9562 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9563
9564 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9565
a8f573f3
KH
95662000-06-22 Kenichi Handa <handa@etl.go.jp>
9567
9568 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9569 is greater than 0.
9570
9f2bbc92
DL
95712000-06-21 Dave Love <fx@gnu.org>
9572
178c5d9c 9573 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 9574
3ee5041c
SM
95752000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9576
9577 * syntax.c (back_comment): Simplify string-parity counting (with
9578 the added benefit of handling multiple string-styles as long as
9579 they are not intertwined).
9580 Jump to the slow code as soon as a comment starter is found in
9581 a "string_lossage" position. Fixes the case: " /* " /* " */.
9582
4c343001
DL
95832000-06-21 Dave Love <fx@gnu.org>
9584
9585 * Makefile.in: Use GETLOADAVG_LIBS.
9586
9587 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9588 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9589
e6365855
SM
95902000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9591
9592 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9593 (Fforward_comment, scan_lists):
9594 Check the comstyle of single-char comment-starters.
9595 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9596 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
9597 Check the comstyle of single-char comment-starters.
9598 Clarify control-flow around the Scomment case.
e6365855 9599
5700d2cc
DL
96002000-06-20 Dave Love <fx@gnu.org>
9601
d355bd8a
SM
9602 * fns.c (make_hash_table, maybe_resize_hash_table):
9603 Cast arg of next_almost_prime.
5700d2cc 9604
178c5d9c 9605 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
9606
9607 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9608 and unistd.h.
9609
4a27bdfb
GM
96102000-06-20 Gerd Moellmann <gerd@gnu.org>
9611
a61d762c 9612 * keyboard.c (adjust_point_for_property): Check if display
52283633 9613 property should be treated as intangible by looking at its value.
a61d762c 9614
178c5d9c 9615 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
9616 (display_prop_intangible_p): New functions.
9617
9618 * dispextern.h (display_prop_intangible_p): Add prototype.
9619
9620 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 9621
4a27bdfb
GM
9622 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9623 argument to sigprocmask.
9624
9625 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9626 argument to sigprocmask.
9627
9628 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9629 sigprocmask_set, and pass a pointer to it to sigprocmask.
9630
9631 * sysdep.c (sigprocmask_set): New variable.
9632
9633 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9634 report_file_error.
9635
427ec082
SS
96362000-06-20 Sam Steingold <sds@gnu.org>
9637
9638 * xrdb.c: Don't declare xmalloc, xrealloc.
9639
8972fe79 96402000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
9641
9642 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9643 (re_comp): Cast gettext return value to avoid complaints when
9644 !HAVE_LIBINTL.
9645
074b6efe
DL
96462000-06-20 Dave Love <fx@gnu.org>
9647
52283633 9648 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 9649
5700d2cc 9650 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 9651
d355bd8a 9652 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
9653
9654 * m/alpha.h: Don't declare xmalloc, xrealloc.
9655
0af4f205
DL
9656 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9657
9658 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9659
9660 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9661
9662 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9663 HAVE_GETWD.
9664
074b6efe
DL
9665 * keyboard.h (poll_for_input_1): Declare.
9666
9667 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9668
9669 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9670
9671 * doprnt.c: Don't declare xmalloc, xrealloc.
9672
9673 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9674 (getenv, ctime, getwd): Removed.
9675 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9676
9677 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9678 x_set_tool_bar_lines.
9679
9680 * config.in: Add HAVE_GETWD. Move some definitions above
9681 machine/system includes.
9682
68a5e97b
KH
96832000-06-20 Kenichi Handa <handa@etl.go.jp>
9684
95417e1e
KH
9685 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9686
68a5e97b
KH
9687 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9688 contain information about ENCODING.
9689
9690 * fontset.c (FONTSET_ASCII): Use the first element of char table
9691 for an ASCII font, not defalt slot.
9692 (fontset_ref_via_base): If FONTSET doesn't contain information for
9693 C, try the default fontset.
9694 (make_fontset): Don't copy the default fontset.
9695 (fontset_font_pattern): Likewise.
9696 (accumulate_font_info): If ELT is nil, use the corresponding
9697 element in the default fontset.
9698
3b4fa1b2
DL
96992000-06-19 Dave Love <fx@gnu.org>
9700
943e731c
DL
9701 * syntax.c (Fparse_partial_sexp): Doc fix.
9702
9703 * regex.h: Test PROTOTYPES as well as __STDC__.
9704
3b4fa1b2
DL
9705 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9706 errno, strerror. Put text after #endif in comment.
9707
52283633 9708 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
9709
9710 * xterm.c (x_frame_of_widget): Likewise.
9711
cdf0357b
GM
97122000-06-19 Gerd Moellmann <gerd@gnu.org>
9713
9714 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9715 to Vfundamental_mode_abbrev_table.
9716
9717 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9718 bogus objects are marked. This slows down GC by ~80 percent, but
9719 it might be worth trying when debugging GC-related problems.
9720 This feature requires conservative stack marking to be enabled.
9721
9722 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9723 returns XLookupChars, reset `modifiers' to zero.
9724
998e9f8c
DL
97252000-06-19 Dave Love <fx@gnu.org>
9726
9727 * mktime.c: Unprotoized.
9728
18e21ce8 97292000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
9730
9731 * data.c (set_internal): If variable is frame-local,
9732 store the new value immediately into the frame parameter alist.
9733
140c4ac6
KR
97342000-06-19 Ken Raeburn <raeburn@gnu.org>
9735
14358466
KR
9736 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9737 in the custom handler pointer.
9738
140c4ac6
KR
9739 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9740 value, or checks for CHAR_META can fail when Lisp_Object is a
9741 union type.
9742 * keymap.c (get_keyelt): Likewise.
9743
10d7bf84
KH
97442000-06-19 Kenichi Handa <handa@etl.go.jp>
9745
9746 * ccl.h (struct ccl_program): New member eol_type.
9747 (struct ccl_spec): New member cr_carryover.
9748
9749 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9750 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9751
9752 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9753 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9754 (decode_eol_post_ccl): New function.
9755 (decode_coding): Don't detect EOL format here for CCL based coding
9756 systems.
9757 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9758 decode_eol_post_ccl after running the CCL program.
9759 (code_convert_region): Don't detect EOL format here for CCL based
9760 coding systems.
9761 (decode_coding_string): Likewise.
9762
52e386c2
KR
97632000-06-18 Ken Raeburn <raeburn@gnu.org>
9764
9765 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9766 when treating it as an integer.
9767
9768 * coding.h (encode_coding_string): Declare.
9769
9770 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9771 it as an integer.
9772
9773 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9774 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9775 to be passed to get_local_map.
9776
9777 * sound.c (Fplay_sound): Don't call make_number on
9778 Frun_hook_with_args count argument.
9779
9780 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9781 for lisp objects in X event structure data field, when lisp
9782 objects are represented with unions.
9783 (x_scroll_bar_to_input_event): Ditto.
9784
b357b9d4
KR
97852000-06-16 Ken Raeburn <raeburn@gnu.org>
9786
9787 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
9788 termination of string. Fix sense of test whether
9789 Vline_number_display_limit is an integer.
b357b9d4 9790
a871441d
GM
97912000-06-16 Gerd Moellmann <gerd@gnu.org>
9792
a9021acd
GM
9793 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9794 only if HAVE_X_WINDOWS.
9795
6344985d
GM
9796 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9797 of titles.
9798
427ec082 9799 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
9800 out of bounds.
9801
228b083e
EZ
98022000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9803
9804 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9805 of its headers.
9806
c25b53a2
KH
98072000-06-15 Kenichi Handa <handa@etl.go.jp>
9808
9809 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9810 start of the while loop.
9811
a6981b11
GM
98122000-06-15 Gerd Moellmann <gerd@gnu.org>
9813
e9924e52
GM
9814 * atimer.c (alarm_signal_handler): Add forward declaration.
9815
a6981b11
GM
9816 * data.c (set_internal): Remove debug code.
9817
25fa6deb
GM
98182000-06-14 Gerd Moellmann <gerd@gnu.org>
9819
dce6b995
GM
9820 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9821
9f817ea4
GM
9822 * unexec.c (toplevel) [COFF]: Include coff.h.
9823
9824 * s/lynxos.h: New file.
9825
9826 * keymap.c (Fsingle_key_description): Enclose function key and
9827 event symbol names in angle brackets.
9828
8a4e3c0c
GM
9829 * xdisp.c (setup_echo_area_for_printing): Call
9830 message_log_maybe_newline if message_buf_print is not set.
9831
9832 * print.c (printchar, strout): Don't check message_buf_print
427ec082 9833 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
9834 function does something useful even when message_buf_print is
9835 already set.
9836
52283633
SM
9837 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9838 New variables.
25fa6deb
GM
9839 (ensure_echo_area_buffers): Initialize echo buffer's
9840 truncate lines setting to nil.
9841 (with_echo_area_buffer): Don't set the echo buffer's truncate
9842 lines setting here.
8a4e3c0c 9843 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
9844 of message_truncate_lines.
9845 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
9846 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9847 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
9848
9849 * keyboard.c (read_char): Bind message-truncate-lines to t
9850 while displaying a help-echo.
9851
9852 * lisp.h (Qmessage_truncate_lines): External declaration.
9853
163dcff3
GM
98542000-06-13 Gerd Moellmann <gerd@gnu.org>
9855
1681ead6
GM
9856 * xdisp.c (Vline_number_display_limit): Renamed from
9857 line_number_display_limit.
9858 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9859 Extend documentation string. Initialize
9860 Vline_number_display_limit to nil meaning no limit.
9861 (decode_mode_spec): Use Vline_number_display_limit with its new
9862 meaning.
9863
163dcff3
GM
9864 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9865
18e21ce8 98662000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
9867
9868 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 9869
163dcff3
GM
9870 * xfns.c (x_set_frame_parameters): Comment fix.
9871
9872 * frame.c (store_frame_param): Call swap_in_global_binding if the
9873 variable's current binding was chosen based on this frame.
9874
9875 * data.c (swap_in_global_binding): New function.
9876
a704139d
EZ
98772000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9878
9879 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9880 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9881
9b6610db
EZ
98822000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9883
9884 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9885
c68833d2
JR
98862000-06-12 Jason Rumney <jasonr@gnu.org>
9887
9888 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9889
9890 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9891
9892 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9893
9894 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9895
ed1056b3
GM
98962000-06-12 Gerd Moellmann <gerd@gnu.org>
9897
9898 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9899 (syms_of_xfaces): Defsubr Sdump_colors.
9900 (x_free_colors): Don't treat b&w specially on default visual.
9901 (x_free_dpy_colors): New function.
9902 (free_face_colors): Don't check visual class; it's done
9903 in x_free_colors.
9904
9905 * xterm.c (x_frame_of_widget): New function.
9906 (x_alloc_nearest_color_for_widget): Use it.
9907 (x_copy_dpy_color): New function.
9908 (x_destroy_window): Free various colors.
9909
5050a2ef
KH
99102000-06-12 Kenichi Handa <handa@etl.go.jp>
9911
9912 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9913
9914 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9915
9916 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9917
9918 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9919
9920 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9921
fb1b041d
DL
99222000-06-11 Dave Love <fx@gnu.org>
9923
9924 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9925
ff96b5f4
EZ
99262000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9927
9928 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9929
db8eeecd
GM
99302000-06-11 Gerd Moellmann <gerd@gnu.org>
9931
ed1056b3 9932 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
9933 to `XEvent *'.
9934
49b71c5f
KH
99352000-06-10 Kenichi Handa <handa@etl.go.jp>
9936
c479bd55
KH
9937 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9938 (regex_compile): Fix the code for handling the case of single byte
9939 char and multibyte char being mixed in a range within [...].
9940
ff6a65c2
KH
9941 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9942 and dst_multibyte members of coding.
9943
49b71c5f
KH
9944 * charset.c (update_charset_table): Update the table
9945 bytes_by_char_head.
9946 (init_charset_once): Initialize elements of bytes_by_char_head to
9947 1 except for leading codes for private charases.
9948
9949 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 9950 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 9951
9e80b57d
KR
99522000-06-09 Ken Raeburn <raeburn@gnu.org>
9953
9954 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9955 access the data it doesn't point to.
9956
f83fe4b4
GM
99572000-06-08 Gerd Moellmann <gerd@gnu.org>
9958
9959 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 9960 will be translated to a switch-frame event when reading the
f83fe4b4
GM
9961 event queue. This is necessary because Emacs otherwise won't
9962 perform a switch-frame to a new frame until some other event, for
9963 example a keystroke event, forces it to do so. This has various
9964 effects, one visible being that the cursor of a frame created with
9965 C-x 5 2 or switched to with a window manager key binding like
9966 A-TAB stays hollow because selected_window isn't on the newly
9967 focused frame until the switch-frame is performed.
9968
9969 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9970 generating a switch-frame event if necessary.
9971
9972 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9973
9974 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9975 it's an integer.
9976
0890801b
KH
99772000-06-08 Kenichi Handa <handa@etl.go.jp>
9978
52283633 9979 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 9980
173cbca8
GM
99812000-06-07 Gerd Moellmann <gerd@gnu.org>
9982
3091c2a6
GM
9983 * window.c (displayed_window_lines): Take empty lines at
9984 the bottom of a window into account.
427ec082 9985
f38952fe
GM
9986 * window.c (displayed_window_lines): New function.
9987 (Fmove_to_window_line): Use displayed_window_lines to determine
9988 the number of lines to move, instead of using the window's height.
9989
9990 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9991 to stop reading, even if the form read sets point to a different
9992 value when evaluated.
9993
427ec082 9994 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
9995 put the cursor.
9996
6ba6c818
KH
99972000-06-07 Kenichi Handa <handa@etl.go.jp>
9998
9999 * fileio.c (e_write): Free composition data if stored in
10000 coding->cmp_data.
10001
5f1aea9a
GM
100022000-06-06 Gerd Moellmann <gerd@gnu.org>
10003
666852af
GM
10004 * xdisp.c (display_line): Set row's and iterator's
10005 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10006 Set cursor even if row ends in the middle of a character.
10007 (dump_glyph_row): Print values of new flags.
10008 (redisplay_window) <cursor movement in unchanged window>: When
10009 point has been moved forward, and PT is at the end of the cursor
10010 row, don't place the cursor in the next row if the cursor row ends
10011 in the middle of a character or at ZV.
10012
10013 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10014 (struct glyph_row): Add starts_in_middle_of_char_p and
10015 ends_in_middle_of_char_p.
10016 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10017 ends_in_middle_of_char_p flag.
10018 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10019
d13f3e2e
GM
10020 * term.c (append_glyph): Revert change of 2000-06-06.
10021
10022 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10023 padding glyph not fitting on line as whole character not
10024 fitting on line.
10025
5f1aea9a
GM
10026 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10027 this isn't true for images with `:ascent 100'.
10028
10cda9b0
KH
100292000-06-06 Kenichi Handa <handa@etl.go.jp>
10030
ed00559d
KH
10031 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10032 as modified if it is originally unmodified.
10033
10cda9b0
KH
10034 * term.c (encode_terminal_code): Change the way to check if
10035 terminal coding does any conversion.
10036 (append_glyph): Set glyph->pixel_width correctly.
10037
10038 * xdisp.c (display_line): While checking line continuation, pay
10039 attention to a padding glyph.
10040
1969fae2
GM
100412000-06-05 Gerd Moellmann <gerd@gnu.org>
10042
10043 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10044
162ccef4
DL
100452000-06-05 Dave Love <fx@gnu.org>
10046
f19f32dd
DL
10047 * xdisp.c: Include fontset.h.
10048
10049 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10050
10051 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10052
10053 * dispnew.c: Conditionally include term.h.
10054
10055 * coding.h: Declare code_convert_string_norecord.
10056
10057 * frame.h (struct frame): Use volatile unconditionally.
10058
10059 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10060
10061 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10062
10063 * systime.h: Protect against multiple inclusion.
10064 (timezone) [USG5_4]: Define as time_t.
10065
10066 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10067 (Foptimize_char_table, make_temp_name): Declare.
10068
10069 * Makefile.in (xdisp.o): Depend on fontset.h.
10070
10071 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10072
10073 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10074 (Foptimize_char_table, make_temp_name): Declare.
10075
427ec082 10076 * s/irix4-0.h:
162ccef4
DL
10077 * s/irix5-0.h:
10078 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10079
2082fe81
DL
100802000-06-02 Dave Love <fx@gnu.org>
10081
10082 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10083
dcf671d2
GM
100842000-06-02 Gerd Moellmann <gerd@gnu.org>
10085
10086 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 10087 result face, set flags in that face indicating that colors may not
dcf671d2
GM
10088 be freed.
10089
10090 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10091 glyph, use the ASCII NUL character to determine the face.
10092
d42122a3
DL
100932000-06-02 Dave Love <fx@gnu.org>
10094
10095 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10096 (VFORK_RETURN_TYPE): Remove.
427ec082 10097
d42122a3
DL
10098 * config.in: Add NO_MATHERR.
10099
dd432f16
DL
101002000-06-01 Dave Love <fx@gnu.org>
10101
90aa4ea8
DL
10102 * cmds.c (internal_self_insert): Don't check
10103 Vbefore_change_function, Vafter_change_function.
10104
10105 * insdel.c (signal_before_change, signal_after_change): Likewise.
10106
10107 * buffer.c (Vbefore_change_function, Vafter_change_function):
10108 Variables and their initializations deleted.
10109
2330c9d4
DL
10110 * callint.c (Fcall_interactively): Doc fix.
10111
dd432f16
DL
10112 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10113
bf9e8804
DL
101142000-05-31 Dave Love <fx@gnu.org>
10115
10116 * textprop.c: Revert last change -- duplicated.
10117
3694b4ab
GM
101182000-05-31 Gerd Moellmann <gerd@gnu.org>
10119
10120 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10121 in #if 0.
10122
10123 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10124
f14156cd
JR
101252000-05-31 Jason Rumney <jasonr@gnu.org>
10126
8119aab8
JR
10127 * search.c (Fre_search_forward, Fre_search_backward)
10128 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10129
f14156cd
JR
10130 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10131
4aab9be3
JR
101322000-05-30 Jason Rumney <jasonr@gnu.org>
10133
10134 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10135 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10136
52283633 10137 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
10138
10139 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10140 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10141 expand a nil default_filename.
10142
10143 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10144 pointer to glyph_to_pixel_coords, not a frame.
10145
10146 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10147 coding.h to dependencies.
10148
10149 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10150
10151 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10152 window pointer to be consistent with w32term.c and xterm.c.
10153
10154 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10155 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10156 (Qline_spacing, Qcenter): New variables.
10157 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10158 (x_set_line_spacing): New function.
52283633 10159 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
10160 (x_specified_cursor_type): New function.
10161 (x_set_cursor_type): Use it.
10162 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10163 and icon strings.
10164 (validate_x_resource_name, x_get_resource_string): Measure lengths
10165 of external strings in bytes.
10166 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10167 GetTextExtentPoint32 with NULL title.
10168 (Fx_create_frame): Initialize Qline_spacing.
10169 (w32_load_system_font): Initialize font->double_byte_p.
10170 (x_to_w32_charset): Use Vw32_charset_info_alist.
10171 (Image, busy cursor, tooltip functions): Merged changes from
10172 xfns.c. Not yet functional on Windows.
10173
10174 * w32gui.h (W32FontStruct): Add double_byte_p member.
10175
10176 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10177 (emacs_button_translation): Use it.
10178 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10179 in `mask' to be set.
10180
10181 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10182 menu strings.
10183
10184 * w32term.c: Format and doc changes to bring closer to xterm.c.
10185 (w32_char_font_type): New enum.
10186 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10187 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10188 (w32_encode_char): New function.
10189 (x_encode_char): Removed.
10190 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10191 x_encode_char and w32_font_is_double_byte.
10192 (x_produce_image_glyph): Use image_ascent.
10193 (x_produce_glyphs): Use new version of w32_per_char_metric and
10194 handle NULL return value. Allow extra line spacing.
10195 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10196 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10197 w32_font_type member of glyph instead.
10198 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10199 (fast_find_position): Make sure not to consider rows not visible
10200 in the window.
10201 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10202 w32_menu_display_help with input blocked, as it can abort.
10203 (x_display_and_set_cursor): Choose cursor depending
10204 on buffer-local value of cursor_type.
10205 (x_draw_bar_cursor): Add parameter WIDTH.
10206
10207 * w32term.h (CP_DEFAULT): Define.
10208 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10209
10fc3187
GM
102102000-05-30 Gerd Moellmann <gerd@gnu.org>
10211
10212 * search.c (Fre_search_forward, Fre_search_backward)
10213 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10214
d0555360
KH
102152000-05-30 Kenichi Handa <handa@etl.go.jp>
10216
10217 * coding.c (detect_coding_iso2022): Fix code for checking
10218 CODING_CATEGORY_MASK_ISO_8_2.
10219
f1ad044f
SM
102202000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10221
10222 * regex.c (PREFETCH_NOLIMIT): New function.
10223 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10224
84ec3b4b
GM
102252000-05-29 Gerd Moellmann <gerd@gnu.org>
10226
66254a13
GM
10227 * syntax.c (find_defun_start): Move test for
10228 open_paren_in_column_0_is_defun_start outside of the loop.
10229
49e70dec
GM
10230 * xdisp.c (redisplay_window): Really switch buffers when
10231 displaying mode lines, and temporarily set selected_frame to the
10232 frame of the window that's redisplayed.
10233
84ec3b4b
GM
10234 * xfaces.c (free_realized_faces): Block/unblock input.
10235 (free_realized_multibyte_face): Ditto.
10236
869a3a14
DL
102372000-05-29 Dave Love <fx@gnu.org>
10238
10239 * textprop.c (Qkeymap): New variable.
10240 (syms_of_textprop): Intern it.
10241
10242 * keymap.c: Include intervals.h.
10243 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10244
10245 * Makefile.in (keymap.o): Depend on intervals.h.
10246
10247 * keyboard.c (menu_bar_items, tool_bar_items)
10248 (Fexecute_extended_command): Deal with `keymap' property.
10249 (read_key_sequence): Track map from `keymap' property as well as
10250 `local_map'.
10251
10252 * intervals.c (get_local_map): Extra arg to allow looking for
10253 `keymap' too.
10254
10255 * intervals.h (map_property): New enum.
10256 (get_local_map): Extra arg using it.
10257 (Qkeymap): Declare.
10258
84ec3b4b 10259 * lisp.h (get_local_map): Don't declare here.
869a3a14 10260
89d0c844
KH
102612000-05-29 Kenichi Handa <handa@etl.go.jp>
10262
10263 * Makefile.in (callproc.o): Depend on composite.h.
10264
10265 * callproc.c: Include composite.h.
10266 (Fcall_process): Handle composition correctly.
10267
10268 * coding.h (coding_allocate_composition_data): Extern it.
10269 (coding_restore_composition): Likewise.
10270
10271 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10272 yet allocated, finish decoding with result
10273 CODING_FINISH_INSUFFICIENT_CMP.
10274 (coding_allocate_composition_data): Make it non-static.
10275 (coding_restore_composition): Likewise.
10276
797a084a
EZ
102772000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10278
10279 * charset.c (syms_of_charset): Revert last change.
10280
cf872af5
EZ
102812000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10282
10283 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
10284 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10285 Handa.
cf872af5 10286
5b1ae051
EZ
102872000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10288
10289 * charset.c (syms_of_charset): Set width of character sets
10290 eight-bit-control and eight-bit-graphic to 1 column.
10291
34ec9ebe
GM
102922000-05-26 Gerd Moellmann <gerd@gnu.org>
10293
10294 * config.in (HAVE_SPEED_T): New define.
10295
10296 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10297 `extern speed_t'.
10298
dd854dc2
DL
102992000-05-26 Dave Love <fx@gnu.org>
10300
10301 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10302
10303 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10304 (Fsubr_arity): New function.
10305 (syms_of_data): Install them.
10306
ba9f8f95
KH
103072000-05-26 Kenichi Handa <handa@etl.go.jp>
10308
0f3e0672
KH
10309 * charset.c (init_charset_once): Set the table bytes_by_char_head
10310 correctly.
10311
cebefb44
KH
10312 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10313 the default fontset to what Emacs uses by default.
0f3e0672
KH
10314 (check_registry_encoding): This function deleted.
10315 (Fset_fontset_font): Remove the adhoc condition for the default
10316 fontset. Allow cons in FONTNAME.
cebefb44 10317
0f3e0672
KH
10318 * fns.c (map_char_table): Ignore char-table entries for
10319 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 10320
7a18af49
KR
103212000-05-25 Ken Raeburn <raeburn@gnu.org>
10322
10323 * emacs.c (main): Initialize keyboard syms before initializing
10324 window code, so face names are available.
10325
d2af47df
SM
103262000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10327
10328 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10329 of an anchor at the beginning of a shy-group.
10330
fc6a6a4e
GM
103312000-05-25 Gerd Moellmann <gerd@gnu.org>
10332
10333 * xdisp.c (handle_invisible_prop): Don't try to skip over
10334 invisible text if end of text is already reached.
10335
005f0d35
DL
103362000-05-25 Dave Love <fx@gnu.org>
10337
02513cdd
DL
10338 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10339
005f0d35
DL
10340 * coding.c (encode_eol): Add null statement after label.
10341
89f6ca4e
EZ
103422000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10343
10344 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10345 2000-05-20.
10346
a4e1759e
KH
103472000-05-25 Kenichi Handa <handa@etl.go.jp>
10348
10349 * ccl.c (ccl_driver): Fix previous change.
10350
eacfd7fe
KH
103512000-05-25 Kenichi Handa <handa@etl.go.jp>
10352
46ab33a9
KH
10353 * coding.c (run_pre_post_conversion_on_str): Set point to the
10354 beginning of buffer before calling coding->post_read_conversion.
10355 (decode_coding_string): Give correct args to
10356 run_pre_post_conversion_on_str.
10357 (encode_coding_string): Likewise.
10358
eacfd7fe
KH
10359 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10360 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10361 eight-bit-graphic correctly.
10362
f8569325
DL
103632000-05-24 Kenichi HANDA <handa@etl.go.jp>
10364
10365 * fileio.c (Finsert_file_contents): Even if a file is not found,
10366 execute codes for setting up coding system. Call
10367 after-insert-file-functions unconditionally.
10368
04545643
GM
103692000-05-24 Gerd Moellmann <gerd@gnu.org>
10370
10371 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10372 BSD_PGRPS are not defined.
10373
747d90ea
KH
103742000-05-24 Kenichi Handa <handa@etl.go.jp>
10375
10376 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10377 DESCRIPTION.
10378 (syms_of_charset): Avoid building same strings.
10379
716e3b88
GM
103802000-05-23 Gerd Moellmann <gerd@gnu.org>
10381
10382 * lread.c (Fload): Add a comment about the meaning of
10383 Vuser_init_file being t.
10384
10385 * puresize.h (BASE_PURESIZE): Increase to 675000.
10386
10387 * s/gnu-linux.h (setpgrp): Don't define it here because this
10388 prevents compilation on GNU/Linux systems with glib 2.2.
10389
10390 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10391 as setpgid.
427ec082 10392
9aeb39fa
EZ
103932000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10394
10395 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10396 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10397 version.
10398 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10399
29ced61b
KH
104002000-05-23 Kenichi Handa <handa@etl.go.jp>
10401
52283633 10402 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 10403
3d80f24d
KH
10404 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10405
52283633 10406 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 10407
29ced61b
KH
10408 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10409
d7e00792
KH
104102000-05-22 Kenichi Handa <handa@etl.go.jp>
10411
c9d80d38
KH
10412 * keyboard.c (read_char): Allow character codes 128..255 to be
10413 handled by input-method-function.
10414
d7e00792
KH
10415 * insdel.c (adjust_markers_for_replace): Fix previous change.
10416 (adjust_after_replace): If PREV_TEXT is nil, call
10417 adjust_markers_for_insert, not adjust_markers_for_replace.
10418
087121cc 104192000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 10420
087121cc
GM
10421 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10422 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10423 [HAVE_GRANDPT]: Define.
10424 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10425
10426 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10427 like SYSV_PTYS.
10428
10429 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10430
10431 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10432
c9671f81
KH
104332000-05-20 Kenichi Handa <handa@etl.go.jp>
10434
10435 The following changes are to handle 8-bit characters in a
10436 multibyte buffer/string without facing with byte combining
10437 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10438 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10439
10440 * Makefile.in (fns.o): Depend on charset.h.
10441
10442 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10443 convert it to unibyte.
10444 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10445
10446 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10447 apparent char boundary.
10448 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10449 0x80..0x9F to/from multibyte form.
10450
10451 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10452 to unibyte.
10453
10454 * callproc.c (Fcall_process): Always encode an argument string if
10455 it is multibyte. Setup src_multibyte and dst_multibyte members of
10456 process_coding properly.
ce75fd23 10457
c9671f81
KH
10458 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10459 SPLIT_NON_ASCII_CHAR.
10460
10461 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10462 as is.
10463 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10464
52283633 10465 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 10466 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 10467 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
10468 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10469 and eight-bit-graphic.
10470 (char_to_string): Likewise. Signal an error for too large
10471 character code.
10472 (char_printable_p): Return 0 for 8-bit characters.
10473 (update_charset_table): Update iso_charset_table only when a final
10474 character is non-negative.
10475 (find_charset_in_text): Renamed from find_charset_in_str.
10476 Arguments and return value changed. Callers changed.
10477 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10478 be -1 if CHARSET is used only internally.
10479 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10480 eight-bit-graphic.
10481 (Fcharset_after): Simplified.
10482 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10483 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10484 (multibyte_chars_in_text): Simplified by assuming there's no
10485 invalid multibyte sequence.
52283633
SM
10486 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10487 (str_as_unibyte): New functions.
10488 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
10489 (init_charset_once): Initialization for
10490 LEADING_CODE_8_BIT_CONTROL.
10491 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10492 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10493 eight-bit-control and eight-bit-graphic.
10494
52283633
SM
10495 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10496 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
10497 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10498 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10499 (CHARSET_REVERSE_CHARSET): Likewise.
10500 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10501 eight-bit-graphic.
10502 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10503 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10504 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10505 encounter an invalid multibyte sequence.
10506 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10507 sequence is always valid.
10508 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 10509 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
10510 (CHAR_STRING): For 8-bit characters, call char_to_string.
10511 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10512 multibyte sequence is always valid.
10513 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
10514 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10515 (str_as_unibyte): Extern them.
c9671f81 10516 (BCOPY_SHORT): Fix a bug.
52283633 10517 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
10518 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10519 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10520 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10521
bd4bde7f 10522 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 10523 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
10524 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10525 (EMIT_BYTES): New macros.
10526 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10527 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
10528 macros deleted.
10529 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10530 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10531 check the validity of multibyte sequence.
10532 (decode_coding_emacs_mule): New function.
10533 (encode_coding_emacs_mule): New macro.
10534 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10535 the source.
10536 (DECODE_ISO_CHARACTER): Just return a character code.
10537 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10538 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10539 EMIT_CHAR to produced decoded characters. Exit the loop only by
10540 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10541 block here.
10542 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10543 only position codes for an invalid character.
10544 (encode_designation_at_bol): Return new destination pointer. 5th
10545 arg DSTP is changed to DST.
10546 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10547 from the source by ONE_MORE_CHAR. Don't handle the case of last
10548 block here.
10549 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10550 macros deleted.
52283633
SM
10551 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10552 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
10553 TWO_MORE_BYTES to fetch a byte from the source.
10554 (encode_eol): Pay attention to coding->src_multibyte.
10555 (detect_coding, detect_eol): Preserve members src_multibyte and
10556 dst_multibyte.
10557 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10558 (encoding_buffer_size): Set magnification to 3 for all coding
10559 systems that require encoding.
10560 (ccl_coding_driver): For decoding, be sure that the result is
10561 valid multibyte sequence.
10562 (decode_coding): Initialize coding->errors and coding->result.
10563 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10564 and raw-text, always call decode_eol. Handle the case of last
10565 block here. If not coding->dst_multibyte, convert the resulting
10566 sequence to unibyte.
10567 (encode_coding): Initialize coding->errors and coding->result.
10568 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10569 and raw-text, always call encode_eol. Handle the case of last
10570 block here.
10571 (shrink_decoding_region, shrink_encoding_region): Detect cases
10572 that we can't skip data more rigidly.
10573 (code_convert_region): Setup src_multibyte and dst_multibyte
10574 members of coding. For decoding, if the buffer is multibyte,
10575 convert the source sequence to unibyte in advance. For encoding,
10576 if the buffer is multibyte, convert the resulting sequence to
10577 multibyte afterward.
10578 (run_pre_post_conversion_on_str): New function.
10579 (code_convert_string): Deleted and divided into the following two.
10580 (decode_coding_string, encode_coding_string): New functions.
10581 (code_convert_string1, code_convert_string_norecord): Call one of
10582 above.
10583 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10584 MAKE_NON_ASCII_CHAR.
52283633
SM
10585 (Fset_terminal_coding_system_internal)
10586 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
10587 and dst_multibyte members.
10588 (init_coding_once): Initialize iso_code_class with new enum
10589 ISO_control_0 and ISO_control_1.
10590
10591 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10592 devided into ISO_control_0 and ISO_control_1.
10593 (struct coding_system): New members src_multibyte, dst_multibyte,
10594 errors, and result. Delete member fake_multibyte.
10595 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10596 nonzero.
10597 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10598 nonzero.
10599
10600 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10601 (Faset): Likewise.
10602
10603 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10604 multibyte form.
10605 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10606 combining occurs.
10607 (Ftranspose_region): Delete codes for handling byte combining.
10608
10609 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10610 dst_multibyte members of coding. On handling REPLACE on unibyte
10611 buffer, convert the result of decode_coding to unibyte. On
10612 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 10613 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
10614 multibyteness of the source (buffer or string).
10615
10616 * fns.c (concat): Handle 8-bit characters correctly.
10617 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10618 unibyte in the result.
10619 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10620 valid multibyte form in the result.
10621 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10622 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10623 return -1, signal an error.
10624 (base64_encode_1): New arg MULTIBYTE. Get each character by
10625 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10626 character is found, return -1.
10627 (Fbase64_decode_region): Delete codes for handling byte-combining.
10628 Treat each decoded byte as a unibyte character.
10629 (Fbase64_decode_string): Return unibyte string.
10630 (Fcompare_strings, concat, string_byte_to_char): Use
10631 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10632 FETCH_STRING_CHAR_ADVANCE.
10633 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10634 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10635
10636 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10637 SPLIT_NON_ASCII_CHAR.
10638 (fontset_ref_via_base, fontset_set): Likewise
10639
10640 * insdel.c (adjust_markers_for_record_delete): Deleted.
10641 (adjust_markers_for_insert): Argument changed. Caller changed.
10642 (adjust_markers_for_replace): Likewise.
52283633
SM
10643 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10644 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
10645 (copy_text): Delete unused local varialbe c_save. For converting
10646 to multibyte, be sure to make all 8-bit characters in valid
10647 multibyte form.
10648 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
10649 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10650 (adjust_after_replace, replace_range, del_range_2)
c9671f81 10651 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
10652 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10653 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
10654 handling byte combining.
10655 (adjust_before_replace): Deleted.
427ec082 10656
c9671f81
KH
10657 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10658 SPLIT_NON_ASCII_CHAR.
10659 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 10660 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10661 (Fkey_description): Likewise.
10662
10663 * lread.c (read1): On reading multibyte string, be sure to make
10664 all 8-bit chararacters in valid multibyte form.
10665 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10666
10667 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10668 unconditionally.
10669
10670 * process.c (Fstart_process): GCPRO current_dir before calling
10671 Ffind_operation_coding_system. Encode arguments here.
10672 (create_process): Don't encode arguments here. Setup
10673 src_multibyte and dst_multibyte members of struct coding.
10674 (read_process_output): Setup src_multibyte and dst_multibyte
10675 members of struct coding. If the output is to multibyte buffer,
10676 always decode the output of the process. Adjust the
52283633 10677 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
10678 (send_process): Setup coding->src_multibyte according to the
10679 multibyteness of the source.
10680
52283633 10681 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10682 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10683 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10684
52283633 10685 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
10686
10687 * w16select.c (Fw16_set_clipboard_data): Setup members
10688 src_multibyte and dst_multibyte of coding. Adjusted for the
10689 change for find_charset_in_str.
10690 (Fw16_get_clipboard_data): Likewise.
10691
10692 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10693 dst_multibyte of coding.
10694 (x_to_w32_font): Likewise.
10695
10696 * w32select.c (Fw32_set_clipboard_data): Setup members
10697 src_multibyte and dst_multibyte of coding. Adjusted for the
10698 change for find_charset_in_str.
10699 (Fw32_get_clipboard_data): Likewise.
10700
10701 * xdisp.c (get_next_display_element): Handle 8-bit characters
10702 correctly.
52283633
SM
10703 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10704 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
10705
10706 * xselect.c (selection_data_to_lisp_data): Setup members
10707 src_multibyte and dst_multibyte of coding. Adjusted for the
10708 change for find_charset_in_str.
10709 (lisp_data_to_selection_data): Likewise.
10710
5f64c9e0
GM
107112000-05-19 Gerd Moellmann <gerd@gnu.org>
10712
52283633 10713 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 10714
5f64c9e0
GM
10715 * dispextern.h (Vimage_types): Add extern declaration.
10716
10717 * xdisp.c (Vimage_types): Moved here from xfns.c.
10718 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10719
10720 * xfns.c (Vimages_types): Moved to xdisp.c.
10721 (syms_of_xfns): Move `image-types' to xdisp.c.
10722
10723 * w32fns.c (Vimage_types): Removed.
10724 (syms_of_w32fns): Remove `image-types'.
10725
813086ea
KH
107262000-05-18 Kenichi Handa <handa@etl.go.jp>
10727
10728 * fns.c (map_char_table): Pay attention to character number of
10729 charset. Check the validity of charset at the first level. For
10730 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10731 the default value.
10732
10733 * fontset.c: Include "buffer.h".
10734 (fs_load_font): If the face has fontset, record the face ID in
10735 that fontset.
10736 (Finternal_char_font): New function.
10737 (accumulate_font_info): New function.
10738 (Ffontset_info): Rewritten for the new fontset implementation.
10739 (syms_of_fontset): Register Vdefault_fontset in the first element
10740 of Vfontset_table. Include Vdefault_fontset in
10741 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10742 function.
10743
bdaebbf0
DL
107442000-05-16 Dave Love <fx@gnu.org>
10745
10746 * m/iris5d.h: Deleted -- unused.
10747
cb613bb8
GM
107482000-05-16 Gerd Moellmann <gerd@gnu.org>
10749
b15f3b77
GM
10750 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10751 `invalid' instead of `illegal'.
10752
10753 * indent.c (Fmove_to_column): When ending within a tab, insert
10754 spaces first so that markers at the end of the tab get adjusted.
10755
835c1b36
GM
10756 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10757 buffer list that wasn't selected in that frame.
10758
cb613bb8
GM
10759 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10760 is needed on mescaline, use a 2 char prefix, and call
10761 make_temp_name with second arg non-zero.
10762
10763 * fileio.c (make_temp_name): New function, extracted from
10764 Fmake_temp_name.
10765 (Fmake_temp_name): Use it.
10766
f685bea9
EZ
107672000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10768
52283633 10769 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 10770
a1b8d58b
GM
107712000-05-15 Gerd Moellmann <gerd@gnu.org>
10772
10773 * Makefile.in (lisp): Add env.elc.
10774
10775 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10776
a265079f
GM
107772000-05-12 Gerd Moellmann <gerd@gnu.org>
10778
10779 * search.c (Freplace_match): Handle case of `\N' in the
10780 replacement when there's no group N.
10781
da4496b6
GM
107822000-05-11 Gerd Moellmann <gerd@gnu.org>
10783
0ace421a
GM
10784 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10785 of the message to message_dolog.
10786
1172eb8d
GM
10787 * keyboard.c (read_char): Don't clear current message for help
10788 events; let the code handling help events handle this. Change
10789 code detecting help events that should be ignored.
10790
da4496b6
GM
10791 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10792 we're interating over a string.
10793
0623e40f
DL
107942000-05-09 Dave Love <fx@gnu.org>
10795
10796 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10797 that offset before writing. Move gcpro region past call of
10798 Ffile_regular_p.
10799
bae2503b
DL
108002000-05-04 Dave Love <fx@gnu.org>
10801
10802 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10803
ec82fb2f
GM
108042000-05-04 Gerd Moellmann <gerd@gnu.org>
10805
10806 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10807 of inserted characters when BUF equals the current buffer, and PT
10808 is in front of or equal to FROM.
10809
cbf18892
GM
108102000-05-03 Gerd Moellmann <gerd@gnu.org>
10811
4ff40dd0
GM
10812 * xdisp.c (handle_single_display_prop): If display property value
10813 is invalid, or something not supported on the frame, restore
10814 iterator's position to what it was initially. Make sure to return
10815 0 for invalid and unsupported property values.
10816
cbf18892
GM
10817 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10818 that x_per_char_metric returns null.
10819
1b0672c3
GM
108202000-05-02 Gerd Moellmann <gerd@gnu.org>
10821
576da55d
GM
10822 * xterm.h (struct face): Add forward declaration.
10823 (struct image): Ditto.
10824 (image_ascent): Add prototype.
10825
10826 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10827 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10828 image_ascent instead of using IMAGE_ASCENT.
10829
10830 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10831 (IMAGE_ASCENT): Removed.
10832
10833 * xfns.c (Qcenter): New variable.
10834 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10835 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10836 (image_ascent): New function.
10837 (lookup_image): Recognize `:ascent center'.
10838 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10839 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10840 (xbm_load): Don't set image's ascent here.
10841 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10842 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10843 check ascent values here.
10844 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10845 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10846 (syms_of_xfns): Initialize Qcenter.
10847
1b0672c3
GM
10848 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10849 to the limits, increase the limits.
10850
0d7811ed
KH
108512000-05-01 Kenichi Handa <handa@etl.go.jp>
10852
10853 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 10854 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 10855
a943a5ca
GM
108562000-04-28 Gerd Moellmann <gerd@gnu.org>
10857
10858 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10859 taller than the window.
10860
5dba1e29
KH
108612000-04-28 Kenichi Handa <handa@etl.go.jp>
10862
10863 * xfaces.c (realize_x_face): Fix the argument of the second
10864 xassert. BASE_FACE may not be a face for ASCII.
10865
353964e3
GM
108662000-04-27 Gerd Moellmann <gerd@gnu.org>
10867
c76e04a8
GM
10868 * print.c (print_object): Treat print-length < 0 as nil.
10869
10870 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10871
10872 * s/freebsd.h (TERMCAP_OBJ): Removed.
10873 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10874
10875 * lread.c (read1): Don't treat period followed by certain
10876 characters as symbol start.
10877
10878 * xfns.c (slurp_file): New function.
10879 (xbm_image_p): Handle case of in-memory XBM files.
10880 (xbm_scan): Rewritten to work on memory buffers instead of files.
10881 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10882 Work on memory buffers instead of files. If DATA is null test
10883 if buffer looks like an in-memory XBM file.
10884 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10885 memory buffers instead of files.
10886 (xbm_file_p): New function.
10887 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10888
353964e3
GM
10889 * lread.c (end_of_file_error): New function.
10890 (read1): Call it instead of signaling `end-of-file' directly.
10891
427ec082 10892 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
10893 with Fprinc instead of Fprin1.
10894
24d744ac
KR
108952000-04-26 Ken Raeburn <raeburn@gnu.org>
10896
10897 * window.c (freeze_window_start): Check that minibuffer scroll
10898 window isn't nil before extracting the window structure pointer
10899 from it.
10900
10901 * undo.c (record_delete): If we hit the end of the undo list, stop
10902 picking elements apart.
10903
7464346d
GM
109042000-04-26 Gerd Moellmann <gerd@gnu.org>
10905
10906 * xdisp.c (display_line): If lines are continued, restore
10907 iterator's ascent/descent information to the values before the
10908 first glyph not fitting on the line.
10909
612839b6
GM
109102000-04-25 Gerd Moellmann <gerd@gnu.org>
10911
10912 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 10913 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
10914
10915 * dispnew.c (increment_matrix_positions): Renamed from
10916 increment_glyph_matrix_buffer_positions.
10917 (increment_row_positions): Renamed from
10918 increment_glyph_row_buffer_positions.
10919
10920 * dispextern.h: Change names of renamed functions from dispnew.c
10921 in prototypes.
10922
cc181e95
GM
109232000-04-24 Gerd Moellmann <gerd@gnu.org>
10924
abfcc168
GM
10925 * fileio.c (Fdo_auto_save): Create directories for auto-save
10926 list file if necessary.
10927
cc181e95
GM
10928 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10929 from buffer or frame.
10930 (automatic_hscrolling_p): New variable.
10931 (hscroll_windows): Scroll windows horizontally only if automatic
10932 hscrolling is allowed.
10933 (syms_of_xdisp): New variable `automatic-hscrolling'.
10934
10935 * frame.h (struct frame): Add member extra_line_spacing.
10936
10937 * xfns.c (x_set_line_spacing): New function.
10938 (Fx_create_frame): Set line spacing from resources.
10939 (Qline_spacing): New variable.
10940 (syms_of_xfns): Initialize Qline_spacing.
427ec082 10941
cc181e95
GM
10942 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10943
10944 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10945 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 10946 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
10947 extra_line_spacing from default value.
10948 (init_buffer_once): Initialize default value of extra_line_spacing.
10949
10950 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10951 and extra3.
10952
10953 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10954 prompt_width. Add extra line spacing.
10955
10956 * term.c (produce_glyphs): Remove reference to struct it's
10957 prompt_width.
10958
10959 * dispextern.h (struct it): Remove member prompt_width, add
10960 extra_line_spacing.
10961
58827478
GM
109622000-04-22 Gerd Moellmann <gerd@gnu.org>
10963
10964 * dispnew.c (update_frame_line): When writing a whole line, make
10965 sure cursor is in the right row afterwards, otherwise a use of
10966 capability `ch' in cmgoto might leave the cursor in the row below.
10967
25a87f42
GM
109682000-04-21 Gerd Moellmann <gerd@gnu.org>
10969
10970 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10971
10972 * keyboard.c (timer_check): Fix typo in comment.
10973
54edf5c2
KH
109742000-04-21 Kenichi Handa <handa@etl.go.jp>
10975
10976 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10977 name change: ch -> character.
10978
3a64eef5
GM
109792000-04-20 Gerd Moellmann <gerd@gnu.org>
10980
10981 * keyboard.c (echo_message_buffer): New variable.
10982 (echo_now): Set echo_message_buffer to the echo area buffer used
10983 to display the echo.
10984 (cancel_echoing): Reset echo_message_buffer to nil.
10985 (read_char): Code rewritten that handles canceling an echo or
10986 echoing a dash, respectively.
10987
10988 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10989 directory doesn't exist.
10990
6142fdcb
DL
109912000-04-19 Dave Love <fx@gnu.org>
10992
10993 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
10994 (concat): Don't allow numeric args.
10995 (Fconcat): Doc change.
6142fdcb 10996
ac6b5352
SM
109972000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10998
10999 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11000 instead define end_match(1|2) more carefully.
11001 Use GET_CHAR_BEFORE_2 for `begline'.
11002
cb9215e4
GM
110032000-04-19 Gerd Moellmann <gerd@gnu.org>
11004
5e3dac3f
GM
11005 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11006 on 64-bit systems where NULL is defined as `0'.
11007
11008 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11009 the `variable argument list' to make it work on Alpha.
11010
cb9215e4
GM
11011 * m/alpha.h (_LP64) [!_LP64]: Define.
11012 (ORDINARY_LINK): Define for NetBSD.
11013
11014 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 11015
f532dca0
DL
110162000-04-19 Dave Love <fx@gnu.org>
11017
c750667e
DL
11018 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11019 change.
11020
11021 * Makefile.in (LIBS): Don't use.
11022 (GETLOADAVG_OBJ): Define again.
11023 (otherobj): Add GETLOADAVG_OBJ.
11024
f532dca0
DL
11025 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11026
1c7e22fd
GM
110272000-04-18 Gerd Moellmann <gerd@gnu.org>
11028
f6d3257b
GM
11029 * lread.c (read_filtered_event): Cancel and start busy cursor.
11030
427ec082 11031 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
11032 that the per-character metrics may be null.
11033
e10f64e7
GM
110342000-04-17 Gerd Moellmann <gerd@gnu.org>
11035
0daee095
GM
11036 * buffer.c (clone_per_buffer_values): New function.
11037 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11038 clone_per_buffer_values if CLONE is not nil.
11039
e10f64e7
GM
11040 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11041
38687d43
DL
110422000-04-16 Dave Love <fx@gnu.org>
11043
11044 * Makefile.in: Remove obsolete localcpp stuff.
11045 (GETLOADAVG_OBJ): Don't define.
11046 (obj): Move LIBOBJS...
11047 (otherobj): ... to here.
11048 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11049 whitespace-only lines after the continuation (Irix).
11050
c21c7262
GM
110512000-04-14 Gerd Moellmann <gerd@gnu.org>
11052
11053 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11054
11055 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11056
314767c0
DL
110572000-04-14 Dave Love <fx@gnu.org>
11058
11059 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11060 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11061 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11062 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11063 NLIST_STRUCT.
11064
11065 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11066 autoconfiscated HAVE_GETLOADAVG.
11067
11068 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11069 BROKEN_MKTIME.
11070
a2522dca
GM
110712000-04-14 Gerd Moellmann <gerd@gnu.org>
11072
11073 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 11074 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 11075
33744b5d
DL
110762000-04-14 Dave Love <fx@gnu.org>
11077
c21c7262 11078 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
11079 (INTERVAL_SRC): Convert to make variable.
11080 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11081 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11082 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11083 add LIBOBJS.
11084 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11085 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11086 (shortlisp): Add facemenu, float-sup, frame.
11087 (SOME_MACHINE_LISP): Remove them from here.
11088 (LIBES): Change unused LDLIBS to autoconf LIBS.
11089
11090 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11091
9d3d5916
KH
110922000-04-14 Kenichi Handa <handa@etl.go.jp>
11093
11094 * composite.c (update_compositions): If FROM and TO are not in a
11095 valid range, do nothing.
11096
198e3c7a
GM
110972000-04-13 Gerd Moellmann <gerd@gnu.org>
11098
52283633 11099 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 11100
52283633 11101 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
11102
11103 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11104 as TERMCAP_OBJ.
11105
055a28c9
EZ
111062000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11107
11108 * fileio.c (a_write): Remove redundant semi-colons.
11109 (e_write): Return -1 if failed to write all the data.
11110 This fixes the changes made at 1999-12-15.
11111
f5c75033
DL
111122000-04-12 Dave Love <fx@gnu.org>
11113
11114 * fns.c (mapcar1): Test for null vals to support mapc.
11115 (Fmapc): New function.
11116
0c3cfc51
EZ
111172000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11118
11119 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11120 (IT_frame_up_to_date): Support the buffer local value of
11121 cursor-type, if defined.
11122
33465a31
DL
111232000-04-10 Dave Love <fx@gnu.org>
11124
11125 * editfns.c (preceding-char, following-char): Doc fix.
11126
6ed56568
KR
111272000-04-10 Ken Raeburn <raeburn@gnu.org>
11128
11129 * Makefile.in (temacs): Revert 2000-03-12 change.
11130
7cf80d4e
JR
111312000-04-10 Jason Rumney <jasonr@gnu.org>
11132
11133 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11134
34f3f342
GM
111352000-04-10 Gerd Moellmann <gerd@gnu.org>
11136
1a1b1895
GM
11137 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11138 area buffer, if it's not set up yet.
11139
34f3f342
GM
11140 * indent.c (compute_motion): Set immediate_quit.
11141
be0dbdab
GM
111422000-04-09 Gerd Moellmann <gerd@gnu.org>
11143
52283633 11144 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
11145 (realize_tty_face): Suppress boldness if colors are the inverse of
11146 the default colors, and tty_suppress_bold_inverse_default_colors_p
11147 is set.
11148 (Ftty_suppress_bold_inverse_default_colors): New function.
11149 (syms_of_xfaces): Defsubr it.
11150
be0dbdab
GM
11151 * buffer.c (Frestore_buffer_modified_p): New function.
11152 (syms_of_buffer): Defsubr it.
11153
e8413c3b
KR
111542000-04-08 Ken Raeburn <raeburn@gnu.org>
11155
87f67317
KR
11156 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11157 charset id (int) argument, not a charset (Lisp_Object).
11158
e8413c3b
KR
11159 * coding.h (code_convert_string): Declare.
11160 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11161 object, as the fourth argument to code_convert_string.
11162
52283633 11163 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
11164 (Fset_fontset_font): Use EQ to compare lisp objects.
11165
7c752c80
KR
111662000-04-05 Ken Raeburn <raeburn@gnu.org>
11167
c0333abc
KR
11168 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11169 a pointer that looks like a lisp object.
11170 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11171 zero, instead see whether it's an integer object, since they can't
11172 have intervals.
11173 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11174
52283633
SM
11175 * dispnew.c (allocate_matrices_for_frame_redisplay)
11176 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
11177 to convert between (unsigned) int values and lisp integers.
11178 * keyboard.c (read_key_sequence): Likewise.
11179 * lread.c (substitute_object_recurse): Likewise.
11180 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
11181 * minibuf.c (do_completion, Fminibuffer_complete_word)
11182 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
11183 * term.c (produce_special_glyphs): Likewise.
11184
11185 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11186 * print.c (print_preprocess, print_object): Likewise.
11187
11188 * search.c (compile_pattern): Use NILP when checking for nil.
11189
74e49b38
KR
11190 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11191 __OPTIMIZE__]: Provide a GNU C macro version that handles
11192 lisp-object unions.
11193 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11194 field, to better cope with ENABLE_CHECKING and calls that modify a
11195 Lisp_Object using its old value.
11196
685e5ed2
GM
111972000-04-04 Gerd Moellmann <gerd@gnu.org>
11198
c407c570
GM
11199 * window.c (compare_window_configurations): Signal an error
11200 if parameters C1 or C2 aren't window configurations.
11201
685e5ed2
GM
11202 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11203 AFTER_POTENTIAL_GC calls around calls to functions that can
11204 signal an error and thus invoke the debugger.
11205
587a49ab
GM
112062000-04-03 Gerd Moellmann <gerd@gnu.org>
11207
62f20204
GM
11208 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11209 an error if decoding fails.
11210
587a49ab
GM
11211 * keyboard.c (lispy_mouse_names): Variable removed.
11212 (Vlispy_mouse_stem): New variable.
11213 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11214 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11215 for any mouse button number. Increase size of mouse_syms and
11216 button_down_location as needed. Call modify_event_symbol with
11217 different arguments.
11218 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11219 Call modify_event_symbol with different arguments.
11220 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11221 for any button number. Call modify_event_symbol with different
11222 arguments.
11223 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11224 Accept a string for NAME_ALIST_OR_STEM.
11225
11226 * lisp.h (larger_vector): Add prototype.
11227
11228 * fns.c (larger_vector): Make externally visible.
11229
11230 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11231
2d1675e4
SM
112322000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11233
11234 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11235 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11236 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11237 we are between str1 and str2.
11238 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11239 (PATFETCH): Use `TRANSLATE'.
11240 (PATFETCH_RAW): Fetch multibyte char if applicable.
11241 (PATUNFETCH): Remove.
11242 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11243 When writing a char, write it directly into the pattern buffer rather
11244 than going needlessly through a temp char-array.
11245 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11246 multibyte magic and remove the useless `#ifdef emacs'.
11247 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11248 buffer.
11249
11250 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11251 conditional on `emacs'.
11252
11253 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11254
cc2d8c6b
KR
112552000-04-01 Ken Raeburn <raeburn@gnu.org>
11256
11257 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11258 non-union-type versions of XMARK and friends here, because XMARK
11259 and friends won't work on an integer field if NO_UNION_TYPE is not
11260 defined.
52283633 11261 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 11262
52283633 11263 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
11264 (syms_of_composite): Delete local var NARGS, pass an int as first
11265 argument to Fmake_hash_table.
11266
2387b382
KR
11267 * editfns.c (text_property_stickiness): Use NILP to test
11268 Lisp_Object boolean value.
11269 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
11270 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11271 problems reading from and changing the same lisp value in an
11272 XSETSTRING call.
11273
27660e89
GM
112742000-04-01 Gerd Moellmann <gerd@gnu.org>
11275
11276 * term.c (TN_no_color_video): New variable.
11277 (term_init): Intitialize TN_no_color_video.
11278 (enum no_color_bit): New enumeration.
11279 (MAY_USE_WITH_COLORS_P): New macro.
11280 (turn_on_face): Use it to determine if attributes may be used
11281 combined with colors.
11282
3578db3c
KR
112832000-04-01 Ken Raeburn <raeburn@gnu.org>
11284
11285 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 11286 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
11287 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11288 proper accessor macros.
11289 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11290 (grow_mini_window): Fix typo getting int value of root->height.
11291
6fc556fd
KR
11292 * xdisp.c (compute_string_pos): Fix order of arguments to
11293 string_pos_nchars_ahead.
11294 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11295 count arg to variable-arg routines like Frun_hook_with_args and
11296 Fformat.
587a49ab
GM
11297 (back_to_previous_visible_line_start)
11298 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
11299 fixed-arg routines like Fget_char_property and Fmake_string.
11300 (reconsider_clip_changes): Use XINT when comparing integer lisp
11301 objects, or passing them as int arguments.
587a49ab
GM
11302 (mark_window_display_accurate, insert_left_trunc_glyphs)
11303 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
11304 storing or passing integer values as lisp objects.
11305 (set_cursor_from_row, highlight_trailing_whitespace): Use
11306 INTEGERP, not implicit test against zero, for glyph object.
11307 (try_window_id): Don't use make_number when we want an int value.
11308
11309 * xfaces.c (xlfd_symbolic_value): Make last argument a
11310 Lisp_Object, to be consistent with callers.
11311 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11312 (lface_hash): Apply XFASTINT to lisp values before folding in.
11313
11314 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11315 fill in window width and height. Pass an int, not a lisp object,
11316 as first arg to Finsert.
11317
6e7b2457
GM
113182000-04-01 Gerd Moellmann <gerd@gnu.org>
11319
610d841e
GM
11320 * xfaces.c (realize_basic_faces): Block input while realizing
11321 the faces.
11322
6e7b2457
GM
11323 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11324
11325 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11326
aa110c0c
GM
113272000-03-31 Gerd Moellmann <gerd@gnu.org>
11328
11329 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 11330 or ASCII, handle case that per-char metric is null.
aa110c0c 11331
8801a864
KR
113322000-03-30 Ken Raeburn <raeburn@gnu.org>
11333
c6129d7e
KR
11334 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11335
52283633
SM
11336 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11337 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
11338 pointer, using eassert.
11339 * frame.h (XFRAME): Likewise.
11340
52283633
SM
11341 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11342 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11343 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 11344 * data.c (set_internal): Likewise.
52283633
SM
11345 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11346 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
11347 * fileio.c (auto_save_1): Likewise.
11348 * insdel.c (check_markers): Likewise.
11349 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11350 * undo.c (record_insert): Likewise.
11351 * vmsproc.c (child_sig): Likewise.
11352 * window.c (unshow_buffer, window_loop): Likewise.
11353 * xterm.c (x_erase_phys_cursor): Likewise.
11354
8e7af858
GM
113552000-03-30 Gerd Moellmann <gerd@gnu.org>
11356
11357 * xfns.c (free_image_cache): Free the cache structure itself
11358 last, after all its members have been freed.
11359
11360 * lisp.h (xstrdup): Add prototype.
11361
11362 * alloc.c (xstrdup): Moved here from xfaces.c.
11363 (allocating_for_lisp): Variable removed.
52283633 11364 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
11365
11366 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11367 of Fsymbol_value.
11368 (xstrdup): Moved to alloc.c.
11369
e0b8c689
KR
113702000-03-29 Ken Raeburn <raeburn@gnu.org>
11371
b96f9fb7
KR
11372 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11373
11374 * emacs.c (main): Fix sense of no-loadup test.
11375
e0b8c689
KR
11376 * config.in (ENABLE_CHECKING): Undef.
11377
11378 * lisp.h (struct interval): Replace "parent" field with a union of
11379 interval pointer and Lisp_Object; add new bitfield to use as
11380 discriminant. Change other flag fields to bitfields.
11381 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
11382 is defined and the supplied test fails, print a message and abort.
11383 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
11384
11385 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11386 pointers; abort if the value looks like a lisp object.
52283633
SM
11387 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11388 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
11389 Modify for new interval parent definition.
11390
52283633
SM
11391 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11392 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
11393 addressable lisp object in the interval structure.
11394 (die): New function.
11395 (suppress_checking): New variable.
11396
11397 * intervals.c (interval_start_pos): Just return 0 if there's no
11398 parent object.
11399
f83c5440
GM
114002000-03-29 Gerd Moellmann <gerd@gnu.org>
11401
11402 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11403 and earlier Emacs versions.
11404
11405 * keyboard.c (Ftop_level): Cancel busy-cursor.
11406
11407 * eval.c (call_debugger): Cancel busy-cursor.
11408
fdce64ff
KH
114092000-03-29 Kenichi Handa <handa@etl.go.jp>
11410
11411 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 11412 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 11413
f6a3f532
SM
114142000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11415
11416 * regex.c (analyse_first): New function obtained by ripping out most
11417 of re_compile_fastmap and generalizing it a little bit so that it
11418 can also just return whether a given (sub)pattern can match the empty
11419 string or not.
11420 (regex_compile): Use `analyse_first' to decide whether the loop-check
11421 needs to be done or not for *, +, *? and +? (the loop check is costly
11422 for non-greedy repetition).
11423 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11424
e9b309ac
DL
114252000-03-28 Dave Love <fx@gnu.org>
11426
52283633 11427 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 11428
e9b309ac
DL
11429 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11430
ed0767d8
SM
114312000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11432
11433 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11434 an expression.
11435 (enum re_opcode_t): Update description of succeed_n.
11436 (PATFETCH): Always define.
11437 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11438 operators, char classes, shy-groups and intervals).
11439 Optimize special cases of intervals so as to only use succeed_n and
11440 jump_n when really needed.
11441 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11442 that we don't have to handle the special cases any more.
11443 Simplify on_failure_jump handling as well.
11444
e11e7e46
JR
114452000-03-28 Jason Rumney <jasonr@gnu.org>
11446
11447 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11448
88faab89
GM
114492000-03-27 Gerd Moellmann <gerd@gnu.org>
11450
182ff242
GM
11451 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11452
11453 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 11454
182ff242
GM
11455 * alloc.c (mark_maybe_object): New function.
11456 (mark_memory): Use it.
11457 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11458 (setjmp_tested_p, longjmp_done): New variables.
11459 (test_setjmp): New function.
11460 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11461 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11462
c1005d06
GM
11463 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11464 to DEC_TEXT_POS and INC_TEXT_POS.
11465
11466 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11467 with parameter MULTIBYTE_P.
11468
52283633 11469 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 11470
7439e5b9 11471 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
11472 buffers because it looks for multibyte character byte sequences
11473 which don't exist in unibyte text.
7439e5b9 11474
d9c545da
GM
11475 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11476
11fd416e 11477 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
11478 [DEBUG_X_COLORS]: New functions.
11479 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11480
11481 * xfns.c (x_set_cursor_color): Get color reference counts right.
11482
11483 * xterm.c (x_copy_color): New function.
11484 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11485
11486 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11487 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11488 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11489 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11490 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11491 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11492 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11493 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11494 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11495 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11496
11fd416e
GM
11497 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11498 names for handling per-buffer variables.
d9c545da
GM
11499
11500 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11501 instead of MAX_BUFFER_LOCAL_VARS.
11502 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11503
11504 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11505
88faab89
GM
11506 * xfns.c (x_specified_cursor_type): New function.
11507 (x_set_cursor_type): Use it.
11508
11509 * buffer.h (struct buffer): Add cursor_type.
11510
d80f42b7
SM
115112000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11512
11513 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
11514 (print_partial_compiled_pattern, re_compile_fastmap):
11515 Handle new opcode.
d80f42b7
SM
11516 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11517 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11518 executing it as well as when popping it off the stack to find infinite
11519 loops in non-greedy repetition operators.
11520
89e80928
GM
115212000-03-26 Gerd Moellmann <gerd@gnu.org>
11522
3d4ff2dd
GM
11523 * doc.c (Qfunction_documentation): New variable.
11524 (syms_of_doc): Initialize Qfunction_documentation.
11525 (Fdocumentation): If FUNCTION is a symbol with non-nil
11526 `function-documentation' property, return a documentation derived
11527 from that.
11528
bd96bd79
GM
11529 * buffer.c (syms_of_buffer): Add default-cursor-type.
11530 (init_buffer_once): Don't let cursor_type have a local value
11531 in every buffer.
11532
19d1bc27
GM
11533 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11534 on buffer-local value of cursor_type.
11535 (x_draw_bar_cursor): Add parameter WIDTH.
11536
11537 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11538 (init_buffer_once): Set default cursor_type value to t.
11539 Mark cursor_type as local everywhere.
11540 (syms_of_buffer): New per-buffer variable cursor-type.
11541
89e80928
GM
11542 * buffer.h (struct buffer): Remove member local_var_flags,
11543 add local_flags.
11544 (MAX_BUFFER_LOCAL_VARS): New macro.
11545 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11546 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11547 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11548 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11549
52283633 11550 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
11551
11552 * category.c (Fset_category_table): Use new macros for per-buffer
11553 variables.
11554
11555 * buffer.c (buffer_permanent_local_flags): Make a char array.
11556 (max_buffer_local_idx): New variable.
11557 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11558 for new handling of per-buffer variables.
11559 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11560 (init_buffer_once): Initialize per-buffer vars differently.
11561 Set max_buffer_local_idx.
11562
11563 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11564 variables.
11565
52283633 11566 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
11567
11568 * data.c (do_symval_forwarding, store_symval_forwarding)
11569 (find_symbol_value, set_internal, default_value, Fset_default)
11570 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11571 per-buffer variables.
11572
11573 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11574
9a0dd3dc
GM
115752000-03-24 Gerd Moellmann <gerd@gnu.org>
11576
b68c375f
GM
11577 * xterm.c (x_term_init): Unblock input around call1 of
11578 Qvendor_specific_keysyms.
11579
9a0dd3dc
GM
11580 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11581 (find_defun_start): Consider an open parenthesis in column 0
11582 a defun start only if open_paren_in_column_0_is_defun_start is set.
11583 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11584
7973e637
SM
115852000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11586
11587 * eval.c (Fautoload): Add entry in load-history (if after dump).
11588 * lread.c (load-history): Update docstring.
11589
39210e90
GM
115902000-03-24 Gerd Moellmann <gerd@gnu.org>
11591
11592 * indent.c (Fvertical_motion): Always use the current buffer.
11593 Temporarily change the window's buffer, if necessary.
11594
72db3ab5
GM
115952000-03-23 Gerd Moellmann <gerd@gnu.org>
11596
11597 * xterm.c (fast_find_position): Make sure not to consider rows
11598 not visible in the window.
11599
990b2375
SM
116002000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11601
11602 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11603 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11604
ff4df011
JR
116052000-03-22 Jason Rumney <jasonr@gnu.org>
11606
11607 * w32menu.c (single_submenu): Set help string to NULL if none.
11608 (w32_menu_show): Set help string correctly.
11609 (add-menu-item): Set help string in MIIM_DATA for menu item.
11610 Load SetMenuItemInfoA explicitly.
11611 (w32_menu_display_help): New function.
427ec082 11612
ff4df011
JR
11613 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11614 (QCdata): Moved to xdisp.c.
11615
11616 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11617 (Vw32_charset_to_codepage_alist): Removed.
11618 (Vw32_charset_info_alist): New variable.
52283633
SM
11619 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11620 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11621 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
11622 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11623 with TODO comment.
11624 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11625 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11626 Define Vw32_charset_info_alist and w32_charset symbols.
11627
116282000-03-22 Jason Rumney <jasonr@gnu.org>
11629
11630 * makefile.nt (w32bdf.obj): Update dependencies.
11631
11632 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11633
11634 * w32fns.c: Include fontset.h after dispextern.h.
11635 (Fx_create_frame): Do not create fontset.
11636 (w32_load_system_font): Doc fix.
11637 (Fx_close_connection): Free full_name if it is not shared.
11638
11639 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
11640 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11641 Callers updated.
ff4df011
JR
11642 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11643 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11644 (w32_font_is_double_byte): New function, needs body.
11645 (x_append_glyph): Set glyph->glyph_not_available_p.
11646 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11647 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11648 character, convert it to a unibyte character.
11649 (struct glyph_string): Delete member `charset'.
11650 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11651 calculating it is found.
11652 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11653 the case that per char metric is not available correctly.
11654 (x_fill_glyph_string): Handle the case that the specific glyph is
11655 not available correctly.
11656 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11657 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11658 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11659 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11660 fontset. Don't call FS_LOAD_FONT.
11661
439d5cb4
KR
116622000-03-22 Ken Raeburn <raeburn@gnu.org>
11663
11664 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11665 (INT_LISPLIKE): New macro.
11666 (NULL_INTERVAL_P): Use it.
52283633
SM
11667 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11668 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11669 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
11670
11671 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11672 explicit references to "parent" field of struct interval and
11673 associated unclean type conversions.
52283633
SM
11674 * intervals.c (create_root_interval, root_interval, rotate_right)
11675 (rotate_left, balance_possible_root_interval, split_interval_right)
11676 (split_interval_left, interval_start_pos, find_interval)
11677 (next_interval, previous_interval, update_interval)
11678 (adjust_intervals_for_insertion, delete_node, delete_interval)
11679 (adjust_intervals_for_deletion, merge_interval_right)
11680 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11681 (copy_intervals_to_string): Likewise.
439d5cb4
KR
11682 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11683 Likewise.
11684 * syntax.c (update_syntax_table): Likewise.
11685
11686 * intervals.c (reproduce_tree_obj): New function, like
11687 reproduce_tree but takes a Lisp_Object for the parent. Declare
11688 with prototype.
11689 (graft_intervals_into_buffer): Use it when appropriate.
11690 (reproduce_tree): Declare with prototype.
11691 (balance_possible_root_interval): Check that the parent is a lisp
11692 object before trying to examine its type.
11693
ee1c5b21
GM
116942000-03-22 Gerd Moellmann <gerd@gnu.org>
11695
11696 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11697 as strings only if both are known to be strings.
11698
11699 * s/openbsd.h (LIBS_TERMCAP): Undef.
11700
1fb352e0
SM
117012000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11702
11703 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11704 definitions for non-Emacs compilation.
11705 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11706 outside of `#ifdef emacs'.
11707 (print_partial_compiled_pattern): Update.
11708 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11709 (re_compile_fastmap): Merge handling of charset and charset_not (for
11710 emacs and non-emacs compilation as well).
11711 Similarly for (not)categoryspec and (not)syntaxspec.
11712 Don't use the fastmap when reaching `anychar' since the added
11713 complexity is not justified.
11714 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11715 and (not)syntaxspec. Merge (not)categoryspec.
11716
fdaa1f77
KH
117172000-03-22 Kenichi Handa <handa@etl.go.jp>
11718
52283633
SM
11719 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11720 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 11721 --without-x.
fdaa1f77 11722
d152fb46
DL
117232000-03-21 Dave Love <fx@gnu.org>
11724
11725 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11726 doc string.
11727
d2cafc8c
GM
117282000-03-21 Gerd Moellmann <gerd@gnu.org>
11729
11730 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11731 (lface_fully_specified_p): Don't check contents of
11732 LFACE_FONT_INDEX because that attribute is optional.
11733 (realize_x_face): Remove now unwarranted xassert.
11734
9111d4b5
KH
117352000-03-21 Kenichi HANDA <handa@etl.go.jp>
11736
11737 The following changes are to make font selection based on
11738 characters, not charset. In addition, they recover fontset
11739 facilities while utilizing the new font selection mechanism.
11740
6c4bfdc0
KH
11741 * Makefile.in (fontset.o): Depend on dispextern.h.
11742
11743 * alloc.c (mark_face_cache): Don't mark face->registry.
11744
9111d4b5
KH
11745 * dispextern.h (struct glyph): New member glyph_not_available_p.
11746 Use 22 bits for face_id.
11747 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11748 (struct face): Delete member registry, new member ascii_face.
11749 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11750 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11751 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 11752 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
11753
11754 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11755 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
11756 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11757 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 11758 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
11759 (fs_free_face_fontset, fontset_font_pattern)
11760 (face_suitable_for_char_p, face_for_char)
11761 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
11762 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11763 (FS_LOAD_FACE_FONT): New macro.
11764
11765 * fontset.c: All codes rewritten or adjusted for the change of
11766 fontset implementation. Now fontset is represented by char table.
52283633
SM
11767 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11768 Variables removed.
9111d4b5 11769 (my_strcasecmp): Function removed.
52283633 11770 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 11771 (AREF, ASIZE): New macros.
52283633
SM
11772 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11773 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11774 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11775 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11776 (fontset_id_valid_p, font_family_registry, fontset_name)
11777 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11778 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
11779 New functions.
11780 (fs_load_font): New arg FACE. Caller changed.
11781 (fs_query_fontset): Argument changed. Caller changed.
11782 (Fquery_fontset): call fs_query_fontset.
11783 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11784 Functions removed.
52283633
SM
11785 (clear_fontset_elements, check_registry_encoding)
11786 (check_fontset_name): New functions.
9111d4b5
KH
11787 (syms_of_fontset): Set char-table-extra-slots property of fontset
11788 to 3. Staticpro and initialize Vfontset_table and
11789 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11790
11791 * frame.h (struct frame): Member `fontset_data' removed.
11792 (FRAME_FONTSET_DATA): Macro removed.
11793
11794 * frame.c (make_frame): Don't allocate f->fontset_data.
11795 (Fdelete_frame): Don't free f->fontset_data.
11796
6c4bfdc0
KH
11797 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11798
9111d4b5
KH
11799 * xdisp.c (charset_at_position): Function removed.
11800 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
11801 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11802 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
11803 Likewise.
11804 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11805 FACE_FOR_CHARSET.
52283633
SM
11806 (get_next_display_element, append_space)
11807 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
11808
11809 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11810 Variables removed.
11811 (clear_font_table, frame_update_line_height, load_face_font):
11812 Adjusted for the change of fontset implementation.
11813 (load_face_fontset_font): Function removed.
11814 (pixel_point_size): New function.
11815 (font_list): Argument type changed. Caller changed.
11816 (LFACE_FONT): New macro.
11817 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11818 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11819 Lisp_Object. Determine the font name by actually loading a font
11820 by the specified pattern. Set LFACE_FONT (lface) to the specified
11821 pattern. Even if a font is not found, don't try alternatives.
11822 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11823 (set_font_frame_param): If `font' is specified in lface, use it.
11824 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11825 (lface_same_font_attributes_p): Likewise.
11826 (make_realized_face): Arguent changed. Caller changed. Set
11827 face->ascii_face to face itself.
11828 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
11829 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11830 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
11831 (free_realized_multibyte_face): New function.
11832 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11833 changed. Caller changed.
11834 (try_font_list): Argument type changed.
11835 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11836 (choose_face_font): Argument changed. Handle fontset properly.
11837 (choose_face_fontset_font): Function removed.
11838 (realize_default_face, realize_named_face): Don't remove the
11839 former face here.
11840 (realize_face): Argument changed. Caller changed. Remove face
52283633 11841 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
11842 (realize_x_face): Argument changed. Caller changed. For a
11843 multibyte character, share fontset with base_face. For a single
52283633 11844 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
11845 (realize_tty_face): Argument changed. Caller changed.
11846 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11847 (face_at_buffer_position): Don't check multibyte_p for returning
11848 DEFAULT_FACE_ID.
11849 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11850 FACE_SUITABLE_FOR_CHARSET_P.
11851 (syms_of_xfaces): Remove code for Qx_charset_registry and
11852 Vface_default_registry.
11853
6c4bfdc0
KH
11854 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11855 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
11856 (x_per_char_metric): Don't try FONT->default_char. Even if
11857 pcm->width is zero, glyph bits may exist.
11858 (x_encode_char): Always initialize char2b->byte1.
11859 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 11860 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
11861 (x_append_glyph): Set glyph->glyph_not_available_p.
11862 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11863 it->charset. Handle the case that per char metric is not
11864 available. If it->multibyte_p is zero and it->c is a multibyte
11865 character, convert it to a unibyte character.
11866 (struct glyph_string): Delete member `charset'.
11867 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11868 the case that per char metric is not available correctly.
11869 (x_fill_glyph_string): Handle the case that the specific glyph is
11870 not available correctly.
11871 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11872 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11873 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11874 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11875 fontset. Don't call FS_LOAD_FONT.
11876
11877 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11878 (x_create_tip_frame): Likewise.
11879 (Fx_close_connection): Free full_name of font_info.
11880
11881 * fns.c (optimize_sub_char_table): New function.
11882 (Foptimize_char_table): New function.
11883 (syms_of_fns): Defsubr Soptimize_char_table.
11884
b33dd3b0
GM
118852000-03-20 Gerd Moellmann <gerd@gnu.org>
11886
11887 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11888 only if buffer is displayed in some window.
11889
11890 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11891 (try_window_reusing_current_matrix): Don't call scroll run
11892 function if run's current and desired position are the same;
11893 this prevents cursor flickering.
11894
4e8a9132
SM
118952000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11896
11897 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11898
11899 * regex.c (RE_STRING_CHAR): New macro.
11900 (GET_CHAR_AFER_2): Remove.
11901 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11902 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11903 (print_partial_compiled_pattern, re_compile_fastmap)
11904 (re_match_2_internal): Remove on_failure_jump_exclusive.
11905 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11906 optimization only need to work for * (ie. can use of_keep_string_jump).
11907 Remove the special case for .*\n since it is now covered by the general
11908 optimization.
11909 (re_search_2): Don't bother with `room'.
11910 (skip_one_char): New function.
11911 (skip_noops): Simplify since `memory' is not needed any more.
11912 (mutually_exclusive_p): Restructure slightly to use `switch' and
11913 add handling for "all" remaining cases.
11914 (re_match_2_internal): Change on_failure_jump_smart to use
11915 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11916 rather than on_failure_jump_exclusive.
11917
2136fdd4
GM
119182000-03-19 Gerd Moellmann <gerd@gnu.org>
11919
11920 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11921 number of bits per RGB because it's everywhere used as the depth
11922 of the visual.
11923
11924 * term.c (calculate_costs): Remove code dealing with X frames.
11925
18e21ce8 119262000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
11927
11928 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11929
d7b511c4
GM
119302000-03-18 Gerd Moellmann <gerd@gnu.org>
11931
11932 * lread.c (read_integer): Unread the last char not consumed.
11933
16b5d424
GM
119342000-03-17 Gerd Moellmann <gerd@gnu.org>
11935
11936 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 11937 which are in the process of being deleted.
16b5d424 11938
1fa28578
GM
119392000-03-16 Gerd Moellmann <gerd@gnu.org>
11940
83488cce
GM
11941 * Makefile.in (mostlyclean): Add `*.core'.
11942 (clean): Add `bootstrap-emacs'.
11943
1fa28578
GM
11944 * lread.c (read_integer): New function.
11945 (read1): Support read syntax #o, #x, #b, #r.
11946
99633e97
SM
119472000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11948
1fa28578
GM
11949 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11950 make sure POINTER_TO_OFFSET gives the same value before and after
11951 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
11952 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11953 (debug): Now only active if > 0 rather than if != 0.
11954 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
11955 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11956 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11957 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
11958 (store_op1, store_op2, insert_op1, insert_op2)
11959 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
11960 (group_in_compile_stack): Move to after its arg's types are
11961 declared and add a prototype.
99633e97 11962 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 11963 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 11964 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
11965 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11966 indentation of the greedy-op and shy-group code.
99633e97
SM
11967 (at_(beg|end)line_loc_p): Fix argument's types.
11968 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11969 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11970 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
11971 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11972 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11973 QUIT unconditionally.
99633e97 11974
699238d9
GM
119752000-03-15 Gerd Moellmann <gerd@gnu.org>
11976
11977 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11978 a sole completion.
11979
11980 * process.c (send_process): Add a hint that the function
11981 can call Lisp code to its comment.
11982
11983 * lread.c (load_dangerous_libraries): New variable.
11984 (Vbytecomp_version_regexp): New variable.
11985 (safe_to_load_p): New function.
11986 (Fload): Handle files not compiled with Emacs specially.
11987 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11988
34e23e5a
GM
119892000-03-14 Gerd Moellmann <gerd@gnu.org>
11990
9c763cca
GM
11991 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11992
11993 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11994 support functions only if HAVE_X11R6_XIM is defined.
11995 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11996
11997 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11998
11999 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 12000 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
12001 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12002
12003 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12004 (HAVE_X11R6_XIM): Define.
12005
12006 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12007
34e23e5a
GM
12008 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12009 If set, call XSynchronize.
12010
66f0296e
SM
120112000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12012
34e23e5a
GM
12013 * regex.c: Declare a new type `re_char' used throughout the code
12014 for the string char type. It's `const unsigned char' to match the
12015 rest of Emacs. Consistently make sure all pointers to strings use
52283633 12016 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 12017 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
12018 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12019 code duplication.
66f0296e
SM
12020
12021 * charset.h (GET_CHAR_AFTER_2): Remove.
12022 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12023
854a025c
KR
120242000-03-12 Ken Raeburn <raeburn@gnu.org>
12025
12026 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12027 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12028 of them try to use backquotes.
12029
b9d2c7e2
DL
120302000-03-12 Dave Love <fx@gnu.org>
12031
12032 * unexelf.c: Restore changes of 1999-10-19.
12033 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12034 fix its type and alignment; copy it from current process.
12035
5e5dff44
GM
120362000-03-12 Gerd Moellmann <gerd@gnu.org>
12037
9b2f3c38
GM
12038 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12039 has been found. Fix bug not computing timer's predecessor.
12040
427ec082 12041 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
12042 file name.
12043
e1cff360
GM
12044 * window.c (Fsave_window_excursion): Doc fix.
12045
52283633 12046 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 12047
e411ce4b
EZ
120482000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12049
12050 * msdos.c (vga_installed): New function, code moved from
12051 dos_set_window_size.
12052 (Qbar, Qcursor_type, outside_cursor): New variables.
12053 (syms_of_msdos): Intern and staticpro them.
12054 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12055 shape used outside Emacs when called for the first time.
12056 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12057 cursor shape used outside Emacs.
12058 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12059 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12060 type has changed.
12061 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12062 parameters specify the cursor. Make qreverse a global
12063 variable (renamed to Qreverse).
12064
80460654
GM
120652000-03-09 Gerd Moellmann <gerd@gnu.org>
12066
12067 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12068
95cd4c40
SM
120692000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12070
12071 This is a big redesign of failure-stack and register handling, prompted
12072 by bugs revealed when trying to add shy-groups. Overall, what happened
12073 is that loops are now structured a little differently, groups can be
12074 shy and the code is a little simpler.
12075
12076 * regex.h: Update the copyright.
12077 (RE_SHY_GROUPS): New value.
12078 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12079 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12080
80460654
GM
12081 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12082 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12083 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12084 for (start|stop)_memory since they now only take one argument (the
12085 second has becomes unnecessary).
52283633 12086 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
12087 (print_compiled_pattern): Use %ld to printf long ints and flush to
12088 make debugging a little easier.
95cd4c40
SM
12089 (union fail_stack_elt): Make the integer unsigned.
12090 (struct fail_stack_type): Add a `frame' element.
12091 (INIT_FAIL_STACK): Init `frame' as well.
12092 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12093 (DEBUG_PUSH, DEBUG_POP): Remove.
12094 (NUM_REG_ITEMS): Remove.
12095 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
12096 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12097 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 12098 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
12099 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12100 New macros.
80460654
GM
12101 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12102 address pushed is not the destination of the jump but the source
12103 of it instead.
95cd4c40
SM
12104 (NUM_FAILURE_ITEMS): Remove.
12105 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
12106 registers before the actual failure point). Don't hardcode any
12107 meaning for str==NULL anymore.
95cd4c40 12108 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
12109 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12110 Remove.
95cd4c40
SM
12111 (REG_UNSET_VALUE): Use NULL (why not?).
12112 (compile_range): Remove declaration since it doesn't exist.
12113 (struct compile_stack_elt_t): Remove inner_group_offset.
12114 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12115 (regex_grow_registers): Remove dead code.
12116 (FIXUP_ALT_JUMP): New macro.
80460654
GM
12117 (regex_compile): Add shy-groups Change loops to use
12118 on_failure_jump_smart&jump instead of
12119 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12120 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12121 variable to me). Use `jump' instead of `jump_past_alt' and don't
12122 bother with push_dummy_failure in alternatives since it is now
12123 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12124 emacs' for (re)allocating the stack.
12125 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12126 from loop when bufp->can_be_null rather than jumping to `done'.
12127 Avoid jumping backwards so as to ensure termination. Use
12128 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12129 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 12130 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
12131 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12132 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
12133 (lowest_active_reg, highest_active_reg)
12134 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
12135 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12136 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12137 variables. Push register (in `start_memory') on the stack rather
12138 than storing it in old_reg(start|end). Remove the cycle detection
12139 from `stop_memory', replaced by the use of on_failure_jump_loop
12140 for greedy loops. Add code for the new on_failure_jump_<foo>.
12141 Remove ad-hoc code in `on_failure_jump' to push more registers in
12142 the case of a loop. Take out code from `maybe_pop_jump' into
12143 separate functions and adapt it to the semantics of
12144 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12145 and push_dummy_failure. Remove dummy_failure handling and
12146 handling of `failures to jump to on_failure_jump' (this last one
12147 was already dead code, it seems).
12148 (group_match_null_string_p, alt_match_null_string_p)
12149 (common_op_match_null_string_p): Remove.
95cd4c40 12150
7397acc4
DL
121512000-03-08 Dave Love <fx@gnu.org>
12152
12153 * config.in: Don't depend on __STDC__ for volatile.
12154 Add POINTER_TYPE, PTR, PROTOTYPES.
12155
12156 * hftctl.c, strftime.c: Use PROTOTYPES.
12157 * eval.c (find_handler_clause): Likewise.
12158
12159 * mem-limits.h: Use POINTER_TYPE.
12160
12161 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12162 (memory_warnings): Declare using POINTER_TYPE.
12163
5e91ff9e
GM
121642000-03-08 Gerd Moellmann <gerd@gnu.org>
12165
feab4fba
GM
12166 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12167
52283633 12168 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 12169
5e91ff9e
GM
12170 * xfns.c: Remove obsolete code in #if 0.
12171 (Fx_focus_frame): New function.
12172
a735b7e1
KH
121732000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12174
12175 * coding.c (coding_category_name): Add coding-category-utf-8,
12176 coding-category-utf-16-be, coding-category-utf-16-le.
12177 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12178 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12179 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12180 (detect_coding_utf_8): New function.
12181 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12182 UTF_16_LOW_SURROGATE_P): New macros.
12183 (detect_coding_utf_16): New function
12184 (detect_coding_mask): When priorities are specified, skip any
12185 categories that have `nil' coding-system. Fix bug of returning
12186 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12187 returns a mask not set in PRIORITIES.
12188 (detect_eol_type_in_2_octet_form): New function.
12189 (detect_eol): selects detect_eol_type_XXX to call according to
12190 cooding->category_idx.
12191 (detect_coding_system): Remove `nil' coding-system in the result.
12192 (Fupdate_coding_systems_internal): Update all coding-categories.
12193
52283633
SM
12194 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12195 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12196 New macros.
12197 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12198 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12199 (CODING_CATEGORY_IDX_UTF_16_LE)
12200 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12201 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
12202 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12203 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12204
9994cc69
GM
122052000-03-07 Gerd Moellmann <gerd@gnu.org>
12206
e9b4e5ff
GM
12207 * doc.c (Fdocumentation_property): If value is not a string,
12208 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12209
f7daf1e1
GM
12210 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12211 close the display with XtCloseDisplay. This caused a bus error
12212 on OpenWindows.
12213
9994cc69
GM
12214 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12215 complete but not unique.
12216
4336c705
GM
122172000-03-06 Gerd Moellmann <gerd@gnu.org>
12218
18bb0684
GM
12219 * process.c (send_process): Remove local variable `procname' that
12220 might become invalid when a GC happens. Instead, access the
12221 process name slot directly.
12222
4336c705
GM
12223 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12224 orig_height if set.
12225
12226 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12227 orig_height if set.
12228
515d0d0e
EZ
122292000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12230
12231 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12232 glyph matrices have been freed.
12233
100b3cbb
GM
122342000-03-05 Gerd Moellmann <gerd@gnu.org>
12235
50df5e5a 12236 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 12237 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
12238
12239 * xfns.c (QCdata): Moved to xdisp.c.
12240
12241 * xdisp.c (QCdata): Moved here from xfns.c.
12242 (syms_of_xdisp): Initialize QCdata.
12243
12244 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12245
12246 * window.c (coordinates_in_window): Use
12247 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12248 FRAME_INTERNAL_BORDER_WIDTH.
12249
100b3cbb 12250 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 12251 it is obviously invalid.
100b3cbb
GM
12252
12253 * xterm.c (x_term_init): Create a colormap if not using the
12254 default visual.
12255
12256 * xterm.h (select_visual): Change prototype.
12257
12258 * xfns.c (select_visual): Rewritten. Recognize user-specified
12259 visual classes.
12260 (visual_classes): New variable.
12261
64d739c4
GM
122622000-03-04 Gerd Moellmann <gerd@gnu.org>
12263
12264 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12265 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12266 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 12267 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
12268 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12269 XtNcolormap resources.
12270 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12271 (Fx_create_frame): Initialize color members of x_output structure.
12272 (xpm_load): Pass colormap to XPM lib.
12273
12274 * xfaces.c (x_free_colors): Access colormap of frame using
12275 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12276 when default colormap is used.
12277
12278 * xterm.c (x_term_init): Set Colormap member of x_display_info
12279 structure. Copy colormap if resource `privateColormap' is
12280 specified (PseudoColor only).
12281 (x_setup_relief_color): Access colormap of frame using
12282 FRAME_X_COLORMAP.
12283
12284 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12285 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12286
c3cee013
JR
122872000-03-04 Jason Rumney <jasonr@gnu.org>
12288
12289 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12290 other non-platform-specific equivalents.
64d739c4 12291 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
12292 specific functions and macros as their w32 equivalents where
12293 non-platform-specifics are not available.
12294 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12295 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12296 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12297 (frame_update_line_height): Use macros to access f->output_data.
12298 (defined_color): Remove FIXME comments; fixed.
12299 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12300 into #ifdef blocks. Add WINDOWSNT blocks.
12301 (Fx_list_fonts): Use macros for accessing font data.
12302 (set_lface_from_font_name): Different default fonts for X and
12303 WINDOWSNT.
12304 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12305 scalable for backward compatibility.
64d739c4 12306 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
12307 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12308
64d739c4 12309 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
12310 syms_of_w32faces.
12311
12312 * makefile.nt (w32faces.obj): Remove.
12313 (xfaces.obj): Add.
12314
807cc41c
JR
123152000-03-03 Jason Rumney <jasonr@gnu.org>
12316
12317 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12318 correct parameters.
12319
0007072a
KR
123202000-03-03 Ken Raeburn <raeburn@gnu.org>
12321
12322 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12323 standard ELF definitions here if the system header does not.
12324
71a6ba55
GM
123252000-03-03 Gerd Moellmann <gerd@gnu.org>
12326
12327 * xterm.c (PER_CHAR_METRIC): Removed.
12328 (x_per_char_metric_1, x_default_char): New functions.
12329 (x_per_char_metric): If font's default char is invalid, return
12330 metrics of a suitably chosen usable default char.
12331 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
12332 char, replace occurrences of unprintable chars with a suitably
12333 chosen usable default char.
71a6ba55 12334
900fa1f1
GM
123352000-03-02 Gerd Moellmann <gerd@gnu.org>
12336
42f55fe0
GM
12337 * xterm.c (note_mouse_highlight): Return quickly if frame's
12338 glyph matrices have been freed.
12339
12340 * dispnew.c (free_glyphs): Block input while freeing matrices.
12341
900fa1f1
GM
12342 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12343
52283633
SM
12344 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12345 Use x_free_colors.
900fa1f1
GM
12346
12347 * dispextern.h (x_free_colors): Add prototype.
12348
12349 * xfaces.c (x_free_colors): New function.
12350 (unload_color, free_face_colors): Use it.
12351
2f950292
EZ
123522000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12353
12354 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12355
12356 * window.c [MSDOS]: Include msdos.h.
12357
54d04320
DL
123582000-03-02 Dave Love <fx@gnu.org>
12359
12360 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12361
12362 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12363 set C_OPTIMIZE_SWITCH for gcc.
12364
0ba93ac4
KH
123652000-03-02 Kenichi Handa <handa@etl.go.jp>
12366
12367 * coding.c (coding_save_composition): Be sure to allocate
12368 composition data area in coding even if there's no composition in
12369 the current run.
12370
a2bc11d4
JR
123712000-03-01 Jason Rumney <jasonr@gnu.org>
12372
12373 * w32term.c: Equivalent changes to those made to xterm.c on
12374 2000-02-25 and 2000-02-24.
12375
12376 * w32fns.c: Equivalent changes to those made to xfns.c on
12377 2000-02-25 and 2000-02-21.
12378
12379 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12380 correct line-end convention is followed.
12381
12382 * w32menu.c [HAVE_BOXES]: Remove #undef.
12383 (single_keymap_panes): Remove code for simulating checkmarks.
12384 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12385 Remove code for drawing simulated checkmarks.
12386 (w32_menu_show): make unibyte help string correctly.
12387 (add_menu_item): draw standard Windows checkmarks. Draw radio
12388 buttons as radio buttons if possible.
12389
72d19d75
GM
123902000-03-01 Gerd Moellmann <gerd@gnu.org>
12391
2df636f4
GM
12392 * sysdep.c (start_of_text): Don't define this function for NetBSD
12393 with ELF.
12394
427ec082 12395 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
12396 Don't define.
12397 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12398 (LINKER): Don't undef if __NetBSD__ is defined.
12399
12400 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12401
12402 * fileio.c [__NetBSD__]: Define `unix'.
12403
72d19d75
GM
12404 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12405
ed4d0512
GM
124062000-02-29 Gerd Moellmann <gerd@gnu.org>
12407
50b1039f
GM
12408 * atimer.c (start_atimer): Don't abort when timers are stopped.
12409 (append_atimer_lists): New function.
12410 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12411 arbitrary lists of stopped and running atimers.
12412
ed4d0512
GM
12413 * atimer.c (cancel_atimer): Handle canceling an atimer when
12414 some timers are stopped.
12415
12416 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12417 after canceling it.
12418
12419 * fns.c (maybe_resize_hash_table): Handle case of new size
12420 coming out as being the same as old size.
12421
387023ee
JR
124222000-02-27 Jason Rumney <jasonr@gnu.org>
12423
12424 * makefile.nt: Add atimer.h to dependencies.
12425 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12426 * w32console.c: Only disable window system features for dispextern.h
12427 (initialize_w32_display): Build a display info for the console.
12428 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12429 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12430 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12431 as 2 button mice.
12432 * w32gui.h (struct W32FontStruct): Revert last change after change
12433 to xdisp.c.
12434 * w32menu.c (single_submenu): Set up help string.
12435 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12436 (w32_dialog_show): Set up help string.
12437 * w32term.c (w32_display_info_for_display): Remove unused function.
12438 (w32_draw_bitmap): Use pre-built bitmaps.
12439 (w32_initialize_display_info): New function to initialize parts of
12440 display info that are common to both GUI and console frames.
12441 (w32_term_init): Use w32_initialize_display_info. Do not set
12442 Vw32_num_mouse_buttons here, as it is not called for console
12443 frames. Build bitmaps for indicating truncated lines etc.
12444 (x_delete_display): Destroy pre-built bitmaps.
12445 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12446 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12447
4516715a
DL
124482000-02-27 Dave Love <fx@gnu.org>
12449
12450 * lisp.h: Add a bunch of prototypes.
12451
171ca836
KH
124522000-02-26 Kenichi Handa <handa@etl.go.jp>
12453
12454 * keyboard.c (read_char): Set `usec' correctly.
12455
4013921d
KH
124562000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12457
12458 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12459 `lambda', set reg[RRR] to the map index.
12460 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12461 reg[RRR] to 0. Otherwise, set it to -1.
12462
9244a058
GM
124632000-02-25 Gerd Moellmann <gerd@gnu.org>
12464
2df636f4 12465 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 12466
18e21ce8 124672000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 12468
f43d79c1
GM
12469 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12470 and contains a `:', prepend `/:'.
12471
12472 * window.c (select_window_1): If selected_window is nil,
12473 don't "swap out" the buffer's point.
12474 (Fset_window_configuration): Set selected_window to nil
12475 before calling Fselect_window.
12476 (unshow_buffer): Don't set point in buffer from window's point
12477 if another more recently selected window also shows the buffer.
12478
bed0c171
GM
124792000-02-25 Gerd Moellmann <gerd@gnu.org>
12480
449c3c52
GM
12481 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12482
f5b58615
GM
12483 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12484 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
12485 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12486 New variables.
f5b58615
GM
12487 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12488 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12489 (hide_busy_cursor): New functions.
12490 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12491
12492 * minibuf.c (read_minibuf): Cancel busy-cursor.
12493
12494 * keyboard.c (command_loop_1): Call start_busy_cursor before
12495 Fcommand_execute and cancel_busy_cursor after it.
12496 (timer_check): Remove busy-cursor code.
12497 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12498 cursor timer.
12499
12500 * process.c (wait_reading_process_input): Remove busy-cursor code.
12501
12502 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12503 Fx_hide_busy_cursor.
12504
12505 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12506 Remove prototyoes.
12507 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12508
12509 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12510
12511 * xterm.c (XTread_socket): Remove busy-cursor code.
12512
4eb8436f
GM
12513 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12514 (build_frame_matrix_from_leaf_window): Put code handling
12515 glyph row's not being a slice of a frame row in #if 0.
12516 (sync_window_with_frame_matrix_rows): New function.
12517 (frame_row_to_window): New function.
12518 (mirror_line_dance): Handle copies between windows.
12519
3cb65b0e
GM
12520 * lread.c (Fload): Use `xfree' instead of `free'.
12521 (init_obarray): Use `xmalloc' instead of `malloc'.
12522
bed0c171
GM
12523 * window.c (Fset_window_buffer): Set WINDOW to the window
12524 after decoding.
2add4349
GM
12525 (coordinates_in_window): Take frame's internal border width
12526 into account.
bed0c171 12527
42088c12
GM
125282000-02-24 Gerd Moellmann <gerd@gnu.org>
12529
12530 * xterm.c (x_display_and_set_cursor): Display cursor of
12531 non-selected windows depending on the setting of
12532 cursor_in_non_selected_windows.
12533
12534 * xdisp.c (cursor_in_non_selected_windows): New variable.
12535 (syms_of_xdisp): DEFVAR_BOOL it.
12536
d1e103b2
GM
125372000-02-23 Gerd Moellmann <gerd@gnu.org>
12538
723e779c
GM
12539 * data.c (Fstring_to_number): If number is greater than what
12540 fits into an integer, return a float.
12541
d1e103b2
GM
12542 * eval.c (specbind): Remove references to
12543 keyword_symbols_constant_flag.
12544
12545 * data.c (keyword_symbols_constant_flag): Removed.
12546 (Fmakunbound, set_internal, syms_of_data): Remove references to
12547 keyword_symbols_constant_flag.
12548
12549 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12550
214f877f
KH
125512000-02-23 Kenichi Handa <handa@etl.go.jp>
12552
12553 * syntax.c (multibyte_syntax_as_symbol): New variable.
12554 (syms_of_syntax): Declare it as a Lisp variable.
12555 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12556 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12557 nonzero, treat all multibyte characters as symbol.
52283633 12558 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 12559
130adcb7
EZ
125602000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12561
3cb65b0e 12562 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 12563 a deleted frame.
130adcb7 12564
17cbbf95
GM
125652000-02-21 Gerd Moellmann <gerd@gnu.org>
12566
12567 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12568
12569 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12570 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12571
beb0bc36
DL
125722000-02-21 Dave Love <fx@gnu.org>
12573
12574 * frame.c (Vmouse_position_function): New variable.
12575 (Fmouse_position): Use it.
12576 (syms_of_frame): Install it.
12577
12578 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12579
1d92afcd
GM
125802000-02-20 Gerd Moellmann <gerd@gnu.org>
12581
12582 * fileio.c (Finsert_file_contents): Unbind the binding of
12583 standard-output done by temp_output_buffer_setup.
329eed9f
GM
12584
12585 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12586 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12587 (specbind, unbind_to): Handle most common case of non-constant
12588 symbol with trivial value specially.
12589
12590 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12591
18e21ce8 125922000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
12593
12594 * data.c (Fmake_variable_buffer_local): Doc fix.
12595 Init found_for_buffer to 0.
12596 (Fmake_variable_frame_local): If the variable has already
12597 been buffer-local, set the check_frame field.
12598
1d4311c3
EZ
125992000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12600
12601 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12602 produced for CODING_MODE_LAST_BLOCK requires.
12603
2dc95ddd
DL
126042000-02-18 Dave Love <fx@gnu.org>
12605
12606 * keyboard.c (echo_keystrokes): Remove declaration.
12607 (Vecho_keystrokes) New variable.
12608 (read_char, record_menu_key, read_key_sequence): Use it to allow
12609 use of float value.
12610 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12611
12612 * lread.c: Undef feature selection macros before defining.
12613
f0930f35
GM
126142000-02-18 Gerd Moellmann <gerd@gnu.org>
12615
12616 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12617 for symbols other than the symbol in question.
12618
e3d4de90
DL
126192000-02-17 Dave Love <fx@gnu.org>
12620
12621 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12622
0b378936
GM
126232000-02-17 Gerd Moellmann <gerd@gnu.org>
12624
d621caf7
GM
12625 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12626
0b378936
GM
12627 * alloc.c (enum mem_type): Compile unconditionally.
12628
3b451f74
EZ
126292000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12630
12631 * xfaces.c (tty_defined_color): Don't return faulire indication
12632 for unspecified-fg and unspecified-bg pseudo-colors.
12633
10689a01
GM
126342000-02-17 Gerd Moellmann <gerd@gnu.org>
12635
1216f5e4
GM
12636 * alloc.c (mark_object): Don't mark symbol names in pure space.
12637 (gc_sweep): Don't unmark symbol names in pure space.
12638
12639 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12640 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12641 [GC_MARK_STACK]: New defines.
427ec082 12642 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
12643 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12644
12645 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12646
12647 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12648 allocate_buffer instead of xmalloc.
12649
12650 * alloc.c (toplevel): Include setjmp.h.
12651 (PURE_POINTER_P): New define.
12652 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12653 (Vdead) [GC_MARK_STACK]: New variable.
12654 (lisp_malloc): Add parameter TYPE, call mem_insert if
12655 GC_MARK_STACK is defined.
12656 (allocate_buffer): New function.
427ec082 12657 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
12658 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12659 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12660 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12661 (MEM_NIL) [GC_MARK_STACK]: New define.
12662 (struct mem_node) [GC_MARK_STACK]: New structure.
12663 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12664 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12665 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12666 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12667 (mark_stack) [GC_MARK_STACK]: New functions.
12668 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12669 (clear_marks): Removed.
12670 (gc_sweep): Set free conses' car, free floats' type, free
12671 symbols' function to Vdead. Use lisp_free to free buffers.
12672 (init_alloc_once): Initialize Vdead.
12673 (survives_gc_p): Return non-zero for pure objects.
12674
12675 * alloc.c: Add comments throughout the file.
12676
2503c8b1
GM
12677 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12678 that unblocks alarms.
12679
8389e1e2
GM
12680 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12681 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12682 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12683
10689a01 12684 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 12685
bfc17d18
KH
126862000-02-17 Kenichi Handa <handa@etl.go.jp>
12687
4a09dee0
KH
12688 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12689 avoid infinite error signaling. Allocate sufficient memory for
12690 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 12691
2b927d02
SM
126922000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12693
12694 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12695 depends on the previous behavior.
12696
b49cb764
GM
126972000-02-16 Gerd Moellmann <gerd@gnu.org>
12698
12699 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12700
99e95407
GM
127012000-02-15 Gerd Moellmann <gerd@gnu.org>
12702
12703 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12704
12705 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 12706 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
12707 write(2).
12708
6ffd3cf7
RS
127092000-02-15 Richard M. Stallman <rms@gnu.org>
12710
12711 * data.c (set_internal): Don't make variable buffer-local
12712 if within a let-binding for the same buffer.
12713 (let_shadows_buffer_binding_p): New function.
12714
12715 * eval.c (specbind): For buffer-local value,
12716 record the current buffer also.
12717 (unbind_to): Cope with that change.
12718
cad53475
GM
127192000-02-15 Gerd Moellmann <gerd@gnu.org>
12720
12721 * window.c (Fsave_window_excursion): Doc fix.
12722
1aa963c8
SM
127232000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12724
12725 * syntax.c (back_comment): Make sure we only consider comment-starters
12726 of the relevant style and return -1 in case of a failure to find the
12727 beginning of the comment.
12728 (Fforward_comment): If back_comment fails, go back to the position just
12729 after the comment-end.
12730 (scan_lists): Add comment describing a very minor bug.
12731
b9b84fd3
SM
127322000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12733
12734 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12735 `completion-regexp-list' in the docstring.
12736
3a28db80
DL
127372000-02-14 Dave Love <fx@gnu.org>
12738
12739 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12740
fb4a568d
SM
127412000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12742
12743 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12744 to Emacs' syntax. Also fix the comment about set/not-set meanings
12745 since Emacs syntax is not the value 0 any more.
12746 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12747 since it's now part of RE_SYNTAX_EMACS.
12748
1063ebb5
DL
127492000-02-12 Dave Love <fx@gnu.org>
12750
52283633 12751 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 12752
fb07a302
GM
127532000-02-12 Gerd Moellmann <gerd@gnu.org>
12754
12755 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12756
aaf2320c
DL
127572000-02-12 Dave Love <fx@gnu.org>
12758
12759 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12760
12761 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
12762 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12763 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
12764
12765 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12766
12767 * s/nextstep.h: Don't define HAVE_ALLOCA.
12768
12769 * config.in: Add vfork bits.
12770
eedf8bde
GM
127712000-02-12 Gerd Moellmann <gerd@gnu.org>
12772
12773 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12774 unwind function to undo the effect of stopping atimers.
12775
52283633 12776 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
12777
12778 * atimer.c (stopped_atimers): New variable.
12779 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12780 New functions.
12781
12782 * atimer.h (stop_other_atimers, run_all_atimers)
12783 (unwind_stop_other_atimers): Add function prototypes.
427ec082 12784
eedf8bde
GM
12785 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12786
8476c2f8
KR
127872000-02-11 Ken Raeburn <raeburn@gnu.org>
12788
12789 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12790 library may depend on jpeg.
12791 (atimer.o): Depends on atimer.c.
12792
0e85e4a3
KH
127932000-02-11 Kenichi Handa <handa@etl.go.jp>
12794
12795 * insdel.c (del_range_1): Call update_compositions.
12796 (del_range_both): Call update_compositions just once..
12797
97fa0cc8
DL
127982000-02-10 Dave Love <fx@gnu.org>
12799
12800 * xfns.c (create_frame_xic): Fix initialization of automatic
12801 aggregates for pcc.
12802
25566a3c
KH
128032000-02-09 Kenichi Handa <handa@etl.go.jp>
12804
12805 * ccl.c (CCL_MAKE_CHAR): New macro.
12806 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12807 registers by CCL_MAKE_CHAR before calling translate_char.
12808 <CCL_TranslateCharacterConstTbl> Likewise.
12809
69da54ba
DL
128102000-02-08 Dave Love <fx@gnu.org>
12811
12812 * lread.c (__EXTENSIONS__): Define.
12813
f7136ee8
GM
128142000-02-08 Gerd Moellmann <gerd@gnu.org>
12815
12816 * puresize.h (BASE_PURESIZE): Increase to 650000.
12817
7768790b
EZ
128182000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12819
12820 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12821 the help message.
12822
38fd211b
EZ
128232000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12824
12825 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12826 md, mh, mb, mr, and me to the fake termcap entry.
12827
66e4690f
KR
128282000-02-06 Ken Raeburn <raeburn@gnu.org>
12829
12830 * sound.c (sound_cleanup): Don't call device close routine if the
12831 function pointer is null.
12832
a75dfea0
AI
128332000-02-06 Andrew Innes <andrewi@gnu.org>
12834
12835 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12836 around image definitions and prototypes.
12837 (gamma_correct) [WINDOWSNT]: New prototype.
12838
12839 * w32term.c (x_make_frame_visible): Replace call to
12840 input_poll_signal with poll_for_input.
12841
12842 * window.c [WINDOWSNT]: Include w32term.h.
12843
12844 * xdisp.c [WINDOWSNT]: Include w32term.h.
12845
12846 * makefile.nt: Add dependencies on w32gui.h.
12847 (OBJ1): Include atimer.obj.
12848 ($(BLD)\atimer.obj): New dependency rule.
12849
12850 * w32.c (sigmask): New function (does nothing).
12851 (sigunblock): Ditto.
12852
12853 * frame.c [WINDOWSNT]: Include w32term.h.
12854
12855 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12856
12857 * lread.c (syms_of_lread): Fix literal newlines.
12858
12859 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12860 the string constant limit (2048 bytes) in MSVC.
12861 (main): Ditto.
12862
59ddecde
GM
128632000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12864
52283633 12865 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
12866 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12867 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12868 dispatch the event.
12869
07590973
DL
128702000-02-04 Dave Love <fx@gnu.org>
12871
12872 * fileio.c: Remove some unused vars.
12873 (_GNU_SOURCE): Define (for euidaccess).
12874
12875 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12876
12877 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12878 gcpro1, gcpro2.
12879 (read_minibuf): Deal with allow_props correctly.
12880
649351f9
EZ
128812000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12882
12883 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12884
66e4690f 128852000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
12886
12887 * search.c (compile_pattern): If a cache entry has a nil regexp,
12888 fill in that entry instead of clobbering a previously cached
12889 string regexp.
12890
66e4690f 128912000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
12892
12893 * puresize.h (BASE_PURESIZE): Increase to 610000.
12894
d240a249
GM
128952000-02-02 Gerd Moellmann <gerd@gnu.org>
12896
12897 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12898 can GC.
12899
ca91fb26
KH
129002000-02-02 Kenichi Handa <handa@etl.go.jp>
12901
25660570
KH
12902 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12903 instead of incrementing ic directly.
12904 <CCL_WriteExprConst> Likewise.
12905 <ccl_set_expr>: Set ic to jump_address.
12906
ca91fb26
KH
12907 * fileio.c (e_write): Fix the handling of
12908 CODING_FINISH_INSUFFICIENT_SRC.
12909
2ede9689
DL
129102000-02-01 Dave Love <fx@gnu.org>
12911
12912 * editfns.c (Fpropertize): Doc fix.
12913
12914 * process.c (Fstart_process): Doc fix.
12915
12916 * eval.c: Fix various doc strings not to duplicate information
12917 from help-manyarg-func-alist.
12918
52283633 12919 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
12920
12921 * doc.c (Vhelp_manyarg_func_alist): New variable.
12922 (Fdocumentation): Use it.
12923 (syms_of_doc): Define it.
12924
b6680a0e
GM
129252000-01-31 Gerd Moellmann <gerd@gnu.org>
12926
2cb750ba
GM
12927 * xterm.c (xim_open_dpy): Remove unused local variable.
12928
52283633 12929 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
12930
12931 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12932 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12933
b6680a0e
GM
12934 * fns.c (sweep_weak_table): New function.
12935 (sweep_weak_hash_tables): Use it. Keep on marking until there
12936 is no more change.
12937
994c5afe
GM
129382000-01-30 Gerd Moellmann <gerd@gnu.org>
12939
12940 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12941 that XTread_socket does not crash by trying to call XNoOp on a
12942 closed display.
427ec082 12943
f00276e3
JR
129442000-01-30 Jason Rumney <jasonr@gnu.org>
12945
12946 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12947 Change selected_frame to SELECTED_FRAME ().
12948 (w32_console_mouse_position): Remove #ifndef MULE from around
12949 `insist' parameter.
12950
12951 * makefile.nt: Remove dosfns.obj.
12952
12953 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12954
12955 * w32fns.c (w32_defined_color): Check for valid frame before
12956 applying gamma correction. Eliminate dependency on frame elsewhere.
12957 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12958 (w32_to_x_font): Use resx and resy not height_in and width_in.
12959 (x_to_w32_font): Doc fix.
12960 (xlfd_strip_height): New function to strip and return font height.
12961 (w32_font_match): Compare height separately from rest of xlfd
12962 spec, using xlfd_strip_height.
12963
12964 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12965 width_in. Use w32_defined_color in place of defined_color.
12966
12967 * w32faces.c: Merge more of DOS and X specifics in preparation for
12968 merge with xfaces.c.
12969 (defined_color): Remove FIXME comment.
12970 (tty_color_name): Provide w32-specific function.
12971 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12972
12973 * w32console.c (turn_on_face, turn_off_face): Removed.
12974 (w32_face_attributes): New function.
12975 (Global_variables): Reduce scope where possible.
12976 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12977 fill attribute.
12978 (hl_mode): Don't modify text attributes.
12979 (write_glyphs): Don't do anything if len <= 0. Use
12980 w32_face_attributes to get attributes for drawing. Write
12981 terminating codes using char_attr_normal.
12982 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12983 (update_begin, update_end): Likewise.
12984 (vga_stdcolor_name): New function.
12985 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12986 (Fset_screen_color): Remove char_attr_reverse.
12987
b08e8bb2
GM
129882000-01-29 Gerd Moellmann <gerd@gnu.org>
12989
12990 * xfns.c (xic_set_preeditarea): Take window parameter and
12991 window-relative pixel-positions.
12992
12993 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12994 is its frame's selected window.
12995 (xim_instantiate_callback): Likewise.
12996
12997 * xfns.c (x_create_im): Removed.
12998 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12999 (supported_xim_styles): Renamed from supported_styles.
13000 (best_xim_style): Renamed from best_style.
13001 (create_frame_xic): Renamed from xic_create_frame.
13002 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 13003
b08e8bb2
GM
130042000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13005
13006 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13007 our frames, call XFilterEvent with 2nd parameter `None'.
13008 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13009 returning XBufferOverflow.
52283633 13010 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
13011 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13012 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13013 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13014 (xim_initialize, xim_close)
13015 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13016 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13017 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13018 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13019
13020 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13021 and `xim_styles'.
13022 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13023 `xic_style' and `xic_xfs'.
13024 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13025 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13026 (FRAME_XIM): Removed.
13027
13028 * xfns.c (supported_styles): New variable.
13029 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13030 (xic_create_xfontset, best_style, xic_create_frame)
13031 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13032 (xic_set_xfontset): New functions.
13033
142e109c
DL
130342000-01-28 Dave Love <fx@gnu.org>
13035
13036 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13037
13038 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13039
b02786f9
GM
130402000-01-28 Gerd Moellmann <gerd@gnu.org>
13041
d060bc9f
GM
13042 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13043 for *scratch* if it already existed.
13044
b02786f9
GM
13045 * emacs.c (USAGE): New macro.
13046 (main): Use it to display usage information.
13047
2c52d7e4
EZ
130482000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13049
13050 Support for the menu-help feature:
13051
52283633 13052 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
13053
13054 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13055 part of the line to the termscript file.
13056 (IT_clear_to_end): Clear the entire line, not just its beginning.
13057 (menu_help_message, prev_menu_help_message): New variables.
13058 (IT_menu_make_room): Make room for the help_text member.
13059 (IT_menu_display): New argument disp_help; all callers changed.
13060 If disp_help is non-zero, store the help text of the active menu
13061 item in menu_help_message.
13062 (XMenuAddPane): Initialize the help_text member to NULL.
13063 (XMenuAddSelection): New argument help_text. Store it in the
13064 XMenu structure.
13065 (XMenuActivate): New argument help_callback. If the value of
13066 menu_help_message has changed since the last time, display the
13067 menu help message text while waiting for the mouse to move. Clear
13068 the echo area before exiting.
13069 (XMenuDestroy): Free the help_text member.
13070
ffe0bcd1
GM
130712000-01-27 Gerd Moellmann <gerd@gnu.org>
13072
13073 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13074 XMenuAddSelection. Pass help callback to XMenuActivate.
13075 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13076
50dbd23f
EZ
130772000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13078
13079 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13080 and EMACS_SET_USECS.
13081
f5941bf8
GM
130822000-01-26 Dave Love <fx@gnu.org>
13083
6c67ddee
DL
13084 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13085
f5941bf8
GM
13086 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13087 an error may be signalled.
13088
9e49c990
GM
130892000-01-26 Gerd Moellmann <gerd@gnu.org>
13090
fc3cb460
GM
13091 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13092 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13093
9e49c990
GM
13094 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13095
d0c037d8
GM
130962000-01-25 Gerd Moellmann <gerd@gnu.org>
13097
13098 * charset.c (Fstring): If there is a multibyte char among
13099 the args, always return a multibyte string.
13100
e12489f9
GM
131012000-01-25 Gerd Moellmann <gerd@gnu.org>
13102
13103 * sysdep.c (sys_select): Turn atimers off and on instead of
13104 recording and restoring old alarm handler
13105
13106 * process.c (toplevel): Include atimer.h.
13107 (create_process_1): Rewritten.
13108 (create_process): Use atimers instead of alarm.
13109 (wait_reading_process_input) [hpux]: Turn atimers off instead
13110 of turning off SIGALRM.
13111 (wait_reading_process_input): Turn off atimers instead off
13112 calling stop_polling.
13113
13114 * emacs.c (main): Call init_atimer.
13115
13116 * keyboard.c (toplevel): Include systime.h and atimer.h.
13117 (polling_for_input): Removed because unused.
13118 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13119 (poll_timer): New variable.
13120 (poll_for_input, poll_for_input_1): New functions.
13121 (start_polling, stop_polling): Rewritten.
13122
13123 * keyboard.h (polling_for_input): Removed.
427ec082 13124
e12489f9
GM
13125 * atimer.h, atimer.c: New files.
13126
13127 * Makefile.in (obj): Add atimer.o.
13128 (atimer.o): New target.
13129
13130 * blockinput.h (pending_atimers): Add extern declaration.
13131 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13132
13133 * lisp.h (popup_activated_flag): Add extern declaration.
13134
13135 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 13136 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
13137 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13138
13139 * xterm.c (toplevel): Include atimer.h.
13140 (toolkit_scroll_bar_interaction): New variable.
13141 (Fxt_process_timeouts): Removed.
13142 (x_process_timeouts): New function.
13143 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13144 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13145 (x_make_frame_visible): Call poll_for_input_1 instead of
13146 input_poll_signal. Don't call alarm.
13147 (x_initialize): Install timer calling x_process_timeouts.
427ec082 13148
1e5279b9
DL
131492000-01-24 Dave Love <fx@gnu.org>
13150
6c67ddee 13151 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
13152 Don't use -cckr -- apparently not now necessary.
13153
edf6aeb8
EZ
131542000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13155
13156 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13157 screen boundary.
13158
9badad41
JR
131592000-01-23 Jason Rumney <jasonr@gnu.org>
13160
13161 * w32fns.c (w32_defined_color): Apply gamma correction before
13162 trying to map to the palette.
13163 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13164 to w32_clear_rect.
13165
13166 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13167 here. Callers changed to always pass real device context.
13168 (w32_draw_bitmap): Likewise.
13169 (w32_get_glyph_overhangs): Likewise.
52283633 13170 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
13171 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13172 pfnSetScrollInfo and SetScrollRange.
13173 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13174 back into MULE characters after decoding them.
13175 (x_get_glyph_face_and_encoding): Likewise.
13176 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13177 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13178 (x_produce_glyphs): Calculate per char metrics for a character
13179 that we know exists in default font when font_not_found_p is true.
13180
63bd786b
JR
131812000-01-22 Jason Rumney <jasonr@gnu.org>
13182
13183 * makefile.nt (intervals.obj, composite.obj): New modules.
13184 (composite.h): Added as dependency where appropriate.
13185
13186 * w32gui.h (XGCValue): New struct for emulating X GCs.
13187
13188 * w32term.h (XCharStruct): New struct for emulating X.
13189
13190 * w32console.c (turn_on_face, turn_off_face): New functions.
13191 (change_line_highlight): New prototype for new redisplay.
13192 (write_glyphs): Support multibyte text. Support faces.
13193
52283633 13194 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
13195
13196 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13197 throughout. struct frame * in place of FRAME_PTR.
13198 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 13199 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
13200 (w32_get_arg): Renamed from x_get_arg.
13201 (Fx_file_dialog): New function.
13202 (w32_list_fonts): Check cache before asking system.
13203 (Vw32_enable_synthesized_fonts): New variable.
13204 (Vw32_enable_italics): Obsolete, removed.
13205
13206 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13207 Use SELECTED_FRAME macro.
13208
13209 * w32menu.c: Add skeleton support for help strings on menus.
13210 (add_menu_item): Native checkbox and radio support added, but not
13211 yet enabled due to bugs.
13212 (push_menu_item): Add parameters type, selection and help.
13213 Callers updated.
13214 Formatting changes to reduce unnecessary diffs with xmenu.c.
13215
13216 * w32select.c (Fw32_set_clipboard_data): Update call to
13217 find_charset_in_str.
13218
13219 * w32term.c: Complete rewrite for new redisplay based on new
13220 xterm.c with necessary sections merged back in from old w32term.c.
13221
6ffd3cf7 132222000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
13223
13224 * data.c (set_internal): Further fix in same criterion.
13225
6ffd3cf7 132262000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
13227
13228 * data.c (set_internal): Fix the criteria for whether
13229 to swap out the old cached binding.
13230
60af03f1
DL
132312000-01-19 Dave Love <fx@gnu.org>
13232
13233 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13234
f9be074f
KH
132352000-01-18 Kenichi Handa <handa@etl.go.jp>
13236
13237 * regex.c (re_compile_fastmap): While checking a range table for
13238 `charset', skip flag bits for a character class correctly.
13239
52b8dbf9
GM
132402000-01-17 Gerd Moellmann <gerd@gnu.org>
13241
d36100c9
GM
13242 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13243
52283633 13244 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
13245
13246 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 13247 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
13248
13249 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13250 MENU_ITEMS_ITEM_.*.
13251 (MENU_ITEMS_ITEM_HELP): New enumerator.
13252 (push_menu_item): Add parameter HELP. Record help in menu_items.
13253 (single_menu_item, single_submenu, list_of_items): Call
13254 push_menu_item with new parameter.
13255 (single_submenu): Set help string in widget value.
13256 (menu_highlight_callback): New function.
13257 (set_frame_menubar): Call lw_create_widget with new
13258 parameter list.
13259 (xmenu_show, xdialog_show): Ditto.
13260
3139018f
GM
132612000-01-13 Gerd Moellmann <gerd@gnu.org>
13262
13263 * sound.c (Fplay_sound): Improve doc string.
13264
83c8f461
RS
132652000-01-11 Richard M. Stallman <rms@gnu.org>
13266
13267 * lisp.h (set_internal): Enter the new arg.
13268
13269 * eval.c (specbind): Record buffer-local variables specially,
13270 indicating which buffer's binding was saved.
13271 (unbind_to): Restore buffer-local variables specially
13272 in the proper buffer.
13273
13274 * data.c (set_internal): New arg BUF.
427ec082 13275
83c8f461
RS
13276 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13277 * data.c (Fset): Pass new arg to set_internal.
13278 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 13279
1fab1775
GM
132802000-01-11 Gerd Moellmann <gerd@gnu.org>
13281
52283633 13282 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 13283
83c8f461 132842000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
13285
13286 * minibuf.c (Ftry_completion): Doc fix.
13287
7a85e4df
GM
132882000-01-11 Gerd Moellmann <gerd@gnu.org>
13289
13290 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13291 vector, too.
13292
a970dae4
AS
132932000-01-11 Andreas Schwab <schwab@suse.de>
13294
13295 * coding.c (code_convert_region): Initialize total_skip.
13296
c65d14ee
DL
132972000-01-08 Dave Love <fx@gnu.org>
13298
13299 * eval.c (Fuser_variable_p): Check customizability too.
13300
834938d2
GM
133012000-01-07 Gerd Moellmann <gerd@gnu.org>
13302
13303 * minibuf.c (Fcompleting_read): Doc fix.
13304
e0303cd6
GM
133052000-01-05 Gerd Moellmann <gerd@gnu.org>
13306
8a26744b
GM
13307 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13308 -L /usr/local/lib.
13309
e0303cd6
GM
13310 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13311 Check that input style is supported before trying to create an
13312 IC for it.
13313 (x_window): Call x_create_im.
427ec082 13314
2e471eb5
GM
133152000-01-04 Gerd Moellmann <gerd@gnu.org>
13316
560a7bd2
GM
13317 * xfns.c (current_gif_memory_src): New variable.
13318 (gif_load): Record the address of the current memory source
13319 in current_gif_memory_src.
13320 (gif_read_from_memory): Use current_gif_memory_src.
13321
f9ee84a3
GM
13322 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13323 macros statement form.
13324
d1299cde
GM
13325 * sound.c (struct sound): Renamed from struct sound_file.
13326 (struct sound): Add members `data' and `header_size'.
13327 (enum sound_attr): Add SOUND_DATA.
13328 (current_sound, current_sound_device): Variables renamed from
13329 sound_file and sound_device.
13330 (parse_sound): Parse :data.
13331 (parse_sound): Handle sound data in strings.
13332 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 13333 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
13334 needed header size.
13335 (wav_play, au_play): Play sounds from string data.
13336
2e471eb5
GM
13337 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13338
13339 * lisp.h: Add prototype for allocate_string_data.
13340
52283633 13341 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
13342
13343 * alloc.c (mark_buffer): Remove code in #if 0.
13344 (gc_sweep): Ditto.
13345 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13346 (strings_consed): New variable.
13347 (allocate_string): Set it.
13348 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13349 (Fmemory_use_counts): Return strings_consed. Use Flist.
13350
13351 * alloc.c: General cleanup in comments etc. Remove conditional
13352 compilation for `standalone'.
13353
13354 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13355
13356 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13357 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13358 (DONT_COPY_FLAG): Removed.
13359 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13360 (struct sdata, struct sblock): New
13361 (struct string_block): Rewritten.
13362 (STRINGS_IN_STRING_BLOCK): New macro.
13363 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13364 (large_sblocks, string_blocks, string_free_list): New variables.
13365 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13366 (init_strings): Rewritten.
13367 (allocate_string, allocate_string_data, compact_small_strings)
13368 (free_large_strings, sweep_strings): New functions.
13369 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13370 (struct string_block_head, current_string_block)
13371 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13372 (STRING_PAD): Removed.
13373 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13374 (Fgarbage_collect): Don't set mark bit in large strings.
13375 (mark_object): Mark strings differently. Mark symbol names
13376 differently.
13377 (survives_gc_p): Test marked strings differently.
427ec082 13378 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
13379 symbol names.
13380 (compact_strings): Removed.
13381
42608ba8
EZ
133822000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13383
13384 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13385 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13386
e0a09e1a
KH
133872000-01-04 Kenichi Handa <handa@etl.go.jp>
13388
dd9f0750 13389 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 13390 in a non-empty buffer.
dd9f0750 13391
3c0f3b15 13392 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 13393
44cd3ae5
GM
133942000-01-03 Gerd Moellmann <gerd@gnu.org>
13395
13396 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13397 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13398
13399 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13400
c182a70f
EZ
134012000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13402
13403 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13404 need to test for MSDOS frames.
13405
24480d5b
EZ
134062000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13407
13408 * dosfns.c (unspecified_colors): Remove.
13409 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13410 unspecified_bg.
13411 (msdos_stdcolor_name): Return strings for unspecified fore- and
13412 back-ground colors.
13413
13414 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 13415 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
13416 (tty_color_name): Return Lisp strings for unspecified fore- and
13417 back-ground colors.
13418 (Finternal_set_lisp_face_attribute): Remove the special treatment
13419 for Qunspecified_{f,b}g.
52283633 13420 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 13421
047f434a
GM
134222000-01-03 Gerd Moellmann <gerd@gnu.org>
13423
13424 * xdisp.c (reseat_at_next_visible_line_start): Position before
13425 newline only if ending up on a newline.
13426 (next_element_from_ellipsis): Return success. Handle case of
52283633 13427 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
13428 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13429 returns 0.
13430
d684c676
EZ
134312000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13432
13433 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13434 (Fcolor_supported_p): Renamed from face-color-supported-p.
13435
5fe1d139
EZ
134362000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13437
13438 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13439 list of colors renamed to tty-defined-color-alist.
13440 (tty_color_name): Pass the frame to tty-color-by-index.
13441 (realize_tty_face): tty-color-alist is now a function which
13442 accepts the frame as argument.
13443
52283633 13444 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 13445
816be8b8
EZ
134462000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13447
13448 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13449 encode_terminal_code.
13450
b635321e
EZ
134512000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13452
13453 * dispnew.c (mode_line_string): Support termcap frames as well.
13454
9b784e96
GM
134552000-01-01 Gerd Moellmann <gerd@gnu.org>
13456
27189709
GM
13457 * syntax.c (Fforward_word): Undo previous change.
13458
13459 * editfns.c (Fconstrain_to_field): Don't constrain if
13460 inhibit-field-text-motion is non-nil.
13461 (Fline_beginning_position): Undo previous change.
13462 (Fline_end_position): Ditto.
13463
13464 * syntax.c (Fforward_word): Notice field boundaries only if
13465 inhibit-field-text-motion is nil.
13466
13467 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13468
13469 * editfns.c (Vinhibit_field_text_motion): New variable.
13470 (inhibit-field-text-motion): New DEFVAR_LISP.
13471 (Fline_beginning_position, Fline_end_position): Notice field
13472 boundaries only if inhibit-field-text-motion is nil.
13473
45158a91
GM
13474 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13475 All calls adjusted.
13476 (x_build_heuristic_mask): Likewise.
13477 (xbm_load_image_from_file): Change error output.
13478 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13479 (gif_load, gs_load, x_kill_gs_process): Ditto.
13480
9b784e96
GM
13481 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13482 color indices when accessing raster pixels.
63cec32f
GM
13483 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13484 one of :file or :data.
13485 (enum pbm_keyword_index): Add PBM_DATA.
13486 (pbm_format): Add :data.
13487 (pbm_image_p): Allow either :file or :data.
13488 (pbm_read_file): New function.
13489 (pbm_scan_number): Rewritten to read from string.
13490 (pbm_load): Support :data.
9b784e96 13491
2cb085db 13492See ChangeLog.8 for earlier changes.
6922b018
KH
13493
13494;; Local Variables:
49b3bd82 13495;; coding: iso-2022-7bit
6922b018 13496;; End:
2a34a036
GM
13497
13498 Copyright (C) 2001 Free Software Foundation, Inc.
13499 Copying and distribution of this file, with or without modification,
13500 are permitted provided the copyright notice and this notice are preserved.