(toplevel): Add comment and version header.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
aff37336
SS
12001-11-14 Andreas Schwab <schwab@suse.de>
2
3 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
4 if defined, 0 otherwise.
5 (MAP_FAILED): Define if not defined and use it for testing mmap
6 failure.
7 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
8
b9937f07
RS
92001-11-19 Richard M. Stallman <rms@gnu.org>
10
11 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
12
2cd23960
JR
132001-11-18 Jason Rumney <jasonr@gnu.org>
14
15 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16 (x_draw_bar_cursor): If the background color of the glyph under
17 the cursor equals the frame's cursor color, use the glyph's
18 foreground color for drawing the bar cursor.
19 (x_after_update_window_line): Clear internal border in different
20 circumstances.
21 (w32_set_vertical_scroll_bar): Check for width and height > 0.
22 (w32_draw_relief_rect): Correct relief by 1 pixel.
23 (x_set_glyph_string_background_width): Set
24 extends_to_end_of_line_p if the row's fill_line_p is set and
25 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
26 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
27 if cursor_in_non_selected_windows is false.
28 (show_mouse_face): Clean up. Recognize overwritten cursor
29 differently.
30 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
31 Notice if cursor gets overwritten.
32 (notice_overwritten_cursor): Renamed from
33 note_overwritten_text_cursor. Rewritten to take glyph widths
34 into account, and to take X positions as parameters.
35 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
36 around call to x_draw_glyphs.
37 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
38 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
39 color to use for image glyph reliefs.
40 (x_draw_image_relief): Accept zero tool_bar_button_relief.
41 (glyph_rect): Remove unused variable `area'.
42
43 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
44 some items.
45 (x_set_internal_border_width): Set frame garbaged when window
46 doesn't exist yet.
47 (Fx_create_frame): Accept zero tool_bar_button_relief.
48 (x_clear_image_1, four_corners_best, image_background)
49 (image_background_transparent): New functions.
50 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
51 (gs_format): Add `:background' entry.
52 (lookup_image): Set IMG's background color if specified.
53 (pbm_load, xbm_load_image, png_load): Set IMG's background field
54 when appropriate.
55 (x_clear_image_1): Reset `background_valid' and
56 `background_transparent_valid' fields.
57 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
58 calculating it here. Set IMG's background_transparent field.
59 (enum xpm_keyword_index): Add XPM_BACKGROUND.
60 (enum png_keyword_index): Add PNG_BACKGROUND.
61 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
62 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
63 (enum gif_keyword_index): Add GIF_BACKGROUND.
64 (enum gs_keyword_index): Add GS_BACKGROUND.
65 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
66 Pre-calculate image background color where necessary.
67 (x_create_x_image_and_pixmap, xbm_load, gs_load): Use
68 display info's n_cbits entry for screen depth.
69 (Fx_show_tip): Remove unused variables `buffer', `top',
70 `left', `max_width' and `max_height'.
71
72 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
73
a4184c1c
GM
742001-11-18 Gerd Moellmann <gerd@gnu.org>
75
76 * puresize.h (BASE_PURESIZE): Increase to 750000.
77
f6fa0866
PJ
782001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
79
80 * frame.c (Fframe_live_p): Doc fix.
81
f4ca4b00
RS
822001-11-18 Richard M. Stallman <rms@gnu.org>
83
84 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
85 (message_dolog_marker3): New static variables hold three markers.
86 (syms_of_xdisp): Initialize and staticpro them.
87 (message_dolog): Use message_dolog_marker1..3 instead of
88 allocating markers each time. Unchain them when done.
89
f4e25f94
RS
902001-11-17 Richard M. Stallman <rms@gnu.org>
91
92 * doc.c (Fsnarf_documentation): Doc fix.
93
91c153e2
AS
942001-11-17 Andreas Schwab <schwab@suse.de>
95
96 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
97
65b7d3e7
RS
982001-11-17 Richard M. Stallman <rms@gnu.org>
99
100 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
101
6b5f6311
JR
1022001-11-17 Jason Rumney <jasonr@gnu.org>
103
104 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
105
be676094
GM
1062001-11-17 Gerd Moellmann <gerd@gnu.org>
107
108 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
109 with invalid position.
110
032a857d
RS
1112001-11-16 Richard M. Stallman <rms@gnu.org>
112
113 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
114
115 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
116 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
117 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
118
119 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
120
b6270150
SM
1212001-11-16 Stefan Monnier <monnier@cs.yale.edu>
122
123 * fileio.c (build_annotations): Split off the tail.
124 (build_annotations_2): New fun. Extracted from build_annotations.
125 (Fwrite_region): Split the call to build_annotations into two
126 calls to build_annotations and build_annotations_2.
127
792e5cbd
PJ
1282001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
129
98cbb9fa
PJ
130 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
131 clear_waiting_for_input with argument.
132
133 * xterm.h (x_update_cursor): Remove duplicated prototype.
134
b6270150 135 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 136
ea904403 137 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 138
ea904403 139 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 140
fa336b91
SM
1412001-11-16 Stefan Monnier <monnier@cs.yale.edu>
142
143 * fileio.c (choose_write_coding_system): New fun, extracted
144 from Fwrite_region.
145 (Fwrite_region): Use it.
146
147 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
148 (funcall_lambda, run_hook_with_args): Make static and add prototype.
149 (ml_apply, find_handler_clause): Add prototype.
150
077907d4
EZ
1512001-11-16 Eli Zaretskii <eliz@gnu.org>
152
aa2af83a
EZ
153 * config.in: Add #undef HAVE_COFF_H.
154
077907d4
EZ
155 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
156 Required for ISC 4.1.
157
1756e2fb
EZ
1582001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
159
160 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
161 Andrew Wiseman <a.wiseman@btclick.com>.
162
06e8f738
KS
1632001-11-16 Kim F. Storm <storm@cua.dk>
164
165 The following changes are made to clean up the various internal
166 references to the fringes to actually use the term `fringe' for
167 them. Previously, they were called `flags areas', `bitmap areas',
168 `left/right side of windows', or implicitly as `flags' or
169 `bitmaps':
170
171 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
172 Comments fixed. Use renamed symbols.
fa336b91 173
06e8f738 174 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 175
06e8f738
KS
176 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
177 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
178 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 179
06e8f738 180 * msdos.c: Comment fix.
fa336b91 181
06e8f738 182 * w32fns.c: Use renamed symbols.
fa336b91 183
06e8f738
KS
184 * w32term.c: Comment fixes. Use renamed symbols.
185 (fringe_bitmap_type): Renamed from bitmap_type.
186 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
187 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
188 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 189
06e8f738
KS
190 * w32term.h: Comment fixes. Use renamed symbols.
191 (fringes_extra): Renamed from flags_areas_extra.
192 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
193 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
194 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
195 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
196 (FRAME_X_LEFT_FRINGE_WIDTH):
197 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
198 (FRAME_X_RIGHT_FRINGE_WIDTH):
199 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
200
06e8f738 201 * widget.c: Use renamed symbols.
fa336b91 202
06e8f738
KS
203 * window.c: Comment fixes. Use renamed symbols.
204 (coordinates-in-window-p): Doc fix.
fa336b91 205
06e8f738 206 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 207
06e8f738 208 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 209
06e8f738 210 * xfns.c: Use renamed symbols.
fa336b91 211
06e8f738
KS
212 * xterm.c: Comment fixes. Use renamed symbols.
213 (fringe_bitmap_type): Renamed from bitmap_type.
214 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
215 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
216 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
217
218 * xterm.h: Comment fixes. Use renamed symbols.
219 (fringes_extra): Renamed from flags_areas_extra.
220 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
221 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
222 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
223 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
224 (FRAME_X_LEFT_FRINGE_WIDTH):
225 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
226 (FRAME_X_RIGHT_FRINGE_WIDTH):
227 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 228
9ce647f4
JR
2292001-11-15 Jason Rumney <jasonr@gnu.org>
230
231 * w32menu.c (add-menu-item): Make help_echo and radio buttons
232 work for most menu items. From David Ponce
233 <david.ponce@wanadoo.fr>.
234
9b784ab8
GM
2352001-11-15 Gerd Moellmann <gerd@gnu.org>
236
9f7e52b4
GM
237 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
238 Some x_set_* function expect to be called even if old and new
239 value are equal.
240
241 * xdisp.c (build_desired_tool_bar_string): Accept zero
242 tool_bar_button_relief.
243
244 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
245
246 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 247
34e5d0af
GM
248 * xterm.c (x_draw_bar_cursor): If the background color of the
249 glyph under the cursor equals the frame's cursor color, use
250 the glyph's foreground color for drawing the bar cursor.
251
9b784ab8
GM
252 * dispnew.c (direct_output_forward_char): Fix character/byte
253 position comparison.
254
89512fcd
MB
2552001-11-15 Miles Bader <miles@gnu.org>
256
257 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
258 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
259 Update arguments to find_field.
260 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
261 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
262 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
263 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
264
7d18891d
RS
2652001-11-14 Richard M. Stallman <rms@gnu.org>
266
d2936d21
RS
267 * editfns.c (Fpropertize): Allow call with 1 arg.
268
7d18891d
RS
269 * dispextern.h (image_background, image_background_transparent):
270 Conditionalize on HAVE_X_WINDOWS.
271
2722001-11-13 Richard M. Stallman <rms@gnu.org>
273
274 * print.c (Fprin1_to_string): Doc fix.
275
276 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
277
278 * floatfns.c (Fceiling, Ffloor): Doc fixes.
279
280 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
281
282 * fileio.c (Ffile_accessible_directory_p): Doc fix.
283
284 * eval.c (syms_of_eval): Doc fix.
285
286 * coding.c (syms_of_coding): Doc fix.
287
288 * doc.c (Fsnarf_documentation): Doc fix.
289
290 * dispnew.c (syms_of_display): Doc fix.
291
292 * category.c (Fget_unused_category): Doc fix.
293
294 * buffer.c (syms_of_buffer): Doc fixes.
295
9474c847
EZ
2962001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
297
298 * print.c (prin1, print): Doc fix.
299
e3059a5d
PJ
3002001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
301
302 * fontset.h: Remove prototypes for variables
303 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
304
305 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
306 `Vclip_large_size_font'.
307
b3700ae7
JR
3082001-11-13 Jason Rumney <jasonr@gnu.org>
309
310 * w32fns.c: Doc fix.
311
eae936e2
PJ
3122001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
313
4bb962be
PJ
314 * xfaces.c (Fface_attributes_as_vector): Doc fix.
315
0a332240
PJ
316 * w32fns.c (Fx_synchronize): Reindent.
317
ddb67bdc
PJ
318 * fns.c: Doc fix.
319
3467c402
PJ
320 * emacs.c: Doc fix.
321
322 * coding.c: Doc fix.
323
6e1b91d7
PJ
324 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
325 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
326 `new style' [w/`doc:' keyword].
327
f6e34773
PJ
328 * xmenu.c (x-popup-menu): Reindent.
329 (x-popup-dialog): Likewise.
330
fa336b91 331 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 332
c2552f79
PJ
333 * xdisp.c (Fdump_tool_bar_row): Reindent.
334
94c7167b
PJ
335 * minibuf.c (Fminibuffer_complete_word): Reindent.
336 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 337 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
338 (Fminibuffer_message): Likewise.
339
462a5e3a
PJ
340 * fns.c (Freverse): Reindent.
341
b8de5714
PJ
342 * eval.c (Fif): Reindent.
343 (Fand): Likewise.
344
deb8e082
PJ
345 * editfns.c (Fuser_real_login_name): Reindent.
346 (Finsert_buffer_substring): Likewise.
347 (Fcompare_buffer_substrings): Likewise.
348 (Fsubst_char_in_region): Likewise.
349
bacf09b4
PJ
350 * dispnew.c (Fsit_for): Reindent.
351 (Fframe_or_buffer_changed_p): Likewise.
352 (Finternal_show_cursor_p): Likewise.
353 (syms_of_display): Likewise.
354
eae936e2
PJ
355 * alloc.c (Flist): Reindent.
356 (Fvector): Likewise.
357
1c1d3d69
RS
3582001-11-12 Richard M. Stallman <rms@gnu.org>
359
360 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
361 LeaveNotify events. Only FocusIn and FocusOut do that now.
362 (x_display_and_set_cursor): Do display hollow cursors in active
363 minibuffer windows when they are not selected.
364
b6f4c7ba
JR
3652001-11-12 Jason Rumney <jasonr@gnu.org>
366
367 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
368 * w32term.c: Change doc-string comments to `new style'.
369 [w/`doc:' keyword]. Doc fixes.
370
371 * w32fns.c: Don't define max.
372 (Fx_open_connection): Only execute once.
373
a89f435d
PJ
3742001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
375
376 * ccl.c: Change macros to use do-while block instead of if-else.
377 Use braces to follow GNU Coding Standards.
378
a4cd0cd7
RS
3792001-11-11 Richard M. Stallman <rms@gnu.org>
380
eafb659a
RS
381 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
382
383 * lread.c (read_escape): Use end_of_file_error for reporting eof.
384
a4cd0cd7
RS
385 * insdel.c (replace_range): Use adjust_markers_for_replace
386 instead of adjust_markers_for_delete and adjust_markers_for_insert.
387
388 * intervals.h: Declare set_text_properties and set_text_properties_1.
389
390 * textprop.c (set_text_properties_1): New subroutine
391 broken out of set_text_properties.
392 (set_text_properties): Use set_text_properties_1.
393
394 * intervals.c (graft_intervals_into_buffer):
395 Use set_text_properties_1 to clear out properties.
396
397 * search.c (Freplace_match): Use replace_range to insert
398 and delete. Don't request property inheritance from
399 surrounding text.
400
91823618
JR
4012001-11-10 Jason Rumney <jasonr@gnu.org>
402
403 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
404 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 405 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 406
86928dfb
GM
4072001-11-10 Gerd Moellmann <gerd@gnu.org>
408
fa336b91 409 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
410 instead of malloc/free.
411
40ef1eda
PJ
4122001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
413
ab8469eb
PJ
414 * xfaces.c (merge_face_vectors): Use braces to follow GNU
415 Coding Standards.
416 (Finternal_set_lisp_face_attribute): Likewise.
417
a78e0303
PJ
418 * buffer.c (Fbury_buffer): Likewise.
419
40ef1eda
PJ
420 * indent.c (current_column_1): Remove unused variable `prev_col'.
421
fabf4a91
PJ
422 * coding.c (encode_coding): Use precomputed value of `src'.
423 (encode_coding): Remove unused variable `src_end'.
424 (code_convert_region): Remove unused variables `count'.
425
0c99b139
JR
4262001-11-07 Jason Rumney <jasonr@gnu.org>
427
428 * w32term.c (x_display_and_set_cursor): Do not move system caret
429 if cursor_glyph is NULL.
430
830ddd77
PJ
4312001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
432
433 * keymap.c (access_keymap): Fix compilation error.
434
55c6d645
MB
4352001-11-07 Miles Bader <miles@gnu.org>
436
437 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
438
5de38842
PJ
4392001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
440
7a4564a4
PJ
441 * intervals.c (graft_intervals_into_buffer):
442 Remove #ifdef'd-out code.
443 (graft_intervals_into_buffer): Remove unused variable `middle'.
444
5de38842
PJ
445 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
446 code (eval-current-buffer).
447 Change doc-string comments to `new style' [w/`doc:' keyword].
448
4fa23df5
RS
4492001-11-06 Richard M. Stallman <rms@gnu.org>
450
451 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
452
7a6a97d7
SM
4532001-11-06 Stefan Monnier <monnier@cs.yale.edu>
454
c191d13c
SM
455 * lread.c (read1): Fix behavior with nested backquoting.
456
7a6a97d7
SM
457 * keyboard.c (make_lispy_event): Check integerness and fix
458 Lisp_Object/int mixup.
459
44dc78e0
PJ
4602001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
461
462 * fns.c (copy_hash_table): Remove unused variable `v'.
463
17893c65
PJ
464 * fontset.c (fontset_font_pattern): Remove unused variable
465 `family_registry'.
466
4d994a79
PJ
467 * indent.c (current_column_1): Remove unused variable `prev_col'.
468
d5360cc7
RS
4692001-11-05 Richard M. Stallman <rms@gnu.org>
470
471 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
472
473 * buffer.c (Fkill_buffer): Don't delete auto save file
474 if buffer is modified.
475
96238a5a
AI
4762001-11-05 Andrew Innes <andrewi@gnu.org>
477
478 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
479 CHECK_NUMBER_CDR.
480
d9d54213
RS
4812001-11-05 Richard M. Stallman <rms@gnu.org>
482
483 * unexelf.c (unexec): Minor changes; clean up comments.
484
b116830b
SS
4852001-11-05 Sam Steingold <sds@gnu.org>
486
487 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
488
3297e2a1
AS
4892001-11-05 Andreas Schwab <schwab@suse.de>
490
491 * sound.c (sound_perror): Save errno from being clobbered.
492
9212319f 4932001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
494
495 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
496 the program image directly.
497
7dd73b78
PJ
4982001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
499
500 * buffer.h (Fbuffer_local_value): Add prototype.
501
982f6c7e
RS
5022001-11-04 Richard M. Stallman <rms@gnu.org>
503
d31053f9
RS
504 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
505 and CHECK_BUFFER.
506
507 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
508 (record_char): Likewise.
509
510 * keyboard.c (make_lispy_event): Don't insist a drag event must
511 move to a different buffer position. Instead, check for moving at
512 least double_click_fuzz.
513
514 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
515
516 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
517
982f6c7e
RS
518 * indent.c (current_column_1, Fmove_to_column): Separate the code
519 for display-table glyphs from the code buffer text, to fix
520 bugs in the former.
521
830047fd
RS
5222001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
523
524 * buffer.c (Fbuffer_local_value): New function.
c191d13c 525 (syms_of_buffer): Defsubr it.
b116830b 526
830047fd
RS
527 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
528 value of `cursor-in-non-selected-windows'.
529
530 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
531 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
532 (syms_of_xdisp): Initialize it.
b116830b 533
2df5238c
PJ
5342001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
535
4e397688
PJ
536 * xfns.c (Fx_create_frame): Doc fix.
537
48b0f3ae
PJ
538 * coding.c: Change doc-string comments to `new style' [w/`doc:'
539 keyword].
540
2df5238c
PJ
541 * eval.c (top_level_value, top_level_set): Remove commented and
542 #ifdef'd-out code.
543 (Fdefvar): Fix usage in doc-string.
544
3ecaf7e5
RS
5452001-11-03 Richard M. Stallman <rms@gnu.org>
546
547 * xfns.c: Include unistd.h, if it exists.
548
549 * editfns.c: Move the include of ctype.h after unistd.h.
550
551 * gmalloc.c: Test BROKEN_PROTOTYPES.
552
8db2e33b
KR
5532001-11-03 Ken Raeburn <raeburn@gnu.org>
554
555 * lisp.h (CHECK_STRING_CAR): New macro.
556 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
557 treating XCAR and XCDR as lvalues.
558 (openp): Use CHECK_STRING_CAR.
559 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
560
aed29b97
EZ
5612001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
562
563 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 564 (SIGMASKTYPE): Define.
aed29b97
EZ
565
566 * syssignal.h (sigunblock): Don't define if already defined.
567
6cb16f95
PJ
5682001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
569
16b45be4
EZ
570 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
571 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
572 Fix typos in comments.
573
020f9b38
PJ
574 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
575 and #ifdef'd-out code.
576 Fix and reindent comments.
577
c191d13c 578 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 579
6cb16f95
PJ
580 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
581 argument `i' in macros.
582
583 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
584 `i' in macros.
585
16b45be4
EZ
586 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
587 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
588 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
589 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
590 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
591 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
592 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
593 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
594 in macros.
595
596 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
597 casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
598 composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
599 eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
600 indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
601 minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
602 sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
603 w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
604 xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
605 (remove unused second argument).
606
7e9d3c2f
SM
6072001-11-02 Stefan Monnier <monnier@cs.yale.edu>
608
609 * syntax.c (describe_syntax): New wrapper.
610 (Finternal_describe_syntax_value): Rename from describe_syntax.
611 Don't insert space at front and \n at the end.
612 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
613
614 * regex.c (re_wctype): Try to fix some warnings.
615 (regcomp, regexec): Don't forget the __restrict.
616
e6bff182
RS
6172001-11-02 Richard M. Stallman <rms@gnu.org>
618
619 * textprop.c (Fget_char_property): Doc fix.
620
9ba48103
PJ
6212001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
622
623 * process.c (Fstart_process): Add usage to doc-string.
624
625 * data.c (Fsetq_default): Ditto.
626
627 * callint.c (Finteractive): Ditto.
628
c22e59e1
SM
6292001-11-01 Stefan Monnier <monnier@cs.yale.edu>
630
631 * macros.c: Don't include keymap.h any more.
632
9271ed2c
RS
6332001-11-01 Richard M. Stallman <rms@gnu.org>
634
e6bff182
RS
635 * data.c (Fmake_local_variable): Doc fix.
636
637 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
638 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
639
9271ed2c
RS
640 * keymap.c (Fdescribe_buffer_bindings): Print character property
641 bindings along with or instead of the buffer local map.
642 Make the overriding maps override what they should.
643
8b8bd9c6
PJ
6442001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
645
646 * window.c (grow_mini_window): Fix typo in comment.
647
27188d11
GM
6482001-11-01 Gerd Moellmann <gerd@gnu.org>
649
7b49b9d2
GM
650 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
651 (XTset_vertical_scroll_bar): Likewise.
652
43f7c3ea
GM
653 * xfns.c (x_build_heuristic_mask): Use four_corners_best
654 instead of IMAGE_BACKGROUND.
c22e59e1 655
b350c2e5
GM
656 * xfns.c (four_corners_best): Reindent.
657
c22e59e1 658 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
659 Handle :box so that it is possible to specify sexprs.
660
d576358b
PJ
6612001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
662
663 * xfaces.c (Finternal_merge_in_global_face): Reindent.
664 (Fface_font): Ditto.
665 (Finternal_set_alternative_font_registry_alist): Ditto.
666 (Ftty_suppress_bold_inverse_default_colors): Ditto.
667
668 * xfns.c (x-get-resource): Reindent.
669
bf00d461
EZ
6702001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
671
672 * s/hpux11.h: New file.
673
4e10df59
PJ
6742001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
675
2b209b97
PJ
676 * emacs.c (USAGE1): Show command line option --no-window-system
677 instead of --no-windows in usage.
678 (standard_args): Rename --no-windows to --no-window-system.
679 (bug_reporting_address): Follow Emacs coding conventions.
680
9dbc9081
PJ
681 * eval.c (Fcommandp): Doc fix.
682 Change doc-string comments to `new style' [w/`doc:' keyword].
683
4e10df59
PJ
684 * frame.c (Fframe_live_p): Doc fix.
685
686 * buffer.c (selective-display-ellipses): Doc fix.
687
dd387b25
GM
6882001-10-31 Gerd Moellmann <gerd@gnu.org>
689
fe957e65
GM
690 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
691
dd387b25
GM
692 * xfaces.c (realize_x_face): If C is not a single-byte character,
693 set the face's colors_copied_bitwise_p instead of the defaulted_p
694 members which have a different meaning.
695 (free_face_colors): Do nothing for a face whose colors have been
696 copied bitwise.
697
c22e59e1 698 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 699
2e1280f8
PJ
7002001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
701
687784e8
PJ
702 * marker.c, mocklisp.c: Change doc-string comments to `new style'
703 [w/`doc:' keyword].
2e1280f8 704
b9d9a9b9
GM
7052001-10-31 Gerd Moellmann <gerd@gnu.org>
706
707 * fns.c (require_unwind): Return Lisp_Object.
708
48400103
PJ
7092001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
710
fa1361cb
PJ
711 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
712 (last-input-char): Revert doc-string to be the same as the
713 doc-string of `last-input-event'.
714
48400103
PJ
715 * xdisp.c: Fix typos in comments.
716
eafa3196
GM
7172001-10-31 Gerd Moellmann <gerd@gnu.org>
718
719 * window.c (grow_mini_window): Handle case that the root
720 window is already smaller than the nominal mininum height.
721
747d3f2a
SM
7222001-10-30 Stefan Monnier <monnier@cs.yale.edu>
723
bf9bb76f
SM
724 * emacs.c (main): Don't call keys_of_macros any more.
725
726 * lisp.h (keys_of_macros): Remove.
727
728 * macros.c (keys_of_macros): Remove.
729
747d3f2a
SM
730 * xfaces.c (Fface_attribute_relative_p): Declare args.
731
5e905a57
JR
7322001-10-30 Jason Rumney <jasonr@gnu.org>
733
734 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
735 (enum_font_cb2): Ignore fonts with vertical orientation.
736
3a426197
RS
7372001-10-30 Richard M. Stallman <rms@gnu.org>
738
739 * keyboard.c (Finput_pending_p): Doc fix.
740
a742d646
GM
7412001-10-30 Gerd Moellmann <gerd@gnu.org>
742
259cf6bc
GM
743 * xterm.c (x_after_update_window_line): Don't run the code
744 clearing in borders for rows whose visible height is 0.
745
3f99f948
GM
746 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
747 resized_p flag is set. If not set, use the much less flickering
748 method previously used.
749
750 * dispnew.c (change_frame_size_1): Set frame's resized_p.
751
752 * frame.h (struct frame) <resized_p>: New member.
753
b4a3be43
GM
754 * lread.c (to_multibyte): Ensure read_buffer is at least twice
755 as large as the number of bytes to convert.
747d3f2a 756
a742d646
GM
757 * lread.c (to_multibyte): New function.
758 (read1): Use it.
759
cacbb9e9
EZ
7602001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
761
762 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
763
99cb6b2f
GM
7642001-10-30 Gerd Moellmann <gerd@gnu.org>
765
327f42ee 766 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
767 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
768 if the row's fill_line_p is set and drawing the last glyph with
769 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 770
99cb6b2f
GM
771 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
772
8e8223e2
SM
7732001-10-29 Stefan Monnier <monnier@cs.yale.edu>
774
775 * xmenu.c: Include coding.h and charset.h.
776 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
777 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
778 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
779 Explicitly set wv->help. Use `TRUE' rather than `True'.
780 (menu_help_callback): Use empty_string.
781
782 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
783 (Fx_popup_dialog): Explicitly init f.
784 (w32_menu_display_help): Use empty_string.
785
4d083a8f
RS
7862001-10-29 Richard M. Stallman <rms@gnu.org>
787
b2304472
RS
788 * fns.c (Frequire): Detect recursive try to require the same
789 feature 3 or more levels deep, and get error.
790 (require_unwind): New subroutine.
791 (require_nesting_list): New variable.
792 (syms_of_fns): Init and staticpro it.
793
4d083a8f
RS
794 * print.c (print_object): Clarify indication of insertion type.
795
2fe41216
EZ
7962001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
797
90480000
EZ
798 * coding.c (syms_of_coding): Document that locale-coding-system is
799 used for decoding input on X.
800
2fe41216
EZ
801 * window.c (Fscroll_left, Fscroll_right): Doc fix.
802
74e79967
PJ
8032001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
804
805 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
806 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
807
60ebcfe8
GM
8082001-10-29 Gerd Moellmann <gerd@gnu.org>
809
9a7bdceb
GM
810 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
811 use NO_CURSOR if cursor_in_non_selected_windows is false.
812
3f08fcd2
GM
813 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
814 the slant attribute if FRAME is t.
815
0ccfdad2
GM
816 * xfns.c (x_set_internal_border_width): Set frame garbaged
817 when X window doesn't exist yet.
818
ef253080
GM
819 * xterm.c (x_after_update_window_line): Clear internal border
820 in different circumstances.
b116830b 821
60ebcfe8
GM
822 * xterm.c (XTread_socket) <KeyPress>: Don't use
823 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
824 <handa@etl.go.jp>.
825
73d25f9c
EZ
8262001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
827
828 * m/ibms390.h: New file. From Adam Thornton
829 <athornton@sinenomine.net>.
830
cac1daf0
GM
8312001-10-28 Gerd Moellmann <gerd@gnu.org>
832
053b3256 833 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 834
cac1daf0
GM
835 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
836 a loop counter.
837
13b1a09c
PJ
8382001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
839
186486eb
PJ
840 * emacs.c: Use argv[0] instead of emacs when -t was specified.
841
4707d2d0
PJ
842 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
843 keyword].
844 Fix typos in comments.
b116830b 845
d883731c
PJ
846 * emacs.c (bug_reporting_address): New function.
847 Use it when displaying usage message.
848
04012254
PJ
849 * minibuf.c (read_minibuf): Remove unused external declaration of
850 variable `Qread_only'.
851
13b1a09c
PJ
852 * keymap.c (access_keymap): Remove unused variable `charset'.
853
5bbf4378
MB
8542001-10-28 Miles Bader <miles@gnu.org>
855
856 * xfaces.c (merge_face_heights): Handle TO being relative as well.
857 Remove #ifdef'd-out code.
858 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
859 (syms_of_xfaces): Initialize them.
860
1ce1e4ee
JR
8612001-10-27 Jason Rumney <jasonr@gnu.org>
862
863 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
864 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
865 position using the system caret.
866
867 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
868 (w32_system_caret_height, w32_system_caret_x)
869 (w32_system_caret_y): New variables for tracking system caret.
870 (w32_initialize): Initialize them.
c2d53558 871 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 872
c2d53558
SM
873 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
874 New messages types.
1ce1e4ee
JR
875
876 * w32term.c (note_mouse_highlight): Clear old help_echo.
877
4e30ce42
PJ
8782001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
879
bb4600a4
PJ
880 * xterm.c: Fix typo in a comment.
881
7db35a48
PJ
882 * emacs.c: Fix typos in comments.
883 Remove unnecessary spaces.
884 Change doc-string comments to `new style' [w/`doc:' keyword].
885 (USAGE2): Fix typos in usage string.
886
a7248e4f
PJ
887 * xterm.c: Fix typo in a comment.
888
4e30ce42
PJ
889 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
890 emacs.c.
891
62725a92
GM
8922001-10-27 Gerd Moellmann <gerd@gnu.org>
893
798dbe1f 894 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 895 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
896 farther backward when target_y was not reached.
897
62725a92
GM
898 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
899 Display errno only if non-zero.
900 (sound_warning): New function.
901 (vox_configure): Don't treat failing to set sample rate as error.
902 (various places): Improve error messages.
903
d4e34d24
EZ
9042001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
905
944e6f60
EZ
906 * fileio.c (Faccess_file): Run the argument filename through
907 Fexpand_file_name, before using it.
908
d4e34d24
EZ
909 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
910 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
911
38d2af0c
GM
9122001-10-26 Gerd Moellmann <gerd@gnu.org>
913
da80a8d5
GM
914 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
915
38d2af0c
GM
916 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
917 Fix clearing in the case of scroll bars on the right.
c2d53558 918
56f508dd
EZ
9192001-10-26 Juanma Barranquero <lektu@terra.es>
920
921 * w32gui.h (XImage): Add a dummy typedef.
922
fbd5ceb2
GM
9232001-10-26 Gerd Moellmann <gerd@gnu.org>
924
c2d53558 925 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 926
b23236fb
EZ
9272001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
928
929 * frame.c (Fframe_parameter): Fix last change.
930
5d991fc4
EZ
931 * fileio.c: Revert last change (which removed old commented-out
932 version of expand-file-name). Add a comment that explains why
933 this old version should not be removed.
934
879eadc3
GM
9352001-10-25 Gerd Moellmann <gerd@gnu.org>
936
75700ff2
GM
937 * frame.c (Fframe_parameter): Fix a bug whereby some
938 ``artificial'' frame parameters, like `minibuffer' were not
939 obtained by calling Fframe_parameters.
940
dfe92a6a
GM
941 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
942 cursor differently.
943
879eadc3
GM
944 * xdisp.c (move_it_vertically_backward): Compute line height
945 differently. Add heuristic to try to be more compatible to 20.x.
946
e1010ebe
SM
9472001-10-25 Stefan Monnier <monnier@cs.yale.edu>
948
d73a471b
SM
949 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
950
d6da5a06
GM
951 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
952 boolean.
e1010ebe 953
f66bd220
MB
9542001-10-25 Miles Bader <miles@gnu.org>
955
956 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
957 BG is a pointer to a structure, not a structure.
958 (gif_format, png_format): Add missing commas.
959
d436d538
RS
9602001-10-24 Richard M. Stallman <rms@gnu.org>
961
962 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 963 (syms_of_xfaces): Defsubr it.
d436d538 964
075c507b
PJ
9652001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
966
967 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
968 variable `area'.
969
d492b584
PJ
9702001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
971
c2d53558 972 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 973
e2a57b34
MB
9742001-10-25 Miles Bader <miles@gnu.org>
975
976 * dispextern.h (struct image): Add `background',
977 `background_valid', and `background_transparent' fields.
978 (image_background, image_background_transparent): New declarations.
979 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
980 * xfns.c (image_background, image_background_transparent)
981 (four_corners_best): New functions.
c2d53558 982 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
983 (gs_format): Add `:background' entry.
984 (lookup_image): Set IMG's background color if specified.
985 (pbm_load, xbm_load_image, png_load): Set IMG's background field
986 when appropriate.
987 (x_clear_image_1): Reset `background_valid' and
988 `background_transparent_valid' fields.
989 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
990 calculating it here. Set IMG's background_transparent field.
991 (enum xpm_keyword_index): Add XPM_BACKGROUND.
992 (enum png_keyword_index): Add PNG_BACKGROUND.
993 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
994 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
995 (enum gif_keyword_index): Add GIF_BACKGROUND.
996 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 997 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
998 Pre-calculate image background color where necessary.
999 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1000 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1001 color to use for image glyph reliefs.
1002
b547b6e8
GM
10032001-10-24 Gerd Moellmann <gerd@gnu.org>
1004
d9e3b8c6
GM
1005 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1006 in full-width rows.
c2d53558 1007
b547b6e8
GM
1008 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1009 Fix clearing of area not covered by scroll bar.
1010
2beb36f9
PJ
10112001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1012
1013 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1014 and `real_start'.
c2d53558 1015 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
1016 (glyph_rect): Remove unused variable `area'.
1017
76cb5e06
GM
10182001-10-24 Gerd Moellmann <gerd@gnu.org>
1019
bdbdebff 1020 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
1021
1022 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1023 (row_containing_pos): Take additional argument DY.
1024 Treat rows ending in middle of char differently.
62e33982
GM
1025 (display_line): Handle tabs on window systems differently.
1026
1027 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1028 with additional argument.
1029
1030 * dispextern.h (row_containing_pos): Adjust prototype.
1031
76cb5e06
GM
1032 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1033 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1034 (try_window_id, try_window_reusing_current_matrix)
1035 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1036 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1037
996fee11
PJ
10382001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1039
c9e60620
PJ
1040 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1041 gnuemacs).
1042 (HAVE_BOXES): Fix typo in comment.
1043 (push_menu_pane): Fix typo in comment.
1044
3b552d56
PJ
1045 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1046 of `Qwhen'.
1047 (single_display_prop_string_p): Remove unused local declarations
1048 of `Qwhen' and `Qmargin'.
1049 (string_buffer_position): Remove unused variable `around'.
1050 (store_frame_title): Remove unused variable `width'.
1051
15c565ac
PJ
1052 * window.c: Don't define max.
1053 (coordinates_in_window): Remove unused variable `uy'.
1054
a8818eb9
PJ
1055 * widget.c: Don't define max.
1056
996fee11
PJ
1057 * process.c: Don't define max.
1058 (create_process): Remove unused variable `buffer'.
1059
496e1a5b
GM
10602001-10-23 Gerd Moellmann <gerd@gnu.org>
1061
c2d53558 1062 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 1063
5905ae8b
EZ
10642001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1065
1066 * xfaces.c (Finternal_set_lisp_face_attribute)
1067 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1068 frame is on a windowed display.
1069
24db49fb
GM
10702001-10-23 Gerd Moellmann <gerd@gnu.org>
1071
c2d53558
SM
1072 * dispnew.c (sync_window_with_frame_matrix_rows):
1073 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
1074 of marginal areas.
1075
c2d53558 1076 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 1077
f0487f05
EZ
10782001-10-23 Andreas Schwab <schwab@suse.de>
1079
1080 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1081 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1082
f0a48a01
GM
10832001-10-23 Gerd Moellmann <gerd@gnu.org>
1084
c2d53558 1085 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
1086 REAL_END. Notice if cursor gets overwritten.
1087 (notice_overwritten_cursor): Take X positions as parameters.
1088 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1089 around call to x_draw_glyphs.
1090
a50a10a0
PJ
10912001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1092
fc11dff0
PJ
1093 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1094 instead of C) and usage.
a50a10a0 1095
fc11dff0
PJ
1096 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1097 of C) and usage.
a50a10a0
PJ
1098
1099 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1100 `left', `max_width' and `max_height'.
1101
8738febd
GM
11022001-10-23 Gerd Moellmann <gerd@gnu.org>
1103
1104 * xdisp.c (display_line): For a tab continued to the next line,
1105 set row's ends_in_middle_of_char_p.
1106
653c329b
GM
11072001-10-22 Gerd Moellmann <gerd@gnu.org>
1108
1109 * xdisp.c (display_line): Fix computation of continuation lines
1110 width for TABs.
1111
f958c5ac
PJ
11122001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1113
7ba51063
PJ
1114 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1115 `Qlaplace'.
1116
f958c5ac
PJ
1117 * fileio.c: Remove unused code.
1118
eb360291
MB
11192001-10-22 Miles Bader <miles@gnu.org>
1120
1121 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1122 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1123 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1124
98515cf0
JR
11252001-10-21 Jason Rumney <jasonr@gnu.org>
1126
1127 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1128
93026d88
EZ
11292001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1130
1131 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1132 (Finsert_string): Avoid the multi-line string literals warning.
1133
c9a95b79
MB
11342001-10-22 Miles Bader <miles@gnu.org>
1135
1136 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1137 (Fdocumentation): Don't use it.
1138 (syms_of_doc): Don't initialize it.
1139
1140 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1141 * print.c (Fwith_output_to_temp_buffer): Likewise.
1142 * window.c (Fsave_window_excursion): Likewise.
c2d53558 1143 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 1144 (Fsave_restriction): Likewise.
c2d53558
SM
1145 * eval.c (Frun_hooks, Frun_hook_with_args)
1146 (Frun_hook_with_args_until_failure)
1147 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1148 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1149 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
1150 (Funwind_protect, Fcondition_case): Likewise.
1151 * coding.c (Ffind_operation_coding_system): Likewise.
1152 * keyboard.c (Ftrack_mouse): Likewise.
1153
a3b10252
MB
11542001-10-21 Miles Bader <miles@gnu.org>
1155
c2d53558 1156 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
1157 (Fmake_hash_table): Add usage: string to doc string.
1158 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 1159 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
1160 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1161 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1162 (Fml_prefix_argument_loop): Likewise.
1163
c6f73eec
PJ
11642001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1165
c2d53558 1166 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 1167
c6f73eec
PJ
1168 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1169 style' [w/`doc:' keyword].
1170
1171 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1172 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1173 comments to `new style' [w/`doc:' keyword].
1174
3cf3436e
JR
11752001-10-21 Jason Rumney <jasonr@gnu.org>
1176
1177 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1178
c169b8f1
JR
1179 * w32term.c (remember_mouse_glyph): New function.
1180 (w32_mouse_position): Use it.
1181 (note_mouse_movement): If the mouse moved off the glyph, remember
1182 its new position.
c2d53558 1183
4fdd691b
JR
1184 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1185 (w32_display_info): Add mouse_face_overlay.
1186
c169b8f1
JR
1187 * w32term.c (notice_overwritten_cursor): Renamed from
1188 note_overwritten_text_cursor. Rewritten to take glyph widths into
1189 account.
1190 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1191 (fast_find_string_pos): New function.
1192 (fast_find_position): Return the correct vpos. Add parameter
1193 STOP. In the final row, stop before glyphs having STOP as object.
1194 Don't consider glyphs that are not from a buffer.
1195 (fast_find_position) [0]: Add a presumably more correct version
1196 for after 21.1.
1197 (expose_window_tree, expose_frame): Don't compute intersections here.
1198 (expose_window): Do it here instead.
1199 (expose_window_tree, expose_window, expose_line): Return 1 when
1200 overwriting mouse-face.
1201 (expose_window): If W is the window currently being updated, mark
1202 the frame garbaged.
1203 (expose_frame): If mouse-face was overwritten, redo it.
1204 (x_use_underline_position_properties): New variable.
1205 (syms_of_xterm): DEFVAR_BOOL it.
1206 (x_draw_glyph_string): Add comment to use it in future.
1207 (x_draw_glyph_string): Restore clipping after drawing box.
1208 Fix a computation of the underline position.
1209 (w32_get_glyph_string_clip_rect): Minor cleanup.
1210 (x_fill_stretch_glyph_string): Remove an assertion.
1211 (x_produce_glyphs): Don't convert multibyte characters
1212 to unibyte characters in unibyte buffers.
1213 (cursor_in_mouse_face_p): New function.
1214 (x_draw_stretch_glyph_string): Use it to choose a different GC
1215 when drawing a cursor within highlighted text. Don't draw
1216 background again if it has already been drawn.
1217 (x_draw_glyph_string_box): Don't draw a full-width
1218 box just because the glyph row's full_width_p flag is set.
1219 (x_draw_glyphs): Fix computation of rightmost x for
1220 full-width rows.
1221 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1222 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1223 change bottom shadow accordingly. Some cleanup.
1224 (x_update_window_end): Handle overwritten mouse face
1225 also for tool bar windows.
1226 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1227 DRAW is DRAW_IMAGE_RAISED.
1228 (clear_mouse_face): Return 1 if text with mouse face was
1229 actually redrawn. Make the function static. Reset
1230 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1231 optimize away highlighting if we pass over that same overlay again.
1232 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1233 to detect a case where we have to highlight a different region
1234 despite not having left the currently highlighted region.
1235 Set mouse_face_overlay in the x_display_info. Avoid changing the
1236 mouse pointer shape when show_mouse_face has already done it, or
1237 there is no need. Handle mouse-face and help-echo in strings.
1238 (glyph_rect): New function.
1239 (w32_mouse_position): Use it to raise the threshold for mouse
1240 movement event generation.
1241 (w32_initialize_display_info): Initialize the x_display_info's
1242 mouse_face_overlay.
1243 (w32_set_vertical_scroll_bar): Don't clear a zero height
1244 or width area.
1245 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1246 a widget to zero height.
1247
3cf3436e 1248 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 1249 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
1250 equivalents in menu_items.
1251 (w32_menu_show): Don't overwrite an item's name with its key
1252 description in case the description is a multibyte string.
1253 (single_submenu): Some cleanup.
1254
1255 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1256 (postprocess_image): New function.
1257 (lookup_image): Call it for all image types except PostScript.
1258 (x_kill_gs_process): Call postprocess_image.
1259 (tiff_error_handler, tiff_warning_handler): New functions.
1260 (tiff_load): Install them as handlers.
1261 (x_kill_gs_process): Recognize if someone has cleared the image
1262 cache under us.
1263 (valid_image_p): Protect better against invalid image
1264 specifications. Previous code could signal an error.
1265 (Fx_hide_tip, Fshow_tip): Doc fix.
1266 (Fv_max_tooltip_size): New variable.
1267 (syns_of_xfns): DEFVAR_LISP it.
1268 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1269 window buffer to *tip* right after creating the frame. Set frame's
1270 window_width. Use a maximum tooltip size specified by
1271 Vx_max_tooltip_size, if that has valid contents.
1272 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1273 Make sure the tooltip is completely visible.
1274 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1275 (Fx_create_frame): Adjust the frame's height for presence
1276 of the tool bar before calling x_figure_window_size.
1277 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1278 when the window gets smaller.
1279 (x_set_foreground_color): Set frame's cursor_pixel.
1280 (x_set_foreground_color, x_set_background_color): Cleaned up.
1281 (x_set_font): Handle case of x_new_fontset returning the same name
1282 as before, although there was a change in fontsets.
1283
386ca361
MB
12842001-10-21 Miles Bader <miles@gnu.org>
1285
c2d53558 1286 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
1287 (Flogxor): Add usage: string to doc string.
1288 * charset.c (Fstring): Likewise.
1289 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1290 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1291
14ff1ee0
PJ
12922001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1293
03be2694
PJ
1294 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1295
1296 * alloc.c: Reindent DEFUNs with doc: keywords.
1297
1298 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1299
14ff1ee0
PJ
1300 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1301 keyword].
1302
71431a0e
GM
13032001-10-20 Gerd Moellmann <gerd@gnu.org>
1304
6aa97356 1305 * (Version 21.1 released.)
71431a0e 1306
39f624fa
PJ
13072001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1308
c2d53558 1309 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
1310
1311 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1312 0 because unused.
1313
1314 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
1315 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1316 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 1317
abcce93a
MB
13182001-10-20 Miles Bader <miles@gnu.org>
1319
1320 The following changes remove the glyph_row `inverse_p' field,
1321 which is never set anymore, due to other changes:
1322
1323 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1324 (reassert_line_highlight, change_line_highlight): Declarations removed.
1325 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
1326 (line_hash_code, row_equal_p, fake_current_matrices)
1327 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
1328 (update_frame_line, update_frame_line, update_frame_line):
1329 Don't use `inverse_p' field.
1330 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1331 change_line_highlight_hook.
1332 (XTreassert_line_highlight, x_change_line_highlight):
1333 Functions removed.
c2d53558 1334 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1335 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1336 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1337 `inverse_p' field.
c2d53558 1338 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1339 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1340 (w32_reassert_line_highlight, x_change_line_highlight):
1341 Functions removed.
1342 * w32console.c (reassert_line_highlight, change_line_highlight):
1343 Functions removed.
1344 (initialize_w32_display): Don't set reassert_line_highlight_hook
1345 or change_line_highlight_hook.
1346 (hl_mode): Function removed.
c2d53558
SM
1347 (reset_terminal_modes, set_terminal_modes, update_begin)
1348 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
1349 (clear_frame, ins_del_lines): Don't call it.
1350 * termhooks.h (reassert_line_highlight_hook)
1351 (change_line_highlight_hook): Declarations removed.
1352 * term.c (reassert_line_highlight_hook)
1353 (change_line_highlight_hook): Variables removed.
1354 (reassert_line_highlight, change_line_highlight): Functions removed.
1355 * msdos.c (IT_reassert_line_highlight)
1356 (IT_change_line_highlight): Functions removed.
1357 (internal_terminal_init): Don't set reassert_line_highlight_hook
1358 or change_line_highlight_hook.
1359 (highlight): Variable removed.
c2d53558 1360 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
1361 (IT_set_terminal_modes): Don't set or use it.
1362
1363 The following changes remove inverse-video support for terminals
1364 that use a `magic cookie' standout mode. Due to changes in the
1365 way mode-lines are displayed, such support no longer works
1366 anyway, and it's probable that almost no one uses such terminals
1367 anymore:
1368
1369 * term.c (standout_requested): Variable removed.
1370 (update_end, highlight_if_desired): Don't use it.
1371 (chars_wasted, copybuf): Variables removed.
1372 (write_standout_marker): Function removed.
c2d53558 1373 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
1374 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
1375 Don't use `chars_wasted' or `copybuf'.
1376 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
1377 Set `costs_set' to true.
1378 (cursor_to, clear_end_of_line): Test `costs_set' instead of
1379 `chars_wasted'.
1380 (clear_end_of_line): Function removed.
1381 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
1382 (clear_to_end): Call `clear_end_of_line' instead of
1383 `clear_end_of_line_raw'.
54800acb
MB
1384 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
1385 (term_init): Don't set them.
1386 Turn off any standout/underline modes that require magic cookies.
c2d53558 1387 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
1388 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
1389 Remove special processing for magic-cookie standout modes.
1390 (turn_off_face, turn_on_face): Remove special processing for
1391 underline magic-cookie glitch.
abcce93a 1392
0b5f679f
RS
13932001-10-19 Richard M. Stallman <rms@gnu.org>
1394
1395 * eval.c (syms_of_eval): Doc fixes.
1396
5a4a5bd4
GM
13972001-10-19 Gerd Moellmann <gerd@gnu.org>
1398
1399 * xdisp.c (redisplay_internal): Don't clear echo area if the
1400 mini-window is selected.
1401
79f1f96c
MB
14022001-10-19 Miles Bader <miles@gnu.org>
1403
b57c2708
MB
1404 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
1405 doesn't take precedence if the affected property's value is nil.
1406
1407 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
1408
79f1f96c
MB
1409 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
1410 with fields and suggest using `forward-line' to avoid them.
1411 * editfns.c (Fline_beginning_position, Fline_end_position):
1412 Clarify documentation.
1413
ef879104
SM
14142001-10-18 Stefan Monnier <monnier@cs.yale.edu>
1415
1416 * keymap.c (current_minor_maps): `override' only shadows its
1417 correspondent in minor-mode-map-alist, not the whole tail.
1418
97f4db8c
AI
14192001-10-18 Andrew Innes <andrewi@gnu.org>
1420
1421 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
1422 optimization. The fontp->encoding array was not being initialized
1423 correctly when compiled with optimizations by MSVC.
1424
e6b70fd8
GM
14252001-10-18 Gerd Moellmann <gerd@gnu.org>
1426
30903479 1427 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 1428
0e804d38
AI
14292001-10-17 Andrew Innes <andrewi@gnu.org>
1430
1431 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
1432
1433 * w32fns.c (w32_load_system_font): Cache codepage for font, in
1434 font_info.charset field.
1435
1436 * w32term.c (w32_encode_char): Get cached codepage from font_info,
1437 rather than working it out by calling w32_codepage_for_font for
1438 every glyph.
1439
66e5868a
AI
14402001-10-17 Andrew Innes <andrewi@gnu.org>
1441
1442 * w32term.c (w32_read_socket): Determine clipping rectangle for
1443 the entire frame, including areas covered by scrollbars and the
1444 menubar. This avoids internal arguments about whether a frame is
1445 fully obscured or not.
1446
15b00083
GM
14472001-10-17 Gerd Moellmann <gerd@gnu.org>
1448
23e8bd86
GM
1449 * xdisp.c (try_window_id): Undo last change. Give up if
1450 window ends in strings.
30903479 1451
9c6ba6d1 1452 * xdisp.c (try_window_id): Don't display lines after the window
30903479 1453 end if the rest of the window after the window end was already blank.
23e8bd86 1454
30903479 1455 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
1456 for the release of 21.1.
1457
30903479 1458 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 1459
945220bd
MB
14602001-10-17 Miles Bader <miles@gnu.org>
1461
1462 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
1463 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
1464 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
1465 Change doc-string comments to `new style' [w/`doc:' keyword].
1466 (DOC_STRINGS_IN_COMMENTS): Macro removed.
1467 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
1468 out make-docfile.
1469
14242528
MB
14702001-10-16 Miles Bader <miles@gnu.org>
1471
1472 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
1473
3ddf952f
GM
14742001-10-16 Gerd Moellmann <gerd@gnu.org>
1475
1476 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
1477 *scratch*.
1478
f3fbd155
KR
14792001-10-16 Ken Raeburn <raeburn@gnu.org>
1480
1481 Avoid the assumption that car and cdr slots of cons cells are
1482 addressable lvalues; this allows for easier experimentation with
1483 other lisp implementations that may not permit such accesses for
1484 various reasons. Not quite complete -- buffer.c still needs some
1485 work, and w32/mac files need rechecking -- so compile-time
1486 enforcement is left disabled for now.
1487
1488 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 1489 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
1490 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
1491 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
1492 (XSETCAR, XSETCDR): New macros.
1493 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
1494 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
1495 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
1496 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
1497 XSETCDR.
1498 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
1499 * buffer.c (record_buffer, Fbury_buffer)
1500 (swap_out_buffer_local_variables, recenter_overlay_lists)
1501 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
1502 fields of a cons cell respectively.
1503 * callint.c (quotify_args, Fcall_interactively): Likewise.
1504 * ccl.c (Fregister_code_conversion_map): Likewise.
1505 * coding.c (detect_coding_system): Likewise.
1506 * composite.c (get_composition_id, make_composition_value_copy):
1507 Likewise.
30903479
SM
1508 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
1509 (swap_in_symval_forwarding, set_internal, Fset_default)
1510 (Fmake_variable_buffer_local, Fmake_local_variable)
1511 (Fmake_variable_frame_local): Likewise.
f3fbd155 1512 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 1513 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 1514 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
1515 * minibuf.c (get_minibuffer): Likewise.
1516 * search.c (Fmatch_data): Likewise.
1517 * textprop.c (extend_property_ranges): Likewise.
c2d53558 1518 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
1519 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
1520 Likewise.
1521 * w32term.c (x_delete_display): Likewise.
1522 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
1523 Likewise.
c2d53558 1524 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 1525 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 1526 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
1527 (Fread_file_name): Use XSETCAR.
1528 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
1529 CHECK_NUMBER_CDR.
1530 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
1531 * frame.c (Fmake_terminal_frame): Use XSETCDR.
1532 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
1533 CHECK_NUMBER_CDR.
1534 * keyboard.c (read_char): Alter list traversal to avoid taking the
1535 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
1536 (parse_menu_item): Use XSETCAR and XSETCDR.
1537 (reach_char_x_menu_prompt): Use XSETCAR.
1538 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
1539 (Fcommand_execute): Use XSETCDR.
1540 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
1541 (openp): Change list traversal to avoid using XCAR as lvalue.
1542 (read_list): Use XSETCDR.
1543 * process.c (wait_reading_process_input): Change wait_for_cell
1544 handling to avoid taking addresses of cons cell slots.
30903479
SM
1545 * xselect.c (x_own_selection, x_handle_selection_clear)
1546 (x_clear_frame_selections): Use XSETCDR.
1547 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
1548 (x_handle_property_notify, x_get_foreign_selection)
1549 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 1550
502150e5
PJ
15512001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1552
018ba359
PJ
1553 * buffer.c: Put doc strings in comments.
1554
30903479 1555 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 1556
b56ba8de
SS
15572001-10-15 Sam Steingold <sds@gnu.org>
1558
1559 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
1560
6a0b793a
PJ
15612001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1562
30903479
SM
1563 * process.c (process-inherit-coding-system-flag)
1564 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
1565 in comment.
1566
a1f17501 1567 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 1568 arguments. Put doc strings in comments.
a65da641
PJ
1569
1570 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 1571
aa601ad0
GM
15722001-10-15 Gerd Moellmann <gerd@gnu.org>
1573
30903479 1574 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 1575
aa601ad0
GM
1576 * window.c (select_window_1): Unfreeze window start. Remove a
1577 doubled test for WINDOW being live.
1578
288148a1
PJ
15792001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1580
dd8d1e71
PJ
1581 * fns.c (Fmapconcat): Fix typo in a doc string.
1582
288148a1
PJ
1583 * dispnew.c (Fsleep_for): Fix typo in a doc string.
1584
9f5eb4a3
GM
15852001-10-15 Gerd Moellmann <gerd@gnu.org>
1586
1587 * xterm.c (x_draw_glyph_string): Restore clipping after
1588 drawing box.
1589
dbae44c8
PJ
15902001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1591
30903479 1592 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 1593
0c88c937
SM
15942001-10-14 Stefan Monnier <monnier@cs.yale.edu>
1595
56378db4
GM
1596 * indent.c (skip_invisible): Use new retval of
1597 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 1598
845e4cf4
SM
1599 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
1600 If a parent is reached and noinherit is set, exit immediately.
1601 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
1602
0c88c937
SM
1603 * s/ms-w32.h (EXEC_SUFFIXES):
1604 * s/msdos.h (EXEC_SUFFIXES):
1605 * process.h (EXEC_SUFFIXES): Remove.
1606
1607 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
1608 (decode_suffixes): Remove.
1609
1610 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
1611 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
1612 (invisible_ellipsis_p): Remove.
0c88c937
SM
1613
1614 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
1615 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
1616 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
1617 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
1618 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 1619
d19be8a9
PJ
16202001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1621
04d7d066
PJ
1622 * lisp.h (Ftop_level): Add prototype.
1623
d624284c
PJ
1624 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
1625 (XTread_socket): Improve style of comments to follow other
1626 comments.
1627
a87414f9
PJ
1628 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
1629 is already prototyped in included lisp.h).
1630
d19be8a9
PJ
1631 * frame.c (Fset_mouse_position): Improve style of comment to
1632 follow other comments.
1633 (Fset_mouse_pixel_position): Improve style of comment to follow
1634 other comments.
1635 (Fmake_frame_visible): Doc fix and typo in comment.
1636 (Fmake_frame_invisible): Doc fix and typo in comment.
1637 (Ficonify_frame): Fix typo in comment.
1638
c061c855
GM
16392001-10-14 Gerd Moellmann <gerd@gnu.org>
1640
37f6b5b6 1641 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 1642 * term.c, alloc.c: Put doc strings in comments.
c061c855 1643
e641b454
GM
16442001-10-13 Gerd Moellmann <gerd@gnu.org>
1645
1646 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
1647 Provide definitions for doc strings in comments.
1648
1649 * fns.c: Put doc strings in comments.
1650
51724e26
EZ
16512001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
1652
1653 * dired.c (file_name_completion): Ignore a candidate directory if
1654 it matches an element in completion-ignored-extensions that ends
1655 in a slash.
1656 (syms_of_dired) <completion-ignored-extensions>: Mention the above
1657 feature in the doc string.
1658 (Ffile_name_completion): Ditto.
1659
be5fc59b
SM
16602001-10-12 Stefan Monnier <monnier@cs.yale.edu>
1661
5a1373f3
SM
1662 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
1663
1664 * xfns.c (syms_of_xfns): Update calls to Fprovide.
1665
1666 * lisp.h (Fprovide): Update prototype.
1667 (Ffeaturep, invisible_p): Remove.
1668
bbc4a3d3 1669 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
1670 (DOLIST, LOOP_PROPVAL): New macros.
1671 (invisible_p, invisible_ellipsis_p): Use them.
1672 (invisible_noellipsis_p): New function.
1673 (syms_of_xdisp): Use empty_string.
1674
1675 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
1676
1677 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
1678 (syms_of_lread) <Vafter_load_alist>: Update docstring.
1679
1680 * print.c (Fwith_output_to_temp_buffer): Align with
1681 internal_with_output_to_temp_buffer.
1682 (print_preprocess): Use traverse_intervals_noorder.
1683 (print_object): Update call to traverse_intervals.
1684
1685 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
1686 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
1687
1688 * intervals.c (traverse_intervals_noorder): New function.
1689 (search_for_interval, count_intervals): Use it.
1690 (traverse_intervals): Use less stack space and drop `depth' arg.
1691
1692 * fns.c (Ffeaturep): Add new `subfeature' arg.
1693 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
1694 (Qsubfeatures): New var.
1695 (syms_of_fns): Initialize it.
1696
026f408d
SM
1697 * keymap.c (Fkey_description): Use empty_string.
1698 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
1699 (syms_of_keymap): Setup inheritance between maps.
1700 Don't export Sdescribe_bindings_internal any more.
1701
be5fc59b
SM
1702 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
1703
3365175e
GM
17042001-10-12 Gerd Moellmann <gerd@gnu.org>
1705
1706 * xterm.c (notice_overwritten_cursor): Renamed from
1707 note_overwritten_text_cursor. Rewritten to take glyph widths into
1708 account.
1709
2ab7765c
EZ
17102001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
1711
1712 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
1713 multi-line strings without a trailing "\n\".
1714
311346bb
PJ
17152001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1716
1717 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
1718 defined.
1719
2168e04d
SM
17202001-10-11 Stefan Monnier <monnier@cs.yale.edu>
1721
026f408d
SM
1722 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
1723
c0ec53ad
SM
1724 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1725 * w32proc.c (sys_spawnve):
1726 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1727 * w32.c (check_windows_init_file):
1728 * sound.c (Fplay_sound):
026f408d 1729 * emacs.c (init_cmdargs):
c0ec53ad
SM
1730 * process.c (Fstart_process): Update calls to openp.
1731
1732 * callproc.c (Vexec_suffixes): New var.
1733 (Fcall_process): Update call to openp.
1734 (decode_suffixes): New function.
1735 (syms_of_callproc): Init exec-suffixes.
1736
1737 * lread.c (Vload_suffixes, default_suffixes): New vars.
1738 (openp): Take a lisp list of suffixes.
1739 Check for file-name-handlers even if the file was absolute already.
1740 (syms_of_lread): Declare load-suffixes.
1741 (Fload): Fix up call to openp.
1742 Don't bother checking for file-name-handler at the very beginning.
1743
f6333468
SM
1744 * keymap.h (Fcopy_keymap): Don't export.
1745
1746 * lisp.h (empty_string): Declare.
c0ec53ad
SM
1747 (Vload_suffixes, Vexec_suffixes): Declare.
1748 (openp): Update prototype.
f6333468
SM
1749
1750 * emacs.c (empty_string): New var.
1751 (syms_of_emacs): Initialize it.
1752
1753 * search.c (wordify): Use it.
1754
1755 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
1756 selected window if it's not displayed there. Handle the case
1757 when the window is dedicated.
1758 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
1759
1760 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
1761
2168e04d
SM
1762 * syntax.h (struct gl_state_s): Change the meaning of b_property.
1763 Remove left_ok and right_ok.
1764 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
1765 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
1766 new meaning of b_property.
1767
1768 * syntax.c (update_syntax_table): Simplify.
1769 (Fforward_comment): Don't skip quoted chars when going backward.
1770
13d95cc0
GM
17712001-10-11 Gerd Moellmann <gerd@gnu.org>
1772
beb0990f
GM
1773 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
1774 in case I is of some unsigned type, in which case
1775 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
1776 comparison becomes bogus.
1777
cb938d46
GM
1778 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
1779 (Fuser_full_name): Fix bug treating a float as a fixnum.
1780
1781 * data.c (Fstring_to_number): Use make_fixnum_or_float.
1782
1783 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 1784
13d95cc0
GM
1785 * lisp.h (circular_list_error): Add prototype.
1786
1787 * data.c (Qcircular_list): New variable.
1788 (circular_list_error): New function.
1789 (syms_of_data): Initialize it Qcircular_list.
1790
e35f6ff7
SM
17912001-10-10 Stefan Monnier <monnier@cs.yale.edu>
1792
1793 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
1794 casefiddle.c, buffer.c: Include keymap.h.
1795
619632ac
GM
17962001-10-10 Gerd Moellmann <gerd@gnu.org>
1797
1798 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
1799 options. From Dave Love <d.love@dl.ac.uk>.
1800
5e5388f6
GM
18012001-10-09 Gerd Moellmann <gerd@gnu.org>
1802
1803 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
1804 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1805
14a3dff7
GM
1806 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
1807 unsigned char.
1808 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 1809
76ba8daf
AI
18102001-10-08 Andrew Innes <andrewi@gnu.org>
1811
1812 * lisp.h [max]: Undef min and max before redefining them.
1813
1814 * w32gui.h: Do not undef min and max.
1815
1816 * w32heap.h: Do not undef min and max.
1817
1818 * s/ms-w32.h: Do not undef min and max.
1819
166253cb
SM
18202001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1821
1822 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
1823
0c4d9527
SS
18242001-10-08 Sam Steingold <sds@gnu.org>
1825
1826 * keymap.c (current-active-maps): Quote newlines (compilation error).
1827
14bfa771
EZ
18282001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
1829
1830 * Makefile.in (lisp, shortlisp): Replace bindings.el with
1831 bindings.elc, since otherwise doc strings in bindings.el get wrong
1832 offsets in etc/DOC.
1833
bdb7aa47
SM
18342001-10-08 Stefan Monnier <monnier@cs.yale.edu>
1835
9985827f
SM
1836 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
1837
1838 * keyboard.h (map_prompt): Remove.
1839
1840 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 1841 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 1842
bdb7aa47
SM
1843 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1844
1845 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
1846
1847 * keyboard.c (map_prompt): Remove.
1848 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
1849 Use Fkeymap_prompt.
1850
1851 * keymap.h: New file. Extracted from lisp.h.
1852
9985827f
SM
1853 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
1854 (accessible_keymaps_1): New function.
1855 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
1856 (Fwhere_is_internal): Use Fcurrent_active_maps.
1857 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
1858 Insert in current buffer rather than standard-output.
1859 Don't call `help-mode'. Export to elisp.
1860 (describe_buffer_bindings): New wrapper.
1861 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
1862 and Sdescribe_buffer_bindings.
1863
402c9a51
GM
18642001-10-08 Gerd Moellmann <gerd@gnu.org>
1865
9985827f 1866 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
1867 Remove code setting signal handler.
1868
9985827f 1869 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
1870 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
1871
3fe81fdf
PJ
18722001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1873
1874 * keyboard.c: Don't define min/max.
1875
55fa7820
GM
18762001-10-08 Gerd Moellmann <gerd@gnu.org>
1877
9985827f 1878 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 1879 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 1880 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 1881 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 1882 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
1883 Don't define min/max.
1884
1885 * lisp.h (min, max): New macros.
1886
55fa7820
GM
1887 * puresize.h (BASE_PURESIZE): Increase to 725000.
1888
1aad31e4
PJ
18892001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1890
9180dc8c
PJ
1891 * xfaces.c (free_frame_menubar): Add prototype.
1892
01f67d2c
PJ
1893 * lisp.h (init_window): Add prototype.
1894
1895 * editfns.c: Include ctype.h.
1896
1897 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 1898 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
1899 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
1900 variable `sb'.
1901
5f351ff1
PJ
1902 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
1903 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
1904 `popup_activated_flag' and `title'.
1905
479dfe87
PJ
1906 * doc.c (Fdocumentation_property): Fix typo in a doc string.
1907
dff49fc8
PJ
1908 * emacs.c (main): Remove extra `;'.
1909
248ac615
PJ
1910 * atimer.h (struct atimer): Fix typos in a comment.
1911
1912 * atimer.c: Fix typo.
1913
af232c7d
PJ
1914 * Makefile.in: Fix typo.
1915
1916 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 1917
d876f455
MB
19182001-10-07 Miles Bader <miles@gnu.org>
1919
1920 * Makefile.in (lisp, shortlisp): Add `button.elc'.
1921
0037e2f2
KR
19222001-10-07 Ken Raeburn <raeburn@gnu.org>
1923
b056f36d
KR
1924 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
1925 Lisp_Object.
1926
0037e2f2
KR
1927 * lisp.h (Ffield_end): Declare.
1928
1a4372ef
GM
19292001-10-07 Gerd Moellmann <gerd@gnu.org>
1930
a4a74e8c
GM
1931 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
1932
1933 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
1934
1935 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
1936
1937 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
1938
1a4372ef
GM
1939 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
1940 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
1941
1942 * alloc.c (inhibit_garbage_collection): Simplify.
1943 (Fmemory_use_counts): Ditto.
1944
9985827f 1945 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
1946 (syms_of_data): DEFVAR_INT most-positive-fixnum and
1947 most-negative-fixnum.
1948
9985827f 1949 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
1950 (FIXNUM_OVERFLOW_P): New macros.
1951
4650e362
MB
19522001-10-06 Miles Bader <miles@gnu.org>
1953
1954 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
1955 scroll_bar_bottom_shadow_pixel fields.
1956 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
1957 for the shadows, and tell the toolkit about them if we succeed.
1958 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
1959 Free scroll-bar shadow colors.
1960 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
1961 Free scroll-bar shadow colors when the background color changes.
1962 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
1963 Initialize scroll-bar shadow-color fields.
1964
ace64e0a
GM
19652001-10-05 Gerd Moellmann <gerd@gnu.org>
1966
1967 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
1968
ec66bdc7
MB
19692001-10-05 Miles Bader <miles@gnu.org>
1970
9985827f
SM
1971 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
1972 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 1973 New functions (were in simple.el).
9985827f 1974 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
1975 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
1976 (syms_of_minibuf): Initialize them.
1977
a0fb4492
GM
19782001-10-05 Gerd Moellmann <gerd@gnu.org>
1979
1980 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
1981 (tiff_load): Install them as error and warning handler.
1982
0bcf87c1
AI
19832001-10-04 Andrew Innes <andrewi@gnu.org>
1984
1985 * w32fns.c (x_to_w32_color): Fix argument to alloca.
1986 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 1987 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
1988 (x_to_w32_charset): Handle private format for unknown charsets.
1989 Handle wildcards in charset spec, by ignoring them.
1990 (w32_codepage_for_font): Fix argument to alloca. Don't remove
1991 "*-" prefix from charset.
1992 (x_to_w32_font): Enlarge remainder array for safety. Specifically
1993 handle the truncated font spec form constructed by font_list_1, so
1994 that we correctly identify the charset fields. Don't remove "*-"
1995 prefix from charset.
1996 (w32_list_synthesized_fonts): Fix argument to alloca.
1997
c89e4bc5
GM
19982001-10-04 Stefan Monnier <monnier@cs.yale.edu>
1999
2000 * window.h (MINI_WINDOW_P): Use NILP.
2001
2002 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2003
2004 * termhooks.h (struct input_event): Use proper type for `kind'.
2005
20062001-10-04 Gerd Moellmann <gerd@gnu.org>
2007
2008 This handles unknown keysyms better than before. For example,
2009 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2010 Emacs formerly completely ignored F5. With the change, it derives
2011 a key symbol from the name of the X keysym, `ccaron' in this case.
2012 Reported by Martin Buchholz.
2013
2014 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2015 unknown keysyms.
2016
2017 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2018 that EVENT->code isn't a function key, use the keysym's name.
2019
20202001-10-04 Gerd Moellmann <gerd@gnu.org>
2021
2022 FOREACH is a macro that should make it easier to loop over Lisp
2023 lists with checks for cycles and proper lists.
2024
2025 * lisp.h (LIST_END_P, FOREACH): New macros.
2026
20272001-10-04 Gerd Moellmann <gerd@gnu.org>
2028
2029 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2030 called for a lost connection. Prevent dumping core in this case.
2031 Instead print the X error, and exit. On user request.
2032
2033 * xterm.c (error_msg): New variable.
2034 (x_fatal_error_signal): New function.
2035 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2036 as fatal_error_signal_hook around the call to XtCloseDisplay.
2037
2038 * emacs.c (fatal_error_signal_hook): New variable.
2039 (fatal_error_signal): Call that function.
2040
20412001-10-04 Gerd Moellmann <gerd@gnu.org>
2042
2043 With this, Emacs prints how much pure storage it will
2044 approximately need in case pure storage overflows while dumping.
2045
2046 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2047 New variables.
2048 (init_alloc_once): Initialize new variables.
2049 (PURE_POINTER_P): Use new variables.
2050 (pure_alloc): If pure storage overflows, allocate from the heap.
2051 (check_pure_size): New function.
2052 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2053
2054 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2055 (check_pure_size): Add prototype.
2056
2057 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2058
20592001-10-04 Gerd Moellmann <gerd@gnu.org>
2060
2061 This adds a post-gc-hook that's run with GC inhibited.
2062 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2063
2064 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2065 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2066 (Fgarbage_collect): Run post-gc-hook.
2067
20682001-10-04 Gerd Moellmann <gerd@gnu.org>
2069
2070 This adds `defvaralias' and `indirect-variable'. Changes not
2071 directly related to this feature are there to gain the same
2072 performance again as before variable aliases.
2073
2074 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2075 code to get and set symbol values, to take defvaralias into account.
2076
2077 (Note: the new `constant' bit-flag in symbols would make it
2078 possible to define arbitrary read-only variables, e.g. with
2079 `defconst'.)
2080
2081 Documentation is in lispref/variables.texi. Added to NEWS.
2082
2083 * lisp.h (enum symbol_interned): New enumeration.
2084 (struct Lisp_Symbol): Remove member `obarray', add
2085 `indirect_variable', `constant', and `interned'.
2086 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2087 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2088 (indirect_variable): Add prototype.
2089
2090 * print.c (print_preprocess, print_object): Test internedness of
2091 symbols differently.
2092
2093 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2094 bit-fields.
2095 (init_obarray): Likewise for t and nil.
2096
2097 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2098 (Fdefvaralias): New function.
2099 (specbind): Simplify the test if symbol is a constant.
2100 (syms_of_eval): Defsubr Fdefvaralias.
2101
2102 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2103 (Qcyclic_variable_indirection): New variable.
2104 (Fkeywordp): Check for internedness differently.
2105 (Fmakunbound): Simplify the test if symbol is a constant.
2106 (indirect_variable, Findirect_variable): New functions.
2107 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2108 aliased symbol.
2109 (let_shadows_buffer_binding_p): Check for variable aliases.
2110 (set_internal): Simplify the test if SYMBOL is a constant.
2111 If SYMBOL has a buffer-local value and is an alias, use the aliased
2112 symbol instead.
2113 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2114 Sindirect_variable.
2115
2116 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2117 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2118 set directly.
2119
2120 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2121
2122 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2123 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2124 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2125
ab952a4f
GM
21262001-10-04 Gerd Moellmann <gerd@gnu.org>
2127
2128 * Branch for 21.1.
b56ba8de 2129
ba88ff28
MB
21302001-10-03 Miles Bader <miles@gnu.org>
2131
2132 * callproc.c (syms_of_callproc): Explicitly state in the
2133 documentation for `process-environment' that earlier entries take
2134 precedence over later ones.
2135
ae1a9581
MB
21362001-10-02 Miles Bader <miles@gnu.org>
2137
2138 * textprop.c (Fnext_char_property_change)
2139 (Fprevious_char_property_change): Remove reference to non-existant
2140 argument OBJECT from doc-string.
2141
257e3f57
GM
21422001-10-01 Gerd Moellmann <gerd@gnu.org>
2143
2144 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2145 (try_window_id): Skip back over lines ending in a newline from a
2146 string.
2147
2148 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2149 New bit flag
2150
c1f29759
RS
21512001-10-01 Richard M. Stallman <rms@gnu.org>
2152
2153 * search.c (Freplace_match): Doc fix.
2154
c30dce3d
AI
21552001-09-28 Andrew Innes <andrewi@gnu.org>
2156
2157 * w32menu.c (set_frame_menubar): Take into account that
2158 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2159 <raeburn@gnu.org>.
2160
03be5931
EZ
21612001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2162
2163 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2164
75bec752
PJ
21652001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2166
2167 * s/gnu-linux.h: Fix a typo in comment.
2168
83100e0a
AS
21692001-09-28 Andreas Schwab <schwab@suse.de>
2170
2171 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2172 nocombreloc, in case -z combreloc is the default.
2173
a74b48cf
GM
21742001-09-28 Gerd Moellmann <gerd@gnu.org>
2175
2176 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2177 really going on here.
2178
09c4719e
SM
21792001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2180
2181 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2182
f7d5d963
EZ
21832001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2184
2185 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2186 utf-8, menu-bar, and latin-N.
2187 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2188 unconditionally now.
2189 (lisp): Add latin-N, since they are preloaded.
2190
9240e746
GM
21912001-09-27 Gerd Moellmann <gerd@gnu.org>
2192
14531065
GM
2193 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2194 to the left. Some cleanup.
2195
9240e746
GM
2196 * xdisp.c (display_mode_element): One more case where a string's
2197 multibyteness should be used for display.
2198
edd1e654
GM
21992001-09-26 Gerd Moellmann <gerd@gnu.org>
2200
b02439c8
GM
2201 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2202 reading at EOF.
2203
032906b1 2204 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 2205 of the only temporarily set echoing flag for deciding when
032906b1
GM
2206 the cancel echoing.
2207
2208 * keyboard.c (echo_kboard): Make externally visible.
2209
2210 * lisp.h (echo_kboard): Declare extern.
2211
cb617e7c 2212 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 2213 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
2214 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2215 this round of redisplay if make_cursor_line_fully_visible fails.
2216 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 2217 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
2218
2219 * dispextern.h (required_matrix_width, required_matrix_height):
2220 Add prototypes.
2221
09c4719e
SM
2222 * dispnew.c (required_matrix_width, required_matrix_height):
2223 New functions.
cb617e7c 2224 (allocate_matrices_for_window_redisplay)
09c4719e
SM
2225 (allocate_matrices_for_frame_redisplay: Use them.
2226 Remove parameters CH_DIM.
cb617e7c 2227
edd1e654
GM
2228 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2229 and selected_window to the frame of the window whose mode-lines
2230 are displayed, and to the window itself.
2231 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 2232 here.
edd1e654 2233
924b604c
GM
22342001-09-25 Gerd Moellmann <gerd@gnu.org>
2235
daba7643
GM
2236 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2237 the image cache under us.
2238
b7a22712 2239 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 2240 with a string value, use that string's multibyteness for displaying.
b7a22712 2241
ad648212
GM
2242 * keyboard.c (read_char): Don't clear a message for a switch-frame
2243 event. From Stefan Monnier <monnier@cs.yale.edu>.
2244
9f8531e5
GM
2245 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2246 version for after 21.1.
2247
2248 * xdisp.c (row_containing_pos): Make externally visible.
2249
2250 * dispextern.h (row_containing_pos): Add prototype.
2251
924b604c
GM
2252 * process.c (send_process): Disable composition if from_byte < 0.
2253 From Kenichi Handa <handa@etl.go.jp>.
2254
6f3f0db4
GM
22552001-09-24 Gerd Moellmann <gerd@gnu.org>
2256
c69c0ebc
GM
2257 * xterm.c (refreshicon): Function removed.
2258
d1182bc4
GM
2259 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2260
2261 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2262
2263 * xterm.c (toplevel): Remove includes in #if 0.
2264
6f3f0db4
GM
2265 * process.c (sigchld_handler) [LINUX]: Don't return from
2266 the signal handler at the end of the loop.
2267
59957f85
GM
22682001-09-21 Gerd Moellmann <gerd@gnu.org>
2269
09c4719e
SM
2270 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2271 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 2272
a0528984
EZ
22732001-09-21 Markus Rost <rost@math.ohio-state.edu>
2274
2275 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2276
db92b288
GM
22772001-09-20 Gerd Moellmann <gerd@gnu.org>
2278
3fed8ad5
GM
2279 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2280 since this function can be called during GC.
2281
db92b288
GM
2282 * callproc.c (Fcall_process): Handle errors from pipe(2).
2283 (child_setup): Delete code in #ifdef vipc.
2284
7121b85a
GM
22852001-09-19 Gerd Moellmann <gerd@gnu.org>
2286
72f62cb5
GM
2287 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2288 (display_mode_element): Display the string from decode_mode_spec
2289 depending on its multibyteness.
2290
a2697022
GM
2291 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2292
7121b85a
GM
2293 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2294
bfc97351
GM
22952001-09-18 Gerd Moellmann <gerd@gnu.org>
2296
c9063433
GM
2297 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2298 recursive_edit_unwind.
2299 (recursive_edit_unwind): Set kboard state according to
2300 SINGLE-KBOARD.
2301
3fbdba3e
GM
2302 * buffer.c (modify_overlay): Don't do nothing if START == END;
2303 This can still be a modification, for example when an overlay has
2304 a before-string or after-string.
2305 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2306 an overlay with before-string or after-string.
2307
1270031d
GM
2308 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2309 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2310
bfc97351
GM
2311 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2312 first_unchanged_at_end_row is in front of
2313 last_unchanged_at_beg_row. This code should be removed after the
2314 release of 21.1.
2315
d8a973aa
GM
23162001-09-17 Gerd Moellmann <gerd@gnu.org>
2317
e18c8b8d
GM
2318 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2319 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2320
d8a973aa
GM
2321 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2322 versions >= 2.95.
2323
ed7d6ba4
EZ
23242001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2325
2326 * dired.c (Ffile_attributes): Doc fix.
2327
551629f9
GM
23282001-09-14 Gerd Moellmann <gerd@gnu.org>
2329
2330 * fileio.c (Ffile_symlink_p): Fix last change.
2331
2332 * filelock.c (current_lock_owner): Fix last change.
2333
4c8c7926
GM
23342001-09-13 Gerd Moellmann <gerd@gnu.org>
2335
620c4704
GM
2336 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2337 take that to mean that the buffer is too small.
2338
81c3310d
GM
2339 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2340 that to mean that the buffer is too small.
2341
06fd3792
GM
2342 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2343 current buffer's multibyteness when discarding the iterator's
2344 stack.
2345
4c8c7926
GM
2346 * xfns.c (Fx_window_property): Handle case that property gets
2347 deleted between the two calls to XGetWindowProperty.
2348
9a72e4c1
GM
23492001-09-11 Gerd Moellmann <gerd@gnu.org>
2350
bd819d14 2351 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 2352
a41edd99
GM
2353 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
2354 in addition to read-only.
2355
2356 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
2357 to t in addition to read-only.
2358
2359 * lisp.h (Qinhibit_modification_hooks): Declare.
2360
2361 * insdel.c (Qinhibit_modification_hooks): New variable.
2362 (syms_of_insdel): Initialize and staticpro it.
2363
d4881c6a
GM
2364 * textprop.c (verify_interval_modification): Don't run
2365 modification-hooks if inhibit_modification_hooks.
2366
2367 * dispnew.c (set_window_cursor_after_update): Fix code
2368 finding glyph row containing cursor when cursor_in_echo_area
2369 is >= 0.
2370
9a72e4c1
GM
2371 * xdisp.c (init_from_display_pos): Put some code in #if 0.
2372 (add_to_log): Use bcopy instead of strcpy.
2373 (init_from_display_pos): Use an explicit loop over bytes in
2374 overlay strings instead of calling index.
2375
f4a374a1
GM
23762001-09-10 Gerd Moellmann <gerd@gnu.org>
2377
300e57bd
GM
2378 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
2379
2380 * dispnew.c (direct_output_for_insert): Don't change IT's
2381 stop_charpos to something in front of its current position.
2382
f4a374a1
GM
2383 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
2384 `format'.
2385
7e4cbc91
RS
23862001-09-10 Richard M. Stallman <rms@gnu.org>
2387
2388 * frame.c (Fmouse_position): Doc fix.
2389
6afad91e
GM
23902001-09-07 Gerd Moellmann <gerd@gnu.org>
2391
2392 * xdisp.c (init_from_display_pos): Don't compare the result
2393 of calling index with NULL.
2394
f76e0368
GM
23952001-09-06 Gerd Moellmann <gerd@gnu.org>
2396
2397 * xfns.c (x_set_background_color): Don't change the colors
2398 of the X window of scroll bar widgets.
2399
9ead1b60
AI
24002001-09-05 Andrew Innes <andrewi@gnu.org>
2401
2402 * w32fns.c (w32_createwindow): Undo last change.
2403
c3b497b3
GM
24042001-09-05 Gerd Moellmann <gerd@gnu.org>
2405
08e1d6df
GM
2406 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
2407
c3b497b3
GM
2408 * xdisp.c (string_buffer_position): Use *single_char_property*
2409 functions instead of the *single_property* functions.
b56ba8de 2410
8f860180
AI
24112001-09-04 Andrew Innes <andrewi@gnu.org>
2412
9a72e4c1
GM
2413 * w32term.c (w32_read_socket): Add more information to debugging
2414 output.
8f860180
AI
2415
2416 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
2417 from Emacs frames, so that calls to GetClipBox in w32term.c
2418 correctly report when part of a frame is visible (including
2419 scrollbars, etc). This prevents repeated redrawing of frames when
2420 only a scrollbar is visible.
2421 (w32_wnd_proc): Add more frame information to debugging output.
2422
2ee1aa00
SM
24232001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2424
2425 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
2426
e3b22517
GM
24272001-09-03 Gerd Moellmann <gerd@gnu.org>
2428
7e376260
GM
2429 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
2430 help-echo for a string which doesn't have help-echo itself, use
2431 get-char-property to obtain the help-echo from the string's buffer
2432 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
2433 have mouse-face, look ``under'' the string for mouse-face from an
2434 overlay.
2435 (fast_find_position): Add parameter STOP. In the final row, stop
2436 before glyphs having STOP as object. Don't consider glyphs that
2437 are not from a buffer.
2438
e3b22517
GM
2439 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
2440
9a249bba
EZ
24412001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
2442
2443 * fns.c (Fmd5): Doc fix.
2444
c9979669
GM
24452001-08-31 Gerd Moellmann <gerd@gnu.org>
2446
2447 * composite.c (update_compositions): Do nothing if
2448 inhibit-modification-hooks is set.
2449
9584e63a
GM
24502001-08-30 Gerd Moellmann <gerd@gnu.org>
2451
986ec8f2 2452 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 2453 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
2454 glyph matrices etc. in a core dump.
2455
92a25631
GM
2456 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
2457 (syms_of_xdisp): Initialize them.
2458 (handle_single_display_prop): Don't change point, bind `object',
2459 `position', and `buffer-position' instead to the object having the
2ee1aa00 2460 `display' property, position in the object and position in the buffer.
92a25631 2461
9584e63a
GM
2462 * fileio.c (Finsert_file_contents): Don't change the multibyteness
2463 of the buffer if REPLACE is non-nil.
2464
d38633a3
GM
24652001-08-29 Gerd Moellmann <gerd@gnu.org>
2466
2467 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
2468
f4fccc1e
EZ
24692001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
2470
2471 * w32term.c (x_set_glyph_string_background_width)
2472 (show_mouse_face): Track the last changes in xterm.c.
2473
eaaa65b0
GM
24742001-08-28 Gerd Moellmann <gerd@gnu.org>
2475
7b0870b2
GM
2476 * xterm.c (x_set_glyph_string_background_width): Set the glyph
2477 string's background width so that multi-line mouse-face is drawn
2478 to the right edge of the window.
2479 (show_mouse_face): Set the row's mouse_face_p flag after drawing
2480 glyphs.
2481
6b6e2422 2482 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 2483 before inserting/writing glyphs.
6b6e2422 2484
eaaa65b0
GM
2485 * xdisp.c (display_mode_element): Use string_byte_to_char to
2486 determine character positions in strings, use chars_in_text
2487 instead of strwidth.
2488 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
2489 a matrix as parameter; this is easier to use from GDB.
2490
9ad62cf8
MB
24912001-08-28 Miles Bader <miles@gnu.org>
2492
2ee1aa00
SM
2493 * textprop.c (Fprevious_single_char_property_change)
2494 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 2495
32171635
GM
24962001-08-27 Gerd Moellmann <gerd@gnu.org>
2497
47d57b22
GM
2498 * fileio.c (Finsert_file_contents): Allocate, restore, and
2499 free composition data in the case of REPLACE not being nil.
2500
2501 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
2502 there exist overlay strings with newlines at POS.
2503 (text_outside_line_unchanged_p): Return 0 if changes start at
2504 START and overlays exist at START. Likewise for END.
2505 (try_window_id): Give up if init_to_row_end returns 0.
2506
32171635
GM
2507 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
2508 unconditionally.
2509
e1249666
GM
25102001-08-24 Gerd Moellmann <gerd@gnu.org>
2511
33954c45
GM
2512 * keymap.c (access_keymap): Return the cdr of the binding of
2513 a generic character instead of its definition (KEY . BINDING).
2514
e1249666
GM
2515 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
2516 to 0 also in the REPLACE case.
2517
fb4c6c96
AC
25182001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2519
2520 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
2521 open to determine whether file is readable (as for DOS_NT).
2522
59ecf80b
GM
25232001-08-23 Gerd Moellmann <gerd@gnu.org>
2524
2525 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
2526 coding.type is coding_type_no_conversion or coding_type_raw_text,
2527 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
2528 non-nil instead of just setting enable_multibyte_characters in the
2529 buffer to nil.
2530
40e33037
GM
25312001-08-22 Gerd Moellmann <gerd@gnu.org>
2532
374388c3
GM
2533 * dispextern.h (struct face_cache): Add member
2534 menu_face_changed_p.
2535
2536 * xfaces.c (menu_face_changed_default): New variable.
2537 (menu_face_changed_count): Variable removed.
2538 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
2539 the menu_face_changed_default flag, otherwise set the FRAME's
2540 menu_face_changed_p flag if the `menu' face has been changed.
2541 Prevent calling set_font_frame_param if FRAME is t.
2542 (make_face_cache): Initialize cache's menu_face_changed_p
2543 from menu_face_changed_default.
2544 (realize_basic_faces): Look into the frame's face cache to
2545 determine if the menu appearance needs updating.
2546
40e33037
GM
2547 * keymap.c (access_keymap): Fix last change to not consider
2548 IDX when it has modifiers.
2549
859ea4b8
GM
25502001-08-21 Gerd Moellmann <gerd@gnu.org>
2551
2552 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
2553 . BINDING) exists, where GENERIC-CHAR is the generic character of
2554 the charset of IDX, return BINDING unless there exists a binding
2555 for IDX itself.
2556
e8660d73
GM
25572001-08-16 Gerd Moellmann <gerd@gnu.org>
2558
cca1b1d7
GM
2559 * xrdb.c (SYSV): Don't define on Solaris 2.
2560 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
2561
e8660d73 2562 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 2563 of the screen line, not text line, containing IT's current position.
e8660d73 2564
93aba6fc
GM
25652001-08-15 Gerd Moellmann <gerd@gnu.org>
2566
288d4e06
GM
2567 * window.c (window_scroll_pixel_based): Don't recenter if
2568 PT is partially visible in the window.
2569
3452efc2
SM
2570 * xterm.c (expose_window_tree, expose_window, expose_line):
2571 Return 1 when overwriting mouse-face.
82f053ab
GM
2572 (expose_frame): If mouse-face was overwritten, redo it.
2573
93aba6fc
GM
2574 * xfaces.c (x_update_menu_appearance): Don't call
2575 set_frame_menubar, let the next redisplay do it.
2576
858a55c1
AI
25772001-08-14 Andrew Innes <andrewi@gnu.org>
2578
2579 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
2580 drawing glyph string.
2581
3a990b67
EZ
25822001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
2583
2584 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
2585 running HI-UX/MPP.
2586
04386463
GM
25872001-08-14 Gerd Moellmann <gerd@gnu.org>
2588
2589 * xfaces.c (x_update_menu_appearance): Save and restore value of
2590 interrupt_input_blocked.
2591
3e6385a4
GM
25922001-08-13 Gerd Moellmann <gerd@gnu.org>
2593
b0e619b4
GM
2594 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
2595 a line start, move back to the line start.
3452efc2 2596
0de73d5a
GM
2597 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
2598 exactly when a mini-buffer is active.
2599
3e6385a4
GM
2600 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
2601 in units of 1/8 character on non window-system frames.
2602 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2603
d1b5f629
EZ
26042001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
2605
2606 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
2607 a doc string.
2608
eaa2319f
GM
26092001-08-09 Gerd Moellmann <gerd@gnu.org>
2610
8e3189f0
GM
2611 * keyboard.c (Vpre_help_message): New variable.
2612 (syms_of_keyboard): Initialize and staticpro it.
2613 (show_help_echo): Record current message before displaying a
2614 help-echo, and restore that message when clearing the help.
2615
eaa2319f
GM
2616 * xfns.c (x_create_im): Remove prototype.
2617
2618 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
2619
2620 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 2621
eaa2319f
GM
26222001-08-08 Gerd Moellmann <gerd@gnu.org>
2623
2624 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 2625 windows whose height has changed, disable partially visible lines.
eaa2319f 2626
17fdcfc8
GM
26272001-08-07 Gerd Moellmann <gerd@gnu.org>
2628
22d01aed 2629 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 2630 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 2631
17fdcfc8
GM
2632 * xdisp.c (start_display): Don't try to determine the continuation
2633 lines width if lines are truncated. It's superfluous and leads to
2634 incorrect results if POS is not visible in the window after
2635 reseating the iterator at the previous line start.
2636
8e3fe78e
GM
26372001-08-06 Gerd Moellmann <gerd@gnu.org>
2638
2639 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2640
98a8938c
GM
26412001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2642
2643 * alloc.c (init_stack): Remove declaration.
2644
18f9986a
GM
26452001-08-03 Gerd Moellmann <gerd@gnu.org>
2646
5e1f85e0
GM
2647 * keyboard.c (read_key_sequence): Check that key is an integer
2648 before comparing it with quit_char.
2649 (add_command_key): Use larger_vector.
2650 (read_char_x_menu_prompt): Instead of converting symbol and
2651 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 2652 which cannot be confused with valid events.
5e1f85e0
GM
2653 (read_char): When reading from Vunread_command_events, check for
2654 events of the form (EVENT . disabled) instead of
2655 (EVENT . nil).
2656
18f9986a
GM
2657 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
2658 a float, determine the max height from the frame's height.
2659
fbc7f2a6
GM
26602001-08-02 Gerd Moellmann <gerd@gnu.org>
2661
2662 * xdisp.c (redisplay_internal): Take message_cleared_p into
2663 account only if minibuf_level == 0.
2664
81b1a79d
GM
26652001-08-01 Gerd Moellmann <gerd@gnu.org>
2666
e5c60873
GM
2667 * xdisp.c (redisplay_internal): Add a check for the last
2668 displayed message.
3452efc2 2669
6e019995
GM
2670 * xdisp.c (message_cleared_p): New variable.
2671 (clear_message): Set message_cleared_p when clearing the current
2672 message.
2673 (redisplay_internal): Look at message_cleared_p to capture
2674 the case that the echo area should be cleared.
2675
308a74d8
GM
2676 * keyboard.c (command_loop_1): Fix spelling of
2677 resize_echo_area_exactly.
2678
3452efc2 2679 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
2680
2681 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
2682
81b1a79d
GM
2683 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
2684 current matrix when the window gets smaller.
2685
ada329e6
EZ
26862001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
2687
2688 * print.c (strout): Cast the character passed to insert_char to
2689 unsigned char, to avoid sign extension when it is promoted to int.
2690
ed86208c
GM
26912001-07-31 Gerd Moellmann <gerd@gnu.org>
2692
2693 * fileio.c (Finsert_file_contents): Don't treat a return value
2694 of 0 from emacs_read as an IO error.
2695
6594ac22
GM
26962001-07-30 Gerd Moellmann <gerd@gnu.org>
2697
cef68af5
GM
2698 * keyboard.c (abs): New macro.
2699 (double_click_fuzz): New variable.
2700 (make_lispy_event): Use it to determine what makes a double-click.
2701 (syms_of_keyboard): DEFVAR_INT it.
2702
6594ac22
GM
2703 * xmenu.c (set_frame_menubar): Take into account that
2704 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2705 <raeburn@gnu.org>.
2706
75c5350a
GM
27072001-07-27 Gerd Moellmann <gerd@gnu.org>
2708
2709 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
2710
2711 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
2712 of row's visible height.
2713
2714 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
2715 deal with the first overlay string having an image `display' property.
2716 (try_window_reusing_current_matrix, compute_line_metrics):
2717 Fix computation of row's visible height for the case that part of the
75c5350a
GM
2718 row is invisible above and part of the row is at the same time
2719 invisible below the window.
2720
ac49effe
GM
27212001-07-26 Gerd Moellmann <gerd@gnu.org>
2722
2723 * xfns.c (x-show-tip): Doc fix.
3452efc2 2724
ac49effe
GM
2725 * xfns.c (Vx_max_tooltip_size): New variable.
2726 (syms_of_xfns): DEFVAR_LISP it.
2727 (Fx_show_tip): Set frame's window_width to the width of the
2728 window. Use a maximum tooltip size specified by
2729 Vx_max_tooltip_size, if that has valid contents.
2730 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 2731
8c3b00cb
AI
27322001-07-26 Andrew Innes <andrewi@gnu.org>
2733
2734 * w32term.c (x_display_list): New variable.
2735 (w32_term_init): Set it.
2736
2737 * w32term.h (x_display_list): New extern.
2738
16098288
GM
27392001-07-26 Gerd Moellmann <gerd@gnu.org>
2740
2741 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
2742 is non-nil, instead of when redisplaying_p is non-zero.
2743 See comment there.
16098288
GM
2744 (mark_window_display_accurate_1): Add an assertion.
2745
64c5be50
GM
27462001-07-25 Gerd Moellmann <gerd@gnu.org>
2747
e743f599
GM
2748 * dispextern.h (struct it): Increase size of ctl_chars to 16.
2749
563b384d
GM
2750 * xfns.c (Fx_file_dialog): Block/unblock input while processing
2751 events so that we get a chance of processing expose events.
2752
64c5be50
GM
2753 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
2754
296808a5
GM
27552001-07-24 Gerd Moellmann <gerd@gnu.org>
2756
2757 * xfns.c (valid_image_p): Protect better against invalid image
2758 specifications. Previous code could signal an error.
2759
5247262a
GM
27602001-07-23 Gerd Moellmann <gerd@gnu.org>
2761
3452efc2 2762 * indent.c (current_column): Fix column computation in the
f1004faf
GM
2763 presence of display table entries.
2764 (current_column_1, Fmove_to_column, compute_motion): Likewise.
2765
dd42b31a
GM
2766 * dispnew.c (adjust_glyph_matrix): In the optimization for
2767 windows whose height has changed, use the new window height
2768 to compute which rows to invalidate.
2769
9e5a7f2a
GM
2770 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
2771 (MAX_10_EXP): New macro.
2772 (Fformat): Use it.
2773
5247262a
GM
2774 * coding.c (code_convert_region): Handle the multibyte case if
2775 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2776
177ab8ce
GM
27772001-07-20 Gerd Moellmann <gerd@gnu.org>
2778
6e07c0a5
GM
2779 * dispextern.h (struct face): Change type of `stipple' to
2780 int; it's an ID.
2781
177ab8ce
GM
2782 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
2783
b5b80599
GM
27842001-07-19 Gerd Moellmann <gerd@gnu.org>
2785
4e2a256b
GM
2786 * dispnew.c (update_window): Don't set the cursor at the end
2787 of the update if display update has been paused.
2788
3452efc2 2789 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 2790
c1fd9232
KR
27912001-07-18 Ken Raeburn <raeburn@gnu.org>
2792
2793 * fns.c (Fset_char_table_default): Check that a charset is defined
2794 before checking its dimension.
2795
928a85c1
KR
27962001-07-17 Ken Raeburn <raeburn@gnu.org>
2797
2798 * coding.c (setup_coding_system): Don't do any designation based
2799 on reg_bits if charset is not yet defined.
2800
fb4c6c96 2801 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
2802 pointer, using eassert.
2803
de11c1ea
GM
28042001-07-17 Gerd Moellmann <gerd@gnu.org>
2805
3452efc2
SM
2806 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
2807 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 2808
467f1209
GM
28092001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
2810
2811 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
2812
c3d6be34
GM
28132001-07-16 Gerd Moellmann <gerd@gnu.org>
2814
c1d61a7d
GM
2815 * fileio.c (unwind_read): Function removed.
2816 (read_non_regular, read_non_regular_quit): New functions.
2817 (Finsert_file_contents): When reading from non-regular files,
2818 arrange to catch a `quit' and terminate the loop. Rearrange
2819 code so that a `quit' when reading from a regular file doesn't
2820 insert text in the buffer.
2821
c3d6be34
GM
2822 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
2823 Clear faces afterwards.
2824 (clear_font_table): Take a x_display_info parameter. Don't free
2825 fonts being the default font of any frame on the given display.
2826
e06aa1f9
GM
28272001-07-13 Gerd Moellmann <gerd@gnu.org>
2828
2829 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
2830 instead of CHAR_STRING which can signal an error.
2831
2832 * charset.c (char_to_string_1): Extracted from char_to_string.
2833 Return -1 instead of signaling an error.
2834 (char_to_string): Use it.
2835
2836 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
2837
176c92e6
SM
28382001-07-12 Stefan Monnier <monnier@cs.yale.edu>
2839
2840 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
2841 is t, don't try to append anything to it.
2842
1c56232f
EZ
28432001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
2844
2845 * dired.c (file_name_completion): Pass dp->d_name to
2846 Fstring_match, not elt, which is always nil here.
2847
1d2b2268
GM
28482001-07-12 Gerd Moellmann <gerd@gnu.org>
2849
2850 * xselect.c (x_decline_selection_request): Handle errors
2851 caused by receivers that have vanished.
2852
2853 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
2854 ignoring events on foreign windows in #if 0. Always dispatch
2855 the event after checking it with x_handle_property_notify.
2856
2857 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
2858 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
2859 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
2860 (toplevel): Add prototypes for file-local functions.
2861 (x_atom_to_symbol): Remove DPYINFO parameter.
2862
fe5a0162
SM
28632001-07-11 Stefan Monnier <monnier@cs.yale.edu>
2864
2865 * w32menu.c (menubar_selection_callback, w32_menu_show):
2866 Initialize `entry' to nil.
2867 (w32_dialog_show): Remove unused `save_wv' variable.
2868 (name_is_separator): Recognize "--:foo" and "--foo-bar".
2869
a777242c
GM
28702001-07-11 Gerd Moellmann <gerd@gnu.org>
2871
8ee5b6a3
GM
2872 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
2873
d0e2444e
GM
2874 * fileio.c (unwind_read): Print a message when discarding inserted
2875 text or switching the buffer to unibyte. Change parameter.
2876 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 2877
a777242c
GM
2878 * fileio.c (unwind_read): New function.
2879 (Finsert_file_contents): Record it as unwind-function for
2880 the case that reading is interrupted by C-g.
2881
ae794295
GM
28822001-07-10 Gerd Moellmann <gerd@gnu.org>
2883
fe5a0162 2884 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
2885 update when scrolling_window returns 0.
2886
6b05fae3
GM
2887 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
2888
2889 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 2890 for the case that x_decode_color signals an error.
6b05fae3 2891
ae794295
GM
2892 * xdisp.c (add_to_log): Do nothing if called asynchronously.
2893
bb6e8cee
GM
28942001-07-09 Gerd Moellmann <gerd@gnu.org>
2895
2896 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
2897 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
2898 around ioctls.
2899
36b40a8a
EZ
29002001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
2901
24b97d4b
EZ
2902 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
2903 doc string line for dos-timezone-offset.
2904
36b40a8a
EZ
2905 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
2906 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
2907 (syms_of_msdos): Add \n\ at the end of a line in the doc string
2908 line for dos-unsupported-char-glyph.
36b40a8a
EZ
2909
2910 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2911
0967b4b0
GM
29122001-07-05 Gerd Moellmann <gerd@gnu.org>
2913
f25cfe53
GM
2914 * sound.c: Include Emacs' header files with #include "...".
2915
0967b4b0
GM
2916 * eval.c (specbind): Additionally record the buffer that was
2917 current when a buffer-local or frame-local variable was bound.
2918
c347a1c3
GM
29192001-07-04 Gerd Moellmann <gerd@gnu.org>
2920
2921 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
2922 to unibyte characters in unibyte buffers.
2923
6332ca8a
GM
29242001-07-03 Gerd Moellmann <gerd@gnu.org>
2925
38472d44
GM
2926 * eval.c (specbind): If SYMBOL has a frame-local binding, record
2927 the frame on the binding stack. Change format of entries for
2928 local bindings on the binding stack to '(SYMBOL . WHERE)'.
2929 (unbind_to): Handle unbinding a frame-local variable.
2930
6332ca8a 2931 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 2932 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
2933 (dump_glyph_row): Print row's continuation_lines_width.
2934 (try_window_id): Take the shortcut if ZV is visible in the
2935 window, but there are actually no changes at ZV.
2936
63d1b174
GM
29372001-07-02 Gerd Moellmann <gerd@gnu.org>
2938
4c175203
GM
2939 * xterm.h (x_free_dpy_colors): Add prototype.
2940
2941 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
2942 right number of arguments.
2943
0b54ce28
GM
2944 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
2945 ($(lwlibdir)TAGS): New target.
4c175203 2946 (TAGS): Fix dependency list.
0b54ce28 2947
63d1b174
GM
2948 * xterm.c (x_list_fonts): Make sure XFreeFont is called
2949 with input blocked.
2950
d827466c
GM
29512001-06-30 Gerd Moellmann <gerd@gnu.org>
2952
2953 * emacs.c (main): Remove extern declaration for sys_nerr, which
2954 isn't used and causes a compilation error with GCC 3.0 on
2955 FreeBSD 4.3.
2956
b5cb1ada
GM
29572001-06-27 Gerd Moellmann <gerd@gnu.org>
2958
a5d3ec3f 2959 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 2960 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
2961 (toplevel): Include <signal.h> and syssignal.h.
2962
b5cb1ada
GM
2963 * sound.c (vox_configure, vox_close): Turn off atimers
2964 around ioctls.
2965
d9bad487
GM
29662001-06-26 Gerd Moellmann <gerd@gnu.org>
2967
fdbb67fe
GM
2968 * keyboard.c (read_char) <non_reread>: Record the previous idle
2969 start time before calling timer_stop_idle.
2970 (read_char) <reread_first>: After processing a help-echo event,
2971 restore the previous idle start time.
2972
d9bad487
GM
2973 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
2974 the start of invisible text.
2975 (setup_for_ellipsis): New function.
2976 (next_overlay_string): After all overlay strings have been
2977 processed, display an ellipsis if necessary.
2978 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
2979 (push_it): Initialize display_ellipsis_p on the iterator's stack.
2980
2981 * dispextern.h (struct iterator_stack_entry): Add member
2982 display_ellipsis_p.
2983
2b9c25e0
GM
29842001-06-25 Gerd Moellmann <gerd@gnu.org>
2985
80de57df
GM
2986 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
2987 on the value of the wait-for-wm frame parameter.
2988
2989 * xterm.h (struct x_output): Add member wait_for_wm.
2990
2991 * xfns.c (Qwait_for_wm): New variable.
2992 (x_frame_parms): Add entry for `wait-for-wm".
2993 (x_set_wait_for_wm): New function.
2994 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
2995 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
2996
2b9c25e0
GM
2997 * xdisp.c (try_window_id) <all changes below window end>: Don't
2998 take this shortcut if ZV is visible in the window.
2999 (try_window_id): When checking for window start being in changed
3000 text, don't check that the buffer's size has changed.
3001
f772775c
RS
30022001-06-23 Richard M. Stallman <rms@gnu.org>
3003
3004 * minibuf.c (Fcompleting_read): Doc fix.
3005
fa9090b8
GM
30062001-06-19 Gerd Moellmann <gerd@gnu.org>
3007
3008 * composite.c (Ffind_composition_internal): Accept ZV
3009 and a string's end position as POS.
3010
f6f1beba
GM
30112001-06-18 Gerd Moellmann <gerd@gnu.org>
3012
3013 * composite.c (Ffind_composition_internal): Check POS
3014 for validity.
3015
0ae83348
EZ
30162001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3017
3018 * editfns.c (Fmessage_box): If the frame is not under a window
3019 system, output the message in the echo area.
3020
e4cdc335
RS
30212001-06-14 Richard M. Stallman <rms@gnu.org>
3022
3023 * xdisp.c (try_window_id): When EOB is visible, don't treat
3024 insertion at EOB as if it were "off the bottom of the screen."
3025
a55a5f3c
AI
30262001-06-11 Andrew Innes <andrewi@gnu.org>
3027
3028 * w32proc.c (create_child): Add new parameter is_gui_app.
3029 (w32_executable_type): Add new parameter is_gui_app.
3030 (sys_spawnve): Use it.
3031 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3032 SIGQUIT. This matches better how the signals are interpreted by
3033 MSVC compiled programs.
3034 (syms_of_ntproc): Update docstring.
3035
1b85dc1c
SM
30362001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3037
3038 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3039 well otherwise note_mouse_highlight might optimize away highlighting
3040 if we pass over that same overlay again.
3041
b75f8eab
EZ
30422001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3043
3044 * lread.c (Fload): Document that the argument is run via
3045 substitute-in-file-name.
3046
94843cc1
GM
30472001-05-31 Gerd Moellmann <gerd@gnu.org>
3048
b14659e6
GM
3049 * Makefile.in (bootstrap-doc): New target.
3050 (bootstrap-emacs): Depend on it.
3051
0894672f
GM
3052 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3053 auto-save-list-file-name when shutting down Emacs, because
3054 creating the directory might signal an error, and leaves
3055 Emacs in a strange state.
3056
94843cc1
GM
3057 * term.c: (tty_cursor_hidden): New variable.
3058 (update_begin): Don't call tty_hide_cursor. Clean up.
3059 (update_end, set_terminal_window, set_scroll_region): Clean up.
3060 (ring_bell, reset_terminal_modes): Clean up.
3061 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3062 on tty_cursor_hidden.
3063 (write_glyphs): Call tty_hide_cursor.
3064
db3a49a6
SM
30652001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3066
3067 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3068
8bd189fb
GM
30692001-05-30 Gerd Moellmann <gerd@gnu.org>
3070
6f1be3b9
GM
3071 * xfns.c (enum image_value_type): New enumerator
3072 IMAGE_STRING_OR_NIL_VALUE.
3073 (parse_image_spec): Handle it.
3074 (xbm_format, pbm_format): Use it for :foreground and :background.
3075 (xbm_load, pbm_load): Check for nil color names.
3076
8bd189fb
GM
3077 * xterm.c (note_mouse_highlight): If an overlapping overlay
3078 exists, but we find that we highlight the same overlay as before,
3079 don't do the highlighting again.
3080
7bdba03c
GM
30812001-05-29 Gerd Moellmann <gerd@gnu.org>
3082
4c329aa8
GM
3083 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3084 Protect unibyte strings created by replacing their multibyte
3085 equivalents in menu_items.
3086
e15e2828
GM
3087 * keymap.c (Fsingle_key_description): NUL-terminate the string
3088 buffer before calling build_string.
3089
7bdba03c
GM
3090 * callproc.c (Fcall_process): Deal with decode_coding returning
3091 CODING_FINISH_INCONSISTENT_EOL.
3092
89c8dc6c
GM
30932001-05-28 Gerd Moellmann <gerd@gnu.org>
3094
db3a49a6 3095 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
3096 an item's name with its key description in case the description
3097 is a multibyte string.
3098
3099 * keymap.c (Fsingle_key_description): Create a multibyte string
3100 only if necessary.
3101
eb04d6cd
GM
3102 * macros.c (Fstart_kbd_macro): Doc fix.
3103
8bd6307f
GM
3104 * xterm.c (cursor_in_mouse_face_p): New function.
3105 (x_draw_stretch_glyph_string): Use it to choose a different GC
3106 when drawing a cursor within highlighted text.
3107
e26c4089
GM
3108 * editfns.c (char_property_eq): Put in #if 0.
3109
3110 * indent.c (string_display_width): Put in #if 0.
3111
3112 * lread.c (Fload): Remove unused label.
3113
89c8dc6c
GM
3114 * termcap.c (speeds): Put in #if 0.
3115
9a1211f2
GM
31162001-05-18 Gerd Moellmann <gerd@gnu.org>
3117
29148a3f
GM
3118 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3119
9a1211f2
GM
3120 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3121 transformation matrix by 10.
3122
09393d07
GM
31232001-05-16 Gerd Moellmann <gerd@gnu.org>
3124
3125 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3126 only if it's equal to the former foreground pixel color.
db3a49a6 3127 (x_set_foreground_color, x_set_background_color)
09393d07
GM
3128 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3129
460e6bae
GM
31302001-05-16 Dave Love <fx@gnu.org>
3131
3132 * insdel.c (signal_before_change, signal_after_change): Consider a
3133 local change hook which changes the buffer.
99c78ce8
GM
3134
3135 * process.c (read_process_output): Don't call signal_after_change
3136 and update_compositions after insert_from_string_before_markers.
3137
dbcf3c03
GM
31382001-05-16 Gerd Moellmann <gerd@gnu.org>
3139
a90b3d3c
GM
3140 * xfaces.c (split_font_name): Use the right field when
3141 checking for `[...]' syntax.
3142
1b7818b4
GM
3143 * buffer.c (copy_overlays): New function.
3144 (clone_per_buffer_values): Use it.
3145
3146 * buffer.h (OVERLAY_PLIST): New macro.
3147
9bae8781
GM
3148 * keymap.c (Fsingle_key_description): Replace a build_string with
3149 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3150
dbcf3c03
GM
3151 * fontset.c (Ffontset_info): Check that face is non-null
3152 before accessing its fields.
3153
8a1ae4dd
GM
31542001-05-15 Gerd Moellmann <gerd@gnu.org>
3155
18a0a39e
GM
3156 * keyboard.c (read_key_sequence): Prevent generating a fake
3157 prefix key twice.
3158
e335b66a
GM
3159 * xfaces.c (split_font_name): Handle `[...]' for the right
3160 font name fields.
3161
8a1ae4dd
GM
3162 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3163 of CCL_STAT_INVALID_CMD.
3164
3cf80731
SM
31652001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3166
33568849
SM
3167 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3168 in <var> has no default value yet.
3169
3cf80731
SM
3170 * xfaces.c (try_alternative_families): First try the FAMILY.
3171 And if nothing is found in the end, try again with scalable fonts.
3172 (try_font_list): Let try_alternative_families do a bit more of
3173 the work. Only use FAMILY if it is not nil.
3174 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3175
933b0249
GM
31762001-05-14 Gerd Moellmann <gerd@gnu.org>
3177
58e5af83
GM
3178 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3179 pointer shape when show_mouse_face has already done it.
33568849 3180
58e5af83 3181 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
3182 full-width rows.
3183
7b16a6bf
GM
3184 * xfaces.c (split_font_name): Make sure to leave the loop
3185 with the right value of `i'.
3cf80731 3186
933b0249
GM
3187 * xfaces.c (split_font_name): Handle matrix transformations
3188 in the pixel and point size fields of XLFD font names.
3189 (xlfd_point_size): Likewise.
3190
dddcbf00
EZ
31912001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3192
3cf80731 3193 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
3194 (x_to_w32_font): Add prototype.
3195
7689ef0b
EZ
3196 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3197 redefining, to avoid compiler warnings.
3198
e7c15bba
EZ
3199 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3200
dddcbf00
EZ
3201 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3202 (w32_get_bdf_glyph): Cast between unsigned char and char when
3203 passing arguments to subroutines, to shut up compiler warnings.
3204 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3205 GET_HEX_VAL.
3206
3207 * xfaces.c: Include keyboard.h before frame.h, not after it.
3208
3209 * widget.c: Include keyboard.h before frame.h.
3210
3211 * w32term.h (struct image, struct face): Forward declaration, to
3212 avoid compiler warnings.
3213
7bd2d083
GM
32142001-05-11 Gerd Moellmann <gerd@gnu.org>
3215
47e72862
GM
3216 * keyboard.c (read_key_sequence): Don't modify events when
3217 generating fake prefix keys (mode-line, scroll-bar, ...) since
3218 this prevents proper processing of such events when pushed back
3219 into unread-command-events.
3220
dd5f324b
GM
3221 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3222 actually redrawn. Make the function static.
3223 (note_mouse_highlight): Fix a case where the mouse cursor
3224 was changed back to the text cursor.
3225
3226 * xterm.h (clear_mouse_face): Remove prototype.
3227
d88a79d4
GM
3228 * xdisp.c (try_window_id): Fix the fix and set the right
3229 window_end_vpos.
3230
3231 * xdisp.c (try_window_id): Fix computation of window end in the
3232 case that lines were deleted at the end of the window. Add some
3233 more debug_method_adds.
0416532f 3234
7bd2d083
GM
3235 * xfaces.c (try_alternative_families): New function.
3236 (try_font_list): Use it. If ATTRS specifies a family, check
3237 fonts from that family first.
3238 (choose_face_font): Remove code setting the family part of
3239 the pattern to nil.
3240
23fca891
GM
32412001-05-10 Gerd Moellmann <gerd@gnu.org>
3242
ff9aa2ca
GM
3243 * xdisp.c (try_window_id): Fix case of all changes before
3244 the window start.
7b2654b5 3245
23fca891
GM
3246 * xdisp.c (try_window_id): Add some xasserts.
3247
e9726794
GM
32482001-05-09 Gerd Moellmann <gerd@gnu.org>
3249
3250 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3251
9e53a675
GM
32522001-05-09 Dave Love <fx@gnu.org>
3253
3254 * xdisp.c (GIVE_UP): Fix for K&R C.
3255
0d487c52
GM
32562001-05-09 Gerd Moellmann <gerd@gnu.org>
3257
fe88d421
GM
3258 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3259
0d487c52
GM
3260 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3261 back to the text cursor shape without need.
3262
1e9fc92e
GM
32632001-05-07 Gerd Moellmann <gerd@gnu.org>
3264
a2a6232e
GM
3265 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3266
3267 * dispextern.h (inverse_video): Declare extern.
3268
1e9fc92e
GM
3269 * keyboard.c (delete_kboard): Handle the case that selected_frame
3270 has been deleted in the course of x_connection_closed.
3271
12949a7f
EZ
32722001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3273
7b2654b5
SM
3274 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3275 Fix the change from 2001-04-30.
12949a7f 3276
2fa2f461
GM
32772001-05-03 Gerd Moellmann <gerd@gnu.org>
3278
a779d213
GM
3279 * xfns.c (file_dialog_unmap_cb): New function.
3280 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3281 where a dialog is closed via the window manager.
3282
7b2654b5 3283 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
3284 the window start or all below the window end mostly rewritten.
3285 (redisplay_window): Move the tests if try_window_id is
3286 applicable to try_window_id.
3287 (GIVE_UP): New macro.
3288
3356df63
GM
32892001-05-02 Gerd Moellmann <gerd@gnu.org>
3290
a39202f6 3291 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
3292 currently being updated, mark the frame garbaged.
3293 Fix computation of rows intersecting the exposed rectangle.
a39202f6 3294 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 3295
3356df63
GM
3296 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3297 again if it has already been drawn.
3298
a9d2fd1d
SM
32992001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3300
3301 * syntax.c (update_syntax_table): Check that oldi has the same
3302 properties as old_prop before deciding not to invalidate.
3303
c95fc5f1
GM
33042001-04-30 Gerd Moellmann <gerd@gnu.org>
3305
a9793e45
GM
3306 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3307 read-only text that is so because of text properties.
3308
c95fc5f1 3309 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 3310 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
3311 windows that are components of a Lucid menu bar.
3312
5a5d9185
GM
33132001-04-27 Gerd Moellmann <gerd@gnu.org>
3314
3315 * term.c (turn_on_face): Fix reverse video handling on terminals
3316 that don't support colors.
3317
ba973f7a
GM
33182001-04-26 Gerd Moellmann <gerd@gnu.org>
3319
3320 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3321 a non-buffer.
3322
8c56a983
GM
33232001-04-25 Gerd Moellmann <gerd@gnu.org>
3324
a728644c
GM
3325 * term.c (toggle_highlight): New function.
3326 (turn_on_face): Change handling of reverse video.
3327
7b2654b5
SM
3328 * process.c (wait_reading_process_input):
3329 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 3330
bfd8410f
GM
3331 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3332 of the number of overlays to check.
3333
be2488ca
GM
3334 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3335
8c56a983
GM
3336 * xdisp.c (try_window_id): Fix a case where window_end_pos
3337 and window_end_bytepos were not adjusted.
3338
522d42f7
GM
33392001-04-23 Gerd Moellmann <gerd@gnu.org>
3340
3341 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3342 zero instead of -1.
3343
78c1afb6
EZ
33442001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3345
a9d2fd1d
SM
3346 * process.c (wait_reading_process_input) [!subprocesses]:
3347 Don't reference waiting_for_user_input_p, it's not defined in the
3348 branch without async subprocesses support.
78c1afb6 3349
a2fab450
GM
33502001-04-19 Gerd Moellmann <gerd@gnu.org>
3351
a122a38e
GM
3352 * keyboard.c (delete_kboard): Prevent a dangling reference
3353 from current_kboard to KB, which is freed.
3354
a9d2fd1d
SM
3355 * process.c (wait_reading_process_input):
3356 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
3357 read_key_sequence aware of buffer changes from under it.
3358
0f8d6dc7
GM
33592001-04-18 Gerd Moellmann <gerd@gnu.org>
3360
eeffb293
GM
3361 * xfaces.c (Qscalable_fonts_allowed): New variable.
3362 (realizing_basic_faces_p): Removed.
2fa2f461
GM
3363 (x_face_list_fonts): Special handling for realizing_basic_faces_p
3364 removed.
eeffb293 3365 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
3366 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
3367 for scalable-fonts-allowed to t.
eeffb293 3368
0f8d6dc7
GM
3369 * fileio.c (Finsert_file_contents): If the file size returned from
3370 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 3371 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 3372
eec2d1de
EZ
33732001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
3374
3375 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
3376 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
3377 (__memalign_hook): Make the two prototypes consistent.
3378
f4f480bd
GM
33792001-04-17 Gerd Moellmann <gerd@gnu.org>
3380
3381 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
3382 matrix of mini-windows.
3383
52283633
SM
33842001-04-12 Stefan Monnier <monnier@cs.yale.edu>
3385
3386 * intervals.c (find_interval): Don't rebalance during signal handling.
3387
ec2423c9
GM
33882001-04-11 Gerd Moellmann <gerd@gnu.org>
3389
30cb0001 3390 * fns.c: Include blockinput.h.
52283633 3391
ec2423c9
GM
3392 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
3393
719d83ad
GM
33942001-04-10 Gerd Moellmann <gerd@gnu.org>
3395
60f8d735
GM
3396 * fns.c (Fcompare_strings): Fix return values.
3397
afffeb57
GM
3398 * window.c (window_scroll): Change the meaning of N to mean
3399 N screen-fulls or N lines.
3400 (window_scroll_pixel_based, window_scroll_line_based)
3401 (scroll_command, Fscroll_other_window): Change accordingly.
3402
52283633
SM
3403 * window.c (window_scroll_pixel_based, Frecenter):
3404 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
3405 height of the window.
3406
3407 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
3408 instead of using it.last_visible_y for the height of the window.
52283633 3409
719d83ad 3410 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 3411 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
3412
3413 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
3414 able to write to hidden and system files. From Dan Holmsand
3415 <dan@eyebee.com>.
719d83ad 3416
8ddf3ee1
GM
3417 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
3418 Holmsand <dan@eyebee.com>.
719d83ad 3419
522ed7fb
GM
34202001-04-09 Gerd Moellmann <gerd@gnu.org>
3421
9170e5d4
GM
3422 * fns.c (Fplist_get, Fplist_put): Add QUITs.
3423
522ed7fb
GM
3424 * window.c (window_internal_height): Return 1 less if the
3425 window has a header line.
3426
3427 * xdisp.c (try_window_id): When scrolling on a terminal, take
3428 the change of window_internal_height into account.
3429
ceeb3d7d
EZ
34302001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
3431
3432 * gmalloc.c (align): If the argument SIZE would overflow
3433 __malloc_ptrdiff_t, fail right away.
3434
63685b9d
GM
34352001-04-06 Gerd Moellmann <gerd@gnu.org>
3436
3437 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3438 Make sure the tooltip is completely visible.
3439 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
3440
3441 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
3442
3443 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
3444
3ffb33bb
DL
34452001-04-06 Dave Love <fx@gnu.org>
3446
52283633
SM
3447 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
3448 Fix test of `from'.
3ffb33bb 3449
869fb12c
GM
34502001-04-06 Gerd Moellmann <gerd@gnu.org>
3451
52283633 3452 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 3453
869fb12c
GM
3454 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
3455
441bf856
GM
34562001-04-05 Gerd Moellmann <gerd@gnu.org>
3457
4d664b04
GM
3458 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
3459
52283633 3460 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 3461
30ca89f5
GM
3462 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
3463 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
3464
3465 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
3466 shell widget's position only if it is non-null.
3467
52283633
SM
3468 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
3469 Set f->output_data.x->widget to null after destroying it.
30ca89f5 3470
81a81c0f
GM
3471 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
3472 FILENAME to bring it in synch with the documentation.
3473
441bf856
GM
3474 * xfaces.c (realizing_basic_faces_p): Renamed from
3475 realize_default_face_p.
3476 (realize_basic_faces): Set/clear realizing_basic_faces_p.
3477 (realize_default_face): Don't set the flag.
3478
702a1e8e
GM
34792001-04-04 Gerd Moellmann <gerd@gnu.org>
3480
1013f4e3
GM
3481 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
3482
52283633
SM
3483 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
3484
1013f4e3
GM
3485 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
3486 the buffer that was used for echoing.
3487
702a1e8e
GM
3488 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
3489 (first_font_matching): Removed unused function.
3490 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
3491 (may_use_scalable_font_p): Remove parameter FONT; rename
3492 parameter NAME to FONT.
3493 (x_face_list_fonts): Fix missing bounds check.
3494 (realizing_default_face_p): New variable.
3495 (realize_default_face): Set and clear that flag.
3496 (x_face_list_fonts): When called during the realization of the
3497 default face, and no matching fonts are found when ignoring
3498 scalable fonts and fonts matching a regexp from
3499 face-ignored-fonts, try without ignoring fonts.
3500
f9dbcda4
GM
35012001-04-03 Gerd Moellmann <gerd@gnu.org>
3502
ad18ffb1
GM
3503 * xfns.c (postprocess_image): New function.
3504 (lookup_image): Call it for all image types except PostScript.
3505 (x_kill_gs_process): Call postprocess_image.
3506
f9dbcda4
GM
3507 * xterm.c (x_use_underline_position_properties): New variable.
3508 (x_draw_glyph_string): Use it.
3509 (syms_of_xterm): DEFVAR_BOOL it.
3510
651f03b6
GM
35112001-04-02 Gerd Moellmann <gerd@gnu.org>
3512
3513 * xterm.c (x_alloc_nearest_color_1): New function.
3514 (x_alloc_nearest_color): Use it.
3515 (x_color_cells): Take a Display as argument, instead of a frame.
3516 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
3517 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
3518 (x_initialize): Register cvt_string_to_pixel as resource converter
3519 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
3520
73d75a62
GM
35212001-03-30 Gerd Moellmann <gerd@gnu.org>
3522
b2046df8
GM
3523 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
3524 (set_iterator_to_next): If a string from a display property ends,
3525 consider the case that this might also be the end of an
3526 overlay string having the display property.
3527
52283633 3528 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 3529
87d8eba4
GM
3530 * xdisp.c (reseat_to_string): Undo last change.
3531
73d75a62
GM
3532 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
3533 matrix of a window when the header line changes, when
3534 new rows are allocated, or when the width changes.
3535
911a2406
EZ
35362001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3537
52283633 3538 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 3539
aea51abe
EZ
35402001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3541
3542 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
3543 deprecated.
3544
176bc847
GM
35452001-03-29 Gerd Moellmann <gerd@gnu.org>
3546
ed31fabf
GM
3547 * data.c (Fsubr_interactive_form): New function.
3548 (syms_of_data): Defsubr it.
3549
176bc847
GM
3550 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
3551 (live_float_p, live_misc_p): Return 1 only if the offset of the
3552 pointer in its block is >= 0.
3553
e59d0e9d
GM
35542001-03-28 Paul Eggert <eggert@twinsun.com>
3555
3556 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
3557 microseconds calcuation. Avoid double-rounding problem.
3558 In doc string, warn that the result is approximate.
3559
f827b862
GM
35602001-03-28 Gerd Moellmann <gerd@gnu.org>
3561
30a3f61c
GM
3562 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
3563 bind `inhibit-eval-during-redisplay' to t.
3564
3565 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
3566
3567 * xdisp.c (inhibit_eval_during_redisplay)
3568 (Qinhibit_eval_during_redisplay): New variables.
3569 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
3570 don't eval, return nil instead.
3571 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
3572 Initialize Qinhibit_eval_during_redisplay.
3573
e719f5ae
GM
3574 * xdisp.c (reseat_to_string): If STRING is multibyte, set
3575 the iterator's multibyte_p flag.
3576
deb2613a
GM
3577 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
3578 instead of setting it to zero; it's incremented for each frame
3579 where the menu face is changed.
3580
52283633
SM
3581 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
3582 change bottom shadow accordingly.
3583
3584 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
3585 intersections here.
3586 (expose_window): Do it here instead.
52283633 3587 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 3588
f827b862
GM
3589 * bytecode.c (BYTE_CODE_QUIT): New macro.
3590 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
3591
4bde0ebb
GM
35922001-03-27 Gerd Moellmann <gerd@gnu.org>
3593
607ec83c
GM
3594 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
3595 Give up if matrix starts in an ellipsis.
3596 (init_from_display_pos): Do nothing if POS doesn't specify
3597 a dpvec_index but the iterator has such a position.
3598
0245398f
GM
3599 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
3600
aba25348
GM
3601 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
3602 x/y position is (0, 0) after destroying the menu bar, restore
3603 its original position.
3604
4bde0ebb
GM
3605 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
3606 (init_from_display_pos): Use it.
3607 (try_window_reusing_current_matrix): Don't use cursor_row_p.
3608
8cdb267e
GM
36092001-03-26 Gerd Moellmann <gerd@gnu.org>
3610
3611 * xdisp.c (try_window_id): Undo last change.
3612
9948db79
EZ
36132001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3614
3615 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
3616
3617 * buffer.c (syms_of_buffer): Doc fix.
3618
2eddf899
GM
36192001-03-26 Gerd Moellmann <gerd@gnu.org>
3620
3621 * xfaces.c (x_update_menu_appearance): Use local variable
3622 popup_path for setting font resources.
3623
6c145d35
EZ
36242001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
3625
6a65b1b5
EZ
3626 * frame.c (Fframe_list): Don't reference tip_frame if
3627 HAVE_WINDOW_SYSTEM is not defined.
3628
6c145d35
EZ
3629 * emacs.c (main): Update the copyright year. From Werner LEMBERG
3630 <wl@gnu.org>.
3631
d74c1900
GM
36322001-03-25 Gerd Moellmann <gerd@gnu.org>
3633
20fbd925
GM
3634 * xdisp.c (init_from_display_pos): Test invisible property
3635 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 3636
927c5b3b
GM
3637 * xdisp.c (redisplay_internal) <update one window>: Make sure
3638 last_arrow_position and last_arrow_string are set.
3639
d74c1900
GM
3640 * frame.c (Fframe_list): Don't return a tooltip frame.
3641
091f8878
GM
36422001-03-23 Gerd Moellmann <gerd@gnu.org>
3643
52283633
SM
3644 * xdisp.c (mark_window_display_accurate_1): New function,
3645 extracted from mark_window_display_accurate.
3646 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
3647 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
3648 (mark_window_display_accurate): Use it.
3649 (redisplay_internal): Use it for the selected window.
3650 (redisplay_internal): Avoid duplicate mark_window_display_accurate
3651 for the selected frame.
3652
ac90c44f
GM
3653 * xdisp.c Use make_number, for readability.
3654 (try_window_id): Disable rows below the window end.
3655 (try_window_reusing_current_matrix): Use cursor_row_p.
3656 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
3657 of rows.
3658 (init_from_display_pos): If POS specifies a position in a display
3659 vector, maybe get the iterator set up for that ellipsis.
43c09969 3660
091f8878
GM
3661 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
3662
991786dd
EZ
36632001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
3664
3665 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
3666
6c29b43c
GM
36672001-03-23 Gerd Moellmann <gerd@gnu.org>
3668
3669 * xfaces.c (x_update_menu_appearance): Use a different path
3670 for Lucid popup menus.
3671
d8731202
SM
36722001-03-22 Stefan Monnier <monnier@cs.yale.edu>
3673
3674 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
3675
3676 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
3677 (string_buffer_position): Use `make_number'.
3678
f61a541b
GM
36792001-03-22 Gerd Moellmann <gerd@gnu.org>
3680
3c9e997b
GM
3681 * xfaces.c (x_update_menu_appearance): Renamed from
3682 x_set_menu_face_resources. Use different resources for popups.
3683
3684 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
3685 (GC_CHECK_STRING_BYTES): Don't define.
3686
364cd450
GM
3687 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
3688 Removed, together with subroutines.
3689 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 3690 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 3691
d8731202
SM
3692 * dispextern.h (x_set_menu_resources_from_menu_face):
3693 Remove prototype.
364cd450 3694
d8731202 3695 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
3696 Remove calls to x_set_menu_resources_from_menu_face.
3697
d8731202
SM
3698 * xfaces.c (xm_set_menu_resources_from_menu_face):
3699 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
3700
3701 * xmenu.c: Include widget.h.
3702 (single_submenu): Return int. Some cleanup.
3703 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
3704
140330de
GM
37052001-03-21 Gerd Moellmann <gerd@gnu.org>
3706
3707 * xterm.c (x_update_window_end): Handle overwritten mouse face
3708 also for tool bar windows.
3709 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3710 DRAW is DRAW_IMAGE_RAISED.
3711
1741905c
GM
37122001-03-20 Gerd Moellmann <gerd@gnu.org>
3713
fa88947e
GM
3714 * print.c (syms_of_print): Doc fixes.
3715
1741905c
GM
3716 * fns.c (Fmd5): Doc fix.
3717
ade0bee1
GM
37182001-03-19 Gerd Moellmann <gerd@gnu.org>
3719
357e7376
GM
3720 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3721 Clear area of the frame not occupied by the scroll bar.
3722
c2c097cc
GM
3723 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
3724 tip frame's root window buffer to *tip* right after creating
3725 the frame.
3726
ade0bee1
GM
3727 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
3728 is an integer don't have to be for space characters.
3729
88c6e37e
GM
37302001-03-16 Gerd Moellmann <gerd@gnu.org>
3731
52283633
SM
3732 * indent.c (current_column, current_column_1, Fmove_to_column)
3733 (compute_motion): Handle characters from display vectors differently.
88c6e37e 3734
c62eed76
KH
37352001-03-15 Kenichi Handa <handa@etl.go.jp>
3736
3737 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
3738 drawing glyph string.
3739
c899e7e6
GM
37402001-03-15 Gerd Moellmann <gerd@gnu.org>
3741
d0bbfc99
GM
3742 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
3743 (command_loop_1): Undo last change.
3744
03d1a189
GM
3745 * xterm.c (fast_find_position): Return the correct vpos.
3746
c899e7e6 3747 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 3748 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
3749 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
3750 Call store_symval_forwarding with BUF null.
3751 (set_internal): Call store_symval_forwarding with the BUF
3752 parameter passed to set_internal. Formerly, the value was always
3753 set in the current buffer; the buffer recorded in specbind for
3754 this case wasn't used.
3755 (arith_driver): Reindent.
3756
52283633
SM
3757 * buffer.c (swap_out_buffer_local_variables):
3758 Call store_symval_forwarding with BUF null.
c899e7e6
GM
3759
3760 * lisp.h (store_symval_forwarding): Change prototype.
3761
3762 * eval.c (specbind): Call store_symval_forwarding with BUF null.
3763
57ac7c81
GM
37642001-03-14 Gerd Moellmann <gerd@gnu.org>
3765
697617d9
GM
3766 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
3767 FOR_DELETION. Avoid resizing the mini-window of the selected
3768 frame if FOR_DELETION is set.
3769 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
3770 (Fmake_frame_invisible): Change calls to do_switch_frame for new
3771 signature.
3772
3773 * window.c (Fset_window_configuration): Change call to
3774 do_switch_frame to new format.
3775
3776 * keyboard.c (quit_throw_to_read_char): Change call to
3777 do_switch_frame to new format.
3778
3779 * lisp.h (do_switch_frame): Change prototype.
3780
819dce0f
GM
3781 * frame.c (Fframe_parameters): In the `buffer-list' frame
3782 parameter, store the buffer list of FRAME, not the list of the
3783 selected frame.
3784
57ac7c81
GM
3785 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
3786 box just because the glyph row's full_width_p flag is set.
3787
65008712
GM
37882001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
3789
3790 * xdisp.c (highlight_trailing_whitespace): On character terminals,
3791 skip the padding blanks inserted in extend_face_to_end_of_line,
3792 before checking for trailing whitespace.
3793
159cf431
GM
37942001-03-13 Gerd Moellmann <gerd@gnu.org>
3795
52283633 3796 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
3797 Remove special handling for LessTif/Motif.
3798 (toplevel): Don't include Xm/Xm.h.
3799
52283633
SM
3800 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
3801 Remove workaround code for LessTif; it doesn't work anymore.
3802
2564ea1b 3803 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 3804 Xm/ScrollBarP.h.
afcdc0a1 3805
52283633
SM
3806 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
3807 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
3808 contemporary LessTif.
3809
52283633
SM
3810 * xfaces.c (xm_set_menu_resources_from_menu_face):
3811 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 3812
159cf431
GM
3813 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
3814 removing button grabs.
3815
c6f7429a
KH
38162001-03-13 Kenichi Handa <handa@etl.go.jp>
3817
cb82d767
KH
3818 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
3819 and clip-large-size-font as obsolete.
3820
c6f7429a
KH
3821 * lread.c (read_multibyte): Check the validity of multibyte
3822 sequence. If invalid, return the first byte.
3823
760cefb5
GM
38242001-03-12 Gerd Moellmann <gerd@gnu.org>
3825
3826 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
3827 before running the command; timer functions or process
3828 filters may have set it.
3829
5141f9d0
EZ
38302001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
3831
3832 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3833 Doc fix.
3834
b6a15240
GM
38352001-03-12 Gerd Moellmann <gerd@gnu.org>
3836
3837 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
3838 to sprintf.
3839
95522746
GM
38402001-03-09 Gerd Moellmann <gerd@gnu.org>
3841
db14cfc5
GM
3842 * dispextern.h (string_buffer_position): Add prototype.
3843
52283633 3844 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
3845 (single_display_prop_string_p): New functions.
3846
3847 * xterm.c (note_mouse_highlight): If there's no help-echo on
3848 a string, look at the buffer text ``under'' it.
3849
3850 * keyboard.c (make_lispy_event): Add string info to the event,
3851 analogous to what's done on mode lines.
3852 (read_key_sequence): For a click on a string, consider `local-map'
3853 and `keymap' of that string.
3854
52283633
SM
3855 * keyboard.c (make_lispy_event, make_lispy_movement):
3856 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
3857
3858 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
3859
3860 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
3861 POS; return void.
3862
95522746
GM
3863 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
3864 flags argument to emacs_open; it seems to conflict with O_EXCL.
3865
898a399d
KH
38662001-03-09 Kenichi Handa <handa@etl.go.jp>
3867
28cd4910
KH
3868 * composite.h (struct composition): Change types of members;
3869 glyph_len to unsigned, width to unsigned short.
898a399d 3870
4cdf6a6c
AI
38712001-03-08 Andrew Innes <andrewi@gnu.org>
3872
3873 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
3874 menu titles.
3875
129004d3
GM
38762001-03-08 Gerd Moellmann <gerd@gnu.org>
3877
221dd3e7
GM
3878 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
3879 instead of nil.
3880
52283633 3881 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
3882 help-echo in strings.
3883 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3884 (fast_find_string_pos): New function.
3885
52283633
SM
3886 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
3887 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
3888
3889 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
3890 Handle `mouse-face'.
3891
3892 * dispextern.h (face_at_string_position): Change prototype.
3893
52283633 3894 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 3895
129004d3
GM
3896 * keyboard.c (make_lispy_event): Avoid generating drag events
3897 if the mouse hasn't actually moved to another buffer position.
52283633 3898
80c8ab8c
DL
38992001-03-08 Dave Love <fx@gnu.org>
3900
129004d3 3901 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 3902
989521fd
GM
39032001-03-08 Gerd Moellmann <gerd@gnu.org>
3904
3905 * process.c (Fset_process_window_size): Fix a typo.
3906
bb5c338d
KH
39072001-03-08 Kenichi Handa <handa@etl.go.jp>
3908
3909 * coding.c (detect_coding_sjis): Do more rigid check.
3910 (detect_coding_big5): Likewise.
3911 (decode_coding_sjis_big5): Likewise.
3912 (Fdetect_coding_region): Call detect_coding_system with tailing
3913 anchor byte `\0' for more rigid detection.
52283633 3914 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
3915 (Fdetect_coding_string): Likewise.
3916
8b8f9197
SM
39172001-03-07 Stefan Monnier <monnier@cs.yale.edu>
3918
3919 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
3920 a string before extracting its data.
3921
3bdf2660
GM
39222001-03-07 Gerd Moellmann <gerd@gnu.org>
3923
3924 * window.c (Frecenter): Rewrite code handling negative values
3925 of ARG on graphical frames.
3926
39272001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
3928
3929 * window.c (displayed_window_lines): If W->start is outside the
3930 accessible portion of the buffer, call start_display with BEGV or
3931 ZV instead of W->start.
3932
471f86b9
GM
39332001-03-07 Gerd Moellmann <gerd@gnu.org>
3934
2ab62c6c
GM
3935 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
3936
471f86b9
GM
3937 * process.c (Fset_process_filter): Don't crash if the input
3938 file descriptor of PROCESS is closed.
3939 (Fset_process_window_size): Likewise.
3940
101922c3
GM
39412001-03-06 Kenichi Handa <handa@etl.go.jp>
3942
3943 * xterm.c (XTflash): Make the timeout of select shorter, and call
3944 select repeatedly until the desired time expires.
3945
45d051a7
GM
39462001-03-06 Gerd Moellmann <gerd@gnu.org>
3947
3948 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
3949
3950 * xfns.c (Fx_create_frame): Clear Vwindow_list.
3951
3952 * lisp.h (Vwindow_list): Declare extern.
3953
8f372c46
EZ
39542001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
3955
3956 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
3957
f16a7aa5
GM
39582001-03-06 Gerd Moellmann <gerd@gnu.org>
3959
157ae273
GM
3960 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
3961 to detect a case where we have to highlight a different region
3962 despite not having left the currently highlighted region.
3963 Set mouse_face_overlay in the x_display_info.
45d051a7 3964 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
3965
3966 * xterm.h (struct x_display_info): Add mouse_face_overlay.
3967
3968 * buffer.c (mouse_face_overlay_overlaps): New function.
3969
3970 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
3971 (Qmouse_face): Declare extern.
3972
f16a7aa5
GM
3973 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
3974 if face_change_count is non-zero.
3975
827afcac
KH
39762001-03-06 Kenichi Handa <handa@etl.go.jp>
3977
3978 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
3979 that the source is unibyte.
3980
14c7242e
DL
39812001-03-05 Dave Love <fx@gnu.org>
3982
827afcac 3983 * xterm.c (XTmouse_position): Fix typo.
14c7242e 3984
c28b847b
GM
39852001-03-05 Gerd Moellmann <gerd@gnu.org>
3986
3987 * minibuf.c (read_minibuf): Clean up the binding stack if
3988 called noninteractively.
3989
b86644f2
KH
39902001-03-05 Kenichi Handa <handa@etl.go.jp>
3991
3992 * coding.c (syms_of_coding): Docstring modified.
3993
203682cc 39942001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
3995
3996 * charset.c (char_to_string): If a single byte char has modifier
3997 bits that can't be reflected to the character code, ignore them
45d051a7 3998 instead of signaling an error.
b86644f2 3999
e30bd7b7
EZ
40002001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4001
4002 * s/msdos.h: Update copyright notice.
4003
4004 * dosfns.h: Update copyright notice.
4005
4006 * dosfns.c: Update copyright notice.
4007
4008 * msdos.c: Update copyright notice.
4009
b52b65bd
GM
40102001-03-02 Gerd Moellmann <gerd@gnu.org>
4011
4012 * xterm.c (glyph_rect): New function.
4013 (XTmouse_position): Use it to raise the threshold for mouse
4014 movement event generation.
4015
53c4b1e6
EZ
40162001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4017
4018 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4019 specifies (reverse . t), reverse the initial screen colors.
4020 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
4021 but we are reversing the colors, set bg_set, not fg_set.
4022 Likewise for setting background-color and reversing: set fg_set.
4023 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
4024 in effect.
4025
4026 * xfaces.c (Finternal_set_lisp_face_attribute)
4027 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4028 parameters alist.
4029
f964b4d7
GM
40302001-03-02 Gerd Moellmann <gerd@gnu.org>
4031
ef53d75e
GM
4032 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4033 to a single slash in the middle of file names.
4034
52283633 4035 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
4036 Accept only alphanumeric time zone names.
4037
f964b4d7
GM
4038 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4039 or width area.
4040 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4041 a widget to zero height.
52283633 4042
c3c45f65
GM
40432001-03-01 Gerd Moellmann <gerd@gnu.org>
4044
4045 * window.c (Fwindow_end): Call move_it_past_eol only if
4046 ending up on a partially visible line.
4047
028d739a
DL
40482001-03-01 Dave Love <fx@gnu.org>
4049
4050 * ccl.c (Fccl_execute): Doc fix.
4051
57c5889c
GM
40522001-03-01 Gerd Moellmann <gerd@gnu.org>
4053
35f59f6b
GM
4054 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4055 of the tool bar before calling x_figure_window_size.
4056
f84ff02c
GM
4057 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4058 NULL after destroying it, otherwise XTread_socket can access a
4059 destroyed widget when input is unblocked.
4060
8b8f9197 4061 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 4062
57c5889c
GM
4063 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4064 same name as before, although there was a change in fontsets.
4065
224227d1
KR
40662001-02-28 Ken Raeburn <raeburn@gnu.org>
4067
4560730a
KR
4068 * lisp.h (Fframe_parameter): Declare.
4069
224227d1 4070 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 4071 Lisp_Object.
224227d1 4072
ece93c02
GM
40732001-02-28 Gerd Moellmann <gerd@gnu.org>
4074
11ef99b9
GM
4075 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4076 NULL instead.
4077
4078 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4079 NULL instead.
4080
ece93c02
GM
4081 * alloc.c (toplevel): Include process.h.
4082 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4083 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4084 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
4085 (allocate_vector, allocate_hash_table, allocate_window)
4086 (allocate_frame, allocate_process, allocate_other_vector):
4087 New functions.
ece93c02
GM
4088 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4089 (mark_maybe_pointer): New function.
52283633 4090 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
4091 remain and not Lisp_Objects.
4092 (min_heap_address, max_heap_address): New variables.
4093 (mem_find): Return MEM_NIL if START is below min_heap_address or
4094 above max_heap_address.
4095 (mem_insert): Compute min_heap_address and max_heap_address.
4096
4097 * process.c (make_process): Use allocate_process.
4098
4099 * frame.c (make_frame): Use allocate_frame.
4100
4101 * window.c (make_window, make_dummy_parent): Use allocate_window.
4102 (Fcurrent_window_configuration): Use allocate_other_vector.
4103
4104 * lisp.h (allocate_vectorlike): Remove prototype.
4105 (allocate_vector, allocate_other_vector, allocate_frame)
4106 (allocate_window, allocate_process, allocate_hash_table):
4107 Add prototypes.
4108
4109 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4110 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4111
063af457
KH
41122001-02-27 Kenichi Handa <handa@etl.go.jp>
4113
4114 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4115 treat the produced bytes as a valid multibyte sequence.
4116
4117 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
4118 (ccl_driver) <CCL_WriteMultibyteChar2>:
4119 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
4120 <ccl_finish>: Set ccl->eight_bit_control properly.
4121
4122 * ccl.h (struct ccl_program): New member eight_bit_control.
4123
f58c6494
SM
41242001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4125
4126 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4127 accessible_keymaps_char_table.
4128 (accessible_keymaps_char_table): Obey `is_metized'.
4129 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4130 Lisp_Object.
4131
c596c392
GM
41322001-02-26 Gerd Moellmann <gerd@gnu.org>
4133
4134 * dispnew.c: Check HAVE_TERM_H before including term.h.
4135
425de386
AI
41362001-02-24 Andrew Innes <andrewi@gnu.org>
4137
4138 * makefile.w32-in: Update copyright notice.
4139
2ba11bbd
SM
41402001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4141
4142 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4143
66c56ed1
KH
41442001-02-24 Kenichi Handa <handa@etl.go.jp>
4145
4c1593ce
KH
4146 * Makefile.in (lisp): Add international/utf-8.elc.
4147
66c56ed1
KH
4148 * fontset.c (Fnew_fontset): Fix handling of the case that an
4149 element of FONTLIST is a cons of family and registry.
4150
796ead7e
JR
41512001-02-23 Jason Rumney <jasonr@gnu.org>
4152
4153 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4154 to height unconditionally.
4155
4156 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 4157 background face to the end of the drawing area in the text area, only.
796ead7e
JR
4158 (x_insert_glyphs): Call window_box_left to obtain the left
4159 x-coordinate of the area to shift.
4160
4161 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4162 safe_run_hooks.
4163
f6839838
AI
41642001-02-22 Andrew Innes <andrewi@gnu.org>
4165
52283633 4166 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
4167 ($(BLD)\dispnew.obj):
4168 ($(BLD)\editfns.obj):
4169 ($(BLD)\fileio.obj):
4170 ($(BLD)\filelock.obj):
4171 ($(BLD)\keyboard.obj):
4172 ($(BLD)\w32proc.obj):
4173 ($(BLD)\process.obj):
4174 ($(BLD)\sysdep.obj): Ditto.
4175
4176 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4177 header files.
52283633
SM
4178 ($(BLD)/dispnew.$(O)):
4179 ($(BLD)/editfns.$(O)):
4180 ($(BLD)/fileio.$(O)):
4181 ($(BLD)/filelock.$(O)):
4182 ($(BLD)/keyboard.$(O)):
4183 ($(BLD)/w32proc.$(O)):
4184 ($(BLD)/process.$(O)):
f6839838
AI
4185 ($(BLD)/sysdep.$(O)): Ditto.
4186
c224f70b
GM
41872001-02-22 Gerd Moellmann <gerd@gnu.org>
4188
51695746
GM
4189 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4190 at the start of the function, check that the \n in it->c is
4191 from the iterator's current position.
52283633 4192
a61b7058
GM
4193 * xdisp.c (handle_single_display_prop): Add parameter
4194 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4195 properties which replace the display of text with something else.
4196 (handle_display_prop): Call handle_single_display_prop with
4197 additional argument saying if we already replaced text display
4198 with something else. Use AREF.
52283633 4199 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
4200 (decode_mode_spec_coding): Use AREF and ASIZE.
4201
3473f362
GM
4202 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4203 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4204 * vmstime.h: Files removed.
52283633 4205
2bb58df3
GM
4206 * unexencap.c, unexfx2800.c: Files removed.
4207
c224f70b
GM
4208 * dispnew.c (direct_output_for_insert): Give up if we are showing
4209 a message or just cleared the message because we might need to
4210 resize the echo area window or display an empty echo area.
4211
ffc9ff0c
GM
42122001-02-21 Gerd Moellmann <gerd@gnu.org>
4213
0528abe1
GM
4214 * xdisp.c (redisplay_internal): Do the
4215 mark_window_display_accurate after all windows have been
4216 redisplayed because this call resets flags in buffers which are
4217 needed for proper redisplay.
4218
52283633
SM
4219 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4220 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
4221 the old names.
4222
52283633
SM
4223 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4224 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4225
4226 * msdos.h (struct x_output): Rename busy_window to
4227 hourglass_window, busy_p to hourglass_p.
4228
52283633
SM
4229 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4230 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4231
4232 * xfns.c: Rename everything containing *busy_cursor* and similar
4233 to *hourglass*.
4234 (syms_of_w32fns): Rename x-busy-pointer-shape to
4235 x-hourglass-pointer-shape, display-busy-cursor to
4236 display-hourglass, busy-cursor-delay to hourglass-delay.
4237
4238 * w32fns.c: Rename everything containing *busy_cursor* and similar
4239 to *hourglass*.
4240 (syms_of_w32fns): Rename x-busy-pointer-shape to
4241 x-hourglass-pointer-shape, display-busy-cursor to
4242 display-hourglass, busy-cursor-delay to hourglass-delay.
4243
4244 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4245 of its busy_p flag.
4246
4247 * dispextern.h (start_hourglass, cancel_hourglass)
4248 (display_hourglass_p): Renamed from *busy_cursor*.
4249
ab2c5f0a
GM
42502001-02-20 Gerd Moellmann <gerd@gnu.org>
4251
d17e49a8
GM
4252 * keyboard.c (read_char): When an event from unread-command-events
4253 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4254
fa97adf6
GM
4255 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4256 equal to the current buffer.
4257
ab2c5f0a
GM
4258 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4259 nil, otherwise we're left with truncate_lines t when a message
4260 is printed with message-truncate-lines bound to t.
4261
aeac019e
GM
42622001-02-19 Gerd Moellmann <gerd@gnu.org>
4263
c8bc6f65
GM
4264 * window.c (Fmove_to_window_line): Undo last change.
4265 (displayed_window_lines): Call line_bottom_y to determine
4266 the line's bottom position.
4267
4268 * dispextern.h (line_bottom_y): Add prototype.
4269
52283633 4270 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
4271 (pos_visible_p): Use it.
4272
980a2d69
GM
4273 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4274 set redisplaying_p to 0 here instead of in Frecursive_edit.
4275 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4276 set redisplaying_p.
4277
52283633 4278 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
4279 New variables.
4280 (syms_of_xdisp): Initialize new variables.
4281 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4282 Specbind `inhibit-menubar-update' when updating the menu bar.
4283
65048e97
GM
4284 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4285 safe_run_hooks.
4286
4287 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4288 safe_run_hooks.
4289
a57c4026
GM
4290 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4291 is null.
4292
aeac019e
GM
4293 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4294 to the start of the file.
4295
76846b31
GM
42962001-02-16 Gerd Moellmann <gerd@gnu.org>
4297
f3f053f3 4298 * window.c (set_window_buffer): Fix last change.
52283633 4299
f3f053f3
GM
4300 * window.c (set_window_buffer): Set window's vscroll to 0.
4301
dad75588
GM
4302 * window.c (coordinates_in_window): Increase width of area
4303 where the vertical line can be dragged.
4304
c220b753
GM
4305 * xterm.c (x_set_glyph_string_background_width): Extend the
4306 background face to the end of the drawing area in the text
4307 area, only.
4308
c56b1c1b
GM
4309 * xdisp.c (handle_single_display_prop): Set iterator's position
4310 to where the `display' property starts, like for images.
4311 (dump_glyph): New function.
4312 (dump_glyph_row): Use it. Dump info about marginal areas.
4313
4314 * dispnew.c (direct_output_for_insert): Recognize more cases where
4315 glyphs can be written instead of being inserted.
4316
4317 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4318 the left x-coordinate of the area to shift.
4319
76846b31
GM
4320 * dired.c (directory_files_internal): Set result list to nil
4321 before retrying.
4322
0fc71a77
KH
43232001-02-15 Kenichi Handa <handa@etl.go.jp>
4324
4325 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4326 invalid multibyte sequence, treat *SRC as a character of
4327 eight-bit-graphic.
4328
25078b54
EZ
43292001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4330
4331 * textprop.c (Fset_text_properties): Doc fix.
4332
8399f8a0
GM
43332001-02-15 Gerd Moellmann <gerd@gnu.org>
4334
4335 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4336
9a2a6f73
DL
43372001-02-14 Dave Love <fx@gnu.org>
4338
4339 * coding.c: Doc and message fixes.
4340
bf853fee
AI
43412001-02-14 Andrew Innes <andrewi@gnu.org>
4342
4343 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4344 Emacs frame above the screen size.
4345
78c663d8
GM
43462001-02-14 Gerd Moellmann <gerd@gnu.org>
4347
4348 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4349
7cc9f69f
GM
43502001-02-13 Gerd Moellmann <gerd@gnu.org>
4351
0a411995
GM
4352 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4353 case that TO ends up beyond ZV after running before-change-functions.
4354
5ddc1b75
GM
4355 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
4356 the selected window if it is showing the buffer in question.
4357
7cc9f69f
GM
4358 * dired.c (directory_files_internal): Initialize errno.
4359 (toplevel): Include errno.h.
4360
2e6621ca
GM
43612001-02-13 Kenichi Handa <handa@etl.go.jp>
4362
4363 * xfaces.c (best_matching_font): New parameter width_ratio.
4364 Multiply avgwidth by width_ratio.
4365 (choose_face_font): Call best_matching_font with width_ratio
4366 calculated from the column width of C.
4367
60222d69
AI
43682001-02-12 Andrew Innes <andrewi@gnu.org>
4369
4370 The following changes are to draw box lines inside characters area
4371 if line-width is negative.
52283633 4372
60222d69
AI
4373 * w32term.c (x_produce_image_glyph): Pay attention to the case that
4374 face->box_line_width is negative.
4375 (x_produce_stretch_glyph): Likewise.
4376 (x_produce_glyphs): Likewise.
4377 (x_estimate_mode_line_height): Likewise.
4378 (x_draw_glyph_string_background): Likewise.
4379 (x_draw_glyph_string_foreground): Likewise.
4380 (x_draw_composite_glyph_string_foreground): Likewise.
4381 (x_draw_glyph_string_box): Likewise.
4382 (x_draw_image_foreground): Likewise.
4383 (x_draw_image_relief): Likewise.
4384 (x_draw_image_foreground_1): Likewise.
4385 (x_draw_image_glyph_string): Likewise.
4386
9804b846
KH
43872001-02-09 Kenichi Handa <handa@etl.go.jp>
4388
4389 The following changes are to draw box lines inside characters area
4390 if line-width is negative.
52283633 4391
9804b846
KH
4392 * xterm.c (x_produce_image_glyph): Pay attention to the case that
4393 face->box_line_width is negative.
4394 (x_produce_stretch_glyph): Likewise.
4395 (x_produce_glyphs): Likewise.
4396 (x_estimate_mode_line_height): Likewise.
4397 (x_draw_glyph_string_background): Likewise.
4398 (x_draw_glyph_string_foreground): Likewise.
4399 (x_draw_composite_glyph_string_foreground): Likewise.
4400 (x_draw_glyph_string_box): Likewise.
4401 (x_draw_image_foreground): Likewise.
4402 (x_draw_image_relief): Likewise.
4403 (x_draw_image_foreground_1): Likewise.
4404 (x_draw_image_glyph_string): Likewise.
4405
4406 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
4407 and :line-width can be negative.
52283633 4408 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 4409
49be9f70
JR
44102001-02-09 Jason Rumney <jasonr@gnu.org>
4411
4412 * w32term.c (w32_encode_char): Treat eight bit graphic and control
4413 characters the same as ASCII and latin-1.
4414 (x_display_and_set_cursor): Check for the focus frame's selected
4415 window instead of selected_window.
4416 (x_after_update_window_line): Don't clear if frame's internal
4417 border width is zero.
4418 (x_new_font): Don't change a tooltip's size.
4419 (w32_initialize): Set char_ins_del_ok to 1.
4420
4421 * w32fns.c (Fx_show_tip): Fix calls to make_number.
4422 (x_set_font): If font hasn't changed, avoid recomputing
4423 faces and other things.
52283633
SM
4424 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
4425 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
4426 (x_create_tip_frame): Prevent changing the tooltip's
4427 background color by specifying a color for the default font
4428 in .Xdefaults.
4429 (Qcancel_timer): New variable.
4430 (syms_of_w32fns): Initialize and staticpro it.
4431 (Fx_hide_tip, Fx_show_tip): Use it.
4432 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4433 the timer.
4434 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
4435
4436 * w32.c (init_environment): Duplicate local string before putenv.
4437
555e35d2
SZ
44382001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
4439
4440 * charset.c (Fstring): A typo.
4441
19c92c94
KH
44422001-02-09 Kenichi Handa <handa@etl.go.jp>
4443
e47a1c33
KH
4444 * charset.c (Fstring): If all arguments are less than 256, return
4445 a unibyte string.
4446
4447 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
4448 return a unibyte string.
4449
19c92c94
KH
4450 * coding.c (code_convert_region): After detecting a coding, if
4451 nothing found, set coding->composing to COMPOSITION_NO.
4452 (decode_coding_string): Likewise.
4453
d8e675f5
SM
44542001-02-08 Stefan Monnier <monnier@cs.yale.edu>
4455
4456 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
4457 to avoid overflow.
4458
bd503487
KH
44592001-02-07 Kenichi Handa <handa@etl.go.jp>
4460
4461 * charset.c (parse_str_to_multibyte): New function.
4462
4463 * charset.h (parse_str_to_multibyte): Extern it.
4464
4465 * print.c (print_string): If we are going to print a unibyte
4466 string into a multibyte buffer, convert the string to multibyte by
4467 str_to_multibyte.
4468
a8370d72
AI
44692001-02-06 Andrew Innes <andrewi@gnu.org>
4470
4471 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
4472 been created. It seems we can get sent window messages such as
4473 WM_ERASEBKGND before we properly update a frame.
4474
c363a1d6
GM
44752001-02-06 Gerd Moellmann <gerd@gnu.org>
4476
4477 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
4478 Avoid some unnecessary cursor positioning.
4479
a08332c0
GM
44802001-02-05 Gerd Moellmann <gerd@gnu.org>
4481
52283633 4482 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
4483 (LFACE_AVGWIDTH): New macro.
4484 (LFACEP): Use AREF.
4485 (check_lface_attrs): Check LFACE_AVGWIDTH.
4486 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4487 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
4488 (merge_face_vectors): Check LFACE_AVGWIDTH.
4489 (Finternal_make_lisp_face): Use AREF.
4490 (xm_set_menu_resources_from_menu_face)
4491 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
4492 (Finternal_lisp_face_empty_p): Use AREF.
4493 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
4494 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
4495 Compare average widths..
4496 (best_matching_font): Arrange for comparing average widths.
4497
52283633
SM
4498 * dispextern.h (enum lface_attribute_index):
4499 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
4500
5cb3c8d4
DL
45012001-02-05 Dave Love <fx@gnu.org>
4502
4503 * puresize.h: Revert last change following loadup.el change.
4504
193fba87
AI
45052001-02-05 Andrew Innes <andrewi@gnu.org>
4506
4507 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
4508 invocation of temacs, to work with Windows 2000.
4509 (bootstrap-emacs): Ditto.
4510
e16f52ce
GM
45112001-02-05 Gerd Moellmann <gerd@gnu.org>
4512
7a58ab59
GM
4513 * xterm.c (x_display_and_set_cursor): Check for the focus
4514 frame's selected window instead of selected_window.
4515
e89aaabd
GM
4516 * xdisp.c (try_scrolling): If point is in the line below the
4517 window, make sure to move the iterator at least a canonical
4518 char height down.
4519
52283633 4520 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 4521
789ce875
KH
45222001-02-05 Kenichi Handa <handa@etl.go.jp>
4523
52283633
SM
4524 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
4525 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
4526 (ccl_driver): If the CCL program is terminated because of
4527 CCL_STAT_INVALID_CMD, copy the remaining source data to the
4528 destination instead of throwing them away.
4529
20b28f82
GM
45302001-02-02 Gerd Moellmann <gerd@gnu.org>
4531
79fb38c0
GM
4532 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
4533 faces and other things.
4534
20b28f82
GM
4535 * xdisp.c (get_next_display_element): Fix case of empty
4536 display table entry.
4537
5a72551e
EZ
45382001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4539
eb24d0bf
EZ
4540 * editfns.c (Fconstrain_to_field): Doc fix.
4541
6a3f48c7
EZ
4542 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
4543 into `thoroughly', to make it consistent with the doc string.
4544
5a72551e
EZ
4545 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
4546
01acdb05
GM
45472001-02-01 Gerd Moellmann <gerd@gnu.org>
4548
0353b28f
GM
4549 * search.c (search_buffer): Call set_search_regs with a byte
4550 position, not a character position.
4551
01acdb05
GM
4552 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
4553 minibuffer-only,
4554
e86b5133
EZ
45552001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
4556
4557 * frame.c (Fmodify_frame_parameters): Doc fix.
4558
7442878f
GM
45592001-01-31 Gerd Moellmann <gerd@gnu.org>
4560
01acdb05
GM
4561 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
4562 identifier which is not reserved by Standard C.
52283633 4563
7442878f
GM
4564 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
4565
4566 * window.c (enum window_part): New enumeration.
4567 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
4568 Qright_bitmap_area.
4569 (coordinates_in_window): Return an enumerator from enum
4570 window_part. Fix handling of right scroll bar.
4571 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
4572 `right-fringe' instead of `left-bitmap-area' and
4573 `right-bitmap-area'. Use enumerators from enum window_part
4574 instead of hard-coded integers.
52283633
SM
4575 (check_window_containing, window_from_coordinates):
4576 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
4577 (syms_of_window): Replace Qleft_bitmap_area and
4578 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
4579
7c132cba
EZ
45802001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
4581
4582 * editfns.c (Fformat_time_string): Doc fix.
4583
c359dd9e
SM
45842001-01-31 Stefan Monnier <monnier@cs.yale.edu>
4585
4586 * keymap.c (Fwhere_is_internal): Use the first valid binding
4587 if no ascii binding is found (when firstonly is t).
4588
ce070307
GM
45892001-01-31 Gerd Moellmann <gerd@gnu.org>
4590
b4f30ec5
GM
4591 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
4592 instead of Finteractive_p.
4593
4594 * lisp.h (interactive_p): Add prototype.
4595
4596 * eval.c (interactive_p): New function.
4597 (Finteractive_p): Use it.
4598
ce070307
GM
4599 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
4600
f57b6e64
DL
46012001-01-31 Dave Love <fx@gnu.org>
4602
d61c7afe
DL
4603 * .gdbinit (hook-run): Define to run xreload.
4604
f57b6e64
DL
4605 * textprop.c (Fset_text_properties): Fix newline in doc string.
4606
eef93f99
GM
46072001-01-30 Gerd Moellmann <gerd@gnu.org>
4608
52283633
SM
4609 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
4610 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
4611
4612 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 4613 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
4614 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
4615
4616 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
4617 height.
4618
d9c1f6f9
DL
46192001-01-30 Dave Love <fx@gnu.org>
4620
4621 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
4622 AFTER_POTENTIAL_GC.
4623
e8f044a0
GM
46242001-01-29 Gerd Moellmann <gerd@gnu.org>
4625
52283633
SM
4626 * bytecode.c (Fbyte_code) <Bcurrent_column>:
4627 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 4628
8e1db7b3
EZ
46292001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
4630
4631 * textprop.c (Fset_text_properties): Doc fix.
4632
4eefd9d2
GM
46332001-01-29 Gerd Moellmann <gerd@gnu.org>
4634
4635 * xdisp.c (forward_to_next_line_start): Remove xassert.
4636
fccb8288
EZ
46372001-01-29 Jason Rumney <jasonr@gnu.org>
4638
4eefd9d2 4639 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
4640 returning without releasing it.
4641
76581eab
KH
46422001-01-29 Kenichi Handa <handa@etl.go.jp>
4643
4644 * w32fns.c (w32_font_match): Allocate three more bytes to regex
4645 for '^', '$', and '\0'.
4646
83a96b4d
AC
46472001-01-28 Andrew Choi <akochoi@i-cable.com>
4648
5604ec34
AC
4649 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
4650 regex for '^', '$', and '\0'.
4651
83a96b4d
AC
4652 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
4653 only if current_sblock has been initialized.
4654
4655 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
4656 terminal frame even if it is the only visible frame.
4657
c09a6440
KH
46582001-01-28 Kenichi Handa <handa@etl.go.jp>
4659
4660 * fontset.c (font_family_registry): Even if FONTNAME conform to
4661 XLFD, if it specifies other fields than family and registry,
52283633 4662 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 4663 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
4664 a signle byte character. Don't set FAMILY part to nil here.
4665 It is handled by the caller choose_face_font.
c09a6440
KH
4666 (Fnew_fontset): Call font_family_registry with FORCE 0.
4667 (Fset_fontset_font): Likewise.
4668
4dcd74e6
GM
46692001-01-27 Gerd Moellmann <gerd@gnu.org>
4670
4671 * xdisp.c (display_line): Don't treat a newline as fitting
4672 on the line.
4673
d2906bf8
GM
46742001-01-26 Gerd Moellmann <gerd@gnu.org>
4675
0130fe1a
GM
4676 * window.c (size_window): Set the window's orig_top to nil when
4677 changing heights, so that a future shrink_mini_window won't
4678 restore a bogus height.
4679
550f0e6a
GM
4680 * frame.c (do_switch_frame): If selected frame has a mini-window,
4681 resize that to exact size.
4682
b7b20fbd
GM
4683 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
4684
a47b7816
GM
4685 * xdisp.c (display_line): Simplify check for glyphs fitting
4686 entirely in the line.
4687
d2906bf8
GM
4688 * xfns.c (xic_style): New variable.
4689 (create_frame_xic): Move static variable to global scope for
550f0e6a 4690 the case that `static' gets defined away.
d2906bf8 4691
73df2b1e
KH
46922001-01-26 Kenichi Handa <handa@etl.go.jp>
4693
4694 * coding.c (decode_coding): Set a flag for inhibiting
4695 inconsistent eol.
4696 (code_convert_region): Always set saved_coding_symbol.
4697 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 4698 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 4699
6613cfc4
GM
47002001-01-25 Gerd Moellmann <gerd@gnu.org>
4701
c5e6e06b
GM
4702 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
4703 XClearArea.
4704
4705 * xterm.c (x_after_update_window_line): Don't clear if frame's
4706 internal border width is zero.
4707 (x_clear_area): New function.
4708 (x_after_update_window_line, x_clear_end_of_line)
4709 (x_scroll_bar_create, x_scroll_bar_set_handle)
4710 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
4711 instead of XClearArea.
4712
4713 * xterm.h (x_clear_area): Add prototype.
4714
6613cfc4
GM
4715 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
4716 which doesn't seem necessary anymore with Lesstif 0.92.
4717
650cc6cc
DL
47182001-01-25 Dave Love <fx@gnu.org>
4719
34ac3367
DL
4720 * puresize.h (BASE_PURESIZE): Up to 720000.
4721
650cc6cc
DL
4722 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
4723
5e37dc22
GM
47242001-01-25 Gerd Moellmann <gerd@gnu.org>
4725
e1e441f9
GM
4726 * xdisp.c (echo_area_display): Don't call redisplay_internal
4727 when Emacs is shutting down. We can't run hooks etc. that
4728 would be necessary to do a redisplay.
4729
5e37dc22
GM
4730 * lread.c (read_integer): Use type EMACS_INT instead of int.
4731
0fb94c7f
EZ
47322001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4733
4734 * ccl.c (ccl_driver): Fix last change.
4735
e3778624
KH
47362001-01-25 Kenichi Handa <handa@etl.go.jp>
4737
4738 * ccl.h (sturct ccl_program): New member suppress_error.
4739
bb264518 4740 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
4741 insert error message to the output.
4742 (setup_ccl_program): Initialize ccl->suppress_error to 0.
4743
4744 * coding.h (struct coding_system): New member suppress_error.
4745
4746 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
4747 (Fset_terminal_coding_system_internal): Set the member
4748 suppress_error to 1.
4749 (Fset_safe_terminal_coding_system_internal): Likewise.
4750
245ed2b1
SM
47512001-01-24 Stefan Monnier <monnier@cs.yale.edu>
4752
4753 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
4754 as if it was a `charset'.
4755
f9aaedb6
GM
47562001-01-24 Gerd Moellmann <gerd@gnu.org>
4757
4758 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
4759 value in where_is_cache; the next lookup in the cache returns
4760 something bogus if we do.
4761
c3902c3e
EZ
47622001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
4763
4764 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
4765 if HAVE_WINDOW_SYSTEM isn't defined.
4766
3497f73e
GM
47672001-01-24 Gerd Moellmann <gerd@gnu.org>
4768
e7e41584
GM
4769 * fns.c (sweep_weak_table): Fix code taking items out of
4770 the hash collision chain. Some cleanup.
4771
3497f73e
GM
4772 * xterm.c (x_new_font): Don't change a tooltip's size.
4773
4774 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
4775 background color by specifying a color for the default font
4776 in .Xdefaults.
4777
3d48e687
KH
47782001-01-24 Kenichi Handa <handa@etl.go.jp>
4779
96531b20
KH
4780 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
4781 a workaround for SunOS 4's cc.
4782 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
4783 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
4784 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
4785 statement.
3d48e687 4786
a30629d2
GM
47872001-01-23 Gerd Moellmann <gerd@gnu.org>
4788
4789 * xterm.c (x_set_window_size_1): New function extracted from
4790 x_set_window_size.
4791 (x_set_window_size): Use it.
4792 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
4793 doesn't have a widget, like tooltips.
4794
5a43decf
EZ
47952001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
4796
52283633 4797 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 4798
b0e98867
KH
47992001-01-23 Kenichi Handa <handa@etl.go.jp>
4800
4801 * fns.c (Fset_char_table_default): Fix to make sub char-table
4802 correctly.
4803
50606b4c
GM
48042001-01-22 Gerd Moellmann <gerd@gnu.org>
4805
cb2ddc53 4806 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
4807 a desired tool bar string, even if there are no tool bar items.
4808
57c28064
GM
4809 * xdisp.c (Ftool_bar_lines_needed): New function.
4810 (syms_of_xdisp): Defsubr it.
4811
50606b4c
GM
4812 * editfns.c (Fformat): Don't extend text properties from arguments
4813 to padding chars in the result.
4814
2f169c38
EZ
48152001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4816
4817 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
4818
0f32f023
AI
48192001-01-20 Andrew Innes <andrewi@gnu.org>
4820
52283633 4821 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
4822 (w32_initialize): Don't set term hooks that aren't actually needed
4823 in windowed mode.
4824
4825 * xfaces.c (realize_default_face):
4826 (realize_face):
4827 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
4828
4829 * xdisp.c (handle_single_display_prop): Remove references to
4830 FRAME_W32_CONSOLE_P.
4831
52283633 4832 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
4833
4834 * frame.h (output_method): Remove output_w32_console method.
4835 (FRAME_W32_CONSOLE_P): Remove macro.
4836
4837 * frame.c (Qw32_console): Remove variable.
4838 (Fframep): Remove references to it.
4839 (syms_of_frame): Ditto.
4840 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
4841
4842 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
4843 redefinition.
4844
7173eada
KH
48452001-01-20 Kenichi Handa <handa@etl.go.jp>
4846
4847 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
4848
755b45ce
AI
48492001-01-19 Andrew Innes <andrewi@gnu.org>
4850
4851 * w32.c (init_environment): Add a version-independent site-lisp
4852 directory to EMACSLOADPATH, after the version dependent one.
4853
0a949811
GM
48542001-01-19 Gerd Moellmann <gerd@gnu.org>
4855
8501998a
GM
4856 * editfns.c (Fbuffer_substring): Doc fix.
4857
52283633
SM
4858 * xdisp.c (message_dolog, message2, message2_nolog):
4859 Rename parameter LEN to NBYTES.
0a949811 4860
e6ebcbbe
KH
48612001-01-19 Kenichi Handa <handa@etl.go.jp>
4862
200ecca2
KH
4863 * charset.c (strwidth): Use c_string_width.
4864 (c_string_width): New function.
4865 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
4866 Caller changed.
4867
4868 * charset.h (c_string_width, lisp_string_width): Extern them.
4869
52283633 4870 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 4871
e6ebcbbe
KH
4872 * indent.c (check_composition): Check validity of composition.
4873
200ecca2
KH
4874 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
4875 characters by calling c_string_width.
4876 (x_consider_frame_title): Get byte length of frame tile string
4877 correctly.
4878 (display_mode_element): Pay attention to width of non-ASCII
4879 characters by calling strwidth.
4880
8692ca92
GM
48812001-01-18 Gerd Moellmann <gerd@gnu.org>
4882
8962e303
GM
4883 * xfns.c (Qcancel_timer): New variable.
4884 (syms_of_xfns): Initialize and staticpro it.
4885 (Fx_hide_tip, Fx_show_tip): Use it.
4886 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
4887 the timer.
4888 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
4889
91523be9
GM
4890 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4891
4892 * window.h (WINDOW_LIVE_P): New macro.
4893
b0b7ed0e
GM
4894 * window.c (window_size_fixed): New variable.
4895 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
4896 the doc string.
4897
06bccf8e
GM
4898 * eval.c (specbind): If binding a per-buffer variable which
4899 doesn't have a buffer-local value in the current buffer, change
4900 the global value by changing the value of the symbol bound in all
4901 buffers not having their own value, to make it consistent with
4902 what happens with other buffer-local variables.
4903
8692ca92
GM
4904 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4905
4906 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
4907 when searching for a newline.
4908
bb3a3b50
KH
49092001-01-18 Kenichi Handa <handa@etl.go.jp>
4910
4911 * xdisp.c (display_string): Fix previous change.
4912
c2cc16fa
JR
49132001-01-18 Jason Rumney <jasonr@gnu.org>
4914
4915 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
4916 GLYPH_DEBUG is defined.
4917 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
4918 true for images with `:ascent 100'.
4919 (x_set_mouse_face_gc): If the last used mouse face has gone in the
4920 meantime, use face MOUSE_FACE_ID.
4921 If first glyph isn't a character glyph, use the ASCII NUL
4922 character to determine the face.
4923 (expose_area): Do not treat left margin specially.
4924 (note_mode_line_highlight): If no local_map, check global keymap.
4925 (note_mouse_highlight): Initialize overlay.
52283633 4926 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
4927 (show_scroll_bars): Remove unused function.
4928 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
4929 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
4930 Clip to row.
52283633 4931 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
4932 (x_free_frame_resources): Unload relief colors.
4933
9c11f79e
GM
49342001-01-17 Gerd Moellmann <gerd@gnu.org>
4935
3aec8722 4936 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
4937 get_next_display_element when the newline is already found.
4938 This may change the iterator's position, when its current position is
3aec8722
GM
4939 equal to the iterator's stop_charpos.
4940
f3ffc2c3
GM
4941 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
4942 zero, use this method only at the end of a line.
4943
52283633 4944 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
4945 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
4946 if SCALABLE_FONTS_P is set.
52283633 4947
d26d6fd9
GM
4948 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4949 so that scalable fonts are included.
4950
9c11f79e
GM
4951 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
4952 In the cache, use a key containing the information if scalable
4953 fonts are included.
4954 (x_load_font): Adapt to change of keys in the font cache.
4955
49562001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 4957
d26d6fd9
GM
4958 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
4959 XListFonts to take advantage of font caching.
4960
9c11f79e
GM
4961 * xterm.c (x_list_fonts): Ensure caching font information when
4962 called for a null frame, which is the case frequently when Emacs
4963 starts.
4964
51446987
GM
49652001-01-17 Gerd Moellmann <gerd@gnu.org>
4966
f864120f
GM
4967 * xfns.c (QCconversion): Replaces QCalgorithm.
4968
4969 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
4970
4971 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
4972 of :algorithm.
52283633 4973
e37d1417
GM
4974 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
4975 not everything could be displayed.
4976
51446987
GM
4977 * line.h, x-list-font.c: Files removed because unused.
4978
9ad4f3e5
AI
49792001-01-17 Andrew Innes <andrewi@gnu.org>
4980
4981 * dired.c (directory_files_internal): Convert result from readdir
4982 to a unibyte string initially, to avoid possible misinterpretation
4983 of some bytes as the internal form of Emacs characters.
4984
2eda09b5
KH
49852001-01-17 Kenichi Handa <handa@etl.go.jp>
4986
4987 * fns.c (concat): Be sure to avoid putting the same `composition'
4988 property on the adjacent regions.
4989
826f3788
GM
49902001-01-16 Gerd Moellmann <gerd@gnu.org>
4991
52283633 4992 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
4993 (Fscroll_right, Fscroll_left): Set it here instead, if called
4994 interactively.
4995
d57b83b3
GM
4996 * buffer.c (Fset_buffer_modified_p): Set buffer's
4997 prevent_redisplay_optimizations_p flag.
4998
826f3788 4999 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
5000 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5001 with additional arg.
5002
5003 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5004 Change prototype.
826f3788 5005
826f3788
GM
5006 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5007 FROM_WHERE, for debugging.
5008
261d788b
KH
50092001-01-16 Kenichi Handa <handa@etl.go.jp>
5010
5011 * ccl.c (Fregister_ccl_program): Handle the return value of
5012 resolve_symbol_ccl_program correctly.
52283633 5013 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 5014
bccee4f2
GM
50152001-01-15 Gerd Moellmann <gerd@gnu.org>
5016
e4ded23c
GM
5017 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5018 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
5019
5020 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5021 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
5022 the display; we didn't open it.
5023
bccee4f2
GM
5024 * dispnew.c (save_or_restore_current_matrices): Function removed.
5025 (save_current_matrix, restore_current_matrix): New functions.
5026 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5027 restore the frame's current matrix. Due to the glyph pointer
5028 setup done in adjust_glyph_matrix, there is no easy way to make
5029 saving the current matrix in the desired matrix generally correct,
5030 so don't try it.
5031
ebeccffa
KH
50322001-01-15 Kenichi Handa <handa@etl.go.jp>
5033
5034 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5035 truncation glyphs.
5036 (display_line): Optimize for wide characters.
e4ded23c 5037 (display_string): Don't try to display a multi-column character
ebeccffa
KH
5038 partially. On ttys, produce more than one truncation glyph for
5039 multi-column characters that don't fit on the line.
5040
64388126
KH
50412001-01-13 Kenichi Handa <handa@etl.go.jp>
5042
52283633
SM
5043 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5044 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 5045
8edb0a6f
JR
50462001-01-13 Jason Rumney <jasonr@gnu.org>
5047
5048 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5049 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
5050 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5051 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 5052
52283633
SM
5053 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5054 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
5055 (x_draw_image_glyph_string): Adapt to change of image margins.
5056
5057 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5058 variables.
5059
5060 * w32bdf.c (search_file_line, get_cached_font_char)
5061 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5062
5063 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5064
5065 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5066 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5067 (Fw32_send_sys_command): Remove unused variables.
5068 (w32_msg_pump): Add parentheses.
5069
5070 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5071 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5072 Add parentheses.
5073
4956d1ef
GM
50742001-01-12 Gerd Moellmann <gerd@gnu.org>
5075
b30623be
GM
5076 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5077 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5078 being a pair of margins.
5079 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5080 to DEFVAR_LISP. Extend doc.
5081
5082 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5083 margins.
5084 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5085 pair of integers `(X . Y)', use X for the horizontal and Y for the
5086 vertical margin.
5087 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5088 (parse_image_spec): Check it.
52283633
SM
5089 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5090 (tiff_format, gif_format, gs_format):
5091 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 5092
52283633
SM
5093 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5094 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
5095 (x_draw_image_glyph_string): Adapt to the change of image margins.
5096
5097 * dispextern.h (struct image): Replace member `margin' with
5098 `hmargin' and `vmargin'.
5099
4554cc79
GM
5100 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5101 and GLYPHS.
5102
5103 * dispnew.c (update_text_area): Put code which decrements the
5104 stop position when the row's face extends to the end of the
3bffc665 5105 line in #if 0.
4554cc79 5106
3cccce8d
GM
5107 * xfns.c (x_set_mouse_color): Fix color allocation.
5108
4956d1ef
GM
5109 * keyboard.c: Call get_local_map with new argument list.
5110
5111 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5112
5113 * intervals.h (enum map_property): Removed.
5114 (get_local_map): Change prototype.
5115
5116 * keymap.c: Call get_local_map with new argument list.
5117 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5118
2c2ff7f2
GM
51192001-01-11 Gerd Moellmann <gerd@gnu.org>
5120
a23887b9
GM
5121 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5122 of the size needed for the tool bar string. For the last image,
5123 use a `display' property that reaches to the end of the string.
5124
a7ee2d2e
GM
5125 * xselect.c (selection_request_dpyinfo): New variable.
5126 (x_handle_selection_request): Set it.
5127 (x_selection_request_lisp_error): Don't call
5128 x_decline_selection_request if selection request's display has
5129 been closed.
5130
52283633
SM
5131 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5132 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 5133
457b792c
GM
51342001-01-10 Dave Love <fx@gnu.org>
5135
5136 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5137 ${SOME_MACHINE_LISP}, not ${lisp}.
5138
c1efd260
GM
51392001-01-10 Gerd Moellmann <gerd@gnu.org>
5140
52283633
SM
5141 * xdisp.c (display_line): On ttys, produce more than one truncation
5142 glyph for multi-column characters that don't fit on the line.
a98b5ed9 5143
ac95a621
GM
5144 * xselect.c (x_reply_selection_request): Add a comment.
5145
c1efd260
GM
5146 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5147 XkbGetNames instead of XkbGetKeyboard.
5148
1bfb1345
DL
51492001-01-10 Dave Love <fx@gnu.org>
5150
5151 * sysdep.c (random): Revert the declaration.
5152
38119822
GM
51532001-01-09 Gerd Moellmann <gerd@gnu.org>
5154
52283633
SM
5155 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5156 Call function string_bytes.
35f464a7
GM
5157 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5158
5159 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5160 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5161 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5162 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5163 the current sblock.
5164 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5165 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5166 after sweeping strings, and at the end.
5167 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5168
38119822
GM
5169 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5170 ensure that pop_message is called.
5171
5172 * keyboard.c (Fexecute_extended_command): Use a
5173 record_unwind_protect to ensure that pop_message is called.
5174
5175 * lisp.h (push_message_unwind): Add prototype.
5176
5177 * xdisp.c (push_message_unwind): New function.
5178
5179 * fileio.c (do_auto_save_unwind): Do the pop_message here
5180 instead of in Fdo_auto_save.
5181 (Fdo_auto_save): Don't call pop_message.
5182
f47a9ec4
KR
51832001-01-08 Ken Raeburn <raeburn@gnu.org>
5184
5185 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5186 in inner block.
5187
a758f97d
GM
51882001-01-08 Gerd Moellmann <gerd@gnu.org>
5189
6d0afc03
GM
5190 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5191 when increasing window's vscroll.
5192
a758f97d
GM
5193 * macros.c (Qkbd_macro_termination_hook): New variable.
5194 (syms_of_macros): Initialize and staticpro it.
5195 (pop_kbd_macro): Run kbd-macro-termination-hook.
5196
5197 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5198
1bfb1345 51992001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
5200
5201 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5202 arglist, for documentation's sake.
5203
0dac6924
AI
52042001-01-06 Andrew Innes <andrewi@gnu.org>
5205
5206 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5207 of *.pdb.
5208
8182406a
AI
52092001-01-05 Andrew Innes <andrewi@gnu.org>
5210
5211 * term.c (update_end): Don't check updating_frame; for some reason
5212 this can be 0 sometimes, such as after dismissing a popup menu,
5213 and isn't necessary given the explicit frame argument.
5214
3828218c
GM
52152001-01-05 Gerd Moellmann <gerd@gnu.org>
5216
5217 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5218 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5219
2f5ded21
GM
52202001-01-04 Gerd Moellmann <gerd@gnu.org>
5221
52283633 5222 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
5223
5224 * xfns.c (x_create_tip_frame): Preserve the value of
5225 face_change_count around the creation of the tip frame.
52283633 5226
2f5ded21
GM
5227 * xfns.c (last_show_tip_args): New variable.
5228 (compute_tip_xy): New function.
5229 (Fx_show_tip): Reuse an existing tip frame, if possible.
5230 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5231
dfad65fa
DL
52322001-01-04 Dave Love <fx@gnu.org>
5233
64d4ec0f
DL
5234 * editfns.c (Fformat): Doc fix.
5235
dfad65fa
DL
5236 * systime.h (set_file_times): Prototype.
5237
5238 * widget.h (EmacsFrameSetCharSize_): Prototype.
5239
5240 * sysdep.c (random, srandom): Declare explicitly.
5241
5242 * dispextern.h (move_it_vertically_backward): Declare.
5243
85fe3b5e
GM
52442001-01-04 Gerd Moellmann <gerd@gnu.org>
5245
0f2ac578
GM
5246 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5247 like in Fx_create_frame.
5248
482cca61
GM
5249 * xfaces.c (set_font_frame_param): Don't do anything for
5250 non-graphical frames.
5251
85fe3b5e
GM
5252 * window.c (Fdelete_other_windows): Set window's window_end_valid
5253 to nil when changing the window's start. Don't change the
5254 window's start when its top position hasn't changed. If we do,
5255 this will set the window's optional_new_start, which act's like a
5256 force_start during redisplay with C-x 1 M-> under particular
5257 circumstances (see report from Per Starback to emacs-pretest-bug
5258 from 2000-12-13.).
5259
3e99d3b4
GM
52602001-01-03 Gerd Moellmann <gerd@gnu.org>
5261
a77dc1ec
GM
5262 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5263 short cut at the start of the function. Add an assertion.
5264 (reseat_at_next_visible_line_start): Add an assertion.
5265
2f3cad6c
GM
5266 * window.c (Frecenter): When changing the window start, set the
5267 window's window_end_valid to nil.
5268 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5269
5270 * dispextern.h (move_it_past_eol): Add prototype.
5271
5272 * xdisp.c (move_it_past_eol): New function.
5273
3e99d3b4
GM
5274 * window.c (Fwindow_end): Doc fix.
5275
52762001-01-03 Dave Love <fx@gnu.org>
5277
52283633 5278 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 5279
bafb434c
GM
52802001-01-03 Gerd Moellmann <gerd@gnu.org>
5281
5282 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5283 the enabled_p flag of the glyph row at window_end_vpos to 0.
5284 (handle_single_display_prop): Fix last change.
5285
5297fb00
RS
52862001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5287
5288 * window.c (Frecenter): Doc fix.
5289
13d6a61c
AI
52902001-01-02 Andrew Innes <andrewi@gnu.org>
5291
5292 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5293
5294 * frame.h (output_method): Add output_w32_console method.
5295 (FRAME_W32_CONSOLE_P): New macro.
5296
5297 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5298 use output_w32_console method.
5299 (Qw32_console): New Lisp_Object.
5300 (Fframep): Return it.
5301 (syms_of_frame): Init it.
52283633 5302 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
5303
5304 * xfaces.c (realize_default_face): Set face foreground and
5305 background to unspecified for w32_console frames.
5306 (realize_face): Realize face cache for w32_console frames.
5307 (realize_tty_face): Accept w32_console frames.
5308
52283633 5309 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
5310 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5311 necessary, even if running interactively.
5312
5313 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5314 w32_console frames.
5315
52283633
SM
5316 * w32term.c (x_update_begin):
5317 (x_update_end):
5318 (x_clear_frame):
5319 (x_ins_del_lines):
5320 (x_change_line_highlight):
5321 (x_delete_glyphs):
5322 (w32_ring_bell):
5323 (x_update_begin):
5324 (x_update_end):
5325 (w32_reassert_line_highlight):
5326 (w32_frame_rehighlight):
13d6a61c
AI
5327 (w32_frame_raise_lower): Do nothing if not w32 frame.
5328
5329 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5330
5331 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5332 system doesn't tell us directly.
5333 (Fx_display_visual_class): Implement properly.
5334
d6bb0c0d
GM
53352001-01-02 Gerd Moellmann <gerd@gnu.org>
5336
5337 * window.c (Frecenter): Handle centering in graphical frames
5338 specially. Centering on the basis of line counts doesn't work
5339 reliably with variable-height lines.
52283633 5340
315f5865
EZ
53412001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5342
5343 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5344 and al[].
5345
52283633 5346 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
5347 (update_compositions): Remove unused variable `hook'.
5348
5349 * intervals.c (get_local_map): Remove unused variable `tem'.
5350
5351 * doprnt.c (doprnt1): Remove unused variable `size'.
5352
5353 * fns.c (Flength): Remove unused variable `tail'.
5354 (Fdelete): Remove unused variable `size'.
5355
5356 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
5357 and `gcpro2'.
5358
52283633 5359 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
5360
5361 * data.c (find_symbol_value): Remove extra 3rd argument in the
5362 call to swap_in_symval_forwarding.
5363
52283633 5364 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
5365
5366 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
5367 (trivial_regexp_p): Remove unused variable `c'.
5368 (boyer_moore): Remove unused variable `k'.
5369
5370 * indent.c (current_column): Remove unused variable `stopchar'.
5371 (Fcompute_motion): Remove unused variable `contin'.
5372
5373 * casefiddle.c (casify_object): Remove unused variable `tolen'.
5374
5375 * dired.c (directory_files_internal): Fix a typo in a comment.
5376 Remove an unused variable `handler'.
52283633 5377 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
5378 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
5379 on BSD4_2.
5380
52283633 5381 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
5382
5383 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
5384 and `buf'.
5385 (Fmarker_insertion_type): Remove unused variable `buf'.
5386
5387 * insdel.c (make_gap): Remove unused variable `result'.
5388
52283633 5389 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
5390 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
5391 (menu_bar_items): Remove unused function-scope variable `tem'.
5392
5393 * fontset.c (fontset_ref): Remove unused variable `i'.
5394 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 5395 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
5396 (make_fontset_for_ascii_face): Remove unused variable `name'.
5397 (fs_load_font): Remove unused variable `font_idx'.
52283633 5398 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
5399 (list_fontsets): Remove unused variable `tail'.
5400 (Fnew_fontset): Remove unused variables `family' and `registry'.
5401 (accumulate_font_info): Remove unused variable `tmp'.
5402 (Ffontset_font): Remove unused variable `id'.
5403 (syms_of_fontset): Remove unused variable `i'.
5404
5405 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
5406 to x_term_init.
5407 (lookup_image): Remove unused variable `file'.
5408 (xbm_load): Remove unused variables `bitmap_data', `height', and
5409 `width'. Remove function-local variable `i', leave the
5410 block-local one.
5411 (gif_load): Remove unused variable `inc'.
5412
52283633 5413 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
5414 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
5415 leave only the one in the inner block.
5416
5417 * xfaces.c (face_fontset, realize_default_face): Remove unused
5418 variable `fontset'.
5419 (face_at_buffer_position): Remove unused variable `multibyte_p'.
5420
5421 * term.c (encode_terminal_code): Remove unused variable `c'.
5422
5423 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
5424 char *' instead of `char *'.
5425
5426 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 5427 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
5428 (Fchar_category_set): Remove unused variables `val', `charset',
5429 `c1' and `c2'.
5430
52283633
SM
5431 * coding.c (detect_coding_iso2022, setup_coding_system):
5432 Remove unused variable `i'.
315f5865
EZ
5433 (detect_coding_mask): Remove unused variable `idx'.
5434 (detect_coding): Remove unused variable `i'.
5435 (ccl_coding_driver): Remove unused variable `result'.
5436 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 5437 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
5438 (encode_coding_string): Remove unused variables `gcpro1' and
5439 `saved_coding_symbol'.
5440 (Ffind_coding_systems_region_internal): Remove function-local
5441 variable args[], leave only the block-local one.
5442 (code_convert_region1): Remove unused variable `len'.
5443
5444 * charset.c (char_printable_p): Remove unused variable `chars'.
5445 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
5446 (str_to_multibyte): Remove unused variable `c'.
5447
5448 * window.c (size_window): Remove block-local variable `min_size'.
5449
5450 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
5451 `header_line_height'.
5452 (append_space, extend_face_to_end_of_line): Declare `saved_what'
5453 enum display_element_type.
5454
1a8a9daf
GM
54552001-01-02 Gerd Moellmann <gerd@gnu.org>
5456
6dde6abc 5457 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
5458 statements that call X. Save away the error message in a local copy.
5459
1883b2c6
GM
5460 * xterm.c (x_connection_closed): Set handling_signal to 0 at
5461 the start.
5462
a13be207
GM
5463 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
5464 in or at the start of invisible text.
5465
1a8a9daf
GM
5466 * dispnew.c (update_window): Don't check_current_matrix_flags.
5467
3608c0f9
JR
54682001-01-01 Jason Rumney <jasonr@gnu.org>
5469
5470 * w32fns.c (x_figure_window_size): Do not allow new_height and
5471 new_width of frame to override specified values.
5472
abb1acc4
KH
54732000-12-30 Kenichi Handa <handa@etl.go.jp>
5474
52283633 5475 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 5476
762a68ec
GM
54772000-12-29 Gerd Moellmann <gerd@gnu.org>
5478
52283633 5479 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
5480 (update_window) [GLYPH_DEBUG]: Call it.
5481 (scrolling_window): Prevent including current rows which are below
5482 what's displayed in the window.
5483
5484 * xdisp.c (try_window_reusing_current_matrix)
5485 <new start <= old start>: Disable rows in the current matrix
5486 which are below the window after scrolling.
52283633 5487
762a68ec
GM
5488 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
5489 is zero. It's not worth the complexity.
5490 (invisible_text_between_p): Put in #if 0 because unused.
5491
2d5912c1
GM
54922000-12-28 Gerd Moellmann <gerd@gnu.org>
5493
46f6a258
GM
5494 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
5495 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
5496
89f93679
GM
5497 * keyboard.c (echo_char): If C is an integer, always call
5498 push_key_description. Former code could signal an invalid
5499 character error.
5500
5501 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
5502 If set, print multibyte text.
5503 (Fsingle_key_description): Call push_key_description with
5504 FORCE_MULTIBYTE set.
5505 (describe_buffer_bindings): Likewise.
5506
5507 * lisp.h (push_key_description): Add prototype.
5508
c06017fb
GM
5509 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
5510 around the call to redisplay_internal.
5511
f1d2ce7f
GM
5512 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5513
2d5912c1
GM
5514 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
5515
9371f831
KH
55162000-12-28 Kenichi Handa <handa@etl.go.jp>
5517
5518 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
5519 (ccl_driver): New local variable `extra_bytes'.
5520
5521 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
5522
52283633
SM
5523 * coding.c (setup_coding_system):
5524 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
5525 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
5526
0c80628a
KH
55272000-12-28 Kenichi Handa <handa@etl.go.jp>
5528
5529 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
5530 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
5531 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
5532 (decode_composition_emacs_mule): New function.
5533 (decode_coding_emacs_mule): Decode composition sequence by calling
5534 decode_composition_emacs_mule.
5535 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
5536 (encode_coding_emacs_mule): Changed from macro to function.
5537 If a text contains compositions, encode them correctly.
0c80628a
KH
5538 (setup_coding_system): Set coding->commong_flags for emacs-mule so
5539 that decoding and encoding are required.
5540
3e32cc27
GM
55412000-12-27 Gerd Moellmann <gerd@gnu.org>
5542
5e25feee
GM
5543 * xfaces.c (PT_PER_INCH): New macro.
5544 (xlfd_point_size): Compute real point size from font's pixel size.
5545 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
5546 instead of 72.
5547
892d8fcd
GM
5548 * .gdbinit: Comment out the line pointing to the Lesstif source
5549 directory.
5550
12c8b416
GM
5551 * window.c (Frecenter): Use displayed_window_lines instead
5552 of window_internal_height.
5553
6061fbf0
GM
5554 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5555 instead of x-toolkit-scroll-bars-p.
5556 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
5557
5558 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
5559 instead of x-toolkit-scroll-bars-p.
5560 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 5561
3e32cc27
GM
5562 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
5563 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
5564 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
5565 New variables.
5566 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
5567 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
5568 (build_frame_matrix_from_leaf_window): Remove unused code.
5569 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
5570 redisplay history.
5571 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
5572 (update_window) [GLYPH_DEBUG]: Likewise.
5573 (syms_of_display): Defsubr dump-redisplay-history.
5574
31798cfe
GM
55752000-12-23 Gerd Moellmann <gerd@gnu.org>
5576
f717c2ba
GM
5577 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
5578 the end of the prompt. Set echo_after_prompt to the offset
5579 of echoptr in echobuf.
5580
aeb2b8fc
GM
5581 * xdisp.c (init_from_display_pos): Pop until the iterator's
5582 stack is empty; there may be frames for stretch or images
5583 on the stack.
5584
31798cfe
GM
5585 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
5586 (save_or_restore_current_matrix): New function for the same
5587 purpose, but more efficient.
5588 (adjust_frame_glyphs_for_frame_redisplay): Use it.
5589
f8156156
EZ
55902000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
5591
5592 * xdisp.c (syms_of_xdisp): Fix last change.
5593
bdd6d4e8
GM
55942000-12-23 Gerd Moellmann <gerd@gnu.org>
5595
5596 * xdisp.c (syms_of_xdisp): Doc fix.
5597
5598 * xdisp.c (redisplay_window): Remove label restore_buffers;
5599 use finish_scroll_bars instead to make sure that scroll bars
5600 are redeemed. If we don't do this, flickering can result from
5601 scroll bars being destroyed and recreated.
5602
9436cdf9
JR
56032000-12-22 Jason Rumney <jasonr@gnu.org>
5604
5605 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
5606 in the wrong colors when the foreground is not black.
5607 (expose_window): Don't redraw the window that's currently being
5608 updated.
5609
951f9df5
GM
56102000-12-22 Gerd Moellmann <gerd@gnu.org>
5611
856ff7a7
GM
5612 * window.c (size_window): When setting the window's too_small_ok
5613 flag, compare old size with minimum size depending on WIDTH_P,
5614 don't compare with window_min_width.
52283633 5615
951f9df5
GM
5616 * window.c (delete_window): Simplify somewhat.
5617 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
5618 freeing window matrices. The flag windows_or_buffers_changed is
5619 set, so the next redisplay will consider all windows; this should
5620 suffice.
5621
886bc933
KH
56222000-12-22 Kenichi Handa <handa@etl.go.jp>
5623
5624 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
5625
5626 * ccl.h (struct ccl_program): New member cr_consumed.
5627
5628 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
5629 (CCL_READ_CHAR): Handle EOL conversion here.
5630 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
5631
177f4e88
GM
56322000-12-21 Gerd Moellmann <gerd@gnu.org>
5633
52283633 5634 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
5635
5636 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
5637 otherwise tabs of different size compare equal.
5638
5639 * callint.c (Fcall_interactively): Prevent a compiler warning.
5640
5641 * print.c (print_unwind): Return nil.
5642 (PRINTDECLARE): Initialize all local variables.
5643 (print_preprocess): Add a default case.
5644
8e15274f
GM
5645 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
5646
5647 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
5648
52283633 5649 * window.c (delete_window, Fsplit_window)
177f4e88
GM
5650 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
5651
5652 * dispextern.h (ensure_frame_matrix): Function declaration removed.
5653
5654 * dispnew.c (ensure_frame_matrix): Removed.
5655 (save_frame_matrix, restore_frame_matrix): New functions.
5656 (adjust_frame_glyphs_for_frame_redisplay): Use them.
5657
5658 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
5659 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
5660
99012074
AI
56612000-12-21 Andrew Innes <andrewi@gnu.org>
5662
5663 * w32term.c (x_update_begin): Regenerate the palette here, rather
5664 than for each window.
5665
5666 * w32xfns.c (select_palette): Avoid calling SelectPalette if
5667 palette is NULL, since this corrupts memory! Also get
5668 display_info reference from frame.
5669
29ef7d2d
JR
56702000-12-21 Jason Rumney <jasonr@gnu.org>
5671
5672 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
5673
5674 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
5675 to avoid returning without releasing it.
3e27fa1f 5676
3f9d67a6
KH
56772000-12-21 Kenichi Handa <handa@etl.go.jp>
5678
587fc3f9
KH
5679 * keymap.c (push_key_description): Don't convert eight-bit-control
5680 and eight-bit-graphic to multibyte character.
5681
3f9d67a6
KH
5682 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
5683 generic character and CODE1 is nil, return the smallest character
5684 in CHARSET.
5685
774ba8c9
DL
56862000-12-20 Dave Love <fx@gnu.org>
5687
5688 * s/osf5-0.h (NSIG): Don't redefine.
5689
88416888
SM
56902000-12-20 Stefan Monnier <monnier@cs.yale.edu>
5691
5692 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
5693 excluding menu-bar and tool-bar.
5694 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
5695 (menu_item_p): Remove.
5696 (where_is_internal_1): Don't ignore menu-items.
5697
a6426c6f
GM
56982000-12-20 Gerd Moellmann <gerd@gnu.org>
5699
03ff8aab
GM
5700 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
5701 into account.
5702
5703 * window.c (make_window): Initialize window's min_hscroll.
5704 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
5705 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
5706 to zero.
5707 (struct saved_window): New member min_hscroll.
5708 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
5709 (Fset_window_configuration): Set window's min_hscroll.
5710 (save_window_save): Save window's min_hscroll.
5711 (compare_window_configurations): Compare min_hscroll values.
5712
5713 * window.h (struct window): New member min_hscroll.
5714
5715 * keyboard.c (echo_prompt): Prevent a compiler warning.
5716
8de4aaf8
GM
5717 * xdisp.c (try_cursor_movement): Fix last change. The real
5718 condition is that PT is at the end of the row, and should
5719 be displayed at the start of the next row.
52283633 5720
3f7e3031
GM
5721 * xdisp.c (try_cursor_movement): If we end on a partially
5722 visible line, end we already decided to scroll, return -1.
5723
a6426c6f
GM
5724 * dispextern.h (ensure_frame_matrix): Add prototype.
5725
5726 * window.c (delete_window, Fsplit_window)
5727 (Fset_window_configuration): Call ensure_frame_matrix.
5728
52283633
SM
5729 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
5730 New functions.
a6426c6f
GM
5731 (adjust_frame_glyphs_for_frame_redisplay): If display has been
5732 completed, call fake_current_matrices instead of marking frame
5733 garbaged.
5734
57fa2774
JR
57352000-12-20 Jason Rumney <jasonr@gnu.org>
5736
5737 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
5738
d925df90
EZ
57392000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5740
5741 * fns.c (Frequire): Doc fix.
5742
7b93a85b
GM
57432000-12-19 Gerd Moellmann <gerd@gnu.org>
5744
52283633 5745 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 5746
c74e645b
GM
5747 * dispnew.c (direct_output_for_insert): Fix check for mini-window
5748 currently displaying a message.
5749
7b93a85b
GM
5750 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
5751 xterm.h.
5752 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
5753
90d97e64
AI
57542000-12-18 Andrew Innes <andrewi@gnu.org>
5755
5756 * w32.c (w32_strerror): New function.
5757
5758 * w32.h (w32_strerror): New extern.
5759
5760 * w32fns.c (Fw32_shell_execute): Use it.
5761
91c9e6ce
GM
57622000-12-18 Gerd Moellmann <gerd@gnu.org>
5763
5764 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
5765
6f4745e2
EZ
57662000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5767
5768 * msdos.c (IT_set_face): Obey inverse_video.
5769
c9e088ce
KH
57702000-12-18 Kenichi Handa <handa@etl.go.jp>
5771
5772 * dired.c (directory_files_internal): Always return decoded filenames.
5773
c3695f5f
GM
57742000-12-18 Gerd Moellmann <gerd@gnu.org>
5775
52d8e4ff
GM
5776 * xterm.c (x_connection_closed): Prevent being called recursively
5777 because of an error condition in XtCloseDisplay.
52283633 5778
62be9979
GM
5779 * xdisp.c (init_iterator): If noninteractive, and the frame's
5780 face cache is null, make one.
5781
52283633 5782 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 5783
c3695f5f
GM
5784 * process.c (wait_reading_process_input): Check for pending
5785 input when running timers.
5786
78555fbe
EZ
57872000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5788
52283633 5789 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 5790
b2b36264
KH
57912000-12-18 Kenichi Handa <handa@etl.go.jp>
5792
5793 * process.c (read_process_output): Don't run a filter if the code
5794 decoder produces nothing but carryover.
5795
9c543fbf
AI
57962000-12-17 Andrew Innes <andrewi@gnu.org>
5797
5798 * w32.c (sys_rename): Only check errno against EEXIST, and not
5799 EACCES, when determining whether rename failed because the target
5800 exists. This was resulting in indefinite looping on Windows 9x if
5801 the source file was locked by another process.
5802
5803 * w32fns.c (Ffile_system_info): New function.
5804 (syms_of_w32fns): Defsubr it.
5805
10c2b5a8
GM
58062000-12-17 Gerd Moellmann <gerd@gnu.org>
5807
b0228ace
GM
5808 * window.c (coordinates_in_window): Fix computation for
5809 position on vertical line between mode lines.
5810
10c2b5a8
GM
5811 * xfns.c (unwind_create_frame): Return t if frame was deleted.
5812 Don't alter tip_frame or tip_window.
5813 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5814 was deleted.
5815
c844a81a
GM
5816 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
5817 Don't alter tip_frame or tip_window.
5818 (unwind_create_tip_frame): Set tip_frame to nil only if frame
5819 was deleted.
5820
6c825f8e
EZ
58212000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
5822
5823 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
5824 be consistent with the doc string. Reported by NAKAJIMA Mikio
5825 <minakaji@osaka.email.ne.jp>.
5826
af4bb4c8
KH
58272000-12-16 Kenichi Handa <handa@etl.go.jp>
5828
5829 * xfaces.c (Vface_ignored_fonts): New variable.
5830 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
5831 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
5832
8062e53a
GM
58332000-12-15 Gerd Moellmann <gerd@gnu.org>
5834
e87b8809
GM
5835 * dispnew.c (update_window): Detect pending input every nth line
5836 updated, i.e. do it depending on real work done, and not on the
5837 vpos of the line.
5838
5839 * xterm.c (expose_window): Don't redraw the window that's
5840 currently being updated.
5841
a6768cc5
GM
5842 * window.c (Fset_window_point): Remove test for
5843 cursor_in_non_selected_windows.
5844
4ea7fdca
GM
5845 * lread.c (read1): Recognize end of file after `\\'.
5846
8062e53a
GM
5847 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
5848 not unwind_create_frame.
5849
bb7959c1
GM
58502000-12-15 Dave Love <fx@gnu.org>
5851
5852 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
5853 bcopy & al.
5854
5855 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
5856
ced04c42
KH
58572000-12-15 Kenichi Handa <handa@etl.go.jp>
5858
c5443913
KH
5859 * coding.c (setup_coding_system): Clear all members of the struct
5860 coding_system at first.
bc137305
KH
5861 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
5862 argument.
5863 (code_convert_region): Don't override coding->src_multibyte and
5864 coding->dst_multibyte.
c5443913 5865
ced04c42
KH
5866 * fns.c (Fmd5): Docstring improved.
5867
c2d7f289
MB
58682000-12-15 Miles Bader <miles@gnu.org>
5869
5870 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
5871 are actually marked as mode-lines; otherwise use
5872 estimate_mode_line_height.
5873
9d7d9263
GM
58742000-12-14 Gerd Moellmann <gerd@gnu.org>
5875
5876 * editfns.c (Fformat): Prevent a buffer overrun when the format
5877 specifies a precision.
5878
7cf0153a
EZ
58792000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
5882 argument is outside the range [2..3].
5883
1de0f662
AI
58842000-12-14 Andrew Innes <andrewi@gnu.org>
5885
5886 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
5887 nothing to do. Bind inhibit-quit.
5888 (tip_frame): Make it a Lisp_Object.
5889 (x_create_tip_frame): Set tip_frame after it has been added to
5890 Vframe_list.
5891 (Fx_show_tip): Don't set tip_frame here.
52283633 5892 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
5893 (unwind_create_frame, unwind_create_tip_frame): New functions.
5894 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5895 while a frame is only partially constructed.
5896
5897 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
5898 (x_free_frame_resources): New function.
5899 (x_destroy_window): Use it.
5900
02387dcc
GM
59012000-12-14 Gerd Moellmann <gerd@gnu.org>
5902
5903 * xfns.c (Fx_backspace_delete_keys_p): New function.
5904 (syms_of_xfns): Defsubr it.
5905
5906 * config.in (HAVE_XKBGETKEYBOARD): Add.
5907
0544ef49
KH
59082000-12-14 Kenichi Handa <handa@etl.go.jp>
5909
98d62747
KH
5910 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
5911 Always store string in multibyte representation in echobuf.
5912 (echo_char): Always store string in multibyte representation in
5913 echobuf.
5914 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
5915 (read_key_sequence): Adjusted for the change of echo_prompt.
5916
a20193cd
KH
5917 * fns.c (Fmd5): Docstring improved.
5918
191b83b6
KH
5919 * lisp.h (detect_coding_system): Prototype adjusted.
5920
0544ef49
KH
5921 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
5922 (detect_coding_emacs_mule, detect_coding_iso2022,)
5923 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
5924 (detect_coding_utf_16, detect_coding_ccl): Make them static.
5925 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
5926 (detect_coding_mask, detect_coding_system): New argument
5927 MULTIBYTEP. Callers changed.
1da1bb05
KH
5928 (decode_coding_string): Set coding->src_multibyte and
5929 coding->dst_multibyte before calling detect_coding and detect_eol.
5930 Update them after some coding system is detected.
52283633 5931
d5b3eb1b
SM
59322000-12-13 Stefan Monnier <monnier@cs.yale.edu>
5933
5934 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
5935
5936 * keyboard.c (menu_bar_items, tool_bar_items):
5937 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
5938
f7f8bb69
GM
59392000-12-13 Gerd Moellmann <gerd@gnu.org>
5940
52283633 5941 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
5942 New variables.
5943 (unwind_create_frame, unwind_create_tip_frame): New functions.
5944 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
5945 while a frame is only partially constructed.
5946
5947 * xterm.h (x_free_frame_resources): Declare.
5948
5949 * xterm.c (x_free_frame_resources): New function.
5950 (x_destroy_window): Use it.
5951
e10da507
GM
5952 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
5953 don't interrupt the update for pending input initially, i.e.
5954 update at least some lines.
5955
5956 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 5957
d5b3eb1b 5958 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
5959
5960 * xfns.c (gray_bitmap_bits): Declare `char *'.
5961
90aa2856
GM
59622000-12-12 Gerd Moellmann <gerd@gnu.org>
5963
5964 * xdisp.c (display_tool_bar_line): Make sure that tool bar
5965 lines start with a relief line.
5966
a308c9cd
DL
59672000-12-12 Dave Love <fx@gnu.org>
5968
5969 * window.c (Fdisplay_buffer): Doc fix.
5970 (Fwindow_list): Remove unused var.
5971
5972 * buffer.h (mmap_set_vars): Declare.
5973
5974 * window.h (Fset_window_point): Declare.
5975
d575011f
EZ
59762000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
5977
bf6282d2 5978 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
5979 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
5980 variable `area'. When looking for a row under (X,Y), give up if some
5981 of the previous rows is not enabled.
d575011f 5982
ecf4d726
GM
59832000-12-12 Gerd Moellmann <gerd@gnu.org>
5984
2ebf6139
GM
5985 * window.c (Fset_window_point): If displaying cursors in windows
5986 other than the selected window, make sure redisplay updates
5987 other windows to show the new value of point in the window.
5988
5989 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
5990
bfdb75ee
GM
5991 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
5992 the buffer is the sole visible buffer when in the mini-buffer.
5993
52283633 5994 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
5995 Bind `inhibit-read-only' to t.
5996 (unwind_with_echo_area_buffer): Use AREF.
5997
c0006262
GM
5998 * xfns.c (Fx_hide_tip): Simplified.
5999
52283633
SM
6000 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6001 instead of `1'.
e9a59cad 6002
ecf4d726
GM
6003 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6004
e5959a9a
GM
60052000-12-11 Gerd Moellmann <gerd@gnu.org>
6006
a3642e49 6007 * xfns.c (Fx_hide_tip): Fix last change.
52283633 6008
44b5a125
GM
6009 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6010 nothing to do. Bind inhibit-quit.
6011 (tip_frame): Make it a Lisp_Object.
6012 (x_create_tip_frame): Set tip_frame after it has been added to
6013 Vframe_list.
6014 (Fx_show_tip): Don't set tip_frame here.
6015
6016 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6017
6018 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6019 Lisp_Object.
6020
6021 * dispextern.h: Change external declaration of tip_frame.
6022
d990421f
GM
6023 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6024 return an empty string.
6025
4db87380
GM
6026 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6027 of the window's update_mode_line flag, since the former is set by
6028 force-mode-line-update, not the latter. This makes
6029 column-number-mode slightly faster.
52283633 6030
e5959a9a
GM
6031 * xdisp.c (try_window_id) <all changes above window start>:
6032 Set the cursor.
6033
169fe44e
GM
60342000-12-11 Paul Eggert <eggert@twinsun.com>
6035
6036 * config.in (HAVE_FTELLO): Remove.
6037 (HAVE_FSEEKO): Add.
6038 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6039 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6040 HAVE_FTELLO.
6041 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6042 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 6043
59ec59ae
MB
60442000-12-11 Miles Bader <miles@gnu.org>
6045
6046 * window.c (displayed_window_lines): Don't round up when
6047 converting empty space at bottom to lines.
ff904dd6
MB
6048 Handle non-newline-terminated final lines properly.
6049 (Fwindow_text_height): New function (used to be in lisp).
6050 (syms_of_window): Initialize it.
59ec59ae 6051
42ebfa31
SM
60522000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6053
6054 * syntax.c (scan_lists): Check that the right quote char has the
6055 right Sstring syntax when jumping over strings.
6056 (init_syntax_once): Use Smax rather than 13.
6057
5cdb3cf3
MB
60582000-12-09 Miles Bader <miles@gnu.org>
6059
6060 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6061 with PARTIALLY, inverting the sense.
6062 (window_scroll_pixel_based): Scroll partially visible lines into
6063 place if we hit the beginning or end of the buffer.
a12167c5
MB
6064 (displayed_window_lines): Don't include partially visible lines.
6065 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 6066
842b2a94
GM
60672000-12-08 Gerd Moellmann <gerd@gnu.org>
6068
6069 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6070
6071 * tparam.c (tparam1): Change the way buffers are reallocated to be
6072 portable and less obfuscated.
6073
6074 * termcap.c (tgetent): Change the way buffers are reallocated to
6075 be portable and less obfuscated.
6076
6077 * macros.c (store_kbd_macro_char): Change the way buffers are
6078 reallocated to be portable and less obfuscated.
6079
6080 * lread.c (read1): Change the way buffers are reallocated to be
6081 portable and less obfuscated.
6082
6083 * doc.c (Fsubstitute_command_keys): Change the way buffers
6084 are reallocated so that it is portable.
6085
137cad7c
EZ
60862000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6087
6088 * dosfns.c (Ffile_system_info): New function.
6089 (syms_of_dosfns): Defsubr it.
6090
5c7f629c
SM
60912000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6092
6093 * alloc.c (gc_sweep): Add comment.
6094
959e647d
GM
60952000-12-07 Gerd Moellmann <gerd@gnu.org>
6096
52283633
SM
6097 * sound.c (vox_configure): Change order of ioctls.
6098 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
6099 Ignore errors when changing volume.
6100 (vox_close): Don't reset the device.
6101
926b7e5e
GM
6102 * process.c (read_process_output): Make sure the process marker's
6103 position is valid when the process buffer is changed in
6104 after-change functions. W3 does that.
52283633 6105
959e647d
GM
6106 * xfns.c (x_free_gcs): New function.
6107
6108 * xterm.h (x_free_gcs): Add prototype.
6109
6110 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6111 freeing GCs here.
6112
6113 * xterm.c (x_destroy_window): Call x_free_gcs so that
6114 resources of non-toolkit X windows will be freed.
6115
478ea067
AI
61162000-12-07 Andrew Innes <andrewi@gnu.org>
6117
6118 * w32fns.c (xlfd_charset_of_font): Fix last change.
6119
fbee3231
DL
61202000-12-06 Dave Love <fx@gnu.org>
6121
67292061
DL
6122 * md5.h (__P): Don't define -- it comes from config.h.
6123
fbee3231
DL
6124 * strftime.c: Change some #if foo to #ifdef foo.
6125
4ee87dbb
AI
61262000-12-06 Andrew Innes <andrewi@gnu.org>
6127
6128 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6129
52283633 6130 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 6131 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 6132 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 6133
9765b4a4
GM
61342000-12-06 Gerd Moellmann <gerd@gnu.org>
6135
d285b373
GM
6136 * alloc.c (gc_sweep): Prevent symbols read during loadup
6137 from being freed.
6138
384333ee
GM
6139 * xdisp.c (underlying_face_id): New function.
6140 (handle_face_prop, face_before_or_after_it_pos): Use it
6141 to determine the face ``under'' a string. Let strings inherit
6142 the face of the buffer under them.
6143
6144 * xfaces.c (face_at_string_position): Update function comment.
52283633 6145
d4b72d58
GM
6146 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6147 matrix if the window's left position has changed; we need to
6148 redraw it in this case.
6149
6150 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6151
e1d05387
GM
6152 * window.c (coordinates_in_window): Check mouse on mode-line or
6153 header-line first.
6154
eb1b0c74
GM
6155 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6156 advertized by the function documentation.
6157
d94d636f
GM
6158 * window.c (syms_of_window): Doc fix.
6159
3887b449
GM
6160 * sound.c (vox_configure): Set volume for left and right channel.
6161 (sound_cleanup): Return nil.
6162
efc8f57a
GM
6163 * xdisp.c (move_it_by_lines): Fix paren typo.
6164
9765b4a4
GM
6165 * xterm.c (x_load_font): Don't use the font's max_bounds for
6166 computing the height of the font. If max_bounds' ascent or
6167 descent are greater than the font's ascent or descent, this means
6168 glyphs overlap, which should be handled now by redisplay.
6169
6529ed87
GM
6170 * window.c (Veven_window_heights): New variable.
6171 (syms_of_window): DEFVAR_LISP it.
6172 (Fdisplay_buffer): Check Veven_window_heights before evening the
6173 window heights.
52283633 6174
0eb2ecde
MB
61752000-12-06 Miles Bader <miles@gnu.org>
6176
6177 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6178 update `default-frame-alist' instead of setting no frame parameters.
6179
03d7a167
KH
61802000-12-06 Kenichi Handa <handa@etl.go.jp>
6181
6182 * composite.c (update_compositions): Fix typo (use the correct
6183 variable).
6184
5f8803c2
JR
61852000-12-05 Jason Rumney <jasonr@gnu.org>
6186
6187 * md5.h: Remove underscores from function declarations.
6188 (__attribute__, __alignof__) [!__GNUC__]: Define.
6189
6190 * md5.c: Delay include of md5.h until after namespace cleaning.
6191
c28a075b
JR
6192 * makefile.w32-in (fns.o): Depend on md5.h
6193 (md5.o): New target.
6194 (sunfns.o): Remove.
6195
6196 * makefile.nt: Likewise.
6197
ff3c7056
JR
61982000-12-05 Jason Rumney <jasonr@altavista.net>
6199
6200 * w32term.c (expose_area): Complete last change.
6201
0c21eeeb
KR
62022000-12-05 Ken Raeburn <raeburn@gnu.org>
6203
6204 * minibuf.c: Include intervals.h.
6205
f201d732
JR
62062000-12-05 Jason Rumney <jasonr@gnu.org>
6207
6208 * w32term.c (x_produce_glyphs): If a font for a component of
6209 a composition is not found, use 1 pixel dot ascent and 0 dot
6210 descent value to avoid displaying terribly tall empty boxes.
6211 (expose_area): Pass x-coordinate relative to the exposed
6212 area to x_draw_glyphs instead of a window-relative coordinate.
6213
21999ab9
GM
62142000-12-05 Gerd Moellmann <gerd@gnu.org>
6215
4d2036e4
GM
6216 * xdisp.c (next_element_from_ellipsis): Save face before selective
6217 display in saved_face_id, and set face_before_selective_p.
6218 (reseat_1): Reset face_before_selective_p.
6219 (append_space, extend_face_to_end_of_line): If iterator's
6220 face_before_selective_p is set, use the face from saved_face_id.
6221 (extend_face_to_end_of_line): For tty frames, make sure to
6222 use the right face id when producing spaces at the end of
6223 the line.
6224
6225 * dispextern.h (struct it): Add face_before_selective_p.
6226
52be17cc
GM
6227 * keyboard.c (record_char): Don't record identical help-echo
6228 events in recent_keys.
6229
8a4f36cc
GM
6230 * xterm.c [USE_X_TOOLKIT]: Close the display.
6231 (xim_close_dpy): Handle case that the display has been closed.
6232
57d6e381
GM
6233 * xterm.c (x_destroy_window): Reset the frame's X window after
6234 destroying it.
6235
21999ab9
GM
6236 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6237 variable window_width.
6238 (line_draw_cost): Fix code skipping over spaces at the end of the
6239 line when must_write_spaces is not set.
6240 (scrolling_window): Fix code inserting runs in list of all runs.
6241
91372bb7
KH
62422000-12-05 Kenichi Handa <handa@etl.go.jp>
6243
6244 * coding.c (setup_coding_system): Be sure to initialize
6245 coding->category_idx.
6246
6c083b4c
GM
62472000-12-04 Gerd Moellmann <gerd@gnu.org>
6248
0c68ce6f 6249 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 6250
6452929e
GM
6251 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6252 area to x_draw_glyphs instead of a window-relative coordinate.
6253
d7f31e22
GM
6254 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6255 error in the message.
6256
ae18aa3b
GM
6257 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6258 timer after having read a key. It's not good for code reading
6259 several keys in a loop, like an input method.
6260
caa15ef7
GM
6261 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6262 record undo information for format-decode.
6263
6264 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6265 current buffer is read-only, not if it isn't.
6266
6c083b4c
GM
6267 * keyboard.c (record_char): Record `help-echo' input events
6268 in recent_keys only if they display some help. Don't record
6269 `help-echo' events as macro char.
6270
caa15ef7
GM
62712000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6272
6273 * editfns.c (save_excursion_restore): Don't move point
6274 in another window if it is showing the wrong buffer.
6275 Avoid the call to Fwindow_live_p, for speed.
6276
5a13529b
KH
62772000-12-04 Kenichi Handa <handa@etl.go.jp>
6278
e225faa7
KH
6279 * xfaces.c (struct font_name): New member registry_priority.
6280 (split_font_name): Initialize the above member to zero.
6281 (concat_font_list): New function.
6282 (font_list): Include fonts of all alternative registries.
6283 (FONT_POINT_SIZE_QUANTUM): New macro.
6284 (better_font_p): Ignore point size difference less than
6285 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6286
e89648b4
KH
6287 * xterm.c (x_produce_glyphs): If a font for a component of
6288 a composition is not found, use 1 pixel dot ascent and 0 dot
6289 descent value to avoid displaying terribly tall empty boxes.
6290
5a13529b
KH
6291 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6292
d7935eb6
KR
62932000-12-03 Ken Raeburn <raeburn@gnu.org>
6294
6295 * coding.h (code_convert_string1): Declare.
6296
6297 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6298
52283633 6299 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 6300
0dd5e255
JR
63012000-12-02 Jason Rumney <jasonr@gnu.org>
6302
6303 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6304 correctly for single byte character case.
6305 (w32_per_char_metric): Do not try to make any assumptions about
6306 the metrics of BDF fonts.
250cfece 6307 (x_estimate_mode_line_height): If `mode-line' face
52283633 6308 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
6309 (note_mouse_highlight): Change the cursor shape on the vertical
6310 border between windows [not enabled].
6311
6312 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6313
6314 * w32fns.c (Fx_create_frame): Reintroduce the call to
6315 face-set-after-frame-defaults.
6316 (Vx_window_horizontal_drag_shape): New variable.
6317 (syms_of_xfns): DEFVAR_LISP it.
6318 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6319 enabled].
0dd5e255 6320
b5d8d2ca
GM
63212000-12-02 Simon Josefsson <simon@josefsson.org>
6322
6323 * fns.c (Fmd5): Use a different logic to decide the coding system
6324 to use.
6325
6326 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6327
fbb87147
EZ
63282000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6329
52283633 6330 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 6331
447e9da0
GM
63322000-12-01 Gerd Moellmann <gerd@gnu.org>
6333
7708ced0
GM
6334 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6335 height for YNegative.
6336 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6337 height; also see comment there.
6338
447e9da0
GM
6339 * window.c (coordinates_in_window): Handle computations for
6340 positions on the vertical bar and fringes differently for
6341 window-system frames. Consider some pixels near the vertical bar
6342 as on the bar if the frame doesn't have vertical scroll bars.
6343 Associate positions between mode or header lines with the
6344 right window, the left one.
6345
86d1db20
JR
63462000-12-01 Jason Rumney <jasonr@gnu.org>
6347
6348 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6349
6350 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6351 invalid frame.
6352
a1d58e5b
GM
63532000-12-01 Gerd Moellmann <gerd@gnu.org>
6354
52283633 6355 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
6356 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
6357 (save_window_save, Fset_window_configuration): Save/restore
6358 window's orig_top and orig_height.
6359
89c609af
JR
63602000-12-01 Jason Rumney <jasonr@gnu.org>
6361
4d177746 6362 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 6363
89c609af
JR
6364 * w32fns.c (x_set_cursor_color): Fix last change.
6365
eccc05db
GM
63662000-11-30 Gerd Moellmann <gerd@gnu.org>
6367
31b6671b
GM
6368 * xdisp.c (echo_area_display): If cursor is in the echo area, make
6369 sure that the next redisplay displays the minibuffer, so that
6370 the cursor will be replaced with what the minibuffer wants.
6371
eccc05db
GM
6372 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
6373 #ifndef instead of using #if.
6374 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
6375 USE_TOOLKIT_SCROLL_BARS is defined.
6376
162de750
JR
63772000-11-30 Jason Rumney <jasonr@gnu.org>
6378
6379 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
6380 x_display_cursor.
6381
693c4692
GM
63822000-11-30 Gerd Moellmann <gerd@gnu.org>
6383
6384 * fns.c (Fmd5): Doc fix.
6385
b5d8d2ca 63862000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
6387
6388 * fns.c (Fmd5): New function.
6389 (syms_of_fns): Defsubr md5.
6390
6391 * Makefile.in (obj): Add md5.o
6392
b02cd40b
GM
63932000-11-30 Gerd Moellmann <gerd@gnu.org>
6394
edfb795e
GM
6395 * md5.h, md5.c: New files, taken from glibc.
6396
df3aedcf
GM
6397 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
6398
b02cd40b 6399 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 6400 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 6401
8b5176cd
SM
64022000-11-29 Stefan Monnier <monnier@cs.yale.edu>
6403
6404 * eval.c (Frun_hooks): Allow 0 arguments.
6405
346598f1
GM
64062000-11-29 Gerd Moellmann <gerd@gnu.org>
6407
f9396e03
GM
6408 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
6409 is over the menu bar widget, say it's not on the frame.
6410
4a967a9b
GM
6411 * xfns.c (Fx_create_frame): Reintroduce the call to
6412 face-set-after-frame-defaults.
6413
346598f1
GM
6414 * eval.c (Fsignal): Reset handling_signal.
6415
222456a1
JR
64162000-11-28 Jason Rumney <jasonr@gnu.org>
6417
6418 * w32menu.c (add_menu_item): Reset menu item text when changing
6419 type to radio button.
6420
8049ddc0
GM
64212000-11-28 Gerd Moellmann <gerd@gnu.org>
6422
346598f1 6423 * xselect.c: Update copyright.
f4f4ee4d 6424
bebe4a2c
GM
6425 * window.c (coordinates_in_window): If on a mode or header line,
6426 but sufficiently close to its start, return ``on vertical
6427 border''. This gives us a way to drag windows horizontally when
6428 using toolkit scroll bars.
6429
6430 * xterm.c (note_mouse_highlight): Change the cursor shape
6431 on the vertical border between windows.
6432
6433 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
6434
6435 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
6436 (syms_of_xfns): DEFVAR_LISP it.
6437 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
6438
8d2c2642
GM
6439 * textprop.c (text_read_only): New function.
6440 (verify_interval_modification): Use it instead of signaling
6441 `text-read-only'. This makes it easier to catch this error
52283633 6442 with a breakpoint.:
8d2c2642 6443
52283633 6444 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
6445 not end of line, which includes CR.
6446
5a2bae6c
KH
64472000-11-28 Kenichi Handa <handa@etl.go.jp>
6448
6449 * coding.c (Ffind_coding_systems_region_internal): Be sure to
6450 include no-conversion.
6451
ae31f84d
JR
64522000-11-27 Jason Rumney <jasonr@gnu.org>
6453
6454 * w32fns.c (w32_load_system_font): Always mark font as double byte
6455 if codepage is unicode.
6456
67f1cf4c
GM
64572000-11-27 Gerd Moellmann <gerd@gnu.org>
6458
4a74d071 6459 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 6460 just consume it to avoid unintended skipping over invisible text below.
4a74d071 6461
902ae620
GM
6462 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
6463 `vertical-line', `mode-line' and `header-line' events.
6464
6465 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
6466 of a character, a TAB for instance. This is easier than to set
6467 up the iterator exactly, and it's not a frequent case, so the
6468 additional effort wouldn't really pay off.
6469
c1e279c2
AC
64702000-11-26 Andrew Choi <akochoi@i-cable.com>
6471
67f1cf4c 6472 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
6473 init_window_once.
6474
a609568a
JR
64752000-11-25 Jason Rumney <jasonr@gnu.org>
6476
52283633
SM
6477 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
6478 Args to window_from_coordinates should be pixel coordinates.
48b21762 6479
a609568a
JR
6480 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
6481 redisplay handles them properly.
6482
a658d039
MB
64832000-11-25 Miles Bader <miles@gnu.org>
6484
6485 * indent.c (compute_motion): Keep pos_byte in sync with pos.
6486
d3416cca
JR
64872000-11-24 Jason Rumney <jasonr@gnu.org>
6488
6489 * w32.c (init_environment): Set LANG environment variable based on
6490 locale settings, if not set.
6491
6492 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
6493 making tool bar smaller. When clearing the frame, also
6494 clear current matrices. Clear frame when tool bar disappears.
6495 Don't use more lines for the tool-bar than is available.
6496 (x_change_window_heights): New function.
6497
ba193890
GM
64982000-11-24 Gerd Moellmann <gerd@gnu.org>
6499
2be8f184
GM
6500 * xdisp.c (init_from_display_pos): If POS says we're already after
6501 an overlay string ending at POS, make sure to pop the iterator
6502 because it will be in front of that overlay string. When POS is
6503 ZV, we've thereby also ``processed'' overlay strings at ZV.
6504
ba193890
GM
6505 * xfaces.c (lface_from_face_name): Function comment fix.
6506
1862a24e
MB
65072000-11-24 Miles Bader <miles@gnu.org>
6508
6509 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
6510 apply `mode-line-inverse-video' -- zero means force display using
6511 the default face, non-zero means display using the specialized face.
6512 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
6513
f07fa1b8
KH
65142000-11-23 Kenichi Handa <handa@etl.go.jp>
6515
6516 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
6517 hard coded `4'.
6518
2bcdf662
EZ
65192000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6520
6521 * coding.c (decode_coding_emacs_mule): Fix the case of
6522 CODING_EOL_LF, which used uninitialized value of c.
6523
ba8299ff
SM
65242000-11-23 Stefan Monnier <monnier@cs.yale.edu>
6525
6526 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
6527
f4117c4d
GM
65282000-11-22 Gerd Moellmann <gerd@gnu.org>
6529
03e757c1
GM
6530 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
6531 buffer object.
6532
f4117c4d
GM
6533 * frame.h (struct frame): Replace desired_tool_bar_items,
6534 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 6535 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
6536
6537 * frame.c (make_frame): Change initialization of tool bar
6538 items accordingly.
6539
6540 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 6541 Change references to members deleted from struct frame to use the
f4117c4d
GM
6542 new ones.
6543
6544 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 6545 references to members deleted from struct frame to use the new ones.
f4117c4d 6546
52283633 6547 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
6548
6549 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
6550
6551 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 6552 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
6553 from struct frame to use the new ones.
6554
f8e2f3f2
MB
65552000-11-23 Miles Bader <miles@gnu.org>
6556
6557 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
6558 the face's inverse-video attribute, rather than overriding it.
6559
60e8e0a5
GM
65602000-11-22 Gerd Moellmann <gerd@gnu.org>
6561
6562 * xfns.c (x_set_tool_bar_lines): Clear internal border when
6563 making tool bar smaller.
6564
92dd1b29
DL
65652000-11-22 Dave Love <fx@gnu.org>
6566
6567 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
6568
e672fdce
MB
65692000-11-22 Miles Bader <miles@gnu.org>
6570
3a17d6cc
MB
6571 * keyboard.c (Vminibuffer_message_timeout): New variable.
6572 (command_loop_1): Use it to determine message timeout.
6573 (syms_of_keyboard): Initialize it.
6574
60e8e0a5 6575 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 6576
e9655d81
KH
65772000-11-22 Kenichi Handa <handa@etl.go.jp>
6578
6579 * sysdep.c: Move the code for declaring h_errno after #include
6580 <netdb.h>.
6581
77270fac
GM
65822000-11-21 Gerd Moellmann <gerd@gnu.org>
6583
cd913aae
GM
6584 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
6585 the menu bar when the tooltip is unmapped.
6586
77270fac
GM
6587 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
6588 sole visible buffer when we're currently in the mini-buffer, and
6589 give up if so.
52283633 6590
556635d6
JR
65912000-11-21 Jason Rumney <jasonr@gnu.org>
6592
6593 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
6594 put on the clipboard.
6595 (Fw32_get_clipboard_data): Compare data on clipboard with saved
6596 copy of what Emacs last put there. If they are the same, do not
52283633 6597 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 6598
5b7bde64
MB
65992000-11-22 Miles Bader <miles@gnu.org>
6600
6601 * minibuf.c (Vminibuffer_prompt_properties): New variable.
6602 (syms_of_minibuf): Initialize it.
6603 (read_minibuf): Add properties from Vminibuffer_prompt_properties
6604 to prompt, don't make read-only.
6605
ff23e1dd
GM
66062000-11-21 Gerd Moellmann <gerd@gnu.org>
6607
52283633
SM
6608 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
6609 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 6610
7aaf4388
GM
6611 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
6612
f5f47add 6613 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 6614
ff23e1dd
GM
6615 * term.c, cm.c: Don't try to include termcap.h; see comment there.
6616
37c35586
KH
66172000-11-21 Kenichi Handa <handa@etl.go.jp>
6618
6619 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
6620 ... #endif scope.
6621
ff9ab414
GM
66222000-11-20 Gerd Moellmann <gerd@gnu.org>
6623
52283633 6624 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
6625 screen supports it.
6626
29a01b72
GM
6627 * s/gnu-linux.h: Don't use `#cpu'.
6628
09dfdf85
GM
6629 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
6630 not defined in mman.h.
6631
52283633 6632 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
6633 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
6634 and store an index in the XClientMessageEvent. Storing a
6635 Lisp_Object or pointer can fail on a 64 bit system, since X only
6636 transfers 32 bits.
52283633
SM
6637 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
6638
81459ac9
DL
66392000-11-20 Dave Love <fx@gnu.org>
6640
6641 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
6642
56c13ae6
GM
66432000-11-20 Gerd Moellmann <gerd@gnu.org>
6644
6645 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
6646
495a6df3
KH
66472000-11-20 Kenichi Handa <handa@etl.go.jp>
6648
2bcf3714
KH
6649 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
6650 by WIDTH.
6651
495a6df3
KH
6652 * alloc.c (make_string): Fix previous change. Be sure to make
6653 unibyte string correctly.
6654
6d950f4c
GM
66552000-11-19 Gerd Moellmann <gerd@gnu.org>
6656
39b39373
GM
6657 * window.c (Fwindow_list): Change parameter list to be XEmacs
6658 compatible.
6659 (window_list_1): New function.
6660 (window_loop): Use it instead of Fwindow_list.
6661
b95b34e5
GM
6662 * sysdep.c (emacs_ospeed): New variable.
6663 (toplevel): Don't declare ospeed extern.
6664 (init_baud_rate): Use emacs_ospeed instead of ospeed.
6665
6666 * termcap.c (ospeed): Remove.
6667 (tputs) [!emacs]: Remove unused code.
6668 (tgetent): Avoid a compiler warning.
6669
e83dc917
GM
6670 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
6671 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 6672 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
6673
6674 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
6675 removed.
6676 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
6677 Take the X display as additional argument.
6678 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
6679 `Widget' is a pointer type that's not easily stored in Lisp_Object
6680 form in a portable way.
52283633 6681
6d950f4c
GM
6682 * dispnew.c (update_text_area): Fix last change.
6683
e47306e6
GM
66842000-11-18 Gerd Moellmann <gerd@gnu.org>
6685
fb3cd89b
GM
6686 * xdisp.c: Use BINDING_STACK_SIZE throughout.
6687
6688 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
6689 clear current matrices.
6690
edaa9aed
GM
6691 * buffer.c (mmap_enlarge): Don't print a message on stderr
6692 if mapping new memory at the end of the existing region fails.
6693
e47306e6
GM
6694 * dispnew.c (update_text_area): Don't skip over equal glyphs
6695 when the last current glyph overlaps the glyph to its right.
6696
509633e3
MB
66972000-11-18 Miles Bader <miles@gnu.org>
6698
6699 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
6700 lines that *end* with "..." too (that's the most common case!).
6701
d392e9c5
GM
67022000-11-18 Gerd Moellmann <gerd@gnu.org>
6703
67988445
GM
6704 * xdisp.c (resize_mini_window): Temporarily change to the
6705 mini-window's buffer if necessary.
1bfdbe43 6706
d392e9c5
GM
6707 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
6708 the tooltip obscures less text under it.
6709
67102000-11-17 Gerd Moellmann <gerd@gnu.org>
6711
6712 * puresize.h (BASE_PURESIZE): Increase to 700000.
6713
92bb977f
JR
67142000-11-18 Jason Rumney <jasonr@gnu.org>
6715
6716 * w32term.c (w32_draw_bitmap): Use face to set colors.
6717
26fbf20b
DL
67182000-11-17 Dave Love <fx@gnu.org>
6719
6720 * lread.c (Fload): Fix #ifdef for pcc.
6721
100b593b
GM
67222000-11-17 Gerd Moellmann <gerd@gnu.org>
6723
6724 * xdisp.c (pos_visible_p): Compute the default character height
6725 differently.
6726
a288d0d1
GM
67272000-11-16 Gerd Moellmann <gerd@gnu.org>
6728
cac94de6 6729 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 6730 knowing the line's height; use the default font's height in that case.
cac94de6 6731
a288d0d1
GM
6732 * xfaces.c (weight_table): Add `demi' with the same meaning as
6733 `demibold'.
6734
981fb6f6
KH
67352000-11-16 Kenichi Handa <handa@etl.go.jp>
6736
2cca872d 6737 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
6738 (clear_glyph_row): Delete local static variable null_row.
6739
e5fa381b
JR
67402000-11-15 Jason Rumney <jasonr@gnu.org>
6741
6742 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
6743 (w32_alloc_lighter_color): Use new brightness calculations from
6744 xterm.c. Scale delta to be in the range expected by W32.
6745 (w32_draw_relief_rect): Use frame relief colors.
6746
8e42f043
GM
67472000-11-15 Gerd Moellmann <gerd@gnu.org>
6748
6d133d1f
GM
6749 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
6750 (Qinhibit_default_face_x_resources): New variable.
6751 (syms_of_frame): Initialize it.
6752 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
6753
6754 * xdisp.c (pos_visible_p): Improve function comment.
6755
6756 * lisp.h (BINDING_STACK_SIZE): New macro.
6757
8e42f043
GM
6758 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
6759 reading the directory if readdir returns null and errno is EAGAIN
6760 or EINTR.
6761
e8c87124
SM
67622000-11-14 Stefan Monnier <monnier@cs.yale.edu>
6763
6764 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
6765 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
6766 Set amount_to_scroll to max of dx and scroll_step so that
6767 scroll-conservatively doesn't defeat scroll-step>1.
6768 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
6769 scroll-conservatively for line-at-a-time scrolling.
6770
5f0c971d
GM
67712000-11-14 Gerd Moellmann <gerd@gnu.org>
6772
6773 * window.c (Fpos_visible_in_window_p): Call pos_visible with
6774 extra argument.
6775
6776 * xdisp.c (current_mode_line_height, current_header_line_height):
6777 New variables.
6778 (init_xdisp): Initialize them.
6779 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
6780 and use exact mode line heights if it is set.
6781
6782 * lisp.h (pos_visible_p): Change prototype.
6783
6784 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
6785 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
6786 and current_header_line_height first.
52283633
SM
6787 (current_mode_line_height, current_header_line_height):
6788 Declare extern.
5f0c971d 6789
d7361edf
MB
67902000-11-14 Miles Bader <miles@lsi.nec.co.jp>
6791
6792 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
6793 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
6794 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
6795
ee5e440a
MB
67962000-11-14 Miles Bader <miles@gnu.org>
6797
6798 * xterm.c (x_alloc_lighter_color): Include an additive component
6799 too for dark colors, because FACTOR isn't enough.
6800 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
6801 New macros.
6802
5ca020fc
GM
68032000-11-13 Gerd Moellmann <gerd@gnu.org>
6804
6805 * keyboard.c (show_help_echo): Call message3_nolog with number of
6806 bytes in the help string as 2nd parameter, instead of the number
6807 of characters.
6808
9d348294
MB
68092000-11-13 Miles Bader <miles@gnu.org>
6810
6811 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
6812 (Fload): Use new openp return protocol.
6813 Don't try to use Vload_source_file_function to load .elc files.
6814 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
6815 openp return protocol.
6816 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
6817
1729bb9a
KH
68182000-11-11 Kenichi Handa <handa@etl.go.jp>
6819
4e677396
KH
6820 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
6821
6822 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
6823 Defined these macros.
6824 (NLIST_STRUCT): Avoid re-defining it.
6825
1729bb9a
KH
6826 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
6827 -I/usr/contrib/X11R6/include.
6828 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
6829
a82fe213
JR
68302000-11-10 Jason Rumney <jasonr@gnu.org>
6831
6832 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
6833
6834 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
6835 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
6836
6837 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
6838 (Qw32_charset_vietnamese): New symbol.
6839 (xlfd_charset_of_font): New function.
6840 (w32_load_system_font): Use it.
6841 (x_to_w32_charset): Use Fassoc to find charset info. Special case
6842 when Vw32_charset_info_alist is nil to ensure default face always
6843 has font. Use Fcar and Fcdr for safety.
6844 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
6845 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
6846 pseudo-codepages for special cases.
6847 (w32_to_x_font): New parameter to allow charset portion to be
6848 specified where there is many to one mapping. Callers changed.
6849 (w32_list_fonts): Avoid listing fonts that won't display.
6850
52d89894
GM
68512000-11-10 Gerd Moellmann <gerd@gnu.org>
6852
6853 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
6854 (font_list_1): Renamed from font_list.
6855 (font_list): New function, trying alternative registries from
6856 Vface_alternative_font_registry_alist.
6857 (Finternal_set_alternative_font_registry_alist): New function.
6858 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
6859 Vface_alternative_font_registry_alist.
6860 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 6861
651cd3da
KR
68622000-11-09 Ken Raeburn <raeburn@gnu.org>
6863
6864 * lisp.h (Flooking_at): Declare.
6865
388ac098
GM
68662000-11-09 Gerd Moellmann <gerd@gnu.org>
6867
778fbc46 6868 * dired.c (directory_files_internal): Fix a braino.
52283633 6869
388ac098
GM
6870 * dired.c (directory_files_internal): Add missing GCPRO's.
6871 Some cleanup.
6872
ecaedde1
GM
68732000-11-08 Gerd Moellmann <gerd@gnu.org>
6874
f7eb32aa
GM
6875 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
6876 (resize_mini_window): Return quickly if Vresize_mini_window is
6877 nil. Don't return if Vmax_mini_window_height is nil.
6878
6879 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
6880 (syms_of_xdisp): Initialize them.
6881 (resize_mini_window): Act according to the setting of
6882 Vresize_mini_window.
6883 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
6884
ecaedde1
GM
6885 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
6886 scroll bar widget after configuring it, so that it will appear at
6887 the right position from the start.
6888 (XTredeem_scroll_bar): Cleaned up.
6889
3747ef2c
KH
68902000-11-08 Kenichi Handa <handa@etl.go.jp>
6891
6892 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 6893 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
6894 division by two.
6895
6896 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
6897
03391420
DL
68982000-11-07 Dave Love <fx@gnu.org>
6899
7758f1c1 6900 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
6901
6902 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
6903
b5de343d
GM
69042000-11-07 Gerd Moellmann <gerd@gnu.org>
6905
acad3c0b
GM
6906 * window.c (Fset_window_configuration): Don't try to preserve
6907 point in the current buffer, if that buffer is displayed in more
6908 than one window.
6909
b5de343d
GM
6910 * xfaces.c (lookup_named_face): If default face isn't realized,
6911 try to realize it. Return -1 if not successful.
6912 (Fx_list_fonts): Handle case that face cannot be determined.
6913 (Fface_font): Likewise.
6914
cdb1fe49
GM
69152000-11-06 Gerd Moellmann <gerd@gnu.org>
6916
6917 * window.c (displayed_window_lines): Detect partially
6918 visible lines at the bottom correctly.
6919
d3a67486
SM
69202000-11-06 Stefan Monnier <monnier@cs.yale.edu>
6921
6922 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
6923 when ensuring we don't do visit in indirect buffer.
6924
ff8dd5d5
KH
69252000-11-06 Kenichi Handa <handa@etl.go.jp>
6926
6927 * composite.h (compose_chars_in_text): Add prototype.
6928
6929 * composite.c (Vcomposition_function_table): New variable.
6930 (Qcomposition_function_table): New variable.
6931 (run_composition_function): Call
6932 Vcompose_chars_after_function with three arguments.
6933 (compose_chars_in_text): New function.
6934 (syms_of_composite): Modified the doc-string of
6935 Vcompose_chars_after_function. Declare composition-function-table
6936 as a lisp variable, and initialize it.
6937
6938 * xfns.c (x_encode_text): Suppress producing escape sequences for
6939 composition.
6940
6941 * xselect.c: Include composite.h.
6942 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
6943
d1145f85
AI
69442000-11-05 Andrew Innes <andrewi@gnu.org>
6945
6946 * w32term.c (x_produce_glyphs): Fix typo in enum name.
6947
6948 * sysdep.c (read_input_waiting): Remove extraneous argument to
6949 read_socket_hook.
6950
6951 * w32fns.c (Fx_server_version): Include w32_build_number in the
6952 return list.
6953
6954 * w32heap.c (w32_build_number): New variable.
6955 (cache_system_info): Set it.
6956
6957 * w32heap.h (w32_build_number): Add extern.
6958
6959 * emacs.c (syms_of_emacs): Update docstring for
6960 system-configuration, to reflect the actual usage on MS-Windows.
6961
e85ee976
GM
69622000-10-31 Gerd Moellmann <gerd@gnu.org>
6963
26dcb81b
GM
6964 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
6965 process idle timers while waiting for another event.
6966
52283633 6967 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
6968 the default face are colored.
6969
e85ee976
GM
6970 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
6971 window height hasn't changed.
6972
01b220b6
JR
69732000-10-31 Jason Rumney <jasonr@gnu.org>
6974
6975 * w32term.c (x_produce_glyphs): Handle composite characters.
6976 (x_draw_glyph_string_foreground)
6977 (x_draw_composite_glyph_string_foreground): Restore old font.
6978
4e6b7204
MB
69792000-10-31 Miles Bader <miles@lsi.nec.co.jp>
6980
6981 * minibuf.c (read_minibuf): Reset the undo history just before
6982 starting the recursive-edit.
6983
d4358b37
GM
69842000-10-30 Gerd Moellmann <gerd@gnu.org>
6985
563f68f1
GM
6986 * xfaces.c (menu_face_change_count): New variable.
6987 (Finternal_set_lisp_face_attribute): Increment it for changes
6988 of the `menu' face.
6989 (realize_basic_faces): Reflect changes in the `menu' faces
6990 in menu bars.
6991
82e274d1
GM
6992 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
6993 dy obtained from the iterator's y-position after moving from
6994 scroll_margin_pos to PT; see comment there.
52283633 6995
0dbf9fd2
GM
6996 * xdisp.c (safe_eval_handler): Call add_to_log.
6997
906b3b14
GM
6998 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
6999 is not a symbol or string.
7000
d4358b37
GM
7001 * xdisp.c (echo_area_display): Don't perform a display update from
7002 inside redisplay. The update will happen anyway at the end of
7003 redisplay, and it can confuse redisplay (GC messages while
7004 redisplaying, for instance.)
7005
70c825df
SM
70062000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7007
cf9b4b0b
SM
7008 * xrdb.c (x_load_resources): Use the class name in the defaults.
7009
70c825df
SM
7010 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7011 (regex_compile): Catch bogus \(\1\).
7012
a1d34b1e
GM
70132000-10-30 Gerd Moellmann <gerd@gnu.org>
7014
cae71efe
GM
7015 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7016 RGB values.
52283633 7017
35efe0a1
GM
7018 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7019 we have a color cache, check that the cached color equals the
7020 allocated color. If not, clear the color cache.
7021
1d3baf74
GM
7022 * window.c (displayed_window_lines): Change buffers if necessary.
7023 Fix computation of displayed lines.
7024
a1d34b1e
GM
7025 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7026 update_menu_bindings to DEFVAR_BOOL.
7027
70737ea9
KH
70282000-10-30 Kenichi Handa <handa@etl.go.jp>
7029
70c825df 7030 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 7031
fa0cb51d
KH
7032 * puresize.h (BASE_PURESIZE): Increase to 680000.
7033
70737ea9
KH
7034 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7035
0e4c08e8
JR
70362000-10-29 Jason Rumney <jasonr@gnu.org>
7037
7038 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7039
7040 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7041 (w32_cache_char_metrics): Handle possibility that 'x' does not
7042 exist in a BDF font.
7043 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7044
7045 * w32bdf.h (bdffont): Add nchars.
7046
7047 * w32bdf.c (set_bdf_font_info): Set it.
7048 (w32_BDF_TextOut): Swap byte order of double byte characters.
7049 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7050
45b84006
EZ
70512000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7052
7053 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7054 don't override the colors in frame's param_alist, unless they are
7055 unspecified.
7056
7057 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7058 reverse the effect of the highlight flag.
7059
caf9deee
KR
70602000-10-27 Ken Raeburn <raeburn@gnu.org>
7061
7062 * window.h (Fwindow_live_p): Declare.
7063
ae0b9b46
KR
7064 * undo.c (record_delete): Check that last_undo_buffer is really a
7065 buffer before applying XBUFFER to it.
7066
7067 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7068 Faref.
7069
02067692
SM
70702000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7071
7072 * lisp.h (KEYMAPP): New macro.
7073 (get_keymap): Remove.
7074 (get_keymap_1): Rename get_keymap.
7075
7076 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7077
7078 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7079
7080 * xmenu.c (single_submenu): Use KEYMAPP.
7081 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7082 Use KEYMAPP rather than Fkeymapp.
7083
7084 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7085
7086 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7087 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7088 Use KEYMAPP rather than Fkeymapp.
7089 (single_submenu): Use KEYMAPP.
7090 (w32_menu_show, w32_dialog_show): Use TRUE.
7091
7092 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7093
7094 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7095 (Fkeymapp): Use KEYMAPP.
7096 (get_keymap): Rename from get_keymap_1. Remove old def.
7097 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7098 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7099 (Fminor_mode_key_binding): Don't raise an error if the binding
7100 is not a keymap.
7101 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7102 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7103
7104 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7105 Allow Vspecial_event_map to be autoloaded.
7106 (menu_bar_items): Fetch the keymap rather than using keymapp.
7107 (menu_bar_one_keymap): No need to follow func-indirect any more.
7108 (parse_menu_item): get_keymap_1 -> get_keymap.
7109 (tool_bar_items): Fetch the keymap rather than using keymapp.
7110 (read_key_sequence): Use KEYMAPP.
7111
7112 * intervals.c (get_local_map): Use get_keymap rather than following
7113 function-indirections explicitly.
7114
7115 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7116
f9d80af3
JR
71172000-10-27 Jason Rumney <jasonr@gnu.org>
7118
7119 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7120 point, as Windows has oversized fonts.
7121
7122 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7123
a3ba27da
GM
71242000-10-27 Gerd Moellmann <gerd@gnu.org>
7125
7126 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7127 (freehook, reallochook): Handle null pointer arguments.
7128 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7129
aa3b80cc
SM
71302000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7131
7132 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7133 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7134 Giving in to popular pressure to shut up the compiler with casts.
7135
e24e84cc
GM
71362000-10-27 Gerd Moellmann <gerd@gnu.org>
7137
7138 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7139 signed value, and use a default value computed from the font's
7140 maximum descent.
7141
05ea7ef2
MB
71422000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7143
7144 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7145 that specify a negative underline position can still use underlines.
7146
7147 * window.c (Fpos_visible_in_window_p): Make POS default to
7148 WINDOW's point, not the current buffer's point.
7149
0b95284b
DL
71502000-10-26 Dave Love <fx@gnu.org>
7151
7152 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7153 when it's necessary.
7154
6c5b90af
GM
71552000-10-26 Gerd Moellmann <gerd@gnu.org>
7156
8b6d9dc9
GM
7157 * window.c (size_window): Compute size difference from sum of old
7158 child window sizes instead of from parent's size.
7159
6bc92b2e
GM
7160 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7161 Handle obscured lines at the top of the window.
7162
7163 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7164 down after the last error condition check.
7165
6c5b90af
GM
7166 * frame.c (Fdelete_frame): Run delete-frame-hook.
7167
42f92d4d
KH
71682000-10-26 Kenichi Handa <handa@etl.go.jp>
7169
7170 * coding.c (decode_coding): Fix previous change (check also
7171 CODING_MODE_LAST_BLOCK).
7172
d97151cb
SM
71732000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7174
e7efc503
SM
7175 * regex.c: More `unsigned char' -> `re_char' changes.
7176 Also change several `int' into `re_wchar_t'.
7177 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7178 (PUSH_FAILURE_POINTER): Don't cast any more.
7179 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7180 We want GCC to complain, since this piece of code makes
7181 re_match non-reentrant, which *should* be fixed.
7182 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7183 (EXTEND_BUFFER): Use RETALLOC.
7184 (SET_LIST_BIT): Don't cast.
7185 (re_wchar_t): New type.
7186 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7187 that those two functions will always properly return.
7188 (IMMEDIATE_QUIT_CHECK): Cast to void.
7189 (analyse_first): Use recursion rather than an explicit stack.
7190 (re_compile_fastmap): Can't fail anymore.
7191 (re_search_2): Don't check re_compile_fastmap for failure.
7192 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7193 Now also sets the new value (passed in a new argument).
7194 (re_match_2_internal): Use it.
7195 Also, use a new var `reg' of type size_t when looping through regs
7196 rather than reuse the inappropriate `mcnt'.
7197
d97151cb
SM
7198 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7199 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7200 (where_is_internal): Renamed from Fwhere_is_internal.
7201 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7202 (Fwhere_is_internal): New function wrapping where_is_internal.
7203 (where_is_internal_1): Handle the case where we're filling the cache.
7204 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7205
d5789b65
MB
72062000-10-25 Miles Bader <miles@gnu.org>
7207
7208 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7209
4ecda532
GM
72102000-10-25 Gerd Moellmann <gerd@gnu.org>
7211
7212 * window.c (pos_fully_visible_p): Removed.
7213 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7214 if position is visible and/or fully visible.
7215
7216 * lisp.h (pos_visible_p): Add prototype.
7217
7218 * xdisp.c (pos_visible_p): New function.
7219
68c3a137
KH
72202000-10-25 Kenichi Handa <handa@etl.go.jp>
7221
7222 * process.c (send_process): If OBJECT is t, it means that the data
7223 is from C string, but we should encode it. Before calling
7224 setup_raw_text_coding_system, be sure to flush out data by the
7225 previous coding system.
7226
7ae1c032
MB
72272000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7228
ff4dcd4b
MB
7229 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7230 assignment of startpos to prev when startpos == pos.
7231
7ae1c032
MB
7232 * editfns.c (find_field): Set the field stickiness correctly from
7233 overlay fields. Use renamed `text_property_stickiness'.
7234 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 7235 Only check text properties, not overlays.
7ae1c032
MB
7236 * textprop.c (get_char_property_and_overlay): New function.
7237 (Fget_char_property): Use it.
7238 * intervals.h (get_char_property_and_overlay): Add declaration.
7239
49801145
SM
72402000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7241
7242 * keymap.c: Use AREF, ASET and ASIZE macros.
7243 (Fmake_sparse_keymap): Docstring fix.
7244 (synkey): Remove.
7245 (shadow_lookup): Move up.
7246 Handle the case where lookup-key returns an integer.
7247 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7248 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7249 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7250 Simplify/rewrite the keymap-finding code.
7251 Add check for command shadowing, using shadow_lookup.
7252
39e776cd
SM
72532000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7254
7255 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7256 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7257 a symbol.
7258
2488aba5
AI
72592000-10-24 Andrew Innes <andrewi@gnu.org>
7260
7261 * dired.c (directory_files_internal_unwind): New function.
7262 (directory_files_internal): Use it to ensure closedir is called
7263 even if expand-file-name or file-attributes throw, eg. because of
7264 a user interrupt. Also enable immediate_quit while calling
7265 re_search, so that matching can be interrupted as well.
7266
b94fdf61
AI
72672000-10-24 Andrew Innes <andrewi@gnu.org>
7268
7269 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7270 NT-Emacs only.
7271 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7272 so that re_search functions only quit when callers expect them to.
7273
72742000-10-24 Kenichi Handa <handa@etl.go.jp>
7275
7276 * regex.c (regex_compile): Change the way of handling a range from
7277 a char less than 256 to a char not less than 256.
7278
1946f901
GM
72792000-10-24 Gerd Moellmann <gerd@gnu.org>
7280
7ae2f10f
GM
7281 * window.c (size_window): Prevent setting window's width or
7282 height to a negative value (esp. with XSETFASTINT).
7283
5dcab13e
GM
7284 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7285 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7286 (protect_malloc_state) [GC_MALLOC_CHECK &&
7287 GC_PROTECT_MALLOC_STATE]: New function.
7288 (PROTECT_MALLOC_STATE): New macro.
7289 (__malloc_initialize, morecore, _malloc_internal)
7290 (_free_internal) _realloc_internal): Use it to make _heapinfo
7291 read-only outside of gmalloc.
7292
63e1b552
GM
7293 * keymap.c: Update copyright.
7294
1946f901
GM
7295 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7296 a symbol.
7297
4fa09beb
GM
72982000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7299
7300 * filelock.c (unlock_all_files): Use unlock_file to expand each
7301 buffer's file_truename before trying remove its lock file.
7302
23afac01
EZ
73032000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7304
7305 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7306 or CRLF, decode EOLs.
7307
04448b95
KH
73082000-10-24 Kenichi Handa <handa@etl.go.jp>
7309
7310 * window.c (Fdisplay_buffer): Fix doc.
7311
3090a5a5
JR
73122000-10-23 Jason Rumney <jasonr@gnu.org>
7313
7314 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7315 ASCII font of default fontset on Windows.
7316
7317 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7318 xterm.c comment below).
7319
7320 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7321
a83fee2c
GM
73222000-10-23 Gerd Moellmann <gerd@gnu.org>
7323
7324 * xterm.c (x_connection_closed): Reset handling_signal.
7325
52283633 7326 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 7327
6ffdb539
MB
73282000-10-23 Miles Bader <miles@gnu.org>
7329
7330 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7331 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7332 maintain old behavior.
7333 * minibuf.c (Fminibuffer_complete): Likewise.
7334
7f1c969b
MB
73352000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7336
7337 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7338 that when a font can't be exactly centered, it errs up rather than
7339 down.
7340
23afac01 73412000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 7342
52283633 7343 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 7344
1a578e9b
AC
73452000-10-23 Andrew Choi <akochoi@i-cable.com>
7346
7347 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7348
7349 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 7350 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
7351
7352 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7353 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
7354 syms_of_search, x_term_init, and init_keyboard before calling
7355 init_window_once. Also, call syms_of_xmenu.
7356
7357 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
7358 default fontset to Monaco.
7359
7360 * frame.c [macintosh]: Include macterm.h. Remove declarations of
7361 NewMacWindow and DisposeMacWindow.
7362 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
7363 instead of calling NewMacWindow and setting fields of
7364 f->output_data.mac directly. Call init_frame_faces.
7365 (Fdelete_frame) [macintosh]: Remove unused code.
7366 (Fmodify_frame_parameters) [macintosh]: Call
7367 x_set_frame_parameters instead of mac_set_frame_parameters.
7368
7369 * frame.h [macintosh]: Define menu_bar_lines field in struct
7370 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
7371
7372 * keyboard.c [macintosh]: Include macterm.h.
7373 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
7374 and menu_bar_activate_event type events as for X and NT.
7375 (make_lispy_event) [macintosh]: Construct lisp events of type
7376 MENU_BAR_EVENT as for X and NT.
7377
7378 * sysdep.c [macintosh]: Remove declaration for sys_signal.
7379 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
7380 (sys_subshell) [macintosh]: Remove definition entirely.
7381 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
7382 Vwindow_system_version here. Remove initialization of
7383 Vx_bitmap_file_path.
7384 (read_input_waiting): Correct the number of parameters passed to
7385 read_socket_hook.
7386 Move all Macintosh functions to mac/mac.c.
7387
7388 * term.c [macintosh]: Include macterm.h.
7389
7390 * window.c [macintosh]: Include macterm.h.
7391
7392 * xdisp.c [macintosh]: Include macterm.h. Declare
7393 set_frame_menubar and pending_menu_activation.
7394 (echo_area_display) [macintosh]: Do not return if terminal frame
7395 is the selected frame.
7396 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
7397 Allow only the selected frame to set menu bar.
7398 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
7399 calling FRAME_EXTERNAL_MENU_BAR (f).
7400 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
7401
7402 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
7403 and check_x. Declare XCreateGC. Define x_create_gc and
7404 x_free_gc. Initialize font_sort_order.
7405 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
7406 but call x_list_fonts instead of w32_list_fonts.
7407 (Finternal_face_x_get_resource) [macintosh]: Do not call
7408 display_x_get_resource.
7409 (prepare_face_for_display) [macintosh]: Set xgcv.font.
7410 (realize_x_face) [macintosh]: Load the font if it is specified in
7411 ATTRS.
52283633 7412 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 7413
1ffbabe3
SM
74142000-10-22 Stefan Monnier <monnier@cs.yale.edu>
7415
7416 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
7417 is nil: since we go to the end of submap anyway, we'd end up
7418 setting nil to nil.
7419 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
7420 doesn't obey autoload.
7421
bed43f1d
EZ
74222000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7423
1ffbabe3 7424 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 7425
ea4233a7
JR
74262000-10-21 Jason Rumney <jasonr@gnu.org>
7427
7428 * w32term.c (w32_cache_char_metrics): Double check that font is
7429 really fixed pitch before trusting tmPitchAndFamily.
7430
f3d3c491
AI
74312000-10-21 Andrew Innes <andrewi@gnu.org>
7432
7433 * w32gui.h (w32_char_font_type): Move enum from w32term.c
7434
7435 * w32term.h: Extern decl for w32_cache_char_metrics.
7436
7437 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
7438
7439 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
7440 (w32_unload_font): Free per_char array if present.
7441
7442 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
7443 cached information in emulated XFontStruct to handle common cases
7444 quickly. Do not allocate XCharStruct for return.
7445 (w32_native_per_char_metric): New function.
7446 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
7447 allocating one.
7448 (x_produce_glyphs): Don't get an HDC. Change calls to
7449 w32_per_char_metric to match arg change above. Remove calls to
7450 free results.
7451 (w32_get_glyph_overhangs): Ditto.
7452 (w32_cache_char_metrics): New function.
7453
7454 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
7455 ($(BLD)/casefiddle.$(O)): Remove compile command.
7456 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
7457 ($(BLD)/dispnew.obj):
7458 ($(BLD)/keyboard.obj):
7459 ($(BLD)/w32inevt.obj):
7460 ($(BLD)/w32bdf.obj):
7461 ($(BLD)/alloc.obj):
7462 ($(BLD)/buffer.obj):
7463 ($(BLD)/editfns.obj):
7464 ($(BLD)/emacs.obj):
7465 ($(BLD)/fileio.obj):
7466 ($(BLD)/fns.obj):
7467 ($(BLD)/indent.obj):
7468 ($(BLD)/insdel.obj):
7469 ($(BLD)/intervals.obj):
7470 ($(BLD)/minibuf.obj):
7471 ($(BLD)/print.obj):
7472 ($(BLD)/scroll.obj):
7473 ($(BLD)/sysdep.obj):
7474 ($(BLD)/textprop.obj):
7475 ($(BLD)/widget.obj):
f3d3c491
AI
7476 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
7477 ($(BLD)/term.obj): Add dependency on dispextern.h.
7478
52283633
SM
7479 * makefile.nt ($(BLD)\dispnew.obj):
7480 ($(BLD)\keyboard.obj):
7481 ($(BLD)\w32inevt.obj):
7482 ($(BLD)\w32bdf.obj):
7483 ($(BLD)\alloc.obj):
7484 ($(BLD)\buffer.obj):
7485 ($(BLD)\editfns.obj):
7486 ($(BLD)\emacs.obj):
7487 ($(BLD)\fileio.obj):
7488 ($(BLD)\fns.obj):
7489 ($(BLD)\indent.obj):
7490 ($(BLD)\insdel.obj):
7491 ($(BLD)\intervals.obj):
7492 ($(BLD)\minibuf.obj):
7493 ($(BLD)\print.obj):
7494 ($(BLD)\scroll.obj):
7495 ($(BLD)\sysdep.obj):
7496 ($(BLD)\textprop.obj):
7497 ($(BLD)\widget.obj):
f3d3c491
AI
7498 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
7499 ($(BLD)\term.obj): Add dependency on dispextern.h
7500
18ad4821
EZ
75012000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7502
7503 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
7504 with an additional argument of Qt.
7505
de54681a
MB
75062000-10-21 Miles Bader <miles@gnu.org>
7507
7508 * window.c (pos_fully_visible_in_window_p): New function.
7509 (Fpos_visible_in_window_p): Add FULLY argument.
7510 Use pos_fully_visible_in_window_p.
7511 (window_scroll_pixel_based, window_scroll_line_based): Update
7512 calls to Fpos_visible_in_window_p.
7513 * lisp.h (Fpos_visible_in_window_p): Update prototype
7514
13c844fb
GM
75152000-10-20 Gerd Moellmann <gerd@gnu.org>
7516
7517 * alloc.c (toplevel): Conditionalize compilation of mem_*
7518 functions differently.
52283633 7519
d9506268
JR
75202000-10-20 Jason Rumney <jasonr@gnu.org>
7521
7522 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
7523 mem_init where it used to be. mem_z etc not defined otherwise.
7524
8094989b
GM
75252000-10-20 Gerd Moellmann <gerd@gnu.org>
7526
7527 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
7528 GC_MALLOC_CHECK.
7529 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
7530 structure definition and related variabled to the top of the file.
7531 Include this code when GC_MALLOC_CHECK is defined.
7532 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
7533 register/unregister allocated region.
7534 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
7535 which isn't allocated.
7536 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
7537 something which is already in use.
7538 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
7539 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
7540 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
7541 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
7542
7543 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
7544 _malloc_internal instead of malloc.
7545 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
7546 of free.
7547
ea456eb4
AI
75482000-10-20 Andrew Innes <andrewi@gnu.org>
7549
7550 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
7551 Windows.
7552 (my_strftime) <macro>: Don't use macro arg list when redefining as
7553 _strftime_copytm.
7554 (my_strftime) <function>: Supply 0 as ut argument.
7555
e64c3a75
JR
75562000-10-19 Jason Rumney <jasonr@altavista.net>
7557
7558 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
7559 including dispextern.h, as it stops faces from working.
7560
7561 * w32fns.c (Fx_create_frame): Don't bother calling
7562 face-set-after-frame-default since the caller does it for us
7563 anyway. Clean up calls to x_get_arg to be consistent with X.
7564
7565 * w32term.c (x_produce_glyphs): Handle
7566 unibyte_display_via_language_environment correctly.
7567 (w32_draw_box_rect): Fix the calculation of width and height.
7568
7569 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
7570 as it has stopped working.
7571 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
7572 menu-bar.
7573
17401c97
GM
75742000-10-19 Gerd Moellmann <gerd@gnu.org>
7575
7576 * eval.c (skip_debugger): Prevent a compiler warning.
7577 (Fcondition_case): Likewise.
7578 (Fbacktrace_frame): Use a null interactive spec.
7579
773272d8
KH
75802000-10-19 Kenichi Handa <handa@etl.go.jp>
7581
7582 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
7583
a42943e9
GM
75842000-10-18 Gerd Moellmann <gerd@gnu.org>
7585
e50517d9
GM
7586 * strftime.c: Sync with glibc, file version 1.78.
7587 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
7588 should no longer be used according to ISO 8601.
7589
9035a35a
GM
7590 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
7591 no map for meta_prefix_char, don't try to use it as a keymap.
7592 Instead, if T_OK is non-zero, look up a default binding, if any,
7593 otherwise, if T_OK is zero, return nil.
7594
a42943e9
GM
7595 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
7596 (x_to_xcolors, png_load): Use x_query_color.
7597
52283633
SM
7598 * xterm.c (x_color_cells, x_query_colors, x_query_color):
7599 New functions.
a42943e9
GM
7600 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
7601 which can be slow.
7602 (x_copy_color, x_alloc_lighter_color): Likewise.
7603
7604 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
7605 (x_query_color, x_query_colors): Add prototype.
7606
7607 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
7608 check_string_bytes only if not noninteractive, increase count to 50.
7609
00de2987
MB
76102000-10-18 Miles Bader <miles@lsi.nec.co.jp>
7611
7612 * insdel.c (adjust_markers_for_delete): Handle before-insertion
7613 markers correctly.
7614
54918e2b
GM
76152000-10-17 Gerd Moellmann <gerd@gnu.org>
7616
1f0b3fd2
GM
7617 * alloc.c (pure_bytes_used): Renamed from pureptr.
7618 (ALIGN): New macro.
7619 (pure_alloc): New function.
7620 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
7621 Use it.
7622 (Fpurecopy): Use PURE_POINTER_P.
7623
68c5d1db
GM
7624 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
7625 PT has moved backward.
52283633 7626
9a038881
GM
7627 * xdisp.c (cursor_row_p): Take continued lines into account.
7628
361b097f
GM
7629 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
7630 string's size_byte.
7631 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
7632 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
7633 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
7634 string allocated.
7635
54918e2b
GM
7636 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
7637 of selective display off while searching for the next line start.
7638
03ed0806
KH
76392000-10-17 Kenichi Handa <handa@etl.go.jp>
7640
7641 * Makefile.in (term.o): Depend on dispextern.h.
7642
7e05cdaf
SM
76432000-10-16 Stefan Monnier <monnier@cs.yale.edu>
7644
7645 * keymap.c (keymap_memberp): Ensure that nil is not a member.
7646
a6801fd1
GM
76472000-10-16 Gerd Moellmann <gerd@gnu.org>
7648
483de32b
GM
7649 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
7650 the iterator at the beginning, so that they can be set later on,
7651 for instance in reseat_at_next_visible_line_start, without being
7652 overwritten.
7653
a6801fd1
GM
7654 * xfns.c (pbm_format): Add :foreground and :background keywords.
7655 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 7656 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 7657
dbf1fcc1
EZ
76582000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
7659
7660 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
7661
52283633 7662 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
7663
7664 * msdos.c (IT_set_face): Compare highlighted face with the default
7665 face, and invert colors if these faces' colors are identical.
7666 (Fmsdos_remember_default_colors): Don't swap foreground and
7667 background colors in initial_colors[].
7668 (IT_set_frame_parameters): Don't swap frame's foreground and
7669 background pixels. If ALIST includes "(reverse . t)", swap
7670 foreground-color and background-color properties in frame's
7671 param_alist. If the original frame's param_alist doesn't specify
7672 the colors, store unspecified-fg and unspecified-bg, reversed if
7673 required.
7674
7675 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
7676 the colors are unspecified and reversed, reverse fore- and back-
7677 ground in the returned value.
7678 (Fframe_parameter): Ditto.
7679
b41fe2c3 76802000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 7681
3a6b59d9
GM
7682 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
7683 get_last_unchanged_at_beg_row.
7684 (find_first_unchanged_at_end_row): Renamed from
7685 get_first_unchanged_at_end_row.
7686 (find_first_unchanged_at_end_row): Convert assertions to
7687 unconditional tests which abort. When looking for a row in
7688 unchanged text, don't go further back than first_text_row.
7689
b41fe2c3
GM
7690 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
7691 Don't add in the last line's height when deciding if the new
7692 position is below the scroll margin.
9d1af64f 7693
b41fe2c3 76942000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
7695
7696 * editfns.c (Fconstrain_to_field): Check carefully for field
7697 boundaries if either OLD_POS or NEW_POS has a non-nil field
7698 property, even if they're the same.
7699
c412cb7b
KH
77002000-10-16 Kenichi Handa <handa@etl.go.jp>
7701
7702 * xterm.c (x_draw_box_rect): Fix the calculation of width and
7703 height for XFillRectangle.
7704
5586f3eb
SM
77052000-10-15 Stefan Monnier <monnier@cs.yale.edu>
7706
7707 * syntax.c (Fstring_to_syntax): New function extracted from
7708 Fmodify_syntax_entry.
7709 (Fmodify_syntax_entry): Use it and document the ! and | fences.
7710 (skip_chars, Fforward_comment): Remove unused variables.
7711 (syms_of_syntax): Add defsubr for string-to-syntax.
7712 (describe_syntax): Add code for comment and string fences.
7713
db785038
SM
77142000-10-14 Stefan Monnier <monnier@cs.yale.edu>
7715
7716 * keymap.c (access_keymap): Add AUTOLOAD parameter.
7717 Do the meta->esc mapping. Call get_keyelt before returning.
7718 Start scanning from the second element (the first is always `keymap')
7719 to make it easier to detect when we reach a parent map.
7720 Handle the case of inheriting from a symbol whose function is a map.
7721 (Fkeymap_parent): Also handle the `inherit from symbol' case.
7722 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
7723 (get_keyelt, Flookup_key): Update call to access_keymap.
7724 Remove the meta->esc mappings.
7725 (define_as_prefix): Delete old disabled code.
7726 (menu_item_p): New function.
7727 (where_is_internal_1): Skip over the few remaining menu items.
7728 * lisp.h (access_keymap): Update prototype.
7729 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
7730 Update call to access_keymap.
7731 (follow_key, read_key_sequence): Update calls to access_keymap.
7732 Remove the meta->esc mappings.
7733
cafafe0b
GM
77342000-10-13 Gerd Moellmann <gerd@gnu.org>
7735
a2e2a7f6
GM
7736 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
7737 with additional argument.
7738
cafafe0b
GM
7739 * xdisp.c (cursor_row_p): New function.
7740 (try_cursor_movement, display_line): Use it.
52283633 7741
cafafe0b
GM
7742 * xdisp.c (append_space): Also save/restore iterator's current
7743 character and its length.
7744
7745 * xdisp.c (init_from_display_pos): Add an assertion.
7746 (handle_stop): Don't set iterator's add_overlay_start.
7747 (handle_invisible_prop): Likewise.
7748 (load_overlay_strings): If text under an overlay is invisible,
7749 take both before- and after-strings into account when the iterator
7750 is positioned either at the start or at the end of the overlay.
7751 (forward_to_next_line_start): Rewritten.
7752 (reseat_at_next_visible_line_start): Rewritten.
7753 (set_iterator_to_next): Add parameter RESEAT_P.
7754
7755 * dispextern.h (struct it): Remove member add_overlay_start.
7756 (set_iterator_to_next): Change prototype.
7757
c744452b
KH
77582000-10-13 Kenichi Handa <handa@etl.go.jp>
7759
7760 * coding.c (code_convert_region): Be sure to initialize
7761 coding->category_idx.
e4a3f4e1
KH
7762 (decode_coding_string): Set coding->src_multibyte and
7763 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
7764 (encode_coding_string): Set coding->src_multibyte and
7765 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 7766
321fd26f
SM
77672000-10-12 Stefan Monnier <monnier@cs.yale.edu>
7768
7769 * xfns.c (Fx_create_frame): Don't bother calling
7770 face-set-after-frame-default since the caller does it for us anyway.
7771
76832439
EZ
77722000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7773
7774 * window.c (coordinates_in_window): Fix detection of vertical line
7775 on character terminals.
7776
2483cf58
GM
77772000-10-12 Gerd Moellmann <gerd@gnu.org>
7778
7779 * editfns.c (save_excursion_save): Additionally record the
7780 selected window.
7781 (save_excursion_restore): If buffer was visible in a window, and a
7782 different window was selected, and the old selected window is
7783 still live, restore point in that window.
7784
eb991b25
KH
77852000-10-12 Kenichi Handa <handa@etl.go.jp>
7786
8a0eba09
KH
7787 * xterm.c (x_produce_glyphs): Handle
7788 unibyte_display_via_language_environment correctly.
7789
20401fcc
KH
7790 * regex.c (regex_compile): Change the way of handling a range from
7791 unibyte char to multibyte char.
7792
7793 * syntax.c (skip_chars): Change the way of handling a range from
7794 unibyte char to multibyte char.
7795
eb991b25
KH
7796 * process.c (read_process_output): Cancel previous change.
7797
365dd325
EZ
77982000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
7799
c1b096cb
EZ
7800 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
7801
365dd325
EZ
7802 * charset.c (Ffind_charset_string): Doc fix.
7803 (Ffind_charset_region): Doc fix.
7804
eb483c2b
KH
78052000-10-11 Kenichi Handa <handa@mule.m17n.org>
7806
7807 * process.c (read_process_output): Fix previous change. Adjust
7808 multibyteness of text to insert in a buffer by
52283633 7809 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 7810
b40bfb99
AS
78112000-10-10 Andreas Schwab <schwab@suse.de>
7812
7813 * alloc.c (mark_object): Remove all workarounds installed on
7814 1993-08-08.
7815
caff31d4
KH
78162000-10-10 Kenichi Handa <handa@etl.go.jp>
7817
52283633 7818 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
7819 (base64_encode_1): Make it work for a text of multibyte form.
7820 (Fbase64_decode_region): Allocate sufficient memory for multibyte
7821 case. Don't call str_to_multibyte because base64_decode_1
7822 produces correct multibyte form for eight-bit codes.
52283633 7823 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
7824 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
7825 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
7826 codes.
7827
7828 * charset.h (CHAR_STRING): Optimized for single byte characters.
7829
cba026ef
AS
78302000-10-09 Andreas Schwab <schwab@suse.de>
7831
7832 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
7833 -1 after socket is closed, to fall through to error processing.
7834
1e21fe48
EZ
78352000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
7836
7837 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 7838 variables. If ALIST includes foreground-color or
1e21fe48
EZ
7839 background-color, change also the colors of the default face for
7840 this frame.
7841
a640322e
EZ
78422000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7843
7844 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
7845 them extern (they are defined on xfaces.c).
7846 (syms_of_msdos): Don't intern and don't staticpro
7847 Qbackground_color and Qforeground_color.
7848
a115794c
EZ
78492000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
7850
7851 * frame.c (Fframe_parameter): For non-windowed frames, if
7852 f->param_alist says foreground or background color is unspecified,
7853 call tty_color_name to return the color name computed from the
7854 frame's current colors.
7855
f5533b63
DL
78562000-10-06 Dave Love <fx@gnu.org>
7857
7858 * terminfo.c (ospeed): Don't declare.
7859
7860 * sysdep.c: Don't include string.h.
7861 (h_errno): Declare conditional also on TRY_AGAIN.
7862
7863 * charset.c (Ffind_charset_string): Doc fix.
7864
52283633 7865 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
7866 (Fbase64_decode_region, Fbase64_decode_string): More explicit
7867 error messages.
7868
2b06561a
DL
78692000-10-05 Dave Love <fx@gnu.org>
7870
7871 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
7872 position like menu-bar.
7873
ca839c85
GM
78742000-10-05 Gerd Moellmann <gerd@gnu.org>
7875
7876 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
7877
7878 * xdisp.c (handle_single_display_prop): Use safe_call1.
7879 (safe_call): Renamed from call_function.
7880 (safe_call1): New function.
7881 (handle_fontified_prop): Use safe_call1 instead of call1.
7882 (safe_eval): Renamed from eval_form.
7883 (safe_eval_handler): Renamed from eval_handler.
7884 (handle_single_display_prop, display_mode_element): Use safe_eval
7885 instead of eval_form.
7886
7887 * xfaces.c (merge_face_heights): Use safe_call instead of
7888 call_function.
7889
7890 * keyboard.c (show_help_echo): Use safe_call instead of
7891 call_function; use safe_eval instead of eval_form.
7892
7893 * lisp.h (safe_call): Renamed from call_function.
7894 (safe_eval): Renamed from eval_form.
7895 (safe_call1): Add prototype.
7896
a3489ece
MB
78972000-10-05 Miles Bader <miles@lsi.nec.co.jp>
7898
7899 * xfns.c (image_ascent): Rearrange ascent calculation for the
7900 has-a-font case.
7901
35810b6f
SM
79022000-10-04 Stefan Monnier <monnier@cs.yale.edu>
7903
7904 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
7905 (where_is_internal_1): Don't bother ignoring menu-items any more.
7906
3dc78168
GM
79072000-10-04 Gerd Moellmann <gerd@gnu.org>
7908
7909 * keyboard.c (update_menu_bindings): New variable.
7910 (parse_menu_item): Use AREF. If update_menu_bindings
7911 is 0, don't update menu bindings.
7912 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
7913
1efc2bb9
EZ
79142000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
7915
7916 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
7917 to `mark_object'.
7918
3f679f55
SM
79192000-10-02 Stefan Monnier <monnier@cs.yale.edu>
7920
7921 * syntax.c (forw_comment): Match nestedness of ender/starter.
7922 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
7923 (prev_char_comstart_first): Remove.
7924 (back_comment): Check two-char comment markers more carefully
7925 to better handle overlapping cases like *//* or /* */* */ ...
7926 Match nestedness of ender/starter.
7927
2021ab61
DL
79282000-10-02 Dave Love <fx@gnu.org>
7929
7930 * config.in (HAVE_GAI_STRERROR): Add undef.
7931
7932 * process.c (Fopen_network_stream): Use it.
7933
7934 * m/alpha.h (NO_REMAP): Don't define.
7935
64e6cc18
GM
79362000-10-02 Gerd Moellmann <gerd@gnu.org>
7937
7938 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
7939 return with a string converted to an integer or vice versa when
7940 Vmocklisp_arguments is t.
7941 (Fsignal): Likewise. The function can return for `quit'.
7942 (struct gcpro): Declare member `var' to point to a volatile
7943 Lisp_Object.
7944
7945 * eval.c (error): Prevent compiler warning.
7946
b1904cd9
SM
79472000-09-30 Stefan Monnier <monnier@cs.yale.edu>
7948
7949 * keymap.c (keymap_memberp): New function.
7950 (Fset_keymap_parent): Use it.
7951 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
7952 Use keymap_memberp to avoid creating cycles.
7953 (access_keymap): Use KEYMAPP.
7954
71c9ec51
GM
79552000-09-30 Gerd Moellmann <gerd@gnu.org>
7956
7957 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
7958 gai_strerror. Make sure xerrno is set if connect fails. Improve
7959 error recovery.
71c9ec51 7960
c70c6b58
JR
79612000-09-29 Jason Rumney <jasonr@gnu.org>
7962
7963 * w32term.c (w32_char_font_type, w32_encode_char)
7964 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
7965 (w32_bdf_per_char_metric): New function.
7966 (w32_per_char_metric): Use it.
7967 (x_draw_glyph_string_background): Always draw background for BDF
7968 glyphs.
7969
7970 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
7971 GDI object which is a scarce resource.
7972
7973 * w32bdf.c (search_file_line): Fix skipping of whitespace.
7974 (get_quoted_string): Fix limit on memchr search.
7975 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
7976 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
7977 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
7978 (get_cached_font_char, cache_char_offset): Use macro
7979 BDF_CODEPOINT_RANGE_COVER_P.
7980 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
7981 (clear_cached_bitmap_slots): New function.
7982 (GET_HEX_VALUE): G-Z, g-z are not hex.
7983 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
7984 (get_bitmap_with_cache): Use new cache implementation.
7985 (create_offscreen_bitmap): New function.
7986 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
7987
7988 * w32term.c (x_produce_glyphs): If the distance from the current
7989 position to the next tab stop is less than a canonical character
7990 width, use the tab stop after that.
7991 (x_draw_glyphs): Handle case START and END are out of bounds more
7992 carefully.
7993 (x_clear_mouse_face): Block/unblock input.
7994 (x_display_and_set_cursor): Don't show a hollow box cursor for
7995 buffers whose cursor_type is nil.
7996
fe01239f
GM
79972000-09-29 Gerd Moellmann <gerd@gnu.org>
7998
52283633 7999 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
8000
8001 * dispextern.h (updating_frame): Declare extern.
8002
e7c52f1f
AS
80032000-09-29 Andreas Schwab <schwab@suse.de>
8004
8005 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8006
de6e1f7c
GM
80072000-09-29 Gerd Moellmann <gerd@gnu.org>
8008
25126faa
GM
8009 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8010 use its function definition.
8011 (tool_bar_items): Likewise.
8012
de6e1f7c 8013 * lisp.h (fatal): Declare NO_RETURN.
52283633 8014
454ee39b
KH
80152000-09-29 Kenichi Handa <handa@etl.go.jp>
8016
8017 * keymap.c: Remove the line "#undef NULL".
8018
96301c5f
GM
80192000-09-28 Gerd Moellmann <gerd@gnu.org>
8020
52283633 8021 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 8022
efffeeb4
DL
80232000-09-28 Dave Love <fx@gnu.org>
8024
ecb8b666
DL
8025 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8026
dc3cd20f
DL
8027 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8028
8029 * .gdbinit (xreload): Note its need on GNU/Linux.
8030
efffeeb4
DL
8031 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8032 r_alloc, r_alloc_free.
8033
8610d903
KH
80342000-09-28 Kenichi Handa <handa@etl.go.jp>
8035
8036 * syntax.c (skip_chars): Handle negation correctly.
8037
8901d1ac
GM
80382000-09-27 Gerd Moellmann <gerd@gnu.org>
8039
6f22f1ad
GM
8040 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8041 with non-zero FORCE_P argument.
8042
52283633 8043 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
8044 Add assertions.
8045
8046 * xdisp.c (window_box_height): Add an assertion.
8047
8048 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8049 tool-bar than is available.
8050 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8051
36f1966f
DL
80522000-09-27 Dave Love <fx@gnu.org>
8053
efffeeb4 8054 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 8055
31d929e5
GM
80562000-09-26 Gerd Moellmann <gerd@gnu.org>
8057
c98863bf
GM
8058 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8059 instead of BITS_PER_INT.
8060 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8061 EMACS_UINT, respectively.
8062 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8063
8064 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8065
8066 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8067
77072ab1
GM
8068 * window.c (freeze_window_starts): Construct last argument for
8069 foreach_window differently.
8070
8071 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8072
8073 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8074 EMACS_UINT instead of `int' and `unsigned int'.
8075 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8076
8077 * frame.h (struct frame): Make the `nothing' member of union
8078 output_data an EMACS_INT.
8079
52283633 8080 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
8081 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8082 size in the sdata structure.
8083 (SDATA_NBYTES, SDATA_DATA): New macros.
8084 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8085 differently for the different layout of the sdata structure.
8086 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8087 in sdata.
8088 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8089 Check that size recorded in the string size and size recorded in
8090 the sdata structure agree.
8091
3e60b029
DL
80922000-09-25 Dave Love <fx@gnu.org>
8093
8094 * buffer.c: Include stdio.h.
8095
8096 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 8097
3e60b029
DL
8098 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8099
8100 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 8101 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
8102 (__malloc_extra_blocks): Declare as __malloc_size_t.
8103
8ff16b4e
GM
81042000-09-25 Gerd Moellmann <gerd@gnu.org>
8105
755a2ccd
GM
8106 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8107
d8b4516f
GM
8108 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8109 (read_char): If help-echo is showing, preserve the echo area
8110 when redisplaying.
8111
8112 * xdisp.c (help_echo_showing_p): New variable.
8113 (set_message): Reset it to 0.
8114 (init_xdisp): Initialize help_echo_showing_p.
8115
8116 * dispextern.h (help_echo_showing_p): Declare extern.
8117
8118 * config.in: Fix typo in __GNUC_MINOR__.
8119
8120 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8121
b11af2dd
GM
8122 * s/freebsd.h (POSIX_SIGNALS): Define.
8123
8ff16b4e
GM
8124 * xterm.c (x_clear_mouse_face): Block/unblock input.
8125
844eb643
DL
81262000-09-24 Dave Love <fx@gnu.org>
8127
8128 * fns.c (base64_encode_1): Fix last change.
8129
b30ab1b3
GM
81302000-09-22 Gerd Moellmann <gerd@gnu.org>
8131
8132 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8133
8134 * xdisp.c (try_window_reusing_current_matrix): More fixes
8135 for the case window has a header-line.
8136
c6cbe5f0
DL
81372000-09-22 Dave Love <fx@gnu.org>
8138
4c7c1f3f
DL
8139 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8140 a doc string.
8141
8142 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8143
c6cbe5f0
DL
8144 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8145
550a625e
GM
81462000-09-21 Gerd Moellmann <gerd@gnu.org>
8147
4c7c1f3f 8148 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
8149 for GCC >= 2.5.
8150
52283633
SM
8151 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8152 Declare NO_RETURN.
fca99116 8153
80d26f99
GM
8154 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8155 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8156 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8157 warnings.
52283633 8158
80d26f99
GM
8159 * marker.c (byte_char_debug_check): Return void.
8160
623a0aae
GM
8161 * xfns.c (Fx_create_frame): Set default frame parameter value
8162 for tool-bar-lines to 1.
8163
8164 * dispnew.c (scrolling_window): Compare y-positions of rows
8165 equal at the start. Some simplification.
8166
8167 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8168 reused rows' y-position in the case window has a header-line, and
8169 new window start is greater than old window start.
8170
42ac0ae5
GM
8171 * process.c (process_sent_to): New variable.
8172 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8173 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8174 Declare more parameters volatile.
8175
550a625e
GM
8176 * lread.c (Vrecursive_load_depth_limit): New variable.
8177 (Fload): Check recursive loads whose recursion depth exceeds
8178 Vrecursive_load_depth_limit.
8179 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8180
8320414c
GM
81812000-09-20 Gerd Moellmann <gerd@gnu.org>
8182
f46c275e
GM
8183 * fileio.c (Fread_file_name): Doc fix.
8184
8185 * editfns.c (Fmessage_or_box): Doc fix.
8186
8187 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8188
b7e11c5b 8189 * xfns.c (xbm_scan): Allow C-style comments.
52283633 8190
8320414c
GM
8191 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8192 symbols are specified, add color translations to the cache.
52283633 8193 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
8194 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8195 xpm_cache_color.
8196 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8197 structures to xpm_init_color_cache.
8198
da1608d9
GM
81992000-09-19 Gerd Moellmann <gerd@gnu.org>
8200
52283633 8201 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 8202
6badfa25
AI
82032000-09-19 Andrew Innes <andrewi@gnu.org>
8204
8205 * makefile.nt (bootstrap-emacs): Don't change directory.
8206
3a5f42bb
KH
82072000-09-19 Kenichi Handa <handa@etl.go.jp>
8208
1b7649bd
KH
8209 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8210
3a5f42bb
KH
8211 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8212 If output buffer is too small, signal an appropriated error.
8213
9f83cf0b
DL
82142000-09-18 Dave Love <fx@gnu.org>
8215
52283633 8216 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
8217 (current_active_maps): Remove redundant get_local_map call.
8218
28c7826c
GM
82192000-09-18 Gerd Moellmann <gerd@gnu.org>
8220
5cefa566
GM
8221 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8222 cursor for buffers whose cursor_type is nil.
52283633 8223
6fed3546
GM
8224 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8225 a feature to implement that is already implemented.
8226 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8227 warnings.
8228
8229 * xfns.c (x_clear_image_1): New function.
8230 (x_clear_image): Use it.
52283633 8231 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 8232
05b1f851
GM
8233 * dispnew.c (update_window): Move test for invisible lines
8234 at the top to update_window_line.
8235 (update_window_line): Handle invisible lines here.
8236
f4779de9
GM
8237 * xfns.c (clear_image_cache): Clear current matrices of all
8238 frames sharing an image cache. Block input while freeing
8239 images. Fix timestamp comparison.
8240 (x_clear_image): Also free the mask.
8241
28c7826c
GM
8242 * xfns.c (lookup_image): Block input while loading the image so
8243 that we won't get interrupted in a state where the image isn't yet
8244 set up completely.
8245 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8246 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8247 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 8248 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 8249
b7412313
GM
82502000-09-16 Gerd Moellmann <gerd@gnu.org>
8251
8252 * dispnew.c (update_window): Make sure to make desired rows
8253 current even if they are completely invisible at the top
8254 of a window.
8255
47e351a3
GM
82562000-09-15 Gerd Moellmann <gerd@gnu.org>
8257
7f8f1edc
GM
8258 * xfns.c (lookup_image): Build mask before applying an algorithm.
8259 Recognize algorithm `disabled'.
8260 (cross_disabled_images): New variable.
8261 (COLOR_INTENSITY): New macro.
8262 (x_detect_edges): Use COLOR_INTENSITY.
8263 (x_disable_image): New function.
8264 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8265
8266 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8267 disabled state, don't apply an image transformation algorithm if
8268 the user specified an image for the disabled state. Use
28c7826c 8269 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
8270 user hasn't specified an image.
8271
ebb8f116
GM
8272 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8273 allocation functions with the XPM lib.
8274 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8275 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8276 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8277 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 8278 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
8279 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8280 functions, if possible, because these handle color allocation
8281 failure more gracefully.
8282 (Fimage_mask_p): New function.
8283
47e351a3
GM
8284 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8285 (Qedge_detection, Qheuristic): New symbols.
8286 (syms_of_xfns): Initialize new symbols.
8287 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8288 `algorithm (edge-detection ...)'.
8289 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8290 (tiff_format, gif_format, gs_format): Add `:mask'.
8291 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8292 (GIF_MASK, GS_MASK): New enumerators.
8293 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8294 (emboss_matrix, laplace_matrix): New variables.
8295 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8296 (x_edge_detection): New functions.
8297 (x_laplace): Rewritten in terms of x_detect_edges.
8298 (x_build_heuristic_mask): If image has a mask, free it.
8299
fe83b953
AI
83002000-09-14 Andrew Innes <andrewi@gnu.org>
8301
8302 * makefile.w32-in: Revert to Unix line endings.
8303
3021e816
AI
83042000-09-14 Andrew Innes <andrewi@gnu.org>
8305
8306 * makefile.w32-in: Standardize indentation somewhat.
8307 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8308 cater for differences between shells.
8309
8310 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8311
2a32b5ea
GM
83122000-09-14 Gerd Moellmann <gerd@gnu.org>
8313
8314 * xterm.c (x_produce_glyphs): If the distance from the current
8315 position to the next tab stop is less than a canonical character
8316 width, use the tab stop after that.
8317
b4331e96
DL
83182000-09-14 Dave Love <fx@gnu.org>
8319
8320 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8321
ef9e4345
GM
83222000-09-14 Gerd Moellmann <gerd@gnu.org>
8323
085536c2
GM
8324 * xdisp.c (handle_fontified_prop): While running fontification
8325 functions, bind `fontification-functions' and
8326 `after-change-functions' to nil.
8327
ef9e4345
GM
8328 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8329 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8330
8331 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8332
8333 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8334 USE_MMAP_FOR_BUFFERS.
8335
8336 * insdel.c (make_gap): Use enlarge_buffer_text.
8337
8338 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8339 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8340 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8341 from former r_alloc_* functions in ralloc.c.
52283633 8342 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
8343 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8344 (mmap_init) [REL_ALLOC_MMAP]: New function.
8345 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8346 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8347 BUFFER_FREE.
8348
8349 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8350 (enlarge_buffer_text): Add prototype.
8351
8352 * ralloc.c: Remove everything having to do with the use of mmap.
8353
f8608968
GM
83542000-09-13 Gerd Moellmann <gerd@gnu.org>
8355
2a494b2d
GM
8356 * sound.c (Fplay_sound): Doc fix.
8357
8c907a56
GM
8358 * keyboard.c: Avoid some more compiler warnings.
8359 (parse_tool_bar_item): Ignore cached key bindings.
8360
f8608968
GM
8361 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
8362 and allocation of Lisp data.
8363
6ab70e9a
GM
83642000-09-12 Gerd Moellmann <gerd@gnu.org>
8365
d12d0a9b
GM
8366 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
8367 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
8368 defaults first.
8369
6ab70e9a
GM
8370 * lread.c (Fload): Put code checking for recursive loads in #if 0.
8371
63c36c3c
KH
83722000-09-12 Miyashita Hisashi <himi@meadowy.org>
8373
8374 * ccl.c: Comment fixed.
8375 (MAX_MAP_SET_LEVEL): Increased to 30.
8376 (PUSH_MAPPING_STACK): Enclose with do-while block.
8377 (POP_MAPPING_STACK): Likewise.
8378 (stack_idx_of_map_multiple): New variable.
8379 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
8380 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 8381 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
8382 (ccl_driver) <CCL_MapSingle>: Likewise.
8383 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
8384 with the case where looking up process reaches to the end of
8385 map-set, and call CCL programs as the above change.
8386
7ee3bd7b
GM
83872000-09-11 Gerd Moellmann <gerd@gnu.org>
8388
8ec8a5ec
GM
8389 * xfns.c (png_load, jpeg_load): Declare some variables volatile
8390 that might be clobbered by longjmp.
8391 (check_x_display_info, x_decode_color, create_frame_xic)
8392 (Fx_display_backing_store, Fx_display_visual_class)
52283633 8393 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 8394
f74b0705
GM
8395 * lread.c (init_lread): Set Vloads_in_progress to nil.
8396 (Fload): Show list of recursively loaded files, when signaling an
8397 error.
8398
7ee3bd7b
GM
8399 * lread.c (Vloads_in_progress): New variable.
8400 (record_load_unwind): New function.
8401 (Fload): Check for recursive loads.
8402 (syms_of_lread): Initialize Vloads_in_progress.
8403 (read_integer, read1): Avoid some compiler warnings.
8404
8405 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
8406 compiler warnings.
8407
974e1e5b
MB
84082000-09-11 Miles Bader <miles@gnu.org>
8409
8410 * editfns.c (Fbuffer_string): Doc fix.
8411
9824c4e3
GM
84122000-09-10 Gerd Moellmann <gerd@gnu.org>
8413
8414 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
8415
6a72fdd1
KR
84162000-09-09 Ken Raeburn <raeburn@gnu.org>
8417
8418 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
8419 whether to include other header files.
8420
28e6fb66
GM
84212000-09-09 Gerd Moellmann <gerd@gnu.org>
8422
52283633 8423 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 8424 by Fmemq as a boolean.
28e6fb66 8425
7f8b6551
SM
84262000-09-08 Stefan Monnier <monnier@cs.yale.edu>
8427
8428 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
8429
a8710abf
GM
84302000-09-08 Gerd Moellmann <gerd@gnu.org>
8431
d1a02881
GM
8432 * ralloc.c (mmap_fd): Remove initializer which can make it
8433 read-only in a dumped Emacs.
8434 (mmap_fd_1): New variable.
8435 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
8436 restore it from there.
8437 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
8438 unconditionally so that mmap_fd can be initialized there.
8439 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
8440 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
8441 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
8442
c454aac1
GM
8443 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
8444
8445 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 8446 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 8447
fc653ef2
GM
8448 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
8449
3015eec0
GM
8450 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
8451 inheritance.
8452
bfe0ee88
GM
8453 * xdisp.c (try_window_id): When trying to locate cursor in
8454 unchanged rows at the top, handle the case that we can't find it.
8455
a8710abf
GM
8456 * xterm.c (x_draw_glyphs): Handle case START and END are out
8457 of bounds more carefully.
8458
6b7d4ae4
DL
84592000-09-08 Dave Love <fx@gnu.org>
8460
423193c5
DL
8461 * s/sol2.h (REL_ALLOC_MMAP): Define.
8462 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
8463
8464 * ralloc.c: Don't include string.h (redundant).
8465 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
8466 [!MAP_ANON]: Include fcntl.h.
8467 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
8468 (r_alloc, r_re_alloc, r_alloc_free)
8469 (mmap_enlarge, mmap_set_vars): Use it.
8470 (r_alloc_init_fd): New function.
8471 (__morecore) [SYSTEM_MALLOC]: Don't declare.
8472 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
8473 malloc type.
8474
8475 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
8476 Remove vm-limit.o.
8477
6b7d4ae4
DL
8478 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
8479 change to __NetBSD__.
8480
44d31981
KH
84812000-09-08 Kenichi Handa <handa@etl.go.jp>
8482
8483 * search.c (compile_pattern): Check the multibyteness of cached
8484 string and PATTERN.
8485
aad40737
MB
84862000-09-08 Miles Bader <miles@gnu.org>
8487
8488 * xfaces.c (default_face_vector): Function removed.
8489 (Finternal_merge_in_global_face): Restore old global/local
8490 attribute override order. Use inline loop instead of calling
8491 default_face_vector.
8492
91a211b5
GM
84932000-09-07 Gerd Moellmann <gerd@gnu.org>
8494
8495 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
8496 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
8497 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
8498 where necessary, in case POINTER_TYPE is `void'.
8499
03419440
EZ
85002000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
8501
8502 * frame.c (make_terminal_frame): Initialize frame foreground and
8503 background colors to unspecified, for the initial instance of an
8504 MSDOS frame.
8505
f46f845b
GM
85062000-09-07 Gerd Moellmann <gerd@gnu.org>
8507
24f76fbf
GM
8508 * ralloc.c (mmap_find): Fix overlap computation.
8509 (mmap_enlarge): Compute nbytes before trying to find an
8510 overlapping region.
8511
f46f845b
GM
8512 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
8513 instead of `!='.
8514
8515 * lread.c (syms_of_lread): Change value of regexp
8516 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
8517
8518 * xmenu.c (xdialog_show): When looking up the selection in
8519 menu_items, take `quote' boundaries into account; this corresponds
8520 to a nil ITEM in x-popup-dialog.
8521
3c014385
KH
85222000-09-07 Kenichi Handa <handa@etl.go.jp>
8523
fd6f711b
KH
8524 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
8525 not 0x81.
8526 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
8527
3c014385 8528 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
8529 encoding, not decoding. Fix the handling of latin-jisx0201.
8530 Check for the charset katakana-jisx0201 too.
3c014385 8531 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 8532 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 8533
0da3ecef
GM
85342000-09-07 Gerd Moellmann <gerd@gnu.org>
8535
ab0ee409
GM
8536 * xfaces.c (Vparam_value_alist): New variable.
8537 (syms_of_xfaces): Initialize it.
8538 (Finternal_set_lisp_face_attribute): Avoid more consing.
8539
8540 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
8541 specially.
8542 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
8543 (Qbackground_mode): New variable.
8544 (syms_of_frame_1): Initialize Qbackground_mode.
8545
8546 * lisp.h (Qdisplay): Declare extern.
1091dd67 8547
0da3ecef
GM
8548 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
8549 change face on all frames, and change the default for new frames.
8550
b14654b9
DL
85512000-09-07 Dave Love <fx@gnu.org>
8552
8553 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
8554
d24fd56f
KH
85552000-09-07 Kenichi Handa <handa@etl.go.jp>
8556
794f3670
KH
8557 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
8558
0fddd0dc
KH
8559 * charset.c: Include composite.h
8560 (lisp_string_width): New function.
8561 (Fstring_width): Call lisp_string_width instead of strwidth.
8562
8563 * Makefile.in (charset.o): Depends on composite.h.
8564
d24fd56f
KH
8565 * process.c (read_process_output): Before inserting the decoded
8566 text in the buffer, adjust the multibyteness.
8567
fa0b693c
GM
85682000-09-06 Gerd Moellmann <gerd@gnu.org>
8569
52283633 8570 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
8571 buffer's text buffer is null, map new memory.
8572
0a58f946
GM
8573 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
8574 POINTER_TYPE and size_t.
8575 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
8576 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
8577 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
8578 [REL_ALLOC_MMAP]: New macros.
8579 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
8580 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
8581 [REL_ALLOC_MMAP]: New functions.
8582
8583 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
8584 before and after unexec.
8585
8586 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
8587 text buffers if necessary.
8588
8589 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
8590 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
8591 in prototypes.
8592
fa0b693c
GM
8593 * config.in (HAVE_MMAP): Add #undef.
8594
877055f6
GM
85952000-09-05 Gerd Moellmann <gerd@gnu.org>
8596
08ba3862
GM
8597 * frame.c (Qdisplay_type): New variable.
8598 (syms_of_frame_1): Initialize it.
8599 (Fframe_parameter): New function that avoids consing.
8600 (syms_of_frame): Defsubr it.
8601
66ffe51c
GM
8602 * buffer.c (Fother_buffer): Consider buffers as invisible when
8603 they are displayed in a window on an invisible frame.
8604
877055f6
GM
8605 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
8606 get-largest-window always return nil.
8607
bb970e67
GM
86082000-09-04 Gerd Moellmann <gerd@gnu.org>
8609
8610 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
8611 variable; recognize Emacs 19 elc files.
8612
7a3d0e0e
MB
86132000-09-04 Miles Bader <miles@gnu.org>
8614
8615 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
8616 before initially popping up the menu, so the menu doesn't flash
52283633 8617 when the face settings are significantly different from the defaults.
7a3d0e0e 8618
14473664
SM
86192000-09-04 Stefan Monnier <monnier@cs.yale.edu>
8620
8621 * regex.c (WIDE_CHAR_SUPPORT): New macro.
8622 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
8623 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
8624 (BIT_UNIBYTE): Remove.
8625 (re_match_2_internal): Delete corresponding code and streamline the
8626 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
8627 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
8628 (re_wctype_t): New type.
8629 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
8630 (regex_compile): Use them and fix handling of overly long char classes.
8631
c1174479
AI
86322000-09-03 Andrew Innes <andrewi@gnu.org>
8633
f8803e97
AI
8634 * makefile.w32-in: Change to DOS line endings.
8635
c1174479
AI
8636 * s/ms-w32.h (ORDINARY_LINK): New define.
8637
8638 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
8639 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
8640
8641 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
8642 (distclean): Delete them here instead.
8643
44ef7cf6
AI
8644 * w32proc.c (compare_env): Convert to uppercase for comparison,
8645 not lowercase, to match how the native Windows shell works.
8646
49b3bd82
JR
86472000-09-03 Jason Rumney <jasonr@gnu.org>
8648
8649 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
8650 CVS changes the line-ends when checking in/out on DOS/Windows.
8651
8652 * makefile.nt (emacs): Do not change directory to run temacs, as
8653 the load-path is set relative to current directory.
8654
a3d35a39
MB
86552000-09-03 Miles Bader <miles@gnu.org>
8656
8657 * xterm.c (x_alloc_lighter_color_for_widget): New function.
8658
d276b0cf
GM
86592000-09-02 Gerd Moellmann <gerd@gnu.org>
8660
715e84c9
GM
8661 * xdisp.c (redisplay_mode_lines): New function.
8662 (display_mode_lines): Return number of mode lines displayed.
8663 (echo_area_display): Use redisplay_mode_lines to draw garbaged
8664 mode lines. Don't temporarily bind redisplay-dont-pause to t.
8665
8892f40b
GM
8666 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
8667 string.h and strings.h.
8668 (index) [HAVE_INDEX]: Add prototype.
8669
d276b0cf
GM
8670 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
8671 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
8672
8673 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
8674 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8675
38404229
GM
86762000-09-01 Gerd Moellmann <gerd@gnu.org>
8677
8678 * lread.c (read1): Accept `?' as symbol constituent, for
8679 compatiblity with XEmacs.
8680
c0f9ea08
SM
86812000-08-31 Stefan Monnier <monnier@cs.yale.edu>
8682
8683 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
8684 (struct re_pattern_buffer): Remove newline_anchor.
8685 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
8686 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
8687 (re_max_failures, fail_stack): Use size_t rather than unsigned.
8688 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
8689 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
8690 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
8691 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
8692 Get rid of references to newline_anchor.
8693 (regcomp): Allocate and precompute a fastmap.
8694
8c0f83fe
GM
86952000-08-31 Gerd Moellmann <gerd@gnu.org>
8696
8697 * lread.c (openp): GCPRO local variable `filename'.
8698
4bb91c68
SM
86992000-08-30 Stefan Monnier <monnier@cs.yale.edu>
8700
8701 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
8702
8703 * regex.c: Merge some changes from GNU libc. Add prototypes.
8704 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
8705 Use memcmp and memcpy instead of bcopy and bcmp.
8706 (init_syntax_once): Use ISALNUM.
8707 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
8708 (REG_UNSET_VALUE): Remove. Use NULL instead.
8709 (REG_UNSET, re_match_2_internal): Use NULL.
8710 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
8711 New macros.
8712 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
8713 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
8714 (regex_compile): In handle_interval, return an error rather than try to
8715 unfetch the interval if we can't find the closing brace.
8716 Obey the RE_NO_GNU_OPS syntax bit.
8717 (TOLOWER): New macro.
8718 (regcomp): Use it.
8719 (regexec): Allocate regs.start and regs.end as one block.
8720
5226a931
GM
87212000-08-30 Gerd Moellmann <gerd@gnu.org>
8722
868dd24b
GM
8723 * xdisp.c (echo_area_display): Check display_completed instead
8724 of calling detect_input_pending.
8725
8726 * dispnew.c (update_frame): Only set display_completed here; move
8727 the update_begin and update_end calls here from update_frame_1.
8728 (update_frame_1): Don't set display_completed here, don't call
8729 update_begin/update_end.
8730
5226a931
GM
8731 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
8732 instead of store_frame_param.
8733
2a8bd25f
GM
87342000-08-29 Gerd Moellmann <gerd@gnu.org>
8735
8736 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
8737 desired window matrix hasn't been displayed, use the current row
8738 instead. Make sure that only those frame rows are updated for
8739 which there exists a corresponding enabled desired row.
52283633 8740
ba3478d9
MB
87412000-08-29 Miles Bader <miles@gnu.org>
8742
8743 * xfaces.c (default_face_vector): New function.
8744 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
8745
87d0f685
GM
87462000-08-29 Gerd Moellmann <gerd@gnu.org>
8747
8748 * lread.c (openp): Prevent temporary string passed to
8749 Ffile_readable_p from being garbage collected.
8750
6fa86045
DL
87512000-08-28 Dave Love <fx@gnu.org>
8752
8753 * keymap.c (store_in_keymap): Add `static' to declaration.
8754
bb17930d
GM
87552000-08-28 Gerd Moellmann <gerd@gnu.org>
8756
8757 * emacs.c, callint.c, doc.c, editfns.c
8758 (toplevel) [HAVE_STRING_H]: Include string.h.
8759 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
8760 (index): Remove prototypes which might conflict with non-standard
8761 definitions of index/strchr.
8762
8763 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
8764 (rindex): Define only if !HAVE_RINDEX.
8765
8766 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
8767
8768 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
8769
87188200
MB
87702000-08-28 Miles Bader <miles@gnu.org>
8771
8772 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
8773 made inconsistent by a font-related attribute in FROM.
8774 (merge_face_inheritance): Add function comment.
8775
41a68aef
KH
87762000-08-28 Kenichi Handa <handa@etl.go.jp>
8777
8778 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
8779 the 4th arg (PREV_EVENT) Qt to suppress input method.
8780
f7c436c1
SM
87812000-08-27 Stefan Monnier <monnier@cs.yale.edu>
8782
0b32bf0e
SM
8783 * regex.c: Indent cpp directives and remove parens after `defined'.
8784 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
8785 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
8786 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
8787 (re_compile_pattern): Use size_t for length.
8788 (init_syntax_once): Move to a better place.
8789 * regex.h: Merge changes from GNU libc. Indent cpp directives.
8790 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
8791
f7c436c1
SM
8792 * syntax.c (back_comment): Detect cases where a comment-starter is
8793 actually inside another comment as in: /* a // b */ c // d \n.
8794 Make it clear that `comstart_pos' is unused for nested comments.
8795
8796 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
8797 (KEYMAPP): New macro.
8798 (Fkeymap_parent, Fset_keymap_parent): Use it.
8799 (fix_submap_inheritance): Mark it static.
8800 (define_as_prefix, describe_buffer_bindings, describe_command)
8801 (describe_translation, describe_map): Complete prototypes.
8802
8803 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
8804
8805 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
8806 to better match the key-lookup behavior.
8807
6288c62f
GM
88082000-08-27 Gerd Moellmann <gerd@gnu.org>
8809
8810 * xfaces.c (lface_fully_specified_p): Handle :inherit.
8811 (Finternal_set_lisp_face_attribute): Fix typo in error message.
8812
e931344e
EZ
88132000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
8814
8815 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
8816 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
8817 (xterm.o): Depend on coding.h
8818
d10dfeef
KH
88192000-08-26 Kenichi Handa <handa@etl.go.jp>
8820
8821 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
8822 the corresponding '#endif'.
8823
2d73e8d3
MB
88242000-08-26 Miles Bader <miles@gnu.org>
8825
8826 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
8827 * xfaces.c (QCinherit): New variable.
8828 (syms_of_xfaces): Initialize it.
8829 (LFACE_INHERIT): New macro.
8830 (Finternal_get_lisp_face_attribute)
52283633 8831 (merge_face_vector_with_property)
2d73e8d3
MB
8832 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
8833 (check_lface_attrs): Allow new types of face height. Check
8834 inherit attribute.
8835 (CYCLE_CHECK): New macro.
8836 (merge_face_inheritance): New function.
8837 (merge_face_vectors): Merge inherited faces too. Add F and
8838 CYCLE_CHECK arguments.
8839 (merge_face_vector_with_property, Finternal_merge_in_global_face)
8840 (lookup_named_face, lookup_derived_face, realize_named_face)
8841 (face_at_string_position, face_at_buffer_position): Supply
8842 new F and CYCLE_CHECK arguments to merge_face_vectors.
8843 (merge_face_heights): New function.
52283633 8844 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
8845 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
8846 handle relative face heights.
8847 (lface_same_font_attributes_p): Compare heights using EQ.
8848
6ce974d4
KH
88492000-08-26 Kenichi Handa <handa@etl.go.jp>
8850
8851 * charset.c (char_to_string): Check the character validity.
52283633 8852 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 8853
dc1e502d
SM
88542000-08-25 Stefan Monnier <monnier@cs.yale.edu>
8855
8856 * regex.c (PUSH_FAILURE_COUNT): New macro.
8857 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
8858 Handle popping of a register's or a counter's data.
8859 (POP_FAILURE_POINT): Use the new name.
8860 (re_match_2_internal): Push counter data on the stack for succeed_n,
8861 jump_n and set_number_at and remove misleading dead code in succeed_n.
8862
bd9d0f3f
GM
88632000-08-25 Gerd Moellmann <gerd@gnu.org>
8864
8865 * xdisp.c (redisplay_internal): If considering all windows on all
8866 frames, update the display for each frame as soon as possible,
8867 instead of first building all desired matrices for all frames, and
8868 then updating them all.
8869 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
8870
aa5b8e15
GM
88712000-08-24 Gerd Moellmann <gerd@gnu.org>
8872
17494071
GM
8873 * bytecode.c (mark_byte_stack): Add a comment.
8874
52283633
SM
8875 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
8876 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
8877 a graphical frame.
8878
c543db81
KH
88792000-08-24 Kenichi Handa <handa@etl.go.jp>
8880
d246d5f5
KH
8881 * minibuf.c (do_completion): Always use compare-string, not
8882 string-equal because the latter doesn't pay attention to
8883 multibyteness of strings.
8884
c543db81
KH
8885 * process.c (create_process): Don't setup raw-text coding here.
8886 (Fopen_network_stream): Don't set coding->src_multibyte and
8887 coding->dst_multibyte here.
8888 (read_process_output): For process filter, return unibyte string
8889 if default-enable-multibyte-characters is nil.
8890 (send_process): If OBJECT is multibyte text, be sure to encoded it
8891 by the specified coding system for the process. Otherwise, setup
8892 raw-text coding.
52283633 8893 (init_process): Don't initialize default-process-coding-system here.
c543db81 8894
9b47cfe0
EZ
88952000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
8896
8897 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
8898 <scroll-down-aggressively>: Likewise.
8899
f5a36960
KH
89002000-08-23 Kenichi Handa <handa@etl.go.jp>
8901
8902 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
8903 zero. Set coding->produced_char correctly.
8904
69a7ffa7
AI
89052000-08-22 Andrew Innes <andrewi@gnu.org>
8906
8907 * makefile.w32-in: New file.
8908
8909 * unexw32.c (unexec): Ignore old_name, and use the actual location
8910 of the current executable instead. Base new_name on this.
8911
8912 * w32proc.c (create_child): Remove reference to security
8913 descriptor, which isn't needed and doesn't compile with mingw32.
8914
8915 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8916 up dllimport attributes.
8917 (x_update_window_end): Update prototype.
8918
8919 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
8920 extern, which screws up dllimport attributes.
8921
8922 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8923 up dllimport attributes.
8924
8925 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
8926 screws up dllimport attributes.
8927
8928 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8929 up dllimport attributes.
8930 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
8931 screws up dllimport attributes.
8932
8933 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8934 up dllimport attributes.
8935
8936 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
8937 screws up dllimport attributes.
8938
8939 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
8940 screws up dllimport attributes.
8941
8942 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8943 up dllimport attributes.
8944
8945 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
8946 unnecessary extern, which screws up dllimport attributes.
8947 (main): Ditto.
8948
8949 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8950 up dllimport attributes.
8951
8952 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
8953 unnecessary extern, which screws up dllimport attributes.
8954
8955 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
8956 screws up dllimport attributes.
8957
8958 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
8959 up dllimport attributes.
8960
8961 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
8962
52283633
SM
8963 * w32bdf.c (search_file_line):
8964 (set_bdf_font_info):
8965 (seek_char):
8966 (w32_get_bdf_glyph):
69a7ffa7
AI
8967 (w32_BDF_to_x_font): Fix compile warnings.
8968
52283633 8969 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
8970
8971 * w32select.c: Include keyboard.h before frame.h.
8972
8973 * w32fns.c (max): Define macro.
8974 (JOHAB_CHARSET): Define if not known.
8975 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
8976 (Fx_show_tip): Synch with X version.
8977
8978 * w32xfns.c: Include keyboard.h before frame.h.
8979
8980 * w32fns.c: Include keyboard.h before frame.h.
8981
8982 * w32term.c: Include keyboard.h before frame.h.
8983
8984 * fontset.c: Include keyboard.h before frame.h.
8985
8986 * w32inevt.c: Include keyboard.h before frame.h.
8987 (MOUSE_MOVED): Define if not known.
8988
8989 * minibuf.c: Include keyboard.h before frame.h.
8990
8991 * keyboard.c: Include keyboard.h before frame.h.
8992
8993 * indent.c: Include keyboard.h before frame.h.
8994
8995 * dispnew.c: Include keyboard.h before frame.h.
8996
8997 * buffer.c: Include keyboard.h before frame.h.
8998
8999 * alloc.c: Include keyboard.h before frame.h.
9000
9001 * print.c: Include keyboard.h before frame.h.
9002
9003 * process.c: Include keyboard.h before frame.h.
9004
9005 * scroll.c: Include keyboard.h before frame.h.
9006
9007 * sysdep.c: Include keyboard.h before frame.h.
9008
9009 * term.c: Include keyboard.h before frame.h.
9010
9011 * window.c: Include keyboard.h before frame.h.
9012
9013 * xdisp.c: Include keyboard.h before frame.h.
9014 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9015
9016 * frame.c: Include keyboard.h before frame.h.
9017
9018 * w32heap.h: Undefine min, max.
9019
9020 * w32gui.h: Undefine min, max.
9021
9022 * unexw32.c: Change PUCHAR to PCHAR.
9023 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
9024 (relocate_offset):
9025 (get_section_info):
69a7ffa7
AI
9026 (copy_executable_and_dump_data): Remove unnecessary static defs.
9027 (copy_executable_and_dump_data): Fix compile warnings.
9028
9029 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9030
9031 * w32console.c (min): Define macro.
9032 (clear_frame, write_glyphs): Fix compile warning.
9033
52283633 9034 * w32proc.c (compare_env):
69a7ffa7
AI
9035 (find_child_console): Fix compile warning.
9036
9037 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9038 sys_errlist instead of _sys_errlist.
9039 (get_emacs_configuration_options): New function.
9040
9041 * s/ms-w32.h (sys_nerr): Provide default definition.
9042 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9043 name with _ prepended.
9044 (NSIG): Define if not known.
9045 (get_emacs_configuration): Provide extern declaration.
9046 (get_emacs_configuration_options): Provide extern declaration.
9047 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9048
9049 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 9050 (map_w32_filename):
69a7ffa7
AI
9051 (read_unc_volume): Fix compile warning.
9052
9053 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9054 definitions from being used.
9055
9056 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9057
52283633 9058 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
9059 (open_unc_volume): Make arg const.
9060
9061 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9062 (read_input_waiting): Remove excess parameter.
9063
9064 * w32.c (init_environment): Call _access.
9065 (check_windows_init_file): Call _close.
9066 (init_user_info): Call _putenv.
9067 (init_environment): Call _putenv and _strdup.
9068 (init_ntproc): Reset volume info cache on startup.
9069
9070 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9071 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9072 cannot override the CRT malloc.
9073
9074 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9075 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9076
9077 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9078 unless we are linking with a static CRT.
9079 (RVA_TO_PTR): Cast result to unsigned char*.
9080
9081 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9082 (add_volume_info): Use xstrdup.
9083
25060080
SM
90842000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9085
9086 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9087 (do_completion, Fminibuffer_complete_word): Use it.
9088 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9089 var so it can take non-boolean values.
9090
6917e6bb
GM
90912000-08-21 Gerd Moellmann <gerd@gnu.org>
9092
acb7cc89 9093 * editfns.c (find_field): Formatting changes.
52283633 9094 (toplevel): Some old-style function forward declarations
acb7cc89
GM
9095 changed to prototypes, some new protypes added, some functions
9096 made static.
9097
9098 * lisp.h (set_time_zone_rule): Add prototype.
9099 (use_dialog_box): External declaration.
9100
0bbfdc25
GM
9101 * keyboard.c (gen_help_event): Add parameter SIZE.
9102 (kbd_buffer_events_waiting): Slightly rewritten.
9103 (clear_event): New function.
9104 (kbd_buffer_get_event): Use it, and clear the input_events of
9105 HELP_EVENTs.
9106 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9107 don't fill the newly created array with nils.
9108 (toplevel): Convert some old-style function forward declarations
9109 to prototypes.
9110
9111 * keyboard.h (gen_help_event): Change prototype.
9112
9113 * xterm.c (XTread_socket): Change calls to gen_help_event.
9114
9115 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9116
6917e6bb
GM
9117 * eval.c (Fmacroexpand): Doc fix.
9118
e5cd3d11
JR
91192000-08-20 Jason Rumney <jasonr@gnu.org>
9120
9121 * w32term.h (x_display_info_for_display): Remove as this function
9122 does not exist on W32.
9123
9124 * w32term.c (help_echo_window): New variable.
9125 (syms_of_w32term): staticpro it.
9126 (note_mode_line_highlight): Set it.
9127 (XTextExtents16): Removed as there is no equivalent on W32.
9128 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9129 the X way of doing this will not work for W32.
9130 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9131 (x_draw_image_foreground): Avoid drawing outside of the clip area
9132 when image doesn't have a mask.
9133 (note_mouse_highlight): Process overlays in the right order of
9134 priority. Set help_echo_window.
9135 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9136 because that's more visible for large images.
9137
9138 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9139 name to single_keymap_panes.
9140 (w32_menu_show): Set wv->title when dealing with titles.
9141 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9142
6e69ab8c
MB
91432000-08-21 Miles Bader <miles@gnu.org>
9144
9145 * minibuf.c (do_completion): Try again if we rewrite the input
9146 string, but no completion was done, so that any completion message
9147 will be correct.
9148
511bd4eb
GM
91492000-08-20 Gerd Moellmann <gerd@gnu.org>
9150
9151 * xfaces.c (lface_equal_p): Compare strings differently.
9152 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9153 (realize_tty_face): Use them.
9154 (syms_of_xfaces): Initialize new variables.
9155 (map_tty_color): New function, extracted from realize_tty_face.
9156 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9157 foreground or background color, store the new color name in the
9158 realized face; previous code trying to do this had no effect.
9159 (realize_tty_face): Use map_tty_color.
9160 (Fclear_face_cache): Set face_change_count and ensure thorough
9161 redisplay.
9162
1433385f
GM
91632000-08-19 Gerd Moellmann <gerd@gnu.org>
9164
511bd4eb
GM
9165 * undo.c (record_first_change, record_marker_adjustment): Don't
9166 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 9167
419ac0a2
KH
91682000-08-18 Kenichi Handa <handa@etl.go.jp>
9169
9170 * coding.c (decode_coding_string): Set members consumed,
9171 consumed_char, produced, produced_char of *coding correctly. If
9172 decode_coding doesn't consume any byte, don't try anymore.
9173 (encode_coding_string): Likewise.
9174
7eb9e30d
GM
91752000-08-18 Gerd Moellmann <gerd@gnu.org>
9176
511bd4eb
GM
9177 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9178 conditional have void type, for Standard C compilers.
7eb9e30d
GM
9179
9180 * xdisp.c (redisplay_internal): Compare windows for equality with
9181 EQ, instead of applying XWINDOW to something that might not
9182 be a window.
52283633 9183
dd34a735
KH
91842000-08-18 Kenichi Handa <handa@etl.go.jp>
9185
9186 * fontset.c (Finternal_char_font): Search only the selected frame
9187 for a window of the current buffer.
9188
385ff9e3
GM
91892000-08-18 Gerd Moellmann <gerd@gnu.org>
9190
511bd4eb 9191 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
9192 Lisp_Objects.
9193
385ff9e3
GM
9194 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9195 second half of a HELP_EVENT is found at the start of kbd_buffer.
9196
d6abb4c7
MB
91972000-08-18 Miles Bader <miles@gnu.org>
9198
4618074a
MB
9199 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9200
d6abb4c7
MB
9201 * editfns.c (save_restriction_save): Rewrite to use markers.
9202 (save_restriction_restore): Rewrite to understand new form of data
9203 saved by save_restriction_save.
9204 (Fsave_restriction): Remove cautionary note in doc-string.
9205
a7b28523
GM
92062000-08-17 Gerd Moellmann <gerd@gnu.org>
9207
9208 * fileio.c (build_annotations): Add a comment explaining the
9209 return value of format-annotate-function. Replace a spurious call
9210 to Flength with a CONSP test. Call format-annotate-function with
9211 a fifth arg specifying how many times the function is been called
9212 in a row, to let it choose temporary buffers appropriately.
9213
03c9ed77
DL
92142000-08-17 Dave Love <fx@gnu.org>
9215
9216 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9217 declare make_temp_name twice.
9218
52283633 9219 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
9220 (unreadpure): Give it an arg.
9221
9222 * unexalpha.c: Prototype fatal_unexec, mark_x,
9223 update_dynamic_symbols. Declare unexec as void.
9224
9225 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9226 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9227
9228 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 9229 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
9230
9231 * alloca.c: Use #error.
9232 [POINTER_TYPE]: Use it.
9233
9234 * eval.c (Fdefvar): Doc fix.
9235
9236 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9237 INITIALIZE_INTERVAL.
9238
9239 * buffer.h: Avoid DECLARE_INTERVALS.
9240
9241 * config.in: Add size_t.
9242
aae41d97
EZ
92432000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9244
9245 * w16select.c (set_clipboard_data): If there's not enough memory
9246 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9247 expects. In case of other failures, return 3.
9248 (system_error_msg): New error message.
9249 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9250 system_error_msg.
9251
65aa5e85
GM
92522000-08-16 Gerd Moellmann <gerd@gnu.org>
9253
9254 * term.c (write_glyphs): Also turn off inverse video after turning
9255 off other appearances in case TS_exit_attribute_mode is not equal
9256 to TS_end_standout_mode.
9257 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9258 with the same face.
9259 (turn_off_face): Reset standout_mode only if
9260 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9261 is equal to TS_end_standout_mode.
9262
ece23901
KH
92632000-08-16 Kenichi Handa <handa@etl.go.jp>
9264
9d7bcb2e
KH
9265 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9266 sequence at the end of the source block.
9267
ece23901
KH
9268 * ccl.c (Fccl_program_p): Docstring modified.
9269 (Fccl_execute): Likewise.
9270 (Fccl_execute_on_string): Likewise.
9271
5e30eaa2
EZ
92722000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9273
9274 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9275
290602fd
KH
92762000-08-16 Kenichi Handa <handa@etl.go.jp>
9277
9278 The following changes are mainly to fix bugs of
9279 encode/decode-coding-string failing if encoding/decoding return
9280 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9281 variable conversion_buffer.
9282
9283 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9284 decrement dst_end to avoid buffer overflow in the later call of
9285 string_as_multibyte
9286
9287 * coding.h (conversion_buffer_size, conversion_buffer)
9288 (get_conversion_buffer): Extern deleted.
9289
9290 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9291 (conversion_buffer, conversion_buffer_size): Variables deleted.
9292 (get_conversion_buffer): Function deleted.
9293 (struct conversion_buffer): New structure.
9294 (MAX_ALLOCA): New macro.
9295 (allocate_conversion_buffer): New macro.
9296 (extend_conversion_buffer, free_conversion_buffer): New functions.
9297 (ccl_coding_driver): Set coding->result.
9298 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9299 this is the last block of source.
9300 (encode_coding): Likewise. Handle the source block as the last
9301 one only when the whole source text is consumed.
9302 (decode_coding_string): Handle the case that the output buffer is
9303 too small to decode the whole source text. Use
9304 allocate_conversion_buffer, extend_conversion_buffer and
9305 free_conversion_buffer, not get_conversion_buffer.
9306 (encode_coding_string): Likewise.
9307 (init_coding): Function deleted.
52283633 9308 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
9309
9310 * emacs.c (main): Don't call init_coding.
9311
52283633 9312 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
9313
9314 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9315 (insert_glyphs): Likewise.
9316
9317 * w32console.c (write_glyphs): Use a locally declared
9318 conversion_buffer.
9319
b9f80d41
EZ
93202000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9321
9322 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9323 member of display_info is NULL.
9324
32dc52f7
GM
93252000-08-15 Gerd Moellmann <gerd@gnu.org>
9326
52283633 9327 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 9328
32dc52f7 9329 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 9330 appearances with capability `me'.
32dc52f7
GM
9331 (write_glyphs): Switch on inverse video before each face change.
9332
4eb22d33
DL
93332000-08-14 Dave Love <fx@gnu.org>
9334
9335 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9336 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9337 (lisp_free): Declare and make static.
9338
9339 * window.c: Fix embedded comment.
9340 (syms_of_window): Fix doc string.
9341
90cbf47e
GM
93422000-08-14 Gerd Moellmann <gerd@gnu.org>
9343
52283633 9344 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
9345 make sure to print `C-' before `M-', like in the manual.
9346
440fc135
GM
93472000-08-11 Gerd Moellmann <gerd@gnu.org>
9348
9349 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9350 since they aren't relocated anymore.
52283633 9351 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
9352
9353 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 9354 partially visible line which is smaller than the window's height.
440fc135 9355
6e264fad
KH
93562000-08-11 Kenichi Handa <handa@etl.go.jp>
9357
9358 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 9359 the multibyte form of eight-bit-control characters.
6e264fad
KH
9360 (Fccl_execute_on_string): Initialize ccl->multibyte.
9361
9362 * ccl.h (struct ccl_program): New member multibyte.
9363
9364 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
9365
c371f69a
KH
93662000-08-11 Kenichi Handa <handa@etl.go.jp>
9367
9368 * regex.c (regex_compile) <normal_char>: Pay attention to
9369 multibyteness.
9370 (analyse_first) <exactn>: Setup fastmap correctly for
9371 eight-bit-control characters.
9372
93732000-08-11 Kenichi Handa <handa@etl.go.jp>
9374
52283633 9375 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
9376
9377 * keyboard.c (make_lispy_event): Handle the new event type
9378 multibyte_char_keystroke.
9379
9380 * xterm.c: Include coding.h.
9381 (XTread_socket): Work around a bug of XmbLookupString. If the
9382 input is from XIM, decode it according to the current locale. In
9383 that case, generate multibyte_char_keystroke events.
9384
b8ddbe71
KH
93852000-08-11 Kenichi Handa <handa@etl.go.jp>
9386
9387 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
9388 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
9389
47589c8c
GM
93902000-08-10 Gerd Moellmann <gerd@gnu.org>
9391
9392 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
9393 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
9394 (move_it_in_display_line_to): Record iterator's ascent and descent
9395 before producing glyphs, and restore them when we know the glyph
9396 doesn't fit on the line.
9397 (move_it_to): Restructured so that it's easier to debug. If
9398 moving to a vpos, and not moving to an x or character position,
9399 stop as soon as the specified vpos is reached; don't move further
9400 into that line because that might change the computed line height.
9401 (try_cursor_movement): New function, extracted from the cursor
9402 movement branch of redisplay_window. If ending on a partially
9403 visible line, don't try to scroll if the cursor line is taller
9404 than the window.
9405 (redisplay_window): Use try_cursor_movement.
9406
9407 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
9408 because that function doesn't cope with variable-height lines.
9409
9410 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
9411 box cursor because that's better visible for large images.
52283633 9412
c51bacd6
MB
94132000-08-10 Miles Bader <miles@gnu.org>
9414
9415 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
9416
bea56df7
GM
94172000-08-10 Gerd Moellmann <gerd@gnu.org>
9418
9419 * xdisp.c (Vmessages_buffer_name): New variable.
9420 (message_dolog): Use it.
9421 (syms_of_xdisp): Initialize it.
9422
99cd7364
EZ
94232000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
9424
52283633 9425 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
9426 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
9427 redundant now that keyboard.h is included.
9428
7d093d56
EZ
94292000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
9430
9431 * keyboard.c (kbd_buffer_events_waiting): New function.
9432
9433 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
9434
9435 * msdos.c: Include keyboard.h.
9436 (XMenuActivate): Empty no_event events from the event buffer. If
9437 no events are left after that, call clear_input_pending.
9438 (mouse_clear_clicks): New function, code moved from mouse_init.
9439 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
9440 mouse driver to ``forget'' any past clicks.
9441
9442 * Makefile.in (msdos.o): Depend on keyboard.h.
9443
41e757a6
GM
94442000-08-09 Gerd Moellmann <gerd@gnu.org>
9445
8e7bd231
GM
9446 * lisp.h (input_pending): External declaration.
9447
9448 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 9449
8e7bd231
GM
9450 * xdisp.c (echo_area_display): Display thoroughly if input is
9451 pending. Bind redisplay-dont-pause to t during the redisplay.
9452 in case input is pending.
9453
9454 * dispnew.c (Qredisplay_dont_pause): New variable.
9455 (syms_of_display): Initialize and staticpro it.
9456 (update_frame_1): Don't interrupt the display for pending input if
9457 redisplay_dont_pause is set.
52283633 9458
43028b7e
GM
9459 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
9460
41e757a6
GM
9461 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9462
2f2174fa
KH
94632000-08-09 Miles Bader <miles@lsi.nec.co.jp>
9464
9465 * callproc.c (Fcall_process): Terminate the unwind-protect around
9466 the post-read-conversion of coding system.
9467
0a6fd67e
MB
9468 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
9469 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
9470 * buffer.h (overlays_at): Update prototype.
9471 * xdisp.c (next_overlay_change): Update call to overlays_at.
9472 * xfaces.c (face_at_buffer_position): Likewise.
9473 * textprop.c (Fget_char_property): Likewise.
9474 * xterm.c (note_mouse_highlight): Likewise.
9475
0c80756e
MB
9476 * minibuf.c (do_completion): Don't consider a simple change of
9477 case as `completion'.
9478
975f250a
KR
94792000-08-08 Ken Raeburn <raeburn@gnu.org>
9480
52283633 9481 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
9482 * undo.c (record_delete): Make sure last_point_position_buffer is
9483 a buffer before comparing pointers.
9484
9485 * coding.h (decode_coding_string): Declare.
9486
9487 * intervals.h (Fprevious_single_char_property_change): Declare.
9488
9489 * textprop.c (Fprevious_single_char_property_change): Don't do
9490 arithmetic directly on lisp objects.
9491
52283633 9492 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
9493
9494 * keyboard.h (menu_item_eval_property): Declare.
9495
9496 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
9497 reuse as buffer name, instead of recreating (and discarding) every
9498 time a message is logged.
9499 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
9500 (current_message_1, truncate_message_1, set_message_1)
9501 (display_echo_area_1, resize_mini_window_1): Signatures changed.
9502 (current_message, truncate_echo_area, display_echo_area)
9503 (resize_echo_area_axactly): Changed calls.
b347b3fd 9504
975f250a 9505 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 9506 Lisp object.
975f250a 9507 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 9508 must be an integer, not a Lisp object.
975f250a 9509
46dc9912
KH
95102000-08-08 Kenichi Handa <handa@etl.go.jp>
9511
9512 * charset.c (Fchar_width): Doc fix.
9513
9f6d1a6c
GM
95142000-08-08 Gerd Moellmann <gerd@gnu.org>
9515
9516 * charset.c (Fstring_width): Doc fix.
9517
ff3d9573
GM
95182000-08-07 Gerd Moellmann <gerd@gnu.org>
9519
41e757a6 9520 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
9521 line, clear ascent and descent members of the iterator structure;
9522 the height of the continued line does not affect the height of the
9523 continuation line.
9524 (make_cursor_line_fully_visible): Do nothing if cursor is on a
9525 line taller than the window.
9526 (redisplay_window) <forced window start>: Handle case that the
9527 middle of the window is not found in any row.
9528 (dump_glyph_row): Show more information.
9529 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
9530 first text line in a glyph matrix.
9531
9532 * xterm.c (x_draw_image_foreground): Avoid drawing outside
9533 of the clip area when image doesn't have a mask.
9534
70fc58b3
GM
9535 * fns.c (sweep_weak_table): Fix survival conditions for
9536 key-or-value and key-and-value weakness.
9537
9538 * .gdbinit (xhashtable): New command.
9539
ac0e96ee
GM
9540 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
9541 tables out of the list of all weak hash tables.
9542
ff3d9573
GM
9543 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
9544 a new buffer is created, make sure echo_area_buffer[] references
9545 the new buffer.
9546
e0d8827b
EZ
95472000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
9548
9549 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
9550 the doc string.
9551
c6f35378
KH
95522000-08-07 Kenichi Handa <handa@etl.go.jp>
9553
9554 * syntax.c (skip_chars): Fix previous change. Make the handling
9555 of unibyte string consistent with that of regex search.
9556
1fd4c450
GM
95572000-08-05 Gerd Moellmann <gerd@gnu.org>
9558
e49aa397
GM
9559 * xmenu.c (popup_get_selection): Use xfree instead of free.
9560
9561 * fileio.c (Finsert_file_contents): Use xfree instead of free.
9562
9563 * editfns.c (Ftranspose_regions): Use xfree instead of free.
9564
9565 * callproc.c (child_setup): Use xfree instead of free.
9566
9567 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
9568 instead of malloc.
9569 (run_mac_command, closedir): Use `xfree' instead of `free'.
9570
9571 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
9572
9573 * eval.c (error): Use xfree instead of free.
9574
1fd4c450
GM
9575 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
9576
9577 * fns.c: Replace `illegal' with `invalid'.
e49aa397 9578 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 9579
82d497fc
KH
95802000-08-05 Kenichi Handa <handa@etl.go.jp>
9581
9582 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
9583 conversion.
9584
59f953a2
NF
95852000-08-04 Noah Friedman <friedman@splode.com>
9586
9587 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
9588 docstring.
9589
688351f2
GM
95902000-08-04 Gerd Moellmann <gerd@gnu.org>
9591
9592 * syntax.c (skip_chars): Fix typo in error message.
9593
2dad51cc
AS
95942000-08-04 Andreas Schwab <schwab@suse.de>
9595
9596 * m/ia64.h: Moved from s/ia64.h.
9597
99bb2c60
KH
95982000-08-04 Kenichi Handa <handa@etl.go.jp>
9599
082a1df2
KH
9600 * process.c (read_process_output): Big simplification. Handle
9601 composition and post-read-conversion of coding system correctly.
9602 (send_process): Handle composition correctly.
9603
9604 * callproc.c (Fcall_process): Handle post-read-conversion of
9605 coding system if any.
9606
99bb2c60
KH
9607 * coding.c (decode_coding_iso2022): More strict check for handling
9608 single shifting.
082a1df2
KH
9609 (coding_restore_composition): Pay attention to the case that
9610 cmp_data is not set properly (because of invalid code in the
9611 source text).
9612 (run_pre_post_conversion_on_str): Include text properties in the
9613 resulting string.
9614 (decode_coding_string): Set members of coding correctly.
99bb2c60 9615
f4988be7
GM
96162000-08-03 Gerd Moellmann <gerd@gnu.org>
9617
9618 * s/ia64.h: New file.
9619
9620 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
9621 Use NULL instead of 0 at the end of variable argument list of
9622 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
9623 sizeof (int) < sizeof (void *).
9624
9625 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
9626 of variable argument lists of XtVaGetValues and XtVaSetValues.
9627
9628 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
9629 variable argument lists of XtVaGetValues and XtVaSetValues.
9630
ead53494
GM
96312000-08-02 Gerd Moellmann <gerd@gnu.org>
9632
9633 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
9634 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
9635
9636 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
9637 prototype.
9638
9639 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
9640 in call to Fsingle_key_description.
9641
9642 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
9643 Callers changed.
9644
96452000-08-02 Colin Walters <walters@cis.ohio-state.edu>
9646
9647 * window.c (display_buffer_reuse_frames): New variable.
9648 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
9649 frames displaying BUFFER.
52283633 9650 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 9651
10b0f752
MB
96522000-08-01 Miles Bader <miles@gnu.org>
9653
9654 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
9655 when to constrain NEW_POS (they were pretty screwed up before).
9656
16425c4a
EZ
96572000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
9658
9659 * msdos.c (run_msdos_command): Save and restore the master
9660 environment, for the case that child_setup signals an error.
9661 When mirroring slashes in DOS shell commands, don't fail when
9662 argv[2] has embedded blanks.
da288c14
EZ
9663 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
9664 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
9665 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
9666
9667 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
9668 using alloca; free it after run_msdos_command returns.
9669
27f73852
DL
96702000-07-27 Dave Love <fx@gnu.org>
9671
52283633
SM
9672 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
9673 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
9674
9675 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
9676
c0261b5e
EZ
96772000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
9678
9679 * editfns.c (lisp_time_argument): Fix last change.
9680
b548072f
GM
96812000-07-27 Gerd Moellmann <gerd@gnu.org>
9682
3ab82477
GM
9683 * fns.c (Fdelete): Make it work on vectors and strings in addition
9684 to lists.
9685
b548072f
GM
9686 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
9687 (syms_of_fns): Initialize new variables.
52283633 9688 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
9689 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
9690 weakness, with t meaning the same as `key-and-value'.
9691
91ae8751
KH
96922000-07-27 Kenichi Handa <handa@etl.go.jp>
9693
9694 * coding.h (struct coding_system): Member safe_charset deleted.
9695
9696 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
9697 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
9698 New variables.
91ae8751
KH
9699 (coding_safe_chars): New function.
9700 (CODING_SAFE_CHAR_P): New macro.
9701 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 9702 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
9703 (detect_coding_iso2022): New local variable safe_chars.
9704 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
9705 safe_charsets member of the coding system.
9706 (decode_coding_iso2022): New local variable safe_chars.
9707 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
9708 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
9709 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
9710 (ENCODE_UNSAFE_CHARACTER): New macro.
9711 (encode_coding_iso2022): New local variable safe_chars. Check
9712 unsafe chars.
9713 (setup_coding_system): Delete the code to initialize
9714 coding->safe_charses
9715 (intersection, find_safe_codings): New functions.
9716 (Ffind_coding_systems_region_internal): New function.
9717 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
9718 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
9719 variable and initialize it.
9720
9721 * fns.c (char_table_ref_and_index): New function.
9722
9723 * lisp.h (char_table_ref_and_index): Add prototype.
9724
34a7a267
SS
97252000-07-26 Sam Steingold <sds@gnu.org>
9726
9727 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 9728 (Ffloat_time): New built-in Lisp function.
34a7a267 9729
a95cb10a
GM
97302000-07-26 Gerd Moellmann <gerd@gnu.org>
9731
3353ef5a
GM
9732 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
9733 for the character code.
9734
9735 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
9736 GNU/Linux.
9737
a95cb10a
GM
9738 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
9739 if called for a popup menu.
9740 (xmenu_show): Store help string in widget values.
9741
b4a12321
DL
97422000-07-26 Dave Love <fx@gnu.org>
9743
9744 * syswait.h: Move some definitions.
9745 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
9746 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
9747 perspicuous definitions.
9748 (WTERMSIG): Fix bit pattern used.
9749
13f5ad37
KH
97502000-07-26 Kenichi Handa <handa@etl.go.jp>
9751
9752 * print.c (print_object): If vector printing is truncated, print
9753 "..." to indicate it as well as the case of list printing.
9754
070fe99c
GM
97552000-07-25 Gerd Moellmann <gerd@gnu.org>
9756
969065c3
GM
9757 * xdisp.c (next_element_from_display_vector): Improve comments.
9758
9759 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
9760 for the character code, and the rest for the face id as in 20.x.
9761 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
9762
9763 * window.c (window_display_table): Cleaned up.
9764
070fe99c
GM
9765 * syntax.c (Fforward_word): Add last arg nil in call of
9766 Fconstrain_to_field.
9767
bad77ef7
EZ
97682000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
9769
969065c3 9770 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
9771 identical but for the letter-case, don't call
9772 barf_or_query_if_file_exists.
bad77ef7 9773
c28da489
MB
97742000-07-25 Miles Bader <miles@gnu.org>
9775
9776 * editfns.c (find_field): Honor special `boundary' fields.
9777 (Qboundary): New variables.
9778 (syms_of_editfns): Initialize Qboundary.
9779 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
9780 Use scan_buffer instead of find_before_next_newline, because it
9781 allows us to detect the boundary case where there's a newline at
9782 the search limit.
9783 * lisp.h (Fconstrain_to_field): Update external declaration.
9784
e3c31fd5
GM
97852000-07-24 Gerd Moellmann <gerd@gnu.org>
9786
9787 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
9788 if that is nil.
c28da489 9789
c66c29a2
DL
97902000-07-24 Dave Love <fx@gnu.org>
9791
9792 * s/sunos4-0.h, s/sol2.h:
9793 (LIBS_TERMCAP): Move from m/sparc.h.
9794
9795 * m/sparc.h (TERMINFO): Moved to system files (probably only
9796 relevant for sunos4 judging by its vintage).
9797 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
9798 __arch64__.
9799
fbe0a958
EZ
98002000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
9801
9802 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
9803 name to single_keymap_panes.
9804
7d88e5c9
AS
98052000-07-24 Andreas Schwab <schwab@suse.de>
9806
9807 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
9808
e024b101
GM
98092000-07-24 Gerd Moellmann <gerd@gnu.org>
9810
9811 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
9812 parameters instead of using int parameters. Expect FN to accept
9813 EMACS_INT parameters.
9814 (display_echo_area, resize_echo_area_axactly, current_message)
9815 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
9816 with new argument list.
9817 (resize_mini_window_1): New callback function.
9818 (current_message_1, truncate_message_1, set_message_1): Change
52283633 9819 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 9820
25c1a9ce
KH
98212000-07-24 Kenichi Handa <handa@etl.go.jp>
9822
9823 * fontset.c (fontset_ref): Remove INLINE declaration.
9824 (fontset_ref_via_base): Likewise.
9825 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
9826 to downcase.
9827
7f987ac0
EZ
98282000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
9829
9830 * msdos.c (IT_note_mouse_highlight): Process overlays in the
9831 correct order of priority. If help echo was found in an overlay,
9832 use that overlay as the object in which the help echo was found.
9833
e2db3069
MB
98342000-07-22 Miles Bader <miles@gnu.org>
9835
9836 * textprop.c (Fprevious_single_char_property_change): The initial
9837 property value should be from the position preceding POSITION, not
9838 following it.
9839
5e3203e4
EZ
98402000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
9841
9842 * coding.c (syms_of_coding): Doc fix for
9843 inhibit-iso-escape-detection.
9844
62145073
GM
98452000-07-21 Gerd Moellmann <gerd@gnu.org>
9846
c20aeb83
GM
9847 * xterm.c (note_mouse_highlight): Process overlays in the right
9848 order of priority.
34a7a267 9849
743934db
GM
9850 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
9851
9852 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 9853 overlay, use that overlay as the object in which the help was found.
743934db 9854
d1dc7e43 9855 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 9856
62145073
GM
9857 * window.c (foreach_window): Instead of a fake variable argument
9858 list, take one USER_DATA argument.
9859 (foreach_window_1): Likewise, and call callback functions with two
9860 args, the window and USER_DATA.
9861 (struct check_window_data): New struct.
9862 (check_window_containing): Use it.
9863 (window_from_coordinates): Set up a struct check_window_data for
9864 foreach_window.
9865 (add_window_to_list, freeze_window_start): Change parameters
9866 according to new calling convention.
9867
9868 * window.h (foreach_window): Change prototype.
9869
9870 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
9871
98722000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
9873
9874 * xmenu.c (menu_help_callback): Call show_help_echo with
9875 additional arguments OBJECT and POS.
9876
11270583
KH
98772000-07-21 Kenichi Handa <handa@etl.go.jp>
9878
07b14857
KH
9879 * data.c (Faset): Allow storing any multibyte character in a
9880 string. Convert unibyte string to multibyte if necessary.
9881
11270583
KH
9882 * xfns.c (x_encode_text): New function.
9883 (x_set_name): Use x_encode_text.
9884 (x_set_title): Likewise.
9885
9886 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
9887
9888 * xterm.h (x_encode_text): Add prototype.
9889
bc75b4fd
DL
98902000-07-20 Dave Love <fx@gnu.org>
9891
9892 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
9893 xfree, not free.
9894
48c14970
EZ
98952000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
9896
9897 * msdos.c (help_echo_window): New variable.
9898 (syms_of_msdos): Initialize and staticpro it.
9899 (IT_note_mode_line_highlight): Set help_echo_window.
9900 (IT_note_mouse_highlight): Ditto.
9901 (dos_rawgetc): Store help_echo_window in the second event produced
9902 for HELP_EVENTs.
9903
9904 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
9905 Record the object that generated the help echo and the position of
9906 that object in help_echo_object and help_echo_pos. Record that
9907 some glyphs in a row are displayed in mouse-face.
9908 (IT_update_begin): Don't clear mouse highlight unless one of the
9909 enabled glyph rows is marked as being displayed in mouse-face.
9910 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
9911 and position recorded in help_echo_object and help_echo_pos to the
9912 event queue.
9913 (IT_menu_display): Accept a new argument PN: the pane number of
9914 the current menu pane. Record the pane number and the item
9915 number of the item which has associated help string.
9916 (XMenuActivate): Update the prototype for help_callback in
9917 function declaration. Call IT_menu_display with the current menu
9918 pane number as an additional argument. Call help_callback with
9919 two additional arguments: the pane number and the item number of
9920 the menu item associated with the help text.
9921 (help_echo_object, help_echo_pos): New variables.
9922 (syms_of_msdos): Initialize them and staticpro help_echo_object.
9923
9924 * msdos.h (XMenuActivate): Update prototype.
9925
4279296d
GM
99262000-07-19 Gerd Moellmann <gerd@gnu.org>
9927
47db06aa
GM
9928 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
9929 Add some more prototypes.
9930
9931 * xterm.c, xterm.h: Add some more prototypes.
9932
9933 * lisp.h (Fnext_single_char_property_change): Add prototype.
9934
9935 * dispnew.c (direct_output_for_insert): Remove confusing
9936 outer local variable mouse_face_overwritten_p.
9937 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
9938
4279296d
GM
9939 * alloc.c (allocate_string_data): Don't copy old string contents.
9940
670acd62
KH
99412000-07-19 Kenichi Handa <handa@etl.go.jp>
9942
9943 * coding.c (code_convert_region): Delete text properties before
9944 shrinking the conversion region.
9945
7cea38bc
GM
99462000-07-18 Gerd Moellmann <gerd@gnu.org>
9947
dc1cac59
GM
9948 * dispnew.c (update_text_area): Write the whole row if it
9949 has mouse-face in it.
9950
85a8aca9
GM
9951 * xfaces.c (face-alternative-font-family-alist): Remove
9952 DEFVAR_LISP; staticpro instead.
9953
34a7a267 9954 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
9955 new arguments.
9956
9957 * keyboard.c (show_help_echo): Add parameter WINDOW.
9958 (read_char): Call show_help_echo with window extracted from Lisp
9959 help event.
9960 (gen_help_event): Add parameter WINDOW.
9961
9962 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
9963
9964 * xterm.c (help_echo_window): New variable.
52283633 9965 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
9966 (XTread_socket): Pass help_echo_window to gen_help_event.
9967 (syms_of_xterm): Initialize and staticpro help_echo_window.
9968
f8276b77
DL
99692000-07-18 Dave Love <fx@gnu.org>
9970
52283633 9971 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 9972
088831a6
GM
99732000-07-18 Gerd Moellmann <gerd@gnu.org>
9974
3d6cd763
GM
9975 * alloc.c (allocate_string_data): If string had already data
9976 assigned, copy old contents to new string data.
9977
9978 * coding.c (syms_of_coding): Fix typo in spelling of variable
9979 `inhibit-iso-escape-detection'.
9980
088831a6
GM
9981 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
9982
9983 * Makefile.in: Add dependencies on dispextern.h.
9984 (alloca.o): Don't define malloc and define EMACS_FREE instead of
9985 `free'; both can conflict with system header files.
9986
bc8a8d55
KH
99872000-07-18 Kenichi Handa <handa@etl.go.jp>
9988
9989 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
9990 undefined.
9991
069f5950
DL
99922000-07-18 Dave Love <fx@gnu.org>
9993
9994 * window.c (Fwindow_list): Declare arg `window'.
9995
aa96c820
KH
99962000-07-18 Kenichi Handa <handa@etl.go.jp>
9997
9998 * coding.c (setup_coding_system): Don't override the explicitly
9999 specified designations.
10000
06be8d32
MB
100012000-07-15 Miles Bader <miles@gnu.org>
10002
10003 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10004 from `text_property_eq' and `text_property_stickiness', respectively.
10005 (find_field, Fconstrain_to_field, char_property_eq)
10006 (char_property_stickiness): Changed to call char-property functions
10007 instead of text-property-only ones.
10008
10009 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10010 `next_single_char_property_change'). Do more error checking, and
10011 cleanup limit behavior.
10012 (Fprevious_single_char_property_change): New function.
10013 (syms_of_textprop): Initialize new subrs.
10014
10015 * xdisp.c (display_prop_end, invisible_text_between_p):
10016 Call Fnext_single_char_property_change instead of
10017 next_single_char_property_change.
10018
3fddcdc3
JR
100192000-07-15 Jason Rumney <jasonr@gnu.org>
10020
10021 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10022 after menu is finished with.
10023 (add_menu_item): Only consider wv->title as a menu title.
10024 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10025
10026 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10027 null title.
10028 (FONT_REGEXP): Remove unused macro, and its sub-components.
10029 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10030
10031 * w32term.c (help_echo_object, help_echo_pos): New variables.
10032 (note_mode_line_highlight): Store additional information about the
10033 help-echo in help_echo_object and help_echo_pos. Check both
10034 `local-map' and `keymap' properties for changing the cursor
10035 (note_mouse_highlight): Store additional information about the
10036 help-echo in help_echo_object and help_echo_pos.
10037 (note_tool_bar_highlight): Set help_echo_object to nil and
10038 help_echo_pos to -1.
10039 (w32_read_socket): Use gen_help_event instead of filling
10040 input_events manually.
10041 (syms_of_w32term): Staticpro help_echo_object.
10042 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 10043 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
10044 (x_clear_mouse_face): New function.
10045 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10046 (x_update_window_begin): No need to turn off the mouse
10047 highlight here.
10048 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10049 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
10050 (x_fill_stretch_glyph_string): Consume runs of stretch
10051 glyphs instead of a single one.
10052 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10053 with new argument list.
10054 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10055 (x_append_glyph, x_append_composite_glyph)
10056 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10057 changes in struct glyph starting 1999-12-27. See comments for
10058 xterm.c on 2000-07-05.
10059
178c5d9c
SS
100602000-07-14 Sam Steingold <sds@gnu.org>
10061
10062 * xfaces.c (realize_x_face): Fix the last patch:
10063 check `default_face' before dereferencing.
10064
6fe533f6
DL
100652000-07-14 Dave Love <fx@gnu.org>
10066
069f5950 10067 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 10068
dd7b81cf
KH
100692000-07-14 Kenichi Handa <handa@etl.go.jp>
10070
0693904a 10071 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 10072 default_face's fontset, not using the default fontset.
0693904a 10073
dd7b81cf
KH
10074 * coding.c (inhibit_iso_escape_detection): New variable.
10075 (syms_of_coding): Make it a Lisp variable.
10076 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10077 nonzero, ignore ISO2022's escape sequence.
10078
d5aa31d8
GM
100792000-07-14 Gerd Moellmann <gerd@gnu.org>
10080
e5acf0ca
GM
10081 * alloca.c (malloc) [emacs]: Define as xmalloc.
10082
bd23a692
GM
10083 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10084 use that instead of the mouse position. Add parameters DX and DY.
10085
10086 * dispextern.h (Fx_show_tip): Adjust number of parameters
10087 in prototype.
10088
9662da0b
GM
10089 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10090 if HELP is a function, call it with OBJECT and POS as parameters
10091 to get the help to display.
10092 (gen_help_event, kbd_buffer_store_help_event): New functions.
10093 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10094 (read_char): Call show_help_echo with new parameters.
10095
178c5d9c 10096 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
10097 Add prototypes.
10098
10099 * xterm.c (help_echo_object, help_echo_pos): New variables.
10100 (note_mode_line_highlight): Store additional information about the
10101 help-echo in help_echo_object and help_echo_pos. Check both
10102 `local-map' and `keymap' properties for changing the cursor
10103 (note_mouse_highlight): Store additional information about the
10104 help-echo in help_echo_object and help_echo_pos.
10105 (note_tool_bar_highlight): Set help_echo_object to nil and
10106 help_echo_pos to -1.
10107 (XTread_socket): Use gen_help_event instead of filling
10108 input_events manually.
10109 (syms_of_xterm): Staticpro help_echo_object.
10110
10111 * xmenu.c (menu_highlight_callback): Use
10112 kbd_buffer_store_help_event instead of setting up and input_event
10113 structure manually.
10114
10115 * xdisp.c (eval_form): GCPRO argument sexpr.
10116 (call_function): New function.
10117 (handle_single_display_prop): Use call_function and FUNCTIONP
10118 instead of checking whether if font_height is a symbol and
10119 using eval_form.
10120
10121 * eval.c (internal_condition_case_2): New function.
10122
10123 * lisp.h (FUNCTIONP): New macro.
10124 (internal_condition_case_2, call_function): Add prototypes.
10125
d5aa31d8
GM
10126 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10127 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10128 Always set `arg' member of input_events.
10129 (construct_menu_click): Unused function removed.
10130
10131 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10132
10133 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10134 (construct_drag_n_drop, x_scroll_bar_handle_click)
10135 (w32_read_socket): Always set `arg' member of input_events.
10136
10137 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10138
10139 * lisp.h (eval_form): Add prototype.
10140
10141 * xdisp.c (eval_form): Make it externally visible.
10142
0f1a9b23
GM
101432000-07-13 Gerd Moellmann <gerd@gnu.org>
10144
10145 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10146 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10147 consing. For prefix events, store the frame in the `arg' slot of
10148 the event, otherwise store the key there.
10149 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 10150 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
10151
10152 * xmenu.c (menu_highlight_callback): Store help string in the
10153 `arg' member of the input event; don't cons.
10154 (menubar_selection_callback): Use the `arg' slot of input events
10155 to queue additional information, instead of consing.
10156
10157 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10158
10159 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10160 TOOL_BAR_EVENTs.
10161 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10162
10163 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10164 input events to queue additional information, instead of consing.
10165
10166 * keyboard.c (kbd_buffer_gcpro): Renamed from
10167 kbd_buffer_frame_or_window. Now used for all Lisp objects
10168 referenced from the input queue.
10169 (kbd_buffer_store_event): Always use structure assignment for
10170 copying input events. Record all Lisp objects referenced from
10171 events in kbd_buffer_gcpro.
10172 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10173 differently from input events. Test for prefix menu_bar_events
10174 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10175 event in kbd_buffer_gcpro to nil.
10176 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10177 frame_or_window is equal to its arg member as prefix events.
10178 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10179 used by an input event to nil.
10180 (init_keyboard): Use two times the size of the input queue
10181 for kbd_buffer_gcpro.
10182 (syms_of_keyboard): Likewise.
10183
52283633
SM
10184 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10185 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
10186
10187 * termhooks.h (struct input_event): Add member `arg'.
10188 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10189 (USER_SIGNAL_EVENT): Renamed from user_signal.
10190
10191 * xfaces.c (ASET): Remove definition.
10192
10193 * lisp.h (AREF, ASET, ASIZE): New macros.
10194
10195 * fontset.c (AREF, ASIZE): Remove definitions.
10196
10197 * fns.c (AREF): Remove definition.
178c5d9c 10198
0f1a9b23
GM
10199 * composite.c (AREF): Remove definition.
10200
712eaef2
GM
102012000-07-12 Gerd Moellmann <gerd@gnu.org>
10202
d8ee7803
GM
10203 * dispnew.c (redraw_overlapped_rows): Add missing local.
10204 (scrolling_window): Remove debug code.
10205
712eaef2
GM
10206 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10207 Before scrolling, turn off a mouse-highlight in the window
10208 being scrolled.
10209
10210 * xterm.c (x_update_window_end): Add parameter
10211 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10212 redisplay in XTframe_up_to_date.
10213 (x_clear_mouse_face): New function.
10214 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10215
10216 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10217 current glyph row.
10218 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10219 it when any row is written to that contains glyphs highlighted in
10220 mouse-face.
10221 (update_window): Call the window update end hook with new
10222 parameter MOUSE_FACE_OVERWRITTEN_P.
10223 (direct_output_for_insert): Give up if row contains mouse-face.
10224
10225 * dispextern.h (struct redisplay_interface): Add parameter
10226 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10227 (clear_mouse_face): New function pointer member.
10228
02010917
SM
102292000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10230
10231 * syntax.c (back_comment): Use one switch rather than a few `if's.
10232 Obey open_paren_in_column_0_is_defun_start.
10233 When reverting to the `slow' method, try to nicely handle the case
10234 of nested comments by checking that the comment-starter we found
10235 does indeed match the comment-ender.
10236 (scan_sexps_forward, scan_sexps_forward):
10237 Ignore excessive opening parenthesis rather than throwing an error.
10238
d76c03ea
GM
102392000-07-11 Gerd Moellmann <gerd@gnu.org>
10240
10241 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10242 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10243
10244 * dispnew.c (direct_output_forward_char): Give up if currently
10245 displaying a message instead of the minibuffer contents.
10246
10247 * xterm.c (x_update_window_begin): No need to turn off the mouse
10248 highlight here.
10249 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10250 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
10251
10252 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10253 compare the mouse_face_p flags of both rows.
10254
10255 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10256
d55ead18
EZ
102572000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10258
10259 * keyboard.c (show_help_echo): Accept additional parameter
10260 ok_to_overwrite_keystroke_echo.
10261 (read_char): Call show_help_echo with a zero
10262 ok_to_overwrite_keystroke_echo argument.
52283633 10263 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
10264 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10265 ok_to_overwrite_keystroke_echo argument.
10266 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10267 non-zero ok_to_overwrite_keystroke_echo argument.
10268
df75b1a3
GM
102692000-07-10 Gerd Moellmann <gerd@gnu.org>
10270
4b92c49a
GM
10271 * xdisp.c (try_window_id): If changes are all below what is
10272 displayed in the window, and point is in the window, we still
10273 might have to find point on the display.
10274
10275 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10276 glyphs instead of a single one.
10277 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10278 with new argument list.
10279 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10280
df75b1a3
GM
10281 * keymap.c (get_keymap_1): Add comment that this function can GC.
10282 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10283 comment that functions can GC.
10284 (Fset_keymap_parent): GCPRO arg KEYMAP.
10285
4314cf3e
EZ
102862000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10287
10288 * msdos.c (XMenuActivate): After exiting the menu, restore the
10289 echo area message and erase it.
10290
ab49ce15
KH
102912000-07-10 Kenichi Handa <handa@etl.go.jp>
10292
10293 * fontset.c (Ffontset_info): Make the return value more compatible
10294 with that of Emacs 20.
10295
090a072f
GM
102962000-07-07 Gerd Moellmann <gerd@gnu.org>
10297
10298 * eval.c (Fsignal): Handle case that backtrace_list is null.
10299
f92de4a6
KH
103002000-07-07 Kenichi Handa <handa@etl.go.jp>
10301
10302 * ccl.c (Fccl_execute): Typo fixed.
10303
dd8888a1
GM
103042000-07-06 Gerd Moellmann <gerd@gnu.org>
10305
e5c81191 10306 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 10307
dd8888a1
GM
10308 * window.c (Fwindow_list): Reverse list at the end.
10309 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10310 means allow windows on OWINDOW's frame, only.
10311 (window_loop): Simplified; use Fwindow_list.
10312
10313 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10314
485266d0
GM
103152000-07-05 Gerd Moellmann <gerd@gnu.org>
10316
10317 * xterm.c (XTread_socket): Increment handling_signal at the start,
10318 decrement it at the end.
10319
10320 * eval.c (handling_signal): New variable.
10321 (Fsignal): Abort if handling_signal is non-zero.
10322
10323 * lisp.h (handling_signal): External declaration.
178c5d9c 10324
485266d0
GM
10325 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10326
80fcd514
KR
103272000-07-05 Ken Raeburn <raeburn@gnu.org>
10328
10329 Sound support for NetBSD through "Linux emulation" support:
10330 * config.in (HAVE_SOUNDCARD_H): Undef.
10331 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10332 * Makefile.in (LIBSOUND): New variable.
10333 (LIBES): Include it.
52283633
SM
10334 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10335 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
10336 (vox_open): Use DEFAULT_SOUND_DEVICE.
10337 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10338
d5c5cddd
GM
103392000-07-05 Gerd Moellmann <gerd@gnu.org>
10340
10341 * print.c (print_error_message): If Vsignaling_function is set,
10342 show it in *Messages*.
10343
10344 * lisp.h (Vsignaling_function): External declaration.
10345
10346 * eval.c (Vsignaling_function): New variable.
10347 (Fsignal): Compute it.
10348 (syms_of_eval): Staticpro it.
10349
65171e3a
DL
103502000-07-05 Dave Love <fx@gnu.org>
10351
10352 * syswait.h: Use the autoconf recommended approach. Old code
10353 #if'd out in case we need to revert.
10354
178c5d9c 10355 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 10356
e2c46326
AI
103572000-07-05 Andrew Innes <andrewi@gnu.org>
10358
10359 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
10360 when non-NULL instead of __morecore, to take account of buffer
10361 memory. This also solves a problem with spurious memory warnings
10362 on Windows.
10363
10364 * ralloc.c: Make real_morecore non-static.
10365
10366 * eval.c (internal_condition_case): Comment out abort if
10367 interrupt_input_blocked is not zero.
10368
10369 * makefile.nt: Add support for `bootstrap' and related targets.
10370 Include minimal debug info in emacs.exe in release build.
10371 Remove all dependencies on lisp.h, and fixup some others.
10372
10373 * w32.c (init_environment): Install code from 20.7 for providing
10374 default values for environment variables, based on the
10375 executable's own location.
52283633 10376 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
10377 (sys_socket): Install socket inheritance bug fix from 20.7.
10378
10379 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
10380 here via blockinput.h).
10381
a027a91b
SM
103822000-07-05 Stefan Monnier <monnier@cs.yale.edu>
10383
e4b31601
SM
10384 * w32menu.c (w32_menu_display_help):
10385 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
10386
10387 * keyboard.h (show_help_echo): Declare.
10388
10389 * keyboard.c (show_help_echo): New function, extracted from read_char.
10390 Feval its `msg' argument if it's a cons cell.
10391 (read_char): Use it.
4cf8d9d5 10392 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 10393
178c5d9c 10394 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 10395 (note_tool_bar_highlight, XTread_socket):
178c5d9c 10396 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
10397 (dos_rawgetc):
10398 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
10399 (note_tool_bar_highlight, w32_read_socket):
10400 Do not gratuitously ignore non-string `help-echo' properties.
10401
88d75730
GM
104022000-07-05 Gerd Moellmann <gerd@gnu.org>
10403
969f7e79
GM
10404 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
10405
71201b00
GM
10406 * window.c (delete_all_subwindows): Reset Vwindow_list.
10407
88d75730
GM
10408 * xterm.c (x_append_glyph, x_append_composite_glyph)
10409 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10410 changes in struct glyph starting 1999-12-27. Some bit-fields of
10411 struct glyph were not set, which made glyphs unequal when compared
10412 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
10413 effects were the result. This also depended on the contents of
10414 memory returned by xmalloc. If flickering happens again, activate
10415 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 10416 gone with that, chances are that it is caused by something similar.
88d75730
GM
10417
10418 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 10419
88d75730
GM
10420 * dispextern.h: Add some comments.
10421
10422 * window.c (add_window_to_list): Add parameter LIST.
10423 (window_list): Order list so that, for each frame, windows are
10424 in canonical order, and so that frames appear in the list in
10425 the order given by Vframe_list.
10426 (next_window): Reverse the handling of NEXT_P.
10427
53654733
GM
104282000-07-04 Gerd Moellmann <gerd@gnu.org>
10429
87efd256
GM
10430 * window.c (Vwindow_list): New variable.
10431 (make_window, delete_window): Set Vwindow_list to nil.
10432 (check_window_containing): New function.
10433 (window_from_coordinates): Rewritten.
10434 (add_window_to_list, window_list, candidate_window_p)
10435 (decode_next_window_args, next_window): New functions.
52283633 10436 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
10437 (Fwindow_list): New function.
10438 (Fother_window): Cleaned up.
10439 (foreach_window): Add a longer "variable argument list". Let
10440 callback function return 0 to indicate that cycling over windows
10441 should stop.
10442 (foreach_window_1): Likewise.
10443 (freeze_window_start): Return int.
10444 (init_window): New function.
10445 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
10446
10447 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
10448 input_event with bzero.
10449 (main): Call init_window.
10450
53654733
GM
10451 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
10452 a menu filter.
10453
4a8c194f
KH
104542000-07-04 Kenichi Handa <handa@etl.go.jp>
10455
10456 * composite.h (make_composition_value_copy): Extern it.
10457
10458 * composite.c (make_composition_value_copy): New function.
10459
10460 * editfns.c (Fformat): While copying text properties, make each
10461 composition property value a copy.
10462
10463 * fns.c (concat): While copying text properties, make each
10464 composition property value a copy.
10465
831a6cb0
GM
104662000-07-03 Gerd Moellmann <gerd@gnu.org>
10467
2f516940
GM
10468 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
10469
178c5d9c 10470 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
10471 marked already.
10472
831a6cb0
GM
10473 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
10474 include those frames as candidates which have their focus
10475 redirected to the minibuffer frame.
10476
d9c4f922
SM
104772000-07-03 Stefan Monnier <monnier@cs.yale.edu>
10478
10479 * fns.c (Fputhash): Return `value' rather than nil.
10480
3780bc22
GM
104812000-06-30 Gerd Moellmann <gerd@gnu.org>
10482
97d176db
GM
10483 * frame.c (next_frame): Don't check focus redirection in case
10484 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
10485 unless their focus is redirected, which contradicts the
10486 specification of next-frame, and leads to infinite loops in
10487 certain situations when cycling through windows with next-window.
10488
dca9961d
KH
104892000-06-30 Kenichi Handa <handa@etl.go.jp>
10490
10491 * coding.c (code_convert_region): Even if the length of text is
10492 zero, try to convert it if coding->type is coding_type_ccl.
10493 (decode_coding_string, encode_coding_string): Likewise.
10494
d5483ab1
GM
104952000-06-28 Gerd Moellmann <gerd@gnu.org>
10496
af5c25e1 10497 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 10498 the display if windows_or_buffers_changed.
af5c25e1
GM
10499
10500 * dispnew.c (struct row_entry): New structure.
10501 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
10502 (row_table_size, old_lines, new_lines, old_lines_size)
10503 (new_lines_size, run_pool, runs_size, runs): New variables.
10504 (add_row_entry): New function.
10505 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 10506 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
10507 holding them in local variables. Use a larger hash table whose
10508 size depends on glyph matrix sizes. Don't use bzero to clear the
10509 hash table; instead, clear used slots only.
10510
10511 * fns.c (next_almost_prime): Make it externally visible.
10512
10513 * lisp.h (next_almost_prime): Add prototype.
10514
d5483ab1
GM
10515 * s/isc4-0.h (sigunblock): Define.
10516
10517 * s/sco5.h (sigunblock): Define.
10518
93e40f40
DL
105192000-06-27 Dave Love <fx@gnu.org>
10520
10521 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
10522 (moved to osf5-0.h).
10523 [!NOT_C_CODE]: Protect string.h stuff.
10524
10525 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
10526 (sys_siglist, NSIG): Definitions moved here from osf1.h.
10527
3c4b7685
GM
105282000-06-27 Gerd Moellmann <gerd@gnu.org>
10529
97d176db 10530 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
10531 below the last line from the needed window height.
10532
32cad0aa
SM
105332000-06-26 Stefan Monnier <monnier@cs.yale.edu>
10534
10535 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
10536 (Fwidget_get): Use it.
10537 (syms_of_fns): Defsubr it.
10538
2c69ced2
GM
105392000-06-26 Gerd Moellmann <gerd@gnu.org>
10540
178c5d9c 10541 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
10542 display info for XIM.
10543 (xim_open_dpy): Likewise.
10544 (xim_close_dpy): Don't free the display info's XIM.
10545
10546 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
10547
10548 * config.in (USE_XIM): New define.
10549
3fc720e4
GM
10550 * keymap.c (get_keyelt): For menu-items containing a `:filter
10551 FILTER', apply FILTER to the menu-item's definition to get the
10552 real definition to use.
10553
10554 * lisp.h (QCfilter): External declaration.
10555
2c69ced2
GM
10556 * xfns.c (Fimage_size): New function.
10557 (syms_of_xfns): Defsubr it.
10558
f978b2a2
AS
105592000-06-26 Andreas Schwab <schwab@suse.de>
10560
10561 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
10562 Fstring_as_unibyte.
10563
94cc7892
DL
105642000-06-25 Dave Love <fx@gnu.org>
10565
52283633 10566 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
10567
10568 * Makefile.in (blockinput.h): Depend on atimer.h.
10569 (atimer.h): Depend on systime.h.
10570
52283633 10571 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 10572
52283633 10573 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
10574
10575 * lisp.h (swap_in_global_binding): Declare.
10576
b8c24556
KR
105772000-06-24 Ken Raeburn <raeburn@gnu.org>
10578
10579 * process.c (Fopen_network_stream): Turn off atimers for duration
10580 of call to connect. (Patch from Gerd.)
10581
8cf8560b
DL
105822000-06-23 Dave Love <fx@gnu.org>
10583
511c7541
DL
10584 * ralloc.c: Maybe include unistd.h
10585
8cf8560b
DL
10586 * emacs.c (setgrp): Undefine before defining.
10587 (malloc_warning, set_time_zone_rule, index): Prototype.
10588
10589 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
10590 HAVE_STRUCT_TIMEZONE.
10591
10592 * s/osf1.h: Move string.h hack here from alpha.h and make it
10593 conditional.
10594 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
10595 _XOPEN_SOURCE.
10596 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
10597 (SOCKLEN_TYPE): Don't define.
10598
10599 * m/alpha.h: Remove string.h hack.
10600
10601 * s/osf5-0.h: New file.
10602
10603 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
10604 include time.h, done by systime.h.
10605 [__FreeBSD__]: Remove redundant includes.
10606
3fc720e4 10607 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
10608 (delete_temp_file): Return Qnil to avoid warning.
10609
10610 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
10611
10612 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
10613 HAVE_X_WINDOWS.
10614
10615 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
10616
10617 * composite.h (compose_text): Declare.
10618
10619 * xterm.c: Don't include sys/types.h unconditionally. Don't
10620 protect its inclusion with !USG (following xmenu.c).
10621
ea055732
GM
106222000-06-23 Gerd Moellmann <gerd@gnu.org>
10623
10624 * xfns.c (x_create_tip_frame): Initialize frame's colors like
10625 in x_create_frame.
10626
74b01b80
EZ
106272000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10628
10629 * coding.c (decode_eol_post_ccl): Special handling for undecided
10630 and inconsistent EOL types.
10631
64f3a166
GM
106322000-06-22 Gerd Moellmann <gerd@gnu.org>
10633
16cf31f7
GM
10634 * xrdb.c (x_load_resources): Add default resource for scroll bar's
10635 trough color and main window's background color.
10636
52283633 10637 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
10638
10639 * xterm.h (Xt_app_con): External declaration.
10640
10641 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 10642
486a103d
GM
10643 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
10644
64f3a166
GM
10645 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
10646 (handle_invisible_prop): Record the start of invisible text in
10647 it->add_overlay_start.
10648 (struct overlay_entry): Add member `overlay'.
10649 (handle_overlay_change): Simplify.
10650 (next_overlay_string): After having processed overlay strings at the
10651 end of the buffer, record that fact in
10652 it->overlay_strings_at_end_processed_p.
10653 (compare_overlay_entries): If before- and after-strings come
10654 from the same overlay, let before-strings come first.
10655 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
10656 (load_overlay_strings): Take it->add_overlay_start into account
10657 when adding overlay strings.
10658
10659 * dispextern.h (struct it): Add member add_overlay_start.
10660
bb746ea6
DL
106612000-06-22 Dave Love <fx@gnu.org>
10662
10663 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
10664
10665 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
10666
a8f573f3
KH
106672000-06-22 Kenichi Handa <handa@etl.go.jp>
10668
10669 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
10670 is greater than 0.
10671
9f2bbc92
DL
106722000-06-21 Dave Love <fx@gnu.org>
10673
178c5d9c 10674 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 10675
3ee5041c
SM
106762000-06-21 Stefan Monnier <monnier@cs.yale.edu>
10677
10678 * syntax.c (back_comment): Simplify string-parity counting (with
10679 the added benefit of handling multiple string-styles as long as
10680 they are not intertwined).
10681 Jump to the slow code as soon as a comment starter is found in
10682 a "string_lossage" position. Fixes the case: " /* " /* " */.
10683
4c343001
DL
106842000-06-21 Dave Love <fx@gnu.org>
10685
10686 * Makefile.in: Use GETLOADAVG_LIBS.
10687
10688 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
10689 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
10690
e6365855
SM
106912000-06-20 Stefan Monnier <monnier@cs.yale.edu>
10692
10693 * syntax.c (describe_syntax): Recognize the `n'estable bit.
10694 (Fforward_comment, scan_lists):
10695 Check the comstyle of single-char comment-starters.
10696 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
10697 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
10698 Check the comstyle of single-char comment-starters.
10699 Clarify control-flow around the Scomment case.
e6365855 10700
5700d2cc
DL
107012000-06-20 Dave Love <fx@gnu.org>
10702
d355bd8a
SM
10703 * fns.c (make_hash_table, maybe_resize_hash_table):
10704 Cast arg of next_almost_prime.
5700d2cc 10705
178c5d9c 10706 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
10707
10708 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
10709 and unistd.h.
10710
4a27bdfb
GM
107112000-06-20 Gerd Moellmann <gerd@gnu.org>
10712
a61d762c 10713 * keyboard.c (adjust_point_for_property): Check if display
52283633 10714 property should be treated as intangible by looking at its value.
a61d762c 10715
178c5d9c 10716 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
10717 (display_prop_intangible_p): New functions.
10718
10719 * dispextern.h (display_prop_intangible_p): Add prototype.
10720
10721 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 10722
4a27bdfb
GM
10723 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
10724 argument to sigprocmask.
10725
10726 * s/sco5.h (sigblock): Redefined to pass a pointer as second
10727 argument to sigprocmask.
10728
10729 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
10730 sigprocmask_set, and pass a pointer to it to sigprocmask.
10731
10732 * sysdep.c (sigprocmask_set): New variable.
10733
10734 * fileio.c (make_temp_name): Don't use `%s' in string passed to
10735 report_file_error.
10736
427ec082
SS
107372000-06-20 Sam Steingold <sds@gnu.org>
10738
10739 * xrdb.c: Don't declare xmalloc, xrealloc.
10740
8972fe79 107412000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
10742
10743 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
10744 (re_comp): Cast gettext return value to avoid complaints when
10745 !HAVE_LIBINTL.
10746
074b6efe
DL
107472000-06-20 Dave Love <fx@gnu.org>
10748
52283633 10749 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 10750
5700d2cc 10751 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 10752
d355bd8a 10753 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
10754
10755 * m/alpha.h: Don't declare xmalloc, xrealloc.
10756
0af4f205
DL
10757 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
10758
10759 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
10760
10761 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
10762
10763 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
10764 HAVE_GETWD.
10765
074b6efe
DL
10766 * keyboard.h (poll_for_input_1): Declare.
10767
10768 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
10769
10770 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
10771
10772 * doprnt.c: Don't declare xmalloc, xrealloc.
10773
10774 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
10775 (getenv, ctime, getwd): Removed.
10776 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
10777
10778 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
10779 x_set_tool_bar_lines.
10780
10781 * config.in: Add HAVE_GETWD. Move some definitions above
10782 machine/system includes.
10783
68a5e97b
KH
107842000-06-20 Kenichi Handa <handa@etl.go.jp>
10785
95417e1e
KH
10786 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
10787
68a5e97b
KH
10788 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
10789 contain information about ENCODING.
10790
10791 * fontset.c (FONTSET_ASCII): Use the first element of char table
10792 for an ASCII font, not defalt slot.
10793 (fontset_ref_via_base): If FONTSET doesn't contain information for
10794 C, try the default fontset.
10795 (make_fontset): Don't copy the default fontset.
10796 (fontset_font_pattern): Likewise.
10797 (accumulate_font_info): If ELT is nil, use the corresponding
10798 element in the default fontset.
10799
3b4fa1b2
DL
108002000-06-19 Dave Love <fx@gnu.org>
10801
943e731c
DL
10802 * syntax.c (Fparse_partial_sexp): Doc fix.
10803
10804 * regex.h: Test PROTOTYPES as well as __STDC__.
10805
3b4fa1b2
DL
10806 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
10807 errno, strerror. Put text after #endif in comment.
10808
52283633 10809 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
10810
10811 * xterm.c (x_frame_of_widget): Likewise.
10812
cdf0357b
GM
108132000-06-19 Gerd Moellmann <gerd@gnu.org>
10814
10815 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
10816 to Vfundamental_mode_abbrev_table.
10817
10818 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
10819 bogus objects are marked. This slows down GC by ~80 percent, but
10820 it might be worth trying when debugging GC-related problems.
10821 This feature requires conservative stack marking to be enabled.
10822
10823 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
10824 returns XLookupChars, reset `modifiers' to zero.
10825
998e9f8c
DL
108262000-06-19 Dave Love <fx@gnu.org>
10827
10828 * mktime.c: Unprotoized.
10829
18e21ce8 108302000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
10831
10832 * data.c (set_internal): If variable is frame-local,
10833 store the new value immediately into the frame parameter alist.
10834
140c4ac6
KR
108352000-06-19 Ken Raeburn <raeburn@gnu.org>
10836
14358466
KR
10837 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
10838 in the custom handler pointer.
10839
140c4ac6
KR
10840 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
10841 value, or checks for CHAR_META can fail when Lisp_Object is a
10842 union type.
10843 * keymap.c (get_keyelt): Likewise.
10844
10d7bf84
KH
108452000-06-19 Kenichi Handa <handa@etl.go.jp>
10846
10847 * ccl.h (struct ccl_program): New member eol_type.
10848 (struct ccl_spec): New member cr_carryover.
10849
10850 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
10851 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
10852
10853 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
10854 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
10855 (decode_eol_post_ccl): New function.
10856 (decode_coding): Don't detect EOL format here for CCL based coding
10857 systems.
10858 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
10859 decode_eol_post_ccl after running the CCL program.
10860 (code_convert_region): Don't detect EOL format here for CCL based
10861 coding systems.
10862 (decode_coding_string): Likewise.
10863
52e386c2
KR
108642000-06-18 Ken Raeburn <raeburn@gnu.org>
10865
10866 * charset.c (update_charset_table): Use XINT on "iso_final_char"
10867 when treating it as an integer.
10868
10869 * coding.h (encode_coding_string): Declare.
10870
10871 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
10872 it as an integer.
10873
10874 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
10875 "xkeymap" to avoid shadowing the "enum map_type" value that needs
10876 to be passed to get_local_map.
10877
10878 * sound.c (Fplay_sound): Don't call make_number on
10879 Frun_hook_with_args count argument.
10880
10881 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
10882 for lisp objects in X event structure data field, when lisp
10883 objects are represented with unions.
10884 (x_scroll_bar_to_input_event): Ditto.
10885
b357b9d4
KR
108862000-06-16 Ken Raeburn <raeburn@gnu.org>
10887
10888 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
10889 termination of string. Fix sense of test whether
10890 Vline_number_display_limit is an integer.
b357b9d4 10891
a871441d
GM
108922000-06-16 Gerd Moellmann <gerd@gnu.org>
10893
a9021acd
GM
10894 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
10895 only if HAVE_X_WINDOWS.
10896
6344985d
GM
10897 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
10898 of titles.
10899
427ec082 10900 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
10901 out of bounds.
10902
228b083e
EZ
109032000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
10904
10905 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
10906 of its headers.
10907
c25b53a2
KH
109082000-06-15 Kenichi Handa <handa@etl.go.jp>
10909
10910 * coding.c (decode_coding_emacs_mule): Always set src_base at the
10911 start of the while loop.
10912
a6981b11
GM
109132000-06-15 Gerd Moellmann <gerd@gnu.org>
10914
e9924e52
GM
10915 * atimer.c (alarm_signal_handler): Add forward declaration.
10916
a6981b11
GM
10917 * data.c (set_internal): Remove debug code.
10918
25fa6deb
GM
109192000-06-14 Gerd Moellmann <gerd@gnu.org>
10920
dce6b995
GM
10921 * Makefile.in (bootstrap-temacs): Add `-I../src'.
10922
9f817ea4
GM
10923 * unexec.c (toplevel) [COFF]: Include coff.h.
10924
10925 * s/lynxos.h: New file.
10926
10927 * keymap.c (Fsingle_key_description): Enclose function key and
10928 event symbol names in angle brackets.
10929
8a4e3c0c
GM
10930 * xdisp.c (setup_echo_area_for_printing): Call
10931 message_log_maybe_newline if message_buf_print is not set.
10932
10933 * print.c (printchar, strout): Don't check message_buf_print
427ec082 10934 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
10935 function does something useful even when message_buf_print is
10936 already set.
10937
52283633
SM
10938 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
10939 New variables.
25fa6deb
GM
10940 (ensure_echo_area_buffers): Initialize echo buffer's
10941 truncate lines setting to nil.
10942 (with_echo_area_buffer): Don't set the echo buffer's truncate
10943 lines setting here.
8a4e3c0c 10944 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
10945 of message_truncate_lines.
10946 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
10947 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
10948 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
10949
10950 * keyboard.c (read_char): Bind message-truncate-lines to t
10951 while displaying a help-echo.
10952
10953 * lisp.h (Qmessage_truncate_lines): External declaration.
10954
163dcff3
GM
109552000-06-13 Gerd Moellmann <gerd@gnu.org>
10956
1681ead6
GM
10957 * xdisp.c (Vline_number_display_limit): Renamed from
10958 line_number_display_limit.
10959 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
10960 Extend documentation string. Initialize
10961 Vline_number_display_limit to nil meaning no limit.
10962 (decode_mode_spec): Use Vline_number_display_limit with its new
10963 meaning.
10964
163dcff3
GM
10965 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
10966
18e21ce8 109672000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
10968
10969 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 10970
163dcff3
GM
10971 * xfns.c (x_set_frame_parameters): Comment fix.
10972
10973 * frame.c (store_frame_param): Call swap_in_global_binding if the
10974 variable's current binding was chosen based on this frame.
10975
10976 * data.c (swap_in_global_binding): New function.
10977
a704139d
EZ
109782000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10979
10980 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
10981 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
10982
9b6610db
EZ
109832000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
10984
10985 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
10986
c68833d2
JR
109872000-06-12 Jason Rumney <jasonr@gnu.org>
10988
10989 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
10990
10991 * w32.h (EMACS_W32_H): Renamed from _NT_H_
10992
10993 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
10994
10995 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
10996
ed1056b3
GM
109972000-06-12 Gerd Moellmann <gerd@gnu.org>
10998
10999 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11000 (syms_of_xfaces): Defsubr Sdump_colors.
11001 (x_free_colors): Don't treat b&w specially on default visual.
11002 (x_free_dpy_colors): New function.
11003 (free_face_colors): Don't check visual class; it's done
11004 in x_free_colors.
11005
11006 * xterm.c (x_frame_of_widget): New function.
11007 (x_alloc_nearest_color_for_widget): Use it.
11008 (x_copy_dpy_color): New function.
11009 (x_destroy_window): Free various colors.
11010
5050a2ef
KH
110112000-06-12 Kenichi Handa <handa@etl.go.jp>
11012
11013 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11014
11015 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11016
11017 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11018
11019 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11020
11021 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11022
fb1b041d
DL
110232000-06-11 Dave Love <fx@gnu.org>
11024
11025 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11026
ff96b5f4
EZ
110272000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11028
11029 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11030
db8eeecd
GM
110312000-06-11 Gerd Moellmann <gerd@gnu.org>
11032
ed1056b3 11033 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
11034 to `XEvent *'.
11035
49b71c5f
KH
110362000-06-10 Kenichi Handa <handa@etl.go.jp>
11037
c479bd55
KH
11038 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11039 (regex_compile): Fix the code for handling the case of single byte
11040 char and multibyte char being mixed in a range within [...].
11041
ff6a65c2
KH
11042 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11043 and dst_multibyte members of coding.
11044
49b71c5f
KH
11045 * charset.c (update_charset_table): Update the table
11046 bytes_by_char_head.
11047 (init_charset_once): Initialize elements of bytes_by_char_head to
11048 1 except for leading codes for private charases.
11049
11050 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 11051 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 11052
9e80b57d
KR
110532000-06-09 Ken Raeburn <raeburn@gnu.org>
11054
11055 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11056 access the data it doesn't point to.
11057
f83fe4b4
GM
110582000-06-08 Gerd Moellmann <gerd@gnu.org>
11059
11060 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 11061 will be translated to a switch-frame event when reading the
f83fe4b4
GM
11062 event queue. This is necessary because Emacs otherwise won't
11063 perform a switch-frame to a new frame until some other event, for
11064 example a keystroke event, forces it to do so. This has various
11065 effects, one visible being that the cursor of a frame created with
11066 C-x 5 2 or switched to with a window manager key binding like
11067 A-TAB stays hollow because selected_window isn't on the newly
11068 focused frame until the switch-frame is performed.
11069
11070 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11071 generating a switch-frame event if necessary.
11072
11073 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11074
11075 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11076 it's an integer.
11077
0890801b
KH
110782000-06-08 Kenichi Handa <handa@etl.go.jp>
11079
52283633 11080 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 11081
173cbca8
GM
110822000-06-07 Gerd Moellmann <gerd@gnu.org>
11083
3091c2a6
GM
11084 * window.c (displayed_window_lines): Take empty lines at
11085 the bottom of a window into account.
427ec082 11086
f38952fe
GM
11087 * window.c (displayed_window_lines): New function.
11088 (Fmove_to_window_line): Use displayed_window_lines to determine
11089 the number of lines to move, instead of using the window's height.
11090
11091 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11092 to stop reading, even if the form read sets point to a different
11093 value when evaluated.
11094
427ec082 11095 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
11096 put the cursor.
11097
6ba6c818
KH
110982000-06-07 Kenichi Handa <handa@etl.go.jp>
11099
11100 * fileio.c (e_write): Free composition data if stored in
11101 coding->cmp_data.
11102
5f1aea9a
GM
111032000-06-06 Gerd Moellmann <gerd@gnu.org>
11104
666852af
GM
11105 * xdisp.c (display_line): Set row's and iterator's
11106 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11107 Set cursor even if row ends in the middle of a character.
11108 (dump_glyph_row): Print values of new flags.
11109 (redisplay_window) <cursor movement in unchanged window>: When
11110 point has been moved forward, and PT is at the end of the cursor
11111 row, don't place the cursor in the next row if the cursor row ends
11112 in the middle of a character or at ZV.
11113
11114 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11115 (struct glyph_row): Add starts_in_middle_of_char_p and
11116 ends_in_middle_of_char_p.
11117 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11118 ends_in_middle_of_char_p flag.
11119 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11120
d13f3e2e
GM
11121 * term.c (append_glyph): Revert change of 2000-06-06.
11122
11123 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11124 padding glyph not fitting on line as whole character not
11125 fitting on line.
11126
5f1aea9a
GM
11127 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11128 this isn't true for images with `:ascent 100'.
11129
10cda9b0
KH
111302000-06-06 Kenichi Handa <handa@etl.go.jp>
11131
ed00559d
KH
11132 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11133 as modified if it is originally unmodified.
11134
10cda9b0
KH
11135 * term.c (encode_terminal_code): Change the way to check if
11136 terminal coding does any conversion.
11137 (append_glyph): Set glyph->pixel_width correctly.
11138
11139 * xdisp.c (display_line): While checking line continuation, pay
11140 attention to a padding glyph.
11141
1969fae2
GM
111422000-06-05 Gerd Moellmann <gerd@gnu.org>
11143
11144 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11145
162ccef4
DL
111462000-06-05 Dave Love <fx@gnu.org>
11147
f19f32dd
DL
11148 * xdisp.c: Include fontset.h.
11149
11150 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11151
11152 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11153
11154 * dispnew.c: Conditionally include term.h.
11155
11156 * coding.h: Declare code_convert_string_norecord.
11157
11158 * frame.h (struct frame): Use volatile unconditionally.
11159
11160 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11161
11162 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11163
11164 * systime.h: Protect against multiple inclusion.
11165 (timezone) [USG5_4]: Define as time_t.
11166
11167 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11168 (Foptimize_char_table, make_temp_name): Declare.
11169
11170 * Makefile.in (xdisp.o): Depend on fontset.h.
11171
11172 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11173
11174 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11175 (Foptimize_char_table, make_temp_name): Declare.
11176
427ec082 11177 * s/irix4-0.h:
162ccef4
DL
11178 * s/irix5-0.h:
11179 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11180
2082fe81
DL
111812000-06-02 Dave Love <fx@gnu.org>
11182
11183 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11184
dcf671d2
GM
111852000-06-02 Gerd Moellmann <gerd@gnu.org>
11186
11187 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 11188 result face, set flags in that face indicating that colors may not
dcf671d2
GM
11189 be freed.
11190
11191 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11192 glyph, use the ASCII NUL character to determine the face.
11193
d42122a3
DL
111942000-06-02 Dave Love <fx@gnu.org>
11195
11196 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11197 (VFORK_RETURN_TYPE): Remove.
427ec082 11198
d42122a3
DL
11199 * config.in: Add NO_MATHERR.
11200
dd432f16
DL
112012000-06-01 Dave Love <fx@gnu.org>
11202
90aa4ea8
DL
11203 * cmds.c (internal_self_insert): Don't check
11204 Vbefore_change_function, Vafter_change_function.
11205
11206 * insdel.c (signal_before_change, signal_after_change): Likewise.
11207
11208 * buffer.c (Vbefore_change_function, Vafter_change_function):
11209 Variables and their initializations deleted.
11210
2330c9d4
DL
11211 * callint.c (Fcall_interactively): Doc fix.
11212
dd432f16
DL
11213 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11214
bf9e8804
DL
112152000-05-31 Dave Love <fx@gnu.org>
11216
11217 * textprop.c: Revert last change -- duplicated.
11218
3694b4ab
GM
112192000-05-31 Gerd Moellmann <gerd@gnu.org>
11220
11221 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11222 in #if 0.
11223
11224 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11225
f14156cd
JR
112262000-05-31 Jason Rumney <jasonr@gnu.org>
11227
8119aab8
JR
11228 * search.c (Fre_search_forward, Fre_search_backward)
11229 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11230
f14156cd
JR
11231 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11232
4aab9be3
JR
112332000-05-30 Jason Rumney <jasonr@gnu.org>
11234
11235 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11236 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11237
52283633 11238 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
11239
11240 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11241 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11242 expand a nil default_filename.
11243
11244 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11245 pointer to glyph_to_pixel_coords, not a frame.
11246
11247 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11248 coding.h to dependencies.
11249
11250 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11251
11252 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11253 window pointer to be consistent with w32term.c and xterm.c.
11254
11255 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11256 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11257 (Qline_spacing, Qcenter): New variables.
11258 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11259 (x_set_line_spacing): New function.
52283633 11260 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
11261 (x_specified_cursor_type): New function.
11262 (x_set_cursor_type): Use it.
11263 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11264 and icon strings.
11265 (validate_x_resource_name, x_get_resource_string): Measure lengths
11266 of external strings in bytes.
11267 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11268 GetTextExtentPoint32 with NULL title.
11269 (Fx_create_frame): Initialize Qline_spacing.
11270 (w32_load_system_font): Initialize font->double_byte_p.
11271 (x_to_w32_charset): Use Vw32_charset_info_alist.
11272 (Image, busy cursor, tooltip functions): Merged changes from
11273 xfns.c. Not yet functional on Windows.
11274
11275 * w32gui.h (W32FontStruct): Add double_byte_p member.
11276
11277 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11278 (emacs_button_translation): Use it.
11279 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11280 in `mask' to be set.
11281
11282 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11283 menu strings.
11284
11285 * w32term.c: Format and doc changes to bring closer to xterm.c.
11286 (w32_char_font_type): New enum.
11287 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11288 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11289 (w32_encode_char): New function.
11290 (x_encode_char): Removed.
11291 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11292 x_encode_char and w32_font_is_double_byte.
11293 (x_produce_image_glyph): Use image_ascent.
11294 (x_produce_glyphs): Use new version of w32_per_char_metric and
11295 handle NULL return value. Allow extra line spacing.
11296 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11297 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11298 w32_font_type member of glyph instead.
11299 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11300 (fast_find_position): Make sure not to consider rows not visible
11301 in the window.
11302 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11303 w32_menu_display_help with input blocked, as it can abort.
11304 (x_display_and_set_cursor): Choose cursor depending
11305 on buffer-local value of cursor_type.
11306 (x_draw_bar_cursor): Add parameter WIDTH.
11307
11308 * w32term.h (CP_DEFAULT): Define.
11309 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11310
10fc3187
GM
113112000-05-30 Gerd Moellmann <gerd@gnu.org>
11312
11313 * search.c (Fre_search_forward, Fre_search_backward)
11314 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11315
d0555360
KH
113162000-05-30 Kenichi Handa <handa@etl.go.jp>
11317
11318 * coding.c (detect_coding_iso2022): Fix code for checking
11319 CODING_CATEGORY_MASK_ISO_8_2.
11320
f1ad044f
SM
113212000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11322
11323 * regex.c (PREFETCH_NOLIMIT): New function.
11324 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11325
84ec3b4b
GM
113262000-05-29 Gerd Moellmann <gerd@gnu.org>
11327
66254a13
GM
11328 * syntax.c (find_defun_start): Move test for
11329 open_paren_in_column_0_is_defun_start outside of the loop.
11330
49e70dec
GM
11331 * xdisp.c (redisplay_window): Really switch buffers when
11332 displaying mode lines, and temporarily set selected_frame to the
11333 frame of the window that's redisplayed.
11334
84ec3b4b
GM
11335 * xfaces.c (free_realized_faces): Block/unblock input.
11336 (free_realized_multibyte_face): Ditto.
11337
869a3a14
DL
113382000-05-29 Dave Love <fx@gnu.org>
11339
11340 * textprop.c (Qkeymap): New variable.
11341 (syms_of_textprop): Intern it.
11342
11343 * keymap.c: Include intervals.h.
11344 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11345
11346 * Makefile.in (keymap.o): Depend on intervals.h.
11347
11348 * keyboard.c (menu_bar_items, tool_bar_items)
11349 (Fexecute_extended_command): Deal with `keymap' property.
11350 (read_key_sequence): Track map from `keymap' property as well as
11351 `local_map'.
11352
11353 * intervals.c (get_local_map): Extra arg to allow looking for
11354 `keymap' too.
11355
11356 * intervals.h (map_property): New enum.
11357 (get_local_map): Extra arg using it.
11358 (Qkeymap): Declare.
11359
84ec3b4b 11360 * lisp.h (get_local_map): Don't declare here.
869a3a14 11361
89d0c844
KH
113622000-05-29 Kenichi Handa <handa@etl.go.jp>
11363
11364 * Makefile.in (callproc.o): Depend on composite.h.
11365
11366 * callproc.c: Include composite.h.
11367 (Fcall_process): Handle composition correctly.
11368
11369 * coding.h (coding_allocate_composition_data): Extern it.
11370 (coding_restore_composition): Likewise.
11371
11372 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
11373 yet allocated, finish decoding with result
11374 CODING_FINISH_INSUFFICIENT_CMP.
11375 (coding_allocate_composition_data): Make it non-static.
11376 (coding_restore_composition): Likewise.
11377
797a084a
EZ
113782000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
11379
11380 * charset.c (syms_of_charset): Revert last change.
11381
cf872af5
EZ
113822000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11383
11384 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
11385 charsets as unibyte, with 1-column screen width. Sent by Kenichi
11386 Handa.
cf872af5 11387
5b1ae051
EZ
113882000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
11389
11390 * charset.c (syms_of_charset): Set width of character sets
11391 eight-bit-control and eight-bit-graphic to 1 column.
11392
34ec9ebe
GM
113932000-05-26 Gerd Moellmann <gerd@gnu.org>
11394
11395 * config.in (HAVE_SPEED_T): New define.
11396
11397 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
11398 `extern speed_t'.
11399
dd854dc2
DL
114002000-05-26 Dave Love <fx@gnu.org>
11401
11402 * coding.c (shrink_decoding_region): Initialize eol_conversion.
11403
11404 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
11405 (Fsubr_arity): New function.
11406 (syms_of_data): Install them.
11407
ba9f8f95
KH
114082000-05-26 Kenichi Handa <handa@etl.go.jp>
11409
0f3e0672
KH
11410 * charset.c (init_charset_once): Set the table bytes_by_char_head
11411 correctly.
11412
cebefb44
KH
11413 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
11414 the default fontset to what Emacs uses by default.
0f3e0672
KH
11415 (check_registry_encoding): This function deleted.
11416 (Fset_fontset_font): Remove the adhoc condition for the default
11417 fontset. Allow cons in FONTNAME.
cebefb44 11418
0f3e0672
KH
11419 * fns.c (map_char_table): Ignore char-table entries for
11420 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 11421
7a18af49
KR
114222000-05-25 Ken Raeburn <raeburn@gnu.org>
11423
11424 * emacs.c (main): Initialize keyboard syms before initializing
11425 window code, so face names are available.
11426
d2af47df
SM
114272000-05-25 Stefan Monnier <monnier@cs.yale.edu>
11428
11429 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
11430 of an anchor at the beginning of a shy-group.
11431
fc6a6a4e
GM
114322000-05-25 Gerd Moellmann <gerd@gnu.org>
11433
11434 * xdisp.c (handle_invisible_prop): Don't try to skip over
11435 invisible text if end of text is already reached.
11436
005f0d35
DL
114372000-05-25 Dave Love <fx@gnu.org>
11438
02513cdd
DL
11439 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
11440
005f0d35
DL
11441 * coding.c (encode_eol): Add null statement after label.
11442
89f6ca4e
EZ
114432000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
11444
11445 * w16select.c (Fw16_set_clipboard_data): Fix the change from
11446 2000-05-20.
11447
a4e1759e
KH
114482000-05-25 Kenichi Handa <handa@etl.go.jp>
11449
11450 * ccl.c (ccl_driver): Fix previous change.
11451
eacfd7fe
KH
114522000-05-25 Kenichi Handa <handa@etl.go.jp>
11453
46ab33a9
KH
11454 * coding.c (run_pre_post_conversion_on_str): Set point to the
11455 beginning of buffer before calling coding->post_read_conversion.
11456 (decode_coding_string): Give correct args to
11457 run_pre_post_conversion_on_str.
11458 (encode_coding_string): Likewise.
11459
eacfd7fe
KH
11460 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
11461 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
11462 eight-bit-graphic correctly.
11463
f8569325
DL
114642000-05-24 Kenichi HANDA <handa@etl.go.jp>
11465
11466 * fileio.c (Finsert_file_contents): Even if a file is not found,
11467 execute codes for setting up coding system. Call
11468 after-insert-file-functions unconditionally.
11469
04545643
GM
114702000-05-24 Gerd Moellmann <gerd@gnu.org>
11471
11472 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
11473 BSD_PGRPS are not defined.
11474
747d90ea
KH
114752000-05-24 Kenichi Handa <handa@etl.go.jp>
11476
11477 * charset.c (update_charset_table): Accept nil in LONG_NAME and
11478 DESCRIPTION.
11479 (syms_of_charset): Avoid building same strings.
11480
716e3b88
GM
114812000-05-23 Gerd Moellmann <gerd@gnu.org>
11482
11483 * lread.c (Fload): Add a comment about the meaning of
11484 Vuser_init_file being t.
11485
11486 * puresize.h (BASE_PURESIZE): Increase to 675000.
11487
11488 * s/gnu-linux.h (setpgrp): Don't define it here because this
11489 prevents compilation on GNU/Linux systems with glib 2.2.
11490
11491 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
11492 as setpgid.
427ec082 11493
9aeb39fa
EZ
114942000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
11495
11496 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
11497 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
11498 version.
11499 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
11500
29ced61b
KH
115012000-05-23 Kenichi Handa <handa@etl.go.jp>
11502
52283633 11503 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 11504
3d80f24d
KH
11505 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
11506
52283633 11507 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 11508
29ced61b
KH
11509 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
11510
d7e00792
KH
115112000-05-22 Kenichi Handa <handa@etl.go.jp>
11512
c9d80d38
KH
11513 * keyboard.c (read_char): Allow character codes 128..255 to be
11514 handled by input-method-function.
11515
d7e00792
KH
11516 * insdel.c (adjust_markers_for_replace): Fix previous change.
11517 (adjust_after_replace): If PREV_TEXT is nil, call
11518 adjust_markers_for_insert, not adjust_markers_for_replace.
11519
087121cc 115202000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 11521
087121cc
GM
11522 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
11523 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
11524 [HAVE_GRANDPT]: Define.
11525 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
11526
11527 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
11528 like SYSV_PTYS.
11529
11530 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
11531
11532 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
11533
c9671f81
KH
115342000-05-20 Kenichi Handa <handa@etl.go.jp>
11535
11536 The following changes are to handle 8-bit characters in a
11537 multibyte buffer/string without facing with byte combining
11538 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
11539 eight-bit-graphic (for 0xA0..0xFF) are introduced.
11540
11541 * Makefile.in (fns.o): Depend on charset.h.
11542
11543 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
11544 convert it to unibyte.
11545 (make_string): Use parse_str_as_multibyte, not chars_in_text.
11546
11547 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
11548 apparent char boundary.
11549 (Fset_buffer_multibyte): Convert 8-bit characters in the range
11550 0x80..0x9F to/from multibyte form.
11551
11552 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
11553 to unibyte.
11554
11555 * callproc.c (Fcall_process): Always encode an argument string if
11556 it is multibyte. Setup src_multibyte and dst_multibyte members of
11557 process_coding properly.
ce75fd23 11558
c9671f81
KH
11559 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
11560 SPLIT_NON_ASCII_CHAR.
11561
11562 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
11563 as is.
11564 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
11565
52283633 11566 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 11567 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 11568 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
11569 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
11570 and eight-bit-graphic.
11571 (char_to_string): Likewise. Signal an error for too large
11572 character code.
11573 (char_printable_p): Return 0 for 8-bit characters.
11574 (update_charset_table): Update iso_charset_table only when a final
11575 character is non-negative.
11576 (find_charset_in_text): Renamed from find_charset_in_str.
11577 Arguments and return value changed. Callers changed.
11578 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
11579 be -1 if CHARSET is used only internally.
11580 (Fmake_char_internal): Handle new charsets; eight-bit-control and
11581 eight-bit-graphic.
11582 (Fcharset_after): Simplified.
11583 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
11584 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
11585 (multibyte_chars_in_text): Simplified by assuming there's no
11586 invalid multibyte sequence.
52283633
SM
11587 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11588 (str_as_unibyte): New functions.
11589 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
11590 (init_charset_once): Initialization for
11591 LEADING_CODE_8_BIT_CONTROL.
11592 (syms_of_charset): Intern and staticpro Qeight_bit_control and
11593 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
11594 eight-bit-control and eight-bit-graphic.
11595
52283633
SM
11596 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
11597 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
11598 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
11599 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
11600 (CHARSET_REVERSE_CHARSET): Likewise.
11601 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
11602 eight-bit-graphic.
11603 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
11604 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
11605 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
11606 encounter an invalid multibyte sequence.
11607 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
11608 sequence is always valid.
11609 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 11610 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
11611 (CHAR_STRING): For 8-bit characters, call char_to_string.
11612 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
11613 multibyte sequence is always valid.
11614 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
11615 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
11616 (str_as_unibyte): Extern them.
c9671f81 11617 (BCOPY_SHORT): Fix a bug.
52283633 11618 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
11619 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
11620 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
11621 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
11622
bd4bde7f 11623 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 11624 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
11625 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
11626 (EMIT_BYTES): New macros.
11627 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
11628 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
11629 macros deleted.
11630 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
11631 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
11632 check the validity of multibyte sequence.
11633 (decode_coding_emacs_mule): New function.
11634 (encode_coding_emacs_mule): New macro.
11635 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
11636 the source.
11637 (DECODE_ISO_CHARACTER): Just return a character code.
11638 (DECODE_COMPOSITION_START): Set coding->result instead of result.
11639 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
11640 EMIT_CHAR to produced decoded characters. Exit the loop only by
11641 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
11642 block here.
11643 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
11644 only position codes for an invalid character.
11645 (encode_designation_at_bol): Return new destination pointer. 5th
11646 arg DSTP is changed to DST.
11647 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
11648 from the source by ONE_MORE_CHAR. Don't handle the case of last
11649 block here.
11650 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
11651 macros deleted.
52283633
SM
11652 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
11653 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
11654 TWO_MORE_BYTES to fetch a byte from the source.
11655 (encode_eol): Pay attention to coding->src_multibyte.
11656 (detect_coding, detect_eol): Preserve members src_multibyte and
11657 dst_multibyte.
11658 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
11659 (encoding_buffer_size): Set magnification to 3 for all coding
11660 systems that require encoding.
11661 (ccl_coding_driver): For decoding, be sure that the result is
11662 valid multibyte sequence.
11663 (decode_coding): Initialize coding->errors and coding->result.
11664 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
11665 and raw-text, always call decode_eol. Handle the case of last
11666 block here. If not coding->dst_multibyte, convert the resulting
11667 sequence to unibyte.
11668 (encode_coding): Initialize coding->errors and coding->result.
11669 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
11670 and raw-text, always call encode_eol. Handle the case of last
11671 block here.
11672 (shrink_decoding_region, shrink_encoding_region): Detect cases
11673 that we can't skip data more rigidly.
11674 (code_convert_region): Setup src_multibyte and dst_multibyte
11675 members of coding. For decoding, if the buffer is multibyte,
11676 convert the source sequence to unibyte in advance. For encoding,
11677 if the buffer is multibyte, convert the resulting sequence to
11678 multibyte afterward.
11679 (run_pre_post_conversion_on_str): New function.
11680 (code_convert_string): Deleted and divided into the following two.
11681 (decode_coding_string, encode_coding_string): New functions.
11682 (code_convert_string1, code_convert_string_norecord): Call one of
11683 above.
11684 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
11685 MAKE_NON_ASCII_CHAR.
52283633
SM
11686 (Fset_terminal_coding_system_internal)
11687 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
11688 and dst_multibyte members.
11689 (init_coding_once): Initialize iso_code_class with new enum
11690 ISO_control_0 and ISO_control_1.
11691
11692 * coding.h (enum iso_code_class_type): Member ISO_control_code is
11693 devided into ISO_control_0 and ISO_control_1.
11694 (struct coding_system): New members src_multibyte, dst_multibyte,
11695 errors, and result. Delete member fake_multibyte.
11696 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
11697 nonzero.
11698 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
11699 nonzero.
11700
11701 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11702 (Faset): Likewise.
11703
11704 * editfns.c (Fformat): Be sure to convert 8-bit characters to
11705 multibyte form.
11706 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
11707 combining occurs.
11708 (Ftranspose_region): Delete codes for handling byte combining.
11709
11710 * fileio.c (Finsert_file_contents): Setup src_multibyte and
11711 dst_multibyte members of coding. On handling REPLACE on unibyte
11712 buffer, convert the result of decode_coding to unibyte. On
11713 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 11714 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
11715 multibyteness of the source (buffer or string).
11716
11717 * fns.c (concat): Handle 8-bit characters correctly.
11718 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
11719 unibyte in the result.
11720 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
11721 valid multibyte form in the result.
11722 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
11723 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
11724 return -1, signal an error.
11725 (base64_encode_1): New arg MULTIBYTE. Get each character by
11726 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
11727 character is found, return -1.
11728 (Fbase64_decode_region): Delete codes for handling byte-combining.
11729 Treat each decoded byte as a unibyte character.
11730 (Fbase64_decode_string): Return unibyte string.
11731 (Fcompare_strings, concat, string_byte_to_char): Use
11732 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
11733 FETCH_STRING_CHAR_ADVANCE.
11734 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11735 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
11736
11737 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
11738 SPLIT_NON_ASCII_CHAR.
11739 (fontset_ref_via_base, fontset_set): Likewise
11740
11741 * insdel.c (adjust_markers_for_record_delete): Deleted.
11742 (adjust_markers_for_insert): Argument changed. Caller changed.
11743 (adjust_markers_for_replace): Likewise.
52283633
SM
11744 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
11745 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
11746 (copy_text): Delete unused local varialbe c_save. For converting
11747 to multibyte, be sure to make all 8-bit characters in valid
11748 multibyte form.
11749 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
11750 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11751 (adjust_after_replace, replace_range, del_range_2)
c9671f81 11752 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
11753 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
11754 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
11755 handling byte combining.
11756 (adjust_before_replace): Deleted.
427ec082 11757
c9671f81
KH
11758 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
11759 SPLIT_NON_ASCII_CHAR.
11760 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 11761 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11762 (Fkey_description): Likewise.
11763
11764 * lread.c (read1): On reading multibyte string, be sure to make
11765 all 8-bit chararacters in valid multibyte form.
11766 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
11767
11768 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
11769 unconditionally.
11770
11771 * process.c (Fstart_process): GCPRO current_dir before calling
11772 Ffind_operation_coding_system. Encode arguments here.
11773 (create_process): Don't encode arguments here. Setup
11774 src_multibyte and dst_multibyte members of struct coding.
11775 (read_process_output): Setup src_multibyte and dst_multibyte
11776 members of struct coding. If the output is to multibyte buffer,
11777 always decode the output of the process. Adjust the
52283633 11778 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
11779 (send_process): Setup coding->src_multibyte according to the
11780 multibyteness of the source.
11781
52283633 11782 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
11783 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
11784 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
11785
52283633 11786 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
11787
11788 * w16select.c (Fw16_set_clipboard_data): Setup members
11789 src_multibyte and dst_multibyte of coding. Adjusted for the
11790 change for find_charset_in_str.
11791 (Fw16_get_clipboard_data): Likewise.
11792
11793 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
11794 dst_multibyte of coding.
11795 (x_to_w32_font): Likewise.
11796
11797 * w32select.c (Fw32_set_clipboard_data): Setup members
11798 src_multibyte and dst_multibyte of coding. Adjusted for the
11799 change for find_charset_in_str.
11800 (Fw32_get_clipboard_data): Likewise.
11801
11802 * xdisp.c (get_next_display_element): Handle 8-bit characters
11803 correctly.
52283633
SM
11804 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
11805 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
11806
11807 * xselect.c (selection_data_to_lisp_data): Setup members
11808 src_multibyte and dst_multibyte of coding. Adjusted for the
11809 change for find_charset_in_str.
11810 (lisp_data_to_selection_data): Likewise.
11811
5f64c9e0
GM
118122000-05-19 Gerd Moellmann <gerd@gnu.org>
11813
52283633 11814 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 11815
5f64c9e0
GM
11816 * dispextern.h (Vimage_types): Add extern declaration.
11817
11818 * xdisp.c (Vimage_types): Moved here from xfns.c.
11819 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
11820
11821 * xfns.c (Vimages_types): Moved to xdisp.c.
11822 (syms_of_xfns): Move `image-types' to xdisp.c.
11823
11824 * w32fns.c (Vimage_types): Removed.
11825 (syms_of_w32fns): Remove `image-types'.
11826
813086ea
KH
118272000-05-18 Kenichi Handa <handa@etl.go.jp>
11828
11829 * fns.c (map_char_table): Pay attention to character number of
11830 charset. Check the validity of charset at the first level. For
11831 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
11832 the default value.
11833
11834 * fontset.c: Include "buffer.h".
11835 (fs_load_font): If the face has fontset, record the face ID in
11836 that fontset.
11837 (Finternal_char_font): New function.
11838 (accumulate_font_info): New function.
11839 (Ffontset_info): Rewritten for the new fontset implementation.
11840 (syms_of_fontset): Register Vdefault_fontset in the first element
11841 of Vfontset_table. Include Vdefault_fontset in
11842 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
11843 function.
11844
bdaebbf0
DL
118452000-05-16 Dave Love <fx@gnu.org>
11846
11847 * m/iris5d.h: Deleted -- unused.
11848
cb613bb8
GM
118492000-05-16 Gerd Moellmann <gerd@gnu.org>
11850
b15f3b77
GM
11851 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
11852 `invalid' instead of `illegal'.
11853
11854 * indent.c (Fmove_to_column): When ending within a tab, insert
11855 spaces first so that markers at the end of the tab get adjusted.
11856
835c1b36
GM
11857 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
11858 buffer list that wasn't selected in that frame.
11859
cb613bb8
GM
11860 * filelock.c (get_boot_time): To obtain an 8 char file name, which
11861 is needed on mescaline, use a 2 char prefix, and call
11862 make_temp_name with second arg non-zero.
11863
11864 * fileio.c (make_temp_name): New function, extracted from
11865 Fmake_temp_name.
11866 (Fmake_temp_name): Use it.
11867
f685bea9
EZ
118682000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11869
52283633 11870 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 11871
a1b8d58b
GM
118722000-05-15 Gerd Moellmann <gerd@gnu.org>
11873
11874 * Makefile.in (lisp): Add env.elc.
11875
11876 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
11877
a265079f
GM
118782000-05-12 Gerd Moellmann <gerd@gnu.org>
11879
11880 * search.c (Freplace_match): Handle case of `\N' in the
11881 replacement when there's no group N.
11882
da4496b6
GM
118832000-05-11 Gerd Moellmann <gerd@gnu.org>
11884
0ace421a
GM
11885 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
11886 of the message to message_dolog.
11887
1172eb8d
GM
11888 * keyboard.c (read_char): Don't clear current message for help
11889 events; let the code handling help events handle this. Change
11890 code detecting help events that should be ignored.
11891
da4496b6
GM
11892 * xdisp.c (handle_single_display_prop): Don't try to set PT if
11893 we're interating over a string.
11894
0623e40f
DL
118952000-05-09 Dave Love <fx@gnu.org>
11896
11897 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
11898 that offset before writing. Move gcpro region past call of
11899 Ffile_regular_p.
11900
bae2503b
DL
119012000-05-04 Dave Love <fx@gnu.org>
11902
11903 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
11904
ec82fb2f
GM
119052000-05-04 Gerd Moellmann <gerd@gnu.org>
11906
11907 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
11908 of inserted characters when BUF equals the current buffer, and PT
11909 is in front of or equal to FROM.
11910
cbf18892
GM
119112000-05-03 Gerd Moellmann <gerd@gnu.org>
11912
4ff40dd0
GM
11913 * xdisp.c (handle_single_display_prop): If display property value
11914 is invalid, or something not supported on the frame, restore
11915 iterator's position to what it was initially. Make sure to return
11916 0 for invalid and unsupported property values.
11917
cbf18892
GM
11918 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
11919 that x_per_char_metric returns null.
11920
1b0672c3
GM
119212000-05-02 Gerd Moellmann <gerd@gnu.org>
11922
576da55d
GM
11923 * xterm.h (struct face): Add forward declaration.
11924 (struct image): Ditto.
11925 (image_ascent): Add prototype.
11926
11927 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
11928 (x_draw_image_relief, x_draw_image_foreground_1): Call function
11929 image_ascent instead of using IMAGE_ASCENT.
11930
11931 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
11932 (IMAGE_ASCENT): Removed.
11933
11934 * xfns.c (Qcenter): New variable.
11935 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
11936 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
11937 (image_ascent): New function.
11938 (lookup_image): Recognize `:ascent center'.
11939 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
11940 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11941 (xbm_load): Don't set image's ascent here.
11942 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
11943 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
11944 check ascent values here.
11945 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
11946 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
11947 (syms_of_xfns): Initialize Qcenter.
11948
1b0672c3
GM
11949 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
11950 to the limits, increase the limits.
11951
0d7811ed
KH
119522000-05-01 Kenichi Handa <handa@etl.go.jp>
11953
11954 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 11955 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 11956
a943a5ca
GM
119572000-04-28 Gerd Moellmann <gerd@gnu.org>
11958
11959 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
11960 taller than the window.
11961
5dba1e29
KH
119622000-04-28 Kenichi Handa <handa@etl.go.jp>
11963
11964 * xfaces.c (realize_x_face): Fix the argument of the second
11965 xassert. BASE_FACE may not be a face for ASCII.
11966
353964e3
GM
119672000-04-27 Gerd Moellmann <gerd@gnu.org>
11968
c76e04a8
GM
11969 * print.c (print_object): Treat print-length < 0 as nil.
11970
11971 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
11972
11973 * s/freebsd.h (TERMCAP_OBJ): Removed.
11974 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
11975
11976 * lread.c (read1): Don't treat period followed by certain
11977 characters as symbol start.
11978
11979 * xfns.c (slurp_file): New function.
11980 (xbm_image_p): Handle case of in-memory XBM files.
11981 (xbm_scan): Rewritten to work on memory buffers instead of files.
11982 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
11983 Work on memory buffers instead of files. If DATA is null test
11984 if buffer looks like an in-memory XBM file.
11985 (xbm_load_image): Renamed from xbm_load_image_file. Work on
11986 memory buffers instead of files.
11987 (xbm_file_p): New function.
11988 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
11989
353964e3
GM
11990 * lread.c (end_of_file_error): New function.
11991 (read1): Call it instead of signaling `end-of-file' directly.
11992
427ec082 11993 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
11994 with Fprinc instead of Fprin1.
11995
24d744ac
KR
119962000-04-26 Ken Raeburn <raeburn@gnu.org>
11997
11998 * window.c (freeze_window_start): Check that minibuffer scroll
11999 window isn't nil before extracting the window structure pointer
12000 from it.
12001
12002 * undo.c (record_delete): If we hit the end of the undo list, stop
12003 picking elements apart.
12004
7464346d
GM
120052000-04-26 Gerd Moellmann <gerd@gnu.org>
12006
12007 * xdisp.c (display_line): If lines are continued, restore
12008 iterator's ascent/descent information to the values before the
12009 first glyph not fitting on the line.
12010
612839b6
GM
120112000-04-25 Gerd Moellmann <gerd@gnu.org>
12012
12013 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 12014 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
12015
12016 * dispnew.c (increment_matrix_positions): Renamed from
12017 increment_glyph_matrix_buffer_positions.
12018 (increment_row_positions): Renamed from
12019 increment_glyph_row_buffer_positions.
12020
12021 * dispextern.h: Change names of renamed functions from dispnew.c
12022 in prototypes.
12023
cc181e95
GM
120242000-04-24 Gerd Moellmann <gerd@gnu.org>
12025
abfcc168
GM
12026 * fileio.c (Fdo_auto_save): Create directories for auto-save
12027 list file if necessary.
12028
cc181e95
GM
12029 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12030 from buffer or frame.
12031 (automatic_hscrolling_p): New variable.
12032 (hscroll_windows): Scroll windows horizontally only if automatic
12033 hscrolling is allowed.
12034 (syms_of_xdisp): New variable `automatic-hscrolling'.
12035
12036 * frame.h (struct frame): Add member extra_line_spacing.
12037
12038 * xfns.c (x_set_line_spacing): New function.
12039 (Fx_create_frame): Set line spacing from resources.
12040 (Qline_spacing): New variable.
12041 (syms_of_xfns): Initialize Qline_spacing.
427ec082 12042
cc181e95
GM
12043 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12044
12045 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12046 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 12047 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
12048 extra_line_spacing from default value.
12049 (init_buffer_once): Initialize default value of extra_line_spacing.
12050
12051 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12052 and extra3.
12053
12054 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12055 prompt_width. Add extra line spacing.
12056
12057 * term.c (produce_glyphs): Remove reference to struct it's
12058 prompt_width.
12059
12060 * dispextern.h (struct it): Remove member prompt_width, add
12061 extra_line_spacing.
12062
58827478
GM
120632000-04-22 Gerd Moellmann <gerd@gnu.org>
12064
12065 * dispnew.c (update_frame_line): When writing a whole line, make
12066 sure cursor is in the right row afterwards, otherwise a use of
12067 capability `ch' in cmgoto might leave the cursor in the row below.
12068
25a87f42
GM
120692000-04-21 Gerd Moellmann <gerd@gnu.org>
12070
12071 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12072
12073 * keyboard.c (timer_check): Fix typo in comment.
12074
54edf5c2
KH
120752000-04-21 Kenichi Handa <handa@etl.go.jp>
12076
12077 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12078 name change: ch -> character.
12079
3a64eef5
GM
120802000-04-20 Gerd Moellmann <gerd@gnu.org>
12081
12082 * keyboard.c (echo_message_buffer): New variable.
12083 (echo_now): Set echo_message_buffer to the echo area buffer used
12084 to display the echo.
12085 (cancel_echoing): Reset echo_message_buffer to nil.
12086 (read_char): Code rewritten that handles canceling an echo or
12087 echoing a dash, respectively.
12088
12089 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12090 directory doesn't exist.
12091
6142fdcb
DL
120922000-04-19 Dave Love <fx@gnu.org>
12093
12094 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
12095 (concat): Don't allow numeric args.
12096 (Fconcat): Doc change.
6142fdcb 12097
ac6b5352
SM
120982000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12099
12100 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12101 instead define end_match(1|2) more carefully.
12102 Use GET_CHAR_BEFORE_2 for `begline'.
12103
cb9215e4
GM
121042000-04-19 Gerd Moellmann <gerd@gnu.org>
12105
5e3dac3f
GM
12106 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12107 on 64-bit systems where NULL is defined as `0'.
12108
12109 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12110 the `variable argument list' to make it work on Alpha.
12111
cb9215e4
GM
12112 * m/alpha.h (_LP64) [!_LP64]: Define.
12113 (ORDINARY_LINK): Define for NetBSD.
12114
12115 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 12116
f532dca0
DL
121172000-04-19 Dave Love <fx@gnu.org>
12118
c750667e
DL
12119 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12120 change.
12121
12122 * Makefile.in (LIBS): Don't use.
12123 (GETLOADAVG_OBJ): Define again.
12124 (otherobj): Add GETLOADAVG_OBJ.
12125
f532dca0
DL
12126 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12127
1c7e22fd
GM
121282000-04-18 Gerd Moellmann <gerd@gnu.org>
12129
f6d3257b
GM
12130 * lread.c (read_filtered_event): Cancel and start busy cursor.
12131
427ec082 12132 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
12133 that the per-character metrics may be null.
12134
e10f64e7
GM
121352000-04-17 Gerd Moellmann <gerd@gnu.org>
12136
0daee095
GM
12137 * buffer.c (clone_per_buffer_values): New function.
12138 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12139 clone_per_buffer_values if CLONE is not nil.
12140
e10f64e7
GM
12141 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12142
38687d43
DL
121432000-04-16 Dave Love <fx@gnu.org>
12144
12145 * Makefile.in: Remove obsolete localcpp stuff.
12146 (GETLOADAVG_OBJ): Don't define.
12147 (obj): Move LIBOBJS...
12148 (otherobj): ... to here.
12149 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12150 whitespace-only lines after the continuation (Irix).
12151
c21c7262
GM
121522000-04-14 Gerd Moellmann <gerd@gnu.org>
12153
12154 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12155
12156 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12157
314767c0
DL
121582000-04-14 Dave Love <fx@gnu.org>
12159
12160 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12161 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12162 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12163 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12164 NLIST_STRUCT.
12165
12166 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12167 autoconfiscated HAVE_GETLOADAVG.
12168
12169 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12170 BROKEN_MKTIME.
12171
a2522dca
GM
121722000-04-14 Gerd Moellmann <gerd@gnu.org>
12173
12174 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 12175 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 12176
33744b5d
DL
121772000-04-14 Dave Love <fx@gnu.org>
12178
c21c7262 12179 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
12180 (INTERVAL_SRC): Convert to make variable.
12181 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12182 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12183 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12184 add LIBOBJS.
12185 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12186 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12187 (shortlisp): Add facemenu, float-sup, frame.
12188 (SOME_MACHINE_LISP): Remove them from here.
12189 (LIBES): Change unused LDLIBS to autoconf LIBS.
12190
12191 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12192
9d3d5916
KH
121932000-04-14 Kenichi Handa <handa@etl.go.jp>
12194
12195 * composite.c (update_compositions): If FROM and TO are not in a
12196 valid range, do nothing.
12197
198e3c7a
GM
121982000-04-13 Gerd Moellmann <gerd@gnu.org>
12199
52283633 12200 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 12201
52283633 12202 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
12203
12204 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12205 as TERMCAP_OBJ.
12206
055a28c9
EZ
122072000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12208
12209 * fileio.c (a_write): Remove redundant semi-colons.
12210 (e_write): Return -1 if failed to write all the data.
12211 This fixes the changes made at 1999-12-15.
12212
f5c75033
DL
122132000-04-12 Dave Love <fx@gnu.org>
12214
12215 * fns.c (mapcar1): Test for null vals to support mapc.
12216 (Fmapc): New function.
12217
0c3cfc51
EZ
122182000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12219
12220 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12221 (IT_frame_up_to_date): Support the buffer local value of
12222 cursor-type, if defined.
12223
33465a31
DL
122242000-04-10 Dave Love <fx@gnu.org>
12225
12226 * editfns.c (preceding-char, following-char): Doc fix.
12227
6ed56568
KR
122282000-04-10 Ken Raeburn <raeburn@gnu.org>
12229
12230 * Makefile.in (temacs): Revert 2000-03-12 change.
12231
7cf80d4e
JR
122322000-04-10 Jason Rumney <jasonr@gnu.org>
12233
12234 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12235
34f3f342
GM
122362000-04-10 Gerd Moellmann <gerd@gnu.org>
12237
1a1b1895
GM
12238 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12239 area buffer, if it's not set up yet.
12240
34f3f342
GM
12241 * indent.c (compute_motion): Set immediate_quit.
12242
be0dbdab
GM
122432000-04-09 Gerd Moellmann <gerd@gnu.org>
12244
52283633 12245 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
12246 (realize_tty_face): Suppress boldness if colors are the inverse of
12247 the default colors, and tty_suppress_bold_inverse_default_colors_p
12248 is set.
12249 (Ftty_suppress_bold_inverse_default_colors): New function.
12250 (syms_of_xfaces): Defsubr it.
12251
be0dbdab
GM
12252 * buffer.c (Frestore_buffer_modified_p): New function.
12253 (syms_of_buffer): Defsubr it.
12254
e8413c3b
KR
122552000-04-08 Ken Raeburn <raeburn@gnu.org>
12256
87f67317
KR
12257 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12258 charset id (int) argument, not a charset (Lisp_Object).
12259
e8413c3b
KR
12260 * coding.h (code_convert_string): Declare.
12261 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12262 object, as the fourth argument to code_convert_string.
12263
52283633 12264 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
12265 (Fset_fontset_font): Use EQ to compare lisp objects.
12266
7c752c80
KR
122672000-04-05 Ken Raeburn <raeburn@gnu.org>
12268
c0333abc
KR
12269 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12270 a pointer that looks like a lisp object.
12271 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12272 zero, instead see whether it's an integer object, since they can't
12273 have intervals.
12274 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12275
52283633
SM
12276 * dispnew.c (allocate_matrices_for_frame_redisplay)
12277 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
12278 to convert between (unsigned) int values and lisp integers.
12279 * keyboard.c (read_key_sequence): Likewise.
12280 * lread.c (substitute_object_recurse): Likewise.
12281 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
12282 * minibuf.c (do_completion, Fminibuffer_complete_word)
12283 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
12284 * term.c (produce_special_glyphs): Likewise.
12285
12286 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12287 * print.c (print_preprocess, print_object): Likewise.
12288
12289 * search.c (compile_pattern): Use NILP when checking for nil.
12290
74e49b38
KR
12291 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12292 __OPTIMIZE__]: Provide a GNU C macro version that handles
12293 lisp-object unions.
12294 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12295 field, to better cope with ENABLE_CHECKING and calls that modify a
12296 Lisp_Object using its old value.
12297
685e5ed2
GM
122982000-04-04 Gerd Moellmann <gerd@gnu.org>
12299
c407c570
GM
12300 * window.c (compare_window_configurations): Signal an error
12301 if parameters C1 or C2 aren't window configurations.
12302
685e5ed2
GM
12303 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12304 AFTER_POTENTIAL_GC calls around calls to functions that can
12305 signal an error and thus invoke the debugger.
12306
587a49ab
GM
123072000-04-03 Gerd Moellmann <gerd@gnu.org>
12308
62f20204
GM
12309 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12310 an error if decoding fails.
12311
587a49ab
GM
12312 * keyboard.c (lispy_mouse_names): Variable removed.
12313 (Vlispy_mouse_stem): New variable.
12314 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12315 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12316 for any mouse button number. Increase size of mouse_syms and
12317 button_down_location as needed. Call modify_event_symbol with
12318 different arguments.
12319 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12320 Call modify_event_symbol with different arguments.
12321 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12322 for any button number. Call modify_event_symbol with different
12323 arguments.
12324 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12325 Accept a string for NAME_ALIST_OR_STEM.
12326
12327 * lisp.h (larger_vector): Add prototype.
12328
12329 * fns.c (larger_vector): Make externally visible.
12330
12331 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12332
2d1675e4
SM
123332000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12334
12335 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12336 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12337 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12338 we are between str1 and str2.
12339 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12340 (PATFETCH): Use `TRANSLATE'.
12341 (PATFETCH_RAW): Fetch multibyte char if applicable.
12342 (PATUNFETCH): Remove.
12343 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12344 When writing a char, write it directly into the pattern buffer rather
12345 than going needlessly through a temp char-array.
12346 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12347 multibyte magic and remove the useless `#ifdef emacs'.
12348 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12349 buffer.
12350
12351 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12352 conditional on `emacs'.
12353
12354 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
12355
cc2d8c6b
KR
123562000-04-01 Ken Raeburn <raeburn@gnu.org>
12357
12358 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
12359 non-union-type versions of XMARK and friends here, because XMARK
12360 and friends won't work on an integer field if NO_UNION_TYPE is not
12361 defined.
52283633 12362 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 12363
52283633 12364 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
12365 (syms_of_composite): Delete local var NARGS, pass an int as first
12366 argument to Fmake_hash_table.
12367
2387b382
KR
12368 * editfns.c (text_property_stickiness): Use NILP to test
12369 Lisp_Object boolean value.
12370 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
12371 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
12372 problems reading from and changing the same lisp value in an
12373 XSETSTRING call.
12374
27660e89
GM
123752000-04-01 Gerd Moellmann <gerd@gnu.org>
12376
12377 * term.c (TN_no_color_video): New variable.
12378 (term_init): Intitialize TN_no_color_video.
12379 (enum no_color_bit): New enumeration.
12380 (MAY_USE_WITH_COLORS_P): New macro.
12381 (turn_on_face): Use it to determine if attributes may be used
12382 combined with colors.
12383
3578db3c
KR
123842000-04-01 Ken Raeburn <raeburn@gnu.org>
12385
12386 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 12387 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
12388 (enlarge_window): Variable sizep now points to Lisp_Object. Use
12389 proper accessor macros.
12390 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
12391 (grow_mini_window): Fix typo getting int value of root->height.
12392
6fc556fd
KR
12393 * xdisp.c (compute_string_pos): Fix order of arguments to
12394 string_pos_nchars_ahead.
12395 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
12396 count arg to variable-arg routines like Frun_hook_with_args and
12397 Fformat.
587a49ab
GM
12398 (back_to_previous_visible_line_start)
12399 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
12400 fixed-arg routines like Fget_char_property and Fmake_string.
12401 (reconsider_clip_changes): Use XINT when comparing integer lisp
12402 objects, or passing them as int arguments.
587a49ab
GM
12403 (mark_window_display_accurate, insert_left_trunc_glyphs)
12404 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
12405 storing or passing integer values as lisp objects.
12406 (set_cursor_from_row, highlight_trailing_whitespace): Use
12407 INTEGERP, not implicit test against zero, for glyph object.
12408 (try_window_id): Don't use make_number when we want an int value.
12409
12410 * xfaces.c (xlfd_symbolic_value): Make last argument a
12411 Lisp_Object, to be consistent with callers.
12412 (Fbitmap_spec_p): Use XINT to get numeric value of height.
12413 (lface_hash): Apply XFASTINT to lisp values before folding in.
12414
12415 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
12416 fill in window width and height. Pass an int, not a lisp object,
12417 as first arg to Finsert.
12418
6e7b2457
GM
124192000-04-01 Gerd Moellmann <gerd@gnu.org>
12420
610d841e
GM
12421 * xfaces.c (realize_basic_faces): Block input while realizing
12422 the faces.
12423
6e7b2457
GM
12424 * keyboard.c (lispy_mouse_names): Add additional mouse names.
12425
12426 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
12427
aa110c0c
GM
124282000-03-31 Gerd Moellmann <gerd@gnu.org>
12429
12430 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 12431 or ASCII, handle case that per-char metric is null.
aa110c0c 12432
8801a864
KR
124332000-03-30 Ken Raeburn <raeburn@gnu.org>
12434
c6129d7e
KR
12435 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
12436
52283633
SM
12437 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
12438 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
12439 pointer, using eassert.
12440 * frame.h (XFRAME): Likewise.
12441
52283633
SM
12442 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
12443 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
12444 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 12445 * data.c (set_internal): Likewise.
52283633
SM
12446 * dispextern.h (WINDOW_WANTS_MODELINE_P)
12447 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
12448 * fileio.c (auto_save_1): Likewise.
12449 * insdel.c (check_markers): Likewise.
12450 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
12451 * undo.c (record_insert): Likewise.
12452 * vmsproc.c (child_sig): Likewise.
12453 * window.c (unshow_buffer, window_loop): Likewise.
12454 * xterm.c (x_erase_phys_cursor): Likewise.
12455
8e7af858
GM
124562000-03-30 Gerd Moellmann <gerd@gnu.org>
12457
12458 * xfns.c (free_image_cache): Free the cache structure itself
12459 last, after all its members have been freed.
12460
12461 * lisp.h (xstrdup): Add prototype.
12462
12463 * alloc.c (xstrdup): Moved here from xfaces.c.
12464 (allocating_for_lisp): Variable removed.
52283633 12465 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
12466
12467 * xfaces.c (realize_tty_face): Use find_symbol_value instead
12468 of Fsymbol_value.
12469 (xstrdup): Moved to alloc.c.
12470
e0b8c689
KR
124712000-03-29 Ken Raeburn <raeburn@gnu.org>
12472
b96f9fb7
KR
12473 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
12474
12475 * emacs.c (main): Fix sense of no-loadup test.
12476
e0b8c689
KR
12477 * config.in (ENABLE_CHECKING): Undef.
12478
12479 * lisp.h (struct interval): Replace "parent" field with a union of
12480 interval pointer and Lisp_Object; add new bitfield to use as
12481 discriminant. Change other flag fields to bitfields.
12482 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
12483 is defined and the supplied test fails, print a message and abort.
12484 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
12485
12486 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
12487 pointers; abort if the value looks like a lisp object.
52283633
SM
12488 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
12489 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
12490 Modify for new interval parent definition.
12491
52283633
SM
12492 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
12493 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
12494 addressable lisp object in the interval structure.
12495 (die): New function.
12496 (suppress_checking): New variable.
12497
12498 * intervals.c (interval_start_pos): Just return 0 if there's no
12499 parent object.
12500
f83c5440
GM
125012000-03-29 Gerd Moellmann <gerd@gnu.org>
12502
12503 * lread.c (read1): Accept `.' (period) as symbol start like in CL
12504 and earlier Emacs versions.
12505
12506 * keyboard.c (Ftop_level): Cancel busy-cursor.
12507
12508 * eval.c (call_debugger): Cancel busy-cursor.
12509
fdce64ff
KH
125102000-03-29 Kenichi Handa <handa@etl.go.jp>
12511
12512 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 12513 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 12514
f6a3f532
SM
125152000-03-28 Stefan Monnier <monnier@cs.yale.edu>
12516
12517 * regex.c (analyse_first): New function obtained by ripping out most
12518 of re_compile_fastmap and generalizing it a little bit so that it
12519 can also just return whether a given (sub)pattern can match the empty
12520 string or not.
12521 (regex_compile): Use `analyse_first' to decide whether the loop-check
12522 needs to be done or not for *, +, *? and +? (the loop check is costly
12523 for non-greedy repetition).
12524 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
12525
e9b309ac
DL
125262000-03-28 Dave Love <fx@gnu.org>
12527
52283633 12528 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 12529
e9b309ac
DL
12530 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
12531
ed0767d8
SM
125322000-03-27 Stefan Monnier <monnier@cs.yale.edu>
12533
12534 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
12535 an expression.
12536 (enum re_opcode_t): Update description of succeed_n.
12537 (PATFETCH): Always define.
12538 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
12539 operators, char classes, shy-groups and intervals).
12540 Optimize special cases of intervals so as to only use succeed_n and
12541 jump_n when really needed.
12542 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
12543 that we don't have to handle the special cases any more.
12544 Simplify on_failure_jump handling as well.
12545
e11e7e46
JR
125462000-03-28 Jason Rumney <jasonr@gnu.org>
12547
12548 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
12549
88faab89
GM
125502000-03-27 Gerd Moellmann <gerd@gnu.org>
12551
182ff242
GM
12552 * s/freebsd.h (GC_SETJMP_WORKS): Define.
12553
12554 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 12555
182ff242
GM
12556 * alloc.c (mark_maybe_object): New function.
12557 (mark_memory): Use it.
12558 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
12559 (setjmp_tested_p, longjmp_done): New variables.
12560 (test_setjmp): New function.
12561 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
12562 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
12563
c1005d06
GM
12564 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
12565 to DEC_TEXT_POS and INC_TEXT_POS.
12566
12567 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
12568 with parameter MULTIBYTE_P.
12569
52283633 12570 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 12571
7439e5b9 12572 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
12573 buffers because it looks for multibyte character byte sequences
12574 which don't exist in unibyte text.
7439e5b9 12575
d9c545da
GM
12576 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
12577
11fd416e 12578 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
12579 [DEBUG_X_COLORS]: New functions.
12580 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
12581
12582 * xfns.c (x_set_cursor_color): Get color reference counts right.
12583
12584 * xterm.c (x_copy_color): New function.
12585 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
12586
12587 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
12588 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
12589 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
12590 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
12591 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
12592 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
12593 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
12594 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
12595 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
12596 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
12597
11fd416e
GM
12598 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
12599 names for handling per-buffer variables.
d9c545da
GM
12600
12601 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
12602 instead of MAX_BUFFER_LOCAL_VARS.
12603 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
12604
12605 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
12606
88faab89
GM
12607 * xfns.c (x_specified_cursor_type): New function.
12608 (x_set_cursor_type): Use it.
12609
12610 * buffer.h (struct buffer): Add cursor_type.
12611
d80f42b7
SM
126122000-03-26 Stefan Monnier <monnier@cs.yale.edu>
12613
12614 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
12615 (print_partial_compiled_pattern, re_compile_fastmap):
12616 Handle new opcode.
d80f42b7
SM
12617 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
12618 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
12619 executing it as well as when popping it off the stack to find infinite
12620 loops in non-greedy repetition operators.
12621
89e80928
GM
126222000-03-26 Gerd Moellmann <gerd@gnu.org>
12623
3d4ff2dd
GM
12624 * doc.c (Qfunction_documentation): New variable.
12625 (syms_of_doc): Initialize Qfunction_documentation.
12626 (Fdocumentation): If FUNCTION is a symbol with non-nil
12627 `function-documentation' property, return a documentation derived
12628 from that.
12629
bd96bd79
GM
12630 * buffer.c (syms_of_buffer): Add default-cursor-type.
12631 (init_buffer_once): Don't let cursor_type have a local value
12632 in every buffer.
12633
19d1bc27
GM
12634 * xterm.c (x_display_and_set_cursor): Choose cursor depending
12635 on buffer-local value of cursor_type.
12636 (x_draw_bar_cursor): Add parameter WIDTH.
12637
12638 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
12639 (init_buffer_once): Set default cursor_type value to t.
12640 Mark cursor_type as local everywhere.
12641 (syms_of_buffer): New per-buffer variable cursor-type.
12642
89e80928
GM
12643 * buffer.h (struct buffer): Remove member local_var_flags,
12644 add local_flags.
12645 (MAX_BUFFER_LOCAL_VARS): New macro.
12646 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
12647 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
12648 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
12649 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
12650
52283633 12651 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
12652
12653 * category.c (Fset_category_table): Use new macros for per-buffer
12654 variables.
12655
12656 * buffer.c (buffer_permanent_local_flags): Make a char array.
12657 (max_buffer_local_idx): New variable.
12658 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
12659 for new handling of per-buffer variables.
12660 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
12661 (init_buffer_once): Initialize per-buffer vars differently.
12662 Set max_buffer_local_idx.
12663
12664 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
12665 variables.
12666
52283633 12667 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
12668
12669 * data.c (do_symval_forwarding, store_symval_forwarding)
12670 (find_symbol_value, set_internal, default_value, Fset_default)
12671 (Fkill_local_variable, Flocal_variable_p): Use new macros for
12672 per-buffer variables.
12673
12674 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
12675
9a0dd3dc
GM
126762000-03-24 Gerd Moellmann <gerd@gnu.org>
12677
b68c375f
GM
12678 * xterm.c (x_term_init): Unblock input around call1 of
12679 Qvendor_specific_keysyms.
12680
9a0dd3dc
GM
12681 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
12682 (find_defun_start): Consider an open parenthesis in column 0
12683 a defun start only if open_paren_in_column_0_is_defun_start is set.
12684 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
12685
7973e637
SM
126862000-03-24 Stefan Monnier <monnier@cs.yale.edu>
12687
12688 * eval.c (Fautoload): Add entry in load-history (if after dump).
12689 * lread.c (load-history): Update docstring.
12690
39210e90
GM
126912000-03-24 Gerd Moellmann <gerd@gnu.org>
12692
12693 * indent.c (Fvertical_motion): Always use the current buffer.
12694 Temporarily change the window's buffer, if necessary.
12695
72db3ab5
GM
126962000-03-23 Gerd Moellmann <gerd@gnu.org>
12697
12698 * xterm.c (fast_find_position): Make sure not to consider rows
12699 not visible in the window.
12700
990b2375
SM
127012000-03-22 Stefan Monnier <monnier@cs.yale.edu>
12702
12703 * regex.c (enum syntaxcode): Provide default for non-Emacs.
12704 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
12705
ff4df011
JR
127062000-03-22 Jason Rumney <jasonr@gnu.org>
12707
12708 * w32menu.c (single_submenu): Set help string to NULL if none.
12709 (w32_menu_show): Set help string correctly.
12710 (add-menu-item): Set help string in MIIM_DATA for menu item.
12711 Load SetMenuItemInfoA explicitly.
12712 (w32_menu_display_help): New function.
427ec082 12713
ff4df011
JR
12714 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
12715 (QCdata): Moved to xdisp.c.
12716
12717 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
12718 (Vw32_charset_to_codepage_alist): Removed.
12719 (Vw32_charset_info_alist): New variable.
52283633
SM
12720 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
12721 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
12722 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
12723 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
12724 with TODO comment.
12725 (w32_codepage_for_font): Use Vw32_charset_info_alist.
12726 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
12727 Define Vw32_charset_info_alist and w32_charset symbols.
12728
127292000-03-22 Jason Rumney <jasonr@gnu.org>
12730
12731 * makefile.nt (w32bdf.obj): Update dependencies.
12732
12733 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
12734
12735 * w32fns.c: Include fontset.h after dispextern.h.
12736 (Fx_create_frame): Do not create fontset.
12737 (w32_load_system_font): Doc fix.
12738 (Fx_close_connection): Free full_name if it is not shared.
12739
12740 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
12741 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
12742 Callers updated.
ff4df011
JR
12743 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
12744 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
12745 (w32_font_is_double_byte): New function, needs body.
12746 (x_append_glyph): Set glyph->glyph_not_available_p.
12747 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12748 it->charset. If it->multibyte_p is zero and it->c is a multibyte
12749 character, convert it to a unibyte character.
12750 (struct glyph_string): Delete member `charset'.
12751 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
12752 calculating it is found.
12753 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12754 the case that per char metric is not available correctly.
12755 (x_fill_glyph_string): Handle the case that the specific glyph is
12756 not available correctly.
12757 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12758 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12759 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12760 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12761 fontset. Don't call FS_LOAD_FONT.
12762
439d5cb4
KR
127632000-03-22 Ken Raeburn <raeburn@gnu.org>
12764
12765 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
12766 (INT_LISPLIKE): New macro.
12767 (NULL_INTERVAL_P): Use it.
52283633
SM
12768 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
12769 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
12770 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
12771
12772 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
12773 explicit references to "parent" field of struct interval and
12774 associated unclean type conversions.
52283633
SM
12775 * intervals.c (create_root_interval, root_interval, rotate_right)
12776 (rotate_left, balance_possible_root_interval, split_interval_right)
12777 (split_interval_left, interval_start_pos, find_interval)
12778 (next_interval, previous_interval, update_interval)
12779 (adjust_intervals_for_insertion, delete_node, delete_interval)
12780 (adjust_intervals_for_deletion, merge_interval_right)
12781 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
12782 (copy_intervals_to_string): Likewise.
439d5cb4
KR
12783 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
12784 Likewise.
12785 * syntax.c (update_syntax_table): Likewise.
12786
12787 * intervals.c (reproduce_tree_obj): New function, like
12788 reproduce_tree but takes a Lisp_Object for the parent. Declare
12789 with prototype.
12790 (graft_intervals_into_buffer): Use it when appropriate.
12791 (reproduce_tree): Declare with prototype.
12792 (balance_possible_root_interval): Check that the parent is a lisp
12793 object before trying to examine its type.
12794
ee1c5b21
GM
127952000-03-22 Gerd Moellmann <gerd@gnu.org>
12796
12797 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
12798 as strings only if both are known to be strings.
12799
12800 * s/openbsd.h (LIBS_TERMCAP): Undef.
12801
1fb352e0
SM
128022000-03-21 Stefan Monnier <monnier@cs.yale.edu>
12803
12804 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
12805 definitions for non-Emacs compilation.
12806 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
12807 outside of `#ifdef emacs'.
12808 (print_partial_compiled_pattern): Update.
12809 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
12810 (re_compile_fastmap): Merge handling of charset and charset_not (for
12811 emacs and non-emacs compilation as well).
12812 Similarly for (not)categoryspec and (not)syntaxspec.
12813 Don't use the fastmap when reaching `anychar' since the added
12814 complexity is not justified.
12815 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
12816 and (not)syntaxspec. Merge (not)categoryspec.
12817
fdaa1f77
KH
128182000-03-22 Kenichi Handa <handa@etl.go.jp>
12819
52283633
SM
12820 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
12821 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 12822 --without-x.
fdaa1f77 12823
d152fb46
DL
128242000-03-21 Dave Love <fx@gnu.org>
12825
12826 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
12827 doc string.
12828
d2cafc8c
GM
128292000-03-21 Gerd Moellmann <gerd@gnu.org>
12830
12831 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
12832 (lface_fully_specified_p): Don't check contents of
12833 LFACE_FONT_INDEX because that attribute is optional.
12834 (realize_x_face): Remove now unwarranted xassert.
12835
9111d4b5
KH
128362000-03-21 Kenichi HANDA <handa@etl.go.jp>
12837
12838 The following changes are to make font selection based on
12839 characters, not charset. In addition, they recover fontset
12840 facilities while utilizing the new font selection mechanism.
12841
6c4bfdc0
KH
12842 * Makefile.in (fontset.o): Depend on dispextern.h.
12843
12844 * alloc.c (mark_face_cache): Don't mark face->registry.
12845
9111d4b5
KH
12846 * dispextern.h (struct glyph): New member glyph_not_available_p.
12847 Use 22 bits for face_id.
12848 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
12849 (struct face): Delete member registry, new member ascii_face.
12850 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
12851 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
12852 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 12853 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
12854
12855 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
12856 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
12857 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
12858 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 12859 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
12860 (fs_free_face_fontset, fontset_font_pattern)
12861 (face_suitable_for_char_p, face_for_char)
12862 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
12863 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
12864 (FS_LOAD_FACE_FONT): New macro.
12865
12866 * fontset.c: All codes rewritten or adjusted for the change of
12867 fontset implementation. Now fontset is represented by char table.
52283633
SM
12868 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
12869 Variables removed.
9111d4b5 12870 (my_strcasecmp): Function removed.
52283633 12871 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 12872 (AREF, ASIZE): New macros.
52283633
SM
12873 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
12874 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
12875 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
12876 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
12877 (fontset_id_valid_p, font_family_registry, fontset_name)
12878 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
12879 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
12880 New functions.
12881 (fs_load_font): New arg FACE. Caller changed.
12882 (fs_query_fontset): Argument changed. Caller changed.
12883 (Fquery_fontset): call fs_query_fontset.
12884 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
12885 Functions removed.
52283633
SM
12886 (clear_fontset_elements, check_registry_encoding)
12887 (check_fontset_name): New functions.
9111d4b5
KH
12888 (syms_of_fontset): Set char-table-extra-slots property of fontset
12889 to 3. Staticpro and initialize Vfontset_table and
12890 Vdefault_fontset. Defsubr fontset_font and fontset_list.
12891
12892 * frame.h (struct frame): Member `fontset_data' removed.
12893 (FRAME_FONTSET_DATA): Macro removed.
12894
12895 * frame.c (make_frame): Don't allocate f->fontset_data.
12896 (Fdelete_frame): Don't free f->fontset_data.
12897
6c4bfdc0
KH
12898 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
12899
9111d4b5
KH
12900 * xdisp.c (charset_at_position): Function removed.
12901 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
12902 (handle_face_prop, reseat_to_string, set_iterator_to_next)
12903 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
12904 Likewise.
12905 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
12906 FACE_FOR_CHARSET.
52283633
SM
12907 (get_next_display_element, append_space)
12908 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
12909
12910 * xfaces.c (Qx_charset_registry, Vface_default_registry):
12911 Variables removed.
12912 (clear_font_table, frame_update_line_height, load_face_font):
12913 Adjusted for the change of fontset implementation.
12914 (load_face_fontset_font): Function removed.
12915 (pixel_point_size): New function.
12916 (font_list): Argument type changed. Caller changed.
12917 (LFACE_FONT): New macro.
12918 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
12919 (set_lface_from_font_name): Type of arg FONTNAME is changed to
12920 Lisp_Object. Determine the font name by actually loading a font
12921 by the specified pattern. Set LFACE_FONT (lface) to the specified
12922 pattern. Even if a font is not found, don't try alternatives.
12923 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
12924 (set_font_frame_param): If `font' is specified in lface, use it.
12925 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
12926 (lface_same_font_attributes_p): Likewise.
12927 (make_realized_face): Arguent changed. Caller changed. Set
12928 face->ascii_face to face itself.
12929 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
12930 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
12931 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
12932 (free_realized_multibyte_face): New function.
12933 (lookup_face, lookup_named_face, lookup_derived_face): Argument
12934 changed. Caller changed.
12935 (try_font_list): Argument type changed.
12936 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
12937 (choose_face_font): Argument changed. Handle fontset properly.
12938 (choose_face_fontset_font): Function removed.
12939 (realize_default_face, realize_named_face): Don't remove the
12940 former face here.
12941 (realize_face): Argument changed. Caller changed. Remove face
52283633 12942 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
12943 (realize_x_face): Argument changed. Caller changed. For a
12944 multibyte character, share fontset with base_face. For a single
52283633 12945 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
12946 (realize_tty_face): Argument changed. Caller changed.
12947 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
12948 (face_at_buffer_position): Don't check multibyte_p for returning
12949 DEFAULT_FACE_ID.
12950 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
12951 FACE_SUITABLE_FOR_CHARSET_P.
12952 (syms_of_xfaces): Remove code for Qx_charset_registry and
12953 Vface_default_registry.
12954
6c4bfdc0
KH
12955 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
12956 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
12957 (x_per_char_metric): Don't try FONT->default_char. Even if
12958 pcm->width is zero, glyph bits may exist.
12959 (x_encode_char): Always initialize char2b->byte1.
12960 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 12961 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
12962 (x_append_glyph): Set glyph->glyph_not_available_p.
12963 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
12964 it->charset. Handle the case that per char metric is not
12965 available. If it->multibyte_p is zero and it->c is a multibyte
12966 character, convert it to a unibyte character.
12967 (struct glyph_string): Delete member `charset'.
12968 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
12969 the case that per char metric is not available correctly.
12970 (x_fill_glyph_string): Handle the case that the specific glyph is
12971 not available correctly.
12972 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
12973 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
12974 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
12975 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
12976 fontset. Don't call FS_LOAD_FONT.
12977
12978 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
12979 (x_create_tip_frame): Likewise.
12980 (Fx_close_connection): Free full_name of font_info.
12981
12982 * fns.c (optimize_sub_char_table): New function.
12983 (Foptimize_char_table): New function.
12984 (syms_of_fns): Defsubr Soptimize_char_table.
12985
b33dd3b0
GM
129862000-03-20 Gerd Moellmann <gerd@gnu.org>
12987
12988 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
12989 only if buffer is displayed in some window.
12990
12991 * xdisp.c (handle_single_display_prop): Initialize local `value'.
12992 (try_window_reusing_current_matrix): Don't call scroll run
12993 function if run's current and desired position are the same;
12994 this prevents cursor flickering.
12995
4e8a9132
SM
129962000-03-19 Stefan Monnier <monnier@cs.yale.edu>
12997
12998 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
12999
13000 * regex.c (RE_STRING_CHAR): New macro.
13001 (GET_CHAR_AFER_2): Remove.
13002 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13003 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13004 (print_partial_compiled_pattern, re_compile_fastmap)
13005 (re_match_2_internal): Remove on_failure_jump_exclusive.
13006 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13007 optimization only need to work for * (ie. can use of_keep_string_jump).
13008 Remove the special case for .*\n since it is now covered by the general
13009 optimization.
13010 (re_search_2): Don't bother with `room'.
13011 (skip_one_char): New function.
13012 (skip_noops): Simplify since `memory' is not needed any more.
13013 (mutually_exclusive_p): Restructure slightly to use `switch' and
13014 add handling for "all" remaining cases.
13015 (re_match_2_internal): Change on_failure_jump_smart to use
13016 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13017 rather than on_failure_jump_exclusive.
13018
2136fdd4
GM
130192000-03-19 Gerd Moellmann <gerd@gnu.org>
13020
13021 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13022 number of bits per RGB because it's everywhere used as the depth
13023 of the visual.
13024
13025 * term.c (calculate_costs): Remove code dealing with X frames.
13026
18e21ce8 130272000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
13028
13029 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13030
d7b511c4
GM
130312000-03-18 Gerd Moellmann <gerd@gnu.org>
13032
13033 * lread.c (read_integer): Unread the last char not consumed.
13034
16b5d424
GM
130352000-03-17 Gerd Moellmann <gerd@gnu.org>
13036
13037 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 13038 which are in the process of being deleted.
16b5d424 13039
1fa28578
GM
130402000-03-16 Gerd Moellmann <gerd@gnu.org>
13041
83488cce
GM
13042 * Makefile.in (mostlyclean): Add `*.core'.
13043 (clean): Add `bootstrap-emacs'.
13044
1fa28578
GM
13045 * lread.c (read_integer): New function.
13046 (read1): Support read syntax #o, #x, #b, #r.
13047
99633e97
SM
130482000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13049
1fa28578
GM
13050 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13051 make sure POINTER_TO_OFFSET gives the same value before and after
13052 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
13053 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13054 (debug): Now only active if > 0 rather than if != 0.
13055 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
13056 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13057 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13058 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
13059 (store_op1, store_op2, insert_op1, insert_op2)
13060 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
13061 (group_in_compile_stack): Move to after its arg's types are
13062 declared and add a prototype.
99633e97 13063 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 13064 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 13065 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
13066 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13067 indentation of the greedy-op and shy-group code.
99633e97
SM
13068 (at_(beg|end)line_loc_p): Fix argument's types.
13069 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13070 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13071 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
13072 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13073 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13074 QUIT unconditionally.
99633e97 13075
699238d9
GM
130762000-03-15 Gerd Moellmann <gerd@gnu.org>
13077
13078 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13079 a sole completion.
13080
13081 * process.c (send_process): Add a hint that the function
13082 can call Lisp code to its comment.
13083
13084 * lread.c (load_dangerous_libraries): New variable.
13085 (Vbytecomp_version_regexp): New variable.
13086 (safe_to_load_p): New function.
13087 (Fload): Handle files not compiled with Emacs specially.
13088 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13089
34e23e5a
GM
130902000-03-14 Gerd Moellmann <gerd@gnu.org>
13091
9c763cca
GM
13092 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13093
13094 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13095 support functions only if HAVE_X11R6_XIM is defined.
13096 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13097
13098 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13099
13100 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 13101 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
13102 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13103
13104 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13105 (HAVE_X11R6_XIM): Define.
13106
13107 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13108
34e23e5a
GM
13109 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13110 If set, call XSynchronize.
13111
66f0296e
SM
131122000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13113
34e23e5a
GM
13114 * regex.c: Declare a new type `re_char' used throughout the code
13115 for the string char type. It's `const unsigned char' to match the
13116 rest of Emacs. Consistently make sure all pointers to strings use
52283633 13117 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 13118 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
13119 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13120 code duplication.
66f0296e
SM
13121
13122 * charset.h (GET_CHAR_AFTER_2): Remove.
13123 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13124
854a025c
KR
131252000-03-12 Ken Raeburn <raeburn@gnu.org>
13126
13127 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13128 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13129 of them try to use backquotes.
13130
b9d2c7e2
DL
131312000-03-12 Dave Love <fx@gnu.org>
13132
13133 * unexelf.c: Restore changes of 1999-10-19.
13134 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13135 fix its type and alignment; copy it from current process.
13136
5e5dff44
GM
131372000-03-12 Gerd Moellmann <gerd@gnu.org>
13138
9b2f3c38
GM
13139 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13140 has been found. Fix bug not computing timer's predecessor.
13141
427ec082 13142 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
13143 file name.
13144
e1cff360
GM
13145 * window.c (Fsave_window_excursion): Doc fix.
13146
52283633 13147 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 13148
e411ce4b
EZ
131492000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13150
13151 * msdos.c (vga_installed): New function, code moved from
13152 dos_set_window_size.
13153 (Qbar, Qcursor_type, outside_cursor): New variables.
13154 (syms_of_msdos): Intern and staticpro them.
13155 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13156 shape used outside Emacs when called for the first time.
13157 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13158 cursor shape used outside Emacs.
13159 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13160 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13161 type has changed.
13162 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13163 parameters specify the cursor. Make qreverse a global
13164 variable (renamed to Qreverse).
13165
80460654
GM
131662000-03-09 Gerd Moellmann <gerd@gnu.org>
13167
13168 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13169
95cd4c40
SM
131702000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13171
13172 This is a big redesign of failure-stack and register handling, prompted
13173 by bugs revealed when trying to add shy-groups. Overall, what happened
13174 is that loops are now structured a little differently, groups can be
13175 shy and the code is a little simpler.
13176
13177 * regex.h: Update the copyright.
13178 (RE_SHY_GROUPS): New value.
13179 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13180 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13181
80460654
GM
13182 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13183 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13184 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13185 for (start|stop)_memory since they now only take one argument (the
13186 second has becomes unnecessary).
52283633 13187 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
13188 (print_compiled_pattern): Use %ld to printf long ints and flush to
13189 make debugging a little easier.
95cd4c40
SM
13190 (union fail_stack_elt): Make the integer unsigned.
13191 (struct fail_stack_type): Add a `frame' element.
13192 (INIT_FAIL_STACK): Init `frame' as well.
13193 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13194 (DEBUG_PUSH, DEBUG_POP): Remove.
13195 (NUM_REG_ITEMS): Remove.
13196 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
13197 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13198 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 13199 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
13200 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13201 New macros.
80460654
GM
13202 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13203 address pushed is not the destination of the jump but the source
13204 of it instead.
95cd4c40
SM
13205 (NUM_FAILURE_ITEMS): Remove.
13206 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
13207 registers before the actual failure point). Don't hardcode any
13208 meaning for str==NULL anymore.
95cd4c40 13209 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
13210 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13211 Remove.
95cd4c40
SM
13212 (REG_UNSET_VALUE): Use NULL (why not?).
13213 (compile_range): Remove declaration since it doesn't exist.
13214 (struct compile_stack_elt_t): Remove inner_group_offset.
13215 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13216 (regex_grow_registers): Remove dead code.
13217 (FIXUP_ALT_JUMP): New macro.
80460654
GM
13218 (regex_compile): Add shy-groups Change loops to use
13219 on_failure_jump_smart&jump instead of
13220 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13221 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13222 variable to me). Use `jump' instead of `jump_past_alt' and don't
13223 bother with push_dummy_failure in alternatives since it is now
13224 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13225 emacs' for (re)allocating the stack.
13226 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13227 from loop when bufp->can_be_null rather than jumping to `done'.
13228 Avoid jumping backwards so as to ensure termination. Use
13229 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13230 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 13231 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
13232 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13233 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
13234 (lowest_active_reg, highest_active_reg)
13235 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
13236 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13237 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13238 variables. Push register (in `start_memory') on the stack rather
13239 than storing it in old_reg(start|end). Remove the cycle detection
13240 from `stop_memory', replaced by the use of on_failure_jump_loop
13241 for greedy loops. Add code for the new on_failure_jump_<foo>.
13242 Remove ad-hoc code in `on_failure_jump' to push more registers in
13243 the case of a loop. Take out code from `maybe_pop_jump' into
13244 separate functions and adapt it to the semantics of
13245 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13246 and push_dummy_failure. Remove dummy_failure handling and
13247 handling of `failures to jump to on_failure_jump' (this last one
13248 was already dead code, it seems).
13249 (group_match_null_string_p, alt_match_null_string_p)
13250 (common_op_match_null_string_p): Remove.
95cd4c40 13251
7397acc4
DL
132522000-03-08 Dave Love <fx@gnu.org>
13253
13254 * config.in: Don't depend on __STDC__ for volatile.
13255 Add POINTER_TYPE, PTR, PROTOTYPES.
13256
13257 * hftctl.c, strftime.c: Use PROTOTYPES.
13258 * eval.c (find_handler_clause): Likewise.
13259
13260 * mem-limits.h: Use POINTER_TYPE.
13261
13262 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13263 (memory_warnings): Declare using POINTER_TYPE.
13264
5e91ff9e
GM
132652000-03-08 Gerd Moellmann <gerd@gnu.org>
13266
feab4fba
GM
13267 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13268
52283633 13269 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 13270
5e91ff9e
GM
13271 * xfns.c: Remove obsolete code in #if 0.
13272 (Fx_focus_frame): New function.
13273
a735b7e1
KH
132742000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13275
13276 * coding.c (coding_category_name): Add coding-category-utf-8,
13277 coding-category-utf-16-be, coding-category-utf-16-le.
13278 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13279 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13280 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13281 (detect_coding_utf_8): New function.
13282 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13283 UTF_16_LOW_SURROGATE_P): New macros.
13284 (detect_coding_utf_16): New function
13285 (detect_coding_mask): When priorities are specified, skip any
13286 categories that have `nil' coding-system. Fix bug of returning
13287 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13288 returns a mask not set in PRIORITIES.
13289 (detect_eol_type_in_2_octet_form): New function.
13290 (detect_eol): selects detect_eol_type_XXX to call according to
13291 cooding->category_idx.
13292 (detect_coding_system): Remove `nil' coding-system in the result.
13293 (Fupdate_coding_systems_internal): Update all coding-categories.
13294
52283633
SM
13295 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13296 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13297 New macros.
13298 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13299 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13300 (CODING_CATEGORY_IDX_UTF_16_LE)
13301 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13302 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
13303 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13304 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13305
9994cc69
GM
133062000-03-07 Gerd Moellmann <gerd@gnu.org>
13307
e9b4e5ff
GM
13308 * doc.c (Fdocumentation_property): If value is not a string,
13309 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13310
f7daf1e1
GM
13311 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13312 close the display with XtCloseDisplay. This caused a bus error
13313 on OpenWindows.
13314
9994cc69
GM
13315 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13316 complete but not unique.
13317
4336c705
GM
133182000-03-06 Gerd Moellmann <gerd@gnu.org>
13319
18bb0684
GM
13320 * process.c (send_process): Remove local variable `procname' that
13321 might become invalid when a GC happens. Instead, access the
13322 process name slot directly.
13323
4336c705
GM
13324 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13325 orig_height if set.
13326
13327 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13328 orig_height if set.
13329
515d0d0e
EZ
133302000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13331
13332 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13333 glyph matrices have been freed.
13334
100b3cbb
GM
133352000-03-05 Gerd Moellmann <gerd@gnu.org>
13336
50df5e5a 13337 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 13338 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
13339
13340 * xfns.c (QCdata): Moved to xdisp.c.
13341
13342 * xdisp.c (QCdata): Moved here from xfns.c.
13343 (syms_of_xdisp): Initialize QCdata.
13344
13345 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13346
13347 * window.c (coordinates_in_window): Use
13348 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13349 FRAME_INTERNAL_BORDER_WIDTH.
13350
100b3cbb 13351 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 13352 it is obviously invalid.
100b3cbb
GM
13353
13354 * xterm.c (x_term_init): Create a colormap if not using the
13355 default visual.
13356
13357 * xterm.h (select_visual): Change prototype.
13358
13359 * xfns.c (select_visual): Rewritten. Recognize user-specified
13360 visual classes.
13361 (visual_classes): New variable.
13362
64d739c4
GM
133632000-03-04 Gerd Moellmann <gerd@gnu.org>
13364
13365 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
13366 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
13367 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 13368 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
13369 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
13370 XtNcolormap resources.
13371 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
13372 (Fx_create_frame): Initialize color members of x_output structure.
13373 (xpm_load): Pass colormap to XPM lib.
13374
13375 * xfaces.c (x_free_colors): Access colormap of frame using
13376 FRAME_X_COLORMAP. Be paranoid about freeing black and white
13377 when default colormap is used.
13378
13379 * xterm.c (x_term_init): Set Colormap member of x_display_info
13380 structure. Copy colormap if resource `privateColormap' is
13381 specified (PseudoColor only).
13382 (x_setup_relief_color): Access colormap of frame using
13383 FRAME_X_COLORMAP.
13384
13385 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
13386 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
13387
c3cee013
JR
133882000-03-04 Jason Rumney <jasonr@gnu.org>
13389
13390 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
13391 other non-platform-specific equivalents.
64d739c4 13392 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
13393 specific functions and macros as their w32 equivalents where
13394 non-platform-specifics are not available.
13395 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
13396 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
13397 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
13398 (frame_update_line_height): Use macros to access f->output_data.
13399 (defined_color): Remove FIXME comments; fixed.
13400 (x_face_list_fonts, prepare_face_for_display): Put X specifics
13401 into #ifdef blocks. Add WINDOWSNT blocks.
13402 (Fx_list_fonts): Use macros for accessing font data.
13403 (set_lface_from_font_name): Different default fonts for X and
13404 WINDOWSNT.
13405 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
13406 scalable for backward compatibility.
64d739c4 13407 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
13408 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
13409
64d739c4 13410 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
13411 syms_of_w32faces.
13412
13413 * makefile.nt (w32faces.obj): Remove.
13414 (xfaces.obj): Add.
13415
807cc41c
JR
134162000-03-03 Jason Rumney <jasonr@gnu.org>
13417
13418 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
13419 correct parameters.
13420
0007072a
KR
134212000-03-03 Ken Raeburn <raeburn@gnu.org>
13422
13423 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
13424 standard ELF definitions here if the system header does not.
13425
71a6ba55
GM
134262000-03-03 Gerd Moellmann <gerd@gnu.org>
13427
13428 * xterm.c (PER_CHAR_METRIC): Removed.
13429 (x_per_char_metric_1, x_default_char): New functions.
13430 (x_per_char_metric): If font's default char is invalid, return
13431 metrics of a suitably chosen usable default char.
13432 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
13433 char, replace occurrences of unprintable chars with a suitably
13434 chosen usable default char.
71a6ba55 13435
900fa1f1
GM
134362000-03-02 Gerd Moellmann <gerd@gnu.org>
13437
42f55fe0
GM
13438 * xterm.c (note_mouse_highlight): Return quickly if frame's
13439 glyph matrices have been freed.
13440
13441 * dispnew.c (free_glyphs): Block input while freeing matrices.
13442
900fa1f1
GM
13443 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
13444
52283633
SM
13445 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
13446 Use x_free_colors.
900fa1f1
GM
13447
13448 * dispextern.h (x_free_colors): Add prototype.
13449
13450 * xfaces.c (x_free_colors): New function.
13451 (unload_color, free_face_colors): Use it.
13452
2f950292
EZ
134532000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13454
13455 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
13456
13457 * window.c [MSDOS]: Include msdos.h.
13458
54d04320
DL
134592000-03-02 Dave Love <fx@gnu.org>
13460
13461 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
13462
13463 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
13464 set C_OPTIMIZE_SWITCH for gcc.
13465
0ba93ac4
KH
134662000-03-02 Kenichi Handa <handa@etl.go.jp>
13467
13468 * coding.c (coding_save_composition): Be sure to allocate
13469 composition data area in coding even if there's no composition in
13470 the current run.
13471
a2bc11d4
JR
134722000-03-01 Jason Rumney <jasonr@gnu.org>
13473
13474 * w32term.c: Equivalent changes to those made to xterm.c on
13475 2000-02-25 and 2000-02-24.
13476
13477 * w32fns.c: Equivalent changes to those made to xfns.c on
13478 2000-02-25 and 2000-02-21.
13479
13480 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
13481 correct line-end convention is followed.
13482
13483 * w32menu.c [HAVE_BOXES]: Remove #undef.
13484 (single_keymap_panes): Remove code for simulating checkmarks.
13485 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
13486 Remove code for drawing simulated checkmarks.
13487 (w32_menu_show): make unibyte help string correctly.
13488 (add_menu_item): draw standard Windows checkmarks. Draw radio
13489 buttons as radio buttons if possible.
13490
72d19d75
GM
134912000-03-01 Gerd Moellmann <gerd@gnu.org>
13492
2df636f4
GM
13493 * sysdep.c (start_of_text): Don't define this function for NetBSD
13494 with ELF.
13495
427ec082 13496 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
13497 Don't define.
13498 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
13499 (LINKER): Don't undef if __NetBSD__ is defined.
13500
13501 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
13502
13503 * fileio.c [__NetBSD__]: Define `unix'.
13504
72d19d75
GM
13505 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
13506
ed4d0512
GM
135072000-02-29 Gerd Moellmann <gerd@gnu.org>
13508
50b1039f
GM
13509 * atimer.c (start_atimer): Don't abort when timers are stopped.
13510 (append_atimer_lists): New function.
13511 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
13512 arbitrary lists of stopped and running atimers.
13513
ed4d0512
GM
13514 * atimer.c (cancel_atimer): Handle canceling an atimer when
13515 some timers are stopped.
13516
13517 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
13518 after canceling it.
13519
13520 * fns.c (maybe_resize_hash_table): Handle case of new size
13521 coming out as being the same as old size.
13522
387023ee
JR
135232000-02-27 Jason Rumney <jasonr@gnu.org>
13524
13525 * makefile.nt: Add atimer.h to dependencies.
13526 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
13527 * w32console.c: Only disable window system features for dispextern.h
13528 (initialize_w32_display): Build a display info for the console.
13529 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
13530 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
13531 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
13532 as 2 button mice.
13533 * w32gui.h (struct W32FontStruct): Revert last change after change
13534 to xdisp.c.
13535 * w32menu.c (single_submenu): Set up help string.
13536 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
13537 (w32_dialog_show): Set up help string.
13538 * w32term.c (w32_display_info_for_display): Remove unused function.
13539 (w32_draw_bitmap): Use pre-built bitmaps.
13540 (w32_initialize_display_info): New function to initialize parts of
13541 display info that are common to both GUI and console frames.
13542 (w32_term_init): Use w32_initialize_display_info. Do not set
13543 Vw32_num_mouse_buttons here, as it is not called for console
13544 frames. Build bitmaps for indicating truncated lines etc.
13545 (x_delete_display): Destroy pre-built bitmaps.
13546 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
13547 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
13548
4516715a
DL
135492000-02-27 Dave Love <fx@gnu.org>
13550
13551 * lisp.h: Add a bunch of prototypes.
13552
171ca836
KH
135532000-02-26 Kenichi Handa <handa@etl.go.jp>
13554
13555 * keyboard.c (read_char): Set `usec' correctly.
13556
4013921d
KH
135572000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13558
13559 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
13560 `lambda', set reg[RRR] to the map index.
13561 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
13562 reg[RRR] to 0. Otherwise, set it to -1.
13563
9244a058
GM
135642000-02-25 Gerd Moellmann <gerd@gnu.org>
13565
2df636f4 13566 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 13567
18e21ce8 135682000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 13569
f43d79c1
GM
13570 * fileio.c (Ffile_symlink_p): If result starts with a `/'
13571 and contains a `:', prepend `/:'.
13572
13573 * window.c (select_window_1): If selected_window is nil,
13574 don't "swap out" the buffer's point.
13575 (Fset_window_configuration): Set selected_window to nil
13576 before calling Fselect_window.
13577 (unshow_buffer): Don't set point in buffer from window's point
13578 if another more recently selected window also shows the buffer.
13579
bed0c171
GM
135802000-02-25 Gerd Moellmann <gerd@gnu.org>
13581
449c3c52
GM
13582 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
13583
f5b58615
GM
13584 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
13585 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
13586 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
13587 New variables.
f5b58615
GM
13588 (DEFAULT_BUSY_CURSOR_DELAY): New define.
13589 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
13590 (hide_busy_cursor): New functions.
13591 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
13592
13593 * minibuf.c (read_minibuf): Cancel busy-cursor.
13594
13595 * keyboard.c (command_loop_1): Call start_busy_cursor before
13596 Fcommand_execute and cancel_busy_cursor after it.
13597 (timer_check): Remove busy-cursor code.
13598 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
13599 cursor timer.
13600
13601 * process.c (wait_reading_process_input): Remove busy-cursor code.
13602
13603 * eval.c (Fsignal): Call cancel_busy_cursor instead of
13604 Fx_hide_busy_cursor.
13605
13606 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
13607 Remove prototyoes.
13608 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
13609
13610 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
13611
13612 * xterm.c (XTread_socket): Remove busy-cursor code.
13613
4eb8436f
GM
13614 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
13615 (build_frame_matrix_from_leaf_window): Put code handling
13616 glyph row's not being a slice of a frame row in #if 0.
13617 (sync_window_with_frame_matrix_rows): New function.
13618 (frame_row_to_window): New function.
13619 (mirror_line_dance): Handle copies between windows.
13620
3cb65b0e
GM
13621 * lread.c (Fload): Use `xfree' instead of `free'.
13622 (init_obarray): Use `xmalloc' instead of `malloc'.
13623
bed0c171
GM
13624 * window.c (Fset_window_buffer): Set WINDOW to the window
13625 after decoding.
2add4349
GM
13626 (coordinates_in_window): Take frame's internal border width
13627 into account.
bed0c171 13628
42088c12
GM
136292000-02-24 Gerd Moellmann <gerd@gnu.org>
13630
13631 * xterm.c (x_display_and_set_cursor): Display cursor of
13632 non-selected windows depending on the setting of
13633 cursor_in_non_selected_windows.
13634
13635 * xdisp.c (cursor_in_non_selected_windows): New variable.
13636 (syms_of_xdisp): DEFVAR_BOOL it.
13637
d1e103b2
GM
136382000-02-23 Gerd Moellmann <gerd@gnu.org>
13639
723e779c
GM
13640 * data.c (Fstring_to_number): If number is greater than what
13641 fits into an integer, return a float.
13642
d1e103b2
GM
13643 * eval.c (specbind): Remove references to
13644 keyword_symbols_constant_flag.
13645
13646 * data.c (keyword_symbols_constant_flag): Removed.
13647 (Fmakunbound, set_internal, syms_of_data): Remove references to
13648 keyword_symbols_constant_flag.
13649
13650 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
13651
214f877f
KH
136522000-02-23 Kenichi Handa <handa@etl.go.jp>
13653
13654 * syntax.c (multibyte_syntax_as_symbol): New variable.
13655 (syms_of_syntax): Declare it as a Lisp variable.
13656 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
13657 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
13658 nonzero, treat all multibyte characters as symbol.
52283633 13659 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 13660
130adcb7
EZ
136612000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13662
3cb65b0e 13663 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 13664 a deleted frame.
130adcb7 13665
17cbbf95
GM
136662000-02-21 Gerd Moellmann <gerd@gnu.org>
13667
13668 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
13669
13670 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13671 (x_non_menubar_window_to_frame): Check the busy-cursor window.
13672
beb0bc36
DL
136732000-02-21 Dave Love <fx@gnu.org>
13674
13675 * frame.c (Vmouse_position_function): New variable.
13676 (Fmouse_position): Use it.
13677 (syms_of_frame): Install it.
13678
13679 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
13680
1d92afcd
GM
136812000-02-20 Gerd Moellmann <gerd@gnu.org>
13682
13683 * fileio.c (Finsert_file_contents): Unbind the binding of
13684 standard-output done by temp_output_buffer_setup.
329eed9f
GM
13685
13686 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
13687 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
13688 (specbind, unbind_to): Handle most common case of non-constant
13689 symbol with trivial value specially.
13690
13691 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
13692
18e21ce8 136932000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
13694
13695 * data.c (Fmake_variable_buffer_local): Doc fix.
13696 Init found_for_buffer to 0.
13697 (Fmake_variable_frame_local): If the variable has already
13698 been buffer-local, set the check_frame field.
13699
1d4311c3
EZ
137002000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
13701
13702 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
13703 produced for CODING_MODE_LAST_BLOCK requires.
13704
2dc95ddd
DL
137052000-02-18 Dave Love <fx@gnu.org>
13706
13707 * keyboard.c (echo_keystrokes): Remove declaration.
13708 (Vecho_keystrokes) New variable.
13709 (read_char, record_menu_key, read_key_sequence): Use it to allow
13710 use of float value.
13711 (syms_of_keyboard): Change Vecho_keystrokes declaration.
13712
13713 * lread.c: Undef feature selection macros before defining.
13714
f0930f35
GM
137152000-02-18 Gerd Moellmann <gerd@gnu.org>
13716
13717 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
13718 for symbols other than the symbol in question.
13719
e3d4de90
DL
137202000-02-17 Dave Love <fx@gnu.org>
13721
13722 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
13723
0b378936
GM
137242000-02-17 Gerd Moellmann <gerd@gnu.org>
13725
d621caf7
GM
13726 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
13727
0b378936
GM
13728 * alloc.c (enum mem_type): Compile unconditionally.
13729
3b451f74
EZ
137302000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
13731
13732 * xfaces.c (tty_defined_color): Don't return faulire indication
13733 for unspecified-fg and unspecified-bg pseudo-colors.
13734
10689a01
GM
137352000-02-17 Gerd Moellmann <gerd@gnu.org>
13736
1216f5e4
GM
13737 * alloc.c (mark_object): Don't mark symbol names in pure space.
13738 (gc_sweep): Don't unmark symbol names in pure space.
13739
13740 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
13741 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
13742 [GC_MARK_STACK]: New defines.
427ec082 13743 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
13744 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
13745
13746 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
13747
13748 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
13749 allocate_buffer instead of xmalloc.
13750
13751 * alloc.c (toplevel): Include setjmp.h.
13752 (PURE_POINTER_P): New define.
13753 (enum mem_type) [GC_MARK_STACK]: New enumeration.
13754 (Vdead) [GC_MARK_STACK]: New variable.
13755 (lisp_malloc): Add parameter TYPE, call mem_insert if
13756 GC_MARK_STACK is defined.
13757 (allocate_buffer): New function.
427ec082 13758 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
13759 (free_float) [GC_MARK_STACK]: Set type to Vdead.
13760 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
13761 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
13762 (MEM_NIL) [GC_MARK_STACK]: New define.
13763 (struct mem_node) [GC_MARK_STACK]: New structure.
13764 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
13765 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
13766 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
13767 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
13768 (mark_stack) [GC_MARK_STACK]: New functions.
13769 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
13770 (clear_marks): Removed.
13771 (gc_sweep): Set free conses' car, free floats' type, free
13772 symbols' function to Vdead. Use lisp_free to free buffers.
13773 (init_alloc_once): Initialize Vdead.
13774 (survives_gc_p): Return non-zero for pure objects.
13775
13776 * alloc.c: Add comments throughout the file.
13777
2503c8b1
GM
13778 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
13779 that unblocks alarms.
13780
8389e1e2
GM
13781 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
13782 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
13783 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
13784
10689a01 13785 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 13786
bfc17d18
KH
137872000-02-17 Kenichi Handa <handa@etl.go.jp>
13788
4a09dee0
KH
13789 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
13790 avoid infinite error signaling. Allocate sufficient memory for
13791 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 13792
2b927d02
SM
137932000-02-17 Stefan Monnier <monnier@cs.yale.edu>
13794
13795 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
13796 depends on the previous behavior.
13797
b49cb764
GM
137982000-02-16 Gerd Moellmann <gerd@gnu.org>
13799
13800 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
13801
99e95407
GM
138022000-02-15 Gerd Moellmann <gerd@gnu.org>
13803
13804 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
13805
13806 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 13807 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
13808 write(2).
13809
6ffd3cf7
RS
138102000-02-15 Richard M. Stallman <rms@gnu.org>
13811
13812 * data.c (set_internal): Don't make variable buffer-local
13813 if within a let-binding for the same buffer.
13814 (let_shadows_buffer_binding_p): New function.
13815
13816 * eval.c (specbind): For buffer-local value,
13817 record the current buffer also.
13818 (unbind_to): Cope with that change.
13819
cad53475
GM
138202000-02-15 Gerd Moellmann <gerd@gnu.org>
13821
13822 * window.c (Fsave_window_excursion): Doc fix.
13823
1aa963c8
SM
138242000-02-15 Stefan Monnier <monnier@cs.yale.edu>
13825
13826 * syntax.c (back_comment): Make sure we only consider comment-starters
13827 of the relevant style and return -1 in case of a failure to find the
13828 beginning of the comment.
13829 (Fforward_comment): If back_comment fails, go back to the position just
13830 after the comment-end.
13831 (scan_lists): Add comment describing a very minor bug.
13832
b9b84fd3
SM
138332000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13834
13835 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
13836 `completion-regexp-list' in the docstring.
13837
3a28db80
DL
138382000-02-14 Dave Love <fx@gnu.org>
13839
13840 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
13841
fb4a568d
SM
138422000-02-14 Stefan Monnier <monnier@cs.yale.edu>
13843
13844 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
13845 to Emacs' syntax. Also fix the comment about set/not-set meanings
13846 since Emacs syntax is not the value 0 any more.
13847 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
13848 since it's now part of RE_SYNTAX_EMACS.
13849
1063ebb5
DL
138502000-02-12 Dave Love <fx@gnu.org>
13851
52283633 13852 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 13853
fb07a302
GM
138542000-02-12 Gerd Moellmann <gerd@gnu.org>
13855
13856 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
13857
aaf2320c
DL
138582000-02-12 Dave Love <fx@gnu.org>
13859
13860 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
13861
13862 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
13863 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
13864 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
13865
13866 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
13867
13868 * s/nextstep.h: Don't define HAVE_ALLOCA.
13869
13870 * config.in: Add vfork bits.
13871
eedf8bde
GM
138722000-02-12 Gerd Moellmann <gerd@gnu.org>
13873
13874 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
13875 unwind function to undo the effect of stopping atimers.
13876
52283633 13877 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
13878
13879 * atimer.c (stopped_atimers): New variable.
13880 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
13881 New functions.
13882
13883 * atimer.h (stop_other_atimers, run_all_atimers)
13884 (unwind_stop_other_atimers): Add function prototypes.
427ec082 13885
eedf8bde
GM
13886 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
13887
8476c2f8
KR
138882000-02-11 Ken Raeburn <raeburn@gnu.org>
13889
13890 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
13891 library may depend on jpeg.
13892 (atimer.o): Depends on atimer.c.
13893
0e85e4a3
KH
138942000-02-11 Kenichi Handa <handa@etl.go.jp>
13895
13896 * insdel.c (del_range_1): Call update_compositions.
13897 (del_range_both): Call update_compositions just once..
13898
97fa0cc8
DL
138992000-02-10 Dave Love <fx@gnu.org>
13900
13901 * xfns.c (create_frame_xic): Fix initialization of automatic
13902 aggregates for pcc.
13903
25566a3c
KH
139042000-02-09 Kenichi Handa <handa@etl.go.jp>
13905
13906 * ccl.c (CCL_MAKE_CHAR): New macro.
13907 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
13908 registers by CCL_MAKE_CHAR before calling translate_char.
13909 <CCL_TranslateCharacterConstTbl> Likewise.
13910
69da54ba
DL
139112000-02-08 Dave Love <fx@gnu.org>
13912
13913 * lread.c (__EXTENSIONS__): Define.
13914
f7136ee8
GM
139152000-02-08 Gerd Moellmann <gerd@gnu.org>
13916
13917 * puresize.h (BASE_PURESIZE): Increase to 650000.
13918
7768790b
EZ
139192000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13920
13921 * msdos.c (XMenuActivate): Turn off the cursor after displaying
13922 the help message.
13923
38fd211b
EZ
139242000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
13925
13926 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
13927 md, mh, mb, mr, and me to the fake termcap entry.
13928
66e4690f
KR
139292000-02-06 Ken Raeburn <raeburn@gnu.org>
13930
13931 * sound.c (sound_cleanup): Don't call device close routine if the
13932 function pointer is null.
13933
a75dfea0
AI
139342000-02-06 Andrew Innes <andrewi@gnu.org>
13935
13936 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
13937 around image definitions and prototypes.
13938 (gamma_correct) [WINDOWSNT]: New prototype.
13939
13940 * w32term.c (x_make_frame_visible): Replace call to
13941 input_poll_signal with poll_for_input.
13942
13943 * window.c [WINDOWSNT]: Include w32term.h.
13944
13945 * xdisp.c [WINDOWSNT]: Include w32term.h.
13946
13947 * makefile.nt: Add dependencies on w32gui.h.
13948 (OBJ1): Include atimer.obj.
13949 ($(BLD)\atimer.obj): New dependency rule.
13950
13951 * w32.c (sigmask): New function (does nothing).
13952 (sigunblock): Ditto.
13953
13954 * frame.c [WINDOWSNT]: Include w32term.h.
13955
13956 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
13957
13958 * lread.c (syms_of_lread): Fix literal newlines.
13959
13960 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
13961 the string constant limit (2048 bytes) in MSVC.
13962 (main): Ditto.
13963
59ddecde
GM
139642000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
13965
52283633 13966 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
13967 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
13968 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
13969 dispatch the event.
13970
07590973
DL
139712000-02-04 Dave Love <fx@gnu.org>
13972
13973 * fileio.c: Remove some unused vars.
13974 (_GNU_SOURCE): Define (for euidaccess).
13975
13976 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
13977
13978 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
13979 gcpro1, gcpro2.
13980 (read_minibuf): Deal with allow_props correctly.
13981
649351f9
EZ
139822000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
13983
13984 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
13985
66e4690f 139862000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
13987
13988 * search.c (compile_pattern): If a cache entry has a nil regexp,
13989 fill in that entry instead of clobbering a previously cached
13990 string regexp.
13991
66e4690f 139922000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
13993
13994 * puresize.h (BASE_PURESIZE): Increase to 610000.
13995
d240a249
GM
139962000-02-02 Gerd Moellmann <gerd@gnu.org>
13997
13998 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
13999 can GC.
14000
ca91fb26
KH
140012000-02-02 Kenichi Handa <handa@etl.go.jp>
14002
25660570
KH
14003 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14004 instead of incrementing ic directly.
14005 <CCL_WriteExprConst> Likewise.
14006 <ccl_set_expr>: Set ic to jump_address.
14007
ca91fb26
KH
14008 * fileio.c (e_write): Fix the handling of
14009 CODING_FINISH_INSUFFICIENT_SRC.
14010
2ede9689
DL
140112000-02-01 Dave Love <fx@gnu.org>
14012
14013 * editfns.c (Fpropertize): Doc fix.
14014
14015 * process.c (Fstart_process): Doc fix.
14016
14017 * eval.c: Fix various doc strings not to duplicate information
14018 from help-manyarg-func-alist.
14019
52283633 14020 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
14021
14022 * doc.c (Vhelp_manyarg_func_alist): New variable.
14023 (Fdocumentation): Use it.
14024 (syms_of_doc): Define it.
14025
b6680a0e
GM
140262000-01-31 Gerd Moellmann <gerd@gnu.org>
14027
2cb750ba
GM
14028 * xterm.c (xim_open_dpy): Remove unused local variable.
14029
52283633 14030 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
14031
14032 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14033 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14034
b6680a0e
GM
14035 * fns.c (sweep_weak_table): New function.
14036 (sweep_weak_hash_tables): Use it. Keep on marking until there
14037 is no more change.
14038
994c5afe
GM
140392000-01-30 Gerd Moellmann <gerd@gnu.org>
14040
14041 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14042 that XTread_socket does not crash by trying to call XNoOp on a
14043 closed display.
427ec082 14044
f00276e3
JR
140452000-01-30 Jason Rumney <jasonr@gnu.org>
14046
14047 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14048 Change selected_frame to SELECTED_FRAME ().
14049 (w32_console_mouse_position): Remove #ifndef MULE from around
14050 `insist' parameter.
14051
14052 * makefile.nt: Remove dosfns.obj.
14053
14054 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14055
14056 * w32fns.c (w32_defined_color): Check for valid frame before
14057 applying gamma correction. Eliminate dependency on frame elsewhere.
14058 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14059 (w32_to_x_font): Use resx and resy not height_in and width_in.
14060 (x_to_w32_font): Doc fix.
14061 (xlfd_strip_height): New function to strip and return font height.
14062 (w32_font_match): Compare height separately from rest of xlfd
14063 spec, using xlfd_strip_height.
14064
14065 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14066 width_in. Use w32_defined_color in place of defined_color.
14067
14068 * w32faces.c: Merge more of DOS and X specifics in preparation for
14069 merge with xfaces.c.
14070 (defined_color): Remove FIXME comment.
14071 (tty_color_name): Provide w32-specific function.
14072 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14073
14074 * w32console.c (turn_on_face, turn_off_face): Removed.
14075 (w32_face_attributes): New function.
14076 (Global_variables): Reduce scope where possible.
14077 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14078 fill attribute.
14079 (hl_mode): Don't modify text attributes.
14080 (write_glyphs): Don't do anything if len <= 0. Use
14081 w32_face_attributes to get attributes for drawing. Write
14082 terminating codes using char_attr_normal.
14083 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14084 (update_begin, update_end): Likewise.
14085 (vga_stdcolor_name): New function.
14086 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14087 (Fset_screen_color): Remove char_attr_reverse.
14088
b08e8bb2
GM
140892000-01-29 Gerd Moellmann <gerd@gnu.org>
14090
14091 * xfns.c (xic_set_preeditarea): Take window parameter and
14092 window-relative pixel-positions.
14093
14094 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14095 is its frame's selected window.
14096 (xim_instantiate_callback): Likewise.
14097
14098 * xfns.c (x_create_im): Removed.
14099 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14100 (supported_xim_styles): Renamed from supported_styles.
14101 (best_xim_style): Renamed from best_style.
14102 (create_frame_xic): Renamed from xic_create_frame.
14103 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 14104
b08e8bb2
GM
141052000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14106
14107 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14108 our frames, call XFilterEvent with 2nd parameter `None'.
14109 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14110 returning XBufferOverflow.
52283633 14111 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
14112 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14113 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14114 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14115 (xim_initialize, xim_close)
14116 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14117 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14118 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14119 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14120
14121 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14122 and `xim_styles'.
14123 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14124 `xic_style' and `xic_xfs'.
14125 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14126 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14127 (FRAME_XIM): Removed.
14128
14129 * xfns.c (supported_styles): New variable.
14130 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14131 (xic_create_xfontset, best_style, xic_create_frame)
14132 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14133 (xic_set_xfontset): New functions.
14134
142e109c
DL
141352000-01-28 Dave Love <fx@gnu.org>
14136
14137 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14138
14139 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14140
b02786f9
GM
141412000-01-28 Gerd Moellmann <gerd@gnu.org>
14142
d060bc9f
GM
14143 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14144 for *scratch* if it already existed.
14145
b02786f9
GM
14146 * emacs.c (USAGE): New macro.
14147 (main): Use it to display usage information.
14148
2c52d7e4
EZ
141492000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14150
14151 Support for the menu-help feature:
14152
52283633 14153 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
14154
14155 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14156 part of the line to the termscript file.
14157 (IT_clear_to_end): Clear the entire line, not just its beginning.
14158 (menu_help_message, prev_menu_help_message): New variables.
14159 (IT_menu_make_room): Make room for the help_text member.
14160 (IT_menu_display): New argument disp_help; all callers changed.
14161 If disp_help is non-zero, store the help text of the active menu
14162 item in menu_help_message.
14163 (XMenuAddPane): Initialize the help_text member to NULL.
14164 (XMenuAddSelection): New argument help_text. Store it in the
14165 XMenu structure.
14166 (XMenuActivate): New argument help_callback. If the value of
14167 menu_help_message has changed since the last time, display the
14168 menu help message text while waiting for the mouse to move. Clear
14169 the echo area before exiting.
14170 (XMenuDestroy): Free the help_text member.
14171
ffe0bcd1
GM
141722000-01-27 Gerd Moellmann <gerd@gnu.org>
14173
14174 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14175 XMenuAddSelection. Pass help callback to XMenuActivate.
14176 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14177
50dbd23f
EZ
141782000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14179
14180 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14181 and EMACS_SET_USECS.
14182
f5941bf8
GM
141832000-01-26 Dave Love <fx@gnu.org>
14184
6c67ddee
DL
14185 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14186
f5941bf8
GM
14187 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14188 an error may be signalled.
14189
9e49c990
GM
141902000-01-26 Gerd Moellmann <gerd@gnu.org>
14191
fc3cb460
GM
14192 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14193 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14194
9e49c990
GM
14195 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14196
d0c037d8
GM
141972000-01-25 Gerd Moellmann <gerd@gnu.org>
14198
14199 * charset.c (Fstring): If there is a multibyte char among
14200 the args, always return a multibyte string.
14201
e12489f9
GM
142022000-01-25 Gerd Moellmann <gerd@gnu.org>
14203
14204 * sysdep.c (sys_select): Turn atimers off and on instead of
14205 recording and restoring old alarm handler
14206
14207 * process.c (toplevel): Include atimer.h.
14208 (create_process_1): Rewritten.
14209 (create_process): Use atimers instead of alarm.
14210 (wait_reading_process_input) [hpux]: Turn atimers off instead
14211 of turning off SIGALRM.
14212 (wait_reading_process_input): Turn off atimers instead off
14213 calling stop_polling.
14214
14215 * emacs.c (main): Call init_atimer.
14216
14217 * keyboard.c (toplevel): Include systime.h and atimer.h.
14218 (polling_for_input): Removed because unused.
14219 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14220 (poll_timer): New variable.
14221 (poll_for_input, poll_for_input_1): New functions.
14222 (start_polling, stop_polling): Rewritten.
14223
14224 * keyboard.h (polling_for_input): Removed.
427ec082 14225
e12489f9
GM
14226 * atimer.h, atimer.c: New files.
14227
14228 * Makefile.in (obj): Add atimer.o.
14229 (atimer.o): New target.
14230
14231 * blockinput.h (pending_atimers): Add extern declaration.
14232 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14233
14234 * lisp.h (popup_activated_flag): Add extern declaration.
14235
14236 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 14237 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
14238 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14239
14240 * xterm.c (toplevel): Include atimer.h.
14241 (toolkit_scroll_bar_interaction): New variable.
14242 (Fxt_process_timeouts): Removed.
14243 (x_process_timeouts): New function.
14244 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14245 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14246 (x_make_frame_visible): Call poll_for_input_1 instead of
14247 input_poll_signal. Don't call alarm.
14248 (x_initialize): Install timer calling x_process_timeouts.
427ec082 14249
1e5279b9
DL
142502000-01-24 Dave Love <fx@gnu.org>
14251
6c67ddee 14252 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
14253 Don't use -cckr -- apparently not now necessary.
14254
edf6aeb8
EZ
142552000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14256
14257 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14258 screen boundary.
14259
9badad41
JR
142602000-01-23 Jason Rumney <jasonr@gnu.org>
14261
14262 * w32fns.c (w32_defined_color): Apply gamma correction before
14263 trying to map to the palette.
14264 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14265 to w32_clear_rect.
14266
14267 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14268 here. Callers changed to always pass real device context.
14269 (w32_draw_bitmap): Likewise.
14270 (w32_get_glyph_overhangs): Likewise.
52283633 14271 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
14272 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14273 pfnSetScrollInfo and SetScrollRange.
14274 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14275 back into MULE characters after decoding them.
14276 (x_get_glyph_face_and_encoding): Likewise.
14277 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14278 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14279 (x_produce_glyphs): Calculate per char metrics for a character
14280 that we know exists in default font when font_not_found_p is true.
14281
63bd786b
JR
142822000-01-22 Jason Rumney <jasonr@gnu.org>
14283
14284 * makefile.nt (intervals.obj, composite.obj): New modules.
14285 (composite.h): Added as dependency where appropriate.
14286
14287 * w32gui.h (XGCValue): New struct for emulating X GCs.
14288
14289 * w32term.h (XCharStruct): New struct for emulating X.
14290
14291 * w32console.c (turn_on_face, turn_off_face): New functions.
14292 (change_line_highlight): New prototype for new redisplay.
14293 (write_glyphs): Support multibyte text. Support faces.
14294
52283633 14295 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
14296
14297 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14298 throughout. struct frame * in place of FRAME_PTR.
14299 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 14300 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
14301 (w32_get_arg): Renamed from x_get_arg.
14302 (Fx_file_dialog): New function.
14303 (w32_list_fonts): Check cache before asking system.
14304 (Vw32_enable_synthesized_fonts): New variable.
14305 (Vw32_enable_italics): Obsolete, removed.
14306
14307 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14308 Use SELECTED_FRAME macro.
14309
14310 * w32menu.c: Add skeleton support for help strings on menus.
14311 (add_menu_item): Native checkbox and radio support added, but not
14312 yet enabled due to bugs.
14313 (push_menu_item): Add parameters type, selection and help.
14314 Callers updated.
14315 Formatting changes to reduce unnecessary diffs with xmenu.c.
14316
14317 * w32select.c (Fw32_set_clipboard_data): Update call to
14318 find_charset_in_str.
14319
14320 * w32term.c: Complete rewrite for new redisplay based on new
14321 xterm.c with necessary sections merged back in from old w32term.c.
14322
6ffd3cf7 143232000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
14324
14325 * data.c (set_internal): Further fix in same criterion.
14326
6ffd3cf7 143272000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
14328
14329 * data.c (set_internal): Fix the criteria for whether
14330 to swap out the old cached binding.
14331
60af03f1
DL
143322000-01-19 Dave Love <fx@gnu.org>
14333
14334 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14335
f9be074f
KH
143362000-01-18 Kenichi Handa <handa@etl.go.jp>
14337
14338 * regex.c (re_compile_fastmap): While checking a range table for
14339 `charset', skip flag bits for a character class correctly.
14340
52b8dbf9
GM
143412000-01-17 Gerd Moellmann <gerd@gnu.org>
14342
d36100c9
GM
14343 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14344
52283633 14345 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
14346
14347 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 14348 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
14349
14350 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14351 MENU_ITEMS_ITEM_.*.
14352 (MENU_ITEMS_ITEM_HELP): New enumerator.
14353 (push_menu_item): Add parameter HELP. Record help in menu_items.
14354 (single_menu_item, single_submenu, list_of_items): Call
14355 push_menu_item with new parameter.
14356 (single_submenu): Set help string in widget value.
14357 (menu_highlight_callback): New function.
14358 (set_frame_menubar): Call lw_create_widget with new
14359 parameter list.
14360 (xmenu_show, xdialog_show): Ditto.
14361
3139018f
GM
143622000-01-13 Gerd Moellmann <gerd@gnu.org>
14363
14364 * sound.c (Fplay_sound): Improve doc string.
14365
83c8f461
RS
143662000-01-11 Richard M. Stallman <rms@gnu.org>
14367
14368 * lisp.h (set_internal): Enter the new arg.
14369
14370 * eval.c (specbind): Record buffer-local variables specially,
14371 indicating which buffer's binding was saved.
14372 (unbind_to): Restore buffer-local variables specially
14373 in the proper buffer.
14374
14375 * data.c (set_internal): New arg BUF.
427ec082 14376
83c8f461
RS
14377 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
14378 * data.c (Fset): Pass new arg to set_internal.
14379 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 14380
1fab1775
GM
143812000-01-11 Gerd Moellmann <gerd@gnu.org>
14382
52283633 14383 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 14384
83c8f461 143852000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
14386
14387 * minibuf.c (Ftry_completion): Doc fix.
14388
7a85e4df
GM
143892000-01-11 Gerd Moellmann <gerd@gnu.org>
14390
14391 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
14392 vector, too.
14393
a970dae4
AS
143942000-01-11 Andreas Schwab <schwab@suse.de>
14395
14396 * coding.c (code_convert_region): Initialize total_skip.
14397
c65d14ee
DL
143982000-01-08 Dave Love <fx@gnu.org>
14399
14400 * eval.c (Fuser_variable_p): Check customizability too.
14401
834938d2
GM
144022000-01-07 Gerd Moellmann <gerd@gnu.org>
14403
14404 * minibuf.c (Fcompleting_read): Doc fix.
14405
e0303cd6
GM
144062000-01-05 Gerd Moellmann <gerd@gnu.org>
14407
8a26744b
GM
14408 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
14409 -L /usr/local/lib.
14410
e0303cd6
GM
14411 * xfns.c (x_create_im): New function to set IM and IC of a frame.
14412 Check that input style is supported before trying to create an
14413 IC for it.
14414 (x_window): Call x_create_im.
427ec082 14415
2e471eb5
GM
144162000-01-04 Gerd Moellmann <gerd@gnu.org>
14417
560a7bd2
GM
14418 * xfns.c (current_gif_memory_src): New variable.
14419 (gif_load): Record the address of the current memory source
14420 in current_gif_memory_src.
14421 (gif_read_from_memory): Use current_gif_memory_src.
14422
f9ee84a3
GM
14423 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
14424 macros statement form.
14425
d1299cde
GM
14426 * sound.c (struct sound): Renamed from struct sound_file.
14427 (struct sound): Add members `data' and `header_size'.
14428 (enum sound_attr): Add SOUND_DATA.
14429 (current_sound, current_sound_device): Variables renamed from
14430 sound_file and sound_device.
14431 (parse_sound): Parse :data.
14432 (parse_sound): Handle sound data in strings.
14433 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 14434 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
14435 needed header size.
14436 (wav_play, au_play): Play sounds from string data.
14437
2e471eb5
GM
14438 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
14439
14440 * lisp.h: Add prototype for allocate_string_data.
14441
52283633 14442 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
14443
14444 * alloc.c (mark_buffer): Remove code in #if 0.
14445 (gc_sweep): Ditto.
14446 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
14447 (strings_consed): New variable.
14448 (allocate_string): Set it.
14449 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
14450 (Fmemory_use_counts): Return strings_consed. Use Flist.
14451
14452 * alloc.c: General cleanup in comments etc. Remove conditional
14453 compilation for `standalone'.
14454
14455 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
14456
14457 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
14458 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
14459 (DONT_COPY_FLAG): Removed.
14460 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
14461 (struct sdata, struct sblock): New
14462 (struct string_block): Rewritten.
14463 (STRINGS_IN_STRING_BLOCK): New macro.
14464 (oldest_sblock, current_sblock, total_strings, total_free_strings)
14465 (large_sblocks, string_blocks, string_free_list): New variables.
14466 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
14467 (init_strings): Rewritten.
14468 (allocate_string, allocate_string_data, compact_small_strings)
14469 (free_large_strings, sweep_strings): New functions.
14470 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
14471 (struct string_block_head, current_string_block)
14472 (first_string_block, large_string_blocks, STRING_FULLSIZE)
14473 (STRING_PAD): Removed.
14474 (make_uninit_multibyte_string, make_pure_string): Rewritten.
14475 (Fgarbage_collect): Don't set mark bit in large strings.
14476 (mark_object): Mark strings differently. Mark symbol names
14477 differently.
14478 (survives_gc_p): Test marked strings differently.
427ec082 14479 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
14480 symbol names.
14481 (compact_strings): Removed.
14482
42608ba8
EZ
144832000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
14484
14485 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
14486 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
14487
e0a09e1a
KH
144882000-01-04 Kenichi Handa <handa@etl.go.jp>
14489
dd9f0750 14490 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 14491 in a non-empty buffer.
dd9f0750 14492
3c0f3b15 14493 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 14494
44cd3ae5
GM
144952000-01-03 Gerd Moellmann <gerd@gnu.org>
14496
14497 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
14498 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
14499
14500 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
14501
c182a70f
EZ
145022000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14503
14504 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
14505 need to test for MSDOS frames.
14506
24480d5b
EZ
145072000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14508
14509 * dosfns.c (unspecified_colors): Remove.
14510 (msdos_stdcolor_idx): Use global variables unspecified_fg and
14511 unspecified_bg.
14512 (msdos_stdcolor_name): Return strings for unspecified fore- and
14513 back-ground colors.
14514
14515 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 14516 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
14517 (tty_color_name): Return Lisp strings for unspecified fore- and
14518 back-ground colors.
14519 (Finternal_set_lisp_face_attribute): Remove the special treatment
14520 for Qunspecified_{f,b}g.
52283633 14521 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 14522
047f434a
GM
145232000-01-03 Gerd Moellmann <gerd@gnu.org>
14524
14525 * xdisp.c (reseat_at_next_visible_line_start): Position before
14526 newline only if ending up on a newline.
14527 (next_element_from_ellipsis): Return success. Handle case of
52283633 14528 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
14529 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
14530 returns 0.
14531
d684c676
EZ
145322000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
14533
14534 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
14535 (Fcolor_supported_p): Renamed from face-color-supported-p.
14536
5fe1d139
EZ
145372000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14538
14539 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
14540 list of colors renamed to tty-defined-color-alist.
14541 (tty_color_name): Pass the frame to tty-color-by-index.
14542 (realize_tty_face): tty-color-alist is now a function which
14543 accepts the frame as argument.
14544
52283633 14545 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 14546
816be8b8
EZ
145472000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14548
14549 * term.c (insert_glyphs): Pass glyph, not &glyph, to
14550 encode_terminal_code.
14551
b635321e
EZ
145522000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
14553
14554 * dispnew.c (mode_line_string): Support termcap frames as well.
14555
9b784e96
GM
145562000-01-01 Gerd Moellmann <gerd@gnu.org>
14557
27189709
GM
14558 * syntax.c (Fforward_word): Undo previous change.
14559
14560 * editfns.c (Fconstrain_to_field): Don't constrain if
14561 inhibit-field-text-motion is non-nil.
14562 (Fline_beginning_position): Undo previous change.
14563 (Fline_end_position): Ditto.
14564
14565 * syntax.c (Fforward_word): Notice field boundaries only if
14566 inhibit-field-text-motion is nil.
14567
14568 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
14569
14570 * editfns.c (Vinhibit_field_text_motion): New variable.
14571 (inhibit-field-text-motion): New DEFVAR_LISP.
14572 (Fline_beginning_position, Fline_end_position): Notice field
14573 boundaries only if inhibit-field-text-motion is nil.
14574
45158a91
GM
14575 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
14576 All calls adjusted.
14577 (x_build_heuristic_mask): Likewise.
14578 (xbm_load_image_from_file): Change error output.
14579 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
14580 (gif_load, gs_load, x_kill_gs_process): Ditto.
14581
9b784e96
GM
14582 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
14583 color indices when accessing raster pixels.
63cec32f
GM
14584 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
14585 one of :file or :data.
14586 (enum pbm_keyword_index): Add PBM_DATA.
14587 (pbm_format): Add :data.
14588 (pbm_image_p): Allow either :file or :data.
14589 (pbm_read_file): New function.
14590 (pbm_scan_number): Rewritten to read from string.
14591 (pbm_load): Support :data.
9b784e96 14592
2cb085db 14593See ChangeLog.8 for earlier changes.
6922b018
KH
14594
14595;; Local Variables:
49b3bd82 14596;; coding: iso-2022-7bit
6922b018 14597;; End:
2a34a036
GM
14598
14599 Copyright (C) 2001 Free Software Foundation, Inc.
14600 Copying and distribution of this file, with or without modification,
14601 are permitted provided the copyright notice and this notice are preserved.