(x_build_heuristic_mask): Use four_corners_best
[bpt/emacs.git] / src / ChangeLog
CommitLineData
27188d11
GM
12001-11-01 Gerd Moellmann <gerd@gnu.org>
2
43f7c3ea
GM
3 * xfns.c (x_build_heuristic_mask): Use four_corners_best
4 instead of IMAGE_BACKGROUND.
5
b350c2e5
GM
6 * xfns.c (four_corners_best): Reindent.
7
27188d11
GM
8 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9 Handle :box so that it is possible to specify sexprs.
10
d576358b
PJ
112001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
12
13 * xfaces.c (Finternal_merge_in_global_face): Reindent.
14 (Fface_font): Ditto.
15 (Finternal_set_alternative_font_registry_alist): Ditto.
16 (Ftty_suppress_bold_inverse_default_colors): Ditto.
17
18 * xfns.c (x-get-resource): Reindent.
19
bf00d461
EZ
202001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
21
22 * s/hpux11.h: New file.
23
4e10df59
PJ
242001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
25
2b209b97
PJ
26 * emacs.c (USAGE1): Show command line option --no-window-system
27 instead of --no-windows in usage.
28 (standard_args): Rename --no-windows to --no-window-system.
29 (bug_reporting_address): Follow Emacs coding conventions.
30
9dbc9081
PJ
31 * eval.c (Fcommandp): Doc fix.
32 Change doc-string comments to `new style' [w/`doc:' keyword].
33
4e10df59
PJ
34 * frame.c (Fframe_live_p): Doc fix.
35
36 * buffer.c (selective-display-ellipses): Doc fix.
37
dd387b25
GM
382001-10-31 Gerd Moellmann <gerd@gnu.org>
39
fe957e65
GM
40 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
41
dd387b25
GM
42 * xfaces.c (realize_x_face): If C is not a single-byte character,
43 set the face's colors_copied_bitwise_p instead of the defaulted_p
44 members which have a different meaning.
45 (free_face_colors): Do nothing for a face whose colors have been
46 copied bitwise.
47
48 * dispextern.h (struct face) <colors_copied_bitwise_p>: New
49 member.
50
2e1280f8
PJ
512001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
52
687784e8
PJ
53 * marker.c, mocklisp.c: Change doc-string comments to `new style'
54 [w/`doc:' keyword].
2e1280f8 55
b9d9a9b9
GM
562001-10-31 Gerd Moellmann <gerd@gnu.org>
57
58 * fns.c (require_unwind): Return Lisp_Object.
59
48400103
PJ
602001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
61
fa1361cb
PJ
62 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
63 (last-input-char): Revert doc-string to be the same as the
64 doc-string of `last-input-event'.
65
48400103
PJ
66 * xdisp.c: Fix typos in comments.
67
eafa3196
GM
682001-10-31 Gerd Moellmann <gerd@gnu.org>
69
70 * window.c (grow_mini_window): Handle case that the root
71 window is already smaller than the nominal mininum height.
72
747d3f2a
SM
732001-10-30 Stefan Monnier <monnier@cs.yale.edu>
74
bf9bb76f
SM
75 * emacs.c (main): Don't call keys_of_macros any more.
76
77 * lisp.h (keys_of_macros): Remove.
78
79 * macros.c (keys_of_macros): Remove.
80
747d3f2a
SM
81 * xfaces.c (Fface_attribute_relative_p): Declare args.
82
5e905a57
JR
832001-10-30 Jason Rumney <jasonr@gnu.org>
84
85 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
86 (enum_font_cb2): Ignore fonts with vertical orientation.
87
3a426197
RS
882001-10-30 Richard M. Stallman <rms@gnu.org>
89
90 * keyboard.c (Finput_pending_p): Doc fix.
91
a742d646
GM
922001-10-30 Gerd Moellmann <gerd@gnu.org>
93
259cf6bc
GM
94 * xterm.c (x_after_update_window_line): Don't run the code
95 clearing in borders for rows whose visible height is 0.
96
3f99f948
GM
97 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
98 resized_p flag is set. If not set, use the much less flickering
99 method previously used.
100
101 * dispnew.c (change_frame_size_1): Set frame's resized_p.
102
103 * frame.h (struct frame) <resized_p>: New member.
104
b4a3be43
GM
105 * lread.c (to_multibyte): Ensure read_buffer is at least twice
106 as large as the number of bytes to convert.
747d3f2a 107
a742d646
GM
108 * lread.c (to_multibyte): New function.
109 (read1): Use it.
110
cacbb9e9
EZ
1112001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
112
113 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
114
99cb6b2f
GM
1152001-10-30 Gerd Moellmann <gerd@gnu.org>
116
327f42ee 117 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
118 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
119 if the row's fill_line_p is set and drawing the last glyph with
120 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 121
99cb6b2f
GM
122 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
123
8e8223e2
SM
1242001-10-29 Stefan Monnier <monnier@cs.yale.edu>
125
126 * xmenu.c: Include coding.h and charset.h.
127 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
128 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
129 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
130 Explicitly set wv->help. Use `TRUE' rather than `True'.
131 (menu_help_callback): Use empty_string.
132
133 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
134 (Fx_popup_dialog): Explicitly init f.
135 (w32_menu_display_help): Use empty_string.
136
4d083a8f
RS
1372001-10-29 Richard M. Stallman <rms@gnu.org>
138
b2304472
RS
139 * fns.c (Frequire): Detect recursive try to require the same
140 feature 3 or more levels deep, and get error.
141 (require_unwind): New subroutine.
142 (require_nesting_list): New variable.
143 (syms_of_fns): Init and staticpro it.
144
4d083a8f
RS
145 * print.c (print_object): Clarify indication of insertion type.
146
2fe41216
EZ
1472001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
148
90480000
EZ
149 * coding.c (syms_of_coding): Document that locale-coding-system is
150 used for decoding input on X.
151
2fe41216
EZ
152 * window.c (Fscroll_left, Fscroll_right): Doc fix.
153
74e79967
PJ
1542001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
155
156 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
157 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
158
60ebcfe8
GM
1592001-10-29 Gerd Moellmann <gerd@gnu.org>
160
9a7bdceb
GM
161 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
162 use NO_CURSOR if cursor_in_non_selected_windows is false.
163
3f08fcd2
GM
164 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
165 the slant attribute if FRAME is t.
166
0ccfdad2
GM
167 * xfns.c (x_set_internal_border_width): Set frame garbaged
168 when X window doesn't exist yet.
169
ef253080
GM
170 * xterm.c (x_after_update_window_line): Clear internal border
171 in different circumstances.
172
60ebcfe8
GM
173 * xterm.c (XTread_socket) <KeyPress>: Don't use
174 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
175 <handa@etl.go.jp>.
176
73d25f9c
EZ
1772001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
178
179 * m/ibms390.h: New file. From Adam Thornton
180 <athornton@sinenomine.net>.
181
cac1daf0
GM
1822001-10-28 Gerd Moellmann <gerd@gnu.org>
183
053b3256
GM
184 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
185
cac1daf0
GM
186 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
187 a loop counter.
188
13b1a09c
PJ
1892001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
190
186486eb
PJ
191 * emacs.c: Use argv[0] instead of emacs when -t was specified.
192
4707d2d0
PJ
193 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
194 keyword].
195 Fix typos in comments.
196
d883731c
PJ
197 * emacs.c (bug_reporting_address): New function.
198 Use it when displaying usage message.
199
04012254
PJ
200 * minibuf.c (read_minibuf): Remove unused external declaration of
201 variable `Qread_only'.
202
13b1a09c
PJ
203 * keymap.c (access_keymap): Remove unused variable `charset'.
204
5bbf4378
MB
2052001-10-28 Miles Bader <miles@gnu.org>
206
207 * xfaces.c (merge_face_heights): Handle TO being relative as well.
208 Remove #ifdef'd-out code.
209 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
210 (syms_of_xfaces): Initialize them.
211
1ce1e4ee
JR
2122001-10-27 Jason Rumney <jasonr@gnu.org>
213
214 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
215 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
216 position using the system caret.
217
218 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
219 (w32_system_caret_height, w32_system_caret_x)
220 (w32_system_caret_y): New variables for tracking system caret.
221 (w32_initialize): Initialize them.
c2d53558 222 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 223
c2d53558
SM
224 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
225 New messages types.
1ce1e4ee
JR
226
227 * w32term.c (note_mouse_highlight): Clear old help_echo.
228
4e30ce42
PJ
2292001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
230
bb4600a4
PJ
231 * xterm.c: Fix typo in a comment.
232
7db35a48
PJ
233 * emacs.c: Fix typos in comments.
234 Remove unnecessary spaces.
235 Change doc-string comments to `new style' [w/`doc:' keyword].
236 (USAGE2): Fix typos in usage string.
237
a7248e4f
PJ
238 * xterm.c: Fix typo in a comment.
239
4e30ce42
PJ
240 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
241 emacs.c.
242
62725a92
GM
2432001-10-27 Gerd Moellmann <gerd@gnu.org>
244
798dbe1f 245 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 246 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
247 farther backward when target_y was not reached.
248
62725a92
GM
249 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
250 Display errno only if non-zero.
251 (sound_warning): New function.
252 (vox_configure): Don't treat failing to set sample rate as error.
253 (various places): Improve error messages.
254
d4e34d24
EZ
2552001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
256
944e6f60
EZ
257 * fileio.c (Faccess_file): Run the argument filename through
258 Fexpand_file_name, before using it.
259
d4e34d24
EZ
260 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
261 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
262
38d2af0c
GM
2632001-10-26 Gerd Moellmann <gerd@gnu.org>
264
da80a8d5
GM
265 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
266
38d2af0c
GM
267 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
268 Fix clearing in the case of scroll bars on the right.
c2d53558 269
56f508dd
EZ
2702001-10-26 Juanma Barranquero <lektu@terra.es>
271
272 * w32gui.h (XImage): Add a dummy typedef.
273
fbd5ceb2
GM
2742001-10-26 Gerd Moellmann <gerd@gnu.org>
275
c2d53558 276 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 277
b23236fb
EZ
2782001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
279
280 * frame.c (Fframe_parameter): Fix last change.
281
5d991fc4
EZ
282 * fileio.c: Revert last change (which removed old commented-out
283 version of expand-file-name). Add a comment that explains why
284 this old version should not be removed.
285
879eadc3
GM
2862001-10-25 Gerd Moellmann <gerd@gnu.org>
287
75700ff2
GM
288 * frame.c (Fframe_parameter): Fix a bug whereby some
289 ``artificial'' frame parameters, like `minibuffer' were not
290 obtained by calling Fframe_parameters.
291
dfe92a6a
GM
292 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
293 cursor differently.
294
879eadc3
GM
295 * xdisp.c (move_it_vertically_backward): Compute line height
296 differently. Add heuristic to try to be more compatible to 20.x.
297
e1010ebe
SM
2982001-10-25 Stefan Monnier <monnier@cs.yale.edu>
299
d73a471b
SM
300 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
301
d6da5a06
GM
302 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
303 boolean.
e1010ebe 304
f66bd220
MB
3052001-10-25 Miles Bader <miles@gnu.org>
306
307 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
308 BG is a pointer to a structure, not a structure.
309 (gif_format, png_format): Add missing commas.
310
d436d538
RS
3112001-10-24 Richard M. Stallman <rms@gnu.org>
312
313 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 314 (syms_of_xfaces): Defsubr it.
d436d538 315
075c507b
PJ
3162001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
317
318 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
319 variable `area'.
320
d492b584
PJ
3212001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
322
c2d53558 323 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 324
e2a57b34
MB
3252001-10-25 Miles Bader <miles@gnu.org>
326
327 * dispextern.h (struct image): Add `background',
328 `background_valid', and `background_transparent' fields.
329 (image_background, image_background_transparent): New declarations.
330 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
331 * xfns.c (image_background, image_background_transparent)
332 (four_corners_best): New functions.
c2d53558 333 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
334 (gs_format): Add `:background' entry.
335 (lookup_image): Set IMG's background color if specified.
336 (pbm_load, xbm_load_image, png_load): Set IMG's background field
337 when appropriate.
338 (x_clear_image_1): Reset `background_valid' and
339 `background_transparent_valid' fields.
340 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
341 calculating it here. Set IMG's background_transparent field.
342 (enum xpm_keyword_index): Add XPM_BACKGROUND.
343 (enum png_keyword_index): Add PNG_BACKGROUND.
344 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
345 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
346 (enum gif_keyword_index): Add GIF_BACKGROUND.
347 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 348 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
349 Pre-calculate image background color where necessary.
350 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
351 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
352 color to use for image glyph reliefs.
353
b547b6e8
GM
3542001-10-24 Gerd Moellmann <gerd@gnu.org>
355
d9e3b8c6
GM
356 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
357 in full-width rows.
c2d53558 358
b547b6e8
GM
359 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
360 Fix clearing of area not covered by scroll bar.
361
2beb36f9
PJ
3622001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
363
364 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
365 and `real_start'.
c2d53558 366 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
367 (glyph_rect): Remove unused variable `area'.
368
76cb5e06
GM
3692001-10-24 Gerd Moellmann <gerd@gnu.org>
370
bdbdebff 371 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
372
373 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
374 (row_containing_pos): Take additional argument DY.
375 Treat rows ending in middle of char differently.
62e33982
GM
376 (display_line): Handle tabs on window systems differently.
377
378 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
379 with additional argument.
380
381 * dispextern.h (row_containing_pos): Adjust prototype.
382
76cb5e06
GM
383 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
384 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
385 (try_window_id, try_window_reusing_current_matrix)
386 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
387 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
388
996fee11
PJ
3892001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
390
c9e60620
PJ
391 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
392 gnuemacs).
393 (HAVE_BOXES): Fix typo in comment.
394 (push_menu_pane): Fix typo in comment.
395
3b552d56
PJ
396 * xdisp.c: (display_prop_string_p): Remove unused local declaration
397 of `Qwhen'.
398 (single_display_prop_string_p): Remove unused local declarations
399 of `Qwhen' and `Qmargin'.
400 (string_buffer_position): Remove unused variable `around'.
401 (store_frame_title): Remove unused variable `width'.
402
15c565ac
PJ
403 * window.c: Don't define max.
404 (coordinates_in_window): Remove unused variable `uy'.
405
a8818eb9
PJ
406 * widget.c: Don't define max.
407
996fee11
PJ
408 * process.c: Don't define max.
409 (create_process): Remove unused variable `buffer'.
410
496e1a5b
GM
4112001-10-23 Gerd Moellmann <gerd@gnu.org>
412
c2d53558 413 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 414
5905ae8b
EZ
4152001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
416
417 * xfaces.c (Finternal_set_lisp_face_attribute)
418 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
419 frame is on a windowed display.
420
24db49fb
GM
4212001-10-23 Gerd Moellmann <gerd@gnu.org>
422
c2d53558
SM
423 * dispnew.c (sync_window_with_frame_matrix_rows):
424 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
425 of marginal areas.
426
c2d53558 427 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 428
f0487f05
EZ
4292001-10-23 Andreas Schwab <schwab@suse.de>
430
431 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
432 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
433
f0a48a01
GM
4342001-10-23 Gerd Moellmann <gerd@gnu.org>
435
c2d53558 436 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
437 REAL_END. Notice if cursor gets overwritten.
438 (notice_overwritten_cursor): Take X positions as parameters.
439 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
440 around call to x_draw_glyphs.
441
a50a10a0
PJ
4422001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
443
fc11dff0
PJ
444 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
445 instead of C) and usage.
a50a10a0 446
fc11dff0
PJ
447 * editfns.c (char-to-string): Fix argument names (use CHAR instead
448 of C) and usage.
a50a10a0
PJ
449
450 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
451 `left', `max_width' and `max_height'.
452
8738febd
GM
4532001-10-23 Gerd Moellmann <gerd@gnu.org>
454
455 * xdisp.c (display_line): For a tab continued to the next line,
456 set row's ends_in_middle_of_char_p.
457
653c329b
GM
4582001-10-22 Gerd Moellmann <gerd@gnu.org>
459
460 * xdisp.c (display_line): Fix computation of continuation lines
461 width for TABs.
462
f958c5ac
PJ
4632001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
464
7ba51063
PJ
465 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
466 `Qlaplace'.
467
f958c5ac
PJ
468 * fileio.c: Remove unused code.
469
eb360291
MB
4702001-10-22 Miles Bader <miles@gnu.org>
471
472 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
473 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
474 Remove `DOC_STRINGS_IN_COMMENTS' cases.
475
98515cf0
JR
4762001-10-21 Jason Rumney <jasonr@gnu.org>
477
478 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
479
93026d88
EZ
4802001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
481
482 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
483 (Finsert_string): Avoid the multi-line string literals warning.
484
c9a95b79
MB
4852001-10-22 Miles Bader <miles@gnu.org>
486
487 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
488 (Fdocumentation): Don't use it.
489 (syms_of_doc): Don't initialize it.
490
491 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
492 * print.c (Fwith_output_to_temp_buffer): Likewise.
493 * window.c (Fsave_window_excursion): Likewise.
c2d53558 494 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 495 (Fsave_restriction): Likewise.
c2d53558
SM
496 * eval.c (Frun_hooks, Frun_hook_with_args)
497 (Frun_hook_with_args_until_failure)
498 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
499 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
500 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
501 (Funwind_protect, Fcondition_case): Likewise.
502 * coding.c (Ffind_operation_coding_system): Likewise.
503 * keyboard.c (Ftrack_mouse): Likewise.
504
a3b10252
MB
5052001-10-21 Miles Bader <miles@gnu.org>
506
c2d53558 507 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
508 (Fmake_hash_table): Add usage: string to doc string.
509 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 510 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
511 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
512 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
513 (Fml_prefix_argument_loop): Likewise.
514
c6f73eec
PJ
5152001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
516
c2d53558 517 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 518
c6f73eec
PJ
519 * sysdep.c (init_sys_modes): Change doc-string comments to `new
520 style' [w/`doc:' keyword].
521
522 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
523 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
524 comments to `new style' [w/`doc:' keyword].
525
3cf3436e
JR
5262001-10-21 Jason Rumney <jasonr@gnu.org>
527
528 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
529
c169b8f1
JR
530 * w32term.c (remember_mouse_glyph): New function.
531 (w32_mouse_position): Use it.
532 (note_mouse_movement): If the mouse moved off the glyph, remember
533 its new position.
c2d53558 534
4fdd691b
JR
535 * w32term.h (struct w32_output): Correct spelling of x_compatible.
536 (w32_display_info): Add mouse_face_overlay.
537
c169b8f1
JR
538 * w32term.c (notice_overwritten_cursor): Renamed from
539 note_overwritten_text_cursor. Rewritten to take glyph widths into
540 account.
541 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
542 (fast_find_string_pos): New function.
543 (fast_find_position): Return the correct vpos. Add parameter
544 STOP. In the final row, stop before glyphs having STOP as object.
545 Don't consider glyphs that are not from a buffer.
546 (fast_find_position) [0]: Add a presumably more correct version
547 for after 21.1.
548 (expose_window_tree, expose_frame): Don't compute intersections here.
549 (expose_window): Do it here instead.
550 (expose_window_tree, expose_window, expose_line): Return 1 when
551 overwriting mouse-face.
552 (expose_window): If W is the window currently being updated, mark
553 the frame garbaged.
554 (expose_frame): If mouse-face was overwritten, redo it.
555 (x_use_underline_position_properties): New variable.
556 (syms_of_xterm): DEFVAR_BOOL it.
557 (x_draw_glyph_string): Add comment to use it in future.
558 (x_draw_glyph_string): Restore clipping after drawing box.
559 Fix a computation of the underline position.
560 (w32_get_glyph_string_clip_rect): Minor cleanup.
561 (x_fill_stretch_glyph_string): Remove an assertion.
562 (x_produce_glyphs): Don't convert multibyte characters
563 to unibyte characters in unibyte buffers.
564 (cursor_in_mouse_face_p): New function.
565 (x_draw_stretch_glyph_string): Use it to choose a different GC
566 when drawing a cursor within highlighted text. Don't draw
567 background again if it has already been drawn.
568 (x_draw_glyph_string_box): Don't draw a full-width
569 box just because the glyph row's full_width_p flag is set.
570 (x_draw_glyphs): Fix computation of rightmost x for
571 full-width rows.
572 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
573 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
574 change bottom shadow accordingly. Some cleanup.
575 (x_update_window_end): Handle overwritten mouse face
576 also for tool bar windows.
577 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
578 DRAW is DRAW_IMAGE_RAISED.
579 (clear_mouse_face): Return 1 if text with mouse face was
580 actually redrawn. Make the function static. Reset
581 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
582 optimize away highlighting if we pass over that same overlay again.
583 (note_mouse_highlight): Call mouse_face_overlay_overlaps
584 to detect a case where we have to highlight a different region
585 despite not having left the currently highlighted region.
586 Set mouse_face_overlay in the x_display_info. Avoid changing the
587 mouse pointer shape when show_mouse_face has already done it, or
588 there is no need. Handle mouse-face and help-echo in strings.
589 (glyph_rect): New function.
590 (w32_mouse_position): Use it to raise the threshold for mouse
591 movement event generation.
592 (w32_initialize_display_info): Initialize the x_display_info's
593 mouse_face_overlay.
594 (w32_set_vertical_scroll_bar): Don't clear a zero height
595 or width area.
596 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
597 a widget to zero height.
598
3cf3436e 599 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 600 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
601 equivalents in menu_items.
602 (w32_menu_show): Don't overwrite an item's name with its key
603 description in case the description is a multibyte string.
604 (single_submenu): Some cleanup.
605
606 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
607 (postprocess_image): New function.
608 (lookup_image): Call it for all image types except PostScript.
609 (x_kill_gs_process): Call postprocess_image.
610 (tiff_error_handler, tiff_warning_handler): New functions.
611 (tiff_load): Install them as handlers.
612 (x_kill_gs_process): Recognize if someone has cleared the image
613 cache under us.
614 (valid_image_p): Protect better against invalid image
615 specifications. Previous code could signal an error.
616 (Fx_hide_tip, Fshow_tip): Doc fix.
617 (Fv_max_tooltip_size): New variable.
618 (syns_of_xfns): DEFVAR_LISP it.
619 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
620 window buffer to *tip* right after creating the frame. Set frame's
621 window_width. Use a maximum tooltip size specified by
622 Vx_max_tooltip_size, if that has valid contents.
623 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
624 Make sure the tooltip is completely visible.
625 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
626 (Fx_create_frame): Adjust the frame's height for presence
627 of the tool bar before calling x_figure_window_size.
628 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
629 when the window gets smaller.
630 (x_set_foreground_color): Set frame's cursor_pixel.
631 (x_set_foreground_color, x_set_background_color): Cleaned up.
632 (x_set_font): Handle case of x_new_fontset returning the same name
633 as before, although there was a change in fontsets.
634
386ca361
MB
6352001-10-21 Miles Bader <miles@gnu.org>
636
c2d53558 637 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
638 (Flogxor): Add usage: string to doc string.
639 * charset.c (Fstring): Likewise.
640 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
641 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
642
14ff1ee0
PJ
6432001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
644
03be2694
PJ
645 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
646
647 * alloc.c: Reindent DEFUNs with doc: keywords.
648
649 * abbrev.c (Finsert_abbrev_table_description): Reindent.
650
14ff1ee0
PJ
651 * frame.c: Change doc-string comments to `new style' [w/`doc:'
652 keyword].
653
71431a0e
GM
6542001-10-20 Gerd Moellmann <gerd@gnu.org>
655
6aa97356 656 * (Version 21.1 released.)
71431a0e 657
39f624fa
PJ
6582001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
659
c2d53558 660 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
661
662 * xdisp.c (invisible_text_between_p): Put prototype inside #if
663 0 because unused.
664
665 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
666 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
667 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 668
abcce93a
MB
6692001-10-20 Miles Bader <miles@gnu.org>
670
671 The following changes remove the glyph_row `inverse_p' field,
672 which is never set anymore, due to other changes:
673
674 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
675 (reassert_line_highlight, change_line_highlight): Declarations removed.
676 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
677 (line_hash_code, row_equal_p, fake_current_matrices)
678 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
679 (update_frame_line, update_frame_line, update_frame_line):
680 Don't use `inverse_p' field.
681 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
682 change_line_highlight_hook.
683 (XTreassert_line_highlight, x_change_line_highlight):
684 Functions removed.
c2d53558 685 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
686 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
687 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
688 `inverse_p' field.
c2d53558 689 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
690 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
691 (w32_reassert_line_highlight, x_change_line_highlight):
692 Functions removed.
693 * w32console.c (reassert_line_highlight, change_line_highlight):
694 Functions removed.
695 (initialize_w32_display): Don't set reassert_line_highlight_hook
696 or change_line_highlight_hook.
697 (hl_mode): Function removed.
c2d53558
SM
698 (reset_terminal_modes, set_terminal_modes, update_begin)
699 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
700 (clear_frame, ins_del_lines): Don't call it.
701 * termhooks.h (reassert_line_highlight_hook)
702 (change_line_highlight_hook): Declarations removed.
703 * term.c (reassert_line_highlight_hook)
704 (change_line_highlight_hook): Variables removed.
705 (reassert_line_highlight, change_line_highlight): Functions removed.
706 * msdos.c (IT_reassert_line_highlight)
707 (IT_change_line_highlight): Functions removed.
708 (internal_terminal_init): Don't set reassert_line_highlight_hook
709 or change_line_highlight_hook.
710 (highlight): Variable removed.
c2d53558 711 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
712 (IT_set_terminal_modes): Don't set or use it.
713
714 The following changes remove inverse-video support for terminals
715 that use a `magic cookie' standout mode. Due to changes in the
716 way mode-lines are displayed, such support no longer works
717 anyway, and it's probable that almost no one uses such terminals
718 anymore:
719
720 * term.c (standout_requested): Variable removed.
721 (update_end, highlight_if_desired): Don't use it.
722 (chars_wasted, copybuf): Variables removed.
723 (write_standout_marker): Function removed.
c2d53558 724 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
725 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
726 Don't use `chars_wasted' or `copybuf'.
727 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
728 Set `costs_set' to true.
729 (cursor_to, clear_end_of_line): Test `costs_set' instead of
730 `chars_wasted'.
731 (clear_end_of_line): Function removed.
732 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
733 (clear_to_end): Call `clear_end_of_line' instead of
734 `clear_end_of_line_raw'.
54800acb
MB
735 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
736 (term_init): Don't set them.
737 Turn off any standout/underline modes that require magic cookies.
c2d53558 738 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
739 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
740 Remove special processing for magic-cookie standout modes.
741 (turn_off_face, turn_on_face): Remove special processing for
742 underline magic-cookie glitch.
abcce93a 743
0b5f679f
RS
7442001-10-19 Richard M. Stallman <rms@gnu.org>
745
746 * eval.c (syms_of_eval): Doc fixes.
747
5a4a5bd4
GM
7482001-10-19 Gerd Moellmann <gerd@gnu.org>
749
750 * xdisp.c (redisplay_internal): Don't clear echo area if the
751 mini-window is selected.
752
79f1f96c
MB
7532001-10-19 Miles Bader <miles@gnu.org>
754
b57c2708
MB
755 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
756 doesn't take precedence if the affected property's value is nil.
757
758 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
759
79f1f96c
MB
760 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
761 with fields and suggest using `forward-line' to avoid them.
762 * editfns.c (Fline_beginning_position, Fline_end_position):
763 Clarify documentation.
764
ef879104
SM
7652001-10-18 Stefan Monnier <monnier@cs.yale.edu>
766
767 * keymap.c (current_minor_maps): `override' only shadows its
768 correspondent in minor-mode-map-alist, not the whole tail.
769
97f4db8c
AI
7702001-10-18 Andrew Innes <andrewi@gnu.org>
771
772 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
773 optimization. The fontp->encoding array was not being initialized
774 correctly when compiled with optimizations by MSVC.
775
e6b70fd8
GM
7762001-10-18 Gerd Moellmann <gerd@gnu.org>
777
30903479 778 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 779
0e804d38
AI
7802001-10-17 Andrew Innes <andrewi@gnu.org>
781
782 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
783
784 * w32fns.c (w32_load_system_font): Cache codepage for font, in
785 font_info.charset field.
786
787 * w32term.c (w32_encode_char): Get cached codepage from font_info,
788 rather than working it out by calling w32_codepage_for_font for
789 every glyph.
790
66e5868a
AI
7912001-10-17 Andrew Innes <andrewi@gnu.org>
792
793 * w32term.c (w32_read_socket): Determine clipping rectangle for
794 the entire frame, including areas covered by scrollbars and the
795 menubar. This avoids internal arguments about whether a frame is
796 fully obscured or not.
797
15b00083
GM
7982001-10-17 Gerd Moellmann <gerd@gnu.org>
799
23e8bd86
GM
800 * xdisp.c (try_window_id): Undo last change. Give up if
801 window ends in strings.
30903479 802
9c6ba6d1 803 * xdisp.c (try_window_id): Don't display lines after the window
30903479 804 end if the rest of the window after the window end was already blank.
23e8bd86 805
30903479 806 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
807 for the release of 21.1.
808
30903479 809 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 810
945220bd
MB
8112001-10-17 Miles Bader <miles@gnu.org>
812
813 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
814 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
815 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
816 Change doc-string comments to `new style' [w/`doc:' keyword].
817 (DOC_STRINGS_IN_COMMENTS): Macro removed.
818 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
819 out make-docfile.
820
14242528
MB
8212001-10-16 Miles Bader <miles@gnu.org>
822
823 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
824
3ddf952f
GM
8252001-10-16 Gerd Moellmann <gerd@gnu.org>
826
827 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
828 *scratch*.
829
f3fbd155
KR
8302001-10-16 Ken Raeburn <raeburn@gnu.org>
831
832 Avoid the assumption that car and cdr slots of cons cells are
833 addressable lvalues; this allows for easier experimentation with
834 other lisp implementations that may not permit such accesses for
835 various reasons. Not quite complete -- buffer.c still needs some
836 work, and w32/mac files need rechecking -- so compile-time
837 enforcement is left disabled for now.
838
839 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 840 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
841 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
842 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
843 (XSETCAR, XSETCDR): New macros.
844 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
845 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
846 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
847 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
848 XSETCDR.
849 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
850 * buffer.c (record_buffer, Fbury_buffer)
851 (swap_out_buffer_local_variables, recenter_overlay_lists)
852 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
853 fields of a cons cell respectively.
854 * callint.c (quotify_args, Fcall_interactively): Likewise.
855 * ccl.c (Fregister_code_conversion_map): Likewise.
856 * coding.c (detect_coding_system): Likewise.
857 * composite.c (get_composition_id, make_composition_value_copy):
858 Likewise.
30903479
SM
859 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
860 (swap_in_symval_forwarding, set_internal, Fset_default)
861 (Fmake_variable_buffer_local, Fmake_local_variable)
862 (Fmake_variable_frame_local): Likewise.
f3fbd155 863 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 864 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 865 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
866 * minibuf.c (get_minibuffer): Likewise.
867 * search.c (Fmatch_data): Likewise.
868 * textprop.c (extend_property_ranges): Likewise.
c2d53558 869 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
870 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
871 Likewise.
872 * w32term.c (x_delete_display): Likewise.
873 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
874 Likewise.
c2d53558 875 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 876 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 877 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
878 (Fread_file_name): Use XSETCAR.
879 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
880 CHECK_NUMBER_CDR.
881 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
882 * frame.c (Fmake_terminal_frame): Use XSETCDR.
883 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
884 CHECK_NUMBER_CDR.
885 * keyboard.c (read_char): Alter list traversal to avoid taking the
886 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
887 (parse_menu_item): Use XSETCAR and XSETCDR.
888 (reach_char_x_menu_prompt): Use XSETCAR.
889 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
890 (Fcommand_execute): Use XSETCDR.
891 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
892 (openp): Change list traversal to avoid using XCAR as lvalue.
893 (read_list): Use XSETCDR.
894 * process.c (wait_reading_process_input): Change wait_for_cell
895 handling to avoid taking addresses of cons cell slots.
30903479
SM
896 * xselect.c (x_own_selection, x_handle_selection_clear)
897 (x_clear_frame_selections): Use XSETCDR.
898 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
899 (x_handle_property_notify, x_get_foreign_selection)
900 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 901
502150e5
PJ
9022001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
903
018ba359
PJ
904 * buffer.c: Put doc strings in comments.
905
30903479 906 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 907
b56ba8de
SS
9082001-10-15 Sam Steingold <sds@gnu.org>
909
910 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
911
6a0b793a
PJ
9122001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
913
30903479
SM
914 * process.c (process-inherit-coding-system-flag)
915 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
916 in comment.
917
a1f17501 918 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 919 arguments. Put doc strings in comments.
a65da641
PJ
920
921 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 922
aa601ad0
GM
9232001-10-15 Gerd Moellmann <gerd@gnu.org>
924
30903479 925 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 926
aa601ad0
GM
927 * window.c (select_window_1): Unfreeze window start. Remove a
928 doubled test for WINDOW being live.
929
288148a1
PJ
9302001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
931
dd8d1e71
PJ
932 * fns.c (Fmapconcat): Fix typo in a doc string.
933
288148a1
PJ
934 * dispnew.c (Fsleep_for): Fix typo in a doc string.
935
9f5eb4a3
GM
9362001-10-15 Gerd Moellmann <gerd@gnu.org>
937
938 * xterm.c (x_draw_glyph_string): Restore clipping after
939 drawing box.
940
dbae44c8
PJ
9412001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
942
30903479 943 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 944
0c88c937
SM
9452001-10-14 Stefan Monnier <monnier@cs.yale.edu>
946
56378db4
GM
947 * indent.c (skip_invisible): Use new retval of
948 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 949
845e4cf4
SM
950 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
951 If a parent is reached and noinherit is set, exit immediately.
952 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
953
0c88c937
SM
954 * s/ms-w32.h (EXEC_SUFFIXES):
955 * s/msdos.h (EXEC_SUFFIXES):
956 * process.h (EXEC_SUFFIXES): Remove.
957
958 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
959 (decode_suffixes): Remove.
960
961 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
962 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
963 (invisible_ellipsis_p): Remove.
0c88c937
SM
964
965 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
966 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
967 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
968 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
969 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 970
d19be8a9
PJ
9712001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
972
04d7d066
PJ
973 * lisp.h (Ftop_level): Add prototype.
974
d624284c
PJ
975 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
976 (XTread_socket): Improve style of comments to follow other
977 comments.
978
a87414f9
PJ
979 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
980 is already prototyped in included lisp.h).
981
d19be8a9
PJ
982 * frame.c (Fset_mouse_position): Improve style of comment to
983 follow other comments.
984 (Fset_mouse_pixel_position): Improve style of comment to follow
985 other comments.
986 (Fmake_frame_visible): Doc fix and typo in comment.
987 (Fmake_frame_invisible): Doc fix and typo in comment.
988 (Ficonify_frame): Fix typo in comment.
989
c061c855
GM
9902001-10-14 Gerd Moellmann <gerd@gnu.org>
991
37f6b5b6 992 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 993 * term.c, alloc.c: Put doc strings in comments.
c061c855 994
e641b454
GM
9952001-10-13 Gerd Moellmann <gerd@gnu.org>
996
997 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
998 Provide definitions for doc strings in comments.
999
1000 * fns.c: Put doc strings in comments.
1001
51724e26
EZ
10022001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1003
1004 * dired.c (file_name_completion): Ignore a candidate directory if
1005 it matches an element in completion-ignored-extensions that ends
1006 in a slash.
1007 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1008 feature in the doc string.
1009 (Ffile_name_completion): Ditto.
1010
be5fc59b
SM
10112001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1012
5a1373f3
SM
1013 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1014
1015 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1016
1017 * lisp.h (Fprovide): Update prototype.
1018 (Ffeaturep, invisible_p): Remove.
1019
bbc4a3d3 1020 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
1021 (DOLIST, LOOP_PROPVAL): New macros.
1022 (invisible_p, invisible_ellipsis_p): Use them.
1023 (invisible_noellipsis_p): New function.
1024 (syms_of_xdisp): Use empty_string.
1025
1026 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1027
1028 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1029 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1030
1031 * print.c (Fwith_output_to_temp_buffer): Align with
1032 internal_with_output_to_temp_buffer.
1033 (print_preprocess): Use traverse_intervals_noorder.
1034 (print_object): Update call to traverse_intervals.
1035
1036 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1037 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1038
1039 * intervals.c (traverse_intervals_noorder): New function.
1040 (search_for_interval, count_intervals): Use it.
1041 (traverse_intervals): Use less stack space and drop `depth' arg.
1042
1043 * fns.c (Ffeaturep): Add new `subfeature' arg.
1044 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1045 (Qsubfeatures): New var.
1046 (syms_of_fns): Initialize it.
1047
026f408d
SM
1048 * keymap.c (Fkey_description): Use empty_string.
1049 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1050 (syms_of_keymap): Setup inheritance between maps.
1051 Don't export Sdescribe_bindings_internal any more.
1052
be5fc59b
SM
1053 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1054
3365175e
GM
10552001-10-12 Gerd Moellmann <gerd@gnu.org>
1056
1057 * xterm.c (notice_overwritten_cursor): Renamed from
1058 note_overwritten_text_cursor. Rewritten to take glyph widths into
1059 account.
1060
2ab7765c
EZ
10612001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1062
1063 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1064 multi-line strings without a trailing "\n\".
1065
311346bb
PJ
10662001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1067
1068 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1069 defined.
1070
2168e04d
SM
10712001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1072
026f408d
SM
1073 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1074
c0ec53ad
SM
1075 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1076 * w32proc.c (sys_spawnve):
1077 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1078 * w32.c (check_windows_init_file):
1079 * sound.c (Fplay_sound):
026f408d 1080 * emacs.c (init_cmdargs):
c0ec53ad
SM
1081 * process.c (Fstart_process): Update calls to openp.
1082
1083 * callproc.c (Vexec_suffixes): New var.
1084 (Fcall_process): Update call to openp.
1085 (decode_suffixes): New function.
1086 (syms_of_callproc): Init exec-suffixes.
1087
1088 * lread.c (Vload_suffixes, default_suffixes): New vars.
1089 (openp): Take a lisp list of suffixes.
1090 Check for file-name-handlers even if the file was absolute already.
1091 (syms_of_lread): Declare load-suffixes.
1092 (Fload): Fix up call to openp.
1093 Don't bother checking for file-name-handler at the very beginning.
1094
f6333468
SM
1095 * keymap.h (Fcopy_keymap): Don't export.
1096
1097 * lisp.h (empty_string): Declare.
c0ec53ad
SM
1098 (Vload_suffixes, Vexec_suffixes): Declare.
1099 (openp): Update prototype.
f6333468
SM
1100
1101 * emacs.c (empty_string): New var.
1102 (syms_of_emacs): Initialize it.
1103
1104 * search.c (wordify): Use it.
1105
1106 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1107 selected window if it's not displayed there. Handle the case
1108 when the window is dedicated.
1109 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1110
1111 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1112
2168e04d
SM
1113 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1114 Remove left_ok and right_ok.
1115 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1116 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1117 new meaning of b_property.
1118
1119 * syntax.c (update_syntax_table): Simplify.
1120 (Fforward_comment): Don't skip quoted chars when going backward.
1121
13d95cc0
GM
11222001-10-11 Gerd Moellmann <gerd@gnu.org>
1123
beb0990f
GM
1124 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1125 in case I is of some unsigned type, in which case
1126 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1127 comparison becomes bogus.
1128
cb938d46
GM
1129 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1130 (Fuser_full_name): Fix bug treating a float as a fixnum.
1131
1132 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1133
1134 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 1135
13d95cc0
GM
1136 * lisp.h (circular_list_error): Add prototype.
1137
1138 * data.c (Qcircular_list): New variable.
1139 (circular_list_error): New function.
1140 (syms_of_data): Initialize it Qcircular_list.
1141
e35f6ff7
SM
11422001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1143
1144 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1145 casefiddle.c, buffer.c: Include keymap.h.
1146
619632ac
GM
11472001-10-10 Gerd Moellmann <gerd@gnu.org>
1148
1149 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1150 options. From Dave Love <d.love@dl.ac.uk>.
1151
5e5388f6
GM
11522001-10-09 Gerd Moellmann <gerd@gnu.org>
1153
1154 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1155 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1156
14a3dff7
GM
1157 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1158 unsigned char.
1159 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 1160
76ba8daf
AI
11612001-10-08 Andrew Innes <andrewi@gnu.org>
1162
1163 * lisp.h [max]: Undef min and max before redefining them.
1164
1165 * w32gui.h: Do not undef min and max.
1166
1167 * w32heap.h: Do not undef min and max.
1168
1169 * s/ms-w32.h: Do not undef min and max.
1170
166253cb
SM
11712001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1172
1173 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1174
0c4d9527
SS
11752001-10-08 Sam Steingold <sds@gnu.org>
1176
1177 * keymap.c (current-active-maps): Quote newlines (compilation error).
1178
14bfa771
EZ
11792001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1180
1181 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1182 bindings.elc, since otherwise doc strings in bindings.el get wrong
1183 offsets in etc/DOC.
1184
bdb7aa47
SM
11852001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1186
9985827f
SM
1187 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1188
1189 * keyboard.h (map_prompt): Remove.
1190
1191 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 1192 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 1193
bdb7aa47
SM
1194 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1195
1196 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1197
1198 * keyboard.c (map_prompt): Remove.
1199 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1200 Use Fkeymap_prompt.
1201
1202 * keymap.h: New file. Extracted from lisp.h.
1203
9985827f
SM
1204 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1205 (accessible_keymaps_1): New function.
1206 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1207 (Fwhere_is_internal): Use Fcurrent_active_maps.
1208 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1209 Insert in current buffer rather than standard-output.
1210 Don't call `help-mode'. Export to elisp.
1211 (describe_buffer_bindings): New wrapper.
1212 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
1213 and Sdescribe_buffer_bindings.
1214
402c9a51
GM
12152001-10-08 Gerd Moellmann <gerd@gnu.org>
1216
9985827f 1217 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
1218 Remove code setting signal handler.
1219
9985827f 1220 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
1221 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1222
3fe81fdf
PJ
12232001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1224
1225 * keyboard.c: Don't define min/max.
1226
55fa7820
GM
12272001-10-08 Gerd Moellmann <gerd@gnu.org>
1228
9985827f 1229 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 1230 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 1231 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 1232 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 1233 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
1234 Don't define min/max.
1235
1236 * lisp.h (min, max): New macros.
1237
55fa7820
GM
1238 * puresize.h (BASE_PURESIZE): Increase to 725000.
1239
1aad31e4
PJ
12402001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1241
9180dc8c
PJ
1242 * xfaces.c (free_frame_menubar): Add prototype.
1243
01f67d2c
PJ
1244 * lisp.h (init_window): Add prototype.
1245
1246 * editfns.c: Include ctype.h.
1247
1248 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 1249 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
1250 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1251 variable `sb'.
1252
5f351ff1
PJ
1253 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1254 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1255 `popup_activated_flag' and `title'.
1256
479dfe87
PJ
1257 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1258
dff49fc8
PJ
1259 * emacs.c (main): Remove extra `;'.
1260
248ac615
PJ
1261 * atimer.h (struct atimer): Fix typos in a comment.
1262
1263 * atimer.c: Fix typo.
1264
af232c7d
PJ
1265 * Makefile.in: Fix typo.
1266
1267 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 1268
d876f455
MB
12692001-10-07 Miles Bader <miles@gnu.org>
1270
1271 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1272
0037e2f2
KR
12732001-10-07 Ken Raeburn <raeburn@gnu.org>
1274
b056f36d
KR
1275 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1276 Lisp_Object.
1277
0037e2f2
KR
1278 * lisp.h (Ffield_end): Declare.
1279
1a4372ef
GM
12802001-10-07 Gerd Moellmann <gerd@gnu.org>
1281
a4a74e8c
GM
1282 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1283
1284 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1285
1286 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1287
1288 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1289
1a4372ef
GM
1290 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1291 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1292
1293 * alloc.c (inhibit_garbage_collection): Simplify.
1294 (Fmemory_use_counts): Ditto.
1295
9985827f 1296 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
1297 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1298 most-negative-fixnum.
1299
9985827f 1300 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
1301 (FIXNUM_OVERFLOW_P): New macros.
1302
4650e362
MB
13032001-10-06 Miles Bader <miles@gnu.org>
1304
1305 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1306 scroll_bar_bottom_shadow_pixel fields.
1307 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1308 for the shadows, and tell the toolkit about them if we succeed.
1309 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1310 Free scroll-bar shadow colors.
1311 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1312 Free scroll-bar shadow colors when the background color changes.
1313 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1314 Initialize scroll-bar shadow-color fields.
1315
ace64e0a
GM
13162001-10-05 Gerd Moellmann <gerd@gnu.org>
1317
1318 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1319
ec66bdc7
MB
13202001-10-05 Miles Bader <miles@gnu.org>
1321
9985827f
SM
1322 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1323 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 1324 New functions (were in simple.el).
9985827f 1325 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
1326 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1327 (syms_of_minibuf): Initialize them.
1328
a0fb4492
GM
13292001-10-05 Gerd Moellmann <gerd@gnu.org>
1330
1331 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1332 (tiff_load): Install them as error and warning handler.
1333
0bcf87c1
AI
13342001-10-04 Andrew Innes <andrewi@gnu.org>
1335
1336 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1337 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 1338 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
1339 (x_to_w32_charset): Handle private format for unknown charsets.
1340 Handle wildcards in charset spec, by ignoring them.
1341 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1342 "*-" prefix from charset.
1343 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1344 handle the truncated font spec form constructed by font_list_1, so
1345 that we correctly identify the charset fields. Don't remove "*-"
1346 prefix from charset.
1347 (w32_list_synthesized_fonts): Fix argument to alloca.
1348
c89e4bc5
GM
13492001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1350
1351 * window.h (MINI_WINDOW_P): Use NILP.
1352
1353 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1354
1355 * termhooks.h (struct input_event): Use proper type for `kind'.
1356
13572001-10-04 Gerd Moellmann <gerd@gnu.org>
1358
1359 This handles unknown keysyms better than before. For example,
1360 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
1361 Emacs formerly completely ignored F5. With the change, it derives
1362 a key symbol from the name of the X keysym, `ccaron' in this case.
1363 Reported by Martin Buchholz.
1364
1365 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
1366 unknown keysyms.
1367
1368 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
1369 that EVENT->code isn't a function key, use the keysym's name.
1370
13712001-10-04 Gerd Moellmann <gerd@gnu.org>
1372
1373 FOREACH is a macro that should make it easier to loop over Lisp
1374 lists with checks for cycles and proper lists.
1375
1376 * lisp.h (LIST_END_P, FOREACH): New macros.
1377
13782001-10-04 Gerd Moellmann <gerd@gnu.org>
1379
1380 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
1381 called for a lost connection. Prevent dumping core in this case.
1382 Instead print the X error, and exit. On user request.
1383
1384 * xterm.c (error_msg): New variable.
1385 (x_fatal_error_signal): New function.
1386 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
1387 as fatal_error_signal_hook around the call to XtCloseDisplay.
1388
1389 * emacs.c (fatal_error_signal_hook): New variable.
1390 (fatal_error_signal): Call that function.
1391
13922001-10-04 Gerd Moellmann <gerd@gnu.org>
1393
1394 With this, Emacs prints how much pure storage it will
1395 approximately need in case pure storage overflows while dumping.
1396
1397 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
1398 New variables.
1399 (init_alloc_once): Initialize new variables.
1400 (PURE_POINTER_P): Use new variables.
1401 (pure_alloc): If pure storage overflows, allocate from the heap.
1402 (check_pure_size): New function.
1403 (Fgarbage_collect): Don't GC if pure storage has overflowed.
1404
1405 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
1406 (check_pure_size): Add prototype.
1407
1408 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
1409
14102001-10-04 Gerd Moellmann <gerd@gnu.org>
1411
1412 This adds a post-gc-hook that's run with GC inhibited.
1413 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
1414
1415 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
1416 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
1417 (Fgarbage_collect): Run post-gc-hook.
1418
14192001-10-04 Gerd Moellmann <gerd@gnu.org>
1420
1421 This adds `defvaralias' and `indirect-variable'. Changes not
1422 directly related to this feature are there to gain the same
1423 performance again as before variable aliases.
1424
1425 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
1426 code to get and set symbol values, to take defvaralias into account.
1427
1428 (Note: the new `constant' bit-flag in symbols would make it
1429 possible to define arbitrary read-only variables, e.g. with
1430 `defconst'.)
1431
1432 Documentation is in lispref/variables.texi. Added to NEWS.
1433
1434 * lisp.h (enum symbol_interned): New enumeration.
1435 (struct Lisp_Symbol): Remove member `obarray', add
1436 `indirect_variable', `constant', and `interned'.
1437 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
1438 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
1439 (indirect_variable): Add prototype.
1440
1441 * print.c (print_preprocess, print_object): Test internedness of
1442 symbols differently.
1443
1444 * lread.c (Fintern, Funintern): Set symbol's interned and constant
1445 bit-fields.
1446 (init_obarray): Likewise for t and nil.
1447
1448 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1449 (Fdefvaralias): New function.
1450 (specbind): Simplify the test if symbol is a constant.
1451 (syms_of_eval): Defsubr Fdefvaralias.
1452
1453 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
1454 (Qcyclic_variable_indirection): New variable.
1455 (Fkeywordp): Check for internedness differently.
1456 (Fmakunbound): Simplify the test if symbol is a constant.
1457 (indirect_variable, Findirect_variable): New functions.
1458 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
1459 aliased symbol.
1460 (let_shadows_buffer_binding_p): Check for variable aliases.
1461 (set_internal): Simplify the test if SYMBOL is a constant.
1462 If SYMBOL has a buffer-local value and is an alias, use the aliased
1463 symbol instead.
1464 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
1465 Sindirect_variable.
1466
1467 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
1468 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
1469 set directly.
1470
1471 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
1472
1473 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
1474 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
1475 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
1476
ab952a4f
GM
14772001-10-04 Gerd Moellmann <gerd@gnu.org>
1478
1479 * Branch for 21.1.
b56ba8de 1480
ba88ff28
MB
14812001-10-03 Miles Bader <miles@gnu.org>
1482
1483 * callproc.c (syms_of_callproc): Explicitly state in the
1484 documentation for `process-environment' that earlier entries take
1485 precedence over later ones.
1486
ae1a9581
MB
14872001-10-02 Miles Bader <miles@gnu.org>
1488
1489 * textprop.c (Fnext_char_property_change)
1490 (Fprevious_char_property_change): Remove reference to non-existant
1491 argument OBJECT from doc-string.
1492
257e3f57
GM
14932001-10-01 Gerd Moellmann <gerd@gnu.org>
1494
1495 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
1496 (try_window_id): Skip back over lines ending in a newline from a
1497 string.
1498
1499 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
1500 New bit flag
1501
c1f29759
RS
15022001-10-01 Richard M. Stallman <rms@gnu.org>
1503
1504 * search.c (Freplace_match): Doc fix.
1505
c30dce3d
AI
15062001-09-28 Andrew Innes <andrewi@gnu.org>
1507
1508 * w32menu.c (set_frame_menubar): Take into account that
1509 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1510 <raeburn@gnu.org>.
1511
03be5931
EZ
15122001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
1513
1514 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
1515
75bec752
PJ
15162001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1517
1518 * s/gnu-linux.h: Fix a typo in comment.
1519
83100e0a
AS
15202001-09-28 Andreas Schwab <schwab@suse.de>
1521
1522 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
1523 nocombreloc, in case -z combreloc is the default.
1524
a74b48cf
GM
15252001-09-28 Gerd Moellmann <gerd@gnu.org>
1526
1527 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
1528 really going on here.
1529
09c4719e
SM
15302001-09-27 Stefan Monnier <monnier@cs.yale.edu>
1531
1532 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
1533
f7d5d963
EZ
15342001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1535
1536 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
1537 utf-8, menu-bar, and latin-N.
1538 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
1539 unconditionally now.
1540 (lisp): Add latin-N, since they are preloaded.
1541
9240e746
GM
15422001-09-27 Gerd Moellmann <gerd@gnu.org>
1543
14531065
GM
1544 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
1545 to the left. Some cleanup.
1546
9240e746
GM
1547 * xdisp.c (display_mode_element): One more case where a string's
1548 multibyteness should be used for display.
1549
edd1e654
GM
15502001-09-26 Gerd Moellmann <gerd@gnu.org>
1551
b02439c8
GM
1552 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
1553 reading at EOF.
1554
032906b1 1555 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 1556 of the only temporarily set echoing flag for deciding when
032906b1
GM
1557 the cancel echoing.
1558
1559 * keyboard.c (echo_kboard): Make externally visible.
1560
1561 * lisp.h (echo_kboard): Declare extern.
1562
cb617e7c 1563 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 1564 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
1565 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
1566 this round of redisplay if make_cursor_line_fully_visible fails.
1567 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 1568 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
1569
1570 * dispextern.h (required_matrix_width, required_matrix_height):
1571 Add prototypes.
1572
09c4719e
SM
1573 * dispnew.c (required_matrix_width, required_matrix_height):
1574 New functions.
cb617e7c 1575 (allocate_matrices_for_window_redisplay)
09c4719e
SM
1576 (allocate_matrices_for_frame_redisplay: Use them.
1577 Remove parameters CH_DIM.
cb617e7c 1578
edd1e654
GM
1579 * xdisp.c (display_mode_lines): Temporarily set selected_frame
1580 and selected_window to the frame of the window whose mode-lines
1581 are displayed, and to the window itself.
1582 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 1583 here.
edd1e654 1584
924b604c
GM
15852001-09-25 Gerd Moellmann <gerd@gnu.org>
1586
daba7643
GM
1587 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
1588 the image cache under us.
1589
b7a22712 1590 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 1591 with a string value, use that string's multibyteness for displaying.
b7a22712 1592
ad648212
GM
1593 * keyboard.c (read_char): Don't clear a message for a switch-frame
1594 event. From Stefan Monnier <monnier@cs.yale.edu>.
1595
9f8531e5
GM
1596 * xterm.c (fast_find_position) [0]: Add a presumably more correct
1597 version for after 21.1.
1598
1599 * xdisp.c (row_containing_pos): Make externally visible.
1600
1601 * dispextern.h (row_containing_pos): Add prototype.
1602
924b604c
GM
1603 * process.c (send_process): Disable composition if from_byte < 0.
1604 From Kenichi Handa <handa@etl.go.jp>.
1605
6f3f0db4
GM
16062001-09-24 Gerd Moellmann <gerd@gnu.org>
1607
c69c0ebc
GM
1608 * xterm.c (refreshicon): Function removed.
1609
d1182bc4
GM
1610 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
1611
1612 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
1613
1614 * xterm.c (toplevel): Remove includes in #if 0.
1615
6f3f0db4
GM
1616 * process.c (sigchld_handler) [LINUX]: Don't return from
1617 the signal handler at the end of the loop.
1618
59957f85
GM
16192001-09-21 Gerd Moellmann <gerd@gnu.org>
1620
09c4719e
SM
1621 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
1622 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 1623
a0528984
EZ
16242001-09-21 Markus Rost <rost@math.ohio-state.edu>
1625
1626 * Makefile.in (shortlisp): Add ../lisp/env.elc.
1627
db92b288
GM
16282001-09-20 Gerd Moellmann <gerd@gnu.org>
1629
3fed8ad5
GM
1630 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
1631 since this function can be called during GC.
1632
db92b288
GM
1633 * callproc.c (Fcall_process): Handle errors from pipe(2).
1634 (child_setup): Delete code in #ifdef vipc.
1635
7121b85a
GM
16362001-09-19 Gerd Moellmann <gerd@gnu.org>
1637
72f62cb5
GM
1638 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
1639 (display_mode_element): Display the string from decode_mode_spec
1640 depending on its multibyteness.
1641
a2697022
GM
1642 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
1643
7121b85a
GM
1644 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
1645
bfc97351
GM
16462001-09-18 Gerd Moellmann <gerd@gnu.org>
1647
c9063433
GM
1648 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
1649 recursive_edit_unwind.
1650 (recursive_edit_unwind): Set kboard state according to
1651 SINGLE-KBOARD.
1652
3fbdba3e
GM
1653 * buffer.c (modify_overlay): Don't do nothing if START == END;
1654 This can still be a modification, for example when an overlay has
1655 a before-string or after-string.
1656 (Fdelete_overlay): Prevent redisplay optimizations when deleting
1657 an overlay with before-string or after-string.
1658
1270031d
GM
1659 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
1660 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
1661
bfc97351
GM
1662 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
1663 first_unchanged_at_end_row is in front of
1664 last_unchanged_at_beg_row. This code should be removed after the
1665 release of 21.1.
1666
d8a973aa
GM
16672001-09-17 Gerd Moellmann <gerd@gnu.org>
1668
e18c8b8d
GM
1669 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
1670 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
1671
d8a973aa
GM
1672 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
1673 versions >= 2.95.
1674
ed7d6ba4
EZ
16752001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1676
1677 * dired.c (Ffile_attributes): Doc fix.
1678
551629f9
GM
16792001-09-14 Gerd Moellmann <gerd@gnu.org>
1680
1681 * fileio.c (Ffile_symlink_p): Fix last change.
1682
1683 * filelock.c (current_lock_owner): Fix last change.
1684
4c8c7926
GM
16852001-09-13 Gerd Moellmann <gerd@gnu.org>
1686
620c4704
GM
1687 * filelock.c (current_lock_owner): If readlink returns ERANGE,
1688 take that to mean that the buffer is too small.
1689
81c3310d
GM
1690 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
1691 that to mean that the buffer is too small.
1692
06fd3792
GM
1693 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
1694 current buffer's multibyteness when discarding the iterator's
1695 stack.
1696
4c8c7926
GM
1697 * xfns.c (Fx_window_property): Handle case that property gets
1698 deleted between the two calls to XGetWindowProperty.
1699
9a72e4c1
GM
17002001-09-11 Gerd Moellmann <gerd@gnu.org>
1701
bd819d14 1702 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 1703
a41edd99
GM
1704 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
1705 in addition to read-only.
1706
1707 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
1708 to t in addition to read-only.
1709
1710 * lisp.h (Qinhibit_modification_hooks): Declare.
1711
1712 * insdel.c (Qinhibit_modification_hooks): New variable.
1713 (syms_of_insdel): Initialize and staticpro it.
1714
d4881c6a
GM
1715 * textprop.c (verify_interval_modification): Don't run
1716 modification-hooks if inhibit_modification_hooks.
1717
1718 * dispnew.c (set_window_cursor_after_update): Fix code
1719 finding glyph row containing cursor when cursor_in_echo_area
1720 is >= 0.
1721
9a72e4c1
GM
1722 * xdisp.c (init_from_display_pos): Put some code in #if 0.
1723 (add_to_log): Use bcopy instead of strcpy.
1724 (init_from_display_pos): Use an explicit loop over bytes in
1725 overlay strings instead of calling index.
1726
f4a374a1
GM
17272001-09-10 Gerd Moellmann <gerd@gnu.org>
1728
300e57bd
GM
1729 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
1730
1731 * dispnew.c (direct_output_for_insert): Don't change IT's
1732 stop_charpos to something in front of its current position.
1733
f4a374a1
GM
1734 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
1735 `format'.
1736
7e4cbc91
RS
17372001-09-10 Richard M. Stallman <rms@gnu.org>
1738
1739 * frame.c (Fmouse_position): Doc fix.
1740
6afad91e
GM
17412001-09-07 Gerd Moellmann <gerd@gnu.org>
1742
1743 * xdisp.c (init_from_display_pos): Don't compare the result
1744 of calling index with NULL.
1745
f76e0368
GM
17462001-09-06 Gerd Moellmann <gerd@gnu.org>
1747
1748 * xfns.c (x_set_background_color): Don't change the colors
1749 of the X window of scroll bar widgets.
1750
9ead1b60
AI
17512001-09-05 Andrew Innes <andrewi@gnu.org>
1752
1753 * w32fns.c (w32_createwindow): Undo last change.
1754
c3b497b3
GM
17552001-09-05 Gerd Moellmann <gerd@gnu.org>
1756
08e1d6df
GM
1757 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
1758
c3b497b3
GM
1759 * xdisp.c (string_buffer_position): Use *single_char_property*
1760 functions instead of the *single_property* functions.
b56ba8de 1761
8f860180
AI
17622001-09-04 Andrew Innes <andrewi@gnu.org>
1763
9a72e4c1
GM
1764 * w32term.c (w32_read_socket): Add more information to debugging
1765 output.
8f860180
AI
1766
1767 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
1768 from Emacs frames, so that calls to GetClipBox in w32term.c
1769 correctly report when part of a frame is visible (including
1770 scrollbars, etc). This prevents repeated redrawing of frames when
1771 only a scrollbar is visible.
1772 (w32_wnd_proc): Add more frame information to debugging output.
1773
2ee1aa00
SM
17742001-09-03 Stefan Monnier <monnier@cs.yale.edu>
1775
1776 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
1777
e3b22517
GM
17782001-09-03 Gerd Moellmann <gerd@gnu.org>
1779
7e376260
GM
1780 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
1781 help-echo for a string which doesn't have help-echo itself, use
1782 get-char-property to obtain the help-echo from the string's buffer
1783 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
1784 have mouse-face, look ``under'' the string for mouse-face from an
1785 overlay.
1786 (fast_find_position): Add parameter STOP. In the final row, stop
1787 before glyphs having STOP as object. Don't consider glyphs that
1788 are not from a buffer.
1789
e3b22517
GM
1790 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
1791
9a249bba
EZ
17922001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
1793
1794 * fns.c (Fmd5): Doc fix.
1795
c9979669
GM
17962001-08-31 Gerd Moellmann <gerd@gnu.org>
1797
1798 * composite.c (update_compositions): Do nothing if
1799 inhibit-modification-hooks is set.
1800
9584e63a
GM
18012001-08-30 Gerd Moellmann <gerd@gnu.org>
1802
986ec8f2 1803 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 1804 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
1805 glyph matrices etc. in a core dump.
1806
92a25631
GM
1807 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
1808 (syms_of_xdisp): Initialize them.
1809 (handle_single_display_prop): Don't change point, bind `object',
1810 `position', and `buffer-position' instead to the object having the
2ee1aa00 1811 `display' property, position in the object and position in the buffer.
92a25631 1812
9584e63a
GM
1813 * fileio.c (Finsert_file_contents): Don't change the multibyteness
1814 of the buffer if REPLACE is non-nil.
1815
d38633a3
GM
18162001-08-29 Gerd Moellmann <gerd@gnu.org>
1817
1818 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
1819
f4fccc1e
EZ
18202001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
1821
1822 * w32term.c (x_set_glyph_string_background_width)
1823 (show_mouse_face): Track the last changes in xterm.c.
1824
eaaa65b0
GM
18252001-08-28 Gerd Moellmann <gerd@gnu.org>
1826
7b0870b2
GM
1827 * xterm.c (x_set_glyph_string_background_width): Set the glyph
1828 string's background width so that multi-line mouse-face is drawn
1829 to the right edge of the window.
1830 (show_mouse_face): Set the row's mouse_face_p flag after drawing
1831 glyphs.
1832
6b6e2422 1833 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 1834 before inserting/writing glyphs.
6b6e2422 1835
eaaa65b0
GM
1836 * xdisp.c (display_mode_element): Use string_byte_to_char to
1837 determine character positions in strings, use chars_in_text
1838 instead of strwidth.
1839 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
1840 a matrix as parameter; this is easier to use from GDB.
1841
9ad62cf8
MB
18422001-08-28 Miles Bader <miles@gnu.org>
1843
2ee1aa00
SM
1844 * textprop.c (Fprevious_single_char_property_change)
1845 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 1846
32171635
GM
18472001-08-27 Gerd Moellmann <gerd@gnu.org>
1848
47d57b22
GM
1849 * fileio.c (Finsert_file_contents): Allocate, restore, and
1850 free composition data in the case of REPLACE not being nil.
1851
1852 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
1853 there exist overlay strings with newlines at POS.
1854 (text_outside_line_unchanged_p): Return 0 if changes start at
1855 START and overlays exist at START. Likewise for END.
1856 (try_window_id): Give up if init_to_row_end returns 0.
1857
32171635
GM
1858 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
1859 unconditionally.
1860
e1249666
GM
18612001-08-24 Gerd Moellmann <gerd@gnu.org>
1862
33954c45
GM
1863 * keymap.c (access_keymap): Return the cdr of the binding of
1864 a generic character instead of its definition (KEY . BINDING).
1865
e1249666
GM
1866 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
1867 to 0 also in the REPLACE case.
1868
fb4c6c96
AC
18692001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
1870
1871 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
1872 open to determine whether file is readable (as for DOS_NT).
1873
59ecf80b
GM
18742001-08-23 Gerd Moellmann <gerd@gnu.org>
1875
1876 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
1877 coding.type is coding_type_no_conversion or coding_type_raw_text,
1878 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
1879 non-nil instead of just setting enable_multibyte_characters in the
1880 buffer to nil.
1881
40e33037
GM
18822001-08-22 Gerd Moellmann <gerd@gnu.org>
1883
374388c3
GM
1884 * dispextern.h (struct face_cache): Add member
1885 menu_face_changed_p.
1886
1887 * xfaces.c (menu_face_changed_default): New variable.
1888 (menu_face_changed_count): Variable removed.
1889 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
1890 the menu_face_changed_default flag, otherwise set the FRAME's
1891 menu_face_changed_p flag if the `menu' face has been changed.
1892 Prevent calling set_font_frame_param if FRAME is t.
1893 (make_face_cache): Initialize cache's menu_face_changed_p
1894 from menu_face_changed_default.
1895 (realize_basic_faces): Look into the frame's face cache to
1896 determine if the menu appearance needs updating.
1897
40e33037
GM
1898 * keymap.c (access_keymap): Fix last change to not consider
1899 IDX when it has modifiers.
1900
859ea4b8
GM
19012001-08-21 Gerd Moellmann <gerd@gnu.org>
1902
1903 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
1904 . BINDING) exists, where GENERIC-CHAR is the generic character of
1905 the charset of IDX, return BINDING unless there exists a binding
1906 for IDX itself.
1907
e8660d73
GM
19082001-08-16 Gerd Moellmann <gerd@gnu.org>
1909
cca1b1d7
GM
1910 * xrdb.c (SYSV): Don't define on Solaris 2.
1911 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1912
e8660d73 1913 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 1914 of the screen line, not text line, containing IT's current position.
e8660d73 1915
93aba6fc
GM
19162001-08-15 Gerd Moellmann <gerd@gnu.org>
1917
288d4e06
GM
1918 * window.c (window_scroll_pixel_based): Don't recenter if
1919 PT is partially visible in the window.
1920
3452efc2
SM
1921 * xterm.c (expose_window_tree, expose_window, expose_line):
1922 Return 1 when overwriting mouse-face.
82f053ab
GM
1923 (expose_frame): If mouse-face was overwritten, redo it.
1924
93aba6fc
GM
1925 * xfaces.c (x_update_menu_appearance): Don't call
1926 set_frame_menubar, let the next redisplay do it.
1927
858a55c1
AI
19282001-08-14 Andrew Innes <andrewi@gnu.org>
1929
1930 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
1931 drawing glyph string.
1932
3a990b67
EZ
19332001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
1934
1935 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
1936 running HI-UX/MPP.
1937
04386463
GM
19382001-08-14 Gerd Moellmann <gerd@gnu.org>
1939
1940 * xfaces.c (x_update_menu_appearance): Save and restore value of
1941 interrupt_input_blocked.
1942
3e6385a4
GM
19432001-08-13 Gerd Moellmann <gerd@gnu.org>
1944
b0e619b4
GM
1945 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
1946 a line start, move back to the line start.
3452efc2 1947
0de73d5a
GM
1948 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
1949 exactly when a mini-buffer is active.
1950
3e6385a4
GM
1951 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
1952 in units of 1/8 character on non window-system frames.
1953 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1954
d1b5f629
EZ
19552001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1956
1957 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
1958 a doc string.
1959
eaa2319f
GM
19602001-08-09 Gerd Moellmann <gerd@gnu.org>
1961
8e3189f0
GM
1962 * keyboard.c (Vpre_help_message): New variable.
1963 (syms_of_keyboard): Initialize and staticpro it.
1964 (show_help_echo): Record current message before displaying a
1965 help-echo, and restore that message when clearing the help.
1966
eaa2319f
GM
1967 * xfns.c (x_create_im): Remove prototype.
1968
1969 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1970
1971 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 1972
eaa2319f
GM
19732001-08-08 Gerd Moellmann <gerd@gnu.org>
1974
1975 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 1976 windows whose height has changed, disable partially visible lines.
eaa2319f 1977
17fdcfc8
GM
19782001-08-07 Gerd Moellmann <gerd@gnu.org>
1979
22d01aed 1980 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 1981 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 1982
17fdcfc8
GM
1983 * xdisp.c (start_display): Don't try to determine the continuation
1984 lines width if lines are truncated. It's superfluous and leads to
1985 incorrect results if POS is not visible in the window after
1986 reseating the iterator at the previous line start.
1987
8e3fe78e
GM
19882001-08-06 Gerd Moellmann <gerd@gnu.org>
1989
1990 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1991
98a8938c
GM
19922001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1993
1994 * alloc.c (init_stack): Remove declaration.
1995
18f9986a
GM
19962001-08-03 Gerd Moellmann <gerd@gnu.org>
1997
5e1f85e0
GM
1998 * keyboard.c (read_key_sequence): Check that key is an integer
1999 before comparing it with quit_char.
2000 (add_command_key): Use larger_vector.
2001 (read_char_x_menu_prompt): Instead of converting symbol and
2002 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 2003 which cannot be confused with valid events.
5e1f85e0
GM
2004 (read_char): When reading from Vunread_command_events, check for
2005 events of the form (EVENT . disabled) instead of
2006 (EVENT . nil).
2007
18f9986a
GM
2008 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2009 a float, determine the max height from the frame's height.
2010
fbc7f2a6
GM
20112001-08-02 Gerd Moellmann <gerd@gnu.org>
2012
2013 * xdisp.c (redisplay_internal): Take message_cleared_p into
2014 account only if minibuf_level == 0.
2015
81b1a79d
GM
20162001-08-01 Gerd Moellmann <gerd@gnu.org>
2017
e5c60873
GM
2018 * xdisp.c (redisplay_internal): Add a check for the last
2019 displayed message.
3452efc2 2020
6e019995
GM
2021 * xdisp.c (message_cleared_p): New variable.
2022 (clear_message): Set message_cleared_p when clearing the current
2023 message.
2024 (redisplay_internal): Look at message_cleared_p to capture
2025 the case that the echo area should be cleared.
2026
308a74d8
GM
2027 * keyboard.c (command_loop_1): Fix spelling of
2028 resize_echo_area_exactly.
2029
3452efc2 2030 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
2031
2032 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2033
81b1a79d
GM
2034 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2035 current matrix when the window gets smaller.
2036
ada329e6
EZ
20372001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2038
2039 * print.c (strout): Cast the character passed to insert_char to
2040 unsigned char, to avoid sign extension when it is promoted to int.
2041
ed86208c
GM
20422001-07-31 Gerd Moellmann <gerd@gnu.org>
2043
2044 * fileio.c (Finsert_file_contents): Don't treat a return value
2045 of 0 from emacs_read as an IO error.
2046
6594ac22
GM
20472001-07-30 Gerd Moellmann <gerd@gnu.org>
2048
cef68af5
GM
2049 * keyboard.c (abs): New macro.
2050 (double_click_fuzz): New variable.
2051 (make_lispy_event): Use it to determine what makes a double-click.
2052 (syms_of_keyboard): DEFVAR_INT it.
2053
6594ac22
GM
2054 * xmenu.c (set_frame_menubar): Take into account that
2055 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2056 <raeburn@gnu.org>.
2057
75c5350a
GM
20582001-07-27 Gerd Moellmann <gerd@gnu.org>
2059
2060 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2061
2062 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2063 of row's visible height.
2064
2065 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
2066 deal with the first overlay string having an image `display' property.
2067 (try_window_reusing_current_matrix, compute_line_metrics):
2068 Fix computation of row's visible height for the case that part of the
75c5350a
GM
2069 row is invisible above and part of the row is at the same time
2070 invisible below the window.
2071
ac49effe
GM
20722001-07-26 Gerd Moellmann <gerd@gnu.org>
2073
2074 * xfns.c (x-show-tip): Doc fix.
3452efc2 2075
ac49effe
GM
2076 * xfns.c (Vx_max_tooltip_size): New variable.
2077 (syms_of_xfns): DEFVAR_LISP it.
2078 (Fx_show_tip): Set frame's window_width to the width of the
2079 window. Use a maximum tooltip size specified by
2080 Vx_max_tooltip_size, if that has valid contents.
2081 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 2082
8c3b00cb
AI
20832001-07-26 Andrew Innes <andrewi@gnu.org>
2084
2085 * w32term.c (x_display_list): New variable.
2086 (w32_term_init): Set it.
2087
2088 * w32term.h (x_display_list): New extern.
2089
16098288
GM
20902001-07-26 Gerd Moellmann <gerd@gnu.org>
2091
2092 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
2093 is non-nil, instead of when redisplaying_p is non-zero.
2094 See comment there.
16098288
GM
2095 (mark_window_display_accurate_1): Add an assertion.
2096
64c5be50
GM
20972001-07-25 Gerd Moellmann <gerd@gnu.org>
2098
e743f599
GM
2099 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2100
563b384d
GM
2101 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2102 events so that we get a chance of processing expose events.
2103
64c5be50
GM
2104 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2105
296808a5
GM
21062001-07-24 Gerd Moellmann <gerd@gnu.org>
2107
2108 * xfns.c (valid_image_p): Protect better against invalid image
2109 specifications. Previous code could signal an error.
2110
5247262a
GM
21112001-07-23 Gerd Moellmann <gerd@gnu.org>
2112
3452efc2 2113 * indent.c (current_column): Fix column computation in the
f1004faf
GM
2114 presence of display table entries.
2115 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2116
dd42b31a
GM
2117 * dispnew.c (adjust_glyph_matrix): In the optimization for
2118 windows whose height has changed, use the new window height
2119 to compute which rows to invalidate.
2120
9e5a7f2a
GM
2121 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2122 (MAX_10_EXP): New macro.
2123 (Fformat): Use it.
2124
5247262a
GM
2125 * coding.c (code_convert_region): Handle the multibyte case if
2126 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2127
177ab8ce
GM
21282001-07-20 Gerd Moellmann <gerd@gnu.org>
2129
6e07c0a5
GM
2130 * dispextern.h (struct face): Change type of `stipple' to
2131 int; it's an ID.
2132
177ab8ce
GM
2133 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2134
b5b80599
GM
21352001-07-19 Gerd Moellmann <gerd@gnu.org>
2136
4e2a256b
GM
2137 * dispnew.c (update_window): Don't set the cursor at the end
2138 of the update if display update has been paused.
2139
3452efc2 2140 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 2141
c1fd9232
KR
21422001-07-18 Ken Raeburn <raeburn@gnu.org>
2143
2144 * fns.c (Fset_char_table_default): Check that a charset is defined
2145 before checking its dimension.
2146
928a85c1
KR
21472001-07-17 Ken Raeburn <raeburn@gnu.org>
2148
2149 * coding.c (setup_coding_system): Don't do any designation based
2150 on reg_bits if charset is not yet defined.
2151
fb4c6c96 2152 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
2153 pointer, using eassert.
2154
de11c1ea
GM
21552001-07-17 Gerd Moellmann <gerd@gnu.org>
2156
3452efc2
SM
2157 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2158 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 2159
467f1209
GM
21602001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2161
2162 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2163
c3d6be34
GM
21642001-07-16 Gerd Moellmann <gerd@gnu.org>
2165
c1d61a7d
GM
2166 * fileio.c (unwind_read): Function removed.
2167 (read_non_regular, read_non_regular_quit): New functions.
2168 (Finsert_file_contents): When reading from non-regular files,
2169 arrange to catch a `quit' and terminate the loop. Rearrange
2170 code so that a `quit' when reading from a regular file doesn't
2171 insert text in the buffer.
2172
c3d6be34
GM
2173 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2174 Clear faces afterwards.
2175 (clear_font_table): Take a x_display_info parameter. Don't free
2176 fonts being the default font of any frame on the given display.
2177
e06aa1f9
GM
21782001-07-13 Gerd Moellmann <gerd@gnu.org>
2179
2180 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2181 instead of CHAR_STRING which can signal an error.
2182
2183 * charset.c (char_to_string_1): Extracted from char_to_string.
2184 Return -1 instead of signaling an error.
2185 (char_to_string): Use it.
2186
2187 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2188
176c92e6
SM
21892001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2190
2191 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2192 is t, don't try to append anything to it.
2193
1c56232f
EZ
21942001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2195
2196 * dired.c (file_name_completion): Pass dp->d_name to
2197 Fstring_match, not elt, which is always nil here.
2198
1d2b2268
GM
21992001-07-12 Gerd Moellmann <gerd@gnu.org>
2200
2201 * xselect.c (x_decline_selection_request): Handle errors
2202 caused by receivers that have vanished.
2203
2204 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2205 ignoring events on foreign windows in #if 0. Always dispatch
2206 the event after checking it with x_handle_property_notify.
2207
2208 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
2209 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2210 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
2211 (toplevel): Add prototypes for file-local functions.
2212 (x_atom_to_symbol): Remove DPYINFO parameter.
2213
fe5a0162
SM
22142001-07-11 Stefan Monnier <monnier@cs.yale.edu>
2215
2216 * w32menu.c (menubar_selection_callback, w32_menu_show):
2217 Initialize `entry' to nil.
2218 (w32_dialog_show): Remove unused `save_wv' variable.
2219 (name_is_separator): Recognize "--:foo" and "--foo-bar".
2220
a777242c
GM
22212001-07-11 Gerd Moellmann <gerd@gnu.org>
2222
8ee5b6a3
GM
2223 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2224
d0e2444e
GM
2225 * fileio.c (unwind_read): Print a message when discarding inserted
2226 text or switching the buffer to unibyte. Change parameter.
2227 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 2228
a777242c
GM
2229 * fileio.c (unwind_read): New function.
2230 (Finsert_file_contents): Record it as unwind-function for
2231 the case that reading is interrupted by C-g.
2232
ae794295
GM
22332001-07-10 Gerd Moellmann <gerd@gnu.org>
2234
fe5a0162 2235 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
2236 update when scrolling_window returns 0.
2237
6b05fae3
GM
2238 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2239
2240 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 2241 for the case that x_decode_color signals an error.
6b05fae3 2242
ae794295
GM
2243 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2244
bb6e8cee
GM
22452001-07-09 Gerd Moellmann <gerd@gnu.org>
2246
2247 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2248 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2249 around ioctls.
2250
36b40a8a
EZ
22512001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2252
24b97d4b
EZ
2253 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2254 doc string line for dos-timezone-offset.
2255
36b40a8a
EZ
2256 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2257 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
2258 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2259 line for dos-unsupported-char-glyph.
36b40a8a
EZ
2260
2261 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2262
0967b4b0
GM
22632001-07-05 Gerd Moellmann <gerd@gnu.org>
2264
f25cfe53
GM
2265 * sound.c: Include Emacs' header files with #include "...".
2266
0967b4b0
GM
2267 * eval.c (specbind): Additionally record the buffer that was
2268 current when a buffer-local or frame-local variable was bound.
2269
c347a1c3
GM
22702001-07-04 Gerd Moellmann <gerd@gnu.org>
2271
2272 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2273 to unibyte characters in unibyte buffers.
2274
6332ca8a
GM
22752001-07-03 Gerd Moellmann <gerd@gnu.org>
2276
38472d44
GM
2277 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2278 the frame on the binding stack. Change format of entries for
2279 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2280 (unbind_to): Handle unbinding a frame-local variable.
2281
6332ca8a 2282 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 2283 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
2284 (dump_glyph_row): Print row's continuation_lines_width.
2285 (try_window_id): Take the shortcut if ZV is visible in the
2286 window, but there are actually no changes at ZV.
2287
63d1b174
GM
22882001-07-02 Gerd Moellmann <gerd@gnu.org>
2289
4c175203
GM
2290 * xterm.h (x_free_dpy_colors): Add prototype.
2291
2292 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2293 right number of arguments.
2294
0b54ce28
GM
2295 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2296 ($(lwlibdir)TAGS): New target.
4c175203 2297 (TAGS): Fix dependency list.
0b54ce28 2298
63d1b174
GM
2299 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2300 with input blocked.
2301
d827466c
GM
23022001-06-30 Gerd Moellmann <gerd@gnu.org>
2303
2304 * emacs.c (main): Remove extern declaration for sys_nerr, which
2305 isn't used and causes a compilation error with GCC 3.0 on
2306 FreeBSD 4.3.
2307
b5cb1ada
GM
23082001-06-27 Gerd Moellmann <gerd@gnu.org>
2309
a5d3ec3f 2310 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 2311 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
2312 (toplevel): Include <signal.h> and syssignal.h.
2313
b5cb1ada
GM
2314 * sound.c (vox_configure, vox_close): Turn off atimers
2315 around ioctls.
2316
d9bad487
GM
23172001-06-26 Gerd Moellmann <gerd@gnu.org>
2318
fdbb67fe
GM
2319 * keyboard.c (read_char) <non_reread>: Record the previous idle
2320 start time before calling timer_stop_idle.
2321 (read_char) <reread_first>: After processing a help-echo event,
2322 restore the previous idle start time.
2323
d9bad487
GM
2324 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2325 the start of invisible text.
2326 (setup_for_ellipsis): New function.
2327 (next_overlay_string): After all overlay strings have been
2328 processed, display an ellipsis if necessary.
2329 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2330 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2331
2332 * dispextern.h (struct iterator_stack_entry): Add member
2333 display_ellipsis_p.
2334
2b9c25e0
GM
23352001-06-25 Gerd Moellmann <gerd@gnu.org>
2336
80de57df
GM
2337 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2338 on the value of the wait-for-wm frame parameter.
2339
2340 * xterm.h (struct x_output): Add member wait_for_wm.
2341
2342 * xfns.c (Qwait_for_wm): New variable.
2343 (x_frame_parms): Add entry for `wait-for-wm".
2344 (x_set_wait_for_wm): New function.
2345 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2346 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2347
2b9c25e0
GM
2348 * xdisp.c (try_window_id) <all changes below window end>: Don't
2349 take this shortcut if ZV is visible in the window.
2350 (try_window_id): When checking for window start being in changed
2351 text, don't check that the buffer's size has changed.
2352
f772775c
RS
23532001-06-23 Richard M. Stallman <rms@gnu.org>
2354
2355 * minibuf.c (Fcompleting_read): Doc fix.
2356
fa9090b8
GM
23572001-06-19 Gerd Moellmann <gerd@gnu.org>
2358
2359 * composite.c (Ffind_composition_internal): Accept ZV
2360 and a string's end position as POS.
2361
f6f1beba
GM
23622001-06-18 Gerd Moellmann <gerd@gnu.org>
2363
2364 * composite.c (Ffind_composition_internal): Check POS
2365 for validity.
2366
0ae83348
EZ
23672001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2368
2369 * editfns.c (Fmessage_box): If the frame is not under a window
2370 system, output the message in the echo area.
2371
e4cdc335
RS
23722001-06-14 Richard M. Stallman <rms@gnu.org>
2373
2374 * xdisp.c (try_window_id): When EOB is visible, don't treat
2375 insertion at EOB as if it were "off the bottom of the screen."
2376
a55a5f3c
AI
23772001-06-11 Andrew Innes <andrewi@gnu.org>
2378
2379 * w32proc.c (create_child): Add new parameter is_gui_app.
2380 (w32_executable_type): Add new parameter is_gui_app.
2381 (sys_spawnve): Use it.
2382 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
2383 SIGQUIT. This matches better how the signals are interpreted by
2384 MSVC compiled programs.
2385 (syms_of_ntproc): Update docstring.
2386
1b85dc1c
SM
23872001-06-02 Stefan Monnier <monnier@cs.yale.edu>
2388
2389 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
2390 well otherwise note_mouse_highlight might optimize away highlighting
2391 if we pass over that same overlay again.
2392
b75f8eab
EZ
23932001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
2394
2395 * lread.c (Fload): Document that the argument is run via
2396 substitute-in-file-name.
2397
94843cc1
GM
23982001-05-31 Gerd Moellmann <gerd@gnu.org>
2399
b14659e6
GM
2400 * Makefile.in (bootstrap-doc): New target.
2401 (bootstrap-emacs): Depend on it.
2402
0894672f
GM
2403 * fileio.c (Fdo_auto_save): Don't try to create the directory of
2404 auto-save-list-file-name when shutting down Emacs, because
2405 creating the directory might signal an error, and leaves
2406 Emacs in a strange state.
2407
94843cc1
GM
2408 * term.c: (tty_cursor_hidden): New variable.
2409 (update_begin): Don't call tty_hide_cursor. Clean up.
2410 (update_end, set_terminal_window, set_scroll_region): Clean up.
2411 (ring_bell, reset_terminal_modes): Clean up.
2412 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
2413 on tty_cursor_hidden.
2414 (write_glyphs): Call tty_hide_cursor.
2415
db3a49a6
SM
24162001-05-30 Stefan Monnier <monnier@cs.yale.edu>
2417
2418 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
2419
8bd189fb
GM
24202001-05-30 Gerd Moellmann <gerd@gnu.org>
2421
6f1be3b9
GM
2422 * xfns.c (enum image_value_type): New enumerator
2423 IMAGE_STRING_OR_NIL_VALUE.
2424 (parse_image_spec): Handle it.
2425 (xbm_format, pbm_format): Use it for :foreground and :background.
2426 (xbm_load, pbm_load): Check for nil color names.
2427
8bd189fb
GM
2428 * xterm.c (note_mouse_highlight): If an overlapping overlay
2429 exists, but we find that we highlight the same overlay as before,
2430 don't do the highlighting again.
2431
7bdba03c
GM
24322001-05-29 Gerd Moellmann <gerd@gnu.org>
2433
4c329aa8
GM
2434 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
2435 Protect unibyte strings created by replacing their multibyte
2436 equivalents in menu_items.
2437
e15e2828
GM
2438 * keymap.c (Fsingle_key_description): NUL-terminate the string
2439 buffer before calling build_string.
2440
7bdba03c
GM
2441 * callproc.c (Fcall_process): Deal with decode_coding returning
2442 CODING_FINISH_INCONSISTENT_EOL.
2443
89c8dc6c
GM
24442001-05-28 Gerd Moellmann <gerd@gnu.org>
2445
db3a49a6 2446 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
2447 an item's name with its key description in case the description
2448 is a multibyte string.
2449
2450 * keymap.c (Fsingle_key_description): Create a multibyte string
2451 only if necessary.
2452
eb04d6cd
GM
2453 * macros.c (Fstart_kbd_macro): Doc fix.
2454
8bd6307f
GM
2455 * xterm.c (cursor_in_mouse_face_p): New function.
2456 (x_draw_stretch_glyph_string): Use it to choose a different GC
2457 when drawing a cursor within highlighted text.
2458
e26c4089
GM
2459 * editfns.c (char_property_eq): Put in #if 0.
2460
2461 * indent.c (string_display_width): Put in #if 0.
2462
2463 * lread.c (Fload): Remove unused label.
2464
89c8dc6c
GM
2465 * termcap.c (speeds): Put in #if 0.
2466
9a1211f2
GM
24672001-05-18 Gerd Moellmann <gerd@gnu.org>
2468
29148a3f
GM
2469 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
2470
9a1211f2
GM
2471 * xfaces.c (xlfd_point_size): Don't divide pixel size from
2472 transformation matrix by 10.
2473
09393d07
GM
24742001-05-16 Gerd Moellmann <gerd@gnu.org>
2475
2476 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
2477 only if it's equal to the former foreground pixel color.
db3a49a6 2478 (x_set_foreground_color, x_set_background_color)
09393d07
GM
2479 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
2480
460e6bae
GM
24812001-05-16 Dave Love <fx@gnu.org>
2482
2483 * insdel.c (signal_before_change, signal_after_change): Consider a
2484 local change hook which changes the buffer.
99c78ce8
GM
2485
2486 * process.c (read_process_output): Don't call signal_after_change
2487 and update_compositions after insert_from_string_before_markers.
2488
dbcf3c03
GM
24892001-05-16 Gerd Moellmann <gerd@gnu.org>
2490
a90b3d3c
GM
2491 * xfaces.c (split_font_name): Use the right field when
2492 checking for `[...]' syntax.
2493
1b7818b4
GM
2494 * buffer.c (copy_overlays): New function.
2495 (clone_per_buffer_values): Use it.
2496
2497 * buffer.h (OVERLAY_PLIST): New macro.
2498
9bae8781
GM
2499 * keymap.c (Fsingle_key_description): Replace a build_string with
2500 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
2501
dbcf3c03
GM
2502 * fontset.c (Ffontset_info): Check that face is non-null
2503 before accessing its fields.
2504
8a1ae4dd
GM
25052001-05-15 Gerd Moellmann <gerd@gnu.org>
2506
18a0a39e
GM
2507 * keyboard.c (read_key_sequence): Prevent generating a fake
2508 prefix key twice.
2509
e335b66a
GM
2510 * xfaces.c (split_font_name): Handle `[...]' for the right
2511 font name fields.
2512
8a1ae4dd
GM
2513 * ccl.c (ccl_driver): Don't copy remaining bytes in case
2514 of CCL_STAT_INVALID_CMD.
2515
3cf80731
SM
25162001-05-14 Stefan Monnier <monnier@cs.yale.edu>
2517
33568849
SM
2518 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
2519 in <var> has no default value yet.
2520
3cf80731
SM
2521 * xfaces.c (try_alternative_families): First try the FAMILY.
2522 And if nothing is found in the end, try again with scalable fonts.
2523 (try_font_list): Let try_alternative_families do a bit more of
2524 the work. Only use FAMILY if it is not nil.
2525 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
2526
933b0249
GM
25272001-05-14 Gerd Moellmann <gerd@gnu.org>
2528
58e5af83
GM
2529 * xterm.c (note_mouse_highlight): Avoid changing the mouse
2530 pointer shape when show_mouse_face has already done it.
33568849 2531
58e5af83 2532 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
2533 full-width rows.
2534
7b16a6bf
GM
2535 * xfaces.c (split_font_name): Make sure to leave the loop
2536 with the right value of `i'.
3cf80731 2537
933b0249
GM
2538 * xfaces.c (split_font_name): Handle matrix transformations
2539 in the pixel and point size fields of XLFD font names.
2540 (xlfd_point_size): Likewise.
2541
dddcbf00
EZ
25422001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2543
3cf80731 2544 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
2545 (x_to_w32_font): Add prototype.
2546
7689ef0b
EZ
2547 * regex.c (malloc, realloc, free) [emacs]: Undefine before
2548 redefining, to avoid compiler warnings.
2549
e7c15bba
EZ
2550 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
2551
dddcbf00
EZ
2552 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
2553 (w32_get_bdf_glyph): Cast between unsigned char and char when
2554 passing arguments to subroutines, to shut up compiler warnings.
2555 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
2556 GET_HEX_VAL.
2557
2558 * xfaces.c: Include keyboard.h before frame.h, not after it.
2559
2560 * widget.c: Include keyboard.h before frame.h.
2561
2562 * w32term.h (struct image, struct face): Forward declaration, to
2563 avoid compiler warnings.
2564
7bd2d083
GM
25652001-05-11 Gerd Moellmann <gerd@gnu.org>
2566
47e72862
GM
2567 * keyboard.c (read_key_sequence): Don't modify events when
2568 generating fake prefix keys (mode-line, scroll-bar, ...) since
2569 this prevents proper processing of such events when pushed back
2570 into unread-command-events.
2571
dd5f324b
GM
2572 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
2573 actually redrawn. Make the function static.
2574 (note_mouse_highlight): Fix a case where the mouse cursor
2575 was changed back to the text cursor.
2576
2577 * xterm.h (clear_mouse_face): Remove prototype.
2578
d88a79d4
GM
2579 * xdisp.c (try_window_id): Fix the fix and set the right
2580 window_end_vpos.
2581
2582 * xdisp.c (try_window_id): Fix computation of window end in the
2583 case that lines were deleted at the end of the window. Add some
2584 more debug_method_adds.
0416532f 2585
7bd2d083
GM
2586 * xfaces.c (try_alternative_families): New function.
2587 (try_font_list): Use it. If ATTRS specifies a family, check
2588 fonts from that family first.
2589 (choose_face_font): Remove code setting the family part of
2590 the pattern to nil.
2591
23fca891
GM
25922001-05-10 Gerd Moellmann <gerd@gnu.org>
2593
ff9aa2ca
GM
2594 * xdisp.c (try_window_id): Fix case of all changes before
2595 the window start.
7b2654b5 2596
23fca891
GM
2597 * xdisp.c (try_window_id): Add some xasserts.
2598
e9726794
GM
25992001-05-09 Gerd Moellmann <gerd@gnu.org>
2600
2601 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
2602
9e53a675
GM
26032001-05-09 Dave Love <fx@gnu.org>
2604
2605 * xdisp.c (GIVE_UP): Fix for K&R C.
2606
0d487c52
GM
26072001-05-09 Gerd Moellmann <gerd@gnu.org>
2608
fe88d421
GM
2609 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
2610
0d487c52
GM
2611 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
2612 back to the text cursor shape without need.
2613
1e9fc92e
GM
26142001-05-07 Gerd Moellmann <gerd@gnu.org>
2615
a2a6232e
GM
2616 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
2617
2618 * dispextern.h (inverse_video): Declare extern.
2619
1e9fc92e
GM
2620 * keyboard.c (delete_kboard): Handle the case that selected_frame
2621 has been deleted in the course of x_connection_closed.
2622
12949a7f
EZ
26232001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
2624
7b2654b5
SM
2625 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
2626 Fix the change from 2001-04-30.
12949a7f 2627
2fa2f461
GM
26282001-05-03 Gerd Moellmann <gerd@gnu.org>
2629
a779d213
GM
2630 * xfns.c (file_dialog_unmap_cb): New function.
2631 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
2632 where a dialog is closed via the window manager.
2633
7b2654b5 2634 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
2635 the window start or all below the window end mostly rewritten.
2636 (redisplay_window): Move the tests if try_window_id is
2637 applicable to try_window_id.
2638 (GIVE_UP): New macro.
2639
3356df63
GM
26402001-05-02 Gerd Moellmann <gerd@gnu.org>
2641
a39202f6 2642 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
2643 currently being updated, mark the frame garbaged.
2644 Fix computation of rows intersecting the exposed rectangle.
a39202f6 2645 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 2646
3356df63
GM
2647 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
2648 again if it has already been drawn.
2649
a9d2fd1d
SM
26502001-05-01 Stefan Monnier <monnier@cs.yale.edu>
2651
2652 * syntax.c (update_syntax_table): Check that oldi has the same
2653 properties as old_prop before deciding not to invalidate.
2654
c95fc5f1
GM
26552001-04-30 Gerd Moellmann <gerd@gnu.org>
2656
a9793e45
GM
2657 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
2658 read-only text that is so because of text properties.
2659
c95fc5f1 2660 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 2661 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
2662 windows that are components of a Lucid menu bar.
2663
5a5d9185
GM
26642001-04-27 Gerd Moellmann <gerd@gnu.org>
2665
2666 * term.c (turn_on_face): Fix reverse video handling on terminals
2667 that don't support colors.
2668
ba973f7a
GM
26692001-04-26 Gerd Moellmann <gerd@gnu.org>
2670
2671 * editfns.c (save_excursion_restore): Don't use XBUFFER on
2672 a non-buffer.
2673
8c56a983
GM
26742001-04-25 Gerd Moellmann <gerd@gnu.org>
2675
a728644c
GM
2676 * term.c (toggle_highlight): New function.
2677 (turn_on_face): Change handling of reverse video.
2678
7b2654b5
SM
2679 * process.c (wait_reading_process_input):
2680 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 2681
bfd8410f
GM
2682 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
2683 of the number of overlays to check.
2684
be2488ca
GM
2685 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
2686
8c56a983
GM
2687 * xdisp.c (try_window_id): Fix a case where window_end_pos
2688 and window_end_bytepos were not adjusted.
2689
522d42f7
GM
26902001-04-23 Gerd Moellmann <gerd@gnu.org>
2691
2692 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
2693 zero instead of -1.
2694
78c1afb6
EZ
26952001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
2696
a9d2fd1d
SM
2697 * process.c (wait_reading_process_input) [!subprocesses]:
2698 Don't reference waiting_for_user_input_p, it's not defined in the
2699 branch without async subprocesses support.
78c1afb6 2700
a2fab450
GM
27012001-04-19 Gerd Moellmann <gerd@gnu.org>
2702
a122a38e
GM
2703 * keyboard.c (delete_kboard): Prevent a dangling reference
2704 from current_kboard to KB, which is freed.
2705
a9d2fd1d
SM
2706 * process.c (wait_reading_process_input):
2707 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
2708 read_key_sequence aware of buffer changes from under it.
2709
0f8d6dc7
GM
27102001-04-18 Gerd Moellmann <gerd@gnu.org>
2711
eeffb293
GM
2712 * xfaces.c (Qscalable_fonts_allowed): New variable.
2713 (realizing_basic_faces_p): Removed.
2fa2f461
GM
2714 (x_face_list_fonts): Special handling for realizing_basic_faces_p
2715 removed.
eeffb293 2716 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
2717 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
2718 for scalable-fonts-allowed to t.
eeffb293 2719
0f8d6dc7
GM
2720 * fileio.c (Finsert_file_contents): If the file size returned from
2721 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 2722 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 2723
eec2d1de
EZ
27242001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
2725
2726 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
2727 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
2728 (__memalign_hook): Make the two prototypes consistent.
2729
f4f480bd
GM
27302001-04-17 Gerd Moellmann <gerd@gnu.org>
2731
2732 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
2733 matrix of mini-windows.
2734
52283633
SM
27352001-04-12 Stefan Monnier <monnier@cs.yale.edu>
2736
2737 * intervals.c (find_interval): Don't rebalance during signal handling.
2738
ec2423c9
GM
27392001-04-11 Gerd Moellmann <gerd@gnu.org>
2740
30cb0001 2741 * fns.c: Include blockinput.h.
52283633 2742
ec2423c9
GM
2743 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
2744
719d83ad
GM
27452001-04-10 Gerd Moellmann <gerd@gnu.org>
2746
60f8d735
GM
2747 * fns.c (Fcompare_strings): Fix return values.
2748
afffeb57
GM
2749 * window.c (window_scroll): Change the meaning of N to mean
2750 N screen-fulls or N lines.
2751 (window_scroll_pixel_based, window_scroll_line_based)
2752 (scroll_command, Fscroll_other_window): Change accordingly.
2753
52283633
SM
2754 * window.c (window_scroll_pixel_based, Frecenter):
2755 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
2756 height of the window.
2757
2758 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
2759 instead of using it.last_visible_y for the height of the window.
52283633 2760
719d83ad 2761 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 2762 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
2763
2764 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
2765 able to write to hidden and system files. From Dan Holmsand
2766 <dan@eyebee.com>.
719d83ad 2767
8ddf3ee1
GM
2768 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
2769 Holmsand <dan@eyebee.com>.
719d83ad 2770
522ed7fb
GM
27712001-04-09 Gerd Moellmann <gerd@gnu.org>
2772
9170e5d4
GM
2773 * fns.c (Fplist_get, Fplist_put): Add QUITs.
2774
522ed7fb
GM
2775 * window.c (window_internal_height): Return 1 less if the
2776 window has a header line.
2777
2778 * xdisp.c (try_window_id): When scrolling on a terminal, take
2779 the change of window_internal_height into account.
2780
ceeb3d7d
EZ
27812001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
2782
2783 * gmalloc.c (align): If the argument SIZE would overflow
2784 __malloc_ptrdiff_t, fail right away.
2785
63685b9d
GM
27862001-04-06 Gerd Moellmann <gerd@gnu.org>
2787
2788 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2789 Make sure the tooltip is completely visible.
2790 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
2791
2792 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
2793
2794 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2795
3ffb33bb
DL
27962001-04-06 Dave Love <fx@gnu.org>
2797
52283633
SM
2798 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
2799 Fix test of `from'.
3ffb33bb 2800
869fb12c
GM
28012001-04-06 Gerd Moellmann <gerd@gnu.org>
2802
52283633 2803 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 2804
869fb12c
GM
2805 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
2806
441bf856
GM
28072001-04-05 Gerd Moellmann <gerd@gnu.org>
2808
4d664b04
GM
2809 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
2810
52283633 2811 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 2812
30ca89f5
GM
2813 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
2814 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
2815
2816 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
2817 shell widget's position only if it is non-null.
2818
52283633
SM
2819 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
2820 Set f->output_data.x->widget to null after destroying it.
30ca89f5 2821
81a81c0f
GM
2822 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
2823 FILENAME to bring it in synch with the documentation.
2824
441bf856
GM
2825 * xfaces.c (realizing_basic_faces_p): Renamed from
2826 realize_default_face_p.
2827 (realize_basic_faces): Set/clear realizing_basic_faces_p.
2828 (realize_default_face): Don't set the flag.
2829
702a1e8e
GM
28302001-04-04 Gerd Moellmann <gerd@gnu.org>
2831
1013f4e3
GM
2832 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
2833
52283633
SM
2834 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
2835
1013f4e3
GM
2836 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
2837 the buffer that was used for echoing.
2838
702a1e8e
GM
2839 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
2840 (first_font_matching): Removed unused function.
2841 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
2842 (may_use_scalable_font_p): Remove parameter FONT; rename
2843 parameter NAME to FONT.
2844 (x_face_list_fonts): Fix missing bounds check.
2845 (realizing_default_face_p): New variable.
2846 (realize_default_face): Set and clear that flag.
2847 (x_face_list_fonts): When called during the realization of the
2848 default face, and no matching fonts are found when ignoring
2849 scalable fonts and fonts matching a regexp from
2850 face-ignored-fonts, try without ignoring fonts.
2851
f9dbcda4
GM
28522001-04-03 Gerd Moellmann <gerd@gnu.org>
2853
ad18ffb1
GM
2854 * xfns.c (postprocess_image): New function.
2855 (lookup_image): Call it for all image types except PostScript.
2856 (x_kill_gs_process): Call postprocess_image.
2857
f9dbcda4
GM
2858 * xterm.c (x_use_underline_position_properties): New variable.
2859 (x_draw_glyph_string): Use it.
2860 (syms_of_xterm): DEFVAR_BOOL it.
2861
651f03b6
GM
28622001-04-02 Gerd Moellmann <gerd@gnu.org>
2863
2864 * xterm.c (x_alloc_nearest_color_1): New function.
2865 (x_alloc_nearest_color): Use it.
2866 (x_color_cells): Take a Display as argument, instead of a frame.
2867 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
2868 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
2869 (x_initialize): Register cvt_string_to_pixel as resource converter
2870 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
2871
73d75a62
GM
28722001-03-30 Gerd Moellmann <gerd@gnu.org>
2873
b2046df8
GM
2874 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
2875 (set_iterator_to_next): If a string from a display property ends,
2876 consider the case that this might also be the end of an
2877 overlay string having the display property.
2878
52283633 2879 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 2880
87d8eba4
GM
2881 * xdisp.c (reseat_to_string): Undo last change.
2882
73d75a62
GM
2883 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
2884 matrix of a window when the header line changes, when
2885 new rows are allocated, or when the width changes.
2886
911a2406
EZ
28872001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
2888
52283633 2889 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 2890
aea51abe
EZ
28912001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2892
2893 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
2894 deprecated.
2895
176bc847
GM
28962001-03-29 Gerd Moellmann <gerd@gnu.org>
2897
ed31fabf
GM
2898 * data.c (Fsubr_interactive_form): New function.
2899 (syms_of_data): Defsubr it.
2900
176bc847
GM
2901 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
2902 (live_float_p, live_misc_p): Return 1 only if the offset of the
2903 pointer in its block is >= 0.
2904
e59d0e9d
GM
29052001-03-28 Paul Eggert <eggert@twinsun.com>
2906
2907 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
2908 microseconds calcuation. Avoid double-rounding problem.
2909 In doc string, warn that the result is approximate.
2910
f827b862
GM
29112001-03-28 Gerd Moellmann <gerd@gnu.org>
2912
30a3f61c
GM
2913 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
2914 bind `inhibit-eval-during-redisplay' to t.
2915
2916 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
2917
2918 * xdisp.c (inhibit_eval_during_redisplay)
2919 (Qinhibit_eval_during_redisplay): New variables.
2920 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
2921 don't eval, return nil instead.
2922 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
2923 Initialize Qinhibit_eval_during_redisplay.
2924
e719f5ae
GM
2925 * xdisp.c (reseat_to_string): If STRING is multibyte, set
2926 the iterator's multibyte_p flag.
2927
deb2613a
GM
2928 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
2929 instead of setting it to zero; it's incremented for each frame
2930 where the menu face is changed.
2931
52283633
SM
2932 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
2933 change bottom shadow accordingly.
2934
2935 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
2936 intersections here.
2937 (expose_window): Do it here instead.
52283633 2938 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 2939
f827b862
GM
2940 * bytecode.c (BYTE_CODE_QUIT): New macro.
2941 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
2942
4bde0ebb
GM
29432001-03-27 Gerd Moellmann <gerd@gnu.org>
2944
607ec83c
GM
2945 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
2946 Give up if matrix starts in an ellipsis.
2947 (init_from_display_pos): Do nothing if POS doesn't specify
2948 a dpvec_index but the iterator has such a position.
2949
0245398f
GM
2950 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
2951
aba25348
GM
2952 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
2953 x/y position is (0, 0) after destroying the menu bar, restore
2954 its original position.
2955
4bde0ebb
GM
2956 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
2957 (init_from_display_pos): Use it.
2958 (try_window_reusing_current_matrix): Don't use cursor_row_p.
2959
8cdb267e
GM
29602001-03-26 Gerd Moellmann <gerd@gnu.org>
2961
2962 * xdisp.c (try_window_id): Undo last change.
2963
9948db79
EZ
29642001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2965
2966 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
2967
2968 * buffer.c (syms_of_buffer): Doc fix.
2969
2eddf899
GM
29702001-03-26 Gerd Moellmann <gerd@gnu.org>
2971
2972 * xfaces.c (x_update_menu_appearance): Use local variable
2973 popup_path for setting font resources.
2974
6c145d35
EZ
29752001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2976
6a65b1b5
EZ
2977 * frame.c (Fframe_list): Don't reference tip_frame if
2978 HAVE_WINDOW_SYSTEM is not defined.
2979
6c145d35
EZ
2980 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2981 <wl@gnu.org>.
2982
d74c1900
GM
29832001-03-25 Gerd Moellmann <gerd@gnu.org>
2984
20fbd925
GM
2985 * xdisp.c (init_from_display_pos): Test invisible property
2986 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 2987
927c5b3b
GM
2988 * xdisp.c (redisplay_internal) <update one window>: Make sure
2989 last_arrow_position and last_arrow_string are set.
2990
d74c1900
GM
2991 * frame.c (Fframe_list): Don't return a tooltip frame.
2992
091f8878
GM
29932001-03-23 Gerd Moellmann <gerd@gnu.org>
2994
52283633
SM
2995 * xdisp.c (mark_window_display_accurate_1): New function,
2996 extracted from mark_window_display_accurate.
2997 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
2998 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2999 (mark_window_display_accurate): Use it.
3000 (redisplay_internal): Use it for the selected window.
3001 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3002 for the selected frame.
3003
ac90c44f
GM
3004 * xdisp.c Use make_number, for readability.
3005 (try_window_id): Disable rows below the window end.
3006 (try_window_reusing_current_matrix): Use cursor_row_p.
3007 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3008 of rows.
3009 (init_from_display_pos): If POS specifies a position in a display
3010 vector, maybe get the iterator set up for that ellipsis.
43c09969 3011
091f8878
GM
3012 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3013
991786dd
EZ
30142001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3015
3016 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3017
6c29b43c
GM
30182001-03-23 Gerd Moellmann <gerd@gnu.org>
3019
3020 * xfaces.c (x_update_menu_appearance): Use a different path
3021 for Lucid popup menus.
3022
d8731202
SM
30232001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3024
3025 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3026
3027 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3028 (string_buffer_position): Use `make_number'.
3029
f61a541b
GM
30302001-03-22 Gerd Moellmann <gerd@gnu.org>
3031
3c9e997b
GM
3032 * xfaces.c (x_update_menu_appearance): Renamed from
3033 x_set_menu_face_resources. Use different resources for popups.
3034
3035 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3036 (GC_CHECK_STRING_BYTES): Don't define.
3037
364cd450
GM
3038 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3039 Removed, together with subroutines.
3040 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 3041 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 3042
d8731202
SM
3043 * dispextern.h (x_set_menu_resources_from_menu_face):
3044 Remove prototype.
364cd450 3045
d8731202 3046 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
3047 Remove calls to x_set_menu_resources_from_menu_face.
3048
d8731202
SM
3049 * xfaces.c (xm_set_menu_resources_from_menu_face):
3050 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
3051
3052 * xmenu.c: Include widget.h.
3053 (single_submenu): Return int. Some cleanup.
3054 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3055
140330de
GM
30562001-03-21 Gerd Moellmann <gerd@gnu.org>
3057
3058 * xterm.c (x_update_window_end): Handle overwritten mouse face
3059 also for tool bar windows.
3060 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3061 DRAW is DRAW_IMAGE_RAISED.
3062
1741905c
GM
30632001-03-20 Gerd Moellmann <gerd@gnu.org>
3064
fa88947e
GM
3065 * print.c (syms_of_print): Doc fixes.
3066
1741905c
GM
3067 * fns.c (Fmd5): Doc fix.
3068
ade0bee1
GM
30692001-03-19 Gerd Moellmann <gerd@gnu.org>
3070
357e7376
GM
3071 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3072 Clear area of the frame not occupied by the scroll bar.
3073
c2c097cc
GM
3074 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3075 tip frame's root window buffer to *tip* right after creating
3076 the frame.
3077
ade0bee1
GM
3078 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3079 is an integer don't have to be for space characters.
3080
88c6e37e
GM
30812001-03-16 Gerd Moellmann <gerd@gnu.org>
3082
52283633
SM
3083 * indent.c (current_column, current_column_1, Fmove_to_column)
3084 (compute_motion): Handle characters from display vectors differently.
88c6e37e 3085
c62eed76
KH
30862001-03-15 Kenichi Handa <handa@etl.go.jp>
3087
3088 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3089 drawing glyph string.
3090
c899e7e6
GM
30912001-03-15 Gerd Moellmann <gerd@gnu.org>
3092
d0bbfc99
GM
3093 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3094 (command_loop_1): Undo last change.
3095
03d1a189
GM
3096 * xterm.c (fast_find_position): Return the correct vpos.
3097
c899e7e6 3098 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 3099 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
3100 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3101 Call store_symval_forwarding with BUF null.
3102 (set_internal): Call store_symval_forwarding with the BUF
3103 parameter passed to set_internal. Formerly, the value was always
3104 set in the current buffer; the buffer recorded in specbind for
3105 this case wasn't used.
3106 (arith_driver): Reindent.
3107
52283633
SM
3108 * buffer.c (swap_out_buffer_local_variables):
3109 Call store_symval_forwarding with BUF null.
c899e7e6
GM
3110
3111 * lisp.h (store_symval_forwarding): Change prototype.
3112
3113 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3114
57ac7c81
GM
31152001-03-14 Gerd Moellmann <gerd@gnu.org>
3116
697617d9
GM
3117 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3118 FOR_DELETION. Avoid resizing the mini-window of the selected
3119 frame if FOR_DELETION is set.
3120 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3121 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3122 signature.
3123
3124 * window.c (Fset_window_configuration): Change call to
3125 do_switch_frame to new format.
3126
3127 * keyboard.c (quit_throw_to_read_char): Change call to
3128 do_switch_frame to new format.
3129
3130 * lisp.h (do_switch_frame): Change prototype.
3131
819dce0f
GM
3132 * frame.c (Fframe_parameters): In the `buffer-list' frame
3133 parameter, store the buffer list of FRAME, not the list of the
3134 selected frame.
3135
57ac7c81
GM
3136 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3137 box just because the glyph row's full_width_p flag is set.
3138
65008712
GM
31392001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3140
3141 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3142 skip the padding blanks inserted in extend_face_to_end_of_line,
3143 before checking for trailing whitespace.
3144
159cf431
GM
31452001-03-13 Gerd Moellmann <gerd@gnu.org>
3146
52283633 3147 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
3148 Remove special handling for LessTif/Motif.
3149 (toplevel): Don't include Xm/Xm.h.
3150
52283633
SM
3151 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3152 Remove workaround code for LessTif; it doesn't work anymore.
3153
2564ea1b 3154 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 3155 Xm/ScrollBarP.h.
afcdc0a1 3156
52283633
SM
3157 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3158 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
3159 contemporary LessTif.
3160
52283633
SM
3161 * xfaces.c (xm_set_menu_resources_from_menu_face):
3162 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 3163
159cf431
GM
3164 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3165 removing button grabs.
3166
c6f7429a
KH
31672001-03-13 Kenichi Handa <handa@etl.go.jp>
3168
cb82d767
KH
3169 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3170 and clip-large-size-font as obsolete.
3171
c6f7429a
KH
3172 * lread.c (read_multibyte): Check the validity of multibyte
3173 sequence. If invalid, return the first byte.
3174
760cefb5
GM
31752001-03-12 Gerd Moellmann <gerd@gnu.org>
3176
3177 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3178 before running the command; timer functions or process
3179 filters may have set it.
3180
5141f9d0
EZ
31812001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3182
3183 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3184 Doc fix.
3185
b6a15240
GM
31862001-03-12 Gerd Moellmann <gerd@gnu.org>
3187
3188 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3189 to sprintf.
3190
95522746
GM
31912001-03-09 Gerd Moellmann <gerd@gnu.org>
3192
db14cfc5
GM
3193 * dispextern.h (string_buffer_position): Add prototype.
3194
52283633 3195 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
3196 (single_display_prop_string_p): New functions.
3197
3198 * xterm.c (note_mouse_highlight): If there's no help-echo on
3199 a string, look at the buffer text ``under'' it.
3200
3201 * keyboard.c (make_lispy_event): Add string info to the event,
3202 analogous to what's done on mode lines.
3203 (read_key_sequence): For a click on a string, consider `local-map'
3204 and `keymap' of that string.
3205
52283633
SM
3206 * keyboard.c (make_lispy_event, make_lispy_movement):
3207 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
3208
3209 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3210
3211 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
3212 POS; return void.
3213
95522746
GM
3214 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
3215 flags argument to emacs_open; it seems to conflict with O_EXCL.
3216
898a399d
KH
32172001-03-09 Kenichi Handa <handa@etl.go.jp>
3218
28cd4910
KH
3219 * composite.h (struct composition): Change types of members;
3220 glyph_len to unsigned, width to unsigned short.
898a399d 3221
4cdf6a6c
AI
32222001-03-08 Andrew Innes <andrewi@gnu.org>
3223
3224 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3225 menu titles.
3226
129004d3
GM
32272001-03-08 Gerd Moellmann <gerd@gnu.org>
3228
221dd3e7
GM
3229 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3230 instead of nil.
3231
52283633 3232 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
3233 help-echo in strings.
3234 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3235 (fast_find_string_pos): New function.
3236
52283633
SM
3237 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3238 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
3239
3240 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3241 Handle `mouse-face'.
3242
3243 * dispextern.h (face_at_string_position): Change prototype.
3244
52283633 3245 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 3246
129004d3
GM
3247 * keyboard.c (make_lispy_event): Avoid generating drag events
3248 if the mouse hasn't actually moved to another buffer position.
52283633 3249
80c8ab8c
DL
32502001-03-08 Dave Love <fx@gnu.org>
3251
129004d3 3252 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 3253
989521fd
GM
32542001-03-08 Gerd Moellmann <gerd@gnu.org>
3255
3256 * process.c (Fset_process_window_size): Fix a typo.
3257
bb5c338d
KH
32582001-03-08 Kenichi Handa <handa@etl.go.jp>
3259
3260 * coding.c (detect_coding_sjis): Do more rigid check.
3261 (detect_coding_big5): Likewise.
3262 (decode_coding_sjis_big5): Likewise.
3263 (Fdetect_coding_region): Call detect_coding_system with tailing
3264 anchor byte `\0' for more rigid detection.
52283633 3265 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
3266 (Fdetect_coding_string): Likewise.
3267
8b8f9197
SM
32682001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3269
3270 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3271 a string before extracting its data.
3272
3bdf2660
GM
32732001-03-07 Gerd Moellmann <gerd@gnu.org>
3274
3275 * window.c (Frecenter): Rewrite code handling negative values
3276 of ARG on graphical frames.
3277
32782001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3279
3280 * window.c (displayed_window_lines): If W->start is outside the
3281 accessible portion of the buffer, call start_display with BEGV or
3282 ZV instead of W->start.
3283
471f86b9
GM
32842001-03-07 Gerd Moellmann <gerd@gnu.org>
3285
2ab62c6c
GM
3286 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3287
471f86b9
GM
3288 * process.c (Fset_process_filter): Don't crash if the input
3289 file descriptor of PROCESS is closed.
3290 (Fset_process_window_size): Likewise.
3291
101922c3
GM
32922001-03-06 Kenichi Handa <handa@etl.go.jp>
3293
3294 * xterm.c (XTflash): Make the timeout of select shorter, and call
3295 select repeatedly until the desired time expires.
3296
45d051a7
GM
32972001-03-06 Gerd Moellmann <gerd@gnu.org>
3298
3299 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3300
3301 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3302
3303 * lisp.h (Vwindow_list): Declare extern.
3304
8f372c46
EZ
33052001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3306
3307 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3308
f16a7aa5
GM
33092001-03-06 Gerd Moellmann <gerd@gnu.org>
3310
157ae273
GM
3311 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3312 to detect a case where we have to highlight a different region
3313 despite not having left the currently highlighted region.
3314 Set mouse_face_overlay in the x_display_info.
45d051a7 3315 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
3316
3317 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3318
3319 * buffer.c (mouse_face_overlay_overlaps): New function.
3320
3321 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3322 (Qmouse_face): Declare extern.
3323
f16a7aa5
GM
3324 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3325 if face_change_count is non-zero.
3326
827afcac
KH
33272001-03-06 Kenichi Handa <handa@etl.go.jp>
3328
3329 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3330 that the source is unibyte.
3331
14c7242e
DL
33322001-03-05 Dave Love <fx@gnu.org>
3333
827afcac 3334 * xterm.c (XTmouse_position): Fix typo.
14c7242e 3335
c28b847b
GM
33362001-03-05 Gerd Moellmann <gerd@gnu.org>
3337
3338 * minibuf.c (read_minibuf): Clean up the binding stack if
3339 called noninteractively.
3340
b86644f2
KH
33412001-03-05 Kenichi Handa <handa@etl.go.jp>
3342
3343 * coding.c (syms_of_coding): Docstring modified.
3344
203682cc 33452001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
3346
3347 * charset.c (char_to_string): If a single byte char has modifier
3348 bits that can't be reflected to the character code, ignore them
45d051a7 3349 instead of signaling an error.
b86644f2 3350
e30bd7b7
EZ
33512001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3352
3353 * s/msdos.h: Update copyright notice.
3354
3355 * dosfns.h: Update copyright notice.
3356
3357 * dosfns.c: Update copyright notice.
3358
3359 * msdos.c: Update copyright notice.
3360
b52b65bd
GM
33612001-03-02 Gerd Moellmann <gerd@gnu.org>
3362
3363 * xterm.c (glyph_rect): New function.
3364 (XTmouse_position): Use it to raise the threshold for mouse
3365 movement event generation.
3366
53c4b1e6
EZ
33672001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3368
3369 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
3370 specifies (reverse . t), reverse the initial screen colors.
3371 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
3372 but we are reversing the colors, set bg_set, not fg_set.
3373 Likewise for setting background-color and reversing: set fg_set.
3374 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
3375 in effect.
3376
3377 * xfaces.c (Finternal_set_lisp_face_attribute)
3378 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
3379 parameters alist.
3380
f964b4d7
GM
33812001-03-02 Gerd Moellmann <gerd@gnu.org>
3382
ef53d75e
GM
3383 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
3384 to a single slash in the middle of file names.
3385
52283633 3386 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
3387 Accept only alphanumeric time zone names.
3388
f964b4d7
GM
3389 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
3390 or width area.
3391 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3392 a widget to zero height.
52283633 3393
c3c45f65
GM
33942001-03-01 Gerd Moellmann <gerd@gnu.org>
3395
3396 * window.c (Fwindow_end): Call move_it_past_eol only if
3397 ending up on a partially visible line.
3398
028d739a
DL
33992001-03-01 Dave Love <fx@gnu.org>
3400
3401 * ccl.c (Fccl_execute): Doc fix.
3402
57c5889c
GM
34032001-03-01 Gerd Moellmann <gerd@gnu.org>
3404
35f59f6b
GM
3405 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
3406 of the tool bar before calling x_figure_window_size.
3407
f84ff02c
GM
3408 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
3409 NULL after destroying it, otherwise XTread_socket can access a
3410 destroyed widget when input is unblocked.
3411
8b8f9197 3412 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 3413
57c5889c
GM
3414 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
3415 same name as before, although there was a change in fontsets.
3416
224227d1
KR
34172001-02-28 Ken Raeburn <raeburn@gnu.org>
3418
4560730a
KR
3419 * lisp.h (Fframe_parameter): Declare.
3420
224227d1 3421 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 3422 Lisp_Object.
224227d1 3423
ece93c02
GM
34242001-02-28 Gerd Moellmann <gerd@gnu.org>
3425
11ef99b9
GM
3426 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
3427 NULL instead.
3428
3429 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
3430 NULL instead.
3431
ece93c02
GM
3432 * alloc.c (toplevel): Include process.h.
3433 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
3434 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
3435 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
3436 (allocate_vector, allocate_hash_table, allocate_window)
3437 (allocate_frame, allocate_process, allocate_other_vector):
3438 New functions.
ece93c02
GM
3439 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
3440 (mark_maybe_pointer): New function.
52283633 3441 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
3442 remain and not Lisp_Objects.
3443 (min_heap_address, max_heap_address): New variables.
3444 (mem_find): Return MEM_NIL if START is below min_heap_address or
3445 above max_heap_address.
3446 (mem_insert): Compute min_heap_address and max_heap_address.
3447
3448 * process.c (make_process): Use allocate_process.
3449
3450 * frame.c (make_frame): Use allocate_frame.
3451
3452 * window.c (make_window, make_dummy_parent): Use allocate_window.
3453 (Fcurrent_window_configuration): Use allocate_other_vector.
3454
3455 * lisp.h (allocate_vectorlike): Remove prototype.
3456 (allocate_vector, allocate_other_vector, allocate_frame)
3457 (allocate_window, allocate_process, allocate_hash_table):
3458 Add prototypes.
3459
3460 * fns.c (Fdelete, larger_vector): Use allocate_vector.
3461 (make_hash_table, copy_hash_table): Use allocate_hash_table.
3462
063af457
KH
34632001-02-27 Kenichi Handa <handa@etl.go.jp>
3464
3465 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
3466 treat the produced bytes as a valid multibyte sequence.
3467
3468 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
3469 (ccl_driver) <CCL_WriteMultibyteChar2>:
3470 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
3471 <ccl_finish>: Set ccl->eight_bit_control properly.
3472
3473 * ccl.h (struct ccl_program): New member eight_bit_control.
3474
f58c6494
SM
34752001-02-26 Stefan Monnier <monnier@cs.yale.edu>
3476
3477 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
3478 accessible_keymaps_char_table.
3479 (accessible_keymaps_char_table): Obey `is_metized'.
3480 (where_is_internal, Fwhere_is_internal): Don't confuse int and
3481 Lisp_Object.
3482
c596c392
GM
34832001-02-26 Gerd Moellmann <gerd@gnu.org>
3484
3485 * dispnew.c: Check HAVE_TERM_H before including term.h.
3486
425de386
AI
34872001-02-24 Andrew Innes <andrewi@gnu.org>
3488
3489 * makefile.w32-in: Update copyright notice.
3490
2ba11bbd
SM
34912001-02-24 Stefan Monnier <monnier@cs.yale.edu>
3492
3493 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
3494
66c56ed1
KH
34952001-02-24 Kenichi Handa <handa@etl.go.jp>
3496
4c1593ce
KH
3497 * Makefile.in (lisp): Add international/utf-8.elc.
3498
66c56ed1
KH
3499 * fontset.c (Fnew_fontset): Fix handling of the case that an
3500 element of FONTLIST is a cons of family and registry.
3501
796ead7e
JR
35022001-02-23 Jason Rumney <jasonr@gnu.org>
3503
3504 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
3505 to height unconditionally.
3506
3507 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 3508 background face to the end of the drawing area in the text area, only.
796ead7e
JR
3509 (x_insert_glyphs): Call window_box_left to obtain the left
3510 x-coordinate of the area to shift.
3511
3512 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
3513 safe_run_hooks.
3514
f6839838
AI
35152001-02-22 Andrew Innes <andrewi@gnu.org>
3516
52283633 3517 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
3518 ($(BLD)\dispnew.obj):
3519 ($(BLD)\editfns.obj):
3520 ($(BLD)\fileio.obj):
3521 ($(BLD)\filelock.obj):
3522 ($(BLD)\keyboard.obj):
3523 ($(BLD)\w32proc.obj):
3524 ($(BLD)\process.obj):
3525 ($(BLD)\sysdep.obj): Ditto.
3526
3527 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
3528 header files.
52283633
SM
3529 ($(BLD)/dispnew.$(O)):
3530 ($(BLD)/editfns.$(O)):
3531 ($(BLD)/fileio.$(O)):
3532 ($(BLD)/filelock.$(O)):
3533 ($(BLD)/keyboard.$(O)):
3534 ($(BLD)/w32proc.$(O)):
3535 ($(BLD)/process.$(O)):
f6839838
AI
3536 ($(BLD)/sysdep.$(O)): Ditto.
3537
c224f70b
GM
35382001-02-22 Gerd Moellmann <gerd@gnu.org>
3539
51695746
GM
3540 * xdisp.c (forward_to_next_line_start): When taking the shortcut
3541 at the start of the function, check that the \n in it->c is
3542 from the iterator's current position.
52283633 3543
a61b7058
GM
3544 * xdisp.c (handle_single_display_prop): Add parameter
3545 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
3546 properties which replace the display of text with something else.
3547 (handle_display_prop): Call handle_single_display_prop with
3548 additional argument saying if we already replaced text display
3549 with something else. Use AREF.
52283633 3550 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
3551 (decode_mode_spec_coding): Use AREF and ASIZE.
3552
3473f362
GM
3553 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
3554 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
3555 * vmstime.h: Files removed.
52283633 3556
2bb58df3
GM
3557 * unexencap.c, unexfx2800.c: Files removed.
3558
c224f70b
GM
3559 * dispnew.c (direct_output_for_insert): Give up if we are showing
3560 a message or just cleared the message because we might need to
3561 resize the echo area window or display an empty echo area.
3562
ffc9ff0c
GM
35632001-02-21 Gerd Moellmann <gerd@gnu.org>
3564
0528abe1
GM
3565 * xdisp.c (redisplay_internal): Do the
3566 mark_window_display_accurate after all windows have been
3567 redisplayed because this call resets flags in buffers which are
3568 needed for proper redisplay.
3569
52283633
SM
3570 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
3571 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
3572 the old names.
3573
52283633
SM
3574 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3575 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3576
3577 * msdos.h (struct x_output): Rename busy_window to
3578 hourglass_window, busy_p to hourglass_p.
3579
52283633
SM
3580 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
3581 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
3582
3583 * xfns.c: Rename everything containing *busy_cursor* and similar
3584 to *hourglass*.
3585 (syms_of_w32fns): Rename x-busy-pointer-shape to
3586 x-hourglass-pointer-shape, display-busy-cursor to
3587 display-hourglass, busy-cursor-delay to hourglass-delay.
3588
3589 * w32fns.c: Rename everything containing *busy_cursor* and similar
3590 to *hourglass*.
3591 (syms_of_w32fns): Rename x-busy-pointer-shape to
3592 x-hourglass-pointer-shape, display-busy-cursor to
3593 display-hourglass, busy-cursor-delay to hourglass-delay.
3594
3595 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
3596 of its busy_p flag.
3597
3598 * dispextern.h (start_hourglass, cancel_hourglass)
3599 (display_hourglass_p): Renamed from *busy_cursor*.
3600
ab2c5f0a
GM
36012001-02-20 Gerd Moellmann <gerd@gnu.org>
3602
d17e49a8
GM
3603 * keyboard.c (read_char): When an event from unread-command-events
3604 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
3605
fa97adf6
GM
3606 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
3607 equal to the current buffer.
3608
ab2c5f0a
GM
3609 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
3610 nil, otherwise we're left with truncate_lines t when a message
3611 is printed with message-truncate-lines bound to t.
3612
aeac019e
GM
36132001-02-19 Gerd Moellmann <gerd@gnu.org>
3614
c8bc6f65
GM
3615 * window.c (Fmove_to_window_line): Undo last change.
3616 (displayed_window_lines): Call line_bottom_y to determine
3617 the line's bottom position.
3618
3619 * dispextern.h (line_bottom_y): Add prototype.
3620
52283633 3621 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
3622 (pos_visible_p): Use it.
3623
980a2d69
GM
3624 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
3625 set redisplaying_p to 0 here instead of in Frecursive_edit.
3626 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
3627 set redisplaying_p.
3628
52283633 3629 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
3630 New variables.
3631 (syms_of_xdisp): Initialize new variables.
3632 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
3633 Specbind `inhibit-menubar-update' when updating the menu bar.
3634
65048e97
GM
3635 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
3636 safe_run_hooks.
3637
3638 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
3639 safe_run_hooks.
3640
a57c4026
GM
3641 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
3642 is null.
3643
aeac019e
GM
3644 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
3645 to the start of the file.
3646
76846b31
GM
36472001-02-16 Gerd Moellmann <gerd@gnu.org>
3648
f3f053f3 3649 * window.c (set_window_buffer): Fix last change.
52283633 3650
f3f053f3
GM
3651 * window.c (set_window_buffer): Set window's vscroll to 0.
3652
dad75588
GM
3653 * window.c (coordinates_in_window): Increase width of area
3654 where the vertical line can be dragged.
3655
c220b753
GM
3656 * xterm.c (x_set_glyph_string_background_width): Extend the
3657 background face to the end of the drawing area in the text
3658 area, only.
3659
c56b1c1b
GM
3660 * xdisp.c (handle_single_display_prop): Set iterator's position
3661 to where the `display' property starts, like for images.
3662 (dump_glyph): New function.
3663 (dump_glyph_row): Use it. Dump info about marginal areas.
3664
3665 * dispnew.c (direct_output_for_insert): Recognize more cases where
3666 glyphs can be written instead of being inserted.
3667
3668 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
3669 the left x-coordinate of the area to shift.
3670
76846b31
GM
3671 * dired.c (directory_files_internal): Set result list to nil
3672 before retrying.
3673
0fc71a77
KH
36742001-02-15 Kenichi Handa <handa@etl.go.jp>
3675
3676 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
3677 invalid multibyte sequence, treat *SRC as a character of
3678 eight-bit-graphic.
3679
25078b54
EZ
36802001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
3681
3682 * textprop.c (Fset_text_properties): Doc fix.
3683
8399f8a0
GM
36842001-02-15 Gerd Moellmann <gerd@gnu.org>
3685
3686 * dispnew.c (update_text_area): Undo change of 2001-01-12.
3687
9a2a6f73
DL
36882001-02-14 Dave Love <fx@gnu.org>
3689
3690 * coding.c: Doc and message fixes.
3691
bf853fee
AI
36922001-02-14 Andrew Innes <andrewi@gnu.org>
3693
3694 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
3695 Emacs frame above the screen size.
3696
78c663d8
GM
36972001-02-14 Gerd Moellmann <gerd@gnu.org>
3698
3699 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
3700
7cc9f69f
GM
37012001-02-13 Gerd Moellmann <gerd@gnu.org>
3702
0a411995
GM
3703 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
3704 case that TO ends up beyond ZV after running before-change-functions.
3705
5ddc1b75
GM
3706 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
3707 the selected window if it is showing the buffer in question.
3708
7cc9f69f
GM
3709 * dired.c (directory_files_internal): Initialize errno.
3710 (toplevel): Include errno.h.
3711
2e6621ca
GM
37122001-02-13 Kenichi Handa <handa@etl.go.jp>
3713
3714 * xfaces.c (best_matching_font): New parameter width_ratio.
3715 Multiply avgwidth by width_ratio.
3716 (choose_face_font): Call best_matching_font with width_ratio
3717 calculated from the column width of C.
3718
60222d69
AI
37192001-02-12 Andrew Innes <andrewi@gnu.org>
3720
3721 The following changes are to draw box lines inside characters area
3722 if line-width is negative.
52283633 3723
60222d69
AI
3724 * w32term.c (x_produce_image_glyph): Pay attention to the case that
3725 face->box_line_width is negative.
3726 (x_produce_stretch_glyph): Likewise.
3727 (x_produce_glyphs): Likewise.
3728 (x_estimate_mode_line_height): Likewise.
3729 (x_draw_glyph_string_background): Likewise.
3730 (x_draw_glyph_string_foreground): Likewise.
3731 (x_draw_composite_glyph_string_foreground): Likewise.
3732 (x_draw_glyph_string_box): Likewise.
3733 (x_draw_image_foreground): Likewise.
3734 (x_draw_image_relief): Likewise.
3735 (x_draw_image_foreground_1): Likewise.
3736 (x_draw_image_glyph_string): Likewise.
3737
9804b846
KH
37382001-02-09 Kenichi Handa <handa@etl.go.jp>
3739
3740 The following changes are to draw box lines inside characters area
3741 if line-width is negative.
52283633 3742
9804b846
KH
3743 * xterm.c (x_produce_image_glyph): Pay attention to the case that
3744 face->box_line_width is negative.
3745 (x_produce_stretch_glyph): Likewise.
3746 (x_produce_glyphs): Likewise.
3747 (x_estimate_mode_line_height): Likewise.
3748 (x_draw_glyph_string_background): Likewise.
3749 (x_draw_glyph_string_foreground): Likewise.
3750 (x_draw_composite_glyph_string_foreground): Likewise.
3751 (x_draw_glyph_string_box): Likewise.
3752 (x_draw_image_foreground): Likewise.
3753 (x_draw_image_relief): Likewise.
3754 (x_draw_image_foreground_1): Likewise.
3755 (x_draw_image_glyph_string): Likewise.
3756
3757 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
3758 and :line-width can be negative.
52283633 3759 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 3760
49be9f70
JR
37612001-02-09 Jason Rumney <jasonr@gnu.org>
3762
3763 * w32term.c (w32_encode_char): Treat eight bit graphic and control
3764 characters the same as ASCII and latin-1.
3765 (x_display_and_set_cursor): Check for the focus frame's selected
3766 window instead of selected_window.
3767 (x_after_update_window_line): Don't clear if frame's internal
3768 border width is zero.
3769 (x_new_font): Don't change a tooltip's size.
3770 (w32_initialize): Set char_ins_del_ok to 1.
3771
3772 * w32fns.c (Fx_show_tip): Fix calls to make_number.
3773 (x_set_font): If font hasn't changed, avoid recomputing
3774 faces and other things.
52283633
SM
3775 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
3776 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
3777 (x_create_tip_frame): Prevent changing the tooltip's
3778 background color by specifying a color for the default font
3779 in .Xdefaults.
3780 (Qcancel_timer): New variable.
3781 (syms_of_w32fns): Initialize and staticpro it.
3782 (Fx_hide_tip, Fx_show_tip): Use it.
3783 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3784 the timer.
3785 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
3786
3787 * w32.c (init_environment): Duplicate local string before putenv.
3788
555e35d2
SZ
37892001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
3790
3791 * charset.c (Fstring): A typo.
3792
19c92c94
KH
37932001-02-09 Kenichi Handa <handa@etl.go.jp>
3794
e47a1c33
KH
3795 * charset.c (Fstring): If all arguments are less than 256, return
3796 a unibyte string.
3797
3798 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
3799 return a unibyte string.
3800
19c92c94
KH
3801 * coding.c (code_convert_region): After detecting a coding, if
3802 nothing found, set coding->composing to COMPOSITION_NO.
3803 (decode_coding_string): Likewise.
3804
d8e675f5
SM
38052001-02-08 Stefan Monnier <monnier@cs.yale.edu>
3806
3807 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
3808 to avoid overflow.
3809
bd503487
KH
38102001-02-07 Kenichi Handa <handa@etl.go.jp>
3811
3812 * charset.c (parse_str_to_multibyte): New function.
3813
3814 * charset.h (parse_str_to_multibyte): Extern it.
3815
3816 * print.c (print_string): If we are going to print a unibyte
3817 string into a multibyte buffer, convert the string to multibyte by
3818 str_to_multibyte.
3819
a8370d72
AI
38202001-02-06 Andrew Innes <andrewi@gnu.org>
3821
3822 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
3823 been created. It seems we can get sent window messages such as
3824 WM_ERASEBKGND before we properly update a frame.
3825
c363a1d6
GM
38262001-02-06 Gerd Moellmann <gerd@gnu.org>
3827
3828 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
3829 Avoid some unnecessary cursor positioning.
3830
a08332c0
GM
38312001-02-05 Gerd Moellmann <gerd@gnu.org>
3832
52283633 3833 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
3834 (LFACE_AVGWIDTH): New macro.
3835 (LFACEP): Use AREF.
3836 (check_lface_attrs): Check LFACE_AVGWIDTH.
3837 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3838 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
3839 (merge_face_vectors): Check LFACE_AVGWIDTH.
3840 (Finternal_make_lisp_face): Use AREF.
3841 (xm_set_menu_resources_from_menu_face)
3842 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
3843 (Finternal_lisp_face_empty_p): Use AREF.
3844 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
3845 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
3846 Compare average widths..
3847 (best_matching_font): Arrange for comparing average widths.
3848
52283633
SM
3849 * dispextern.h (enum lface_attribute_index):
3850 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
3851
5cb3c8d4
DL
38522001-02-05 Dave Love <fx@gnu.org>
3853
3854 * puresize.h: Revert last change following loadup.el change.
3855
193fba87
AI
38562001-02-05 Andrew Innes <andrewi@gnu.org>
3857
3858 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
3859 invocation of temacs, to work with Windows 2000.
3860 (bootstrap-emacs): Ditto.
3861
e16f52ce
GM
38622001-02-05 Gerd Moellmann <gerd@gnu.org>
3863
7a58ab59
GM
3864 * xterm.c (x_display_and_set_cursor): Check for the focus
3865 frame's selected window instead of selected_window.
3866
e89aaabd
GM
3867 * xdisp.c (try_scrolling): If point is in the line below the
3868 window, make sure to move the iterator at least a canonical
3869 char height down.
3870
52283633 3871 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 3872
789ce875
KH
38732001-02-05 Kenichi Handa <handa@etl.go.jp>
3874
52283633
SM
3875 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
3876 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
3877 (ccl_driver): If the CCL program is terminated because of
3878 CCL_STAT_INVALID_CMD, copy the remaining source data to the
3879 destination instead of throwing them away.
3880
20b28f82
GM
38812001-02-02 Gerd Moellmann <gerd@gnu.org>
3882
79fb38c0
GM
3883 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
3884 faces and other things.
3885
20b28f82
GM
3886 * xdisp.c (get_next_display_element): Fix case of empty
3887 display table entry.
3888
5a72551e
EZ
38892001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3890
eb24d0bf
EZ
3891 * editfns.c (Fconstrain_to_field): Doc fix.
3892
6a3f48c7
EZ
3893 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
3894 into `thoroughly', to make it consistent with the doc string.
3895
5a72551e
EZ
3896 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
3897
01acdb05
GM
38982001-02-01 Gerd Moellmann <gerd@gnu.org>
3899
0353b28f
GM
3900 * search.c (search_buffer): Call set_search_regs with a byte
3901 position, not a character position.
3902
01acdb05
GM
3903 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
3904 minibuffer-only,
3905
e86b5133
EZ
39062001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
3907
3908 * frame.c (Fmodify_frame_parameters): Doc fix.
3909
7442878f
GM
39102001-01-31 Gerd Moellmann <gerd@gnu.org>
3911
01acdb05
GM
3912 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
3913 identifier which is not reserved by Standard C.
52283633 3914
7442878f
GM
3915 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
3916
3917 * window.c (enum window_part): New enumeration.
3918 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
3919 Qright_bitmap_area.
3920 (coordinates_in_window): Return an enumerator from enum
3921 window_part. Fix handling of right scroll bar.
3922 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
3923 `right-fringe' instead of `left-bitmap-area' and
3924 `right-bitmap-area'. Use enumerators from enum window_part
3925 instead of hard-coded integers.
52283633
SM
3926 (check_window_containing, window_from_coordinates):
3927 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
3928 (syms_of_window): Replace Qleft_bitmap_area and
3929 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
3930
7c132cba
EZ
39312001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
3932
3933 * editfns.c (Fformat_time_string): Doc fix.
3934
c359dd9e
SM
39352001-01-31 Stefan Monnier <monnier@cs.yale.edu>
3936
3937 * keymap.c (Fwhere_is_internal): Use the first valid binding
3938 if no ascii binding is found (when firstonly is t).
3939
ce070307
GM
39402001-01-31 Gerd Moellmann <gerd@gnu.org>
3941
b4f30ec5
GM
3942 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
3943 instead of Finteractive_p.
3944
3945 * lisp.h (interactive_p): Add prototype.
3946
3947 * eval.c (interactive_p): New function.
3948 (Finteractive_p): Use it.
3949
ce070307
GM
3950 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
3951
f57b6e64
DL
39522001-01-31 Dave Love <fx@gnu.org>
3953
d61c7afe
DL
3954 * .gdbinit (hook-run): Define to run xreload.
3955
f57b6e64
DL
3956 * textprop.c (Fset_text_properties): Fix newline in doc string.
3957
eef93f99
GM
39582001-01-30 Gerd Moellmann <gerd@gnu.org>
3959
52283633
SM
3960 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
3961 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
3962
3963 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 3964 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
3965 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
3966
3967 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
3968 height.
3969
d9c1f6f9
DL
39702001-01-30 Dave Love <fx@gnu.org>
3971
3972 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3973 AFTER_POTENTIAL_GC.
3974
e8f044a0
GM
39752001-01-29 Gerd Moellmann <gerd@gnu.org>
3976
52283633
SM
3977 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3978 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 3979
8e1db7b3
EZ
39802001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3981
3982 * textprop.c (Fset_text_properties): Doc fix.
3983
4eefd9d2
GM
39842001-01-29 Gerd Moellmann <gerd@gnu.org>
3985
3986 * xdisp.c (forward_to_next_line_start): Remove xassert.
3987
fccb8288
EZ
39882001-01-29 Jason Rumney <jasonr@gnu.org>
3989
4eefd9d2 3990 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
3991 returning without releasing it.
3992
76581eab
KH
39932001-01-29 Kenichi Handa <handa@etl.go.jp>
3994
3995 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3996 for '^', '$', and '\0'.
3997
83a96b4d
AC
39982001-01-28 Andrew Choi <akochoi@i-cable.com>
3999
5604ec34
AC
4000 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4001 regex for '^', '$', and '\0'.
4002
83a96b4d
AC
4003 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4004 only if current_sblock has been initialized.
4005
4006 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4007 terminal frame even if it is the only visible frame.
4008
c09a6440
KH
40092001-01-28 Kenichi Handa <handa@etl.go.jp>
4010
4011 * fontset.c (font_family_registry): Even if FONTNAME conform to
4012 XLFD, if it specifies other fields than family and registry,
52283633 4013 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 4014 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
4015 a signle byte character. Don't set FAMILY part to nil here.
4016 It is handled by the caller choose_face_font.
c09a6440
KH
4017 (Fnew_fontset): Call font_family_registry with FORCE 0.
4018 (Fset_fontset_font): Likewise.
4019
4dcd74e6
GM
40202001-01-27 Gerd Moellmann <gerd@gnu.org>
4021
4022 * xdisp.c (display_line): Don't treat a newline as fitting
4023 on the line.
4024
d2906bf8
GM
40252001-01-26 Gerd Moellmann <gerd@gnu.org>
4026
0130fe1a
GM
4027 * window.c (size_window): Set the window's orig_top to nil when
4028 changing heights, so that a future shrink_mini_window won't
4029 restore a bogus height.
4030
550f0e6a
GM
4031 * frame.c (do_switch_frame): If selected frame has a mini-window,
4032 resize that to exact size.
4033
b7b20fbd
GM
4034 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4035
a47b7816
GM
4036 * xdisp.c (display_line): Simplify check for glyphs fitting
4037 entirely in the line.
4038
d2906bf8
GM
4039 * xfns.c (xic_style): New variable.
4040 (create_frame_xic): Move static variable to global scope for
550f0e6a 4041 the case that `static' gets defined away.
d2906bf8 4042
73df2b1e
KH
40432001-01-26 Kenichi Handa <handa@etl.go.jp>
4044
4045 * coding.c (decode_coding): Set a flag for inhibiting
4046 inconsistent eol.
4047 (code_convert_region): Always set saved_coding_symbol.
4048 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 4049 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 4050
6613cfc4
GM
40512001-01-25 Gerd Moellmann <gerd@gnu.org>
4052
c5e6e06b
GM
4053 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4054 XClearArea.
4055
4056 * xterm.c (x_after_update_window_line): Don't clear if frame's
4057 internal border width is zero.
4058 (x_clear_area): New function.
4059 (x_after_update_window_line, x_clear_end_of_line)
4060 (x_scroll_bar_create, x_scroll_bar_set_handle)
4061 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4062 instead of XClearArea.
4063
4064 * xterm.h (x_clear_area): Add prototype.
4065
6613cfc4
GM
4066 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4067 which doesn't seem necessary anymore with Lesstif 0.92.
4068
650cc6cc
DL
40692001-01-25 Dave Love <fx@gnu.org>
4070
34ac3367
DL
4071 * puresize.h (BASE_PURESIZE): Up to 720000.
4072
650cc6cc
DL
4073 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4074
5e37dc22
GM
40752001-01-25 Gerd Moellmann <gerd@gnu.org>
4076
e1e441f9
GM
4077 * xdisp.c (echo_area_display): Don't call redisplay_internal
4078 when Emacs is shutting down. We can't run hooks etc. that
4079 would be necessary to do a redisplay.
4080
5e37dc22
GM
4081 * lread.c (read_integer): Use type EMACS_INT instead of int.
4082
0fb94c7f
EZ
40832001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4084
4085 * ccl.c (ccl_driver): Fix last change.
4086
e3778624
KH
40872001-01-25 Kenichi Handa <handa@etl.go.jp>
4088
4089 * ccl.h (sturct ccl_program): New member suppress_error.
4090
bb264518 4091 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
4092 insert error message to the output.
4093 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4094
4095 * coding.h (struct coding_system): New member suppress_error.
4096
4097 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4098 (Fset_terminal_coding_system_internal): Set the member
4099 suppress_error to 1.
4100 (Fset_safe_terminal_coding_system_internal): Likewise.
4101
245ed2b1
SM
41022001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4103
4104 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4105 as if it was a `charset'.
4106
f9aaedb6
GM
41072001-01-24 Gerd Moellmann <gerd@gnu.org>
4108
4109 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4110 value in where_is_cache; the next lookup in the cache returns
4111 something bogus if we do.
4112
c3902c3e
EZ
41132001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4114
4115 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4116 if HAVE_WINDOW_SYSTEM isn't defined.
4117
3497f73e
GM
41182001-01-24 Gerd Moellmann <gerd@gnu.org>
4119
e7e41584
GM
4120 * fns.c (sweep_weak_table): Fix code taking items out of
4121 the hash collision chain. Some cleanup.
4122
3497f73e
GM
4123 * xterm.c (x_new_font): Don't change a tooltip's size.
4124
4125 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4126 background color by specifying a color for the default font
4127 in .Xdefaults.
4128
3d48e687
KH
41292001-01-24 Kenichi Handa <handa@etl.go.jp>
4130
96531b20
KH
4131 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4132 a workaround for SunOS 4's cc.
4133 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4134 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4135 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4136 statement.
3d48e687 4137
a30629d2
GM
41382001-01-23 Gerd Moellmann <gerd@gnu.org>
4139
4140 * xterm.c (x_set_window_size_1): New function extracted from
4141 x_set_window_size.
4142 (x_set_window_size): Use it.
4143 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4144 doesn't have a widget, like tooltips.
4145
5a43decf
EZ
41462001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4147
52283633 4148 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 4149
b0e98867
KH
41502001-01-23 Kenichi Handa <handa@etl.go.jp>
4151
4152 * fns.c (Fset_char_table_default): Fix to make sub char-table
4153 correctly.
4154
50606b4c
GM
41552001-01-22 Gerd Moellmann <gerd@gnu.org>
4156
cb2ddc53 4157 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
4158 a desired tool bar string, even if there are no tool bar items.
4159
57c28064
GM
4160 * xdisp.c (Ftool_bar_lines_needed): New function.
4161 (syms_of_xdisp): Defsubr it.
4162
50606b4c
GM
4163 * editfns.c (Fformat): Don't extend text properties from arguments
4164 to padding chars in the result.
4165
2f169c38
EZ
41662001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4167
4168 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4169
0f32f023
AI
41702001-01-20 Andrew Innes <andrewi@gnu.org>
4171
52283633 4172 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
4173 (w32_initialize): Don't set term hooks that aren't actually needed
4174 in windowed mode.
4175
4176 * xfaces.c (realize_default_face):
4177 (realize_face):
4178 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4179
4180 * xdisp.c (handle_single_display_prop): Remove references to
4181 FRAME_W32_CONSOLE_P.
4182
52283633 4183 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
4184
4185 * frame.h (output_method): Remove output_w32_console method.
4186 (FRAME_W32_CONSOLE_P): Remove macro.
4187
4188 * frame.c (Qw32_console): Remove variable.
4189 (Fframep): Remove references to it.
4190 (syms_of_frame): Ditto.
4191 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4192
4193 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4194 redefinition.
4195
7173eada
KH
41962001-01-20 Kenichi Handa <handa@etl.go.jp>
4197
4198 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4199
755b45ce
AI
42002001-01-19 Andrew Innes <andrewi@gnu.org>
4201
4202 * w32.c (init_environment): Add a version-independent site-lisp
4203 directory to EMACSLOADPATH, after the version dependent one.
4204
0a949811
GM
42052001-01-19 Gerd Moellmann <gerd@gnu.org>
4206
8501998a
GM
4207 * editfns.c (Fbuffer_substring): Doc fix.
4208
52283633
SM
4209 * xdisp.c (message_dolog, message2, message2_nolog):
4210 Rename parameter LEN to NBYTES.
0a949811 4211
e6ebcbbe
KH
42122001-01-19 Kenichi Handa <handa@etl.go.jp>
4213
200ecca2
KH
4214 * charset.c (strwidth): Use c_string_width.
4215 (c_string_width): New function.
4216 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
4217 Caller changed.
4218
4219 * charset.h (c_string_width, lisp_string_width): Extern them.
4220
52283633 4221 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 4222
e6ebcbbe
KH
4223 * indent.c (check_composition): Check validity of composition.
4224
200ecca2
KH
4225 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4226 characters by calling c_string_width.
4227 (x_consider_frame_title): Get byte length of frame tile string
4228 correctly.
4229 (display_mode_element): Pay attention to width of non-ASCII
4230 characters by calling strwidth.
4231
8692ca92
GM
42322001-01-18 Gerd Moellmann <gerd@gnu.org>
4233
8962e303
GM
4234 * xfns.c (Qcancel_timer): New variable.
4235 (syms_of_xfns): Initialize and staticpro it.
4236 (Fx_hide_tip, Fx_show_tip): Use it.
4237 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4238 the timer.
4239 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4240
91523be9
GM
4241 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4242
4243 * window.h (WINDOW_LIVE_P): New macro.
4244
b0b7ed0e
GM
4245 * window.c (window_size_fixed): New variable.
4246 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4247 the doc string.
4248
06bccf8e
GM
4249 * eval.c (specbind): If binding a per-buffer variable which
4250 doesn't have a buffer-local value in the current buffer, change
4251 the global value by changing the value of the symbol bound in all
4252 buffers not having their own value, to make it consistent with
4253 what happens with other buffer-local variables.
4254
8692ca92
GM
4255 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4256
4257 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4258 when searching for a newline.
4259
bb3a3b50
KH
42602001-01-18 Kenichi Handa <handa@etl.go.jp>
4261
4262 * xdisp.c (display_string): Fix previous change.
4263
c2cc16fa
JR
42642001-01-18 Jason Rumney <jasonr@gnu.org>
4265
4266 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4267 GLYPH_DEBUG is defined.
4268 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4269 true for images with `:ascent 100'.
4270 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4271 meantime, use face MOUSE_FACE_ID.
4272 If first glyph isn't a character glyph, use the ASCII NUL
4273 character to determine the face.
4274 (expose_area): Do not treat left margin specially.
4275 (note_mode_line_highlight): If no local_map, check global keymap.
4276 (note_mouse_highlight): Initialize overlay.
52283633 4277 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
4278 (show_scroll_bars): Remove unused function.
4279 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4280 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4281 Clip to row.
52283633 4282 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
4283 (x_free_frame_resources): Unload relief colors.
4284
9c11f79e
GM
42852001-01-17 Gerd Moellmann <gerd@gnu.org>
4286
3aec8722 4287 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
4288 get_next_display_element when the newline is already found.
4289 This may change the iterator's position, when its current position is
3aec8722
GM
4290 equal to the iterator's stop_charpos.
4291
f3ffc2c3
GM
4292 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4293 zero, use this method only at the end of a line.
4294
52283633 4295 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
4296 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4297 if SCALABLE_FONTS_P is set.
52283633 4298
d26d6fd9
GM
4299 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4300 so that scalable fonts are included.
4301
9c11f79e
GM
4302 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4303 In the cache, use a key containing the information if scalable
4304 fonts are included.
4305 (x_load_font): Adapt to change of keys in the font cache.
4306
43072001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 4308
d26d6fd9
GM
4309 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4310 XListFonts to take advantage of font caching.
4311
9c11f79e
GM
4312 * xterm.c (x_list_fonts): Ensure caching font information when
4313 called for a null frame, which is the case frequently when Emacs
4314 starts.
4315
51446987
GM
43162001-01-17 Gerd Moellmann <gerd@gnu.org>
4317
f864120f
GM
4318 * xfns.c (QCconversion): Replaces QCalgorithm.
4319
4320 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4321
4322 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4323 of :algorithm.
52283633 4324
e37d1417
GM
4325 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4326 not everything could be displayed.
4327
51446987
GM
4328 * line.h, x-list-font.c: Files removed because unused.
4329
9ad4f3e5
AI
43302001-01-17 Andrew Innes <andrewi@gnu.org>
4331
4332 * dired.c (directory_files_internal): Convert result from readdir
4333 to a unibyte string initially, to avoid possible misinterpretation
4334 of some bytes as the internal form of Emacs characters.
4335
2eda09b5
KH
43362001-01-17 Kenichi Handa <handa@etl.go.jp>
4337
4338 * fns.c (concat): Be sure to avoid putting the same `composition'
4339 property on the adjacent regions.
4340
826f3788
GM
43412001-01-16 Gerd Moellmann <gerd@gnu.org>
4342
52283633 4343 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
4344 (Fscroll_right, Fscroll_left): Set it here instead, if called
4345 interactively.
4346
d57b83b3
GM
4347 * buffer.c (Fset_buffer_modified_p): Set buffer's
4348 prevent_redisplay_optimizations_p flag.
4349
826f3788 4350 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
4351 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4352 with additional arg.
4353
4354 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4355 Change prototype.
826f3788 4356
826f3788
GM
4357 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4358 FROM_WHERE, for debugging.
4359
261d788b
KH
43602001-01-16 Kenichi Handa <handa@etl.go.jp>
4361
4362 * ccl.c (Fregister_ccl_program): Handle the return value of
4363 resolve_symbol_ccl_program correctly.
52283633 4364 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 4365
bccee4f2
GM
43662001-01-15 Gerd Moellmann <gerd@gnu.org>
4367
e4ded23c
GM
4368 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4369 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
4370
4371 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
4372 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
4373 the display; we didn't open it.
4374
bccee4f2
GM
4375 * dispnew.c (save_or_restore_current_matrices): Function removed.
4376 (save_current_matrix, restore_current_matrix): New functions.
4377 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
4378 restore the frame's current matrix. Due to the glyph pointer
4379 setup done in adjust_glyph_matrix, there is no easy way to make
4380 saving the current matrix in the desired matrix generally correct,
4381 so don't try it.
4382
ebeccffa
KH
43832001-01-15 Kenichi Handa <handa@etl.go.jp>
4384
4385 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
4386 truncation glyphs.
4387 (display_line): Optimize for wide characters.
e4ded23c 4388 (display_string): Don't try to display a multi-column character
ebeccffa
KH
4389 partially. On ttys, produce more than one truncation glyph for
4390 multi-column characters that don't fit on the line.
4391
64388126
KH
43922001-01-13 Kenichi Handa <handa@etl.go.jp>
4393
52283633
SM
4394 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
4395 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 4396
8edb0a6f
JR
43972001-01-13 Jason Rumney <jasonr@gnu.org>
4398
4399 * w32fns.c (Fimage_size, image_ascent, lookup_image)
4400 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
4401 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4402 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 4403
52283633
SM
4404 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
4405 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
4406 (x_draw_image_glyph_string): Adapt to change of image margins.
4407
4408 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
4409 variables.
4410
4411 * w32bdf.c (search_file_line, get_cached_font_char)
4412 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
4413
4414 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
4415
4416 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
4417 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
4418 (Fw32_send_sys_command): Remove unused variables.
4419 (w32_msg_pump): Add parentheses.
4420
4421 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
4422 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
4423 Add parentheses.
4424
4956d1ef
GM
44252001-01-12 Gerd Moellmann <gerd@gnu.org>
4426
b30623be
GM
4427 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
4428 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
4429 being a pair of margins.
4430 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
4431 to DEFVAR_LISP. Extend doc.
4432
4433 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
4434 margins.
4435 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
4436 pair of integers `(X . Y)', use X for the horizontal and Y for the
4437 vertical margin.
4438 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
4439 (parse_image_spec): Check it.
52283633
SM
4440 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4441 (tiff_format, gif_format, gs_format):
4442 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 4443
52283633
SM
4444 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4445 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
4446 (x_draw_image_glyph_string): Adapt to the change of image margins.
4447
4448 * dispextern.h (struct image): Replace member `margin' with
4449 `hmargin' and `vmargin'.
4450
4554cc79
GM
4451 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
4452 and GLYPHS.
4453
4454 * dispnew.c (update_text_area): Put code which decrements the
4455 stop position when the row's face extends to the end of the
3bffc665 4456 line in #if 0.
4554cc79 4457
3cccce8d
GM
4458 * xfns.c (x_set_mouse_color): Fix color allocation.
4459
4956d1ef
GM
4460 * keyboard.c: Call get_local_map with new argument list.
4461
4462 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
4463
4464 * intervals.h (enum map_property): Removed.
4465 (get_local_map): Change prototype.
4466
4467 * keymap.c: Call get_local_map with new argument list.
4468 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
4469
2c2ff7f2
GM
44702001-01-11 Gerd Moellmann <gerd@gnu.org>
4471
a23887b9
GM
4472 * xdisp.c (build_desired_tool_bar_string): Correct the computation
4473 of the size needed for the tool bar string. For the last image,
4474 use a `display' property that reaches to the end of the string.
4475
a7ee2d2e
GM
4476 * xselect.c (selection_request_dpyinfo): New variable.
4477 (x_handle_selection_request): Set it.
4478 (x_selection_request_lisp_error): Don't call
4479 x_decline_selection_request if selection request's display has
4480 been closed.
4481
52283633
SM
4482 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
4483 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 4484
457b792c
GM
44852001-01-10 Dave Love <fx@gnu.org>
4486
4487 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
4488 ${SOME_MACHINE_LISP}, not ${lisp}.
4489
c1efd260
GM
44902001-01-10 Gerd Moellmann <gerd@gnu.org>
4491
52283633
SM
4492 * xdisp.c (display_line): On ttys, produce more than one truncation
4493 glyph for multi-column characters that don't fit on the line.
a98b5ed9 4494
ac95a621
GM
4495 * xselect.c (x_reply_selection_request): Add a comment.
4496
c1efd260
GM
4497 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
4498 XkbGetNames instead of XkbGetKeyboard.
4499
1bfb1345
DL
45002001-01-10 Dave Love <fx@gnu.org>
4501
4502 * sysdep.c (random): Revert the declaration.
4503
38119822
GM
45042001-01-09 Gerd Moellmann <gerd@gnu.org>
4505
52283633
SM
4506 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
4507 Call function string_bytes.
35f464a7
GM
4508 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
4509
4510 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
4511 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
4512 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
4513 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
4514 the current sblock.
4515 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
4516 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
4517 after sweeping strings, and at the end.
4518 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
4519
38119822
GM
4520 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
4521 ensure that pop_message is called.
4522
4523 * keyboard.c (Fexecute_extended_command): Use a
4524 record_unwind_protect to ensure that pop_message is called.
4525
4526 * lisp.h (push_message_unwind): Add prototype.
4527
4528 * xdisp.c (push_message_unwind): New function.
4529
4530 * fileio.c (do_auto_save_unwind): Do the pop_message here
4531 instead of in Fdo_auto_save.
4532 (Fdo_auto_save): Don't call pop_message.
4533
f47a9ec4
KR
45342001-01-08 Ken Raeburn <raeburn@gnu.org>
4535
4536 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
4537 in inner block.
4538
a758f97d
GM
45392001-01-08 Gerd Moellmann <gerd@gnu.org>
4540
6d0afc03
GM
4541 * window.c (window_scroll_pixel_based): Adjust glyph matrices
4542 when increasing window's vscroll.
4543
a758f97d
GM
4544 * macros.c (Qkbd_macro_termination_hook): New variable.
4545 (syms_of_macros): Initialize and staticpro it.
4546 (pop_kbd_macro): Run kbd-macro-termination-hook.
4547
4548 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
4549
1bfb1345 45502001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
4551
4552 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
4553 arglist, for documentation's sake.
4554
0dac6924
AI
45552001-01-06 Andrew Innes <andrewi@gnu.org>
4556
4557 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4558 of *.pdb.
4559
8182406a
AI
45602001-01-05 Andrew Innes <andrewi@gnu.org>
4561
4562 * term.c (update_end): Don't check updating_frame; for some reason
4563 this can be 0 sometimes, such as after dismissing a popup menu,
4564 and isn't necessary given the explicit frame argument.
4565
3828218c
GM
45662001-01-05 Gerd Moellmann <gerd@gnu.org>
4567
4568 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
4569 on some systems, and an unsigned long on others, like FreeBSD 4.1.
4570
2f5ded21
GM
45712001-01-04 Gerd Moellmann <gerd@gnu.org>
4572
52283633 4573 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
4574
4575 * xfns.c (x_create_tip_frame): Preserve the value of
4576 face_change_count around the creation of the tip frame.
52283633 4577
2f5ded21
GM
4578 * xfns.c (last_show_tip_args): New variable.
4579 (compute_tip_xy): New function.
4580 (Fx_show_tip): Reuse an existing tip frame, if possible.
4581 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
4582
dfad65fa
DL
45832001-01-04 Dave Love <fx@gnu.org>
4584
64d4ec0f
DL
4585 * editfns.c (Fformat): Doc fix.
4586
dfad65fa
DL
4587 * systime.h (set_file_times): Prototype.
4588
4589 * widget.h (EmacsFrameSetCharSize_): Prototype.
4590
4591 * sysdep.c (random, srandom): Declare explicitly.
4592
4593 * dispextern.h (move_it_vertically_backward): Declare.
4594
85fe3b5e
GM
45952001-01-04 Gerd Moellmann <gerd@gnu.org>
4596
0f2ac578
GM
4597 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
4598 like in Fx_create_frame.
4599
482cca61
GM
4600 * xfaces.c (set_font_frame_param): Don't do anything for
4601 non-graphical frames.
4602
85fe3b5e
GM
4603 * window.c (Fdelete_other_windows): Set window's window_end_valid
4604 to nil when changing the window's start. Don't change the
4605 window's start when its top position hasn't changed. If we do,
4606 this will set the window's optional_new_start, which act's like a
4607 force_start during redisplay with C-x 1 M-> under particular
4608 circumstances (see report from Per Starback to emacs-pretest-bug
4609 from 2000-12-13.).
4610
3e99d3b4
GM
46112001-01-03 Gerd Moellmann <gerd@gnu.org>
4612
a77dc1ec
GM
4613 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4614 short cut at the start of the function. Add an assertion.
4615 (reseat_at_next_visible_line_start): Add an assertion.
4616
2f3cad6c
GM
4617 * window.c (Frecenter): When changing the window start, set the
4618 window's window_end_valid to nil.
4619 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
4620
4621 * dispextern.h (move_it_past_eol): Add prototype.
4622
4623 * xdisp.c (move_it_past_eol): New function.
4624
3e99d3b4
GM
4625 * window.c (Fwindow_end): Doc fix.
4626
46272001-01-03 Dave Love <fx@gnu.org>
4628
52283633 4629 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 4630
bafb434c
GM
46312001-01-03 Gerd Moellmann <gerd@gnu.org>
4632
4633 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
4634 the enabled_p flag of the glyph row at window_end_vpos to 0.
4635 (handle_single_display_prop): Fix last change.
4636
5297fb00
RS
46372001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4638
4639 * window.c (Frecenter): Doc fix.
4640
13d6a61c
AI
46412001-01-02 Andrew Innes <andrewi@gnu.org>
4642
4643 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
4644
4645 * frame.h (output_method): Add output_w32_console method.
4646 (FRAME_W32_CONSOLE_P): New macro.
4647
4648 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
4649 use output_w32_console method.
4650 (Qw32_console): New Lisp_Object.
4651 (Fframep): Return it.
4652 (syms_of_frame): Init it.
52283633 4653 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
4654
4655 * xfaces.c (realize_default_face): Set face foreground and
4656 background to unspecified for w32_console frames.
4657 (realize_face): Realize face cache for w32_console frames.
4658 (realize_tty_face): Accept w32_console frames.
4659
52283633 4660 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
4661 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
4662 necessary, even if running interactively.
4663
4664 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
4665 w32_console frames.
4666
52283633
SM
4667 * w32term.c (x_update_begin):
4668 (x_update_end):
4669 (x_clear_frame):
4670 (x_ins_del_lines):
4671 (x_change_line_highlight):
4672 (x_delete_glyphs):
4673 (w32_ring_bell):
4674 (x_update_begin):
4675 (x_update_end):
4676 (w32_reassert_line_highlight):
4677 (w32_frame_rehighlight):
13d6a61c
AI
4678 (w32_frame_raise_lower): Do nothing if not w32 frame.
4679
4680 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
4681
4682 * w32fns.c (Fx_display_color_cells): Determine correct value, when
4683 system doesn't tell us directly.
4684 (Fx_display_visual_class): Implement properly.
4685
d6bb0c0d
GM
46862001-01-02 Gerd Moellmann <gerd@gnu.org>
4687
4688 * window.c (Frecenter): Handle centering in graphical frames
4689 specially. Centering on the basis of line counts doesn't work
4690 reliably with variable-height lines.
52283633 4691
315f5865
EZ
46922001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4693
4694 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
4695 and al[].
4696
52283633 4697 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
4698 (update_compositions): Remove unused variable `hook'.
4699
4700 * intervals.c (get_local_map): Remove unused variable `tem'.
4701
4702 * doprnt.c (doprnt1): Remove unused variable `size'.
4703
4704 * fns.c (Flength): Remove unused variable `tail'.
4705 (Fdelete): Remove unused variable `size'.
4706
4707 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
4708 and `gcpro2'.
4709
52283633 4710 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
4711
4712 * data.c (find_symbol_value): Remove extra 3rd argument in the
4713 call to swap_in_symval_forwarding.
4714
52283633 4715 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
4716
4717 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
4718 (trivial_regexp_p): Remove unused variable `c'.
4719 (boyer_moore): Remove unused variable `k'.
4720
4721 * indent.c (current_column): Remove unused variable `stopchar'.
4722 (Fcompute_motion): Remove unused variable `contin'.
4723
4724 * casefiddle.c (casify_object): Remove unused variable `tolen'.
4725
4726 * dired.c (directory_files_internal): Fix a typo in a comment.
4727 Remove an unused variable `handler'.
52283633 4728 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
4729 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
4730 on BSD4_2.
4731
52283633 4732 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
4733
4734 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
4735 and `buf'.
4736 (Fmarker_insertion_type): Remove unused variable `buf'.
4737
4738 * insdel.c (make_gap): Remove unused variable `result'.
4739
52283633 4740 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
4741 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
4742 (menu_bar_items): Remove unused function-scope variable `tem'.
4743
4744 * fontset.c (fontset_ref): Remove unused variable `i'.
4745 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 4746 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
4747 (make_fontset_for_ascii_face): Remove unused variable `name'.
4748 (fs_load_font): Remove unused variable `font_idx'.
52283633 4749 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
4750 (list_fontsets): Remove unused variable `tail'.
4751 (Fnew_fontset): Remove unused variables `family' and `registry'.
4752 (accumulate_font_info): Remove unused variable `tmp'.
4753 (Ffontset_font): Remove unused variable `id'.
4754 (syms_of_fontset): Remove unused variable `i'.
4755
4756 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
4757 to x_term_init.
4758 (lookup_image): Remove unused variable `file'.
4759 (xbm_load): Remove unused variables `bitmap_data', `height', and
4760 `width'. Remove function-local variable `i', leave the
4761 block-local one.
4762 (gif_load): Remove unused variable `inc'.
4763
52283633 4764 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
4765 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
4766 leave only the one in the inner block.
4767
4768 * xfaces.c (face_fontset, realize_default_face): Remove unused
4769 variable `fontset'.
4770 (face_at_buffer_position): Remove unused variable `multibyte_p'.
4771
4772 * term.c (encode_terminal_code): Remove unused variable `c'.
4773
4774 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
4775 char *' instead of `char *'.
4776
4777 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 4778 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
4779 (Fchar_category_set): Remove unused variables `val', `charset',
4780 `c1' and `c2'.
4781
52283633
SM
4782 * coding.c (detect_coding_iso2022, setup_coding_system):
4783 Remove unused variable `i'.
315f5865
EZ
4784 (detect_coding_mask): Remove unused variable `idx'.
4785 (detect_coding): Remove unused variable `i'.
4786 (ccl_coding_driver): Remove unused variable `result'.
4787 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 4788 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
4789 (encode_coding_string): Remove unused variables `gcpro1' and
4790 `saved_coding_symbol'.
4791 (Ffind_coding_systems_region_internal): Remove function-local
4792 variable args[], leave only the block-local one.
4793 (code_convert_region1): Remove unused variable `len'.
4794
4795 * charset.c (char_printable_p): Remove unused variable `chars'.
4796 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
4797 (str_to_multibyte): Remove unused variable `c'.
4798
4799 * window.c (size_window): Remove block-local variable `min_size'.
4800
4801 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
4802 `header_line_height'.
4803 (append_space, extend_face_to_end_of_line): Declare `saved_what'
4804 enum display_element_type.
4805
1a8a9daf
GM
48062001-01-02 Gerd Moellmann <gerd@gnu.org>
4807
6dde6abc 4808 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
4809 statements that call X. Save away the error message in a local copy.
4810
1883b2c6
GM
4811 * xterm.c (x_connection_closed): Set handling_signal to 0 at
4812 the start.
4813
a13be207
GM
4814 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
4815 in or at the start of invisible text.
4816
1a8a9daf
GM
4817 * dispnew.c (update_window): Don't check_current_matrix_flags.
4818
3608c0f9
JR
48192001-01-01 Jason Rumney <jasonr@gnu.org>
4820
4821 * w32fns.c (x_figure_window_size): Do not allow new_height and
4822 new_width of frame to override specified values.
4823
abb1acc4
KH
48242000-12-30 Kenichi Handa <handa@etl.go.jp>
4825
52283633 4826 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 4827
762a68ec
GM
48282000-12-29 Gerd Moellmann <gerd@gnu.org>
4829
52283633 4830 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
4831 (update_window) [GLYPH_DEBUG]: Call it.
4832 (scrolling_window): Prevent including current rows which are below
4833 what's displayed in the window.
4834
4835 * xdisp.c (try_window_reusing_current_matrix)
4836 <new start <= old start>: Disable rows in the current matrix
4837 which are below the window after scrolling.
52283633 4838
762a68ec
GM
4839 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
4840 is zero. It's not worth the complexity.
4841 (invisible_text_between_p): Put in #if 0 because unused.
4842
2d5912c1
GM
48432000-12-28 Gerd Moellmann <gerd@gnu.org>
4844
46f6a258
GM
4845 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
4846 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
4847
89f93679
GM
4848 * keyboard.c (echo_char): If C is an integer, always call
4849 push_key_description. Former code could signal an invalid
4850 character error.
4851
4852 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
4853 If set, print multibyte text.
4854 (Fsingle_key_description): Call push_key_description with
4855 FORCE_MULTIBYTE set.
4856 (describe_buffer_bindings): Likewise.
4857
4858 * lisp.h (push_key_description): Add prototype.
4859
c06017fb
GM
4860 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
4861 around the call to redisplay_internal.
4862
f1d2ce7f
GM
4863 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4864
2d5912c1
GM
4865 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
4866
9371f831
KH
48672000-12-28 Kenichi Handa <handa@etl.go.jp>
4868
4869 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
4870 (ccl_driver): New local variable `extra_bytes'.
4871
4872 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
4873
52283633
SM
4874 * coding.c (setup_coding_system):
4875 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
4876 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
4877
0c80628a
KH
48782000-12-28 Kenichi Handa <handa@etl.go.jp>
4879
4880 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
4881 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
4882 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
4883 (decode_composition_emacs_mule): New function.
4884 (decode_coding_emacs_mule): Decode composition sequence by calling
4885 decode_composition_emacs_mule.
4886 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
4887 (encode_coding_emacs_mule): Changed from macro to function.
4888 If a text contains compositions, encode them correctly.
0c80628a
KH
4889 (setup_coding_system): Set coding->commong_flags for emacs-mule so
4890 that decoding and encoding are required.
4891
3e32cc27
GM
48922000-12-27 Gerd Moellmann <gerd@gnu.org>
4893
5e25feee
GM
4894 * xfaces.c (PT_PER_INCH): New macro.
4895 (xlfd_point_size): Compute real point size from font's pixel size.
4896 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
4897 instead of 72.
4898
892d8fcd
GM
4899 * .gdbinit: Comment out the line pointing to the Lesstif source
4900 directory.
4901
12c8b416
GM
4902 * window.c (Frecenter): Use displayed_window_lines instead
4903 of window_internal_height.
4904
6061fbf0
GM
4905 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4906 instead of x-toolkit-scroll-bars-p.
4907 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
4908
4909 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
4910 instead of x-toolkit-scroll-bars-p.
4911 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 4912
3e32cc27
GM
4913 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
4914 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
4915 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
4916 New variables.
4917 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
4918 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
4919 (build_frame_matrix_from_leaf_window): Remove unused code.
4920 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
4921 redisplay history.
4922 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
4923 (update_window) [GLYPH_DEBUG]: Likewise.
4924 (syms_of_display): Defsubr dump-redisplay-history.
4925
31798cfe
GM
49262000-12-23 Gerd Moellmann <gerd@gnu.org>
4927
f717c2ba
GM
4928 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
4929 the end of the prompt. Set echo_after_prompt to the offset
4930 of echoptr in echobuf.
4931
aeb2b8fc
GM
4932 * xdisp.c (init_from_display_pos): Pop until the iterator's
4933 stack is empty; there may be frames for stretch or images
4934 on the stack.
4935
31798cfe
GM
4936 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
4937 (save_or_restore_current_matrix): New function for the same
4938 purpose, but more efficient.
4939 (adjust_frame_glyphs_for_frame_redisplay): Use it.
4940
f8156156
EZ
49412000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
4942
4943 * xdisp.c (syms_of_xdisp): Fix last change.
4944
bdd6d4e8
GM
49452000-12-23 Gerd Moellmann <gerd@gnu.org>
4946
4947 * xdisp.c (syms_of_xdisp): Doc fix.
4948
4949 * xdisp.c (redisplay_window): Remove label restore_buffers;
4950 use finish_scroll_bars instead to make sure that scroll bars
4951 are redeemed. If we don't do this, flickering can result from
4952 scroll bars being destroyed and recreated.
4953
9436cdf9
JR
49542000-12-22 Jason Rumney <jasonr@gnu.org>
4955
4956 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
4957 in the wrong colors when the foreground is not black.
4958 (expose_window): Don't redraw the window that's currently being
4959 updated.
4960
951f9df5
GM
49612000-12-22 Gerd Moellmann <gerd@gnu.org>
4962
856ff7a7
GM
4963 * window.c (size_window): When setting the window's too_small_ok
4964 flag, compare old size with minimum size depending on WIDTH_P,
4965 don't compare with window_min_width.
52283633 4966
951f9df5
GM
4967 * window.c (delete_window): Simplify somewhat.
4968 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
4969 freeing window matrices. The flag windows_or_buffers_changed is
4970 set, so the next redisplay will consider all windows; this should
4971 suffice.
4972
886bc933
KH
49732000-12-22 Kenichi Handa <handa@etl.go.jp>
4974
4975 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4976
4977 * ccl.h (struct ccl_program): New member cr_consumed.
4978
4979 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4980 (CCL_READ_CHAR): Handle EOL conversion here.
4981 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4982
177f4e88
GM
49832000-12-21 Gerd Moellmann <gerd@gnu.org>
4984
52283633 4985 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
4986
4987 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4988 otherwise tabs of different size compare equal.
4989
4990 * callint.c (Fcall_interactively): Prevent a compiler warning.
4991
4992 * print.c (print_unwind): Return nil.
4993 (PRINTDECLARE): Initialize all local variables.
4994 (print_preprocess): Add a default case.
4995
8e15274f
GM
4996 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4997
4998 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4999
52283633 5000 * window.c (delete_window, Fsplit_window)
177f4e88
GM
5001 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5002
5003 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5004
5005 * dispnew.c (ensure_frame_matrix): Removed.
5006 (save_frame_matrix, restore_frame_matrix): New functions.
5007 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5008
5009 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5010 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5011
99012074
AI
50122000-12-21 Andrew Innes <andrewi@gnu.org>
5013
5014 * w32term.c (x_update_begin): Regenerate the palette here, rather
5015 than for each window.
5016
5017 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5018 palette is NULL, since this corrupts memory! Also get
5019 display_info reference from frame.
5020
29ef7d2d
JR
50212000-12-21 Jason Rumney <jasonr@gnu.org>
5022
5023 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5024
5025 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5026 to avoid returning without releasing it.
3e27fa1f 5027
3f9d67a6
KH
50282000-12-21 Kenichi Handa <handa@etl.go.jp>
5029
587fc3f9
KH
5030 * keymap.c (push_key_description): Don't convert eight-bit-control
5031 and eight-bit-graphic to multibyte character.
5032
3f9d67a6
KH
5033 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5034 generic character and CODE1 is nil, return the smallest character
5035 in CHARSET.
5036
774ba8c9
DL
50372000-12-20 Dave Love <fx@gnu.org>
5038
5039 * s/osf5-0.h (NSIG): Don't redefine.
5040
88416888
SM
50412000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5042
5043 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5044 excluding menu-bar and tool-bar.
5045 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5046 (menu_item_p): Remove.
5047 (where_is_internal_1): Don't ignore menu-items.
5048
a6426c6f
GM
50492000-12-20 Gerd Moellmann <gerd@gnu.org>
5050
03ff8aab
GM
5051 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5052 into account.
5053
5054 * window.c (make_window): Initialize window's min_hscroll.
5055 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5056 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5057 to zero.
5058 (struct saved_window): New member min_hscroll.
5059 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5060 (Fset_window_configuration): Set window's min_hscroll.
5061 (save_window_save): Save window's min_hscroll.
5062 (compare_window_configurations): Compare min_hscroll values.
5063
5064 * window.h (struct window): New member min_hscroll.
5065
5066 * keyboard.c (echo_prompt): Prevent a compiler warning.
5067
8de4aaf8
GM
5068 * xdisp.c (try_cursor_movement): Fix last change. The real
5069 condition is that PT is at the end of the row, and should
5070 be displayed at the start of the next row.
52283633 5071
3f7e3031
GM
5072 * xdisp.c (try_cursor_movement): If we end on a partially
5073 visible line, end we already decided to scroll, return -1.
5074
a6426c6f
GM
5075 * dispextern.h (ensure_frame_matrix): Add prototype.
5076
5077 * window.c (delete_window, Fsplit_window)
5078 (Fset_window_configuration): Call ensure_frame_matrix.
5079
52283633
SM
5080 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5081 New functions.
a6426c6f
GM
5082 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5083 completed, call fake_current_matrices instead of marking frame
5084 garbaged.
5085
57fa2774
JR
50862000-12-20 Jason Rumney <jasonr@gnu.org>
5087
5088 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5089
d925df90
EZ
50902000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5091
5092 * fns.c (Frequire): Doc fix.
5093
7b93a85b
GM
50942000-12-19 Gerd Moellmann <gerd@gnu.org>
5095
52283633 5096 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 5097
c74e645b
GM
5098 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5099 currently displaying a message.
5100
7b93a85b
GM
5101 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5102 xterm.h.
5103 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5104
90d97e64
AI
51052000-12-18 Andrew Innes <andrewi@gnu.org>
5106
5107 * w32.c (w32_strerror): New function.
5108
5109 * w32.h (w32_strerror): New extern.
5110
5111 * w32fns.c (Fw32_shell_execute): Use it.
5112
91c9e6ce
GM
51132000-12-18 Gerd Moellmann <gerd@gnu.org>
5114
5115 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5116
6f4745e2
EZ
51172000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5118
5119 * msdos.c (IT_set_face): Obey inverse_video.
5120
c9e088ce
KH
51212000-12-18 Kenichi Handa <handa@etl.go.jp>
5122
5123 * dired.c (directory_files_internal): Always return decoded filenames.
5124
c3695f5f
GM
51252000-12-18 Gerd Moellmann <gerd@gnu.org>
5126
52d8e4ff
GM
5127 * xterm.c (x_connection_closed): Prevent being called recursively
5128 because of an error condition in XtCloseDisplay.
52283633 5129
62be9979
GM
5130 * xdisp.c (init_iterator): If noninteractive, and the frame's
5131 face cache is null, make one.
5132
52283633 5133 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 5134
c3695f5f
GM
5135 * process.c (wait_reading_process_input): Check for pending
5136 input when running timers.
5137
78555fbe
EZ
51382000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5139
52283633 5140 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 5141
b2b36264
KH
51422000-12-18 Kenichi Handa <handa@etl.go.jp>
5143
5144 * process.c (read_process_output): Don't run a filter if the code
5145 decoder produces nothing but carryover.
5146
9c543fbf
AI
51472000-12-17 Andrew Innes <andrewi@gnu.org>
5148
5149 * w32.c (sys_rename): Only check errno against EEXIST, and not
5150 EACCES, when determining whether rename failed because the target
5151 exists. This was resulting in indefinite looping on Windows 9x if
5152 the source file was locked by another process.
5153
5154 * w32fns.c (Ffile_system_info): New function.
5155 (syms_of_w32fns): Defsubr it.
5156
10c2b5a8
GM
51572000-12-17 Gerd Moellmann <gerd@gnu.org>
5158
b0228ace
GM
5159 * window.c (coordinates_in_window): Fix computation for
5160 position on vertical line between mode lines.
5161
10c2b5a8
GM
5162 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5163 Don't alter tip_frame or tip_window.
5164 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5165 was deleted.
5166
c844a81a
GM
5167 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5168 Don't alter tip_frame or tip_window.
5169 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5170 was deleted.
5171
6c825f8e
EZ
51722000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5173
5174 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5175 be consistent with the doc string. Reported by NAKAJIMA Mikio
5176 <minakaji@osaka.email.ne.jp>.
5177
af4bb4c8
KH
51782000-12-16 Kenichi Handa <handa@etl.go.jp>
5179
5180 * xfaces.c (Vface_ignored_fonts): New variable.
5181 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5182 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5183
8062e53a
GM
51842000-12-15 Gerd Moellmann <gerd@gnu.org>
5185
e87b8809
GM
5186 * dispnew.c (update_window): Detect pending input every nth line
5187 updated, i.e. do it depending on real work done, and not on the
5188 vpos of the line.
5189
5190 * xterm.c (expose_window): Don't redraw the window that's
5191 currently being updated.
5192
a6768cc5
GM
5193 * window.c (Fset_window_point): Remove test for
5194 cursor_in_non_selected_windows.
5195
4ea7fdca
GM
5196 * lread.c (read1): Recognize end of file after `\\'.
5197
8062e53a
GM
5198 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5199 not unwind_create_frame.
5200
bb7959c1
GM
52012000-12-15 Dave Love <fx@gnu.org>
5202
5203 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5204 bcopy & al.
5205
5206 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5207
ced04c42
KH
52082000-12-15 Kenichi Handa <handa@etl.go.jp>
5209
c5443913
KH
5210 * coding.c (setup_coding_system): Clear all members of the struct
5211 coding_system at first.
bc137305
KH
5212 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
5213 argument.
5214 (code_convert_region): Don't override coding->src_multibyte and
5215 coding->dst_multibyte.
c5443913 5216
ced04c42
KH
5217 * fns.c (Fmd5): Docstring improved.
5218
c2d7f289
MB
52192000-12-15 Miles Bader <miles@gnu.org>
5220
5221 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5222 are actually marked as mode-lines; otherwise use
5223 estimate_mode_line_height.
5224
9d7d9263
GM
52252000-12-14 Gerd Moellmann <gerd@gnu.org>
5226
5227 * editfns.c (Fformat): Prevent a buffer overrun when the format
5228 specifies a precision.
5229
7cf0153a
EZ
52302000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5231
5232 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5233 argument is outside the range [2..3].
5234
1de0f662
AI
52352000-12-14 Andrew Innes <andrewi@gnu.org>
5236
5237 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5238 nothing to do. Bind inhibit-quit.
5239 (tip_frame): Make it a Lisp_Object.
5240 (x_create_tip_frame): Set tip_frame after it has been added to
5241 Vframe_list.
5242 (Fx_show_tip): Don't set tip_frame here.
52283633 5243 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
5244 (unwind_create_frame, unwind_create_tip_frame): New functions.
5245 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5246 while a frame is only partially constructed.
5247
5248 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5249 (x_free_frame_resources): New function.
5250 (x_destroy_window): Use it.
5251
02387dcc
GM
52522000-12-14 Gerd Moellmann <gerd@gnu.org>
5253
5254 * xfns.c (Fx_backspace_delete_keys_p): New function.
5255 (syms_of_xfns): Defsubr it.
5256
5257 * config.in (HAVE_XKBGETKEYBOARD): Add.
5258
0544ef49
KH
52592000-12-14 Kenichi Handa <handa@etl.go.jp>
5260
98d62747
KH
5261 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5262 Always store string in multibyte representation in echobuf.
5263 (echo_char): Always store string in multibyte representation in
5264 echobuf.
5265 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5266 (read_key_sequence): Adjusted for the change of echo_prompt.
5267
a20193cd
KH
5268 * fns.c (Fmd5): Docstring improved.
5269
191b83b6
KH
5270 * lisp.h (detect_coding_system): Prototype adjusted.
5271
0544ef49
KH
5272 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5273 (detect_coding_emacs_mule, detect_coding_iso2022,)
5274 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
5275 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5276 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
5277 (detect_coding_mask, detect_coding_system): New argument
5278 MULTIBYTEP. Callers changed.
1da1bb05
KH
5279 (decode_coding_string): Set coding->src_multibyte and
5280 coding->dst_multibyte before calling detect_coding and detect_eol.
5281 Update them after some coding system is detected.
52283633 5282
d5b3eb1b
SM
52832000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5284
5285 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5286
5287 * keyboard.c (menu_bar_items, tool_bar_items):
5288 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5289
f7f8bb69
GM
52902000-12-13 Gerd Moellmann <gerd@gnu.org>
5291
52283633 5292 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
5293 New variables.
5294 (unwind_create_frame, unwind_create_tip_frame): New functions.
5295 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5296 while a frame is only partially constructed.
5297
5298 * xterm.h (x_free_frame_resources): Declare.
5299
5300 * xterm.c (x_free_frame_resources): New function.
5301 (x_destroy_window): Use it.
5302
e10da507
GM
5303 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5304 don't interrupt the update for pending input initially, i.e.
5305 update at least some lines.
5306
5307 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 5308
d5b3eb1b 5309 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
5310
5311 * xfns.c (gray_bitmap_bits): Declare `char *'.
5312
90aa2856
GM
53132000-12-12 Gerd Moellmann <gerd@gnu.org>
5314
5315 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5316 lines start with a relief line.
5317
a308c9cd
DL
53182000-12-12 Dave Love <fx@gnu.org>
5319
5320 * window.c (Fdisplay_buffer): Doc fix.
5321 (Fwindow_list): Remove unused var.
5322
5323 * buffer.h (mmap_set_vars): Declare.
5324
5325 * window.h (Fset_window_point): Declare.
5326
d575011f
EZ
53272000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5328
bf6282d2 5329 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
5330 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5331 variable `area'. When looking for a row under (X,Y), give up if some
5332 of the previous rows is not enabled.
d575011f 5333
ecf4d726
GM
53342000-12-12 Gerd Moellmann <gerd@gnu.org>
5335
2ebf6139
GM
5336 * window.c (Fset_window_point): If displaying cursors in windows
5337 other than the selected window, make sure redisplay updates
5338 other windows to show the new value of point in the window.
5339
5340 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5341
bfdb75ee
GM
5342 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5343 the buffer is the sole visible buffer when in the mini-buffer.
5344
52283633 5345 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
5346 Bind `inhibit-read-only' to t.
5347 (unwind_with_echo_area_buffer): Use AREF.
5348
c0006262
GM
5349 * xfns.c (Fx_hide_tip): Simplified.
5350
52283633
SM
5351 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5352 instead of `1'.
e9a59cad 5353
ecf4d726
GM
5354 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5355
e5959a9a
GM
53562000-12-11 Gerd Moellmann <gerd@gnu.org>
5357
a3642e49 5358 * xfns.c (Fx_hide_tip): Fix last change.
52283633 5359
44b5a125
GM
5360 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
5361 nothing to do. Bind inhibit-quit.
5362 (tip_frame): Make it a Lisp_Object.
5363 (x_create_tip_frame): Set tip_frame after it has been added to
5364 Vframe_list.
5365 (Fx_show_tip): Don't set tip_frame here.
5366
5367 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5368
5369 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
5370 Lisp_Object.
5371
5372 * dispextern.h: Change external declaration of tip_frame.
5373
d990421f
GM
5374 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
5375 return an empty string.
5376
4db87380
GM
5377 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
5378 of the window's update_mode_line flag, since the former is set by
5379 force-mode-line-update, not the latter. This makes
5380 column-number-mode slightly faster.
52283633 5381
e5959a9a
GM
5382 * xdisp.c (try_window_id) <all changes above window start>:
5383 Set the cursor.
5384
169fe44e
GM
53852000-12-11 Paul Eggert <eggert@twinsun.com>
5386
5387 * config.in (HAVE_FTELLO): Remove.
5388 (HAVE_FSEEKO): Add.
5389 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
5390 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
5391 HAVE_FTELLO.
5392 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
5393 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 5394
59ec59ae
MB
53952000-12-11 Miles Bader <miles@gnu.org>
5396
5397 * window.c (displayed_window_lines): Don't round up when
5398 converting empty space at bottom to lines.
ff904dd6
MB
5399 Handle non-newline-terminated final lines properly.
5400 (Fwindow_text_height): New function (used to be in lisp).
5401 (syms_of_window): Initialize it.
59ec59ae 5402
42ebfa31
SM
54032000-12-09 Stefan Monnier <monnier@cs.yale.edu>
5404
5405 * syntax.c (scan_lists): Check that the right quote char has the
5406 right Sstring syntax when jumping over strings.
5407 (init_syntax_once): Use Smax rather than 13.
5408
5cdb3cf3
MB
54092000-12-09 Miles Bader <miles@gnu.org>
5410
5411 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
5412 with PARTIALLY, inverting the sense.
5413 (window_scroll_pixel_based): Scroll partially visible lines into
5414 place if we hit the beginning or end of the buffer.
a12167c5
MB
5415 (displayed_window_lines): Don't include partially visible lines.
5416 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 5417
842b2a94
GM
54182000-12-08 Gerd Moellmann <gerd@gnu.org>
5419
5420 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
5421
5422 * tparam.c (tparam1): Change the way buffers are reallocated to be
5423 portable and less obfuscated.
5424
5425 * termcap.c (tgetent): Change the way buffers are reallocated to
5426 be portable and less obfuscated.
5427
5428 * macros.c (store_kbd_macro_char): Change the way buffers are
5429 reallocated to be portable and less obfuscated.
5430
5431 * lread.c (read1): Change the way buffers are reallocated to be
5432 portable and less obfuscated.
5433
5434 * doc.c (Fsubstitute_command_keys): Change the way buffers
5435 are reallocated so that it is portable.
5436
137cad7c
EZ
54372000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
5438
5439 * dosfns.c (Ffile_system_info): New function.
5440 (syms_of_dosfns): Defsubr it.
5441
5c7f629c
SM
54422000-12-07 Stefan Monnier <monnier@cs.yale.edu>
5443
5444 * alloc.c (gc_sweep): Add comment.
5445
959e647d
GM
54462000-12-07 Gerd Moellmann <gerd@gnu.org>
5447
52283633
SM
5448 * sound.c (vox_configure): Change order of ioctls.
5449 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
5450 Ignore errors when changing volume.
5451 (vox_close): Don't reset the device.
5452
926b7e5e
GM
5453 * process.c (read_process_output): Make sure the process marker's
5454 position is valid when the process buffer is changed in
5455 after-change functions. W3 does that.
52283633 5456
959e647d
GM
5457 * xfns.c (x_free_gcs): New function.
5458
5459 * xterm.h (x_free_gcs): Add prototype.
5460
5461 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
5462 freeing GCs here.
5463
5464 * xterm.c (x_destroy_window): Call x_free_gcs so that
5465 resources of non-toolkit X windows will be freed.
5466
478ea067
AI
54672000-12-07 Andrew Innes <andrewi@gnu.org>
5468
5469 * w32fns.c (xlfd_charset_of_font): Fix last change.
5470
fbee3231
DL
54712000-12-06 Dave Love <fx@gnu.org>
5472
67292061
DL
5473 * md5.h (__P): Don't define -- it comes from config.h.
5474
fbee3231
DL
5475 * strftime.c: Change some #if foo to #ifdef foo.
5476
4ee87dbb
AI
54772000-12-06 Andrew Innes <andrewi@gnu.org>
5478
5479 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
5480
52283633 5481 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 5482 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 5483 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 5484
9765b4a4
GM
54852000-12-06 Gerd Moellmann <gerd@gnu.org>
5486
d285b373
GM
5487 * alloc.c (gc_sweep): Prevent symbols read during loadup
5488 from being freed.
5489
384333ee
GM
5490 * xdisp.c (underlying_face_id): New function.
5491 (handle_face_prop, face_before_or_after_it_pos): Use it
5492 to determine the face ``under'' a string. Let strings inherit
5493 the face of the buffer under them.
5494
5495 * xfaces.c (face_at_string_position): Update function comment.
52283633 5496
d4b72d58
GM
5497 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
5498 matrix if the window's left position has changed; we need to
5499 redraw it in this case.
5500
5501 * dispextern.h (struct glyph_matrix): Add member window_left_x.
5502
e1d05387
GM
5503 * window.c (coordinates_in_window): Check mouse on mode-line or
5504 header-line first.
5505
eb1b0c74
GM
5506 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
5507 advertized by the function documentation.
5508
d94d636f
GM
5509 * window.c (syms_of_window): Doc fix.
5510
3887b449
GM
5511 * sound.c (vox_configure): Set volume for left and right channel.
5512 (sound_cleanup): Return nil.
5513
efc8f57a
GM
5514 * xdisp.c (move_it_by_lines): Fix paren typo.
5515
9765b4a4
GM
5516 * xterm.c (x_load_font): Don't use the font's max_bounds for
5517 computing the height of the font. If max_bounds' ascent or
5518 descent are greater than the font's ascent or descent, this means
5519 glyphs overlap, which should be handled now by redisplay.
5520
6529ed87
GM
5521 * window.c (Veven_window_heights): New variable.
5522 (syms_of_window): DEFVAR_LISP it.
5523 (Fdisplay_buffer): Check Veven_window_heights before evening the
5524 window heights.
52283633 5525
0eb2ecde
MB
55262000-12-06 Miles Bader <miles@gnu.org>
5527
5528 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
5529 update `default-frame-alist' instead of setting no frame parameters.
5530
03d7a167
KH
55312000-12-06 Kenichi Handa <handa@etl.go.jp>
5532
5533 * composite.c (update_compositions): Fix typo (use the correct
5534 variable).
5535
5f8803c2
JR
55362000-12-05 Jason Rumney <jasonr@gnu.org>
5537
5538 * md5.h: Remove underscores from function declarations.
5539 (__attribute__, __alignof__) [!__GNUC__]: Define.
5540
5541 * md5.c: Delay include of md5.h until after namespace cleaning.
5542
c28a075b
JR
5543 * makefile.w32-in (fns.o): Depend on md5.h
5544 (md5.o): New target.
5545 (sunfns.o): Remove.
5546
5547 * makefile.nt: Likewise.
5548
ff3c7056
JR
55492000-12-05 Jason Rumney <jasonr@altavista.net>
5550
5551 * w32term.c (expose_area): Complete last change.
5552
0c21eeeb
KR
55532000-12-05 Ken Raeburn <raeburn@gnu.org>
5554
5555 * minibuf.c: Include intervals.h.
5556
f201d732
JR
55572000-12-05 Jason Rumney <jasonr@gnu.org>
5558
5559 * w32term.c (x_produce_glyphs): If a font for a component of
5560 a composition is not found, use 1 pixel dot ascent and 0 dot
5561 descent value to avoid displaying terribly tall empty boxes.
5562 (expose_area): Pass x-coordinate relative to the exposed
5563 area to x_draw_glyphs instead of a window-relative coordinate.
5564
21999ab9
GM
55652000-12-05 Gerd Moellmann <gerd@gnu.org>
5566
4d2036e4
GM
5567 * xdisp.c (next_element_from_ellipsis): Save face before selective
5568 display in saved_face_id, and set face_before_selective_p.
5569 (reseat_1): Reset face_before_selective_p.
5570 (append_space, extend_face_to_end_of_line): If iterator's
5571 face_before_selective_p is set, use the face from saved_face_id.
5572 (extend_face_to_end_of_line): For tty frames, make sure to
5573 use the right face id when producing spaces at the end of
5574 the line.
5575
5576 * dispextern.h (struct it): Add face_before_selective_p.
5577
52be17cc
GM
5578 * keyboard.c (record_char): Don't record identical help-echo
5579 events in recent_keys.
5580
8a4f36cc
GM
5581 * xterm.c [USE_X_TOOLKIT]: Close the display.
5582 (xim_close_dpy): Handle case that the display has been closed.
5583
57d6e381
GM
5584 * xterm.c (x_destroy_window): Reset the frame's X window after
5585 destroying it.
5586
21999ab9
GM
5587 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
5588 variable window_width.
5589 (line_draw_cost): Fix code skipping over spaces at the end of the
5590 line when must_write_spaces is not set.
5591 (scrolling_window): Fix code inserting runs in list of all runs.
5592
91372bb7
KH
55932000-12-05 Kenichi Handa <handa@etl.go.jp>
5594
5595 * coding.c (setup_coding_system): Be sure to initialize
5596 coding->category_idx.
5597
6c083b4c
GM
55982000-12-04 Gerd Moellmann <gerd@gnu.org>
5599
0c68ce6f 5600 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 5601
6452929e
GM
5602 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
5603 area to x_draw_glyphs instead of a window-relative coordinate.
5604
d7f31e22
GM
5605 * fileio.c (auto_save_error): Add parameter ERROR. Show the
5606 error in the message.
5607
ae18aa3b
GM
5608 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
5609 timer after having read a key. It's not good for code reading
5610 several keys in a loop, like an input method.
5611
caa15ef7
GM
5612 * fileio.c (Finsert_file_contents): When VISIT is t, don't
5613 record undo information for format-decode.
5614
5615 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
5616 current buffer is read-only, not if it isn't.
5617
6c083b4c
GM
5618 * keyboard.c (record_char): Record `help-echo' input events
5619 in recent_keys only if they display some help. Don't record
5620 `help-echo' events as macro char.
5621
caa15ef7
GM
56222000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5623
5624 * editfns.c (save_excursion_restore): Don't move point
5625 in another window if it is showing the wrong buffer.
5626 Avoid the call to Fwindow_live_p, for speed.
5627
5a13529b
KH
56282000-12-04 Kenichi Handa <handa@etl.go.jp>
5629
e225faa7
KH
5630 * xfaces.c (struct font_name): New member registry_priority.
5631 (split_font_name): Initialize the above member to zero.
5632 (concat_font_list): New function.
5633 (font_list): Include fonts of all alternative registries.
5634 (FONT_POINT_SIZE_QUANTUM): New macro.
5635 (better_font_p): Ignore point size difference less than
5636 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
5637
e89648b4
KH
5638 * xterm.c (x_produce_glyphs): If a font for a component of
5639 a composition is not found, use 1 pixel dot ascent and 0 dot
5640 descent value to avoid displaying terribly tall empty boxes.
5641
5a13529b
KH
5642 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
5643
d7935eb6
KR
56442000-12-03 Ken Raeburn <raeburn@gnu.org>
5645
5646 * coding.h (code_convert_string1): Declare.
5647
5648 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
5649
52283633 5650 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 5651
0dd5e255
JR
56522000-12-02 Jason Rumney <jasonr@gnu.org>
5653
5654 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
5655 correctly for single byte character case.
5656 (w32_per_char_metric): Do not try to make any assumptions about
5657 the metrics of BDF fonts.
250cfece 5658 (x_estimate_mode_line_height): If `mode-line' face
52283633 5659 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
5660 (note_mouse_highlight): Change the cursor shape on the vertical
5661 border between windows [not enabled].
5662
5663 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
5664
5665 * w32fns.c (Fx_create_frame): Reintroduce the call to
5666 face-set-after-frame-defaults.
5667 (Vx_window_horizontal_drag_shape): New variable.
5668 (syms_of_xfns): DEFVAR_LISP it.
5669 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
5670 enabled].
0dd5e255 5671
b5d8d2ca
GM
56722000-12-02 Simon Josefsson <simon@josefsson.org>
5673
5674 * fns.c (Fmd5): Use a different logic to decide the coding system
5675 to use.
5676
5677 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
5678
fbb87147
EZ
56792000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
5680
52283633 5681 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 5682
447e9da0
GM
56832000-12-01 Gerd Moellmann <gerd@gnu.org>
5684
7708ced0
GM
5685 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
5686 height for YNegative.
5687 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
5688 height; also see comment there.
5689
447e9da0
GM
5690 * window.c (coordinates_in_window): Handle computations for
5691 positions on the vertical bar and fringes differently for
5692 window-system frames. Consider some pixels near the vertical bar
5693 as on the bar if the frame doesn't have vertical scroll bars.
5694 Associate positions between mode or header lines with the
5695 right window, the left one.
5696
86d1db20
JR
56972000-12-01 Jason Rumney <jasonr@gnu.org>
5698
5699 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
5700
5701 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
5702 invalid frame.
5703
a1d58e5b
GM
57042000-12-01 Gerd Moellmann <gerd@gnu.org>
5705
52283633 5706 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
5707 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
5708 (save_window_save, Fset_window_configuration): Save/restore
5709 window's orig_top and orig_height.
5710
89c609af
JR
57112000-12-01 Jason Rumney <jasonr@gnu.org>
5712
4d177746 5713 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 5714
89c609af
JR
5715 * w32fns.c (x_set_cursor_color): Fix last change.
5716
eccc05db
GM
57172000-11-30 Gerd Moellmann <gerd@gnu.org>
5718
31b6671b
GM
5719 * xdisp.c (echo_area_display): If cursor is in the echo area, make
5720 sure that the next redisplay displays the minibuffer, so that
5721 the cursor will be replaced with what the minibuffer wants.
5722
eccc05db
GM
5723 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
5724 #ifndef instead of using #if.
5725 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
5726 USE_TOOLKIT_SCROLL_BARS is defined.
5727
162de750
JR
57282000-11-30 Jason Rumney <jasonr@gnu.org>
5729
5730 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
5731 x_display_cursor.
5732
693c4692
GM
57332000-11-30 Gerd Moellmann <gerd@gnu.org>
5734
5735 * fns.c (Fmd5): Doc fix.
5736
b5d8d2ca 57372000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
5738
5739 * fns.c (Fmd5): New function.
5740 (syms_of_fns): Defsubr md5.
5741
5742 * Makefile.in (obj): Add md5.o
5743
b02cd40b
GM
57442000-11-30 Gerd Moellmann <gerd@gnu.org>
5745
edfb795e
GM
5746 * md5.h, md5.c: New files, taken from glibc.
5747
df3aedcf
GM
5748 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
5749
b02cd40b 5750 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 5751 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 5752
8b5176cd
SM
57532000-11-29 Stefan Monnier <monnier@cs.yale.edu>
5754
5755 * eval.c (Frun_hooks): Allow 0 arguments.
5756
346598f1
GM
57572000-11-29 Gerd Moellmann <gerd@gnu.org>
5758
f9396e03
GM
5759 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
5760 is over the menu bar widget, say it's not on the frame.
5761
4a967a9b
GM
5762 * xfns.c (Fx_create_frame): Reintroduce the call to
5763 face-set-after-frame-defaults.
5764
346598f1
GM
5765 * eval.c (Fsignal): Reset handling_signal.
5766
222456a1
JR
57672000-11-28 Jason Rumney <jasonr@gnu.org>
5768
5769 * w32menu.c (add_menu_item): Reset menu item text when changing
5770 type to radio button.
5771
8049ddc0
GM
57722000-11-28 Gerd Moellmann <gerd@gnu.org>
5773
346598f1 5774 * xselect.c: Update copyright.
f4f4ee4d 5775
bebe4a2c
GM
5776 * window.c (coordinates_in_window): If on a mode or header line,
5777 but sufficiently close to its start, return ``on vertical
5778 border''. This gives us a way to drag windows horizontally when
5779 using toolkit scroll bars.
5780
5781 * xterm.c (note_mouse_highlight): Change the cursor shape
5782 on the vertical border between windows.
5783
5784 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
5785
5786 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
5787 (syms_of_xfns): DEFVAR_LISP it.
5788 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
5789
8d2c2642
GM
5790 * textprop.c (text_read_only): New function.
5791 (verify_interval_modification): Use it instead of signaling
5792 `text-read-only'. This makes it easier to catch this error
52283633 5793 with a breakpoint.:
8d2c2642 5794
52283633 5795 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
5796 not end of line, which includes CR.
5797
5a2bae6c
KH
57982000-11-28 Kenichi Handa <handa@etl.go.jp>
5799
5800 * coding.c (Ffind_coding_systems_region_internal): Be sure to
5801 include no-conversion.
5802
ae31f84d
JR
58032000-11-27 Jason Rumney <jasonr@gnu.org>
5804
5805 * w32fns.c (w32_load_system_font): Always mark font as double byte
5806 if codepage is unicode.
5807
67f1cf4c
GM
58082000-11-27 Gerd Moellmann <gerd@gnu.org>
5809
4a74d071 5810 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 5811 just consume it to avoid unintended skipping over invisible text below.
4a74d071 5812
902ae620
GM
5813 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
5814 `vertical-line', `mode-line' and `header-line' events.
5815
5816 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
5817 of a character, a TAB for instance. This is easier than to set
5818 up the iterator exactly, and it's not a frequent case, so the
5819 additional effort wouldn't really pay off.
5820
c1e279c2
AC
58212000-11-26 Andrew Choi <akochoi@i-cable.com>
5822
67f1cf4c 5823 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
5824 init_window_once.
5825
a609568a
JR
58262000-11-25 Jason Rumney <jasonr@gnu.org>
5827
52283633
SM
5828 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
5829 Args to window_from_coordinates should be pixel coordinates.
48b21762 5830
a609568a
JR
5831 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
5832 redisplay handles them properly.
5833
a658d039
MB
58342000-11-25 Miles Bader <miles@gnu.org>
5835
5836 * indent.c (compute_motion): Keep pos_byte in sync with pos.
5837
d3416cca
JR
58382000-11-24 Jason Rumney <jasonr@gnu.org>
5839
5840 * w32.c (init_environment): Set LANG environment variable based on
5841 locale settings, if not set.
5842
5843 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
5844 making tool bar smaller. When clearing the frame, also
5845 clear current matrices. Clear frame when tool bar disappears.
5846 Don't use more lines for the tool-bar than is available.
5847 (x_change_window_heights): New function.
5848
ba193890
GM
58492000-11-24 Gerd Moellmann <gerd@gnu.org>
5850
2be8f184
GM
5851 * xdisp.c (init_from_display_pos): If POS says we're already after
5852 an overlay string ending at POS, make sure to pop the iterator
5853 because it will be in front of that overlay string. When POS is
5854 ZV, we've thereby also ``processed'' overlay strings at ZV.
5855
ba193890
GM
5856 * xfaces.c (lface_from_face_name): Function comment fix.
5857
1862a24e
MB
58582000-11-24 Miles Bader <miles@gnu.org>
5859
5860 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
5861 apply `mode-line-inverse-video' -- zero means force display using
5862 the default face, non-zero means display using the specialized face.
5863 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
5864
f07fa1b8
KH
58652000-11-23 Kenichi Handa <handa@etl.go.jp>
5866
5867 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
5868 hard coded `4'.
5869
2bcdf662
EZ
58702000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5871
5872 * coding.c (decode_coding_emacs_mule): Fix the case of
5873 CODING_EOL_LF, which used uninitialized value of c.
5874
ba8299ff
SM
58752000-11-23 Stefan Monnier <monnier@cs.yale.edu>
5876
5877 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
5878
f4117c4d
GM
58792000-11-22 Gerd Moellmann <gerd@gnu.org>
5880
03e757c1
GM
5881 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
5882 buffer object.
5883
f4117c4d
GM
5884 * frame.h (struct frame): Replace desired_tool_bar_items,
5885 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 5886 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
5887
5888 * frame.c (make_frame): Change initialization of tool bar
5889 items accordingly.
5890
5891 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 5892 Change references to members deleted from struct frame to use the
f4117c4d
GM
5893 new ones.
5894
5895 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 5896 references to members deleted from struct frame to use the new ones.
f4117c4d 5897
52283633 5898 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
5899
5900 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
5901
5902 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 5903 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
5904 from struct frame to use the new ones.
5905
f8e2f3f2
MB
59062000-11-23 Miles Bader <miles@gnu.org>
5907
5908 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
5909 the face's inverse-video attribute, rather than overriding it.
5910
60e8e0a5
GM
59112000-11-22 Gerd Moellmann <gerd@gnu.org>
5912
5913 * xfns.c (x_set_tool_bar_lines): Clear internal border when
5914 making tool bar smaller.
5915
92dd1b29
DL
59162000-11-22 Dave Love <fx@gnu.org>
5917
5918 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
5919
e672fdce
MB
59202000-11-22 Miles Bader <miles@gnu.org>
5921
3a17d6cc
MB
5922 * keyboard.c (Vminibuffer_message_timeout): New variable.
5923 (command_loop_1): Use it to determine message timeout.
5924 (syms_of_keyboard): Initialize it.
5925
60e8e0a5 5926 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 5927
e9655d81
KH
59282000-11-22 Kenichi Handa <handa@etl.go.jp>
5929
5930 * sysdep.c: Move the code for declaring h_errno after #include
5931 <netdb.h>.
5932
77270fac
GM
59332000-11-21 Gerd Moellmann <gerd@gnu.org>
5934
cd913aae
GM
5935 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
5936 the menu bar when the tooltip is unmapped.
5937
77270fac
GM
5938 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
5939 sole visible buffer when we're currently in the mini-buffer, and
5940 give up if so.
52283633 5941
556635d6
JR
59422000-11-21 Jason Rumney <jasonr@gnu.org>
5943
5944 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
5945 put on the clipboard.
5946 (Fw32_get_clipboard_data): Compare data on clipboard with saved
5947 copy of what Emacs last put there. If they are the same, do not
52283633 5948 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 5949
5b7bde64
MB
59502000-11-22 Miles Bader <miles@gnu.org>
5951
5952 * minibuf.c (Vminibuffer_prompt_properties): New variable.
5953 (syms_of_minibuf): Initialize it.
5954 (read_minibuf): Add properties from Vminibuffer_prompt_properties
5955 to prompt, don't make read-only.
5956
ff23e1dd
GM
59572000-11-21 Gerd Moellmann <gerd@gnu.org>
5958
52283633
SM
5959 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
5960 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 5961
7aaf4388
GM
5962 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
5963
f5f47add 5964 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 5965
ff23e1dd
GM
5966 * term.c, cm.c: Don't try to include termcap.h; see comment there.
5967
37c35586
KH
59682000-11-21 Kenichi Handa <handa@etl.go.jp>
5969
5970 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5971 ... #endif scope.
5972
ff9ab414
GM
59732000-11-20 Gerd Moellmann <gerd@gnu.org>
5974
52283633 5975 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
5976 screen supports it.
5977
29a01b72
GM
5978 * s/gnu-linux.h: Don't use `#cpu'.
5979
09dfdf85
GM
5980 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5981 not defined in mman.h.
5982
52283633 5983 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
5984 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5985 and store an index in the XClientMessageEvent. Storing a
5986 Lisp_Object or pointer can fail on a 64 bit system, since X only
5987 transfers 32 bits.
52283633
SM
5988 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5989
81459ac9
DL
59902000-11-20 Dave Love <fx@gnu.org>
5991
5992 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5993
56c13ae6
GM
59942000-11-20 Gerd Moellmann <gerd@gnu.org>
5995
5996 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5997
495a6df3
KH
59982000-11-20 Kenichi Handa <handa@etl.go.jp>
5999
2bcf3714
KH
6000 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6001 by WIDTH.
6002
495a6df3
KH
6003 * alloc.c (make_string): Fix previous change. Be sure to make
6004 unibyte string correctly.
6005
6d950f4c
GM
60062000-11-19 Gerd Moellmann <gerd@gnu.org>
6007
39b39373
GM
6008 * window.c (Fwindow_list): Change parameter list to be XEmacs
6009 compatible.
6010 (window_list_1): New function.
6011 (window_loop): Use it instead of Fwindow_list.
6012
b95b34e5
GM
6013 * sysdep.c (emacs_ospeed): New variable.
6014 (toplevel): Don't declare ospeed extern.
6015 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6016
6017 * termcap.c (ospeed): Remove.
6018 (tputs) [!emacs]: Remove unused code.
6019 (tgetent): Avoid a compiler warning.
6020
e83dc917
GM
6021 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6022 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 6023 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
6024
6025 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6026 removed.
6027 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6028 Take the X display as additional argument.
6029 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6030 `Widget' is a pointer type that's not easily stored in Lisp_Object
6031 form in a portable way.
52283633 6032
6d950f4c
GM
6033 * dispnew.c (update_text_area): Fix last change.
6034
e47306e6
GM
60352000-11-18 Gerd Moellmann <gerd@gnu.org>
6036
fb3cd89b
GM
6037 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6038
6039 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6040 clear current matrices.
6041
edaa9aed
GM
6042 * buffer.c (mmap_enlarge): Don't print a message on stderr
6043 if mapping new memory at the end of the existing region fails.
6044
e47306e6
GM
6045 * dispnew.c (update_text_area): Don't skip over equal glyphs
6046 when the last current glyph overlaps the glyph to its right.
6047
509633e3
MB
60482000-11-18 Miles Bader <miles@gnu.org>
6049
6050 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6051 lines that *end* with "..." too (that's the most common case!).
6052
d392e9c5
GM
60532000-11-18 Gerd Moellmann <gerd@gnu.org>
6054
67988445
GM
6055 * xdisp.c (resize_mini_window): Temporarily change to the
6056 mini-window's buffer if necessary.
1bfdbe43 6057
d392e9c5
GM
6058 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6059 the tooltip obscures less text under it.
6060
60612000-11-17 Gerd Moellmann <gerd@gnu.org>
6062
6063 * puresize.h (BASE_PURESIZE): Increase to 700000.
6064
92bb977f
JR
60652000-11-18 Jason Rumney <jasonr@gnu.org>
6066
6067 * w32term.c (w32_draw_bitmap): Use face to set colors.
6068
26fbf20b
DL
60692000-11-17 Dave Love <fx@gnu.org>
6070
6071 * lread.c (Fload): Fix #ifdef for pcc.
6072
100b593b
GM
60732000-11-17 Gerd Moellmann <gerd@gnu.org>
6074
6075 * xdisp.c (pos_visible_p): Compute the default character height
6076 differently.
6077
a288d0d1
GM
60782000-11-16 Gerd Moellmann <gerd@gnu.org>
6079
cac94de6 6080 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 6081 knowing the line's height; use the default font's height in that case.
cac94de6 6082
a288d0d1
GM
6083 * xfaces.c (weight_table): Add `demi' with the same meaning as
6084 `demibold'.
6085
981fb6f6
KH
60862000-11-16 Kenichi Handa <handa@etl.go.jp>
6087
2cca872d 6088 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
6089 (clear_glyph_row): Delete local static variable null_row.
6090
e5fa381b
JR
60912000-11-15 Jason Rumney <jasonr@gnu.org>
6092
6093 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6094 (w32_alloc_lighter_color): Use new brightness calculations from
6095 xterm.c. Scale delta to be in the range expected by W32.
6096 (w32_draw_relief_rect): Use frame relief colors.
6097
8e42f043
GM
60982000-11-15 Gerd Moellmann <gerd@gnu.org>
6099
6d133d1f
GM
6100 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6101 (Qinhibit_default_face_x_resources): New variable.
6102 (syms_of_frame): Initialize it.
6103 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6104
6105 * xdisp.c (pos_visible_p): Improve function comment.
6106
6107 * lisp.h (BINDING_STACK_SIZE): New macro.
6108
8e42f043
GM
6109 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6110 reading the directory if readdir returns null and errno is EAGAIN
6111 or EINTR.
6112
e8c87124
SM
61132000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6114
6115 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6116 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6117 Set amount_to_scroll to max of dx and scroll_step so that
6118 scroll-conservatively doesn't defeat scroll-step>1.
6119 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6120 scroll-conservatively for line-at-a-time scrolling.
6121
5f0c971d
GM
61222000-11-14 Gerd Moellmann <gerd@gnu.org>
6123
6124 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6125 extra argument.
6126
6127 * xdisp.c (current_mode_line_height, current_header_line_height):
6128 New variables.
6129 (init_xdisp): Initialize them.
6130 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6131 and use exact mode line heights if it is set.
6132
6133 * lisp.h (pos_visible_p): Change prototype.
6134
6135 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6136 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6137 and current_header_line_height first.
52283633
SM
6138 (current_mode_line_height, current_header_line_height):
6139 Declare extern.
5f0c971d 6140
d7361edf
MB
61412000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6142
6143 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6144 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6145 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6146
ee5e440a
MB
61472000-11-14 Miles Bader <miles@gnu.org>
6148
6149 * xterm.c (x_alloc_lighter_color): Include an additive component
6150 too for dark colors, because FACTOR isn't enough.
6151 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6152 New macros.
6153
5ca020fc
GM
61542000-11-13 Gerd Moellmann <gerd@gnu.org>
6155
6156 * keyboard.c (show_help_echo): Call message3_nolog with number of
6157 bytes in the help string as 2nd parameter, instead of the number
6158 of characters.
6159
9d348294
MB
61602000-11-13 Miles Bader <miles@gnu.org>
6161
6162 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6163 (Fload): Use new openp return protocol.
6164 Don't try to use Vload_source_file_function to load .elc files.
6165 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6166 openp return protocol.
6167 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6168
1729bb9a
KH
61692000-11-11 Kenichi Handa <handa@etl.go.jp>
6170
4e677396
KH
6171 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6172
6173 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6174 Defined these macros.
6175 (NLIST_STRUCT): Avoid re-defining it.
6176
1729bb9a
KH
6177 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6178 -I/usr/contrib/X11R6/include.
6179 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6180
a82fe213
JR
61812000-11-10 Jason Rumney <jasonr@gnu.org>
6182
6183 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6184
6185 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6186 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6187
6188 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6189 (Qw32_charset_vietnamese): New symbol.
6190 (xlfd_charset_of_font): New function.
6191 (w32_load_system_font): Use it.
6192 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6193 when Vw32_charset_info_alist is nil to ensure default face always
6194 has font. Use Fcar and Fcdr for safety.
6195 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6196 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6197 pseudo-codepages for special cases.
6198 (w32_to_x_font): New parameter to allow charset portion to be
6199 specified where there is many to one mapping. Callers changed.
6200 (w32_list_fonts): Avoid listing fonts that won't display.
6201
52d89894
GM
62022000-11-10 Gerd Moellmann <gerd@gnu.org>
6203
6204 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6205 (font_list_1): Renamed from font_list.
6206 (font_list): New function, trying alternative registries from
6207 Vface_alternative_font_registry_alist.
6208 (Finternal_set_alternative_font_registry_alist): New function.
6209 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
6210 Vface_alternative_font_registry_alist.
6211 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 6212
651cd3da
KR
62132000-11-09 Ken Raeburn <raeburn@gnu.org>
6214
6215 * lisp.h (Flooking_at): Declare.
6216
388ac098
GM
62172000-11-09 Gerd Moellmann <gerd@gnu.org>
6218
778fbc46 6219 * dired.c (directory_files_internal): Fix a braino.
52283633 6220
388ac098
GM
6221 * dired.c (directory_files_internal): Add missing GCPRO's.
6222 Some cleanup.
6223
ecaedde1
GM
62242000-11-08 Gerd Moellmann <gerd@gnu.org>
6225
f7eb32aa
GM
6226 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6227 (resize_mini_window): Return quickly if Vresize_mini_window is
6228 nil. Don't return if Vmax_mini_window_height is nil.
6229
6230 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6231 (syms_of_xdisp): Initialize them.
6232 (resize_mini_window): Act according to the setting of
6233 Vresize_mini_window.
6234 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6235
ecaedde1
GM
6236 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6237 scroll bar widget after configuring it, so that it will appear at
6238 the right position from the start.
6239 (XTredeem_scroll_bar): Cleaned up.
6240
3747ef2c
KH
62412000-11-08 Kenichi Handa <handa@etl.go.jp>
6242
6243 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 6244 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
6245 division by two.
6246
6247 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6248
03391420
DL
62492000-11-07 Dave Love <fx@gnu.org>
6250
7758f1c1 6251 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
6252
6253 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6254
b5de343d
GM
62552000-11-07 Gerd Moellmann <gerd@gnu.org>
6256
acad3c0b
GM
6257 * window.c (Fset_window_configuration): Don't try to preserve
6258 point in the current buffer, if that buffer is displayed in more
6259 than one window.
6260
b5de343d
GM
6261 * xfaces.c (lookup_named_face): If default face isn't realized,
6262 try to realize it. Return -1 if not successful.
6263 (Fx_list_fonts): Handle case that face cannot be determined.
6264 (Fface_font): Likewise.
6265
cdb1fe49
GM
62662000-11-06 Gerd Moellmann <gerd@gnu.org>
6267
6268 * window.c (displayed_window_lines): Detect partially
6269 visible lines at the bottom correctly.
6270
d3a67486
SM
62712000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6272
6273 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6274 when ensuring we don't do visit in indirect buffer.
6275
ff8dd5d5
KH
62762000-11-06 Kenichi Handa <handa@etl.go.jp>
6277
6278 * composite.h (compose_chars_in_text): Add prototype.
6279
6280 * composite.c (Vcomposition_function_table): New variable.
6281 (Qcomposition_function_table): New variable.
6282 (run_composition_function): Call
6283 Vcompose_chars_after_function with three arguments.
6284 (compose_chars_in_text): New function.
6285 (syms_of_composite): Modified the doc-string of
6286 Vcompose_chars_after_function. Declare composition-function-table
6287 as a lisp variable, and initialize it.
6288
6289 * xfns.c (x_encode_text): Suppress producing escape sequences for
6290 composition.
6291
6292 * xselect.c: Include composite.h.
6293 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6294
d1145f85
AI
62952000-11-05 Andrew Innes <andrewi@gnu.org>
6296
6297 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6298
6299 * sysdep.c (read_input_waiting): Remove extraneous argument to
6300 read_socket_hook.
6301
6302 * w32fns.c (Fx_server_version): Include w32_build_number in the
6303 return list.
6304
6305 * w32heap.c (w32_build_number): New variable.
6306 (cache_system_info): Set it.
6307
6308 * w32heap.h (w32_build_number): Add extern.
6309
6310 * emacs.c (syms_of_emacs): Update docstring for
6311 system-configuration, to reflect the actual usage on MS-Windows.
6312
e85ee976
GM
63132000-10-31 Gerd Moellmann <gerd@gnu.org>
6314
26dcb81b
GM
6315 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6316 process idle timers while waiting for another event.
6317
52283633 6318 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
6319 the default face are colored.
6320
e85ee976
GM
6321 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6322 window height hasn't changed.
6323
01b220b6
JR
63242000-10-31 Jason Rumney <jasonr@gnu.org>
6325
6326 * w32term.c (x_produce_glyphs): Handle composite characters.
6327 (x_draw_glyph_string_foreground)
6328 (x_draw_composite_glyph_string_foreground): Restore old font.
6329
4e6b7204
MB
63302000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6331
6332 * minibuf.c (read_minibuf): Reset the undo history just before
6333 starting the recursive-edit.
6334
d4358b37
GM
63352000-10-30 Gerd Moellmann <gerd@gnu.org>
6336
563f68f1
GM
6337 * xfaces.c (menu_face_change_count): New variable.
6338 (Finternal_set_lisp_face_attribute): Increment it for changes
6339 of the `menu' face.
6340 (realize_basic_faces): Reflect changes in the `menu' faces
6341 in menu bars.
6342
82e274d1
GM
6343 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6344 dy obtained from the iterator's y-position after moving from
6345 scroll_margin_pos to PT; see comment there.
52283633 6346
0dbf9fd2
GM
6347 * xdisp.c (safe_eval_handler): Call add_to_log.
6348
906b3b14
GM
6349 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6350 is not a symbol or string.
6351
d4358b37
GM
6352 * xdisp.c (echo_area_display): Don't perform a display update from
6353 inside redisplay. The update will happen anyway at the end of
6354 redisplay, and it can confuse redisplay (GC messages while
6355 redisplaying, for instance.)
6356
70c825df
SM
63572000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6358
cf9b4b0b
SM
6359 * xrdb.c (x_load_resources): Use the class name in the defaults.
6360
70c825df
SM
6361 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
6362 (regex_compile): Catch bogus \(\1\).
6363
a1d34b1e
GM
63642000-10-30 Gerd Moellmann <gerd@gnu.org>
6365
cae71efe
GM
6366 * xterm.c (x_alloc_nearest_color): Fix last change to compare
6367 RGB values.
52283633 6368
35efe0a1
GM
6369 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
6370 we have a color cache, check that the cached color equals the
6371 allocated color. If not, clear the color cache.
6372
1d3baf74
GM
6373 * window.c (displayed_window_lines): Change buffers if necessary.
6374 Fix computation of displayed lines.
6375
a1d34b1e
GM
6376 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
6377 update_menu_bindings to DEFVAR_BOOL.
6378
70737ea9
KH
63792000-10-30 Kenichi Handa <handa@etl.go.jp>
6380
70c825df 6381 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 6382
fa0cb51d
KH
6383 * puresize.h (BASE_PURESIZE): Increase to 680000.
6384
70737ea9
KH
6385 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
6386
0e4c08e8
JR
63872000-10-29 Jason Rumney <jasonr@gnu.org>
6388
6389 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
6390
6391 * w32term.c (w32_bdf_per_char_metric): Negate descent.
6392 (w32_cache_char_metrics): Handle possibility that 'x' does not
6393 exist in a BDF font.
6394 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
6395
6396 * w32bdf.h (bdffont): Add nchars.
6397
6398 * w32bdf.c (set_bdf_font_info): Set it.
6399 (w32_BDF_TextOut): Swap byte order of double byte characters.
6400 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
6401
45b84006
EZ
64022000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6403
6404 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
6405 don't override the colors in frame's param_alist, unless they are
6406 unspecified.
6407
6408 * term.c (reassert_line_highlight): If inverse_video is non-zero,
6409 reverse the effect of the highlight flag.
6410
caf9deee
KR
64112000-10-27 Ken Raeburn <raeburn@gnu.org>
6412
6413 * window.h (Fwindow_live_p): Declare.
6414
ae0b9b46
KR
6415 * undo.c (record_delete): Check that last_undo_buffer is really a
6416 buffer before applying XBUFFER to it.
6417
6418 * keymap.c (where_is_internal): Pass lisp object, not integer, to
6419 Faref.
6420
02067692
SM
64212000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6422
6423 * lisp.h (KEYMAPP): New macro.
6424 (get_keymap): Remove.
6425 (get_keymap_1): Rename get_keymap.
6426
6427 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
6428
6429 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
6430
6431 * xmenu.c (single_submenu): Use KEYMAPP.
6432 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6433 Use KEYMAPP rather than Fkeymapp.
6434
6435 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
6436
6437 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
6438 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
6439 Use KEYMAPP rather than Fkeymapp.
6440 (single_submenu): Use KEYMAPP.
6441 (w32_menu_show, w32_dialog_show): Use TRUE.
6442
6443 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
6444
6445 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
6446 (Fkeymapp): Use KEYMAPP.
6447 (get_keymap): Rename from get_keymap_1. Remove old def.
6448 Return t when autoload=0 and error=0 and the keymap needs autoloading.
6449 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
6450 (Fminor_mode_key_binding): Don't raise an error if the binding
6451 is not a keymap.
6452 (Fuse_global_map, Fuse_local_map): Allow autoloading.
6453 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
6454
6455 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
6456 Allow Vspecial_event_map to be autoloaded.
6457 (menu_bar_items): Fetch the keymap rather than using keymapp.
6458 (menu_bar_one_keymap): No need to follow func-indirect any more.
6459 (parse_menu_item): get_keymap_1 -> get_keymap.
6460 (tool_bar_items): Fetch the keymap rather than using keymapp.
6461 (read_key_sequence): Use KEYMAPP.
6462
6463 * intervals.c (get_local_map): Use get_keymap rather than following
6464 function-indirections explicitly.
6465
6466 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
6467
f9d80af3
JR
64682000-10-27 Jason Rumney <jasonr@gnu.org>
6469
6470 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
6471 point, as Windows has oversized fonts.
6472
6473 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
6474
a3ba27da
GM
64752000-10-27 Gerd Moellmann <gerd@gnu.org>
6476
6477 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
6478 (freehook, reallochook): Handle null pointer arguments.
6479 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
6480
aa3b80cc
SM
64812000-10-27 Stefan Monnier <monnier@cs.yale.edu>
6482
6483 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
6484 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
6485 Giving in to popular pressure to shut up the compiler with casts.
6486
e24e84cc
GM
64872000-10-27 Gerd Moellmann <gerd@gnu.org>
6488
6489 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
6490 signed value, and use a default value computed from the font's
6491 maximum descent.
6492
05ea7ef2
MB
64932000-10-27 Miles Bader <miles@lsi.nec.co.jp>
6494
6495 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
6496 that specify a negative underline position can still use underlines.
6497
6498 * window.c (Fpos_visible_in_window_p): Make POS default to
6499 WINDOW's point, not the current buffer's point.
6500
0b95284b
DL
65012000-10-26 Dave Love <fx@gnu.org>
6502
6503 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
6504 when it's necessary.
6505
6c5b90af
GM
65062000-10-26 Gerd Moellmann <gerd@gnu.org>
6507
8b6d9dc9
GM
6508 * window.c (size_window): Compute size difference from sum of old
6509 child window sizes instead of from parent's size.
6510
6bc92b2e
GM
6511 * xdisp.c (pos_visible_p): Change current buffer if necessary.
6512 Handle obscured lines at the top of the window.
6513
6514 * frame.c (Fdelete_frame): Doc fix. Move running the hook
6515 down after the last error condition check.
6516
6c5b90af
GM
6517 * frame.c (Fdelete_frame): Run delete-frame-hook.
6518
42f92d4d
KH
65192000-10-26 Kenichi Handa <handa@etl.go.jp>
6520
6521 * coding.c (decode_coding): Fix previous change (check also
6522 CODING_MODE_LAST_BLOCK).
6523
d97151cb
SM
65242000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6525
e7efc503
SM
6526 * regex.c: More `unsigned char' -> `re_char' changes.
6527 Also change several `int' into `re_wchar_t'.
6528 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
6529 (PUSH_FAILURE_POINTER): Don't cast any more.
6530 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
6531 We want GCC to complain, since this piece of code makes
6532 re_match non-reentrant, which *should* be fixed.
6533 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
6534 (EXTEND_BUFFER): Use RETALLOC.
6535 (SET_LIST_BIT): Don't cast.
6536 (re_wchar_t): New type.
6537 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
6538 that those two functions will always properly return.
6539 (IMMEDIATE_QUIT_CHECK): Cast to void.
6540 (analyse_first): Use recursion rather than an explicit stack.
6541 (re_compile_fastmap): Can't fail anymore.
6542 (re_search_2): Don't check re_compile_fastmap for failure.
6543 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
6544 Now also sets the new value (passed in a new argument).
6545 (re_match_2_internal): Use it.
6546 Also, use a new var `reg' of type size_t when looping through regs
6547 rather than reuse the inappropriate `mcnt'.
6548
d97151cb
SM
6549 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
6550 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
6551 (where_is_internal): Renamed from Fwhere_is_internal.
6552 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
6553 (Fwhere_is_internal): New function wrapping where_is_internal.
6554 (where_is_internal_1): Handle the case where we're filling the cache.
6555 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
6556
d5789b65
MB
65572000-10-25 Miles Bader <miles@gnu.org>
6558
6559 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
6560
4ecda532
GM
65612000-10-25 Gerd Moellmann <gerd@gnu.org>
6562
6563 * window.c (pos_fully_visible_p): Removed.
6564 (Fpos_visible_in_window_p): Use pos_visible_p to determine
6565 if position is visible and/or fully visible.
6566
6567 * lisp.h (pos_visible_p): Add prototype.
6568
6569 * xdisp.c (pos_visible_p): New function.
6570
68c3a137
KH
65712000-10-25 Kenichi Handa <handa@etl.go.jp>
6572
6573 * process.c (send_process): If OBJECT is t, it means that the data
6574 is from C string, but we should encode it. Before calling
6575 setup_raw_text_coding_system, be sure to flush out data by the
6576 previous coding system.
6577
7ae1c032
MB
65782000-10-25 Miles Bader <miles@lsi.nec.co.jp>
6579
ff4dcd4b
MB
6580 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
6581 assignment of startpos to prev when startpos == pos.
6582
7ae1c032
MB
6583 * editfns.c (find_field): Set the field stickiness correctly from
6584 overlay fields. Use renamed `text_property_stickiness'.
6585 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 6586 Only check text properties, not overlays.
7ae1c032
MB
6587 * textprop.c (get_char_property_and_overlay): New function.
6588 (Fget_char_property): Use it.
6589 * intervals.h (get_char_property_and_overlay): Add declaration.
6590
49801145
SM
65912000-10-25 Stefan Monnier <monnier@cs.yale.edu>
6592
6593 * keymap.c: Use AREF, ASET and ASIZE macros.
6594 (Fmake_sparse_keymap): Docstring fix.
6595 (synkey): Remove.
6596 (shadow_lookup): Move up.
6597 Handle the case where lookup-key returns an integer.
6598 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
6599 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
6600 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
6601 Simplify/rewrite the keymap-finding code.
6602 Add check for command shadowing, using shadow_lookup.
6603
39e776cd
SM
66042000-10-24 Stefan Monnier <monnier@cs.yale.edu>
6605
6606 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
6607 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
6608 a symbol.
6609
2488aba5
AI
66102000-10-24 Andrew Innes <andrewi@gnu.org>
6611
6612 * dired.c (directory_files_internal_unwind): New function.
6613 (directory_files_internal): Use it to ensure closedir is called
6614 even if expand-file-name or file-attributes throw, eg. because of
6615 a user interrupt. Also enable immediate_quit while calling
6616 re_search, so that matching can be interrupted as well.
6617
b94fdf61
AI
66182000-10-24 Andrew Innes <andrewi@gnu.org>
6619
6620 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
6621 NT-Emacs only.
6622 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
6623 so that re_search functions only quit when callers expect them to.
6624
66252000-10-24 Kenichi Handa <handa@etl.go.jp>
6626
6627 * regex.c (regex_compile): Change the way of handling a range from
6628 a char less than 256 to a char not less than 256.
6629
1946f901
GM
66302000-10-24 Gerd Moellmann <gerd@gnu.org>
6631
7ae2f10f
GM
6632 * window.c (size_window): Prevent setting window's width or
6633 height to a negative value (esp. with XSETFASTINT).
6634
5dcab13e
GM
6635 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
6636 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
6637 (protect_malloc_state) [GC_MALLOC_CHECK &&
6638 GC_PROTECT_MALLOC_STATE]: New function.
6639 (PROTECT_MALLOC_STATE): New macro.
6640 (__malloc_initialize, morecore, _malloc_internal)
6641 (_free_internal) _realloc_internal): Use it to make _heapinfo
6642 read-only outside of gmalloc.
6643
63e1b552
GM
6644 * keymap.c: Update copyright.
6645
1946f901
GM
6646 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
6647 a symbol.
6648
4fa09beb
GM
66492000-10-24 Colin Walters <walters@cis.ohio-state.edu>
6650
6651 * filelock.c (unlock_all_files): Use unlock_file to expand each
6652 buffer's file_truename before trying remove its lock file.
6653
23afac01
EZ
66542000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
6655
6656 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
6657 or CRLF, decode EOLs.
6658
04448b95
KH
66592000-10-24 Kenichi Handa <handa@etl.go.jp>
6660
6661 * window.c (Fdisplay_buffer): Fix doc.
6662
3090a5a5
JR
66632000-10-23 Jason Rumney <jasonr@gnu.org>
6664
6665 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
6666 ASCII font of default fontset on Windows.
6667
6668 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
6669 xterm.c comment below).
6670
6671 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
6672
a83fee2c
GM
66732000-10-23 Gerd Moellmann <gerd@gnu.org>
6674
6675 * xterm.c (x_connection_closed): Reset handling_signal.
6676
52283633 6677 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 6678
6ffdb539
MB
66792000-10-23 Miles Bader <miles@gnu.org>
6680
6681 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6682 Pass nil for FULLY argument to Fpos_visible_in_window_p to
6683 maintain old behavior.
6684 * minibuf.c (Fminibuffer_complete): Likewise.
6685
7f1c969b
MB
66862000-10-23 Miles Bader <miles@lsi.nec.co.jp>
6687
6688 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
6689 that when a font can't be exactly centered, it errs up rather than
6690 down.
6691
23afac01 66922000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 6693
52283633 6694 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 6695
1a578e9b
AC
66962000-10-23 Andrew Choi <akochoi@i-cable.com>
6697
6698 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
6699
6700 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 6701 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
6702
6703 * emacs.c (main) [macintosh]: Call syms_of_textprop,
6704 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
6705 syms_of_search, x_term_init, and init_keyboard before calling
6706 init_window_once. Also, call syms_of_xmenu.
6707
6708 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
6709 default fontset to Monaco.
6710
6711 * frame.c [macintosh]: Include macterm.h. Remove declarations of
6712 NewMacWindow and DisposeMacWindow.
6713 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
6714 instead of calling NewMacWindow and setting fields of
6715 f->output_data.mac directly. Call init_frame_faces.
6716 (Fdelete_frame) [macintosh]: Remove unused code.
6717 (Fmodify_frame_parameters) [macintosh]: Call
6718 x_set_frame_parameters instead of mac_set_frame_parameters.
6719
6720 * frame.h [macintosh]: Define menu_bar_lines field in struct
6721 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
6722
6723 * keyboard.c [macintosh]: Include macterm.h.
6724 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
6725 and menu_bar_activate_event type events as for X and NT.
6726 (make_lispy_event) [macintosh]: Construct lisp events of type
6727 MENU_BAR_EVENT as for X and NT.
6728
6729 * sysdep.c [macintosh]: Remove declaration for sys_signal.
6730 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
6731 (sys_subshell) [macintosh]: Remove definition entirely.
6732 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
6733 Vwindow_system_version here. Remove initialization of
6734 Vx_bitmap_file_path.
6735 (read_input_waiting): Correct the number of parameters passed to
6736 read_socket_hook.
6737 Move all Macintosh functions to mac/mac.c.
6738
6739 * term.c [macintosh]: Include macterm.h.
6740
6741 * window.c [macintosh]: Include macterm.h.
6742
6743 * xdisp.c [macintosh]: Include macterm.h. Declare
6744 set_frame_menubar and pending_menu_activation.
6745 (echo_area_display) [macintosh]: Do not return if terminal frame
6746 is the selected frame.
6747 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
6748 Allow only the selected frame to set menu bar.
6749 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
6750 calling FRAME_EXTERNAL_MENU_BAR (f).
6751 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
6752
6753 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
6754 and check_x. Declare XCreateGC. Define x_create_gc and
6755 x_free_gc. Initialize font_sort_order.
6756 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
6757 but call x_list_fonts instead of w32_list_fonts.
6758 (Finternal_face_x_get_resource) [macintosh]: Do not call
6759 display_x_get_resource.
6760 (prepare_face_for_display) [macintosh]: Set xgcv.font.
6761 (realize_x_face) [macintosh]: Load the font if it is specified in
6762 ATTRS.
52283633 6763 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 6764
1ffbabe3
SM
67652000-10-22 Stefan Monnier <monnier@cs.yale.edu>
6766
6767 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
6768 is nil: since we go to the end of submap anyway, we'd end up
6769 setting nil to nil.
6770 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
6771 doesn't obey autoload.
6772
bed43f1d
EZ
67732000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6774
1ffbabe3 6775 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 6776
ea4233a7
JR
67772000-10-21 Jason Rumney <jasonr@gnu.org>
6778
6779 * w32term.c (w32_cache_char_metrics): Double check that font is
6780 really fixed pitch before trusting tmPitchAndFamily.
6781
f3d3c491
AI
67822000-10-21 Andrew Innes <andrewi@gnu.org>
6783
6784 * w32gui.h (w32_char_font_type): Move enum from w32term.c
6785
6786 * w32term.h: Extern decl for w32_cache_char_metrics.
6787
6788 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
6789
6790 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
6791 (w32_unload_font): Free per_char array if present.
6792
6793 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
6794 cached information in emulated XFontStruct to handle common cases
6795 quickly. Do not allocate XCharStruct for return.
6796 (w32_native_per_char_metric): New function.
6797 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
6798 allocating one.
6799 (x_produce_glyphs): Don't get an HDC. Change calls to
6800 w32_per_char_metric to match arg change above. Remove calls to
6801 free results.
6802 (w32_get_glyph_overhangs): Ditto.
6803 (w32_cache_char_metrics): New function.
6804
6805 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
6806 ($(BLD)/casefiddle.$(O)): Remove compile command.
6807 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
6808 ($(BLD)/dispnew.obj):
6809 ($(BLD)/keyboard.obj):
6810 ($(BLD)/w32inevt.obj):
6811 ($(BLD)/w32bdf.obj):
6812 ($(BLD)/alloc.obj):
6813 ($(BLD)/buffer.obj):
6814 ($(BLD)/editfns.obj):
6815 ($(BLD)/emacs.obj):
6816 ($(BLD)/fileio.obj):
6817 ($(BLD)/fns.obj):
6818 ($(BLD)/indent.obj):
6819 ($(BLD)/insdel.obj):
6820 ($(BLD)/intervals.obj):
6821 ($(BLD)/minibuf.obj):
6822 ($(BLD)/print.obj):
6823 ($(BLD)/scroll.obj):
6824 ($(BLD)/sysdep.obj):
6825 ($(BLD)/textprop.obj):
6826 ($(BLD)/widget.obj):
f3d3c491
AI
6827 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
6828 ($(BLD)/term.obj): Add dependency on dispextern.h.
6829
52283633
SM
6830 * makefile.nt ($(BLD)\dispnew.obj):
6831 ($(BLD)\keyboard.obj):
6832 ($(BLD)\w32inevt.obj):
6833 ($(BLD)\w32bdf.obj):
6834 ($(BLD)\alloc.obj):
6835 ($(BLD)\buffer.obj):
6836 ($(BLD)\editfns.obj):
6837 ($(BLD)\emacs.obj):
6838 ($(BLD)\fileio.obj):
6839 ($(BLD)\fns.obj):
6840 ($(BLD)\indent.obj):
6841 ($(BLD)\insdel.obj):
6842 ($(BLD)\intervals.obj):
6843 ($(BLD)\minibuf.obj):
6844 ($(BLD)\print.obj):
6845 ($(BLD)\scroll.obj):
6846 ($(BLD)\sysdep.obj):
6847 ($(BLD)\textprop.obj):
6848 ($(BLD)\widget.obj):
f3d3c491
AI
6849 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
6850 ($(BLD)\term.obj): Add dependency on dispextern.h
6851
18ad4821
EZ
68522000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6853
6854 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
6855 with an additional argument of Qt.
6856
de54681a
MB
68572000-10-21 Miles Bader <miles@gnu.org>
6858
6859 * window.c (pos_fully_visible_in_window_p): New function.
6860 (Fpos_visible_in_window_p): Add FULLY argument.
6861 Use pos_fully_visible_in_window_p.
6862 (window_scroll_pixel_based, window_scroll_line_based): Update
6863 calls to Fpos_visible_in_window_p.
6864 * lisp.h (Fpos_visible_in_window_p): Update prototype
6865
13c844fb
GM
68662000-10-20 Gerd Moellmann <gerd@gnu.org>
6867
6868 * alloc.c (toplevel): Conditionalize compilation of mem_*
6869 functions differently.
52283633 6870
d9506268
JR
68712000-10-20 Jason Rumney <jasonr@gnu.org>
6872
6873 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
6874 mem_init where it used to be. mem_z etc not defined otherwise.
6875
8094989b
GM
68762000-10-20 Gerd Moellmann <gerd@gnu.org>
6877
6878 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
6879 GC_MALLOC_CHECK.
6880 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
6881 structure definition and related variabled to the top of the file.
6882 Include this code when GC_MALLOC_CHECK is defined.
6883 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
6884 register/unregister allocated region.
6885 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
6886 which isn't allocated.
6887 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
6888 something which is already in use.
6889 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
6890 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
6891 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
6892 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
6893
6894 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
6895 _malloc_internal instead of malloc.
6896 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
6897 of free.
6898
ea456eb4
AI
68992000-10-20 Andrew Innes <andrewi@gnu.org>
6900
6901 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
6902 Windows.
6903 (my_strftime) <macro>: Don't use macro arg list when redefining as
6904 _strftime_copytm.
6905 (my_strftime) <function>: Supply 0 as ut argument.
6906
e64c3a75
JR
69072000-10-19 Jason Rumney <jasonr@altavista.net>
6908
6909 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
6910 including dispextern.h, as it stops faces from working.
6911
6912 * w32fns.c (Fx_create_frame): Don't bother calling
6913 face-set-after-frame-default since the caller does it for us
6914 anyway. Clean up calls to x_get_arg to be consistent with X.
6915
6916 * w32term.c (x_produce_glyphs): Handle
6917 unibyte_display_via_language_environment correctly.
6918 (w32_draw_box_rect): Fix the calculation of width and height.
6919
6920 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
6921 as it has stopped working.
6922 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
6923 menu-bar.
6924
17401c97
GM
69252000-10-19 Gerd Moellmann <gerd@gnu.org>
6926
6927 * eval.c (skip_debugger): Prevent a compiler warning.
6928 (Fcondition_case): Likewise.
6929 (Fbacktrace_frame): Use a null interactive spec.
6930
773272d8
KH
69312000-10-19 Kenichi Handa <handa@etl.go.jp>
6932
6933 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
6934
a42943e9
GM
69352000-10-18 Gerd Moellmann <gerd@gnu.org>
6936
e50517d9
GM
6937 * strftime.c: Sync with glibc, file version 1.78.
6938 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
6939 should no longer be used according to ISO 8601.
6940
9035a35a
GM
6941 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
6942 no map for meta_prefix_char, don't try to use it as a keymap.
6943 Instead, if T_OK is non-zero, look up a default binding, if any,
6944 otherwise, if T_OK is zero, return nil.
6945
a42943e9
GM
6946 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
6947 (x_to_xcolors, png_load): Use x_query_color.
6948
52283633
SM
6949 * xterm.c (x_color_cells, x_query_colors, x_query_color):
6950 New functions.
a42943e9
GM
6951 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
6952 which can be slow.
6953 (x_copy_color, x_alloc_lighter_color): Likewise.
6954
6955 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
6956 (x_query_color, x_query_colors): Add prototype.
6957
6958 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
6959 check_string_bytes only if not noninteractive, increase count to 50.
6960
00de2987
MB
69612000-10-18 Miles Bader <miles@lsi.nec.co.jp>
6962
6963 * insdel.c (adjust_markers_for_delete): Handle before-insertion
6964 markers correctly.
6965
54918e2b
GM
69662000-10-17 Gerd Moellmann <gerd@gnu.org>
6967
1f0b3fd2
GM
6968 * alloc.c (pure_bytes_used): Renamed from pureptr.
6969 (ALIGN): New macro.
6970 (pure_alloc): New function.
6971 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6972 Use it.
6973 (Fpurecopy): Use PURE_POINTER_P.
6974
68c5d1db
GM
6975 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6976 PT has moved backward.
52283633 6977
9a038881
GM
6978 * xdisp.c (cursor_row_p): Take continued lines into account.
6979
361b097f
GM
6980 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6981 string's size_byte.
6982 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6983 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6984 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6985 string allocated.
6986
54918e2b
GM
6987 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6988 of selective display off while searching for the next line start.
6989
03ed0806
KH
69902000-10-17 Kenichi Handa <handa@etl.go.jp>
6991
6992 * Makefile.in (term.o): Depend on dispextern.h.
6993
7e05cdaf
SM
69942000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6995
6996 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6997
a6801fd1
GM
69982000-10-16 Gerd Moellmann <gerd@gnu.org>
6999
483de32b
GM
7000 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7001 the iterator at the beginning, so that they can be set later on,
7002 for instance in reseat_at_next_visible_line_start, without being
7003 overwritten.
7004
a6801fd1
GM
7005 * xfns.c (pbm_format): Add :foreground and :background keywords.
7006 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 7007 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 7008
dbf1fcc1
EZ
70092000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7010
7011 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7012
52283633 7013 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
7014
7015 * msdos.c (IT_set_face): Compare highlighted face with the default
7016 face, and invert colors if these faces' colors are identical.
7017 (Fmsdos_remember_default_colors): Don't swap foreground and
7018 background colors in initial_colors[].
7019 (IT_set_frame_parameters): Don't swap frame's foreground and
7020 background pixels. If ALIST includes "(reverse . t)", swap
7021 foreground-color and background-color properties in frame's
7022 param_alist. If the original frame's param_alist doesn't specify
7023 the colors, store unspecified-fg and unspecified-bg, reversed if
7024 required.
7025
7026 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7027 the colors are unspecified and reversed, reverse fore- and back-
7028 ground in the returned value.
7029 (Fframe_parameter): Ditto.
7030
b41fe2c3 70312000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 7032
3a6b59d9
GM
7033 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7034 get_last_unchanged_at_beg_row.
7035 (find_first_unchanged_at_end_row): Renamed from
7036 get_first_unchanged_at_end_row.
7037 (find_first_unchanged_at_end_row): Convert assertions to
7038 unconditional tests which abort. When looking for a row in
7039 unchanged text, don't go further back than first_text_row.
7040
b41fe2c3
GM
7041 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7042 Don't add in the last line's height when deciding if the new
7043 position is below the scroll margin.
9d1af64f 7044
b41fe2c3 70452000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
7046
7047 * editfns.c (Fconstrain_to_field): Check carefully for field
7048 boundaries if either OLD_POS or NEW_POS has a non-nil field
7049 property, even if they're the same.
7050
c412cb7b
KH
70512000-10-16 Kenichi Handa <handa@etl.go.jp>
7052
7053 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7054 height for XFillRectangle.
7055
5586f3eb
SM
70562000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7057
7058 * syntax.c (Fstring_to_syntax): New function extracted from
7059 Fmodify_syntax_entry.
7060 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7061 (skip_chars, Fforward_comment): Remove unused variables.
7062 (syms_of_syntax): Add defsubr for string-to-syntax.
7063 (describe_syntax): Add code for comment and string fences.
7064
db785038
SM
70652000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7066
7067 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7068 Do the meta->esc mapping. Call get_keyelt before returning.
7069 Start scanning from the second element (the first is always `keymap')
7070 to make it easier to detect when we reach a parent map.
7071 Handle the case of inheriting from a symbol whose function is a map.
7072 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7073 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7074 (get_keyelt, Flookup_key): Update call to access_keymap.
7075 Remove the meta->esc mappings.
7076 (define_as_prefix): Delete old disabled code.
7077 (menu_item_p): New function.
7078 (where_is_internal_1): Skip over the few remaining menu items.
7079 * lisp.h (access_keymap): Update prototype.
7080 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7081 Update call to access_keymap.
7082 (follow_key, read_key_sequence): Update calls to access_keymap.
7083 Remove the meta->esc mappings.
7084
cafafe0b
GM
70852000-10-13 Gerd Moellmann <gerd@gnu.org>
7086
a2e2a7f6
GM
7087 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7088 with additional argument.
7089
cafafe0b
GM
7090 * xdisp.c (cursor_row_p): New function.
7091 (try_cursor_movement, display_line): Use it.
52283633 7092
cafafe0b
GM
7093 * xdisp.c (append_space): Also save/restore iterator's current
7094 character and its length.
7095
7096 * xdisp.c (init_from_display_pos): Add an assertion.
7097 (handle_stop): Don't set iterator's add_overlay_start.
7098 (handle_invisible_prop): Likewise.
7099 (load_overlay_strings): If text under an overlay is invisible,
7100 take both before- and after-strings into account when the iterator
7101 is positioned either at the start or at the end of the overlay.
7102 (forward_to_next_line_start): Rewritten.
7103 (reseat_at_next_visible_line_start): Rewritten.
7104 (set_iterator_to_next): Add parameter RESEAT_P.
7105
7106 * dispextern.h (struct it): Remove member add_overlay_start.
7107 (set_iterator_to_next): Change prototype.
7108
c744452b
KH
71092000-10-13 Kenichi Handa <handa@etl.go.jp>
7110
7111 * coding.c (code_convert_region): Be sure to initialize
7112 coding->category_idx.
e4a3f4e1
KH
7113 (decode_coding_string): Set coding->src_multibyte and
7114 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7115 (encode_coding_string): Set coding->src_multibyte and
7116 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 7117
321fd26f
SM
71182000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7119
7120 * xfns.c (Fx_create_frame): Don't bother calling
7121 face-set-after-frame-default since the caller does it for us anyway.
7122
76832439
EZ
71232000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7124
7125 * window.c (coordinates_in_window): Fix detection of vertical line
7126 on character terminals.
7127
2483cf58
GM
71282000-10-12 Gerd Moellmann <gerd@gnu.org>
7129
7130 * editfns.c (save_excursion_save): Additionally record the
7131 selected window.
7132 (save_excursion_restore): If buffer was visible in a window, and a
7133 different window was selected, and the old selected window is
7134 still live, restore point in that window.
7135
eb991b25
KH
71362000-10-12 Kenichi Handa <handa@etl.go.jp>
7137
8a0eba09
KH
7138 * xterm.c (x_produce_glyphs): Handle
7139 unibyte_display_via_language_environment correctly.
7140
20401fcc
KH
7141 * regex.c (regex_compile): Change the way of handling a range from
7142 unibyte char to multibyte char.
7143
7144 * syntax.c (skip_chars): Change the way of handling a range from
7145 unibyte char to multibyte char.
7146
eb991b25
KH
7147 * process.c (read_process_output): Cancel previous change.
7148
365dd325
EZ
71492000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7150
c1b096cb
EZ
7151 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7152
365dd325
EZ
7153 * charset.c (Ffind_charset_string): Doc fix.
7154 (Ffind_charset_region): Doc fix.
7155
eb483c2b
KH
71562000-10-11 Kenichi Handa <handa@mule.m17n.org>
7157
7158 * process.c (read_process_output): Fix previous change. Adjust
7159 multibyteness of text to insert in a buffer by
52283633 7160 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 7161
b40bfb99
AS
71622000-10-10 Andreas Schwab <schwab@suse.de>
7163
7164 * alloc.c (mark_object): Remove all workarounds installed on
7165 1993-08-08.
7166
caff31d4
KH
71672000-10-10 Kenichi Handa <handa@etl.go.jp>
7168
52283633 7169 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
7170 (base64_encode_1): Make it work for a text of multibyte form.
7171 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7172 case. Don't call str_to_multibyte because base64_decode_1
7173 produces correct multibyte form for eight-bit codes.
52283633 7174 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
7175 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7176 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7177 codes.
7178
7179 * charset.h (CHAR_STRING): Optimized for single byte characters.
7180
cba026ef
AS
71812000-10-09 Andreas Schwab <schwab@suse.de>
7182
7183 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7184 -1 after socket is closed, to fall through to error processing.
7185
1e21fe48
EZ
71862000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7187
7188 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 7189 variables. If ALIST includes foreground-color or
1e21fe48
EZ
7190 background-color, change also the colors of the default face for
7191 this frame.
7192
a640322e
EZ
71932000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7194
7195 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7196 them extern (they are defined on xfaces.c).
7197 (syms_of_msdos): Don't intern and don't staticpro
7198 Qbackground_color and Qforeground_color.
7199
a115794c
EZ
72002000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7201
7202 * frame.c (Fframe_parameter): For non-windowed frames, if
7203 f->param_alist says foreground or background color is unspecified,
7204 call tty_color_name to return the color name computed from the
7205 frame's current colors.
7206
f5533b63
DL
72072000-10-06 Dave Love <fx@gnu.org>
7208
7209 * terminfo.c (ospeed): Don't declare.
7210
7211 * sysdep.c: Don't include string.h.
7212 (h_errno): Declare conditional also on TRY_AGAIN.
7213
7214 * charset.c (Ffind_charset_string): Doc fix.
7215
52283633 7216 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
7217 (Fbase64_decode_region, Fbase64_decode_string): More explicit
7218 error messages.
7219
2b06561a
DL
72202000-10-05 Dave Love <fx@gnu.org>
7221
7222 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7223 position like menu-bar.
7224
ca839c85
GM
72252000-10-05 Gerd Moellmann <gerd@gnu.org>
7226
7227 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7228
7229 * xdisp.c (handle_single_display_prop): Use safe_call1.
7230 (safe_call): Renamed from call_function.
7231 (safe_call1): New function.
7232 (handle_fontified_prop): Use safe_call1 instead of call1.
7233 (safe_eval): Renamed from eval_form.
7234 (safe_eval_handler): Renamed from eval_handler.
7235 (handle_single_display_prop, display_mode_element): Use safe_eval
7236 instead of eval_form.
7237
7238 * xfaces.c (merge_face_heights): Use safe_call instead of
7239 call_function.
7240
7241 * keyboard.c (show_help_echo): Use safe_call instead of
7242 call_function; use safe_eval instead of eval_form.
7243
7244 * lisp.h (safe_call): Renamed from call_function.
7245 (safe_eval): Renamed from eval_form.
7246 (safe_call1): Add prototype.
7247
a3489ece
MB
72482000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7249
7250 * xfns.c (image_ascent): Rearrange ascent calculation for the
7251 has-a-font case.
7252
35810b6f
SM
72532000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7254
7255 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7256 (where_is_internal_1): Don't bother ignoring menu-items any more.
7257
3dc78168
GM
72582000-10-04 Gerd Moellmann <gerd@gnu.org>
7259
7260 * keyboard.c (update_menu_bindings): New variable.
7261 (parse_menu_item): Use AREF. If update_menu_bindings
7262 is 0, don't update menu bindings.
7263 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7264
1efc2bb9
EZ
72652000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7266
7267 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7268 to `mark_object'.
7269
3f679f55
SM
72702000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7271
7272 * syntax.c (forw_comment): Match nestedness of ender/starter.
7273 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7274 (prev_char_comstart_first): Remove.
7275 (back_comment): Check two-char comment markers more carefully
7276 to better handle overlapping cases like *//* or /* */* */ ...
7277 Match nestedness of ender/starter.
7278
2021ab61
DL
72792000-10-02 Dave Love <fx@gnu.org>
7280
7281 * config.in (HAVE_GAI_STRERROR): Add undef.
7282
7283 * process.c (Fopen_network_stream): Use it.
7284
7285 * m/alpha.h (NO_REMAP): Don't define.
7286
64e6cc18
GM
72872000-10-02 Gerd Moellmann <gerd@gnu.org>
7288
7289 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7290 return with a string converted to an integer or vice versa when
7291 Vmocklisp_arguments is t.
7292 (Fsignal): Likewise. The function can return for `quit'.
7293 (struct gcpro): Declare member `var' to point to a volatile
7294 Lisp_Object.
7295
7296 * eval.c (error): Prevent compiler warning.
7297
b1904cd9
SM
72982000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7299
7300 * keymap.c (keymap_memberp): New function.
7301 (Fset_keymap_parent): Use it.
7302 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7303 Use keymap_memberp to avoid creating cycles.
7304 (access_keymap): Use KEYMAPP.
7305
71c9ec51
GM
73062000-09-30 Gerd Moellmann <gerd@gnu.org>
7307
7308 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
7309 gai_strerror. Make sure xerrno is set if connect fails. Improve
7310 error recovery.
71c9ec51 7311
c70c6b58
JR
73122000-09-29 Jason Rumney <jasonr@gnu.org>
7313
7314 * w32term.c (w32_char_font_type, w32_encode_char)
7315 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7316 (w32_bdf_per_char_metric): New function.
7317 (w32_per_char_metric): Use it.
7318 (x_draw_glyph_string_background): Always draw background for BDF
7319 glyphs.
7320
7321 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7322 GDI object which is a scarce resource.
7323
7324 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7325 (get_quoted_string): Fix limit on memchr search.
7326 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7327 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7328 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7329 (get_cached_font_char, cache_char_offset): Use macro
7330 BDF_CODEPOINT_RANGE_COVER_P.
7331 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7332 (clear_cached_bitmap_slots): New function.
7333 (GET_HEX_VALUE): G-Z, g-z are not hex.
7334 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7335 (get_bitmap_with_cache): Use new cache implementation.
7336 (create_offscreen_bitmap): New function.
7337 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7338
7339 * w32term.c (x_produce_glyphs): If the distance from the current
7340 position to the next tab stop is less than a canonical character
7341 width, use the tab stop after that.
7342 (x_draw_glyphs): Handle case START and END are out of bounds more
7343 carefully.
7344 (x_clear_mouse_face): Block/unblock input.
7345 (x_display_and_set_cursor): Don't show a hollow box cursor for
7346 buffers whose cursor_type is nil.
7347
fe01239f
GM
73482000-09-29 Gerd Moellmann <gerd@gnu.org>
7349
52283633 7350 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
7351
7352 * dispextern.h (updating_frame): Declare extern.
7353
e7c52f1f
AS
73542000-09-29 Andreas Schwab <schwab@suse.de>
7355
7356 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7357
de6e1f7c
GM
73582000-09-29 Gerd Moellmann <gerd@gnu.org>
7359
25126faa
GM
7360 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
7361 use its function definition.
7362 (tool_bar_items): Likewise.
7363
de6e1f7c 7364 * lisp.h (fatal): Declare NO_RETURN.
52283633 7365
454ee39b
KH
73662000-09-29 Kenichi Handa <handa@etl.go.jp>
7367
7368 * keymap.c: Remove the line "#undef NULL".
7369
96301c5f
GM
73702000-09-28 Gerd Moellmann <gerd@gnu.org>
7371
52283633 7372 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 7373
efffeeb4
DL
73742000-09-28 Dave Love <fx@gnu.org>
7375
ecb8b666
DL
7376 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
7377
dc3cd20f
DL
7378 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
7379
7380 * .gdbinit (xreload): Note its need on GNU/Linux.
7381
efffeeb4
DL
7382 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
7383 r_alloc, r_alloc_free.
7384
8610d903
KH
73852000-09-28 Kenichi Handa <handa@etl.go.jp>
7386
7387 * syntax.c (skip_chars): Handle negation correctly.
7388
8901d1ac
GM
73892000-09-27 Gerd Moellmann <gerd@gnu.org>
7390
6f22f1ad
GM
7391 * xfaces.c (realize_default_face): Call set_lface_from_font_name
7392 with non-zero FORCE_P argument.
7393
52283633 7394 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
7395 Add assertions.
7396
7397 * xdisp.c (window_box_height): Add an assertion.
7398
7399 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
7400 tool-bar than is available.
7401 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
7402
36f1966f
DL
74032000-09-27 Dave Love <fx@gnu.org>
7404
efffeeb4 7405 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 7406
31d929e5
GM
74072000-09-26 Gerd Moellmann <gerd@gnu.org>
7408
c98863bf
GM
7409 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
7410 instead of BITS_PER_INT.
7411 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
7412 EMACS_UINT, respectively.
7413 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
7414
7415 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
7416
7417 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
7418
77072ab1
GM
7419 * window.c (freeze_window_starts): Construct last argument for
7420 foreach_window differently.
7421
7422 * xfns.c (x_decode_color): Don't return a Lisp_Object.
7423
7424 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
7425 EMACS_UINT instead of `int' and `unsigned int'.
7426 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
7427
7428 * frame.h (struct frame): Make the `nothing' member of union
7429 output_data an EMACS_INT.
7430
52283633 7431 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
7432 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
7433 size in the sdata structure.
7434 (SDATA_NBYTES, SDATA_DATA): New macros.
7435 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
7436 differently for the different layout of the sdata structure.
7437 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
7438 in sdata.
7439 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
7440 Check that size recorded in the string size and size recorded in
7441 the sdata structure agree.
7442
3e60b029
DL
74432000-09-25 Dave Love <fx@gnu.org>
7444
7445 * buffer.c: Include stdio.h.
7446
7447 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 7448
3e60b029
DL
7449 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
7450
7451 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 7452 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
7453 (__malloc_extra_blocks): Declare as __malloc_size_t.
7454
8ff16b4e
GM
74552000-09-25 Gerd Moellmann <gerd@gnu.org>
7456
755a2ccd
GM
7457 * alloc.c (mark_image): Use GC_NILP instead of NILP.
7458
d8b4516f
GM
7459 * keyboard.c (show_help_echo): Set help_echo_showing_p.
7460 (read_char): If help-echo is showing, preserve the echo area
7461 when redisplaying.
7462
7463 * xdisp.c (help_echo_showing_p): New variable.
7464 (set_message): Reset it to 0.
7465 (init_xdisp): Initialize help_echo_showing_p.
7466
7467 * dispextern.h (help_echo_showing_p): Declare extern.
7468
7469 * config.in: Fix typo in __GNUC_MINOR__.
7470
7471 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
7472
b11af2dd
GM
7473 * s/freebsd.h (POSIX_SIGNALS): Define.
7474
8ff16b4e
GM
7475 * xterm.c (x_clear_mouse_face): Block/unblock input.
7476
844eb643
DL
74772000-09-24 Dave Love <fx@gnu.org>
7478
7479 * fns.c (base64_encode_1): Fix last change.
7480
b30ab1b3
GM
74812000-09-22 Gerd Moellmann <gerd@gnu.org>
7482
7483 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
7484
7485 * xdisp.c (try_window_reusing_current_matrix): More fixes
7486 for the case window has a header-line.
7487
c6cbe5f0
DL
74882000-09-22 Dave Love <fx@gnu.org>
7489
4c7c1f3f
DL
7490 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
7491 a doc string.
7492
7493 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
7494
c6cbe5f0
DL
7495 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
7496
550a625e
GM
74972000-09-21 Gerd Moellmann <gerd@gnu.org>
7498
4c7c1f3f 7499 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
7500 for GCC >= 2.5.
7501
52283633
SM
7502 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
7503 Declare NO_RETURN.
fca99116 7504
80d26f99
GM
7505 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
7506 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
7507 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
7508 warnings.
52283633 7509
80d26f99
GM
7510 * marker.c (byte_char_debug_check): Return void.
7511
623a0aae
GM
7512 * xfns.c (Fx_create_frame): Set default frame parameter value
7513 for tool-bar-lines to 1.
7514
7515 * dispnew.c (scrolling_window): Compare y-positions of rows
7516 equal at the start. Some simplification.
7517
7518 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
7519 reused rows' y-position in the case window has a header-line, and
7520 new window start is greater than old window start.
7521
42ac0ae5
GM
7522 * process.c (process_sent_to): New variable.
7523 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
7524 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
7525 Declare more parameters volatile.
7526
550a625e
GM
7527 * lread.c (Vrecursive_load_depth_limit): New variable.
7528 (Fload): Check recursive loads whose recursion depth exceeds
7529 Vrecursive_load_depth_limit.
7530 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
7531
8320414c
GM
75322000-09-20 Gerd Moellmann <gerd@gnu.org>
7533
f46c275e
GM
7534 * fileio.c (Fread_file_name): Doc fix.
7535
7536 * editfns.c (Fmessage_or_box): Doc fix.
7537
7538 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
7539
b7e11c5b 7540 * xfns.c (xbm_scan): Allow C-style comments.
52283633 7541
8320414c
GM
7542 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
7543 symbols are specified, add color translations to the cache.
52283633 7544 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
7545 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
7546 xpm_cache_color.
7547 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
7548 structures to xpm_init_color_cache.
7549
da1608d9
GM
75502000-09-19 Gerd Moellmann <gerd@gnu.org>
7551
52283633 7552 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 7553
6badfa25
AI
75542000-09-19 Andrew Innes <andrewi@gnu.org>
7555
7556 * makefile.nt (bootstrap-emacs): Don't change directory.
7557
3a5f42bb
KH
75582000-09-19 Kenichi Handa <handa@etl.go.jp>
7559
1b7649bd
KH
7560 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
7561
3a5f42bb
KH
7562 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
7563 If output buffer is too small, signal an appropriated error.
7564
9f83cf0b
DL
75652000-09-18 Dave Love <fx@gnu.org>
7566
52283633 7567 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
7568 (current_active_maps): Remove redundant get_local_map call.
7569
28c7826c
GM
75702000-09-18 Gerd Moellmann <gerd@gnu.org>
7571
5cefa566
GM
7572 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
7573 cursor for buffers whose cursor_type is nil.
52283633 7574
6fed3546
GM
7575 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
7576 a feature to implement that is already implemented.
7577 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
7578 warnings.
7579
7580 * xfns.c (x_clear_image_1): New function.
7581 (x_clear_image): Use it.
52283633 7582 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 7583
05b1f851
GM
7584 * dispnew.c (update_window): Move test for invisible lines
7585 at the top to update_window_line.
7586 (update_window_line): Handle invisible lines here.
7587
f4779de9
GM
7588 * xfns.c (clear_image_cache): Clear current matrices of all
7589 frames sharing an image cache. Block input while freeing
7590 images. Fix timestamp comparison.
7591 (x_clear_image): Also free the mask.
7592
28c7826c
GM
7593 * xfns.c (lookup_image): Block input while loading the image so
7594 that we won't get interrupted in a state where the image isn't yet
7595 set up completely.
7596 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
7597 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
7598 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 7599 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 7600
b7412313
GM
76012000-09-16 Gerd Moellmann <gerd@gnu.org>
7602
7603 * dispnew.c (update_window): Make sure to make desired rows
7604 current even if they are completely invisible at the top
7605 of a window.
7606
47e351a3
GM
76072000-09-15 Gerd Moellmann <gerd@gnu.org>
7608
7f8f1edc
GM
7609 * xfns.c (lookup_image): Build mask before applying an algorithm.
7610 Recognize algorithm `disabled'.
7611 (cross_disabled_images): New variable.
7612 (COLOR_INTENSITY): New macro.
7613 (x_detect_edges): Use COLOR_INTENSITY.
7614 (x_disable_image): New function.
7615 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
7616
7617 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
7618 disabled state, don't apply an image transformation algorithm if
7619 the user specified an image for the disabled state. Use
28c7826c 7620 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
7621 user hasn't specified an image.
7622
ebb8f116
GM
7623 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
7624 allocation functions with the XPM lib.
7625 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
7626 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
7627 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
7628 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 7629 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
7630 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
7631 functions, if possible, because these handle color allocation
7632 failure more gracefully.
7633 (Fimage_mask_p): New function.
7634
47e351a3
GM
7635 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
7636 (Qedge_detection, Qheuristic): New symbols.
7637 (syms_of_xfns): Initialize new symbols.
7638 (lookup_image): Handle `:mask X', `:algorithm emboss', and
7639 `algorithm (edge-detection ...)'.
7640 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
7641 (tiff_format, gif_format, gs_format): Add `:mask'.
7642 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
7643 (GIF_MASK, GS_MASK): New enumerators.
7644 (x_laplace_read_row, x_laplace_write_row): Functions removed.
7645 (emboss_matrix, laplace_matrix): New variables.
7646 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
7647 (x_edge_detection): New functions.
7648 (x_laplace): Rewritten in terms of x_detect_edges.
7649 (x_build_heuristic_mask): If image has a mask, free it.
7650
fe83b953
AI
76512000-09-14 Andrew Innes <andrewi@gnu.org>
7652
7653 * makefile.w32-in: Revert to Unix line endings.
7654
3021e816
AI
76552000-09-14 Andrew Innes <andrewi@gnu.org>
7656
7657 * makefile.w32-in: Standardize indentation somewhat.
7658 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
7659 cater for differences between shells.
7660
7661 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
7662
2a32b5ea
GM
76632000-09-14 Gerd Moellmann <gerd@gnu.org>
7664
7665 * xterm.c (x_produce_glyphs): If the distance from the current
7666 position to the next tab stop is less than a canonical character
7667 width, use the tab stop after that.
7668
b4331e96
DL
76692000-09-14 Dave Love <fx@gnu.org>
7670
7671 * buffer.c (alloc_buffer_text): Fix xmalloc call.
7672
ef9e4345
GM
76732000-09-14 Gerd Moellmann <gerd@gnu.org>
7674
085536c2
GM
7675 * xdisp.c (handle_fontified_prop): While running fontification
7676 functions, bind `fontification-functions' and
7677 `after-change-functions' to nil.
7678
ef9e4345
GM
7679 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
7680 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
7681
7682 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
7683
7684 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
7685 USE_MMAP_FOR_BUFFERS.
7686
7687 * insdel.c (make_gap): Use enlarge_buffer_text.
7688
7689 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
7690 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
7691 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
7692 from former r_alloc_* functions in ralloc.c.
52283633 7693 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
7694 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
7695 (mmap_init) [REL_ALLOC_MMAP]: New function.
7696 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
7697 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
7698 BUFFER_FREE.
7699
7700 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
7701 (enlarge_buffer_text): Add prototype.
7702
7703 * ralloc.c: Remove everything having to do with the use of mmap.
7704
f8608968
GM
77052000-09-13 Gerd Moellmann <gerd@gnu.org>
7706
2a494b2d
GM
7707 * sound.c (Fplay_sound): Doc fix.
7708
8c907a56
GM
7709 * keyboard.c: Avoid some more compiler warnings.
7710 (parse_tool_bar_item): Ignore cached key bindings.
7711
f8608968
GM
7712 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
7713 and allocation of Lisp data.
7714
6ab70e9a
GM
77152000-09-12 Gerd Moellmann <gerd@gnu.org>
7716
d12d0a9b
GM
7717 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
7718 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
7719 defaults first.
7720
6ab70e9a
GM
7721 * lread.c (Fload): Put code checking for recursive loads in #if 0.
7722
63c36c3c
KH
77232000-09-12 Miyashita Hisashi <himi@meadowy.org>
7724
7725 * ccl.c: Comment fixed.
7726 (MAX_MAP_SET_LEVEL): Increased to 30.
7727 (PUSH_MAPPING_STACK): Enclose with do-while block.
7728 (POP_MAPPING_STACK): Likewise.
7729 (stack_idx_of_map_multiple): New variable.
7730 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
7731 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 7732 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
7733 (ccl_driver) <CCL_MapSingle>: Likewise.
7734 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
7735 with the case where looking up process reaches to the end of
7736 map-set, and call CCL programs as the above change.
7737
7ee3bd7b
GM
77382000-09-11 Gerd Moellmann <gerd@gnu.org>
7739
8ec8a5ec
GM
7740 * xfns.c (png_load, jpeg_load): Declare some variables volatile
7741 that might be clobbered by longjmp.
7742 (check_x_display_info, x_decode_color, create_frame_xic)
7743 (Fx_display_backing_store, Fx_display_visual_class)
52283633 7744 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 7745
f74b0705
GM
7746 * lread.c (init_lread): Set Vloads_in_progress to nil.
7747 (Fload): Show list of recursively loaded files, when signaling an
7748 error.
7749
7ee3bd7b
GM
7750 * lread.c (Vloads_in_progress): New variable.
7751 (record_load_unwind): New function.
7752 (Fload): Check for recursive loads.
7753 (syms_of_lread): Initialize Vloads_in_progress.
7754 (read_integer, read1): Avoid some compiler warnings.
7755
7756 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
7757 compiler warnings.
7758
974e1e5b
MB
77592000-09-11 Miles Bader <miles@gnu.org>
7760
7761 * editfns.c (Fbuffer_string): Doc fix.
7762
9824c4e3
GM
77632000-09-10 Gerd Moellmann <gerd@gnu.org>
7764
7765 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
7766
6a72fdd1
KR
77672000-09-09 Ken Raeburn <raeburn@gnu.org>
7768
7769 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
7770 whether to include other header files.
7771
28e6fb66
GM
77722000-09-09 Gerd Moellmann <gerd@gnu.org>
7773
52283633 7774 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 7775 by Fmemq as a boolean.
28e6fb66 7776
7f8b6551
SM
77772000-09-08 Stefan Monnier <monnier@cs.yale.edu>
7778
7779 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
7780
a8710abf
GM
77812000-09-08 Gerd Moellmann <gerd@gnu.org>
7782
d1a02881
GM
7783 * ralloc.c (mmap_fd): Remove initializer which can make it
7784 read-only in a dumped Emacs.
7785 (mmap_fd_1): New variable.
7786 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
7787 restore it from there.
7788 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
7789 unconditionally so that mmap_fd can be initialized there.
7790 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
7791 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
7792 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
7793
c454aac1
GM
7794 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
7795
7796 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 7797 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 7798
fc653ef2
GM
7799 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
7800
3015eec0
GM
7801 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
7802 inheritance.
7803
bfe0ee88
GM
7804 * xdisp.c (try_window_id): When trying to locate cursor in
7805 unchanged rows at the top, handle the case that we can't find it.
7806
a8710abf
GM
7807 * xterm.c (x_draw_glyphs): Handle case START and END are out
7808 of bounds more carefully.
7809
6b7d4ae4
DL
78102000-09-08 Dave Love <fx@gnu.org>
7811
423193c5
DL
7812 * s/sol2.h (REL_ALLOC_MMAP): Define.
7813 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
7814
7815 * ralloc.c: Don't include string.h (redundant).
7816 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
7817 [!MAP_ANON]: Include fcntl.h.
7818 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
7819 (r_alloc, r_re_alloc, r_alloc_free)
7820 (mmap_enlarge, mmap_set_vars): Use it.
7821 (r_alloc_init_fd): New function.
7822 (__morecore) [SYSTEM_MALLOC]: Don't declare.
7823 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
7824 malloc type.
7825
7826 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
7827 Remove vm-limit.o.
7828
6b7d4ae4
DL
7829 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
7830 change to __NetBSD__.
7831
44d31981
KH
78322000-09-08 Kenichi Handa <handa@etl.go.jp>
7833
7834 * search.c (compile_pattern): Check the multibyteness of cached
7835 string and PATTERN.
7836
aad40737
MB
78372000-09-08 Miles Bader <miles@gnu.org>
7838
7839 * xfaces.c (default_face_vector): Function removed.
7840 (Finternal_merge_in_global_face): Restore old global/local
7841 attribute override order. Use inline loop instead of calling
7842 default_face_vector.
7843
91a211b5
GM
78442000-09-07 Gerd Moellmann <gerd@gnu.org>
7845
7846 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
7847 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
7848 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
7849 where necessary, in case POINTER_TYPE is `void'.
7850
03419440
EZ
78512000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
7852
7853 * frame.c (make_terminal_frame): Initialize frame foreground and
7854 background colors to unspecified, for the initial instance of an
7855 MSDOS frame.
7856
f46f845b
GM
78572000-09-07 Gerd Moellmann <gerd@gnu.org>
7858
24f76fbf
GM
7859 * ralloc.c (mmap_find): Fix overlap computation.
7860 (mmap_enlarge): Compute nbytes before trying to find an
7861 overlapping region.
7862
f46f845b
GM
7863 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
7864 instead of `!='.
7865
7866 * lread.c (syms_of_lread): Change value of regexp
7867 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
7868
7869 * xmenu.c (xdialog_show): When looking up the selection in
7870 menu_items, take `quote' boundaries into account; this corresponds
7871 to a nil ITEM in x-popup-dialog.
7872
3c014385
KH
78732000-09-07 Kenichi Handa <handa@etl.go.jp>
7874
fd6f711b
KH
7875 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
7876 not 0x81.
7877 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
7878
3c014385 7879 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
7880 encoding, not decoding. Fix the handling of latin-jisx0201.
7881 Check for the charset katakana-jisx0201 too.
3c014385 7882 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 7883 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 7884
0da3ecef
GM
78852000-09-07 Gerd Moellmann <gerd@gnu.org>
7886
ab0ee409
GM
7887 * xfaces.c (Vparam_value_alist): New variable.
7888 (syms_of_xfaces): Initialize it.
7889 (Finternal_set_lisp_face_attribute): Avoid more consing.
7890
7891 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
7892 specially.
7893 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
7894 (Qbackground_mode): New variable.
7895 (syms_of_frame_1): Initialize Qbackground_mode.
7896
7897 * lisp.h (Qdisplay): Declare extern.
1091dd67 7898
0da3ecef
GM
7899 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
7900 change face on all frames, and change the default for new frames.
7901
b14654b9
DL
79022000-09-07 Dave Love <fx@gnu.org>
7903
7904 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
7905
d24fd56f
KH
79062000-09-07 Kenichi Handa <handa@etl.go.jp>
7907
794f3670
KH
7908 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
7909
0fddd0dc
KH
7910 * charset.c: Include composite.h
7911 (lisp_string_width): New function.
7912 (Fstring_width): Call lisp_string_width instead of strwidth.
7913
7914 * Makefile.in (charset.o): Depends on composite.h.
7915
d24fd56f
KH
7916 * process.c (read_process_output): Before inserting the decoded
7917 text in the buffer, adjust the multibyteness.
7918
fa0b693c
GM
79192000-09-06 Gerd Moellmann <gerd@gnu.org>
7920
52283633 7921 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
7922 buffer's text buffer is null, map new memory.
7923
0a58f946
GM
7924 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
7925 POINTER_TYPE and size_t.
7926 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
7927 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
7928 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
7929 [REL_ALLOC_MMAP]: New macros.
7930 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
7931 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
7932 [REL_ALLOC_MMAP]: New functions.
7933
7934 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
7935 before and after unexec.
7936
7937 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
7938 text buffers if necessary.
7939
7940 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
7941 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
7942 in prototypes.
7943
fa0b693c
GM
7944 * config.in (HAVE_MMAP): Add #undef.
7945
877055f6
GM
79462000-09-05 Gerd Moellmann <gerd@gnu.org>
7947
08ba3862
GM
7948 * frame.c (Qdisplay_type): New variable.
7949 (syms_of_frame_1): Initialize it.
7950 (Fframe_parameter): New function that avoids consing.
7951 (syms_of_frame): Defsubr it.
7952
66ffe51c
GM
7953 * buffer.c (Fother_buffer): Consider buffers as invisible when
7954 they are displayed in a window on an invisible frame.
7955
877055f6
GM
7956 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
7957 get-largest-window always return nil.
7958
bb970e67
GM
79592000-09-04 Gerd Moellmann <gerd@gnu.org>
7960
7961 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
7962 variable; recognize Emacs 19 elc files.
7963
7a3d0e0e
MB
79642000-09-04 Miles Bader <miles@gnu.org>
7965
7966 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
7967 before initially popping up the menu, so the menu doesn't flash
52283633 7968 when the face settings are significantly different from the defaults.
7a3d0e0e 7969
14473664
SM
79702000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7971
7972 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7973 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7974 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7975 (BIT_UNIBYTE): Remove.
7976 (re_match_2_internal): Delete corresponding code and streamline the
7977 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7978 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7979 (re_wctype_t): New type.
7980 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7981 (regex_compile): Use them and fix handling of overly long char classes.
7982
c1174479
AI
79832000-09-03 Andrew Innes <andrewi@gnu.org>
7984
f8803e97
AI
7985 * makefile.w32-in: Change to DOS line endings.
7986
c1174479
AI
7987 * s/ms-w32.h (ORDINARY_LINK): New define.
7988
7989 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7990 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7991
7992 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7993 (distclean): Delete them here instead.
7994
44ef7cf6
AI
7995 * w32proc.c (compare_env): Convert to uppercase for comparison,
7996 not lowercase, to match how the native Windows shell works.
7997
49b3bd82
JR
79982000-09-03 Jason Rumney <jasonr@gnu.org>
7999
8000 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8001 CVS changes the line-ends when checking in/out on DOS/Windows.
8002
8003 * makefile.nt (emacs): Do not change directory to run temacs, as
8004 the load-path is set relative to current directory.
8005
a3d35a39
MB
80062000-09-03 Miles Bader <miles@gnu.org>
8007
8008 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8009
d276b0cf
GM
80102000-09-02 Gerd Moellmann <gerd@gnu.org>
8011
715e84c9
GM
8012 * xdisp.c (redisplay_mode_lines): New function.
8013 (display_mode_lines): Return number of mode lines displayed.
8014 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8015 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8016
8892f40b
GM
8017 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8018 string.h and strings.h.
8019 (index) [HAVE_INDEX]: Add prototype.
8020
d276b0cf
GM
8021 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8022 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8023
8024 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8025 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8026
38404229
GM
80272000-09-01 Gerd Moellmann <gerd@gnu.org>
8028
8029 * lread.c (read1): Accept `?' as symbol constituent, for
8030 compatiblity with XEmacs.
8031
c0f9ea08
SM
80322000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8033
8034 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8035 (struct re_pattern_buffer): Remove newline_anchor.
8036 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8037 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8038 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8039 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8040 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8041 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8042 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8043 Get rid of references to newline_anchor.
8044 (regcomp): Allocate and precompute a fastmap.
8045
8c0f83fe
GM
80462000-08-31 Gerd Moellmann <gerd@gnu.org>
8047
8048 * lread.c (openp): GCPRO local variable `filename'.
8049
4bb91c68
SM
80502000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8051
8052 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8053
8054 * regex.c: Merge some changes from GNU libc. Add prototypes.
8055 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8056 Use memcmp and memcpy instead of bcopy and bcmp.
8057 (init_syntax_once): Use ISALNUM.
8058 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8059 (REG_UNSET_VALUE): Remove. Use NULL instead.
8060 (REG_UNSET, re_match_2_internal): Use NULL.
8061 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8062 New macros.
8063 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8064 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8065 (regex_compile): In handle_interval, return an error rather than try to
8066 unfetch the interval if we can't find the closing brace.
8067 Obey the RE_NO_GNU_OPS syntax bit.
8068 (TOLOWER): New macro.
8069 (regcomp): Use it.
8070 (regexec): Allocate regs.start and regs.end as one block.
8071
5226a931
GM
80722000-08-30 Gerd Moellmann <gerd@gnu.org>
8073
868dd24b
GM
8074 * xdisp.c (echo_area_display): Check display_completed instead
8075 of calling detect_input_pending.
8076
8077 * dispnew.c (update_frame): Only set display_completed here; move
8078 the update_begin and update_end calls here from update_frame_1.
8079 (update_frame_1): Don't set display_completed here, don't call
8080 update_begin/update_end.
8081
5226a931
GM
8082 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8083 instead of store_frame_param.
8084
2a8bd25f
GM
80852000-08-29 Gerd Moellmann <gerd@gnu.org>
8086
8087 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8088 desired window matrix hasn't been displayed, use the current row
8089 instead. Make sure that only those frame rows are updated for
8090 which there exists a corresponding enabled desired row.
52283633 8091
ba3478d9
MB
80922000-08-29 Miles Bader <miles@gnu.org>
8093
8094 * xfaces.c (default_face_vector): New function.
8095 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8096
87d0f685
GM
80972000-08-29 Gerd Moellmann <gerd@gnu.org>
8098
8099 * lread.c (openp): Prevent temporary string passed to
8100 Ffile_readable_p from being garbage collected.
8101
6fa86045
DL
81022000-08-28 Dave Love <fx@gnu.org>
8103
8104 * keymap.c (store_in_keymap): Add `static' to declaration.
8105
bb17930d
GM
81062000-08-28 Gerd Moellmann <gerd@gnu.org>
8107
8108 * emacs.c, callint.c, doc.c, editfns.c
8109 (toplevel) [HAVE_STRING_H]: Include string.h.
8110 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8111 (index): Remove prototypes which might conflict with non-standard
8112 definitions of index/strchr.
8113
8114 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8115 (rindex): Define only if !HAVE_RINDEX.
8116
8117 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8118
8119 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8120
87188200
MB
81212000-08-28 Miles Bader <miles@gnu.org>
8122
8123 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8124 made inconsistent by a font-related attribute in FROM.
8125 (merge_face_inheritance): Add function comment.
8126
41a68aef
KH
81272000-08-28 Kenichi Handa <handa@etl.go.jp>
8128
8129 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8130 the 4th arg (PREV_EVENT) Qt to suppress input method.
8131
f7c436c1
SM
81322000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8133
0b32bf0e
SM
8134 * regex.c: Indent cpp directives and remove parens after `defined'.
8135 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8136 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8137 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8138 (re_compile_pattern): Use size_t for length.
8139 (init_syntax_once): Move to a better place.
8140 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8141 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8142
f7c436c1
SM
8143 * syntax.c (back_comment): Detect cases where a comment-starter is
8144 actually inside another comment as in: /* a // b */ c // d \n.
8145 Make it clear that `comstart_pos' is unused for nested comments.
8146
8147 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8148 (KEYMAPP): New macro.
8149 (Fkeymap_parent, Fset_keymap_parent): Use it.
8150 (fix_submap_inheritance): Mark it static.
8151 (define_as_prefix, describe_buffer_bindings, describe_command)
8152 (describe_translation, describe_map): Complete prototypes.
8153
8154 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8155
8156 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8157 to better match the key-lookup behavior.
8158
6288c62f
GM
81592000-08-27 Gerd Moellmann <gerd@gnu.org>
8160
8161 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8162 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8163
e931344e
EZ
81642000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8165
8166 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8167 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8168 (xterm.o): Depend on coding.h
8169
d10dfeef
KH
81702000-08-26 Kenichi Handa <handa@etl.go.jp>
8171
8172 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8173 the corresponding '#endif'.
8174
2d73e8d3
MB
81752000-08-26 Miles Bader <miles@gnu.org>
8176
8177 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8178 * xfaces.c (QCinherit): New variable.
8179 (syms_of_xfaces): Initialize it.
8180 (LFACE_INHERIT): New macro.
8181 (Finternal_get_lisp_face_attribute)
52283633 8182 (merge_face_vector_with_property)
2d73e8d3
MB
8183 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8184 (check_lface_attrs): Allow new types of face height. Check
8185 inherit attribute.
8186 (CYCLE_CHECK): New macro.
8187 (merge_face_inheritance): New function.
8188 (merge_face_vectors): Merge inherited faces too. Add F and
8189 CYCLE_CHECK arguments.
8190 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8191 (lookup_named_face, lookup_derived_face, realize_named_face)
8192 (face_at_string_position, face_at_buffer_position): Supply
8193 new F and CYCLE_CHECK arguments to merge_face_vectors.
8194 (merge_face_heights): New function.
52283633 8195 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
8196 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8197 handle relative face heights.
8198 (lface_same_font_attributes_p): Compare heights using EQ.
8199
6ce974d4
KH
82002000-08-26 Kenichi Handa <handa@etl.go.jp>
8201
8202 * charset.c (char_to_string): Check the character validity.
52283633 8203 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 8204
dc1e502d
SM
82052000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8206
8207 * regex.c (PUSH_FAILURE_COUNT): New macro.
8208 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8209 Handle popping of a register's or a counter's data.
8210 (POP_FAILURE_POINT): Use the new name.
8211 (re_match_2_internal): Push counter data on the stack for succeed_n,
8212 jump_n and set_number_at and remove misleading dead code in succeed_n.
8213
bd9d0f3f
GM
82142000-08-25 Gerd Moellmann <gerd@gnu.org>
8215
8216 * xdisp.c (redisplay_internal): If considering all windows on all
8217 frames, update the display for each frame as soon as possible,
8218 instead of first building all desired matrices for all frames, and
8219 then updating them all.
8220 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8221
aa5b8e15
GM
82222000-08-24 Gerd Moellmann <gerd@gnu.org>
8223
17494071
GM
8224 * bytecode.c (mark_byte_stack): Add a comment.
8225
52283633
SM
8226 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8227 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
8228 a graphical frame.
8229
c543db81
KH
82302000-08-24 Kenichi Handa <handa@etl.go.jp>
8231
d246d5f5
KH
8232 * minibuf.c (do_completion): Always use compare-string, not
8233 string-equal because the latter doesn't pay attention to
8234 multibyteness of strings.
8235
c543db81
KH
8236 * process.c (create_process): Don't setup raw-text coding here.
8237 (Fopen_network_stream): Don't set coding->src_multibyte and
8238 coding->dst_multibyte here.
8239 (read_process_output): For process filter, return unibyte string
8240 if default-enable-multibyte-characters is nil.
8241 (send_process): If OBJECT is multibyte text, be sure to encoded it
8242 by the specified coding system for the process. Otherwise, setup
8243 raw-text coding.
52283633 8244 (init_process): Don't initialize default-process-coding-system here.
c543db81 8245
9b47cfe0
EZ
82462000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8247
8248 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8249 <scroll-down-aggressively>: Likewise.
8250
f5a36960
KH
82512000-08-23 Kenichi Handa <handa@etl.go.jp>
8252
8253 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8254 zero. Set coding->produced_char correctly.
8255
69a7ffa7
AI
82562000-08-22 Andrew Innes <andrewi@gnu.org>
8257
8258 * makefile.w32-in: New file.
8259
8260 * unexw32.c (unexec): Ignore old_name, and use the actual location
8261 of the current executable instead. Base new_name on this.
8262
8263 * w32proc.c (create_child): Remove reference to security
8264 descriptor, which isn't needed and doesn't compile with mingw32.
8265
8266 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8267 up dllimport attributes.
8268 (x_update_window_end): Update prototype.
8269
8270 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8271 extern, which screws up dllimport attributes.
8272
8273 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8274 up dllimport attributes.
8275
8276 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8277 screws up dllimport attributes.
8278
8279 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8280 up dllimport attributes.
8281 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8282 screws up dllimport attributes.
8283
8284 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8285 up dllimport attributes.
8286
8287 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8288 screws up dllimport attributes.
8289
8290 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8291 screws up dllimport attributes.
8292
8293 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8294 up dllimport attributes.
8295
8296 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8297 unnecessary extern, which screws up dllimport attributes.
8298 (main): Ditto.
8299
8300 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8301 up dllimport attributes.
8302
8303 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8304 unnecessary extern, which screws up dllimport attributes.
8305
8306 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8307 screws up dllimport attributes.
8308
8309 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8310 up dllimport attributes.
8311
8312 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8313
52283633
SM
8314 * w32bdf.c (search_file_line):
8315 (set_bdf_font_info):
8316 (seek_char):
8317 (w32_get_bdf_glyph):
69a7ffa7
AI
8318 (w32_BDF_to_x_font): Fix compile warnings.
8319
52283633 8320 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
8321
8322 * w32select.c: Include keyboard.h before frame.h.
8323
8324 * w32fns.c (max): Define macro.
8325 (JOHAB_CHARSET): Define if not known.
8326 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8327 (Fx_show_tip): Synch with X version.
8328
8329 * w32xfns.c: Include keyboard.h before frame.h.
8330
8331 * w32fns.c: Include keyboard.h before frame.h.
8332
8333 * w32term.c: Include keyboard.h before frame.h.
8334
8335 * fontset.c: Include keyboard.h before frame.h.
8336
8337 * w32inevt.c: Include keyboard.h before frame.h.
8338 (MOUSE_MOVED): Define if not known.
8339
8340 * minibuf.c: Include keyboard.h before frame.h.
8341
8342 * keyboard.c: Include keyboard.h before frame.h.
8343
8344 * indent.c: Include keyboard.h before frame.h.
8345
8346 * dispnew.c: Include keyboard.h before frame.h.
8347
8348 * buffer.c: Include keyboard.h before frame.h.
8349
8350 * alloc.c: Include keyboard.h before frame.h.
8351
8352 * print.c: Include keyboard.h before frame.h.
8353
8354 * process.c: Include keyboard.h before frame.h.
8355
8356 * scroll.c: Include keyboard.h before frame.h.
8357
8358 * sysdep.c: Include keyboard.h before frame.h.
8359
8360 * term.c: Include keyboard.h before frame.h.
8361
8362 * window.c: Include keyboard.h before frame.h.
8363
8364 * xdisp.c: Include keyboard.h before frame.h.
8365 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
8366
8367 * frame.c: Include keyboard.h before frame.h.
8368
8369 * w32heap.h: Undefine min, max.
8370
8371 * w32gui.h: Undefine min, max.
8372
8373 * unexw32.c: Change PUCHAR to PCHAR.
8374 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
8375 (relocate_offset):
8376 (get_section_info):
69a7ffa7
AI
8377 (copy_executable_and_dump_data): Remove unnecessary static defs.
8378 (copy_executable_and_dump_data): Fix compile warnings.
8379
8380 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
8381
8382 * w32console.c (min): Define macro.
8383 (clear_frame, write_glyphs): Fix compile warning.
8384
52283633 8385 * w32proc.c (compare_env):
69a7ffa7
AI
8386 (find_child_console): Fix compile warning.
8387
8388 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
8389 sys_errlist instead of _sys_errlist.
8390 (get_emacs_configuration_options): New function.
8391
8392 * s/ms-w32.h (sys_nerr): Provide default definition.
8393 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
8394 name with _ prepended.
8395 (NSIG): Define if not known.
8396 (get_emacs_configuration): Provide extern declaration.
8397 (get_emacs_configuration_options): Provide extern declaration.
8398 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
8399
8400 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 8401 (map_w32_filename):
69a7ffa7
AI
8402 (read_unc_volume): Fix compile warning.
8403
8404 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
8405 definitions from being used.
8406
8407 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
8408
52283633 8409 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
8410 (open_unc_volume): Make arg const.
8411
8412 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
8413 (read_input_waiting): Remove excess parameter.
8414
8415 * w32.c (init_environment): Call _access.
8416 (check_windows_init_file): Call _close.
8417 (init_user_info): Call _putenv.
8418 (init_environment): Call _putenv and _strdup.
8419 (init_ntproc): Reset volume info cache on startup.
8420
8421 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
8422 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
8423 cannot override the CRT malloc.
8424
8425 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
8426 (LINK_FLAGS): Append to original value of LINK_FLAGS.
8427
8428 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
8429 unless we are linking with a static CRT.
8430 (RVA_TO_PTR): Cast result to unsigned char*.
8431
8432 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
8433 (add_volume_info): Use xstrdup.
8434
25060080
SM
84352000-08-22 Stefan Monnier <monnier@cs.yale.edu>
8436
8437 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
8438 (do_completion, Fminibuffer_complete_word): Use it.
8439 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
8440 var so it can take non-boolean values.
8441
6917e6bb
GM
84422000-08-21 Gerd Moellmann <gerd@gnu.org>
8443
acb7cc89 8444 * editfns.c (find_field): Formatting changes.
52283633 8445 (toplevel): Some old-style function forward declarations
acb7cc89
GM
8446 changed to prototypes, some new protypes added, some functions
8447 made static.
8448
8449 * lisp.h (set_time_zone_rule): Add prototype.
8450 (use_dialog_box): External declaration.
8451
0bbfdc25
GM
8452 * keyboard.c (gen_help_event): Add parameter SIZE.
8453 (kbd_buffer_events_waiting): Slightly rewritten.
8454 (clear_event): New function.
8455 (kbd_buffer_get_event): Use it, and clear the input_events of
8456 HELP_EVENTs.
8457 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
8458 don't fill the newly created array with nils.
8459 (toplevel): Convert some old-style function forward declarations
8460 to prototypes.
8461
8462 * keyboard.h (gen_help_event): Change prototype.
8463
8464 * xterm.c (XTread_socket): Change calls to gen_help_event.
8465
8466 * w32term.c (w32_read_socket): Change calls to gen_help_event.
8467
6917e6bb
GM
8468 * eval.c (Fmacroexpand): Doc fix.
8469
e5cd3d11
JR
84702000-08-20 Jason Rumney <jasonr@gnu.org>
8471
8472 * w32term.h (x_display_info_for_display): Remove as this function
8473 does not exist on W32.
8474
8475 * w32term.c (help_echo_window): New variable.
8476 (syms_of_w32term): staticpro it.
8477 (note_mode_line_highlight): Set it.
8478 (XTextExtents16): Removed as there is no equivalent on W32.
8479 (x_compute_glyph_string_overhangs): Incomplete body removed, as
8480 the X way of doing this will not work for W32.
8481 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
8482 (x_draw_image_foreground): Avoid drawing outside of the clip area
8483 when image doesn't have a mask.
8484 (note_mouse_highlight): Process overlays in the right order of
8485 priority. Set help_echo_window.
8486 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
8487 because that's more visible for large images.
8488
8489 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
8490 name to single_keymap_panes.
8491 (w32_menu_show): Set wv->title when dealing with titles.
8492 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
8493
6e69ab8c
MB
84942000-08-21 Miles Bader <miles@gnu.org>
8495
8496 * minibuf.c (do_completion): Try again if we rewrite the input
8497 string, but no completion was done, so that any completion message
8498 will be correct.
8499
511bd4eb
GM
85002000-08-20 Gerd Moellmann <gerd@gnu.org>
8501
8502 * xfaces.c (lface_equal_p): Compare strings differently.
8503 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
8504 (realize_tty_face): Use them.
8505 (syms_of_xfaces): Initialize new variables.
8506 (map_tty_color): New function, extracted from realize_tty_face.
8507 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
8508 foreground or background color, store the new color name in the
8509 realized face; previous code trying to do this had no effect.
8510 (realize_tty_face): Use map_tty_color.
8511 (Fclear_face_cache): Set face_change_count and ensure thorough
8512 redisplay.
8513
1433385f
GM
85142000-08-19 Gerd Moellmann <gerd@gnu.org>
8515
511bd4eb
GM
8516 * undo.c (record_first_change, record_marker_adjustment): Don't
8517 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 8518
419ac0a2
KH
85192000-08-18 Kenichi Handa <handa@etl.go.jp>
8520
8521 * coding.c (decode_coding_string): Set members consumed,
8522 consumed_char, produced, produced_char of *coding correctly. If
8523 decode_coding doesn't consume any byte, don't try anymore.
8524 (encode_coding_string): Likewise.
8525
7eb9e30d
GM
85262000-08-18 Gerd Moellmann <gerd@gnu.org>
8527
511bd4eb
GM
8528 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
8529 conditional have void type, for Standard C compilers.
7eb9e30d
GM
8530
8531 * xdisp.c (redisplay_internal): Compare windows for equality with
8532 EQ, instead of applying XWINDOW to something that might not
8533 be a window.
52283633 8534
dd34a735
KH
85352000-08-18 Kenichi Handa <handa@etl.go.jp>
8536
8537 * fontset.c (Finternal_char_font): Search only the selected frame
8538 for a window of the current buffer.
8539
385ff9e3
GM
85402000-08-18 Gerd Moellmann <gerd@gnu.org>
8541
511bd4eb 8542 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
8543 Lisp_Objects.
8544
385ff9e3
GM
8545 * keyboard.c (kbd_buffer_get_event): Handle the case that the
8546 second half of a HELP_EVENT is found at the start of kbd_buffer.
8547
d6abb4c7
MB
85482000-08-18 Miles Bader <miles@gnu.org>
8549
4618074a
MB
8550 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
8551
d6abb4c7
MB
8552 * editfns.c (save_restriction_save): Rewrite to use markers.
8553 (save_restriction_restore): Rewrite to understand new form of data
8554 saved by save_restriction_save.
8555 (Fsave_restriction): Remove cautionary note in doc-string.
8556
a7b28523
GM
85572000-08-17 Gerd Moellmann <gerd@gnu.org>
8558
8559 * fileio.c (build_annotations): Add a comment explaining the
8560 return value of format-annotate-function. Replace a spurious call
8561 to Flength with a CONSP test. Call format-annotate-function with
8562 a fifth arg specifying how many times the function is been called
8563 in a row, to let it choose temporary buffers appropriately.
8564
03c9ed77
DL
85652000-08-17 Dave Love <fx@gnu.org>
8566
8567 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
8568 declare make_temp_name twice.
8569
52283633 8570 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
8571 (unreadpure): Give it an arg.
8572
8573 * unexalpha.c: Prototype fatal_unexec, mark_x,
8574 update_dynamic_symbols. Declare unexec as void.
8575
8576 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
8577 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
8578
8579 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 8580 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
8581
8582 * alloca.c: Use #error.
8583 [POINTER_TYPE]: Use it.
8584
8585 * eval.c (Fdefvar): Doc fix.
8586
8587 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
8588 INITIALIZE_INTERVAL.
8589
8590 * buffer.h: Avoid DECLARE_INTERVALS.
8591
8592 * config.in: Add size_t.
8593
aae41d97
EZ
85942000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
8595
8596 * w16select.c (set_clipboard_data): If there's not enough memory
8597 to put text into clipboard, return 1, as Fw16_set_clipboard_data
8598 expects. In case of other failures, return 3.
8599 (system_error_msg): New error message.
8600 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
8601 system_error_msg.
8602
65aa5e85
GM
86032000-08-16 Gerd Moellmann <gerd@gnu.org>
8604
8605 * term.c (write_glyphs): Also turn off inverse video after turning
8606 off other appearances in case TS_exit_attribute_mode is not equal
8607 to TS_end_standout_mode.
8608 (insert_glyphs): Turn inverse video on/off for each run of glyphs
8609 with the same face.
8610 (turn_off_face): Reset standout_mode only if
8611 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
8612 is equal to TS_end_standout_mode.
8613
ece23901
KH
86142000-08-16 Kenichi Handa <handa@etl.go.jp>
8615
9d7bcb2e
KH
8616 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
8617 sequence at the end of the source block.
8618
ece23901
KH
8619 * ccl.c (Fccl_program_p): Docstring modified.
8620 (Fccl_execute): Likewise.
8621 (Fccl_execute_on_string): Likewise.
8622
5e30eaa2
EZ
86232000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
8624
8625 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
8626
290602fd
KH
86272000-08-16 Kenichi Handa <handa@etl.go.jp>
8628
8629 The following changes are mainly to fix bugs of
8630 encode/decode-coding-string failing if encoding/decoding return
8631 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
8632 variable conversion_buffer.
8633
8634 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
8635 decrement dst_end to avoid buffer overflow in the later call of
8636 string_as_multibyte
8637
8638 * coding.h (conversion_buffer_size, conversion_buffer)
8639 (get_conversion_buffer): Extern deleted.
8640
8641 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
8642 (conversion_buffer, conversion_buffer_size): Variables deleted.
8643 (get_conversion_buffer): Function deleted.
8644 (struct conversion_buffer): New structure.
8645 (MAX_ALLOCA): New macro.
8646 (allocate_conversion_buffer): New macro.
8647 (extend_conversion_buffer, free_conversion_buffer): New functions.
8648 (ccl_coding_driver): Set coding->result.
8649 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
8650 this is the last block of source.
8651 (encode_coding): Likewise. Handle the source block as the last
8652 one only when the whole source text is consumed.
8653 (decode_coding_string): Handle the case that the output buffer is
8654 too small to decode the whole source text. Use
8655 allocate_conversion_buffer, extend_conversion_buffer and
8656 free_conversion_buffer, not get_conversion_buffer.
8657 (encode_coding_string): Likewise.
8658 (init_coding): Function deleted.
52283633 8659 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
8660
8661 * emacs.c (main): Don't call init_coding.
8662
52283633 8663 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
8664
8665 * term.c (write_glyphs): Use a locally declared conversion_buffer.
8666 (insert_glyphs): Likewise.
8667
8668 * w32console.c (write_glyphs): Use a locally declared
8669 conversion_buffer.
8670
b9f80d41
EZ
86712000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
8672
8673 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
8674 member of display_info is NULL.
8675
32dc52f7
GM
86762000-08-15 Gerd Moellmann <gerd@gnu.org>
8677
52283633 8678 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 8679
32dc52f7 8680 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 8681 appearances with capability `me'.
32dc52f7
GM
8682 (write_glyphs): Switch on inverse video before each face change.
8683
4eb22d33
DL
86842000-08-14 Dave Love <fx@gnu.org>
8685
8686 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
8687 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
8688 (lisp_free): Declare and make static.
8689
8690 * window.c: Fix embedded comment.
8691 (syms_of_window): Fix doc string.
8692
90cbf47e
GM
86932000-08-14 Gerd Moellmann <gerd@gnu.org>
8694
52283633 8695 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
8696 make sure to print `C-' before `M-', like in the manual.
8697
440fc135
GM
86982000-08-11 Gerd Moellmann <gerd@gnu.org>
8699
8700 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
8701 since they aren't relocated anymore.
52283633 8702 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
8703
8704 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 8705 partially visible line which is smaller than the window's height.
440fc135 8706
6e264fad
KH
87072000-08-11 Kenichi Handa <handa@etl.go.jp>
8708
8709 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 8710 the multibyte form of eight-bit-control characters.
6e264fad
KH
8711 (Fccl_execute_on_string): Initialize ccl->multibyte.
8712
8713 * ccl.h (struct ccl_program): New member multibyte.
8714
8715 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
8716
c371f69a
KH
87172000-08-11 Kenichi Handa <handa@etl.go.jp>
8718
8719 * regex.c (regex_compile) <normal_char>: Pay attention to
8720 multibyteness.
8721 (analyse_first) <exactn>: Setup fastmap correctly for
8722 eight-bit-control characters.
8723
87242000-08-11 Kenichi Handa <handa@etl.go.jp>
8725
52283633 8726 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
8727
8728 * keyboard.c (make_lispy_event): Handle the new event type
8729 multibyte_char_keystroke.
8730
8731 * xterm.c: Include coding.h.
8732 (XTread_socket): Work around a bug of XmbLookupString. If the
8733 input is from XIM, decode it according to the current locale. In
8734 that case, generate multibyte_char_keystroke events.
8735
b8ddbe71
KH
87362000-08-11 Kenichi Handa <handa@etl.go.jp>
8737
8738 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
8739 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
8740
47589c8c
GM
87412000-08-10 Gerd Moellmann <gerd@gnu.org>
8742
8743 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
8744 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
8745 (move_it_in_display_line_to): Record iterator's ascent and descent
8746 before producing glyphs, and restore them when we know the glyph
8747 doesn't fit on the line.
8748 (move_it_to): Restructured so that it's easier to debug. If
8749 moving to a vpos, and not moving to an x or character position,
8750 stop as soon as the specified vpos is reached; don't move further
8751 into that line because that might change the computed line height.
8752 (try_cursor_movement): New function, extracted from the cursor
8753 movement branch of redisplay_window. If ending on a partially
8754 visible line, don't try to scroll if the cursor line is taller
8755 than the window.
8756 (redisplay_window): Use try_cursor_movement.
8757
8758 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
8759 because that function doesn't cope with variable-height lines.
8760
8761 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
8762 box cursor because that's better visible for large images.
52283633 8763
c51bacd6
MB
87642000-08-10 Miles Bader <miles@gnu.org>
8765
8766 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
8767
bea56df7
GM
87682000-08-10 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xdisp.c (Vmessages_buffer_name): New variable.
8771 (message_dolog): Use it.
8772 (syms_of_xdisp): Initialize it.
8773
99cd7364
EZ
87742000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
8775
52283633 8776 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
8777 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
8778 redundant now that keyboard.h is included.
8779
7d093d56
EZ
87802000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
8781
8782 * keyboard.c (kbd_buffer_events_waiting): New function.
8783
8784 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
8785
8786 * msdos.c: Include keyboard.h.
8787 (XMenuActivate): Empty no_event events from the event buffer. If
8788 no events are left after that, call clear_input_pending.
8789 (mouse_clear_clicks): New function, code moved from mouse_init.
8790 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
8791 mouse driver to ``forget'' any past clicks.
8792
8793 * Makefile.in (msdos.o): Depend on keyboard.h.
8794
41e757a6
GM
87952000-08-09 Gerd Moellmann <gerd@gnu.org>
8796
8e7bd231
GM
8797 * lisp.h (input_pending): External declaration.
8798
8799 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 8800
8e7bd231
GM
8801 * xdisp.c (echo_area_display): Display thoroughly if input is
8802 pending. Bind redisplay-dont-pause to t during the redisplay.
8803 in case input is pending.
8804
8805 * dispnew.c (Qredisplay_dont_pause): New variable.
8806 (syms_of_display): Initialize and staticpro it.
8807 (update_frame_1): Don't interrupt the display for pending input if
8808 redisplay_dont_pause is set.
52283633 8809
43028b7e
GM
8810 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
8811
41e757a6
GM
8812 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8813
2f2174fa
KH
88142000-08-09 Miles Bader <miles@lsi.nec.co.jp>
8815
8816 * callproc.c (Fcall_process): Terminate the unwind-protect around
8817 the post-read-conversion of coding system.
8818
0a6fd67e
MB
8819 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
8820 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
8821 * buffer.h (overlays_at): Update prototype.
8822 * xdisp.c (next_overlay_change): Update call to overlays_at.
8823 * xfaces.c (face_at_buffer_position): Likewise.
8824 * textprop.c (Fget_char_property): Likewise.
8825 * xterm.c (note_mouse_highlight): Likewise.
8826
0c80756e
MB
8827 * minibuf.c (do_completion): Don't consider a simple change of
8828 case as `completion'.
8829
975f250a
KR
88302000-08-08 Ken Raeburn <raeburn@gnu.org>
8831
52283633 8832 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
8833 * undo.c (record_delete): Make sure last_point_position_buffer is
8834 a buffer before comparing pointers.
8835
8836 * coding.h (decode_coding_string): Declare.
8837
8838 * intervals.h (Fprevious_single_char_property_change): Declare.
8839
8840 * textprop.c (Fprevious_single_char_property_change): Don't do
8841 arithmetic directly on lisp objects.
8842
52283633 8843 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
8844
8845 * keyboard.h (menu_item_eval_property): Declare.
8846
8847 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
8848 reuse as buffer name, instead of recreating (and discarding) every
8849 time a message is logged.
8850 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
8851 (current_message_1, truncate_message_1, set_message_1)
8852 (display_echo_area_1, resize_mini_window_1): Signatures changed.
8853 (current_message, truncate_echo_area, display_echo_area)
8854 (resize_echo_area_axactly): Changed calls.
b347b3fd 8855
975f250a 8856 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 8857 Lisp object.
975f250a 8858 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 8859 must be an integer, not a Lisp object.
975f250a 8860
46dc9912
KH
88612000-08-08 Kenichi Handa <handa@etl.go.jp>
8862
8863 * charset.c (Fchar_width): Doc fix.
8864
9f6d1a6c
GM
88652000-08-08 Gerd Moellmann <gerd@gnu.org>
8866
8867 * charset.c (Fstring_width): Doc fix.
8868
ff3d9573
GM
88692000-08-07 Gerd Moellmann <gerd@gnu.org>
8870
41e757a6 8871 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
8872 line, clear ascent and descent members of the iterator structure;
8873 the height of the continued line does not affect the height of the
8874 continuation line.
8875 (make_cursor_line_fully_visible): Do nothing if cursor is on a
8876 line taller than the window.
8877 (redisplay_window) <forced window start>: Handle case that the
8878 middle of the window is not found in any row.
8879 (dump_glyph_row): Show more information.
8880 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
8881 first text line in a glyph matrix.
8882
8883 * xterm.c (x_draw_image_foreground): Avoid drawing outside
8884 of the clip area when image doesn't have a mask.
8885
70fc58b3
GM
8886 * fns.c (sweep_weak_table): Fix survival conditions for
8887 key-or-value and key-and-value weakness.
8888
8889 * .gdbinit (xhashtable): New command.
8890
ac0e96ee
GM
8891 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
8892 tables out of the list of all weak hash tables.
8893
ff3d9573
GM
8894 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
8895 a new buffer is created, make sure echo_area_buffer[] references
8896 the new buffer.
8897
e0d8827b
EZ
88982000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
8899
8900 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
8901 the doc string.
8902
c6f35378
KH
89032000-08-07 Kenichi Handa <handa@etl.go.jp>
8904
8905 * syntax.c (skip_chars): Fix previous change. Make the handling
8906 of unibyte string consistent with that of regex search.
8907
1fd4c450
GM
89082000-08-05 Gerd Moellmann <gerd@gnu.org>
8909
e49aa397
GM
8910 * xmenu.c (popup_get_selection): Use xfree instead of free.
8911
8912 * fileio.c (Finsert_file_contents): Use xfree instead of free.
8913
8914 * editfns.c (Ftranspose_regions): Use xfree instead of free.
8915
8916 * callproc.c (child_setup): Use xfree instead of free.
8917
8918 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
8919 instead of malloc.
8920 (run_mac_command, closedir): Use `xfree' instead of `free'.
8921
8922 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
8923
8924 * eval.c (error): Use xfree instead of free.
8925
1fd4c450
GM
8926 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
8927
8928 * fns.c: Replace `illegal' with `invalid'.
e49aa397 8929 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 8930
82d497fc
KH
89312000-08-05 Kenichi Handa <handa@etl.go.jp>
8932
8933 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
8934 conversion.
8935
59f953a2
NF
89362000-08-04 Noah Friedman <friedman@splode.com>
8937
8938 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
8939 docstring.
8940
688351f2
GM
89412000-08-04 Gerd Moellmann <gerd@gnu.org>
8942
8943 * syntax.c (skip_chars): Fix typo in error message.
8944
2dad51cc
AS
89452000-08-04 Andreas Schwab <schwab@suse.de>
8946
8947 * m/ia64.h: Moved from s/ia64.h.
8948
99bb2c60
KH
89492000-08-04 Kenichi Handa <handa@etl.go.jp>
8950
082a1df2
KH
8951 * process.c (read_process_output): Big simplification. Handle
8952 composition and post-read-conversion of coding system correctly.
8953 (send_process): Handle composition correctly.
8954
8955 * callproc.c (Fcall_process): Handle post-read-conversion of
8956 coding system if any.
8957
99bb2c60
KH
8958 * coding.c (decode_coding_iso2022): More strict check for handling
8959 single shifting.
082a1df2
KH
8960 (coding_restore_composition): Pay attention to the case that
8961 cmp_data is not set properly (because of invalid code in the
8962 source text).
8963 (run_pre_post_conversion_on_str): Include text properties in the
8964 resulting string.
8965 (decode_coding_string): Set members of coding correctly.
99bb2c60 8966
f4988be7
GM
89672000-08-03 Gerd Moellmann <gerd@gnu.org>
8968
8969 * s/ia64.h: New file.
8970
8971 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8972 Use NULL instead of 0 at the end of variable argument list of
8973 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8974 sizeof (int) < sizeof (void *).
8975
8976 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8977 of variable argument lists of XtVaGetValues and XtVaSetValues.
8978
8979 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8980 variable argument lists of XtVaGetValues and XtVaSetValues.
8981
ead53494
GM
89822000-08-02 Gerd Moellmann <gerd@gnu.org>
8983
8984 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8985 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8986
8987 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8988 prototype.
8989
8990 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8991 in call to Fsingle_key_description.
8992
8993 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8994 Callers changed.
8995
89962000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8997
8998 * window.c (display_buffer_reuse_frames): New variable.
8999 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9000 frames displaying BUFFER.
52283633 9001 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 9002
10b0f752
MB
90032000-08-01 Miles Bader <miles@gnu.org>
9004
9005 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9006 when to constrain NEW_POS (they were pretty screwed up before).
9007
16425c4a
EZ
90082000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9009
9010 * msdos.c (run_msdos_command): Save and restore the master
9011 environment, for the case that child_setup signals an error.
9012 When mirroring slashes in DOS shell commands, don't fail when
9013 argv[2] has embedded blanks.
da288c14
EZ
9014 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9015 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9016 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
9017
9018 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9019 using alloca; free it after run_msdos_command returns.
9020
27f73852
DL
90212000-07-27 Dave Love <fx@gnu.org>
9022
52283633
SM
9023 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9024 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
9025
9026 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9027
c0261b5e
EZ
90282000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9029
9030 * editfns.c (lisp_time_argument): Fix last change.
9031
b548072f
GM
90322000-07-27 Gerd Moellmann <gerd@gnu.org>
9033
3ab82477
GM
9034 * fns.c (Fdelete): Make it work on vectors and strings in addition
9035 to lists.
9036
b548072f
GM
9037 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9038 (syms_of_fns): Initialize new variables.
52283633 9039 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
9040 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9041 weakness, with t meaning the same as `key-and-value'.
9042
91ae8751
KH
90432000-07-27 Kenichi Handa <handa@etl.go.jp>
9044
9045 * coding.h (struct coding_system): Member safe_charset deleted.
9046
9047 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
9048 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9049 New variables.
91ae8751
KH
9050 (coding_safe_chars): New function.
9051 (CODING_SAFE_CHAR_P): New macro.
9052 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 9053 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
9054 (detect_coding_iso2022): New local variable safe_chars.
9055 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9056 safe_charsets member of the coding system.
9057 (decode_coding_iso2022): New local variable safe_chars.
9058 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9059 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9060 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9061 (ENCODE_UNSAFE_CHARACTER): New macro.
9062 (encode_coding_iso2022): New local variable safe_chars. Check
9063 unsafe chars.
9064 (setup_coding_system): Delete the code to initialize
9065 coding->safe_charses
9066 (intersection, find_safe_codings): New functions.
9067 (Ffind_coding_systems_region_internal): New function.
9068 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9069 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9070 variable and initialize it.
9071
9072 * fns.c (char_table_ref_and_index): New function.
9073
9074 * lisp.h (char_table_ref_and_index): Add prototype.
9075
34a7a267
SS
90762000-07-26 Sam Steingold <sds@gnu.org>
9077
9078 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 9079 (Ffloat_time): New built-in Lisp function.
34a7a267 9080
a95cb10a
GM
90812000-07-26 Gerd Moellmann <gerd@gnu.org>
9082
3353ef5a
GM
9083 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9084 for the character code.
9085
9086 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9087 GNU/Linux.
9088
a95cb10a
GM
9089 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9090 if called for a popup menu.
9091 (xmenu_show): Store help string in widget values.
9092
b4a12321
DL
90932000-07-26 Dave Love <fx@gnu.org>
9094
9095 * syswait.h: Move some definitions.
9096 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9097 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9098 perspicuous definitions.
9099 (WTERMSIG): Fix bit pattern used.
9100
13f5ad37
KH
91012000-07-26 Kenichi Handa <handa@etl.go.jp>
9102
9103 * print.c (print_object): If vector printing is truncated, print
9104 "..." to indicate it as well as the case of list printing.
9105
070fe99c
GM
91062000-07-25 Gerd Moellmann <gerd@gnu.org>
9107
969065c3
GM
9108 * xdisp.c (next_element_from_display_vector): Improve comments.
9109
9110 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9111 for the character code, and the rest for the face id as in 20.x.
9112 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9113
9114 * window.c (window_display_table): Cleaned up.
9115
070fe99c
GM
9116 * syntax.c (Fforward_word): Add last arg nil in call of
9117 Fconstrain_to_field.
9118
bad77ef7
EZ
91192000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9120
969065c3 9121 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
9122 identical but for the letter-case, don't call
9123 barf_or_query_if_file_exists.
bad77ef7 9124
c28da489
MB
91252000-07-25 Miles Bader <miles@gnu.org>
9126
9127 * editfns.c (find_field): Honor special `boundary' fields.
9128 (Qboundary): New variables.
9129 (syms_of_editfns): Initialize Qboundary.
9130 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9131 Use scan_buffer instead of find_before_next_newline, because it
9132 allows us to detect the boundary case where there's a newline at
9133 the search limit.
9134 * lisp.h (Fconstrain_to_field): Update external declaration.
9135
e3c31fd5
GM
91362000-07-24 Gerd Moellmann <gerd@gnu.org>
9137
9138 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9139 if that is nil.
c28da489 9140
c66c29a2
DL
91412000-07-24 Dave Love <fx@gnu.org>
9142
9143 * s/sunos4-0.h, s/sol2.h:
9144 (LIBS_TERMCAP): Move from m/sparc.h.
9145
9146 * m/sparc.h (TERMINFO): Moved to system files (probably only
9147 relevant for sunos4 judging by its vintage).
9148 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9149 __arch64__.
9150
fbe0a958
EZ
91512000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9152
9153 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9154 name to single_keymap_panes.
9155
7d88e5c9
AS
91562000-07-24 Andreas Schwab <schwab@suse.de>
9157
9158 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9159
e024b101
GM
91602000-07-24 Gerd Moellmann <gerd@gnu.org>
9161
9162 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9163 parameters instead of using int parameters. Expect FN to accept
9164 EMACS_INT parameters.
9165 (display_echo_area, resize_echo_area_axactly, current_message)
9166 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9167 with new argument list.
9168 (resize_mini_window_1): New callback function.
9169 (current_message_1, truncate_message_1, set_message_1): Change
52283633 9170 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 9171
25c1a9ce
KH
91722000-07-24 Kenichi Handa <handa@etl.go.jp>
9173
9174 * fontset.c (fontset_ref): Remove INLINE declaration.
9175 (fontset_ref_via_base): Likewise.
9176 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9177 to downcase.
9178
7f987ac0
EZ
91792000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9180
9181 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9182 correct order of priority. If help echo was found in an overlay,
9183 use that overlay as the object in which the help echo was found.
9184
e2db3069
MB
91852000-07-22 Miles Bader <miles@gnu.org>
9186
9187 * textprop.c (Fprevious_single_char_property_change): The initial
9188 property value should be from the position preceding POSITION, not
9189 following it.
9190
5e3203e4
EZ
91912000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9192
9193 * coding.c (syms_of_coding): Doc fix for
9194 inhibit-iso-escape-detection.
9195
62145073
GM
91962000-07-21 Gerd Moellmann <gerd@gnu.org>
9197
c20aeb83
GM
9198 * xterm.c (note_mouse_highlight): Process overlays in the right
9199 order of priority.
34a7a267 9200
743934db
GM
9201 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9202
9203 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 9204 overlay, use that overlay as the object in which the help was found.
743934db 9205
d1dc7e43 9206 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 9207
62145073
GM
9208 * window.c (foreach_window): Instead of a fake variable argument
9209 list, take one USER_DATA argument.
9210 (foreach_window_1): Likewise, and call callback functions with two
9211 args, the window and USER_DATA.
9212 (struct check_window_data): New struct.
9213 (check_window_containing): Use it.
9214 (window_from_coordinates): Set up a struct check_window_data for
9215 foreach_window.
9216 (add_window_to_list, freeze_window_start): Change parameters
9217 according to new calling convention.
9218
9219 * window.h (foreach_window): Change prototype.
9220
9221 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9222
92232000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9224
9225 * xmenu.c (menu_help_callback): Call show_help_echo with
9226 additional arguments OBJECT and POS.
9227
11270583
KH
92282000-07-21 Kenichi Handa <handa@etl.go.jp>
9229
07b14857
KH
9230 * data.c (Faset): Allow storing any multibyte character in a
9231 string. Convert unibyte string to multibyte if necessary.
9232
11270583
KH
9233 * xfns.c (x_encode_text): New function.
9234 (x_set_name): Use x_encode_text.
9235 (x_set_title): Likewise.
9236
9237 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9238
9239 * xterm.h (x_encode_text): Add prototype.
9240
bc75b4fd
DL
92412000-07-20 Dave Love <fx@gnu.org>
9242
9243 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9244 xfree, not free.
9245
48c14970
EZ
92462000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9247
9248 * msdos.c (help_echo_window): New variable.
9249 (syms_of_msdos): Initialize and staticpro it.
9250 (IT_note_mode_line_highlight): Set help_echo_window.
9251 (IT_note_mouse_highlight): Ditto.
9252 (dos_rawgetc): Store help_echo_window in the second event produced
9253 for HELP_EVENTs.
9254
9255 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9256 Record the object that generated the help echo and the position of
9257 that object in help_echo_object and help_echo_pos. Record that
9258 some glyphs in a row are displayed in mouse-face.
9259 (IT_update_begin): Don't clear mouse highlight unless one of the
9260 enabled glyph rows is marked as being displayed in mouse-face.
9261 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9262 and position recorded in help_echo_object and help_echo_pos to the
9263 event queue.
9264 (IT_menu_display): Accept a new argument PN: the pane number of
9265 the current menu pane. Record the pane number and the item
9266 number of the item which has associated help string.
9267 (XMenuActivate): Update the prototype for help_callback in
9268 function declaration. Call IT_menu_display with the current menu
9269 pane number as an additional argument. Call help_callback with
9270 two additional arguments: the pane number and the item number of
9271 the menu item associated with the help text.
9272 (help_echo_object, help_echo_pos): New variables.
9273 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9274
9275 * msdos.h (XMenuActivate): Update prototype.
9276
4279296d
GM
92772000-07-19 Gerd Moellmann <gerd@gnu.org>
9278
47db06aa
GM
9279 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9280 Add some more prototypes.
9281
9282 * xterm.c, xterm.h: Add some more prototypes.
9283
9284 * lisp.h (Fnext_single_char_property_change): Add prototype.
9285
9286 * dispnew.c (direct_output_for_insert): Remove confusing
9287 outer local variable mouse_face_overwritten_p.
9288 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9289
4279296d
GM
9290 * alloc.c (allocate_string_data): Don't copy old string contents.
9291
670acd62
KH
92922000-07-19 Kenichi Handa <handa@etl.go.jp>
9293
9294 * coding.c (code_convert_region): Delete text properties before
9295 shrinking the conversion region.
9296
7cea38bc
GM
92972000-07-18 Gerd Moellmann <gerd@gnu.org>
9298
dc1cac59
GM
9299 * dispnew.c (update_text_area): Write the whole row if it
9300 has mouse-face in it.
9301
85a8aca9
GM
9302 * xfaces.c (face-alternative-font-family-alist): Remove
9303 DEFVAR_LISP; staticpro instead.
9304
34a7a267 9305 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
9306 new arguments.
9307
9308 * keyboard.c (show_help_echo): Add parameter WINDOW.
9309 (read_char): Call show_help_echo with window extracted from Lisp
9310 help event.
9311 (gen_help_event): Add parameter WINDOW.
9312
9313 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9314
9315 * xterm.c (help_echo_window): New variable.
52283633 9316 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
9317 (XTread_socket): Pass help_echo_window to gen_help_event.
9318 (syms_of_xterm): Initialize and staticpro help_echo_window.
9319
f8276b77
DL
93202000-07-18 Dave Love <fx@gnu.org>
9321
52283633 9322 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 9323
088831a6
GM
93242000-07-18 Gerd Moellmann <gerd@gnu.org>
9325
3d6cd763
GM
9326 * alloc.c (allocate_string_data): If string had already data
9327 assigned, copy old contents to new string data.
9328
9329 * coding.c (syms_of_coding): Fix typo in spelling of variable
9330 `inhibit-iso-escape-detection'.
9331
088831a6
GM
9332 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9333
9334 * Makefile.in: Add dependencies on dispextern.h.
9335 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9336 `free'; both can conflict with system header files.
9337
bc8a8d55
KH
93382000-07-18 Kenichi Handa <handa@etl.go.jp>
9339
9340 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9341 undefined.
9342
069f5950
DL
93432000-07-18 Dave Love <fx@gnu.org>
9344
9345 * window.c (Fwindow_list): Declare arg `window'.
9346
aa96c820
KH
93472000-07-18 Kenichi Handa <handa@etl.go.jp>
9348
9349 * coding.c (setup_coding_system): Don't override the explicitly
9350 specified designations.
9351
06be8d32
MB
93522000-07-15 Miles Bader <miles@gnu.org>
9353
9354 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9355 from `text_property_eq' and `text_property_stickiness', respectively.
9356 (find_field, Fconstrain_to_field, char_property_eq)
9357 (char_property_stickiness): Changed to call char-property functions
9358 instead of text-property-only ones.
9359
9360 * textprop.c (Fnext_single_char_property_change): Made a subr (was
9361 `next_single_char_property_change'). Do more error checking, and
9362 cleanup limit behavior.
9363 (Fprevious_single_char_property_change): New function.
9364 (syms_of_textprop): Initialize new subrs.
9365
9366 * xdisp.c (display_prop_end, invisible_text_between_p):
9367 Call Fnext_single_char_property_change instead of
9368 next_single_char_property_change.
9369
3fddcdc3
JR
93702000-07-15 Jason Rumney <jasonr@gnu.org>
9371
9372 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
9373 after menu is finished with.
9374 (add_menu_item): Only consider wv->title as a menu title.
9375 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
9376
9377 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
9378 null title.
9379 (FONT_REGEXP): Remove unused macro, and its sub-components.
9380 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
9381
9382 * w32term.c (help_echo_object, help_echo_pos): New variables.
9383 (note_mode_line_highlight): Store additional information about the
9384 help-echo in help_echo_object and help_echo_pos. Check both
9385 `local-map' and `keymap' properties for changing the cursor
9386 (note_mouse_highlight): Store additional information about the
9387 help-echo in help_echo_object and help_echo_pos.
9388 (note_tool_bar_highlight): Set help_echo_object to nil and
9389 help_echo_pos to -1.
9390 (w32_read_socket): Use gen_help_event instead of filling
9391 input_events manually.
9392 (syms_of_w32term): Staticpro help_echo_object.
9393 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 9394 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
9395 (x_clear_mouse_face): New function.
9396 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
9397 (x_update_window_begin): No need to turn off the mouse
9398 highlight here.
9399 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 9400 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
9401 (x_fill_stretch_glyph_string): Consume runs of stretch
9402 glyphs instead of a single one.
9403 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9404 with new argument list.
9405 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9406 (x_append_glyph, x_append_composite_glyph)
9407 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9408 changes in struct glyph starting 1999-12-27. See comments for
9409 xterm.c on 2000-07-05.
9410
178c5d9c
SS
94112000-07-14 Sam Steingold <sds@gnu.org>
9412
9413 * xfaces.c (realize_x_face): Fix the last patch:
9414 check `default_face' before dereferencing.
9415
6fe533f6
DL
94162000-07-14 Dave Love <fx@gnu.org>
9417
069f5950 9418 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 9419
dd7b81cf
KH
94202000-07-14 Kenichi Handa <handa@etl.go.jp>
9421
0693904a 9422 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 9423 default_face's fontset, not using the default fontset.
0693904a 9424
dd7b81cf
KH
9425 * coding.c (inhibit_iso_escape_detection): New variable.
9426 (syms_of_coding): Make it a Lisp variable.
9427 (detect_coding_iso2022): If inhibit_iso_escape_detection is
9428 nonzero, ignore ISO2022's escape sequence.
9429
d5aa31d8
GM
94302000-07-14 Gerd Moellmann <gerd@gnu.org>
9431
e5acf0ca
GM
9432 * alloca.c (malloc) [emacs]: Define as xmalloc.
9433
bd23a692
GM
9434 * xfns.c (Fx_show_tip): If frame parameters contain a position,
9435 use that instead of the mouse position. Add parameters DX and DY.
9436
9437 * dispextern.h (Fx_show_tip): Adjust number of parameters
9438 in prototype.
9439
9662da0b
GM
9440 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
9441 if HELP is a function, call it with OBJECT and POS as parameters
9442 to get the help to display.
9443 (gen_help_event, kbd_buffer_store_help_event): New functions.
9444 (kbd_buffer_get_event): Construct the Lisp help-event differently.
9445 (read_char): Call show_help_echo with new parameters.
9446
178c5d9c 9447 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
9448 Add prototypes.
9449
9450 * xterm.c (help_echo_object, help_echo_pos): New variables.
9451 (note_mode_line_highlight): Store additional information about the
9452 help-echo in help_echo_object and help_echo_pos. Check both
9453 `local-map' and `keymap' properties for changing the cursor
9454 (note_mouse_highlight): Store additional information about the
9455 help-echo in help_echo_object and help_echo_pos.
9456 (note_tool_bar_highlight): Set help_echo_object to nil and
9457 help_echo_pos to -1.
9458 (XTread_socket): Use gen_help_event instead of filling
9459 input_events manually.
9460 (syms_of_xterm): Staticpro help_echo_object.
9461
9462 * xmenu.c (menu_highlight_callback): Use
9463 kbd_buffer_store_help_event instead of setting up and input_event
9464 structure manually.
9465
9466 * xdisp.c (eval_form): GCPRO argument sexpr.
9467 (call_function): New function.
9468 (handle_single_display_prop): Use call_function and FUNCTIONP
9469 instead of checking whether if font_height is a symbol and
9470 using eval_form.
9471
9472 * eval.c (internal_condition_case_2): New function.
9473
9474 * lisp.h (FUNCTIONP): New macro.
9475 (internal_condition_case_2, call_function): Add prototypes.
9476
d5aa31d8
GM
9477 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
9478 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
9479 Always set `arg' member of input_events.
9480 (construct_menu_click): Unused function removed.
9481
9482 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
9483
9484 * w32term.c (construct_mouse_click, construct_mouse_wheel)
9485 (construct_drag_n_drop, x_scroll_bar_handle_click)
9486 (w32_read_socket): Always set `arg' member of input_events.
9487
9488 * keyboard.c (show_help_echo): Use eval_form. Add comment.
9489
9490 * lisp.h (eval_form): Add prototype.
9491
9492 * xdisp.c (eval_form): Make it externally visible.
9493
0f1a9b23
GM
94942000-07-13 Gerd Moellmann <gerd@gnu.org>
9495
9496 * xterm.c (x_handle_tool_bar_click): Store the frame in the
9497 frame_or_window slot of TOOL_BAR_EVENT input events instead of
9498 consing. For prefix events, store the frame in the `arg' slot of
9499 the event, otherwise store the key there.
9500 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 9501 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
9502
9503 * xmenu.c (menu_highlight_callback): Store help string in the
9504 `arg' member of the input event; don't cons.
9505 (menubar_selection_callback): Use the `arg' slot of input events
9506 to queue additional information, instead of consing.
9507
9508 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
9509
9510 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
9511 TOOL_BAR_EVENTs.
9512 (w32_read_socket): Adapt to changes in HELP_EVENTs.
9513
9514 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
9515 input events to queue additional information, instead of consing.
9516
9517 * keyboard.c (kbd_buffer_gcpro): Renamed from
9518 kbd_buffer_frame_or_window. Now used for all Lisp objects
9519 referenced from the input queue.
9520 (kbd_buffer_store_event): Always use structure assignment for
9521 copying input events. Record all Lisp objects referenced from
9522 events in kbd_buffer_gcpro.
9523 (kbd_buffer_get_event): Construct Lisp `help-echo' events
9524 differently from input events. Test for prefix menu_bar_events
9525 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
9526 event in kbd_buffer_gcpro to nil.
9527 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
9528 frame_or_window is equal to its arg member as prefix events.
9529 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
9530 used by an input event to nil.
9531 (init_keyboard): Use two times the size of the input queue
9532 for kbd_buffer_gcpro.
9533 (syms_of_keyboard): Likewise.
9534
52283633
SM
9535 * emacs.c (handle_USR2_signal, handle_USR1_signal):
9536 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
9537
9538 * termhooks.h (struct input_event): Add member `arg'.
9539 (MENU_BAR_EVENT): Renamed from menu_bar_event.
9540 (USER_SIGNAL_EVENT): Renamed from user_signal.
9541
9542 * xfaces.c (ASET): Remove definition.
9543
9544 * lisp.h (AREF, ASET, ASIZE): New macros.
9545
9546 * fontset.c (AREF, ASIZE): Remove definitions.
9547
9548 * fns.c (AREF): Remove definition.
178c5d9c 9549
0f1a9b23
GM
9550 * composite.c (AREF): Remove definition.
9551
712eaef2
GM
95522000-07-12 Gerd Moellmann <gerd@gnu.org>
9553
d8ee7803
GM
9554 * dispnew.c (redraw_overlapped_rows): Add missing local.
9555 (scrolling_window): Remove debug code.
9556
712eaef2
GM
9557 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
9558 Before scrolling, turn off a mouse-highlight in the window
9559 being scrolled.
9560
9561 * xterm.c (x_update_window_end): Add parameter
9562 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
9563 redisplay in XTframe_up_to_date.
9564 (x_clear_mouse_face): New function.
9565 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
9566
9567 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
9568 current glyph row.
9569 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
9570 it when any row is written to that contains glyphs highlighted in
9571 mouse-face.
9572 (update_window): Call the window update end hook with new
9573 parameter MOUSE_FACE_OVERWRITTEN_P.
9574 (direct_output_for_insert): Give up if row contains mouse-face.
9575
9576 * dispextern.h (struct redisplay_interface): Add parameter
9577 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
9578 (clear_mouse_face): New function pointer member.
9579
02010917
SM
95802000-07-11 Stefan Monnier <monnier@cs.yale.edu>
9581
9582 * syntax.c (back_comment): Use one switch rather than a few `if's.
9583 Obey open_paren_in_column_0_is_defun_start.
9584 When reverting to the `slow' method, try to nicely handle the case
9585 of nested comments by checking that the comment-starter we found
9586 does indeed match the comment-ender.
9587 (scan_sexps_forward, scan_sexps_forward):
9588 Ignore excessive opening parenthesis rather than throwing an error.
9589
d76c03ea
GM
95902000-07-11 Gerd Moellmann <gerd@gnu.org>
9591
9592 * doc.c (Fsubstitute_command_keys): Handle case that a GC
9593 in Fwhere_is_internal or get_keymap_1 relocates string contents.
9594
9595 * dispnew.c (direct_output_forward_char): Give up if currently
9596 displaying a message instead of the minibuffer contents.
9597
9598 * xterm.c (x_update_window_begin): No need to turn off the mouse
9599 highlight here.
9600 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 9601 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
9602
9603 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
9604 compare the mouse_face_p flags of both rows.
9605
9606 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
9607
d55ead18
EZ
96082000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
9609
9610 * keyboard.c (show_help_echo): Accept additional parameter
9611 ok_to_overwrite_keystroke_echo.
9612 (read_char): Call show_help_echo with a zero
9613 ok_to_overwrite_keystroke_echo argument.
52283633 9614 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
9615 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
9616 ok_to_overwrite_keystroke_echo argument.
9617 * w32menu.c (w32_menu_display_help): Call show_help_echo with
9618 non-zero ok_to_overwrite_keystroke_echo argument.
9619
df75b1a3
GM
96202000-07-10 Gerd Moellmann <gerd@gnu.org>
9621
4b92c49a
GM
9622 * xdisp.c (try_window_id): If changes are all below what is
9623 displayed in the window, and point is in the window, we still
9624 might have to find point on the display.
9625
9626 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
9627 glyphs instead of a single one.
9628 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
9629 with new argument list.
9630 (x_set_glyph_string_gc): Make sure the face's GC is valid.
9631
df75b1a3
GM
9632 * keymap.c (get_keymap_1): Add comment that this function can GC.
9633 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
9634 comment that functions can GC.
9635 (Fset_keymap_parent): GCPRO arg KEYMAP.
9636
4314cf3e
EZ
96372000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
9638
9639 * msdos.c (XMenuActivate): After exiting the menu, restore the
9640 echo area message and erase it.
9641
ab49ce15
KH
96422000-07-10 Kenichi Handa <handa@etl.go.jp>
9643
9644 * fontset.c (Ffontset_info): Make the return value more compatible
9645 with that of Emacs 20.
9646
090a072f
GM
96472000-07-07 Gerd Moellmann <gerd@gnu.org>
9648
9649 * eval.c (Fsignal): Handle case that backtrace_list is null.
9650
f92de4a6
KH
96512000-07-07 Kenichi Handa <handa@etl.go.jp>
9652
9653 * ccl.c (Fccl_execute): Typo fixed.
9654
dd8888a1
GM
96552000-07-06 Gerd Moellmann <gerd@gnu.org>
9656
e5c81191 9657 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 9658
dd8888a1
GM
9659 * window.c (Fwindow_list): Reverse list at the end.
9660 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
9661 means allow windows on OWINDOW's frame, only.
9662 (window_loop): Simplified; use Fwindow_list.
9663
9664 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
9665
485266d0
GM
96662000-07-05 Gerd Moellmann <gerd@gnu.org>
9667
9668 * xterm.c (XTread_socket): Increment handling_signal at the start,
9669 decrement it at the end.
9670
9671 * eval.c (handling_signal): New variable.
9672 (Fsignal): Abort if handling_signal is non-zero.
9673
9674 * lisp.h (handling_signal): External declaration.
178c5d9c 9675
485266d0
GM
9676 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
9677
80fcd514
KR
96782000-07-05 Ken Raeburn <raeburn@gnu.org>
9679
9680 Sound support for NetBSD through "Linux emulation" support:
9681 * config.in (HAVE_SOUNDCARD_H): Undef.
9682 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
9683 * Makefile.in (LIBSOUND): New variable.
9684 (LIBES): Include it.
52283633
SM
9685 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
9686 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
9687 (vox_open): Use DEFAULT_SOUND_DEVICE.
9688 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
9689
d5c5cddd
GM
96902000-07-05 Gerd Moellmann <gerd@gnu.org>
9691
9692 * print.c (print_error_message): If Vsignaling_function is set,
9693 show it in *Messages*.
9694
9695 * lisp.h (Vsignaling_function): External declaration.
9696
9697 * eval.c (Vsignaling_function): New variable.
9698 (Fsignal): Compute it.
9699 (syms_of_eval): Staticpro it.
9700
65171e3a
DL
97012000-07-05 Dave Love <fx@gnu.org>
9702
9703 * syswait.h: Use the autoconf recommended approach. Old code
9704 #if'd out in case we need to revert.
9705
178c5d9c 9706 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 9707
e2c46326
AI
97082000-07-05 Andrew Innes <andrewi@gnu.org>
9709
9710 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
9711 when non-NULL instead of __morecore, to take account of buffer
9712 memory. This also solves a problem with spurious memory warnings
9713 on Windows.
9714
9715 * ralloc.c: Make real_morecore non-static.
9716
9717 * eval.c (internal_condition_case): Comment out abort if
9718 interrupt_input_blocked is not zero.
9719
9720 * makefile.nt: Add support for `bootstrap' and related targets.
9721 Include minimal debug info in emacs.exe in release build.
9722 Remove all dependencies on lisp.h, and fixup some others.
9723
9724 * w32.c (init_environment): Install code from 20.7 for providing
9725 default values for environment variables, based on the
9726 executable's own location.
52283633 9727 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
9728 (sys_socket): Install socket inheritance bug fix from 20.7.
9729
9730 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
9731 here via blockinput.h).
9732
a027a91b
SM
97332000-07-05 Stefan Monnier <monnier@cs.yale.edu>
9734
e4b31601
SM
9735 * w32menu.c (w32_menu_display_help):
9736 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
9737
9738 * keyboard.h (show_help_echo): Declare.
9739
9740 * keyboard.c (show_help_echo): New function, extracted from read_char.
9741 Feval its `msg' argument if it's a cons cell.
9742 (read_char): Use it.
4cf8d9d5 9743 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 9744
178c5d9c 9745 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 9746 (note_tool_bar_highlight, XTread_socket):
178c5d9c 9747 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
9748 (dos_rawgetc):
9749 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
9750 (note_tool_bar_highlight, w32_read_socket):
9751 Do not gratuitously ignore non-string `help-echo' properties.
9752
88d75730
GM
97532000-07-05 Gerd Moellmann <gerd@gnu.org>
9754
969f7e79
GM
9755 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
9756
71201b00
GM
9757 * window.c (delete_all_subwindows): Reset Vwindow_list.
9758
88d75730
GM
9759 * xterm.c (x_append_glyph, x_append_composite_glyph)
9760 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
9761 changes in struct glyph starting 1999-12-27. Some bit-fields of
9762 struct glyph were not set, which made glyphs unequal when compared
9763 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
9764 effects were the result. This also depended on the contents of
9765 memory returned by xmalloc. If flickering happens again, activate
9766 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 9767 gone with that, chances are that it is caused by something similar.
88d75730
GM
9768
9769 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 9770
88d75730
GM
9771 * dispextern.h: Add some comments.
9772
9773 * window.c (add_window_to_list): Add parameter LIST.
9774 (window_list): Order list so that, for each frame, windows are
9775 in canonical order, and so that frames appear in the list in
9776 the order given by Vframe_list.
9777 (next_window): Reverse the handling of NEXT_P.
9778
53654733
GM
97792000-07-04 Gerd Moellmann <gerd@gnu.org>
9780
87efd256
GM
9781 * window.c (Vwindow_list): New variable.
9782 (make_window, delete_window): Set Vwindow_list to nil.
9783 (check_window_containing): New function.
9784 (window_from_coordinates): Rewritten.
9785 (add_window_to_list, window_list, candidate_window_p)
9786 (decode_next_window_args, next_window): New functions.
52283633 9787 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
9788 (Fwindow_list): New function.
9789 (Fother_window): Cleaned up.
9790 (foreach_window): Add a longer "variable argument list". Let
9791 callback function return 0 to indicate that cycling over windows
9792 should stop.
9793 (foreach_window_1): Likewise.
9794 (freeze_window_start): Return int.
9795 (init_window): New function.
9796 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
9797
9798 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
9799 input_event with bzero.
9800 (main): Call init_window.
9801
53654733
GM
9802 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
9803 a menu filter.
9804
4a8c194f
KH
98052000-07-04 Kenichi Handa <handa@etl.go.jp>
9806
9807 * composite.h (make_composition_value_copy): Extern it.
9808
9809 * composite.c (make_composition_value_copy): New function.
9810
9811 * editfns.c (Fformat): While copying text properties, make each
9812 composition property value a copy.
9813
9814 * fns.c (concat): While copying text properties, make each
9815 composition property value a copy.
9816
831a6cb0
GM
98172000-07-03 Gerd Moellmann <gerd@gnu.org>
9818
2f516940
GM
9819 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
9820
178c5d9c 9821 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
9822 marked already.
9823
831a6cb0
GM
9824 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
9825 include those frames as candidates which have their focus
9826 redirected to the minibuffer frame.
9827
d9c4f922
SM
98282000-07-03 Stefan Monnier <monnier@cs.yale.edu>
9829
9830 * fns.c (Fputhash): Return `value' rather than nil.
9831
3780bc22
GM
98322000-06-30 Gerd Moellmann <gerd@gnu.org>
9833
97d176db
GM
9834 * frame.c (next_frame): Don't check focus redirection in case
9835 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
9836 unless their focus is redirected, which contradicts the
9837 specification of next-frame, and leads to infinite loops in
9838 certain situations when cycling through windows with next-window.
9839
dca9961d
KH
98402000-06-30 Kenichi Handa <handa@etl.go.jp>
9841
9842 * coding.c (code_convert_region): Even if the length of text is
9843 zero, try to convert it if coding->type is coding_type_ccl.
9844 (decode_coding_string, encode_coding_string): Likewise.
9845
d5483ab1
GM
98462000-06-28 Gerd Moellmann <gerd@gnu.org>
9847
af5c25e1 9848 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 9849 the display if windows_or_buffers_changed.
af5c25e1
GM
9850
9851 * dispnew.c (struct row_entry): New structure.
9852 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
9853 (row_table_size, old_lines, new_lines, old_lines_size)
9854 (new_lines_size, run_pool, runs_size, runs): New variables.
9855 (add_row_entry): New function.
9856 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 9857 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
9858 holding them in local variables. Use a larger hash table whose
9859 size depends on glyph matrix sizes. Don't use bzero to clear the
9860 hash table; instead, clear used slots only.
9861
9862 * fns.c (next_almost_prime): Make it externally visible.
9863
9864 * lisp.h (next_almost_prime): Add prototype.
9865
d5483ab1
GM
9866 * s/isc4-0.h (sigunblock): Define.
9867
9868 * s/sco5.h (sigunblock): Define.
9869
93e40f40
DL
98702000-06-27 Dave Love <fx@gnu.org>
9871
9872 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
9873 (moved to osf5-0.h).
9874 [!NOT_C_CODE]: Protect string.h stuff.
9875
9876 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
9877 (sys_siglist, NSIG): Definitions moved here from osf1.h.
9878
3c4b7685
GM
98792000-06-27 Gerd Moellmann <gerd@gnu.org>
9880
97d176db 9881 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
9882 below the last line from the needed window height.
9883
32cad0aa
SM
98842000-06-26 Stefan Monnier <monnier@cs.yale.edu>
9885
9886 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
9887 (Fwidget_get): Use it.
9888 (syms_of_fns): Defsubr it.
9889
2c69ced2
GM
98902000-06-26 Gerd Moellmann <gerd@gnu.org>
9891
178c5d9c 9892 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
9893 display info for XIM.
9894 (xim_open_dpy): Likewise.
9895 (xim_close_dpy): Don't free the display info's XIM.
9896
9897 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
9898
9899 * config.in (USE_XIM): New define.
9900
3fc720e4
GM
9901 * keymap.c (get_keyelt): For menu-items containing a `:filter
9902 FILTER', apply FILTER to the menu-item's definition to get the
9903 real definition to use.
9904
9905 * lisp.h (QCfilter): External declaration.
9906
2c69ced2
GM
9907 * xfns.c (Fimage_size): New function.
9908 (syms_of_xfns): Defsubr it.
9909
f978b2a2
AS
99102000-06-26 Andreas Schwab <schwab@suse.de>
9911
9912 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
9913 Fstring_as_unibyte.
9914
94cc7892
DL
99152000-06-25 Dave Love <fx@gnu.org>
9916
52283633 9917 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
9918
9919 * Makefile.in (blockinput.h): Depend on atimer.h.
9920 (atimer.h): Depend on systime.h.
9921
52283633 9922 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 9923
52283633 9924 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
9925
9926 * lisp.h (swap_in_global_binding): Declare.
9927
b8c24556
KR
99282000-06-24 Ken Raeburn <raeburn@gnu.org>
9929
9930 * process.c (Fopen_network_stream): Turn off atimers for duration
9931 of call to connect. (Patch from Gerd.)
9932
8cf8560b
DL
99332000-06-23 Dave Love <fx@gnu.org>
9934
511c7541
DL
9935 * ralloc.c: Maybe include unistd.h
9936
8cf8560b
DL
9937 * emacs.c (setgrp): Undefine before defining.
9938 (malloc_warning, set_time_zone_rule, index): Prototype.
9939
9940 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
9941 HAVE_STRUCT_TIMEZONE.
9942
9943 * s/osf1.h: Move string.h hack here from alpha.h and make it
9944 conditional.
9945 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
9946 _XOPEN_SOURCE.
9947 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
9948 (SOCKLEN_TYPE): Don't define.
9949
9950 * m/alpha.h: Remove string.h hack.
9951
9952 * s/osf5-0.h: New file.
9953
9954 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
9955 include time.h, done by systime.h.
9956 [__FreeBSD__]: Remove redundant includes.
9957
3fc720e4 9958 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
9959 (delete_temp_file): Return Qnil to avoid warning.
9960
9961 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
9962
9963 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
9964 HAVE_X_WINDOWS.
9965
9966 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
9967
9968 * composite.h (compose_text): Declare.
9969
9970 * xterm.c: Don't include sys/types.h unconditionally. Don't
9971 protect its inclusion with !USG (following xmenu.c).
9972
ea055732
GM
99732000-06-23 Gerd Moellmann <gerd@gnu.org>
9974
9975 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9976 in x_create_frame.
9977
74b01b80
EZ
99782000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9979
9980 * coding.c (decode_eol_post_ccl): Special handling for undecided
9981 and inconsistent EOL types.
9982
64f3a166
GM
99832000-06-22 Gerd Moellmann <gerd@gnu.org>
9984
16cf31f7
GM
9985 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9986 trough color and main window's background color.
9987
52283633 9988 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
9989
9990 * xterm.h (Xt_app_con): External declaration.
9991
9992 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 9993
486a103d
GM
9994 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9995
64f3a166
GM
9996 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9997 (handle_invisible_prop): Record the start of invisible text in
9998 it->add_overlay_start.
9999 (struct overlay_entry): Add member `overlay'.
10000 (handle_overlay_change): Simplify.
10001 (next_overlay_string): After having processed overlay strings at the
10002 end of the buffer, record that fact in
10003 it->overlay_strings_at_end_processed_p.
10004 (compare_overlay_entries): If before- and after-strings come
10005 from the same overlay, let before-strings come first.
10006 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10007 (load_overlay_strings): Take it->add_overlay_start into account
10008 when adding overlay strings.
10009
10010 * dispextern.h (struct it): Add member add_overlay_start.
10011
bb746ea6
DL
100122000-06-22 Dave Love <fx@gnu.org>
10013
10014 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10015
10016 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10017
a8f573f3
KH
100182000-06-22 Kenichi Handa <handa@etl.go.jp>
10019
10020 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10021 is greater than 0.
10022
9f2bbc92
DL
100232000-06-21 Dave Love <fx@gnu.org>
10024
178c5d9c 10025 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 10026
3ee5041c
SM
100272000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10028
10029 * syntax.c (back_comment): Simplify string-parity counting (with
10030 the added benefit of handling multiple string-styles as long as
10031 they are not intertwined).
10032 Jump to the slow code as soon as a comment starter is found in
10033 a "string_lossage" position. Fixes the case: " /* " /* " */.
10034
4c343001
DL
100352000-06-21 Dave Love <fx@gnu.org>
10036
10037 * Makefile.in: Use GETLOADAVG_LIBS.
10038
10039 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10040 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10041
e6365855
SM
100422000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10043
10044 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10045 (Fforward_comment, scan_lists):
10046 Check the comstyle of single-char comment-starters.
10047 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10048 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
10049 Check the comstyle of single-char comment-starters.
10050 Clarify control-flow around the Scomment case.
e6365855 10051
5700d2cc
DL
100522000-06-20 Dave Love <fx@gnu.org>
10053
d355bd8a
SM
10054 * fns.c (make_hash_table, maybe_resize_hash_table):
10055 Cast arg of next_almost_prime.
5700d2cc 10056
178c5d9c 10057 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
10058
10059 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10060 and unistd.h.
10061
4a27bdfb
GM
100622000-06-20 Gerd Moellmann <gerd@gnu.org>
10063
a61d762c 10064 * keyboard.c (adjust_point_for_property): Check if display
52283633 10065 property should be treated as intangible by looking at its value.
a61d762c 10066
178c5d9c 10067 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
10068 (display_prop_intangible_p): New functions.
10069
10070 * dispextern.h (display_prop_intangible_p): Add prototype.
10071
10072 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 10073
4a27bdfb
GM
10074 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10075 argument to sigprocmask.
10076
10077 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10078 argument to sigprocmask.
10079
10080 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10081 sigprocmask_set, and pass a pointer to it to sigprocmask.
10082
10083 * sysdep.c (sigprocmask_set): New variable.
10084
10085 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10086 report_file_error.
10087
427ec082
SS
100882000-06-20 Sam Steingold <sds@gnu.org>
10089
10090 * xrdb.c: Don't declare xmalloc, xrealloc.
10091
8972fe79 100922000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
10093
10094 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10095 (re_comp): Cast gettext return value to avoid complaints when
10096 !HAVE_LIBINTL.
10097
074b6efe
DL
100982000-06-20 Dave Love <fx@gnu.org>
10099
52283633 10100 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 10101
5700d2cc 10102 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 10103
d355bd8a 10104 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
10105
10106 * m/alpha.h: Don't declare xmalloc, xrealloc.
10107
0af4f205
DL
10108 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10109
10110 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10111
10112 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10113
10114 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10115 HAVE_GETWD.
10116
074b6efe
DL
10117 * keyboard.h (poll_for_input_1): Declare.
10118
10119 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10120
10121 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10122
10123 * doprnt.c: Don't declare xmalloc, xrealloc.
10124
10125 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10126 (getenv, ctime, getwd): Removed.
10127 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10128
10129 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10130 x_set_tool_bar_lines.
10131
10132 * config.in: Add HAVE_GETWD. Move some definitions above
10133 machine/system includes.
10134
68a5e97b
KH
101352000-06-20 Kenichi Handa <handa@etl.go.jp>
10136
95417e1e
KH
10137 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10138
68a5e97b
KH
10139 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10140 contain information about ENCODING.
10141
10142 * fontset.c (FONTSET_ASCII): Use the first element of char table
10143 for an ASCII font, not defalt slot.
10144 (fontset_ref_via_base): If FONTSET doesn't contain information for
10145 C, try the default fontset.
10146 (make_fontset): Don't copy the default fontset.
10147 (fontset_font_pattern): Likewise.
10148 (accumulate_font_info): If ELT is nil, use the corresponding
10149 element in the default fontset.
10150
3b4fa1b2
DL
101512000-06-19 Dave Love <fx@gnu.org>
10152
943e731c
DL
10153 * syntax.c (Fparse_partial_sexp): Doc fix.
10154
10155 * regex.h: Test PROTOTYPES as well as __STDC__.
10156
3b4fa1b2
DL
10157 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10158 errno, strerror. Put text after #endif in comment.
10159
52283633 10160 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
10161
10162 * xterm.c (x_frame_of_widget): Likewise.
10163
cdf0357b
GM
101642000-06-19 Gerd Moellmann <gerd@gnu.org>
10165
10166 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10167 to Vfundamental_mode_abbrev_table.
10168
10169 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10170 bogus objects are marked. This slows down GC by ~80 percent, but
10171 it might be worth trying when debugging GC-related problems.
10172 This feature requires conservative stack marking to be enabled.
10173
10174 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10175 returns XLookupChars, reset `modifiers' to zero.
10176
998e9f8c
DL
101772000-06-19 Dave Love <fx@gnu.org>
10178
10179 * mktime.c: Unprotoized.
10180
18e21ce8 101812000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
10182
10183 * data.c (set_internal): If variable is frame-local,
10184 store the new value immediately into the frame parameter alist.
10185
140c4ac6
KR
101862000-06-19 Ken Raeburn <raeburn@gnu.org>
10187
14358466
KR
10188 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10189 in the custom handler pointer.
10190
140c4ac6
KR
10191 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10192 value, or checks for CHAR_META can fail when Lisp_Object is a
10193 union type.
10194 * keymap.c (get_keyelt): Likewise.
10195
10d7bf84
KH
101962000-06-19 Kenichi Handa <handa@etl.go.jp>
10197
10198 * ccl.h (struct ccl_program): New member eol_type.
10199 (struct ccl_spec): New member cr_carryover.
10200
10201 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10202 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10203
10204 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10205 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10206 (decode_eol_post_ccl): New function.
10207 (decode_coding): Don't detect EOL format here for CCL based coding
10208 systems.
10209 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10210 decode_eol_post_ccl after running the CCL program.
10211 (code_convert_region): Don't detect EOL format here for CCL based
10212 coding systems.
10213 (decode_coding_string): Likewise.
10214
52e386c2
KR
102152000-06-18 Ken Raeburn <raeburn@gnu.org>
10216
10217 * charset.c (update_charset_table): Use XINT on "iso_final_char"
10218 when treating it as an integer.
10219
10220 * coding.h (encode_coding_string): Declare.
10221
10222 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10223 it as an integer.
10224
10225 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10226 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10227 to be passed to get_local_map.
10228
10229 * sound.c (Fplay_sound): Don't call make_number on
10230 Frun_hook_with_args count argument.
10231
10232 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10233 for lisp objects in X event structure data field, when lisp
10234 objects are represented with unions.
10235 (x_scroll_bar_to_input_event): Ditto.
10236
b357b9d4
KR
102372000-06-16 Ken Raeburn <raeburn@gnu.org>
10238
10239 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
10240 termination of string. Fix sense of test whether
10241 Vline_number_display_limit is an integer.
b357b9d4 10242
a871441d
GM
102432000-06-16 Gerd Moellmann <gerd@gnu.org>
10244
a9021acd
GM
10245 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10246 only if HAVE_X_WINDOWS.
10247
6344985d
GM
10248 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10249 of titles.
10250
427ec082 10251 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
10252 out of bounds.
10253
228b083e
EZ
102542000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10255
10256 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10257 of its headers.
10258
c25b53a2
KH
102592000-06-15 Kenichi Handa <handa@etl.go.jp>
10260
10261 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10262 start of the while loop.
10263
a6981b11
GM
102642000-06-15 Gerd Moellmann <gerd@gnu.org>
10265
e9924e52
GM
10266 * atimer.c (alarm_signal_handler): Add forward declaration.
10267
a6981b11
GM
10268 * data.c (set_internal): Remove debug code.
10269
25fa6deb
GM
102702000-06-14 Gerd Moellmann <gerd@gnu.org>
10271
dce6b995
GM
10272 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10273
9f817ea4
GM
10274 * unexec.c (toplevel) [COFF]: Include coff.h.
10275
10276 * s/lynxos.h: New file.
10277
10278 * keymap.c (Fsingle_key_description): Enclose function key and
10279 event symbol names in angle brackets.
10280
8a4e3c0c
GM
10281 * xdisp.c (setup_echo_area_for_printing): Call
10282 message_log_maybe_newline if message_buf_print is not set.
10283
10284 * print.c (printchar, strout): Don't check message_buf_print
427ec082 10285 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
10286 function does something useful even when message_buf_print is
10287 already set.
10288
52283633
SM
10289 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10290 New variables.
25fa6deb
GM
10291 (ensure_echo_area_buffers): Initialize echo buffer's
10292 truncate lines setting to nil.
10293 (with_echo_area_buffer): Don't set the echo buffer's truncate
10294 lines setting here.
8a4e3c0c 10295 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
10296 of message_truncate_lines.
10297 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
10298 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10299 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
10300
10301 * keyboard.c (read_char): Bind message-truncate-lines to t
10302 while displaying a help-echo.
10303
10304 * lisp.h (Qmessage_truncate_lines): External declaration.
10305
163dcff3
GM
103062000-06-13 Gerd Moellmann <gerd@gnu.org>
10307
1681ead6
GM
10308 * xdisp.c (Vline_number_display_limit): Renamed from
10309 line_number_display_limit.
10310 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10311 Extend documentation string. Initialize
10312 Vline_number_display_limit to nil meaning no limit.
10313 (decode_mode_spec): Use Vline_number_display_limit with its new
10314 meaning.
10315
163dcff3
GM
10316 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10317
18e21ce8 103182000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
10319
10320 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 10321
163dcff3
GM
10322 * xfns.c (x_set_frame_parameters): Comment fix.
10323
10324 * frame.c (store_frame_param): Call swap_in_global_binding if the
10325 variable's current binding was chosen based on this frame.
10326
10327 * data.c (swap_in_global_binding): New function.
10328
a704139d
EZ
103292000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10330
10331 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10332 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10333
9b6610db
EZ
103342000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10335
10336 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10337
c68833d2
JR
103382000-06-12 Jason Rumney <jasonr@gnu.org>
10339
10340 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10341
10342 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10343
10344 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10345
10346 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10347
ed1056b3
GM
103482000-06-12 Gerd Moellmann <gerd@gnu.org>
10349
10350 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10351 (syms_of_xfaces): Defsubr Sdump_colors.
10352 (x_free_colors): Don't treat b&w specially on default visual.
10353 (x_free_dpy_colors): New function.
10354 (free_face_colors): Don't check visual class; it's done
10355 in x_free_colors.
10356
10357 * xterm.c (x_frame_of_widget): New function.
10358 (x_alloc_nearest_color_for_widget): Use it.
10359 (x_copy_dpy_color): New function.
10360 (x_destroy_window): Free various colors.
10361
5050a2ef
KH
103622000-06-12 Kenichi Handa <handa@etl.go.jp>
10363
10364 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
10365
10366 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
10367
10368 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
10369
10370 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
10371
10372 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
10373
fb1b041d
DL
103742000-06-11 Dave Love <fx@gnu.org>
10375
10376 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
10377
ff96b5f4
EZ
103782000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
10379
10380 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
10381
db8eeecd
GM
103822000-06-11 Gerd Moellmann <gerd@gnu.org>
10383
ed1056b3 10384 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
10385 to `XEvent *'.
10386
49b71c5f
KH
103872000-06-10 Kenichi Handa <handa@etl.go.jp>
10388
c479bd55
KH
10389 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
10390 (regex_compile): Fix the code for handling the case of single byte
10391 char and multibyte char being mixed in a range within [...].
10392
ff6a65c2
KH
10393 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
10394 and dst_multibyte members of coding.
10395
49b71c5f
KH
10396 * charset.c (update_charset_table): Update the table
10397 bytes_by_char_head.
10398 (init_charset_once): Initialize elements of bytes_by_char_head to
10399 1 except for leading codes for private charases.
10400
10401 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 10402 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 10403
9e80b57d
KR
104042000-06-09 Ken Raeburn <raeburn@gnu.org>
10405
10406 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
10407 access the data it doesn't point to.
10408
f83fe4b4
GM
104092000-06-08 Gerd Moellmann <gerd@gnu.org>
10410
10411 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 10412 will be translated to a switch-frame event when reading the
f83fe4b4
GM
10413 event queue. This is necessary because Emacs otherwise won't
10414 perform a switch-frame to a new frame until some other event, for
10415 example a keystroke event, forces it to do so. This has various
10416 effects, one visible being that the cursor of a frame created with
10417 C-x 5 2 or switched to with a window manager key binding like
10418 A-TAB stays hollow because selected_window isn't on the newly
10419 focused frame until the switch-frame is performed.
10420
10421 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
10422 generating a switch-frame event if necessary.
10423
10424 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
10425
10426 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
10427 it's an integer.
10428
0890801b
KH
104292000-06-08 Kenichi Handa <handa@etl.go.jp>
10430
52283633 10431 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 10432
173cbca8
GM
104332000-06-07 Gerd Moellmann <gerd@gnu.org>
10434
3091c2a6
GM
10435 * window.c (displayed_window_lines): Take empty lines at
10436 the bottom of a window into account.
427ec082 10437
f38952fe
GM
10438 * window.c (displayed_window_lines): New function.
10439 (Fmove_to_window_line): Use displayed_window_lines to determine
10440 the number of lines to move, instead of using the window's height.
10441
10442 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
10443 to stop reading, even if the form read sets point to a different
10444 value when evaluated.
10445
427ec082 10446 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
10447 put the cursor.
10448
6ba6c818
KH
104492000-06-07 Kenichi Handa <handa@etl.go.jp>
10450
10451 * fileio.c (e_write): Free composition data if stored in
10452 coding->cmp_data.
10453
5f1aea9a
GM
104542000-06-06 Gerd Moellmann <gerd@gnu.org>
10455
666852af
GM
10456 * xdisp.c (display_line): Set row's and iterator's
10457 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
10458 Set cursor even if row ends in the middle of a character.
10459 (dump_glyph_row): Print values of new flags.
10460 (redisplay_window) <cursor movement in unchanged window>: When
10461 point has been moved forward, and PT is at the end of the cursor
10462 row, don't place the cursor in the next row if the cursor row ends
10463 in the middle of a character or at ZV.
10464
10465 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
10466 (struct glyph_row): Add starts_in_middle_of_char_p and
10467 ends_in_middle_of_char_p.
10468 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
10469 ends_in_middle_of_char_p flag.
10470 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
10471
d13f3e2e
GM
10472 * term.c (append_glyph): Revert change of 2000-06-06.
10473
10474 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
10475 padding glyph not fitting on line as whole character not
10476 fitting on line.
10477
5f1aea9a
GM
10478 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
10479 this isn't true for images with `:ascent 100'.
10480
10cda9b0
KH
104812000-06-06 Kenichi Handa <handa@etl.go.jp>
10482
ed00559d
KH
10483 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
10484 as modified if it is originally unmodified.
10485
10cda9b0
KH
10486 * term.c (encode_terminal_code): Change the way to check if
10487 terminal coding does any conversion.
10488 (append_glyph): Set glyph->pixel_width correctly.
10489
10490 * xdisp.c (display_line): While checking line continuation, pay
10491 attention to a padding glyph.
10492
1969fae2
GM
104932000-06-05 Gerd Moellmann <gerd@gnu.org>
10494
10495 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
10496
162ccef4
DL
104972000-06-05 Dave Love <fx@gnu.org>
10498
f19f32dd
DL
10499 * xdisp.c: Include fontset.h.
10500
10501 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
10502
10503 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10504
10505 * dispnew.c: Conditionally include term.h.
10506
10507 * coding.h: Declare code_convert_string_norecord.
10508
10509 * frame.h (struct frame): Use volatile unconditionally.
10510
10511 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
10512
10513 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
10514
10515 * systime.h: Protect against multiple inclusion.
10516 (timezone) [USG5_4]: Define as time_t.
10517
10518 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10519 (Foptimize_char_table, make_temp_name): Declare.
10520
10521 * Makefile.in (xdisp.o): Depend on fontset.h.
10522
10523 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
10524
10525 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
10526 (Foptimize_char_table, make_temp_name): Declare.
10527
427ec082 10528 * s/irix4-0.h:
162ccef4
DL
10529 * s/irix5-0.h:
10530 * s/netbsd.h: Don't define autoconfiscated MATHERR.
10531
2082fe81
DL
105322000-06-02 Dave Love <fx@gnu.org>
10533
10534 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
10535
dcf671d2
GM
105362000-06-02 Gerd Moellmann <gerd@gnu.org>
10537
10538 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 10539 result face, set flags in that face indicating that colors may not
dcf671d2
GM
10540 be freed.
10541
10542 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
10543 glyph, use the ASCII NUL character to determine the face.
10544
d42122a3
DL
105452000-06-02 Dave Love <fx@gnu.org>
10546
10547 * sysdep.c: Conditionally include stdlib.h, unistd.h.
10548 (VFORK_RETURN_TYPE): Remove.
427ec082 10549
d42122a3
DL
10550 * config.in: Add NO_MATHERR.
10551
dd432f16
DL
105522000-06-01 Dave Love <fx@gnu.org>
10553
90aa4ea8
DL
10554 * cmds.c (internal_self_insert): Don't check
10555 Vbefore_change_function, Vafter_change_function.
10556
10557 * insdel.c (signal_before_change, signal_after_change): Likewise.
10558
10559 * buffer.c (Vbefore_change_function, Vafter_change_function):
10560 Variables and their initializations deleted.
10561
2330c9d4
DL
10562 * callint.c (Fcall_interactively): Doc fix.
10563
dd432f16
DL
10564 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
10565
bf9e8804
DL
105662000-05-31 Dave Love <fx@gnu.org>
10567
10568 * textprop.c: Revert last change -- duplicated.
10569
3694b4ab
GM
105702000-05-31 Gerd Moellmann <gerd@gnu.org>
10571
10572 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
10573 in #if 0.
10574
10575 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
10576
f14156cd
JR
105772000-05-31 Jason Rumney <jasonr@gnu.org>
10578
8119aab8
JR
10579 * search.c (Fre_search_forward, Fre_search_backward)
10580 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
10581
f14156cd
JR
10582 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
10583
4aab9be3
JR
105842000-05-30 Jason Rumney <jasonr@gnu.org>
10585
10586 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
10587 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
10588
52283633 10589 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
10590
10591 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
10592 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
10593 expand a nil default_filename.
10594
10595 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
10596 pointer to glyph_to_pixel_coords, not a frame.
10597
10598 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
10599 coding.h to dependencies.
10600
10601 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
10602
10603 * w32console.c (glyph_to_pixel_coords): Change first parameter to
10604 window pointer to be consistent with w32term.c and xterm.c.
10605
10606 * w32fns.c: Format and doc changes to bring closer to xfns.c.
10607 (VIETNAMESE_CHARSET): Define if not defined in system headers.
10608 (Qline_spacing, Qcenter): New variables.
10609 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
10610 (x_set_line_spacing): New function.
52283633 10611 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
10612 (x_specified_cursor_type): New function.
10613 (x_set_cursor_type): Use it.
10614 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
10615 and icon strings.
10616 (validate_x_resource_name, x_get_resource_string): Measure lengths
10617 of external strings in bytes.
10618 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
10619 GetTextExtentPoint32 with NULL title.
10620 (Fx_create_frame): Initialize Qline_spacing.
10621 (w32_load_system_font): Initialize font->double_byte_p.
10622 (x_to_w32_charset): Use Vw32_charset_info_alist.
10623 (Image, busy cursor, tooltip functions): Merged changes from
10624 xfns.c. Not yet functional on Windows.
10625
10626 * w32gui.h (W32FontStruct): Add double_byte_p member.
10627
10628 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
10629 (emacs_button_translation): Use it.
10630 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
10631 in `mask' to be set.
10632
10633 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
10634 menu strings.
10635
10636 * w32term.c: Format and doc changes to bring closer to xterm.c.
10637 (w32_char_font_type): New enum.
10638 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
10639 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
10640 (w32_encode_char): New function.
10641 (x_encode_char): Removed.
10642 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
10643 x_encode_char and w32_font_is_double_byte.
10644 (x_produce_image_glyph): Use image_ascent.
10645 (x_produce_glyphs): Use new version of w32_per_char_metric and
10646 handle NULL return value. Allow extra line spacing.
10647 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
10648 (w32_get_glyph_overhangs): Remove unicode_p param. Use
10649 w32_font_type member of glyph instead.
10650 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
10651 (fast_find_position): Make sure not to consider rows not visible
10652 in the window.
10653 (w32_read_socket) [WM_MENUSELECT]: Cannot call
10654 w32_menu_display_help with input blocked, as it can abort.
10655 (x_display_and_set_cursor): Choose cursor depending
10656 on buffer-local value of cursor_type.
10657 (x_draw_bar_cursor): Add parameter WIDTH.
10658
10659 * w32term.h (CP_DEFAULT): Define.
10660 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
10661
10fc3187
GM
106622000-05-30 Gerd Moellmann <gerd@gnu.org>
10663
10664 * search.c (Fre_search_forward, Fre_search_backward)
10665 (Fposix_search_backward, Fposix_search_forward): Doc fix.
10666
d0555360
KH
106672000-05-30 Kenichi Handa <handa@etl.go.jp>
10668
10669 * coding.c (detect_coding_iso2022): Fix code for checking
10670 CODING_CATEGORY_MASK_ISO_8_2.
10671
f1ad044f
SM
106722000-05-29 Stefan Monnier <monnier@cs.yale.edu>
10673
10674 * regex.c (PREFETCH_NOLIMIT): New function.
10675 (re_match_2_internal): Use it and adjust the end_match_2 logic.
10676
84ec3b4b
GM
106772000-05-29 Gerd Moellmann <gerd@gnu.org>
10678
66254a13
GM
10679 * syntax.c (find_defun_start): Move test for
10680 open_paren_in_column_0_is_defun_start outside of the loop.
10681
49e70dec
GM
10682 * xdisp.c (redisplay_window): Really switch buffers when
10683 displaying mode lines, and temporarily set selected_frame to the
10684 frame of the window that's redisplayed.
10685
84ec3b4b
GM
10686 * xfaces.c (free_realized_faces): Block/unblock input.
10687 (free_realized_multibyte_face): Ditto.
10688
869a3a14
DL
106892000-05-29 Dave Love <fx@gnu.org>
10690
10691 * textprop.c (Qkeymap): New variable.
10692 (syms_of_textprop): Intern it.
10693
10694 * keymap.c: Include intervals.h.
10695 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
10696
10697 * Makefile.in (keymap.o): Depend on intervals.h.
10698
10699 * keyboard.c (menu_bar_items, tool_bar_items)
10700 (Fexecute_extended_command): Deal with `keymap' property.
10701 (read_key_sequence): Track map from `keymap' property as well as
10702 `local_map'.
10703
10704 * intervals.c (get_local_map): Extra arg to allow looking for
10705 `keymap' too.
10706
10707 * intervals.h (map_property): New enum.
10708 (get_local_map): Extra arg using it.
10709 (Qkeymap): Declare.
10710
84ec3b4b 10711 * lisp.h (get_local_map): Don't declare here.
869a3a14 10712
89d0c844
KH
107132000-05-29 Kenichi Handa <handa@etl.go.jp>
10714
10715 * Makefile.in (callproc.o): Depend on composite.h.
10716
10717 * callproc.c: Include composite.h.
10718 (Fcall_process): Handle composition correctly.
10719
10720 * coding.h (coding_allocate_composition_data): Extern it.
10721 (coding_restore_composition): Likewise.
10722
10723 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
10724 yet allocated, finish decoding with result
10725 CODING_FINISH_INSUFFICIENT_CMP.
10726 (coding_allocate_composition_data): Make it non-static.
10727 (coding_restore_composition): Likewise.
10728
797a084a
EZ
107292000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
10730
10731 * charset.c (syms_of_charset): Revert last change.
10732
cf872af5
EZ
107332000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10734
10735 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
10736 charsets as unibyte, with 1-column screen width. Sent by Kenichi
10737 Handa.
cf872af5 10738
5b1ae051
EZ
107392000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
10740
10741 * charset.c (syms_of_charset): Set width of character sets
10742 eight-bit-control and eight-bit-graphic to 1 column.
10743
34ec9ebe
GM
107442000-05-26 Gerd Moellmann <gerd@gnu.org>
10745
10746 * config.in (HAVE_SPEED_T): New define.
10747
10748 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
10749 `extern speed_t'.
10750
dd854dc2
DL
107512000-05-26 Dave Love <fx@gnu.org>
10752
10753 * coding.c (shrink_decoding_region): Initialize eol_conversion.
10754
10755 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
10756 (Fsubr_arity): New function.
10757 (syms_of_data): Install them.
10758
ba9f8f95
KH
107592000-05-26 Kenichi Handa <handa@etl.go.jp>
10760
0f3e0672
KH
10761 * charset.c (init_charset_once): Set the table bytes_by_char_head
10762 correctly.
10763
cebefb44
KH
10764 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
10765 the default fontset to what Emacs uses by default.
0f3e0672
KH
10766 (check_registry_encoding): This function deleted.
10767 (Fset_fontset_font): Remove the adhoc condition for the default
10768 fontset. Allow cons in FONTNAME.
cebefb44 10769
0f3e0672
KH
10770 * fns.c (map_char_table): Ignore char-table entries for
10771 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 10772
7a18af49
KR
107732000-05-25 Ken Raeburn <raeburn@gnu.org>
10774
10775 * emacs.c (main): Initialize keyboard syms before initializing
10776 window code, so face names are available.
10777
d2af47df
SM
107782000-05-25 Stefan Monnier <monnier@cs.yale.edu>
10779
10780 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
10781 of an anchor at the beginning of a shy-group.
10782
fc6a6a4e
GM
107832000-05-25 Gerd Moellmann <gerd@gnu.org>
10784
10785 * xdisp.c (handle_invisible_prop): Don't try to skip over
10786 invisible text if end of text is already reached.
10787
005f0d35
DL
107882000-05-25 Dave Love <fx@gnu.org>
10789
02513cdd
DL
10790 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
10791
005f0d35
DL
10792 * coding.c (encode_eol): Add null statement after label.
10793
89f6ca4e
EZ
107942000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
10795
10796 * w16select.c (Fw16_set_clipboard_data): Fix the change from
10797 2000-05-20.
10798
a4e1759e
KH
107992000-05-25 Kenichi Handa <handa@etl.go.jp>
10800
10801 * ccl.c (ccl_driver): Fix previous change.
10802
eacfd7fe
KH
108032000-05-25 Kenichi Handa <handa@etl.go.jp>
10804
46ab33a9
KH
10805 * coding.c (run_pre_post_conversion_on_str): Set point to the
10806 beginning of buffer before calling coding->post_read_conversion.
10807 (decode_coding_string): Give correct args to
10808 run_pre_post_conversion_on_str.
10809 (encode_coding_string): Likewise.
10810
eacfd7fe
KH
10811 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
10812 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
10813 eight-bit-graphic correctly.
10814
f8569325
DL
108152000-05-24 Kenichi HANDA <handa@etl.go.jp>
10816
10817 * fileio.c (Finsert_file_contents): Even if a file is not found,
10818 execute codes for setting up coding system. Call
10819 after-insert-file-functions unconditionally.
10820
04545643
GM
108212000-05-24 Gerd Moellmann <gerd@gnu.org>
10822
10823 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
10824 BSD_PGRPS are not defined.
10825
747d90ea
KH
108262000-05-24 Kenichi Handa <handa@etl.go.jp>
10827
10828 * charset.c (update_charset_table): Accept nil in LONG_NAME and
10829 DESCRIPTION.
10830 (syms_of_charset): Avoid building same strings.
10831
716e3b88
GM
108322000-05-23 Gerd Moellmann <gerd@gnu.org>
10833
10834 * lread.c (Fload): Add a comment about the meaning of
10835 Vuser_init_file being t.
10836
10837 * puresize.h (BASE_PURESIZE): Increase to 675000.
10838
10839 * s/gnu-linux.h (setpgrp): Don't define it here because this
10840 prevents compilation on GNU/Linux systems with glib 2.2.
10841
10842 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
10843 as setpgid.
427ec082 10844
9aeb39fa
EZ
108452000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
10846
10847 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
10848 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
10849 version.
10850 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
10851
29ced61b
KH
108522000-05-23 Kenichi Handa <handa@etl.go.jp>
10853
52283633 10854 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 10855
3d80f24d
KH
10856 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
10857
52283633 10858 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 10859
29ced61b
KH
10860 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
10861
d7e00792
KH
108622000-05-22 Kenichi Handa <handa@etl.go.jp>
10863
c9d80d38
KH
10864 * keyboard.c (read_char): Allow character codes 128..255 to be
10865 handled by input-method-function.
10866
d7e00792
KH
10867 * insdel.c (adjust_markers_for_replace): Fix previous change.
10868 (adjust_after_replace): If PREV_TEXT is nil, call
10869 adjust_markers_for_insert, not adjust_markers_for_replace.
10870
087121cc 108712000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 10872
087121cc
GM
10873 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
10874 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
10875 [HAVE_GRANDPT]: Define.
10876 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
10877
10878 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
10879 like SYSV_PTYS.
10880
10881 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
10882
10883 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
10884
c9671f81
KH
108852000-05-20 Kenichi Handa <handa@etl.go.jp>
10886
10887 The following changes are to handle 8-bit characters in a
10888 multibyte buffer/string without facing with byte combining
10889 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
10890 eight-bit-graphic (for 0xA0..0xFF) are introduced.
10891
10892 * Makefile.in (fns.o): Depend on charset.h.
10893
10894 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
10895 convert it to unibyte.
10896 (make_string): Use parse_str_as_multibyte, not chars_in_text.
10897
10898 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
10899 apparent char boundary.
10900 (Fset_buffer_multibyte): Convert 8-bit characters in the range
10901 0x80..0x9F to/from multibyte form.
10902
10903 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
10904 to unibyte.
10905
10906 * callproc.c (Fcall_process): Always encode an argument string if
10907 it is multibyte. Setup src_multibyte and dst_multibyte members of
10908 process_coding properly.
ce75fd23 10909
c9671f81
KH
10910 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
10911 SPLIT_NON_ASCII_CHAR.
10912
10913 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
10914 as is.
10915 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
10916
52283633 10917 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 10918 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 10919 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
10920 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
10921 and eight-bit-graphic.
10922 (char_to_string): Likewise. Signal an error for too large
10923 character code.
10924 (char_printable_p): Return 0 for 8-bit characters.
10925 (update_charset_table): Update iso_charset_table only when a final
10926 character is non-negative.
10927 (find_charset_in_text): Renamed from find_charset_in_str.
10928 Arguments and return value changed. Callers changed.
10929 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
10930 be -1 if CHARSET is used only internally.
10931 (Fmake_char_internal): Handle new charsets; eight-bit-control and
10932 eight-bit-graphic.
10933 (Fcharset_after): Simplified.
10934 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
10935 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
10936 (multibyte_chars_in_text): Simplified by assuming there's no
10937 invalid multibyte sequence.
52283633
SM
10938 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10939 (str_as_unibyte): New functions.
10940 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
10941 (init_charset_once): Initialization for
10942 LEADING_CODE_8_BIT_CONTROL.
10943 (syms_of_charset): Intern and staticpro Qeight_bit_control and
10944 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
10945 eight-bit-control and eight-bit-graphic.
10946
52283633
SM
10947 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
10948 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
10949 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
10950 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
10951 (CHARSET_REVERSE_CHARSET): Likewise.
10952 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
10953 eight-bit-graphic.
10954 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
10955 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
10956 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
10957 encounter an invalid multibyte sequence.
10958 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
10959 sequence is always valid.
10960 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 10961 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
10962 (CHAR_STRING): For 8-bit characters, call char_to_string.
10963 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
10964 multibyte sequence is always valid.
10965 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
10966 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
10967 (str_as_unibyte): Extern them.
c9671f81 10968 (BCOPY_SHORT): Fix a bug.
52283633 10969 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
10970 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10971 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10972 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10973
bd4bde7f 10974 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 10975 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
10976 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10977 (EMIT_BYTES): New macros.
10978 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10979 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
10980 macros deleted.
10981 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10982 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10983 check the validity of multibyte sequence.
10984 (decode_coding_emacs_mule): New function.
10985 (encode_coding_emacs_mule): New macro.
10986 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10987 the source.
10988 (DECODE_ISO_CHARACTER): Just return a character code.
10989 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10990 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10991 EMIT_CHAR to produced decoded characters. Exit the loop only by
10992 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10993 block here.
10994 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10995 only position codes for an invalid character.
10996 (encode_designation_at_bol): Return new destination pointer. 5th
10997 arg DSTP is changed to DST.
10998 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10999 from the source by ONE_MORE_CHAR. Don't handle the case of last
11000 block here.
11001 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11002 macros deleted.
52283633
SM
11003 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11004 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
11005 TWO_MORE_BYTES to fetch a byte from the source.
11006 (encode_eol): Pay attention to coding->src_multibyte.
11007 (detect_coding, detect_eol): Preserve members src_multibyte and
11008 dst_multibyte.
11009 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11010 (encoding_buffer_size): Set magnification to 3 for all coding
11011 systems that require encoding.
11012 (ccl_coding_driver): For decoding, be sure that the result is
11013 valid multibyte sequence.
11014 (decode_coding): Initialize coding->errors and coding->result.
11015 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11016 and raw-text, always call decode_eol. Handle the case of last
11017 block here. If not coding->dst_multibyte, convert the resulting
11018 sequence to unibyte.
11019 (encode_coding): Initialize coding->errors and coding->result.
11020 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11021 and raw-text, always call encode_eol. Handle the case of last
11022 block here.
11023 (shrink_decoding_region, shrink_encoding_region): Detect cases
11024 that we can't skip data more rigidly.
11025 (code_convert_region): Setup src_multibyte and dst_multibyte
11026 members of coding. For decoding, if the buffer is multibyte,
11027 convert the source sequence to unibyte in advance. For encoding,
11028 if the buffer is multibyte, convert the resulting sequence to
11029 multibyte afterward.
11030 (run_pre_post_conversion_on_str): New function.
11031 (code_convert_string): Deleted and divided into the following two.
11032 (decode_coding_string, encode_coding_string): New functions.
11033 (code_convert_string1, code_convert_string_norecord): Call one of
11034 above.
11035 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11036 MAKE_NON_ASCII_CHAR.
52283633
SM
11037 (Fset_terminal_coding_system_internal)
11038 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
11039 and dst_multibyte members.
11040 (init_coding_once): Initialize iso_code_class with new enum
11041 ISO_control_0 and ISO_control_1.
11042
11043 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11044 devided into ISO_control_0 and ISO_control_1.
11045 (struct coding_system): New members src_multibyte, dst_multibyte,
11046 errors, and result. Delete member fake_multibyte.
11047 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11048 nonzero.
11049 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11050 nonzero.
11051
11052 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11053 (Faset): Likewise.
11054
11055 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11056 multibyte form.
11057 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11058 combining occurs.
11059 (Ftranspose_region): Delete codes for handling byte combining.
11060
11061 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11062 dst_multibyte members of coding. On handling REPLACE on unibyte
11063 buffer, convert the result of decode_coding to unibyte. On
11064 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 11065 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
11066 multibyteness of the source (buffer or string).
11067
11068 * fns.c (concat): Handle 8-bit characters correctly.
11069 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11070 unibyte in the result.
11071 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11072 valid multibyte form in the result.
11073 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11074 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11075 return -1, signal an error.
11076 (base64_encode_1): New arg MULTIBYTE. Get each character by
11077 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11078 character is found, return -1.
11079 (Fbase64_decode_region): Delete codes for handling byte-combining.
11080 Treat each decoded byte as a unibyte character.
11081 (Fbase64_decode_string): Return unibyte string.
11082 (Fcompare_strings, concat, string_byte_to_char): Use
11083 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11084 FETCH_STRING_CHAR_ADVANCE.
11085 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11086 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11087
11088 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11089 SPLIT_NON_ASCII_CHAR.
11090 (fontset_ref_via_base, fontset_set): Likewise
11091
11092 * insdel.c (adjust_markers_for_record_delete): Deleted.
11093 (adjust_markers_for_insert): Argument changed. Caller changed.
11094 (adjust_markers_for_replace): Likewise.
52283633
SM
11095 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11096 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
11097 (copy_text): Delete unused local varialbe c_save. For converting
11098 to multibyte, be sure to make all 8-bit characters in valid
11099 multibyte form.
11100 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
11101 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11102 (adjust_after_replace, replace_range, del_range_2)
c9671f81 11103 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
11104 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11105 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
11106 handling byte combining.
11107 (adjust_before_replace): Deleted.
427ec082 11108
c9671f81
KH
11109 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11110 SPLIT_NON_ASCII_CHAR.
11111 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 11112 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11113 (Fkey_description): Likewise.
11114
11115 * lread.c (read1): On reading multibyte string, be sure to make
11116 all 8-bit chararacters in valid multibyte form.
11117 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11118
11119 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11120 unconditionally.
11121
11122 * process.c (Fstart_process): GCPRO current_dir before calling
11123 Ffind_operation_coding_system. Encode arguments here.
11124 (create_process): Don't encode arguments here. Setup
11125 src_multibyte and dst_multibyte members of struct coding.
11126 (read_process_output): Setup src_multibyte and dst_multibyte
11127 members of struct coding. If the output is to multibyte buffer,
11128 always decode the output of the process. Adjust the
52283633 11129 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
11130 (send_process): Setup coding->src_multibyte according to the
11131 multibyteness of the source.
11132
52283633 11133 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11134 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11135 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11136
52283633 11137 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
11138
11139 * w16select.c (Fw16_set_clipboard_data): Setup members
11140 src_multibyte and dst_multibyte of coding. Adjusted for the
11141 change for find_charset_in_str.
11142 (Fw16_get_clipboard_data): Likewise.
11143
11144 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11145 dst_multibyte of coding.
11146 (x_to_w32_font): Likewise.
11147
11148 * w32select.c (Fw32_set_clipboard_data): Setup members
11149 src_multibyte and dst_multibyte of coding. Adjusted for the
11150 change for find_charset_in_str.
11151 (Fw32_get_clipboard_data): Likewise.
11152
11153 * xdisp.c (get_next_display_element): Handle 8-bit characters
11154 correctly.
52283633
SM
11155 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11156 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
11157
11158 * xselect.c (selection_data_to_lisp_data): Setup members
11159 src_multibyte and dst_multibyte of coding. Adjusted for the
11160 change for find_charset_in_str.
11161 (lisp_data_to_selection_data): Likewise.
11162
5f64c9e0
GM
111632000-05-19 Gerd Moellmann <gerd@gnu.org>
11164
52283633 11165 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 11166
5f64c9e0
GM
11167 * dispextern.h (Vimage_types): Add extern declaration.
11168
11169 * xdisp.c (Vimage_types): Moved here from xfns.c.
11170 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11171
11172 * xfns.c (Vimages_types): Moved to xdisp.c.
11173 (syms_of_xfns): Move `image-types' to xdisp.c.
11174
11175 * w32fns.c (Vimage_types): Removed.
11176 (syms_of_w32fns): Remove `image-types'.
11177
813086ea
KH
111782000-05-18 Kenichi Handa <handa@etl.go.jp>
11179
11180 * fns.c (map_char_table): Pay attention to character number of
11181 charset. Check the validity of charset at the first level. For
11182 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11183 the default value.
11184
11185 * fontset.c: Include "buffer.h".
11186 (fs_load_font): If the face has fontset, record the face ID in
11187 that fontset.
11188 (Finternal_char_font): New function.
11189 (accumulate_font_info): New function.
11190 (Ffontset_info): Rewritten for the new fontset implementation.
11191 (syms_of_fontset): Register Vdefault_fontset in the first element
11192 of Vfontset_table. Include Vdefault_fontset in
11193 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11194 function.
11195
bdaebbf0
DL
111962000-05-16 Dave Love <fx@gnu.org>
11197
11198 * m/iris5d.h: Deleted -- unused.
11199
cb613bb8
GM
112002000-05-16 Gerd Moellmann <gerd@gnu.org>
11201
b15f3b77
GM
11202 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11203 `invalid' instead of `illegal'.
11204
11205 * indent.c (Fmove_to_column): When ending within a tab, insert
11206 spaces first so that markers at the end of the tab get adjusted.
11207
835c1b36
GM
11208 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11209 buffer list that wasn't selected in that frame.
11210
cb613bb8
GM
11211 * filelock.c (get_boot_time): To obtain an 8 char file name, which
11212 is needed on mescaline, use a 2 char prefix, and call
11213 make_temp_name with second arg non-zero.
11214
11215 * fileio.c (make_temp_name): New function, extracted from
11216 Fmake_temp_name.
11217 (Fmake_temp_name): Use it.
11218
f685bea9
EZ
112192000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11220
52283633 11221 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 11222
a1b8d58b
GM
112232000-05-15 Gerd Moellmann <gerd@gnu.org>
11224
11225 * Makefile.in (lisp): Add env.elc.
11226
11227 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11228
a265079f
GM
112292000-05-12 Gerd Moellmann <gerd@gnu.org>
11230
11231 * search.c (Freplace_match): Handle case of `\N' in the
11232 replacement when there's no group N.
11233
da4496b6
GM
112342000-05-11 Gerd Moellmann <gerd@gnu.org>
11235
0ace421a
GM
11236 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11237 of the message to message_dolog.
11238
1172eb8d
GM
11239 * keyboard.c (read_char): Don't clear current message for help
11240 events; let the code handling help events handle this. Change
11241 code detecting help events that should be ignored.
11242
da4496b6
GM
11243 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11244 we're interating over a string.
11245
0623e40f
DL
112462000-05-09 Dave Love <fx@gnu.org>
11247
11248 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11249 that offset before writing. Move gcpro region past call of
11250 Ffile_regular_p.
11251
bae2503b
DL
112522000-05-04 Dave Love <fx@gnu.org>
11253
11254 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11255
ec82fb2f
GM
112562000-05-04 Gerd Moellmann <gerd@gnu.org>
11257
11258 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11259 of inserted characters when BUF equals the current buffer, and PT
11260 is in front of or equal to FROM.
11261
cbf18892
GM
112622000-05-03 Gerd Moellmann <gerd@gnu.org>
11263
4ff40dd0
GM
11264 * xdisp.c (handle_single_display_prop): If display property value
11265 is invalid, or something not supported on the frame, restore
11266 iterator's position to what it was initially. Make sure to return
11267 0 for invalid and unsupported property values.
11268
cbf18892
GM
11269 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11270 that x_per_char_metric returns null.
11271
1b0672c3
GM
112722000-05-02 Gerd Moellmann <gerd@gnu.org>
11273
576da55d
GM
11274 * xterm.h (struct face): Add forward declaration.
11275 (struct image): Ditto.
11276 (image_ascent): Add prototype.
11277
11278 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11279 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11280 image_ascent instead of using IMAGE_ASCENT.
11281
11282 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11283 (IMAGE_ASCENT): Removed.
11284
11285 * xfns.c (Qcenter): New variable.
11286 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11287 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11288 (image_ascent): New function.
11289 (lookup_image): Recognize `:ascent center'.
11290 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11291 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11292 (xbm_load): Don't set image's ascent here.
11293 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11294 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11295 check ascent values here.
11296 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11297 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11298 (syms_of_xfns): Initialize Qcenter.
11299
1b0672c3
GM
11300 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11301 to the limits, increase the limits.
11302
0d7811ed
KH
113032000-05-01 Kenichi Handa <handa@etl.go.jp>
11304
11305 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 11306 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 11307
a943a5ca
GM
113082000-04-28 Gerd Moellmann <gerd@gnu.org>
11309
11310 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11311 taller than the window.
11312
5dba1e29
KH
113132000-04-28 Kenichi Handa <handa@etl.go.jp>
11314
11315 * xfaces.c (realize_x_face): Fix the argument of the second
11316 xassert. BASE_FACE may not be a face for ASCII.
11317
353964e3
GM
113182000-04-27 Gerd Moellmann <gerd@gnu.org>
11319
c76e04a8
GM
11320 * print.c (print_object): Treat print-length < 0 as nil.
11321
11322 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11323
11324 * s/freebsd.h (TERMCAP_OBJ): Removed.
11325 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11326
11327 * lread.c (read1): Don't treat period followed by certain
11328 characters as symbol start.
11329
11330 * xfns.c (slurp_file): New function.
11331 (xbm_image_p): Handle case of in-memory XBM files.
11332 (xbm_scan): Rewritten to work on memory buffers instead of files.
11333 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11334 Work on memory buffers instead of files. If DATA is null test
11335 if buffer looks like an in-memory XBM file.
11336 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11337 memory buffers instead of files.
11338 (xbm_file_p): New function.
11339 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11340
353964e3
GM
11341 * lread.c (end_of_file_error): New function.
11342 (read1): Call it instead of signaling `end-of-file' directly.
11343
427ec082 11344 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
11345 with Fprinc instead of Fprin1.
11346
24d744ac
KR
113472000-04-26 Ken Raeburn <raeburn@gnu.org>
11348
11349 * window.c (freeze_window_start): Check that minibuffer scroll
11350 window isn't nil before extracting the window structure pointer
11351 from it.
11352
11353 * undo.c (record_delete): If we hit the end of the undo list, stop
11354 picking elements apart.
11355
7464346d
GM
113562000-04-26 Gerd Moellmann <gerd@gnu.org>
11357
11358 * xdisp.c (display_line): If lines are continued, restore
11359 iterator's ascent/descent information to the values before the
11360 first glyph not fitting on the line.
11361
612839b6
GM
113622000-04-25 Gerd Moellmann <gerd@gnu.org>
11363
11364 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 11365 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
11366
11367 * dispnew.c (increment_matrix_positions): Renamed from
11368 increment_glyph_matrix_buffer_positions.
11369 (increment_row_positions): Renamed from
11370 increment_glyph_row_buffer_positions.
11371
11372 * dispextern.h: Change names of renamed functions from dispnew.c
11373 in prototypes.
11374
cc181e95
GM
113752000-04-24 Gerd Moellmann <gerd@gnu.org>
11376
abfcc168
GM
11377 * fileio.c (Fdo_auto_save): Create directories for auto-save
11378 list file if necessary.
11379
cc181e95
GM
11380 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
11381 from buffer or frame.
11382 (automatic_hscrolling_p): New variable.
11383 (hscroll_windows): Scroll windows horizontally only if automatic
11384 hscrolling is allowed.
11385 (syms_of_xdisp): New variable `automatic-hscrolling'.
11386
11387 * frame.h (struct frame): Add member extra_line_spacing.
11388
11389 * xfns.c (x_set_line_spacing): New function.
11390 (Fx_create_frame): Set line spacing from resources.
11391 (Qline_spacing): New variable.
11392 (syms_of_xfns): Initialize Qline_spacing.
427ec082 11393
cc181e95
GM
11394 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
11395
11396 * buffer.c (init_buffer_once): Handle extra_line_spacing.
11397 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 11398 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
11399 extra_line_spacing from default value.
11400 (init_buffer_once): Initialize default value of extra_line_spacing.
11401
11402 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
11403 and extra3.
11404
11405 * xterm.c (x_produce_glyphs): Remove reference to struct it's
11406 prompt_width. Add extra line spacing.
11407
11408 * term.c (produce_glyphs): Remove reference to struct it's
11409 prompt_width.
11410
11411 * dispextern.h (struct it): Remove member prompt_width, add
11412 extra_line_spacing.
11413
58827478
GM
114142000-04-22 Gerd Moellmann <gerd@gnu.org>
11415
11416 * dispnew.c (update_frame_line): When writing a whole line, make
11417 sure cursor is in the right row afterwards, otherwise a use of
11418 capability `ch' in cmgoto might leave the cursor in the row below.
11419
25a87f42
GM
114202000-04-21 Gerd Moellmann <gerd@gnu.org>
11421
11422 * lisp.h (struct Lisp_Buffer_Cons): Remove.
11423
11424 * keyboard.c (timer_check): Fix typo in comment.
11425
54edf5c2
KH
114262000-04-21 Kenichi Handa <handa@etl.go.jp>
11427
11428 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
11429 name change: ch -> character.
11430
3a64eef5
GM
114312000-04-20 Gerd Moellmann <gerd@gnu.org>
11432
11433 * keyboard.c (echo_message_buffer): New variable.
11434 (echo_now): Set echo_message_buffer to the echo area buffer used
11435 to display the echo.
11436 (cancel_echoing): Reset echo_message_buffer to nil.
11437 (read_char): Code rewritten that handles canceling an echo or
11438 echoing a dash, respectively.
11439
11440 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
11441 directory doesn't exist.
11442
6142fdcb
DL
114432000-04-19 Dave Love <fx@gnu.org>
11444
11445 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
11446 (concat): Don't allow numeric args.
11447 (Fconcat): Doc change.
6142fdcb 11448
ac6b5352
SM
114492000-04-19 Stefan Monnier <monnier@cs.yale.edu>
11450
11451 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
11452 instead define end_match(1|2) more carefully.
11453 Use GET_CHAR_BEFORE_2 for `begline'.
11454
cb9215e4
GM
114552000-04-19 Gerd Moellmann <gerd@gnu.org>
11456
5e3dac3f
GM
11457 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
11458 on 64-bit systems where NULL is defined as `0'.
11459
11460 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
11461 the `variable argument list' to make it work on Alpha.
11462
cb9215e4
GM
11463 * m/alpha.h (_LP64) [!_LP64]: Define.
11464 (ORDINARY_LINK): Define for NetBSD.
11465
11466 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 11467
f532dca0
DL
114682000-04-19 Dave Love <fx@gnu.org>
11469
c750667e
DL
11470 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
11471 change.
11472
11473 * Makefile.in (LIBS): Don't use.
11474 (GETLOADAVG_OBJ): Define again.
11475 (otherobj): Add GETLOADAVG_OBJ.
11476
f532dca0
DL
11477 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
11478
1c7e22fd
GM
114792000-04-18 Gerd Moellmann <gerd@gnu.org>
11480
f6d3257b
GM
11481 * lread.c (read_filtered_event): Cancel and start busy cursor.
11482
427ec082 11483 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
11484 that the per-character metrics may be null.
11485
e10f64e7
GM
114862000-04-17 Gerd Moellmann <gerd@gnu.org>
11487
0daee095
GM
11488 * buffer.c (clone_per_buffer_values): New function.
11489 (Fmake_indirect_buffer): Add optional argument CLONE. Call
11490 clone_per_buffer_values if CLONE is not nil.
11491
e10f64e7
GM
11492 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11493
38687d43
DL
114942000-04-16 Dave Love <fx@gnu.org>
11495
11496 * Makefile.in: Remove obsolete localcpp stuff.
11497 (GETLOADAVG_OBJ): Don't define.
11498 (obj): Move LIBOBJS...
11499 (otherobj): ... to here.
11500 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
11501 whitespace-only lines after the continuation (Irix).
11502
c21c7262
GM
115032000-04-14 Gerd Moellmann <gerd@gnu.org>
11504
11505 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
11506
11507 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
11508
314767c0
DL
115092000-04-14 Dave Love <fx@gnu.org>
11510
11511 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
11512 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
11513 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
11514 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
11515 NLIST_STRUCT.
11516
11517 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
11518 autoconfiscated HAVE_GETLOADAVG.
11519
11520 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
11521 BROKEN_MKTIME.
11522
a2522dca
GM
115232000-04-14 Gerd Moellmann <gerd@gnu.org>
11524
11525 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 11526 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 11527
33744b5d
DL
115282000-04-14 Dave Love <fx@gnu.org>
11529
c21c7262 11530 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
11531 (INTERVAL_SRC): Convert to make variable.
11532 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
11533 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
11534 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
11535 add LIBOBJS.
11536 (SOME_MACHINE_OBJECTS): Remove interval stuff.
11537 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
11538 (shortlisp): Add facemenu, float-sup, frame.
11539 (SOME_MACHINE_LISP): Remove them from here.
11540 (LIBES): Change unused LDLIBS to autoconf LIBS.
11541
11542 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
11543
9d3d5916
KH
115442000-04-14 Kenichi Handa <handa@etl.go.jp>
11545
11546 * composite.c (update_compositions): If FROM and TO are not in a
11547 valid range, do nothing.
11548
198e3c7a
GM
115492000-04-13 Gerd Moellmann <gerd@gnu.org>
11550
52283633 11551 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 11552
52283633 11553 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
11554
11555 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
11556 as TERMCAP_OBJ.
11557
055a28c9
EZ
115582000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11559
11560 * fileio.c (a_write): Remove redundant semi-colons.
11561 (e_write): Return -1 if failed to write all the data.
11562 This fixes the changes made at 1999-12-15.
11563
f5c75033
DL
115642000-04-12 Dave Love <fx@gnu.org>
11565
11566 * fns.c (mapcar1): Test for null vals to support mapc.
11567 (Fmapc): New function.
11568
0c3cfc51
EZ
115692000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
11570
11571 * msdos.c (NUM_MOUSE_BUTTONS): Define.
11572 (IT_frame_up_to_date): Support the buffer local value of
11573 cursor-type, if defined.
11574
33465a31
DL
115752000-04-10 Dave Love <fx@gnu.org>
11576
11577 * editfns.c (preceding-char, following-char): Doc fix.
11578
6ed56568
KR
115792000-04-10 Ken Raeburn <raeburn@gnu.org>
11580
11581 * Makefile.in (temacs): Revert 2000-03-12 change.
11582
7cf80d4e
JR
115832000-04-10 Jason Rumney <jasonr@gnu.org>
11584
11585 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
11586
34f3f342
GM
115872000-04-10 Gerd Moellmann <gerd@gnu.org>
11588
1a1b1895
GM
11589 * xdisp.c (setup_echo_area_for_printing): Choose an echo
11590 area buffer, if it's not set up yet.
11591
34f3f342
GM
11592 * indent.c (compute_motion): Set immediate_quit.
11593
be0dbdab
GM
115942000-04-09 Gerd Moellmann <gerd@gnu.org>
11595
52283633 11596 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
11597 (realize_tty_face): Suppress boldness if colors are the inverse of
11598 the default colors, and tty_suppress_bold_inverse_default_colors_p
11599 is set.
11600 (Ftty_suppress_bold_inverse_default_colors): New function.
11601 (syms_of_xfaces): Defsubr it.
11602
be0dbdab
GM
11603 * buffer.c (Frestore_buffer_modified_p): New function.
11604 (syms_of_buffer): Defsubr it.
11605
e8413c3b
KR
116062000-04-08 Ken Raeburn <raeburn@gnu.org>
11607
87f67317
KR
11608 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
11609 charset id (int) argument, not a charset (Lisp_Object).
11610
e8413c3b
KR
11611 * coding.h (code_convert_string): Declare.
11612 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
11613 object, as the fourth argument to code_convert_string.
11614
52283633 11615 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
11616 (Fset_fontset_font): Use EQ to compare lisp objects.
11617
7c752c80
KR
116182000-04-05 Ken Raeburn <raeburn@gnu.org>
11619
c0333abc
KR
11620 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
11621 a pointer that looks like a lisp object.
11622 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
11623 zero, instead see whether it's an integer object, since they can't
11624 have intervals.
11625 (GET_INTERVAL_OBJECT): Simply assign to the destination.
11626
52283633
SM
11627 * dispnew.c (allocate_matrices_for_frame_redisplay)
11628 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
11629 to convert between (unsigned) int values and lisp integers.
11630 * keyboard.c (read_key_sequence): Likewise.
11631 * lread.c (substitute_object_recurse): Likewise.
11632 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
11633 * minibuf.c (do_completion, Fminibuffer_complete_word)
11634 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
11635 * term.c (produce_special_glyphs): Likewise.
11636
11637 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
11638 * print.c (print_preprocess, print_object): Likewise.
11639
11640 * search.c (compile_pattern): Use NILP when checking for nil.
11641
74e49b38
KR
11642 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
11643 __OPTIMIZE__]: Provide a GNU C macro version that handles
11644 lisp-object unions.
11645 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
11646 field, to better cope with ENABLE_CHECKING and calls that modify a
11647 Lisp_Object using its old value.
11648
685e5ed2
GM
116492000-04-04 Gerd Moellmann <gerd@gnu.org>
11650
c407c570
GM
11651 * window.c (compare_window_configurations): Signal an error
11652 if parameters C1 or C2 aren't window configurations.
11653
685e5ed2
GM
11654 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
11655 AFTER_POTENTIAL_GC calls around calls to functions that can
11656 signal an error and thus invoke the debugger.
11657
587a49ab
GM
116582000-04-03 Gerd Moellmann <gerd@gnu.org>
11659
62f20204
GM
11660 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
11661 an error if decoding fails.
11662
587a49ab
GM
11663 * keyboard.c (lispy_mouse_names): Variable removed.
11664 (Vlispy_mouse_stem): New variable.
11665 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
11666 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
11667 for any mouse button number. Increase size of mouse_syms and
11668 button_down_location as needed. Call modify_event_symbol with
11669 different arguments.
11670 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
11671 Call modify_event_symbol with different arguments.
11672 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
11673 for any button number. Call modify_event_symbol with different
11674 arguments.
11675 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
11676 Accept a string for NAME_ALIST_OR_STEM.
11677
11678 * lisp.h (larger_vector): Add prototype.
11679
11680 * fns.c (larger_vector): Make externally visible.
11681
11682 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
11683
2d1675e4
SM
116842000-04-02 Stefan Monnier <monnier@cs.yale.edu>
11685
11686 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
11687 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
11688 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
11689 we are between str1 and str2.
11690 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
11691 (PATFETCH): Use `TRANSLATE'.
11692 (PATFETCH_RAW): Fetch multibyte char if applicable.
11693 (PATUNFETCH): Remove.
11694 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
11695 When writing a char, write it directly into the pattern buffer rather
11696 than going needlessly through a temp char-array.
11697 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
11698 multibyte magic and remove the useless `#ifdef emacs'.
11699 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
11700 buffer.
11701
11702 * regex.h (struct re_pattern_buffer): Make field `multibyte'
11703 conditional on `emacs'.
11704
11705 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
11706
cc2d8c6b
KR
117072000-04-01 Ken Raeburn <raeburn@gnu.org>
11708
11709 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
11710 non-union-type versions of XMARK and friends here, because XMARK
11711 and friends won't work on an integer field if NO_UNION_TYPE is not
11712 defined.
52283633 11713 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 11714
52283633 11715 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
11716 (syms_of_composite): Delete local var NARGS, pass an int as first
11717 argument to Fmake_hash_table.
11718
2387b382
KR
11719 * editfns.c (text_property_stickiness): Use NILP to test
11720 Lisp_Object boolean value.
11721 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
11722 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
11723 problems reading from and changing the same lisp value in an
11724 XSETSTRING call.
11725
27660e89
GM
117262000-04-01 Gerd Moellmann <gerd@gnu.org>
11727
11728 * term.c (TN_no_color_video): New variable.
11729 (term_init): Intitialize TN_no_color_video.
11730 (enum no_color_bit): New enumeration.
11731 (MAY_USE_WITH_COLORS_P): New macro.
11732 (turn_on_face): Use it to determine if attributes may be used
11733 combined with colors.
11734
3578db3c
KR
117352000-04-01 Ken Raeburn <raeburn@gnu.org>
11736
11737 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 11738 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
11739 (enlarge_window): Variable sizep now points to Lisp_Object. Use
11740 proper accessor macros.
11741 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
11742 (grow_mini_window): Fix typo getting int value of root->height.
11743
6fc556fd
KR
11744 * xdisp.c (compute_string_pos): Fix order of arguments to
11745 string_pos_nchars_ahead.
11746 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
11747 count arg to variable-arg routines like Frun_hook_with_args and
11748 Fformat.
587a49ab
GM
11749 (back_to_previous_visible_line_start)
11750 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
11751 fixed-arg routines like Fget_char_property and Fmake_string.
11752 (reconsider_clip_changes): Use XINT when comparing integer lisp
11753 objects, or passing them as int arguments.
587a49ab
GM
11754 (mark_window_display_accurate, insert_left_trunc_glyphs)
11755 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
11756 storing or passing integer values as lisp objects.
11757 (set_cursor_from_row, highlight_trailing_whitespace): Use
11758 INTEGERP, not implicit test against zero, for glyph object.
11759 (try_window_id): Don't use make_number when we want an int value.
11760
11761 * xfaces.c (xlfd_symbolic_value): Make last argument a
11762 Lisp_Object, to be consistent with callers.
11763 (Fbitmap_spec_p): Use XINT to get numeric value of height.
11764 (lface_hash): Apply XFASTINT to lisp values before folding in.
11765
11766 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
11767 fill in window width and height. Pass an int, not a lisp object,
11768 as first arg to Finsert.
11769
6e7b2457
GM
117702000-04-01 Gerd Moellmann <gerd@gnu.org>
11771
610d841e
GM
11772 * xfaces.c (realize_basic_faces): Block input while realizing
11773 the faces.
11774
6e7b2457
GM
11775 * keyboard.c (lispy_mouse_names): Add additional mouse names.
11776
11777 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
11778
aa110c0c
GM
117792000-03-31 Gerd Moellmann <gerd@gnu.org>
11780
11781 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 11782 or ASCII, handle case that per-char metric is null.
aa110c0c 11783
8801a864
KR
117842000-03-30 Ken Raeburn <raeburn@gnu.org>
11785
c6129d7e
KR
11786 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
11787
52283633
SM
11788 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
11789 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
11790 pointer, using eassert.
11791 * frame.h (XFRAME): Likewise.
11792
52283633
SM
11793 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
11794 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
11795 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 11796 * data.c (set_internal): Likewise.
52283633
SM
11797 * dispextern.h (WINDOW_WANTS_MODELINE_P)
11798 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
11799 * fileio.c (auto_save_1): Likewise.
11800 * insdel.c (check_markers): Likewise.
11801 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
11802 * undo.c (record_insert): Likewise.
11803 * vmsproc.c (child_sig): Likewise.
11804 * window.c (unshow_buffer, window_loop): Likewise.
11805 * xterm.c (x_erase_phys_cursor): Likewise.
11806
8e7af858
GM
118072000-03-30 Gerd Moellmann <gerd@gnu.org>
11808
11809 * xfns.c (free_image_cache): Free the cache structure itself
11810 last, after all its members have been freed.
11811
11812 * lisp.h (xstrdup): Add prototype.
11813
11814 * alloc.c (xstrdup): Moved here from xfaces.c.
11815 (allocating_for_lisp): Variable removed.
52283633 11816 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
11817
11818 * xfaces.c (realize_tty_face): Use find_symbol_value instead
11819 of Fsymbol_value.
11820 (xstrdup): Moved to alloc.c.
11821
e0b8c689
KR
118222000-03-29 Ken Raeburn <raeburn@gnu.org>
11823
b96f9fb7
KR
11824 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
11825
11826 * emacs.c (main): Fix sense of no-loadup test.
11827
e0b8c689
KR
11828 * config.in (ENABLE_CHECKING): Undef.
11829
11830 * lisp.h (struct interval): Replace "parent" field with a union of
11831 interval pointer and Lisp_Object; add new bitfield to use as
11832 discriminant. Change other flag fields to bitfields.
11833 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
11834 is defined and the supplied test fails, print a message and abort.
11835 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
11836
11837 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
11838 pointers; abort if the value looks like a lisp object.
52283633
SM
11839 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
11840 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
11841 Modify for new interval parent definition.
11842
52283633
SM
11843 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
11844 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
11845 addressable lisp object in the interval structure.
11846 (die): New function.
11847 (suppress_checking): New variable.
11848
11849 * intervals.c (interval_start_pos): Just return 0 if there's no
11850 parent object.
11851
f83c5440
GM
118522000-03-29 Gerd Moellmann <gerd@gnu.org>
11853
11854 * lread.c (read1): Accept `.' (period) as symbol start like in CL
11855 and earlier Emacs versions.
11856
11857 * keyboard.c (Ftop_level): Cancel busy-cursor.
11858
11859 * eval.c (call_debugger): Cancel busy-cursor.
11860
fdce64ff
KH
118612000-03-29 Kenichi Handa <handa@etl.go.jp>
11862
11863 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 11864 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 11865
f6a3f532
SM
118662000-03-28 Stefan Monnier <monnier@cs.yale.edu>
11867
11868 * regex.c (analyse_first): New function obtained by ripping out most
11869 of re_compile_fastmap and generalizing it a little bit so that it
11870 can also just return whether a given (sub)pattern can match the empty
11871 string or not.
11872 (regex_compile): Use `analyse_first' to decide whether the loop-check
11873 needs to be done or not for *, +, *? and +? (the loop check is costly
11874 for non-greedy repetition).
11875 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
11876
e9b309ac
DL
118772000-03-28 Dave Love <fx@gnu.org>
11878
52283633 11879 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 11880
e9b309ac
DL
11881 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
11882
ed0767d8
SM
118832000-03-27 Stefan Monnier <monnier@cs.yale.edu>
11884
11885 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
11886 an expression.
11887 (enum re_opcode_t): Update description of succeed_n.
11888 (PATFETCH): Always define.
11889 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
11890 operators, char classes, shy-groups and intervals).
11891 Optimize special cases of intervals so as to only use succeed_n and
11892 jump_n when really needed.
11893 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
11894 that we don't have to handle the special cases any more.
11895 Simplify on_failure_jump handling as well.
11896
e11e7e46
JR
118972000-03-28 Jason Rumney <jasonr@gnu.org>
11898
11899 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
11900
88faab89
GM
119012000-03-27 Gerd Moellmann <gerd@gnu.org>
11902
182ff242
GM
11903 * s/freebsd.h (GC_SETJMP_WORKS): Define.
11904
11905 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 11906
182ff242
GM
11907 * alloc.c (mark_maybe_object): New function.
11908 (mark_memory): Use it.
11909 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
11910 (setjmp_tested_p, longjmp_done): New variables.
11911 (test_setjmp): New function.
11912 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
11913 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
11914
c1005d06
GM
11915 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
11916 to DEC_TEXT_POS and INC_TEXT_POS.
11917
11918 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
11919 with parameter MULTIBYTE_P.
11920
52283633 11921 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 11922
7439e5b9 11923 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
11924 buffers because it looks for multibyte character byte sequences
11925 which don't exist in unibyte text.
7439e5b9 11926
d9c545da
GM
11927 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
11928
11fd416e 11929 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
11930 [DEBUG_X_COLORS]: New functions.
11931 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
11932
11933 * xfns.c (x_set_cursor_color): Get color reference counts right.
11934
11935 * xterm.c (x_copy_color): New function.
11936 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
11937
11938 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
11939 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
11940 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
11941 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
11942 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
11943 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
11944 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
11945 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
11946 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
11947 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
11948
11fd416e
GM
11949 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
11950 names for handling per-buffer variables.
d9c545da
GM
11951
11952 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
11953 instead of MAX_BUFFER_LOCAL_VARS.
11954 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
11955
11956 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
11957
88faab89
GM
11958 * xfns.c (x_specified_cursor_type): New function.
11959 (x_set_cursor_type): Use it.
11960
11961 * buffer.h (struct buffer): Add cursor_type.
11962
d80f42b7
SM
119632000-03-26 Stefan Monnier <monnier@cs.yale.edu>
11964
11965 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
11966 (print_partial_compiled_pattern, re_compile_fastmap):
11967 Handle new opcode.
d80f42b7
SM
11968 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
11969 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11970 executing it as well as when popping it off the stack to find infinite
11971 loops in non-greedy repetition operators.
11972
89e80928
GM
119732000-03-26 Gerd Moellmann <gerd@gnu.org>
11974
3d4ff2dd
GM
11975 * doc.c (Qfunction_documentation): New variable.
11976 (syms_of_doc): Initialize Qfunction_documentation.
11977 (Fdocumentation): If FUNCTION is a symbol with non-nil
11978 `function-documentation' property, return a documentation derived
11979 from that.
11980
bd96bd79
GM
11981 * buffer.c (syms_of_buffer): Add default-cursor-type.
11982 (init_buffer_once): Don't let cursor_type have a local value
11983 in every buffer.
11984
19d1bc27
GM
11985 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11986 on buffer-local value of cursor_type.
11987 (x_draw_bar_cursor): Add parameter WIDTH.
11988
11989 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11990 (init_buffer_once): Set default cursor_type value to t.
11991 Mark cursor_type as local everywhere.
11992 (syms_of_buffer): New per-buffer variable cursor-type.
11993
89e80928
GM
11994 * buffer.h (struct buffer): Remove member local_var_flags,
11995 add local_flags.
11996 (MAX_BUFFER_LOCAL_VARS): New macro.
11997 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11998 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11999 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12000 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12001
52283633 12002 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
12003
12004 * category.c (Fset_category_table): Use new macros for per-buffer
12005 variables.
12006
12007 * buffer.c (buffer_permanent_local_flags): Make a char array.
12008 (max_buffer_local_idx): New variable.
12009 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12010 for new handling of per-buffer variables.
12011 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12012 (init_buffer_once): Initialize per-buffer vars differently.
12013 Set max_buffer_local_idx.
12014
12015 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12016 variables.
12017
52283633 12018 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
12019
12020 * data.c (do_symval_forwarding, store_symval_forwarding)
12021 (find_symbol_value, set_internal, default_value, Fset_default)
12022 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12023 per-buffer variables.
12024
12025 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12026
9a0dd3dc
GM
120272000-03-24 Gerd Moellmann <gerd@gnu.org>
12028
b68c375f
GM
12029 * xterm.c (x_term_init): Unblock input around call1 of
12030 Qvendor_specific_keysyms.
12031
9a0dd3dc
GM
12032 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12033 (find_defun_start): Consider an open parenthesis in column 0
12034 a defun start only if open_paren_in_column_0_is_defun_start is set.
12035 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12036
7973e637
SM
120372000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12038
12039 * eval.c (Fautoload): Add entry in load-history (if after dump).
12040 * lread.c (load-history): Update docstring.
12041
39210e90
GM
120422000-03-24 Gerd Moellmann <gerd@gnu.org>
12043
12044 * indent.c (Fvertical_motion): Always use the current buffer.
12045 Temporarily change the window's buffer, if necessary.
12046
72db3ab5
GM
120472000-03-23 Gerd Moellmann <gerd@gnu.org>
12048
12049 * xterm.c (fast_find_position): Make sure not to consider rows
12050 not visible in the window.
12051
990b2375
SM
120522000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12053
12054 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12055 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12056
ff4df011
JR
120572000-03-22 Jason Rumney <jasonr@gnu.org>
12058
12059 * w32menu.c (single_submenu): Set help string to NULL if none.
12060 (w32_menu_show): Set help string correctly.
12061 (add-menu-item): Set help string in MIIM_DATA for menu item.
12062 Load SetMenuItemInfoA explicitly.
12063 (w32_menu_display_help): New function.
427ec082 12064
ff4df011
JR
12065 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12066 (QCdata): Moved to xdisp.c.
12067
12068 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12069 (Vw32_charset_to_codepage_alist): Removed.
12070 (Vw32_charset_info_alist): New variable.
52283633
SM
12071 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12072 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12073 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
12074 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12075 with TODO comment.
12076 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12077 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12078 Define Vw32_charset_info_alist and w32_charset symbols.
12079
120802000-03-22 Jason Rumney <jasonr@gnu.org>
12081
12082 * makefile.nt (w32bdf.obj): Update dependencies.
12083
12084 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12085
12086 * w32fns.c: Include fontset.h after dispextern.h.
12087 (Fx_create_frame): Do not create fontset.
12088 (w32_load_system_font): Doc fix.
12089 (Fx_close_connection): Free full_name if it is not shared.
12090
12091 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
12092 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12093 Callers updated.
ff4df011
JR
12094 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12095 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12096 (w32_font_is_double_byte): New function, needs body.
12097 (x_append_glyph): Set glyph->glyph_not_available_p.
12098 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12099 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12100 character, convert it to a unibyte character.
12101 (struct glyph_string): Delete member `charset'.
12102 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12103 calculating it is found.
12104 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12105 the case that per char metric is not available correctly.
12106 (x_fill_glyph_string): Handle the case that the specific glyph is
12107 not available correctly.
12108 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12109 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12110 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12111 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12112 fontset. Don't call FS_LOAD_FONT.
12113
439d5cb4
KR
121142000-03-22 Ken Raeburn <raeburn@gnu.org>
12115
12116 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12117 (INT_LISPLIKE): New macro.
12118 (NULL_INTERVAL_P): Use it.
52283633
SM
12119 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12120 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12121 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
12122
12123 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12124 explicit references to "parent" field of struct interval and
12125 associated unclean type conversions.
52283633
SM
12126 * intervals.c (create_root_interval, root_interval, rotate_right)
12127 (rotate_left, balance_possible_root_interval, split_interval_right)
12128 (split_interval_left, interval_start_pos, find_interval)
12129 (next_interval, previous_interval, update_interval)
12130 (adjust_intervals_for_insertion, delete_node, delete_interval)
12131 (adjust_intervals_for_deletion, merge_interval_right)
12132 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12133 (copy_intervals_to_string): Likewise.
439d5cb4
KR
12134 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12135 Likewise.
12136 * syntax.c (update_syntax_table): Likewise.
12137
12138 * intervals.c (reproduce_tree_obj): New function, like
12139 reproduce_tree but takes a Lisp_Object for the parent. Declare
12140 with prototype.
12141 (graft_intervals_into_buffer): Use it when appropriate.
12142 (reproduce_tree): Declare with prototype.
12143 (balance_possible_root_interval): Check that the parent is a lisp
12144 object before trying to examine its type.
12145
ee1c5b21
GM
121462000-03-22 Gerd Moellmann <gerd@gnu.org>
12147
12148 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12149 as strings only if both are known to be strings.
12150
12151 * s/openbsd.h (LIBS_TERMCAP): Undef.
12152
1fb352e0
SM
121532000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12154
12155 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12156 definitions for non-Emacs compilation.
12157 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12158 outside of `#ifdef emacs'.
12159 (print_partial_compiled_pattern): Update.
12160 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12161 (re_compile_fastmap): Merge handling of charset and charset_not (for
12162 emacs and non-emacs compilation as well).
12163 Similarly for (not)categoryspec and (not)syntaxspec.
12164 Don't use the fastmap when reaching `anychar' since the added
12165 complexity is not justified.
12166 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12167 and (not)syntaxspec. Merge (not)categoryspec.
12168
fdaa1f77
KH
121692000-03-22 Kenichi Handa <handa@etl.go.jp>
12170
52283633
SM
12171 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12172 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 12173 --without-x.
fdaa1f77 12174
d152fb46
DL
121752000-03-21 Dave Love <fx@gnu.org>
12176
12177 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12178 doc string.
12179
d2cafc8c
GM
121802000-03-21 Gerd Moellmann <gerd@gnu.org>
12181
12182 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12183 (lface_fully_specified_p): Don't check contents of
12184 LFACE_FONT_INDEX because that attribute is optional.
12185 (realize_x_face): Remove now unwarranted xassert.
12186
9111d4b5
KH
121872000-03-21 Kenichi HANDA <handa@etl.go.jp>
12188
12189 The following changes are to make font selection based on
12190 characters, not charset. In addition, they recover fontset
12191 facilities while utilizing the new font selection mechanism.
12192
6c4bfdc0
KH
12193 * Makefile.in (fontset.o): Depend on dispextern.h.
12194
12195 * alloc.c (mark_face_cache): Don't mark face->registry.
12196
9111d4b5
KH
12197 * dispextern.h (struct glyph): New member glyph_not_available_p.
12198 Use 22 bits for face_id.
12199 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12200 (struct face): Delete member registry, new member ascii_face.
12201 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12202 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12203 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 12204 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
12205
12206 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12207 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
12208 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12209 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 12210 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
12211 (fs_free_face_fontset, fontset_font_pattern)
12212 (face_suitable_for_char_p, face_for_char)
12213 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
12214 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
12215 (FS_LOAD_FACE_FONT): New macro.
12216
12217 * fontset.c: All codes rewritten or adjusted for the change of
12218 fontset implementation. Now fontset is represented by char table.
52283633
SM
12219 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
12220 Variables removed.
9111d4b5 12221 (my_strcasecmp): Function removed.
52283633 12222 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 12223 (AREF, ASIZE): New macros.
52283633
SM
12224 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12225 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12226 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12227 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12228 (fontset_id_valid_p, font_family_registry, fontset_name)
12229 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12230 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
12231 New functions.
12232 (fs_load_font): New arg FACE. Caller changed.
12233 (fs_query_fontset): Argument changed. Caller changed.
12234 (Fquery_fontset): call fs_query_fontset.
12235 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12236 Functions removed.
52283633
SM
12237 (clear_fontset_elements, check_registry_encoding)
12238 (check_fontset_name): New functions.
9111d4b5
KH
12239 (syms_of_fontset): Set char-table-extra-slots property of fontset
12240 to 3. Staticpro and initialize Vfontset_table and
12241 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12242
12243 * frame.h (struct frame): Member `fontset_data' removed.
12244 (FRAME_FONTSET_DATA): Macro removed.
12245
12246 * frame.c (make_frame): Don't allocate f->fontset_data.
12247 (Fdelete_frame): Don't free f->fontset_data.
12248
6c4bfdc0
KH
12249 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12250
9111d4b5
KH
12251 * xdisp.c (charset_at_position): Function removed.
12252 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
12253 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12254 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
12255 Likewise.
12256 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12257 FACE_FOR_CHARSET.
52283633
SM
12258 (get_next_display_element, append_space)
12259 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
12260
12261 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12262 Variables removed.
12263 (clear_font_table, frame_update_line_height, load_face_font):
12264 Adjusted for the change of fontset implementation.
12265 (load_face_fontset_font): Function removed.
12266 (pixel_point_size): New function.
12267 (font_list): Argument type changed. Caller changed.
12268 (LFACE_FONT): New macro.
12269 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12270 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12271 Lisp_Object. Determine the font name by actually loading a font
12272 by the specified pattern. Set LFACE_FONT (lface) to the specified
12273 pattern. Even if a font is not found, don't try alternatives.
12274 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12275 (set_font_frame_param): If `font' is specified in lface, use it.
12276 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12277 (lface_same_font_attributes_p): Likewise.
12278 (make_realized_face): Arguent changed. Caller changed. Set
12279 face->ascii_face to face itself.
12280 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
12281 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12282 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
12283 (free_realized_multibyte_face): New function.
12284 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12285 changed. Caller changed.
12286 (try_font_list): Argument type changed.
12287 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12288 (choose_face_font): Argument changed. Handle fontset properly.
12289 (choose_face_fontset_font): Function removed.
12290 (realize_default_face, realize_named_face): Don't remove the
12291 former face here.
12292 (realize_face): Argument changed. Caller changed. Remove face
52283633 12293 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
12294 (realize_x_face): Argument changed. Caller changed. For a
12295 multibyte character, share fontset with base_face. For a single
52283633 12296 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
12297 (realize_tty_face): Argument changed. Caller changed.
12298 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12299 (face_at_buffer_position): Don't check multibyte_p for returning
12300 DEFAULT_FACE_ID.
12301 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12302 FACE_SUITABLE_FOR_CHARSET_P.
12303 (syms_of_xfaces): Remove code for Qx_charset_registry and
12304 Vface_default_registry.
12305
6c4bfdc0
KH
12306 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12307 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
12308 (x_per_char_metric): Don't try FONT->default_char. Even if
12309 pcm->width is zero, glyph bits may exist.
12310 (x_encode_char): Always initialize char2b->byte1.
12311 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 12312 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
12313 (x_append_glyph): Set glyph->glyph_not_available_p.
12314 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12315 it->charset. Handle the case that per char metric is not
12316 available. If it->multibyte_p is zero and it->c is a multibyte
12317 character, convert it to a unibyte character.
12318 (struct glyph_string): Delete member `charset'.
12319 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12320 the case that per char metric is not available correctly.
12321 (x_fill_glyph_string): Handle the case that the specific glyph is
12322 not available correctly.
12323 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12324 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12325 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12326 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12327 fontset. Don't call FS_LOAD_FONT.
12328
12329 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12330 (x_create_tip_frame): Likewise.
12331 (Fx_close_connection): Free full_name of font_info.
12332
12333 * fns.c (optimize_sub_char_table): New function.
12334 (Foptimize_char_table): New function.
12335 (syms_of_fns): Defsubr Soptimize_char_table.
12336
b33dd3b0
GM
123372000-03-20 Gerd Moellmann <gerd@gnu.org>
12338
12339 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12340 only if buffer is displayed in some window.
12341
12342 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12343 (try_window_reusing_current_matrix): Don't call scroll run
12344 function if run's current and desired position are the same;
12345 this prevents cursor flickering.
12346
4e8a9132
SM
123472000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12348
12349 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12350
12351 * regex.c (RE_STRING_CHAR): New macro.
12352 (GET_CHAR_AFER_2): Remove.
12353 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12354 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12355 (print_partial_compiled_pattern, re_compile_fastmap)
12356 (re_match_2_internal): Remove on_failure_jump_exclusive.
12357 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12358 optimization only need to work for * (ie. can use of_keep_string_jump).
12359 Remove the special case for .*\n since it is now covered by the general
12360 optimization.
12361 (re_search_2): Don't bother with `room'.
12362 (skip_one_char): New function.
12363 (skip_noops): Simplify since `memory' is not needed any more.
12364 (mutually_exclusive_p): Restructure slightly to use `switch' and
12365 add handling for "all" remaining cases.
12366 (re_match_2_internal): Change on_failure_jump_smart to use
12367 on_failure_keep_string_jump (and redirect the end-of-loop jump)
12368 rather than on_failure_jump_exclusive.
12369
2136fdd4
GM
123702000-03-19 Gerd Moellmann <gerd@gnu.org>
12371
12372 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
12373 number of bits per RGB because it's everywhere used as the depth
12374 of the visual.
12375
12376 * term.c (calculate_costs): Remove code dealing with X frames.
12377
18e21ce8 123782000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
12379
12380 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
12381
d7b511c4
GM
123822000-03-18 Gerd Moellmann <gerd@gnu.org>
12383
12384 * lread.c (read_integer): Unread the last char not consumed.
12385
16b5d424
GM
123862000-03-17 Gerd Moellmann <gerd@gnu.org>
12387
12388 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 12389 which are in the process of being deleted.
16b5d424 12390
1fa28578
GM
123912000-03-16 Gerd Moellmann <gerd@gnu.org>
12392
83488cce
GM
12393 * Makefile.in (mostlyclean): Add `*.core'.
12394 (clean): Add `bootstrap-emacs'.
12395
1fa28578
GM
12396 * lread.c (read_integer): New function.
12397 (read1): Support read syntax #o, #x, #b, #r.
12398
99633e97
SM
123992000-03-15 Stefan Monnier <monnier@cs.yale.edu>
12400
1fa28578
GM
12401 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
12402 make sure POINTER_TO_OFFSET gives the same value before and after
12403 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
12404 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
12405 (debug): Now only active if > 0 rather than if != 0.
12406 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
12407 (print_partial_compiled_pattern): Add missing `succeed' case. Use
12408 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
12409 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
12410 (store_op1, store_op2, insert_op1, insert_op2)
12411 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
12412 (group_in_compile_stack): Move to after its arg's types are
12413 declared and add a prototype.
99633e97 12414 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 12415 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 12416 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
12417 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
12418 indentation of the greedy-op and shy-group code.
99633e97
SM
12419 (at_(beg|end)line_loc_p): Fix argument's types.
12420 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
12421 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
12422 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
12423 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
12424 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
12425 QUIT unconditionally.
99633e97 12426
699238d9
GM
124272000-03-15 Gerd Moellmann <gerd@gnu.org>
12428
12429 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
12430 a sole completion.
12431
12432 * process.c (send_process): Add a hint that the function
12433 can call Lisp code to its comment.
12434
12435 * lread.c (load_dangerous_libraries): New variable.
12436 (Vbytecomp_version_regexp): New variable.
12437 (safe_to_load_p): New function.
12438 (Fload): Handle files not compiled with Emacs specially.
12439 (syms_of_lread): New Lisp variable load-dangerous-libraries.
12440
34e23e5a
GM
124412000-03-14 Gerd Moellmann <gerd@gnu.org>
12442
9c763cca
GM
12443 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
12444
12445 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
12446 support functions only if HAVE_X11R6_XIM is defined.
12447 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
12448
12449 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
12450
12451 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 12452 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
12453 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
12454
12455 * config.in (HAVE_X_I18N): Moved here from xterm.h.
12456 (HAVE_X11R6_XIM): Define.
12457
12458 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
12459
34e23e5a
GM
12460 * xterm.c (x_term_init): Add support for X resource `synchronous'.
12461 If set, call XSynchronize.
12462
66f0296e
SM
124632000-03-13 Stefan Monnier <monnier@cs.yale.edu>
12464
34e23e5a
GM
12465 * regex.c: Declare a new type `re_char' used throughout the code
12466 for the string char type. It's `const unsigned char' to match the
12467 rest of Emacs. Consistently make sure all pointers to strings use
52283633 12468 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 12469 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
12470 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
12471 code duplication.
66f0296e
SM
12472
12473 * charset.h (GET_CHAR_AFTER_2): Remove.
12474 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
12475
854a025c
KR
124762000-03-12 Ken Raeburn <raeburn@gnu.org>
12477
12478 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
12479 variable before the invocation of YMF_PASS_LDFLAGS, in case both
12480 of them try to use backquotes.
12481
b9d2c7e2
DL
124822000-03-12 Dave Love <fx@gnu.org>
12483
12484 * unexelf.c: Restore changes of 1999-10-19.
12485 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
12486 fix its type and alignment; copy it from current process.
12487
5e5dff44
GM
124882000-03-12 Gerd Moellmann <gerd@gnu.org>
12489
9b2f3c38
GM
12490 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
12491 has been found. Fix bug not computing timer's predecessor.
12492
427ec082 12493 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
12494 file name.
12495
e1cff360
GM
12496 * window.c (Fsave_window_excursion): Doc fix.
12497
52283633 12498 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 12499
e411ce4b
EZ
125002000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
12501
12502 * msdos.c (vga_installed): New function, code moved from
12503 dos_set_window_size.
12504 (Qbar, Qcursor_type, outside_cursor): New variables.
12505 (syms_of_msdos): Intern and staticpro them.
12506 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
12507 shape used outside Emacs when called for the first time.
12508 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
12509 cursor shape used outside Emacs.
12510 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
12511 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
12512 type has changed.
12513 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
12514 parameters specify the cursor. Make qreverse a global
12515 variable (renamed to Qreverse).
12516
80460654
GM
125172000-03-09 Gerd Moellmann <gerd@gnu.org>
12518
12519 * fns.c (Fy_or_n_p): Cancel busy-cursor.
12520
95cd4c40
SM
125212000-03-08 Stefan Monnier <monnier@cs.yale.edu>
12522
12523 This is a big redesign of failure-stack and register handling, prompted
12524 by bugs revealed when trying to add shy-groups. Overall, what happened
12525 is that loops are now structured a little differently, groups can be
12526 shy and the code is a little simpler.
12527
12528 * regex.h: Update the copyright.
12529 (RE_SHY_GROUPS): New value.
12530 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
12531 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
12532
80460654
GM
12533 * regex.c (enum re_opcode_t): Remove jump_past_alt,
12534 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
12535 on_failure_jump_(exclusive, loop and smart). Also fix the comment
12536 for (start|stop)_memory since they now only take one argument (the
12537 second has becomes unnecessary).
52283633 12538 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
12539 (print_compiled_pattern): Use %ld to printf long ints and flush to
12540 make debugging a little easier.
95cd4c40
SM
12541 (union fail_stack_elt): Make the integer unsigned.
12542 (struct fail_stack_type): Add a `frame' element.
12543 (INIT_FAIL_STACK): Init `frame' as well.
12544 (POP_PATTERN_OP): New macro for re_compile_fastmap.
12545 (DEBUG_PUSH, DEBUG_POP): Remove.
12546 (NUM_REG_ITEMS): Remove.
12547 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
12548 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
12549 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 12550 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
12551 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
12552 New macros.
80460654
GM
12553 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
12554 address pushed is not the destination of the jump but the source
12555 of it instead.
95cd4c40
SM
12556 (NUM_FAILURE_ITEMS): Remove.
12557 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
12558 registers before the actual failure point). Don't hardcode any
12559 meaning for str==NULL anymore.
95cd4c40 12560 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
12561 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
12562 Remove.
95cd4c40
SM
12563 (REG_UNSET_VALUE): Use NULL (why not?).
12564 (compile_range): Remove declaration since it doesn't exist.
12565 (struct compile_stack_elt_t): Remove inner_group_offset.
12566 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
12567 (regex_grow_registers): Remove dead code.
12568 (FIXUP_ALT_JUMP): New macro.
80460654
GM
12569 (regex_compile): Add shy-groups Change loops to use
12570 on_failure_jump_smart&jump instead of
12571 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
12572 initial (dummy_failure_)jump. Remove c1_base (looks like unused
12573 variable to me). Use `jump' instead of `jump_past_alt' and don't
12574 bother with push_dummy_failure in alternatives since it is now
12575 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
12576 emacs' for (re)allocating the stack.
12577 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
12578 from loop when bufp->can_be_null rather than jumping to `done'.
12579 Avoid jumping backwards so as to ensure termination. Use
12580 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
12581 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 12582 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
12583 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
12584 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
12585 (lowest_active_reg, highest_active_reg)
12586 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
12587 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
12588 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
12589 variables. Push register (in `start_memory') on the stack rather
12590 than storing it in old_reg(start|end). Remove the cycle detection
12591 from `stop_memory', replaced by the use of on_failure_jump_loop
12592 for greedy loops. Add code for the new on_failure_jump_<foo>.
12593 Remove ad-hoc code in `on_failure_jump' to push more registers in
12594 the case of a loop. Take out code from `maybe_pop_jump' into
12595 separate functions and adapt it to the semantics of
12596 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
12597 and push_dummy_failure. Remove dummy_failure handling and
12598 handling of `failures to jump to on_failure_jump' (this last one
12599 was already dead code, it seems).
12600 (group_match_null_string_p, alt_match_null_string_p)
12601 (common_op_match_null_string_p): Remove.
95cd4c40 12602
7397acc4
DL
126032000-03-08 Dave Love <fx@gnu.org>
12604
12605 * config.in: Don't depend on __STDC__ for volatile.
12606 Add POINTER_TYPE, PTR, PROTOTYPES.
12607
12608 * hftctl.c, strftime.c: Use PROTOTYPES.
12609 * eval.c (find_handler_clause): Likewise.
12610
12611 * mem-limits.h: Use POINTER_TYPE.
12612
12613 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
12614 (memory_warnings): Declare using POINTER_TYPE.
12615
5e91ff9e
GM
126162000-03-08 Gerd Moellmann <gerd@gnu.org>
12617
feab4fba
GM
12618 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
12619
52283633 12620 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 12621
5e91ff9e
GM
12622 * xfns.c: Remove obsolete code in #if 0.
12623 (Fx_focus_frame): New function.
12624
a735b7e1
KH
126252000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12626
12627 * coding.c (coding_category_name): Add coding-category-utf-8,
12628 coding-category-utf-16-be, coding-category-utf-16-le.
12629 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
12630 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
12631 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
12632 (detect_coding_utf_8): New function.
12633 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
12634 UTF_16_LOW_SURROGATE_P): New macros.
12635 (detect_coding_utf_16): New function
12636 (detect_coding_mask): When priorities are specified, skip any
12637 categories that have `nil' coding-system. Fix bug of returning
12638 wrong mask when PRIORITIES is specified and detect_coding_XXX()
12639 returns a mask not set in PRIORITIES.
12640 (detect_eol_type_in_2_octet_form): New function.
12641 (detect_eol): selects detect_eol_type_XXX to call according to
12642 cooding->category_idx.
12643 (detect_coding_system): Remove `nil' coding-system in the result.
12644 (Fupdate_coding_systems_internal): Update all coding-categories.
12645
52283633
SM
12646 * coding.h (CODING_CATEGORY_IDX_UTF_8)
12647 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
12648 New macros.
12649 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
12650 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
12651 (CODING_CATEGORY_IDX_UTF_16_LE)
12652 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
12653 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
12654 (CODING_CATEGORY_MASK_ANY): Include the above macros.
12655 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
12656
9994cc69
GM
126572000-03-07 Gerd Moellmann <gerd@gnu.org>
12658
e9b4e5ff
GM
12659 * doc.c (Fdocumentation_property): If value is not a string,
12660 and doesn't refer to etc/DOC, evaluate it to obtain a string.
12661
f7daf1e1
GM
12662 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
12663 close the display with XtCloseDisplay. This caused a bus error
12664 on OpenWindows.
12665
9994cc69
GM
12666 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
12667 complete but not unique.
12668
4336c705
GM
126692000-03-06 Gerd Moellmann <gerd@gnu.org>
12670
18bb0684
GM
12671 * process.c (send_process): Remove local variable `procname' that
12672 might become invalid when a GC happens. Instead, access the
12673 process name slot directly.
12674
4336c705
GM
12675 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
12676 orig_height if set.
12677
12678 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
12679 orig_height if set.
12680
515d0d0e
EZ
126812000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
12682
12683 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
12684 glyph matrices have been freed.
12685
100b3cbb
GM
126862000-03-05 Gerd Moellmann <gerd@gnu.org>
12687
50df5e5a 12688 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 12689 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
12690
12691 * xfns.c (QCdata): Moved to xdisp.c.
12692
12693 * xdisp.c (QCdata): Moved here from xfns.c.
12694 (syms_of_xdisp): Initialize QCdata.
12695
12696 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
12697
12698 * window.c (coordinates_in_window): Use
12699 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
12700 FRAME_INTERNAL_BORDER_WIDTH.
12701
100b3cbb 12702 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 12703 it is obviously invalid.
100b3cbb
GM
12704
12705 * xterm.c (x_term_init): Create a colormap if not using the
12706 default visual.
12707
12708 * xterm.h (select_visual): Change prototype.
12709
12710 * xfns.c (select_visual): Rewritten. Recognize user-specified
12711 visual classes.
12712 (visual_classes): New variable.
12713
64d739c4
GM
127142000-03-04 Gerd Moellmann <gerd@gnu.org>
12715
12716 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
12717 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
12718 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 12719 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
12720 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
12721 XtNcolormap resources.
12722 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
12723 (Fx_create_frame): Initialize color members of x_output structure.
12724 (xpm_load): Pass colormap to XPM lib.
12725
12726 * xfaces.c (x_free_colors): Access colormap of frame using
12727 FRAME_X_COLORMAP. Be paranoid about freeing black and white
12728 when default colormap is used.
12729
12730 * xterm.c (x_term_init): Set Colormap member of x_display_info
12731 structure. Copy colormap if resource `privateColormap' is
12732 specified (PseudoColor only).
12733 (x_setup_relief_color): Access colormap of frame using
12734 FRAME_X_COLORMAP.
12735
12736 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
12737 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
12738
c3cee013
JR
127392000-03-04 Jason Rumney <jasonr@gnu.org>
12740
12741 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
12742 other non-platform-specific equivalents.
64d739c4 12743 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
12744 specific functions and macros as their w32 equivalents where
12745 non-platform-specifics are not available.
12746 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
12747 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
12748 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
12749 (frame_update_line_height): Use macros to access f->output_data.
12750 (defined_color): Remove FIXME comments; fixed.
12751 (x_face_list_fonts, prepare_face_for_display): Put X specifics
12752 into #ifdef blocks. Add WINDOWSNT blocks.
12753 (Fx_list_fonts): Use macros for accessing font data.
12754 (set_lface_from_font_name): Different default fonts for X and
12755 WINDOWSNT.
12756 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
12757 scalable for backward compatibility.
64d739c4 12758 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
12759 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
12760
64d739c4 12761 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
12762 syms_of_w32faces.
12763
12764 * makefile.nt (w32faces.obj): Remove.
12765 (xfaces.obj): Add.
12766
807cc41c
JR
127672000-03-03 Jason Rumney <jasonr@gnu.org>
12768
12769 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
12770 correct parameters.
12771
0007072a
KR
127722000-03-03 Ken Raeburn <raeburn@gnu.org>
12773
12774 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
12775 standard ELF definitions here if the system header does not.
12776
71a6ba55
GM
127772000-03-03 Gerd Moellmann <gerd@gnu.org>
12778
12779 * xterm.c (PER_CHAR_METRIC): Removed.
12780 (x_per_char_metric_1, x_default_char): New functions.
12781 (x_per_char_metric): If font's default char is invalid, return
12782 metrics of a suitably chosen usable default char.
12783 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
12784 char, replace occurrences of unprintable chars with a suitably
12785 chosen usable default char.
71a6ba55 12786
900fa1f1
GM
127872000-03-02 Gerd Moellmann <gerd@gnu.org>
12788
42f55fe0
GM
12789 * xterm.c (note_mouse_highlight): Return quickly if frame's
12790 glyph matrices have been freed.
12791
12792 * dispnew.c (free_glyphs): Block input while freeing matrices.
12793
900fa1f1
GM
12794 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
12795
52283633
SM
12796 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
12797 Use x_free_colors.
900fa1f1
GM
12798
12799 * dispextern.h (x_free_colors): Add prototype.
12800
12801 * xfaces.c (x_free_colors): New function.
12802 (unload_color, free_face_colors): Use it.
12803
2f950292
EZ
128042000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12805
12806 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
12807
12808 * window.c [MSDOS]: Include msdos.h.
12809
54d04320
DL
128102000-03-02 Dave Love <fx@gnu.org>
12811
12812 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
12813
12814 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
12815 set C_OPTIMIZE_SWITCH for gcc.
12816
0ba93ac4
KH
128172000-03-02 Kenichi Handa <handa@etl.go.jp>
12818
12819 * coding.c (coding_save_composition): Be sure to allocate
12820 composition data area in coding even if there's no composition in
12821 the current run.
12822
a2bc11d4
JR
128232000-03-01 Jason Rumney <jasonr@gnu.org>
12824
12825 * w32term.c: Equivalent changes to those made to xterm.c on
12826 2000-02-25 and 2000-02-24.
12827
12828 * w32fns.c: Equivalent changes to those made to xfns.c on
12829 2000-02-25 and 2000-02-21.
12830
12831 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
12832 correct line-end convention is followed.
12833
12834 * w32menu.c [HAVE_BOXES]: Remove #undef.
12835 (single_keymap_panes): Remove code for simulating checkmarks.
12836 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
12837 Remove code for drawing simulated checkmarks.
12838 (w32_menu_show): make unibyte help string correctly.
12839 (add_menu_item): draw standard Windows checkmarks. Draw radio
12840 buttons as radio buttons if possible.
12841
72d19d75
GM
128422000-03-01 Gerd Moellmann <gerd@gnu.org>
12843
2df636f4
GM
12844 * sysdep.c (start_of_text): Don't define this function for NetBSD
12845 with ELF.
12846
427ec082 12847 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
12848 Don't define.
12849 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
12850 (LINKER): Don't undef if __NetBSD__ is defined.
12851
12852 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
12853
12854 * fileio.c [__NetBSD__]: Define `unix'.
12855
72d19d75
GM
12856 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
12857
ed4d0512
GM
128582000-02-29 Gerd Moellmann <gerd@gnu.org>
12859
50b1039f
GM
12860 * atimer.c (start_atimer): Don't abort when timers are stopped.
12861 (append_atimer_lists): New function.
12862 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
12863 arbitrary lists of stopped and running atimers.
12864
ed4d0512
GM
12865 * atimer.c (cancel_atimer): Handle canceling an atimer when
12866 some timers are stopped.
12867
12868 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
12869 after canceling it.
12870
12871 * fns.c (maybe_resize_hash_table): Handle case of new size
12872 coming out as being the same as old size.
12873
387023ee
JR
128742000-02-27 Jason Rumney <jasonr@gnu.org>
12875
12876 * makefile.nt: Add atimer.h to dependencies.
12877 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
12878 * w32console.c: Only disable window system features for dispextern.h
12879 (initialize_w32_display): Build a display info for the console.
12880 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
12881 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
12882 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
12883 as 2 button mice.
12884 * w32gui.h (struct W32FontStruct): Revert last change after change
12885 to xdisp.c.
12886 * w32menu.c (single_submenu): Set up help string.
12887 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
12888 (w32_dialog_show): Set up help string.
12889 * w32term.c (w32_display_info_for_display): Remove unused function.
12890 (w32_draw_bitmap): Use pre-built bitmaps.
12891 (w32_initialize_display_info): New function to initialize parts of
12892 display info that are common to both GUI and console frames.
12893 (w32_term_init): Use w32_initialize_display_info. Do not set
12894 Vw32_num_mouse_buttons here, as it is not called for console
12895 frames. Build bitmaps for indicating truncated lines etc.
12896 (x_delete_display): Destroy pre-built bitmaps.
12897 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
12898 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
12899
4516715a
DL
129002000-02-27 Dave Love <fx@gnu.org>
12901
12902 * lisp.h: Add a bunch of prototypes.
12903
171ca836
KH
129042000-02-26 Kenichi Handa <handa@etl.go.jp>
12905
12906 * keyboard.c (read_char): Set `usec' correctly.
12907
4013921d
KH
129082000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
12909
12910 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
12911 `lambda', set reg[RRR] to the map index.
12912 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
12913 reg[RRR] to 0. Otherwise, set it to -1.
12914
9244a058
GM
129152000-02-25 Gerd Moellmann <gerd@gnu.org>
12916
2df636f4 12917 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 12918
18e21ce8 129192000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 12920
f43d79c1
GM
12921 * fileio.c (Ffile_symlink_p): If result starts with a `/'
12922 and contains a `:', prepend `/:'.
12923
12924 * window.c (select_window_1): If selected_window is nil,
12925 don't "swap out" the buffer's point.
12926 (Fset_window_configuration): Set selected_window to nil
12927 before calling Fselect_window.
12928 (unshow_buffer): Don't set point in buffer from window's point
12929 if another more recently selected window also shows the buffer.
12930
bed0c171
GM
129312000-02-25 Gerd Moellmann <gerd@gnu.org>
12932
449c3c52
GM
12933 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
12934
f5b58615
GM
12935 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
12936 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
12937 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
12938 New variables.
f5b58615
GM
12939 (DEFAULT_BUSY_CURSOR_DELAY): New define.
12940 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
12941 (hide_busy_cursor): New functions.
12942 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
12943
12944 * minibuf.c (read_minibuf): Cancel busy-cursor.
12945
12946 * keyboard.c (command_loop_1): Call start_busy_cursor before
12947 Fcommand_execute and cancel_busy_cursor after it.
12948 (timer_check): Remove busy-cursor code.
12949 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
12950 cursor timer.
12951
12952 * process.c (wait_reading_process_input): Remove busy-cursor code.
12953
12954 * eval.c (Fsignal): Call cancel_busy_cursor instead of
12955 Fx_hide_busy_cursor.
12956
12957 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
12958 Remove prototyoes.
12959 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
12960
12961 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
12962
12963 * xterm.c (XTread_socket): Remove busy-cursor code.
12964
4eb8436f
GM
12965 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
12966 (build_frame_matrix_from_leaf_window): Put code handling
12967 glyph row's not being a slice of a frame row in #if 0.
12968 (sync_window_with_frame_matrix_rows): New function.
12969 (frame_row_to_window): New function.
12970 (mirror_line_dance): Handle copies between windows.
12971
3cb65b0e
GM
12972 * lread.c (Fload): Use `xfree' instead of `free'.
12973 (init_obarray): Use `xmalloc' instead of `malloc'.
12974
bed0c171
GM
12975 * window.c (Fset_window_buffer): Set WINDOW to the window
12976 after decoding.
2add4349
GM
12977 (coordinates_in_window): Take frame's internal border width
12978 into account.
bed0c171 12979
42088c12
GM
129802000-02-24 Gerd Moellmann <gerd@gnu.org>
12981
12982 * xterm.c (x_display_and_set_cursor): Display cursor of
12983 non-selected windows depending on the setting of
12984 cursor_in_non_selected_windows.
12985
12986 * xdisp.c (cursor_in_non_selected_windows): New variable.
12987 (syms_of_xdisp): DEFVAR_BOOL it.
12988
d1e103b2
GM
129892000-02-23 Gerd Moellmann <gerd@gnu.org>
12990
723e779c
GM
12991 * data.c (Fstring_to_number): If number is greater than what
12992 fits into an integer, return a float.
12993
d1e103b2
GM
12994 * eval.c (specbind): Remove references to
12995 keyword_symbols_constant_flag.
12996
12997 * data.c (keyword_symbols_constant_flag): Removed.
12998 (Fmakunbound, set_internal, syms_of_data): Remove references to
12999 keyword_symbols_constant_flag.
13000
13001 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13002
214f877f
KH
130032000-02-23 Kenichi Handa <handa@etl.go.jp>
13004
13005 * syntax.c (multibyte_syntax_as_symbol): New variable.
13006 (syms_of_syntax): Declare it as a Lisp variable.
13007 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13008 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13009 nonzero, treat all multibyte characters as symbol.
52283633 13010 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 13011
130adcb7
EZ
130122000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13013
3cb65b0e 13014 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 13015 a deleted frame.
130adcb7 13016
17cbbf95
GM
130172000-02-21 Gerd Moellmann <gerd@gnu.org>
13018
13019 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13020
13021 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13022 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13023
beb0bc36
DL
130242000-02-21 Dave Love <fx@gnu.org>
13025
13026 * frame.c (Vmouse_position_function): New variable.
13027 (Fmouse_position): Use it.
13028 (syms_of_frame): Install it.
13029
13030 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13031
1d92afcd
GM
130322000-02-20 Gerd Moellmann <gerd@gnu.org>
13033
13034 * fileio.c (Finsert_file_contents): Unbind the binding of
13035 standard-output done by temp_output_buffer_setup.
329eed9f
GM
13036
13037 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13038 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13039 (specbind, unbind_to): Handle most common case of non-constant
13040 symbol with trivial value specially.
13041
13042 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13043
18e21ce8 130442000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
13045
13046 * data.c (Fmake_variable_buffer_local): Doc fix.
13047 Init found_for_buffer to 0.
13048 (Fmake_variable_frame_local): If the variable has already
13049 been buffer-local, set the check_frame field.
13050
1d4311c3
EZ
130512000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13052
13053 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13054 produced for CODING_MODE_LAST_BLOCK requires.
13055
2dc95ddd
DL
130562000-02-18 Dave Love <fx@gnu.org>
13057
13058 * keyboard.c (echo_keystrokes): Remove declaration.
13059 (Vecho_keystrokes) New variable.
13060 (read_char, record_menu_key, read_key_sequence): Use it to allow
13061 use of float value.
13062 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13063
13064 * lread.c: Undef feature selection macros before defining.
13065
f0930f35
GM
130662000-02-18 Gerd Moellmann <gerd@gnu.org>
13067
13068 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13069 for symbols other than the symbol in question.
13070
e3d4de90
DL
130712000-02-17 Dave Love <fx@gnu.org>
13072
13073 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13074
0b378936
GM
130752000-02-17 Gerd Moellmann <gerd@gnu.org>
13076
d621caf7
GM
13077 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13078
0b378936
GM
13079 * alloc.c (enum mem_type): Compile unconditionally.
13080
3b451f74
EZ
130812000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13082
13083 * xfaces.c (tty_defined_color): Don't return faulire indication
13084 for unspecified-fg and unspecified-bg pseudo-colors.
13085
10689a01
GM
130862000-02-17 Gerd Moellmann <gerd@gnu.org>
13087
1216f5e4
GM
13088 * alloc.c (mark_object): Don't mark symbol names in pure space.
13089 (gc_sweep): Don't unmark symbol names in pure space.
13090
13091 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13092 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13093 [GC_MARK_STACK]: New defines.
427ec082 13094 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
13095 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13096
13097 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13098
13099 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13100 allocate_buffer instead of xmalloc.
13101
13102 * alloc.c (toplevel): Include setjmp.h.
13103 (PURE_POINTER_P): New define.
13104 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13105 (Vdead) [GC_MARK_STACK]: New variable.
13106 (lisp_malloc): Add parameter TYPE, call mem_insert if
13107 GC_MARK_STACK is defined.
13108 (allocate_buffer): New function.
427ec082 13109 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
13110 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13111 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13112 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13113 (MEM_NIL) [GC_MARK_STACK]: New define.
13114 (struct mem_node) [GC_MARK_STACK]: New structure.
13115 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13116 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13117 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13118 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13119 (mark_stack) [GC_MARK_STACK]: New functions.
13120 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13121 (clear_marks): Removed.
13122 (gc_sweep): Set free conses' car, free floats' type, free
13123 symbols' function to Vdead. Use lisp_free to free buffers.
13124 (init_alloc_once): Initialize Vdead.
13125 (survives_gc_p): Return non-zero for pure objects.
13126
13127 * alloc.c: Add comments throughout the file.
13128
2503c8b1
GM
13129 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13130 that unblocks alarms.
13131
8389e1e2
GM
13132 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13133 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13134 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13135
10689a01 13136 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 13137
bfc17d18
KH
131382000-02-17 Kenichi Handa <handa@etl.go.jp>
13139
4a09dee0
KH
13140 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13141 avoid infinite error signaling. Allocate sufficient memory for
13142 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 13143
2b927d02
SM
131442000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13145
13146 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13147 depends on the previous behavior.
13148
b49cb764
GM
131492000-02-16 Gerd Moellmann <gerd@gnu.org>
13150
13151 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13152
99e95407
GM
131532000-02-15 Gerd Moellmann <gerd@gnu.org>
13154
13155 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13156
13157 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 13158 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
13159 write(2).
13160
6ffd3cf7
RS
131612000-02-15 Richard M. Stallman <rms@gnu.org>
13162
13163 * data.c (set_internal): Don't make variable buffer-local
13164 if within a let-binding for the same buffer.
13165 (let_shadows_buffer_binding_p): New function.
13166
13167 * eval.c (specbind): For buffer-local value,
13168 record the current buffer also.
13169 (unbind_to): Cope with that change.
13170
cad53475
GM
131712000-02-15 Gerd Moellmann <gerd@gnu.org>
13172
13173 * window.c (Fsave_window_excursion): Doc fix.
13174
1aa963c8
SM
131752000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13176
13177 * syntax.c (back_comment): Make sure we only consider comment-starters
13178 of the relevant style and return -1 in case of a failure to find the
13179 beginning of the comment.
13180 (Fforward_comment): If back_comment fails, go back to the position just
13181 after the comment-end.
13182 (scan_lists): Add comment describing a very minor bug.
13183
b9b84fd3
SM
131842000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13185
13186 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13187 `completion-regexp-list' in the docstring.
13188
3a28db80
DL
131892000-02-14 Dave Love <fx@gnu.org>
13190
13191 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13192
fb4a568d
SM
131932000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13194
13195 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13196 to Emacs' syntax. Also fix the comment about set/not-set meanings
13197 since Emacs syntax is not the value 0 any more.
13198 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13199 since it's now part of RE_SYNTAX_EMACS.
13200
1063ebb5
DL
132012000-02-12 Dave Love <fx@gnu.org>
13202
52283633 13203 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 13204
fb07a302
GM
132052000-02-12 Gerd Moellmann <gerd@gnu.org>
13206
13207 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13208
aaf2320c
DL
132092000-02-12 Dave Love <fx@gnu.org>
13210
13211 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
13212
13213 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
13214 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
13215 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
13216
13217 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
13218
13219 * s/nextstep.h: Don't define HAVE_ALLOCA.
13220
13221 * config.in: Add vfork bits.
13222
eedf8bde
GM
132232000-02-12 Gerd Moellmann <gerd@gnu.org>
13224
13225 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13226 unwind function to undo the effect of stopping atimers.
13227
52283633 13228 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
13229
13230 * atimer.c (stopped_atimers): New variable.
13231 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13232 New functions.
13233
13234 * atimer.h (stop_other_atimers, run_all_atimers)
13235 (unwind_stop_other_atimers): Add function prototypes.
427ec082 13236
eedf8bde
GM
13237 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13238
8476c2f8
KR
132392000-02-11 Ken Raeburn <raeburn@gnu.org>
13240
13241 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13242 library may depend on jpeg.
13243 (atimer.o): Depends on atimer.c.
13244
0e85e4a3
KH
132452000-02-11 Kenichi Handa <handa@etl.go.jp>
13246
13247 * insdel.c (del_range_1): Call update_compositions.
13248 (del_range_both): Call update_compositions just once..
13249
97fa0cc8
DL
132502000-02-10 Dave Love <fx@gnu.org>
13251
13252 * xfns.c (create_frame_xic): Fix initialization of automatic
13253 aggregates for pcc.
13254
25566a3c
KH
132552000-02-09 Kenichi Handa <handa@etl.go.jp>
13256
13257 * ccl.c (CCL_MAKE_CHAR): New macro.
13258 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13259 registers by CCL_MAKE_CHAR before calling translate_char.
13260 <CCL_TranslateCharacterConstTbl> Likewise.
13261
69da54ba
DL
132622000-02-08 Dave Love <fx@gnu.org>
13263
13264 * lread.c (__EXTENSIONS__): Define.
13265
f7136ee8
GM
132662000-02-08 Gerd Moellmann <gerd@gnu.org>
13267
13268 * puresize.h (BASE_PURESIZE): Increase to 650000.
13269
7768790b
EZ
132702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13271
13272 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13273 the help message.
13274
38fd211b
EZ
132752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13276
13277 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13278 md, mh, mb, mr, and me to the fake termcap entry.
13279
66e4690f
KR
132802000-02-06 Ken Raeburn <raeburn@gnu.org>
13281
13282 * sound.c (sound_cleanup): Don't call device close routine if the
13283 function pointer is null.
13284
a75dfea0
AI
132852000-02-06 Andrew Innes <andrewi@gnu.org>
13286
13287 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13288 around image definitions and prototypes.
13289 (gamma_correct) [WINDOWSNT]: New prototype.
13290
13291 * w32term.c (x_make_frame_visible): Replace call to
13292 input_poll_signal with poll_for_input.
13293
13294 * window.c [WINDOWSNT]: Include w32term.h.
13295
13296 * xdisp.c [WINDOWSNT]: Include w32term.h.
13297
13298 * makefile.nt: Add dependencies on w32gui.h.
13299 (OBJ1): Include atimer.obj.
13300 ($(BLD)\atimer.obj): New dependency rule.
13301
13302 * w32.c (sigmask): New function (does nothing).
13303 (sigunblock): Ditto.
13304
13305 * frame.c [WINDOWSNT]: Include w32term.h.
13306
13307 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13308
13309 * lread.c (syms_of_lread): Fix literal newlines.
13310
13311 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13312 the string constant limit (2048 bytes) in MSVC.
13313 (main): Ditto.
13314
59ddecde
GM
133152000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13316
52283633 13317 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
13318 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13319 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13320 dispatch the event.
13321
07590973
DL
133222000-02-04 Dave Love <fx@gnu.org>
13323
13324 * fileio.c: Remove some unused vars.
13325 (_GNU_SOURCE): Define (for euidaccess).
13326
13327 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13328
13329 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13330 gcpro1, gcpro2.
13331 (read_minibuf): Deal with allow_props correctly.
13332
649351f9
EZ
133332000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13334
13335 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13336
66e4690f 133372000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
13338
13339 * search.c (compile_pattern): If a cache entry has a nil regexp,
13340 fill in that entry instead of clobbering a previously cached
13341 string regexp.
13342
66e4690f 133432000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
13344
13345 * puresize.h (BASE_PURESIZE): Increase to 610000.
13346
d240a249
GM
133472000-02-02 Gerd Moellmann <gerd@gnu.org>
13348
13349 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13350 can GC.
13351
ca91fb26
KH
133522000-02-02 Kenichi Handa <handa@etl.go.jp>
13353
25660570
KH
13354 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13355 instead of incrementing ic directly.
13356 <CCL_WriteExprConst> Likewise.
13357 <ccl_set_expr>: Set ic to jump_address.
13358
ca91fb26
KH
13359 * fileio.c (e_write): Fix the handling of
13360 CODING_FINISH_INSUFFICIENT_SRC.
13361
2ede9689
DL
133622000-02-01 Dave Love <fx@gnu.org>
13363
13364 * editfns.c (Fpropertize): Doc fix.
13365
13366 * process.c (Fstart_process): Doc fix.
13367
13368 * eval.c: Fix various doc strings not to duplicate information
13369 from help-manyarg-func-alist.
13370
52283633 13371 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
13372
13373 * doc.c (Vhelp_manyarg_func_alist): New variable.
13374 (Fdocumentation): Use it.
13375 (syms_of_doc): Define it.
13376
b6680a0e
GM
133772000-01-31 Gerd Moellmann <gerd@gnu.org>
13378
2cb750ba
GM
13379 * xterm.c (xim_open_dpy): Remove unused local variable.
13380
52283633 13381 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
13382
13383 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
13384 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13385
b6680a0e
GM
13386 * fns.c (sweep_weak_table): New function.
13387 (sweep_weak_hash_tables): Use it. Keep on marking until there
13388 is no more change.
13389
994c5afe
GM
133902000-01-30 Gerd Moellmann <gerd@gnu.org>
13391
13392 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
13393 that XTread_socket does not crash by trying to call XNoOp on a
13394 closed display.
427ec082 13395
f00276e3
JR
133962000-01-30 Jason Rumney <jasonr@gnu.org>
13397
13398 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13399 Change selected_frame to SELECTED_FRAME ().
13400 (w32_console_mouse_position): Remove #ifndef MULE from around
13401 `insist' parameter.
13402
13403 * makefile.nt: Remove dosfns.obj.
13404
13405 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
13406
13407 * w32fns.c (w32_defined_color): Check for valid frame before
13408 applying gamma correction. Eliminate dependency on frame elsewhere.
13409 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
13410 (w32_to_x_font): Use resx and resy not height_in and width_in.
13411 (x_to_w32_font): Doc fix.
13412 (xlfd_strip_height): New function to strip and return font height.
13413 (w32_font_match): Compare height separately from rest of xlfd
13414 spec, using xlfd_strip_height.
13415
13416 * w32term.c (w32_term_init): Swap resx and height_in, resy and
13417 width_in. Use w32_defined_color in place of defined_color.
13418
13419 * w32faces.c: Merge more of DOS and X specifics in preparation for
13420 merge with xfaces.c.
13421 (defined_color): Remove FIXME comment.
13422 (tty_color_name): Provide w32-specific function.
13423 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
13424
13425 * w32console.c (turn_on_face, turn_off_face): Removed.
13426 (w32_face_attributes): New function.
13427 (Global_variables): Reduce scope where possible.
13428 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
13429 fill attribute.
13430 (hl_mode): Don't modify text attributes.
13431 (write_glyphs): Don't do anything if len <= 0. Use
13432 w32_face_attributes to get attributes for drawing. Write
13433 terminating codes using char_attr_normal.
13434 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
13435 (update_begin, update_end): Likewise.
13436 (vga_stdcolor_name): New function.
13437 (initialize_w32_display): Remove char_attr_reverse and char_attr.
13438 (Fset_screen_color): Remove char_attr_reverse.
13439
b08e8bb2
GM
134402000-01-29 Gerd Moellmann <gerd@gnu.org>
13441
13442 * xfns.c (xic_set_preeditarea): Take window parameter and
13443 window-relative pixel-positions.
13444
13445 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
13446 is its frame's selected window.
13447 (xim_instantiate_callback): Likewise.
13448
13449 * xfns.c (x_create_im): Removed.
13450 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
13451 (supported_xim_styles): Renamed from supported_styles.
13452 (best_xim_style): Renamed from best_style.
13453 (create_frame_xic): Renamed from xic_create_frame.
13454 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 13455
b08e8bb2
GM
134562000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
13457
13458 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
13459 our frames, call XFilterEvent with 2nd parameter `None'.
13460 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
13461 returning XBufferOverflow.
52283633 13462 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
13463 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
13464 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
13465 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
13466 (xim_initialize, xim_close)
13467 [HAVE_X_I18N && HAVE_X11R6]: New functions.
13468 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
13469 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
13470 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
13471
13472 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
13473 and `xim_styles'.
13474 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
13475 `xic_style' and `xic_xfs'.
13476 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
13477 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
13478 (FRAME_XIM): Removed.
13479
13480 * xfns.c (supported_styles): New variable.
13481 (DEFAULT_STYLE, DEFAULT_FONT): New macros
13482 (xic_create_xfontset, best_style, xic_create_frame)
13483 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
13484 (xic_set_xfontset): New functions.
13485
142e109c
DL
134862000-01-28 Dave Love <fx@gnu.org>
13487
13488 * s/irix6-5.h: Revert last change after change to irix5-0.h.
13489
13490 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
13491
b02786f9
GM
134922000-01-28 Gerd Moellmann <gerd@gnu.org>
13493
d060bc9f
GM
13494 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
13495 for *scratch* if it already existed.
13496
b02786f9
GM
13497 * emacs.c (USAGE): New macro.
13498 (main): Use it to display usage information.
13499
2c52d7e4
EZ
135002000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13501
13502 Support for the menu-help feature:
13503
52283633 13504 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
13505
13506 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
13507 part of the line to the termscript file.
13508 (IT_clear_to_end): Clear the entire line, not just its beginning.
13509 (menu_help_message, prev_menu_help_message): New variables.
13510 (IT_menu_make_room): Make room for the help_text member.
13511 (IT_menu_display): New argument disp_help; all callers changed.
13512 If disp_help is non-zero, store the help text of the active menu
13513 item in menu_help_message.
13514 (XMenuAddPane): Initialize the help_text member to NULL.
13515 (XMenuAddSelection): New argument help_text. Store it in the
13516 XMenu structure.
13517 (XMenuActivate): New argument help_callback. If the value of
13518 menu_help_message has changed since the last time, display the
13519 menu help message text while waiting for the mouse to move. Clear
13520 the echo area before exiting.
13521 (XMenuDestroy): Free the help_text member.
13522
ffe0bcd1
GM
135232000-01-27 Gerd Moellmann <gerd@gnu.org>
13524
13525 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
13526 XMenuAddSelection. Pass help callback to XMenuActivate.
13527 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
13528
50dbd23f
EZ
135292000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
13530
13531 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
13532 and EMACS_SET_USECS.
13533
f5941bf8
GM
135342000-01-26 Dave Love <fx@gnu.org>
13535
6c67ddee
DL
13536 * editfns.c (Fchar_after, Fchar_before): Doc fix.
13537
f5941bf8
GM
13538 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
13539 an error may be signalled.
13540
9e49c990
GM
135412000-01-26 Gerd Moellmann <gerd@gnu.org>
13542
fc3cb460
GM
13543 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
13544 LD_SWITCH_SYSTEM inherited from irix5-0.h.
13545
9e49c990
GM
13546 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
13547
d0c037d8
GM
135482000-01-25 Gerd Moellmann <gerd@gnu.org>
13549
13550 * charset.c (Fstring): If there is a multibyte char among
13551 the args, always return a multibyte string.
13552
e12489f9
GM
135532000-01-25 Gerd Moellmann <gerd@gnu.org>
13554
13555 * sysdep.c (sys_select): Turn atimers off and on instead of
13556 recording and restoring old alarm handler
13557
13558 * process.c (toplevel): Include atimer.h.
13559 (create_process_1): Rewritten.
13560 (create_process): Use atimers instead of alarm.
13561 (wait_reading_process_input) [hpux]: Turn atimers off instead
13562 of turning off SIGALRM.
13563 (wait_reading_process_input): Turn off atimers instead off
13564 calling stop_polling.
13565
13566 * emacs.c (main): Call init_atimer.
13567
13568 * keyboard.c (toplevel): Include systime.h and atimer.h.
13569 (polling_for_input): Removed because unused.
13570 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
13571 (poll_timer): New variable.
13572 (poll_for_input, poll_for_input_1): New functions.
13573 (start_polling, stop_polling): Rewritten.
13574
13575 * keyboard.h (polling_for_input): Removed.
427ec082 13576
e12489f9
GM
13577 * atimer.h, atimer.c: New files.
13578
13579 * Makefile.in (obj): Add atimer.o.
13580 (atimer.o): New target.
13581
13582 * blockinput.h (pending_atimers): Add extern declaration.
13583 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
13584
13585 * lisp.h (popup_activated_flag): Add extern declaration.
13586
13587 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 13588 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
13589 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
13590
13591 * xterm.c (toplevel): Include atimer.h.
13592 (toolkit_scroll_bar_interaction): New variable.
13593 (Fxt_process_timeouts): Removed.
13594 (x_process_timeouts): New function.
13595 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
13596 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
13597 (x_make_frame_visible): Call poll_for_input_1 instead of
13598 input_poll_signal. Don't call alarm.
13599 (x_initialize): Install timer calling x_process_timeouts.
427ec082 13600
1e5279b9
DL
136012000-01-24 Dave Love <fx@gnu.org>
13602
6c67ddee 13603 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
13604 Don't use -cckr -- apparently not now necessary.
13605
edf6aeb8
EZ
136062000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
13607
13608 * msdos.c (IT_menu_display): Truncate long menu lines at the right
13609 screen boundary.
13610
9badad41
JR
136112000-01-23 Jason Rumney <jasonr@gnu.org>
13612
13613 * w32fns.c (w32_defined_color): Apply gamma correction before
13614 trying to map to the palette.
13615 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
13616 to w32_clear_rect.
13617
13618 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
13619 here. Callers changed to always pass real device context.
13620 (w32_draw_bitmap): Likewise.
13621 (w32_get_glyph_overhangs): Likewise.
52283633 13622 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
13623 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
13624 pfnSetScrollInfo and SetScrollRange.
13625 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
13626 back into MULE characters after decoding them.
13627 (x_get_glyph_face_and_encoding): Likewise.
13628 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
13629 GetCharABCWidthsW fails, since this is defined on Windows 9x.
13630 (x_produce_glyphs): Calculate per char metrics for a character
13631 that we know exists in default font when font_not_found_p is true.
13632
63bd786b
JR
136332000-01-22 Jason Rumney <jasonr@gnu.org>
13634
13635 * makefile.nt (intervals.obj, composite.obj): New modules.
13636 (composite.h): Added as dependency where appropriate.
13637
13638 * w32gui.h (XGCValue): New struct for emulating X GCs.
13639
13640 * w32term.h (XCharStruct): New struct for emulating X.
13641
13642 * w32console.c (turn_on_face, turn_off_face): New functions.
13643 (change_line_highlight): New prototype for new redisplay.
13644 (write_glyphs): Support multibyte text. Support faces.
13645
52283633 13646 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
13647
13648 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
13649 throughout. struct frame * in place of FRAME_PTR.
13650 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 13651 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
13652 (w32_get_arg): Renamed from x_get_arg.
13653 (Fx_file_dialog): New function.
13654 (w32_list_fonts): Check cache before asking system.
13655 (Vw32_enable_synthesized_fonts): New variable.
13656 (Vw32_enable_italics): Obsolete, removed.
13657
13658 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
13659 Use SELECTED_FRAME macro.
13660
13661 * w32menu.c: Add skeleton support for help strings on menus.
13662 (add_menu_item): Native checkbox and radio support added, but not
13663 yet enabled due to bugs.
13664 (push_menu_item): Add parameters type, selection and help.
13665 Callers updated.
13666 Formatting changes to reduce unnecessary diffs with xmenu.c.
13667
13668 * w32select.c (Fw32_set_clipboard_data): Update call to
13669 find_charset_in_str.
13670
13671 * w32term.c: Complete rewrite for new redisplay based on new
13672 xterm.c with necessary sections merged back in from old w32term.c.
13673
6ffd3cf7 136742000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
13675
13676 * data.c (set_internal): Further fix in same criterion.
13677
6ffd3cf7 136782000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
13679
13680 * data.c (set_internal): Fix the criteria for whether
13681 to swap out the old cached binding.
13682
60af03f1
DL
136832000-01-19 Dave Love <fx@gnu.org>
13684
13685 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
13686
f9be074f
KH
136872000-01-18 Kenichi Handa <handa@etl.go.jp>
13688
13689 * regex.c (re_compile_fastmap): While checking a range table for
13690 `charset', skip flag bits for a character class correctly.
13691
52b8dbf9
GM
136922000-01-17 Gerd Moellmann <gerd@gnu.org>
13693
d36100c9
GM
13694 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
13695
52283633 13696 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
13697
13698 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 13699 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
13700
13701 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
13702 MENU_ITEMS_ITEM_.*.
13703 (MENU_ITEMS_ITEM_HELP): New enumerator.
13704 (push_menu_item): Add parameter HELP. Record help in menu_items.
13705 (single_menu_item, single_submenu, list_of_items): Call
13706 push_menu_item with new parameter.
13707 (single_submenu): Set help string in widget value.
13708 (menu_highlight_callback): New function.
13709 (set_frame_menubar): Call lw_create_widget with new
13710 parameter list.
13711 (xmenu_show, xdialog_show): Ditto.
13712
3139018f
GM
137132000-01-13 Gerd Moellmann <gerd@gnu.org>
13714
13715 * sound.c (Fplay_sound): Improve doc string.
13716
83c8f461
RS
137172000-01-11 Richard M. Stallman <rms@gnu.org>
13718
13719 * lisp.h (set_internal): Enter the new arg.
13720
13721 * eval.c (specbind): Record buffer-local variables specially,
13722 indicating which buffer's binding was saved.
13723 (unbind_to): Restore buffer-local variables specially
13724 in the proper buffer.
13725
13726 * data.c (set_internal): New arg BUF.
427ec082 13727
83c8f461
RS
13728 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
13729 * data.c (Fset): Pass new arg to set_internal.
13730 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 13731
1fab1775
GM
137322000-01-11 Gerd Moellmann <gerd@gnu.org>
13733
52283633 13734 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 13735
83c8f461 137362000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
13737
13738 * minibuf.c (Ftry_completion): Doc fix.
13739
7a85e4df
GM
137402000-01-11 Gerd Moellmann <gerd@gnu.org>
13741
13742 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
13743 vector, too.
13744
a970dae4
AS
137452000-01-11 Andreas Schwab <schwab@suse.de>
13746
13747 * coding.c (code_convert_region): Initialize total_skip.
13748
c65d14ee
DL
137492000-01-08 Dave Love <fx@gnu.org>
13750
13751 * eval.c (Fuser_variable_p): Check customizability too.
13752
834938d2
GM
137532000-01-07 Gerd Moellmann <gerd@gnu.org>
13754
13755 * minibuf.c (Fcompleting_read): Doc fix.
13756
e0303cd6
GM
137572000-01-05 Gerd Moellmann <gerd@gnu.org>
13758
8a26744b
GM
13759 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
13760 -L /usr/local/lib.
13761
e0303cd6
GM
13762 * xfns.c (x_create_im): New function to set IM and IC of a frame.
13763 Check that input style is supported before trying to create an
13764 IC for it.
13765 (x_window): Call x_create_im.
427ec082 13766
2e471eb5
GM
137672000-01-04 Gerd Moellmann <gerd@gnu.org>
13768
560a7bd2
GM
13769 * xfns.c (current_gif_memory_src): New variable.
13770 (gif_load): Record the address of the current memory source
13771 in current_gif_memory_src.
13772 (gif_read_from_memory): Use current_gif_memory_src.
13773
f9ee84a3
GM
13774 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
13775 macros statement form.
13776
d1299cde
GM
13777 * sound.c (struct sound): Renamed from struct sound_file.
13778 (struct sound): Add members `data' and `header_size'.
13779 (enum sound_attr): Add SOUND_DATA.
13780 (current_sound, current_sound_device): Variables renamed from
13781 sound_file and sound_device.
13782 (parse_sound): Parse :data.
13783 (parse_sound): Handle sound data in strings.
13784 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 13785 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
13786 needed header size.
13787 (wav_play, au_play): Play sounds from string data.
13788
2e471eb5
GM
13789 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
13790
13791 * lisp.h: Add prototype for allocate_string_data.
13792
52283633 13793 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
13794
13795 * alloc.c (mark_buffer): Remove code in #if 0.
13796 (gc_sweep): Ditto.
13797 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
13798 (strings_consed): New variable.
13799 (allocate_string): Set it.
13800 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
13801 (Fmemory_use_counts): Return strings_consed. Use Flist.
13802
13803 * alloc.c: General cleanup in comments etc. Remove conditional
13804 compilation for `standalone'.
13805
13806 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
13807
13808 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
13809 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
13810 (DONT_COPY_FLAG): Removed.
13811 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
13812 (struct sdata, struct sblock): New
13813 (struct string_block): Rewritten.
13814 (STRINGS_IN_STRING_BLOCK): New macro.
13815 (oldest_sblock, current_sblock, total_strings, total_free_strings)
13816 (large_sblocks, string_blocks, string_free_list): New variables.
13817 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
13818 (init_strings): Rewritten.
13819 (allocate_string, allocate_string_data, compact_small_strings)
13820 (free_large_strings, sweep_strings): New functions.
13821 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
13822 (struct string_block_head, current_string_block)
13823 (first_string_block, large_string_blocks, STRING_FULLSIZE)
13824 (STRING_PAD): Removed.
13825 (make_uninit_multibyte_string, make_pure_string): Rewritten.
13826 (Fgarbage_collect): Don't set mark bit in large strings.
13827 (mark_object): Mark strings differently. Mark symbol names
13828 differently.
13829 (survives_gc_p): Test marked strings differently.
427ec082 13830 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
13831 symbol names.
13832 (compact_strings): Removed.
13833
42608ba8
EZ
138342000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
13835
13836 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
13837 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
13838
e0a09e1a
KH
138392000-01-04 Kenichi Handa <handa@etl.go.jp>
13840
dd9f0750 13841 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 13842 in a non-empty buffer.
dd9f0750 13843
3c0f3b15 13844 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 13845
44cd3ae5
GM
138462000-01-03 Gerd Moellmann <gerd@gnu.org>
13847
13848 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
13849 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
13850
13851 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
13852
c182a70f
EZ
138532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13854
13855 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
13856 need to test for MSDOS frames.
13857
24480d5b
EZ
138582000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13859
13860 * dosfns.c (unspecified_colors): Remove.
13861 (msdos_stdcolor_idx): Use global variables unspecified_fg and
13862 unspecified_bg.
13863 (msdos_stdcolor_name): Return strings for unspecified fore- and
13864 back-ground colors.
13865
13866 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 13867 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
13868 (tty_color_name): Return Lisp strings for unspecified fore- and
13869 back-ground colors.
13870 (Finternal_set_lisp_face_attribute): Remove the special treatment
13871 for Qunspecified_{f,b}g.
52283633 13872 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 13873
047f434a
GM
138742000-01-03 Gerd Moellmann <gerd@gnu.org>
13875
13876 * xdisp.c (reseat_at_next_visible_line_start): Position before
13877 newline only if ending up on a newline.
13878 (next_element_from_ellipsis): Return success. Handle case of
52283633 13879 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
13880 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
13881 returns 0.
13882
d684c676
EZ
138832000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
13884
13885 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
13886 (Fcolor_supported_p): Renamed from face-color-supported-p.
13887
5fe1d139
EZ
138882000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13889
13890 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
13891 list of colors renamed to tty-defined-color-alist.
13892 (tty_color_name): Pass the frame to tty-color-by-index.
13893 (realize_tty_face): tty-color-alist is now a function which
13894 accepts the frame as argument.
13895
52283633 13896 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 13897
816be8b8
EZ
138982000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13899
13900 * term.c (insert_glyphs): Pass glyph, not &glyph, to
13901 encode_terminal_code.
13902
b635321e
EZ
139032000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
13904
13905 * dispnew.c (mode_line_string): Support termcap frames as well.
13906
9b784e96
GM
139072000-01-01 Gerd Moellmann <gerd@gnu.org>
13908
27189709
GM
13909 * syntax.c (Fforward_word): Undo previous change.
13910
13911 * editfns.c (Fconstrain_to_field): Don't constrain if
13912 inhibit-field-text-motion is non-nil.
13913 (Fline_beginning_position): Undo previous change.
13914 (Fline_end_position): Ditto.
13915
13916 * syntax.c (Fforward_word): Notice field boundaries only if
13917 inhibit-field-text-motion is nil.
13918
13919 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
13920
13921 * editfns.c (Vinhibit_field_text_motion): New variable.
13922 (inhibit-field-text-motion): New DEFVAR_LISP.
13923 (Fline_beginning_position, Fline_end_position): Notice field
13924 boundaries only if inhibit-field-text-motion is nil.
13925
45158a91
GM
13926 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
13927 All calls adjusted.
13928 (x_build_heuristic_mask): Likewise.
13929 (xbm_load_image_from_file): Change error output.
13930 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
13931 (gif_load, gs_load, x_kill_gs_process): Ditto.
13932
9b784e96
GM
13933 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
13934 color indices when accessing raster pixels.
63cec32f
GM
13935 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
13936 one of :file or :data.
13937 (enum pbm_keyword_index): Add PBM_DATA.
13938 (pbm_format): Add :data.
13939 (pbm_image_p): Allow either :file or :data.
13940 (pbm_read_file): New function.
13941 (pbm_scan_number): Rewritten to read from string.
13942 (pbm_load): Support :data.
9b784e96 13943
2cb085db 13944See ChangeLog.8 for earlier changes.
6922b018
KH
13945
13946;; Local Variables:
49b3bd82 13947;; coding: iso-2022-7bit
6922b018 13948;; End:
2a34a036
GM
13949
13950 Copyright (C) 2001 Free Software Foundation, Inc.
13951 Copying and distribution of this file, with or without modification,
13952 are permitted provided the copyright notice and this notice are preserved.