Don't include libc.lib for profiling - the profiler
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b9937f07
RS
12001-11-19 Richard M. Stallman <rms@gnu.org>
2
3 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
4
2cd23960
JR
52001-11-18 Jason Rumney <jasonr@gnu.org>
6
7 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
8 (x_draw_bar_cursor): If the background color of the glyph under
9 the cursor equals the frame's cursor color, use the glyph's
10 foreground color for drawing the bar cursor.
11 (x_after_update_window_line): Clear internal border in different
12 circumstances.
13 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14 (w32_draw_relief_rect): Correct relief by 1 pixel.
15 (x_set_glyph_string_background_width): Set
16 extends_to_end_of_line_p if the row's fill_line_p is set and
17 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
18 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
19 if cursor_in_non_selected_windows is false.
20 (show_mouse_face): Clean up. Recognize overwritten cursor
21 differently.
22 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
23 Notice if cursor gets overwritten.
24 (notice_overwritten_cursor): Renamed from
25 note_overwritten_text_cursor. Rewritten to take glyph widths
26 into account, and to take X positions as parameters.
27 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28 around call to x_draw_glyphs.
29 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
30 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
31 color to use for image glyph reliefs.
32 (x_draw_image_relief): Accept zero tool_bar_button_relief.
33 (glyph_rect): Remove unused variable `area'.
34
35 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
36 some items.
37 (x_set_internal_border_width): Set frame garbaged when window
38 doesn't exist yet.
39 (Fx_create_frame): Accept zero tool_bar_button_relief.
40 (x_clear_image_1, four_corners_best, image_background)
41 (image_background_transparent): New functions.
42 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
43 (gs_format): Add `:background' entry.
44 (lookup_image): Set IMG's background color if specified.
45 (pbm_load, xbm_load_image, png_load): Set IMG's background field
46 when appropriate.
47 (x_clear_image_1): Reset `background_valid' and
48 `background_transparent_valid' fields.
49 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
50 calculating it here. Set IMG's background_transparent field.
51 (enum xpm_keyword_index): Add XPM_BACKGROUND.
52 (enum png_keyword_index): Add PNG_BACKGROUND.
53 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
54 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
55 (enum gif_keyword_index): Add GIF_BACKGROUND.
56 (enum gs_keyword_index): Add GS_BACKGROUND.
57 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
58 Pre-calculate image background color where necessary.
59 (x_create_x_image_and_pixmap, xbm_load, gs_load): Use
60 display info's n_cbits entry for screen depth.
61 (Fx_show_tip): Remove unused variables `buffer', `top',
62 `left', `max_width' and `max_height'.
63
64 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
65
a4184c1c
GM
662001-11-18 Gerd Moellmann <gerd@gnu.org>
67
68 * puresize.h (BASE_PURESIZE): Increase to 750000.
69
f6fa0866
PJ
702001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
71
72 * frame.c (Fframe_live_p): Doc fix.
73
f4ca4b00
RS
742001-11-18 Richard M. Stallman <rms@gnu.org>
75
76 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
77 (message_dolog_marker3): New static variables hold three markers.
78 (syms_of_xdisp): Initialize and staticpro them.
79 (message_dolog): Use message_dolog_marker1..3 instead of
80 allocating markers each time. Unchain them when done.
81
f4e25f94
RS
822001-11-17 Richard M. Stallman <rms@gnu.org>
83
84 * doc.c (Fsnarf_documentation): Doc fix.
85
91c153e2
AS
862001-11-17 Andreas Schwab <schwab@suse.de>
87
88 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
89
65b7d3e7
RS
902001-11-17 Richard M. Stallman <rms@gnu.org>
91
92 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
93
6b5f6311
JR
942001-11-17 Jason Rumney <jasonr@gnu.org>
95
96 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
97
be676094
GM
982001-11-17 Gerd Moellmann <gerd@gnu.org>
99
100 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
101 with invalid position.
102
032a857d
RS
1032001-11-16 Richard M. Stallman <rms@gnu.org>
104
105 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
106
107 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
108 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
109 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
110
111 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
112
b6270150
SM
1132001-11-16 Stefan Monnier <monnier@cs.yale.edu>
114
115 * fileio.c (build_annotations): Split off the tail.
116 (build_annotations_2): New fun. Extracted from build_annotations.
117 (Fwrite_region): Split the call to build_annotations into two
118 calls to build_annotations and build_annotations_2.
119
792e5cbd
PJ
1202001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
121
98cbb9fa
PJ
122 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
123 clear_waiting_for_input with argument.
124
125 * xterm.h (x_update_cursor): Remove duplicated prototype.
126
b6270150 127 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 128
ea904403 129 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 130
ea904403 131 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 132
fa336b91
SM
1332001-11-16 Stefan Monnier <monnier@cs.yale.edu>
134
135 * fileio.c (choose_write_coding_system): New fun, extracted
136 from Fwrite_region.
137 (Fwrite_region): Use it.
138
139 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
140 (funcall_lambda, run_hook_with_args): Make static and add prototype.
141 (ml_apply, find_handler_clause): Add prototype.
142
077907d4
EZ
1432001-11-16 Eli Zaretskii <eliz@gnu.org>
144
aa2af83a
EZ
145 * config.in: Add #undef HAVE_COFF_H.
146
077907d4
EZ
147 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
148 Required for ISC 4.1.
149
1756e2fb
EZ
1502001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
151
152 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
153 Andrew Wiseman <a.wiseman@btclick.com>.
154
06e8f738
KS
1552001-11-16 Kim F. Storm <storm@cua.dk>
156
157 The following changes are made to clean up the various internal
158 references to the fringes to actually use the term `fringe' for
159 them. Previously, they were called `flags areas', `bitmap areas',
160 `left/right side of windows', or implicitly as `flags' or
161 `bitmaps':
162
163 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
164 Comments fixed. Use renamed symbols.
fa336b91 165
06e8f738 166 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 167
06e8f738
KS
168 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
169 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
170 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 171
06e8f738 172 * msdos.c: Comment fix.
fa336b91 173
06e8f738 174 * w32fns.c: Use renamed symbols.
fa336b91 175
06e8f738
KS
176 * w32term.c: Comment fixes. Use renamed symbols.
177 (fringe_bitmap_type): Renamed from bitmap_type.
178 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
179 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
180 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 181
06e8f738
KS
182 * w32term.h: Comment fixes. Use renamed symbols.
183 (fringes_extra): Renamed from flags_areas_extra.
184 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
185 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
186 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
187 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
188 (FRAME_X_LEFT_FRINGE_WIDTH):
189 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
190 (FRAME_X_RIGHT_FRINGE_WIDTH):
191 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
192
06e8f738 193 * widget.c: Use renamed symbols.
fa336b91 194
06e8f738
KS
195 * window.c: Comment fixes. Use renamed symbols.
196 (coordinates-in-window-p): Doc fix.
fa336b91 197
06e8f738 198 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 199
06e8f738 200 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 201
06e8f738 202 * xfns.c: Use renamed symbols.
fa336b91 203
06e8f738
KS
204 * xterm.c: Comment fixes. Use renamed symbols.
205 (fringe_bitmap_type): Renamed from bitmap_type.
206 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
207 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
208 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
209
210 * xterm.h: Comment fixes. Use renamed symbols.
211 (fringes_extra): Renamed from flags_areas_extra.
212 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
213 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
214 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
215 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
216 (FRAME_X_LEFT_FRINGE_WIDTH):
217 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
218 (FRAME_X_RIGHT_FRINGE_WIDTH):
219 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 220
9ce647f4
JR
2212001-11-15 Jason Rumney <jasonr@gnu.org>
222
223 * w32menu.c (add-menu-item): Make help_echo and radio buttons
224 work for most menu items. From David Ponce
225 <david.ponce@wanadoo.fr>.
226
9b784ab8
GM
2272001-11-15 Gerd Moellmann <gerd@gnu.org>
228
9f7e52b4
GM
229 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
230 Some x_set_* function expect to be called even if old and new
231 value are equal.
232
233 * xdisp.c (build_desired_tool_bar_string): Accept zero
234 tool_bar_button_relief.
235
236 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
237
238 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 239
34e5d0af
GM
240 * xterm.c (x_draw_bar_cursor): If the background color of the
241 glyph under the cursor equals the frame's cursor color, use
242 the glyph's foreground color for drawing the bar cursor.
243
9b784ab8
GM
244 * dispnew.c (direct_output_forward_char): Fix character/byte
245 position comparison.
246
89512fcd
MB
2472001-11-15 Miles Bader <miles@gnu.org>
248
249 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
250 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
251 Update arguments to find_field.
252 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
253 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
254 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
255 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
256
7d18891d
RS
2572001-11-14 Richard M. Stallman <rms@gnu.org>
258
d2936d21
RS
259 * editfns.c (Fpropertize): Allow call with 1 arg.
260
7d18891d
RS
261 * dispextern.h (image_background, image_background_transparent):
262 Conditionalize on HAVE_X_WINDOWS.
263
2642001-11-13 Richard M. Stallman <rms@gnu.org>
265
266 * print.c (Fprin1_to_string): Doc fix.
267
268 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
269
270 * floatfns.c (Fceiling, Ffloor): Doc fixes.
271
272 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
273
274 * fileio.c (Ffile_accessible_directory_p): Doc fix.
275
276 * eval.c (syms_of_eval): Doc fix.
277
278 * coding.c (syms_of_coding): Doc fix.
279
280 * doc.c (Fsnarf_documentation): Doc fix.
281
282 * dispnew.c (syms_of_display): Doc fix.
283
284 * category.c (Fget_unused_category): Doc fix.
285
286 * buffer.c (syms_of_buffer): Doc fixes.
287
9474c847
EZ
2882001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
289
290 * print.c (prin1, print): Doc fix.
291
e3059a5d
PJ
2922001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
293
294 * fontset.h: Remove prototypes for variables
295 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
296
297 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
298 `Vclip_large_size_font'.
299
b3700ae7
JR
3002001-11-13 Jason Rumney <jasonr@gnu.org>
301
302 * w32fns.c: Doc fix.
303
eae936e2
PJ
3042001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
305
4bb962be
PJ
306 * xfaces.c (Fface_attributes_as_vector): Doc fix.
307
0a332240
PJ
308 * w32fns.c (Fx_synchronize): Reindent.
309
ddb67bdc
PJ
310 * fns.c: Doc fix.
311
3467c402
PJ
312 * emacs.c: Doc fix.
313
314 * coding.c: Doc fix.
315
6e1b91d7
PJ
316 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
317 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
318 `new style' [w/`doc:' keyword].
319
f6e34773
PJ
320 * xmenu.c (x-popup-menu): Reindent.
321 (x-popup-dialog): Likewise.
322
fa336b91 323 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 324
c2552f79
PJ
325 * xdisp.c (Fdump_tool_bar_row): Reindent.
326
94c7167b
PJ
327 * minibuf.c (Fminibuffer_complete_word): Reindent.
328 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 329 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
330 (Fminibuffer_message): Likewise.
331
462a5e3a
PJ
332 * fns.c (Freverse): Reindent.
333
b8de5714
PJ
334 * eval.c (Fif): Reindent.
335 (Fand): Likewise.
336
deb8e082
PJ
337 * editfns.c (Fuser_real_login_name): Reindent.
338 (Finsert_buffer_substring): Likewise.
339 (Fcompare_buffer_substrings): Likewise.
340 (Fsubst_char_in_region): Likewise.
341
bacf09b4
PJ
342 * dispnew.c (Fsit_for): Reindent.
343 (Fframe_or_buffer_changed_p): Likewise.
344 (Finternal_show_cursor_p): Likewise.
345 (syms_of_display): Likewise.
346
eae936e2
PJ
347 * alloc.c (Flist): Reindent.
348 (Fvector): Likewise.
349
1c1d3d69
RS
3502001-11-12 Richard M. Stallman <rms@gnu.org>
351
352 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
353 LeaveNotify events. Only FocusIn and FocusOut do that now.
354 (x_display_and_set_cursor): Do display hollow cursors in active
355 minibuffer windows when they are not selected.
356
b6f4c7ba
JR
3572001-11-12 Jason Rumney <jasonr@gnu.org>
358
359 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
360 * w32term.c: Change doc-string comments to `new style'.
361 [w/`doc:' keyword]. Doc fixes.
362
363 * w32fns.c: Don't define max.
364 (Fx_open_connection): Only execute once.
365
a89f435d
PJ
3662001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
367
368 * ccl.c: Change macros to use do-while block instead of if-else.
369 Use braces to follow GNU Coding Standards.
370
a4cd0cd7
RS
3712001-11-11 Richard M. Stallman <rms@gnu.org>
372
eafb659a
RS
373 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
374
375 * lread.c (read_escape): Use end_of_file_error for reporting eof.
376
a4cd0cd7
RS
377 * insdel.c (replace_range): Use adjust_markers_for_replace
378 instead of adjust_markers_for_delete and adjust_markers_for_insert.
379
380 * intervals.h: Declare set_text_properties and set_text_properties_1.
381
382 * textprop.c (set_text_properties_1): New subroutine
383 broken out of set_text_properties.
384 (set_text_properties): Use set_text_properties_1.
385
386 * intervals.c (graft_intervals_into_buffer):
387 Use set_text_properties_1 to clear out properties.
388
389 * search.c (Freplace_match): Use replace_range to insert
390 and delete. Don't request property inheritance from
391 surrounding text.
392
91823618
JR
3932001-11-10 Jason Rumney <jasonr@gnu.org>
394
395 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
396 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 397 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 398
86928dfb
GM
3992001-11-10 Gerd Moellmann <gerd@gnu.org>
400
fa336b91 401 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
402 instead of malloc/free.
403
40ef1eda
PJ
4042001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
405
ab8469eb
PJ
406 * xfaces.c (merge_face_vectors): Use braces to follow GNU
407 Coding Standards.
408 (Finternal_set_lisp_face_attribute): Likewise.
409
a78e0303
PJ
410 * buffer.c (Fbury_buffer): Likewise.
411
40ef1eda
PJ
412 * indent.c (current_column_1): Remove unused variable `prev_col'.
413
fabf4a91
PJ
414 * coding.c (encode_coding): Use precomputed value of `src'.
415 (encode_coding): Remove unused variable `src_end'.
416 (code_convert_region): Remove unused variables `count'.
417
0c99b139
JR
4182001-11-07 Jason Rumney <jasonr@gnu.org>
419
420 * w32term.c (x_display_and_set_cursor): Do not move system caret
421 if cursor_glyph is NULL.
422
830ddd77
PJ
4232001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
424
425 * keymap.c (access_keymap): Fix compilation error.
426
55c6d645
MB
4272001-11-07 Miles Bader <miles@gnu.org>
428
429 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
430
5de38842
PJ
4312001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
432
7a4564a4
PJ
433 * intervals.c (graft_intervals_into_buffer):
434 Remove #ifdef'd-out code.
435 (graft_intervals_into_buffer): Remove unused variable `middle'.
436
5de38842
PJ
437 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
438 code (eval-current-buffer).
439 Change doc-string comments to `new style' [w/`doc:' keyword].
440
4fa23df5
RS
4412001-11-06 Richard M. Stallman <rms@gnu.org>
442
443 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
444
7a6a97d7
SM
4452001-11-06 Stefan Monnier <monnier@cs.yale.edu>
446
c191d13c
SM
447 * lread.c (read1): Fix behavior with nested backquoting.
448
7a6a97d7
SM
449 * keyboard.c (make_lispy_event): Check integerness and fix
450 Lisp_Object/int mixup.
451
44dc78e0
PJ
4522001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
453
454 * fns.c (copy_hash_table): Remove unused variable `v'.
455
17893c65
PJ
456 * fontset.c (fontset_font_pattern): Remove unused variable
457 `family_registry'.
458
4d994a79
PJ
459 * indent.c (current_column_1): Remove unused variable `prev_col'.
460
d5360cc7
RS
4612001-11-05 Richard M. Stallman <rms@gnu.org>
462
463 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
464
465 * buffer.c (Fkill_buffer): Don't delete auto save file
466 if buffer is modified.
467
96238a5a
AI
4682001-11-05 Andrew Innes <andrewi@gnu.org>
469
470 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
471 CHECK_NUMBER_CDR.
472
d9d54213
RS
4732001-11-05 Richard M. Stallman <rms@gnu.org>
474
475 * unexelf.c (unexec): Minor changes; clean up comments.
476
b116830b
SS
4772001-11-05 Sam Steingold <sds@gnu.org>
478
479 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
480
3297e2a1
AS
4812001-11-05 Andreas Schwab <schwab@suse.de>
482
483 * sound.c (sound_perror): Save errno from being clobbered.
484
9212319f 4852001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
486
487 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
488 the program image directly.
489
7dd73b78
PJ
4902001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
491
492 * buffer.h (Fbuffer_local_value): Add prototype.
493
982f6c7e
RS
4942001-11-04 Richard M. Stallman <rms@gnu.org>
495
d31053f9
RS
496 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
497 and CHECK_BUFFER.
498
499 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
500 (record_char): Likewise.
501
502 * keyboard.c (make_lispy_event): Don't insist a drag event must
503 move to a different buffer position. Instead, check for moving at
504 least double_click_fuzz.
505
506 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
507
508 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
509
982f6c7e
RS
510 * indent.c (current_column_1, Fmove_to_column): Separate the code
511 for display-table glyphs from the code buffer text, to fix
512 bugs in the former.
513
830047fd
RS
5142001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
515
516 * buffer.c (Fbuffer_local_value): New function.
c191d13c 517 (syms_of_buffer): Defsubr it.
b116830b 518
830047fd
RS
519 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
520 value of `cursor-in-non-selected-windows'.
521
522 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
523 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
524 (syms_of_xdisp): Initialize it.
b116830b 525
2df5238c
PJ
5262001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
527
4e397688
PJ
528 * xfns.c (Fx_create_frame): Doc fix.
529
48b0f3ae
PJ
530 * coding.c: Change doc-string comments to `new style' [w/`doc:'
531 keyword].
532
2df5238c
PJ
533 * eval.c (top_level_value, top_level_set): Remove commented and
534 #ifdef'd-out code.
535 (Fdefvar): Fix usage in doc-string.
536
3ecaf7e5
RS
5372001-11-03 Richard M. Stallman <rms@gnu.org>
538
539 * xfns.c: Include unistd.h, if it exists.
540
541 * editfns.c: Move the include of ctype.h after unistd.h.
542
543 * gmalloc.c: Test BROKEN_PROTOTYPES.
544
8db2e33b
KR
5452001-11-03 Ken Raeburn <raeburn@gnu.org>
546
547 * lisp.h (CHECK_STRING_CAR): New macro.
548 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
549 treating XCAR and XCDR as lvalues.
550 (openp): Use CHECK_STRING_CAR.
551 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
552
aed29b97
EZ
5532001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
554
555 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 556 (SIGMASKTYPE): Define.
aed29b97
EZ
557
558 * syssignal.h (sigunblock): Don't define if already defined.
559
6cb16f95
PJ
5602001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
561
16b45be4
EZ
562 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
563 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
564 Fix typos in comments.
565
020f9b38
PJ
566 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
567 and #ifdef'd-out code.
568 Fix and reindent comments.
569
c191d13c 570 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 571
6cb16f95
PJ
572 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
573 argument `i' in macros.
574
575 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
576 `i' in macros.
577
16b45be4
EZ
578 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
579 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
580 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
581 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
582 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
583 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
584 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
585 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
586 in macros.
587
588 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
589 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
590 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
591 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
592 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
593 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
594 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
595 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
596 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
597 (remove unused second argument).
598
7e9d3c2f
SM
5992001-11-02 Stefan Monnier <monnier@cs.yale.edu>
600
601 * syntax.c (describe_syntax): New wrapper.
602 (Finternal_describe_syntax_value): Rename from describe_syntax.
603 Don't insert space at front and \n at the end.
604 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
605
606 * regex.c (re_wctype): Try to fix some warnings.
607 (regcomp, regexec): Don't forget the __restrict.
608
e6bff182
RS
6092001-11-02 Richard M. Stallman <rms@gnu.org>
610
611 * textprop.c (Fget_char_property): Doc fix.
612
9ba48103
PJ
6132001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
614
615 * process.c (Fstart_process): Add usage to doc-string.
616
617 * data.c (Fsetq_default): Ditto.
618
619 * callint.c (Finteractive): Ditto.
620
c22e59e1
SM
6212001-11-01 Stefan Monnier <monnier@cs.yale.edu>
622
623 * macros.c: Don't include keymap.h any more.
624
9271ed2c
RS
6252001-11-01 Richard M. Stallman <rms@gnu.org>
626
e6bff182
RS
627 * data.c (Fmake_local_variable): Doc fix.
628
629 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
630 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
631
9271ed2c
RS
632 * keymap.c (Fdescribe_buffer_bindings): Print character property
633 bindings along with or instead of the buffer local map.
634 Make the overriding maps override what they should.
635
8b8bd9c6
PJ
6362001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
637
638 * window.c (grow_mini_window): Fix typo in comment.
639
27188d11
GM
6402001-11-01 Gerd Moellmann <gerd@gnu.org>
641
7b49b9d2
GM
642 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
643 (XTset_vertical_scroll_bar): Likewise.
644
43f7c3ea
GM
645 * xfns.c (x_build_heuristic_mask): Use four_corners_best
646 instead of IMAGE_BACKGROUND.
c22e59e1 647
b350c2e5
GM
648 * xfns.c (four_corners_best): Reindent.
649
c22e59e1 650 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
651 Handle :box so that it is possible to specify sexprs.
652
d576358b
PJ
6532001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
654
655 * xfaces.c (Finternal_merge_in_global_face): Reindent.
656 (Fface_font): Ditto.
657 (Finternal_set_alternative_font_registry_alist): Ditto.
658 (Ftty_suppress_bold_inverse_default_colors): Ditto.
659
660 * xfns.c (x-get-resource): Reindent.
661
bf00d461
EZ
6622001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
663
664 * s/hpux11.h: New file.
665
4e10df59
PJ
6662001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
667
2b209b97
PJ
668 * emacs.c (USAGE1): Show command line option --no-window-system
669 instead of --no-windows in usage.
670 (standard_args): Rename --no-windows to --no-window-system.
671 (bug_reporting_address): Follow Emacs coding conventions.
672
9dbc9081
PJ
673 * eval.c (Fcommandp): Doc fix.
674 Change doc-string comments to `new style' [w/`doc:' keyword].
675
4e10df59
PJ
676 * frame.c (Fframe_live_p): Doc fix.
677
678 * buffer.c (selective-display-ellipses): Doc fix.
679
dd387b25
GM
6802001-10-31 Gerd Moellmann <gerd@gnu.org>
681
fe957e65
GM
682 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
683
dd387b25
GM
684 * xfaces.c (realize_x_face): If C is not a single-byte character,
685 set the face's colors_copied_bitwise_p instead of the defaulted_p
686 members which have a different meaning.
687 (free_face_colors): Do nothing for a face whose colors have been
688 copied bitwise.
689
c22e59e1 690 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 691
2e1280f8
PJ
6922001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
693
687784e8
PJ
694 * marker.c, mocklisp.c: Change doc-string comments to `new style'
695 [w/`doc:' keyword].
2e1280f8 696
b9d9a9b9
GM
6972001-10-31 Gerd Moellmann <gerd@gnu.org>
698
699 * fns.c (require_unwind): Return Lisp_Object.
700
48400103
PJ
7012001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
702
fa1361cb
PJ
703 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
704 (last-input-char): Revert doc-string to be the same as the
705 doc-string of `last-input-event'.
706
48400103
PJ
707 * xdisp.c: Fix typos in comments.
708
eafa3196
GM
7092001-10-31 Gerd Moellmann <gerd@gnu.org>
710
711 * window.c (grow_mini_window): Handle case that the root
712 window is already smaller than the nominal mininum height.
713
747d3f2a
SM
7142001-10-30 Stefan Monnier <monnier@cs.yale.edu>
715
bf9bb76f
SM
716 * emacs.c (main): Don't call keys_of_macros any more.
717
718 * lisp.h (keys_of_macros): Remove.
719
720 * macros.c (keys_of_macros): Remove.
721
747d3f2a
SM
722 * xfaces.c (Fface_attribute_relative_p): Declare args.
723
5e905a57
JR
7242001-10-30 Jason Rumney <jasonr@gnu.org>
725
726 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
727 (enum_font_cb2): Ignore fonts with vertical orientation.
728
3a426197
RS
7292001-10-30 Richard M. Stallman <rms@gnu.org>
730
731 * keyboard.c (Finput_pending_p): Doc fix.
732
a742d646
GM
7332001-10-30 Gerd Moellmann <gerd@gnu.org>
734
259cf6bc
GM
735 * xterm.c (x_after_update_window_line): Don't run the code
736 clearing in borders for rows whose visible height is 0.
737
3f99f948
GM
738 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
739 resized_p flag is set. If not set, use the much less flickering
740 method previously used.
741
742 * dispnew.c (change_frame_size_1): Set frame's resized_p.
743
744 * frame.h (struct frame) <resized_p>: New member.
745
b4a3be43
GM
746 * lread.c (to_multibyte): Ensure read_buffer is at least twice
747 as large as the number of bytes to convert.
747d3f2a 748
a742d646
GM
749 * lread.c (to_multibyte): New function.
750 (read1): Use it.
751
cacbb9e9
EZ
7522001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
753
754 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
755
99cb6b2f
GM
7562001-10-30 Gerd Moellmann <gerd@gnu.org>
757
327f42ee 758 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
759 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
760 if the row's fill_line_p is set and drawing the last glyph with
761 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 762
99cb6b2f
GM
763 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
764
8e8223e2
SM
7652001-10-29 Stefan Monnier <monnier@cs.yale.edu>
766
767 * xmenu.c: Include coding.h and charset.h.
768 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
769 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
770 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
771 Explicitly set wv->help. Use `TRUE' rather than `True'.
772 (menu_help_callback): Use empty_string.
773
774 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
775 (Fx_popup_dialog): Explicitly init f.
776 (w32_menu_display_help): Use empty_string.
777
4d083a8f
RS
7782001-10-29 Richard M. Stallman <rms@gnu.org>
779
b2304472
RS
780 * fns.c (Frequire): Detect recursive try to require the same
781 feature 3 or more levels deep, and get error.
782 (require_unwind): New subroutine.
783 (require_nesting_list): New variable.
784 (syms_of_fns): Init and staticpro it.
785
4d083a8f
RS
786 * print.c (print_object): Clarify indication of insertion type.
787
2fe41216
EZ
7882001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
789
90480000
EZ
790 * coding.c (syms_of_coding): Document that locale-coding-system is
791 used for decoding input on X.
792
2fe41216
EZ
793 * window.c (Fscroll_left, Fscroll_right): Doc fix.
794
74e79967
PJ
7952001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
796
797 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
798 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
799
60ebcfe8
GM
8002001-10-29 Gerd Moellmann <gerd@gnu.org>
801
9a7bdceb
GM
802 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
803 use NO_CURSOR if cursor_in_non_selected_windows is false.
804
3f08fcd2
GM
805 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
806 the slant attribute if FRAME is t.
807
0ccfdad2
GM
808 * xfns.c (x_set_internal_border_width): Set frame garbaged
809 when X window doesn't exist yet.
810
ef253080
GM
811 * xterm.c (x_after_update_window_line): Clear internal border
812 in different circumstances.
b116830b 813
60ebcfe8
GM
814 * xterm.c (XTread_socket) <KeyPress>: Don't use
815 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
816 <handa@etl.go.jp>.
817
73d25f9c
EZ
8182001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
819
820 * m/ibms390.h: New file. From Adam Thornton
821 <athornton@sinenomine.net>.
822
cac1daf0
GM
8232001-10-28 Gerd Moellmann <gerd@gnu.org>
824
053b3256 825 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 826
cac1daf0
GM
827 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
828 a loop counter.
829
13b1a09c
PJ
8302001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
831
186486eb
PJ
832 * emacs.c: Use argv[0] instead of emacs when -t was specified.
833
4707d2d0
PJ
834 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
835 keyword].
836 Fix typos in comments.
b116830b 837
d883731c
PJ
838 * emacs.c (bug_reporting_address): New function.
839 Use it when displaying usage message.
840
04012254
PJ
841 * minibuf.c (read_minibuf): Remove unused external declaration of
842 variable `Qread_only'.
843
13b1a09c
PJ
844 * keymap.c (access_keymap): Remove unused variable `charset'.
845
5bbf4378
MB
8462001-10-28 Miles Bader <miles@gnu.org>
847
848 * xfaces.c (merge_face_heights): Handle TO being relative as well.
849 Remove #ifdef'd-out code.
850 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
851 (syms_of_xfaces): Initialize them.
852
1ce1e4ee
JR
8532001-10-27 Jason Rumney <jasonr@gnu.org>
854
855 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
856 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
857 position using the system caret.
858
859 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
860 (w32_system_caret_height, w32_system_caret_x)
861 (w32_system_caret_y): New variables for tracking system caret.
862 (w32_initialize): Initialize them.
c2d53558 863 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 864
c2d53558
SM
865 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
866 New messages types.
1ce1e4ee
JR
867
868 * w32term.c (note_mouse_highlight): Clear old help_echo.
869
4e30ce42
PJ
8702001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
871
bb4600a4
PJ
872 * xterm.c: Fix typo in a comment.
873
7db35a48
PJ
874 * emacs.c: Fix typos in comments.
875 Remove unnecessary spaces.
876 Change doc-string comments to `new style' [w/`doc:' keyword].
877 (USAGE2): Fix typos in usage string.
878
a7248e4f
PJ
879 * xterm.c: Fix typo in a comment.
880
4e30ce42
PJ
881 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
882 emacs.c.
883
62725a92
GM
8842001-10-27 Gerd Moellmann <gerd@gnu.org>
885
798dbe1f 886 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 887 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
888 farther backward when target_y was not reached.
889
62725a92
GM
890 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
891 Display errno only if non-zero.
892 (sound_warning): New function.
893 (vox_configure): Don't treat failing to set sample rate as error.
894 (various places): Improve error messages.
895
d4e34d24
EZ
8962001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
897
944e6f60
EZ
898 * fileio.c (Faccess_file): Run the argument filename through
899 Fexpand_file_name, before using it.
900
d4e34d24
EZ
901 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
902 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
903
38d2af0c
GM
9042001-10-26 Gerd Moellmann <gerd@gnu.org>
905
da80a8d5
GM
906 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
907
38d2af0c
GM
908 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
909 Fix clearing in the case of scroll bars on the right.
c2d53558 910
56f508dd
EZ
9112001-10-26 Juanma Barranquero <lektu@terra.es>
912
913 * w32gui.h (XImage): Add a dummy typedef.
914
fbd5ceb2
GM
9152001-10-26 Gerd Moellmann <gerd@gnu.org>
916
c2d53558 917 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 918
b23236fb
EZ
9192001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
920
921 * frame.c (Fframe_parameter): Fix last change.
922
5d991fc4
EZ
923 * fileio.c: Revert last change (which removed old commented-out
924 version of expand-file-name). Add a comment that explains why
925 this old version should not be removed.
926
879eadc3
GM
9272001-10-25 Gerd Moellmann <gerd@gnu.org>
928
75700ff2
GM
929 * frame.c (Fframe_parameter): Fix a bug whereby some
930 ``artificial'' frame parameters, like `minibuffer' were not
931 obtained by calling Fframe_parameters.
932
dfe92a6a
GM
933 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
934 cursor differently.
935
879eadc3
GM
936 * xdisp.c (move_it_vertically_backward): Compute line height
937 differently. Add heuristic to try to be more compatible to 20.x.
938
e1010ebe
SM
9392001-10-25 Stefan Monnier <monnier@cs.yale.edu>
940
d73a471b
SM
941 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
942
d6da5a06
GM
943 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
944 boolean.
e1010ebe 945
f66bd220
MB
9462001-10-25 Miles Bader <miles@gnu.org>
947
948 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
949 BG is a pointer to a structure, not a structure.
950 (gif_format, png_format): Add missing commas.
951
d436d538
RS
9522001-10-24 Richard M. Stallman <rms@gnu.org>
953
954 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 955 (syms_of_xfaces): Defsubr it.
d436d538 956
075c507b
PJ
9572001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
958
959 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
960 variable `area'.
961
d492b584
PJ
9622001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
963
c2d53558 964 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 965
e2a57b34
MB
9662001-10-25 Miles Bader <miles@gnu.org>
967
968 * dispextern.h (struct image): Add `background',
969 `background_valid', and `background_transparent' fields.
970 (image_background, image_background_transparent): New declarations.
971 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
972 * xfns.c (image_background, image_background_transparent)
973 (four_corners_best): New functions.
c2d53558 974 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
975 (gs_format): Add `:background' entry.
976 (lookup_image): Set IMG's background color if specified.
977 (pbm_load, xbm_load_image, png_load): Set IMG's background field
978 when appropriate.
979 (x_clear_image_1): Reset `background_valid' and
980 `background_transparent_valid' fields.
981 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
982 calculating it here. Set IMG's background_transparent field.
983 (enum xpm_keyword_index): Add XPM_BACKGROUND.
984 (enum png_keyword_index): Add PNG_BACKGROUND.
985 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
986 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
987 (enum gif_keyword_index): Add GIF_BACKGROUND.
988 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 989 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
990 Pre-calculate image background color where necessary.
991 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
992 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
993 color to use for image glyph reliefs.
994
b547b6e8
GM
9952001-10-24 Gerd Moellmann <gerd@gnu.org>
996
d9e3b8c6
GM
997 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
998 in full-width rows.
c2d53558 999
b547b6e8
GM
1000 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1001 Fix clearing of area not covered by scroll bar.
1002
2beb36f9
PJ
10032001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1004
1005 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1006 and `real_start'.
c2d53558 1007 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
1008 (glyph_rect): Remove unused variable `area'.
1009
76cb5e06
GM
10102001-10-24 Gerd Moellmann <gerd@gnu.org>
1011
bdbdebff 1012 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
1013
1014 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1015 (row_containing_pos): Take additional argument DY.
1016 Treat rows ending in middle of char differently.
62e33982
GM
1017 (display_line): Handle tabs on window systems differently.
1018
1019 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1020 with additional argument.
1021
1022 * dispextern.h (row_containing_pos): Adjust prototype.
1023
76cb5e06
GM
1024 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1025 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1026 (try_window_id, try_window_reusing_current_matrix)
1027 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1028 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1029
996fee11
PJ
10302001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1031
c9e60620
PJ
1032 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1033 gnuemacs).
1034 (HAVE_BOXES): Fix typo in comment.
1035 (push_menu_pane): Fix typo in comment.
1036
3b552d56
PJ
1037 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1038 of `Qwhen'.
1039 (single_display_prop_string_p): Remove unused local declarations
1040 of `Qwhen' and `Qmargin'.
1041 (string_buffer_position): Remove unused variable `around'.
1042 (store_frame_title): Remove unused variable `width'.
1043
15c565ac
PJ
1044 * window.c: Don't define max.
1045 (coordinates_in_window): Remove unused variable `uy'.
1046
a8818eb9
PJ
1047 * widget.c: Don't define max.
1048
996fee11
PJ
1049 * process.c: Don't define max.
1050 (create_process): Remove unused variable `buffer'.
1051
496e1a5b
GM
10522001-10-23 Gerd Moellmann <gerd@gnu.org>
1053
c2d53558 1054 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 1055
5905ae8b
EZ
10562001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1057
1058 * xfaces.c (Finternal_set_lisp_face_attribute)
1059 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1060 frame is on a windowed display.
1061
24db49fb
GM
10622001-10-23 Gerd Moellmann <gerd@gnu.org>
1063
c2d53558
SM
1064 * dispnew.c (sync_window_with_frame_matrix_rows):
1065 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
1066 of marginal areas.
1067
c2d53558 1068 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 1069
f0487f05
EZ
10702001-10-23 Andreas Schwab <schwab@suse.de>
1071
1072 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1073 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1074
f0a48a01
GM
10752001-10-23 Gerd Moellmann <gerd@gnu.org>
1076
c2d53558 1077 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
1078 REAL_END. Notice if cursor gets overwritten.
1079 (notice_overwritten_cursor): Take X positions as parameters.
1080 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1081 around call to x_draw_glyphs.
1082
a50a10a0
PJ
10832001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1084
fc11dff0
PJ
1085 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1086 instead of C) and usage.
a50a10a0 1087
fc11dff0
PJ
1088 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1089 of C) and usage.
a50a10a0
PJ
1090
1091 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1092 `left', `max_width' and `max_height'.
1093
8738febd
GM
10942001-10-23 Gerd Moellmann <gerd@gnu.org>
1095
1096 * xdisp.c (display_line): For a tab continued to the next line,
1097 set row's ends_in_middle_of_char_p.
1098
653c329b
GM
10992001-10-22 Gerd Moellmann <gerd@gnu.org>
1100
1101 * xdisp.c (display_line): Fix computation of continuation lines
1102 width for TABs.
1103
f958c5ac
PJ
11042001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1105
7ba51063
PJ
1106 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1107 `Qlaplace'.
1108
f958c5ac
PJ
1109 * fileio.c: Remove unused code.
1110
eb360291
MB
11112001-10-22 Miles Bader <miles@gnu.org>
1112
1113 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1114 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1115 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1116
98515cf0
JR
11172001-10-21 Jason Rumney <jasonr@gnu.org>
1118
1119 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1120
93026d88
EZ
11212001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1122
1123 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1124 (Finsert_string): Avoid the multi-line string literals warning.
1125
c9a95b79
MB
11262001-10-22 Miles Bader <miles@gnu.org>
1127
1128 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1129 (Fdocumentation): Don't use it.
1130 (syms_of_doc): Don't initialize it.
1131
1132 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1133 * print.c (Fwith_output_to_temp_buffer): Likewise.
1134 * window.c (Fsave_window_excursion): Likewise.
c2d53558 1135 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 1136 (Fsave_restriction): Likewise.
c2d53558
SM
1137 * eval.c (Frun_hooks, Frun_hook_with_args)
1138 (Frun_hook_with_args_until_failure)
1139 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1140 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1141 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
1142 (Funwind_protect, Fcondition_case): Likewise.
1143 * coding.c (Ffind_operation_coding_system): Likewise.
1144 * keyboard.c (Ftrack_mouse): Likewise.
1145
a3b10252
MB
11462001-10-21 Miles Bader <miles@gnu.org>
1147
c2d53558 1148 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
1149 (Fmake_hash_table): Add usage: string to doc string.
1150 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 1151 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
1152 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1153 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1154 (Fml_prefix_argument_loop): Likewise.
1155
c6f73eec
PJ
11562001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1157
c2d53558 1158 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 1159
c6f73eec
PJ
1160 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1161 style' [w/`doc:' keyword].
1162
1163 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1164 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1165 comments to `new style' [w/`doc:' keyword].
1166
3cf3436e
JR
11672001-10-21 Jason Rumney <jasonr@gnu.org>
1168
1169 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1170
c169b8f1
JR
1171 * w32term.c (remember_mouse_glyph): New function.
1172 (w32_mouse_position): Use it.
1173 (note_mouse_movement): If the mouse moved off the glyph, remember
1174 its new position.
c2d53558 1175
4fdd691b
JR
1176 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1177 (w32_display_info): Add mouse_face_overlay.
1178
c169b8f1
JR
1179 * w32term.c (notice_overwritten_cursor): Renamed from
1180 note_overwritten_text_cursor. Rewritten to take glyph widths into
1181 account.
1182 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1183 (fast_find_string_pos): New function.
1184 (fast_find_position): Return the correct vpos. Add parameter
1185 STOP. In the final row, stop before glyphs having STOP as object.
1186 Don't consider glyphs that are not from a buffer.
1187 (fast_find_position) [0]: Add a presumably more correct version
1188 for after 21.1.
1189 (expose_window_tree, expose_frame): Don't compute intersections here.
1190 (expose_window): Do it here instead.
1191 (expose_window_tree, expose_window, expose_line): Return 1 when
1192 overwriting mouse-face.
1193 (expose_window): If W is the window currently being updated, mark
1194 the frame garbaged.
1195 (expose_frame): If mouse-face was overwritten, redo it.
1196 (x_use_underline_position_properties): New variable.
1197 (syms_of_xterm): DEFVAR_BOOL it.
1198 (x_draw_glyph_string): Add comment to use it in future.
1199 (x_draw_glyph_string): Restore clipping after drawing box.
1200 Fix a computation of the underline position.
1201 (w32_get_glyph_string_clip_rect): Minor cleanup.
1202 (x_fill_stretch_glyph_string): Remove an assertion.
1203 (x_produce_glyphs): Don't convert multibyte characters
1204 to unibyte characters in unibyte buffers.
1205 (cursor_in_mouse_face_p): New function.
1206 (x_draw_stretch_glyph_string): Use it to choose a different GC
1207 when drawing a cursor within highlighted text. Don't draw
1208 background again if it has already been drawn.
1209 (x_draw_glyph_string_box): Don't draw a full-width
1210 box just because the glyph row's full_width_p flag is set.
1211 (x_draw_glyphs): Fix computation of rightmost x for
1212 full-width rows.
1213 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1214 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1215 change bottom shadow accordingly. Some cleanup.
1216 (x_update_window_end): Handle overwritten mouse face
1217 also for tool bar windows.
1218 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1219 DRAW is DRAW_IMAGE_RAISED.
1220 (clear_mouse_face): Return 1 if text with mouse face was
1221 actually redrawn. Make the function static. Reset
1222 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1223 optimize away highlighting if we pass over that same overlay again.
1224 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1225 to detect a case where we have to highlight a different region
1226 despite not having left the currently highlighted region.
1227 Set mouse_face_overlay in the x_display_info. Avoid changing the
1228 mouse pointer shape when show_mouse_face has already done it, or
1229 there is no need. Handle mouse-face and help-echo in strings.
1230 (glyph_rect): New function.
1231 (w32_mouse_position): Use it to raise the threshold for mouse
1232 movement event generation.
1233 (w32_initialize_display_info): Initialize the x_display_info's
1234 mouse_face_overlay.
1235 (w32_set_vertical_scroll_bar): Don't clear a zero height
1236 or width area.
1237 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1238 a widget to zero height.
1239
3cf3436e 1240 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 1241 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
1242 equivalents in menu_items.
1243 (w32_menu_show): Don't overwrite an item's name with its key
1244 description in case the description is a multibyte string.
1245 (single_submenu): Some cleanup.
1246
1247 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1248 (postprocess_image): New function.
1249 (lookup_image): Call it for all image types except PostScript.
1250 (x_kill_gs_process): Call postprocess_image.
1251 (tiff_error_handler, tiff_warning_handler): New functions.
1252 (tiff_load): Install them as handlers.
1253 (x_kill_gs_process): Recognize if someone has cleared the image
1254 cache under us.
1255 (valid_image_p): Protect better against invalid image
1256 specifications. Previous code could signal an error.
1257 (Fx_hide_tip, Fshow_tip): Doc fix.
1258 (Fv_max_tooltip_size): New variable.
1259 (syns_of_xfns): DEFVAR_LISP it.
1260 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1261 window buffer to *tip* right after creating the frame. Set frame's
1262 window_width. Use a maximum tooltip size specified by
1263 Vx_max_tooltip_size, if that has valid contents.
1264 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1265 Make sure the tooltip is completely visible.
1266 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1267 (Fx_create_frame): Adjust the frame's height for presence
1268 of the tool bar before calling x_figure_window_size.
1269 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1270 when the window gets smaller.
1271 (x_set_foreground_color): Set frame's cursor_pixel.
1272 (x_set_foreground_color, x_set_background_color): Cleaned up.
1273 (x_set_font): Handle case of x_new_fontset returning the same name
1274 as before, although there was a change in fontsets.
1275
386ca361
MB
12762001-10-21 Miles Bader <miles@gnu.org>
1277
c2d53558 1278 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
1279 (Flogxor): Add usage: string to doc string.
1280 * charset.c (Fstring): Likewise.
1281 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1282 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1283
14ff1ee0
PJ
12842001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1285
03be2694
PJ
1286 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1287
1288 * alloc.c: Reindent DEFUNs with doc: keywords.
1289
1290 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1291
14ff1ee0
PJ
1292 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1293 keyword].
1294
71431a0e
GM
12952001-10-20 Gerd Moellmann <gerd@gnu.org>
1296
6aa97356 1297 * (Version 21.1 released.)
71431a0e 1298
39f624fa
PJ
12992001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1300
c2d53558 1301 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
1302
1303 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1304 0 because unused.
1305
1306 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
1307 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1308 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 1309
abcce93a
MB
13102001-10-20 Miles Bader <miles@gnu.org>
1311
1312 The following changes remove the glyph_row `inverse_p' field,
1313 which is never set anymore, due to other changes:
1314
1315 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1316 (reassert_line_highlight, change_line_highlight): Declarations removed.
1317 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
1318 (line_hash_code, row_equal_p, fake_current_matrices)
1319 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
1320 (update_frame_line, update_frame_line, update_frame_line):
1321 Don't use `inverse_p' field.
1322 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1323 change_line_highlight_hook.
1324 (XTreassert_line_highlight, x_change_line_highlight):
1325 Functions removed.
c2d53558 1326 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1327 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1328 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1329 `inverse_p' field.
c2d53558 1330 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1331 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1332 (w32_reassert_line_highlight, x_change_line_highlight):
1333 Functions removed.
1334 * w32console.c (reassert_line_highlight, change_line_highlight):
1335 Functions removed.
1336 (initialize_w32_display): Don't set reassert_line_highlight_hook
1337 or change_line_highlight_hook.
1338 (hl_mode): Function removed.
c2d53558
SM
1339 (reset_terminal_modes, set_terminal_modes, update_begin)
1340 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
1341 (clear_frame, ins_del_lines): Don't call it.
1342 * termhooks.h (reassert_line_highlight_hook)
1343 (change_line_highlight_hook): Declarations removed.
1344 * term.c (reassert_line_highlight_hook)
1345 (change_line_highlight_hook): Variables removed.
1346 (reassert_line_highlight, change_line_highlight): Functions removed.
1347 * msdos.c (IT_reassert_line_highlight)
1348 (IT_change_line_highlight): Functions removed.
1349 (internal_terminal_init): Don't set reassert_line_highlight_hook
1350 or change_line_highlight_hook.
1351 (highlight): Variable removed.
c2d53558 1352 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
1353 (IT_set_terminal_modes): Don't set or use it.
1354
1355 The following changes remove inverse-video support for terminals
1356 that use a `magic cookie' standout mode. Due to changes in the
1357 way mode-lines are displayed, such support no longer works
1358 anyway, and it's probable that almost no one uses such terminals
1359 anymore:
1360
1361 * term.c (standout_requested): Variable removed.
1362 (update_end, highlight_if_desired): Don't use it.
1363 (chars_wasted, copybuf): Variables removed.
1364 (write_standout_marker): Function removed.
c2d53558 1365 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
1366 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1367 Don't use `chars_wasted' or `copybuf'.
1368 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1369 Set `costs_set' to true.
1370 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1371 `chars_wasted'.
1372 (clear_end_of_line): Function removed.
1373 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1374 (clear_to_end): Call `clear_end_of_line' instead of
1375 `clear_end_of_line_raw'.
54800acb
MB
1376 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1377 (term_init): Don't set them.
1378 Turn off any standout/underline modes that require magic cookies.
c2d53558 1379 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
1380 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1381 Remove special processing for magic-cookie standout modes.
1382 (turn_off_face, turn_on_face): Remove special processing for
1383 underline magic-cookie glitch.
abcce93a 1384
0b5f679f
RS
13852001-10-19 Richard M. Stallman <rms@gnu.org>
1386
1387 * eval.c (syms_of_eval): Doc fixes.
1388
5a4a5bd4
GM
13892001-10-19 Gerd Moellmann <gerd@gnu.org>
1390
1391 * xdisp.c (redisplay_internal): Don't clear echo area if the
1392 mini-window is selected.
1393
79f1f96c
MB
13942001-10-19 Miles Bader <miles@gnu.org>
1395
b57c2708
MB
1396 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1397 doesn't take precedence if the affected property's value is nil.
1398
1399 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1400
79f1f96c
MB
1401 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1402 with fields and suggest using `forward-line' to avoid them.
1403 * editfns.c (Fline_beginning_position, Fline_end_position):
1404 Clarify documentation.
1405
ef879104
SM
14062001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1407
1408 * keymap.c (current_minor_maps): `override' only shadows its
1409 correspondent in minor-mode-map-alist, not the whole tail.
1410
97f4db8c
AI
14112001-10-18 Andrew Innes <andrewi@gnu.org>
1412
1413 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1414 optimization. The fontp->encoding array was not being initialized
1415 correctly when compiled with optimizations by MSVC.
1416
e6b70fd8
GM
14172001-10-18 Gerd Moellmann <gerd@gnu.org>
1418
30903479 1419 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 1420
0e804d38
AI
14212001-10-17 Andrew Innes <andrewi@gnu.org>
1422
1423 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1424
1425 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1426 font_info.charset field.
1427
1428 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1429 rather than working it out by calling w32_codepage_for_font for
1430 every glyph.
1431
66e5868a
AI
14322001-10-17 Andrew Innes <andrewi@gnu.org>
1433
1434 * w32term.c (w32_read_socket): Determine clipping rectangle for
1435 the entire frame, including areas covered by scrollbars and the
1436 menubar. This avoids internal arguments about whether a frame is
1437 fully obscured or not.
1438
15b00083
GM
14392001-10-17 Gerd Moellmann <gerd@gnu.org>
1440
23e8bd86
GM
1441 * xdisp.c (try_window_id): Undo last change. Give up if
1442 window ends in strings.
30903479 1443
9c6ba6d1 1444 * xdisp.c (try_window_id): Don't display lines after the window
30903479 1445 end if the rest of the window after the window end was already blank.
23e8bd86 1446
30903479 1447 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
1448 for the release of 21.1.
1449
30903479 1450 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 1451
945220bd
MB
14522001-10-17 Miles Bader <miles@gnu.org>
1453
1454 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1455 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1456 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1457 Change doc-string comments to `new style' [w/`doc:' keyword].
1458 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1459 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1460 out make-docfile.
1461
14242528
MB
14622001-10-16 Miles Bader <miles@gnu.org>
1463
1464 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1465
3ddf952f
GM
14662001-10-16 Gerd Moellmann <gerd@gnu.org>
1467
1468 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1469 *scratch*.
1470
f3fbd155
KR
14712001-10-16 Ken Raeburn <raeburn@gnu.org>
1472
1473 Avoid the assumption that car and cdr slots of cons cells are
1474 addressable lvalues; this allows for easier experimentation with
1475 other lisp implementations that may not permit such accesses for
1476 various reasons. Not quite complete -- buffer.c still needs some
1477 work, and w32/mac files need rechecking -- so compile-time
1478 enforcement is left disabled for now.
1479
1480 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 1481 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
1482 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1483 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1484 (XSETCAR, XSETCDR): New macros.
1485 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1486 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1487 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1488 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1489 XSETCDR.
1490 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
1491 * buffer.c (record_buffer, Fbury_buffer)
1492 (swap_out_buffer_local_variables, recenter_overlay_lists)
1493 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
1494 fields of a cons cell respectively.
1495 * callint.c (quotify_args, Fcall_interactively): Likewise.
1496 * ccl.c (Fregister_code_conversion_map): Likewise.
1497 * coding.c (detect_coding_system): Likewise.
1498 * composite.c (get_composition_id, make_composition_value_copy):
1499 Likewise.
30903479
SM
1500 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1501 (swap_in_symval_forwarding, set_internal, Fset_default)
1502 (Fmake_variable_buffer_local, Fmake_local_variable)
1503 (Fmake_variable_frame_local): Likewise.
f3fbd155 1504 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 1505 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 1506 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
1507 * minibuf.c (get_minibuffer): Likewise.
1508 * search.c (Fmatch_data): Likewise.
1509 * textprop.c (extend_property_ranges): Likewise.
c2d53558 1510 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
1511 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1512 Likewise.
1513 * w32term.c (x_delete_display): Likewise.
1514 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1515 Likewise.
c2d53558 1516 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 1517 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 1518 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
1519 (Fread_file_name): Use XSETCAR.
1520 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1521 CHECK_NUMBER_CDR.
1522 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1523 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1524 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1525 CHECK_NUMBER_CDR.
1526 * keyboard.c (read_char): Alter list traversal to avoid taking the
1527 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1528 (parse_menu_item): Use XSETCAR and XSETCDR.
1529 (reach_char_x_menu_prompt): Use XSETCAR.
1530 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1531 (Fcommand_execute): Use XSETCDR.
1532 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1533 (openp): Change list traversal to avoid using XCAR as lvalue.
1534 (read_list): Use XSETCDR.
1535 * process.c (wait_reading_process_input): Change wait_for_cell
1536 handling to avoid taking addresses of cons cell slots.
30903479
SM
1537 * xselect.c (x_own_selection, x_handle_selection_clear)
1538 (x_clear_frame_selections): Use XSETCDR.
1539 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1540 (x_handle_property_notify, x_get_foreign_selection)
1541 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 1542
502150e5
PJ
15432001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1544
018ba359
PJ
1545 * buffer.c: Put doc strings in comments.
1546
30903479 1547 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 1548
b56ba8de
SS
15492001-10-15 Sam Steingold <sds@gnu.org>
1550
1551 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1552
6a0b793a
PJ
15532001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1554
30903479
SM
1555 * process.c (process-inherit-coding-system-flag)
1556 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
1557 in comment.
1558
a1f17501 1559 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 1560 arguments. Put doc strings in comments.
a65da641
PJ
1561
1562 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 1563
aa601ad0
GM
15642001-10-15 Gerd Moellmann <gerd@gnu.org>
1565
30903479 1566 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 1567
aa601ad0
GM
1568 * window.c (select_window_1): Unfreeze window start. Remove a
1569 doubled test for WINDOW being live.
1570
288148a1
PJ
15712001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1572
dd8d1e71
PJ
1573 * fns.c (Fmapconcat): Fix typo in a doc string.
1574
288148a1
PJ
1575 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1576
9f5eb4a3
GM
15772001-10-15 Gerd Moellmann <gerd@gnu.org>
1578
1579 * xterm.c (x_draw_glyph_string): Restore clipping after
1580 drawing box.
1581
dbae44c8
PJ
15822001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1583
30903479 1584 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 1585
0c88c937
SM
15862001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1587
56378db4
GM
1588 * indent.c (skip_invisible): Use new retval of
1589 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 1590
845e4cf4
SM
1591 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1592 If a parent is reached and noinherit is set, exit immediately.
1593 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1594
0c88c937
SM
1595 * s/ms-w32.h (EXEC_SUFFIXES):
1596 * s/msdos.h (EXEC_SUFFIXES):
1597 * process.h (EXEC_SUFFIXES): Remove.
1598
1599 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1600 (decode_suffixes): Remove.
1601
1602 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
1603 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1604 (invisible_ellipsis_p): Remove.
0c88c937
SM
1605
1606 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1607 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1608 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
1609 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1610 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 1611
d19be8a9
PJ
16122001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1613
04d7d066
PJ
1614 * lisp.h (Ftop_level): Add prototype.
1615
d624284c
PJ
1616 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1617 (XTread_socket): Improve style of comments to follow other
1618 comments.
1619
a87414f9
PJ
1620 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1621 is already prototyped in included lisp.h).
1622
d19be8a9
PJ
1623 * frame.c (Fset_mouse_position): Improve style of comment to
1624 follow other comments.
1625 (Fset_mouse_pixel_position): Improve style of comment to follow
1626 other comments.
1627 (Fmake_frame_visible): Doc fix and typo in comment.
1628 (Fmake_frame_invisible): Doc fix and typo in comment.
1629 (Ficonify_frame): Fix typo in comment.
1630
c061c855
GM
16312001-10-14 Gerd Moellmann <gerd@gnu.org>
1632
37f6b5b6 1633 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 1634 * term.c, alloc.c: Put doc strings in comments.
c061c855 1635
e641b454
GM
16362001-10-13 Gerd Moellmann <gerd@gnu.org>
1637
1638 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1639 Provide definitions for doc strings in comments.
1640
1641 * fns.c: Put doc strings in comments.
1642
51724e26
EZ
16432001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1644
1645 * dired.c (file_name_completion): Ignore a candidate directory if
1646 it matches an element in completion-ignored-extensions that ends
1647 in a slash.
1648 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1649 feature in the doc string.
1650 (Ffile_name_completion): Ditto.
1651
be5fc59b
SM
16522001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1653
5a1373f3
SM
1654 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1655
1656 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1657
1658 * lisp.h (Fprovide): Update prototype.
1659 (Ffeaturep, invisible_p): Remove.
1660
bbc4a3d3 1661 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
1662 (DOLIST, LOOP_PROPVAL): New macros.
1663 (invisible_p, invisible_ellipsis_p): Use them.
1664 (invisible_noellipsis_p): New function.
1665 (syms_of_xdisp): Use empty_string.
1666
1667 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1668
1669 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1670 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1671
1672 * print.c (Fwith_output_to_temp_buffer): Align with
1673 internal_with_output_to_temp_buffer.
1674 (print_preprocess): Use traverse_intervals_noorder.
1675 (print_object): Update call to traverse_intervals.
1676
1677 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1678 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1679
1680 * intervals.c (traverse_intervals_noorder): New function.
1681 (search_for_interval, count_intervals): Use it.
1682 (traverse_intervals): Use less stack space and drop `depth' arg.
1683
1684 * fns.c (Ffeaturep): Add new `subfeature' arg.
1685 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1686 (Qsubfeatures): New var.
1687 (syms_of_fns): Initialize it.
1688
026f408d
SM
1689 * keymap.c (Fkey_description): Use empty_string.
1690 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1691 (syms_of_keymap): Setup inheritance between maps.
1692 Don't export Sdescribe_bindings_internal any more.
1693
be5fc59b
SM
1694 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1695
3365175e
GM
16962001-10-12 Gerd Moellmann <gerd@gnu.org>
1697
1698 * xterm.c (notice_overwritten_cursor): Renamed from
1699 note_overwritten_text_cursor. Rewritten to take glyph widths into
1700 account.
1701
2ab7765c
EZ
17022001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1703
1704 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1705 multi-line strings without a trailing "\n\".
1706
311346bb
PJ
17072001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1708
1709 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1710 defined.
1711
2168e04d
SM
17122001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1713
026f408d
SM
1714 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1715
c0ec53ad
SM
1716 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1717 * w32proc.c (sys_spawnve):
1718 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1719 * w32.c (check_windows_init_file):
1720 * sound.c (Fplay_sound):
026f408d 1721 * emacs.c (init_cmdargs):
c0ec53ad
SM
1722 * process.c (Fstart_process): Update calls to openp.
1723
1724 * callproc.c (Vexec_suffixes): New var.
1725 (Fcall_process): Update call to openp.
1726 (decode_suffixes): New function.
1727 (syms_of_callproc): Init exec-suffixes.
1728
1729 * lread.c (Vload_suffixes, default_suffixes): New vars.
1730 (openp): Take a lisp list of suffixes.
1731 Check for file-name-handlers even if the file was absolute already.
1732 (syms_of_lread): Declare load-suffixes.
1733 (Fload): Fix up call to openp.
1734 Don't bother checking for file-name-handler at the very beginning.
1735
f6333468
SM
1736 * keymap.h (Fcopy_keymap): Don't export.
1737
1738 * lisp.h (empty_string): Declare.
c0ec53ad
SM
1739 (Vload_suffixes, Vexec_suffixes): Declare.
1740 (openp): Update prototype.
f6333468
SM
1741
1742 * emacs.c (empty_string): New var.
1743 (syms_of_emacs): Initialize it.
1744
1745 * search.c (wordify): Use it.
1746
1747 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1748 selected window if it's not displayed there. Handle the case
1749 when the window is dedicated.
1750 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1751
1752 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1753
2168e04d
SM
1754 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1755 Remove left_ok and right_ok.
1756 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1757 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1758 new meaning of b_property.
1759
1760 * syntax.c (update_syntax_table): Simplify.
1761 (Fforward_comment): Don't skip quoted chars when going backward.
1762
13d95cc0
GM
17632001-10-11 Gerd Moellmann <gerd@gnu.org>
1764
beb0990f
GM
1765 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1766 in case I is of some unsigned type, in which case
1767 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1768 comparison becomes bogus.
1769
cb938d46
GM
1770 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1771 (Fuser_full_name): Fix bug treating a float as a fixnum.
1772
1773 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1774
1775 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 1776
13d95cc0
GM
1777 * lisp.h (circular_list_error): Add prototype.
1778
1779 * data.c (Qcircular_list): New variable.
1780 (circular_list_error): New function.
1781 (syms_of_data): Initialize it Qcircular_list.
1782
e35f6ff7
SM
17832001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1784
1785 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1786 casefiddle.c, buffer.c: Include keymap.h.
1787
619632ac
GM
17882001-10-10 Gerd Moellmann <gerd@gnu.org>
1789
1790 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1791 options. From Dave Love <d.love@dl.ac.uk>.
1792
5e5388f6
GM
17932001-10-09 Gerd Moellmann <gerd@gnu.org>
1794
1795 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1796 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1797
14a3dff7
GM
1798 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1799 unsigned char.
1800 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 1801
76ba8daf
AI
18022001-10-08 Andrew Innes <andrewi@gnu.org>
1803
1804 * lisp.h [max]: Undef min and max before redefining them.
1805
1806 * w32gui.h: Do not undef min and max.
1807
1808 * w32heap.h: Do not undef min and max.
1809
1810 * s/ms-w32.h: Do not undef min and max.
1811
166253cb
SM
18122001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1813
1814 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1815
0c4d9527
SS
18162001-10-08 Sam Steingold <sds@gnu.org>
1817
1818 * keymap.c (current-active-maps): Quote newlines (compilation error).
1819
14bfa771
EZ
18202001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1821
1822 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1823 bindings.elc, since otherwise doc strings in bindings.el get wrong
1824 offsets in etc/DOC.
1825
bdb7aa47
SM
18262001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1827
9985827f
SM
1828 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1829
1830 * keyboard.h (map_prompt): Remove.
1831
1832 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 1833 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 1834
bdb7aa47
SM
1835 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1836
1837 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1838
1839 * keyboard.c (map_prompt): Remove.
1840 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1841 Use Fkeymap_prompt.
1842
1843 * keymap.h: New file. Extracted from lisp.h.
1844
9985827f
SM
1845 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1846 (accessible_keymaps_1): New function.
1847 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1848 (Fwhere_is_internal): Use Fcurrent_active_maps.
1849 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1850 Insert in current buffer rather than standard-output.
1851 Don't call `help-mode'. Export to elisp.
1852 (describe_buffer_bindings): New wrapper.
1853 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
1854 and Sdescribe_buffer_bindings.
1855
402c9a51
GM
18562001-10-08 Gerd Moellmann <gerd@gnu.org>
1857
9985827f 1858 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
1859 Remove code setting signal handler.
1860
9985827f 1861 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
1862 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1863
3fe81fdf
PJ
18642001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1865
1866 * keyboard.c: Don't define min/max.
1867
55fa7820
GM
18682001-10-08 Gerd Moellmann <gerd@gnu.org>
1869
9985827f 1870 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 1871 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 1872 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 1873 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 1874 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
1875 Don't define min/max.
1876
1877 * lisp.h (min, max): New macros.
1878
55fa7820
GM
1879 * puresize.h (BASE_PURESIZE): Increase to 725000.
1880
1aad31e4
PJ
18812001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1882
9180dc8c
PJ
1883 * xfaces.c (free_frame_menubar): Add prototype.
1884
01f67d2c
PJ
1885 * lisp.h (init_window): Add prototype.
1886
1887 * editfns.c: Include ctype.h.
1888
1889 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 1890 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
1891 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1892 variable `sb'.
1893
5f351ff1
PJ
1894 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1895 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1896 `popup_activated_flag' and `title'.
1897
479dfe87
PJ
1898 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1899
dff49fc8
PJ
1900 * emacs.c (main): Remove extra `;'.
1901
248ac615
PJ
1902 * atimer.h (struct atimer): Fix typos in a comment.
1903
1904 * atimer.c: Fix typo.
1905
af232c7d
PJ
1906 * Makefile.in: Fix typo.
1907
1908 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 1909
d876f455
MB
19102001-10-07 Miles Bader <miles@gnu.org>
1911
1912 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1913
0037e2f2
KR
19142001-10-07 Ken Raeburn <raeburn@gnu.org>
1915
b056f36d
KR
1916 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1917 Lisp_Object.
1918
0037e2f2
KR
1919 * lisp.h (Ffield_end): Declare.
1920
1a4372ef
GM
19212001-10-07 Gerd Moellmann <gerd@gnu.org>
1922
a4a74e8c
GM
1923 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1924
1925 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1926
1927 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1928
1929 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1930
1a4372ef
GM
1931 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1932 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1933
1934 * alloc.c (inhibit_garbage_collection): Simplify.
1935 (Fmemory_use_counts): Ditto.
1936
9985827f 1937 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
1938 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1939 most-negative-fixnum.
1940
9985827f 1941 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
1942 (FIXNUM_OVERFLOW_P): New macros.
1943
4650e362
MB
19442001-10-06 Miles Bader <miles@gnu.org>
1945
1946 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1947 scroll_bar_bottom_shadow_pixel fields.
1948 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1949 for the shadows, and tell the toolkit about them if we succeed.
1950 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1951 Free scroll-bar shadow colors.
1952 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1953 Free scroll-bar shadow colors when the background color changes.
1954 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1955 Initialize scroll-bar shadow-color fields.
1956
ace64e0a
GM
19572001-10-05 Gerd Moellmann <gerd@gnu.org>
1958
1959 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1960
ec66bdc7
MB
19612001-10-05 Miles Bader <miles@gnu.org>
1962
9985827f
SM
1963 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1964 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 1965 New functions (were in simple.el).
9985827f 1966 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
1967 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1968 (syms_of_minibuf): Initialize them.
1969
a0fb4492
GM
19702001-10-05 Gerd Moellmann <gerd@gnu.org>
1971
1972 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1973 (tiff_load): Install them as error and warning handler.
1974
0bcf87c1
AI
19752001-10-04 Andrew Innes <andrewi@gnu.org>
1976
1977 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1978 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 1979 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
1980 (x_to_w32_charset): Handle private format for unknown charsets.
1981 Handle wildcards in charset spec, by ignoring them.
1982 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1983 "*-" prefix from charset.
1984 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1985 handle the truncated font spec form constructed by font_list_1, so
1986 that we correctly identify the charset fields. Don't remove "*-"
1987 prefix from charset.
1988 (w32_list_synthesized_fonts): Fix argument to alloca.
1989
c89e4bc5
GM
19902001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1991
1992 * window.h (MINI_WINDOW_P): Use NILP.
1993
1994 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
1995
1996 * termhooks.h (struct input_event): Use proper type for `kind'.
1997
19982001-10-04 Gerd Moellmann <gerd@gnu.org>
1999
2000 This handles unknown keysyms better than before. For example,
2001 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2002 Emacs formerly completely ignored F5. With the change, it derives
2003 a key symbol from the name of the X keysym, `ccaron' in this case.
2004 Reported by Martin Buchholz.
2005
2006 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2007 unknown keysyms.
2008
2009 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2010 that EVENT->code isn't a function key, use the keysym's name.
2011
20122001-10-04 Gerd Moellmann <gerd@gnu.org>
2013
2014 FOREACH is a macro that should make it easier to loop over Lisp
2015 lists with checks for cycles and proper lists.
2016
2017 * lisp.h (LIST_END_P, FOREACH): New macros.
2018
20192001-10-04 Gerd Moellmann <gerd@gnu.org>
2020
2021 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2022 called for a lost connection. Prevent dumping core in this case.
2023 Instead print the X error, and exit. On user request.
2024
2025 * xterm.c (error_msg): New variable.
2026 (x_fatal_error_signal): New function.
2027 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2028 as fatal_error_signal_hook around the call to XtCloseDisplay.
2029
2030 * emacs.c (fatal_error_signal_hook): New variable.
2031 (fatal_error_signal): Call that function.
2032
20332001-10-04 Gerd Moellmann <gerd@gnu.org>
2034
2035 With this, Emacs prints how much pure storage it will
2036 approximately need in case pure storage overflows while dumping.
2037
2038 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2039 New variables.
2040 (init_alloc_once): Initialize new variables.
2041 (PURE_POINTER_P): Use new variables.
2042 (pure_alloc): If pure storage overflows, allocate from the heap.
2043 (check_pure_size): New function.
2044 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2045
2046 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2047 (check_pure_size): Add prototype.
2048
2049 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2050
20512001-10-04 Gerd Moellmann <gerd@gnu.org>
2052
2053 This adds a post-gc-hook that's run with GC inhibited.
2054 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2055
2056 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2057 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2058 (Fgarbage_collect): Run post-gc-hook.
2059
20602001-10-04 Gerd Moellmann <gerd@gnu.org>
2061
2062 This adds `defvaralias' and `indirect-variable'. Changes not
2063 directly related to this feature are there to gain the same
2064 performance again as before variable aliases.
2065
2066 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2067 code to get and set symbol values, to take defvaralias into account.
2068
2069 (Note: the new `constant' bit-flag in symbols would make it
2070 possible to define arbitrary read-only variables, e.g. with
2071 `defconst'.)
2072
2073 Documentation is in lispref/variables.texi. Added to NEWS.
2074
2075 * lisp.h (enum symbol_interned): New enumeration.
2076 (struct Lisp_Symbol): Remove member `obarray', add
2077 `indirect_variable', `constant', and `interned'.
2078 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2079 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2080 (indirect_variable): Add prototype.
2081
2082 * print.c (print_preprocess, print_object): Test internedness of
2083 symbols differently.
2084
2085 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2086 bit-fields.
2087 (init_obarray): Likewise for t and nil.
2088
2089 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2090 (Fdefvaralias): New function.
2091 (specbind): Simplify the test if symbol is a constant.
2092 (syms_of_eval): Defsubr Fdefvaralias.
2093
2094 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2095 (Qcyclic_variable_indirection): New variable.
2096 (Fkeywordp): Check for internedness differently.
2097 (Fmakunbound): Simplify the test if symbol is a constant.
2098 (indirect_variable, Findirect_variable): New functions.
2099 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2100 aliased symbol.
2101 (let_shadows_buffer_binding_p): Check for variable aliases.
2102 (set_internal): Simplify the test if SYMBOL is a constant.
2103 If SYMBOL has a buffer-local value and is an alias, use the aliased
2104 symbol instead.
2105 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2106 Sindirect_variable.
2107
2108 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2109 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2110 set directly.
2111
2112 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2113
2114 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2115 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2116 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2117
ab952a4f
GM
21182001-10-04 Gerd Moellmann <gerd@gnu.org>
2119
2120 * Branch for 21.1.
b56ba8de 2121
ba88ff28
MB
21222001-10-03 Miles Bader <miles@gnu.org>
2123
2124 * callproc.c (syms_of_callproc): Explicitly state in the
2125 documentation for `process-environment' that earlier entries take
2126 precedence over later ones.
2127
ae1a9581
MB
21282001-10-02 Miles Bader <miles@gnu.org>
2129
2130 * textprop.c (Fnext_char_property_change)
2131 (Fprevious_char_property_change): Remove reference to non-existant
2132 argument OBJECT from doc-string.
2133
257e3f57
GM
21342001-10-01 Gerd Moellmann <gerd@gnu.org>
2135
2136 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2137 (try_window_id): Skip back over lines ending in a newline from a
2138 string.
2139
2140 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2141 New bit flag
2142
c1f29759
RS
21432001-10-01 Richard M. Stallman <rms@gnu.org>
2144
2145 * search.c (Freplace_match): Doc fix.
2146
c30dce3d
AI
21472001-09-28 Andrew Innes <andrewi@gnu.org>
2148
2149 * w32menu.c (set_frame_menubar): Take into account that
2150 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2151 <raeburn@gnu.org>.
2152
03be5931
EZ
21532001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2154
2155 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2156
75bec752
PJ
21572001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2158
2159 * s/gnu-linux.h: Fix a typo in comment.
2160
83100e0a
AS
21612001-09-28 Andreas Schwab <schwab@suse.de>
2162
2163 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2164 nocombreloc, in case -z combreloc is the default.
2165
a74b48cf
GM
21662001-09-28 Gerd Moellmann <gerd@gnu.org>
2167
2168 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2169 really going on here.
2170
09c4719e
SM
21712001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2172
2173 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2174
f7d5d963
EZ
21752001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2176
2177 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2178 utf-8, menu-bar, and latin-N.
2179 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2180 unconditionally now.
2181 (lisp): Add latin-N, since they are preloaded.
2182
9240e746
GM
21832001-09-27 Gerd Moellmann <gerd@gnu.org>
2184
14531065
GM
2185 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2186 to the left. Some cleanup.
2187
9240e746
GM
2188 * xdisp.c (display_mode_element): One more case where a string's
2189 multibyteness should be used for display.
2190
edd1e654
GM
21912001-09-26 Gerd Moellmann <gerd@gnu.org>
2192
b02439c8
GM
2193 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2194 reading at EOF.
2195
032906b1 2196 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 2197 of the only temporarily set echoing flag for deciding when
032906b1
GM
2198 the cancel echoing.
2199
2200 * keyboard.c (echo_kboard): Make externally visible.
2201
2202 * lisp.h (echo_kboard): Declare extern.
2203
cb617e7c 2204 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 2205 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
2206 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2207 this round of redisplay if make_cursor_line_fully_visible fails.
2208 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 2209 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
2210
2211 * dispextern.h (required_matrix_width, required_matrix_height):
2212 Add prototypes.
2213
09c4719e
SM
2214 * dispnew.c (required_matrix_width, required_matrix_height):
2215 New functions.
cb617e7c 2216 (allocate_matrices_for_window_redisplay)
09c4719e
SM
2217 (allocate_matrices_for_frame_redisplay: Use them.
2218 Remove parameters CH_DIM.
cb617e7c 2219
edd1e654
GM
2220 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2221 and selected_window to the frame of the window whose mode-lines
2222 are displayed, and to the window itself.
2223 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 2224 here.
edd1e654 2225
924b604c
GM
22262001-09-25 Gerd Moellmann <gerd@gnu.org>
2227
daba7643
GM
2228 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2229 the image cache under us.
2230
b7a22712 2231 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 2232 with a string value, use that string's multibyteness for displaying.
b7a22712 2233
ad648212
GM
2234 * keyboard.c (read_char): Don't clear a message for a switch-frame
2235 event. From Stefan Monnier <monnier@cs.yale.edu>.
2236
9f8531e5
GM
2237 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2238 version for after 21.1.
2239
2240 * xdisp.c (row_containing_pos): Make externally visible.
2241
2242 * dispextern.h (row_containing_pos): Add prototype.
2243
924b604c
GM
2244 * process.c (send_process): Disable composition if from_byte < 0.
2245 From Kenichi Handa <handa@etl.go.jp>.
2246
6f3f0db4
GM
22472001-09-24 Gerd Moellmann <gerd@gnu.org>
2248
c69c0ebc
GM
2249 * xterm.c (refreshicon): Function removed.
2250
d1182bc4
GM
2251 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2252
2253 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2254
2255 * xterm.c (toplevel): Remove includes in #if 0.
2256
6f3f0db4
GM
2257 * process.c (sigchld_handler) [LINUX]: Don't return from
2258 the signal handler at the end of the loop.
2259
59957f85
GM
22602001-09-21 Gerd Moellmann <gerd@gnu.org>
2261
09c4719e
SM
2262 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2263 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 2264
a0528984
EZ
22652001-09-21 Markus Rost <rost@math.ohio-state.edu>
2266
2267 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2268
db92b288
GM
22692001-09-20 Gerd Moellmann <gerd@gnu.org>
2270
3fed8ad5
GM
2271 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2272 since this function can be called during GC.
2273
db92b288
GM
2274 * callproc.c (Fcall_process): Handle errors from pipe(2).
2275 (child_setup): Delete code in #ifdef vipc.
2276
7121b85a
GM
22772001-09-19 Gerd Moellmann <gerd@gnu.org>
2278
72f62cb5
GM
2279 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2280 (display_mode_element): Display the string from decode_mode_spec
2281 depending on its multibyteness.
2282
a2697022
GM
2283 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2284
7121b85a
GM
2285 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2286
bfc97351
GM
22872001-09-18 Gerd Moellmann <gerd@gnu.org>
2288
c9063433
GM
2289 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2290 recursive_edit_unwind.
2291 (recursive_edit_unwind): Set kboard state according to
2292 SINGLE-KBOARD.
2293
3fbdba3e
GM
2294 * buffer.c (modify_overlay): Don't do nothing if START == END;
2295 This can still be a modification, for example when an overlay has
2296 a before-string or after-string.
2297 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2298 an overlay with before-string or after-string.
2299
1270031d
GM
2300 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2301 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2302
bfc97351
GM
2303 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2304 first_unchanged_at_end_row is in front of
2305 last_unchanged_at_beg_row. This code should be removed after the
2306 release of 21.1.
2307
d8a973aa
GM
23082001-09-17 Gerd Moellmann <gerd@gnu.org>
2309
e18c8b8d
GM
2310 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2311 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2312
d8a973aa
GM
2313 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2314 versions >= 2.95.
2315
ed7d6ba4
EZ
23162001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2317
2318 * dired.c (Ffile_attributes): Doc fix.
2319
551629f9
GM
23202001-09-14 Gerd Moellmann <gerd@gnu.org>
2321
2322 * fileio.c (Ffile_symlink_p): Fix last change.
2323
2324 * filelock.c (current_lock_owner): Fix last change.
2325
4c8c7926
GM
23262001-09-13 Gerd Moellmann <gerd@gnu.org>
2327
620c4704
GM
2328 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2329 take that to mean that the buffer is too small.
2330
81c3310d
GM
2331 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2332 that to mean that the buffer is too small.
2333
06fd3792
GM
2334 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2335 current buffer's multibyteness when discarding the iterator's
2336 stack.
2337
4c8c7926
GM
2338 * xfns.c (Fx_window_property): Handle case that property gets
2339 deleted between the two calls to XGetWindowProperty.
2340
9a72e4c1
GM
23412001-09-11 Gerd Moellmann <gerd@gnu.org>
2342
bd819d14 2343 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 2344
a41edd99
GM
2345 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2346 in addition to read-only.
2347
2348 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2349 to t in addition to read-only.
2350
2351 * lisp.h (Qinhibit_modification_hooks): Declare.
2352
2353 * insdel.c (Qinhibit_modification_hooks): New variable.
2354 (syms_of_insdel): Initialize and staticpro it.
2355
d4881c6a
GM
2356 * textprop.c (verify_interval_modification): Don't run
2357 modification-hooks if inhibit_modification_hooks.
2358
2359 * dispnew.c (set_window_cursor_after_update): Fix code
2360 finding glyph row containing cursor when cursor_in_echo_area
2361 is >= 0.
2362
9a72e4c1
GM
2363 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2364 (add_to_log): Use bcopy instead of strcpy.
2365 (init_from_display_pos): Use an explicit loop over bytes in
2366 overlay strings instead of calling index.
2367
f4a374a1
GM
23682001-09-10 Gerd Moellmann <gerd@gnu.org>
2369
300e57bd
GM
2370 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2371
2372 * dispnew.c (direct_output_for_insert): Don't change IT's
2373 stop_charpos to something in front of its current position.
2374
f4a374a1
GM
2375 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2376 `format'.
2377
7e4cbc91
RS
23782001-09-10 Richard M. Stallman <rms@gnu.org>
2379
2380 * frame.c (Fmouse_position): Doc fix.
2381
6afad91e
GM
23822001-09-07 Gerd Moellmann <gerd@gnu.org>
2383
2384 * xdisp.c (init_from_display_pos): Don't compare the result
2385 of calling index with NULL.
2386
f76e0368
GM
23872001-09-06 Gerd Moellmann <gerd@gnu.org>
2388
2389 * xfns.c (x_set_background_color): Don't change the colors
2390 of the X window of scroll bar widgets.
2391
9ead1b60
AI
23922001-09-05 Andrew Innes <andrewi@gnu.org>
2393
2394 * w32fns.c (w32_createwindow): Undo last change.
2395
c3b497b3
GM
23962001-09-05 Gerd Moellmann <gerd@gnu.org>
2397
08e1d6df
GM
2398 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2399
c3b497b3
GM
2400 * xdisp.c (string_buffer_position): Use *single_char_property*
2401 functions instead of the *single_property* functions.
b56ba8de 2402
8f860180
AI
24032001-09-04 Andrew Innes <andrewi@gnu.org>
2404
9a72e4c1
GM
2405 * w32term.c (w32_read_socket): Add more information to debugging
2406 output.
8f860180
AI
2407
2408 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2409 from Emacs frames, so that calls to GetClipBox in w32term.c
2410 correctly report when part of a frame is visible (including
2411 scrollbars, etc). This prevents repeated redrawing of frames when
2412 only a scrollbar is visible.
2413 (w32_wnd_proc): Add more frame information to debugging output.
2414
2ee1aa00
SM
24152001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2416
2417 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2418
e3b22517
GM
24192001-09-03 Gerd Moellmann <gerd@gnu.org>
2420
7e376260
GM
2421 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2422 help-echo for a string which doesn't have help-echo itself, use
2423 get-char-property to obtain the help-echo from the string's buffer
2424 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2425 have mouse-face, look ``under'' the string for mouse-face from an
2426 overlay.
2427 (fast_find_position): Add parameter STOP. In the final row, stop
2428 before glyphs having STOP as object. Don't consider glyphs that
2429 are not from a buffer.
2430
e3b22517
GM
2431 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2432
9a249bba
EZ
24332001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2434
2435 * fns.c (Fmd5): Doc fix.
2436
c9979669
GM
24372001-08-31 Gerd Moellmann <gerd@gnu.org>
2438
2439 * composite.c (update_compositions): Do nothing if
2440 inhibit-modification-hooks is set.
2441
9584e63a
GM
24422001-08-30 Gerd Moellmann <gerd@gnu.org>
2443
986ec8f2 2444 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 2445 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
2446 glyph matrices etc. in a core dump.
2447
92a25631
GM
2448 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2449 (syms_of_xdisp): Initialize them.
2450 (handle_single_display_prop): Don't change point, bind `object',
2451 `position', and `buffer-position' instead to the object having the
2ee1aa00 2452 `display' property, position in the object and position in the buffer.
92a25631 2453
9584e63a
GM
2454 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2455 of the buffer if REPLACE is non-nil.
2456
d38633a3
GM
24572001-08-29 Gerd Moellmann <gerd@gnu.org>
2458
2459 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2460
f4fccc1e
EZ
24612001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2462
2463 * w32term.c (x_set_glyph_string_background_width)
2464 (show_mouse_face): Track the last changes in xterm.c.
2465
eaaa65b0
GM
24662001-08-28 Gerd Moellmann <gerd@gnu.org>
2467
7b0870b2
GM
2468 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2469 string's background width so that multi-line mouse-face is drawn
2470 to the right edge of the window.
2471 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2472 glyphs.
2473
6b6e2422 2474 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 2475 before inserting/writing glyphs.
6b6e2422 2476
eaaa65b0
GM
2477 * xdisp.c (display_mode_element): Use string_byte_to_char to
2478 determine character positions in strings, use chars_in_text
2479 instead of strwidth.
2480 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2481 a matrix as parameter; this is easier to use from GDB.
2482
9ad62cf8
MB
24832001-08-28 Miles Bader <miles@gnu.org>
2484
2ee1aa00
SM
2485 * textprop.c (Fprevious_single_char_property_change)
2486 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 2487
32171635
GM
24882001-08-27 Gerd Moellmann <gerd@gnu.org>
2489
47d57b22
GM
2490 * fileio.c (Finsert_file_contents): Allocate, restore, and
2491 free composition data in the case of REPLACE not being nil.
2492
2493 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2494 there exist overlay strings with newlines at POS.
2495 (text_outside_line_unchanged_p): Return 0 if changes start at
2496 START and overlays exist at START. Likewise for END.
2497 (try_window_id): Give up if init_to_row_end returns 0.
2498
32171635
GM
2499 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2500 unconditionally.
2501
e1249666
GM
25022001-08-24 Gerd Moellmann <gerd@gnu.org>
2503
33954c45
GM
2504 * keymap.c (access_keymap): Return the cdr of the binding of
2505 a generic character instead of its definition (KEY . BINDING).
2506
e1249666
GM
2507 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2508 to 0 also in the REPLACE case.
2509
fb4c6c96
AC
25102001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2511
2512 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2513 open to determine whether file is readable (as for DOS_NT).
2514
59ecf80b
GM
25152001-08-23 Gerd Moellmann <gerd@gnu.org>
2516
2517 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2518 coding.type is coding_type_no_conversion or coding_type_raw_text,
2519 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2520 non-nil instead of just setting enable_multibyte_characters in the
2521 buffer to nil.
2522
40e33037
GM
25232001-08-22 Gerd Moellmann <gerd@gnu.org>
2524
374388c3
GM
2525 * dispextern.h (struct face_cache): Add member
2526 menu_face_changed_p.
2527
2528 * xfaces.c (menu_face_changed_default): New variable.
2529 (menu_face_changed_count): Variable removed.
2530 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2531 the menu_face_changed_default flag, otherwise set the FRAME's
2532 menu_face_changed_p flag if the `menu' face has been changed.
2533 Prevent calling set_font_frame_param if FRAME is t.
2534 (make_face_cache): Initialize cache's menu_face_changed_p
2535 from menu_face_changed_default.
2536 (realize_basic_faces): Look into the frame's face cache to
2537 determine if the menu appearance needs updating.
2538
40e33037
GM
2539 * keymap.c (access_keymap): Fix last change to not consider
2540 IDX when it has modifiers.
2541
859ea4b8
GM
25422001-08-21 Gerd Moellmann <gerd@gnu.org>
2543
2544 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2545 . BINDING) exists, where GENERIC-CHAR is the generic character of
2546 the charset of IDX, return BINDING unless there exists a binding
2547 for IDX itself.
2548
e8660d73
GM
25492001-08-16 Gerd Moellmann <gerd@gnu.org>
2550
cca1b1d7
GM
2551 * xrdb.c (SYSV): Don't define on Solaris 2.
2552 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2553
e8660d73 2554 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 2555 of the screen line, not text line, containing IT's current position.
e8660d73 2556
93aba6fc
GM
25572001-08-15 Gerd Moellmann <gerd@gnu.org>
2558
288d4e06
GM
2559 * window.c (window_scroll_pixel_based): Don't recenter if
2560 PT is partially visible in the window.
2561
3452efc2
SM
2562 * xterm.c (expose_window_tree, expose_window, expose_line):
2563 Return 1 when overwriting mouse-face.
82f053ab
GM
2564 (expose_frame): If mouse-face was overwritten, redo it.
2565
93aba6fc
GM
2566 * xfaces.c (x_update_menu_appearance): Don't call
2567 set_frame_menubar, let the next redisplay do it.
2568
858a55c1
AI
25692001-08-14 Andrew Innes <andrewi@gnu.org>
2570
2571 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2572 drawing glyph string.
2573
3a990b67
EZ
25742001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2575
2576 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2577 running HI-UX/MPP.
2578
04386463
GM
25792001-08-14 Gerd Moellmann <gerd@gnu.org>
2580
2581 * xfaces.c (x_update_menu_appearance): Save and restore value of
2582 interrupt_input_blocked.
2583
3e6385a4
GM
25842001-08-13 Gerd Moellmann <gerd@gnu.org>
2585
b0e619b4
GM
2586 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2587 a line start, move back to the line start.
3452efc2 2588
0de73d5a
GM
2589 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2590 exactly when a mini-buffer is active.
2591
3e6385a4
GM
2592 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2593 in units of 1/8 character on non window-system frames.
2594 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2595
d1b5f629
EZ
25962001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2597
2598 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2599 a doc string.
2600
eaa2319f
GM
26012001-08-09 Gerd Moellmann <gerd@gnu.org>
2602
8e3189f0
GM
2603 * keyboard.c (Vpre_help_message): New variable.
2604 (syms_of_keyboard): Initialize and staticpro it.
2605 (show_help_echo): Record current message before displaying a
2606 help-echo, and restore that message when clearing the help.
2607
eaa2319f
GM
2608 * xfns.c (x_create_im): Remove prototype.
2609
2610 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2611
2612 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 2613
eaa2319f
GM
26142001-08-08 Gerd Moellmann <gerd@gnu.org>
2615
2616 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 2617 windows whose height has changed, disable partially visible lines.
eaa2319f 2618
17fdcfc8
GM
26192001-08-07 Gerd Moellmann <gerd@gnu.org>
2620
22d01aed 2621 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 2622 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 2623
17fdcfc8
GM
2624 * xdisp.c (start_display): Don't try to determine the continuation
2625 lines width if lines are truncated. It's superfluous and leads to
2626 incorrect results if POS is not visible in the window after
2627 reseating the iterator at the previous line start.
2628
8e3fe78e
GM
26292001-08-06 Gerd Moellmann <gerd@gnu.org>
2630
2631 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2632
98a8938c
GM
26332001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2634
2635 * alloc.c (init_stack): Remove declaration.
2636
18f9986a
GM
26372001-08-03 Gerd Moellmann <gerd@gnu.org>
2638
5e1f85e0
GM
2639 * keyboard.c (read_key_sequence): Check that key is an integer
2640 before comparing it with quit_char.
2641 (add_command_key): Use larger_vector.
2642 (read_char_x_menu_prompt): Instead of converting symbol and
2643 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 2644 which cannot be confused with valid events.
5e1f85e0
GM
2645 (read_char): When reading from Vunread_command_events, check for
2646 events of the form (EVENT . disabled) instead of
2647 (EVENT . nil).
2648
18f9986a
GM
2649 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2650 a float, determine the max height from the frame's height.
2651
fbc7f2a6
GM
26522001-08-02 Gerd Moellmann <gerd@gnu.org>
2653
2654 * xdisp.c (redisplay_internal): Take message_cleared_p into
2655 account only if minibuf_level == 0.
2656
81b1a79d
GM
26572001-08-01 Gerd Moellmann <gerd@gnu.org>
2658
e5c60873
GM
2659 * xdisp.c (redisplay_internal): Add a check for the last
2660 displayed message.
3452efc2 2661
6e019995
GM
2662 * xdisp.c (message_cleared_p): New variable.
2663 (clear_message): Set message_cleared_p when clearing the current
2664 message.
2665 (redisplay_internal): Look at message_cleared_p to capture
2666 the case that the echo area should be cleared.
2667
308a74d8
GM
2668 * keyboard.c (command_loop_1): Fix spelling of
2669 resize_echo_area_exactly.
2670
3452efc2 2671 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
2672
2673 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2674
81b1a79d
GM
2675 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2676 current matrix when the window gets smaller.
2677
ada329e6
EZ
26782001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2679
2680 * print.c (strout): Cast the character passed to insert_char to
2681 unsigned char, to avoid sign extension when it is promoted to int.
2682
ed86208c
GM
26832001-07-31 Gerd Moellmann <gerd@gnu.org>
2684
2685 * fileio.c (Finsert_file_contents): Don't treat a return value
2686 of 0 from emacs_read as an IO error.
2687
6594ac22
GM
26882001-07-30 Gerd Moellmann <gerd@gnu.org>
2689
cef68af5
GM
2690 * keyboard.c (abs): New macro.
2691 (double_click_fuzz): New variable.
2692 (make_lispy_event): Use it to determine what makes a double-click.
2693 (syms_of_keyboard): DEFVAR_INT it.
2694
6594ac22
GM
2695 * xmenu.c (set_frame_menubar): Take into account that
2696 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2697 <raeburn@gnu.org>.
2698
75c5350a
GM
26992001-07-27 Gerd Moellmann <gerd@gnu.org>
2700
2701 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2702
2703 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2704 of row's visible height.
2705
2706 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
2707 deal with the first overlay string having an image `display' property.
2708 (try_window_reusing_current_matrix, compute_line_metrics):
2709 Fix computation of row's visible height for the case that part of the
75c5350a
GM
2710 row is invisible above and part of the row is at the same time
2711 invisible below the window.
2712
ac49effe
GM
27132001-07-26 Gerd Moellmann <gerd@gnu.org>
2714
2715 * xfns.c (x-show-tip): Doc fix.
3452efc2 2716
ac49effe
GM
2717 * xfns.c (Vx_max_tooltip_size): New variable.
2718 (syms_of_xfns): DEFVAR_LISP it.
2719 (Fx_show_tip): Set frame's window_width to the width of the
2720 window. Use a maximum tooltip size specified by
2721 Vx_max_tooltip_size, if that has valid contents.
2722 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 2723
8c3b00cb
AI
27242001-07-26 Andrew Innes <andrewi@gnu.org>
2725
2726 * w32term.c (x_display_list): New variable.
2727 (w32_term_init): Set it.
2728
2729 * w32term.h (x_display_list): New extern.
2730
16098288
GM
27312001-07-26 Gerd Moellmann <gerd@gnu.org>
2732
2733 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
2734 is non-nil, instead of when redisplaying_p is non-zero.
2735 See comment there.
16098288
GM
2736 (mark_window_display_accurate_1): Add an assertion.
2737
64c5be50
GM
27382001-07-25 Gerd Moellmann <gerd@gnu.org>
2739
e743f599
GM
2740 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2741
563b384d
GM
2742 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2743 events so that we get a chance of processing expose events.
2744
64c5be50
GM
2745 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2746
296808a5
GM
27472001-07-24 Gerd Moellmann <gerd@gnu.org>
2748
2749 * xfns.c (valid_image_p): Protect better against invalid image
2750 specifications. Previous code could signal an error.
2751
5247262a
GM
27522001-07-23 Gerd Moellmann <gerd@gnu.org>
2753
3452efc2 2754 * indent.c (current_column): Fix column computation in the
f1004faf
GM
2755 presence of display table entries.
2756 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2757
dd42b31a
GM
2758 * dispnew.c (adjust_glyph_matrix): In the optimization for
2759 windows whose height has changed, use the new window height
2760 to compute which rows to invalidate.
2761
9e5a7f2a
GM
2762 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2763 (MAX_10_EXP): New macro.
2764 (Fformat): Use it.
2765
5247262a
GM
2766 * coding.c (code_convert_region): Handle the multibyte case if
2767 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2768
177ab8ce
GM
27692001-07-20 Gerd Moellmann <gerd@gnu.org>
2770
6e07c0a5
GM
2771 * dispextern.h (struct face): Change type of `stipple' to
2772 int; it's an ID.
2773
177ab8ce
GM
2774 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2775
b5b80599
GM
27762001-07-19 Gerd Moellmann <gerd@gnu.org>
2777
4e2a256b
GM
2778 * dispnew.c (update_window): Don't set the cursor at the end
2779 of the update if display update has been paused.
2780
3452efc2 2781 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 2782
c1fd9232
KR
27832001-07-18 Ken Raeburn <raeburn@gnu.org>
2784
2785 * fns.c (Fset_char_table_default): Check that a charset is defined
2786 before checking its dimension.
2787
928a85c1
KR
27882001-07-17 Ken Raeburn <raeburn@gnu.org>
2789
2790 * coding.c (setup_coding_system): Don't do any designation based
2791 on reg_bits if charset is not yet defined.
2792
fb4c6c96 2793 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
2794 pointer, using eassert.
2795
de11c1ea
GM
27962001-07-17 Gerd Moellmann <gerd@gnu.org>
2797
3452efc2
SM
2798 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2799 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 2800
467f1209
GM
28012001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2802
2803 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2804
c3d6be34
GM
28052001-07-16 Gerd Moellmann <gerd@gnu.org>
2806
c1d61a7d
GM
2807 * fileio.c (unwind_read): Function removed.
2808 (read_non_regular, read_non_regular_quit): New functions.
2809 (Finsert_file_contents): When reading from non-regular files,
2810 arrange to catch a `quit' and terminate the loop. Rearrange
2811 code so that a `quit' when reading from a regular file doesn't
2812 insert text in the buffer.
2813
c3d6be34
GM
2814 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2815 Clear faces afterwards.
2816 (clear_font_table): Take a x_display_info parameter. Don't free
2817 fonts being the default font of any frame on the given display.
2818
e06aa1f9
GM
28192001-07-13 Gerd Moellmann <gerd@gnu.org>
2820
2821 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2822 instead of CHAR_STRING which can signal an error.
2823
2824 * charset.c (char_to_string_1): Extracted from char_to_string.
2825 Return -1 instead of signaling an error.
2826 (char_to_string): Use it.
2827
2828 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2829
176c92e6
SM
28302001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2831
2832 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2833 is t, don't try to append anything to it.
2834
1c56232f
EZ
28352001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2836
2837 * dired.c (file_name_completion): Pass dp->d_name to
2838 Fstring_match, not elt, which is always nil here.
2839
1d2b2268
GM
28402001-07-12 Gerd Moellmann <gerd@gnu.org>
2841
2842 * xselect.c (x_decline_selection_request): Handle errors
2843 caused by receivers that have vanished.
2844
2845 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2846 ignoring events on foreign windows in #if 0. Always dispatch
2847 the event after checking it with x_handle_property_notify.
2848
2849 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
2850 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2851 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
2852 (toplevel): Add prototypes for file-local functions.
2853 (x_atom_to_symbol): Remove DPYINFO parameter.
2854
fe5a0162
SM
28552001-07-11 Stefan Monnier <monnier@cs.yale.edu>
2856
2857 * w32menu.c (menubar_selection_callback, w32_menu_show):
2858 Initialize `entry' to nil.
2859 (w32_dialog_show): Remove unused `save_wv' variable.
2860 (name_is_separator): Recognize "--:foo" and "--foo-bar".
2861
a777242c
GM
28622001-07-11 Gerd Moellmann <gerd@gnu.org>
2863
8ee5b6a3
GM
2864 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2865
d0e2444e
GM
2866 * fileio.c (unwind_read): Print a message when discarding inserted
2867 text or switching the buffer to unibyte. Change parameter.
2868 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 2869
a777242c
GM
2870 * fileio.c (unwind_read): New function.
2871 (Finsert_file_contents): Record it as unwind-function for
2872 the case that reading is interrupted by C-g.
2873
ae794295
GM
28742001-07-10 Gerd Moellmann <gerd@gnu.org>
2875
fe5a0162 2876 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
2877 update when scrolling_window returns 0.
2878
6b05fae3
GM
2879 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2880
2881 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 2882 for the case that x_decode_color signals an error.
6b05fae3 2883
ae794295
GM
2884 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2885
bb6e8cee
GM
28862001-07-09 Gerd Moellmann <gerd@gnu.org>
2887
2888 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2889 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2890 around ioctls.
2891
36b40a8a
EZ
28922001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2893
24b97d4b
EZ
2894 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2895 doc string line for dos-timezone-offset.
2896
36b40a8a
EZ
2897 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2898 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
2899 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2900 line for dos-unsupported-char-glyph.
36b40a8a
EZ
2901
2902 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2903
0967b4b0
GM
29042001-07-05 Gerd Moellmann <gerd@gnu.org>
2905
f25cfe53
GM
2906 * sound.c: Include Emacs' header files with #include "...".
2907
0967b4b0
GM
2908 * eval.c (specbind): Additionally record the buffer that was
2909 current when a buffer-local or frame-local variable was bound.
2910
c347a1c3
GM
29112001-07-04 Gerd Moellmann <gerd@gnu.org>
2912
2913 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2914 to unibyte characters in unibyte buffers.
2915
6332ca8a
GM
29162001-07-03 Gerd Moellmann <gerd@gnu.org>
2917
38472d44
GM
2918 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2919 the frame on the binding stack. Change format of entries for
2920 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2921 (unbind_to): Handle unbinding a frame-local variable.
2922
6332ca8a 2923 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 2924 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
2925 (dump_glyph_row): Print row's continuation_lines_width.
2926 (try_window_id): Take the shortcut if ZV is visible in the
2927 window, but there are actually no changes at ZV.
2928
63d1b174
GM
29292001-07-02 Gerd Moellmann <gerd@gnu.org>
2930
4c175203
GM
2931 * xterm.h (x_free_dpy_colors): Add prototype.
2932
2933 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2934 right number of arguments.
2935
0b54ce28
GM
2936 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2937 ($(lwlibdir)TAGS): New target.
4c175203 2938 (TAGS): Fix dependency list.
0b54ce28 2939
63d1b174
GM
2940 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2941 with input blocked.
2942
d827466c
GM
29432001-06-30 Gerd Moellmann <gerd@gnu.org>
2944
2945 * emacs.c (main): Remove extern declaration for sys_nerr, which
2946 isn't used and causes a compilation error with GCC 3.0 on
2947 FreeBSD 4.3.
2948
b5cb1ada
GM
29492001-06-27 Gerd Moellmann <gerd@gnu.org>
2950
a5d3ec3f 2951 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 2952 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
2953 (toplevel): Include <signal.h> and syssignal.h.
2954
b5cb1ada
GM
2955 * sound.c (vox_configure, vox_close): Turn off atimers
2956 around ioctls.
2957
d9bad487
GM
29582001-06-26 Gerd Moellmann <gerd@gnu.org>
2959
fdbb67fe
GM
2960 * keyboard.c (read_char) <non_reread>: Record the previous idle
2961 start time before calling timer_stop_idle.
2962 (read_char) <reread_first>: After processing a help-echo event,
2963 restore the previous idle start time.
2964
d9bad487
GM
2965 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2966 the start of invisible text.
2967 (setup_for_ellipsis): New function.
2968 (next_overlay_string): After all overlay strings have been
2969 processed, display an ellipsis if necessary.
2970 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2971 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2972
2973 * dispextern.h (struct iterator_stack_entry): Add member
2974 display_ellipsis_p.
2975
2b9c25e0
GM
29762001-06-25 Gerd Moellmann <gerd@gnu.org>
2977
80de57df
GM
2978 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2979 on the value of the wait-for-wm frame parameter.
2980
2981 * xterm.h (struct x_output): Add member wait_for_wm.
2982
2983 * xfns.c (Qwait_for_wm): New variable.
2984 (x_frame_parms): Add entry for `wait-for-wm".
2985 (x_set_wait_for_wm): New function.
2986 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2987 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2988
2b9c25e0
GM
2989 * xdisp.c (try_window_id) <all changes below window end>: Don't
2990 take this shortcut if ZV is visible in the window.
2991 (try_window_id): When checking for window start being in changed
2992 text, don't check that the buffer's size has changed.
2993
f772775c
RS
29942001-06-23 Richard M. Stallman <rms@gnu.org>
2995
2996 * minibuf.c (Fcompleting_read): Doc fix.
2997
fa9090b8
GM
29982001-06-19 Gerd Moellmann <gerd@gnu.org>
2999
3000 * composite.c (Ffind_composition_internal): Accept ZV
3001 and a string's end position as POS.
3002
f6f1beba
GM
30032001-06-18 Gerd Moellmann <gerd@gnu.org>
3004
3005 * composite.c (Ffind_composition_internal): Check POS
3006 for validity.
3007
0ae83348
EZ
30082001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3009
3010 * editfns.c (Fmessage_box): If the frame is not under a window
3011 system, output the message in the echo area.
3012
e4cdc335
RS
30132001-06-14 Richard M. Stallman <rms@gnu.org>
3014
3015 * xdisp.c (try_window_id): When EOB is visible, don't treat
3016 insertion at EOB as if it were "off the bottom of the screen."
3017
a55a5f3c
AI
30182001-06-11 Andrew Innes <andrewi@gnu.org>
3019
3020 * w32proc.c (create_child): Add new parameter is_gui_app.
3021 (w32_executable_type): Add new parameter is_gui_app.
3022 (sys_spawnve): Use it.
3023 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3024 SIGQUIT. This matches better how the signals are interpreted by
3025 MSVC compiled programs.
3026 (syms_of_ntproc): Update docstring.
3027
1b85dc1c
SM
30282001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3029
3030 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3031 well otherwise note_mouse_highlight might optimize away highlighting
3032 if we pass over that same overlay again.
3033
b75f8eab
EZ
30342001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3035
3036 * lread.c (Fload): Document that the argument is run via
3037 substitute-in-file-name.
3038
94843cc1
GM
30392001-05-31 Gerd Moellmann <gerd@gnu.org>
3040
b14659e6
GM
3041 * Makefile.in (bootstrap-doc): New target.
3042 (bootstrap-emacs): Depend on it.
3043
0894672f
GM
3044 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3045 auto-save-list-file-name when shutting down Emacs, because
3046 creating the directory might signal an error, and leaves
3047 Emacs in a strange state.
3048
94843cc1
GM
3049 * term.c: (tty_cursor_hidden): New variable.
3050 (update_begin): Don't call tty_hide_cursor. Clean up.
3051 (update_end, set_terminal_window, set_scroll_region): Clean up.
3052 (ring_bell, reset_terminal_modes): Clean up.
3053 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3054 on tty_cursor_hidden.
3055 (write_glyphs): Call tty_hide_cursor.
3056
db3a49a6
SM
30572001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3058
3059 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3060
8bd189fb
GM
30612001-05-30 Gerd Moellmann <gerd@gnu.org>
3062
6f1be3b9
GM
3063 * xfns.c (enum image_value_type): New enumerator
3064 IMAGE_STRING_OR_NIL_VALUE.
3065 (parse_image_spec): Handle it.
3066 (xbm_format, pbm_format): Use it for :foreground and :background.
3067 (xbm_load, pbm_load): Check for nil color names.
3068
8bd189fb
GM
3069 * xterm.c (note_mouse_highlight): If an overlapping overlay
3070 exists, but we find that we highlight the same overlay as before,
3071 don't do the highlighting again.
3072
7bdba03c
GM
30732001-05-29 Gerd Moellmann <gerd@gnu.org>
3074
4c329aa8
GM
3075 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3076 Protect unibyte strings created by replacing their multibyte
3077 equivalents in menu_items.
3078
e15e2828
GM
3079 * keymap.c (Fsingle_key_description): NUL-terminate the string
3080 buffer before calling build_string.
3081
7bdba03c
GM
3082 * callproc.c (Fcall_process): Deal with decode_coding returning
3083 CODING_FINISH_INCONSISTENT_EOL.
3084
89c8dc6c
GM
30852001-05-28 Gerd Moellmann <gerd@gnu.org>
3086
db3a49a6 3087 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
3088 an item's name with its key description in case the description
3089 is a multibyte string.
3090
3091 * keymap.c (Fsingle_key_description): Create a multibyte string
3092 only if necessary.
3093
eb04d6cd
GM
3094 * macros.c (Fstart_kbd_macro): Doc fix.
3095
8bd6307f
GM
3096 * xterm.c (cursor_in_mouse_face_p): New function.
3097 (x_draw_stretch_glyph_string): Use it to choose a different GC
3098 when drawing a cursor within highlighted text.
3099
e26c4089
GM
3100 * editfns.c (char_property_eq): Put in #if 0.
3101
3102 * indent.c (string_display_width): Put in #if 0.
3103
3104 * lread.c (Fload): Remove unused label.
3105
89c8dc6c
GM
3106 * termcap.c (speeds): Put in #if 0.
3107
9a1211f2
GM
31082001-05-18 Gerd Moellmann <gerd@gnu.org>
3109
29148a3f
GM
3110 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3111
9a1211f2
GM
3112 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3113 transformation matrix by 10.
3114
09393d07
GM
31152001-05-16 Gerd Moellmann <gerd@gnu.org>
3116
3117 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3118 only if it's equal to the former foreground pixel color.
db3a49a6 3119 (x_set_foreground_color, x_set_background_color)
09393d07
GM
3120 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3121
460e6bae
GM
31222001-05-16 Dave Love <fx@gnu.org>
3123
3124 * insdel.c (signal_before_change, signal_after_change): Consider a
3125 local change hook which changes the buffer.
99c78ce8
GM
3126
3127 * process.c (read_process_output): Don't call signal_after_change
3128 and update_compositions after insert_from_string_before_markers.
3129
dbcf3c03
GM
31302001-05-16 Gerd Moellmann <gerd@gnu.org>
3131
a90b3d3c
GM
3132 * xfaces.c (split_font_name): Use the right field when
3133 checking for `[...]' syntax.
3134
1b7818b4
GM
3135 * buffer.c (copy_overlays): New function.
3136 (clone_per_buffer_values): Use it.
3137
3138 * buffer.h (OVERLAY_PLIST): New macro.
3139
9bae8781
GM
3140 * keymap.c (Fsingle_key_description): Replace a build_string with
3141 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3142
dbcf3c03
GM
3143 * fontset.c (Ffontset_info): Check that face is non-null
3144 before accessing its fields.
3145
8a1ae4dd
GM
31462001-05-15 Gerd Moellmann <gerd@gnu.org>
3147
18a0a39e
GM
3148 * keyboard.c (read_key_sequence): Prevent generating a fake
3149 prefix key twice.
3150
e335b66a
GM
3151 * xfaces.c (split_font_name): Handle `[...]' for the right
3152 font name fields.
3153
8a1ae4dd
GM
3154 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3155 of CCL_STAT_INVALID_CMD.
3156
3cf80731
SM
31572001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3158
33568849
SM
3159 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3160 in <var> has no default value yet.
3161
3cf80731
SM
3162 * xfaces.c (try_alternative_families): First try the FAMILY.
3163 And if nothing is found in the end, try again with scalable fonts.
3164 (try_font_list): Let try_alternative_families do a bit more of
3165 the work. Only use FAMILY if it is not nil.
3166 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3167
933b0249
GM
31682001-05-14 Gerd Moellmann <gerd@gnu.org>
3169
58e5af83
GM
3170 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3171 pointer shape when show_mouse_face has already done it.
33568849 3172
58e5af83 3173 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
3174 full-width rows.
3175
7b16a6bf
GM
3176 * xfaces.c (split_font_name): Make sure to leave the loop
3177 with the right value of `i'.
3cf80731 3178
933b0249
GM
3179 * xfaces.c (split_font_name): Handle matrix transformations
3180 in the pixel and point size fields of XLFD font names.
3181 (xlfd_point_size): Likewise.
3182
dddcbf00
EZ
31832001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3184
3cf80731 3185 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
3186 (x_to_w32_font): Add prototype.
3187
7689ef0b
EZ
3188 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3189 redefining, to avoid compiler warnings.
3190
e7c15bba
EZ
3191 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3192
dddcbf00
EZ
3193 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3194 (w32_get_bdf_glyph): Cast between unsigned char and char when
3195 passing arguments to subroutines, to shut up compiler warnings.
3196 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3197 GET_HEX_VAL.
3198
3199 * xfaces.c: Include keyboard.h before frame.h, not after it.
3200
3201 * widget.c: Include keyboard.h before frame.h.
3202
3203 * w32term.h (struct image, struct face): Forward declaration, to
3204 avoid compiler warnings.
3205
7bd2d083
GM
32062001-05-11 Gerd Moellmann <gerd@gnu.org>
3207
47e72862
GM
3208 * keyboard.c (read_key_sequence): Don't modify events when
3209 generating fake prefix keys (mode-line, scroll-bar, ...) since
3210 this prevents proper processing of such events when pushed back
3211 into unread-command-events.
3212
dd5f324b
GM
3213 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3214 actually redrawn. Make the function static.
3215 (note_mouse_highlight): Fix a case where the mouse cursor
3216 was changed back to the text cursor.
3217
3218 * xterm.h (clear_mouse_face): Remove prototype.
3219
d88a79d4
GM
3220 * xdisp.c (try_window_id): Fix the fix and set the right
3221 window_end_vpos.
3222
3223 * xdisp.c (try_window_id): Fix computation of window end in the
3224 case that lines were deleted at the end of the window. Add some
3225 more debug_method_adds.
0416532f 3226
7bd2d083
GM
3227 * xfaces.c (try_alternative_families): New function.
3228 (try_font_list): Use it. If ATTRS specifies a family, check
3229 fonts from that family first.
3230 (choose_face_font): Remove code setting the family part of
3231 the pattern to nil.
3232
23fca891
GM
32332001-05-10 Gerd Moellmann <gerd@gnu.org>
3234
ff9aa2ca
GM
3235 * xdisp.c (try_window_id): Fix case of all changes before
3236 the window start.
7b2654b5 3237
23fca891
GM
3238 * xdisp.c (try_window_id): Add some xasserts.
3239
e9726794
GM
32402001-05-09 Gerd Moellmann <gerd@gnu.org>
3241
3242 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3243
9e53a675
GM
32442001-05-09 Dave Love <fx@gnu.org>
3245
3246 * xdisp.c (GIVE_UP): Fix for K&R C.
3247
0d487c52
GM
32482001-05-09 Gerd Moellmann <gerd@gnu.org>
3249
fe88d421
GM
3250 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3251
0d487c52
GM
3252 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3253 back to the text cursor shape without need.
3254
1e9fc92e
GM
32552001-05-07 Gerd Moellmann <gerd@gnu.org>
3256
a2a6232e
GM
3257 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3258
3259 * dispextern.h (inverse_video): Declare extern.
3260
1e9fc92e
GM
3261 * keyboard.c (delete_kboard): Handle the case that selected_frame
3262 has been deleted in the course of x_connection_closed.
3263
12949a7f
EZ
32642001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3265
7b2654b5
SM
3266 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3267 Fix the change from 2001-04-30.
12949a7f 3268
2fa2f461
GM
32692001-05-03 Gerd Moellmann <gerd@gnu.org>
3270
a779d213
GM
3271 * xfns.c (file_dialog_unmap_cb): New function.
3272 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3273 where a dialog is closed via the window manager.
3274
7b2654b5 3275 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
3276 the window start or all below the window end mostly rewritten.
3277 (redisplay_window): Move the tests if try_window_id is
3278 applicable to try_window_id.
3279 (GIVE_UP): New macro.
3280
3356df63
GM
32812001-05-02 Gerd Moellmann <gerd@gnu.org>
3282
a39202f6 3283 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
3284 currently being updated, mark the frame garbaged.
3285 Fix computation of rows intersecting the exposed rectangle.
a39202f6 3286 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 3287
3356df63
GM
3288 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3289 again if it has already been drawn.
3290
a9d2fd1d
SM
32912001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3292
3293 * syntax.c (update_syntax_table): Check that oldi has the same
3294 properties as old_prop before deciding not to invalidate.
3295
c95fc5f1
GM
32962001-04-30 Gerd Moellmann <gerd@gnu.org>
3297
a9793e45
GM
3298 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3299 read-only text that is so because of text properties.
3300
c95fc5f1 3301 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 3302 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
3303 windows that are components of a Lucid menu bar.
3304
5a5d9185
GM
33052001-04-27 Gerd Moellmann <gerd@gnu.org>
3306
3307 * term.c (turn_on_face): Fix reverse video handling on terminals
3308 that don't support colors.
3309
ba973f7a
GM
33102001-04-26 Gerd Moellmann <gerd@gnu.org>
3311
3312 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3313 a non-buffer.
3314
8c56a983
GM
33152001-04-25 Gerd Moellmann <gerd@gnu.org>
3316
a728644c
GM
3317 * term.c (toggle_highlight): New function.
3318 (turn_on_face): Change handling of reverse video.
3319
7b2654b5
SM
3320 * process.c (wait_reading_process_input):
3321 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 3322
bfd8410f
GM
3323 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3324 of the number of overlays to check.
3325
be2488ca
GM
3326 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3327
8c56a983
GM
3328 * xdisp.c (try_window_id): Fix a case where window_end_pos
3329 and window_end_bytepos were not adjusted.
3330
522d42f7
GM
33312001-04-23 Gerd Moellmann <gerd@gnu.org>
3332
3333 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3334 zero instead of -1.
3335
78c1afb6
EZ
33362001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3337
a9d2fd1d
SM
3338 * process.c (wait_reading_process_input) [!subprocesses]:
3339 Don't reference waiting_for_user_input_p, it's not defined in the
3340 branch without async subprocesses support.
78c1afb6 3341
a2fab450
GM
33422001-04-19 Gerd Moellmann <gerd@gnu.org>
3343
a122a38e
GM
3344 * keyboard.c (delete_kboard): Prevent a dangling reference
3345 from current_kboard to KB, which is freed.
3346
a9d2fd1d
SM
3347 * process.c (wait_reading_process_input):
3348 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
3349 read_key_sequence aware of buffer changes from under it.
3350
0f8d6dc7
GM
33512001-04-18 Gerd Moellmann <gerd@gnu.org>
3352
eeffb293
GM
3353 * xfaces.c (Qscalable_fonts_allowed): New variable.
3354 (realizing_basic_faces_p): Removed.
2fa2f461
GM
3355 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3356 removed.
eeffb293 3357 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
3358 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3359 for scalable-fonts-allowed to t.
eeffb293 3360
0f8d6dc7
GM
3361 * fileio.c (Finsert_file_contents): If the file size returned from
3362 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 3363 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 3364
eec2d1de
EZ
33652001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3366
3367 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3368 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3369 (__memalign_hook): Make the two prototypes consistent.
3370
f4f480bd
GM
33712001-04-17 Gerd Moellmann <gerd@gnu.org>
3372
3373 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3374 matrix of mini-windows.
3375
52283633
SM
33762001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3377
3378 * intervals.c (find_interval): Don't rebalance during signal handling.
3379
ec2423c9
GM
33802001-04-11 Gerd Moellmann <gerd@gnu.org>
3381
30cb0001 3382 * fns.c: Include blockinput.h.
52283633 3383
ec2423c9
GM
3384 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3385
719d83ad
GM
33862001-04-10 Gerd Moellmann <gerd@gnu.org>
3387
60f8d735
GM
3388 * fns.c (Fcompare_strings): Fix return values.
3389
afffeb57
GM
3390 * window.c (window_scroll): Change the meaning of N to mean
3391 N screen-fulls or N lines.
3392 (window_scroll_pixel_based, window_scroll_line_based)
3393 (scroll_command, Fscroll_other_window): Change accordingly.
3394
52283633
SM
3395 * window.c (window_scroll_pixel_based, Frecenter):
3396 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
3397 height of the window.
3398
3399 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3400 instead of using it.last_visible_y for the height of the window.
52283633 3401
719d83ad 3402 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 3403 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
3404
3405 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
3406 able to write to hidden and system files. From Dan Holmsand
3407 <dan@eyebee.com>.
719d83ad 3408
8ddf3ee1
GM
3409 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3410 Holmsand <dan@eyebee.com>.
719d83ad 3411
522ed7fb
GM
34122001-04-09 Gerd Moellmann <gerd@gnu.org>
3413
9170e5d4
GM
3414 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3415
522ed7fb
GM
3416 * window.c (window_internal_height): Return 1 less if the
3417 window has a header line.
3418
3419 * xdisp.c (try_window_id): When scrolling on a terminal, take
3420 the change of window_internal_height into account.
3421
ceeb3d7d
EZ
34222001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3423
3424 * gmalloc.c (align): If the argument SIZE would overflow
3425 __malloc_ptrdiff_t, fail right away.
3426
63685b9d
GM
34272001-04-06 Gerd Moellmann <gerd@gnu.org>
3428
3429 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3430 Make sure the tooltip is completely visible.
3431 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3432
3433 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3434
3435 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3436
3ffb33bb
DL
34372001-04-06 Dave Love <fx@gnu.org>
3438
52283633
SM
3439 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3440 Fix test of `from'.
3ffb33bb 3441
869fb12c
GM
34422001-04-06 Gerd Moellmann <gerd@gnu.org>
3443
52283633 3444 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 3445
869fb12c
GM
3446 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3447
441bf856
GM
34482001-04-05 Gerd Moellmann <gerd@gnu.org>
3449
4d664b04
GM
3450 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3451
52283633 3452 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 3453
30ca89f5
GM
3454 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3455 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3456
3457 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3458 shell widget's position only if it is non-null.
3459
52283633
SM
3460 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3461 Set f->output_data.x->widget to null after destroying it.
30ca89f5 3462
81a81c0f
GM
3463 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3464 FILENAME to bring it in synch with the documentation.
3465
441bf856
GM
3466 * xfaces.c (realizing_basic_faces_p): Renamed from
3467 realize_default_face_p.
3468 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3469 (realize_default_face): Don't set the flag.
3470
702a1e8e
GM
34712001-04-04 Gerd Moellmann <gerd@gnu.org>
3472
1013f4e3
GM
3473 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3474
52283633
SM
3475 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3476
1013f4e3
GM
3477 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3478 the buffer that was used for echoing.
3479
702a1e8e
GM
3480 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3481 (first_font_matching): Removed unused function.
3482 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3483 (may_use_scalable_font_p): Remove parameter FONT; rename
3484 parameter NAME to FONT.
3485 (x_face_list_fonts): Fix missing bounds check.
3486 (realizing_default_face_p): New variable.
3487 (realize_default_face): Set and clear that flag.
3488 (x_face_list_fonts): When called during the realization of the
3489 default face, and no matching fonts are found when ignoring
3490 scalable fonts and fonts matching a regexp from
3491 face-ignored-fonts, try without ignoring fonts.
3492
f9dbcda4
GM
34932001-04-03 Gerd Moellmann <gerd@gnu.org>
3494
ad18ffb1
GM
3495 * xfns.c (postprocess_image): New function.
3496 (lookup_image): Call it for all image types except PostScript.
3497 (x_kill_gs_process): Call postprocess_image.
3498
f9dbcda4
GM
3499 * xterm.c (x_use_underline_position_properties): New variable.
3500 (x_draw_glyph_string): Use it.
3501 (syms_of_xterm): DEFVAR_BOOL it.
3502
651f03b6
GM
35032001-04-02 Gerd Moellmann <gerd@gnu.org>
3504
3505 * xterm.c (x_alloc_nearest_color_1): New function.
3506 (x_alloc_nearest_color): Use it.
3507 (x_color_cells): Take a Display as argument, instead of a frame.
3508 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3509 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3510 (x_initialize): Register cvt_string_to_pixel as resource converter
3511 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3512
73d75a62
GM
35132001-03-30 Gerd Moellmann <gerd@gnu.org>
3514
b2046df8
GM
3515 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3516 (set_iterator_to_next): If a string from a display property ends,
3517 consider the case that this might also be the end of an
3518 overlay string having the display property.
3519
52283633 3520 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 3521
87d8eba4
GM
3522 * xdisp.c (reseat_to_string): Undo last change.
3523
73d75a62
GM
3524 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3525 matrix of a window when the header line changes, when
3526 new rows are allocated, or when the width changes.
3527
911a2406
EZ
35282001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3529
52283633 3530 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 3531
aea51abe
EZ
35322001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3533
3534 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3535 deprecated.
3536
176bc847
GM
35372001-03-29 Gerd Moellmann <gerd@gnu.org>
3538
ed31fabf
GM
3539 * data.c (Fsubr_interactive_form): New function.
3540 (syms_of_data): Defsubr it.
3541
176bc847
GM
3542 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3543 (live_float_p, live_misc_p): Return 1 only if the offset of the
3544 pointer in its block is >= 0.
3545
e59d0e9d
GM
35462001-03-28 Paul Eggert <eggert@twinsun.com>
3547
3548 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3549 microseconds calcuation. Avoid double-rounding problem.
3550 In doc string, warn that the result is approximate.
3551
f827b862
GM
35522001-03-28 Gerd Moellmann <gerd@gnu.org>
3553
30a3f61c
GM
3554 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3555 bind `inhibit-eval-during-redisplay' to t.
3556
3557 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3558
3559 * xdisp.c (inhibit_eval_during_redisplay)
3560 (Qinhibit_eval_during_redisplay): New variables.
3561 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3562 don't eval, return nil instead.
3563 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3564 Initialize Qinhibit_eval_during_redisplay.
3565
e719f5ae
GM
3566 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3567 the iterator's multibyte_p flag.
3568
deb2613a
GM
3569 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3570 instead of setting it to zero; it's incremented for each frame
3571 where the menu face is changed.
3572
52283633
SM
3573 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3574 change bottom shadow accordingly.
3575
3576 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
3577 intersections here.
3578 (expose_window): Do it here instead.
52283633 3579 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 3580
f827b862
GM
3581 * bytecode.c (BYTE_CODE_QUIT): New macro.
3582 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3583
4bde0ebb
GM
35842001-03-27 Gerd Moellmann <gerd@gnu.org>
3585
607ec83c
GM
3586 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3587 Give up if matrix starts in an ellipsis.
3588 (init_from_display_pos): Do nothing if POS doesn't specify
3589 a dpvec_index but the iterator has such a position.
3590
0245398f
GM
3591 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3592
aba25348
GM
3593 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3594 x/y position is (0, 0) after destroying the menu bar, restore
3595 its original position.
3596
4bde0ebb
GM
3597 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3598 (init_from_display_pos): Use it.
3599 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3600
8cdb267e
GM
36012001-03-26 Gerd Moellmann <gerd@gnu.org>
3602
3603 * xdisp.c (try_window_id): Undo last change.
3604
9948db79
EZ
36052001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3606
3607 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3608
3609 * buffer.c (syms_of_buffer): Doc fix.
3610
2eddf899
GM
36112001-03-26 Gerd Moellmann <gerd@gnu.org>
3612
3613 * xfaces.c (x_update_menu_appearance): Use local variable
3614 popup_path for setting font resources.
3615
6c145d35
EZ
36162001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3617
6a65b1b5
EZ
3618 * frame.c (Fframe_list): Don't reference tip_frame if
3619 HAVE_WINDOW_SYSTEM is not defined.
3620
6c145d35
EZ
3621 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3622 <wl@gnu.org>.
3623
d74c1900
GM
36242001-03-25 Gerd Moellmann <gerd@gnu.org>
3625
20fbd925
GM
3626 * xdisp.c (init_from_display_pos): Test invisible property
3627 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 3628
927c5b3b
GM
3629 * xdisp.c (redisplay_internal) <update one window>: Make sure
3630 last_arrow_position and last_arrow_string are set.
3631
d74c1900
GM
3632 * frame.c (Fframe_list): Don't return a tooltip frame.
3633
091f8878
GM
36342001-03-23 Gerd Moellmann <gerd@gnu.org>
3635
52283633
SM
3636 * xdisp.c (mark_window_display_accurate_1): New function,
3637 extracted from mark_window_display_accurate.
3638 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
3639 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3640 (mark_window_display_accurate): Use it.
3641 (redisplay_internal): Use it for the selected window.
3642 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3643 for the selected frame.
3644
ac90c44f
GM
3645 * xdisp.c Use make_number, for readability.
3646 (try_window_id): Disable rows below the window end.
3647 (try_window_reusing_current_matrix): Use cursor_row_p.
3648 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3649 of rows.
3650 (init_from_display_pos): If POS specifies a position in a display
3651 vector, maybe get the iterator set up for that ellipsis.
43c09969 3652
091f8878
GM
3653 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3654
991786dd
EZ
36552001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3656
3657 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3658
6c29b43c
GM
36592001-03-23 Gerd Moellmann <gerd@gnu.org>
3660
3661 * xfaces.c (x_update_menu_appearance): Use a different path
3662 for Lucid popup menus.
3663
d8731202
SM
36642001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3665
3666 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3667
3668 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3669 (string_buffer_position): Use `make_number'.
3670
f61a541b
GM
36712001-03-22 Gerd Moellmann <gerd@gnu.org>
3672
3c9e997b
GM
3673 * xfaces.c (x_update_menu_appearance): Renamed from
3674 x_set_menu_face_resources. Use different resources for popups.
3675
3676 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3677 (GC_CHECK_STRING_BYTES): Don't define.
3678
364cd450
GM
3679 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3680 Removed, together with subroutines.
3681 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 3682 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 3683
d8731202
SM
3684 * dispextern.h (x_set_menu_resources_from_menu_face):
3685 Remove prototype.
364cd450 3686
d8731202 3687 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
3688 Remove calls to x_set_menu_resources_from_menu_face.
3689
d8731202
SM
3690 * xfaces.c (xm_set_menu_resources_from_menu_face):
3691 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
3692
3693 * xmenu.c: Include widget.h.
3694 (single_submenu): Return int. Some cleanup.
3695 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3696
140330de
GM
36972001-03-21 Gerd Moellmann <gerd@gnu.org>
3698
3699 * xterm.c (x_update_window_end): Handle overwritten mouse face
3700 also for tool bar windows.
3701 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3702 DRAW is DRAW_IMAGE_RAISED.
3703
1741905c
GM
37042001-03-20 Gerd Moellmann <gerd@gnu.org>
3705
fa88947e
GM
3706 * print.c (syms_of_print): Doc fixes.
3707
1741905c
GM
3708 * fns.c (Fmd5): Doc fix.
3709
ade0bee1
GM
37102001-03-19 Gerd Moellmann <gerd@gnu.org>
3711
357e7376
GM
3712 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3713 Clear area of the frame not occupied by the scroll bar.
3714
c2c097cc
GM
3715 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3716 tip frame's root window buffer to *tip* right after creating
3717 the frame.
3718
ade0bee1
GM
3719 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3720 is an integer don't have to be for space characters.
3721
88c6e37e
GM
37222001-03-16 Gerd Moellmann <gerd@gnu.org>
3723
52283633
SM
3724 * indent.c (current_column, current_column_1, Fmove_to_column)
3725 (compute_motion): Handle characters from display vectors differently.
88c6e37e 3726
c62eed76
KH
37272001-03-15 Kenichi Handa <handa@etl.go.jp>
3728
3729 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3730 drawing glyph string.
3731
c899e7e6
GM
37322001-03-15 Gerd Moellmann <gerd@gnu.org>
3733
d0bbfc99
GM
3734 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3735 (command_loop_1): Undo last change.
3736
03d1a189
GM
3737 * xterm.c (fast_find_position): Return the correct vpos.
3738
c899e7e6 3739 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 3740 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
3741 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3742 Call store_symval_forwarding with BUF null.
3743 (set_internal): Call store_symval_forwarding with the BUF
3744 parameter passed to set_internal. Formerly, the value was always
3745 set in the current buffer; the buffer recorded in specbind for
3746 this case wasn't used.
3747 (arith_driver): Reindent.
3748
52283633
SM
3749 * buffer.c (swap_out_buffer_local_variables):
3750 Call store_symval_forwarding with BUF null.
c899e7e6
GM
3751
3752 * lisp.h (store_symval_forwarding): Change prototype.
3753
3754 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3755
57ac7c81
GM
37562001-03-14 Gerd Moellmann <gerd@gnu.org>
3757
697617d9
GM
3758 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3759 FOR_DELETION. Avoid resizing the mini-window of the selected
3760 frame if FOR_DELETION is set.
3761 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3762 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3763 signature.
3764
3765 * window.c (Fset_window_configuration): Change call to
3766 do_switch_frame to new format.
3767
3768 * keyboard.c (quit_throw_to_read_char): Change call to
3769 do_switch_frame to new format.
3770
3771 * lisp.h (do_switch_frame): Change prototype.
3772
819dce0f
GM
3773 * frame.c (Fframe_parameters): In the `buffer-list' frame
3774 parameter, store the buffer list of FRAME, not the list of the
3775 selected frame.
3776
57ac7c81
GM
3777 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3778 box just because the glyph row's full_width_p flag is set.
3779
65008712
GM
37802001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3781
3782 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3783 skip the padding blanks inserted in extend_face_to_end_of_line,
3784 before checking for trailing whitespace.
3785
159cf431
GM
37862001-03-13 Gerd Moellmann <gerd@gnu.org>
3787
52283633 3788 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
3789 Remove special handling for LessTif/Motif.
3790 (toplevel): Don't include Xm/Xm.h.
3791
52283633
SM
3792 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3793 Remove workaround code for LessTif; it doesn't work anymore.
3794
2564ea1b 3795 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 3796 Xm/ScrollBarP.h.
afcdc0a1 3797
52283633
SM
3798 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3799 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
3800 contemporary LessTif.
3801
52283633
SM
3802 * xfaces.c (xm_set_menu_resources_from_menu_face):
3803 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 3804
159cf431
GM
3805 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3806 removing button grabs.
3807
c6f7429a
KH
38082001-03-13 Kenichi Handa <handa@etl.go.jp>
3809
cb82d767
KH
3810 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3811 and clip-large-size-font as obsolete.
3812
c6f7429a
KH
3813 * lread.c (read_multibyte): Check the validity of multibyte
3814 sequence. If invalid, return the first byte.
3815
760cefb5
GM
38162001-03-12 Gerd Moellmann <gerd@gnu.org>
3817
3818 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3819 before running the command; timer functions or process
3820 filters may have set it.
3821
5141f9d0
EZ
38222001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3823
3824 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3825 Doc fix.
3826
b6a15240
GM
38272001-03-12 Gerd Moellmann <gerd@gnu.org>
3828
3829 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3830 to sprintf.
3831
95522746
GM
38322001-03-09 Gerd Moellmann <gerd@gnu.org>
3833
db14cfc5
GM
3834 * dispextern.h (string_buffer_position): Add prototype.
3835
52283633 3836 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
3837 (single_display_prop_string_p): New functions.
3838
3839 * xterm.c (note_mouse_highlight): If there's no help-echo on
3840 a string, look at the buffer text ``under'' it.
3841
3842 * keyboard.c (make_lispy_event): Add string info to the event,
3843 analogous to what's done on mode lines.
3844 (read_key_sequence): For a click on a string, consider `local-map'
3845 and `keymap' of that string.
3846
52283633
SM
3847 * keyboard.c (make_lispy_event, make_lispy_movement):
3848 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
3849
3850 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3851
3852 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
3853 POS; return void.
3854
95522746
GM
3855 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
3856 flags argument to emacs_open; it seems to conflict with O_EXCL.
3857
898a399d
KH
38582001-03-09 Kenichi Handa <handa@etl.go.jp>
3859
28cd4910
KH
3860 * composite.h (struct composition): Change types of members;
3861 glyph_len to unsigned, width to unsigned short.
898a399d 3862
4cdf6a6c
AI
38632001-03-08 Andrew Innes <andrewi@gnu.org>
3864
3865 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3866 menu titles.
3867
129004d3
GM
38682001-03-08 Gerd Moellmann <gerd@gnu.org>
3869
221dd3e7
GM
3870 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3871 instead of nil.
3872
52283633 3873 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
3874 help-echo in strings.
3875 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3876 (fast_find_string_pos): New function.
3877
52283633
SM
3878 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3879 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
3880
3881 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3882 Handle `mouse-face'.
3883
3884 * dispextern.h (face_at_string_position): Change prototype.
3885
52283633 3886 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 3887
129004d3
GM
3888 * keyboard.c (make_lispy_event): Avoid generating drag events
3889 if the mouse hasn't actually moved to another buffer position.
52283633 3890
80c8ab8c
DL
38912001-03-08 Dave Love <fx@gnu.org>
3892
129004d3 3893 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 3894
989521fd
GM
38952001-03-08 Gerd Moellmann <gerd@gnu.org>
3896
3897 * process.c (Fset_process_window_size): Fix a typo.
3898
bb5c338d
KH
38992001-03-08 Kenichi Handa <handa@etl.go.jp>
3900
3901 * coding.c (detect_coding_sjis): Do more rigid check.
3902 (detect_coding_big5): Likewise.
3903 (decode_coding_sjis_big5): Likewise.
3904 (Fdetect_coding_region): Call detect_coding_system with tailing
3905 anchor byte `\0' for more rigid detection.
52283633 3906 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
3907 (Fdetect_coding_string): Likewise.
3908
8b8f9197
SM
39092001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3910
3911 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3912 a string before extracting its data.
3913
3bdf2660
GM
39142001-03-07 Gerd Moellmann <gerd@gnu.org>
3915
3916 * window.c (Frecenter): Rewrite code handling negative values
3917 of ARG on graphical frames.
3918
39192001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3920
3921 * window.c (displayed_window_lines): If W->start is outside the
3922 accessible portion of the buffer, call start_display with BEGV or
3923 ZV instead of W->start.
3924
471f86b9
GM
39252001-03-07 Gerd Moellmann <gerd@gnu.org>
3926
2ab62c6c
GM
3927 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3928
471f86b9
GM
3929 * process.c (Fset_process_filter): Don't crash if the input
3930 file descriptor of PROCESS is closed.
3931 (Fset_process_window_size): Likewise.
3932
101922c3
GM
39332001-03-06 Kenichi Handa <handa@etl.go.jp>
3934
3935 * xterm.c (XTflash): Make the timeout of select shorter, and call
3936 select repeatedly until the desired time expires.
3937
45d051a7
GM
39382001-03-06 Gerd Moellmann <gerd@gnu.org>
3939
3940 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3941
3942 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3943
3944 * lisp.h (Vwindow_list): Declare extern.
3945
8f372c46
EZ
39462001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3947
3948 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3949
f16a7aa5
GM
39502001-03-06 Gerd Moellmann <gerd@gnu.org>
3951
157ae273
GM
3952 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3953 to detect a case where we have to highlight a different region
3954 despite not having left the currently highlighted region.
3955 Set mouse_face_overlay in the x_display_info.
45d051a7 3956 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
3957
3958 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3959
3960 * buffer.c (mouse_face_overlay_overlaps): New function.
3961
3962 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3963 (Qmouse_face): Declare extern.
3964
f16a7aa5
GM
3965 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3966 if face_change_count is non-zero.
3967
827afcac
KH
39682001-03-06 Kenichi Handa <handa@etl.go.jp>
3969
3970 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3971 that the source is unibyte.
3972
14c7242e
DL
39732001-03-05 Dave Love <fx@gnu.org>
3974
827afcac 3975 * xterm.c (XTmouse_position): Fix typo.
14c7242e 3976
c28b847b
GM
39772001-03-05 Gerd Moellmann <gerd@gnu.org>
3978
3979 * minibuf.c (read_minibuf): Clean up the binding stack if
3980 called noninteractively.
3981
b86644f2
KH
39822001-03-05 Kenichi Handa <handa@etl.go.jp>
3983
3984 * coding.c (syms_of_coding): Docstring modified.
3985
203682cc 39862001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
3987
3988 * charset.c (char_to_string): If a single byte char has modifier
3989 bits that can't be reflected to the character code, ignore them
45d051a7 3990 instead of signaling an error.
b86644f2 3991
e30bd7b7
EZ
39922001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3993
3994 * s/msdos.h: Update copyright notice.
3995
3996 * dosfns.h: Update copyright notice.
3997
3998 * dosfns.c: Update copyright notice.
3999
4000 * msdos.c: Update copyright notice.
4001
b52b65bd
GM
40022001-03-02 Gerd Moellmann <gerd@gnu.org>
4003
4004 * xterm.c (glyph_rect): New function.
4005 (XTmouse_position): Use it to raise the threshold for mouse
4006 movement event generation.
4007
53c4b1e6
EZ
40082001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4009
4010 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4011 specifies (reverse . t), reverse the initial screen colors.
4012 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
4013 but we are reversing the colors, set bg_set, not fg_set.
4014 Likewise for setting background-color and reversing: set fg_set.
4015 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
4016 in effect.
4017
4018 * xfaces.c (Finternal_set_lisp_face_attribute)
4019 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4020 parameters alist.
4021
f964b4d7
GM
40222001-03-02 Gerd Moellmann <gerd@gnu.org>
4023
ef53d75e
GM
4024 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4025 to a single slash in the middle of file names.
4026
52283633 4027 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
4028 Accept only alphanumeric time zone names.
4029
f964b4d7
GM
4030 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4031 or width area.
4032 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4033 a widget to zero height.
52283633 4034
c3c45f65
GM
40352001-03-01 Gerd Moellmann <gerd@gnu.org>
4036
4037 * window.c (Fwindow_end): Call move_it_past_eol only if
4038 ending up on a partially visible line.
4039
028d739a
DL
40402001-03-01 Dave Love <fx@gnu.org>
4041
4042 * ccl.c (Fccl_execute): Doc fix.
4043
57c5889c
GM
40442001-03-01 Gerd Moellmann <gerd@gnu.org>
4045
35f59f6b
GM
4046 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4047 of the tool bar before calling x_figure_window_size.
4048
f84ff02c
GM
4049 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4050 NULL after destroying it, otherwise XTread_socket can access a
4051 destroyed widget when input is unblocked.
4052
8b8f9197 4053 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 4054
57c5889c
GM
4055 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4056 same name as before, although there was a change in fontsets.
4057
224227d1
KR
40582001-02-28 Ken Raeburn <raeburn@gnu.org>
4059
4560730a
KR
4060 * lisp.h (Fframe_parameter): Declare.
4061
224227d1 4062 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 4063 Lisp_Object.
224227d1 4064
ece93c02
GM
40652001-02-28 Gerd Moellmann <gerd@gnu.org>
4066
11ef99b9
GM
4067 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4068 NULL instead.
4069
4070 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4071 NULL instead.
4072
ece93c02
GM
4073 * alloc.c (toplevel): Include process.h.
4074 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4075 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4076 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
4077 (allocate_vector, allocate_hash_table, allocate_window)
4078 (allocate_frame, allocate_process, allocate_other_vector):
4079 New functions.
ece93c02
GM
4080 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4081 (mark_maybe_pointer): New function.
52283633 4082 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
4083 remain and not Lisp_Objects.
4084 (min_heap_address, max_heap_address): New variables.
4085 (mem_find): Return MEM_NIL if START is below min_heap_address or
4086 above max_heap_address.
4087 (mem_insert): Compute min_heap_address and max_heap_address.
4088
4089 * process.c (make_process): Use allocate_process.
4090
4091 * frame.c (make_frame): Use allocate_frame.
4092
4093 * window.c (make_window, make_dummy_parent): Use allocate_window.
4094 (Fcurrent_window_configuration): Use allocate_other_vector.
4095
4096 * lisp.h (allocate_vectorlike): Remove prototype.
4097 (allocate_vector, allocate_other_vector, allocate_frame)
4098 (allocate_window, allocate_process, allocate_hash_table):
4099 Add prototypes.
4100
4101 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4102 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4103
063af457
KH
41042001-02-27 Kenichi Handa <handa@etl.go.jp>
4105
4106 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4107 treat the produced bytes as a valid multibyte sequence.
4108
4109 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
4110 (ccl_driver) <CCL_WriteMultibyteChar2>:
4111 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
4112 <ccl_finish>: Set ccl->eight_bit_control properly.
4113
4114 * ccl.h (struct ccl_program): New member eight_bit_control.
4115
f58c6494
SM
41162001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4117
4118 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4119 accessible_keymaps_char_table.
4120 (accessible_keymaps_char_table): Obey `is_metized'.
4121 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4122 Lisp_Object.
4123
c596c392
GM
41242001-02-26 Gerd Moellmann <gerd@gnu.org>
4125
4126 * dispnew.c: Check HAVE_TERM_H before including term.h.
4127
425de386
AI
41282001-02-24 Andrew Innes <andrewi@gnu.org>
4129
4130 * makefile.w32-in: Update copyright notice.
4131
2ba11bbd
SM
41322001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4133
4134 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4135
66c56ed1
KH
41362001-02-24 Kenichi Handa <handa@etl.go.jp>
4137
4c1593ce
KH
4138 * Makefile.in (lisp): Add international/utf-8.elc.
4139
66c56ed1
KH
4140 * fontset.c (Fnew_fontset): Fix handling of the case that an
4141 element of FONTLIST is a cons of family and registry.
4142
796ead7e
JR
41432001-02-23 Jason Rumney <jasonr@gnu.org>
4144
4145 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4146 to height unconditionally.
4147
4148 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 4149 background face to the end of the drawing area in the text area, only.
796ead7e
JR
4150 (x_insert_glyphs): Call window_box_left to obtain the left
4151 x-coordinate of the area to shift.
4152
4153 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4154 safe_run_hooks.
4155
f6839838
AI
41562001-02-22 Andrew Innes <andrewi@gnu.org>
4157
52283633 4158 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
4159 ($(BLD)\dispnew.obj):
4160 ($(BLD)\editfns.obj):
4161 ($(BLD)\fileio.obj):
4162 ($(BLD)\filelock.obj):
4163 ($(BLD)\keyboard.obj):
4164 ($(BLD)\w32proc.obj):
4165 ($(BLD)\process.obj):
4166 ($(BLD)\sysdep.obj): Ditto.
4167
4168 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4169 header files.
52283633
SM
4170 ($(BLD)/dispnew.$(O)):
4171 ($(BLD)/editfns.$(O)):
4172 ($(BLD)/fileio.$(O)):
4173 ($(BLD)/filelock.$(O)):
4174 ($(BLD)/keyboard.$(O)):
4175 ($(BLD)/w32proc.$(O)):
4176 ($(BLD)/process.$(O)):
f6839838
AI
4177 ($(BLD)/sysdep.$(O)): Ditto.
4178
c224f70b
GM
41792001-02-22 Gerd Moellmann <gerd@gnu.org>
4180
51695746
GM
4181 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4182 at the start of the function, check that the \n in it->c is
4183 from the iterator's current position.
52283633 4184
a61b7058
GM
4185 * xdisp.c (handle_single_display_prop): Add parameter
4186 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4187 properties which replace the display of text with something else.
4188 (handle_display_prop): Call handle_single_display_prop with
4189 additional argument saying if we already replaced text display
4190 with something else. Use AREF.
52283633 4191 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
4192 (decode_mode_spec_coding): Use AREF and ASIZE.
4193
3473f362
GM
4194 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4195 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4196 * vmstime.h: Files removed.
52283633 4197
2bb58df3
GM
4198 * unexencap.c, unexfx2800.c: Files removed.
4199
c224f70b
GM
4200 * dispnew.c (direct_output_for_insert): Give up if we are showing
4201 a message or just cleared the message because we might need to
4202 resize the echo area window or display an empty echo area.
4203
ffc9ff0c
GM
42042001-02-21 Gerd Moellmann <gerd@gnu.org>
4205
0528abe1
GM
4206 * xdisp.c (redisplay_internal): Do the
4207 mark_window_display_accurate after all windows have been
4208 redisplayed because this call resets flags in buffers which are
4209 needed for proper redisplay.
4210
52283633
SM
4211 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4212 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
4213 the old names.
4214
52283633
SM
4215 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4216 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4217
4218 * msdos.h (struct x_output): Rename busy_window to
4219 hourglass_window, busy_p to hourglass_p.
4220
52283633
SM
4221 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4222 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4223
4224 * xfns.c: Rename everything containing *busy_cursor* and similar
4225 to *hourglass*.
4226 (syms_of_w32fns): Rename x-busy-pointer-shape to
4227 x-hourglass-pointer-shape, display-busy-cursor to
4228 display-hourglass, busy-cursor-delay to hourglass-delay.
4229
4230 * w32fns.c: Rename everything containing *busy_cursor* and similar
4231 to *hourglass*.
4232 (syms_of_w32fns): Rename x-busy-pointer-shape to
4233 x-hourglass-pointer-shape, display-busy-cursor to
4234 display-hourglass, busy-cursor-delay to hourglass-delay.
4235
4236 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4237 of its busy_p flag.
4238
4239 * dispextern.h (start_hourglass, cancel_hourglass)
4240 (display_hourglass_p): Renamed from *busy_cursor*.
4241
ab2c5f0a
GM
42422001-02-20 Gerd Moellmann <gerd@gnu.org>
4243
d17e49a8
GM
4244 * keyboard.c (read_char): When an event from unread-command-events
4245 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4246
fa97adf6
GM
4247 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4248 equal to the current buffer.
4249
ab2c5f0a
GM
4250 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4251 nil, otherwise we're left with truncate_lines t when a message
4252 is printed with message-truncate-lines bound to t.
4253
aeac019e
GM
42542001-02-19 Gerd Moellmann <gerd@gnu.org>
4255
c8bc6f65
GM
4256 * window.c (Fmove_to_window_line): Undo last change.
4257 (displayed_window_lines): Call line_bottom_y to determine
4258 the line's bottom position.
4259
4260 * dispextern.h (line_bottom_y): Add prototype.
4261
52283633 4262 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
4263 (pos_visible_p): Use it.
4264
980a2d69
GM
4265 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4266 set redisplaying_p to 0 here instead of in Frecursive_edit.
4267 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4268 set redisplaying_p.
4269
52283633 4270 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
4271 New variables.
4272 (syms_of_xdisp): Initialize new variables.
4273 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4274 Specbind `inhibit-menubar-update' when updating the menu bar.
4275
65048e97
GM
4276 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4277 safe_run_hooks.
4278
4279 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4280 safe_run_hooks.
4281
a57c4026
GM
4282 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4283 is null.
4284
aeac019e
GM
4285 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4286 to the start of the file.
4287
76846b31
GM
42882001-02-16 Gerd Moellmann <gerd@gnu.org>
4289
f3f053f3 4290 * window.c (set_window_buffer): Fix last change.
52283633 4291
f3f053f3
GM
4292 * window.c (set_window_buffer): Set window's vscroll to 0.
4293
dad75588
GM
4294 * window.c (coordinates_in_window): Increase width of area
4295 where the vertical line can be dragged.
4296
c220b753
GM
4297 * xterm.c (x_set_glyph_string_background_width): Extend the
4298 background face to the end of the drawing area in the text
4299 area, only.
4300
c56b1c1b
GM
4301 * xdisp.c (handle_single_display_prop): Set iterator's position
4302 to where the `display' property starts, like for images.
4303 (dump_glyph): New function.
4304 (dump_glyph_row): Use it. Dump info about marginal areas.
4305
4306 * dispnew.c (direct_output_for_insert): Recognize more cases where
4307 glyphs can be written instead of being inserted.
4308
4309 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4310 the left x-coordinate of the area to shift.
4311
76846b31
GM
4312 * dired.c (directory_files_internal): Set result list to nil
4313 before retrying.
4314
0fc71a77
KH
43152001-02-15 Kenichi Handa <handa@etl.go.jp>
4316
4317 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4318 invalid multibyte sequence, treat *SRC as a character of
4319 eight-bit-graphic.
4320
25078b54
EZ
43212001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4322
4323 * textprop.c (Fset_text_properties): Doc fix.
4324
8399f8a0
GM
43252001-02-15 Gerd Moellmann <gerd@gnu.org>
4326
4327 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4328
9a2a6f73
DL
43292001-02-14 Dave Love <fx@gnu.org>
4330
4331 * coding.c: Doc and message fixes.
4332
bf853fee
AI
43332001-02-14 Andrew Innes <andrewi@gnu.org>
4334
4335 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4336 Emacs frame above the screen size.
4337
78c663d8
GM
43382001-02-14 Gerd Moellmann <gerd@gnu.org>
4339
4340 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4341
7cc9f69f
GM
43422001-02-13 Gerd Moellmann <gerd@gnu.org>
4343
0a411995
GM
4344 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4345 case that TO ends up beyond ZV after running before-change-functions.
4346
5ddc1b75
GM
4347 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4348 the selected window if it is showing the buffer in question.
4349
7cc9f69f
GM
4350 * dired.c (directory_files_internal): Initialize errno.
4351 (toplevel): Include errno.h.
4352
2e6621ca
GM
43532001-02-13 Kenichi Handa <handa@etl.go.jp>
4354
4355 * xfaces.c (best_matching_font): New parameter width_ratio.
4356 Multiply avgwidth by width_ratio.
4357 (choose_face_font): Call best_matching_font with width_ratio
4358 calculated from the column width of C.
4359
60222d69
AI
43602001-02-12 Andrew Innes <andrewi@gnu.org>
4361
4362 The following changes are to draw box lines inside characters area
4363 if line-width is negative.
52283633 4364
60222d69
AI
4365 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4366 face->box_line_width is negative.
4367 (x_produce_stretch_glyph): Likewise.
4368 (x_produce_glyphs): Likewise.
4369 (x_estimate_mode_line_height): Likewise.
4370 (x_draw_glyph_string_background): Likewise.
4371 (x_draw_glyph_string_foreground): Likewise.
4372 (x_draw_composite_glyph_string_foreground): Likewise.
4373 (x_draw_glyph_string_box): Likewise.
4374 (x_draw_image_foreground): Likewise.
4375 (x_draw_image_relief): Likewise.
4376 (x_draw_image_foreground_1): Likewise.
4377 (x_draw_image_glyph_string): Likewise.
4378
9804b846
KH
43792001-02-09 Kenichi Handa <handa@etl.go.jp>
4380
4381 The following changes are to draw box lines inside characters area
4382 if line-width is negative.
52283633 4383
9804b846
KH
4384 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4385 face->box_line_width is negative.
4386 (x_produce_stretch_glyph): Likewise.
4387 (x_produce_glyphs): Likewise.
4388 (x_estimate_mode_line_height): Likewise.
4389 (x_draw_glyph_string_background): Likewise.
4390 (x_draw_glyph_string_foreground): Likewise.
4391 (x_draw_composite_glyph_string_foreground): Likewise.
4392 (x_draw_glyph_string_box): Likewise.
4393 (x_draw_image_foreground): Likewise.
4394 (x_draw_image_relief): Likewise.
4395 (x_draw_image_foreground_1): Likewise.
4396 (x_draw_image_glyph_string): Likewise.
4397
4398 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4399 and :line-width can be negative.
52283633 4400 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 4401
49be9f70
JR
44022001-02-09 Jason Rumney <jasonr@gnu.org>
4403
4404 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4405 characters the same as ASCII and latin-1.
4406 (x_display_and_set_cursor): Check for the focus frame's selected
4407 window instead of selected_window.
4408 (x_after_update_window_line): Don't clear if frame's internal
4409 border width is zero.
4410 (x_new_font): Don't change a tooltip's size.
4411 (w32_initialize): Set char_ins_del_ok to 1.
4412
4413 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4414 (x_set_font): If font hasn't changed, avoid recomputing
4415 faces and other things.
52283633
SM
4416 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4417 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
4418 (x_create_tip_frame): Prevent changing the tooltip's
4419 background color by specifying a color for the default font
4420 in .Xdefaults.
4421 (Qcancel_timer): New variable.
4422 (syms_of_w32fns): Initialize and staticpro it.
4423 (Fx_hide_tip, Fx_show_tip): Use it.
4424 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4425 the timer.
4426 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4427
4428 * w32.c (init_environment): Duplicate local string before putenv.
4429
555e35d2
SZ
44302001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4431
4432 * charset.c (Fstring): A typo.
4433
19c92c94
KH
44342001-02-09 Kenichi Handa <handa@etl.go.jp>
4435
e47a1c33
KH
4436 * charset.c (Fstring): If all arguments are less than 256, return
4437 a unibyte string.
4438
4439 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4440 return a unibyte string.
4441
19c92c94
KH
4442 * coding.c (code_convert_region): After detecting a coding, if
4443 nothing found, set coding->composing to COMPOSITION_NO.
4444 (decode_coding_string): Likewise.
4445
d8e675f5
SM
44462001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4447
4448 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4449 to avoid overflow.
4450
bd503487
KH
44512001-02-07 Kenichi Handa <handa@etl.go.jp>
4452
4453 * charset.c (parse_str_to_multibyte): New function.
4454
4455 * charset.h (parse_str_to_multibyte): Extern it.
4456
4457 * print.c (print_string): If we are going to print a unibyte
4458 string into a multibyte buffer, convert the string to multibyte by
4459 str_to_multibyte.
4460
a8370d72
AI
44612001-02-06 Andrew Innes <andrewi@gnu.org>
4462
4463 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4464 been created. It seems we can get sent window messages such as
4465 WM_ERASEBKGND before we properly update a frame.
4466
c363a1d6
GM
44672001-02-06 Gerd Moellmann <gerd@gnu.org>
4468
4469 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4470 Avoid some unnecessary cursor positioning.
4471
a08332c0
GM
44722001-02-05 Gerd Moellmann <gerd@gnu.org>
4473
52283633 4474 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
4475 (LFACE_AVGWIDTH): New macro.
4476 (LFACEP): Use AREF.
4477 (check_lface_attrs): Check LFACE_AVGWIDTH.
4478 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4479 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4480 (merge_face_vectors): Check LFACE_AVGWIDTH.
4481 (Finternal_make_lisp_face): Use AREF.
4482 (xm_set_menu_resources_from_menu_face)
4483 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4484 (Finternal_lisp_face_empty_p): Use AREF.
4485 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4486 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4487 Compare average widths..
4488 (best_matching_font): Arrange for comparing average widths.
4489
52283633
SM
4490 * dispextern.h (enum lface_attribute_index):
4491 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4492
5cb3c8d4
DL
44932001-02-05 Dave Love <fx@gnu.org>
4494
4495 * puresize.h: Revert last change following loadup.el change.
4496
193fba87
AI
44972001-02-05 Andrew Innes <andrewi@gnu.org>
4498
4499 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4500 invocation of temacs, to work with Windows 2000.
4501 (bootstrap-emacs): Ditto.
4502
e16f52ce
GM
45032001-02-05 Gerd Moellmann <gerd@gnu.org>
4504
7a58ab59
GM
4505 * xterm.c (x_display_and_set_cursor): Check for the focus
4506 frame's selected window instead of selected_window.
4507
e89aaabd
GM
4508 * xdisp.c (try_scrolling): If point is in the line below the
4509 window, make sure to move the iterator at least a canonical
4510 char height down.
4511
52283633 4512 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 4513
789ce875
KH
45142001-02-05 Kenichi Handa <handa@etl.go.jp>
4515
52283633
SM
4516 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4517 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
4518 (ccl_driver): If the CCL program is terminated because of
4519 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4520 destination instead of throwing them away.
4521
20b28f82
GM
45222001-02-02 Gerd Moellmann <gerd@gnu.org>
4523
79fb38c0
GM
4524 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4525 faces and other things.
4526
20b28f82
GM
4527 * xdisp.c (get_next_display_element): Fix case of empty
4528 display table entry.
4529
5a72551e
EZ
45302001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4531
eb24d0bf
EZ
4532 * editfns.c (Fconstrain_to_field): Doc fix.
4533
6a3f48c7
EZ
4534 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4535 into `thoroughly', to make it consistent with the doc string.
4536
5a72551e
EZ
4537 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4538
01acdb05
GM
45392001-02-01 Gerd Moellmann <gerd@gnu.org>
4540
0353b28f
GM
4541 * search.c (search_buffer): Call set_search_regs with a byte
4542 position, not a character position.
4543
01acdb05
GM
4544 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4545 minibuffer-only,
4546
e86b5133
EZ
45472001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4548
4549 * frame.c (Fmodify_frame_parameters): Doc fix.
4550
7442878f
GM
45512001-01-31 Gerd Moellmann <gerd@gnu.org>
4552
01acdb05
GM
4553 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4554 identifier which is not reserved by Standard C.
52283633 4555
7442878f
GM
4556 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4557
4558 * window.c (enum window_part): New enumeration.
4559 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4560 Qright_bitmap_area.
4561 (coordinates_in_window): Return an enumerator from enum
4562 window_part. Fix handling of right scroll bar.
4563 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4564 `right-fringe' instead of `left-bitmap-area' and
4565 `right-bitmap-area'. Use enumerators from enum window_part
4566 instead of hard-coded integers.
52283633
SM
4567 (check_window_containing, window_from_coordinates):
4568 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
4569 (syms_of_window): Replace Qleft_bitmap_area and
4570 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4571
7c132cba
EZ
45722001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4573
4574 * editfns.c (Fformat_time_string): Doc fix.
4575
c359dd9e
SM
45762001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4577
4578 * keymap.c (Fwhere_is_internal): Use the first valid binding
4579 if no ascii binding is found (when firstonly is t).
4580
ce070307
GM
45812001-01-31 Gerd Moellmann <gerd@gnu.org>
4582
b4f30ec5
GM
4583 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4584 instead of Finteractive_p.
4585
4586 * lisp.h (interactive_p): Add prototype.
4587
4588 * eval.c (interactive_p): New function.
4589 (Finteractive_p): Use it.
4590
ce070307
GM
4591 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4592
f57b6e64
DL
45932001-01-31 Dave Love <fx@gnu.org>
4594
d61c7afe
DL
4595 * .gdbinit (hook-run): Define to run xreload.
4596
f57b6e64
DL
4597 * textprop.c (Fset_text_properties): Fix newline in doc string.
4598
eef93f99
GM
45992001-01-30 Gerd Moellmann <gerd@gnu.org>
4600
52283633
SM
4601 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4602 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
4603
4604 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 4605 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
4606 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4607
4608 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4609 height.
4610
d9c1f6f9
DL
46112001-01-30 Dave Love <fx@gnu.org>
4612
4613 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4614 AFTER_POTENTIAL_GC.
4615
e8f044a0
GM
46162001-01-29 Gerd Moellmann <gerd@gnu.org>
4617
52283633
SM
4618 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4619 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 4620
8e1db7b3
EZ
46212001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4622
4623 * textprop.c (Fset_text_properties): Doc fix.
4624
4eefd9d2
GM
46252001-01-29 Gerd Moellmann <gerd@gnu.org>
4626
4627 * xdisp.c (forward_to_next_line_start): Remove xassert.
4628
fccb8288
EZ
46292001-01-29 Jason Rumney <jasonr@gnu.org>
4630
4eefd9d2 4631 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
4632 returning without releasing it.
4633
76581eab
KH
46342001-01-29 Kenichi Handa <handa@etl.go.jp>
4635
4636 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4637 for '^', '$', and '\0'.
4638
83a96b4d
AC
46392001-01-28 Andrew Choi <akochoi@i-cable.com>
4640
5604ec34
AC
4641 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4642 regex for '^', '$', and '\0'.
4643
83a96b4d
AC
4644 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4645 only if current_sblock has been initialized.
4646
4647 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4648 terminal frame even if it is the only visible frame.
4649
c09a6440
KH
46502001-01-28 Kenichi Handa <handa@etl.go.jp>
4651
4652 * fontset.c (font_family_registry): Even if FONTNAME conform to
4653 XLFD, if it specifies other fields than family and registry,
52283633 4654 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 4655 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
4656 a signle byte character. Don't set FAMILY part to nil here.
4657 It is handled by the caller choose_face_font.
c09a6440
KH
4658 (Fnew_fontset): Call font_family_registry with FORCE 0.
4659 (Fset_fontset_font): Likewise.
4660
4dcd74e6
GM
46612001-01-27 Gerd Moellmann <gerd@gnu.org>
4662
4663 * xdisp.c (display_line): Don't treat a newline as fitting
4664 on the line.
4665
d2906bf8
GM
46662001-01-26 Gerd Moellmann <gerd@gnu.org>
4667
0130fe1a
GM
4668 * window.c (size_window): Set the window's orig_top to nil when
4669 changing heights, so that a future shrink_mini_window won't
4670 restore a bogus height.
4671
550f0e6a
GM
4672 * frame.c (do_switch_frame): If selected frame has a mini-window,
4673 resize that to exact size.
4674
b7b20fbd
GM
4675 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4676
a47b7816
GM
4677 * xdisp.c (display_line): Simplify check for glyphs fitting
4678 entirely in the line.
4679
d2906bf8
GM
4680 * xfns.c (xic_style): New variable.
4681 (create_frame_xic): Move static variable to global scope for
550f0e6a 4682 the case that `static' gets defined away.
d2906bf8 4683
73df2b1e
KH
46842001-01-26 Kenichi Handa <handa@etl.go.jp>
4685
4686 * coding.c (decode_coding): Set a flag for inhibiting
4687 inconsistent eol.
4688 (code_convert_region): Always set saved_coding_symbol.
4689 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 4690 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 4691
6613cfc4
GM
46922001-01-25 Gerd Moellmann <gerd@gnu.org>
4693
c5e6e06b
GM
4694 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4695 XClearArea.
4696
4697 * xterm.c (x_after_update_window_line): Don't clear if frame's
4698 internal border width is zero.
4699 (x_clear_area): New function.
4700 (x_after_update_window_line, x_clear_end_of_line)
4701 (x_scroll_bar_create, x_scroll_bar_set_handle)
4702 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4703 instead of XClearArea.
4704
4705 * xterm.h (x_clear_area): Add prototype.
4706
6613cfc4
GM
4707 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4708 which doesn't seem necessary anymore with Lesstif 0.92.
4709
650cc6cc
DL
47102001-01-25 Dave Love <fx@gnu.org>
4711
34ac3367
DL
4712 * puresize.h (BASE_PURESIZE): Up to 720000.
4713
650cc6cc
DL
4714 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4715
5e37dc22
GM
47162001-01-25 Gerd Moellmann <gerd@gnu.org>
4717
e1e441f9
GM
4718 * xdisp.c (echo_area_display): Don't call redisplay_internal
4719 when Emacs is shutting down. We can't run hooks etc. that
4720 would be necessary to do a redisplay.
4721
5e37dc22
GM
4722 * lread.c (read_integer): Use type EMACS_INT instead of int.
4723
0fb94c7f
EZ
47242001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4725
4726 * ccl.c (ccl_driver): Fix last change.
4727
e3778624
KH
47282001-01-25 Kenichi Handa <handa@etl.go.jp>
4729
4730 * ccl.h (sturct ccl_program): New member suppress_error.
4731
bb264518 4732 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
4733 insert error message to the output.
4734 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4735
4736 * coding.h (struct coding_system): New member suppress_error.
4737
4738 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4739 (Fset_terminal_coding_system_internal): Set the member
4740 suppress_error to 1.
4741 (Fset_safe_terminal_coding_system_internal): Likewise.
4742
245ed2b1
SM
47432001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4744
4745 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4746 as if it was a `charset'.
4747
f9aaedb6
GM
47482001-01-24 Gerd Moellmann <gerd@gnu.org>
4749
4750 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4751 value in where_is_cache; the next lookup in the cache returns
4752 something bogus if we do.
4753
c3902c3e
EZ
47542001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4755
4756 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4757 if HAVE_WINDOW_SYSTEM isn't defined.
4758
3497f73e
GM
47592001-01-24 Gerd Moellmann <gerd@gnu.org>
4760
e7e41584
GM
4761 * fns.c (sweep_weak_table): Fix code taking items out of
4762 the hash collision chain. Some cleanup.
4763
3497f73e
GM
4764 * xterm.c (x_new_font): Don't change a tooltip's size.
4765
4766 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4767 background color by specifying a color for the default font
4768 in .Xdefaults.
4769
3d48e687
KH
47702001-01-24 Kenichi Handa <handa@etl.go.jp>
4771
96531b20
KH
4772 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4773 a workaround for SunOS 4's cc.
4774 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4775 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4776 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4777 statement.
3d48e687 4778
a30629d2
GM
47792001-01-23 Gerd Moellmann <gerd@gnu.org>
4780
4781 * xterm.c (x_set_window_size_1): New function extracted from
4782 x_set_window_size.
4783 (x_set_window_size): Use it.
4784 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4785 doesn't have a widget, like tooltips.
4786
5a43decf
EZ
47872001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4788
52283633 4789 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 4790
b0e98867
KH
47912001-01-23 Kenichi Handa <handa@etl.go.jp>
4792
4793 * fns.c (Fset_char_table_default): Fix to make sub char-table
4794 correctly.
4795
50606b4c
GM
47962001-01-22 Gerd Moellmann <gerd@gnu.org>
4797
cb2ddc53 4798 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
4799 a desired tool bar string, even if there are no tool bar items.
4800
57c28064
GM
4801 * xdisp.c (Ftool_bar_lines_needed): New function.
4802 (syms_of_xdisp): Defsubr it.
4803
50606b4c
GM
4804 * editfns.c (Fformat): Don't extend text properties from arguments
4805 to padding chars in the result.
4806
2f169c38
EZ
48072001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4808
4809 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4810
0f32f023
AI
48112001-01-20 Andrew Innes <andrewi@gnu.org>
4812
52283633 4813 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
4814 (w32_initialize): Don't set term hooks that aren't actually needed
4815 in windowed mode.
4816
4817 * xfaces.c (realize_default_face):
4818 (realize_face):
4819 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4820
4821 * xdisp.c (handle_single_display_prop): Remove references to
4822 FRAME_W32_CONSOLE_P.
4823
52283633 4824 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
4825
4826 * frame.h (output_method): Remove output_w32_console method.
4827 (FRAME_W32_CONSOLE_P): Remove macro.
4828
4829 * frame.c (Qw32_console): Remove variable.
4830 (Fframep): Remove references to it.
4831 (syms_of_frame): Ditto.
4832 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4833
4834 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4835 redefinition.
4836
7173eada
KH
48372001-01-20 Kenichi Handa <handa@etl.go.jp>
4838
4839 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4840
755b45ce
AI
48412001-01-19 Andrew Innes <andrewi@gnu.org>
4842
4843 * w32.c (init_environment): Add a version-independent site-lisp
4844 directory to EMACSLOADPATH, after the version dependent one.
4845
0a949811
GM
48462001-01-19 Gerd Moellmann <gerd@gnu.org>
4847
8501998a
GM
4848 * editfns.c (Fbuffer_substring): Doc fix.
4849
52283633
SM
4850 * xdisp.c (message_dolog, message2, message2_nolog):
4851 Rename parameter LEN to NBYTES.
0a949811 4852
e6ebcbbe
KH
48532001-01-19 Kenichi Handa <handa@etl.go.jp>
4854
200ecca2
KH
4855 * charset.c (strwidth): Use c_string_width.
4856 (c_string_width): New function.
4857 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
4858 Caller changed.
4859
4860 * charset.h (c_string_width, lisp_string_width): Extern them.
4861
52283633 4862 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 4863
e6ebcbbe
KH
4864 * indent.c (check_composition): Check validity of composition.
4865
200ecca2
KH
4866 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4867 characters by calling c_string_width.
4868 (x_consider_frame_title): Get byte length of frame tile string
4869 correctly.
4870 (display_mode_element): Pay attention to width of non-ASCII
4871 characters by calling strwidth.
4872
8692ca92
GM
48732001-01-18 Gerd Moellmann <gerd@gnu.org>
4874
8962e303
GM
4875 * xfns.c (Qcancel_timer): New variable.
4876 (syms_of_xfns): Initialize and staticpro it.
4877 (Fx_hide_tip, Fx_show_tip): Use it.
4878 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4879 the timer.
4880 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4881
91523be9
GM
4882 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4883
4884 * window.h (WINDOW_LIVE_P): New macro.
4885
b0b7ed0e
GM
4886 * window.c (window_size_fixed): New variable.
4887 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4888 the doc string.
4889
06bccf8e
GM
4890 * eval.c (specbind): If binding a per-buffer variable which
4891 doesn't have a buffer-local value in the current buffer, change
4892 the global value by changing the value of the symbol bound in all
4893 buffers not having their own value, to make it consistent with
4894 what happens with other buffer-local variables.
4895
8692ca92
GM
4896 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4897
4898 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4899 when searching for a newline.
4900
bb3a3b50
KH
49012001-01-18 Kenichi Handa <handa@etl.go.jp>
4902
4903 * xdisp.c (display_string): Fix previous change.
4904
c2cc16fa
JR
49052001-01-18 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4908 GLYPH_DEBUG is defined.
4909 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4910 true for images with `:ascent 100'.
4911 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4912 meantime, use face MOUSE_FACE_ID.
4913 If first glyph isn't a character glyph, use the ASCII NUL
4914 character to determine the face.
4915 (expose_area): Do not treat left margin specially.
4916 (note_mode_line_highlight): If no local_map, check global keymap.
4917 (note_mouse_highlight): Initialize overlay.
52283633 4918 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
4919 (show_scroll_bars): Remove unused function.
4920 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4921 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4922 Clip to row.
52283633 4923 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
4924 (x_free_frame_resources): Unload relief colors.
4925
9c11f79e
GM
49262001-01-17 Gerd Moellmann <gerd@gnu.org>
4927
3aec8722 4928 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
4929 get_next_display_element when the newline is already found.
4930 This may change the iterator's position, when its current position is
3aec8722
GM
4931 equal to the iterator's stop_charpos.
4932
f3ffc2c3
GM
4933 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4934 zero, use this method only at the end of a line.
4935
52283633 4936 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
4937 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4938 if SCALABLE_FONTS_P is set.
52283633 4939
d26d6fd9
GM
4940 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4941 so that scalable fonts are included.
4942
9c11f79e
GM
4943 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4944 In the cache, use a key containing the information if scalable
4945 fonts are included.
4946 (x_load_font): Adapt to change of keys in the font cache.
4947
49482001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 4949
d26d6fd9
GM
4950 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4951 XListFonts to take advantage of font caching.
4952
9c11f79e
GM
4953 * xterm.c (x_list_fonts): Ensure caching font information when
4954 called for a null frame, which is the case frequently when Emacs
4955 starts.
4956
51446987
GM
49572001-01-17 Gerd Moellmann <gerd@gnu.org>
4958
f864120f
GM
4959 * xfns.c (QCconversion): Replaces QCalgorithm.
4960
4961 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4962
4963 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4964 of :algorithm.
52283633 4965
e37d1417
GM
4966 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4967 not everything could be displayed.
4968
51446987
GM
4969 * line.h, x-list-font.c: Files removed because unused.
4970
9ad4f3e5
AI
49712001-01-17 Andrew Innes <andrewi@gnu.org>
4972
4973 * dired.c (directory_files_internal): Convert result from readdir
4974 to a unibyte string initially, to avoid possible misinterpretation
4975 of some bytes as the internal form of Emacs characters.
4976
2eda09b5
KH
49772001-01-17 Kenichi Handa <handa@etl.go.jp>
4978
4979 * fns.c (concat): Be sure to avoid putting the same `composition'
4980 property on the adjacent regions.
4981
826f3788
GM
49822001-01-16 Gerd Moellmann <gerd@gnu.org>
4983
52283633 4984 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
4985 (Fscroll_right, Fscroll_left): Set it here instead, if called
4986 interactively.
4987
d57b83b3
GM
4988 * buffer.c (Fset_buffer_modified_p): Set buffer's
4989 prevent_redisplay_optimizations_p flag.
4990
826f3788 4991 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
4992 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
4993 with additional arg.
4994
4995 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
4996 Change prototype.
826f3788 4997
826f3788
GM
4998 * xdisp.c (redisplay_preserve_echo_area): Add parameter
4999 FROM_WHERE, for debugging.
5000
261d788b
KH
50012001-01-16 Kenichi Handa <handa@etl.go.jp>
5002
5003 * ccl.c (Fregister_ccl_program): Handle the return value of
5004 resolve_symbol_ccl_program correctly.
52283633 5005 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 5006
bccee4f2
GM
50072001-01-15 Gerd Moellmann <gerd@gnu.org>
5008
e4ded23c
GM
5009 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5010 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
5011
5012 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5013 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
5014 the display; we didn't open it.
5015
bccee4f2
GM
5016 * dispnew.c (save_or_restore_current_matrices): Function removed.
5017 (save_current_matrix, restore_current_matrix): New functions.
5018 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5019 restore the frame's current matrix. Due to the glyph pointer
5020 setup done in adjust_glyph_matrix, there is no easy way to make
5021 saving the current matrix in the desired matrix generally correct,
5022 so don't try it.
5023
ebeccffa
KH
50242001-01-15 Kenichi Handa <handa@etl.go.jp>
5025
5026 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5027 truncation glyphs.
5028 (display_line): Optimize for wide characters.
e4ded23c 5029 (display_string): Don't try to display a multi-column character
ebeccffa
KH
5030 partially. On ttys, produce more than one truncation glyph for
5031 multi-column characters that don't fit on the line.
5032
64388126
KH
50332001-01-13 Kenichi Handa <handa@etl.go.jp>
5034
52283633
SM
5035 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5036 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 5037
8edb0a6f
JR
50382001-01-13 Jason Rumney <jasonr@gnu.org>
5039
5040 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5041 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
5042 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5043 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 5044
52283633
SM
5045 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5046 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
5047 (x_draw_image_glyph_string): Adapt to change of image margins.
5048
5049 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5050 variables.
5051
5052 * w32bdf.c (search_file_line, get_cached_font_char)
5053 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5054
5055 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5056
5057 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5058 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5059 (Fw32_send_sys_command): Remove unused variables.
5060 (w32_msg_pump): Add parentheses.
5061
5062 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5063 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5064 Add parentheses.
5065
4956d1ef
GM
50662001-01-12 Gerd Moellmann <gerd@gnu.org>
5067
b30623be
GM
5068 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5069 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5070 being a pair of margins.
5071 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5072 to DEFVAR_LISP. Extend doc.
5073
5074 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5075 margins.
5076 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5077 pair of integers `(X . Y)', use X for the horizontal and Y for the
5078 vertical margin.
5079 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5080 (parse_image_spec): Check it.
52283633
SM
5081 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5082 (tiff_format, gif_format, gs_format):
5083 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 5084
52283633
SM
5085 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5086 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
5087 (x_draw_image_glyph_string): Adapt to the change of image margins.
5088
5089 * dispextern.h (struct image): Replace member `margin' with
5090 `hmargin' and `vmargin'.
5091
4554cc79
GM
5092 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5093 and GLYPHS.
5094
5095 * dispnew.c (update_text_area): Put code which decrements the
5096 stop position when the row's face extends to the end of the
3bffc665 5097 line in #if 0.
4554cc79 5098
3cccce8d
GM
5099 * xfns.c (x_set_mouse_color): Fix color allocation.
5100
4956d1ef
GM
5101 * keyboard.c: Call get_local_map with new argument list.
5102
5103 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5104
5105 * intervals.h (enum map_property): Removed.
5106 (get_local_map): Change prototype.
5107
5108 * keymap.c: Call get_local_map with new argument list.
5109 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5110
2c2ff7f2
GM
51112001-01-11 Gerd Moellmann <gerd@gnu.org>
5112
a23887b9
GM
5113 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5114 of the size needed for the tool bar string. For the last image,
5115 use a `display' property that reaches to the end of the string.
5116
a7ee2d2e
GM
5117 * xselect.c (selection_request_dpyinfo): New variable.
5118 (x_handle_selection_request): Set it.
5119 (x_selection_request_lisp_error): Don't call
5120 x_decline_selection_request if selection request's display has
5121 been closed.
5122
52283633
SM
5123 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5124 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 5125
457b792c
GM
51262001-01-10 Dave Love <fx@gnu.org>
5127
5128 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5129 ${SOME_MACHINE_LISP}, not ${lisp}.
5130
c1efd260
GM
51312001-01-10 Gerd Moellmann <gerd@gnu.org>
5132
52283633
SM
5133 * xdisp.c (display_line): On ttys, produce more than one truncation
5134 glyph for multi-column characters that don't fit on the line.
a98b5ed9 5135
ac95a621
GM
5136 * xselect.c (x_reply_selection_request): Add a comment.
5137
c1efd260
GM
5138 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5139 XkbGetNames instead of XkbGetKeyboard.
5140
1bfb1345
DL
51412001-01-10 Dave Love <fx@gnu.org>
5142
5143 * sysdep.c (random): Revert the declaration.
5144
38119822
GM
51452001-01-09 Gerd Moellmann <gerd@gnu.org>
5146
52283633
SM
5147 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5148 Call function string_bytes.
35f464a7
GM
5149 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5150
5151 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5152 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5153 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5154 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5155 the current sblock.
5156 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5157 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5158 after sweeping strings, and at the end.
5159 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5160
38119822
GM
5161 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5162 ensure that pop_message is called.
5163
5164 * keyboard.c (Fexecute_extended_command): Use a
5165 record_unwind_protect to ensure that pop_message is called.
5166
5167 * lisp.h (push_message_unwind): Add prototype.
5168
5169 * xdisp.c (push_message_unwind): New function.
5170
5171 * fileio.c (do_auto_save_unwind): Do the pop_message here
5172 instead of in Fdo_auto_save.
5173 (Fdo_auto_save): Don't call pop_message.
5174
f47a9ec4
KR
51752001-01-08 Ken Raeburn <raeburn@gnu.org>
5176
5177 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5178 in inner block.
5179
a758f97d
GM
51802001-01-08 Gerd Moellmann <gerd@gnu.org>
5181
6d0afc03
GM
5182 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5183 when increasing window's vscroll.
5184
a758f97d
GM
5185 * macros.c (Qkbd_macro_termination_hook): New variable.
5186 (syms_of_macros): Initialize and staticpro it.
5187 (pop_kbd_macro): Run kbd-macro-termination-hook.
5188
5189 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5190
1bfb1345 51912001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
5192
5193 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5194 arglist, for documentation's sake.
5195
0dac6924
AI
51962001-01-06 Andrew Innes <andrewi@gnu.org>
5197
5198 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5199 of *.pdb.
5200
8182406a
AI
52012001-01-05 Andrew Innes <andrewi@gnu.org>
5202
5203 * term.c (update_end): Don't check updating_frame; for some reason
5204 this can be 0 sometimes, such as after dismissing a popup menu,
5205 and isn't necessary given the explicit frame argument.
5206
3828218c
GM
52072001-01-05 Gerd Moellmann <gerd@gnu.org>
5208
5209 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5210 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5211
2f5ded21
GM
52122001-01-04 Gerd Moellmann <gerd@gnu.org>
5213
52283633 5214 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
5215
5216 * xfns.c (x_create_tip_frame): Preserve the value of
5217 face_change_count around the creation of the tip frame.
52283633 5218
2f5ded21
GM
5219 * xfns.c (last_show_tip_args): New variable.
5220 (compute_tip_xy): New function.
5221 (Fx_show_tip): Reuse an existing tip frame, if possible.
5222 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5223
dfad65fa
DL
52242001-01-04 Dave Love <fx@gnu.org>
5225
64d4ec0f
DL
5226 * editfns.c (Fformat): Doc fix.
5227
dfad65fa
DL
5228 * systime.h (set_file_times): Prototype.
5229
5230 * widget.h (EmacsFrameSetCharSize_): Prototype.
5231
5232 * sysdep.c (random, srandom): Declare explicitly.
5233
5234 * dispextern.h (move_it_vertically_backward): Declare.
5235
85fe3b5e
GM
52362001-01-04 Gerd Moellmann <gerd@gnu.org>
5237
0f2ac578
GM
5238 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5239 like in Fx_create_frame.
5240
482cca61
GM
5241 * xfaces.c (set_font_frame_param): Don't do anything for
5242 non-graphical frames.
5243
85fe3b5e
GM
5244 * window.c (Fdelete_other_windows): Set window's window_end_valid
5245 to nil when changing the window's start. Don't change the
5246 window's start when its top position hasn't changed. If we do,
5247 this will set the window's optional_new_start, which act's like a
5248 force_start during redisplay with C-x 1 M-> under particular
5249 circumstances (see report from Per Starback to emacs-pretest-bug
5250 from 2000-12-13.).
5251
3e99d3b4
GM
52522001-01-03 Gerd Moellmann <gerd@gnu.org>
5253
a77dc1ec
GM
5254 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5255 short cut at the start of the function. Add an assertion.
5256 (reseat_at_next_visible_line_start): Add an assertion.
5257
2f3cad6c
GM
5258 * window.c (Frecenter): When changing the window start, set the
5259 window's window_end_valid to nil.
5260 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5261
5262 * dispextern.h (move_it_past_eol): Add prototype.
5263
5264 * xdisp.c (move_it_past_eol): New function.
5265
3e99d3b4
GM
5266 * window.c (Fwindow_end): Doc fix.
5267
52682001-01-03 Dave Love <fx@gnu.org>
5269
52283633 5270 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 5271
bafb434c
GM
52722001-01-03 Gerd Moellmann <gerd@gnu.org>
5273
5274 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5275 the enabled_p flag of the glyph row at window_end_vpos to 0.
5276 (handle_single_display_prop): Fix last change.
5277
5297fb00
RS
52782001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5279
5280 * window.c (Frecenter): Doc fix.
5281
13d6a61c
AI
52822001-01-02 Andrew Innes <andrewi@gnu.org>
5283
5284 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5285
5286 * frame.h (output_method): Add output_w32_console method.
5287 (FRAME_W32_CONSOLE_P): New macro.
5288
5289 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5290 use output_w32_console method.
5291 (Qw32_console): New Lisp_Object.
5292 (Fframep): Return it.
5293 (syms_of_frame): Init it.
52283633 5294 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
5295
5296 * xfaces.c (realize_default_face): Set face foreground and
5297 background to unspecified for w32_console frames.
5298 (realize_face): Realize face cache for w32_console frames.
5299 (realize_tty_face): Accept w32_console frames.
5300
52283633 5301 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
5302 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5303 necessary, even if running interactively.
5304
5305 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5306 w32_console frames.
5307
52283633
SM
5308 * w32term.c (x_update_begin):
5309 (x_update_end):
5310 (x_clear_frame):
5311 (x_ins_del_lines):
5312 (x_change_line_highlight):
5313 (x_delete_glyphs):
5314 (w32_ring_bell):
5315 (x_update_begin):
5316 (x_update_end):
5317 (w32_reassert_line_highlight):
5318 (w32_frame_rehighlight):
13d6a61c
AI
5319 (w32_frame_raise_lower): Do nothing if not w32 frame.
5320
5321 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5322
5323 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5324 system doesn't tell us directly.
5325 (Fx_display_visual_class): Implement properly.
5326
d6bb0c0d
GM
53272001-01-02 Gerd Moellmann <gerd@gnu.org>
5328
5329 * window.c (Frecenter): Handle centering in graphical frames
5330 specially. Centering on the basis of line counts doesn't work
5331 reliably with variable-height lines.
52283633 5332
315f5865
EZ
53332001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5334
5335 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5336 and al[].
5337
52283633 5338 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
5339 (update_compositions): Remove unused variable `hook'.
5340
5341 * intervals.c (get_local_map): Remove unused variable `tem'.
5342
5343 * doprnt.c (doprnt1): Remove unused variable `size'.
5344
5345 * fns.c (Flength): Remove unused variable `tail'.
5346 (Fdelete): Remove unused variable `size'.
5347
5348 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5349 and `gcpro2'.
5350
52283633 5351 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
5352
5353 * data.c (find_symbol_value): Remove extra 3rd argument in the
5354 call to swap_in_symval_forwarding.
5355
52283633 5356 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
5357
5358 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5359 (trivial_regexp_p): Remove unused variable `c'.
5360 (boyer_moore): Remove unused variable `k'.
5361
5362 * indent.c (current_column): Remove unused variable `stopchar'.
5363 (Fcompute_motion): Remove unused variable `contin'.
5364
5365 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5366
5367 * dired.c (directory_files_internal): Fix a typo in a comment.
5368 Remove an unused variable `handler'.
52283633 5369 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
5370 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5371 on BSD4_2.
5372
52283633 5373 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
5374
5375 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5376 and `buf'.
5377 (Fmarker_insertion_type): Remove unused variable `buf'.
5378
5379 * insdel.c (make_gap): Remove unused variable `result'.
5380
52283633 5381 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
5382 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5383 (menu_bar_items): Remove unused function-scope variable `tem'.
5384
5385 * fontset.c (fontset_ref): Remove unused variable `i'.
5386 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 5387 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
5388 (make_fontset_for_ascii_face): Remove unused variable `name'.
5389 (fs_load_font): Remove unused variable `font_idx'.
52283633 5390 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
5391 (list_fontsets): Remove unused variable `tail'.
5392 (Fnew_fontset): Remove unused variables `family' and `registry'.
5393 (accumulate_font_info): Remove unused variable `tmp'.
5394 (Ffontset_font): Remove unused variable `id'.
5395 (syms_of_fontset): Remove unused variable `i'.
5396
5397 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5398 to x_term_init.
5399 (lookup_image): Remove unused variable `file'.
5400 (xbm_load): Remove unused variables `bitmap_data', `height', and
5401 `width'. Remove function-local variable `i', leave the
5402 block-local one.
5403 (gif_load): Remove unused variable `inc'.
5404
52283633 5405 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
5406 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5407 leave only the one in the inner block.
5408
5409 * xfaces.c (face_fontset, realize_default_face): Remove unused
5410 variable `fontset'.
5411 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5412
5413 * term.c (encode_terminal_code): Remove unused variable `c'.
5414
5415 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5416 char *' instead of `char *'.
5417
5418 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 5419 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
5420 (Fchar_category_set): Remove unused variables `val', `charset',
5421 `c1' and `c2'.
5422
52283633
SM
5423 * coding.c (detect_coding_iso2022, setup_coding_system):
5424 Remove unused variable `i'.
315f5865
EZ
5425 (detect_coding_mask): Remove unused variable `idx'.
5426 (detect_coding): Remove unused variable `i'.
5427 (ccl_coding_driver): Remove unused variable `result'.
5428 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 5429 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
5430 (encode_coding_string): Remove unused variables `gcpro1' and
5431 `saved_coding_symbol'.
5432 (Ffind_coding_systems_region_internal): Remove function-local
5433 variable args[], leave only the block-local one.
5434 (code_convert_region1): Remove unused variable `len'.
5435
5436 * charset.c (char_printable_p): Remove unused variable `chars'.
5437 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5438 (str_to_multibyte): Remove unused variable `c'.
5439
5440 * window.c (size_window): Remove block-local variable `min_size'.
5441
5442 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5443 `header_line_height'.
5444 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5445 enum display_element_type.
5446
1a8a9daf
GM
54472001-01-02 Gerd Moellmann <gerd@gnu.org>
5448
6dde6abc 5449 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
5450 statements that call X. Save away the error message in a local copy.
5451
1883b2c6
GM
5452 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5453 the start.
5454
a13be207
GM
5455 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5456 in or at the start of invisible text.
5457
1a8a9daf
GM
5458 * dispnew.c (update_window): Don't check_current_matrix_flags.
5459
3608c0f9
JR
54602001-01-01 Jason Rumney <jasonr@gnu.org>
5461
5462 * w32fns.c (x_figure_window_size): Do not allow new_height and
5463 new_width of frame to override specified values.
5464
abb1acc4
KH
54652000-12-30 Kenichi Handa <handa@etl.go.jp>
5466
52283633 5467 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 5468
762a68ec
GM
54692000-12-29 Gerd Moellmann <gerd@gnu.org>
5470
52283633 5471 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
5472 (update_window) [GLYPH_DEBUG]: Call it.
5473 (scrolling_window): Prevent including current rows which are below
5474 what's displayed in the window.
5475
5476 * xdisp.c (try_window_reusing_current_matrix)
5477 <new start <= old start>: Disable rows in the current matrix
5478 which are below the window after scrolling.
52283633 5479
762a68ec
GM
5480 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5481 is zero. It's not worth the complexity.
5482 (invisible_text_between_p): Put in #if 0 because unused.
5483
2d5912c1
GM
54842000-12-28 Gerd Moellmann <gerd@gnu.org>
5485
46f6a258
GM
5486 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5487 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5488
89f93679
GM
5489 * keyboard.c (echo_char): If C is an integer, always call
5490 push_key_description. Former code could signal an invalid
5491 character error.
5492
5493 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5494 If set, print multibyte text.
5495 (Fsingle_key_description): Call push_key_description with
5496 FORCE_MULTIBYTE set.
5497 (describe_buffer_bindings): Likewise.
5498
5499 * lisp.h (push_key_description): Add prototype.
5500
c06017fb
GM
5501 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5502 around the call to redisplay_internal.
5503
f1d2ce7f
GM
5504 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5505
2d5912c1
GM
5506 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5507
9371f831
KH
55082000-12-28 Kenichi Handa <handa@etl.go.jp>
5509
5510 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5511 (ccl_driver): New local variable `extra_bytes'.
5512
5513 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5514
52283633
SM
5515 * coding.c (setup_coding_system):
5516 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
5517 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5518
0c80628a
KH
55192000-12-28 Kenichi Handa <handa@etl.go.jp>
5520
5521 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5522 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5523 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5524 (decode_composition_emacs_mule): New function.
5525 (decode_coding_emacs_mule): Decode composition sequence by calling
5526 decode_composition_emacs_mule.
5527 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
5528 (encode_coding_emacs_mule): Changed from macro to function.
5529 If a text contains compositions, encode them correctly.
0c80628a
KH
5530 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5531 that decoding and encoding are required.
5532
3e32cc27
GM
55332000-12-27 Gerd Moellmann <gerd@gnu.org>
5534
5e25feee
GM
5535 * xfaces.c (PT_PER_INCH): New macro.
5536 (xlfd_point_size): Compute real point size from font's pixel size.
5537 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5538 instead of 72.
5539
892d8fcd
GM
5540 * .gdbinit: Comment out the line pointing to the Lesstif source
5541 directory.
5542
12c8b416
GM
5543 * window.c (Frecenter): Use displayed_window_lines instead
5544 of window_internal_height.
5545
6061fbf0
GM
5546 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5547 instead of x-toolkit-scroll-bars-p.
5548 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5549
5550 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5551 instead of x-toolkit-scroll-bars-p.
5552 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 5553
3e32cc27
GM
5554 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5555 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
5556 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5557 New variables.
5558 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
5559 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5560 (build_frame_matrix_from_leaf_window): Remove unused code.
5561 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5562 redisplay history.
5563 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5564 (update_window) [GLYPH_DEBUG]: Likewise.
5565 (syms_of_display): Defsubr dump-redisplay-history.
5566
31798cfe
GM
55672000-12-23 Gerd Moellmann <gerd@gnu.org>
5568
f717c2ba
GM
5569 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5570 the end of the prompt. Set echo_after_prompt to the offset
5571 of echoptr in echobuf.
5572
aeb2b8fc
GM
5573 * xdisp.c (init_from_display_pos): Pop until the iterator's
5574 stack is empty; there may be frames for stretch or images
5575 on the stack.
5576
31798cfe
GM
5577 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5578 (save_or_restore_current_matrix): New function for the same
5579 purpose, but more efficient.
5580 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5581
f8156156
EZ
55822000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5583
5584 * xdisp.c (syms_of_xdisp): Fix last change.
5585
bdd6d4e8
GM
55862000-12-23 Gerd Moellmann <gerd@gnu.org>
5587
5588 * xdisp.c (syms_of_xdisp): Doc fix.
5589
5590 * xdisp.c (redisplay_window): Remove label restore_buffers;
5591 use finish_scroll_bars instead to make sure that scroll bars
5592 are redeemed. If we don't do this, flickering can result from
5593 scroll bars being destroyed and recreated.
5594
9436cdf9
JR
55952000-12-22 Jason Rumney <jasonr@gnu.org>
5596
5597 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5598 in the wrong colors when the foreground is not black.
5599 (expose_window): Don't redraw the window that's currently being
5600 updated.
5601
951f9df5
GM
56022000-12-22 Gerd Moellmann <gerd@gnu.org>
5603
856ff7a7
GM
5604 * window.c (size_window): When setting the window's too_small_ok
5605 flag, compare old size with minimum size depending on WIDTH_P,
5606 don't compare with window_min_width.
52283633 5607
951f9df5
GM
5608 * window.c (delete_window): Simplify somewhat.
5609 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5610 freeing window matrices. The flag windows_or_buffers_changed is
5611 set, so the next redisplay will consider all windows; this should
5612 suffice.
5613
886bc933
KH
56142000-12-22 Kenichi Handa <handa@etl.go.jp>
5615
5616 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5617
5618 * ccl.h (struct ccl_program): New member cr_consumed.
5619
5620 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5621 (CCL_READ_CHAR): Handle EOL conversion here.
5622 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5623
177f4e88
GM
56242000-12-21 Gerd Moellmann <gerd@gnu.org>
5625
52283633 5626 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
5627
5628 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5629 otherwise tabs of different size compare equal.
5630
5631 * callint.c (Fcall_interactively): Prevent a compiler warning.
5632
5633 * print.c (print_unwind): Return nil.
5634 (PRINTDECLARE): Initialize all local variables.
5635 (print_preprocess): Add a default case.
5636
8e15274f
GM
5637 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5638
5639 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5640
52283633 5641 * window.c (delete_window, Fsplit_window)
177f4e88
GM
5642 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5643
5644 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5645
5646 * dispnew.c (ensure_frame_matrix): Removed.
5647 (save_frame_matrix, restore_frame_matrix): New functions.
5648 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5649
5650 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5651 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5652
99012074
AI
56532000-12-21 Andrew Innes <andrewi@gnu.org>
5654
5655 * w32term.c (x_update_begin): Regenerate the palette here, rather
5656 than for each window.
5657
5658 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5659 palette is NULL, since this corrupts memory! Also get
5660 display_info reference from frame.
5661
29ef7d2d
JR
56622000-12-21 Jason Rumney <jasonr@gnu.org>
5663
5664 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5665
5666 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5667 to avoid returning without releasing it.
3e27fa1f 5668
3f9d67a6
KH
56692000-12-21 Kenichi Handa <handa@etl.go.jp>
5670
587fc3f9
KH
5671 * keymap.c (push_key_description): Don't convert eight-bit-control
5672 and eight-bit-graphic to multibyte character.
5673
3f9d67a6
KH
5674 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5675 generic character and CODE1 is nil, return the smallest character
5676 in CHARSET.
5677
774ba8c9
DL
56782000-12-20 Dave Love <fx@gnu.org>
5679
5680 * s/osf5-0.h (NSIG): Don't redefine.
5681
88416888
SM
56822000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5683
5684 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5685 excluding menu-bar and tool-bar.
5686 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5687 (menu_item_p): Remove.
5688 (where_is_internal_1): Don't ignore menu-items.
5689
a6426c6f
GM
56902000-12-20 Gerd Moellmann <gerd@gnu.org>
5691
03ff8aab
GM
5692 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5693 into account.
5694
5695 * window.c (make_window): Initialize window's min_hscroll.
5696 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5697 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5698 to zero.
5699 (struct saved_window): New member min_hscroll.
5700 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5701 (Fset_window_configuration): Set window's min_hscroll.
5702 (save_window_save): Save window's min_hscroll.
5703 (compare_window_configurations): Compare min_hscroll values.
5704
5705 * window.h (struct window): New member min_hscroll.
5706
5707 * keyboard.c (echo_prompt): Prevent a compiler warning.
5708
8de4aaf8
GM
5709 * xdisp.c (try_cursor_movement): Fix last change. The real
5710 condition is that PT is at the end of the row, and should
5711 be displayed at the start of the next row.
52283633 5712
3f7e3031
GM
5713 * xdisp.c (try_cursor_movement): If we end on a partially
5714 visible line, end we already decided to scroll, return -1.
5715
a6426c6f
GM
5716 * dispextern.h (ensure_frame_matrix): Add prototype.
5717
5718 * window.c (delete_window, Fsplit_window)
5719 (Fset_window_configuration): Call ensure_frame_matrix.
5720
52283633
SM
5721 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5722 New functions.
a6426c6f
GM
5723 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5724 completed, call fake_current_matrices instead of marking frame
5725 garbaged.
5726
57fa2774
JR
57272000-12-20 Jason Rumney <jasonr@gnu.org>
5728
5729 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5730
d925df90
EZ
57312000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5732
5733 * fns.c (Frequire): Doc fix.
5734
7b93a85b
GM
57352000-12-19 Gerd Moellmann <gerd@gnu.org>
5736
52283633 5737 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 5738
c74e645b
GM
5739 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5740 currently displaying a message.
5741
7b93a85b
GM
5742 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5743 xterm.h.
5744 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5745
90d97e64
AI
57462000-12-18 Andrew Innes <andrewi@gnu.org>
5747
5748 * w32.c (w32_strerror): New function.
5749
5750 * w32.h (w32_strerror): New extern.
5751
5752 * w32fns.c (Fw32_shell_execute): Use it.
5753
91c9e6ce
GM
57542000-12-18 Gerd Moellmann <gerd@gnu.org>
5755
5756 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5757
6f4745e2
EZ
57582000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5759
5760 * msdos.c (IT_set_face): Obey inverse_video.
5761
c9e088ce
KH
57622000-12-18 Kenichi Handa <handa@etl.go.jp>
5763
5764 * dired.c (directory_files_internal): Always return decoded filenames.
5765
c3695f5f
GM
57662000-12-18 Gerd Moellmann <gerd@gnu.org>
5767
52d8e4ff
GM
5768 * xterm.c (x_connection_closed): Prevent being called recursively
5769 because of an error condition in XtCloseDisplay.
52283633 5770
62be9979
GM
5771 * xdisp.c (init_iterator): If noninteractive, and the frame's
5772 face cache is null, make one.
5773
52283633 5774 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 5775
c3695f5f
GM
5776 * process.c (wait_reading_process_input): Check for pending
5777 input when running timers.
5778
78555fbe
EZ
57792000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5780
52283633 5781 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 5782
b2b36264
KH
57832000-12-18 Kenichi Handa <handa@etl.go.jp>
5784
5785 * process.c (read_process_output): Don't run a filter if the code
5786 decoder produces nothing but carryover.
5787
9c543fbf
AI
57882000-12-17 Andrew Innes <andrewi@gnu.org>
5789
5790 * w32.c (sys_rename): Only check errno against EEXIST, and not
5791 EACCES, when determining whether rename failed because the target
5792 exists. This was resulting in indefinite looping on Windows 9x if
5793 the source file was locked by another process.
5794
5795 * w32fns.c (Ffile_system_info): New function.
5796 (syms_of_w32fns): Defsubr it.
5797
10c2b5a8
GM
57982000-12-17 Gerd Moellmann <gerd@gnu.org>
5799
b0228ace
GM
5800 * window.c (coordinates_in_window): Fix computation for
5801 position on vertical line between mode lines.
5802
10c2b5a8
GM
5803 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5804 Don't alter tip_frame or tip_window.
5805 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5806 was deleted.
5807
c844a81a
GM
5808 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5809 Don't alter tip_frame or tip_window.
5810 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5811 was deleted.
5812
6c825f8e
EZ
58132000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5814
5815 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5816 be consistent with the doc string. Reported by NAKAJIMA Mikio
5817 <minakaji@osaka.email.ne.jp>.
5818
af4bb4c8
KH
58192000-12-16 Kenichi Handa <handa@etl.go.jp>
5820
5821 * xfaces.c (Vface_ignored_fonts): New variable.
5822 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5823 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5824
8062e53a
GM
58252000-12-15 Gerd Moellmann <gerd@gnu.org>
5826
e87b8809
GM
5827 * dispnew.c (update_window): Detect pending input every nth line
5828 updated, i.e. do it depending on real work done, and not on the
5829 vpos of the line.
5830
5831 * xterm.c (expose_window): Don't redraw the window that's
5832 currently being updated.
5833
a6768cc5
GM
5834 * window.c (Fset_window_point): Remove test for
5835 cursor_in_non_selected_windows.
5836
4ea7fdca
GM
5837 * lread.c (read1): Recognize end of file after `\\'.
5838
8062e53a
GM
5839 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5840 not unwind_create_frame.
5841
bb7959c1
GM
58422000-12-15 Dave Love <fx@gnu.org>
5843
5844 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5845 bcopy & al.
5846
5847 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5848
ced04c42
KH
58492000-12-15 Kenichi Handa <handa@etl.go.jp>
5850
c5443913
KH
5851 * coding.c (setup_coding_system): Clear all members of the struct
5852 coding_system at first.
bc137305
KH
5853 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
5854 argument.
5855 (code_convert_region): Don't override coding->src_multibyte and
5856 coding->dst_multibyte.
c5443913 5857
ced04c42
KH
5858 * fns.c (Fmd5): Docstring improved.
5859
c2d7f289
MB
58602000-12-15 Miles Bader <miles@gnu.org>
5861
5862 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5863 are actually marked as mode-lines; otherwise use
5864 estimate_mode_line_height.
5865
9d7d9263
GM
58662000-12-14 Gerd Moellmann <gerd@gnu.org>
5867
5868 * editfns.c (Fformat): Prevent a buffer overrun when the format
5869 specifies a precision.
5870
7cf0153a
EZ
58712000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5872
5873 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5874 argument is outside the range [2..3].
5875
1de0f662
AI
58762000-12-14 Andrew Innes <andrewi@gnu.org>
5877
5878 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5879 nothing to do. Bind inhibit-quit.
5880 (tip_frame): Make it a Lisp_Object.
5881 (x_create_tip_frame): Set tip_frame after it has been added to
5882 Vframe_list.
5883 (Fx_show_tip): Don't set tip_frame here.
52283633 5884 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
5885 (unwind_create_frame, unwind_create_tip_frame): New functions.
5886 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5887 while a frame is only partially constructed.
5888
5889 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5890 (x_free_frame_resources): New function.
5891 (x_destroy_window): Use it.
5892
02387dcc
GM
58932000-12-14 Gerd Moellmann <gerd@gnu.org>
5894
5895 * xfns.c (Fx_backspace_delete_keys_p): New function.
5896 (syms_of_xfns): Defsubr it.
5897
5898 * config.in (HAVE_XKBGETKEYBOARD): Add.
5899
0544ef49
KH
59002000-12-14 Kenichi Handa <handa@etl.go.jp>
5901
98d62747
KH
5902 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5903 Always store string in multibyte representation in echobuf.
5904 (echo_char): Always store string in multibyte representation in
5905 echobuf.
5906 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5907 (read_key_sequence): Adjusted for the change of echo_prompt.
5908
a20193cd
KH
5909 * fns.c (Fmd5): Docstring improved.
5910
191b83b6
KH
5911 * lisp.h (detect_coding_system): Prototype adjusted.
5912
0544ef49
KH
5913 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5914 (detect_coding_emacs_mule, detect_coding_iso2022,)
5915 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
5916 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5917 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
5918 (detect_coding_mask, detect_coding_system): New argument
5919 MULTIBYTEP. Callers changed.
1da1bb05
KH
5920 (decode_coding_string): Set coding->src_multibyte and
5921 coding->dst_multibyte before calling detect_coding and detect_eol.
5922 Update them after some coding system is detected.
52283633 5923
d5b3eb1b
SM
59242000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5925
5926 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5927
5928 * keyboard.c (menu_bar_items, tool_bar_items):
5929 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5930
f7f8bb69
GM
59312000-12-13 Gerd Moellmann <gerd@gnu.org>
5932
52283633 5933 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
5934 New variables.
5935 (unwind_create_frame, unwind_create_tip_frame): New functions.
5936 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5937 while a frame is only partially constructed.
5938
5939 * xterm.h (x_free_frame_resources): Declare.
5940
5941 * xterm.c (x_free_frame_resources): New function.
5942 (x_destroy_window): Use it.
5943
e10da507
GM
5944 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5945 don't interrupt the update for pending input initially, i.e.
5946 update at least some lines.
5947
5948 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 5949
d5b3eb1b 5950 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
5951
5952 * xfns.c (gray_bitmap_bits): Declare `char *'.
5953
90aa2856
GM
59542000-12-12 Gerd Moellmann <gerd@gnu.org>
5955
5956 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5957 lines start with a relief line.
5958
a308c9cd
DL
59592000-12-12 Dave Love <fx@gnu.org>
5960
5961 * window.c (Fdisplay_buffer): Doc fix.
5962 (Fwindow_list): Remove unused var.
5963
5964 * buffer.h (mmap_set_vars): Declare.
5965
5966 * window.h (Fset_window_point): Declare.
5967
d575011f
EZ
59682000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5969
bf6282d2 5970 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
5971 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5972 variable `area'. When looking for a row under (X,Y), give up if some
5973 of the previous rows is not enabled.
d575011f 5974
ecf4d726
GM
59752000-12-12 Gerd Moellmann <gerd@gnu.org>
5976
2ebf6139
GM
5977 * window.c (Fset_window_point): If displaying cursors in windows
5978 other than the selected window, make sure redisplay updates
5979 other windows to show the new value of point in the window.
5980
5981 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5982
bfdb75ee
GM
5983 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5984 the buffer is the sole visible buffer when in the mini-buffer.
5985
52283633 5986 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
5987 Bind `inhibit-read-only' to t.
5988 (unwind_with_echo_area_buffer): Use AREF.
5989
c0006262
GM
5990 * xfns.c (Fx_hide_tip): Simplified.
5991
52283633
SM
5992 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
5993 instead of `1'.
e9a59cad 5994
ecf4d726
GM
5995 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
5996
e5959a9a
GM
59972000-12-11 Gerd Moellmann <gerd@gnu.org>
5998
a3642e49 5999 * xfns.c (Fx_hide_tip): Fix last change.
52283633 6000
44b5a125
GM
6001 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6002 nothing to do. Bind inhibit-quit.
6003 (tip_frame): Make it a Lisp_Object.
6004 (x_create_tip_frame): Set tip_frame after it has been added to
6005 Vframe_list.
6006 (Fx_show_tip): Don't set tip_frame here.
6007
6008 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6009
6010 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6011 Lisp_Object.
6012
6013 * dispextern.h: Change external declaration of tip_frame.
6014
d990421f
GM
6015 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6016 return an empty string.
6017
4db87380
GM
6018 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6019 of the window's update_mode_line flag, since the former is set by
6020 force-mode-line-update, not the latter. This makes
6021 column-number-mode slightly faster.
52283633 6022
e5959a9a
GM
6023 * xdisp.c (try_window_id) <all changes above window start>:
6024 Set the cursor.
6025
169fe44e
GM
60262000-12-11 Paul Eggert <eggert@twinsun.com>
6027
6028 * config.in (HAVE_FTELLO): Remove.
6029 (HAVE_FSEEKO): Add.
6030 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6031 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6032 HAVE_FTELLO.
6033 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6034 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 6035
59ec59ae
MB
60362000-12-11 Miles Bader <miles@gnu.org>
6037
6038 * window.c (displayed_window_lines): Don't round up when
6039 converting empty space at bottom to lines.
ff904dd6
MB
6040 Handle non-newline-terminated final lines properly.
6041 (Fwindow_text_height): New function (used to be in lisp).
6042 (syms_of_window): Initialize it.
59ec59ae 6043
42ebfa31
SM
60442000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6045
6046 * syntax.c (scan_lists): Check that the right quote char has the
6047 right Sstring syntax when jumping over strings.
6048 (init_syntax_once): Use Smax rather than 13.
6049
5cdb3cf3
MB
60502000-12-09 Miles Bader <miles@gnu.org>
6051
6052 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6053 with PARTIALLY, inverting the sense.
6054 (window_scroll_pixel_based): Scroll partially visible lines into
6055 place if we hit the beginning or end of the buffer.
a12167c5
MB
6056 (displayed_window_lines): Don't include partially visible lines.
6057 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 6058
842b2a94
GM
60592000-12-08 Gerd Moellmann <gerd@gnu.org>
6060
6061 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6062
6063 * tparam.c (tparam1): Change the way buffers are reallocated to be
6064 portable and less obfuscated.
6065
6066 * termcap.c (tgetent): Change the way buffers are reallocated to
6067 be portable and less obfuscated.
6068
6069 * macros.c (store_kbd_macro_char): Change the way buffers are
6070 reallocated to be portable and less obfuscated.
6071
6072 * lread.c (read1): Change the way buffers are reallocated to be
6073 portable and less obfuscated.
6074
6075 * doc.c (Fsubstitute_command_keys): Change the way buffers
6076 are reallocated so that it is portable.
6077
137cad7c
EZ
60782000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6079
6080 * dosfns.c (Ffile_system_info): New function.
6081 (syms_of_dosfns): Defsubr it.
6082
5c7f629c
SM
60832000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6084
6085 * alloc.c (gc_sweep): Add comment.
6086
959e647d
GM
60872000-12-07 Gerd Moellmann <gerd@gnu.org>
6088
52283633
SM
6089 * sound.c (vox_configure): Change order of ioctls.
6090 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
6091 Ignore errors when changing volume.
6092 (vox_close): Don't reset the device.
6093
926b7e5e
GM
6094 * process.c (read_process_output): Make sure the process marker's
6095 position is valid when the process buffer is changed in
6096 after-change functions. W3 does that.
52283633 6097
959e647d
GM
6098 * xfns.c (x_free_gcs): New function.
6099
6100 * xterm.h (x_free_gcs): Add prototype.
6101
6102 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6103 freeing GCs here.
6104
6105 * xterm.c (x_destroy_window): Call x_free_gcs so that
6106 resources of non-toolkit X windows will be freed.
6107
478ea067
AI
61082000-12-07 Andrew Innes <andrewi@gnu.org>
6109
6110 * w32fns.c (xlfd_charset_of_font): Fix last change.
6111
fbee3231
DL
61122000-12-06 Dave Love <fx@gnu.org>
6113
67292061
DL
6114 * md5.h (__P): Don't define -- it comes from config.h.
6115
fbee3231
DL
6116 * strftime.c: Change some #if foo to #ifdef foo.
6117
4ee87dbb
AI
61182000-12-06 Andrew Innes <andrewi@gnu.org>
6119
6120 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6121
52283633 6122 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 6123 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 6124 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 6125
9765b4a4
GM
61262000-12-06 Gerd Moellmann <gerd@gnu.org>
6127
d285b373
GM
6128 * alloc.c (gc_sweep): Prevent symbols read during loadup
6129 from being freed.
6130
384333ee
GM
6131 * xdisp.c (underlying_face_id): New function.
6132 (handle_face_prop, face_before_or_after_it_pos): Use it
6133 to determine the face ``under'' a string. Let strings inherit
6134 the face of the buffer under them.
6135
6136 * xfaces.c (face_at_string_position): Update function comment.
52283633 6137
d4b72d58
GM
6138 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6139 matrix if the window's left position has changed; we need to
6140 redraw it in this case.
6141
6142 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6143
e1d05387
GM
6144 * window.c (coordinates_in_window): Check mouse on mode-line or
6145 header-line first.
6146
eb1b0c74
GM
6147 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6148 advertized by the function documentation.
6149
d94d636f
GM
6150 * window.c (syms_of_window): Doc fix.
6151
3887b449
GM
6152 * sound.c (vox_configure): Set volume for left and right channel.
6153 (sound_cleanup): Return nil.
6154
efc8f57a
GM
6155 * xdisp.c (move_it_by_lines): Fix paren typo.
6156
9765b4a4
GM
6157 * xterm.c (x_load_font): Don't use the font's max_bounds for
6158 computing the height of the font. If max_bounds' ascent or
6159 descent are greater than the font's ascent or descent, this means
6160 glyphs overlap, which should be handled now by redisplay.
6161
6529ed87
GM
6162 * window.c (Veven_window_heights): New variable.
6163 (syms_of_window): DEFVAR_LISP it.
6164 (Fdisplay_buffer): Check Veven_window_heights before evening the
6165 window heights.
52283633 6166
0eb2ecde
MB
61672000-12-06 Miles Bader <miles@gnu.org>
6168
6169 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6170 update `default-frame-alist' instead of setting no frame parameters.
6171
03d7a167
KH
61722000-12-06 Kenichi Handa <handa@etl.go.jp>
6173
6174 * composite.c (update_compositions): Fix typo (use the correct
6175 variable).
6176
5f8803c2
JR
61772000-12-05 Jason Rumney <jasonr@gnu.org>
6178
6179 * md5.h: Remove underscores from function declarations.
6180 (__attribute__, __alignof__) [!__GNUC__]: Define.
6181
6182 * md5.c: Delay include of md5.h until after namespace cleaning.
6183
c28a075b
JR
6184 * makefile.w32-in (fns.o): Depend on md5.h
6185 (md5.o): New target.
6186 (sunfns.o): Remove.
6187
6188 * makefile.nt: Likewise.
6189
ff3c7056
JR
61902000-12-05 Jason Rumney <jasonr@altavista.net>
6191
6192 * w32term.c (expose_area): Complete last change.
6193
0c21eeeb
KR
61942000-12-05 Ken Raeburn <raeburn@gnu.org>
6195
6196 * minibuf.c: Include intervals.h.
6197
f201d732
JR
61982000-12-05 Jason Rumney <jasonr@gnu.org>
6199
6200 * w32term.c (x_produce_glyphs): If a font for a component of
6201 a composition is not found, use 1 pixel dot ascent and 0 dot
6202 descent value to avoid displaying terribly tall empty boxes.
6203 (expose_area): Pass x-coordinate relative to the exposed
6204 area to x_draw_glyphs instead of a window-relative coordinate.
6205
21999ab9
GM
62062000-12-05 Gerd Moellmann <gerd@gnu.org>
6207
4d2036e4
GM
6208 * xdisp.c (next_element_from_ellipsis): Save face before selective
6209 display in saved_face_id, and set face_before_selective_p.
6210 (reseat_1): Reset face_before_selective_p.
6211 (append_space, extend_face_to_end_of_line): If iterator's
6212 face_before_selective_p is set, use the face from saved_face_id.
6213 (extend_face_to_end_of_line): For tty frames, make sure to
6214 use the right face id when producing spaces at the end of
6215 the line.
6216
6217 * dispextern.h (struct it): Add face_before_selective_p.
6218
52be17cc
GM
6219 * keyboard.c (record_char): Don't record identical help-echo
6220 events in recent_keys.
6221
8a4f36cc
GM
6222 * xterm.c [USE_X_TOOLKIT]: Close the display.
6223 (xim_close_dpy): Handle case that the display has been closed.
6224
57d6e381
GM
6225 * xterm.c (x_destroy_window): Reset the frame's X window after
6226 destroying it.
6227
21999ab9
GM
6228 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6229 variable window_width.
6230 (line_draw_cost): Fix code skipping over spaces at the end of the
6231 line when must_write_spaces is not set.
6232 (scrolling_window): Fix code inserting runs in list of all runs.
6233
91372bb7
KH
62342000-12-05 Kenichi Handa <handa@etl.go.jp>
6235
6236 * coding.c (setup_coding_system): Be sure to initialize
6237 coding->category_idx.
6238
6c083b4c
GM
62392000-12-04 Gerd Moellmann <gerd@gnu.org>
6240
0c68ce6f 6241 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 6242
6452929e
GM
6243 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6244 area to x_draw_glyphs instead of a window-relative coordinate.
6245
d7f31e22
GM
6246 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6247 error in the message.
6248
ae18aa3b
GM
6249 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6250 timer after having read a key. It's not good for code reading
6251 several keys in a loop, like an input method.
6252
caa15ef7
GM
6253 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6254 record undo information for format-decode.
6255
6256 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6257 current buffer is read-only, not if it isn't.
6258
6c083b4c
GM
6259 * keyboard.c (record_char): Record `help-echo' input events
6260 in recent_keys only if they display some help. Don't record
6261 `help-echo' events as macro char.
6262
caa15ef7
GM
62632000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6264
6265 * editfns.c (save_excursion_restore): Don't move point
6266 in another window if it is showing the wrong buffer.
6267 Avoid the call to Fwindow_live_p, for speed.
6268
5a13529b
KH
62692000-12-04 Kenichi Handa <handa@etl.go.jp>
6270
e225faa7
KH
6271 * xfaces.c (struct font_name): New member registry_priority.
6272 (split_font_name): Initialize the above member to zero.
6273 (concat_font_list): New function.
6274 (font_list): Include fonts of all alternative registries.
6275 (FONT_POINT_SIZE_QUANTUM): New macro.
6276 (better_font_p): Ignore point size difference less than
6277 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6278
e89648b4
KH
6279 * xterm.c (x_produce_glyphs): If a font for a component of
6280 a composition is not found, use 1 pixel dot ascent and 0 dot
6281 descent value to avoid displaying terribly tall empty boxes.
6282
5a13529b
KH
6283 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6284
d7935eb6
KR
62852000-12-03 Ken Raeburn <raeburn@gnu.org>
6286
6287 * coding.h (code_convert_string1): Declare.
6288
6289 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6290
52283633 6291 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 6292
0dd5e255
JR
62932000-12-02 Jason Rumney <jasonr@gnu.org>
6294
6295 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6296 correctly for single byte character case.
6297 (w32_per_char_metric): Do not try to make any assumptions about
6298 the metrics of BDF fonts.
250cfece 6299 (x_estimate_mode_line_height): If `mode-line' face
52283633 6300 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
6301 (note_mouse_highlight): Change the cursor shape on the vertical
6302 border between windows [not enabled].
6303
6304 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6305
6306 * w32fns.c (Fx_create_frame): Reintroduce the call to
6307 face-set-after-frame-defaults.
6308 (Vx_window_horizontal_drag_shape): New variable.
6309 (syms_of_xfns): DEFVAR_LISP it.
6310 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6311 enabled].
0dd5e255 6312
b5d8d2ca
GM
63132000-12-02 Simon Josefsson <simon@josefsson.org>
6314
6315 * fns.c (Fmd5): Use a different logic to decide the coding system
6316 to use.
6317
6318 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6319
fbb87147
EZ
63202000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6321
52283633 6322 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 6323
447e9da0
GM
63242000-12-01 Gerd Moellmann <gerd@gnu.org>
6325
7708ced0
GM
6326 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6327 height for YNegative.
6328 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6329 height; also see comment there.
6330
447e9da0
GM
6331 * window.c (coordinates_in_window): Handle computations for
6332 positions on the vertical bar and fringes differently for
6333 window-system frames. Consider some pixels near the vertical bar
6334 as on the bar if the frame doesn't have vertical scroll bars.
6335 Associate positions between mode or header lines with the
6336 right window, the left one.
6337
86d1db20
JR
63382000-12-01 Jason Rumney <jasonr@gnu.org>
6339
6340 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6341
6342 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6343 invalid frame.
6344
a1d58e5b
GM
63452000-12-01 Gerd Moellmann <gerd@gnu.org>
6346
52283633 6347 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
6348 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6349 (save_window_save, Fset_window_configuration): Save/restore
6350 window's orig_top and orig_height.
6351
89c609af
JR
63522000-12-01 Jason Rumney <jasonr@gnu.org>
6353
4d177746 6354 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 6355
89c609af
JR
6356 * w32fns.c (x_set_cursor_color): Fix last change.
6357
eccc05db
GM
63582000-11-30 Gerd Moellmann <gerd@gnu.org>
6359
31b6671b
GM
6360 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6361 sure that the next redisplay displays the minibuffer, so that
6362 the cursor will be replaced with what the minibuffer wants.
6363
eccc05db
GM
6364 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6365 #ifndef instead of using #if.
6366 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6367 USE_TOOLKIT_SCROLL_BARS is defined.
6368
162de750
JR
63692000-11-30 Jason Rumney <jasonr@gnu.org>
6370
6371 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6372 x_display_cursor.
6373
693c4692
GM
63742000-11-30 Gerd Moellmann <gerd@gnu.org>
6375
6376 * fns.c (Fmd5): Doc fix.
6377
b5d8d2ca 63782000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
6379
6380 * fns.c (Fmd5): New function.
6381 (syms_of_fns): Defsubr md5.
6382
6383 * Makefile.in (obj): Add md5.o
6384
b02cd40b
GM
63852000-11-30 Gerd Moellmann <gerd@gnu.org>
6386
edfb795e
GM
6387 * md5.h, md5.c: New files, taken from glibc.
6388
df3aedcf
GM
6389 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6390
b02cd40b 6391 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 6392 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 6393
8b5176cd
SM
63942000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6395
6396 * eval.c (Frun_hooks): Allow 0 arguments.
6397
346598f1
GM
63982000-11-29 Gerd Moellmann <gerd@gnu.org>
6399
f9396e03
GM
6400 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6401 is over the menu bar widget, say it's not on the frame.
6402
4a967a9b
GM
6403 * xfns.c (Fx_create_frame): Reintroduce the call to
6404 face-set-after-frame-defaults.
6405
346598f1
GM
6406 * eval.c (Fsignal): Reset handling_signal.
6407
222456a1
JR
64082000-11-28 Jason Rumney <jasonr@gnu.org>
6409
6410 * w32menu.c (add_menu_item): Reset menu item text when changing
6411 type to radio button.
6412
8049ddc0
GM
64132000-11-28 Gerd Moellmann <gerd@gnu.org>
6414
346598f1 6415 * xselect.c: Update copyright.
f4f4ee4d 6416
bebe4a2c
GM
6417 * window.c (coordinates_in_window): If on a mode or header line,
6418 but sufficiently close to its start, return ``on vertical
6419 border''. This gives us a way to drag windows horizontally when
6420 using toolkit scroll bars.
6421
6422 * xterm.c (note_mouse_highlight): Change the cursor shape
6423 on the vertical border between windows.
6424
6425 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6426
6427 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6428 (syms_of_xfns): DEFVAR_LISP it.
6429 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6430
8d2c2642
GM
6431 * textprop.c (text_read_only): New function.
6432 (verify_interval_modification): Use it instead of signaling
6433 `text-read-only'. This makes it easier to catch this error
52283633 6434 with a breakpoint.:
8d2c2642 6435
52283633 6436 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
6437 not end of line, which includes CR.
6438
5a2bae6c
KH
64392000-11-28 Kenichi Handa <handa@etl.go.jp>
6440
6441 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6442 include no-conversion.
6443
ae31f84d
JR
64442000-11-27 Jason Rumney <jasonr@gnu.org>
6445
6446 * w32fns.c (w32_load_system_font): Always mark font as double byte
6447 if codepage is unicode.
6448
67f1cf4c
GM
64492000-11-27 Gerd Moellmann <gerd@gnu.org>
6450
4a74d071 6451 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 6452 just consume it to avoid unintended skipping over invisible text below.
4a74d071 6453
902ae620
GM
6454 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6455 `vertical-line', `mode-line' and `header-line' events.
6456
6457 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
6458 of a character, a TAB for instance. This is easier than to set
6459 up the iterator exactly, and it's not a frequent case, so the
6460 additional effort wouldn't really pay off.
6461
c1e279c2
AC
64622000-11-26 Andrew Choi <akochoi@i-cable.com>
6463
67f1cf4c 6464 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
6465 init_window_once.
6466
a609568a
JR
64672000-11-25 Jason Rumney <jasonr@gnu.org>
6468
52283633
SM
6469 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6470 Args to window_from_coordinates should be pixel coordinates.
48b21762 6471
a609568a
JR
6472 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6473 redisplay handles them properly.
6474
a658d039
MB
64752000-11-25 Miles Bader <miles@gnu.org>
6476
6477 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6478
d3416cca
JR
64792000-11-24 Jason Rumney <jasonr@gnu.org>
6480
6481 * w32.c (init_environment): Set LANG environment variable based on
6482 locale settings, if not set.
6483
6484 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6485 making tool bar smaller. When clearing the frame, also
6486 clear current matrices. Clear frame when tool bar disappears.
6487 Don't use more lines for the tool-bar than is available.
6488 (x_change_window_heights): New function.
6489
ba193890
GM
64902000-11-24 Gerd Moellmann <gerd@gnu.org>
6491
2be8f184
GM
6492 * xdisp.c (init_from_display_pos): If POS says we're already after
6493 an overlay string ending at POS, make sure to pop the iterator
6494 because it will be in front of that overlay string. When POS is
6495 ZV, we've thereby also ``processed'' overlay strings at ZV.
6496
ba193890
GM
6497 * xfaces.c (lface_from_face_name): Function comment fix.
6498
1862a24e
MB
64992000-11-24 Miles Bader <miles@gnu.org>
6500
6501 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6502 apply `mode-line-inverse-video' -- zero means force display using
6503 the default face, non-zero means display using the specialized face.
6504 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6505
f07fa1b8
KH
65062000-11-23 Kenichi Handa <handa@etl.go.jp>
6507
6508 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6509 hard coded `4'.
6510
2bcdf662
EZ
65112000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6512
6513 * coding.c (decode_coding_emacs_mule): Fix the case of
6514 CODING_EOL_LF, which used uninitialized value of c.
6515
ba8299ff
SM
65162000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6517
6518 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6519
f4117c4d
GM
65202000-11-22 Gerd Moellmann <gerd@gnu.org>
6521
03e757c1
GM
6522 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6523 buffer object.
6524
f4117c4d
GM
6525 * frame.h (struct frame): Replace desired_tool_bar_items,
6526 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 6527 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
6528
6529 * frame.c (make_frame): Change initialization of tool bar
6530 items accordingly.
6531
6532 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 6533 Change references to members deleted from struct frame to use the
f4117c4d
GM
6534 new ones.
6535
6536 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 6537 references to members deleted from struct frame to use the new ones.
f4117c4d 6538
52283633 6539 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
6540
6541 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6542
6543 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 6544 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
6545 from struct frame to use the new ones.
6546
f8e2f3f2
MB
65472000-11-23 Miles Bader <miles@gnu.org>
6548
6549 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6550 the face's inverse-video attribute, rather than overriding it.
6551
60e8e0a5
GM
65522000-11-22 Gerd Moellmann <gerd@gnu.org>
6553
6554 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6555 making tool bar smaller.
6556
92dd1b29
DL
65572000-11-22 Dave Love <fx@gnu.org>
6558
6559 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6560
e672fdce
MB
65612000-11-22 Miles Bader <miles@gnu.org>
6562
3a17d6cc
MB
6563 * keyboard.c (Vminibuffer_message_timeout): New variable.
6564 (command_loop_1): Use it to determine message timeout.
6565 (syms_of_keyboard): Initialize it.
6566
60e8e0a5 6567 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 6568
e9655d81
KH
65692000-11-22 Kenichi Handa <handa@etl.go.jp>
6570
6571 * sysdep.c: Move the code for declaring h_errno after #include
6572 <netdb.h>.
6573
77270fac
GM
65742000-11-21 Gerd Moellmann <gerd@gnu.org>
6575
cd913aae
GM
6576 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6577 the menu bar when the tooltip is unmapped.
6578
77270fac
GM
6579 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6580 sole visible buffer when we're currently in the mini-buffer, and
6581 give up if so.
52283633 6582
556635d6
JR
65832000-11-21 Jason Rumney <jasonr@gnu.org>
6584
6585 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6586 put on the clipboard.
6587 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6588 copy of what Emacs last put there. If they are the same, do not
52283633 6589 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 6590
5b7bde64
MB
65912000-11-22 Miles Bader <miles@gnu.org>
6592
6593 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6594 (syms_of_minibuf): Initialize it.
6595 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6596 to prompt, don't make read-only.
6597
ff23e1dd
GM
65982000-11-21 Gerd Moellmann <gerd@gnu.org>
6599
52283633
SM
6600 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6601 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 6602
7aaf4388
GM
6603 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6604
f5f47add 6605 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 6606
ff23e1dd
GM
6607 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6608
37c35586
KH
66092000-11-21 Kenichi Handa <handa@etl.go.jp>
6610
6611 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6612 ... #endif scope.
6613
ff9ab414
GM
66142000-11-20 Gerd Moellmann <gerd@gnu.org>
6615
52283633 6616 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
6617 screen supports it.
6618
29a01b72
GM
6619 * s/gnu-linux.h: Don't use `#cpu'.
6620
09dfdf85
GM
6621 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6622 not defined in mman.h.
6623
52283633 6624 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
6625 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6626 and store an index in the XClientMessageEvent. Storing a
6627 Lisp_Object or pointer can fail on a 64 bit system, since X only
6628 transfers 32 bits.
52283633
SM
6629 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6630
81459ac9
DL
66312000-11-20 Dave Love <fx@gnu.org>
6632
6633 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6634
56c13ae6
GM
66352000-11-20 Gerd Moellmann <gerd@gnu.org>
6636
6637 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6638
495a6df3
KH
66392000-11-20 Kenichi Handa <handa@etl.go.jp>
6640
2bcf3714
KH
6641 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6642 by WIDTH.
6643
495a6df3
KH
6644 * alloc.c (make_string): Fix previous change. Be sure to make
6645 unibyte string correctly.
6646
6d950f4c
GM
66472000-11-19 Gerd Moellmann <gerd@gnu.org>
6648
39b39373
GM
6649 * window.c (Fwindow_list): Change parameter list to be XEmacs
6650 compatible.
6651 (window_list_1): New function.
6652 (window_loop): Use it instead of Fwindow_list.
6653
b95b34e5
GM
6654 * sysdep.c (emacs_ospeed): New variable.
6655 (toplevel): Don't declare ospeed extern.
6656 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6657
6658 * termcap.c (ospeed): Remove.
6659 (tputs) [!emacs]: Remove unused code.
6660 (tgetent): Avoid a compiler warning.
6661
e83dc917
GM
6662 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6663 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 6664 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
6665
6666 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6667 removed.
6668 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6669 Take the X display as additional argument.
6670 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6671 `Widget' is a pointer type that's not easily stored in Lisp_Object
6672 form in a portable way.
52283633 6673
6d950f4c
GM
6674 * dispnew.c (update_text_area): Fix last change.
6675
e47306e6
GM
66762000-11-18 Gerd Moellmann <gerd@gnu.org>
6677
fb3cd89b
GM
6678 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6679
6680 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6681 clear current matrices.
6682
edaa9aed
GM
6683 * buffer.c (mmap_enlarge): Don't print a message on stderr
6684 if mapping new memory at the end of the existing region fails.
6685
e47306e6
GM
6686 * dispnew.c (update_text_area): Don't skip over equal glyphs
6687 when the last current glyph overlaps the glyph to its right.
6688
509633e3
MB
66892000-11-18 Miles Bader <miles@gnu.org>
6690
6691 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6692 lines that *end* with "..." too (that's the most common case!).
6693
d392e9c5
GM
66942000-11-18 Gerd Moellmann <gerd@gnu.org>
6695
67988445
GM
6696 * xdisp.c (resize_mini_window): Temporarily change to the
6697 mini-window's buffer if necessary.
1bfdbe43 6698
d392e9c5
GM
6699 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6700 the tooltip obscures less text under it.
6701
67022000-11-17 Gerd Moellmann <gerd@gnu.org>
6703
6704 * puresize.h (BASE_PURESIZE): Increase to 700000.
6705
92bb977f
JR
67062000-11-18 Jason Rumney <jasonr@gnu.org>
6707
6708 * w32term.c (w32_draw_bitmap): Use face to set colors.
6709
26fbf20b
DL
67102000-11-17 Dave Love <fx@gnu.org>
6711
6712 * lread.c (Fload): Fix #ifdef for pcc.
6713
100b593b
GM
67142000-11-17 Gerd Moellmann <gerd@gnu.org>
6715
6716 * xdisp.c (pos_visible_p): Compute the default character height
6717 differently.
6718
a288d0d1
GM
67192000-11-16 Gerd Moellmann <gerd@gnu.org>
6720
cac94de6 6721 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 6722 knowing the line's height; use the default font's height in that case.
cac94de6 6723
a288d0d1
GM
6724 * xfaces.c (weight_table): Add `demi' with the same meaning as
6725 `demibold'.
6726
981fb6f6
KH
67272000-11-16 Kenichi Handa <handa@etl.go.jp>
6728
2cca872d 6729 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
6730 (clear_glyph_row): Delete local static variable null_row.
6731
e5fa381b
JR
67322000-11-15 Jason Rumney <jasonr@gnu.org>
6733
6734 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6735 (w32_alloc_lighter_color): Use new brightness calculations from
6736 xterm.c. Scale delta to be in the range expected by W32.
6737 (w32_draw_relief_rect): Use frame relief colors.
6738
8e42f043
GM
67392000-11-15 Gerd Moellmann <gerd@gnu.org>
6740
6d133d1f
GM
6741 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6742 (Qinhibit_default_face_x_resources): New variable.
6743 (syms_of_frame): Initialize it.
6744 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6745
6746 * xdisp.c (pos_visible_p): Improve function comment.
6747
6748 * lisp.h (BINDING_STACK_SIZE): New macro.
6749
8e42f043
GM
6750 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6751 reading the directory if readdir returns null and errno is EAGAIN
6752 or EINTR.
6753
e8c87124
SM
67542000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6755
6756 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6757 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6758 Set amount_to_scroll to max of dx and scroll_step so that
6759 scroll-conservatively doesn't defeat scroll-step>1.
6760 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6761 scroll-conservatively for line-at-a-time scrolling.
6762
5f0c971d
GM
67632000-11-14 Gerd Moellmann <gerd@gnu.org>
6764
6765 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6766 extra argument.
6767
6768 * xdisp.c (current_mode_line_height, current_header_line_height):
6769 New variables.
6770 (init_xdisp): Initialize them.
6771 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6772 and use exact mode line heights if it is set.
6773
6774 * lisp.h (pos_visible_p): Change prototype.
6775
6776 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6777 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6778 and current_header_line_height first.
52283633
SM
6779 (current_mode_line_height, current_header_line_height):
6780 Declare extern.
5f0c971d 6781
d7361edf
MB
67822000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6783
6784 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6785 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6786 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6787
ee5e440a
MB
67882000-11-14 Miles Bader <miles@gnu.org>
6789
6790 * xterm.c (x_alloc_lighter_color): Include an additive component
6791 too for dark colors, because FACTOR isn't enough.
6792 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6793 New macros.
6794
5ca020fc
GM
67952000-11-13 Gerd Moellmann <gerd@gnu.org>
6796
6797 * keyboard.c (show_help_echo): Call message3_nolog with number of
6798 bytes in the help string as 2nd parameter, instead of the number
6799 of characters.
6800
9d348294
MB
68012000-11-13 Miles Bader <miles@gnu.org>
6802
6803 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6804 (Fload): Use new openp return protocol.
6805 Don't try to use Vload_source_file_function to load .elc files.
6806 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6807 openp return protocol.
6808 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6809
1729bb9a
KH
68102000-11-11 Kenichi Handa <handa@etl.go.jp>
6811
4e677396
KH
6812 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6813
6814 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6815 Defined these macros.
6816 (NLIST_STRUCT): Avoid re-defining it.
6817
1729bb9a
KH
6818 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6819 -I/usr/contrib/X11R6/include.
6820 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6821
a82fe213
JR
68222000-11-10 Jason Rumney <jasonr@gnu.org>
6823
6824 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6825
6826 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6827 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6828
6829 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6830 (Qw32_charset_vietnamese): New symbol.
6831 (xlfd_charset_of_font): New function.
6832 (w32_load_system_font): Use it.
6833 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6834 when Vw32_charset_info_alist is nil to ensure default face always
6835 has font. Use Fcar and Fcdr for safety.
6836 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6837 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6838 pseudo-codepages for special cases.
6839 (w32_to_x_font): New parameter to allow charset portion to be
6840 specified where there is many to one mapping. Callers changed.
6841 (w32_list_fonts): Avoid listing fonts that won't display.
6842
52d89894
GM
68432000-11-10 Gerd Moellmann <gerd@gnu.org>
6844
6845 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6846 (font_list_1): Renamed from font_list.
6847 (font_list): New function, trying alternative registries from
6848 Vface_alternative_font_registry_alist.
6849 (Finternal_set_alternative_font_registry_alist): New function.
6850 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
6851 Vface_alternative_font_registry_alist.
6852 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 6853
651cd3da
KR
68542000-11-09 Ken Raeburn <raeburn@gnu.org>
6855
6856 * lisp.h (Flooking_at): Declare.
6857
388ac098
GM
68582000-11-09 Gerd Moellmann <gerd@gnu.org>
6859
778fbc46 6860 * dired.c (directory_files_internal): Fix a braino.
52283633 6861
388ac098
GM
6862 * dired.c (directory_files_internal): Add missing GCPRO's.
6863 Some cleanup.
6864
ecaedde1
GM
68652000-11-08 Gerd Moellmann <gerd@gnu.org>
6866
f7eb32aa
GM
6867 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6868 (resize_mini_window): Return quickly if Vresize_mini_window is
6869 nil. Don't return if Vmax_mini_window_height is nil.
6870
6871 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6872 (syms_of_xdisp): Initialize them.
6873 (resize_mini_window): Act according to the setting of
6874 Vresize_mini_window.
6875 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6876
ecaedde1
GM
6877 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6878 scroll bar widget after configuring it, so that it will appear at
6879 the right position from the start.
6880 (XTredeem_scroll_bar): Cleaned up.
6881
3747ef2c
KH
68822000-11-08 Kenichi Handa <handa@etl.go.jp>
6883
6884 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 6885 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
6886 division by two.
6887
6888 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6889
03391420
DL
68902000-11-07 Dave Love <fx@gnu.org>
6891
7758f1c1 6892 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
6893
6894 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6895
b5de343d
GM
68962000-11-07 Gerd Moellmann <gerd@gnu.org>
6897
acad3c0b
GM
6898 * window.c (Fset_window_configuration): Don't try to preserve
6899 point in the current buffer, if that buffer is displayed in more
6900 than one window.
6901
b5de343d
GM
6902 * xfaces.c (lookup_named_face): If default face isn't realized,
6903 try to realize it. Return -1 if not successful.
6904 (Fx_list_fonts): Handle case that face cannot be determined.
6905 (Fface_font): Likewise.
6906
cdb1fe49
GM
69072000-11-06 Gerd Moellmann <gerd@gnu.org>
6908
6909 * window.c (displayed_window_lines): Detect partially
6910 visible lines at the bottom correctly.
6911
d3a67486
SM
69122000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6913
6914 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6915 when ensuring we don't do visit in indirect buffer.
6916
ff8dd5d5
KH
69172000-11-06 Kenichi Handa <handa@etl.go.jp>
6918
6919 * composite.h (compose_chars_in_text): Add prototype.
6920
6921 * composite.c (Vcomposition_function_table): New variable.
6922 (Qcomposition_function_table): New variable.
6923 (run_composition_function): Call
6924 Vcompose_chars_after_function with three arguments.
6925 (compose_chars_in_text): New function.
6926 (syms_of_composite): Modified the doc-string of
6927 Vcompose_chars_after_function. Declare composition-function-table
6928 as a lisp variable, and initialize it.
6929
6930 * xfns.c (x_encode_text): Suppress producing escape sequences for
6931 composition.
6932
6933 * xselect.c: Include composite.h.
6934 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6935
d1145f85
AI
69362000-11-05 Andrew Innes <andrewi@gnu.org>
6937
6938 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6939
6940 * sysdep.c (read_input_waiting): Remove extraneous argument to
6941 read_socket_hook.
6942
6943 * w32fns.c (Fx_server_version): Include w32_build_number in the
6944 return list.
6945
6946 * w32heap.c (w32_build_number): New variable.
6947 (cache_system_info): Set it.
6948
6949 * w32heap.h (w32_build_number): Add extern.
6950
6951 * emacs.c (syms_of_emacs): Update docstring for
6952 system-configuration, to reflect the actual usage on MS-Windows.
6953
e85ee976
GM
69542000-10-31 Gerd Moellmann <gerd@gnu.org>
6955
26dcb81b
GM
6956 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6957 process idle timers while waiting for another event.
6958
52283633 6959 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
6960 the default face are colored.
6961
e85ee976
GM
6962 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6963 window height hasn't changed.
6964
01b220b6
JR
69652000-10-31 Jason Rumney <jasonr@gnu.org>
6966
6967 * w32term.c (x_produce_glyphs): Handle composite characters.
6968 (x_draw_glyph_string_foreground)
6969 (x_draw_composite_glyph_string_foreground): Restore old font.
6970
4e6b7204
MB
69712000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6972
6973 * minibuf.c (read_minibuf): Reset the undo history just before
6974 starting the recursive-edit.
6975
d4358b37
GM
69762000-10-30 Gerd Moellmann <gerd@gnu.org>
6977
563f68f1
GM
6978 * xfaces.c (menu_face_change_count): New variable.
6979 (Finternal_set_lisp_face_attribute): Increment it for changes
6980 of the `menu' face.
6981 (realize_basic_faces): Reflect changes in the `menu' faces
6982 in menu bars.
6983
82e274d1
GM
6984 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6985 dy obtained from the iterator's y-position after moving from
6986 scroll_margin_pos to PT; see comment there.
52283633 6987
0dbf9fd2
GM
6988 * xdisp.c (safe_eval_handler): Call add_to_log.
6989
906b3b14
GM
6990 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6991 is not a symbol or string.
6992
d4358b37
GM
6993 * xdisp.c (echo_area_display): Don't perform a display update from
6994 inside redisplay. The update will happen anyway at the end of
6995 redisplay, and it can confuse redisplay (GC messages while
6996 redisplaying, for instance.)
6997
70c825df
SM
69982000-10-30 Stefan Monnier <monnier@cs.yale.edu>
6999
cf9b4b0b
SM
7000 * xrdb.c (x_load_resources): Use the class name in the defaults.
7001
70c825df
SM
7002 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7003 (regex_compile): Catch bogus \(\1\).
7004
a1d34b1e
GM
70052000-10-30 Gerd Moellmann <gerd@gnu.org>
7006
cae71efe
GM
7007 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7008 RGB values.
52283633 7009
35efe0a1
GM
7010 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7011 we have a color cache, check that the cached color equals the
7012 allocated color. If not, clear the color cache.
7013
1d3baf74
GM
7014 * window.c (displayed_window_lines): Change buffers if necessary.
7015 Fix computation of displayed lines.
7016
a1d34b1e
GM
7017 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7018 update_menu_bindings to DEFVAR_BOOL.
7019
70737ea9
KH
70202000-10-30 Kenichi Handa <handa@etl.go.jp>
7021
70c825df 7022 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 7023
fa0cb51d
KH
7024 * puresize.h (BASE_PURESIZE): Increase to 680000.
7025
70737ea9
KH
7026 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7027
0e4c08e8
JR
70282000-10-29 Jason Rumney <jasonr@gnu.org>
7029
7030 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7031
7032 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7033 (w32_cache_char_metrics): Handle possibility that 'x' does not
7034 exist in a BDF font.
7035 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7036
7037 * w32bdf.h (bdffont): Add nchars.
7038
7039 * w32bdf.c (set_bdf_font_info): Set it.
7040 (w32_BDF_TextOut): Swap byte order of double byte characters.
7041 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7042
45b84006
EZ
70432000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7044
7045 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7046 don't override the colors in frame's param_alist, unless they are
7047 unspecified.
7048
7049 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7050 reverse the effect of the highlight flag.
7051
caf9deee
KR
70522000-10-27 Ken Raeburn <raeburn@gnu.org>
7053
7054 * window.h (Fwindow_live_p): Declare.
7055
ae0b9b46
KR
7056 * undo.c (record_delete): Check that last_undo_buffer is really a
7057 buffer before applying XBUFFER to it.
7058
7059 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7060 Faref.
7061
02067692
SM
70622000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7063
7064 * lisp.h (KEYMAPP): New macro.
7065 (get_keymap): Remove.
7066 (get_keymap_1): Rename get_keymap.
7067
7068 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7069
7070 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7071
7072 * xmenu.c (single_submenu): Use KEYMAPP.
7073 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7074 Use KEYMAPP rather than Fkeymapp.
7075
7076 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7077
7078 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7079 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7080 Use KEYMAPP rather than Fkeymapp.
7081 (single_submenu): Use KEYMAPP.
7082 (w32_menu_show, w32_dialog_show): Use TRUE.
7083
7084 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7085
7086 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7087 (Fkeymapp): Use KEYMAPP.
7088 (get_keymap): Rename from get_keymap_1. Remove old def.
7089 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7090 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7091 (Fminor_mode_key_binding): Don't raise an error if the binding
7092 is not a keymap.
7093 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7094 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7095
7096 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7097 Allow Vspecial_event_map to be autoloaded.
7098 (menu_bar_items): Fetch the keymap rather than using keymapp.
7099 (menu_bar_one_keymap): No need to follow func-indirect any more.
7100 (parse_menu_item): get_keymap_1 -> get_keymap.
7101 (tool_bar_items): Fetch the keymap rather than using keymapp.
7102 (read_key_sequence): Use KEYMAPP.
7103
7104 * intervals.c (get_local_map): Use get_keymap rather than following
7105 function-indirections explicitly.
7106
7107 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7108
f9d80af3
JR
71092000-10-27 Jason Rumney <jasonr@gnu.org>
7110
7111 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7112 point, as Windows has oversized fonts.
7113
7114 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7115
a3ba27da
GM
71162000-10-27 Gerd Moellmann <gerd@gnu.org>
7117
7118 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7119 (freehook, reallochook): Handle null pointer arguments.
7120 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7121
aa3b80cc
SM
71222000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7123
7124 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7125 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7126 Giving in to popular pressure to shut up the compiler with casts.
7127
e24e84cc
GM
71282000-10-27 Gerd Moellmann <gerd@gnu.org>
7129
7130 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7131 signed value, and use a default value computed from the font's
7132 maximum descent.
7133
05ea7ef2
MB
71342000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7135
7136 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7137 that specify a negative underline position can still use underlines.
7138
7139 * window.c (Fpos_visible_in_window_p): Make POS default to
7140 WINDOW's point, not the current buffer's point.
7141
0b95284b
DL
71422000-10-26 Dave Love <fx@gnu.org>
7143
7144 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7145 when it's necessary.
7146
6c5b90af
GM
71472000-10-26 Gerd Moellmann <gerd@gnu.org>
7148
8b6d9dc9
GM
7149 * window.c (size_window): Compute size difference from sum of old
7150 child window sizes instead of from parent's size.
7151
6bc92b2e
GM
7152 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7153 Handle obscured lines at the top of the window.
7154
7155 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7156 down after the last error condition check.
7157
6c5b90af
GM
7158 * frame.c (Fdelete_frame): Run delete-frame-hook.
7159
42f92d4d
KH
71602000-10-26 Kenichi Handa <handa@etl.go.jp>
7161
7162 * coding.c (decode_coding): Fix previous change (check also
7163 CODING_MODE_LAST_BLOCK).
7164
d97151cb
SM
71652000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7166
e7efc503
SM
7167 * regex.c: More `unsigned char' -> `re_char' changes.
7168 Also change several `int' into `re_wchar_t'.
7169 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7170 (PUSH_FAILURE_POINTER): Don't cast any more.
7171 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7172 We want GCC to complain, since this piece of code makes
7173 re_match non-reentrant, which *should* be fixed.
7174 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7175 (EXTEND_BUFFER): Use RETALLOC.
7176 (SET_LIST_BIT): Don't cast.
7177 (re_wchar_t): New type.
7178 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7179 that those two functions will always properly return.
7180 (IMMEDIATE_QUIT_CHECK): Cast to void.
7181 (analyse_first): Use recursion rather than an explicit stack.
7182 (re_compile_fastmap): Can't fail anymore.
7183 (re_search_2): Don't check re_compile_fastmap for failure.
7184 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7185 Now also sets the new value (passed in a new argument).
7186 (re_match_2_internal): Use it.
7187 Also, use a new var `reg' of type size_t when looping through regs
7188 rather than reuse the inappropriate `mcnt'.
7189
d97151cb
SM
7190 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7191 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7192 (where_is_internal): Renamed from Fwhere_is_internal.
7193 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7194 (Fwhere_is_internal): New function wrapping where_is_internal.
7195 (where_is_internal_1): Handle the case where we're filling the cache.
7196 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7197
d5789b65
MB
71982000-10-25 Miles Bader <miles@gnu.org>
7199
7200 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7201
4ecda532
GM
72022000-10-25 Gerd Moellmann <gerd@gnu.org>
7203
7204 * window.c (pos_fully_visible_p): Removed.
7205 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7206 if position is visible and/or fully visible.
7207
7208 * lisp.h (pos_visible_p): Add prototype.
7209
7210 * xdisp.c (pos_visible_p): New function.
7211
68c3a137
KH
72122000-10-25 Kenichi Handa <handa@etl.go.jp>
7213
7214 * process.c (send_process): If OBJECT is t, it means that the data
7215 is from C string, but we should encode it. Before calling
7216 setup_raw_text_coding_system, be sure to flush out data by the
7217 previous coding system.
7218
7ae1c032
MB
72192000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7220
ff4dcd4b
MB
7221 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7222 assignment of startpos to prev when startpos == pos.
7223
7ae1c032
MB
7224 * editfns.c (find_field): Set the field stickiness correctly from
7225 overlay fields. Use renamed `text_property_stickiness'.
7226 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 7227 Only check text properties, not overlays.
7ae1c032
MB
7228 * textprop.c (get_char_property_and_overlay): New function.
7229 (Fget_char_property): Use it.
7230 * intervals.h (get_char_property_and_overlay): Add declaration.
7231
49801145
SM
72322000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7233
7234 * keymap.c: Use AREF, ASET and ASIZE macros.
7235 (Fmake_sparse_keymap): Docstring fix.
7236 (synkey): Remove.
7237 (shadow_lookup): Move up.
7238 Handle the case where lookup-key returns an integer.
7239 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7240 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7241 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7242 Simplify/rewrite the keymap-finding code.
7243 Add check for command shadowing, using shadow_lookup.
7244
39e776cd
SM
72452000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7246
7247 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7248 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7249 a symbol.
7250
2488aba5
AI
72512000-10-24 Andrew Innes <andrewi@gnu.org>
7252
7253 * dired.c (directory_files_internal_unwind): New function.
7254 (directory_files_internal): Use it to ensure closedir is called
7255 even if expand-file-name or file-attributes throw, eg. because of
7256 a user interrupt. Also enable immediate_quit while calling
7257 re_search, so that matching can be interrupted as well.
7258
b94fdf61
AI
72592000-10-24 Andrew Innes <andrewi@gnu.org>
7260
7261 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7262 NT-Emacs only.
7263 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7264 so that re_search functions only quit when callers expect them to.
7265
72662000-10-24 Kenichi Handa <handa@etl.go.jp>
7267
7268 * regex.c (regex_compile): Change the way of handling a range from
7269 a char less than 256 to a char not less than 256.
7270
1946f901
GM
72712000-10-24 Gerd Moellmann <gerd@gnu.org>
7272
7ae2f10f
GM
7273 * window.c (size_window): Prevent setting window's width or
7274 height to a negative value (esp. with XSETFASTINT).
7275
5dcab13e
GM
7276 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7277 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7278 (protect_malloc_state) [GC_MALLOC_CHECK &&
7279 GC_PROTECT_MALLOC_STATE]: New function.
7280 (PROTECT_MALLOC_STATE): New macro.
7281 (__malloc_initialize, morecore, _malloc_internal)
7282 (_free_internal) _realloc_internal): Use it to make _heapinfo
7283 read-only outside of gmalloc.
7284
63e1b552
GM
7285 * keymap.c: Update copyright.
7286
1946f901
GM
7287 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7288 a symbol.
7289
4fa09beb
GM
72902000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7291
7292 * filelock.c (unlock_all_files): Use unlock_file to expand each
7293 buffer's file_truename before trying remove its lock file.
7294
23afac01
EZ
72952000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7296
7297 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7298 or CRLF, decode EOLs.
7299
04448b95
KH
73002000-10-24 Kenichi Handa <handa@etl.go.jp>
7301
7302 * window.c (Fdisplay_buffer): Fix doc.
7303
3090a5a5
JR
73042000-10-23 Jason Rumney <jasonr@gnu.org>
7305
7306 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7307 ASCII font of default fontset on Windows.
7308
7309 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7310 xterm.c comment below).
7311
7312 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7313
a83fee2c
GM
73142000-10-23 Gerd Moellmann <gerd@gnu.org>
7315
7316 * xterm.c (x_connection_closed): Reset handling_signal.
7317
52283633 7318 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 7319
6ffdb539
MB
73202000-10-23 Miles Bader <miles@gnu.org>
7321
7322 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7323 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7324 maintain old behavior.
7325 * minibuf.c (Fminibuffer_complete): Likewise.
7326
7f1c969b
MB
73272000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7328
7329 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7330 that when a font can't be exactly centered, it errs up rather than
7331 down.
7332
23afac01 73332000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 7334
52283633 7335 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 7336
1a578e9b
AC
73372000-10-23 Andrew Choi <akochoi@i-cable.com>
7338
7339 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7340
7341 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 7342 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
7343
7344 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7345 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7346 syms_of_search, x_term_init, and init_keyboard before calling
7347 init_window_once. Also, call syms_of_xmenu.
7348
7349 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7350 default fontset to Monaco.
7351
7352 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7353 NewMacWindow and DisposeMacWindow.
7354 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7355 instead of calling NewMacWindow and setting fields of
7356 f->output_data.mac directly. Call init_frame_faces.
7357 (Fdelete_frame) [macintosh]: Remove unused code.
7358 (Fmodify_frame_parameters) [macintosh]: Call
7359 x_set_frame_parameters instead of mac_set_frame_parameters.
7360
7361 * frame.h [macintosh]: Define menu_bar_lines field in struct
7362 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7363
7364 * keyboard.c [macintosh]: Include macterm.h.
7365 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7366 and menu_bar_activate_event type events as for X and NT.
7367 (make_lispy_event) [macintosh]: Construct lisp events of type
7368 MENU_BAR_EVENT as for X and NT.
7369
7370 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7371 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7372 (sys_subshell) [macintosh]: Remove definition entirely.
7373 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7374 Vwindow_system_version here. Remove initialization of
7375 Vx_bitmap_file_path.
7376 (read_input_waiting): Correct the number of parameters passed to
7377 read_socket_hook.
7378 Move all Macintosh functions to mac/mac.c.
7379
7380 * term.c [macintosh]: Include macterm.h.
7381
7382 * window.c [macintosh]: Include macterm.h.
7383
7384 * xdisp.c [macintosh]: Include macterm.h. Declare
7385 set_frame_menubar and pending_menu_activation.
7386 (echo_area_display) [macintosh]: Do not return if terminal frame
7387 is the selected frame.
7388 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7389 Allow only the selected frame to set menu bar.
7390 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7391 calling FRAME_EXTERNAL_MENU_BAR (f).
7392 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7393
7394 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7395 and check_x. Declare XCreateGC. Define x_create_gc and
7396 x_free_gc. Initialize font_sort_order.
7397 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7398 but call x_list_fonts instead of w32_list_fonts.
7399 (Finternal_face_x_get_resource) [macintosh]: Do not call
7400 display_x_get_resource.
7401 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7402 (realize_x_face) [macintosh]: Load the font if it is specified in
7403 ATTRS.
52283633 7404 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 7405
1ffbabe3
SM
74062000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7407
7408 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7409 is nil: since we go to the end of submap anyway, we'd end up
7410 setting nil to nil.
7411 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7412 doesn't obey autoload.
7413
bed43f1d
EZ
74142000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7415
1ffbabe3 7416 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 7417
ea4233a7
JR
74182000-10-21 Jason Rumney <jasonr@gnu.org>
7419
7420 * w32term.c (w32_cache_char_metrics): Double check that font is
7421 really fixed pitch before trusting tmPitchAndFamily.
7422
f3d3c491
AI
74232000-10-21 Andrew Innes <andrewi@gnu.org>
7424
7425 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7426
7427 * w32term.h: Extern decl for w32_cache_char_metrics.
7428
7429 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7430
7431 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7432 (w32_unload_font): Free per_char array if present.
7433
7434 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7435 cached information in emulated XFontStruct to handle common cases
7436 quickly. Do not allocate XCharStruct for return.
7437 (w32_native_per_char_metric): New function.
7438 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7439 allocating one.
7440 (x_produce_glyphs): Don't get an HDC. Change calls to
7441 w32_per_char_metric to match arg change above. Remove calls to
7442 free results.
7443 (w32_get_glyph_overhangs): Ditto.
7444 (w32_cache_char_metrics): New function.
7445
7446 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7447 ($(BLD)/casefiddle.$(O)): Remove compile command.
7448 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
7449 ($(BLD)/dispnew.obj):
7450 ($(BLD)/keyboard.obj):
7451 ($(BLD)/w32inevt.obj):
7452 ($(BLD)/w32bdf.obj):
7453 ($(BLD)/alloc.obj):
7454 ($(BLD)/buffer.obj):
7455 ($(BLD)/editfns.obj):
7456 ($(BLD)/emacs.obj):
7457 ($(BLD)/fileio.obj):
7458 ($(BLD)/fns.obj):
7459 ($(BLD)/indent.obj):
7460 ($(BLD)/insdel.obj):
7461 ($(BLD)/intervals.obj):
7462 ($(BLD)/minibuf.obj):
7463 ($(BLD)/print.obj):
7464 ($(BLD)/scroll.obj):
7465 ($(BLD)/sysdep.obj):
7466 ($(BLD)/textprop.obj):
7467 ($(BLD)/widget.obj):
f3d3c491
AI
7468 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7469 ($(BLD)/term.obj): Add dependency on dispextern.h.
7470
52283633
SM
7471 * makefile.nt ($(BLD)\dispnew.obj):
7472 ($(BLD)\keyboard.obj):
7473 ($(BLD)\w32inevt.obj):
7474 ($(BLD)\w32bdf.obj):
7475 ($(BLD)\alloc.obj):
7476 ($(BLD)\buffer.obj):
7477 ($(BLD)\editfns.obj):
7478 ($(BLD)\emacs.obj):
7479 ($(BLD)\fileio.obj):
7480 ($(BLD)\fns.obj):
7481 ($(BLD)\indent.obj):
7482 ($(BLD)\insdel.obj):
7483 ($(BLD)\intervals.obj):
7484 ($(BLD)\minibuf.obj):
7485 ($(BLD)\print.obj):
7486 ($(BLD)\scroll.obj):
7487 ($(BLD)\sysdep.obj):
7488 ($(BLD)\textprop.obj):
7489 ($(BLD)\widget.obj):
f3d3c491
AI
7490 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7491 ($(BLD)\term.obj): Add dependency on dispextern.h
7492
18ad4821
EZ
74932000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7494
7495 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7496 with an additional argument of Qt.
7497
de54681a
MB
74982000-10-21 Miles Bader <miles@gnu.org>
7499
7500 * window.c (pos_fully_visible_in_window_p): New function.
7501 (Fpos_visible_in_window_p): Add FULLY argument.
7502 Use pos_fully_visible_in_window_p.
7503 (window_scroll_pixel_based, window_scroll_line_based): Update
7504 calls to Fpos_visible_in_window_p.
7505 * lisp.h (Fpos_visible_in_window_p): Update prototype
7506
13c844fb
GM
75072000-10-20 Gerd Moellmann <gerd@gnu.org>
7508
7509 * alloc.c (toplevel): Conditionalize compilation of mem_*
7510 functions differently.
52283633 7511
d9506268
JR
75122000-10-20 Jason Rumney <jasonr@gnu.org>
7513
7514 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7515 mem_init where it used to be. mem_z etc not defined otherwise.
7516
8094989b
GM
75172000-10-20 Gerd Moellmann <gerd@gnu.org>
7518
7519 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7520 GC_MALLOC_CHECK.
7521 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7522 structure definition and related variabled to the top of the file.
7523 Include this code when GC_MALLOC_CHECK is defined.
7524 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7525 register/unregister allocated region.
7526 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7527 which isn't allocated.
7528 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7529 something which is already in use.
7530 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7531 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7532 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7533 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7534
7535 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7536 _malloc_internal instead of malloc.
7537 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7538 of free.
7539
ea456eb4
AI
75402000-10-20 Andrew Innes <andrewi@gnu.org>
7541
7542 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7543 Windows.
7544 (my_strftime) <macro>: Don't use macro arg list when redefining as
7545 _strftime_copytm.
7546 (my_strftime) <function>: Supply 0 as ut argument.
7547
e64c3a75
JR
75482000-10-19 Jason Rumney <jasonr@altavista.net>
7549
7550 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7551 including dispextern.h, as it stops faces from working.
7552
7553 * w32fns.c (Fx_create_frame): Don't bother calling
7554 face-set-after-frame-default since the caller does it for us
7555 anyway. Clean up calls to x_get_arg to be consistent with X.
7556
7557 * w32term.c (x_produce_glyphs): Handle
7558 unibyte_display_via_language_environment correctly.
7559 (w32_draw_box_rect): Fix the calculation of width and height.
7560
7561 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7562 as it has stopped working.
7563 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7564 menu-bar.
7565
17401c97
GM
75662000-10-19 Gerd Moellmann <gerd@gnu.org>
7567
7568 * eval.c (skip_debugger): Prevent a compiler warning.
7569 (Fcondition_case): Likewise.
7570 (Fbacktrace_frame): Use a null interactive spec.
7571
773272d8
KH
75722000-10-19 Kenichi Handa <handa@etl.go.jp>
7573
7574 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7575
a42943e9
GM
75762000-10-18 Gerd Moellmann <gerd@gnu.org>
7577
e50517d9
GM
7578 * strftime.c: Sync with glibc, file version 1.78.
7579 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7580 should no longer be used according to ISO 8601.
7581
9035a35a
GM
7582 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7583 no map for meta_prefix_char, don't try to use it as a keymap.
7584 Instead, if T_OK is non-zero, look up a default binding, if any,
7585 otherwise, if T_OK is zero, return nil.
7586
a42943e9
GM
7587 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7588 (x_to_xcolors, png_load): Use x_query_color.
7589
52283633
SM
7590 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7591 New functions.
a42943e9
GM
7592 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7593 which can be slow.
7594 (x_copy_color, x_alloc_lighter_color): Likewise.
7595
7596 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7597 (x_query_color, x_query_colors): Add prototype.
7598
7599 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7600 check_string_bytes only if not noninteractive, increase count to 50.
7601
00de2987
MB
76022000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7603
7604 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7605 markers correctly.
7606
54918e2b
GM
76072000-10-17 Gerd Moellmann <gerd@gnu.org>
7608
1f0b3fd2
GM
7609 * alloc.c (pure_bytes_used): Renamed from pureptr.
7610 (ALIGN): New macro.
7611 (pure_alloc): New function.
7612 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7613 Use it.
7614 (Fpurecopy): Use PURE_POINTER_P.
7615
68c5d1db
GM
7616 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7617 PT has moved backward.
52283633 7618
9a038881
GM
7619 * xdisp.c (cursor_row_p): Take continued lines into account.
7620
361b097f
GM
7621 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7622 string's size_byte.
7623 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7624 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7625 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7626 string allocated.
7627
54918e2b
GM
7628 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7629 of selective display off while searching for the next line start.
7630
03ed0806
KH
76312000-10-17 Kenichi Handa <handa@etl.go.jp>
7632
7633 * Makefile.in (term.o): Depend on dispextern.h.
7634
7e05cdaf
SM
76352000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7636
7637 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7638
a6801fd1
GM
76392000-10-16 Gerd Moellmann <gerd@gnu.org>
7640
483de32b
GM
7641 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7642 the iterator at the beginning, so that they can be set later on,
7643 for instance in reseat_at_next_visible_line_start, without being
7644 overwritten.
7645
a6801fd1
GM
7646 * xfns.c (pbm_format): Add :foreground and :background keywords.
7647 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 7648 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 7649
dbf1fcc1
EZ
76502000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7651
7652 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7653
52283633 7654 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
7655
7656 * msdos.c (IT_set_face): Compare highlighted face with the default
7657 face, and invert colors if these faces' colors are identical.
7658 (Fmsdos_remember_default_colors): Don't swap foreground and
7659 background colors in initial_colors[].
7660 (IT_set_frame_parameters): Don't swap frame's foreground and
7661 background pixels. If ALIST includes "(reverse . t)", swap
7662 foreground-color and background-color properties in frame's
7663 param_alist. If the original frame's param_alist doesn't specify
7664 the colors, store unspecified-fg and unspecified-bg, reversed if
7665 required.
7666
7667 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7668 the colors are unspecified and reversed, reverse fore- and back-
7669 ground in the returned value.
7670 (Fframe_parameter): Ditto.
7671
b41fe2c3 76722000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 7673
3a6b59d9
GM
7674 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7675 get_last_unchanged_at_beg_row.
7676 (find_first_unchanged_at_end_row): Renamed from
7677 get_first_unchanged_at_end_row.
7678 (find_first_unchanged_at_end_row): Convert assertions to
7679 unconditional tests which abort. When looking for a row in
7680 unchanged text, don't go further back than first_text_row.
7681
b41fe2c3
GM
7682 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7683 Don't add in the last line's height when deciding if the new
7684 position is below the scroll margin.
9d1af64f 7685
b41fe2c3 76862000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
7687
7688 * editfns.c (Fconstrain_to_field): Check carefully for field
7689 boundaries if either OLD_POS or NEW_POS has a non-nil field
7690 property, even if they're the same.
7691
c412cb7b
KH
76922000-10-16 Kenichi Handa <handa@etl.go.jp>
7693
7694 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7695 height for XFillRectangle.
7696
5586f3eb
SM
76972000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7698
7699 * syntax.c (Fstring_to_syntax): New function extracted from
7700 Fmodify_syntax_entry.
7701 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7702 (skip_chars, Fforward_comment): Remove unused variables.
7703 (syms_of_syntax): Add defsubr for string-to-syntax.
7704 (describe_syntax): Add code for comment and string fences.
7705
db785038
SM
77062000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7707
7708 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7709 Do the meta->esc mapping. Call get_keyelt before returning.
7710 Start scanning from the second element (the first is always `keymap')
7711 to make it easier to detect when we reach a parent map.
7712 Handle the case of inheriting from a symbol whose function is a map.
7713 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7714 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7715 (get_keyelt, Flookup_key): Update call to access_keymap.
7716 Remove the meta->esc mappings.
7717 (define_as_prefix): Delete old disabled code.
7718 (menu_item_p): New function.
7719 (where_is_internal_1): Skip over the few remaining menu items.
7720 * lisp.h (access_keymap): Update prototype.
7721 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7722 Update call to access_keymap.
7723 (follow_key, read_key_sequence): Update calls to access_keymap.
7724 Remove the meta->esc mappings.
7725
cafafe0b
GM
77262000-10-13 Gerd Moellmann <gerd@gnu.org>
7727
a2e2a7f6
GM
7728 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7729 with additional argument.
7730
cafafe0b
GM
7731 * xdisp.c (cursor_row_p): New function.
7732 (try_cursor_movement, display_line): Use it.
52283633 7733
cafafe0b
GM
7734 * xdisp.c (append_space): Also save/restore iterator's current
7735 character and its length.
7736
7737 * xdisp.c (init_from_display_pos): Add an assertion.
7738 (handle_stop): Don't set iterator's add_overlay_start.
7739 (handle_invisible_prop): Likewise.
7740 (load_overlay_strings): If text under an overlay is invisible,
7741 take both before- and after-strings into account when the iterator
7742 is positioned either at the start or at the end of the overlay.
7743 (forward_to_next_line_start): Rewritten.
7744 (reseat_at_next_visible_line_start): Rewritten.
7745 (set_iterator_to_next): Add parameter RESEAT_P.
7746
7747 * dispextern.h (struct it): Remove member add_overlay_start.
7748 (set_iterator_to_next): Change prototype.
7749
c744452b
KH
77502000-10-13 Kenichi Handa <handa@etl.go.jp>
7751
7752 * coding.c (code_convert_region): Be sure to initialize
7753 coding->category_idx.
e4a3f4e1
KH
7754 (decode_coding_string): Set coding->src_multibyte and
7755 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7756 (encode_coding_string): Set coding->src_multibyte and
7757 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 7758
321fd26f
SM
77592000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7760
7761 * xfns.c (Fx_create_frame): Don't bother calling
7762 face-set-after-frame-default since the caller does it for us anyway.
7763
76832439
EZ
77642000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7765
7766 * window.c (coordinates_in_window): Fix detection of vertical line
7767 on character terminals.
7768
2483cf58
GM
77692000-10-12 Gerd Moellmann <gerd@gnu.org>
7770
7771 * editfns.c (save_excursion_save): Additionally record the
7772 selected window.
7773 (save_excursion_restore): If buffer was visible in a window, and a
7774 different window was selected, and the old selected window is
7775 still live, restore point in that window.
7776
eb991b25
KH
77772000-10-12 Kenichi Handa <handa@etl.go.jp>
7778
8a0eba09
KH
7779 * xterm.c (x_produce_glyphs): Handle
7780 unibyte_display_via_language_environment correctly.
7781
20401fcc
KH
7782 * regex.c (regex_compile): Change the way of handling a range from
7783 unibyte char to multibyte char.
7784
7785 * syntax.c (skip_chars): Change the way of handling a range from
7786 unibyte char to multibyte char.
7787
eb991b25
KH
7788 * process.c (read_process_output): Cancel previous change.
7789
365dd325
EZ
77902000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7791
c1b096cb
EZ
7792 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7793
365dd325
EZ
7794 * charset.c (Ffind_charset_string): Doc fix.
7795 (Ffind_charset_region): Doc fix.
7796
eb483c2b
KH
77972000-10-11 Kenichi Handa <handa@mule.m17n.org>
7798
7799 * process.c (read_process_output): Fix previous change. Adjust
7800 multibyteness of text to insert in a buffer by
52283633 7801 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 7802
b40bfb99
AS
78032000-10-10 Andreas Schwab <schwab@suse.de>
7804
7805 * alloc.c (mark_object): Remove all workarounds installed on
7806 1993-08-08.
7807
caff31d4
KH
78082000-10-10 Kenichi Handa <handa@etl.go.jp>
7809
52283633 7810 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
7811 (base64_encode_1): Make it work for a text of multibyte form.
7812 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7813 case. Don't call str_to_multibyte because base64_decode_1
7814 produces correct multibyte form for eight-bit codes.
52283633 7815 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
7816 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7817 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7818 codes.
7819
7820 * charset.h (CHAR_STRING): Optimized for single byte characters.
7821
cba026ef
AS
78222000-10-09 Andreas Schwab <schwab@suse.de>
7823
7824 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7825 -1 after socket is closed, to fall through to error processing.
7826
1e21fe48
EZ
78272000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7828
7829 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 7830 variables. If ALIST includes foreground-color or
1e21fe48
EZ
7831 background-color, change also the colors of the default face for
7832 this frame.
7833
a640322e
EZ
78342000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7835
7836 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7837 them extern (they are defined on xfaces.c).
7838 (syms_of_msdos): Don't intern and don't staticpro
7839 Qbackground_color and Qforeground_color.
7840
a115794c
EZ
78412000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7842
7843 * frame.c (Fframe_parameter): For non-windowed frames, if
7844 f->param_alist says foreground or background color is unspecified,
7845 call tty_color_name to return the color name computed from the
7846 frame's current colors.
7847
f5533b63
DL
78482000-10-06 Dave Love <fx@gnu.org>
7849
7850 * terminfo.c (ospeed): Don't declare.
7851
7852 * sysdep.c: Don't include string.h.
7853 (h_errno): Declare conditional also on TRY_AGAIN.
7854
7855 * charset.c (Ffind_charset_string): Doc fix.
7856
52283633 7857 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
7858 (Fbase64_decode_region, Fbase64_decode_string): More explicit
7859 error messages.
7860
2b06561a
DL
78612000-10-05 Dave Love <fx@gnu.org>
7862
7863 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7864 position like menu-bar.
7865
ca839c85
GM
78662000-10-05 Gerd Moellmann <gerd@gnu.org>
7867
7868 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7869
7870 * xdisp.c (handle_single_display_prop): Use safe_call1.
7871 (safe_call): Renamed from call_function.
7872 (safe_call1): New function.
7873 (handle_fontified_prop): Use safe_call1 instead of call1.
7874 (safe_eval): Renamed from eval_form.
7875 (safe_eval_handler): Renamed from eval_handler.
7876 (handle_single_display_prop, display_mode_element): Use safe_eval
7877 instead of eval_form.
7878
7879 * xfaces.c (merge_face_heights): Use safe_call instead of
7880 call_function.
7881
7882 * keyboard.c (show_help_echo): Use safe_call instead of
7883 call_function; use safe_eval instead of eval_form.
7884
7885 * lisp.h (safe_call): Renamed from call_function.
7886 (safe_eval): Renamed from eval_form.
7887 (safe_call1): Add prototype.
7888
a3489ece
MB
78892000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7890
7891 * xfns.c (image_ascent): Rearrange ascent calculation for the
7892 has-a-font case.
7893
35810b6f
SM
78942000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7895
7896 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7897 (where_is_internal_1): Don't bother ignoring menu-items any more.
7898
3dc78168
GM
78992000-10-04 Gerd Moellmann <gerd@gnu.org>
7900
7901 * keyboard.c (update_menu_bindings): New variable.
7902 (parse_menu_item): Use AREF. If update_menu_bindings
7903 is 0, don't update menu bindings.
7904 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7905
1efc2bb9
EZ
79062000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7907
7908 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7909 to `mark_object'.
7910
3f679f55
SM
79112000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7912
7913 * syntax.c (forw_comment): Match nestedness of ender/starter.
7914 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7915 (prev_char_comstart_first): Remove.
7916 (back_comment): Check two-char comment markers more carefully
7917 to better handle overlapping cases like *//* or /* */* */ ...
7918 Match nestedness of ender/starter.
7919
2021ab61
DL
79202000-10-02 Dave Love <fx@gnu.org>
7921
7922 * config.in (HAVE_GAI_STRERROR): Add undef.
7923
7924 * process.c (Fopen_network_stream): Use it.
7925
7926 * m/alpha.h (NO_REMAP): Don't define.
7927
64e6cc18
GM
79282000-10-02 Gerd Moellmann <gerd@gnu.org>
7929
7930 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7931 return with a string converted to an integer or vice versa when
7932 Vmocklisp_arguments is t.
7933 (Fsignal): Likewise. The function can return for `quit'.
7934 (struct gcpro): Declare member `var' to point to a volatile
7935 Lisp_Object.
7936
7937 * eval.c (error): Prevent compiler warning.
7938
b1904cd9
SM
79392000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7940
7941 * keymap.c (keymap_memberp): New function.
7942 (Fset_keymap_parent): Use it.
7943 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7944 Use keymap_memberp to avoid creating cycles.
7945 (access_keymap): Use KEYMAPP.
7946
71c9ec51
GM
79472000-09-30 Gerd Moellmann <gerd@gnu.org>
7948
7949 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
7950 gai_strerror. Make sure xerrno is set if connect fails. Improve
7951 error recovery.
71c9ec51 7952
c70c6b58
JR
79532000-09-29 Jason Rumney <jasonr@gnu.org>
7954
7955 * w32term.c (w32_char_font_type, w32_encode_char)
7956 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7957 (w32_bdf_per_char_metric): New function.
7958 (w32_per_char_metric): Use it.
7959 (x_draw_glyph_string_background): Always draw background for BDF
7960 glyphs.
7961
7962 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7963 GDI object which is a scarce resource.
7964
7965 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7966 (get_quoted_string): Fix limit on memchr search.
7967 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7968 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7969 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7970 (get_cached_font_char, cache_char_offset): Use macro
7971 BDF_CODEPOINT_RANGE_COVER_P.
7972 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7973 (clear_cached_bitmap_slots): New function.
7974 (GET_HEX_VALUE): G-Z, g-z are not hex.
7975 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7976 (get_bitmap_with_cache): Use new cache implementation.
7977 (create_offscreen_bitmap): New function.
7978 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7979
7980 * w32term.c (x_produce_glyphs): If the distance from the current
7981 position to the next tab stop is less than a canonical character
7982 width, use the tab stop after that.
7983 (x_draw_glyphs): Handle case START and END are out of bounds more
7984 carefully.
7985 (x_clear_mouse_face): Block/unblock input.
7986 (x_display_and_set_cursor): Don't show a hollow box cursor for
7987 buffers whose cursor_type is nil.
7988
fe01239f
GM
79892000-09-29 Gerd Moellmann <gerd@gnu.org>
7990
52283633 7991 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
7992
7993 * dispextern.h (updating_frame): Declare extern.
7994
e7c52f1f
AS
79952000-09-29 Andreas Schwab <schwab@suse.de>
7996
7997 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
7998
de6e1f7c
GM
79992000-09-29 Gerd Moellmann <gerd@gnu.org>
8000
25126faa
GM
8001 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8002 use its function definition.
8003 (tool_bar_items): Likewise.
8004
de6e1f7c 8005 * lisp.h (fatal): Declare NO_RETURN.
52283633 8006
454ee39b
KH
80072000-09-29 Kenichi Handa <handa@etl.go.jp>
8008
8009 * keymap.c: Remove the line "#undef NULL".
8010
96301c5f
GM
80112000-09-28 Gerd Moellmann <gerd@gnu.org>
8012
52283633 8013 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 8014
efffeeb4
DL
80152000-09-28 Dave Love <fx@gnu.org>
8016
ecb8b666
DL
8017 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8018
dc3cd20f
DL
8019 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8020
8021 * .gdbinit (xreload): Note its need on GNU/Linux.
8022
efffeeb4
DL
8023 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8024 r_alloc, r_alloc_free.
8025
8610d903
KH
80262000-09-28 Kenichi Handa <handa@etl.go.jp>
8027
8028 * syntax.c (skip_chars): Handle negation correctly.
8029
8901d1ac
GM
80302000-09-27 Gerd Moellmann <gerd@gnu.org>
8031
6f22f1ad
GM
8032 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8033 with non-zero FORCE_P argument.
8034
52283633 8035 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
8036 Add assertions.
8037
8038 * xdisp.c (window_box_height): Add an assertion.
8039
8040 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8041 tool-bar than is available.
8042 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8043
36f1966f
DL
80442000-09-27 Dave Love <fx@gnu.org>
8045
efffeeb4 8046 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 8047
31d929e5
GM
80482000-09-26 Gerd Moellmann <gerd@gnu.org>
8049
c98863bf
GM
8050 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8051 instead of BITS_PER_INT.
8052 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8053 EMACS_UINT, respectively.
8054 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8055
8056 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8057
8058 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8059
77072ab1
GM
8060 * window.c (freeze_window_starts): Construct last argument for
8061 foreach_window differently.
8062
8063 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8064
8065 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8066 EMACS_UINT instead of `int' and `unsigned int'.
8067 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8068
8069 * frame.h (struct frame): Make the `nothing' member of union
8070 output_data an EMACS_INT.
8071
52283633 8072 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
8073 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8074 size in the sdata structure.
8075 (SDATA_NBYTES, SDATA_DATA): New macros.
8076 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8077 differently for the different layout of the sdata structure.
8078 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8079 in sdata.
8080 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8081 Check that size recorded in the string size and size recorded in
8082 the sdata structure agree.
8083
3e60b029
DL
80842000-09-25 Dave Love <fx@gnu.org>
8085
8086 * buffer.c: Include stdio.h.
8087
8088 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 8089
3e60b029
DL
8090 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8091
8092 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 8093 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
8094 (__malloc_extra_blocks): Declare as __malloc_size_t.
8095
8ff16b4e
GM
80962000-09-25 Gerd Moellmann <gerd@gnu.org>
8097
755a2ccd
GM
8098 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8099
d8b4516f
GM
8100 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8101 (read_char): If help-echo is showing, preserve the echo area
8102 when redisplaying.
8103
8104 * xdisp.c (help_echo_showing_p): New variable.
8105 (set_message): Reset it to 0.
8106 (init_xdisp): Initialize help_echo_showing_p.
8107
8108 * dispextern.h (help_echo_showing_p): Declare extern.
8109
8110 * config.in: Fix typo in __GNUC_MINOR__.
8111
8112 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8113
b11af2dd
GM
8114 * s/freebsd.h (POSIX_SIGNALS): Define.
8115
8ff16b4e
GM
8116 * xterm.c (x_clear_mouse_face): Block/unblock input.
8117
844eb643
DL
81182000-09-24 Dave Love <fx@gnu.org>
8119
8120 * fns.c (base64_encode_1): Fix last change.
8121
b30ab1b3
GM
81222000-09-22 Gerd Moellmann <gerd@gnu.org>
8123
8124 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8125
8126 * xdisp.c (try_window_reusing_current_matrix): More fixes
8127 for the case window has a header-line.
8128
c6cbe5f0
DL
81292000-09-22 Dave Love <fx@gnu.org>
8130
4c7c1f3f
DL
8131 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8132 a doc string.
8133
8134 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8135
c6cbe5f0
DL
8136 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8137
550a625e
GM
81382000-09-21 Gerd Moellmann <gerd@gnu.org>
8139
4c7c1f3f 8140 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
8141 for GCC >= 2.5.
8142
52283633
SM
8143 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8144 Declare NO_RETURN.
fca99116 8145
80d26f99
GM
8146 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8147 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8148 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8149 warnings.
52283633 8150
80d26f99
GM
8151 * marker.c (byte_char_debug_check): Return void.
8152
623a0aae
GM
8153 * xfns.c (Fx_create_frame): Set default frame parameter value
8154 for tool-bar-lines to 1.
8155
8156 * dispnew.c (scrolling_window): Compare y-positions of rows
8157 equal at the start. Some simplification.
8158
8159 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8160 reused rows' y-position in the case window has a header-line, and
8161 new window start is greater than old window start.
8162
42ac0ae5
GM
8163 * process.c (process_sent_to): New variable.
8164 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8165 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8166 Declare more parameters volatile.
8167
550a625e
GM
8168 * lread.c (Vrecursive_load_depth_limit): New variable.
8169 (Fload): Check recursive loads whose recursion depth exceeds
8170 Vrecursive_load_depth_limit.
8171 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8172
8320414c
GM
81732000-09-20 Gerd Moellmann <gerd@gnu.org>
8174
f46c275e
GM
8175 * fileio.c (Fread_file_name): Doc fix.
8176
8177 * editfns.c (Fmessage_or_box): Doc fix.
8178
8179 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8180
b7e11c5b 8181 * xfns.c (xbm_scan): Allow C-style comments.
52283633 8182
8320414c
GM
8183 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8184 symbols are specified, add color translations to the cache.
52283633 8185 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
8186 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8187 xpm_cache_color.
8188 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8189 structures to xpm_init_color_cache.
8190
da1608d9
GM
81912000-09-19 Gerd Moellmann <gerd@gnu.org>
8192
52283633 8193 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 8194
6badfa25
AI
81952000-09-19 Andrew Innes <andrewi@gnu.org>
8196
8197 * makefile.nt (bootstrap-emacs): Don't change directory.
8198
3a5f42bb
KH
81992000-09-19 Kenichi Handa <handa@etl.go.jp>
8200
1b7649bd
KH
8201 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8202
3a5f42bb
KH
8203 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8204 If output buffer is too small, signal an appropriated error.
8205
9f83cf0b
DL
82062000-09-18 Dave Love <fx@gnu.org>
8207
52283633 8208 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
8209 (current_active_maps): Remove redundant get_local_map call.
8210
28c7826c
GM
82112000-09-18 Gerd Moellmann <gerd@gnu.org>
8212
5cefa566
GM
8213 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8214 cursor for buffers whose cursor_type is nil.
52283633 8215
6fed3546
GM
8216 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8217 a feature to implement that is already implemented.
8218 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8219 warnings.
8220
8221 * xfns.c (x_clear_image_1): New function.
8222 (x_clear_image): Use it.
52283633 8223 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 8224
05b1f851
GM
8225 * dispnew.c (update_window): Move test for invisible lines
8226 at the top to update_window_line.
8227 (update_window_line): Handle invisible lines here.
8228
f4779de9
GM
8229 * xfns.c (clear_image_cache): Clear current matrices of all
8230 frames sharing an image cache. Block input while freeing
8231 images. Fix timestamp comparison.
8232 (x_clear_image): Also free the mask.
8233
28c7826c
GM
8234 * xfns.c (lookup_image): Block input while loading the image so
8235 that we won't get interrupted in a state where the image isn't yet
8236 set up completely.
8237 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8238 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8239 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 8240 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 8241
b7412313
GM
82422000-09-16 Gerd Moellmann <gerd@gnu.org>
8243
8244 * dispnew.c (update_window): Make sure to make desired rows
8245 current even if they are completely invisible at the top
8246 of a window.
8247
47e351a3
GM
82482000-09-15 Gerd Moellmann <gerd@gnu.org>
8249
7f8f1edc
GM
8250 * xfns.c (lookup_image): Build mask before applying an algorithm.
8251 Recognize algorithm `disabled'.
8252 (cross_disabled_images): New variable.
8253 (COLOR_INTENSITY): New macro.
8254 (x_detect_edges): Use COLOR_INTENSITY.
8255 (x_disable_image): New function.
8256 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8257
8258 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8259 disabled state, don't apply an image transformation algorithm if
8260 the user specified an image for the disabled state. Use
28c7826c 8261 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
8262 user hasn't specified an image.
8263
ebb8f116
GM
8264 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8265 allocation functions with the XPM lib.
8266 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8267 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8268 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8269 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 8270 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
8271 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8272 functions, if possible, because these handle color allocation
8273 failure more gracefully.
8274 (Fimage_mask_p): New function.
8275
47e351a3
GM
8276 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8277 (Qedge_detection, Qheuristic): New symbols.
8278 (syms_of_xfns): Initialize new symbols.
8279 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8280 `algorithm (edge-detection ...)'.
8281 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8282 (tiff_format, gif_format, gs_format): Add `:mask'.
8283 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8284 (GIF_MASK, GS_MASK): New enumerators.
8285 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8286 (emboss_matrix, laplace_matrix): New variables.
8287 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8288 (x_edge_detection): New functions.
8289 (x_laplace): Rewritten in terms of x_detect_edges.
8290 (x_build_heuristic_mask): If image has a mask, free it.
8291
fe83b953
AI
82922000-09-14 Andrew Innes <andrewi@gnu.org>
8293
8294 * makefile.w32-in: Revert to Unix line endings.
8295
3021e816
AI
82962000-09-14 Andrew Innes <andrewi@gnu.org>
8297
8298 * makefile.w32-in: Standardize indentation somewhat.
8299 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8300 cater for differences between shells.
8301
8302 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8303
2a32b5ea
GM
83042000-09-14 Gerd Moellmann <gerd@gnu.org>
8305
8306 * xterm.c (x_produce_glyphs): If the distance from the current
8307 position to the next tab stop is less than a canonical character
8308 width, use the tab stop after that.
8309
b4331e96
DL
83102000-09-14 Dave Love <fx@gnu.org>
8311
8312 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8313
ef9e4345
GM
83142000-09-14 Gerd Moellmann <gerd@gnu.org>
8315
085536c2
GM
8316 * xdisp.c (handle_fontified_prop): While running fontification
8317 functions, bind `fontification-functions' and
8318 `after-change-functions' to nil.
8319
ef9e4345
GM
8320 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8321 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8322
8323 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8324
8325 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8326 USE_MMAP_FOR_BUFFERS.
8327
8328 * insdel.c (make_gap): Use enlarge_buffer_text.
8329
8330 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8331 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8332 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8333 from former r_alloc_* functions in ralloc.c.
52283633 8334 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
8335 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8336 (mmap_init) [REL_ALLOC_MMAP]: New function.
8337 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8338 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8339 BUFFER_FREE.
8340
8341 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8342 (enlarge_buffer_text): Add prototype.
8343
8344 * ralloc.c: Remove everything having to do with the use of mmap.
8345
f8608968
GM
83462000-09-13 Gerd Moellmann <gerd@gnu.org>
8347
2a494b2d
GM
8348 * sound.c (Fplay_sound): Doc fix.
8349
8c907a56
GM
8350 * keyboard.c: Avoid some more compiler warnings.
8351 (parse_tool_bar_item): Ignore cached key bindings.
8352
f8608968
GM
8353 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8354 and allocation of Lisp data.
8355
6ab70e9a
GM
83562000-09-12 Gerd Moellmann <gerd@gnu.org>
8357
d12d0a9b
GM
8358 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8359 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8360 defaults first.
8361
6ab70e9a
GM
8362 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8363
63c36c3c
KH
83642000-09-12 Miyashita Hisashi <himi@meadowy.org>
8365
8366 * ccl.c: Comment fixed.
8367 (MAX_MAP_SET_LEVEL): Increased to 30.
8368 (PUSH_MAPPING_STACK): Enclose with do-while block.
8369 (POP_MAPPING_STACK): Likewise.
8370 (stack_idx_of_map_multiple): New variable.
8371 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8372 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 8373 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
8374 (ccl_driver) <CCL_MapSingle>: Likewise.
8375 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8376 with the case where looking up process reaches to the end of
8377 map-set, and call CCL programs as the above change.
8378
7ee3bd7b
GM
83792000-09-11 Gerd Moellmann <gerd@gnu.org>
8380
8ec8a5ec
GM
8381 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8382 that might be clobbered by longjmp.
8383 (check_x_display_info, x_decode_color, create_frame_xic)
8384 (Fx_display_backing_store, Fx_display_visual_class)
52283633 8385 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 8386
f74b0705
GM
8387 * lread.c (init_lread): Set Vloads_in_progress to nil.
8388 (Fload): Show list of recursively loaded files, when signaling an
8389 error.
8390
7ee3bd7b
GM
8391 * lread.c (Vloads_in_progress): New variable.
8392 (record_load_unwind): New function.
8393 (Fload): Check for recursive loads.
8394 (syms_of_lread): Initialize Vloads_in_progress.
8395 (read_integer, read1): Avoid some compiler warnings.
8396
8397 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8398 compiler warnings.
8399
974e1e5b
MB
84002000-09-11 Miles Bader <miles@gnu.org>
8401
8402 * editfns.c (Fbuffer_string): Doc fix.
8403
9824c4e3
GM
84042000-09-10 Gerd Moellmann <gerd@gnu.org>
8405
8406 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8407
6a72fdd1
KR
84082000-09-09 Ken Raeburn <raeburn@gnu.org>
8409
8410 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8411 whether to include other header files.
8412
28e6fb66
GM
84132000-09-09 Gerd Moellmann <gerd@gnu.org>
8414
52283633 8415 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 8416 by Fmemq as a boolean.
28e6fb66 8417
7f8b6551
SM
84182000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8419
8420 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8421
a8710abf
GM
84222000-09-08 Gerd Moellmann <gerd@gnu.org>
8423
d1a02881
GM
8424 * ralloc.c (mmap_fd): Remove initializer which can make it
8425 read-only in a dumped Emacs.
8426 (mmap_fd_1): New variable.
8427 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8428 restore it from there.
8429 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8430 unconditionally so that mmap_fd can be initialized there.
8431 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8432 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8433 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8434
c454aac1
GM
8435 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8436
8437 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 8438 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 8439
fc653ef2
GM
8440 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8441
3015eec0
GM
8442 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8443 inheritance.
8444
bfe0ee88
GM
8445 * xdisp.c (try_window_id): When trying to locate cursor in
8446 unchanged rows at the top, handle the case that we can't find it.
8447
a8710abf
GM
8448 * xterm.c (x_draw_glyphs): Handle case START and END are out
8449 of bounds more carefully.
8450
6b7d4ae4
DL
84512000-09-08 Dave Love <fx@gnu.org>
8452
423193c5
DL
8453 * s/sol2.h (REL_ALLOC_MMAP): Define.
8454 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8455
8456 * ralloc.c: Don't include string.h (redundant).
8457 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8458 [!MAP_ANON]: Include fcntl.h.
8459 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8460 (r_alloc, r_re_alloc, r_alloc_free)
8461 (mmap_enlarge, mmap_set_vars): Use it.
8462 (r_alloc_init_fd): New function.
8463 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8464 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8465 malloc type.
8466
8467 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8468 Remove vm-limit.o.
8469
6b7d4ae4
DL
8470 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8471 change to __NetBSD__.
8472
44d31981
KH
84732000-09-08 Kenichi Handa <handa@etl.go.jp>
8474
8475 * search.c (compile_pattern): Check the multibyteness of cached
8476 string and PATTERN.
8477
aad40737
MB
84782000-09-08 Miles Bader <miles@gnu.org>
8479
8480 * xfaces.c (default_face_vector): Function removed.
8481 (Finternal_merge_in_global_face): Restore old global/local
8482 attribute override order. Use inline loop instead of calling
8483 default_face_vector.
8484
91a211b5
GM
84852000-09-07 Gerd Moellmann <gerd@gnu.org>
8486
8487 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8488 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8489 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8490 where necessary, in case POINTER_TYPE is `void'.
8491
03419440
EZ
84922000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8493
8494 * frame.c (make_terminal_frame): Initialize frame foreground and
8495 background colors to unspecified, for the initial instance of an
8496 MSDOS frame.
8497
f46f845b
GM
84982000-09-07 Gerd Moellmann <gerd@gnu.org>
8499
24f76fbf
GM
8500 * ralloc.c (mmap_find): Fix overlap computation.
8501 (mmap_enlarge): Compute nbytes before trying to find an
8502 overlapping region.
8503
f46f845b
GM
8504 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8505 instead of `!='.
8506
8507 * lread.c (syms_of_lread): Change value of regexp
8508 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8509
8510 * xmenu.c (xdialog_show): When looking up the selection in
8511 menu_items, take `quote' boundaries into account; this corresponds
8512 to a nil ITEM in x-popup-dialog.
8513
3c014385
KH
85142000-09-07 Kenichi Handa <handa@etl.go.jp>
8515
fd6f711b
KH
8516 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8517 not 0x81.
8518 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8519
3c014385 8520 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
8521 encoding, not decoding. Fix the handling of latin-jisx0201.
8522 Check for the charset katakana-jisx0201 too.
3c014385 8523 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 8524 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 8525
0da3ecef
GM
85262000-09-07 Gerd Moellmann <gerd@gnu.org>
8527
ab0ee409
GM
8528 * xfaces.c (Vparam_value_alist): New variable.
8529 (syms_of_xfaces): Initialize it.
8530 (Finternal_set_lisp_face_attribute): Avoid more consing.
8531
8532 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8533 specially.
8534 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8535 (Qbackground_mode): New variable.
8536 (syms_of_frame_1): Initialize Qbackground_mode.
8537
8538 * lisp.h (Qdisplay): Declare extern.
1091dd67 8539
0da3ecef
GM
8540 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8541 change face on all frames, and change the default for new frames.
8542
b14654b9
DL
85432000-09-07 Dave Love <fx@gnu.org>
8544
8545 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8546
d24fd56f
KH
85472000-09-07 Kenichi Handa <handa@etl.go.jp>
8548
794f3670
KH
8549 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8550
0fddd0dc
KH
8551 * charset.c: Include composite.h
8552 (lisp_string_width): New function.
8553 (Fstring_width): Call lisp_string_width instead of strwidth.
8554
8555 * Makefile.in (charset.o): Depends on composite.h.
8556
d24fd56f
KH
8557 * process.c (read_process_output): Before inserting the decoded
8558 text in the buffer, adjust the multibyteness.
8559
fa0b693c
GM
85602000-09-06 Gerd Moellmann <gerd@gnu.org>
8561
52283633 8562 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
8563 buffer's text buffer is null, map new memory.
8564
0a58f946
GM
8565 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8566 POINTER_TYPE and size_t.
8567 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8568 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8569 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8570 [REL_ALLOC_MMAP]: New macros.
8571 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8572 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8573 [REL_ALLOC_MMAP]: New functions.
8574
8575 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8576 before and after unexec.
8577
8578 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8579 text buffers if necessary.
8580
8581 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8582 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8583 in prototypes.
8584
fa0b693c
GM
8585 * config.in (HAVE_MMAP): Add #undef.
8586
877055f6
GM
85872000-09-05 Gerd Moellmann <gerd@gnu.org>
8588
08ba3862
GM
8589 * frame.c (Qdisplay_type): New variable.
8590 (syms_of_frame_1): Initialize it.
8591 (Fframe_parameter): New function that avoids consing.
8592 (syms_of_frame): Defsubr it.
8593
66ffe51c
GM
8594 * buffer.c (Fother_buffer): Consider buffers as invisible when
8595 they are displayed in a window on an invisible frame.
8596
877055f6
GM
8597 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8598 get-largest-window always return nil.
8599
bb970e67
GM
86002000-09-04 Gerd Moellmann <gerd@gnu.org>
8601
8602 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8603 variable; recognize Emacs 19 elc files.
8604
7a3d0e0e
MB
86052000-09-04 Miles Bader <miles@gnu.org>
8606
8607 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8608 before initially popping up the menu, so the menu doesn't flash
52283633 8609 when the face settings are significantly different from the defaults.
7a3d0e0e 8610
14473664
SM
86112000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8612
8613 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8614 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8615 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8616 (BIT_UNIBYTE): Remove.
8617 (re_match_2_internal): Delete corresponding code and streamline the
8618 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8619 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8620 (re_wctype_t): New type.
8621 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8622 (regex_compile): Use them and fix handling of overly long char classes.
8623
c1174479
AI
86242000-09-03 Andrew Innes <andrewi@gnu.org>
8625
f8803e97
AI
8626 * makefile.w32-in: Change to DOS line endings.
8627
c1174479
AI
8628 * s/ms-w32.h (ORDINARY_LINK): New define.
8629
8630 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8631 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8632
8633 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8634 (distclean): Delete them here instead.
8635
44ef7cf6
AI
8636 * w32proc.c (compare_env): Convert to uppercase for comparison,
8637 not lowercase, to match how the native Windows shell works.
8638
49b3bd82
JR
86392000-09-03 Jason Rumney <jasonr@gnu.org>
8640
8641 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8642 CVS changes the line-ends when checking in/out on DOS/Windows.
8643
8644 * makefile.nt (emacs): Do not change directory to run temacs, as
8645 the load-path is set relative to current directory.
8646
a3d35a39
MB
86472000-09-03 Miles Bader <miles@gnu.org>
8648
8649 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8650
d276b0cf
GM
86512000-09-02 Gerd Moellmann <gerd@gnu.org>
8652
715e84c9
GM
8653 * xdisp.c (redisplay_mode_lines): New function.
8654 (display_mode_lines): Return number of mode lines displayed.
8655 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8656 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8657
8892f40b
GM
8658 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8659 string.h and strings.h.
8660 (index) [HAVE_INDEX]: Add prototype.
8661
d276b0cf
GM
8662 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8663 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8664
8665 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8666 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8667
38404229
GM
86682000-09-01 Gerd Moellmann <gerd@gnu.org>
8669
8670 * lread.c (read1): Accept `?' as symbol constituent, for
8671 compatiblity with XEmacs.
8672
c0f9ea08
SM
86732000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8674
8675 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8676 (struct re_pattern_buffer): Remove newline_anchor.
8677 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8678 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8679 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8680 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8681 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8682 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8683 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8684 Get rid of references to newline_anchor.
8685 (regcomp): Allocate and precompute a fastmap.
8686
8c0f83fe
GM
86872000-08-31 Gerd Moellmann <gerd@gnu.org>
8688
8689 * lread.c (openp): GCPRO local variable `filename'.
8690
4bb91c68
SM
86912000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8692
8693 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8694
8695 * regex.c: Merge some changes from GNU libc. Add prototypes.
8696 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8697 Use memcmp and memcpy instead of bcopy and bcmp.
8698 (init_syntax_once): Use ISALNUM.
8699 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8700 (REG_UNSET_VALUE): Remove. Use NULL instead.
8701 (REG_UNSET, re_match_2_internal): Use NULL.
8702 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8703 New macros.
8704 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8705 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8706 (regex_compile): In handle_interval, return an error rather than try to
8707 unfetch the interval if we can't find the closing brace.
8708 Obey the RE_NO_GNU_OPS syntax bit.
8709 (TOLOWER): New macro.
8710 (regcomp): Use it.
8711 (regexec): Allocate regs.start and regs.end as one block.
8712
5226a931
GM
87132000-08-30 Gerd Moellmann <gerd@gnu.org>
8714
868dd24b
GM
8715 * xdisp.c (echo_area_display): Check display_completed instead
8716 of calling detect_input_pending.
8717
8718 * dispnew.c (update_frame): Only set display_completed here; move
8719 the update_begin and update_end calls here from update_frame_1.
8720 (update_frame_1): Don't set display_completed here, don't call
8721 update_begin/update_end.
8722
5226a931
GM
8723 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8724 instead of store_frame_param.
8725
2a8bd25f
GM
87262000-08-29 Gerd Moellmann <gerd@gnu.org>
8727
8728 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8729 desired window matrix hasn't been displayed, use the current row
8730 instead. Make sure that only those frame rows are updated for
8731 which there exists a corresponding enabled desired row.
52283633 8732
ba3478d9
MB
87332000-08-29 Miles Bader <miles@gnu.org>
8734
8735 * xfaces.c (default_face_vector): New function.
8736 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8737
87d0f685
GM
87382000-08-29 Gerd Moellmann <gerd@gnu.org>
8739
8740 * lread.c (openp): Prevent temporary string passed to
8741 Ffile_readable_p from being garbage collected.
8742
6fa86045
DL
87432000-08-28 Dave Love <fx@gnu.org>
8744
8745 * keymap.c (store_in_keymap): Add `static' to declaration.
8746
bb17930d
GM
87472000-08-28 Gerd Moellmann <gerd@gnu.org>
8748
8749 * emacs.c, callint.c, doc.c, editfns.c
8750 (toplevel) [HAVE_STRING_H]: Include string.h.
8751 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8752 (index): Remove prototypes which might conflict with non-standard
8753 definitions of index/strchr.
8754
8755 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8756 (rindex): Define only if !HAVE_RINDEX.
8757
8758 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8759
8760 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8761
87188200
MB
87622000-08-28 Miles Bader <miles@gnu.org>
8763
8764 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8765 made inconsistent by a font-related attribute in FROM.
8766 (merge_face_inheritance): Add function comment.
8767
41a68aef
KH
87682000-08-28 Kenichi Handa <handa@etl.go.jp>
8769
8770 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8771 the 4th arg (PREV_EVENT) Qt to suppress input method.
8772
f7c436c1
SM
87732000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8774
0b32bf0e
SM
8775 * regex.c: Indent cpp directives and remove parens after `defined'.
8776 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8777 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8778 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8779 (re_compile_pattern): Use size_t for length.
8780 (init_syntax_once): Move to a better place.
8781 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8782 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8783
f7c436c1
SM
8784 * syntax.c (back_comment): Detect cases where a comment-starter is
8785 actually inside another comment as in: /* a // b */ c // d \n.
8786 Make it clear that `comstart_pos' is unused for nested comments.
8787
8788 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8789 (KEYMAPP): New macro.
8790 (Fkeymap_parent, Fset_keymap_parent): Use it.
8791 (fix_submap_inheritance): Mark it static.
8792 (define_as_prefix, describe_buffer_bindings, describe_command)
8793 (describe_translation, describe_map): Complete prototypes.
8794
8795 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8796
8797 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8798 to better match the key-lookup behavior.
8799
6288c62f
GM
88002000-08-27 Gerd Moellmann <gerd@gnu.org>
8801
8802 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8803 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8804
e931344e
EZ
88052000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8806
8807 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8808 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8809 (xterm.o): Depend on coding.h
8810
d10dfeef
KH
88112000-08-26 Kenichi Handa <handa@etl.go.jp>
8812
8813 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8814 the corresponding '#endif'.
8815
2d73e8d3
MB
88162000-08-26 Miles Bader <miles@gnu.org>
8817
8818 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8819 * xfaces.c (QCinherit): New variable.
8820 (syms_of_xfaces): Initialize it.
8821 (LFACE_INHERIT): New macro.
8822 (Finternal_get_lisp_face_attribute)
52283633 8823 (merge_face_vector_with_property)
2d73e8d3
MB
8824 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8825 (check_lface_attrs): Allow new types of face height. Check
8826 inherit attribute.
8827 (CYCLE_CHECK): New macro.
8828 (merge_face_inheritance): New function.
8829 (merge_face_vectors): Merge inherited faces too. Add F and
8830 CYCLE_CHECK arguments.
8831 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8832 (lookup_named_face, lookup_derived_face, realize_named_face)
8833 (face_at_string_position, face_at_buffer_position): Supply
8834 new F and CYCLE_CHECK arguments to merge_face_vectors.
8835 (merge_face_heights): New function.
52283633 8836 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
8837 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8838 handle relative face heights.
8839 (lface_same_font_attributes_p): Compare heights using EQ.
8840
6ce974d4
KH
88412000-08-26 Kenichi Handa <handa@etl.go.jp>
8842
8843 * charset.c (char_to_string): Check the character validity.
52283633 8844 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 8845
dc1e502d
SM
88462000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8847
8848 * regex.c (PUSH_FAILURE_COUNT): New macro.
8849 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8850 Handle popping of a register's or a counter's data.
8851 (POP_FAILURE_POINT): Use the new name.
8852 (re_match_2_internal): Push counter data on the stack for succeed_n,
8853 jump_n and set_number_at and remove misleading dead code in succeed_n.
8854
bd9d0f3f
GM
88552000-08-25 Gerd Moellmann <gerd@gnu.org>
8856
8857 * xdisp.c (redisplay_internal): If considering all windows on all
8858 frames, update the display for each frame as soon as possible,
8859 instead of first building all desired matrices for all frames, and
8860 then updating them all.
8861 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8862
aa5b8e15
GM
88632000-08-24 Gerd Moellmann <gerd@gnu.org>
8864
17494071
GM
8865 * bytecode.c (mark_byte_stack): Add a comment.
8866
52283633
SM
8867 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8868 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
8869 a graphical frame.
8870
c543db81
KH
88712000-08-24 Kenichi Handa <handa@etl.go.jp>
8872
d246d5f5
KH
8873 * minibuf.c (do_completion): Always use compare-string, not
8874 string-equal because the latter doesn't pay attention to
8875 multibyteness of strings.
8876
c543db81
KH
8877 * process.c (create_process): Don't setup raw-text coding here.
8878 (Fopen_network_stream): Don't set coding->src_multibyte and
8879 coding->dst_multibyte here.
8880 (read_process_output): For process filter, return unibyte string
8881 if default-enable-multibyte-characters is nil.
8882 (send_process): If OBJECT is multibyte text, be sure to encoded it
8883 by the specified coding system for the process. Otherwise, setup
8884 raw-text coding.
52283633 8885 (init_process): Don't initialize default-process-coding-system here.
c543db81 8886
9b47cfe0
EZ
88872000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8888
8889 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8890 <scroll-down-aggressively>: Likewise.
8891
f5a36960
KH
88922000-08-23 Kenichi Handa <handa@etl.go.jp>
8893
8894 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8895 zero. Set coding->produced_char correctly.
8896
69a7ffa7
AI
88972000-08-22 Andrew Innes <andrewi@gnu.org>
8898
8899 * makefile.w32-in: New file.
8900
8901 * unexw32.c (unexec): Ignore old_name, and use the actual location
8902 of the current executable instead. Base new_name on this.
8903
8904 * w32proc.c (create_child): Remove reference to security
8905 descriptor, which isn't needed and doesn't compile with mingw32.
8906
8907 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8908 up dllimport attributes.
8909 (x_update_window_end): Update prototype.
8910
8911 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8912 extern, which screws up dllimport attributes.
8913
8914 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8915 up dllimport attributes.
8916
8917 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8918 screws up dllimport attributes.
8919
8920 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8921 up dllimport attributes.
8922 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8923 screws up dllimport attributes.
8924
8925 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8926 up dllimport attributes.
8927
8928 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8929 screws up dllimport attributes.
8930
8931 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8932 screws up dllimport attributes.
8933
8934 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8935 up dllimport attributes.
8936
8937 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8938 unnecessary extern, which screws up dllimport attributes.
8939 (main): Ditto.
8940
8941 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8942 up dllimport attributes.
8943
8944 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8945 unnecessary extern, which screws up dllimport attributes.
8946
8947 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8948 screws up dllimport attributes.
8949
8950 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8951 up dllimport attributes.
8952
8953 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8954
52283633
SM
8955 * w32bdf.c (search_file_line):
8956 (set_bdf_font_info):
8957 (seek_char):
8958 (w32_get_bdf_glyph):
69a7ffa7
AI
8959 (w32_BDF_to_x_font): Fix compile warnings.
8960
52283633 8961 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
8962
8963 * w32select.c: Include keyboard.h before frame.h.
8964
8965 * w32fns.c (max): Define macro.
8966 (JOHAB_CHARSET): Define if not known.
8967 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8968 (Fx_show_tip): Synch with X version.
8969
8970 * w32xfns.c: Include keyboard.h before frame.h.
8971
8972 * w32fns.c: Include keyboard.h before frame.h.
8973
8974 * w32term.c: Include keyboard.h before frame.h.
8975
8976 * fontset.c: Include keyboard.h before frame.h.
8977
8978 * w32inevt.c: Include keyboard.h before frame.h.
8979 (MOUSE_MOVED): Define if not known.
8980
8981 * minibuf.c: Include keyboard.h before frame.h.
8982
8983 * keyboard.c: Include keyboard.h before frame.h.
8984
8985 * indent.c: Include keyboard.h before frame.h.
8986
8987 * dispnew.c: Include keyboard.h before frame.h.
8988
8989 * buffer.c: Include keyboard.h before frame.h.
8990
8991 * alloc.c: Include keyboard.h before frame.h.
8992
8993 * print.c: Include keyboard.h before frame.h.
8994
8995 * process.c: Include keyboard.h before frame.h.
8996
8997 * scroll.c: Include keyboard.h before frame.h.
8998
8999 * sysdep.c: Include keyboard.h before frame.h.
9000
9001 * term.c: Include keyboard.h before frame.h.
9002
9003 * window.c: Include keyboard.h before frame.h.
9004
9005 * xdisp.c: Include keyboard.h before frame.h.
9006 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9007
9008 * frame.c: Include keyboard.h before frame.h.
9009
9010 * w32heap.h: Undefine min, max.
9011
9012 * w32gui.h: Undefine min, max.
9013
9014 * unexw32.c: Change PUCHAR to PCHAR.
9015 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
9016 (relocate_offset):
9017 (get_section_info):
69a7ffa7
AI
9018 (copy_executable_and_dump_data): Remove unnecessary static defs.
9019 (copy_executable_and_dump_data): Fix compile warnings.
9020
9021 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9022
9023 * w32console.c (min): Define macro.
9024 (clear_frame, write_glyphs): Fix compile warning.
9025
52283633 9026 * w32proc.c (compare_env):
69a7ffa7
AI
9027 (find_child_console): Fix compile warning.
9028
9029 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9030 sys_errlist instead of _sys_errlist.
9031 (get_emacs_configuration_options): New function.
9032
9033 * s/ms-w32.h (sys_nerr): Provide default definition.
9034 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9035 name with _ prepended.
9036 (NSIG): Define if not known.
9037 (get_emacs_configuration): Provide extern declaration.
9038 (get_emacs_configuration_options): Provide extern declaration.
9039 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9040
9041 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 9042 (map_w32_filename):
69a7ffa7
AI
9043 (read_unc_volume): Fix compile warning.
9044
9045 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9046 definitions from being used.
9047
9048 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9049
52283633 9050 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
9051 (open_unc_volume): Make arg const.
9052
9053 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9054 (read_input_waiting): Remove excess parameter.
9055
9056 * w32.c (init_environment): Call _access.
9057 (check_windows_init_file): Call _close.
9058 (init_user_info): Call _putenv.
9059 (init_environment): Call _putenv and _strdup.
9060 (init_ntproc): Reset volume info cache on startup.
9061
9062 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9063 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9064 cannot override the CRT malloc.
9065
9066 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9067 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9068
9069 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9070 unless we are linking with a static CRT.
9071 (RVA_TO_PTR): Cast result to unsigned char*.
9072
9073 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9074 (add_volume_info): Use xstrdup.
9075
25060080
SM
90762000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9077
9078 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9079 (do_completion, Fminibuffer_complete_word): Use it.
9080 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9081 var so it can take non-boolean values.
9082
6917e6bb
GM
90832000-08-21 Gerd Moellmann <gerd@gnu.org>
9084
acb7cc89 9085 * editfns.c (find_field): Formatting changes.
52283633 9086 (toplevel): Some old-style function forward declarations
acb7cc89
GM
9087 changed to prototypes, some new protypes added, some functions
9088 made static.
9089
9090 * lisp.h (set_time_zone_rule): Add prototype.
9091 (use_dialog_box): External declaration.
9092
0bbfdc25
GM
9093 * keyboard.c (gen_help_event): Add parameter SIZE.
9094 (kbd_buffer_events_waiting): Slightly rewritten.
9095 (clear_event): New function.
9096 (kbd_buffer_get_event): Use it, and clear the input_events of
9097 HELP_EVENTs.
9098 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9099 don't fill the newly created array with nils.
9100 (toplevel): Convert some old-style function forward declarations
9101 to prototypes.
9102
9103 * keyboard.h (gen_help_event): Change prototype.
9104
9105 * xterm.c (XTread_socket): Change calls to gen_help_event.
9106
9107 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9108
6917e6bb
GM
9109 * eval.c (Fmacroexpand): Doc fix.
9110
e5cd3d11
JR
91112000-08-20 Jason Rumney <jasonr@gnu.org>
9112
9113 * w32term.h (x_display_info_for_display): Remove as this function
9114 does not exist on W32.
9115
9116 * w32term.c (help_echo_window): New variable.
9117 (syms_of_w32term): staticpro it.
9118 (note_mode_line_highlight): Set it.
9119 (XTextExtents16): Removed as there is no equivalent on W32.
9120 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9121 the X way of doing this will not work for W32.
9122 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9123 (x_draw_image_foreground): Avoid drawing outside of the clip area
9124 when image doesn't have a mask.
9125 (note_mouse_highlight): Process overlays in the right order of
9126 priority. Set help_echo_window.
9127 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9128 because that's more visible for large images.
9129
9130 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9131 name to single_keymap_panes.
9132 (w32_menu_show): Set wv->title when dealing with titles.
9133 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9134
6e69ab8c
MB
91352000-08-21 Miles Bader <miles@gnu.org>
9136
9137 * minibuf.c (do_completion): Try again if we rewrite the input
9138 string, but no completion was done, so that any completion message
9139 will be correct.
9140
511bd4eb
GM
91412000-08-20 Gerd Moellmann <gerd@gnu.org>
9142
9143 * xfaces.c (lface_equal_p): Compare strings differently.
9144 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9145 (realize_tty_face): Use them.
9146 (syms_of_xfaces): Initialize new variables.
9147 (map_tty_color): New function, extracted from realize_tty_face.
9148 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9149 foreground or background color, store the new color name in the
9150 realized face; previous code trying to do this had no effect.
9151 (realize_tty_face): Use map_tty_color.
9152 (Fclear_face_cache): Set face_change_count and ensure thorough
9153 redisplay.
9154
1433385f
GM
91552000-08-19 Gerd Moellmann <gerd@gnu.org>
9156
511bd4eb
GM
9157 * undo.c (record_first_change, record_marker_adjustment): Don't
9158 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 9159
419ac0a2
KH
91602000-08-18 Kenichi Handa <handa@etl.go.jp>
9161
9162 * coding.c (decode_coding_string): Set members consumed,
9163 consumed_char, produced, produced_char of *coding correctly. If
9164 decode_coding doesn't consume any byte, don't try anymore.
9165 (encode_coding_string): Likewise.
9166
7eb9e30d
GM
91672000-08-18 Gerd Moellmann <gerd@gnu.org>
9168
511bd4eb
GM
9169 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9170 conditional have void type, for Standard C compilers.
7eb9e30d
GM
9171
9172 * xdisp.c (redisplay_internal): Compare windows for equality with
9173 EQ, instead of applying XWINDOW to something that might not
9174 be a window.
52283633 9175
dd34a735
KH
91762000-08-18 Kenichi Handa <handa@etl.go.jp>
9177
9178 * fontset.c (Finternal_char_font): Search only the selected frame
9179 for a window of the current buffer.
9180
385ff9e3
GM
91812000-08-18 Gerd Moellmann <gerd@gnu.org>
9182
511bd4eb 9183 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
9184 Lisp_Objects.
9185
385ff9e3
GM
9186 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9187 second half of a HELP_EVENT is found at the start of kbd_buffer.
9188
d6abb4c7
MB
91892000-08-18 Miles Bader <miles@gnu.org>
9190
4618074a
MB
9191 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9192
d6abb4c7
MB
9193 * editfns.c (save_restriction_save): Rewrite to use markers.
9194 (save_restriction_restore): Rewrite to understand new form of data
9195 saved by save_restriction_save.
9196 (Fsave_restriction): Remove cautionary note in doc-string.
9197
a7b28523
GM
91982000-08-17 Gerd Moellmann <gerd@gnu.org>
9199
9200 * fileio.c (build_annotations): Add a comment explaining the
9201 return value of format-annotate-function. Replace a spurious call
9202 to Flength with a CONSP test. Call format-annotate-function with
9203 a fifth arg specifying how many times the function is been called
9204 in a row, to let it choose temporary buffers appropriately.
9205
03c9ed77
DL
92062000-08-17 Dave Love <fx@gnu.org>
9207
9208 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9209 declare make_temp_name twice.
9210
52283633 9211 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
9212 (unreadpure): Give it an arg.
9213
9214 * unexalpha.c: Prototype fatal_unexec, mark_x,
9215 update_dynamic_symbols. Declare unexec as void.
9216
9217 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9218 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9219
9220 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 9221 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
9222
9223 * alloca.c: Use #error.
9224 [POINTER_TYPE]: Use it.
9225
9226 * eval.c (Fdefvar): Doc fix.
9227
9228 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9229 INITIALIZE_INTERVAL.
9230
9231 * buffer.h: Avoid DECLARE_INTERVALS.
9232
9233 * config.in: Add size_t.
9234
aae41d97
EZ
92352000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9236
9237 * w16select.c (set_clipboard_data): If there's not enough memory
9238 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9239 expects. In case of other failures, return 3.
9240 (system_error_msg): New error message.
9241 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9242 system_error_msg.
9243
65aa5e85
GM
92442000-08-16 Gerd Moellmann <gerd@gnu.org>
9245
9246 * term.c (write_glyphs): Also turn off inverse video after turning
9247 off other appearances in case TS_exit_attribute_mode is not equal
9248 to TS_end_standout_mode.
9249 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9250 with the same face.
9251 (turn_off_face): Reset standout_mode only if
9252 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9253 is equal to TS_end_standout_mode.
9254
ece23901
KH
92552000-08-16 Kenichi Handa <handa@etl.go.jp>
9256
9d7bcb2e
KH
9257 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9258 sequence at the end of the source block.
9259
ece23901
KH
9260 * ccl.c (Fccl_program_p): Docstring modified.
9261 (Fccl_execute): Likewise.
9262 (Fccl_execute_on_string): Likewise.
9263
5e30eaa2
EZ
92642000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9265
9266 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9267
290602fd
KH
92682000-08-16 Kenichi Handa <handa@etl.go.jp>
9269
9270 The following changes are mainly to fix bugs of
9271 encode/decode-coding-string failing if encoding/decoding return
9272 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9273 variable conversion_buffer.
9274
9275 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9276 decrement dst_end to avoid buffer overflow in the later call of
9277 string_as_multibyte
9278
9279 * coding.h (conversion_buffer_size, conversion_buffer)
9280 (get_conversion_buffer): Extern deleted.
9281
9282 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9283 (conversion_buffer, conversion_buffer_size): Variables deleted.
9284 (get_conversion_buffer): Function deleted.
9285 (struct conversion_buffer): New structure.
9286 (MAX_ALLOCA): New macro.
9287 (allocate_conversion_buffer): New macro.
9288 (extend_conversion_buffer, free_conversion_buffer): New functions.
9289 (ccl_coding_driver): Set coding->result.
9290 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9291 this is the last block of source.
9292 (encode_coding): Likewise. Handle the source block as the last
9293 one only when the whole source text is consumed.
9294 (decode_coding_string): Handle the case that the output buffer is
9295 too small to decode the whole source text. Use
9296 allocate_conversion_buffer, extend_conversion_buffer and
9297 free_conversion_buffer, not get_conversion_buffer.
9298 (encode_coding_string): Likewise.
9299 (init_coding): Function deleted.
52283633 9300 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
9301
9302 * emacs.c (main): Don't call init_coding.
9303
52283633 9304 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
9305
9306 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9307 (insert_glyphs): Likewise.
9308
9309 * w32console.c (write_glyphs): Use a locally declared
9310 conversion_buffer.
9311
b9f80d41
EZ
93122000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9313
9314 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9315 member of display_info is NULL.
9316
32dc52f7
GM
93172000-08-15 Gerd Moellmann <gerd@gnu.org>
9318
52283633 9319 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 9320
32dc52f7 9321 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 9322 appearances with capability `me'.
32dc52f7
GM
9323 (write_glyphs): Switch on inverse video before each face change.
9324
4eb22d33
DL
93252000-08-14 Dave Love <fx@gnu.org>
9326
9327 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9328 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9329 (lisp_free): Declare and make static.
9330
9331 * window.c: Fix embedded comment.
9332 (syms_of_window): Fix doc string.
9333
90cbf47e
GM
93342000-08-14 Gerd Moellmann <gerd@gnu.org>
9335
52283633 9336 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
9337 make sure to print `C-' before `M-', like in the manual.
9338
440fc135
GM
93392000-08-11 Gerd Moellmann <gerd@gnu.org>
9340
9341 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9342 since they aren't relocated anymore.
52283633 9343 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
9344
9345 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 9346 partially visible line which is smaller than the window's height.
440fc135 9347
6e264fad
KH
93482000-08-11 Kenichi Handa <handa@etl.go.jp>
9349
9350 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 9351 the multibyte form of eight-bit-control characters.
6e264fad
KH
9352 (Fccl_execute_on_string): Initialize ccl->multibyte.
9353
9354 * ccl.h (struct ccl_program): New member multibyte.
9355
9356 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9357
c371f69a
KH
93582000-08-11 Kenichi Handa <handa@etl.go.jp>
9359
9360 * regex.c (regex_compile) <normal_char>: Pay attention to
9361 multibyteness.
9362 (analyse_first) <exactn>: Setup fastmap correctly for
9363 eight-bit-control characters.
9364
93652000-08-11 Kenichi Handa <handa@etl.go.jp>
9366
52283633 9367 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
9368
9369 * keyboard.c (make_lispy_event): Handle the new event type
9370 multibyte_char_keystroke.
9371
9372 * xterm.c: Include coding.h.
9373 (XTread_socket): Work around a bug of XmbLookupString. If the
9374 input is from XIM, decode it according to the current locale. In
9375 that case, generate multibyte_char_keystroke events.
9376
b8ddbe71
KH
93772000-08-11 Kenichi Handa <handa@etl.go.jp>
9378
9379 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9380 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9381
47589c8c
GM
93822000-08-10 Gerd Moellmann <gerd@gnu.org>
9383
9384 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9385 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9386 (move_it_in_display_line_to): Record iterator's ascent and descent
9387 before producing glyphs, and restore them when we know the glyph
9388 doesn't fit on the line.
9389 (move_it_to): Restructured so that it's easier to debug. If
9390 moving to a vpos, and not moving to an x or character position,
9391 stop as soon as the specified vpos is reached; don't move further
9392 into that line because that might change the computed line height.
9393 (try_cursor_movement): New function, extracted from the cursor
9394 movement branch of redisplay_window. If ending on a partially
9395 visible line, don't try to scroll if the cursor line is taller
9396 than the window.
9397 (redisplay_window): Use try_cursor_movement.
9398
9399 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9400 because that function doesn't cope with variable-height lines.
9401
9402 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9403 box cursor because that's better visible for large images.
52283633 9404
c51bacd6
MB
94052000-08-10 Miles Bader <miles@gnu.org>
9406
9407 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9408
bea56df7
GM
94092000-08-10 Gerd Moellmann <gerd@gnu.org>
9410
9411 * xdisp.c (Vmessages_buffer_name): New variable.
9412 (message_dolog): Use it.
9413 (syms_of_xdisp): Initialize it.
9414
99cd7364
EZ
94152000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9416
52283633 9417 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
9418 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9419 redundant now that keyboard.h is included.
9420
7d093d56
EZ
94212000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9422
9423 * keyboard.c (kbd_buffer_events_waiting): New function.
9424
9425 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9426
9427 * msdos.c: Include keyboard.h.
9428 (XMenuActivate): Empty no_event events from the event buffer. If
9429 no events are left after that, call clear_input_pending.
9430 (mouse_clear_clicks): New function, code moved from mouse_init.
9431 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9432 mouse driver to ``forget'' any past clicks.
9433
9434 * Makefile.in (msdos.o): Depend on keyboard.h.
9435
41e757a6
GM
94362000-08-09 Gerd Moellmann <gerd@gnu.org>
9437
8e7bd231
GM
9438 * lisp.h (input_pending): External declaration.
9439
9440 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 9441
8e7bd231
GM
9442 * xdisp.c (echo_area_display): Display thoroughly if input is
9443 pending. Bind redisplay-dont-pause to t during the redisplay.
9444 in case input is pending.
9445
9446 * dispnew.c (Qredisplay_dont_pause): New variable.
9447 (syms_of_display): Initialize and staticpro it.
9448 (update_frame_1): Don't interrupt the display for pending input if
9449 redisplay_dont_pause is set.
52283633 9450
43028b7e
GM
9451 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9452
41e757a6
GM
9453 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9454
2f2174fa
KH
94552000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9456
9457 * callproc.c (Fcall_process): Terminate the unwind-protect around
9458 the post-read-conversion of coding system.
9459
0a6fd67e
MB
9460 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9461 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9462 * buffer.h (overlays_at): Update prototype.
9463 * xdisp.c (next_overlay_change): Update call to overlays_at.
9464 * xfaces.c (face_at_buffer_position): Likewise.
9465 * textprop.c (Fget_char_property): Likewise.
9466 * xterm.c (note_mouse_highlight): Likewise.
9467
0c80756e
MB
9468 * minibuf.c (do_completion): Don't consider a simple change of
9469 case as `completion'.
9470
975f250a
KR
94712000-08-08 Ken Raeburn <raeburn@gnu.org>
9472
52283633 9473 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
9474 * undo.c (record_delete): Make sure last_point_position_buffer is
9475 a buffer before comparing pointers.
9476
9477 * coding.h (decode_coding_string): Declare.
9478
9479 * intervals.h (Fprevious_single_char_property_change): Declare.
9480
9481 * textprop.c (Fprevious_single_char_property_change): Don't do
9482 arithmetic directly on lisp objects.
9483
52283633 9484 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
9485
9486 * keyboard.h (menu_item_eval_property): Declare.
9487
9488 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9489 reuse as buffer name, instead of recreating (and discarding) every
9490 time a message is logged.
9491 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
9492 (current_message_1, truncate_message_1, set_message_1)
9493 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9494 (current_message, truncate_echo_area, display_echo_area)
9495 (resize_echo_area_axactly): Changed calls.
b347b3fd 9496
975f250a 9497 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 9498 Lisp object.
975f250a 9499 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 9500 must be an integer, not a Lisp object.
975f250a 9501
46dc9912
KH
95022000-08-08 Kenichi Handa <handa@etl.go.jp>
9503
9504 * charset.c (Fchar_width): Doc fix.
9505
9f6d1a6c
GM
95062000-08-08 Gerd Moellmann <gerd@gnu.org>
9507
9508 * charset.c (Fstring_width): Doc fix.
9509
ff3d9573
GM
95102000-08-07 Gerd Moellmann <gerd@gnu.org>
9511
41e757a6 9512 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
9513 line, clear ascent and descent members of the iterator structure;
9514 the height of the continued line does not affect the height of the
9515 continuation line.
9516 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9517 line taller than the window.
9518 (redisplay_window) <forced window start>: Handle case that the
9519 middle of the window is not found in any row.
9520 (dump_glyph_row): Show more information.
9521 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9522 first text line in a glyph matrix.
9523
9524 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9525 of the clip area when image doesn't have a mask.
9526
70fc58b3
GM
9527 * fns.c (sweep_weak_table): Fix survival conditions for
9528 key-or-value and key-and-value weakness.
9529
9530 * .gdbinit (xhashtable): New command.
9531
ac0e96ee
GM
9532 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9533 tables out of the list of all weak hash tables.
9534
ff3d9573
GM
9535 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9536 a new buffer is created, make sure echo_area_buffer[] references
9537 the new buffer.
9538
e0d8827b
EZ
95392000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9540
9541 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9542 the doc string.
9543
c6f35378
KH
95442000-08-07 Kenichi Handa <handa@etl.go.jp>
9545
9546 * syntax.c (skip_chars): Fix previous change. Make the handling
9547 of unibyte string consistent with that of regex search.
9548
1fd4c450
GM
95492000-08-05 Gerd Moellmann <gerd@gnu.org>
9550
e49aa397
GM
9551 * xmenu.c (popup_get_selection): Use xfree instead of free.
9552
9553 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9554
9555 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9556
9557 * callproc.c (child_setup): Use xfree instead of free.
9558
9559 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9560 instead of malloc.
9561 (run_mac_command, closedir): Use `xfree' instead of `free'.
9562
9563 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9564
9565 * eval.c (error): Use xfree instead of free.
9566
1fd4c450
GM
9567 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9568
9569 * fns.c: Replace `illegal' with `invalid'.
e49aa397 9570 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 9571
82d497fc
KH
95722000-08-05 Kenichi Handa <handa@etl.go.jp>
9573
9574 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9575 conversion.
9576
59f953a2
NF
95772000-08-04 Noah Friedman <friedman@splode.com>
9578
9579 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9580 docstring.
9581
688351f2
GM
95822000-08-04 Gerd Moellmann <gerd@gnu.org>
9583
9584 * syntax.c (skip_chars): Fix typo in error message.
9585
2dad51cc
AS
95862000-08-04 Andreas Schwab <schwab@suse.de>
9587
9588 * m/ia64.h: Moved from s/ia64.h.
9589
99bb2c60
KH
95902000-08-04 Kenichi Handa <handa@etl.go.jp>
9591
082a1df2
KH
9592 * process.c (read_process_output): Big simplification. Handle
9593 composition and post-read-conversion of coding system correctly.
9594 (send_process): Handle composition correctly.
9595
9596 * callproc.c (Fcall_process): Handle post-read-conversion of
9597 coding system if any.
9598
99bb2c60
KH
9599 * coding.c (decode_coding_iso2022): More strict check for handling
9600 single shifting.
082a1df2
KH
9601 (coding_restore_composition): Pay attention to the case that
9602 cmp_data is not set properly (because of invalid code in the
9603 source text).
9604 (run_pre_post_conversion_on_str): Include text properties in the
9605 resulting string.
9606 (decode_coding_string): Set members of coding correctly.
99bb2c60 9607
f4988be7
GM
96082000-08-03 Gerd Moellmann <gerd@gnu.org>
9609
9610 * s/ia64.h: New file.
9611
9612 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9613 Use NULL instead of 0 at the end of variable argument list of
9614 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9615 sizeof (int) < sizeof (void *).
9616
9617 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9618 of variable argument lists of XtVaGetValues and XtVaSetValues.
9619
9620 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9621 variable argument lists of XtVaGetValues and XtVaSetValues.
9622
ead53494
GM
96232000-08-02 Gerd Moellmann <gerd@gnu.org>
9624
9625 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9626 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9627
9628 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9629 prototype.
9630
9631 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9632 in call to Fsingle_key_description.
9633
9634 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9635 Callers changed.
9636
96372000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9638
9639 * window.c (display_buffer_reuse_frames): New variable.
9640 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9641 frames displaying BUFFER.
52283633 9642 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 9643
10b0f752
MB
96442000-08-01 Miles Bader <miles@gnu.org>
9645
9646 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9647 when to constrain NEW_POS (they were pretty screwed up before).
9648
16425c4a
EZ
96492000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9650
9651 * msdos.c (run_msdos_command): Save and restore the master
9652 environment, for the case that child_setup signals an error.
9653 When mirroring slashes in DOS shell commands, don't fail when
9654 argv[2] has embedded blanks.
da288c14
EZ
9655 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9656 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9657 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
9658
9659 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9660 using alloca; free it after run_msdos_command returns.
9661
27f73852
DL
96622000-07-27 Dave Love <fx@gnu.org>
9663
52283633
SM
9664 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9665 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
9666
9667 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9668
c0261b5e
EZ
96692000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9670
9671 * editfns.c (lisp_time_argument): Fix last change.
9672
b548072f
GM
96732000-07-27 Gerd Moellmann <gerd@gnu.org>
9674
3ab82477
GM
9675 * fns.c (Fdelete): Make it work on vectors and strings in addition
9676 to lists.
9677
b548072f
GM
9678 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9679 (syms_of_fns): Initialize new variables.
52283633 9680 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
9681 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9682 weakness, with t meaning the same as `key-and-value'.
9683
91ae8751
KH
96842000-07-27 Kenichi Handa <handa@etl.go.jp>
9685
9686 * coding.h (struct coding_system): Member safe_charset deleted.
9687
9688 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
9689 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9690 New variables.
91ae8751
KH
9691 (coding_safe_chars): New function.
9692 (CODING_SAFE_CHAR_P): New macro.
9693 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 9694 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
9695 (detect_coding_iso2022): New local variable safe_chars.
9696 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9697 safe_charsets member of the coding system.
9698 (decode_coding_iso2022): New local variable safe_chars.
9699 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9700 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9701 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9702 (ENCODE_UNSAFE_CHARACTER): New macro.
9703 (encode_coding_iso2022): New local variable safe_chars. Check
9704 unsafe chars.
9705 (setup_coding_system): Delete the code to initialize
9706 coding->safe_charses
9707 (intersection, find_safe_codings): New functions.
9708 (Ffind_coding_systems_region_internal): New function.
9709 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9710 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9711 variable and initialize it.
9712
9713 * fns.c (char_table_ref_and_index): New function.
9714
9715 * lisp.h (char_table_ref_and_index): Add prototype.
9716
34a7a267
SS
97172000-07-26 Sam Steingold <sds@gnu.org>
9718
9719 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 9720 (Ffloat_time): New built-in Lisp function.
34a7a267 9721
a95cb10a
GM
97222000-07-26 Gerd Moellmann <gerd@gnu.org>
9723
3353ef5a
GM
9724 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9725 for the character code.
9726
9727 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9728 GNU/Linux.
9729
a95cb10a
GM
9730 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9731 if called for a popup menu.
9732 (xmenu_show): Store help string in widget values.
9733
b4a12321
DL
97342000-07-26 Dave Love <fx@gnu.org>
9735
9736 * syswait.h: Move some definitions.
9737 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9738 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9739 perspicuous definitions.
9740 (WTERMSIG): Fix bit pattern used.
9741
13f5ad37
KH
97422000-07-26 Kenichi Handa <handa@etl.go.jp>
9743
9744 * print.c (print_object): If vector printing is truncated, print
9745 "..." to indicate it as well as the case of list printing.
9746
070fe99c
GM
97472000-07-25 Gerd Moellmann <gerd@gnu.org>
9748
969065c3
GM
9749 * xdisp.c (next_element_from_display_vector): Improve comments.
9750
9751 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9752 for the character code, and the rest for the face id as in 20.x.
9753 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9754
9755 * window.c (window_display_table): Cleaned up.
9756
070fe99c
GM
9757 * syntax.c (Fforward_word): Add last arg nil in call of
9758 Fconstrain_to_field.
9759
bad77ef7
EZ
97602000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9761
969065c3 9762 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
9763 identical but for the letter-case, don't call
9764 barf_or_query_if_file_exists.
bad77ef7 9765
c28da489
MB
97662000-07-25 Miles Bader <miles@gnu.org>
9767
9768 * editfns.c (find_field): Honor special `boundary' fields.
9769 (Qboundary): New variables.
9770 (syms_of_editfns): Initialize Qboundary.
9771 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9772 Use scan_buffer instead of find_before_next_newline, because it
9773 allows us to detect the boundary case where there's a newline at
9774 the search limit.
9775 * lisp.h (Fconstrain_to_field): Update external declaration.
9776
e3c31fd5
GM
97772000-07-24 Gerd Moellmann <gerd@gnu.org>
9778
9779 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9780 if that is nil.
c28da489 9781
c66c29a2
DL
97822000-07-24 Dave Love <fx@gnu.org>
9783
9784 * s/sunos4-0.h, s/sol2.h:
9785 (LIBS_TERMCAP): Move from m/sparc.h.
9786
9787 * m/sparc.h (TERMINFO): Moved to system files (probably only
9788 relevant for sunos4 judging by its vintage).
9789 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9790 __arch64__.
9791
fbe0a958
EZ
97922000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9793
9794 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9795 name to single_keymap_panes.
9796
7d88e5c9
AS
97972000-07-24 Andreas Schwab <schwab@suse.de>
9798
9799 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9800
e024b101
GM
98012000-07-24 Gerd Moellmann <gerd@gnu.org>
9802
9803 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9804 parameters instead of using int parameters. Expect FN to accept
9805 EMACS_INT parameters.
9806 (display_echo_area, resize_echo_area_axactly, current_message)
9807 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9808 with new argument list.
9809 (resize_mini_window_1): New callback function.
9810 (current_message_1, truncate_message_1, set_message_1): Change
52283633 9811 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 9812
25c1a9ce
KH
98132000-07-24 Kenichi Handa <handa@etl.go.jp>
9814
9815 * fontset.c (fontset_ref): Remove INLINE declaration.
9816 (fontset_ref_via_base): Likewise.
9817 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9818 to downcase.
9819
7f987ac0
EZ
98202000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9821
9822 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9823 correct order of priority. If help echo was found in an overlay,
9824 use that overlay as the object in which the help echo was found.
9825
e2db3069
MB
98262000-07-22 Miles Bader <miles@gnu.org>
9827
9828 * textprop.c (Fprevious_single_char_property_change): The initial
9829 property value should be from the position preceding POSITION, not
9830 following it.
9831
5e3203e4
EZ
98322000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9833
9834 * coding.c (syms_of_coding): Doc fix for
9835 inhibit-iso-escape-detection.
9836
62145073
GM
98372000-07-21 Gerd Moellmann <gerd@gnu.org>
9838
c20aeb83
GM
9839 * xterm.c (note_mouse_highlight): Process overlays in the right
9840 order of priority.
34a7a267 9841
743934db
GM
9842 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9843
9844 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 9845 overlay, use that overlay as the object in which the help was found.
743934db 9846
d1dc7e43 9847 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 9848
62145073
GM
9849 * window.c (foreach_window): Instead of a fake variable argument
9850 list, take one USER_DATA argument.
9851 (foreach_window_1): Likewise, and call callback functions with two
9852 args, the window and USER_DATA.
9853 (struct check_window_data): New struct.
9854 (check_window_containing): Use it.
9855 (window_from_coordinates): Set up a struct check_window_data for
9856 foreach_window.
9857 (add_window_to_list, freeze_window_start): Change parameters
9858 according to new calling convention.
9859
9860 * window.h (foreach_window): Change prototype.
9861
9862 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9863
98642000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9865
9866 * xmenu.c (menu_help_callback): Call show_help_echo with
9867 additional arguments OBJECT and POS.
9868
11270583
KH
98692000-07-21 Kenichi Handa <handa@etl.go.jp>
9870
07b14857
KH
9871 * data.c (Faset): Allow storing any multibyte character in a
9872 string. Convert unibyte string to multibyte if necessary.
9873
11270583
KH
9874 * xfns.c (x_encode_text): New function.
9875 (x_set_name): Use x_encode_text.
9876 (x_set_title): Likewise.
9877
9878 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9879
9880 * xterm.h (x_encode_text): Add prototype.
9881
bc75b4fd
DL
98822000-07-20 Dave Love <fx@gnu.org>
9883
9884 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9885 xfree, not free.
9886
48c14970
EZ
98872000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9888
9889 * msdos.c (help_echo_window): New variable.
9890 (syms_of_msdos): Initialize and staticpro it.
9891 (IT_note_mode_line_highlight): Set help_echo_window.
9892 (IT_note_mouse_highlight): Ditto.
9893 (dos_rawgetc): Store help_echo_window in the second event produced
9894 for HELP_EVENTs.
9895
9896 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9897 Record the object that generated the help echo and the position of
9898 that object in help_echo_object and help_echo_pos. Record that
9899 some glyphs in a row are displayed in mouse-face.
9900 (IT_update_begin): Don't clear mouse highlight unless one of the
9901 enabled glyph rows is marked as being displayed in mouse-face.
9902 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9903 and position recorded in help_echo_object and help_echo_pos to the
9904 event queue.
9905 (IT_menu_display): Accept a new argument PN: the pane number of
9906 the current menu pane. Record the pane number and the item
9907 number of the item which has associated help string.
9908 (XMenuActivate): Update the prototype for help_callback in
9909 function declaration. Call IT_menu_display with the current menu
9910 pane number as an additional argument. Call help_callback with
9911 two additional arguments: the pane number and the item number of
9912 the menu item associated with the help text.
9913 (help_echo_object, help_echo_pos): New variables.
9914 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9915
9916 * msdos.h (XMenuActivate): Update prototype.
9917
4279296d
GM
99182000-07-19 Gerd Moellmann <gerd@gnu.org>
9919
47db06aa
GM
9920 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9921 Add some more prototypes.
9922
9923 * xterm.c, xterm.h: Add some more prototypes.
9924
9925 * lisp.h (Fnext_single_char_property_change): Add prototype.
9926
9927 * dispnew.c (direct_output_for_insert): Remove confusing
9928 outer local variable mouse_face_overwritten_p.
9929 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9930
4279296d
GM
9931 * alloc.c (allocate_string_data): Don't copy old string contents.
9932
670acd62
KH
99332000-07-19 Kenichi Handa <handa@etl.go.jp>
9934
9935 * coding.c (code_convert_region): Delete text properties before
9936 shrinking the conversion region.
9937
7cea38bc
GM
99382000-07-18 Gerd Moellmann <gerd@gnu.org>
9939
dc1cac59
GM
9940 * dispnew.c (update_text_area): Write the whole row if it
9941 has mouse-face in it.
9942
85a8aca9
GM
9943 * xfaces.c (face-alternative-font-family-alist): Remove
9944 DEFVAR_LISP; staticpro instead.
9945
34a7a267 9946 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
9947 new arguments.
9948
9949 * keyboard.c (show_help_echo): Add parameter WINDOW.
9950 (read_char): Call show_help_echo with window extracted from Lisp
9951 help event.
9952 (gen_help_event): Add parameter WINDOW.
9953
9954 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9955
9956 * xterm.c (help_echo_window): New variable.
52283633 9957 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
9958 (XTread_socket): Pass help_echo_window to gen_help_event.
9959 (syms_of_xterm): Initialize and staticpro help_echo_window.
9960
f8276b77
DL
99612000-07-18 Dave Love <fx@gnu.org>
9962
52283633 9963 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 9964
088831a6
GM
99652000-07-18 Gerd Moellmann <gerd@gnu.org>
9966
3d6cd763
GM
9967 * alloc.c (allocate_string_data): If string had already data
9968 assigned, copy old contents to new string data.
9969
9970 * coding.c (syms_of_coding): Fix typo in spelling of variable
9971 `inhibit-iso-escape-detection'.
9972
088831a6
GM
9973 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9974
9975 * Makefile.in: Add dependencies on dispextern.h.
9976 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9977 `free'; both can conflict with system header files.
9978
bc8a8d55
KH
99792000-07-18 Kenichi Handa <handa@etl.go.jp>
9980
9981 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9982 undefined.
9983
069f5950
DL
99842000-07-18 Dave Love <fx@gnu.org>
9985
9986 * window.c (Fwindow_list): Declare arg `window'.
9987
aa96c820
KH
99882000-07-18 Kenichi Handa <handa@etl.go.jp>
9989
9990 * coding.c (setup_coding_system): Don't override the explicitly
9991 specified designations.
9992
06be8d32
MB
99932000-07-15 Miles Bader <miles@gnu.org>
9994
9995 * editfns.c (char_property_eq, char_property_stickiness): Renamed
9996 from `text_property_eq' and `text_property_stickiness', respectively.
9997 (find_field, Fconstrain_to_field, char_property_eq)
9998 (char_property_stickiness): Changed to call char-property functions
9999 instead of text-property-only ones.
10000
10001 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10002 `next_single_char_property_change'). Do more error checking, and
10003 cleanup limit behavior.
10004 (Fprevious_single_char_property_change): New function.
10005 (syms_of_textprop): Initialize new subrs.
10006
10007 * xdisp.c (display_prop_end, invisible_text_between_p):
10008 Call Fnext_single_char_property_change instead of
10009 next_single_char_property_change.
10010
3fddcdc3
JR
100112000-07-15 Jason Rumney <jasonr@gnu.org>
10012
10013 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10014 after menu is finished with.
10015 (add_menu_item): Only consider wv->title as a menu title.
10016 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10017
10018 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10019 null title.
10020 (FONT_REGEXP): Remove unused macro, and its sub-components.
10021 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10022
10023 * w32term.c (help_echo_object, help_echo_pos): New variables.
10024 (note_mode_line_highlight): Store additional information about the
10025 help-echo in help_echo_object and help_echo_pos. Check both
10026 `local-map' and `keymap' properties for changing the cursor
10027 (note_mouse_highlight): Store additional information about the
10028 help-echo in help_echo_object and help_echo_pos.
10029 (note_tool_bar_highlight): Set help_echo_object to nil and
10030 help_echo_pos to -1.
10031 (w32_read_socket): Use gen_help_event instead of filling
10032 input_events manually.
10033 (syms_of_w32term): Staticpro help_echo_object.
10034 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 10035 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
10036 (x_clear_mouse_face): New function.
10037 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10038 (x_update_window_begin): No need to turn off the mouse
10039 highlight here.
10040 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10041 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
10042 (x_fill_stretch_glyph_string): Consume runs of stretch
10043 glyphs instead of a single one.
10044 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10045 with new argument list.
10046 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10047 (x_append_glyph, x_append_composite_glyph)
10048 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10049 changes in struct glyph starting 1999-12-27. See comments for
10050 xterm.c on 2000-07-05.
10051
178c5d9c
SS
100522000-07-14 Sam Steingold <sds@gnu.org>
10053
10054 * xfaces.c (realize_x_face): Fix the last patch:
10055 check `default_face' before dereferencing.
10056
6fe533f6
DL
100572000-07-14 Dave Love <fx@gnu.org>
10058
069f5950 10059 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 10060
dd7b81cf
KH
100612000-07-14 Kenichi Handa <handa@etl.go.jp>
10062
0693904a 10063 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 10064 default_face's fontset, not using the default fontset.
0693904a 10065
dd7b81cf
KH
10066 * coding.c (inhibit_iso_escape_detection): New variable.
10067 (syms_of_coding): Make it a Lisp variable.
10068 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10069 nonzero, ignore ISO2022's escape sequence.
10070
d5aa31d8
GM
100712000-07-14 Gerd Moellmann <gerd@gnu.org>
10072
e5acf0ca
GM
10073 * alloca.c (malloc) [emacs]: Define as xmalloc.
10074
bd23a692
GM
10075 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10076 use that instead of the mouse position. Add parameters DX and DY.
10077
10078 * dispextern.h (Fx_show_tip): Adjust number of parameters
10079 in prototype.
10080
9662da0b
GM
10081 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10082 if HELP is a function, call it with OBJECT and POS as parameters
10083 to get the help to display.
10084 (gen_help_event, kbd_buffer_store_help_event): New functions.
10085 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10086 (read_char): Call show_help_echo with new parameters.
10087
178c5d9c 10088 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
10089 Add prototypes.
10090
10091 * xterm.c (help_echo_object, help_echo_pos): New variables.
10092 (note_mode_line_highlight): Store additional information about the
10093 help-echo in help_echo_object and help_echo_pos. Check both
10094 `local-map' and `keymap' properties for changing the cursor
10095 (note_mouse_highlight): Store additional information about the
10096 help-echo in help_echo_object and help_echo_pos.
10097 (note_tool_bar_highlight): Set help_echo_object to nil and
10098 help_echo_pos to -1.
10099 (XTread_socket): Use gen_help_event instead of filling
10100 input_events manually.
10101 (syms_of_xterm): Staticpro help_echo_object.
10102
10103 * xmenu.c (menu_highlight_callback): Use
10104 kbd_buffer_store_help_event instead of setting up and input_event
10105 structure manually.
10106
10107 * xdisp.c (eval_form): GCPRO argument sexpr.
10108 (call_function): New function.
10109 (handle_single_display_prop): Use call_function and FUNCTIONP
10110 instead of checking whether if font_height is a symbol and
10111 using eval_form.
10112
10113 * eval.c (internal_condition_case_2): New function.
10114
10115 * lisp.h (FUNCTIONP): New macro.
10116 (internal_condition_case_2, call_function): Add prototypes.
10117
d5aa31d8
GM
10118 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10119 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10120 Always set `arg' member of input_events.
10121 (construct_menu_click): Unused function removed.
10122
10123 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10124
10125 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10126 (construct_drag_n_drop, x_scroll_bar_handle_click)
10127 (w32_read_socket): Always set `arg' member of input_events.
10128
10129 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10130
10131 * lisp.h (eval_form): Add prototype.
10132
10133 * xdisp.c (eval_form): Make it externally visible.
10134
0f1a9b23
GM
101352000-07-13 Gerd Moellmann <gerd@gnu.org>
10136
10137 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10138 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10139 consing. For prefix events, store the frame in the `arg' slot of
10140 the event, otherwise store the key there.
10141 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 10142 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
10143
10144 * xmenu.c (menu_highlight_callback): Store help string in the
10145 `arg' member of the input event; don't cons.
10146 (menubar_selection_callback): Use the `arg' slot of input events
10147 to queue additional information, instead of consing.
10148
10149 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10150
10151 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10152 TOOL_BAR_EVENTs.
10153 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10154
10155 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10156 input events to queue additional information, instead of consing.
10157
10158 * keyboard.c (kbd_buffer_gcpro): Renamed from
10159 kbd_buffer_frame_or_window. Now used for all Lisp objects
10160 referenced from the input queue.
10161 (kbd_buffer_store_event): Always use structure assignment for
10162 copying input events. Record all Lisp objects referenced from
10163 events in kbd_buffer_gcpro.
10164 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10165 differently from input events. Test for prefix menu_bar_events
10166 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10167 event in kbd_buffer_gcpro to nil.
10168 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10169 frame_or_window is equal to its arg member as prefix events.
10170 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10171 used by an input event to nil.
10172 (init_keyboard): Use two times the size of the input queue
10173 for kbd_buffer_gcpro.
10174 (syms_of_keyboard): Likewise.
10175
52283633
SM
10176 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10177 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
10178
10179 * termhooks.h (struct input_event): Add member `arg'.
10180 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10181 (USER_SIGNAL_EVENT): Renamed from user_signal.
10182
10183 * xfaces.c (ASET): Remove definition.
10184
10185 * lisp.h (AREF, ASET, ASIZE): New macros.
10186
10187 * fontset.c (AREF, ASIZE): Remove definitions.
10188
10189 * fns.c (AREF): Remove definition.
178c5d9c 10190
0f1a9b23
GM
10191 * composite.c (AREF): Remove definition.
10192
712eaef2
GM
101932000-07-12 Gerd Moellmann <gerd@gnu.org>
10194
d8ee7803
GM
10195 * dispnew.c (redraw_overlapped_rows): Add missing local.
10196 (scrolling_window): Remove debug code.
10197
712eaef2
GM
10198 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10199 Before scrolling, turn off a mouse-highlight in the window
10200 being scrolled.
10201
10202 * xterm.c (x_update_window_end): Add parameter
10203 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10204 redisplay in XTframe_up_to_date.
10205 (x_clear_mouse_face): New function.
10206 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10207
10208 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10209 current glyph row.
10210 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10211 it when any row is written to that contains glyphs highlighted in
10212 mouse-face.
10213 (update_window): Call the window update end hook with new
10214 parameter MOUSE_FACE_OVERWRITTEN_P.
10215 (direct_output_for_insert): Give up if row contains mouse-face.
10216
10217 * dispextern.h (struct redisplay_interface): Add parameter
10218 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10219 (clear_mouse_face): New function pointer member.
10220
02010917
SM
102212000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10222
10223 * syntax.c (back_comment): Use one switch rather than a few `if's.
10224 Obey open_paren_in_column_0_is_defun_start.
10225 When reverting to the `slow' method, try to nicely handle the case
10226 of nested comments by checking that the comment-starter we found
10227 does indeed match the comment-ender.
10228 (scan_sexps_forward, scan_sexps_forward):
10229 Ignore excessive opening parenthesis rather than throwing an error.
10230
d76c03ea
GM
102312000-07-11 Gerd Moellmann <gerd@gnu.org>
10232
10233 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10234 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10235
10236 * dispnew.c (direct_output_forward_char): Give up if currently
10237 displaying a message instead of the minibuffer contents.
10238
10239 * xterm.c (x_update_window_begin): No need to turn off the mouse
10240 highlight here.
10241 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10242 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
10243
10244 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10245 compare the mouse_face_p flags of both rows.
10246
10247 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10248
d55ead18
EZ
102492000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10250
10251 * keyboard.c (show_help_echo): Accept additional parameter
10252 ok_to_overwrite_keystroke_echo.
10253 (read_char): Call show_help_echo with a zero
10254 ok_to_overwrite_keystroke_echo argument.
52283633 10255 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
10256 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10257 ok_to_overwrite_keystroke_echo argument.
10258 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10259 non-zero ok_to_overwrite_keystroke_echo argument.
10260
df75b1a3
GM
102612000-07-10 Gerd Moellmann <gerd@gnu.org>
10262
4b92c49a
GM
10263 * xdisp.c (try_window_id): If changes are all below what is
10264 displayed in the window, and point is in the window, we still
10265 might have to find point on the display.
10266
10267 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10268 glyphs instead of a single one.
10269 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10270 with new argument list.
10271 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10272
df75b1a3
GM
10273 * keymap.c (get_keymap_1): Add comment that this function can GC.
10274 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10275 comment that functions can GC.
10276 (Fset_keymap_parent): GCPRO arg KEYMAP.
10277
4314cf3e
EZ
102782000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10279
10280 * msdos.c (XMenuActivate): After exiting the menu, restore the
10281 echo area message and erase it.
10282
ab49ce15
KH
102832000-07-10 Kenichi Handa <handa@etl.go.jp>
10284
10285 * fontset.c (Ffontset_info): Make the return value more compatible
10286 with that of Emacs 20.
10287
090a072f
GM
102882000-07-07 Gerd Moellmann <gerd@gnu.org>
10289
10290 * eval.c (Fsignal): Handle case that backtrace_list is null.
10291
f92de4a6
KH
102922000-07-07 Kenichi Handa <handa@etl.go.jp>
10293
10294 * ccl.c (Fccl_execute): Typo fixed.
10295
dd8888a1
GM
102962000-07-06 Gerd Moellmann <gerd@gnu.org>
10297
e5c81191 10298 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 10299
dd8888a1
GM
10300 * window.c (Fwindow_list): Reverse list at the end.
10301 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10302 means allow windows on OWINDOW's frame, only.
10303 (window_loop): Simplified; use Fwindow_list.
10304
10305 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10306
485266d0
GM
103072000-07-05 Gerd Moellmann <gerd@gnu.org>
10308
10309 * xterm.c (XTread_socket): Increment handling_signal at the start,
10310 decrement it at the end.
10311
10312 * eval.c (handling_signal): New variable.
10313 (Fsignal): Abort if handling_signal is non-zero.
10314
10315 * lisp.h (handling_signal): External declaration.
178c5d9c 10316
485266d0
GM
10317 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10318
80fcd514
KR
103192000-07-05 Ken Raeburn <raeburn@gnu.org>
10320
10321 Sound support for NetBSD through "Linux emulation" support:
10322 * config.in (HAVE_SOUNDCARD_H): Undef.
10323 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10324 * Makefile.in (LIBSOUND): New variable.
10325 (LIBES): Include it.
52283633
SM
10326 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10327 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
10328 (vox_open): Use DEFAULT_SOUND_DEVICE.
10329 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10330
d5c5cddd
GM
103312000-07-05 Gerd Moellmann <gerd@gnu.org>
10332
10333 * print.c (print_error_message): If Vsignaling_function is set,
10334 show it in *Messages*.
10335
10336 * lisp.h (Vsignaling_function): External declaration.
10337
10338 * eval.c (Vsignaling_function): New variable.
10339 (Fsignal): Compute it.
10340 (syms_of_eval): Staticpro it.
10341
65171e3a
DL
103422000-07-05 Dave Love <fx@gnu.org>
10343
10344 * syswait.h: Use the autoconf recommended approach. Old code
10345 #if'd out in case we need to revert.
10346
178c5d9c 10347 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 10348
e2c46326
AI
103492000-07-05 Andrew Innes <andrewi@gnu.org>
10350
10351 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10352 when non-NULL instead of __morecore, to take account of buffer
10353 memory. This also solves a problem with spurious memory warnings
10354 on Windows.
10355
10356 * ralloc.c: Make real_morecore non-static.
10357
10358 * eval.c (internal_condition_case): Comment out abort if
10359 interrupt_input_blocked is not zero.
10360
10361 * makefile.nt: Add support for `bootstrap' and related targets.
10362 Include minimal debug info in emacs.exe in release build.
10363 Remove all dependencies on lisp.h, and fixup some others.
10364
10365 * w32.c (init_environment): Install code from 20.7 for providing
10366 default values for environment variables, based on the
10367 executable's own location.
52283633 10368 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
10369 (sys_socket): Install socket inheritance bug fix from 20.7.
10370
10371 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10372 here via blockinput.h).
10373
a027a91b
SM
103742000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10375
e4b31601
SM
10376 * w32menu.c (w32_menu_display_help):
10377 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
10378
10379 * keyboard.h (show_help_echo): Declare.
10380
10381 * keyboard.c (show_help_echo): New function, extracted from read_char.
10382 Feval its `msg' argument if it's a cons cell.
10383 (read_char): Use it.
4cf8d9d5 10384 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 10385
178c5d9c 10386 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 10387 (note_tool_bar_highlight, XTread_socket):
178c5d9c 10388 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
10389 (dos_rawgetc):
10390 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10391 (note_tool_bar_highlight, w32_read_socket):
10392 Do not gratuitously ignore non-string `help-echo' properties.
10393
88d75730
GM
103942000-07-05 Gerd Moellmann <gerd@gnu.org>
10395
969f7e79
GM
10396 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10397
71201b00
GM
10398 * window.c (delete_all_subwindows): Reset Vwindow_list.
10399
88d75730
GM
10400 * xterm.c (x_append_glyph, x_append_composite_glyph)
10401 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10402 changes in struct glyph starting 1999-12-27. Some bit-fields of
10403 struct glyph were not set, which made glyphs unequal when compared
10404 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10405 effects were the result. This also depended on the contents of
10406 memory returned by xmalloc. If flickering happens again, activate
10407 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 10408 gone with that, chances are that it is caused by something similar.
88d75730
GM
10409
10410 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 10411
88d75730
GM
10412 * dispextern.h: Add some comments.
10413
10414 * window.c (add_window_to_list): Add parameter LIST.
10415 (window_list): Order list so that, for each frame, windows are
10416 in canonical order, and so that frames appear in the list in
10417 the order given by Vframe_list.
10418 (next_window): Reverse the handling of NEXT_P.
10419
53654733
GM
104202000-07-04 Gerd Moellmann <gerd@gnu.org>
10421
87efd256
GM
10422 * window.c (Vwindow_list): New variable.
10423 (make_window, delete_window): Set Vwindow_list to nil.
10424 (check_window_containing): New function.
10425 (window_from_coordinates): Rewritten.
10426 (add_window_to_list, window_list, candidate_window_p)
10427 (decode_next_window_args, next_window): New functions.
52283633 10428 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
10429 (Fwindow_list): New function.
10430 (Fother_window): Cleaned up.
10431 (foreach_window): Add a longer "variable argument list". Let
10432 callback function return 0 to indicate that cycling over windows
10433 should stop.
10434 (foreach_window_1): Likewise.
10435 (freeze_window_start): Return int.
10436 (init_window): New function.
10437 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10438
10439 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10440 input_event with bzero.
10441 (main): Call init_window.
10442
53654733
GM
10443 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10444 a menu filter.
10445
4a8c194f
KH
104462000-07-04 Kenichi Handa <handa@etl.go.jp>
10447
10448 * composite.h (make_composition_value_copy): Extern it.
10449
10450 * composite.c (make_composition_value_copy): New function.
10451
10452 * editfns.c (Fformat): While copying text properties, make each
10453 composition property value a copy.
10454
10455 * fns.c (concat): While copying text properties, make each
10456 composition property value a copy.
10457
831a6cb0
GM
104582000-07-03 Gerd Moellmann <gerd@gnu.org>
10459
2f516940
GM
10460 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10461
178c5d9c 10462 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
10463 marked already.
10464
831a6cb0
GM
10465 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10466 include those frames as candidates which have their focus
10467 redirected to the minibuffer frame.
10468
d9c4f922
SM
104692000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10470
10471 * fns.c (Fputhash): Return `value' rather than nil.
10472
3780bc22
GM
104732000-06-30 Gerd Moellmann <gerd@gnu.org>
10474
97d176db
GM
10475 * frame.c (next_frame): Don't check focus redirection in case
10476 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
10477 unless their focus is redirected, which contradicts the
10478 specification of next-frame, and leads to infinite loops in
10479 certain situations when cycling through windows with next-window.
10480
dca9961d
KH
104812000-06-30 Kenichi Handa <handa@etl.go.jp>
10482
10483 * coding.c (code_convert_region): Even if the length of text is
10484 zero, try to convert it if coding->type is coding_type_ccl.
10485 (decode_coding_string, encode_coding_string): Likewise.
10486
d5483ab1
GM
104872000-06-28 Gerd Moellmann <gerd@gnu.org>
10488
af5c25e1 10489 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 10490 the display if windows_or_buffers_changed.
af5c25e1
GM
10491
10492 * dispnew.c (struct row_entry): New structure.
10493 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10494 (row_table_size, old_lines, new_lines, old_lines_size)
10495 (new_lines_size, run_pool, runs_size, runs): New variables.
10496 (add_row_entry): New function.
10497 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 10498 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
10499 holding them in local variables. Use a larger hash table whose
10500 size depends on glyph matrix sizes. Don't use bzero to clear the
10501 hash table; instead, clear used slots only.
10502
10503 * fns.c (next_almost_prime): Make it externally visible.
10504
10505 * lisp.h (next_almost_prime): Add prototype.
10506
d5483ab1
GM
10507 * s/isc4-0.h (sigunblock): Define.
10508
10509 * s/sco5.h (sigunblock): Define.
10510
93e40f40
DL
105112000-06-27 Dave Love <fx@gnu.org>
10512
10513 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10514 (moved to osf5-0.h).
10515 [!NOT_C_CODE]: Protect string.h stuff.
10516
10517 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10518 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10519
3c4b7685
GM
105202000-06-27 Gerd Moellmann <gerd@gnu.org>
10521
97d176db 10522 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
10523 below the last line from the needed window height.
10524
32cad0aa
SM
105252000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10526
10527 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10528 (Fwidget_get): Use it.
10529 (syms_of_fns): Defsubr it.
10530
2c69ced2
GM
105312000-06-26 Gerd Moellmann <gerd@gnu.org>
10532
178c5d9c 10533 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
10534 display info for XIM.
10535 (xim_open_dpy): Likewise.
10536 (xim_close_dpy): Don't free the display info's XIM.
10537
10538 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10539
10540 * config.in (USE_XIM): New define.
10541
3fc720e4
GM
10542 * keymap.c (get_keyelt): For menu-items containing a `:filter
10543 FILTER', apply FILTER to the menu-item's definition to get the
10544 real definition to use.
10545
10546 * lisp.h (QCfilter): External declaration.
10547
2c69ced2
GM
10548 * xfns.c (Fimage_size): New function.
10549 (syms_of_xfns): Defsubr it.
10550
f978b2a2
AS
105512000-06-26 Andreas Schwab <schwab@suse.de>
10552
10553 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10554 Fstring_as_unibyte.
10555
94cc7892
DL
105562000-06-25 Dave Love <fx@gnu.org>
10557
52283633 10558 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
10559
10560 * Makefile.in (blockinput.h): Depend on atimer.h.
10561 (atimer.h): Depend on systime.h.
10562
52283633 10563 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 10564
52283633 10565 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
10566
10567 * lisp.h (swap_in_global_binding): Declare.
10568
b8c24556
KR
105692000-06-24 Ken Raeburn <raeburn@gnu.org>
10570
10571 * process.c (Fopen_network_stream): Turn off atimers for duration
10572 of call to connect. (Patch from Gerd.)
10573
8cf8560b
DL
105742000-06-23 Dave Love <fx@gnu.org>
10575
511c7541
DL
10576 * ralloc.c: Maybe include unistd.h
10577
8cf8560b
DL
10578 * emacs.c (setgrp): Undefine before defining.
10579 (malloc_warning, set_time_zone_rule, index): Prototype.
10580
10581 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10582 HAVE_STRUCT_TIMEZONE.
10583
10584 * s/osf1.h: Move string.h hack here from alpha.h and make it
10585 conditional.
10586 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10587 _XOPEN_SOURCE.
10588 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10589 (SOCKLEN_TYPE): Don't define.
10590
10591 * m/alpha.h: Remove string.h hack.
10592
10593 * s/osf5-0.h: New file.
10594
10595 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10596 include time.h, done by systime.h.
10597 [__FreeBSD__]: Remove redundant includes.
10598
3fc720e4 10599 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
10600 (delete_temp_file): Return Qnil to avoid warning.
10601
10602 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10603
10604 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10605 HAVE_X_WINDOWS.
10606
10607 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10608
10609 * composite.h (compose_text): Declare.
10610
10611 * xterm.c: Don't include sys/types.h unconditionally. Don't
10612 protect its inclusion with !USG (following xmenu.c).
10613
ea055732
GM
106142000-06-23 Gerd Moellmann <gerd@gnu.org>
10615
10616 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10617 in x_create_frame.
10618
74b01b80
EZ
106192000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10620
10621 * coding.c (decode_eol_post_ccl): Special handling for undecided
10622 and inconsistent EOL types.
10623
64f3a166
GM
106242000-06-22 Gerd Moellmann <gerd@gnu.org>
10625
16cf31f7
GM
10626 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10627 trough color and main window's background color.
10628
52283633 10629 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
10630
10631 * xterm.h (Xt_app_con): External declaration.
10632
10633 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 10634
486a103d
GM
10635 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10636
64f3a166
GM
10637 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10638 (handle_invisible_prop): Record the start of invisible text in
10639 it->add_overlay_start.
10640 (struct overlay_entry): Add member `overlay'.
10641 (handle_overlay_change): Simplify.
10642 (next_overlay_string): After having processed overlay strings at the
10643 end of the buffer, record that fact in
10644 it->overlay_strings_at_end_processed_p.
10645 (compare_overlay_entries): If before- and after-strings come
10646 from the same overlay, let before-strings come first.
10647 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10648 (load_overlay_strings): Take it->add_overlay_start into account
10649 when adding overlay strings.
10650
10651 * dispextern.h (struct it): Add member add_overlay_start.
10652
bb746ea6
DL
106532000-06-22 Dave Love <fx@gnu.org>
10654
10655 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10656
10657 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10658
a8f573f3
KH
106592000-06-22 Kenichi Handa <handa@etl.go.jp>
10660
10661 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10662 is greater than 0.
10663
9f2bbc92
DL
106642000-06-21 Dave Love <fx@gnu.org>
10665
178c5d9c 10666 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 10667
3ee5041c
SM
106682000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10669
10670 * syntax.c (back_comment): Simplify string-parity counting (with
10671 the added benefit of handling multiple string-styles as long as
10672 they are not intertwined).
10673 Jump to the slow code as soon as a comment starter is found in
10674 a "string_lossage" position. Fixes the case: " /* " /* " */.
10675
4c343001
DL
106762000-06-21 Dave Love <fx@gnu.org>
10677
10678 * Makefile.in: Use GETLOADAVG_LIBS.
10679
10680 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10681 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10682
e6365855
SM
106832000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10684
10685 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10686 (Fforward_comment, scan_lists):
10687 Check the comstyle of single-char comment-starters.
10688 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10689 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
10690 Check the comstyle of single-char comment-starters.
10691 Clarify control-flow around the Scomment case.
e6365855 10692
5700d2cc
DL
106932000-06-20 Dave Love <fx@gnu.org>
10694
d355bd8a
SM
10695 * fns.c (make_hash_table, maybe_resize_hash_table):
10696 Cast arg of next_almost_prime.
5700d2cc 10697
178c5d9c 10698 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
10699
10700 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10701 and unistd.h.
10702
4a27bdfb
GM
107032000-06-20 Gerd Moellmann <gerd@gnu.org>
10704
a61d762c 10705 * keyboard.c (adjust_point_for_property): Check if display
52283633 10706 property should be treated as intangible by looking at its value.
a61d762c 10707
178c5d9c 10708 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
10709 (display_prop_intangible_p): New functions.
10710
10711 * dispextern.h (display_prop_intangible_p): Add prototype.
10712
10713 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 10714
4a27bdfb
GM
10715 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10716 argument to sigprocmask.
10717
10718 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10719 argument to sigprocmask.
10720
10721 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10722 sigprocmask_set, and pass a pointer to it to sigprocmask.
10723
10724 * sysdep.c (sigprocmask_set): New variable.
10725
10726 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10727 report_file_error.
10728
427ec082
SS
107292000-06-20 Sam Steingold <sds@gnu.org>
10730
10731 * xrdb.c: Don't declare xmalloc, xrealloc.
10732
8972fe79 107332000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
10734
10735 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10736 (re_comp): Cast gettext return value to avoid complaints when
10737 !HAVE_LIBINTL.
10738
074b6efe
DL
107392000-06-20 Dave Love <fx@gnu.org>
10740
52283633 10741 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 10742
5700d2cc 10743 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 10744
d355bd8a 10745 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
10746
10747 * m/alpha.h: Don't declare xmalloc, xrealloc.
10748
0af4f205
DL
10749 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10750
10751 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10752
10753 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10754
10755 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10756 HAVE_GETWD.
10757
074b6efe
DL
10758 * keyboard.h (poll_for_input_1): Declare.
10759
10760 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10761
10762 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10763
10764 * doprnt.c: Don't declare xmalloc, xrealloc.
10765
10766 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10767 (getenv, ctime, getwd): Removed.
10768 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10769
10770 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10771 x_set_tool_bar_lines.
10772
10773 * config.in: Add HAVE_GETWD. Move some definitions above
10774 machine/system includes.
10775
68a5e97b
KH
107762000-06-20 Kenichi Handa <handa@etl.go.jp>
10777
95417e1e
KH
10778 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10779
68a5e97b
KH
10780 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10781 contain information about ENCODING.
10782
10783 * fontset.c (FONTSET_ASCII): Use the first element of char table
10784 for an ASCII font, not defalt slot.
10785 (fontset_ref_via_base): If FONTSET doesn't contain information for
10786 C, try the default fontset.
10787 (make_fontset): Don't copy the default fontset.
10788 (fontset_font_pattern): Likewise.
10789 (accumulate_font_info): If ELT is nil, use the corresponding
10790 element in the default fontset.
10791
3b4fa1b2
DL
107922000-06-19 Dave Love <fx@gnu.org>
10793
943e731c
DL
10794 * syntax.c (Fparse_partial_sexp): Doc fix.
10795
10796 * regex.h: Test PROTOTYPES as well as __STDC__.
10797
3b4fa1b2
DL
10798 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10799 errno, strerror. Put text after #endif in comment.
10800
52283633 10801 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
10802
10803 * xterm.c (x_frame_of_widget): Likewise.
10804
cdf0357b
GM
108052000-06-19 Gerd Moellmann <gerd@gnu.org>
10806
10807 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10808 to Vfundamental_mode_abbrev_table.
10809
10810 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10811 bogus objects are marked. This slows down GC by ~80 percent, but
10812 it might be worth trying when debugging GC-related problems.
10813 This feature requires conservative stack marking to be enabled.
10814
10815 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10816 returns XLookupChars, reset `modifiers' to zero.
10817
998e9f8c
DL
108182000-06-19 Dave Love <fx@gnu.org>
10819
10820 * mktime.c: Unprotoized.
10821
18e21ce8 108222000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
10823
10824 * data.c (set_internal): If variable is frame-local,
10825 store the new value immediately into the frame parameter alist.
10826
140c4ac6
KR
108272000-06-19 Ken Raeburn <raeburn@gnu.org>
10828
14358466
KR
10829 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10830 in the custom handler pointer.
10831
140c4ac6
KR
10832 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10833 value, or checks for CHAR_META can fail when Lisp_Object is a
10834 union type.
10835 * keymap.c (get_keyelt): Likewise.
10836
10d7bf84
KH
108372000-06-19 Kenichi Handa <handa@etl.go.jp>
10838
10839 * ccl.h (struct ccl_program): New member eol_type.
10840 (struct ccl_spec): New member cr_carryover.
10841
10842 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10843 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10844
10845 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10846 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10847 (decode_eol_post_ccl): New function.
10848 (decode_coding): Don't detect EOL format here for CCL based coding
10849 systems.
10850 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10851 decode_eol_post_ccl after running the CCL program.
10852 (code_convert_region): Don't detect EOL format here for CCL based
10853 coding systems.
10854 (decode_coding_string): Likewise.
10855
52e386c2
KR
108562000-06-18 Ken Raeburn <raeburn@gnu.org>
10857
10858 * charset.c (update_charset_table): Use XINT on "iso_final_char"
10859 when treating it as an integer.
10860
10861 * coding.h (encode_coding_string): Declare.
10862
10863 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10864 it as an integer.
10865
10866 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10867 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10868 to be passed to get_local_map.
10869
10870 * sound.c (Fplay_sound): Don't call make_number on
10871 Frun_hook_with_args count argument.
10872
10873 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10874 for lisp objects in X event structure data field, when lisp
10875 objects are represented with unions.
10876 (x_scroll_bar_to_input_event): Ditto.
10877
b357b9d4
KR
108782000-06-16 Ken Raeburn <raeburn@gnu.org>
10879
10880 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
10881 termination of string. Fix sense of test whether
10882 Vline_number_display_limit is an integer.
b357b9d4 10883
a871441d
GM
108842000-06-16 Gerd Moellmann <gerd@gnu.org>
10885
a9021acd
GM
10886 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10887 only if HAVE_X_WINDOWS.
10888
6344985d
GM
10889 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10890 of titles.
10891
427ec082 10892 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
10893 out of bounds.
10894
228b083e
EZ
108952000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10896
10897 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10898 of its headers.
10899
c25b53a2
KH
109002000-06-15 Kenichi Handa <handa@etl.go.jp>
10901
10902 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10903 start of the while loop.
10904
a6981b11
GM
109052000-06-15 Gerd Moellmann <gerd@gnu.org>
10906
e9924e52
GM
10907 * atimer.c (alarm_signal_handler): Add forward declaration.
10908
a6981b11
GM
10909 * data.c (set_internal): Remove debug code.
10910
25fa6deb
GM
109112000-06-14 Gerd Moellmann <gerd@gnu.org>
10912
dce6b995
GM
10913 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10914
9f817ea4
GM
10915 * unexec.c (toplevel) [COFF]: Include coff.h.
10916
10917 * s/lynxos.h: New file.
10918
10919 * keymap.c (Fsingle_key_description): Enclose function key and
10920 event symbol names in angle brackets.
10921
8a4e3c0c
GM
10922 * xdisp.c (setup_echo_area_for_printing): Call
10923 message_log_maybe_newline if message_buf_print is not set.
10924
10925 * print.c (printchar, strout): Don't check message_buf_print
427ec082 10926 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
10927 function does something useful even when message_buf_print is
10928 already set.
10929
52283633
SM
10930 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10931 New variables.
25fa6deb
GM
10932 (ensure_echo_area_buffers): Initialize echo buffer's
10933 truncate lines setting to nil.
10934 (with_echo_area_buffer): Don't set the echo buffer's truncate
10935 lines setting here.
8a4e3c0c 10936 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
10937 of message_truncate_lines.
10938 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
10939 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10940 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
10941
10942 * keyboard.c (read_char): Bind message-truncate-lines to t
10943 while displaying a help-echo.
10944
10945 * lisp.h (Qmessage_truncate_lines): External declaration.
10946
163dcff3
GM
109472000-06-13 Gerd Moellmann <gerd@gnu.org>
10948
1681ead6
GM
10949 * xdisp.c (Vline_number_display_limit): Renamed from
10950 line_number_display_limit.
10951 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10952 Extend documentation string. Initialize
10953 Vline_number_display_limit to nil meaning no limit.
10954 (decode_mode_spec): Use Vline_number_display_limit with its new
10955 meaning.
10956
163dcff3
GM
10957 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10958
18e21ce8 109592000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
10960
10961 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 10962
163dcff3
GM
10963 * xfns.c (x_set_frame_parameters): Comment fix.
10964
10965 * frame.c (store_frame_param): Call swap_in_global_binding if the
10966 variable's current binding was chosen based on this frame.
10967
10968 * data.c (swap_in_global_binding): New function.
10969
a704139d
EZ
109702000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10971
10972 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10973 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10974
9b6610db
EZ
109752000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10976
10977 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10978
c68833d2
JR
109792000-06-12 Jason Rumney <jasonr@gnu.org>
10980
10981 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10982
10983 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10984
10985 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10986
10987 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10988
ed1056b3
GM
109892000-06-12 Gerd Moellmann <gerd@gnu.org>
10990
10991 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
10992 (syms_of_xfaces): Defsubr Sdump_colors.
10993 (x_free_colors): Don't treat b&w specially on default visual.
10994 (x_free_dpy_colors): New function.
10995 (free_face_colors): Don't check visual class; it's done
10996 in x_free_colors.
10997
10998 * xterm.c (x_frame_of_widget): New function.
10999 (x_alloc_nearest_color_for_widget): Use it.
11000 (x_copy_dpy_color): New function.
11001 (x_destroy_window): Free various colors.
11002
5050a2ef
KH
110032000-06-12 Kenichi Handa <handa@etl.go.jp>
11004
11005 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11006
11007 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11008
11009 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11010
11011 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11012
11013 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11014
fb1b041d
DL
110152000-06-11 Dave Love <fx@gnu.org>
11016
11017 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11018
ff96b5f4
EZ
110192000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11020
11021 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11022
db8eeecd
GM
110232000-06-11 Gerd Moellmann <gerd@gnu.org>
11024
ed1056b3 11025 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
11026 to `XEvent *'.
11027
49b71c5f
KH
110282000-06-10 Kenichi Handa <handa@etl.go.jp>
11029
c479bd55
KH
11030 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11031 (regex_compile): Fix the code for handling the case of single byte
11032 char and multibyte char being mixed in a range within [...].
11033
ff6a65c2
KH
11034 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11035 and dst_multibyte members of coding.
11036
49b71c5f
KH
11037 * charset.c (update_charset_table): Update the table
11038 bytes_by_char_head.
11039 (init_charset_once): Initialize elements of bytes_by_char_head to
11040 1 except for leading codes for private charases.
11041
11042 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 11043 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 11044
9e80b57d
KR
110452000-06-09 Ken Raeburn <raeburn@gnu.org>
11046
11047 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11048 access the data it doesn't point to.
11049
f83fe4b4
GM
110502000-06-08 Gerd Moellmann <gerd@gnu.org>
11051
11052 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 11053 will be translated to a switch-frame event when reading the
f83fe4b4
GM
11054 event queue. This is necessary because Emacs otherwise won't
11055 perform a switch-frame to a new frame until some other event, for
11056 example a keystroke event, forces it to do so. This has various
11057 effects, one visible being that the cursor of a frame created with
11058 C-x 5 2 or switched to with a window manager key binding like
11059 A-TAB stays hollow because selected_window isn't on the newly
11060 focused frame until the switch-frame is performed.
11061
11062 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11063 generating a switch-frame event if necessary.
11064
11065 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11066
11067 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11068 it's an integer.
11069
0890801b
KH
110702000-06-08 Kenichi Handa <handa@etl.go.jp>
11071
52283633 11072 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 11073
173cbca8
GM
110742000-06-07 Gerd Moellmann <gerd@gnu.org>
11075
3091c2a6
GM
11076 * window.c (displayed_window_lines): Take empty lines at
11077 the bottom of a window into account.
427ec082 11078
f38952fe
GM
11079 * window.c (displayed_window_lines): New function.
11080 (Fmove_to_window_line): Use displayed_window_lines to determine
11081 the number of lines to move, instead of using the window's height.
11082
11083 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11084 to stop reading, even if the form read sets point to a different
11085 value when evaluated.
11086
427ec082 11087 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
11088 put the cursor.
11089
6ba6c818
KH
110902000-06-07 Kenichi Handa <handa@etl.go.jp>
11091
11092 * fileio.c (e_write): Free composition data if stored in
11093 coding->cmp_data.
11094
5f1aea9a
GM
110952000-06-06 Gerd Moellmann <gerd@gnu.org>
11096
666852af
GM
11097 * xdisp.c (display_line): Set row's and iterator's
11098 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11099 Set cursor even if row ends in the middle of a character.
11100 (dump_glyph_row): Print values of new flags.
11101 (redisplay_window) <cursor movement in unchanged window>: When
11102 point has been moved forward, and PT is at the end of the cursor
11103 row, don't place the cursor in the next row if the cursor row ends
11104 in the middle of a character or at ZV.
11105
11106 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11107 (struct glyph_row): Add starts_in_middle_of_char_p and
11108 ends_in_middle_of_char_p.
11109 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11110 ends_in_middle_of_char_p flag.
11111 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11112
d13f3e2e
GM
11113 * term.c (append_glyph): Revert change of 2000-06-06.
11114
11115 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11116 padding glyph not fitting on line as whole character not
11117 fitting on line.
11118
5f1aea9a
GM
11119 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11120 this isn't true for images with `:ascent 100'.
11121
10cda9b0
KH
111222000-06-06 Kenichi Handa <handa@etl.go.jp>
11123
ed00559d
KH
11124 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11125 as modified if it is originally unmodified.
11126
10cda9b0
KH
11127 * term.c (encode_terminal_code): Change the way to check if
11128 terminal coding does any conversion.
11129 (append_glyph): Set glyph->pixel_width correctly.
11130
11131 * xdisp.c (display_line): While checking line continuation, pay
11132 attention to a padding glyph.
11133
1969fae2
GM
111342000-06-05 Gerd Moellmann <gerd@gnu.org>
11135
11136 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11137
162ccef4
DL
111382000-06-05 Dave Love <fx@gnu.org>
11139
f19f32dd
DL
11140 * xdisp.c: Include fontset.h.
11141
11142 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11143
11144 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11145
11146 * dispnew.c: Conditionally include term.h.
11147
11148 * coding.h: Declare code_convert_string_norecord.
11149
11150 * frame.h (struct frame): Use volatile unconditionally.
11151
11152 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11153
11154 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11155
11156 * systime.h: Protect against multiple inclusion.
11157 (timezone) [USG5_4]: Define as time_t.
11158
11159 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11160 (Foptimize_char_table, make_temp_name): Declare.
11161
11162 * Makefile.in (xdisp.o): Depend on fontset.h.
11163
11164 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11165
11166 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11167 (Foptimize_char_table, make_temp_name): Declare.
11168
427ec082 11169 * s/irix4-0.h:
162ccef4
DL
11170 * s/irix5-0.h:
11171 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11172
2082fe81
DL
111732000-06-02 Dave Love <fx@gnu.org>
11174
11175 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11176
dcf671d2
GM
111772000-06-02 Gerd Moellmann <gerd@gnu.org>
11178
11179 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 11180 result face, set flags in that face indicating that colors may not
dcf671d2
GM
11181 be freed.
11182
11183 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11184 glyph, use the ASCII NUL character to determine the face.
11185
d42122a3
DL
111862000-06-02 Dave Love <fx@gnu.org>
11187
11188 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11189 (VFORK_RETURN_TYPE): Remove.
427ec082 11190
d42122a3
DL
11191 * config.in: Add NO_MATHERR.
11192
dd432f16
DL
111932000-06-01 Dave Love <fx@gnu.org>
11194
90aa4ea8
DL
11195 * cmds.c (internal_self_insert): Don't check
11196 Vbefore_change_function, Vafter_change_function.
11197
11198 * insdel.c (signal_before_change, signal_after_change): Likewise.
11199
11200 * buffer.c (Vbefore_change_function, Vafter_change_function):
11201 Variables and their initializations deleted.
11202
2330c9d4
DL
11203 * callint.c (Fcall_interactively): Doc fix.
11204
dd432f16
DL
11205 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11206
bf9e8804
DL
112072000-05-31 Dave Love <fx@gnu.org>
11208
11209 * textprop.c: Revert last change -- duplicated.
11210
3694b4ab
GM
112112000-05-31 Gerd Moellmann <gerd@gnu.org>
11212
11213 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11214 in #if 0.
11215
11216 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11217
f14156cd
JR
112182000-05-31 Jason Rumney <jasonr@gnu.org>
11219
8119aab8
JR
11220 * search.c (Fre_search_forward, Fre_search_backward)
11221 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11222
f14156cd
JR
11223 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11224
4aab9be3
JR
112252000-05-30 Jason Rumney <jasonr@gnu.org>
11226
11227 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11228 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11229
52283633 11230 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
11231
11232 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11233 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11234 expand a nil default_filename.
11235
11236 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11237 pointer to glyph_to_pixel_coords, not a frame.
11238
11239 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11240 coding.h to dependencies.
11241
11242 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11243
11244 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11245 window pointer to be consistent with w32term.c and xterm.c.
11246
11247 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11248 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11249 (Qline_spacing, Qcenter): New variables.
11250 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11251 (x_set_line_spacing): New function.
52283633 11252 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
11253 (x_specified_cursor_type): New function.
11254 (x_set_cursor_type): Use it.
11255 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11256 and icon strings.
11257 (validate_x_resource_name, x_get_resource_string): Measure lengths
11258 of external strings in bytes.
11259 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11260 GetTextExtentPoint32 with NULL title.
11261 (Fx_create_frame): Initialize Qline_spacing.
11262 (w32_load_system_font): Initialize font->double_byte_p.
11263 (x_to_w32_charset): Use Vw32_charset_info_alist.
11264 (Image, busy cursor, tooltip functions): Merged changes from
11265 xfns.c. Not yet functional on Windows.
11266
11267 * w32gui.h (W32FontStruct): Add double_byte_p member.
11268
11269 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11270 (emacs_button_translation): Use it.
11271 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11272 in `mask' to be set.
11273
11274 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11275 menu strings.
11276
11277 * w32term.c: Format and doc changes to bring closer to xterm.c.
11278 (w32_char_font_type): New enum.
11279 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11280 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11281 (w32_encode_char): New function.
11282 (x_encode_char): Removed.
11283 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11284 x_encode_char and w32_font_is_double_byte.
11285 (x_produce_image_glyph): Use image_ascent.
11286 (x_produce_glyphs): Use new version of w32_per_char_metric and
11287 handle NULL return value. Allow extra line spacing.
11288 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11289 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11290 w32_font_type member of glyph instead.
11291 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11292 (fast_find_position): Make sure not to consider rows not visible
11293 in the window.
11294 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11295 w32_menu_display_help with input blocked, as it can abort.
11296 (x_display_and_set_cursor): Choose cursor depending
11297 on buffer-local value of cursor_type.
11298 (x_draw_bar_cursor): Add parameter WIDTH.
11299
11300 * w32term.h (CP_DEFAULT): Define.
11301 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11302
10fc3187
GM
113032000-05-30 Gerd Moellmann <gerd@gnu.org>
11304
11305 * search.c (Fre_search_forward, Fre_search_backward)
11306 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11307
d0555360
KH
113082000-05-30 Kenichi Handa <handa@etl.go.jp>
11309
11310 * coding.c (detect_coding_iso2022): Fix code for checking
11311 CODING_CATEGORY_MASK_ISO_8_2.
11312
f1ad044f
SM
113132000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11314
11315 * regex.c (PREFETCH_NOLIMIT): New function.
11316 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11317
84ec3b4b
GM
113182000-05-29 Gerd Moellmann <gerd@gnu.org>
11319
66254a13
GM
11320 * syntax.c (find_defun_start): Move test for
11321 open_paren_in_column_0_is_defun_start outside of the loop.
11322
49e70dec
GM
11323 * xdisp.c (redisplay_window): Really switch buffers when
11324 displaying mode lines, and temporarily set selected_frame to the
11325 frame of the window that's redisplayed.
11326
84ec3b4b
GM
11327 * xfaces.c (free_realized_faces): Block/unblock input.
11328 (free_realized_multibyte_face): Ditto.
11329
869a3a14
DL
113302000-05-29 Dave Love <fx@gnu.org>
11331
11332 * textprop.c (Qkeymap): New variable.
11333 (syms_of_textprop): Intern it.
11334
11335 * keymap.c: Include intervals.h.
11336 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11337
11338 * Makefile.in (keymap.o): Depend on intervals.h.
11339
11340 * keyboard.c (menu_bar_items, tool_bar_items)
11341 (Fexecute_extended_command): Deal with `keymap' property.
11342 (read_key_sequence): Track map from `keymap' property as well as
11343 `local_map'.
11344
11345 * intervals.c (get_local_map): Extra arg to allow looking for
11346 `keymap' too.
11347
11348 * intervals.h (map_property): New enum.
11349 (get_local_map): Extra arg using it.
11350 (Qkeymap): Declare.
11351
84ec3b4b 11352 * lisp.h (get_local_map): Don't declare here.
869a3a14 11353
89d0c844
KH
113542000-05-29 Kenichi Handa <handa@etl.go.jp>
11355
11356 * Makefile.in (callproc.o): Depend on composite.h.
11357
11358 * callproc.c: Include composite.h.
11359 (Fcall_process): Handle composition correctly.
11360
11361 * coding.h (coding_allocate_composition_data): Extern it.
11362 (coding_restore_composition): Likewise.
11363
11364 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11365 yet allocated, finish decoding with result
11366 CODING_FINISH_INSUFFICIENT_CMP.
11367 (coding_allocate_composition_data): Make it non-static.
11368 (coding_restore_composition): Likewise.
11369
797a084a
EZ
113702000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11371
11372 * charset.c (syms_of_charset): Revert last change.
11373
cf872af5
EZ
113742000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11375
11376 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
11377 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11378 Handa.
cf872af5 11379
5b1ae051
EZ
113802000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11381
11382 * charset.c (syms_of_charset): Set width of character sets
11383 eight-bit-control and eight-bit-graphic to 1 column.
11384
34ec9ebe
GM
113852000-05-26 Gerd Moellmann <gerd@gnu.org>
11386
11387 * config.in (HAVE_SPEED_T): New define.
11388
11389 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11390 `extern speed_t'.
11391
dd854dc2
DL
113922000-05-26 Dave Love <fx@gnu.org>
11393
11394 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11395
11396 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11397 (Fsubr_arity): New function.
11398 (syms_of_data): Install them.
11399
ba9f8f95
KH
114002000-05-26 Kenichi Handa <handa@etl.go.jp>
11401
0f3e0672
KH
11402 * charset.c (init_charset_once): Set the table bytes_by_char_head
11403 correctly.
11404
cebefb44
KH
11405 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11406 the default fontset to what Emacs uses by default.
0f3e0672
KH
11407 (check_registry_encoding): This function deleted.
11408 (Fset_fontset_font): Remove the adhoc condition for the default
11409 fontset. Allow cons in FONTNAME.
cebefb44 11410
0f3e0672
KH
11411 * fns.c (map_char_table): Ignore char-table entries for
11412 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 11413
7a18af49
KR
114142000-05-25 Ken Raeburn <raeburn@gnu.org>
11415
11416 * emacs.c (main): Initialize keyboard syms before initializing
11417 window code, so face names are available.
11418
d2af47df
SM
114192000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11420
11421 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11422 of an anchor at the beginning of a shy-group.
11423
fc6a6a4e
GM
114242000-05-25 Gerd Moellmann <gerd@gnu.org>
11425
11426 * xdisp.c (handle_invisible_prop): Don't try to skip over
11427 invisible text if end of text is already reached.
11428
005f0d35
DL
114292000-05-25 Dave Love <fx@gnu.org>
11430
02513cdd
DL
11431 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11432
005f0d35
DL
11433 * coding.c (encode_eol): Add null statement after label.
11434
89f6ca4e
EZ
114352000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11436
11437 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11438 2000-05-20.
11439
a4e1759e
KH
114402000-05-25 Kenichi Handa <handa@etl.go.jp>
11441
11442 * ccl.c (ccl_driver): Fix previous change.
11443
eacfd7fe
KH
114442000-05-25 Kenichi Handa <handa@etl.go.jp>
11445
46ab33a9
KH
11446 * coding.c (run_pre_post_conversion_on_str): Set point to the
11447 beginning of buffer before calling coding->post_read_conversion.
11448 (decode_coding_string): Give correct args to
11449 run_pre_post_conversion_on_str.
11450 (encode_coding_string): Likewise.
11451
eacfd7fe
KH
11452 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11453 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11454 eight-bit-graphic correctly.
11455
f8569325
DL
114562000-05-24 Kenichi HANDA <handa@etl.go.jp>
11457
11458 * fileio.c (Finsert_file_contents): Even if a file is not found,
11459 execute codes for setting up coding system. Call
11460 after-insert-file-functions unconditionally.
11461
04545643
GM
114622000-05-24 Gerd Moellmann <gerd@gnu.org>
11463
11464 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11465 BSD_PGRPS are not defined.
11466
747d90ea
KH
114672000-05-24 Kenichi Handa <handa@etl.go.jp>
11468
11469 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11470 DESCRIPTION.
11471 (syms_of_charset): Avoid building same strings.
11472
716e3b88
GM
114732000-05-23 Gerd Moellmann <gerd@gnu.org>
11474
11475 * lread.c (Fload): Add a comment about the meaning of
11476 Vuser_init_file being t.
11477
11478 * puresize.h (BASE_PURESIZE): Increase to 675000.
11479
11480 * s/gnu-linux.h (setpgrp): Don't define it here because this
11481 prevents compilation on GNU/Linux systems with glib 2.2.
11482
11483 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11484 as setpgid.
427ec082 11485
9aeb39fa
EZ
114862000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11487
11488 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11489 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11490 version.
11491 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11492
29ced61b
KH
114932000-05-23 Kenichi Handa <handa@etl.go.jp>
11494
52283633 11495 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 11496
3d80f24d
KH
11497 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11498
52283633 11499 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 11500
29ced61b
KH
11501 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11502
d7e00792
KH
115032000-05-22 Kenichi Handa <handa@etl.go.jp>
11504
c9d80d38
KH
11505 * keyboard.c (read_char): Allow character codes 128..255 to be
11506 handled by input-method-function.
11507
d7e00792
KH
11508 * insdel.c (adjust_markers_for_replace): Fix previous change.
11509 (adjust_after_replace): If PREV_TEXT is nil, call
11510 adjust_markers_for_insert, not adjust_markers_for_replace.
11511
087121cc 115122000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 11513
087121cc
GM
11514 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11515 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11516 [HAVE_GRANDPT]: Define.
11517 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11518
11519 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11520 like SYSV_PTYS.
11521
11522 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11523
11524 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11525
c9671f81
KH
115262000-05-20 Kenichi Handa <handa@etl.go.jp>
11527
11528 The following changes are to handle 8-bit characters in a
11529 multibyte buffer/string without facing with byte combining
11530 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11531 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11532
11533 * Makefile.in (fns.o): Depend on charset.h.
11534
11535 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11536 convert it to unibyte.
11537 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11538
11539 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11540 apparent char boundary.
11541 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11542 0x80..0x9F to/from multibyte form.
11543
11544 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11545 to unibyte.
11546
11547 * callproc.c (Fcall_process): Always encode an argument string if
11548 it is multibyte. Setup src_multibyte and dst_multibyte members of
11549 process_coding properly.
ce75fd23 11550
c9671f81
KH
11551 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11552 SPLIT_NON_ASCII_CHAR.
11553
11554 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11555 as is.
11556 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11557
52283633 11558 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 11559 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 11560 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
11561 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11562 and eight-bit-graphic.
11563 (char_to_string): Likewise. Signal an error for too large
11564 character code.
11565 (char_printable_p): Return 0 for 8-bit characters.
11566 (update_charset_table): Update iso_charset_table only when a final
11567 character is non-negative.
11568 (find_charset_in_text): Renamed from find_charset_in_str.
11569 Arguments and return value changed. Callers changed.
11570 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11571 be -1 if CHARSET is used only internally.
11572 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11573 eight-bit-graphic.
11574 (Fcharset_after): Simplified.
11575 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11576 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11577 (multibyte_chars_in_text): Simplified by assuming there's no
11578 invalid multibyte sequence.
52283633
SM
11579 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11580 (str_as_unibyte): New functions.
11581 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
11582 (init_charset_once): Initialization for
11583 LEADING_CODE_8_BIT_CONTROL.
11584 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11585 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11586 eight-bit-control and eight-bit-graphic.
11587
52283633
SM
11588 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11589 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
11590 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11591 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11592 (CHARSET_REVERSE_CHARSET): Likewise.
11593 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11594 eight-bit-graphic.
11595 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11596 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11597 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11598 encounter an invalid multibyte sequence.
11599 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11600 sequence is always valid.
11601 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 11602 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
11603 (CHAR_STRING): For 8-bit characters, call char_to_string.
11604 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11605 multibyte sequence is always valid.
11606 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
11607 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11608 (str_as_unibyte): Extern them.
c9671f81 11609 (BCOPY_SHORT): Fix a bug.
52283633 11610 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
11611 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11612 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11613 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11614
bd4bde7f 11615 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 11616 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
11617 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11618 (EMIT_BYTES): New macros.
11619 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11620 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
11621 macros deleted.
11622 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11623 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11624 check the validity of multibyte sequence.
11625 (decode_coding_emacs_mule): New function.
11626 (encode_coding_emacs_mule): New macro.
11627 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11628 the source.
11629 (DECODE_ISO_CHARACTER): Just return a character code.
11630 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11631 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11632 EMIT_CHAR to produced decoded characters. Exit the loop only by
11633 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11634 block here.
11635 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11636 only position codes for an invalid character.
11637 (encode_designation_at_bol): Return new destination pointer. 5th
11638 arg DSTP is changed to DST.
11639 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11640 from the source by ONE_MORE_CHAR. Don't handle the case of last
11641 block here.
11642 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11643 macros deleted.
52283633
SM
11644 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11645 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
11646 TWO_MORE_BYTES to fetch a byte from the source.
11647 (encode_eol): Pay attention to coding->src_multibyte.
11648 (detect_coding, detect_eol): Preserve members src_multibyte and
11649 dst_multibyte.
11650 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11651 (encoding_buffer_size): Set magnification to 3 for all coding
11652 systems that require encoding.
11653 (ccl_coding_driver): For decoding, be sure that the result is
11654 valid multibyte sequence.
11655 (decode_coding): Initialize coding->errors and coding->result.
11656 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11657 and raw-text, always call decode_eol. Handle the case of last
11658 block here. If not coding->dst_multibyte, convert the resulting
11659 sequence to unibyte.
11660 (encode_coding): Initialize coding->errors and coding->result.
11661 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11662 and raw-text, always call encode_eol. Handle the case of last
11663 block here.
11664 (shrink_decoding_region, shrink_encoding_region): Detect cases
11665 that we can't skip data more rigidly.
11666 (code_convert_region): Setup src_multibyte and dst_multibyte
11667 members of coding. For decoding, if the buffer is multibyte,
11668 convert the source sequence to unibyte in advance. For encoding,
11669 if the buffer is multibyte, convert the resulting sequence to
11670 multibyte afterward.
11671 (run_pre_post_conversion_on_str): New function.
11672 (code_convert_string): Deleted and divided into the following two.
11673 (decode_coding_string, encode_coding_string): New functions.
11674 (code_convert_string1, code_convert_string_norecord): Call one of
11675 above.
11676 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11677 MAKE_NON_ASCII_CHAR.
52283633
SM
11678 (Fset_terminal_coding_system_internal)
11679 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
11680 and dst_multibyte members.
11681 (init_coding_once): Initialize iso_code_class with new enum
11682 ISO_control_0 and ISO_control_1.
11683
11684 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11685 devided into ISO_control_0 and ISO_control_1.
11686 (struct coding_system): New members src_multibyte, dst_multibyte,
11687 errors, and result. Delete member fake_multibyte.
11688 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11689 nonzero.
11690 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11691 nonzero.
11692
11693 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11694 (Faset): Likewise.
11695
11696 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11697 multibyte form.
11698 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11699 combining occurs.
11700 (Ftranspose_region): Delete codes for handling byte combining.
11701
11702 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11703 dst_multibyte members of coding. On handling REPLACE on unibyte
11704 buffer, convert the result of decode_coding to unibyte. On
11705 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 11706 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
11707 multibyteness of the source (buffer or string).
11708
11709 * fns.c (concat): Handle 8-bit characters correctly.
11710 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11711 unibyte in the result.
11712 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11713 valid multibyte form in the result.
11714 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11715 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11716 return -1, signal an error.
11717 (base64_encode_1): New arg MULTIBYTE. Get each character by
11718 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11719 character is found, return -1.
11720 (Fbase64_decode_region): Delete codes for handling byte-combining.
11721 Treat each decoded byte as a unibyte character.
11722 (Fbase64_decode_string): Return unibyte string.
11723 (Fcompare_strings, concat, string_byte_to_char): Use
11724 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11725 FETCH_STRING_CHAR_ADVANCE.
11726 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11727 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11728
11729 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11730 SPLIT_NON_ASCII_CHAR.
11731 (fontset_ref_via_base, fontset_set): Likewise
11732
11733 * insdel.c (adjust_markers_for_record_delete): Deleted.
11734 (adjust_markers_for_insert): Argument changed. Caller changed.
11735 (adjust_markers_for_replace): Likewise.
52283633
SM
11736 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11737 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
11738 (copy_text): Delete unused local varialbe c_save. For converting
11739 to multibyte, be sure to make all 8-bit characters in valid
11740 multibyte form.
11741 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
11742 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11743 (adjust_after_replace, replace_range, del_range_2)
c9671f81 11744 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
11745 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11746 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
11747 handling byte combining.
11748 (adjust_before_replace): Deleted.
427ec082 11749
c9671f81
KH
11750 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11751 SPLIT_NON_ASCII_CHAR.
11752 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 11753 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11754 (Fkey_description): Likewise.
11755
11756 * lread.c (read1): On reading multibyte string, be sure to make
11757 all 8-bit chararacters in valid multibyte form.
11758 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11759
11760 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11761 unconditionally.
11762
11763 * process.c (Fstart_process): GCPRO current_dir before calling
11764 Ffind_operation_coding_system. Encode arguments here.
11765 (create_process): Don't encode arguments here. Setup
11766 src_multibyte and dst_multibyte members of struct coding.
11767 (read_process_output): Setup src_multibyte and dst_multibyte
11768 members of struct coding. If the output is to multibyte buffer,
11769 always decode the output of the process. Adjust the
52283633 11770 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
11771 (send_process): Setup coding->src_multibyte according to the
11772 multibyteness of the source.
11773
52283633 11774 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11775 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11776 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11777
52283633 11778 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
11779
11780 * w16select.c (Fw16_set_clipboard_data): Setup members
11781 src_multibyte and dst_multibyte of coding. Adjusted for the
11782 change for find_charset_in_str.
11783 (Fw16_get_clipboard_data): Likewise.
11784
11785 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11786 dst_multibyte of coding.
11787 (x_to_w32_font): Likewise.
11788
11789 * w32select.c (Fw32_set_clipboard_data): Setup members
11790 src_multibyte and dst_multibyte of coding. Adjusted for the
11791 change for find_charset_in_str.
11792 (Fw32_get_clipboard_data): Likewise.
11793
11794 * xdisp.c (get_next_display_element): Handle 8-bit characters
11795 correctly.
52283633
SM
11796 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11797 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
11798
11799 * xselect.c (selection_data_to_lisp_data): Setup members
11800 src_multibyte and dst_multibyte of coding. Adjusted for the
11801 change for find_charset_in_str.
11802 (lisp_data_to_selection_data): Likewise.
11803
5f64c9e0
GM
118042000-05-19 Gerd Moellmann <gerd@gnu.org>
11805
52283633 11806 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 11807
5f64c9e0
GM
11808 * dispextern.h (Vimage_types): Add extern declaration.
11809
11810 * xdisp.c (Vimage_types): Moved here from xfns.c.
11811 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11812
11813 * xfns.c (Vimages_types): Moved to xdisp.c.
11814 (syms_of_xfns): Move `image-types' to xdisp.c.
11815
11816 * w32fns.c (Vimage_types): Removed.
11817 (syms_of_w32fns): Remove `image-types'.
11818
813086ea
KH
118192000-05-18 Kenichi Handa <handa@etl.go.jp>
11820
11821 * fns.c (map_char_table): Pay attention to character number of
11822 charset. Check the validity of charset at the first level. For
11823 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11824 the default value.
11825
11826 * fontset.c: Include "buffer.h".
11827 (fs_load_font): If the face has fontset, record the face ID in
11828 that fontset.
11829 (Finternal_char_font): New function.
11830 (accumulate_font_info): New function.
11831 (Ffontset_info): Rewritten for the new fontset implementation.
11832 (syms_of_fontset): Register Vdefault_fontset in the first element
11833 of Vfontset_table. Include Vdefault_fontset in
11834 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11835 function.
11836
bdaebbf0
DL
118372000-05-16 Dave Love <fx@gnu.org>
11838
11839 * m/iris5d.h: Deleted -- unused.
11840
cb613bb8
GM
118412000-05-16 Gerd Moellmann <gerd@gnu.org>
11842
b15f3b77
GM
11843 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11844 `invalid' instead of `illegal'.
11845
11846 * indent.c (Fmove_to_column): When ending within a tab, insert
11847 spaces first so that markers at the end of the tab get adjusted.
11848
835c1b36
GM
11849 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11850 buffer list that wasn't selected in that frame.
11851
cb613bb8
GM
11852 * filelock.c (get_boot_time): To obtain an 8 char file name, which
11853 is needed on mescaline, use a 2 char prefix, and call
11854 make_temp_name with second arg non-zero.
11855
11856 * fileio.c (make_temp_name): New function, extracted from
11857 Fmake_temp_name.
11858 (Fmake_temp_name): Use it.
11859
f685bea9
EZ
118602000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11861
52283633 11862 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 11863
a1b8d58b
GM
118642000-05-15 Gerd Moellmann <gerd@gnu.org>
11865
11866 * Makefile.in (lisp): Add env.elc.
11867
11868 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11869
a265079f
GM
118702000-05-12 Gerd Moellmann <gerd@gnu.org>
11871
11872 * search.c (Freplace_match): Handle case of `\N' in the
11873 replacement when there's no group N.
11874
da4496b6
GM
118752000-05-11 Gerd Moellmann <gerd@gnu.org>
11876
0ace421a
GM
11877 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11878 of the message to message_dolog.
11879
1172eb8d
GM
11880 * keyboard.c (read_char): Don't clear current message for help
11881 events; let the code handling help events handle this. Change
11882 code detecting help events that should be ignored.
11883
da4496b6
GM
11884 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11885 we're interating over a string.
11886
0623e40f
DL
118872000-05-09 Dave Love <fx@gnu.org>
11888
11889 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11890 that offset before writing. Move gcpro region past call of
11891 Ffile_regular_p.
11892
bae2503b
DL
118932000-05-04 Dave Love <fx@gnu.org>
11894
11895 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11896
ec82fb2f
GM
118972000-05-04 Gerd Moellmann <gerd@gnu.org>
11898
11899 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11900 of inserted characters when BUF equals the current buffer, and PT
11901 is in front of or equal to FROM.
11902
cbf18892
GM
119032000-05-03 Gerd Moellmann <gerd@gnu.org>
11904
4ff40dd0
GM
11905 * xdisp.c (handle_single_display_prop): If display property value
11906 is invalid, or something not supported on the frame, restore
11907 iterator's position to what it was initially. Make sure to return
11908 0 for invalid and unsupported property values.
11909
cbf18892
GM
11910 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11911 that x_per_char_metric returns null.
11912
1b0672c3
GM
119132000-05-02 Gerd Moellmann <gerd@gnu.org>
11914
576da55d
GM
11915 * xterm.h (struct face): Add forward declaration.
11916 (struct image): Ditto.
11917 (image_ascent): Add prototype.
11918
11919 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11920 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11921 image_ascent instead of using IMAGE_ASCENT.
11922
11923 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11924 (IMAGE_ASCENT): Removed.
11925
11926 * xfns.c (Qcenter): New variable.
11927 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11928 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11929 (image_ascent): New function.
11930 (lookup_image): Recognize `:ascent center'.
11931 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11932 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11933 (xbm_load): Don't set image's ascent here.
11934 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11935 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11936 check ascent values here.
11937 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11938 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11939 (syms_of_xfns): Initialize Qcenter.
11940
1b0672c3
GM
11941 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11942 to the limits, increase the limits.
11943
0d7811ed
KH
119442000-05-01 Kenichi Handa <handa@etl.go.jp>
11945
11946 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 11947 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 11948
a943a5ca
GM
119492000-04-28 Gerd Moellmann <gerd@gnu.org>
11950
11951 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11952 taller than the window.
11953
5dba1e29
KH
119542000-04-28 Kenichi Handa <handa@etl.go.jp>
11955
11956 * xfaces.c (realize_x_face): Fix the argument of the second
11957 xassert. BASE_FACE may not be a face for ASCII.
11958
353964e3
GM
119592000-04-27 Gerd Moellmann <gerd@gnu.org>
11960
c76e04a8
GM
11961 * print.c (print_object): Treat print-length < 0 as nil.
11962
11963 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11964
11965 * s/freebsd.h (TERMCAP_OBJ): Removed.
11966 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11967
11968 * lread.c (read1): Don't treat period followed by certain
11969 characters as symbol start.
11970
11971 * xfns.c (slurp_file): New function.
11972 (xbm_image_p): Handle case of in-memory XBM files.
11973 (xbm_scan): Rewritten to work on memory buffers instead of files.
11974 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11975 Work on memory buffers instead of files. If DATA is null test
11976 if buffer looks like an in-memory XBM file.
11977 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11978 memory buffers instead of files.
11979 (xbm_file_p): New function.
11980 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11981
353964e3
GM
11982 * lread.c (end_of_file_error): New function.
11983 (read1): Call it instead of signaling `end-of-file' directly.
11984
427ec082 11985 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
11986 with Fprinc instead of Fprin1.
11987
24d744ac
KR
119882000-04-26 Ken Raeburn <raeburn@gnu.org>
11989
11990 * window.c (freeze_window_start): Check that minibuffer scroll
11991 window isn't nil before extracting the window structure pointer
11992 from it.
11993
11994 * undo.c (record_delete): If we hit the end of the undo list, stop
11995 picking elements apart.
11996
7464346d
GM
119972000-04-26 Gerd Moellmann <gerd@gnu.org>
11998
11999 * xdisp.c (display_line): If lines are continued, restore
12000 iterator's ascent/descent information to the values before the
12001 first glyph not fitting on the line.
12002
612839b6
GM
120032000-04-25 Gerd Moellmann <gerd@gnu.org>
12004
12005 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 12006 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
12007
12008 * dispnew.c (increment_matrix_positions): Renamed from
12009 increment_glyph_matrix_buffer_positions.
12010 (increment_row_positions): Renamed from
12011 increment_glyph_row_buffer_positions.
12012
12013 * dispextern.h: Change names of renamed functions from dispnew.c
12014 in prototypes.
12015
cc181e95
GM
120162000-04-24 Gerd Moellmann <gerd@gnu.org>
12017
abfcc168
GM
12018 * fileio.c (Fdo_auto_save): Create directories for auto-save
12019 list file if necessary.
12020
cc181e95
GM
12021 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12022 from buffer or frame.
12023 (automatic_hscrolling_p): New variable.
12024 (hscroll_windows): Scroll windows horizontally only if automatic
12025 hscrolling is allowed.
12026 (syms_of_xdisp): New variable `automatic-hscrolling'.
12027
12028 * frame.h (struct frame): Add member extra_line_spacing.
12029
12030 * xfns.c (x_set_line_spacing): New function.
12031 (Fx_create_frame): Set line spacing from resources.
12032 (Qline_spacing): New variable.
12033 (syms_of_xfns): Initialize Qline_spacing.
427ec082 12034
cc181e95
GM
12035 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12036
12037 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12038 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 12039 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
12040 extra_line_spacing from default value.
12041 (init_buffer_once): Initialize default value of extra_line_spacing.
12042
12043 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12044 and extra3.
12045
12046 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12047 prompt_width. Add extra line spacing.
12048
12049 * term.c (produce_glyphs): Remove reference to struct it's
12050 prompt_width.
12051
12052 * dispextern.h (struct it): Remove member prompt_width, add
12053 extra_line_spacing.
12054
58827478
GM
120552000-04-22 Gerd Moellmann <gerd@gnu.org>
12056
12057 * dispnew.c (update_frame_line): When writing a whole line, make
12058 sure cursor is in the right row afterwards, otherwise a use of
12059 capability `ch' in cmgoto might leave the cursor in the row below.
12060
25a87f42
GM
120612000-04-21 Gerd Moellmann <gerd@gnu.org>
12062
12063 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12064
12065 * keyboard.c (timer_check): Fix typo in comment.
12066
54edf5c2
KH
120672000-04-21 Kenichi Handa <handa@etl.go.jp>
12068
12069 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12070 name change: ch -> character.
12071
3a64eef5
GM
120722000-04-20 Gerd Moellmann <gerd@gnu.org>
12073
12074 * keyboard.c (echo_message_buffer): New variable.
12075 (echo_now): Set echo_message_buffer to the echo area buffer used
12076 to display the echo.
12077 (cancel_echoing): Reset echo_message_buffer to nil.
12078 (read_char): Code rewritten that handles canceling an echo or
12079 echoing a dash, respectively.
12080
12081 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12082 directory doesn't exist.
12083
6142fdcb
DL
120842000-04-19 Dave Love <fx@gnu.org>
12085
12086 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
12087 (concat): Don't allow numeric args.
12088 (Fconcat): Doc change.
6142fdcb 12089
ac6b5352
SM
120902000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12091
12092 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12093 instead define end_match(1|2) more carefully.
12094 Use GET_CHAR_BEFORE_2 for `begline'.
12095
cb9215e4
GM
120962000-04-19 Gerd Moellmann <gerd@gnu.org>
12097
5e3dac3f
GM
12098 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12099 on 64-bit systems where NULL is defined as `0'.
12100
12101 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12102 the `variable argument list' to make it work on Alpha.
12103
cb9215e4
GM
12104 * m/alpha.h (_LP64) [!_LP64]: Define.
12105 (ORDINARY_LINK): Define for NetBSD.
12106
12107 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 12108
f532dca0
DL
121092000-04-19 Dave Love <fx@gnu.org>
12110
c750667e
DL
12111 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12112 change.
12113
12114 * Makefile.in (LIBS): Don't use.
12115 (GETLOADAVG_OBJ): Define again.
12116 (otherobj): Add GETLOADAVG_OBJ.
12117
f532dca0
DL
12118 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12119
1c7e22fd
GM
121202000-04-18 Gerd Moellmann <gerd@gnu.org>
12121
f6d3257b
GM
12122 * lread.c (read_filtered_event): Cancel and start busy cursor.
12123
427ec082 12124 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
12125 that the per-character metrics may be null.
12126
e10f64e7
GM
121272000-04-17 Gerd Moellmann <gerd@gnu.org>
12128
0daee095
GM
12129 * buffer.c (clone_per_buffer_values): New function.
12130 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12131 clone_per_buffer_values if CLONE is not nil.
12132
e10f64e7
GM
12133 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12134
38687d43
DL
121352000-04-16 Dave Love <fx@gnu.org>
12136
12137 * Makefile.in: Remove obsolete localcpp stuff.
12138 (GETLOADAVG_OBJ): Don't define.
12139 (obj): Move LIBOBJS...
12140 (otherobj): ... to here.
12141 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12142 whitespace-only lines after the continuation (Irix).
12143
c21c7262
GM
121442000-04-14 Gerd Moellmann <gerd@gnu.org>
12145
12146 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12147
12148 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12149
314767c0
DL
121502000-04-14 Dave Love <fx@gnu.org>
12151
12152 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12153 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12154 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12155 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12156 NLIST_STRUCT.
12157
12158 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12159 autoconfiscated HAVE_GETLOADAVG.
12160
12161 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12162 BROKEN_MKTIME.
12163
a2522dca
GM
121642000-04-14 Gerd Moellmann <gerd@gnu.org>
12165
12166 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 12167 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 12168
33744b5d
DL
121692000-04-14 Dave Love <fx@gnu.org>
12170
c21c7262 12171 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
12172 (INTERVAL_SRC): Convert to make variable.
12173 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12174 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12175 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12176 add LIBOBJS.
12177 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12178 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12179 (shortlisp): Add facemenu, float-sup, frame.
12180 (SOME_MACHINE_LISP): Remove them from here.
12181 (LIBES): Change unused LDLIBS to autoconf LIBS.
12182
12183 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12184
9d3d5916
KH
121852000-04-14 Kenichi Handa <handa@etl.go.jp>
12186
12187 * composite.c (update_compositions): If FROM and TO are not in a
12188 valid range, do nothing.
12189
198e3c7a
GM
121902000-04-13 Gerd Moellmann <gerd@gnu.org>
12191
52283633 12192 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 12193
52283633 12194 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
12195
12196 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12197 as TERMCAP_OBJ.
12198
055a28c9
EZ
121992000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12200
12201 * fileio.c (a_write): Remove redundant semi-colons.
12202 (e_write): Return -1 if failed to write all the data.
12203 This fixes the changes made at 1999-12-15.
12204
f5c75033
DL
122052000-04-12 Dave Love <fx@gnu.org>
12206
12207 * fns.c (mapcar1): Test for null vals to support mapc.
12208 (Fmapc): New function.
12209
0c3cfc51
EZ
122102000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12211
12212 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12213 (IT_frame_up_to_date): Support the buffer local value of
12214 cursor-type, if defined.
12215
33465a31
DL
122162000-04-10 Dave Love <fx@gnu.org>
12217
12218 * editfns.c (preceding-char, following-char): Doc fix.
12219
6ed56568
KR
122202000-04-10 Ken Raeburn <raeburn@gnu.org>
12221
12222 * Makefile.in (temacs): Revert 2000-03-12 change.
12223
7cf80d4e
JR
122242000-04-10 Jason Rumney <jasonr@gnu.org>
12225
12226 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12227
34f3f342
GM
122282000-04-10 Gerd Moellmann <gerd@gnu.org>
12229
1a1b1895
GM
12230 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12231 area buffer, if it's not set up yet.
12232
34f3f342
GM
12233 * indent.c (compute_motion): Set immediate_quit.
12234
be0dbdab
GM
122352000-04-09 Gerd Moellmann <gerd@gnu.org>
12236
52283633 12237 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
12238 (realize_tty_face): Suppress boldness if colors are the inverse of
12239 the default colors, and tty_suppress_bold_inverse_default_colors_p
12240 is set.
12241 (Ftty_suppress_bold_inverse_default_colors): New function.
12242 (syms_of_xfaces): Defsubr it.
12243
be0dbdab
GM
12244 * buffer.c (Frestore_buffer_modified_p): New function.
12245 (syms_of_buffer): Defsubr it.
12246
e8413c3b
KR
122472000-04-08 Ken Raeburn <raeburn@gnu.org>
12248
87f67317
KR
12249 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12250 charset id (int) argument, not a charset (Lisp_Object).
12251
e8413c3b
KR
12252 * coding.h (code_convert_string): Declare.
12253 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12254 object, as the fourth argument to code_convert_string.
12255
52283633 12256 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
12257 (Fset_fontset_font): Use EQ to compare lisp objects.
12258
7c752c80
KR
122592000-04-05 Ken Raeburn <raeburn@gnu.org>
12260
c0333abc
KR
12261 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12262 a pointer that looks like a lisp object.
12263 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12264 zero, instead see whether it's an integer object, since they can't
12265 have intervals.
12266 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12267
52283633
SM
12268 * dispnew.c (allocate_matrices_for_frame_redisplay)
12269 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
12270 to convert between (unsigned) int values and lisp integers.
12271 * keyboard.c (read_key_sequence): Likewise.
12272 * lread.c (substitute_object_recurse): Likewise.
12273 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
12274 * minibuf.c (do_completion, Fminibuffer_complete_word)
12275 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
12276 * term.c (produce_special_glyphs): Likewise.
12277
12278 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12279 * print.c (print_preprocess, print_object): Likewise.
12280
12281 * search.c (compile_pattern): Use NILP when checking for nil.
12282
74e49b38
KR
12283 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12284 __OPTIMIZE__]: Provide a GNU C macro version that handles
12285 lisp-object unions.
12286 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12287 field, to better cope with ENABLE_CHECKING and calls that modify a
12288 Lisp_Object using its old value.
12289
685e5ed2
GM
122902000-04-04 Gerd Moellmann <gerd@gnu.org>
12291
c407c570
GM
12292 * window.c (compare_window_configurations): Signal an error
12293 if parameters C1 or C2 aren't window configurations.
12294
685e5ed2
GM
12295 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12296 AFTER_POTENTIAL_GC calls around calls to functions that can
12297 signal an error and thus invoke the debugger.
12298
587a49ab
GM
122992000-04-03 Gerd Moellmann <gerd@gnu.org>
12300
62f20204
GM
12301 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12302 an error if decoding fails.
12303
587a49ab
GM
12304 * keyboard.c (lispy_mouse_names): Variable removed.
12305 (Vlispy_mouse_stem): New variable.
12306 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12307 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12308 for any mouse button number. Increase size of mouse_syms and
12309 button_down_location as needed. Call modify_event_symbol with
12310 different arguments.
12311 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12312 Call modify_event_symbol with different arguments.
12313 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12314 for any button number. Call modify_event_symbol with different
12315 arguments.
12316 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12317 Accept a string for NAME_ALIST_OR_STEM.
12318
12319 * lisp.h (larger_vector): Add prototype.
12320
12321 * fns.c (larger_vector): Make externally visible.
12322
12323 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12324
2d1675e4
SM
123252000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12326
12327 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12328 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12329 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12330 we are between str1 and str2.
12331 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12332 (PATFETCH): Use `TRANSLATE'.
12333 (PATFETCH_RAW): Fetch multibyte char if applicable.
12334 (PATUNFETCH): Remove.
12335 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12336 When writing a char, write it directly into the pattern buffer rather
12337 than going needlessly through a temp char-array.
12338 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12339 multibyte magic and remove the useless `#ifdef emacs'.
12340 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12341 buffer.
12342
12343 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12344 conditional on `emacs'.
12345
12346 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12347
cc2d8c6b
KR
123482000-04-01 Ken Raeburn <raeburn@gnu.org>
12349
12350 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12351 non-union-type versions of XMARK and friends here, because XMARK
12352 and friends won't work on an integer field if NO_UNION_TYPE is not
12353 defined.
52283633 12354 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 12355
52283633 12356 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
12357 (syms_of_composite): Delete local var NARGS, pass an int as first
12358 argument to Fmake_hash_table.
12359
2387b382
KR
12360 * editfns.c (text_property_stickiness): Use NILP to test
12361 Lisp_Object boolean value.
12362 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
12363 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12364 problems reading from and changing the same lisp value in an
12365 XSETSTRING call.
12366
27660e89
GM
123672000-04-01 Gerd Moellmann <gerd@gnu.org>
12368
12369 * term.c (TN_no_color_video): New variable.
12370 (term_init): Intitialize TN_no_color_video.
12371 (enum no_color_bit): New enumeration.
12372 (MAY_USE_WITH_COLORS_P): New macro.
12373 (turn_on_face): Use it to determine if attributes may be used
12374 combined with colors.
12375
3578db3c
KR
123762000-04-01 Ken Raeburn <raeburn@gnu.org>
12377
12378 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 12379 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
12380 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12381 proper accessor macros.
12382 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12383 (grow_mini_window): Fix typo getting int value of root->height.
12384
6fc556fd
KR
12385 * xdisp.c (compute_string_pos): Fix order of arguments to
12386 string_pos_nchars_ahead.
12387 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12388 count arg to variable-arg routines like Frun_hook_with_args and
12389 Fformat.
587a49ab
GM
12390 (back_to_previous_visible_line_start)
12391 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
12392 fixed-arg routines like Fget_char_property and Fmake_string.
12393 (reconsider_clip_changes): Use XINT when comparing integer lisp
12394 objects, or passing them as int arguments.
587a49ab
GM
12395 (mark_window_display_accurate, insert_left_trunc_glyphs)
12396 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
12397 storing or passing integer values as lisp objects.
12398 (set_cursor_from_row, highlight_trailing_whitespace): Use
12399 INTEGERP, not implicit test against zero, for glyph object.
12400 (try_window_id): Don't use make_number when we want an int value.
12401
12402 * xfaces.c (xlfd_symbolic_value): Make last argument a
12403 Lisp_Object, to be consistent with callers.
12404 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12405 (lface_hash): Apply XFASTINT to lisp values before folding in.
12406
12407 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12408 fill in window width and height. Pass an int, not a lisp object,
12409 as first arg to Finsert.
12410
6e7b2457
GM
124112000-04-01 Gerd Moellmann <gerd@gnu.org>
12412
610d841e
GM
12413 * xfaces.c (realize_basic_faces): Block input while realizing
12414 the faces.
12415
6e7b2457
GM
12416 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12417
12418 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12419
aa110c0c
GM
124202000-03-31 Gerd Moellmann <gerd@gnu.org>
12421
12422 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 12423 or ASCII, handle case that per-char metric is null.
aa110c0c 12424
8801a864
KR
124252000-03-30 Ken Raeburn <raeburn@gnu.org>
12426
c6129d7e
KR
12427 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12428
52283633
SM
12429 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12430 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
12431 pointer, using eassert.
12432 * frame.h (XFRAME): Likewise.
12433
52283633
SM
12434 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12435 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12436 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 12437 * data.c (set_internal): Likewise.
52283633
SM
12438 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12439 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
12440 * fileio.c (auto_save_1): Likewise.
12441 * insdel.c (check_markers): Likewise.
12442 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12443 * undo.c (record_insert): Likewise.
12444 * vmsproc.c (child_sig): Likewise.
12445 * window.c (unshow_buffer, window_loop): Likewise.
12446 * xterm.c (x_erase_phys_cursor): Likewise.
12447
8e7af858
GM
124482000-03-30 Gerd Moellmann <gerd@gnu.org>
12449
12450 * xfns.c (free_image_cache): Free the cache structure itself
12451 last, after all its members have been freed.
12452
12453 * lisp.h (xstrdup): Add prototype.
12454
12455 * alloc.c (xstrdup): Moved here from xfaces.c.
12456 (allocating_for_lisp): Variable removed.
52283633 12457 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
12458
12459 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12460 of Fsymbol_value.
12461 (xstrdup): Moved to alloc.c.
12462
e0b8c689
KR
124632000-03-29 Ken Raeburn <raeburn@gnu.org>
12464
b96f9fb7
KR
12465 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12466
12467 * emacs.c (main): Fix sense of no-loadup test.
12468
e0b8c689
KR
12469 * config.in (ENABLE_CHECKING): Undef.
12470
12471 * lisp.h (struct interval): Replace "parent" field with a union of
12472 interval pointer and Lisp_Object; add new bitfield to use as
12473 discriminant. Change other flag fields to bitfields.
12474 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
12475 is defined and the supplied test fails, print a message and abort.
12476 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
12477
12478 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12479 pointers; abort if the value looks like a lisp object.
52283633
SM
12480 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12481 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
12482 Modify for new interval parent definition.
12483
52283633
SM
12484 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12485 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
12486 addressable lisp object in the interval structure.
12487 (die): New function.
12488 (suppress_checking): New variable.
12489
12490 * intervals.c (interval_start_pos): Just return 0 if there's no
12491 parent object.
12492
f83c5440
GM
124932000-03-29 Gerd Moellmann <gerd@gnu.org>
12494
12495 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12496 and earlier Emacs versions.
12497
12498 * keyboard.c (Ftop_level): Cancel busy-cursor.
12499
12500 * eval.c (call_debugger): Cancel busy-cursor.
12501
fdce64ff
KH
125022000-03-29 Kenichi Handa <handa@etl.go.jp>
12503
12504 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 12505 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 12506
f6a3f532
SM
125072000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12508
12509 * regex.c (analyse_first): New function obtained by ripping out most
12510 of re_compile_fastmap and generalizing it a little bit so that it
12511 can also just return whether a given (sub)pattern can match the empty
12512 string or not.
12513 (regex_compile): Use `analyse_first' to decide whether the loop-check
12514 needs to be done or not for *, +, *? and +? (the loop check is costly
12515 for non-greedy repetition).
12516 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12517
e9b309ac
DL
125182000-03-28 Dave Love <fx@gnu.org>
12519
52283633 12520 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 12521
e9b309ac
DL
12522 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12523
ed0767d8
SM
125242000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12525
12526 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12527 an expression.
12528 (enum re_opcode_t): Update description of succeed_n.
12529 (PATFETCH): Always define.
12530 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12531 operators, char classes, shy-groups and intervals).
12532 Optimize special cases of intervals so as to only use succeed_n and
12533 jump_n when really needed.
12534 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12535 that we don't have to handle the special cases any more.
12536 Simplify on_failure_jump handling as well.
12537
e11e7e46
JR
125382000-03-28 Jason Rumney <jasonr@gnu.org>
12539
12540 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12541
88faab89
GM
125422000-03-27 Gerd Moellmann <gerd@gnu.org>
12543
182ff242
GM
12544 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12545
12546 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 12547
182ff242
GM
12548 * alloc.c (mark_maybe_object): New function.
12549 (mark_memory): Use it.
12550 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12551 (setjmp_tested_p, longjmp_done): New variables.
12552 (test_setjmp): New function.
12553 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12554 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12555
c1005d06
GM
12556 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12557 to DEC_TEXT_POS and INC_TEXT_POS.
12558
12559 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12560 with parameter MULTIBYTE_P.
12561
52283633 12562 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 12563
7439e5b9 12564 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
12565 buffers because it looks for multibyte character byte sequences
12566 which don't exist in unibyte text.
7439e5b9 12567
d9c545da
GM
12568 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12569
11fd416e 12570 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
12571 [DEBUG_X_COLORS]: New functions.
12572 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12573
12574 * xfns.c (x_set_cursor_color): Get color reference counts right.
12575
12576 * xterm.c (x_copy_color): New function.
12577 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12578
12579 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12580 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12581 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12582 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12583 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12584 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12585 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12586 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12587 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12588 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12589
11fd416e
GM
12590 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12591 names for handling per-buffer variables.
d9c545da
GM
12592
12593 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12594 instead of MAX_BUFFER_LOCAL_VARS.
12595 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12596
12597 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12598
88faab89
GM
12599 * xfns.c (x_specified_cursor_type): New function.
12600 (x_set_cursor_type): Use it.
12601
12602 * buffer.h (struct buffer): Add cursor_type.
12603
d80f42b7
SM
126042000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12605
12606 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
12607 (print_partial_compiled_pattern, re_compile_fastmap):
12608 Handle new opcode.
d80f42b7
SM
12609 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12610 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12611 executing it as well as when popping it off the stack to find infinite
12612 loops in non-greedy repetition operators.
12613
89e80928
GM
126142000-03-26 Gerd Moellmann <gerd@gnu.org>
12615
3d4ff2dd
GM
12616 * doc.c (Qfunction_documentation): New variable.
12617 (syms_of_doc): Initialize Qfunction_documentation.
12618 (Fdocumentation): If FUNCTION is a symbol with non-nil
12619 `function-documentation' property, return a documentation derived
12620 from that.
12621
bd96bd79
GM
12622 * buffer.c (syms_of_buffer): Add default-cursor-type.
12623 (init_buffer_once): Don't let cursor_type have a local value
12624 in every buffer.
12625
19d1bc27
GM
12626 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12627 on buffer-local value of cursor_type.
12628 (x_draw_bar_cursor): Add parameter WIDTH.
12629
12630 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12631 (init_buffer_once): Set default cursor_type value to t.
12632 Mark cursor_type as local everywhere.
12633 (syms_of_buffer): New per-buffer variable cursor-type.
12634
89e80928
GM
12635 * buffer.h (struct buffer): Remove member local_var_flags,
12636 add local_flags.
12637 (MAX_BUFFER_LOCAL_VARS): New macro.
12638 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12639 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12640 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12641 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12642
52283633 12643 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
12644
12645 * category.c (Fset_category_table): Use new macros for per-buffer
12646 variables.
12647
12648 * buffer.c (buffer_permanent_local_flags): Make a char array.
12649 (max_buffer_local_idx): New variable.
12650 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12651 for new handling of per-buffer variables.
12652 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12653 (init_buffer_once): Initialize per-buffer vars differently.
12654 Set max_buffer_local_idx.
12655
12656 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12657 variables.
12658
52283633 12659 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
12660
12661 * data.c (do_symval_forwarding, store_symval_forwarding)
12662 (find_symbol_value, set_internal, default_value, Fset_default)
12663 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12664 per-buffer variables.
12665
12666 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12667
9a0dd3dc
GM
126682000-03-24 Gerd Moellmann <gerd@gnu.org>
12669
b68c375f
GM
12670 * xterm.c (x_term_init): Unblock input around call1 of
12671 Qvendor_specific_keysyms.
12672
9a0dd3dc
GM
12673 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12674 (find_defun_start): Consider an open parenthesis in column 0
12675 a defun start only if open_paren_in_column_0_is_defun_start is set.
12676 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12677
7973e637
SM
126782000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12679
12680 * eval.c (Fautoload): Add entry in load-history (if after dump).
12681 * lread.c (load-history): Update docstring.
12682
39210e90
GM
126832000-03-24 Gerd Moellmann <gerd@gnu.org>
12684
12685 * indent.c (Fvertical_motion): Always use the current buffer.
12686 Temporarily change the window's buffer, if necessary.
12687
72db3ab5
GM
126882000-03-23 Gerd Moellmann <gerd@gnu.org>
12689
12690 * xterm.c (fast_find_position): Make sure not to consider rows
12691 not visible in the window.
12692
990b2375
SM
126932000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12694
12695 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12696 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12697
ff4df011
JR
126982000-03-22 Jason Rumney <jasonr@gnu.org>
12699
12700 * w32menu.c (single_submenu): Set help string to NULL if none.
12701 (w32_menu_show): Set help string correctly.
12702 (add-menu-item): Set help string in MIIM_DATA for menu item.
12703 Load SetMenuItemInfoA explicitly.
12704 (w32_menu_display_help): New function.
427ec082 12705
ff4df011
JR
12706 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12707 (QCdata): Moved to xdisp.c.
12708
12709 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12710 (Vw32_charset_to_codepage_alist): Removed.
12711 (Vw32_charset_info_alist): New variable.
52283633
SM
12712 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12713 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12714 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
12715 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12716 with TODO comment.
12717 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12718 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12719 Define Vw32_charset_info_alist and w32_charset symbols.
12720
127212000-03-22 Jason Rumney <jasonr@gnu.org>
12722
12723 * makefile.nt (w32bdf.obj): Update dependencies.
12724
12725 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12726
12727 * w32fns.c: Include fontset.h after dispextern.h.
12728 (Fx_create_frame): Do not create fontset.
12729 (w32_load_system_font): Doc fix.
12730 (Fx_close_connection): Free full_name if it is not shared.
12731
12732 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
12733 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12734 Callers updated.
ff4df011
JR
12735 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12736 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12737 (w32_font_is_double_byte): New function, needs body.
12738 (x_append_glyph): Set glyph->glyph_not_available_p.
12739 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12740 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12741 character, convert it to a unibyte character.
12742 (struct glyph_string): Delete member `charset'.
12743 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12744 calculating it is found.
12745 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12746 the case that per char metric is not available correctly.
12747 (x_fill_glyph_string): Handle the case that the specific glyph is
12748 not available correctly.
12749 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12750 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12751 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12752 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12753 fontset. Don't call FS_LOAD_FONT.
12754
439d5cb4
KR
127552000-03-22 Ken Raeburn <raeburn@gnu.org>
12756
12757 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12758 (INT_LISPLIKE): New macro.
12759 (NULL_INTERVAL_P): Use it.
52283633
SM
12760 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12761 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12762 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
12763
12764 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12765 explicit references to "parent" field of struct interval and
12766 associated unclean type conversions.
52283633
SM
12767 * intervals.c (create_root_interval, root_interval, rotate_right)
12768 (rotate_left, balance_possible_root_interval, split_interval_right)
12769 (split_interval_left, interval_start_pos, find_interval)
12770 (next_interval, previous_interval, update_interval)
12771 (adjust_intervals_for_insertion, delete_node, delete_interval)
12772 (adjust_intervals_for_deletion, merge_interval_right)
12773 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12774 (copy_intervals_to_string): Likewise.
439d5cb4
KR
12775 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12776 Likewise.
12777 * syntax.c (update_syntax_table): Likewise.
12778
12779 * intervals.c (reproduce_tree_obj): New function, like
12780 reproduce_tree but takes a Lisp_Object for the parent. Declare
12781 with prototype.
12782 (graft_intervals_into_buffer): Use it when appropriate.
12783 (reproduce_tree): Declare with prototype.
12784 (balance_possible_root_interval): Check that the parent is a lisp
12785 object before trying to examine its type.
12786
ee1c5b21
GM
127872000-03-22 Gerd Moellmann <gerd@gnu.org>
12788
12789 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12790 as strings only if both are known to be strings.
12791
12792 * s/openbsd.h (LIBS_TERMCAP): Undef.
12793
1fb352e0
SM
127942000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12795
12796 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12797 definitions for non-Emacs compilation.
12798 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12799 outside of `#ifdef emacs'.
12800 (print_partial_compiled_pattern): Update.
12801 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12802 (re_compile_fastmap): Merge handling of charset and charset_not (for
12803 emacs and non-emacs compilation as well).
12804 Similarly for (not)categoryspec and (not)syntaxspec.
12805 Don't use the fastmap when reaching `anychar' since the added
12806 complexity is not justified.
12807 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12808 and (not)syntaxspec. Merge (not)categoryspec.
12809
fdaa1f77
KH
128102000-03-22 Kenichi Handa <handa@etl.go.jp>
12811
52283633
SM
12812 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12813 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 12814 --without-x.
fdaa1f77 12815
d152fb46
DL
128162000-03-21 Dave Love <fx@gnu.org>
12817
12818 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12819 doc string.
12820
d2cafc8c
GM
128212000-03-21 Gerd Moellmann <gerd@gnu.org>
12822
12823 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12824 (lface_fully_specified_p): Don't check contents of
12825 LFACE_FONT_INDEX because that attribute is optional.
12826 (realize_x_face): Remove now unwarranted xassert.
12827
9111d4b5
KH
128282000-03-21 Kenichi HANDA <handa@etl.go.jp>
12829
12830 The following changes are to make font selection based on
12831 characters, not charset. In addition, they recover fontset
12832 facilities while utilizing the new font selection mechanism.
12833
6c4bfdc0
KH
12834 * Makefile.in (fontset.o): Depend on dispextern.h.
12835
12836 * alloc.c (mark_face_cache): Don't mark face->registry.
12837
9111d4b5
KH
12838 * dispextern.h (struct glyph): New member glyph_not_available_p.
12839 Use 22 bits for face_id.
12840 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12841 (struct face): Delete member registry, new member ascii_face.
12842 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12843 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12844 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 12845 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
12846
12847 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12848 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
12849 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12850 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 12851 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
12852 (fs_free_face_fontset, fontset_font_pattern)
12853 (face_suitable_for_char_p, face_for_char)
12854 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
12855 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
12856 (FS_LOAD_FACE_FONT): New macro.
12857
12858 * fontset.c: All codes rewritten or adjusted for the change of
12859 fontset implementation. Now fontset is represented by char table.
52283633
SM
12860 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
12861 Variables removed.
9111d4b5 12862 (my_strcasecmp): Function removed.
52283633 12863 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 12864 (AREF, ASIZE): New macros.
52283633
SM
12865 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12866 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12867 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12868 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12869 (fontset_id_valid_p, font_family_registry, fontset_name)
12870 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12871 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
12872 New functions.
12873 (fs_load_font): New arg FACE. Caller changed.
12874 (fs_query_fontset): Argument changed. Caller changed.
12875 (Fquery_fontset): call fs_query_fontset.
12876 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12877 Functions removed.
52283633
SM
12878 (clear_fontset_elements, check_registry_encoding)
12879 (check_fontset_name): New functions.
9111d4b5
KH
12880 (syms_of_fontset): Set char-table-extra-slots property of fontset
12881 to 3. Staticpro and initialize Vfontset_table and
12882 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12883
12884 * frame.h (struct frame): Member `fontset_data' removed.
12885 (FRAME_FONTSET_DATA): Macro removed.
12886
12887 * frame.c (make_frame): Don't allocate f->fontset_data.
12888 (Fdelete_frame): Don't free f->fontset_data.
12889
6c4bfdc0
KH
12890 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12891
9111d4b5
KH
12892 * xdisp.c (charset_at_position): Function removed.
12893 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
12894 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12895 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
12896 Likewise.
12897 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12898 FACE_FOR_CHARSET.
52283633
SM
12899 (get_next_display_element, append_space)
12900 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
12901
12902 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12903 Variables removed.
12904 (clear_font_table, frame_update_line_height, load_face_font):
12905 Adjusted for the change of fontset implementation.
12906 (load_face_fontset_font): Function removed.
12907 (pixel_point_size): New function.
12908 (font_list): Argument type changed. Caller changed.
12909 (LFACE_FONT): New macro.
12910 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12911 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12912 Lisp_Object. Determine the font name by actually loading a font
12913 by the specified pattern. Set LFACE_FONT (lface) to the specified
12914 pattern. Even if a font is not found, don't try alternatives.
12915 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12916 (set_font_frame_param): If `font' is specified in lface, use it.
12917 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12918 (lface_same_font_attributes_p): Likewise.
12919 (make_realized_face): Arguent changed. Caller changed. Set
12920 face->ascii_face to face itself.
12921 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
12922 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12923 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
12924 (free_realized_multibyte_face): New function.
12925 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12926 changed. Caller changed.
12927 (try_font_list): Argument type changed.
12928 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12929 (choose_face_font): Argument changed. Handle fontset properly.
12930 (choose_face_fontset_font): Function removed.
12931 (realize_default_face, realize_named_face): Don't remove the
12932 former face here.
12933 (realize_face): Argument changed. Caller changed. Remove face
52283633 12934 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
12935 (realize_x_face): Argument changed. Caller changed. For a
12936 multibyte character, share fontset with base_face. For a single
52283633 12937 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
12938 (realize_tty_face): Argument changed. Caller changed.
12939 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12940 (face_at_buffer_position): Don't check multibyte_p for returning
12941 DEFAULT_FACE_ID.
12942 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12943 FACE_SUITABLE_FOR_CHARSET_P.
12944 (syms_of_xfaces): Remove code for Qx_charset_registry and
12945 Vface_default_registry.
12946
6c4bfdc0
KH
12947 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12948 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
12949 (x_per_char_metric): Don't try FONT->default_char. Even if
12950 pcm->width is zero, glyph bits may exist.
12951 (x_encode_char): Always initialize char2b->byte1.
12952 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 12953 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
12954 (x_append_glyph): Set glyph->glyph_not_available_p.
12955 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12956 it->charset. Handle the case that per char metric is not
12957 available. If it->multibyte_p is zero and it->c is a multibyte
12958 character, convert it to a unibyte character.
12959 (struct glyph_string): Delete member `charset'.
12960 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12961 the case that per char metric is not available correctly.
12962 (x_fill_glyph_string): Handle the case that the specific glyph is
12963 not available correctly.
12964 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12965 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12966 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12967 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12968 fontset. Don't call FS_LOAD_FONT.
12969
12970 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12971 (x_create_tip_frame): Likewise.
12972 (Fx_close_connection): Free full_name of font_info.
12973
12974 * fns.c (optimize_sub_char_table): New function.
12975 (Foptimize_char_table): New function.
12976 (syms_of_fns): Defsubr Soptimize_char_table.
12977
b33dd3b0
GM
129782000-03-20 Gerd Moellmann <gerd@gnu.org>
12979
12980 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12981 only if buffer is displayed in some window.
12982
12983 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12984 (try_window_reusing_current_matrix): Don't call scroll run
12985 function if run's current and desired position are the same;
12986 this prevents cursor flickering.
12987
4e8a9132
SM
129882000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12989
12990 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12991
12992 * regex.c (RE_STRING_CHAR): New macro.
12993 (GET_CHAR_AFER_2): Remove.
12994 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
12995 (enum re_opcode_t): Remove on_failure_jump_exclusive.
12996 (print_partial_compiled_pattern, re_compile_fastmap)
12997 (re_match_2_internal): Remove on_failure_jump_exclusive.
12998 (regex_compile): Turn optimizable P+ loops into PP*, so that the
12999 optimization only need to work for * (ie. can use of_keep_string_jump).
13000 Remove the special case for .*\n since it is now covered by the general
13001 optimization.
13002 (re_search_2): Don't bother with `room'.
13003 (skip_one_char): New function.
13004 (skip_noops): Simplify since `memory' is not needed any more.
13005 (mutually_exclusive_p): Restructure slightly to use `switch' and
13006 add handling for "all" remaining cases.
13007 (re_match_2_internal): Change on_failure_jump_smart to use
13008 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13009 rather than on_failure_jump_exclusive.
13010
2136fdd4
GM
130112000-03-19 Gerd Moellmann <gerd@gnu.org>
13012
13013 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13014 number of bits per RGB because it's everywhere used as the depth
13015 of the visual.
13016
13017 * term.c (calculate_costs): Remove code dealing with X frames.
13018
18e21ce8 130192000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
13020
13021 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13022
d7b511c4
GM
130232000-03-18 Gerd Moellmann <gerd@gnu.org>
13024
13025 * lread.c (read_integer): Unread the last char not consumed.
13026
16b5d424
GM
130272000-03-17 Gerd Moellmann <gerd@gnu.org>
13028
13029 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 13030 which are in the process of being deleted.
16b5d424 13031
1fa28578
GM
130322000-03-16 Gerd Moellmann <gerd@gnu.org>
13033
83488cce
GM
13034 * Makefile.in (mostlyclean): Add `*.core'.
13035 (clean): Add `bootstrap-emacs'.
13036
1fa28578
GM
13037 * lread.c (read_integer): New function.
13038 (read1): Support read syntax #o, #x, #b, #r.
13039
99633e97
SM
130402000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13041
1fa28578
GM
13042 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13043 make sure POINTER_TO_OFFSET gives the same value before and after
13044 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
13045 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13046 (debug): Now only active if > 0 rather than if != 0.
13047 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
13048 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13049 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13050 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
13051 (store_op1, store_op2, insert_op1, insert_op2)
13052 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
13053 (group_in_compile_stack): Move to after its arg's types are
13054 declared and add a prototype.
99633e97 13055 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 13056 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 13057 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
13058 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13059 indentation of the greedy-op and shy-group code.
99633e97
SM
13060 (at_(beg|end)line_loc_p): Fix argument's types.
13061 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13062 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13063 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
13064 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13065 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13066 QUIT unconditionally.
99633e97 13067
699238d9
GM
130682000-03-15 Gerd Moellmann <gerd@gnu.org>
13069
13070 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13071 a sole completion.
13072
13073 * process.c (send_process): Add a hint that the function
13074 can call Lisp code to its comment.
13075
13076 * lread.c (load_dangerous_libraries): New variable.
13077 (Vbytecomp_version_regexp): New variable.
13078 (safe_to_load_p): New function.
13079 (Fload): Handle files not compiled with Emacs specially.
13080 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13081
34e23e5a
GM
130822000-03-14 Gerd Moellmann <gerd@gnu.org>
13083
9c763cca
GM
13084 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13085
13086 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13087 support functions only if HAVE_X11R6_XIM is defined.
13088 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13089
13090 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13091
13092 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 13093 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
13094 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13095
13096 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13097 (HAVE_X11R6_XIM): Define.
13098
13099 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13100
34e23e5a
GM
13101 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13102 If set, call XSynchronize.
13103
66f0296e
SM
131042000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13105
34e23e5a
GM
13106 * regex.c: Declare a new type `re_char' used throughout the code
13107 for the string char type. It's `const unsigned char' to match the
13108 rest of Emacs. Consistently make sure all pointers to strings use
52283633 13109 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 13110 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
13111 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13112 code duplication.
66f0296e
SM
13113
13114 * charset.h (GET_CHAR_AFTER_2): Remove.
13115 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13116
854a025c
KR
131172000-03-12 Ken Raeburn <raeburn@gnu.org>
13118
13119 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13120 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13121 of them try to use backquotes.
13122
b9d2c7e2
DL
131232000-03-12 Dave Love <fx@gnu.org>
13124
13125 * unexelf.c: Restore changes of 1999-10-19.
13126 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13127 fix its type and alignment; copy it from current process.
13128
5e5dff44
GM
131292000-03-12 Gerd Moellmann <gerd@gnu.org>
13130
9b2f3c38
GM
13131 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13132 has been found. Fix bug not computing timer's predecessor.
13133
427ec082 13134 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
13135 file name.
13136
e1cff360
GM
13137 * window.c (Fsave_window_excursion): Doc fix.
13138
52283633 13139 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 13140
e411ce4b
EZ
131412000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13142
13143 * msdos.c (vga_installed): New function, code moved from
13144 dos_set_window_size.
13145 (Qbar, Qcursor_type, outside_cursor): New variables.
13146 (syms_of_msdos): Intern and staticpro them.
13147 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13148 shape used outside Emacs when called for the first time.
13149 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13150 cursor shape used outside Emacs.
13151 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13152 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13153 type has changed.
13154 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13155 parameters specify the cursor. Make qreverse a global
13156 variable (renamed to Qreverse).
13157
80460654
GM
131582000-03-09 Gerd Moellmann <gerd@gnu.org>
13159
13160 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13161
95cd4c40
SM
131622000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13163
13164 This is a big redesign of failure-stack and register handling, prompted
13165 by bugs revealed when trying to add shy-groups. Overall, what happened
13166 is that loops are now structured a little differently, groups can be
13167 shy and the code is a little simpler.
13168
13169 * regex.h: Update the copyright.
13170 (RE_SHY_GROUPS): New value.
13171 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13172 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13173
80460654
GM
13174 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13175 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13176 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13177 for (start|stop)_memory since they now only take one argument (the
13178 second has becomes unnecessary).
52283633 13179 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
13180 (print_compiled_pattern): Use %ld to printf long ints and flush to
13181 make debugging a little easier.
95cd4c40
SM
13182 (union fail_stack_elt): Make the integer unsigned.
13183 (struct fail_stack_type): Add a `frame' element.
13184 (INIT_FAIL_STACK): Init `frame' as well.
13185 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13186 (DEBUG_PUSH, DEBUG_POP): Remove.
13187 (NUM_REG_ITEMS): Remove.
13188 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
13189 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13190 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 13191 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
13192 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13193 New macros.
80460654
GM
13194 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13195 address pushed is not the destination of the jump but the source
13196 of it instead.
95cd4c40
SM
13197 (NUM_FAILURE_ITEMS): Remove.
13198 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
13199 registers before the actual failure point). Don't hardcode any
13200 meaning for str==NULL anymore.
95cd4c40 13201 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
13202 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13203 Remove.
95cd4c40
SM
13204 (REG_UNSET_VALUE): Use NULL (why not?).
13205 (compile_range): Remove declaration since it doesn't exist.
13206 (struct compile_stack_elt_t): Remove inner_group_offset.
13207 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13208 (regex_grow_registers): Remove dead code.
13209 (FIXUP_ALT_JUMP): New macro.
80460654
GM
13210 (regex_compile): Add shy-groups Change loops to use
13211 on_failure_jump_smart&jump instead of
13212 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13213 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13214 variable to me). Use `jump' instead of `jump_past_alt' and don't
13215 bother with push_dummy_failure in alternatives since it is now
13216 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13217 emacs' for (re)allocating the stack.
13218 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13219 from loop when bufp->can_be_null rather than jumping to `done'.
13220 Avoid jumping backwards so as to ensure termination. Use
13221 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13222 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 13223 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
13224 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13225 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
13226 (lowest_active_reg, highest_active_reg)
13227 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
13228 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13229 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13230 variables. Push register (in `start_memory') on the stack rather
13231 than storing it in old_reg(start|end). Remove the cycle detection
13232 from `stop_memory', replaced by the use of on_failure_jump_loop
13233 for greedy loops. Add code for the new on_failure_jump_<foo>.
13234 Remove ad-hoc code in `on_failure_jump' to push more registers in
13235 the case of a loop. Take out code from `maybe_pop_jump' into
13236 separate functions and adapt it to the semantics of
13237 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13238 and push_dummy_failure. Remove dummy_failure handling and
13239 handling of `failures to jump to on_failure_jump' (this last one
13240 was already dead code, it seems).
13241 (group_match_null_string_p, alt_match_null_string_p)
13242 (common_op_match_null_string_p): Remove.
95cd4c40 13243
7397acc4
DL
132442000-03-08 Dave Love <fx@gnu.org>
13245
13246 * config.in: Don't depend on __STDC__ for volatile.
13247 Add POINTER_TYPE, PTR, PROTOTYPES.
13248
13249 * hftctl.c, strftime.c: Use PROTOTYPES.
13250 * eval.c (find_handler_clause): Likewise.
13251
13252 * mem-limits.h: Use POINTER_TYPE.
13253
13254 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13255 (memory_warnings): Declare using POINTER_TYPE.
13256
5e91ff9e
GM
132572000-03-08 Gerd Moellmann <gerd@gnu.org>
13258
feab4fba
GM
13259 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13260
52283633 13261 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 13262
5e91ff9e
GM
13263 * xfns.c: Remove obsolete code in #if 0.
13264 (Fx_focus_frame): New function.
13265
a735b7e1
KH
132662000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13267
13268 * coding.c (coding_category_name): Add coding-category-utf-8,
13269 coding-category-utf-16-be, coding-category-utf-16-le.
13270 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13271 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13272 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13273 (detect_coding_utf_8): New function.
13274 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13275 UTF_16_LOW_SURROGATE_P): New macros.
13276 (detect_coding_utf_16): New function
13277 (detect_coding_mask): When priorities are specified, skip any
13278 categories that have `nil' coding-system. Fix bug of returning
13279 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13280 returns a mask not set in PRIORITIES.
13281 (detect_eol_type_in_2_octet_form): New function.
13282 (detect_eol): selects detect_eol_type_XXX to call according to
13283 cooding->category_idx.
13284 (detect_coding_system): Remove `nil' coding-system in the result.
13285 (Fupdate_coding_systems_internal): Update all coding-categories.
13286
52283633
SM
13287 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13288 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13289 New macros.
13290 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13291 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13292 (CODING_CATEGORY_IDX_UTF_16_LE)
13293 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13294 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
13295 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13296 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13297
9994cc69
GM
132982000-03-07 Gerd Moellmann <gerd@gnu.org>
13299
e9b4e5ff
GM
13300 * doc.c (Fdocumentation_property): If value is not a string,
13301 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13302
f7daf1e1
GM
13303 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13304 close the display with XtCloseDisplay. This caused a bus error
13305 on OpenWindows.
13306
9994cc69
GM
13307 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13308 complete but not unique.
13309
4336c705
GM
133102000-03-06 Gerd Moellmann <gerd@gnu.org>
13311
18bb0684
GM
13312 * process.c (send_process): Remove local variable `procname' that
13313 might become invalid when a GC happens. Instead, access the
13314 process name slot directly.
13315
4336c705
GM
13316 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13317 orig_height if set.
13318
13319 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13320 orig_height if set.
13321
515d0d0e
EZ
133222000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13323
13324 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13325 glyph matrices have been freed.
13326
100b3cbb
GM
133272000-03-05 Gerd Moellmann <gerd@gnu.org>
13328
50df5e5a 13329 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 13330 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
13331
13332 * xfns.c (QCdata): Moved to xdisp.c.
13333
13334 * xdisp.c (QCdata): Moved here from xfns.c.
13335 (syms_of_xdisp): Initialize QCdata.
13336
13337 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13338
13339 * window.c (coordinates_in_window): Use
13340 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13341 FRAME_INTERNAL_BORDER_WIDTH.
13342
100b3cbb 13343 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 13344 it is obviously invalid.
100b3cbb
GM
13345
13346 * xterm.c (x_term_init): Create a colormap if not using the
13347 default visual.
13348
13349 * xterm.h (select_visual): Change prototype.
13350
13351 * xfns.c (select_visual): Rewritten. Recognize user-specified
13352 visual classes.
13353 (visual_classes): New variable.
13354
64d739c4
GM
133552000-03-04 Gerd Moellmann <gerd@gnu.org>
13356
13357 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13358 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13359 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 13360 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
13361 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13362 XtNcolormap resources.
13363 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13364 (Fx_create_frame): Initialize color members of x_output structure.
13365 (xpm_load): Pass colormap to XPM lib.
13366
13367 * xfaces.c (x_free_colors): Access colormap of frame using
13368 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13369 when default colormap is used.
13370
13371 * xterm.c (x_term_init): Set Colormap member of x_display_info
13372 structure. Copy colormap if resource `privateColormap' is
13373 specified (PseudoColor only).
13374 (x_setup_relief_color): Access colormap of frame using
13375 FRAME_X_COLORMAP.
13376
13377 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13378 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13379
c3cee013
JR
133802000-03-04 Jason Rumney <jasonr@gnu.org>
13381
13382 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13383 other non-platform-specific equivalents.
64d739c4 13384 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
13385 specific functions and macros as their w32 equivalents where
13386 non-platform-specifics are not available.
13387 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13388 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13389 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13390 (frame_update_line_height): Use macros to access f->output_data.
13391 (defined_color): Remove FIXME comments; fixed.
13392 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13393 into #ifdef blocks. Add WINDOWSNT blocks.
13394 (Fx_list_fonts): Use macros for accessing font data.
13395 (set_lface_from_font_name): Different default fonts for X and
13396 WINDOWSNT.
13397 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13398 scalable for backward compatibility.
64d739c4 13399 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
13400 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13401
64d739c4 13402 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
13403 syms_of_w32faces.
13404
13405 * makefile.nt (w32faces.obj): Remove.
13406 (xfaces.obj): Add.
13407
807cc41c
JR
134082000-03-03 Jason Rumney <jasonr@gnu.org>
13409
13410 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13411 correct parameters.
13412
0007072a
KR
134132000-03-03 Ken Raeburn <raeburn@gnu.org>
13414
13415 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13416 standard ELF definitions here if the system header does not.
13417
71a6ba55
GM
134182000-03-03 Gerd Moellmann <gerd@gnu.org>
13419
13420 * xterm.c (PER_CHAR_METRIC): Removed.
13421 (x_per_char_metric_1, x_default_char): New functions.
13422 (x_per_char_metric): If font's default char is invalid, return
13423 metrics of a suitably chosen usable default char.
13424 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
13425 char, replace occurrences of unprintable chars with a suitably
13426 chosen usable default char.
71a6ba55 13427
900fa1f1
GM
134282000-03-02 Gerd Moellmann <gerd@gnu.org>
13429
42f55fe0
GM
13430 * xterm.c (note_mouse_highlight): Return quickly if frame's
13431 glyph matrices have been freed.
13432
13433 * dispnew.c (free_glyphs): Block input while freeing matrices.
13434
900fa1f1
GM
13435 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13436
52283633
SM
13437 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13438 Use x_free_colors.
900fa1f1
GM
13439
13440 * dispextern.h (x_free_colors): Add prototype.
13441
13442 * xfaces.c (x_free_colors): New function.
13443 (unload_color, free_face_colors): Use it.
13444
2f950292
EZ
134452000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13446
13447 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13448
13449 * window.c [MSDOS]: Include msdos.h.
13450
54d04320
DL
134512000-03-02 Dave Love <fx@gnu.org>
13452
13453 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13454
13455 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13456 set C_OPTIMIZE_SWITCH for gcc.
13457
0ba93ac4
KH
134582000-03-02 Kenichi Handa <handa@etl.go.jp>
13459
13460 * coding.c (coding_save_composition): Be sure to allocate
13461 composition data area in coding even if there's no composition in
13462 the current run.
13463
a2bc11d4
JR
134642000-03-01 Jason Rumney <jasonr@gnu.org>
13465
13466 * w32term.c: Equivalent changes to those made to xterm.c on
13467 2000-02-25 and 2000-02-24.
13468
13469 * w32fns.c: Equivalent changes to those made to xfns.c on
13470 2000-02-25 and 2000-02-21.
13471
13472 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13473 correct line-end convention is followed.
13474
13475 * w32menu.c [HAVE_BOXES]: Remove #undef.
13476 (single_keymap_panes): Remove code for simulating checkmarks.
13477 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13478 Remove code for drawing simulated checkmarks.
13479 (w32_menu_show): make unibyte help string correctly.
13480 (add_menu_item): draw standard Windows checkmarks. Draw radio
13481 buttons as radio buttons if possible.
13482
72d19d75
GM
134832000-03-01 Gerd Moellmann <gerd@gnu.org>
13484
2df636f4
GM
13485 * sysdep.c (start_of_text): Don't define this function for NetBSD
13486 with ELF.
13487
427ec082 13488 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
13489 Don't define.
13490 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13491 (LINKER): Don't undef if __NetBSD__ is defined.
13492
13493 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13494
13495 * fileio.c [__NetBSD__]: Define `unix'.
13496
72d19d75
GM
13497 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13498
ed4d0512
GM
134992000-02-29 Gerd Moellmann <gerd@gnu.org>
13500
50b1039f
GM
13501 * atimer.c (start_atimer): Don't abort when timers are stopped.
13502 (append_atimer_lists): New function.
13503 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13504 arbitrary lists of stopped and running atimers.
13505
ed4d0512
GM
13506 * atimer.c (cancel_atimer): Handle canceling an atimer when
13507 some timers are stopped.
13508
13509 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13510 after canceling it.
13511
13512 * fns.c (maybe_resize_hash_table): Handle case of new size
13513 coming out as being the same as old size.
13514
387023ee
JR
135152000-02-27 Jason Rumney <jasonr@gnu.org>
13516
13517 * makefile.nt: Add atimer.h to dependencies.
13518 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13519 * w32console.c: Only disable window system features for dispextern.h
13520 (initialize_w32_display): Build a display info for the console.
13521 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13522 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13523 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13524 as 2 button mice.
13525 * w32gui.h (struct W32FontStruct): Revert last change after change
13526 to xdisp.c.
13527 * w32menu.c (single_submenu): Set up help string.
13528 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13529 (w32_dialog_show): Set up help string.
13530 * w32term.c (w32_display_info_for_display): Remove unused function.
13531 (w32_draw_bitmap): Use pre-built bitmaps.
13532 (w32_initialize_display_info): New function to initialize parts of
13533 display info that are common to both GUI and console frames.
13534 (w32_term_init): Use w32_initialize_display_info. Do not set
13535 Vw32_num_mouse_buttons here, as it is not called for console
13536 frames. Build bitmaps for indicating truncated lines etc.
13537 (x_delete_display): Destroy pre-built bitmaps.
13538 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13539 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13540
4516715a
DL
135412000-02-27 Dave Love <fx@gnu.org>
13542
13543 * lisp.h: Add a bunch of prototypes.
13544
171ca836
KH
135452000-02-26 Kenichi Handa <handa@etl.go.jp>
13546
13547 * keyboard.c (read_char): Set `usec' correctly.
13548
4013921d
KH
135492000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13550
13551 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13552 `lambda', set reg[RRR] to the map index.
13553 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13554 reg[RRR] to 0. Otherwise, set it to -1.
13555
9244a058
GM
135562000-02-25 Gerd Moellmann <gerd@gnu.org>
13557
2df636f4 13558 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 13559
18e21ce8 135602000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 13561
f43d79c1
GM
13562 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13563 and contains a `:', prepend `/:'.
13564
13565 * window.c (select_window_1): If selected_window is nil,
13566 don't "swap out" the buffer's point.
13567 (Fset_window_configuration): Set selected_window to nil
13568 before calling Fselect_window.
13569 (unshow_buffer): Don't set point in buffer from window's point
13570 if another more recently selected window also shows the buffer.
13571
bed0c171
GM
135722000-02-25 Gerd Moellmann <gerd@gnu.org>
13573
449c3c52
GM
13574 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13575
f5b58615
GM
13576 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13577 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
13578 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13579 New variables.
f5b58615
GM
13580 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13581 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13582 (hide_busy_cursor): New functions.
13583 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13584
13585 * minibuf.c (read_minibuf): Cancel busy-cursor.
13586
13587 * keyboard.c (command_loop_1): Call start_busy_cursor before
13588 Fcommand_execute and cancel_busy_cursor after it.
13589 (timer_check): Remove busy-cursor code.
13590 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13591 cursor timer.
13592
13593 * process.c (wait_reading_process_input): Remove busy-cursor code.
13594
13595 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13596 Fx_hide_busy_cursor.
13597
13598 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13599 Remove prototyoes.
13600 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13601
13602 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13603
13604 * xterm.c (XTread_socket): Remove busy-cursor code.
13605
4eb8436f
GM
13606 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13607 (build_frame_matrix_from_leaf_window): Put code handling
13608 glyph row's not being a slice of a frame row in #if 0.
13609 (sync_window_with_frame_matrix_rows): New function.
13610 (frame_row_to_window): New function.
13611 (mirror_line_dance): Handle copies between windows.
13612
3cb65b0e
GM
13613 * lread.c (Fload): Use `xfree' instead of `free'.
13614 (init_obarray): Use `xmalloc' instead of `malloc'.
13615
bed0c171
GM
13616 * window.c (Fset_window_buffer): Set WINDOW to the window
13617 after decoding.
2add4349
GM
13618 (coordinates_in_window): Take frame's internal border width
13619 into account.
bed0c171 13620
42088c12
GM
136212000-02-24 Gerd Moellmann <gerd@gnu.org>
13622
13623 * xterm.c (x_display_and_set_cursor): Display cursor of
13624 non-selected windows depending on the setting of
13625 cursor_in_non_selected_windows.
13626
13627 * xdisp.c (cursor_in_non_selected_windows): New variable.
13628 (syms_of_xdisp): DEFVAR_BOOL it.
13629
d1e103b2
GM
136302000-02-23 Gerd Moellmann <gerd@gnu.org>
13631
723e779c
GM
13632 * data.c (Fstring_to_number): If number is greater than what
13633 fits into an integer, return a float.
13634
d1e103b2
GM
13635 * eval.c (specbind): Remove references to
13636 keyword_symbols_constant_flag.
13637
13638 * data.c (keyword_symbols_constant_flag): Removed.
13639 (Fmakunbound, set_internal, syms_of_data): Remove references to
13640 keyword_symbols_constant_flag.
13641
13642 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13643
214f877f
KH
136442000-02-23 Kenichi Handa <handa@etl.go.jp>
13645
13646 * syntax.c (multibyte_syntax_as_symbol): New variable.
13647 (syms_of_syntax): Declare it as a Lisp variable.
13648 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13649 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13650 nonzero, treat all multibyte characters as symbol.
52283633 13651 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 13652
130adcb7
EZ
136532000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13654
3cb65b0e 13655 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 13656 a deleted frame.
130adcb7 13657
17cbbf95
GM
136582000-02-21 Gerd Moellmann <gerd@gnu.org>
13659
13660 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13661
13662 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13663 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13664
beb0bc36
DL
136652000-02-21 Dave Love <fx@gnu.org>
13666
13667 * frame.c (Vmouse_position_function): New variable.
13668 (Fmouse_position): Use it.
13669 (syms_of_frame): Install it.
13670
13671 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13672
1d92afcd
GM
136732000-02-20 Gerd Moellmann <gerd@gnu.org>
13674
13675 * fileio.c (Finsert_file_contents): Unbind the binding of
13676 standard-output done by temp_output_buffer_setup.
329eed9f
GM
13677
13678 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13679 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13680 (specbind, unbind_to): Handle most common case of non-constant
13681 symbol with trivial value specially.
13682
13683 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13684
18e21ce8 136852000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
13686
13687 * data.c (Fmake_variable_buffer_local): Doc fix.
13688 Init found_for_buffer to 0.
13689 (Fmake_variable_frame_local): If the variable has already
13690 been buffer-local, set the check_frame field.
13691
1d4311c3
EZ
136922000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13693
13694 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13695 produced for CODING_MODE_LAST_BLOCK requires.
13696
2dc95ddd
DL
136972000-02-18 Dave Love <fx@gnu.org>
13698
13699 * keyboard.c (echo_keystrokes): Remove declaration.
13700 (Vecho_keystrokes) New variable.
13701 (read_char, record_menu_key, read_key_sequence): Use it to allow
13702 use of float value.
13703 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13704
13705 * lread.c: Undef feature selection macros before defining.
13706
f0930f35
GM
137072000-02-18 Gerd Moellmann <gerd@gnu.org>
13708
13709 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13710 for symbols other than the symbol in question.
13711
e3d4de90
DL
137122000-02-17 Dave Love <fx@gnu.org>
13713
13714 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13715
0b378936
GM
137162000-02-17 Gerd Moellmann <gerd@gnu.org>
13717
d621caf7
GM
13718 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13719
0b378936
GM
13720 * alloc.c (enum mem_type): Compile unconditionally.
13721
3b451f74
EZ
137222000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13723
13724 * xfaces.c (tty_defined_color): Don't return faulire indication
13725 for unspecified-fg and unspecified-bg pseudo-colors.
13726
10689a01
GM
137272000-02-17 Gerd Moellmann <gerd@gnu.org>
13728
1216f5e4
GM
13729 * alloc.c (mark_object): Don't mark symbol names in pure space.
13730 (gc_sweep): Don't unmark symbol names in pure space.
13731
13732 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13733 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13734 [GC_MARK_STACK]: New defines.
427ec082 13735 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
13736 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13737
13738 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13739
13740 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13741 allocate_buffer instead of xmalloc.
13742
13743 * alloc.c (toplevel): Include setjmp.h.
13744 (PURE_POINTER_P): New define.
13745 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13746 (Vdead) [GC_MARK_STACK]: New variable.
13747 (lisp_malloc): Add parameter TYPE, call mem_insert if
13748 GC_MARK_STACK is defined.
13749 (allocate_buffer): New function.
427ec082 13750 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
13751 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13752 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13753 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13754 (MEM_NIL) [GC_MARK_STACK]: New define.
13755 (struct mem_node) [GC_MARK_STACK]: New structure.
13756 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13757 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13758 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13759 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13760 (mark_stack) [GC_MARK_STACK]: New functions.
13761 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13762 (clear_marks): Removed.
13763 (gc_sweep): Set free conses' car, free floats' type, free
13764 symbols' function to Vdead. Use lisp_free to free buffers.
13765 (init_alloc_once): Initialize Vdead.
13766 (survives_gc_p): Return non-zero for pure objects.
13767
13768 * alloc.c: Add comments throughout the file.
13769
2503c8b1
GM
13770 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13771 that unblocks alarms.
13772
8389e1e2
GM
13773 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13774 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13775 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13776
10689a01 13777 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 13778
bfc17d18
KH
137792000-02-17 Kenichi Handa <handa@etl.go.jp>
13780
4a09dee0
KH
13781 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13782 avoid infinite error signaling. Allocate sufficient memory for
13783 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 13784
2b927d02
SM
137852000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13786
13787 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13788 depends on the previous behavior.
13789
b49cb764
GM
137902000-02-16 Gerd Moellmann <gerd@gnu.org>
13791
13792 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13793
99e95407
GM
137942000-02-15 Gerd Moellmann <gerd@gnu.org>
13795
13796 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13797
13798 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 13799 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
13800 write(2).
13801
6ffd3cf7
RS
138022000-02-15 Richard M. Stallman <rms@gnu.org>
13803
13804 * data.c (set_internal): Don't make variable buffer-local
13805 if within a let-binding for the same buffer.
13806 (let_shadows_buffer_binding_p): New function.
13807
13808 * eval.c (specbind): For buffer-local value,
13809 record the current buffer also.
13810 (unbind_to): Cope with that change.
13811
cad53475
GM
138122000-02-15 Gerd Moellmann <gerd@gnu.org>
13813
13814 * window.c (Fsave_window_excursion): Doc fix.
13815
1aa963c8
SM
138162000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13817
13818 * syntax.c (back_comment): Make sure we only consider comment-starters
13819 of the relevant style and return -1 in case of a failure to find the
13820 beginning of the comment.
13821 (Fforward_comment): If back_comment fails, go back to the position just
13822 after the comment-end.
13823 (scan_lists): Add comment describing a very minor bug.
13824
b9b84fd3
SM
138252000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13826
13827 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13828 `completion-regexp-list' in the docstring.
13829
3a28db80
DL
138302000-02-14 Dave Love <fx@gnu.org>
13831
13832 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13833
fb4a568d
SM
138342000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13835
13836 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13837 to Emacs' syntax. Also fix the comment about set/not-set meanings
13838 since Emacs syntax is not the value 0 any more.
13839 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13840 since it's now part of RE_SYNTAX_EMACS.
13841
1063ebb5
DL
138422000-02-12 Dave Love <fx@gnu.org>
13843
52283633 13844 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 13845
fb07a302
GM
138462000-02-12 Gerd Moellmann <gerd@gnu.org>
13847
13848 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13849
aaf2320c
DL
138502000-02-12 Dave Love <fx@gnu.org>
13851
13852 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
13853
13854 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
13855 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
13856 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
13857
13858 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
13859
13860 * s/nextstep.h: Don't define HAVE_ALLOCA.
13861
13862 * config.in: Add vfork bits.
13863
eedf8bde
GM
138642000-02-12 Gerd Moellmann <gerd@gnu.org>
13865
13866 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13867 unwind function to undo the effect of stopping atimers.
13868
52283633 13869 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
13870
13871 * atimer.c (stopped_atimers): New variable.
13872 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13873 New functions.
13874
13875 * atimer.h (stop_other_atimers, run_all_atimers)
13876 (unwind_stop_other_atimers): Add function prototypes.
427ec082 13877
eedf8bde
GM
13878 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13879
8476c2f8
KR
138802000-02-11 Ken Raeburn <raeburn@gnu.org>
13881
13882 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13883 library may depend on jpeg.
13884 (atimer.o): Depends on atimer.c.
13885
0e85e4a3
KH
138862000-02-11 Kenichi Handa <handa@etl.go.jp>
13887
13888 * insdel.c (del_range_1): Call update_compositions.
13889 (del_range_both): Call update_compositions just once..
13890
97fa0cc8
DL
138912000-02-10 Dave Love <fx@gnu.org>
13892
13893 * xfns.c (create_frame_xic): Fix initialization of automatic
13894 aggregates for pcc.
13895
25566a3c
KH
138962000-02-09 Kenichi Handa <handa@etl.go.jp>
13897
13898 * ccl.c (CCL_MAKE_CHAR): New macro.
13899 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13900 registers by CCL_MAKE_CHAR before calling translate_char.
13901 <CCL_TranslateCharacterConstTbl> Likewise.
13902
69da54ba
DL
139032000-02-08 Dave Love <fx@gnu.org>
13904
13905 * lread.c (__EXTENSIONS__): Define.
13906
f7136ee8
GM
139072000-02-08 Gerd Moellmann <gerd@gnu.org>
13908
13909 * puresize.h (BASE_PURESIZE): Increase to 650000.
13910
7768790b
EZ
139112000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13912
13913 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13914 the help message.
13915
38fd211b
EZ
139162000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13917
13918 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13919 md, mh, mb, mr, and me to the fake termcap entry.
13920
66e4690f
KR
139212000-02-06 Ken Raeburn <raeburn@gnu.org>
13922
13923 * sound.c (sound_cleanup): Don't call device close routine if the
13924 function pointer is null.
13925
a75dfea0
AI
139262000-02-06 Andrew Innes <andrewi@gnu.org>
13927
13928 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13929 around image definitions and prototypes.
13930 (gamma_correct) [WINDOWSNT]: New prototype.
13931
13932 * w32term.c (x_make_frame_visible): Replace call to
13933 input_poll_signal with poll_for_input.
13934
13935 * window.c [WINDOWSNT]: Include w32term.h.
13936
13937 * xdisp.c [WINDOWSNT]: Include w32term.h.
13938
13939 * makefile.nt: Add dependencies on w32gui.h.
13940 (OBJ1): Include atimer.obj.
13941 ($(BLD)\atimer.obj): New dependency rule.
13942
13943 * w32.c (sigmask): New function (does nothing).
13944 (sigunblock): Ditto.
13945
13946 * frame.c [WINDOWSNT]: Include w32term.h.
13947
13948 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13949
13950 * lread.c (syms_of_lread): Fix literal newlines.
13951
13952 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13953 the string constant limit (2048 bytes) in MSVC.
13954 (main): Ditto.
13955
59ddecde
GM
139562000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13957
52283633 13958 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
13959 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13960 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13961 dispatch the event.
13962
07590973
DL
139632000-02-04 Dave Love <fx@gnu.org>
13964
13965 * fileio.c: Remove some unused vars.
13966 (_GNU_SOURCE): Define (for euidaccess).
13967
13968 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13969
13970 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13971 gcpro1, gcpro2.
13972 (read_minibuf): Deal with allow_props correctly.
13973
649351f9
EZ
139742000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13975
13976 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13977
66e4690f 139782000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
13979
13980 * search.c (compile_pattern): If a cache entry has a nil regexp,
13981 fill in that entry instead of clobbering a previously cached
13982 string regexp.
13983
66e4690f 139842000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
13985
13986 * puresize.h (BASE_PURESIZE): Increase to 610000.
13987
d240a249
GM
139882000-02-02 Gerd Moellmann <gerd@gnu.org>
13989
13990 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13991 can GC.
13992
ca91fb26
KH
139932000-02-02 Kenichi Handa <handa@etl.go.jp>
13994
25660570
KH
13995 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
13996 instead of incrementing ic directly.
13997 <CCL_WriteExprConst> Likewise.
13998 <ccl_set_expr>: Set ic to jump_address.
13999
ca91fb26
KH
14000 * fileio.c (e_write): Fix the handling of
14001 CODING_FINISH_INSUFFICIENT_SRC.
14002
2ede9689
DL
140032000-02-01 Dave Love <fx@gnu.org>
14004
14005 * editfns.c (Fpropertize): Doc fix.
14006
14007 * process.c (Fstart_process): Doc fix.
14008
14009 * eval.c: Fix various doc strings not to duplicate information
14010 from help-manyarg-func-alist.
14011
52283633 14012 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
14013
14014 * doc.c (Vhelp_manyarg_func_alist): New variable.
14015 (Fdocumentation): Use it.
14016 (syms_of_doc): Define it.
14017
b6680a0e
GM
140182000-01-31 Gerd Moellmann <gerd@gnu.org>
14019
2cb750ba
GM
14020 * xterm.c (xim_open_dpy): Remove unused local variable.
14021
52283633 14022 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
14023
14024 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14025 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14026
b6680a0e
GM
14027 * fns.c (sweep_weak_table): New function.
14028 (sweep_weak_hash_tables): Use it. Keep on marking until there
14029 is no more change.
14030
994c5afe
GM
140312000-01-30 Gerd Moellmann <gerd@gnu.org>
14032
14033 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14034 that XTread_socket does not crash by trying to call XNoOp on a
14035 closed display.
427ec082 14036
f00276e3
JR
140372000-01-30 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14040 Change selected_frame to SELECTED_FRAME ().
14041 (w32_console_mouse_position): Remove #ifndef MULE from around
14042 `insist' parameter.
14043
14044 * makefile.nt: Remove dosfns.obj.
14045
14046 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14047
14048 * w32fns.c (w32_defined_color): Check for valid frame before
14049 applying gamma correction. Eliminate dependency on frame elsewhere.
14050 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14051 (w32_to_x_font): Use resx and resy not height_in and width_in.
14052 (x_to_w32_font): Doc fix.
14053 (xlfd_strip_height): New function to strip and return font height.
14054 (w32_font_match): Compare height separately from rest of xlfd
14055 spec, using xlfd_strip_height.
14056
14057 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14058 width_in. Use w32_defined_color in place of defined_color.
14059
14060 * w32faces.c: Merge more of DOS and X specifics in preparation for
14061 merge with xfaces.c.
14062 (defined_color): Remove FIXME comment.
14063 (tty_color_name): Provide w32-specific function.
14064 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14065
14066 * w32console.c (turn_on_face, turn_off_face): Removed.
14067 (w32_face_attributes): New function.
14068 (Global_variables): Reduce scope where possible.
14069 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14070 fill attribute.
14071 (hl_mode): Don't modify text attributes.
14072 (write_glyphs): Don't do anything if len <= 0. Use
14073 w32_face_attributes to get attributes for drawing. Write
14074 terminating codes using char_attr_normal.
14075 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14076 (update_begin, update_end): Likewise.
14077 (vga_stdcolor_name): New function.
14078 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14079 (Fset_screen_color): Remove char_attr_reverse.
14080
b08e8bb2
GM
140812000-01-29 Gerd Moellmann <gerd@gnu.org>
14082
14083 * xfns.c (xic_set_preeditarea): Take window parameter and
14084 window-relative pixel-positions.
14085
14086 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14087 is its frame's selected window.
14088 (xim_instantiate_callback): Likewise.
14089
14090 * xfns.c (x_create_im): Removed.
14091 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14092 (supported_xim_styles): Renamed from supported_styles.
14093 (best_xim_style): Renamed from best_style.
14094 (create_frame_xic): Renamed from xic_create_frame.
14095 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 14096
b08e8bb2
GM
140972000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14098
14099 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14100 our frames, call XFilterEvent with 2nd parameter `None'.
14101 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14102 returning XBufferOverflow.
52283633 14103 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
14104 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14105 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14106 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14107 (xim_initialize, xim_close)
14108 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14109 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14110 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14111 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14112
14113 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14114 and `xim_styles'.
14115 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14116 `xic_style' and `xic_xfs'.
14117 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14118 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14119 (FRAME_XIM): Removed.
14120
14121 * xfns.c (supported_styles): New variable.
14122 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14123 (xic_create_xfontset, best_style, xic_create_frame)
14124 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14125 (xic_set_xfontset): New functions.
14126
142e109c
DL
141272000-01-28 Dave Love <fx@gnu.org>
14128
14129 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14130
14131 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14132
b02786f9
GM
141332000-01-28 Gerd Moellmann <gerd@gnu.org>
14134
d060bc9f
GM
14135 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14136 for *scratch* if it already existed.
14137
b02786f9
GM
14138 * emacs.c (USAGE): New macro.
14139 (main): Use it to display usage information.
14140
2c52d7e4
EZ
141412000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14142
14143 Support for the menu-help feature:
14144
52283633 14145 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
14146
14147 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14148 part of the line to the termscript file.
14149 (IT_clear_to_end): Clear the entire line, not just its beginning.
14150 (menu_help_message, prev_menu_help_message): New variables.
14151 (IT_menu_make_room): Make room for the help_text member.
14152 (IT_menu_display): New argument disp_help; all callers changed.
14153 If disp_help is non-zero, store the help text of the active menu
14154 item in menu_help_message.
14155 (XMenuAddPane): Initialize the help_text member to NULL.
14156 (XMenuAddSelection): New argument help_text. Store it in the
14157 XMenu structure.
14158 (XMenuActivate): New argument help_callback. If the value of
14159 menu_help_message has changed since the last time, display the
14160 menu help message text while waiting for the mouse to move. Clear
14161 the echo area before exiting.
14162 (XMenuDestroy): Free the help_text member.
14163
ffe0bcd1
GM
141642000-01-27 Gerd Moellmann <gerd@gnu.org>
14165
14166 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14167 XMenuAddSelection. Pass help callback to XMenuActivate.
14168 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14169
50dbd23f
EZ
141702000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14171
14172 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14173 and EMACS_SET_USECS.
14174
f5941bf8
GM
141752000-01-26 Dave Love <fx@gnu.org>
14176
6c67ddee
DL
14177 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14178
f5941bf8
GM
14179 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14180 an error may be signalled.
14181
9e49c990
GM
141822000-01-26 Gerd Moellmann <gerd@gnu.org>
14183
fc3cb460
GM
14184 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14185 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14186
9e49c990
GM
14187 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14188
d0c037d8
GM
141892000-01-25 Gerd Moellmann <gerd@gnu.org>
14190
14191 * charset.c (Fstring): If there is a multibyte char among
14192 the args, always return a multibyte string.
14193
e12489f9
GM
141942000-01-25 Gerd Moellmann <gerd@gnu.org>
14195
14196 * sysdep.c (sys_select): Turn atimers off and on instead of
14197 recording and restoring old alarm handler
14198
14199 * process.c (toplevel): Include atimer.h.
14200 (create_process_1): Rewritten.
14201 (create_process): Use atimers instead of alarm.
14202 (wait_reading_process_input) [hpux]: Turn atimers off instead
14203 of turning off SIGALRM.
14204 (wait_reading_process_input): Turn off atimers instead off
14205 calling stop_polling.
14206
14207 * emacs.c (main): Call init_atimer.
14208
14209 * keyboard.c (toplevel): Include systime.h and atimer.h.
14210 (polling_for_input): Removed because unused.
14211 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14212 (poll_timer): New variable.
14213 (poll_for_input, poll_for_input_1): New functions.
14214 (start_polling, stop_polling): Rewritten.
14215
14216 * keyboard.h (polling_for_input): Removed.
427ec082 14217
e12489f9
GM
14218 * atimer.h, atimer.c: New files.
14219
14220 * Makefile.in (obj): Add atimer.o.
14221 (atimer.o): New target.
14222
14223 * blockinput.h (pending_atimers): Add extern declaration.
14224 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14225
14226 * lisp.h (popup_activated_flag): Add extern declaration.
14227
14228 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 14229 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
14230 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14231
14232 * xterm.c (toplevel): Include atimer.h.
14233 (toolkit_scroll_bar_interaction): New variable.
14234 (Fxt_process_timeouts): Removed.
14235 (x_process_timeouts): New function.
14236 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14237 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14238 (x_make_frame_visible): Call poll_for_input_1 instead of
14239 input_poll_signal. Don't call alarm.
14240 (x_initialize): Install timer calling x_process_timeouts.
427ec082 14241
1e5279b9
DL
142422000-01-24 Dave Love <fx@gnu.org>
14243
6c67ddee 14244 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
14245 Don't use -cckr -- apparently not now necessary.
14246
edf6aeb8
EZ
142472000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14248
14249 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14250 screen boundary.
14251
9badad41
JR
142522000-01-23 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32fns.c (w32_defined_color): Apply gamma correction before
14255 trying to map to the palette.
14256 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14257 to w32_clear_rect.
14258
14259 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14260 here. Callers changed to always pass real device context.
14261 (w32_draw_bitmap): Likewise.
14262 (w32_get_glyph_overhangs): Likewise.
52283633 14263 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
14264 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14265 pfnSetScrollInfo and SetScrollRange.
14266 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14267 back into MULE characters after decoding them.
14268 (x_get_glyph_face_and_encoding): Likewise.
14269 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14270 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14271 (x_produce_glyphs): Calculate per char metrics for a character
14272 that we know exists in default font when font_not_found_p is true.
14273
63bd786b
JR
142742000-01-22 Jason Rumney <jasonr@gnu.org>
14275
14276 * makefile.nt (intervals.obj, composite.obj): New modules.
14277 (composite.h): Added as dependency where appropriate.
14278
14279 * w32gui.h (XGCValue): New struct for emulating X GCs.
14280
14281 * w32term.h (XCharStruct): New struct for emulating X.
14282
14283 * w32console.c (turn_on_face, turn_off_face): New functions.
14284 (change_line_highlight): New prototype for new redisplay.
14285 (write_glyphs): Support multibyte text. Support faces.
14286
52283633 14287 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
14288
14289 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14290 throughout. struct frame * in place of FRAME_PTR.
14291 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 14292 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
14293 (w32_get_arg): Renamed from x_get_arg.
14294 (Fx_file_dialog): New function.
14295 (w32_list_fonts): Check cache before asking system.
14296 (Vw32_enable_synthesized_fonts): New variable.
14297 (Vw32_enable_italics): Obsolete, removed.
14298
14299 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14300 Use SELECTED_FRAME macro.
14301
14302 * w32menu.c: Add skeleton support for help strings on menus.
14303 (add_menu_item): Native checkbox and radio support added, but not
14304 yet enabled due to bugs.
14305 (push_menu_item): Add parameters type, selection and help.
14306 Callers updated.
14307 Formatting changes to reduce unnecessary diffs with xmenu.c.
14308
14309 * w32select.c (Fw32_set_clipboard_data): Update call to
14310 find_charset_in_str.
14311
14312 * w32term.c: Complete rewrite for new redisplay based on new
14313 xterm.c with necessary sections merged back in from old w32term.c.
14314
6ffd3cf7 143152000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
14316
14317 * data.c (set_internal): Further fix in same criterion.
14318
6ffd3cf7 143192000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
14320
14321 * data.c (set_internal): Fix the criteria for whether
14322 to swap out the old cached binding.
14323
60af03f1
DL
143242000-01-19 Dave Love <fx@gnu.org>
14325
14326 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14327
f9be074f
KH
143282000-01-18 Kenichi Handa <handa@etl.go.jp>
14329
14330 * regex.c (re_compile_fastmap): While checking a range table for
14331 `charset', skip flag bits for a character class correctly.
14332
52b8dbf9
GM
143332000-01-17 Gerd Moellmann <gerd@gnu.org>
14334
d36100c9
GM
14335 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14336
52283633 14337 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
14338
14339 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 14340 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
14341
14342 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14343 MENU_ITEMS_ITEM_.*.
14344 (MENU_ITEMS_ITEM_HELP): New enumerator.
14345 (push_menu_item): Add parameter HELP. Record help in menu_items.
14346 (single_menu_item, single_submenu, list_of_items): Call
14347 push_menu_item with new parameter.
14348 (single_submenu): Set help string in widget value.
14349 (menu_highlight_callback): New function.
14350 (set_frame_menubar): Call lw_create_widget with new
14351 parameter list.
14352 (xmenu_show, xdialog_show): Ditto.
14353
3139018f
GM
143542000-01-13 Gerd Moellmann <gerd@gnu.org>
14355
14356 * sound.c (Fplay_sound): Improve doc string.
14357
83c8f461
RS
143582000-01-11 Richard M. Stallman <rms@gnu.org>
14359
14360 * lisp.h (set_internal): Enter the new arg.
14361
14362 * eval.c (specbind): Record buffer-local variables specially,
14363 indicating which buffer's binding was saved.
14364 (unbind_to): Restore buffer-local variables specially
14365 in the proper buffer.
14366
14367 * data.c (set_internal): New arg BUF.
427ec082 14368
83c8f461
RS
14369 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14370 * data.c (Fset): Pass new arg to set_internal.
14371 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 14372
1fab1775
GM
143732000-01-11 Gerd Moellmann <gerd@gnu.org>
14374
52283633 14375 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 14376
83c8f461 143772000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
14378
14379 * minibuf.c (Ftry_completion): Doc fix.
14380
7a85e4df
GM
143812000-01-11 Gerd Moellmann <gerd@gnu.org>
14382
14383 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14384 vector, too.
14385
a970dae4
AS
143862000-01-11 Andreas Schwab <schwab@suse.de>
14387
14388 * coding.c (code_convert_region): Initialize total_skip.
14389
c65d14ee
DL
143902000-01-08 Dave Love <fx@gnu.org>
14391
14392 * eval.c (Fuser_variable_p): Check customizability too.
14393
834938d2
GM
143942000-01-07 Gerd Moellmann <gerd@gnu.org>
14395
14396 * minibuf.c (Fcompleting_read): Doc fix.
14397
e0303cd6
GM
143982000-01-05 Gerd Moellmann <gerd@gnu.org>
14399
8a26744b
GM
14400 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14401 -L /usr/local/lib.
14402
e0303cd6
GM
14403 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14404 Check that input style is supported before trying to create an
14405 IC for it.
14406 (x_window): Call x_create_im.
427ec082 14407
2e471eb5
GM
144082000-01-04 Gerd Moellmann <gerd@gnu.org>
14409
560a7bd2
GM
14410 * xfns.c (current_gif_memory_src): New variable.
14411 (gif_load): Record the address of the current memory source
14412 in current_gif_memory_src.
14413 (gif_read_from_memory): Use current_gif_memory_src.
14414
f9ee84a3
GM
14415 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14416 macros statement form.
14417
d1299cde
GM
14418 * sound.c (struct sound): Renamed from struct sound_file.
14419 (struct sound): Add members `data' and `header_size'.
14420 (enum sound_attr): Add SOUND_DATA.
14421 (current_sound, current_sound_device): Variables renamed from
14422 sound_file and sound_device.
14423 (parse_sound): Parse :data.
14424 (parse_sound): Handle sound data in strings.
14425 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 14426 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
14427 needed header size.
14428 (wav_play, au_play): Play sounds from string data.
14429
2e471eb5
GM
14430 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14431
14432 * lisp.h: Add prototype for allocate_string_data.
14433
52283633 14434 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
14435
14436 * alloc.c (mark_buffer): Remove code in #if 0.
14437 (gc_sweep): Ditto.
14438 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14439 (strings_consed): New variable.
14440 (allocate_string): Set it.
14441 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14442 (Fmemory_use_counts): Return strings_consed. Use Flist.
14443
14444 * alloc.c: General cleanup in comments etc. Remove conditional
14445 compilation for `standalone'.
14446
14447 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14448
14449 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14450 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14451 (DONT_COPY_FLAG): Removed.
14452 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14453 (struct sdata, struct sblock): New
14454 (struct string_block): Rewritten.
14455 (STRINGS_IN_STRING_BLOCK): New macro.
14456 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14457 (large_sblocks, string_blocks, string_free_list): New variables.
14458 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14459 (init_strings): Rewritten.
14460 (allocate_string, allocate_string_data, compact_small_strings)
14461 (free_large_strings, sweep_strings): New functions.
14462 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14463 (struct string_block_head, current_string_block)
14464 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14465 (STRING_PAD): Removed.
14466 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14467 (Fgarbage_collect): Don't set mark bit in large strings.
14468 (mark_object): Mark strings differently. Mark symbol names
14469 differently.
14470 (survives_gc_p): Test marked strings differently.
427ec082 14471 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
14472 symbol names.
14473 (compact_strings): Removed.
14474
42608ba8
EZ
144752000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14476
14477 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14478 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14479
e0a09e1a
KH
144802000-01-04 Kenichi Handa <handa@etl.go.jp>
14481
dd9f0750 14482 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 14483 in a non-empty buffer.
dd9f0750 14484
3c0f3b15 14485 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 14486
44cd3ae5
GM
144872000-01-03 Gerd Moellmann <gerd@gnu.org>
14488
14489 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14490 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14491
14492 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14493
c182a70f
EZ
144942000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14495
14496 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14497 need to test for MSDOS frames.
14498
24480d5b
EZ
144992000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14500
14501 * dosfns.c (unspecified_colors): Remove.
14502 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14503 unspecified_bg.
14504 (msdos_stdcolor_name): Return strings for unspecified fore- and
14505 back-ground colors.
14506
14507 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 14508 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
14509 (tty_color_name): Return Lisp strings for unspecified fore- and
14510 back-ground colors.
14511 (Finternal_set_lisp_face_attribute): Remove the special treatment
14512 for Qunspecified_{f,b}g.
52283633 14513 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 14514
047f434a
GM
145152000-01-03 Gerd Moellmann <gerd@gnu.org>
14516
14517 * xdisp.c (reseat_at_next_visible_line_start): Position before
14518 newline only if ending up on a newline.
14519 (next_element_from_ellipsis): Return success. Handle case of
52283633 14520 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
14521 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14522 returns 0.
14523
d684c676
EZ
145242000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14525
14526 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14527 (Fcolor_supported_p): Renamed from face-color-supported-p.
14528
5fe1d139
EZ
145292000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14530
14531 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14532 list of colors renamed to tty-defined-color-alist.
14533 (tty_color_name): Pass the frame to tty-color-by-index.
14534 (realize_tty_face): tty-color-alist is now a function which
14535 accepts the frame as argument.
14536
52283633 14537 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 14538
816be8b8
EZ
145392000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14540
14541 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14542 encode_terminal_code.
14543
b635321e
EZ
145442000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14545
14546 * dispnew.c (mode_line_string): Support termcap frames as well.
14547
9b784e96
GM
145482000-01-01 Gerd Moellmann <gerd@gnu.org>
14549
27189709
GM
14550 * syntax.c (Fforward_word): Undo previous change.
14551
14552 * editfns.c (Fconstrain_to_field): Don't constrain if
14553 inhibit-field-text-motion is non-nil.
14554 (Fline_beginning_position): Undo previous change.
14555 (Fline_end_position): Ditto.
14556
14557 * syntax.c (Fforward_word): Notice field boundaries only if
14558 inhibit-field-text-motion is nil.
14559
14560 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14561
14562 * editfns.c (Vinhibit_field_text_motion): New variable.
14563 (inhibit-field-text-motion): New DEFVAR_LISP.
14564 (Fline_beginning_position, Fline_end_position): Notice field
14565 boundaries only if inhibit-field-text-motion is nil.
14566
45158a91
GM
14567 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14568 All calls adjusted.
14569 (x_build_heuristic_mask): Likewise.
14570 (xbm_load_image_from_file): Change error output.
14571 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14572 (gif_load, gs_load, x_kill_gs_process): Ditto.
14573
9b784e96
GM
14574 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14575 color indices when accessing raster pixels.
63cec32f
GM
14576 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14577 one of :file or :data.
14578 (enum pbm_keyword_index): Add PBM_DATA.
14579 (pbm_format): Add :data.
14580 (pbm_image_p): Allow either :file or :data.
14581 (pbm_read_file): New function.
14582 (pbm_scan_number): Rewritten to read from string.
14583 (pbm_load): Support :data.
9b784e96 14584
2cb085db 14585See ChangeLog.8 for earlier changes.
6922b018
KH
14586
14587;; Local Variables:
49b3bd82 14588;; coding: iso-2022-7bit
6922b018 14589;; End:
2a34a036
GM
14590
14591 Copyright (C) 2001 Free Software Foundation, Inc.
14592 Copying and distribution of this file, with or without modification,
14593 are permitted provided the copyright notice and this notice are preserved.