*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d2906bf8
GM
12001-01-26 Gerd Moellmann <gerd@gnu.org>
2
550f0e6a
GM
3 * frame.c (do_switch_frame): If selected frame has a mini-window,
4 resize that to exact size.
5
b7b20fbd
GM
6 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
7
a47b7816
GM
8 * xdisp.c (display_line): Simplify check for glyphs fitting
9 entirely in the line.
10
d2906bf8
GM
11 * xfns.c (xic_style): New variable.
12 (create_frame_xic): Move static variable to global scope for
550f0e6a 13 the case that `static' gets defined away.
d2906bf8 14
73df2b1e
KH
152001-01-26 Kenichi Handa <handa@etl.go.jp>
16
17 * coding.c (decode_coding): Set a flag for inhibiting
18 inconsistent eol.
19 (code_convert_region): Always set saved_coding_symbol.
20 (decode_coding_string): Likewise. Update coding->symbol when we
21 encounter a inconsistent eol by the same way as
22 code_convert_region.
23
6613cfc4
GM
242001-01-25 Gerd Moellmann <gerd@gnu.org>
25
c5e6e06b
GM
26 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
27 XClearArea.
28
29 * xterm.c (x_after_update_window_line): Don't clear if frame's
30 internal border width is zero.
31 (x_clear_area): New function.
32 (x_after_update_window_line, x_clear_end_of_line)
33 (x_scroll_bar_create, x_scroll_bar_set_handle)
34 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
35 instead of XClearArea.
36
37 * xterm.h (x_clear_area): Add prototype.
38
6613cfc4
GM
39 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
40 which doesn't seem necessary anymore with Lesstif 0.92.
41
650cc6cc
DL
422001-01-25 Dave Love <fx@gnu.org>
43
34ac3367
DL
44 * puresize.h (BASE_PURESIZE): Up to 720000.
45
650cc6cc
DL
46 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
47
5e37dc22
GM
482001-01-25 Gerd Moellmann <gerd@gnu.org>
49
e1e441f9
GM
50 * xdisp.c (echo_area_display): Don't call redisplay_internal
51 when Emacs is shutting down. We can't run hooks etc. that
52 would be necessary to do a redisplay.
53
5e37dc22
GM
54 * lread.c (read_integer): Use type EMACS_INT instead of int.
55
0fb94c7f
EZ
562001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
57
58 * ccl.c (ccl_driver): Fix last change.
59
e3778624
KH
602001-01-25 Kenichi Handa <handa@etl.go.jp>
61
62 * ccl.h (sturct ccl_program): New member suppress_error.
63
bb264518 64 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
65 insert error message to the output.
66 (setup_ccl_program): Initialize ccl->suppress_error to 0.
67
68 * coding.h (struct coding_system): New member suppress_error.
69
70 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
71 (Fset_terminal_coding_system_internal): Set the member
72 suppress_error to 1.
73 (Fset_safe_terminal_coding_system_internal): Likewise.
74
245ed2b1
SM
752001-01-24 Stefan Monnier <monnier@cs.yale.edu>
76
77 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78 as if it was a `charset'.
79
f9aaedb6
GM
802001-01-24 Gerd Moellmann <gerd@gnu.org>
81
82 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
83 value in where_is_cache; the next lookup in the cache returns
84 something bogus if we do.
85
c3902c3e
EZ
862001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
87
88 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
89 if HAVE_WINDOW_SYSTEM isn't defined.
90
3497f73e
GM
912001-01-24 Gerd Moellmann <gerd@gnu.org>
92
e7e41584
GM
93 * fns.c (sweep_weak_table): Fix code taking items out of
94 the hash collision chain. Some cleanup.
95
3497f73e
GM
96 * xterm.c (x_new_font): Don't change a tooltip's size.
97
98 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
99 background color by specifying a color for the default font
100 in .Xdefaults.
101
3d48e687
KH
1022001-01-24 Kenichi Handa <handa@etl.go.jp>
103
96531b20
KH
104 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
105 a workaround for SunOS 4's cc.
106 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
107 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
108 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
109 statement.
3d48e687 110
a30629d2
GM
1112001-01-23 Gerd Moellmann <gerd@gnu.org>
112
113 * xterm.c (x_set_window_size_1): New function extracted from
114 x_set_window_size.
115 (x_set_window_size): Use it.
116 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
117 doesn't have a widget, like tooltips.
118
5a43decf
EZ
1192001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
120
121 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
122 fix.
123
b0e98867
KH
1242001-01-23 Kenichi Handa <handa@etl.go.jp>
125
126 * fns.c (Fset_char_table_default): Fix to make sub char-table
127 correctly.
128
50606b4c
GM
1292001-01-22 Gerd Moellmann <gerd@gnu.org>
130
cb2ddc53 131 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 132 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
133 items.
134
57c28064
GM
135 * xdisp.c (Ftool_bar_lines_needed): New function.
136 (syms_of_xdisp): Defsubr it.
137
50606b4c
GM
138 * editfns.c (Fformat): Don't extend text properties from arguments
139 to padding chars in the result.
140
2f169c38
EZ
1412001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
142
143 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
144
0f32f023
AI
1452001-01-20 Andrew Innes <andrewi@gnu.org>
146
147 * w32term.c (w32_ring_bell): Only support visible bell on w32
148 frames.
149 (w32_initialize): Don't set term hooks that aren't actually needed
150 in windowed mode.
151
152 * xfaces.c (realize_default_face):
153 (realize_face):
154 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
155
156 * xdisp.c (handle_single_display_prop): Remove references to
157 FRAME_W32_CONSOLE_P.
158
159 * dispnew.c (Fredraw_frame): Remove reference to
160 FRAME_W32_CONSOLE_P.
161
162 * frame.h (output_method): Remove output_w32_console method.
163 (FRAME_W32_CONSOLE_P): Remove macro.
164
165 * frame.c (Qw32_console): Remove variable.
166 (Fframep): Remove references to it.
167 (syms_of_frame): Ditto.
168 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
169
170 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
171 redefinition.
172
7173eada
KH
1732001-01-20 Kenichi Handa <handa@etl.go.jp>
174
175 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
176
755b45ce
AI
1772001-01-19 Andrew Innes <andrewi@gnu.org>
178
179 * w32.c (init_environment): Add a version-independent site-lisp
180 directory to EMACSLOADPATH, after the version dependent one.
181
0a949811
GM
1822001-01-19 Gerd Moellmann <gerd@gnu.org>
183
8501998a
GM
184 * editfns.c (Fbuffer_substring): Doc fix.
185
0a949811
GM
186 * xdisp.c (message_dolog, message2, message2_nolog): Rename
187 parameter LEN to NBYTES.
188
e6ebcbbe
KH
1892001-01-19 Kenichi Handa <handa@etl.go.jp>
190
200ecca2
KH
191 * charset.c (strwidth): Use c_string_width.
192 (c_string_width): New function.
193 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
194 Caller changed.
195
196 * charset.h (c_string_width, lisp_string_width): Extern them.
197
198 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
199
e6ebcbbe
KH
200 * indent.c (check_composition): Check validity of composition.
201
200ecca2
KH
202 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
203 characters by calling c_string_width.
204 (x_consider_frame_title): Get byte length of frame tile string
205 correctly.
206 (display_mode_element): Pay attention to width of non-ASCII
207 characters by calling strwidth.
208
8692ca92
GM
2092001-01-18 Gerd Moellmann <gerd@gnu.org>
210
8962e303
GM
211 * xfns.c (Qcancel_timer): New variable.
212 (syms_of_xfns): Initialize and staticpro it.
213 (Fx_hide_tip, Fx_show_tip): Use it.
214 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
215 the timer.
216 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
217
91523be9
GM
218 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
219
220 * window.h (WINDOW_LIVE_P): New macro.
221
b0b7ed0e
GM
222 * window.c (window_size_fixed): New variable.
223 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
224 the doc string.
225
06bccf8e
GM
226 * eval.c (specbind): If binding a per-buffer variable which
227 doesn't have a buffer-local value in the current buffer, change
228 the global value by changing the value of the symbol bound in all
229 buffers not having their own value, to make it consistent with
230 what happens with other buffer-local variables.
231
8692ca92
GM
232 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
233
234 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
235 when searching for a newline.
236
bb3a3b50
KH
2372001-01-18 Kenichi Handa <handa@etl.go.jp>
238
239 * xdisp.c (display_string): Fix previous change.
240
c2cc16fa
JR
2412001-01-18 Jason Rumney <jasonr@gnu.org>
242
243 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
244 GLYPH_DEBUG is defined.
245 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
246 true for images with `:ascent 100'.
247 (x_set_mouse_face_gc): If the last used mouse face has gone in the
248 meantime, use face MOUSE_FACE_ID.
249 If first glyph isn't a character glyph, use the ASCII NUL
250 character to determine the face.
251 (expose_area): Do not treat left margin specially.
252 (note_mode_line_highlight): If no local_map, check global keymap.
253 (note_mouse_highlight): Initialize overlay.
254 (clear_mouse_face): Don't return if tip_frame is
255 non-nil.
256 (show_scroll_bars): Remove unused function.
257 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
258 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
259 Clip to row.
260 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
261 nil.
262 (x_free_frame_resources): Unload relief colors.
263
9c11f79e
GM
2642001-01-17 Gerd Moellmann <gerd@gnu.org>
265
3aec8722
GM
266 * xdisp.c (forward_to_next_line_start): Avoid calling
267 get_next_display_element when the newline is already found. This
268 may change the iterator's position, when its current position is
269 equal to the iterator's stop_charpos.
270
f3ffc2c3
GM
271 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
272 zero, use this method only at the end of a line.
273
a86110a8
GM
274 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
275 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
276 if SCALABLE_FONTS_P is set.
277
d26d6fd9
GM
278 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
279 so that scalable fonts are included.
280
9c11f79e
GM
281 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
282 In the cache, use a key containing the information if scalable
283 fonts are included.
284 (x_load_font): Adapt to change of keys in the font cache.
285
2862001-01-17 Kim F. Storm <storm@filanet.dk>
287
d26d6fd9
GM
288 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
289 XListFonts to take advantage of font caching.
290
9c11f79e
GM
291 * xterm.c (x_list_fonts): Ensure caching font information when
292 called for a null frame, which is the case frequently when Emacs
293 starts.
294
51446987
GM
2952001-01-17 Gerd Moellmann <gerd@gnu.org>
296
f864120f
GM
297 * xfns.c (QCconversion): Replaces QCalgorithm.
298
299 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
300
301 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
302 of :algorithm.
303
e37d1417
GM
304 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
305 not everything could be displayed.
306
51446987
GM
307 * line.h, x-list-font.c: Files removed because unused.
308
9ad4f3e5
AI
3092001-01-17 Andrew Innes <andrewi@gnu.org>
310
311 * dired.c (directory_files_internal): Convert result from readdir
312 to a unibyte string initially, to avoid possible misinterpretation
313 of some bytes as the internal form of Emacs characters.
314
2eda09b5
KH
3152001-01-17 Kenichi Handa <handa@etl.go.jp>
316
317 * fns.c (concat): Be sure to avoid putting the same `composition'
318 property on the adjacent regions.
319
826f3788
GM
3202001-01-16 Gerd Moellmann <gerd@gnu.org>
321
f251459d
GM
322 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
323 here.
324 (Fscroll_right, Fscroll_left): Set it here instead, if called
325 interactively.
326
d57b83b3
GM
327 * buffer.c (Fset_buffer_modified_p): Set buffer's
328 prevent_redisplay_optimizations_p flag.
329
826f3788
GM
330 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
331 * sysdep.c, vmsproc.c, xselect.c: Call
332 redisplay_preserve_echo_area with additional arg.
333
334 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
335 prototype.
336
337 * xdisp.c (redisplay_preserve_echo_area): Add parameter
338 FROM_WHERE, for debugging.
339
261d788b
KH
3402001-01-16 Kenichi Handa <handa@etl.go.jp>
341
342 * ccl.c (Fregister_ccl_program): Handle the return value of
343 resolve_symbol_ccl_program correctly.
bda6b481
KH
344 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
345 changed.
261d788b 346
bccee4f2
GM
3472001-01-15 Gerd Moellmann <gerd@gnu.org>
348
e4ded23c
GM
349 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
350 has gone in the meantime, use face MOUSE_FACE_ID.
351
ae24cb3b
GM
352 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
353 x_display_info_for_display returns null, don't try to close
354 the display; we didn't open it.
355
bccee4f2
GM
356 * dispnew.c (save_or_restore_current_matrices): Function removed.
357 (save_current_matrix, restore_current_matrix): New functions.
358 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
359 restore the frame's current matrix. Due to the glyph pointer
360 setup done in adjust_glyph_matrix, there is no easy way to make
361 saving the current matrix in the desired matrix generally correct,
362 so don't try it.
363
ebeccffa
KH
3642001-01-15 Kenichi Handa <handa@etl.go.jp>
365
366 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
367 truncation glyphs.
368 (display_line): Optimize for wide characters.
e4ded23c 369 (display_string): Don't try to display a multi-column character
ebeccffa
KH
370 partially. On ttys, produce more than one truncation glyph for
371 multi-column characters that don't fit on the line.
372
64388126
KH
3732001-01-13 Kenichi Handa <handa@etl.go.jp>
374
375 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
376 it instead of WORDS_BIGENDIAN. Caller changed.
377
8edb0a6f
JR
3782001-01-13 Jason Rumney <jasonr@gnu.org>
379
380 * w32fns.c (Fimage_size, image_ascent, lookup_image)
381 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
382 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
383 (tiff_format, gif_format, gs_format): Adapt to change of image
384 margins.
385
386 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
387 (x_draw_image_relief, x_draw_image_foreground_1)
388 (x_draw_image_glyph_string): Adapt to change of image margins.
389
390 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
391 variables.
392
393 * w32bdf.c (search_file_line, get_cached_font_char)
394 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
395
396 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
397
398 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
399 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
400 (Fw32_send_sys_command): Remove unused variables.
401 (w32_msg_pump): Add parentheses.
402
403 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
404 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
405 Add parentheses.
406
4956d1ef
GM
4072001-01-12 Gerd Moellmann <gerd@gnu.org>
408
b30623be
GM
409 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
410 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
411 being a pair of margins.
412 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
413 to DEFVAR_LISP. Extend doc.
414
415 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
416 margins.
417 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
418 pair of integers `(X . Y)', use X for the horizontal and Y for the
419 vertical margin.
420 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
421 (parse_image_spec): Check it.
422 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
423 (tiff_format, gif_format, gs_format): Use
424 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
425
426 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
427 (x_draw_image_relief, x_draw_image_foreground_1)
428 (x_draw_image_glyph_string): Adapt to the change of image margins.
429
430 * dispextern.h (struct image): Replace member `margin' with
431 `hmargin' and `vmargin'.
432
4554cc79
GM
433 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
434 and GLYPHS.
435
436 * dispnew.c (update_text_area): Put code which decrements the
437 stop position when the row's face extends to the end of the
3bffc665 438 line in #if 0.
4554cc79 439
3cccce8d
GM
440 * xfns.c (x_set_mouse_color): Fix color allocation.
441
4956d1ef
GM
442 * keyboard.c: Call get_local_map with new argument list.
443
444 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
445
446 * intervals.h (enum map_property): Removed.
447 (get_local_map): Change prototype.
448
449 * keymap.c: Call get_local_map with new argument list.
450 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
451
2c2ff7f2
GM
4522001-01-11 Gerd Moellmann <gerd@gnu.org>
453
a23887b9
GM
454 * xdisp.c (build_desired_tool_bar_string): Correct the computation
455 of the size needed for the tool bar string. For the last image,
456 use a `display' property that reaches to the end of the string.
457
a7ee2d2e
GM
458 * xselect.c (selection_request_dpyinfo): New variable.
459 (x_handle_selection_request): Set it.
460 (x_selection_request_lisp_error): Don't call
461 x_decline_selection_request if selection request's display has
462 been closed.
463
2c2ff7f2
GM
464 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
465 the unregister_colors before calling XFreeColors.
466
457b792c
GM
4672001-01-10 Dave Love <fx@gnu.org>
468
469 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
470 ${SOME_MACHINE_LISP}, not ${lisp}.
471
c1efd260
GM
4722001-01-10 Gerd Moellmann <gerd@gnu.org>
473
a98b5ed9 474 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 475 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
476 line.
477
ac95a621
GM
478 * xselect.c (x_reply_selection_request): Add a comment.
479
c1efd260
GM
480 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
481 XkbGetNames instead of XkbGetKeyboard.
482
1bfb1345
DL
4832001-01-10 Dave Love <fx@gnu.org>
484
485 * sysdep.c (random): Revert the declaration.
486
38119822
GM
4872001-01-09 Gerd Moellmann <gerd@gnu.org>
488
35f464a7
GM
489 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
490 function string_bytes.
491 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
492
493 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
494 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
495 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
496 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
497 the current sblock.
498 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
499 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
500 after sweeping strings, and at the end.
501 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
502
38119822
GM
503 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
504 ensure that pop_message is called.
505
506 * keyboard.c (Fexecute_extended_command): Use a
507 record_unwind_protect to ensure that pop_message is called.
508
509 * lisp.h (push_message_unwind): Add prototype.
510
511 * xdisp.c (push_message_unwind): New function.
512
513 * fileio.c (do_auto_save_unwind): Do the pop_message here
514 instead of in Fdo_auto_save.
515 (Fdo_auto_save): Don't call pop_message.
516
f47a9ec4
KR
5172001-01-08 Ken Raeburn <raeburn@gnu.org>
518
519 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
520 in inner block.
521
a758f97d
GM
5222001-01-08 Gerd Moellmann <gerd@gnu.org>
523
6d0afc03
GM
524 * window.c (window_scroll_pixel_based): Adjust glyph matrices
525 when increasing window's vscroll.
526
a758f97d
GM
527 * macros.c (Qkbd_macro_termination_hook): New variable.
528 (syms_of_macros): Initialize and staticpro it.
529 (pop_kbd_macro): Run kbd-macro-termination-hook.
530
531 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
532
1bfb1345 5332001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
534
535 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
536 arglist, for documentation's sake.
537
0dac6924
AI
5382001-01-06 Andrew Innes <andrewi@gnu.org>
539
540 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
541 of *.pdb.
542
8182406a
AI
5432001-01-05 Andrew Innes <andrewi@gnu.org>
544
545 * term.c (update_end): Don't check updating_frame; for some reason
546 this can be 0 sometimes, such as after dismissing a popup menu,
547 and isn't necessary given the explicit frame argument.
548
3828218c
GM
5492001-01-05 Gerd Moellmann <gerd@gnu.org>
550
551 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
552 on some systems, and an unsigned long on others, like FreeBSD 4.1.
553
2f5ded21
GM
5542001-01-04 Gerd Moellmann <gerd@gnu.org>
555
556 * xterm.c (clear_mouse_face): Don't return if tip_frame is
557 non-nil.
558
559 * xfns.c (x_create_tip_frame): Preserve the value of
560 face_change_count around the creation of the tip frame.
561
562 * xfns.c (last_show_tip_args): New variable.
563 (compute_tip_xy): New function.
564 (Fx_show_tip): Reuse an existing tip frame, if possible.
565 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
566
dfad65fa
DL
5672001-01-04 Dave Love <fx@gnu.org>
568
64d4ec0f
DL
569 * editfns.c (Fformat): Doc fix.
570
dfad65fa
DL
571 * systime.h (set_file_times): Prototype.
572
573 * widget.h (EmacsFrameSetCharSize_): Prototype.
574
575 * sysdep.c (random, srandom): Declare explicitly.
576
577 * dispextern.h (move_it_vertically_backward): Declare.
578
85fe3b5e
GM
5792001-01-04 Gerd Moellmann <gerd@gnu.org>
580
0f2ac578
GM
581 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
582 like in Fx_create_frame.
583
482cca61
GM
584 * xfaces.c (set_font_frame_param): Don't do anything for
585 non-graphical frames.
586
85fe3b5e
GM
587 * window.c (Fdelete_other_windows): Set window's window_end_valid
588 to nil when changing the window's start. Don't change the
589 window's start when its top position hasn't changed. If we do,
590 this will set the window's optional_new_start, which act's like a
591 force_start during redisplay with C-x 1 M-> under particular
592 circumstances (see report from Per Starback to emacs-pretest-bug
593 from 2000-12-13.).
594
3e99d3b4
GM
5952001-01-03 Gerd Moellmann <gerd@gnu.org>
596
a77dc1ec
GM
597 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
598 short cut at the start of the function. Add an assertion.
599 (reseat_at_next_visible_line_start): Add an assertion.
600
2f3cad6c
GM
601 * window.c (Frecenter): When changing the window start, set the
602 window's window_end_valid to nil.
603 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
604
605 * dispextern.h (move_it_past_eol): Add prototype.
606
607 * xdisp.c (move_it_past_eol): New function.
608
3e99d3b4
GM
609 * window.c (Fwindow_end): Doc fix.
610
6112001-01-03 Dave Love <fx@gnu.org>
612
613 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
614 kluge.
615
bafb434c
GM
6162001-01-03 Gerd Moellmann <gerd@gnu.org>
617
618 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
619 the enabled_p flag of the glyph row at window_end_vpos to 0.
620 (handle_single_display_prop): Fix last change.
621
5297fb00
RS
6222001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
623
624 * window.c (Frecenter): Doc fix.
625
13d6a61c
AI
6262001-01-02 Andrew Innes <andrewi@gnu.org>
627
628 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
629
630 * frame.h (output_method): Add output_w32_console method.
631 (FRAME_W32_CONSOLE_P): New macro.
632
633 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
634 use output_w32_console method.
635 (Qw32_console): New Lisp_Object.
636 (Fframep): Return it.
637 (syms_of_frame): Init it.
638 (Fframe_parameters): Report w32console as font for w32_console
639 frames.
640
641 * xfaces.c (realize_default_face): Set face foreground and
642 background to unspecified for w32_console frames.
643 (realize_face): Realize face cache for w32_console frames.
644 (realize_tty_face): Accept w32_console frames.
645
646 * xdisp.c (handle_single_display_prop): Return if frame is
647 w32_console.
648 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
649 necessary, even if running interactively.
650
651 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
652 w32_console frames.
653
654 * w32term.c (x_update_begin):
655 (x_update_end):
656 (x_clear_frame):
657 (x_ins_del_lines):
658 (x_change_line_highlight):
659 (x_delete_glyphs):
660 (w32_ring_bell):
661 (x_update_begin):
662 (x_update_end):
663 (w32_reassert_line_highlight):
664 (w32_frame_rehighlight):
665 (w32_frame_raise_lower): Do nothing if not w32 frame.
666
667 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
668
669 * w32fns.c (Fx_display_color_cells): Determine correct value, when
670 system doesn't tell us directly.
671 (Fx_display_visual_class): Implement properly.
672
d6bb0c0d
GM
6732001-01-02 Gerd Moellmann <gerd@gnu.org>
674
675 * window.c (Frecenter): Handle centering in graphical frames
676 specially. Centering on the basis of line counts doesn't work
677 reliably with variable-height lines.
678
315f5865
EZ
6792001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
680
681 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
682 and al[].
683
684 * composite.c (run_composition_function): Remove unused variable
685 `val'.
686 (update_compositions): Remove unused variable `hook'.
687
688 * intervals.c (get_local_map): Remove unused variable `tem'.
689
690 * doprnt.c (doprnt1): Remove unused variable `size'.
691
692 * fns.c (Flength): Remove unused variable `tail'.
693 (Fdelete): Remove unused variable `size'.
694
695 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
696 and `gcpro2'.
697
698 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
699 `tem'.
700
701 * data.c (find_symbol_value): Remove extra 3rd argument in the
702 call to swap_in_symval_forwarding.
703
704 * undo.c (Fprimitive_undo): Remove unused block-scope variable
705 `end'.
706
707 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
708 (trivial_regexp_p): Remove unused variable `c'.
709 (boyer_moore): Remove unused variable `k'.
710
711 * indent.c (current_column): Remove unused variable `stopchar'.
712 (Fcompute_motion): Remove unused variable `contin'.
713
714 * casefiddle.c (casify_object): Remove unused variable `tolen'.
715
716 * dired.c (directory_files_internal): Fix a typo in a comment.
717 Remove an unused variable `handler'.
718 (file_name_completion): Remove unused function-scope variable
719 `dp'.
720 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
721 on BSD4_2.
722
723 * fileio.c (e_write): Remove unused variable
724 `require_encoding_p'.
725
726 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
727 and `buf'.
728 (Fmarker_insertion_type): Remove unused variable `buf'.
729
730 * insdel.c (make_gap): Remove unused variable `result'.
731
732 * keyboard.c (record_char): Remove unused function-scope variable
733 `help'.
734 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
735 (menu_bar_items): Remove unused function-scope variable `tem'.
736
737 * fontset.c (fontset_ref): Remove unused variable `i'.
738 (fontset_set): Remove unused variables `j' and `tmp'.
739 (make_fontset): Remove unused variables `i', `j', `elt' and
740 `base_elt'.
741 (make_fontset_for_ascii_face): Remove unused variable `name'.
742 (fs_load_font): Remove unused variable `font_idx'.
743 (fs_query_fontset): Remove unused function-local variable
744 `fontset'.
745 (list_fontsets): Remove unused variable `tail'.
746 (Fnew_fontset): Remove unused variables `family' and `registry'.
747 (accumulate_font_info): Remove unused variable `tmp'.
748 (Ffontset_font): Remove unused variable `id'.
749 (syms_of_fontset): Remove unused variable `i'.
750
751 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
752 to x_term_init.
753 (lookup_image): Remove unused variable `file'.
754 (xbm_load): Remove unused variables `bitmap_data', `height', and
755 `width'. Remove function-local variable `i', leave the
756 block-local one.
757 (gif_load): Remove unused variable `inc'.
758
759 * xterm.c (XTread_socket): Remove unused variables `p' and
760 `pend'.
761 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
762 leave only the one in the inner block.
763
764 * xfaces.c (face_fontset, realize_default_face): Remove unused
765 variable `fontset'.
766 (face_at_buffer_position): Remove unused variable `multibyte_p'.
767
768 * term.c (encode_terminal_code): Remove unused variable `c'.
769
770 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
771 char *' instead of `char *'.
772
773 * category.c (Fcategory_docstring): Remove unused variable `doc'.
774 (Fget_unused_category): Remove unused variable
775 `docstring_vector'.
776 (Fchar_category_set): Remove unused variables `val', `charset',
777 `c1' and `c2'.
778
779 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
780 unused variable `i'.
781 (detect_coding_mask): Remove unused variable `idx'.
782 (detect_coding): Remove unused variable `i'.
783 (ccl_coding_driver): Remove unused variable `result'.
784 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
785 (decode_coding_string): Remove unused variables `to' and
786 `gcpro1'.
787 (encode_coding_string): Remove unused variables `gcpro1' and
788 `saved_coding_symbol'.
789 (Ffind_coding_systems_region_internal): Remove function-local
790 variable args[], leave only the block-local one.
791 (code_convert_region1): Remove unused variable `len'.
792
793 * charset.c (char_printable_p): Remove unused variable `chars'.
794 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
795 (str_to_multibyte): Remove unused variable `c'.
796
797 * window.c (size_window): Remove block-local variable `min_size'.
798
799 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
800 `header_line_height'.
801 (append_space, extend_face_to_end_of_line): Declare `saved_what'
802 enum display_element_type.
803
1a8a9daf
GM
8042001-01-02 Gerd Moellmann <gerd@gnu.org>
805
6dde6abc
GM
806 * xterm.c (x_connection_closed): Catch X errors around all
807 statements that call X. Save away the error message in a local
808 copy.
809
1883b2c6
GM
810 * xterm.c (x_connection_closed): Set handling_signal to 0 at
811 the start.
812
a13be207
GM
813 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
814 in or at the start of invisible text.
815
1a8a9daf
GM
816 * dispnew.c (update_window): Don't check_current_matrix_flags.
817
3608c0f9
JR
8182001-01-01 Jason Rumney <jasonr@gnu.org>
819
820 * w32fns.c (x_figure_window_size): Do not allow new_height and
821 new_width of frame to override specified values.
822
abb1acc4
KH
8232000-12-30 Kenichi Handa <handa@etl.go.jp>
824
d279f620
KH
825 * composite.c (find_composition): Fix a code for searching
826 backward.
abb1acc4 827
762a68ec
GM
8282000-12-29 Gerd Moellmann <gerd@gnu.org>
829
9c8b8382
GM
830 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
831 function.
832 (update_window) [GLYPH_DEBUG]: Call it.
833 (scrolling_window): Prevent including current rows which are below
834 what's displayed in the window.
835
836 * xdisp.c (try_window_reusing_current_matrix)
837 <new start <= old start>: Disable rows in the current matrix
838 which are below the window after scrolling.
839
762a68ec
GM
840 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
841 is zero. It's not worth the complexity.
842 (invisible_text_between_p): Put in #if 0 because unused.
843
2d5912c1
GM
8442000-12-28 Gerd Moellmann <gerd@gnu.org>
845
46f6a258
GM
846 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
847 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
848
89f93679
GM
849 * keyboard.c (echo_char): If C is an integer, always call
850 push_key_description. Former code could signal an invalid
851 character error.
852
853 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
854 If set, print multibyte text.
855 (Fsingle_key_description): Call push_key_description with
856 FORCE_MULTIBYTE set.
857 (describe_buffer_bindings): Likewise.
858
859 * lisp.h (push_key_description): Add prototype.
860
c06017fb
GM
861 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
862 around the call to redisplay_internal.
863
f1d2ce7f
GM
864 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
865
2d5912c1
GM
866 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
867
9371f831
KH
8682000-12-28 Kenichi Handa <handa@etl.go.jp>
869
870 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
871 (ccl_driver): New local variable `extra_bytes'.
872
873 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
874
875 * coding.c (setup_coding_system): Initialize
876 coding->spec.ccl.eight_bit_carryover.
877 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
878
0c80628a
KH
8792000-12-28 Kenichi Handa <handa@etl.go.jp>
880
881 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
882 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
883 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
884 (decode_composition_emacs_mule): New function.
885 (decode_coding_emacs_mule): Decode composition sequence by calling
886 decode_composition_emacs_mule.
887 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
888 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 889 a text contains compositions, encode them correctly.
0c80628a
KH
890 (setup_coding_system): Set coding->commong_flags for emacs-mule so
891 that decoding and encoding are required.
892
3e32cc27
GM
8932000-12-27 Gerd Moellmann <gerd@gnu.org>
894
5e25feee
GM
895 * xfaces.c (PT_PER_INCH): New macro.
896 (xlfd_point_size): Compute real point size from font's pixel size.
897 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
898 instead of 72.
899
892d8fcd
GM
900 * .gdbinit: Comment out the line pointing to the Lesstif source
901 directory.
902
12c8b416
GM
903 * window.c (Frecenter): Use displayed_window_lines instead
904 of window_internal_height.
905
6061fbf0
GM
906 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
907 instead of x-toolkit-scroll-bars-p.
908 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
909
910 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
911 instead of x-toolkit-scroll-bars-p.
912 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
913
3e32cc27
GM
914 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
915 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
916 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
917 variables.
918 (add_window_display_history, add_frame_display_history)
919 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
920 (build_frame_matrix_from_leaf_window): Remove unused code.
921 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
922 redisplay history.
923 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
924 (update_window) [GLYPH_DEBUG]: Likewise.
925 (syms_of_display): Defsubr dump-redisplay-history.
926
31798cfe
GM
9272000-12-23 Gerd Moellmann <gerd@gnu.org>
928
f717c2ba
GM
929 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
930 the end of the prompt. Set echo_after_prompt to the offset
931 of echoptr in echobuf.
932
aeb2b8fc
GM
933 * xdisp.c (init_from_display_pos): Pop until the iterator's
934 stack is empty; there may be frames for stretch or images
935 on the stack.
936
31798cfe
GM
937 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
938 (save_or_restore_current_matrix): New function for the same
939 purpose, but more efficient.
940 (adjust_frame_glyphs_for_frame_redisplay): Use it.
941
f8156156
EZ
9422000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
943
944 * xdisp.c (syms_of_xdisp): Fix last change.
945
bdd6d4e8
GM
9462000-12-23 Gerd Moellmann <gerd@gnu.org>
947
948 * xdisp.c (syms_of_xdisp): Doc fix.
949
950 * xdisp.c (redisplay_window): Remove label restore_buffers;
951 use finish_scroll_bars instead to make sure that scroll bars
952 are redeemed. If we don't do this, flickering can result from
953 scroll bars being destroyed and recreated.
954
9436cdf9
JR
9552000-12-22 Jason Rumney <jasonr@gnu.org>
956
957 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
958 in the wrong colors when the foreground is not black.
959 (expose_window): Don't redraw the window that's currently being
960 updated.
961
951f9df5
GM
9622000-12-22 Gerd Moellmann <gerd@gnu.org>
963
856ff7a7
GM
964 * window.c (size_window): When setting the window's too_small_ok
965 flag, compare old size with minimum size depending on WIDTH_P,
966 don't compare with window_min_width.
967
951f9df5
GM
968 * window.c (delete_window): Simplify somewhat.
969 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
970 freeing window matrices. The flag windows_or_buffers_changed is
971 set, so the next redisplay will consider all windows; this should
972 suffice.
973
886bc933
KH
9742000-12-22 Kenichi Handa <handa@etl.go.jp>
975
976 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
977
978 * ccl.h (struct ccl_program): New member cr_consumed.
979
980 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
981 (CCL_READ_CHAR): Handle EOL conversion here.
982 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
983
177f4e88
GM
9842000-12-21 Gerd Moellmann <gerd@gnu.org>
985
6ba384dc
GM
986 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
987 GLYPHS.
988
989 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
990 otherwise tabs of different size compare equal.
991
992 * callint.c (Fcall_interactively): Prevent a compiler warning.
993
994 * print.c (print_unwind): Return nil.
995 (PRINTDECLARE): Initialize all local variables.
996 (print_preprocess): Add a default case.
997
8e15274f
GM
998 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
999
1000 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
1001
177f4e88
GM
1002 * window.c (delete_window, Fsplit_window)
1003 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
1004
1005 * dispextern.h (ensure_frame_matrix): Function declaration removed.
1006
1007 * dispnew.c (ensure_frame_matrix): Removed.
1008 (save_frame_matrix, restore_frame_matrix): New functions.
1009 (adjust_frame_glyphs_for_frame_redisplay): Use them.
1010
1011 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
1012 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
1013
99012074
AI
10142000-12-21 Andrew Innes <andrewi@gnu.org>
1015
1016 * w32term.c (x_update_begin): Regenerate the palette here, rather
1017 than for each window.
1018
1019 * w32xfns.c (select_palette): Avoid calling SelectPalette if
1020 palette is NULL, since this corrupts memory! Also get
1021 display_info reference from frame.
1022
29ef7d2d
JR
10232000-12-21 Jason Rumney <jasonr@gnu.org>
1024
1025 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
1026
1027 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
1028 to avoid returning without releasing it.
3e27fa1f 1029
3f9d67a6
KH
10302000-12-21 Kenichi Handa <handa@etl.go.jp>
1031
587fc3f9
KH
1032 * keymap.c (push_key_description): Don't convert eight-bit-control
1033 and eight-bit-graphic to multibyte character.
1034
3f9d67a6
KH
1035 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
1036 generic character and CODE1 is nil, return the smallest character
1037 in CHARSET.
1038
774ba8c9
DL
10392000-12-20 Dave Love <fx@gnu.org>
1040
1041 * s/osf5-0.h (NSIG): Don't redefine.
1042
88416888
SM
10432000-12-20 Stefan Monnier <monnier@cs.yale.edu>
1044
1045 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
1046 excluding menu-bar and tool-bar.
1047 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
1048 (menu_item_p): Remove.
1049 (where_is_internal_1): Don't ignore menu-items.
1050
a6426c6f
GM
10512000-12-20 Gerd Moellmann <gerd@gnu.org>
1052
03ff8aab
GM
1053 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
1054 into account.
1055
1056 * window.c (make_window): Initialize window's min_hscroll.
1057 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
1058 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
1059 to zero.
1060 (struct saved_window): New member min_hscroll.
1061 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
1062 (Fset_window_configuration): Set window's min_hscroll.
1063 (save_window_save): Save window's min_hscroll.
1064 (compare_window_configurations): Compare min_hscroll values.
1065
1066 * window.h (struct window): New member min_hscroll.
1067
1068 * keyboard.c (echo_prompt): Prevent a compiler warning.
1069
8de4aaf8
GM
1070 * xdisp.c (try_cursor_movement): Fix last change. The real
1071 condition is that PT is at the end of the row, and should
1072 be displayed at the start of the next row.
1073
3f7e3031
GM
1074 * xdisp.c (try_cursor_movement): If we end on a partially
1075 visible line, end we already decided to scroll, return -1.
1076
a6426c6f
GM
1077 * dispextern.h (ensure_frame_matrix): Add prototype.
1078
1079 * window.c (delete_window, Fsplit_window)
1080 (Fset_window_configuration): Call ensure_frame_matrix.
1081
1082 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
1083 functions.
1084 (adjust_frame_glyphs_for_frame_redisplay): If display has been
1085 completed, call fake_current_matrices instead of marking frame
1086 garbaged.
1087
57fa2774
JR
10882000-12-20 Jason Rumney <jasonr@gnu.org>
1089
1090 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
1091
d925df90
EZ
10922000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1093
1094 * fns.c (Frequire): Doc fix.
1095
7b93a85b
GM
10962000-12-19 Gerd Moellmann <gerd@gnu.org>
1097
71d4497a
GM
1098 * window.c (window_scroll_pixel_based): Don't use
1099 move_it_vertically.
1100
c74e645b
GM
1101 * dispnew.c (direct_output_for_insert): Fix check for mini-window
1102 currently displaying a message.
1103
7b93a85b
GM
1104 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
1105 xterm.h.
1106 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
1107
90d97e64
AI
11082000-12-18 Andrew Innes <andrewi@gnu.org>
1109
1110 * w32.c (w32_strerror): New function.
1111
1112 * w32.h (w32_strerror): New extern.
1113
1114 * w32fns.c (Fw32_shell_execute): Use it.
1115
91c9e6ce
GM
11162000-12-18 Gerd Moellmann <gerd@gnu.org>
1117
1118 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
1119
6f4745e2
EZ
11202000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1121
1122 * msdos.c (IT_set_face): Obey inverse_video.
1123
c9e088ce
KH
11242000-12-18 Kenichi Handa <handa@etl.go.jp>
1125
1126 * dired.c (directory_files_internal): Always return decoded filenames.
1127
c3695f5f
GM
11282000-12-18 Gerd Moellmann <gerd@gnu.org>
1129
52d8e4ff
GM
1130 * xterm.c (x_connection_closed): Prevent being called recursively
1131 because of an error condition in XtCloseDisplay.
1132
62be9979
GM
1133 * xdisp.c (init_iterator): If noninteractive, and the frame's
1134 face cache is null, make one.
1135
5f7a1890
GM
1136 * xfns.c (show_busy_cursor): Check for live frames more
1137 thoroughly.
1138
c3695f5f
GM
1139 * process.c (wait_reading_process_input): Check for pending
1140 input when running timers.
1141
78555fbe
EZ
11422000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1143
1144 * msdos.c (IT_write_glyphs): Compute the glyph face from
1145 str->face_id.
1146
b2b36264
KH
11472000-12-18 Kenichi Handa <handa@etl.go.jp>
1148
1149 * process.c (read_process_output): Don't run a filter if the code
1150 decoder produces nothing but carryover.
1151
9c543fbf
AI
11522000-12-17 Andrew Innes <andrewi@gnu.org>
1153
1154 * w32.c (sys_rename): Only check errno against EEXIST, and not
1155 EACCES, when determining whether rename failed because the target
1156 exists. This was resulting in indefinite looping on Windows 9x if
1157 the source file was locked by another process.
1158
1159 * w32fns.c (Ffile_system_info): New function.
1160 (syms_of_w32fns): Defsubr it.
1161
10c2b5a8
GM
11622000-12-17 Gerd Moellmann <gerd@gnu.org>
1163
b0228ace
GM
1164 * window.c (coordinates_in_window): Fix computation for
1165 position on vertical line between mode lines.
1166
10c2b5a8
GM
1167 * xfns.c (unwind_create_frame): Return t if frame was deleted.
1168 Don't alter tip_frame or tip_window.
1169 (unwind_create_tip_frame): Set tip_frame to nil only if frame
1170 was deleted.
1171
c844a81a
GM
1172 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
1173 Don't alter tip_frame or tip_window.
1174 (unwind_create_tip_frame): Set tip_frame to nil only if frame
1175 was deleted.
1176
6c825f8e
EZ
11772000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
1178
1179 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
1180 be consistent with the doc string. Reported by NAKAJIMA Mikio
1181 <minakaji@osaka.email.ne.jp>.
1182
af4bb4c8
KH
11832000-12-16 Kenichi Handa <handa@etl.go.jp>
1184
1185 * xfaces.c (Vface_ignored_fonts): New variable.
1186 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
1187 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
1188
8062e53a
GM
11892000-12-15 Gerd Moellmann <gerd@gnu.org>
1190
e87b8809
GM
1191 * dispnew.c (update_window): Detect pending input every nth line
1192 updated, i.e. do it depending on real work done, and not on the
1193 vpos of the line.
1194
1195 * xterm.c (expose_window): Don't redraw the window that's
1196 currently being updated.
1197
a6768cc5
GM
1198 * window.c (Fset_window_point): Remove test for
1199 cursor_in_non_selected_windows.
1200
4ea7fdca
GM
1201 * lread.c (read1): Recognize end of file after `\\'.
1202
8062e53a
GM
1203 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
1204 not unwind_create_frame.
1205
bb7959c1
GM
12062000-12-15 Dave Love <fx@gnu.org>
1207
1208 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
1209 bcopy & al.
1210
1211 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
1212
ced04c42
KH
12132000-12-15 Kenichi Handa <handa@etl.go.jp>
1214
c5443913
KH
1215 * coding.c (setup_coding_system): Clear all members of the struct
1216 coding_system at first.
bc137305
KH
1217 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
1218 argument.
1219 (code_convert_region): Don't override coding->src_multibyte and
1220 coding->dst_multibyte.
c5443913 1221
ced04c42
KH
1222 * fns.c (Fmd5): Docstring improved.
1223
c2d7f289
MB
12242000-12-15 Miles Bader <miles@gnu.org>
1225
1226 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
1227 are actually marked as mode-lines; otherwise use
1228 estimate_mode_line_height.
1229
9d7d9263
GM
12302000-12-14 Gerd Moellmann <gerd@gnu.org>
1231
1232 * editfns.c (Fformat): Prevent a buffer overrun when the format
1233 specifies a precision.
1234
7cf0153a
EZ
12352000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
1236
1237 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
1238 argument is outside the range [2..3].
1239
1de0f662
AI
12402000-12-14 Andrew Innes <andrewi@gnu.org>
1241
1242 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
1243 nothing to do. Bind inhibit-quit.
1244 (tip_frame): Make it a Lisp_Object.
1245 (x_create_tip_frame): Set tip_frame after it has been added to
1246 Vframe_list.
1247 (Fx_show_tip): Don't set tip_frame here.
1248 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
1249 variables.
1250 (unwind_create_frame, unwind_create_tip_frame): New functions.
1251 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
1252 while a frame is only partially constructed.
1253
1254 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
1255 (x_free_frame_resources): New function.
1256 (x_destroy_window): Use it.
1257
02387dcc
GM
12582000-12-14 Gerd Moellmann <gerd@gnu.org>
1259
1260 * xfns.c (Fx_backspace_delete_keys_p): New function.
1261 (syms_of_xfns): Defsubr it.
1262
1263 * config.in (HAVE_XKBGETKEYBOARD): Add.
1264
0544ef49
KH
12652000-12-14 Kenichi Handa <handa@etl.go.jp>
1266
98d62747
KH
1267 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
1268 Always store string in multibyte representation in echobuf.
1269 (echo_char): Always store string in multibyte representation in
1270 echobuf.
1271 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
1272 (read_key_sequence): Adjusted for the change of echo_prompt.
1273
a20193cd
KH
1274 * fns.c (Fmd5): Docstring improved.
1275
191b83b6
KH
1276 * lisp.h (detect_coding_system): Prototype adjusted.
1277
0544ef49
KH
1278 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
1279 (detect_coding_emacs_mule, detect_coding_iso2022,)
1280 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
1281 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
1282 argument MULTIBYTEP. Callers changed.
1283 (detect_coding_mask, detect_coding_system): New argument
1284 MULTIBYTEP. Callers changed.
1da1bb05
KH
1285 (decode_coding_string): Set coding->src_multibyte and
1286 coding->dst_multibyte before calling detect_coding and detect_eol.
1287 Update them after some coding system is detected.
1288
d5b3eb1b
SM
12892000-12-13 Stefan Monnier <monnier@cs.yale.edu>
1290
1291 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
1292
1293 * keyboard.c (menu_bar_items, tool_bar_items):
1294 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
1295
f7f8bb69
GM
12962000-12-13 Gerd Moellmann <gerd@gnu.org>
1297
19f71add
GM
1298 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1299 New variables.
1300 (unwind_create_frame, unwind_create_tip_frame): New functions.
1301 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
1302 while a frame is only partially constructed.
1303
1304 * xterm.h (x_free_frame_resources): Declare.
1305
1306 * xterm.c (x_free_frame_resources): New function.
1307 (x_destroy_window): Use it.
1308
e10da507
GM
1309 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
1310 don't interrupt the update for pending input initially, i.e.
1311 update at least some lines.
1312
1313 * keyboard.c (do_mouse_tracking): Make externally visible.
1314
d5b3eb1b 1315 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
1316
1317 * xfns.c (gray_bitmap_bits): Declare `char *'.
1318
90aa2856
GM
13192000-12-12 Gerd Moellmann <gerd@gnu.org>
1320
1321 * xdisp.c (display_tool_bar_line): Make sure that tool bar
1322 lines start with a relief line.
1323
a308c9cd
DL
13242000-12-12 Dave Love <fx@gnu.org>
1325
1326 * window.c (Fdisplay_buffer): Doc fix.
1327 (Fwindow_list): Remove unused var.
1328
1329 * buffer.h (mmap_set_vars): Declare.
1330
1331 * window.h (Fset_window_point): Declare.
1332
d575011f
EZ
13332000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
1334
bf6282d2 1335 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
1336 (IT_note_mouse_highlight): Initialize portion to -1. Remove
1337 unused variable `area'. When looking for a row under (X,Y), give
1338 up if some of the previous rows is not enabled.
1339
ecf4d726
GM
13402000-12-12 Gerd Moellmann <gerd@gnu.org>
1341
2ebf6139
GM
1342 * window.c (Fset_window_point): If displaying cursors in windows
1343 other than the selected window, make sure redisplay updates
1344 other windows to show the new value of point in the window.
1345
1346 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
1347
bfdb75ee
GM
1348 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
1349 the buffer is the sole visible buffer when in the mini-buffer.
1350
4fdbd809
GM
1351 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
1352 Bind `inhibit-read-only' to t.
1353 (unwind_with_echo_area_buffer): Use AREF.
1354
c0006262
GM
1355 * xfns.c (Fx_hide_tip): Simplified.
1356
e9a59cad
GM
1357 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
1358 GC_MAKE_GCPROS_NOOPS instead of `1'.
1359
ecf4d726
GM
1360 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
1361
e5959a9a
GM
13622000-12-11 Gerd Moellmann <gerd@gnu.org>
1363
a3642e49
GM
1364 * xfns.c (Fx_hide_tip): Fix last change.
1365
44b5a125
GM
1366 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
1367 nothing to do. Bind inhibit-quit.
1368 (tip_frame): Make it a Lisp_Object.
1369 (x_create_tip_frame): Set tip_frame after it has been added to
1370 Vframe_list.
1371 (Fx_show_tip): Don't set tip_frame here.
1372
1373 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
1374
1375 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
1376 Lisp_Object.
1377
1378 * dispextern.h: Change external declaration of tip_frame.
1379
d990421f
GM
1380 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
1381 return an empty string.
1382
4db87380
GM
1383 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
1384 of the window's update_mode_line flag, since the former is set by
1385 force-mode-line-update, not the latter. This makes
1386 column-number-mode slightly faster.
1387
e5959a9a
GM
1388 * xdisp.c (try_window_id) <all changes above window start>:
1389 Set the cursor.
1390
169fe44e
GM
13912000-12-11 Paul Eggert <eggert@twinsun.com>
1392
1393 * config.in (HAVE_FTELLO): Remove.
1394 (HAVE_FSEEKO): Add.
1395 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
1396 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
1397 HAVE_FTELLO.
1398 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
1399 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
1400
59ec59ae
MB
14012000-12-11 Miles Bader <miles@gnu.org>
1402
1403 * window.c (displayed_window_lines): Don't round up when
1404 converting empty space at bottom to lines.
ff904dd6
MB
1405 Handle non-newline-terminated final lines properly.
1406 (Fwindow_text_height): New function (used to be in lisp).
1407 (syms_of_window): Initialize it.
59ec59ae 1408
42ebfa31
SM
14092000-12-09 Stefan Monnier <monnier@cs.yale.edu>
1410
1411 * syntax.c (scan_lists): Check that the right quote char has the
1412 right Sstring syntax when jumping over strings.
1413 (init_syntax_once): Use Smax rather than 13.
1414
5cdb3cf3
MB
14152000-12-09 Miles Bader <miles@gnu.org>
1416
1417 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
1418 with PARTIALLY, inverting the sense.
1419 (window_scroll_pixel_based): Scroll partially visible lines into
1420 place if we hit the beginning or end of the buffer.
a12167c5
MB
1421 (displayed_window_lines): Don't include partially visible lines.
1422 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 1423
842b2a94
GM
14242000-12-08 Gerd Moellmann <gerd@gnu.org>
1425
1426 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
1427
1428 * tparam.c (tparam1): Change the way buffers are reallocated to be
1429 portable and less obfuscated.
1430
1431 * termcap.c (tgetent): Change the way buffers are reallocated to
1432 be portable and less obfuscated.
1433
1434 * macros.c (store_kbd_macro_char): Change the way buffers are
1435 reallocated to be portable and less obfuscated.
1436
1437 * lread.c (read1): Change the way buffers are reallocated to be
1438 portable and less obfuscated.
1439
1440 * doc.c (Fsubstitute_command_keys): Change the way buffers
1441 are reallocated so that it is portable.
1442
137cad7c
EZ
14432000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
1444
1445 * dosfns.c (Ffile_system_info): New function.
1446 (syms_of_dosfns): Defsubr it.
1447
5c7f629c
SM
14482000-12-07 Stefan Monnier <monnier@cs.yale.edu>
1449
1450 * alloc.c (gc_sweep): Add comment.
1451
959e647d
GM
14522000-12-07 Gerd Moellmann <gerd@gnu.org>
1453
28fcb7dc
GM
1454 * sound.c (vox_configure): Change order of ioctls. Don't
1455 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
1456 Ignore errors when changing volume.
1457 (vox_close): Don't reset the device.
1458
926b7e5e
GM
1459 * process.c (read_process_output): Make sure the process marker's
1460 position is valid when the process buffer is changed in
1461 after-change functions. W3 does that.
1462
959e647d
GM
1463 * xfns.c (x_free_gcs): New function.
1464
1465 * xterm.h (x_free_gcs): Add prototype.
1466
1467 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
1468 freeing GCs here.
1469
1470 * xterm.c (x_destroy_window): Call x_free_gcs so that
1471 resources of non-toolkit X windows will be freed.
1472
478ea067
AI
14732000-12-07 Andrew Innes <andrewi@gnu.org>
1474
1475 * w32fns.c (xlfd_charset_of_font): Fix last change.
1476
fbee3231
DL
14772000-12-06 Dave Love <fx@gnu.org>
1478
67292061
DL
1479 * md5.h (__P): Don't define -- it comes from config.h.
1480
fbee3231
DL
1481 * strftime.c: Change some #if foo to #ifdef foo.
1482
4ee87dbb
AI
14832000-12-06 Andrew Innes <andrewi@gnu.org>
1484
1485 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
1486
1487 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
1488 argument.
1489 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
1490 (w32_list_fonts): Don't choke if pattern doesn't specify a
1491 codepage.
1492
9765b4a4
GM
14932000-12-06 Gerd Moellmann <gerd@gnu.org>
1494
d285b373
GM
1495 * alloc.c (gc_sweep): Prevent symbols read during loadup
1496 from being freed.
1497
384333ee
GM
1498 * xdisp.c (underlying_face_id): New function.
1499 (handle_face_prop, face_before_or_after_it_pos): Use it
1500 to determine the face ``under'' a string. Let strings inherit
1501 the face of the buffer under them.
1502
1503 * xfaces.c (face_at_string_position): Update function comment.
1504
d4b72d58
GM
1505 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
1506 matrix if the window's left position has changed; we need to
1507 redraw it in this case.
1508
1509 * dispextern.h (struct glyph_matrix): Add member window_left_x.
1510
e1d05387
GM
1511 * window.c (coordinates_in_window): Check mouse on mode-line or
1512 header-line first.
1513
eb1b0c74
GM
1514 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
1515 advertized by the function documentation.
1516
d94d636f
GM
1517 * window.c (syms_of_window): Doc fix.
1518
3887b449
GM
1519 * sound.c (vox_configure): Set volume for left and right channel.
1520 (sound_cleanup): Return nil.
1521
efc8f57a
GM
1522 * xdisp.c (move_it_by_lines): Fix paren typo.
1523
9765b4a4
GM
1524 * xterm.c (x_load_font): Don't use the font's max_bounds for
1525 computing the height of the font. If max_bounds' ascent or
1526 descent are greater than the font's ascent or descent, this means
1527 glyphs overlap, which should be handled now by redisplay.
1528
6529ed87
GM
1529 * window.c (Veven_window_heights): New variable.
1530 (syms_of_window): DEFVAR_LISP it.
1531 (Fdisplay_buffer): Check Veven_window_heights before evening the
1532 window heights.
1533
0eb2ecde
MB
15342000-12-06 Miles Bader <miles@gnu.org>
1535
1536 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
1537 update `default-frame-alist' instead of setting no frame parameters.
1538
03d7a167
KH
15392000-12-06 Kenichi Handa <handa@etl.go.jp>
1540
1541 * composite.c (update_compositions): Fix typo (use the correct
1542 variable).
1543
5f8803c2
JR
15442000-12-05 Jason Rumney <jasonr@gnu.org>
1545
1546 * md5.h: Remove underscores from function declarations.
1547 (__attribute__, __alignof__) [!__GNUC__]: Define.
1548
1549 * md5.c: Delay include of md5.h until after namespace cleaning.
1550
c28a075b
JR
1551 * makefile.w32-in (fns.o): Depend on md5.h
1552 (md5.o): New target.
1553 (sunfns.o): Remove.
1554
1555 * makefile.nt: Likewise.
1556
ff3c7056
JR
15572000-12-05 Jason Rumney <jasonr@altavista.net>
1558
1559 * w32term.c (expose_area): Complete last change.
1560
0c21eeeb
KR
15612000-12-05 Ken Raeburn <raeburn@gnu.org>
1562
1563 * minibuf.c: Include intervals.h.
1564
f201d732
JR
15652000-12-05 Jason Rumney <jasonr@gnu.org>
1566
1567 * w32term.c (x_produce_glyphs): If a font for a component of
1568 a composition is not found, use 1 pixel dot ascent and 0 dot
1569 descent value to avoid displaying terribly tall empty boxes.
1570 (expose_area): Pass x-coordinate relative to the exposed
1571 area to x_draw_glyphs instead of a window-relative coordinate.
1572
21999ab9
GM
15732000-12-05 Gerd Moellmann <gerd@gnu.org>
1574
4d2036e4
GM
1575 * xdisp.c (next_element_from_ellipsis): Save face before selective
1576 display in saved_face_id, and set face_before_selective_p.
1577 (reseat_1): Reset face_before_selective_p.
1578 (append_space, extend_face_to_end_of_line): If iterator's
1579 face_before_selective_p is set, use the face from saved_face_id.
1580 (extend_face_to_end_of_line): For tty frames, make sure to
1581 use the right face id when producing spaces at the end of
1582 the line.
1583
1584 * dispextern.h (struct it): Add face_before_selective_p.
1585
52be17cc
GM
1586 * keyboard.c (record_char): Don't record identical help-echo
1587 events in recent_keys.
1588
8a4f36cc
GM
1589 * xterm.c [USE_X_TOOLKIT]: Close the display.
1590 (xim_close_dpy): Handle case that the display has been closed.
1591
57d6e381
GM
1592 * xterm.c (x_destroy_window): Reset the frame's X window after
1593 destroying it.
1594
21999ab9
GM
1595 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
1596 variable window_width.
1597 (line_draw_cost): Fix code skipping over spaces at the end of the
1598 line when must_write_spaces is not set.
1599 (scrolling_window): Fix code inserting runs in list of all runs.
1600
91372bb7
KH
16012000-12-05 Kenichi Handa <handa@etl.go.jp>
1602
1603 * coding.c (setup_coding_system): Be sure to initialize
1604 coding->category_idx.
1605
6c083b4c
GM
16062000-12-04 Gerd Moellmann <gerd@gnu.org>
1607
0c68ce6f
GM
1608 * xterm.c (PER_CHAR_METRIC): Removed because not used.
1609
6452929e
GM
1610 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
1611 area to x_draw_glyphs instead of a window-relative coordinate.
1612
d7f31e22
GM
1613 * fileio.c (auto_save_error): Add parameter ERROR. Show the
1614 error in the message.
1615
ae18aa3b
GM
1616 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
1617 timer after having read a key. It's not good for code reading
1618 several keys in a loop, like an input method.
1619
caa15ef7
GM
1620 * fileio.c (Finsert_file_contents): When VISIT is t, don't
1621 record undo information for format-decode.
1622
1623 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
1624 current buffer is read-only, not if it isn't.
1625
6c083b4c
GM
1626 * keyboard.c (record_char): Record `help-echo' input events
1627 in recent_keys only if they display some help. Don't record
1628 `help-echo' events as macro char.
1629
caa15ef7
GM
16302000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1631
1632 * editfns.c (save_excursion_restore): Don't move point
1633 in another window if it is showing the wrong buffer.
1634 Avoid the call to Fwindow_live_p, for speed.
1635
5a13529b
KH
16362000-12-04 Kenichi Handa <handa@etl.go.jp>
1637
e225faa7
KH
1638 * xfaces.c (struct font_name): New member registry_priority.
1639 (split_font_name): Initialize the above member to zero.
1640 (concat_font_list): New function.
1641 (font_list): Include fonts of all alternative registries.
1642 (FONT_POINT_SIZE_QUANTUM): New macro.
1643 (better_font_p): Ignore point size difference less than
1644 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
1645
e89648b4
KH
1646 * xterm.c (x_produce_glyphs): If a font for a component of
1647 a composition is not found, use 1 pixel dot ascent and 0 dot
1648 descent value to avoid displaying terribly tall empty boxes.
1649
5a13529b
KH
1650 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
1651
d7935eb6
KR
16522000-12-03 Ken Raeburn <raeburn@gnu.org>
1653
1654 * coding.h (code_convert_string1): Declare.
1655
1656 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
1657
1658 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
1659 Declare.
1660
0dd5e255
JR
16612000-12-02 Jason Rumney <jasonr@gnu.org>
1662
1663 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
1664 correctly for single byte character case.
1665 (w32_per_char_metric): Do not try to make any assumptions about
1666 the metrics of BDF fonts.
250cfece
JR
1667 (x_estimate_mode_line_height): If `mode-line' face
1668 hasn't a font, use that of the frame, as drawing glyphs
1669 does.
1670 (note_mouse_highlight): Change the cursor shape on the vertical
1671 border between windows [not enabled].
1672
1673 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
1674
1675 * w32fns.c (Fx_create_frame): Reintroduce the call to
1676 face-set-after-frame-defaults.
1677 (Vx_window_horizontal_drag_shape): New variable.
1678 (syms_of_xfns): DEFVAR_LISP it.
1679 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
1680 enabled].
0dd5e255 1681
b5d8d2ca
GM
16822000-12-02 Simon Josefsson <simon@josefsson.org>
1683
1684 * fns.c (Fmd5): Use a different logic to decide the coding system
1685 to use.
1686
1687 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
1688
fbb87147
EZ
16892000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
1690
1691 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
1692 NULL.
1693
447e9da0
GM
16942000-12-01 Gerd Moellmann <gerd@gnu.org>
1695
7708ced0
GM
1696 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
1697 height for YNegative.
1698 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
1699 height; also see comment there.
1700
447e9da0
GM
1701 * window.c (coordinates_in_window): Handle computations for
1702 positions on the vertical bar and fringes differently for
1703 window-system frames. Consider some pixels near the vertical bar
1704 as on the bar if the frame doesn't have vertical scroll bars.
1705 Associate positions between mode or header lines with the
1706 right window, the left one.
1707
86d1db20
JR
17082000-12-01 Jason Rumney <jasonr@gnu.org>
1709
1710 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
1711
1712 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
1713 invalid frame.
1714
a1d58e5b
GM
17152000-12-01 Gerd Moellmann <gerd@gnu.org>
1716
1717 * window.c (struct saved_window): Add members orig_top and
1718 orig_height.
1719 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
1720 (save_window_save, Fset_window_configuration): Save/restore
1721 window's orig_top and orig_height.
1722
89c609af
JR
17232000-12-01 Jason Rumney <jasonr@gnu.org>
1724
4d177746 1725 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 1726
89c609af
JR
1727 * w32fns.c (x_set_cursor_color): Fix last change.
1728
eccc05db
GM
17292000-11-30 Gerd Moellmann <gerd@gnu.org>
1730
31b6671b
GM
1731 * xdisp.c (echo_area_display): If cursor is in the echo area, make
1732 sure that the next redisplay displays the minibuffer, so that
1733 the cursor will be replaced with what the minibuffer wants.
1734
eccc05db
GM
1735 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
1736 #ifndef instead of using #if.
1737 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
1738 USE_TOOLKIT_SCROLL_BARS is defined.
1739
162de750
JR
17402000-11-30 Jason Rumney <jasonr@gnu.org>
1741
1742 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
1743 x_display_cursor.
1744
693c4692
GM
17452000-11-30 Gerd Moellmann <gerd@gnu.org>
1746
1747 * fns.c (Fmd5): Doc fix.
1748
b5d8d2ca 17492000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
1750
1751 * fns.c (Fmd5): New function.
1752 (syms_of_fns): Defsubr md5.
1753
1754 * Makefile.in (obj): Add md5.o
1755
b02cd40b
GM
17562000-11-30 Gerd Moellmann <gerd@gnu.org>
1757
edfb795e
GM
1758 * md5.h, md5.c: New files, taken from glibc.
1759
df3aedcf
GM
1760 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
1761
b02cd40b
GM
1762 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
1763 hasn't a font, use that of the frame, as drawing glyphs
1764 does.
1765
8b5176cd
SM
17662000-11-29 Stefan Monnier <monnier@cs.yale.edu>
1767
1768 * eval.c (Frun_hooks): Allow 0 arguments.
1769
346598f1
GM
17702000-11-29 Gerd Moellmann <gerd@gnu.org>
1771
f9396e03
GM
1772 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
1773 is over the menu bar widget, say it's not on the frame.
1774
4a967a9b
GM
1775 * xfns.c (Fx_create_frame): Reintroduce the call to
1776 face-set-after-frame-defaults.
1777
346598f1
GM
1778 * eval.c (Fsignal): Reset handling_signal.
1779
222456a1
JR
17802000-11-28 Jason Rumney <jasonr@gnu.org>
1781
1782 * w32menu.c (add_menu_item): Reset menu item text when changing
1783 type to radio button.
1784
8049ddc0
GM
17852000-11-28 Gerd Moellmann <gerd@gnu.org>
1786
346598f1 1787 * xselect.c: Update copyright.
f4f4ee4d 1788
bebe4a2c
GM
1789 * window.c (coordinates_in_window): If on a mode or header line,
1790 but sufficiently close to its start, return ``on vertical
1791 border''. This gives us a way to drag windows horizontally when
1792 using toolkit scroll bars.
1793
1794 * xterm.c (note_mouse_highlight): Change the cursor shape
1795 on the vertical border between windows.
1796
1797 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
1798
1799 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
1800 (syms_of_xfns): DEFVAR_LISP it.
1801 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
1802
8d2c2642
GM
1803 * textprop.c (text_read_only): New function.
1804 (verify_interval_modification): Use it instead of signaling
1805 `text-read-only'. This makes it easier to catch this error
1806 with a breakpoint.:
1807
8049ddc0
GM
1808 * xdisp.c (forward_to_next_line_start): Check for newlines,
1809 not end of line, which includes CR.
1810
5a2bae6c
KH
18112000-11-28 Kenichi Handa <handa@etl.go.jp>
1812
1813 * coding.c (Ffind_coding_systems_region_internal): Be sure to
1814 include no-conversion.
1815
ae31f84d
JR
18162000-11-27 Jason Rumney <jasonr@gnu.org>
1817
1818 * w32fns.c (w32_load_system_font): Always mark font as double byte
1819 if codepage is unicode.
1820
67f1cf4c
GM
18212000-11-27 Gerd Moellmann <gerd@gnu.org>
1822
4a74d071
GM
1823 * xdisp.c (forward_to_next_line_start): If already on a newline,
1824 just consume it to avoid unintended skipping over invisible text
1825 below.
1826
902ae620
GM
1827 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
1828 `vertical-line', `mode-line' and `header-line' events.
1829
1830 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
1831 of a character, a TAB for instance. This is easier than to set
1832 up the iterator exactly, and it's not a frequent case, so the
1833 additional effort wouldn't really pay off.
1834
c1e279c2
AC
18352000-11-26 Andrew Choi <akochoi@i-cable.com>
1836
67f1cf4c 1837 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
1838 init_window_once.
1839
a609568a
JR
18402000-11-25 Jason Rumney <jasonr@gnu.org>
1841
48b21762
JR
1842 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
1843 to window_from_coordinates should be pixel coordinates.
1844
a609568a
JR
1845 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
1846 redisplay handles them properly.
1847
a658d039
MB
18482000-11-25 Miles Bader <miles@gnu.org>
1849
1850 * indent.c (compute_motion): Keep pos_byte in sync with pos.
1851
d3416cca
JR
18522000-11-24 Jason Rumney <jasonr@gnu.org>
1853
1854 * w32.c (init_environment): Set LANG environment variable based on
1855 locale settings, if not set.
1856
1857 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
1858 making tool bar smaller. When clearing the frame, also
1859 clear current matrices. Clear frame when tool bar disappears.
1860 Don't use more lines for the tool-bar than is available.
1861 (x_change_window_heights): New function.
1862
ba193890
GM
18632000-11-24 Gerd Moellmann <gerd@gnu.org>
1864
2be8f184
GM
1865 * xdisp.c (init_from_display_pos): If POS says we're already after
1866 an overlay string ending at POS, make sure to pop the iterator
1867 because it will be in front of that overlay string. When POS is
1868 ZV, we've thereby also ``processed'' overlay strings at ZV.
1869
ba193890
GM
1870 * xfaces.c (lface_from_face_name): Function comment fix.
1871
1862a24e
MB
18722000-11-24 Miles Bader <miles@gnu.org>
1873
1874 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
1875 apply `mode-line-inverse-video' -- zero means force display using
1876 the default face, non-zero means display using the specialized face.
1877 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
1878
f07fa1b8
KH
18792000-11-23 Kenichi Handa <handa@etl.go.jp>
1880
1881 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
1882 hard coded `4'.
1883
2bcdf662
EZ
18842000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1885
1886 * coding.c (decode_coding_emacs_mule): Fix the case of
1887 CODING_EOL_LF, which used uninitialized value of c.
1888
ba8299ff
SM
18892000-11-23 Stefan Monnier <monnier@cs.yale.edu>
1890
1891 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
1892
f4117c4d
GM
18932000-11-22 Gerd Moellmann <gerd@gnu.org>
1894
03e757c1
GM
1895 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
1896 buffer object.
1897
f4117c4d
GM
1898 * frame.h (struct frame): Replace desired_tool_bar_items,
1899 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 1900 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
1901
1902 * frame.c (make_frame): Change initialization of tool bar
1903 items accordingly.
1904
1905 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 1906 Change references to members deleted from struct frame to use the
f4117c4d
GM
1907 new ones.
1908
1909 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 1910 references to members deleted from struct frame to use the new
f4117c4d
GM
1911 ones.
1912
1913 * dispnew.c (update_frame): Do nothing with frame's tool bar
1914 items.
1915
1916 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
1917
1918 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 1919 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
1920 from struct frame to use the new ones.
1921
f8e2f3f2
MB
19222000-11-23 Miles Bader <miles@gnu.org>
1923
1924 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
1925 the face's inverse-video attribute, rather than overriding it.
1926
60e8e0a5
GM
19272000-11-22 Gerd Moellmann <gerd@gnu.org>
1928
1929 * xfns.c (x_set_tool_bar_lines): Clear internal border when
1930 making tool bar smaller.
1931
92dd1b29
DL
19322000-11-22 Dave Love <fx@gnu.org>
1933
1934 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
1935
e672fdce
MB
19362000-11-22 Miles Bader <miles@gnu.org>
1937
3a17d6cc
MB
1938 * keyboard.c (Vminibuffer_message_timeout): New variable.
1939 (command_loop_1): Use it to determine message timeout.
1940 (syms_of_keyboard): Initialize it.
1941
60e8e0a5 1942 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 1943
e9655d81
KH
19442000-11-22 Kenichi Handa <handa@etl.go.jp>
1945
1946 * sysdep.c: Move the code for declaring h_errno after #include
1947 <netdb.h>.
1948
77270fac
GM
19492000-11-21 Gerd Moellmann <gerd@gnu.org>
1950
cd913aae
GM
1951 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
1952 the menu bar when the tooltip is unmapped.
1953
77270fac
GM
1954 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
1955 sole visible buffer when we're currently in the mini-buffer, and
1956 give up if so.
1957
556635d6
JR
19582000-11-21 Jason Rumney <jasonr@gnu.org>
1959
1960 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
1961 put on the clipboard.
1962 (Fw32_get_clipboard_data): Compare data on clipboard with saved
1963 copy of what Emacs last put there. If they are the same, do not
1964 use the clipboard copy to avoid losing data due to coding
1965 conversions.
1966
5b7bde64
MB
19672000-11-22 Miles Bader <miles@gnu.org>
1968
1969 * minibuf.c (Vminibuffer_prompt_properties): New variable.
1970 (syms_of_minibuf): Initialize it.
1971 (read_minibuf): Add properties from Vminibuffer_prompt_properties
1972 to prompt, don't make read-only.
1973
ff23e1dd
GM
19742000-11-21 Gerd Moellmann <gerd@gnu.org>
1975
3c64f287
GM
1976 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
1977 BEFORE/AFTER_POTENTIAL_GC.
1978
7aaf4388
GM
1979 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
1980
f5f47add 1981 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 1982
ff23e1dd
GM
1983 * term.c, cm.c: Don't try to include termcap.h; see comment there.
1984
37c35586
KH
19852000-11-21 Kenichi Handa <handa@etl.go.jp>
1986
1987 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
1988 ... #endif scope.
1989
ff9ab414
GM
19902000-11-20 Gerd Moellmann <gerd@gnu.org>
1991
c51d2b5e
GM
1992 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
1993 screen supports it.
1994
29a01b72
GM
1995 * s/gnu-linux.h: Don't use `#cpu'.
1996
09dfdf85
GM
1997 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
1998 not defined in mman.h.
1999
ff9ab414
GM
2000 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
2001 variables.
2002 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
2003 and store an index in the XClientMessageEvent. Storing a
2004 Lisp_Object or pointer can fail on a 64 bit system, since X only
2005 transfers 32 bits.
2006 (x_scroll_bar_to_input_event): Get the window from
2007 scroll_bar_windows.
2008
81459ac9
DL
20092000-11-20 Dave Love <fx@gnu.org>
2010
2011 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
2012
56c13ae6
GM
20132000-11-20 Gerd Moellmann <gerd@gnu.org>
2014
2015 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
2016
495a6df3
KH
20172000-11-20 Kenichi Handa <handa@etl.go.jp>
2018
2bcf3714
KH
2019 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
2020 by WIDTH.
2021
495a6df3
KH
2022 * alloc.c (make_string): Fix previous change. Be sure to make
2023 unibyte string correctly.
2024
6d950f4c
GM
20252000-11-19 Gerd Moellmann <gerd@gnu.org>
2026
39b39373
GM
2027 * window.c (Fwindow_list): Change parameter list to be XEmacs
2028 compatible.
2029 (window_list_1): New function.
2030 (window_loop): Use it instead of Fwindow_list.
2031
b95b34e5
GM
2032 * sysdep.c (emacs_ospeed): New variable.
2033 (toplevel): Don't declare ospeed extern.
2034 (init_baud_rate): Use emacs_ospeed instead of ospeed.
2035
2036 * termcap.c (ospeed): Remove.
2037 (tputs) [!emacs]: Remove unused code.
2038 (tgetent): Avoid a compiler warning.
2039
e83dc917
GM
2040 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
2041 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 2042 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
2043
2044 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
2045 removed.
2046 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
2047 Take the X display as additional argument.
2048 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
2049 `Widget' is a pointer type that's not easily stored in Lisp_Object
2050 form in a portable way.
2051
6d950f4c
GM
2052 * dispnew.c (update_text_area): Fix last change.
2053
e47306e6
GM
20542000-11-18 Gerd Moellmann <gerd@gnu.org>
2055
fb3cd89b
GM
2056 * xdisp.c: Use BINDING_STACK_SIZE throughout.
2057
2058 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
2059 clear current matrices.
2060
edaa9aed
GM
2061 * buffer.c (mmap_enlarge): Don't print a message on stderr
2062 if mapping new memory at the end of the existing region fails.
2063
e47306e6
GM
2064 * dispnew.c (update_text_area): Don't skip over equal glyphs
2065 when the last current glyph overlaps the glyph to its right.
2066
509633e3
MB
20672000-11-18 Miles Bader <miles@gnu.org>
2068
2069 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
2070 lines that *end* with "..." too (that's the most common case!).
2071
d392e9c5
GM
20722000-11-18 Gerd Moellmann <gerd@gnu.org>
2073
67988445
GM
2074 * xdisp.c (resize_mini_window): Temporarily change to the
2075 mini-window's buffer if necessary.
1bfdbe43 2076
d392e9c5
GM
2077 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
2078 the tooltip obscures less text under it.
2079
20802000-11-17 Gerd Moellmann <gerd@gnu.org>
2081
2082 * puresize.h (BASE_PURESIZE): Increase to 700000.
2083
92bb977f
JR
20842000-11-18 Jason Rumney <jasonr@gnu.org>
2085
2086 * w32term.c (w32_draw_bitmap): Use face to set colors.
2087
26fbf20b
DL
20882000-11-17 Dave Love <fx@gnu.org>
2089
2090 * lread.c (Fload): Fix #ifdef for pcc.
2091
100b593b
GM
20922000-11-17 Gerd Moellmann <gerd@gnu.org>
2093
2094 * xdisp.c (pos_visible_p): Compute the default character height
2095 differently.
2096
a288d0d1
GM
20972000-11-16 Gerd Moellmann <gerd@gnu.org>
2098
cac94de6
GM
2099 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
2100 knowing the line's height; use the default font's height in that
2101 case.
2102
a288d0d1
GM
2103 * xfaces.c (weight_table): Add `demi' with the same meaning as
2104 `demibold'.
2105
981fb6f6
KH
21062000-11-16 Kenichi Handa <handa@etl.go.jp>
2107
2cca872d 2108 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
2109 (clear_glyph_row): Delete local static variable null_row.
2110
e5fa381b
JR
21112000-11-15 Jason Rumney <jasonr@gnu.org>
2112
2113 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
2114 (w32_alloc_lighter_color): Use new brightness calculations from
2115 xterm.c. Scale delta to be in the range expected by W32.
2116 (w32_draw_relief_rect): Use frame relief colors.
2117
8e42f043
GM
21182000-11-15 Gerd Moellmann <gerd@gnu.org>
2119
6d133d1f
GM
2120 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
2121 (Qinhibit_default_face_x_resources): New variable.
2122 (syms_of_frame): Initialize it.
2123 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
2124
2125 * xdisp.c (pos_visible_p): Improve function comment.
2126
2127 * lisp.h (BINDING_STACK_SIZE): New macro.
2128
8e42f043
GM
2129 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
2130 reading the directory if readdir returns null and errno is EAGAIN
2131 or EINTR.
2132
e8c87124
SM
21332000-11-14 Stefan Monnier <monnier@cs.yale.edu>
2134
2135 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
2136 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
2137 Set amount_to_scroll to max of dx and scroll_step so that
2138 scroll-conservatively doesn't defeat scroll-step>1.
2139 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
2140 scroll-conservatively for line-at-a-time scrolling.
2141
5f0c971d
GM
21422000-11-14 Gerd Moellmann <gerd@gnu.org>
2143
2144 * window.c (Fpos_visible_in_window_p): Call pos_visible with
2145 extra argument.
2146
2147 * xdisp.c (current_mode_line_height, current_header_line_height):
2148 New variables.
2149 (init_xdisp): Initialize them.
2150 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
2151 and use exact mode line heights if it is set.
2152
2153 * lisp.h (pos_visible_p): Change prototype.
2154
2155 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
2156 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
2157 and current_header_line_height first.
2158 (current_mode_line_height, current_header_line_height): Declare
2159 extern.
2160
d7361edf
MB
21612000-11-14 Miles Bader <miles@lsi.nec.co.jp>
2162
2163 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
2164 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
2165 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
2166
ee5e440a
MB
21672000-11-14 Miles Bader <miles@gnu.org>
2168
2169 * xterm.c (x_alloc_lighter_color): Include an additive component
2170 too for dark colors, because FACTOR isn't enough.
2171 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
2172 New macros.
2173
5ca020fc
GM
21742000-11-13 Gerd Moellmann <gerd@gnu.org>
2175
2176 * keyboard.c (show_help_echo): Call message3_nolog with number of
2177 bytes in the help string as 2nd parameter, instead of the number
2178 of characters.
2179
9d348294
MB
21802000-11-13 Miles Bader <miles@gnu.org>
2181
2182 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
2183 (Fload): Use new openp return protocol.
2184 Don't try to use Vload_source_file_function to load .elc files.
2185 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
2186 openp return protocol.
2187 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
2188
1729bb9a
KH
21892000-11-11 Kenichi Handa <handa@etl.go.jp>
2190
4e677396
KH
2191 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
2192
2193 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
2194 Defined these macros.
2195 (NLIST_STRUCT): Avoid re-defining it.
2196
1729bb9a
KH
2197 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
2198 -I/usr/contrib/X11R6/include.
2199 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
2200
a82fe213
JR
22012000-11-10 Jason Rumney <jasonr@gnu.org>
2202
2203 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
2204
2205 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
2206 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
2207
2208 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
2209 (Qw32_charset_vietnamese): New symbol.
2210 (xlfd_charset_of_font): New function.
2211 (w32_load_system_font): Use it.
2212 (x_to_w32_charset): Use Fassoc to find charset info. Special case
2213 when Vw32_charset_info_alist is nil to ensure default face always
2214 has font. Use Fcar and Fcdr for safety.
2215 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
2216 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
2217 pseudo-codepages for special cases.
2218 (w32_to_x_font): New parameter to allow charset portion to be
2219 specified where there is many to one mapping. Callers changed.
2220 (w32_list_fonts): Avoid listing fonts that won't display.
2221
52d89894
GM
22222000-11-10 Gerd Moellmann <gerd@gnu.org>
2223
2224 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
2225 (font_list_1): Renamed from font_list.
2226 (font_list): New function, trying alternative registries from
2227 Vface_alternative_font_registry_alist.
2228 (Finternal_set_alternative_font_registry_alist): New function.
2229 (syms_of_xfaces): Initialize and Staticpro
2230 Vface_alternative_font_registry_alist. Defsubr
2231 Finternal_set_alternative_font_registry_alist.
2232
651cd3da
KR
22332000-11-09 Ken Raeburn <raeburn@gnu.org>
2234
2235 * lisp.h (Flooking_at): Declare.
2236
388ac098
GM
22372000-11-09 Gerd Moellmann <gerd@gnu.org>
2238
778fbc46
GM
2239 * dired.c (directory_files_internal): Fix a braino.
2240
388ac098
GM
2241 * dired.c (directory_files_internal): Add missing GCPRO's.
2242 Some cleanup.
2243
ecaedde1
GM
22442000-11-08 Gerd Moellmann <gerd@gnu.org>
2245
f7eb32aa
GM
2246 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
2247 (resize_mini_window): Return quickly if Vresize_mini_window is
2248 nil. Don't return if Vmax_mini_window_height is nil.
2249
2250 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
2251 (syms_of_xdisp): Initialize them.
2252 (resize_mini_window): Act according to the setting of
2253 Vresize_mini_window.
2254 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
2255
ecaedde1
GM
2256 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
2257 scroll bar widget after configuring it, so that it will appear at
2258 the right position from the start.
2259 (XTredeem_scroll_bar): Cleaned up.
2260
3747ef2c
KH
22612000-11-08 Kenichi Handa <handa@etl.go.jp>
2262
2263 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 2264 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
2265 division by two.
2266
2267 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
2268
03391420
DL
22692000-11-07 Dave Love <fx@gnu.org>
2270
7758f1c1 2271 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
2272
2273 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
2274
b5de343d
GM
22752000-11-07 Gerd Moellmann <gerd@gnu.org>
2276
acad3c0b
GM
2277 * window.c (Fset_window_configuration): Don't try to preserve
2278 point in the current buffer, if that buffer is displayed in more
2279 than one window.
2280
b5de343d
GM
2281 * xfaces.c (lookup_named_face): If default face isn't realized,
2282 try to realize it. Return -1 if not successful.
2283 (Fx_list_fonts): Handle case that face cannot be determined.
2284 (Fface_font): Likewise.
2285
cdb1fe49
GM
22862000-11-06 Gerd Moellmann <gerd@gnu.org>
2287
2288 * window.c (displayed_window_lines): Detect partially
2289 visible lines at the bottom correctly.
2290
d3a67486
SM
22912000-11-06 Stefan Monnier <monnier@cs.yale.edu>
2292
2293 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
2294 when ensuring we don't do visit in indirect buffer.
2295
ff8dd5d5
KH
22962000-11-06 Kenichi Handa <handa@etl.go.jp>
2297
2298 * composite.h (compose_chars_in_text): Add prototype.
2299
2300 * composite.c (Vcomposition_function_table): New variable.
2301 (Qcomposition_function_table): New variable.
2302 (run_composition_function): Call
2303 Vcompose_chars_after_function with three arguments.
2304 (compose_chars_in_text): New function.
2305 (syms_of_composite): Modified the doc-string of
2306 Vcompose_chars_after_function. Declare composition-function-table
2307 as a lisp variable, and initialize it.
2308
2309 * xfns.c (x_encode_text): Suppress producing escape sequences for
2310 composition.
2311
2312 * xselect.c: Include composite.h.
2313 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
2314
d1145f85
AI
23152000-11-05 Andrew Innes <andrewi@gnu.org>
2316
2317 * w32term.c (x_produce_glyphs): Fix typo in enum name.
2318
2319 * sysdep.c (read_input_waiting): Remove extraneous argument to
2320 read_socket_hook.
2321
2322 * w32fns.c (Fx_server_version): Include w32_build_number in the
2323 return list.
2324
2325 * w32heap.c (w32_build_number): New variable.
2326 (cache_system_info): Set it.
2327
2328 * w32heap.h (w32_build_number): Add extern.
2329
2330 * emacs.c (syms_of_emacs): Update docstring for
2331 system-configuration, to reflect the actual usage on MS-Windows.
2332
e85ee976
GM
23332000-10-31 Gerd Moellmann <gerd@gnu.org>
2334
26dcb81b
GM
2335 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
2336 process idle timers while waiting for another event.
2337
0a894bad
GM
2338 * dispnew.c (update_frame_line): Handle case where spaces in
2339 the default face are colored.
2340
e85ee976
GM
2341 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
2342 window height hasn't changed.
2343
01b220b6
JR
23442000-10-31 Jason Rumney <jasonr@gnu.org>
2345
2346 * w32term.c (x_produce_glyphs): Handle composite characters.
2347 (x_draw_glyph_string_foreground)
2348 (x_draw_composite_glyph_string_foreground): Restore old font.
2349
4e6b7204
MB
23502000-10-31 Miles Bader <miles@lsi.nec.co.jp>
2351
2352 * minibuf.c (read_minibuf): Reset the undo history just before
2353 starting the recursive-edit.
2354
d4358b37
GM
23552000-10-30 Gerd Moellmann <gerd@gnu.org>
2356
563f68f1
GM
2357 * xfaces.c (menu_face_change_count): New variable.
2358 (Finternal_set_lisp_face_attribute): Increment it for changes
2359 of the `menu' face.
2360 (realize_basic_faces): Reflect changes in the `menu' faces
2361 in menu bars.
2362
82e274d1
GM
2363 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
2364 dy obtained from the iterator's y-position after moving from
2365 scroll_margin_pos to PT; see comment there.
2366
0dbf9fd2
GM
2367 * xdisp.c (safe_eval_handler): Call add_to_log.
2368
906b3b14
GM
2369 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
2370 is not a symbol or string.
2371
d4358b37
GM
2372 * xdisp.c (echo_area_display): Don't perform a display update from
2373 inside redisplay. The update will happen anyway at the end of
2374 redisplay, and it can confuse redisplay (GC messages while
2375 redisplaying, for instance.)
2376
70c825df
SM
23772000-10-30 Stefan Monnier <monnier@cs.yale.edu>
2378
cf9b4b0b
SM
2379 * xrdb.c (x_load_resources): Use the class name in the defaults.
2380
70c825df
SM
2381 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
2382 (regex_compile): Catch bogus \(\1\).
2383
a1d34b1e
GM
23842000-10-30 Gerd Moellmann <gerd@gnu.org>
2385
cae71efe
GM
2386 * xterm.c (x_alloc_nearest_color): Fix last change to compare
2387 RGB values.
2388
35efe0a1
GM
2389 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
2390 we have a color cache, check that the cached color equals the
2391 allocated color. If not, clear the color cache.
2392
1d3baf74
GM
2393 * window.c (displayed_window_lines): Change buffers if necessary.
2394 Fix computation of displayed lines.
2395
a1d34b1e
GM
2396 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
2397 update_menu_bindings to DEFVAR_BOOL.
2398
70737ea9
KH
23992000-10-30 Kenichi Handa <handa@etl.go.jp>
2400
70c825df 2401 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 2402
fa0cb51d
KH
2403 * puresize.h (BASE_PURESIZE): Increase to 680000.
2404
70737ea9
KH
2405 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
2406
0e4c08e8
JR
24072000-10-29 Jason Rumney <jasonr@gnu.org>
2408
2409 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
2410
2411 * w32term.c (w32_bdf_per_char_metric): Negate descent.
2412 (w32_cache_char_metrics): Handle possibility that 'x' does not
2413 exist in a BDF font.
2414 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
2415
2416 * w32bdf.h (bdffont): Add nchars.
2417
2418 * w32bdf.c (set_bdf_font_info): Set it.
2419 (w32_BDF_TextOut): Swap byte order of double byte characters.
2420 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
2421
45b84006
EZ
24222000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2423
2424 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
2425 don't override the colors in frame's param_alist, unless they are
2426 unspecified.
2427
2428 * term.c (reassert_line_highlight): If inverse_video is non-zero,
2429 reverse the effect of the highlight flag.
2430
caf9deee
KR
24312000-10-27 Ken Raeburn <raeburn@gnu.org>
2432
2433 * window.h (Fwindow_live_p): Declare.
2434
ae0b9b46
KR
2435 * undo.c (record_delete): Check that last_undo_buffer is really a
2436 buffer before applying XBUFFER to it.
2437
2438 * keymap.c (where_is_internal): Pass lisp object, not integer, to
2439 Faref.
2440
02067692
SM
24412000-10-27 Stefan Monnier <monnier@cs.yale.edu>
2442
2443 * lisp.h (KEYMAPP): New macro.
2444 (get_keymap): Remove.
2445 (get_keymap_1): Rename get_keymap.
2446
2447 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
2448
2449 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
2450
2451 * xmenu.c (single_submenu): Use KEYMAPP.
2452 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
2453 Use KEYMAPP rather than Fkeymapp.
2454
2455 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
2456
2457 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
2458 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
2459 Use KEYMAPP rather than Fkeymapp.
2460 (single_submenu): Use KEYMAPP.
2461 (w32_menu_show, w32_dialog_show): Use TRUE.
2462
2463 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
2464
2465 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
2466 (Fkeymapp): Use KEYMAPP.
2467 (get_keymap): Rename from get_keymap_1. Remove old def.
2468 Return t when autoload=0 and error=0 and the keymap needs autoloading.
2469 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
2470 (Fminor_mode_key_binding): Don't raise an error if the binding
2471 is not a keymap.
2472 (Fuse_global_map, Fuse_local_map): Allow autoloading.
2473 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
2474
2475 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
2476 Allow Vspecial_event_map to be autoloaded.
2477 (menu_bar_items): Fetch the keymap rather than using keymapp.
2478 (menu_bar_one_keymap): No need to follow func-indirect any more.
2479 (parse_menu_item): get_keymap_1 -> get_keymap.
2480 (tool_bar_items): Fetch the keymap rather than using keymapp.
2481 (read_key_sequence): Use KEYMAPP.
2482
2483 * intervals.c (get_local_map): Use get_keymap rather than following
2484 function-indirections explicitly.
2485
2486 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
2487
f9d80af3
JR
24882000-10-27 Jason Rumney <jasonr@gnu.org>
2489
2490 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
2491 point, as Windows has oversized fonts.
2492
2493 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
2494
a3ba27da
GM
24952000-10-27 Gerd Moellmann <gerd@gnu.org>
2496
2497 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
2498 (freehook, reallochook): Handle null pointer arguments.
2499 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
2500
aa3b80cc
SM
25012000-10-27 Stefan Monnier <monnier@cs.yale.edu>
2502
2503 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
2504 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
2505 Giving in to popular pressure to shut up the compiler with casts.
2506
e24e84cc
GM
25072000-10-27 Gerd Moellmann <gerd@gnu.org>
2508
2509 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
2510 signed value, and use a default value computed from the font's
2511 maximum descent.
2512
05ea7ef2
MB
25132000-10-27 Miles Bader <miles@lsi.nec.co.jp>
2514
2515 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
2516 that specify a negative underline position can still use underlines.
2517
2518 * window.c (Fpos_visible_in_window_p): Make POS default to
2519 WINDOW's point, not the current buffer's point.
2520
0b95284b
DL
25212000-10-26 Dave Love <fx@gnu.org>
2522
2523 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
2524 when it's necessary.
2525
6c5b90af
GM
25262000-10-26 Gerd Moellmann <gerd@gnu.org>
2527
8b6d9dc9
GM
2528 * window.c (size_window): Compute size difference from sum of old
2529 child window sizes instead of from parent's size.
2530
6bc92b2e
GM
2531 * xdisp.c (pos_visible_p): Change current buffer if necessary.
2532 Handle obscured lines at the top of the window.
2533
2534 * frame.c (Fdelete_frame): Doc fix. Move running the hook
2535 down after the last error condition check.
2536
6c5b90af
GM
2537 * frame.c (Fdelete_frame): Run delete-frame-hook.
2538
42f92d4d
KH
25392000-10-26 Kenichi Handa <handa@etl.go.jp>
2540
2541 * coding.c (decode_coding): Fix previous change (check also
2542 CODING_MODE_LAST_BLOCK).
2543
d97151cb
SM
25442000-10-25 Stefan Monnier <monnier@cs.yale.edu>
2545
e7efc503
SM
2546 * regex.c: More `unsigned char' -> `re_char' changes.
2547 Also change several `int' into `re_wchar_t'.
2548 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
2549 (PUSH_FAILURE_POINTER): Don't cast any more.
2550 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
2551 We want GCC to complain, since this piece of code makes
2552 re_match non-reentrant, which *should* be fixed.
2553 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
2554 (EXTEND_BUFFER): Use RETALLOC.
2555 (SET_LIST_BIT): Don't cast.
2556 (re_wchar_t): New type.
2557 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
2558 that those two functions will always properly return.
2559 (IMMEDIATE_QUIT_CHECK): Cast to void.
2560 (analyse_first): Use recursion rather than an explicit stack.
2561 (re_compile_fastmap): Can't fail anymore.
2562 (re_search_2): Don't check re_compile_fastmap for failure.
2563 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
2564 Now also sets the new value (passed in a new argument).
2565 (re_match_2_internal): Use it.
2566 Also, use a new var `reg' of type size_t when looping through regs
2567 rather than reuse the inappropriate `mcnt'.
2568
d97151cb
SM
2569 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
2570 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
2571 (where_is_internal): Renamed from Fwhere_is_internal.
2572 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
2573 (Fwhere_is_internal): New function wrapping where_is_internal.
2574 (where_is_internal_1): Handle the case where we're filling the cache.
2575 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
2576
d5789b65
MB
25772000-10-25 Miles Bader <miles@gnu.org>
2578
2579 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
2580
4ecda532
GM
25812000-10-25 Gerd Moellmann <gerd@gnu.org>
2582
2583 * window.c (pos_fully_visible_p): Removed.
2584 (Fpos_visible_in_window_p): Use pos_visible_p to determine
2585 if position is visible and/or fully visible.
2586
2587 * lisp.h (pos_visible_p): Add prototype.
2588
2589 * xdisp.c (pos_visible_p): New function.
2590
68c3a137
KH
25912000-10-25 Kenichi Handa <handa@etl.go.jp>
2592
2593 * process.c (send_process): If OBJECT is t, it means that the data
2594 is from C string, but we should encode it. Before calling
2595 setup_raw_text_coding_system, be sure to flush out data by the
2596 previous coding system.
2597
7ae1c032
MB
25982000-10-25 Miles Bader <miles@lsi.nec.co.jp>
2599
ff4dcd4b
MB
2600 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
2601 assignment of startpos to prev when startpos == pos.
2602
7ae1c032
MB
2603 * editfns.c (find_field): Set the field stickiness correctly from
2604 overlay fields. Use renamed `text_property_stickiness'.
2605 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 2606 Only check text properties, not overlays.
7ae1c032
MB
2607 * textprop.c (get_char_property_and_overlay): New function.
2608 (Fget_char_property): Use it.
2609 * intervals.h (get_char_property_and_overlay): Add declaration.
2610
49801145
SM
26112000-10-25 Stefan Monnier <monnier@cs.yale.edu>
2612
2613 * keymap.c: Use AREF, ASET and ASIZE macros.
2614 (Fmake_sparse_keymap): Docstring fix.
2615 (synkey): Remove.
2616 (shadow_lookup): Move up.
2617 Handle the case where lookup-key returns an integer.
2618 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
2619 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
2620 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
2621 Simplify/rewrite the keymap-finding code.
2622 Add check for command shadowing, using shadow_lookup.
2623
39e776cd
SM
26242000-10-24 Stefan Monnier <monnier@cs.yale.edu>
2625
2626 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
2627 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
2628 a symbol.
2629
2488aba5
AI
26302000-10-24 Andrew Innes <andrewi@gnu.org>
2631
2632 * dired.c (directory_files_internal_unwind): New function.
2633 (directory_files_internal): Use it to ensure closedir is called
2634 even if expand-file-name or file-attributes throw, eg. because of
2635 a user interrupt. Also enable immediate_quit while calling
2636 re_search, so that matching can be interrupted as well.
2637
b94fdf61
AI
26382000-10-24 Andrew Innes <andrewi@gnu.org>
2639
2640 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
2641 NT-Emacs only.
2642 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
2643 so that re_search functions only quit when callers expect them to.
2644
26452000-10-24 Kenichi Handa <handa@etl.go.jp>
2646
2647 * regex.c (regex_compile): Change the way of handling a range from
2648 a char less than 256 to a char not less than 256.
2649
1946f901
GM
26502000-10-24 Gerd Moellmann <gerd@gnu.org>
2651
7ae2f10f
GM
2652 * window.c (size_window): Prevent setting window's width or
2653 height to a negative value (esp. with XSETFASTINT).
2654
5dcab13e
GM
2655 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
2656 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
2657 (protect_malloc_state) [GC_MALLOC_CHECK &&
2658 GC_PROTECT_MALLOC_STATE]: New function.
2659 (PROTECT_MALLOC_STATE): New macro.
2660 (__malloc_initialize, morecore, _malloc_internal)
2661 (_free_internal) _realloc_internal): Use it to make _heapinfo
2662 read-only outside of gmalloc.
2663
63e1b552
GM
2664 * keymap.c: Update copyright.
2665
1946f901
GM
2666 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
2667 a symbol.
2668
4fa09beb
GM
26692000-10-24 Colin Walters <walters@cis.ohio-state.edu>
2670
2671 * filelock.c (unlock_all_files): Use unlock_file to expand each
2672 buffer's file_truename before trying remove its lock file.
2673
23afac01
EZ
26742000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
2675
2676 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
2677 or CRLF, decode EOLs.
2678
04448b95
KH
26792000-10-24 Kenichi Handa <handa@etl.go.jp>
2680
2681 * window.c (Fdisplay_buffer): Fix doc.
2682
3090a5a5
JR
26832000-10-23 Jason Rumney <jasonr@gnu.org>
2684
2685 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
2686 ASCII font of default fontset on Windows.
2687
2688 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
2689 xterm.c comment below).
2690
2691 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
2692
a83fee2c
GM
26932000-10-23 Gerd Moellmann <gerd@gnu.org>
2694
2695 * xterm.c (x_connection_closed): Reset handling_signal.
2696
2697 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
2698 null.
2699
6ffdb539
MB
27002000-10-23 Miles Bader <miles@gnu.org>
2701
2702 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2703 Pass nil for FULLY argument to Fpos_visible_in_window_p to
2704 maintain old behavior.
2705 * minibuf.c (Fminibuffer_complete): Likewise.
2706
7f1c969b
MB
27072000-10-23 Miles Bader <miles@lsi.nec.co.jp>
2708
2709 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
2710 that when a font can't be exactly centered, it errs up rather than
2711 down.
2712
23afac01 27132000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
2714
2715 * fns.c (Fbase64_decode_string): The decoded result should be
2716 unibyte.
2717
1a578e9b
AC
27182000-10-23 Andrew Choi <akochoi@i-cable.com>
2719
2720 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
2721
2722 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 2723 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
2724
2725 * emacs.c (main) [macintosh]: Call syms_of_textprop,
2726 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
2727 syms_of_search, x_term_init, and init_keyboard before calling
2728 init_window_once. Also, call syms_of_xmenu.
2729
2730 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
2731 default fontset to Monaco.
2732
2733 * frame.c [macintosh]: Include macterm.h. Remove declarations of
2734 NewMacWindow and DisposeMacWindow.
2735 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
2736 instead of calling NewMacWindow and setting fields of
2737 f->output_data.mac directly. Call init_frame_faces.
2738 (Fdelete_frame) [macintosh]: Remove unused code.
2739 (Fmodify_frame_parameters) [macintosh]: Call
2740 x_set_frame_parameters instead of mac_set_frame_parameters.
2741
2742 * frame.h [macintosh]: Define menu_bar_lines field in struct
2743 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
2744
2745 * keyboard.c [macintosh]: Include macterm.h.
2746 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
2747 and menu_bar_activate_event type events as for X and NT.
2748 (make_lispy_event) [macintosh]: Construct lisp events of type
2749 MENU_BAR_EVENT as for X and NT.
2750
2751 * sysdep.c [macintosh]: Remove declaration for sys_signal.
2752 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
2753 (sys_subshell) [macintosh]: Remove definition entirely.
2754 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
2755 Vwindow_system_version here. Remove initialization of
2756 Vx_bitmap_file_path.
2757 (read_input_waiting): Correct the number of parameters passed to
2758 read_socket_hook.
2759 Move all Macintosh functions to mac/mac.c.
2760
2761 * term.c [macintosh]: Include macterm.h.
2762
2763 * window.c [macintosh]: Include macterm.h.
2764
2765 * xdisp.c [macintosh]: Include macterm.h. Declare
2766 set_frame_menubar and pending_menu_activation.
2767 (echo_area_display) [macintosh]: Do not return if terminal frame
2768 is the selected frame.
2769 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
2770 Allow only the selected frame to set menu bar.
2771 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
2772 calling FRAME_EXTERNAL_MENU_BAR (f).
2773 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
2774
2775 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
2776 and check_x. Declare XCreateGC. Define x_create_gc and
2777 x_free_gc. Initialize font_sort_order.
2778 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
2779 but call x_list_fonts instead of w32_list_fonts.
2780 (Finternal_face_x_get_resource) [macintosh]: Do not call
2781 display_x_get_resource.
2782 (prepare_face_for_display) [macintosh]: Set xgcv.font.
2783 (realize_x_face) [macintosh]: Load the font if it is specified in
2784 ATTRS.
2785 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
2786 to Qt.
2787
1ffbabe3
SM
27882000-10-22 Stefan Monnier <monnier@cs.yale.edu>
2789
2790 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
2791 is nil: since we go to the end of submap anyway, we'd end up
2792 setting nil to nil.
2793 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
2794 doesn't obey autoload.
2795
bed43f1d
EZ
27962000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2797
1ffbabe3 2798 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 2799
ea4233a7
JR
28002000-10-21 Jason Rumney <jasonr@gnu.org>
2801
2802 * w32term.c (w32_cache_char_metrics): Double check that font is
2803 really fixed pitch before trusting tmPitchAndFamily.
2804
f3d3c491
AI
28052000-10-21 Andrew Innes <andrewi@gnu.org>
2806
2807 * w32gui.h (w32_char_font_type): Move enum from w32term.c
2808
2809 * w32term.h: Extern decl for w32_cache_char_metrics.
2810
2811 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
2812
2813 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
2814 (w32_unload_font): Free per_char array if present.
2815
2816 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
2817 cached information in emulated XFontStruct to handle common cases
2818 quickly. Do not allocate XCharStruct for return.
2819 (w32_native_per_char_metric): New function.
2820 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
2821 allocating one.
2822 (x_produce_glyphs): Don't get an HDC. Change calls to
2823 w32_per_char_metric to match arg change above. Remove calls to
2824 free results.
2825 (w32_get_glyph_overhangs): Ditto.
2826 (w32_cache_char_metrics): New function.
2827
2828 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
2829 ($(BLD)/casefiddle.$(O)): Remove compile command.
2830 ($(BLD)/gmalloc.$(O)): Remove compile command.
2831 ($(BLD)/dispnew.obj):
2832 ($(BLD)/keyboard.obj):
2833 ($(BLD)/w32inevt.obj):
2834 ($(BLD)/w32bdf.obj):
2835 ($(BLD)/alloc.obj):
2836 ($(BLD)/buffer.obj):
2837 ($(BLD)/editfns.obj):
2838 ($(BLD)/emacs.obj):
2839 ($(BLD)/fileio.obj):
2840 ($(BLD)/fns.obj):
2841 ($(BLD)/indent.obj):
2842 ($(BLD)/insdel.obj):
2843 ($(BLD)/intervals.obj):
2844 ($(BLD)/minibuf.obj):
2845 ($(BLD)/print.obj):
2846 ($(BLD)/scroll.obj):
2847 ($(BLD)/sysdep.obj):
2848 ($(BLD)/textprop.obj):
2849 ($(BLD)/widget.obj):
2850 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
2851 ($(BLD)/term.obj): Add dependency on dispextern.h.
2852
2853 * makefile.nt ($(BLD)\dispnew.obj):
2854 ($(BLD)\keyboard.obj):
2855 ($(BLD)\w32inevt.obj):
2856 ($(BLD)\w32bdf.obj):
2857 ($(BLD)\alloc.obj):
2858 ($(BLD)\buffer.obj):
2859 ($(BLD)\editfns.obj):
2860 ($(BLD)\emacs.obj):
2861 ($(BLD)\fileio.obj):
2862 ($(BLD)\fns.obj):
2863 ($(BLD)\indent.obj):
2864 ($(BLD)\insdel.obj):
2865 ($(BLD)\intervals.obj):
2866 ($(BLD)\minibuf.obj):
2867 ($(BLD)\print.obj):
2868 ($(BLD)\scroll.obj):
2869 ($(BLD)\sysdep.obj):
2870 ($(BLD)\textprop.obj):
2871 ($(BLD)\widget.obj):
2872 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
2873 ($(BLD)\term.obj): Add dependency on dispextern.h
2874
18ad4821
EZ
28752000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2876
2877 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
2878 with an additional argument of Qt.
2879
de54681a
MB
28802000-10-21 Miles Bader <miles@gnu.org>
2881
2882 * window.c (pos_fully_visible_in_window_p): New function.
2883 (Fpos_visible_in_window_p): Add FULLY argument.
2884 Use pos_fully_visible_in_window_p.
2885 (window_scroll_pixel_based, window_scroll_line_based): Update
2886 calls to Fpos_visible_in_window_p.
2887 * lisp.h (Fpos_visible_in_window_p): Update prototype
2888
13c844fb
GM
28892000-10-20 Gerd Moellmann <gerd@gnu.org>
2890
2891 * alloc.c (toplevel): Conditionalize compilation of mem_*
2892 functions differently.
2893
d9506268
JR
28942000-10-20 Jason Rumney <jasonr@gnu.org>
2895
2896 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
2897 mem_init where it used to be. mem_z etc not defined otherwise.
2898
8094989b
GM
28992000-10-20 Gerd Moellmann <gerd@gnu.org>
2900
2901 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
2902 GC_MALLOC_CHECK.
2903 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
2904 structure definition and related variabled to the top of the file.
2905 Include this code when GC_MALLOC_CHECK is defined.
2906 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
2907 register/unregister allocated region.
2908 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
2909 which isn't allocated.
2910 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
2911 something which is already in use.
2912 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
2913 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
2914 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
2915 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
2916
2917 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
2918 _malloc_internal instead of malloc.
2919 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
2920 of free.
2921
ea456eb4
AI
29222000-10-20 Andrew Innes <andrewi@gnu.org>
2923
2924 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
2925 Windows.
2926 (my_strftime) <macro>: Don't use macro arg list when redefining as
2927 _strftime_copytm.
2928 (my_strftime) <function>: Supply 0 as ut argument.
2929
e64c3a75
JR
29302000-10-19 Jason Rumney <jasonr@altavista.net>
2931
2932 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
2933 including dispextern.h, as it stops faces from working.
2934
2935 * w32fns.c (Fx_create_frame): Don't bother calling
2936 face-set-after-frame-default since the caller does it for us
2937 anyway. Clean up calls to x_get_arg to be consistent with X.
2938
2939 * w32term.c (x_produce_glyphs): Handle
2940 unibyte_display_via_language_environment correctly.
2941 (w32_draw_box_rect): Fix the calculation of width and height.
2942
2943 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
2944 as it has stopped working.
2945 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
2946 menu-bar.
2947
17401c97
GM
29482000-10-19 Gerd Moellmann <gerd@gnu.org>
2949
2950 * eval.c (skip_debugger): Prevent a compiler warning.
2951 (Fcondition_case): Likewise.
2952 (Fbacktrace_frame): Use a null interactive spec.
2953
773272d8
KH
29542000-10-19 Kenichi Handa <handa@etl.go.jp>
2955
2956 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
2957
a42943e9
GM
29582000-10-18 Gerd Moellmann <gerd@gnu.org>
2959
e50517d9
GM
2960 * strftime.c: Sync with glibc, file version 1.78.
2961 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
2962 should no longer be used according to ISO 8601.
2963
9035a35a
GM
2964 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
2965 no map for meta_prefix_char, don't try to use it as a keymap.
2966 Instead, if T_OK is non-zero, look up a default binding, if any,
2967 otherwise, if T_OK is zero, return nil.
2968
a42943e9
GM
2969 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
2970 (x_to_xcolors, png_load): Use x_query_color.
2971
2972 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
2973 functions.
2974 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
2975 which can be slow.
2976 (x_copy_color, x_alloc_lighter_color): Likewise.
2977
2978 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
2979 (x_query_color, x_query_colors): Add prototype.
2980
2981 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
2982 check_string_bytes only if not noninteractive, increase count to 50.
2983
00de2987
MB
29842000-10-18 Miles Bader <miles@lsi.nec.co.jp>
2985
2986 * insdel.c (adjust_markers_for_delete): Handle before-insertion
2987 markers correctly.
2988
54918e2b
GM
29892000-10-17 Gerd Moellmann <gerd@gnu.org>
2990
1f0b3fd2
GM
2991 * alloc.c (pure_bytes_used): Renamed from pureptr.
2992 (ALIGN): New macro.
2993 (pure_alloc): New function.
2994 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
2995 Use it.
2996 (Fpurecopy): Use PURE_POINTER_P.
2997
68c5d1db
GM
2998 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
2999 PT has moved backward.
3000
9a038881
GM
3001 * xdisp.c (cursor_row_p): Take continued lines into account.
3002
361b097f
GM
3003 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
3004 string's size_byte.
3005 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
3006 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
3007 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
3008 string allocated.
3009
54918e2b
GM
3010 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
3011 of selective display off while searching for the next line start.
3012
03ed0806
KH
30132000-10-17 Kenichi Handa <handa@etl.go.jp>
3014
3015 * Makefile.in (term.o): Depend on dispextern.h.
3016
7e05cdaf
SM
30172000-10-16 Stefan Monnier <monnier@cs.yale.edu>
3018
3019 * keymap.c (keymap_memberp): Ensure that nil is not a member.
3020
a6801fd1
GM
30212000-10-16 Gerd Moellmann <gerd@gnu.org>
3022
483de32b
GM
3023 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
3024 the iterator at the beginning, so that they can be set later on,
3025 for instance in reseat_at_next_visible_line_start, without being
3026 overwritten.
3027
a6801fd1
GM
3028 * xfns.c (pbm_format): Add :foreground and :background keywords.
3029 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 3030 (xbm_load): Recognize foreground and background color
a6801fd1
GM
3031 specifications.
3032
dbf1fcc1
EZ
30332000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
3034
3035 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
3036
3037 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
3038 declaration.
3039
3040 * msdos.c (IT_set_face): Compare highlighted face with the default
3041 face, and invert colors if these faces' colors are identical.
3042 (Fmsdos_remember_default_colors): Don't swap foreground and
3043 background colors in initial_colors[].
3044 (IT_set_frame_parameters): Don't swap frame's foreground and
3045 background pixels. If ALIST includes "(reverse . t)", swap
3046 foreground-color and background-color properties in frame's
3047 param_alist. If the original frame's param_alist doesn't specify
3048 the colors, store unspecified-fg and unspecified-bg, reversed if
3049 required.
3050
3051 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
3052 the colors are unspecified and reversed, reverse fore- and back-
3053 ground in the returned value.
3054 (Fframe_parameter): Ditto.
3055
b41fe2c3
GM
30562000-10-16 Gerd Moellmann <gerd@gnu.org>
3057
3a6b59d9
GM
3058 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
3059 get_last_unchanged_at_beg_row.
3060 (find_first_unchanged_at_end_row): Renamed from
3061 get_first_unchanged_at_end_row.
3062 (find_first_unchanged_at_end_row): Convert assertions to
3063 unconditional tests which abort. When looking for a row in
3064 unchanged text, don't go further back than first_text_row.
3065
b41fe2c3
GM
3066 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
3067 Don't add in the last line's height when deciding if the new
3068 position is below the scroll margin.
9d1af64f 3069
b41fe2c3 30702000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
3071
3072 * editfns.c (Fconstrain_to_field): Check carefully for field
3073 boundaries if either OLD_POS or NEW_POS has a non-nil field
3074 property, even if they're the same.
3075
c412cb7b
KH
30762000-10-16 Kenichi Handa <handa@etl.go.jp>
3077
3078 * xterm.c (x_draw_box_rect): Fix the calculation of width and
3079 height for XFillRectangle.
3080
5586f3eb
SM
30812000-10-15 Stefan Monnier <monnier@cs.yale.edu>
3082
3083 * syntax.c (Fstring_to_syntax): New function extracted from
3084 Fmodify_syntax_entry.
3085 (Fmodify_syntax_entry): Use it and document the ! and | fences.
3086 (skip_chars, Fforward_comment): Remove unused variables.
3087 (syms_of_syntax): Add defsubr for string-to-syntax.
3088 (describe_syntax): Add code for comment and string fences.
3089
db785038
SM
30902000-10-14 Stefan Monnier <monnier@cs.yale.edu>
3091
3092 * keymap.c (access_keymap): Add AUTOLOAD parameter.
3093 Do the meta->esc mapping. Call get_keyelt before returning.
3094 Start scanning from the second element (the first is always `keymap')
3095 to make it easier to detect when we reach a parent map.
3096 Handle the case of inheriting from a symbol whose function is a map.
3097 (Fkeymap_parent): Also handle the `inherit from symbol' case.
3098 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
3099 (get_keyelt, Flookup_key): Update call to access_keymap.
3100 Remove the meta->esc mappings.
3101 (define_as_prefix): Delete old disabled code.
3102 (menu_item_p): New function.
3103 (where_is_internal_1): Skip over the few remaining menu items.
3104 * lisp.h (access_keymap): Update prototype.
3105 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
3106 Update call to access_keymap.
3107 (follow_key, read_key_sequence): Update calls to access_keymap.
3108 Remove the meta->esc mappings.
3109
cafafe0b
GM
31102000-10-13 Gerd Moellmann <gerd@gnu.org>
3111
a2e2a7f6
GM
3112 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
3113 with additional argument.
3114
cafafe0b
GM
3115 * xdisp.c (cursor_row_p): New function.
3116 (try_cursor_movement, display_line): Use it.
3117
3118 * xdisp.c (append_space): Also save/restore iterator's current
3119 character and its length.
3120
3121 * xdisp.c (init_from_display_pos): Add an assertion.
3122 (handle_stop): Don't set iterator's add_overlay_start.
3123 (handle_invisible_prop): Likewise.
3124 (load_overlay_strings): If text under an overlay is invisible,
3125 take both before- and after-strings into account when the iterator
3126 is positioned either at the start or at the end of the overlay.
3127 (forward_to_next_line_start): Rewritten.
3128 (reseat_at_next_visible_line_start): Rewritten.
3129 (set_iterator_to_next): Add parameter RESEAT_P.
3130
3131 * dispextern.h (struct it): Remove member add_overlay_start.
3132 (set_iterator_to_next): Change prototype.
3133
c744452b
KH
31342000-10-13 Kenichi Handa <handa@etl.go.jp>
3135
3136 * coding.c (code_convert_region): Be sure to initialize
3137 coding->category_idx.
e4a3f4e1
KH
3138 (decode_coding_string): Set coding->src_multibyte and
3139 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
3140 (encode_coding_string): Set coding->src_multibyte and
3141 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 3142
321fd26f
SM
31432000-10-12 Stefan Monnier <monnier@cs.yale.edu>
3144
3145 * xfns.c (Fx_create_frame): Don't bother calling
3146 face-set-after-frame-default since the caller does it for us anyway.
3147
76832439
EZ
31482000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3149
3150 * window.c (coordinates_in_window): Fix detection of vertical line
3151 on character terminals.
3152
2483cf58
GM
31532000-10-12 Gerd Moellmann <gerd@gnu.org>
3154
3155 * editfns.c (save_excursion_save): Additionally record the
3156 selected window.
3157 (save_excursion_restore): If buffer was visible in a window, and a
3158 different window was selected, and the old selected window is
3159 still live, restore point in that window.
3160
eb991b25
KH
31612000-10-12 Kenichi Handa <handa@etl.go.jp>
3162
8a0eba09
KH
3163 * xterm.c (x_produce_glyphs): Handle
3164 unibyte_display_via_language_environment correctly.
3165
20401fcc
KH
3166 * regex.c (regex_compile): Change the way of handling a range from
3167 unibyte char to multibyte char.
3168
3169 * syntax.c (skip_chars): Change the way of handling a range from
3170 unibyte char to multibyte char.
3171
eb991b25
KH
3172 * process.c (read_process_output): Cancel previous change.
3173
365dd325
EZ
31742000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
3175
c1b096cb
EZ
3176 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
3177
365dd325
EZ
3178 * charset.c (Ffind_charset_string): Doc fix.
3179 (Ffind_charset_region): Doc fix.
3180
eb483c2b
KH
31812000-10-11 Kenichi Handa <handa@mule.m17n.org>
3182
3183 * process.c (read_process_output): Fix previous change. Adjust
3184 multibyteness of text to insert in a buffer by
df3c11b9 3185 string_make_unibyte/multibyte instead of
eb483c2b
KH
3186 Fstring_as_unibyte/multibyte.
3187
b40bfb99
AS
31882000-10-10 Andreas Schwab <schwab@suse.de>
3189
3190 * alloc.c (mark_object): Remove all workarounds installed on
3191 1993-08-08.
3192
caff31d4
KH
31932000-10-10 Kenichi Handa <handa@etl.go.jp>
3194
3195 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
3196 returning.
3197 (base64_encode_1): Make it work for a text of multibyte form.
3198 (Fbase64_decode_region): Allocate sufficient memory for multibyte
3199 case. Don't call str_to_multibyte because base64_decode_1
3200 produces correct multibyte form for eight-bit codes.
3201 (Fbase64_decode_string): Adjusted for the change of
3202 base64_decode_1.
3203 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
3204 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
3205 codes.
3206
3207 * charset.h (CHAR_STRING): Optimized for single byte characters.
3208
cba026ef
AS
32092000-10-09 Andreas Schwab <schwab@suse.de>
3210
3211 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
3212 -1 after socket is closed, to fall through to error processing.
3213
1e21fe48
EZ
32142000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
3215
3216 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 3217 variables. If ALIST includes foreground-color or
1e21fe48
EZ
3218 background-color, change also the colors of the default face for
3219 this frame.
3220
a640322e
EZ
32212000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3222
3223 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
3224 them extern (they are defined on xfaces.c).
3225 (syms_of_msdos): Don't intern and don't staticpro
3226 Qbackground_color and Qforeground_color.
3227
a115794c
EZ
32282000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
3229
3230 * frame.c (Fframe_parameter): For non-windowed frames, if
3231 f->param_alist says foreground or background color is unspecified,
3232 call tty_color_name to return the color name computed from the
3233 frame's current colors.
3234
f5533b63
DL
32352000-10-06 Dave Love <fx@gnu.org>
3236
3237 * terminfo.c (ospeed): Don't declare.
3238
3239 * sysdep.c: Don't include string.h.
3240 (h_errno): Declare conditional also on TRY_AGAIN.
3241
3242 * charset.c (Ffind_charset_string): Doc fix.
3243
3244 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
3245 (Fbase64_decode_region, Fbase64_decode_string): More explicit
3246 error messages.
3247
2b06561a
DL
32482000-10-05 Dave Love <fx@gnu.org>
3249
3250 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
3251 position like menu-bar.
3252
ca839c85
GM
32532000-10-05 Gerd Moellmann <gerd@gnu.org>
3254
3255 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
3256
3257 * xdisp.c (handle_single_display_prop): Use safe_call1.
3258 (safe_call): Renamed from call_function.
3259 (safe_call1): New function.
3260 (handle_fontified_prop): Use safe_call1 instead of call1.
3261 (safe_eval): Renamed from eval_form.
3262 (safe_eval_handler): Renamed from eval_handler.
3263 (handle_single_display_prop, display_mode_element): Use safe_eval
3264 instead of eval_form.
3265
3266 * xfaces.c (merge_face_heights): Use safe_call instead of
3267 call_function.
3268
3269 * keyboard.c (show_help_echo): Use safe_call instead of
3270 call_function; use safe_eval instead of eval_form.
3271
3272 * lisp.h (safe_call): Renamed from call_function.
3273 (safe_eval): Renamed from eval_form.
3274 (safe_call1): Add prototype.
3275
a3489ece
MB
32762000-10-05 Miles Bader <miles@lsi.nec.co.jp>
3277
3278 * xfns.c (image_ascent): Rearrange ascent calculation for the
3279 has-a-font case.
3280
35810b6f
SM
32812000-10-04 Stefan Monnier <monnier@cs.yale.edu>
3282
3283 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
3284 (where_is_internal_1): Don't bother ignoring menu-items any more.
3285
3dc78168
GM
32862000-10-04 Gerd Moellmann <gerd@gnu.org>
3287
3288 * keyboard.c (update_menu_bindings): New variable.
3289 (parse_menu_item): Use AREF. If update_menu_bindings
3290 is 0, don't update menu bindings.
3291 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
3292
1efc2bb9
EZ
32932000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
3294
3295 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
3296 to `mark_object'.
3297
3f679f55
SM
32982000-10-02 Stefan Monnier <monnier@cs.yale.edu>
3299
3300 * syntax.c (forw_comment): Match nestedness of ender/starter.
3301 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
3302 (prev_char_comstart_first): Remove.
3303 (back_comment): Check two-char comment markers more carefully
3304 to better handle overlapping cases like *//* or /* */* */ ...
3305 Match nestedness of ender/starter.
3306
2021ab61
DL
33072000-10-02 Dave Love <fx@gnu.org>
3308
3309 * config.in (HAVE_GAI_STRERROR): Add undef.
3310
3311 * process.c (Fopen_network_stream): Use it.
3312
3313 * m/alpha.h (NO_REMAP): Don't define.
3314
64e6cc18
GM
33152000-10-02 Gerd Moellmann <gerd@gnu.org>
3316
3317 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
3318 return with a string converted to an integer or vice versa when
3319 Vmocklisp_arguments is t.
3320 (Fsignal): Likewise. The function can return for `quit'.
3321 (struct gcpro): Declare member `var' to point to a volatile
3322 Lisp_Object.
3323
3324 * eval.c (error): Prevent compiler warning.
3325
b1904cd9
SM
33262000-09-30 Stefan Monnier <monnier@cs.yale.edu>
3327
3328 * keymap.c (keymap_memberp): New function.
3329 (Fset_keymap_parent): Use it.
3330 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
3331 Use keymap_memberp to avoid creating cycles.
3332 (access_keymap): Use KEYMAPP.
3333
71c9ec51
GM
33342000-09-30 Gerd Moellmann <gerd@gnu.org>
3335
3336 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
3337 gai_strerror. Make sure xerrno is set if connect fails. Improve
3338 error recovery.
71c9ec51 3339
c70c6b58
JR
33402000-09-29 Jason Rumney <jasonr@gnu.org>
3341
3342 * w32term.c (w32_char_font_type, w32_encode_char)
3343 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
3344 (w32_bdf_per_char_metric): New function.
3345 (w32_per_char_metric): Use it.
3346 (x_draw_glyph_string_background): Always draw background for BDF
3347 glyphs.
3348
3349 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
3350 GDI object which is a scarce resource.
3351
3352 * w32bdf.c (search_file_line): Fix skipping of whitespace.
3353 (get_quoted_string): Fix limit on memchr search.
3354 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
3355 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
3356 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
3357 (get_cached_font_char, cache_char_offset): Use macro
3358 BDF_CODEPOINT_RANGE_COVER_P.
3359 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
3360 (clear_cached_bitmap_slots): New function.
3361 (GET_HEX_VALUE): G-Z, g-z are not hex.
3362 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
3363 (get_bitmap_with_cache): Use new cache implementation.
3364 (create_offscreen_bitmap): New function.
3365 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
3366
3367 * w32term.c (x_produce_glyphs): If the distance from the current
3368 position to the next tab stop is less than a canonical character
3369 width, use the tab stop after that.
3370 (x_draw_glyphs): Handle case START and END are out of bounds more
3371 carefully.
3372 (x_clear_mouse_face): Block/unblock input.
3373 (x_display_and_set_cursor): Don't show a hollow box cursor for
3374 buffers whose cursor_type is nil.
3375
fe01239f
GM
33762000-09-29 Gerd Moellmann <gerd@gnu.org>
3377
3378 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
3379 disappears.
3380
3381 * dispextern.h (updating_frame): Declare extern.
3382
e7c52f1f
AS
33832000-09-29 Andreas Schwab <schwab@suse.de>
3384
3385 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
3386
de6e1f7c
GM
33872000-09-29 Gerd Moellmann <gerd@gnu.org>
3388
25126faa
GM
3389 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
3390 use its function definition.
3391 (tool_bar_items): Likewise.
3392
de6e1f7c
GM
3393 * lisp.h (fatal): Declare NO_RETURN.
3394
454ee39b
KH
33952000-09-29 Kenichi Handa <handa@etl.go.jp>
3396
3397 * keymap.c: Remove the line "#undef NULL".
3398
96301c5f
GM
33992000-09-28 Gerd Moellmann <gerd@gnu.org>
3400
3401 * xterm.c (x_make_frame_visible): Try harder to make the frame
3402 visible.
3403
efffeeb4
DL
34042000-09-28 Dave Love <fx@gnu.org>
3405
ecb8b666
DL
3406 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
3407
dc3cd20f
DL
3408 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
3409
3410 * .gdbinit (xreload): Note its need on GNU/Linux.
3411
efffeeb4
DL
3412 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
3413 r_alloc, r_alloc_free.
3414
8610d903
KH
34152000-09-28 Kenichi Handa <handa@etl.go.jp>
3416
3417 * syntax.c (skip_chars): Handle negation correctly.
3418
8901d1ac
GM
34192000-09-27 Gerd Moellmann <gerd@gnu.org>
3420
6f22f1ad
GM
3421 * xfaces.c (realize_default_face): Call set_lface_from_font_name
3422 with non-zero FORCE_P argument.
3423
8901d1ac
GM
3424 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
3425 Add assertions.
3426
3427 * xdisp.c (window_box_height): Add an assertion.
3428
3429 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
3430 tool-bar than is available.
3431 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
3432
36f1966f
DL
34332000-09-27 Dave Love <fx@gnu.org>
3434
efffeeb4 3435 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 3436
31d929e5
GM
34372000-09-26 Gerd Moellmann <gerd@gnu.org>
3438
c98863bf
GM
3439 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
3440 instead of BITS_PER_INT.
3441 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
3442 EMACS_UINT, respectively.
3443 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
3444
3445 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
3446
3447 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
3448
77072ab1
GM
3449 * window.c (freeze_window_starts): Construct last argument for
3450 foreach_window differently.
3451
3452 * xfns.c (x_decode_color): Don't return a Lisp_Object.
3453
3454 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
3455 EMACS_UINT instead of `int' and `unsigned int'.
3456 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
3457
3458 * frame.h (struct frame): Make the `nothing' member of union
3459 output_data an EMACS_INT.
3460
31d929e5
GM
3461 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
3462 hunting.
3463 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
3464 size in the sdata structure.
3465 (SDATA_NBYTES, SDATA_DATA): New macros.
3466 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
3467 differently for the different layout of the sdata structure.
3468 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
3469 in sdata.
3470 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
3471 Check that size recorded in the string size and size recorded in
3472 the sdata structure agree.
3473
3e60b029
DL
34742000-09-25 Dave Love <fx@gnu.org>
3475
3476 * buffer.c: Include stdio.h.
3477
3478 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
3479
3480 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
3481
3482 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
3483 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
3484 size_t.
3485 (__malloc_extra_blocks): Declare as __malloc_size_t.
3486
8ff16b4e
GM
34872000-09-25 Gerd Moellmann <gerd@gnu.org>
3488
755a2ccd
GM
3489 * alloc.c (mark_image): Use GC_NILP instead of NILP.
3490
d8b4516f
GM
3491 * keyboard.c (show_help_echo): Set help_echo_showing_p.
3492 (read_char): If help-echo is showing, preserve the echo area
3493 when redisplaying.
3494
3495 * xdisp.c (help_echo_showing_p): New variable.
3496 (set_message): Reset it to 0.
3497 (init_xdisp): Initialize help_echo_showing_p.
3498
3499 * dispextern.h (help_echo_showing_p): Declare extern.
3500
3501 * config.in: Fix typo in __GNUC_MINOR__.
3502
3503 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
3504
b11af2dd
GM
3505 * s/freebsd.h (POSIX_SIGNALS): Define.
3506
8ff16b4e
GM
3507 * xterm.c (x_clear_mouse_face): Block/unblock input.
3508
844eb643
DL
35092000-09-24 Dave Love <fx@gnu.org>
3510
3511 * fns.c (base64_encode_1): Fix last change.
3512
b30ab1b3
GM
35132000-09-22 Gerd Moellmann <gerd@gnu.org>
3514
3515 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
3516
3517 * xdisp.c (try_window_reusing_current_matrix): More fixes
3518 for the case window has a header-line.
3519
c6cbe5f0
DL
35202000-09-22 Dave Love <fx@gnu.org>
3521
4c7c1f3f
DL
3522 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
3523 a doc string.
3524
3525 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
3526
c6cbe5f0
DL
3527 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
3528
550a625e
GM
35292000-09-21 Gerd Moellmann <gerd@gnu.org>
3530
4c7c1f3f 3531 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
3532 for GCC >= 2.5.
3533
3534 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
3535 NO_RETURN.
3536
80d26f99
GM
3537 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
3538 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
3539 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
3540 warnings.
3541
3542 * marker.c (byte_char_debug_check): Return void.
3543
623a0aae
GM
3544 * xfns.c (Fx_create_frame): Set default frame parameter value
3545 for tool-bar-lines to 1.
3546
3547 * dispnew.c (scrolling_window): Compare y-positions of rows
3548 equal at the start. Some simplification.
3549
3550 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
3551 reused rows' y-position in the case window has a header-line, and
3552 new window start is greater than old window start.
3553
42ac0ae5
GM
3554 * process.c (process_sent_to): New variable.
3555 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
3556 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
3557 Declare more parameters volatile.
3558
550a625e
GM
3559 * lread.c (Vrecursive_load_depth_limit): New variable.
3560 (Fload): Check recursive loads whose recursion depth exceeds
3561 Vrecursive_load_depth_limit.
3562 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
3563
8320414c
GM
35642000-09-20 Gerd Moellmann <gerd@gnu.org>
3565
f46c275e
GM
3566 * fileio.c (Fread_file_name): Doc fix.
3567
3568 * editfns.c (Fmessage_or_box): Doc fix.
3569
3570 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
3571
b7e11c5b
GM
3572 * xfns.c (xbm_scan): Allow C-style comments.
3573
8320414c
GM
3574 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
3575 symbols are specified, add color translations to the cache.
3576 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
3577 functions.
3578 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
3579 xpm_cache_color.
3580 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
3581 structures to xpm_init_color_cache.
3582
da1608d9
GM
35832000-09-19 Gerd Moellmann <gerd@gnu.org>
3584
3585 * dispnew.c (update_window_line): Make sure to always draw
3586 mode-lines.
3587
6badfa25
AI
35882000-09-19 Andrew Innes <andrewi@gnu.org>
3589
3590 * makefile.nt (bootstrap-emacs): Don't change directory.
3591
3a5f42bb
KH
35922000-09-19 Kenichi Handa <handa@etl.go.jp>
3593
1b7649bd
KH
3594 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
3595
3a5f42bb
KH
3596 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
3597 If output buffer is too small, signal an appropriated error.
3598
9f83cf0b
DL
35992000-09-18 Dave Love <fx@gnu.org>
3600
3601 * keyboard.c (menu_bar_items, tool_bar_items)
3602 (current_active_maps): Remove redundant get_local_map call.
3603
28c7826c
GM
36042000-09-18 Gerd Moellmann <gerd@gnu.org>
3605
5cefa566
GM
3606 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
3607 cursor for buffers whose cursor_type is nil.
3608
6fed3546
GM
3609 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
3610 a feature to implement that is already implemented.
3611 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
3612 warnings.
3613
3614 * xfns.c (x_clear_image_1): New function.
3615 (x_clear_image): Use it.
3616 (x_from_xcolors): Use x_clear_image_1; don't free the image's
3617 mask.
3618
05b1f851
GM
3619 * dispnew.c (update_window): Move test for invisible lines
3620 at the top to update_window_line.
3621 (update_window_line): Handle invisible lines here.
3622
f4779de9
GM
3623 * xfns.c (clear_image_cache): Clear current matrices of all
3624 frames sharing an image cache. Block input while freeing
3625 images. Fix timestamp comparison.
3626 (x_clear_image): Also free the mask.
3627
28c7826c
GM
3628 * xfns.c (lookup_image): Block input while loading the image so
3629 that we won't get interrupted in a state where the image isn't yet
3630 set up completely.
3631 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
3632 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
3633 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
3634 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
3635 input.
3636
b7412313
GM
36372000-09-16 Gerd Moellmann <gerd@gnu.org>
3638
3639 * dispnew.c (update_window): Make sure to make desired rows
3640 current even if they are completely invisible at the top
3641 of a window.
3642
47e351a3
GM
36432000-09-15 Gerd Moellmann <gerd@gnu.org>
3644
7f8f1edc
GM
3645 * xfns.c (lookup_image): Build mask before applying an algorithm.
3646 Recognize algorithm `disabled'.
3647 (cross_disabled_images): New variable.
3648 (COLOR_INTENSITY): New macro.
3649 (x_detect_edges): Use COLOR_INTENSITY.
3650 (x_disable_image): New function.
3651 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
3652
3653 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
3654 disabled state, don't apply an image transformation algorithm if
3655 the user specified an image for the disabled state. Use
28c7826c 3656 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
3657 user hasn't specified an image.
3658
ebb8f116
GM
3659 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
3660 allocation functions with the XPM lib.
3661 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
3662 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
3663 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
3664 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
3665 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
3666 functions.
3667 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
3668 functions, if possible, because these handle color allocation
3669 failure more gracefully.
3670 (Fimage_mask_p): New function.
3671
47e351a3
GM
3672 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
3673 (Qedge_detection, Qheuristic): New symbols.
3674 (syms_of_xfns): Initialize new symbols.
3675 (lookup_image): Handle `:mask X', `:algorithm emboss', and
3676 `algorithm (edge-detection ...)'.
3677 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
3678 (tiff_format, gif_format, gs_format): Add `:mask'.
3679 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
3680 (GIF_MASK, GS_MASK): New enumerators.
3681 (x_laplace_read_row, x_laplace_write_row): Functions removed.
3682 (emboss_matrix, laplace_matrix): New variables.
3683 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
3684 (x_edge_detection): New functions.
3685 (x_laplace): Rewritten in terms of x_detect_edges.
3686 (x_build_heuristic_mask): If image has a mask, free it.
3687
fe83b953
AI
36882000-09-14 Andrew Innes <andrewi@gnu.org>
3689
3690 * makefile.w32-in: Revert to Unix line endings.
3691
3021e816
AI
36922000-09-14 Andrew Innes <andrewi@gnu.org>
3693
3694 * makefile.w32-in: Standardize indentation somewhat.
3695 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
3696 cater for differences between shells.
3697
3698 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
3699
2a32b5ea
GM
37002000-09-14 Gerd Moellmann <gerd@gnu.org>
3701
3702 * xterm.c (x_produce_glyphs): If the distance from the current
3703 position to the next tab stop is less than a canonical character
3704 width, use the tab stop after that.
3705
b4331e96
DL
37062000-09-14 Dave Love <fx@gnu.org>
3707
3708 * buffer.c (alloc_buffer_text): Fix xmalloc call.
3709
ef9e4345
GM
37102000-09-14 Gerd Moellmann <gerd@gnu.org>
3711
085536c2
GM
3712 * xdisp.c (handle_fontified_prop): While running fontification
3713 functions, bind `fontification-functions' and
3714 `after-change-functions' to nil.
3715
ef9e4345
GM
3716 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
3717 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
3718
3719 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
3720
3721 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
3722 USE_MMAP_FOR_BUFFERS.
3723
3724 * insdel.c (make_gap): Use enlarge_buffer_text.
3725
3726 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
3727 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
3728 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
3729 from former r_alloc_* functions in ralloc.c.
3730 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
3731 variables.
3732 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
3733 (mmap_init) [REL_ALLOC_MMAP]: New function.
3734 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
3735 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
3736 BUFFER_FREE.
3737
3738 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
3739 (enlarge_buffer_text): Add prototype.
3740
3741 * ralloc.c: Remove everything having to do with the use of mmap.
3742
f8608968
GM
37432000-09-13 Gerd Moellmann <gerd@gnu.org>
3744
2a494b2d
GM
3745 * sound.c (Fplay_sound): Doc fix.
3746
8c907a56
GM
3747 * keyboard.c: Avoid some more compiler warnings.
3748 (parse_tool_bar_item): Ignore cached key bindings.
3749
f8608968
GM
3750 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
3751 and allocation of Lisp data.
3752
6ab70e9a
GM
37532000-09-12 Gerd Moellmann <gerd@gnu.org>
3754
d12d0a9b
GM
3755 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
3756 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
3757 defaults first.
3758
6ab70e9a
GM
3759 * lread.c (Fload): Put code checking for recursive loads in #if 0.
3760
63c36c3c
KH
37612000-09-12 Miyashita Hisashi <himi@meadowy.org>
3762
3763 * ccl.c: Comment fixed.
3764 (MAX_MAP_SET_LEVEL): Increased to 30.
3765 (PUSH_MAPPING_STACK): Enclose with do-while block.
3766 (POP_MAPPING_STACK): Likewise.
3767 (stack_idx_of_map_multiple): New variable.
3768 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
3769 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
3770 call the corresponding CCL program by
3771 CCL_CALL_FOR_MAP_INSTRUCTION.
3772 (ccl_driver) <CCL_MapSingle>: Likewise.
3773 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
3774 with the case where looking up process reaches to the end of
3775 map-set, and call CCL programs as the above change.
3776
7ee3bd7b
GM
37772000-09-11 Gerd Moellmann <gerd@gnu.org>
3778
8ec8a5ec
GM
3779 * xfns.c (png_load, jpeg_load): Declare some variables volatile
3780 that might be clobbered by longjmp.
3781 (check_x_display_info, x_decode_color, create_frame_xic)
3782 (Fx_display_backing_store, Fx_display_visual_class)
3783 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
3784 warnings.
3785
f74b0705
GM
3786 * lread.c (init_lread): Set Vloads_in_progress to nil.
3787 (Fload): Show list of recursively loaded files, when signaling an
3788 error.
3789
7ee3bd7b
GM
3790 * lread.c (Vloads_in_progress): New variable.
3791 (record_load_unwind): New function.
3792 (Fload): Check for recursive loads.
3793 (syms_of_lread): Initialize Vloads_in_progress.
3794 (read_integer, read1): Avoid some compiler warnings.
3795
3796 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
3797 compiler warnings.
3798
974e1e5b
MB
37992000-09-11 Miles Bader <miles@gnu.org>
3800
3801 * editfns.c (Fbuffer_string): Doc fix.
3802
9824c4e3
GM
38032000-09-10 Gerd Moellmann <gerd@gnu.org>
3804
3805 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
3806
6a72fdd1
KR
38072000-09-09 Ken Raeburn <raeburn@gnu.org>
3808
3809 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
3810 whether to include other header files.
3811
28e6fb66
GM
38122000-09-09 Gerd Moellmann <gerd@gnu.org>
3813
3814 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 3815 by Fmemq as a boolean.
28e6fb66 3816
7f8b6551
SM
38172000-09-08 Stefan Monnier <monnier@cs.yale.edu>
3818
3819 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
3820
a8710abf
GM
38212000-09-08 Gerd Moellmann <gerd@gnu.org>
3822
d1a02881
GM
3823 * ralloc.c (mmap_fd): Remove initializer which can make it
3824 read-only in a dumped Emacs.
3825 (mmap_fd_1): New variable.
3826 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
3827 restore it from there.
3828 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
3829 unconditionally so that mmap_fd can be initialized there.
3830 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
3831 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
3832 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
3833
c454aac1
GM
3834 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
3835
3836 * xdisp.c (dump_glyph_row): Fix printf format string.
3837 (display_line, move_it_in_display_line_to): Avoid compiler
3838 warnings.
3839
fc653ef2
GM
3840 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
3841
3015eec0
GM
3842 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
3843 inheritance.
3844
bfe0ee88
GM
3845 * xdisp.c (try_window_id): When trying to locate cursor in
3846 unchanged rows at the top, handle the case that we can't find it.
3847
a8710abf
GM
3848 * xterm.c (x_draw_glyphs): Handle case START and END are out
3849 of bounds more carefully.
3850
6b7d4ae4
DL
38512000-09-08 Dave Love <fx@gnu.org>
3852
423193c5
DL
3853 * s/sol2.h (REL_ALLOC_MMAP): Define.
3854 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
3855
3856 * ralloc.c: Don't include string.h (redundant).
3857 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
3858 [!MAP_ANON]: Include fcntl.h.
3859 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
3860 (r_alloc, r_re_alloc, r_alloc_free)
3861 (mmap_enlarge, mmap_set_vars): Use it.
3862 (r_alloc_init_fd): New function.
3863 (__morecore) [SYSTEM_MALLOC]: Don't declare.
3864 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
3865 malloc type.
3866
3867 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
3868 Remove vm-limit.o.
3869
6b7d4ae4
DL
3870 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
3871 change to __NetBSD__.
3872
44d31981
KH
38732000-09-08 Kenichi Handa <handa@etl.go.jp>
3874
3875 * search.c (compile_pattern): Check the multibyteness of cached
3876 string and PATTERN.
3877
aad40737
MB
38782000-09-08 Miles Bader <miles@gnu.org>
3879
3880 * xfaces.c (default_face_vector): Function removed.
3881 (Finternal_merge_in_global_face): Restore old global/local
3882 attribute override order. Use inline loop instead of calling
3883 default_face_vector.
3884
91a211b5
GM
38852000-09-07 Gerd Moellmann <gerd@gnu.org>
3886
3887 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
3888 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
3889 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
3890 where necessary, in case POINTER_TYPE is `void'.
3891
03419440
EZ
38922000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * frame.c (make_terminal_frame): Initialize frame foreground and
3895 background colors to unspecified, for the initial instance of an
3896 MSDOS frame.
3897
f46f845b
GM
38982000-09-07 Gerd Moellmann <gerd@gnu.org>
3899
24f76fbf
GM
3900 * ralloc.c (mmap_find): Fix overlap computation.
3901 (mmap_enlarge): Compute nbytes before trying to find an
3902 overlapping region.
3903
f46f845b
GM
3904 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
3905 instead of `!='.
3906
3907 * lread.c (syms_of_lread): Change value of regexp
3908 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
3909
3910 * xmenu.c (xdialog_show): When looking up the selection in
3911 menu_items, take `quote' boundaries into account; this corresponds
3912 to a nil ITEM in x-popup-dialog.
3913
3c014385
KH
39142000-09-07 Kenichi Handa <handa@etl.go.jp>
3915
fd6f711b
KH
3916 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
3917 not 0x81.
3918 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
3919
3c014385 3920 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
3921 encoding, not decoding. Fix the handling of latin-jisx0201.
3922 Check for the charset katakana-jisx0201 too.
3c014385 3923 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 3924 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 3925
0da3ecef
GM
39262000-09-07 Gerd Moellmann <gerd@gnu.org>
3927
ab0ee409
GM
3928 * xfaces.c (Vparam_value_alist): New variable.
3929 (syms_of_xfaces): Initialize it.
3930 (Finternal_set_lisp_face_attribute): Avoid more consing.
3931
3932 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
3933 specially.
3934 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
3935 (Qbackground_mode): New variable.
3936 (syms_of_frame_1): Initialize Qbackground_mode.
3937
3938 * lisp.h (Qdisplay): Declare extern.
1091dd67 3939
0da3ecef
GM
3940 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
3941 change face on all frames, and change the default for new frames.
3942
b14654b9
DL
39432000-09-07 Dave Love <fx@gnu.org>
3944
3945 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
3946
d24fd56f
KH
39472000-09-07 Kenichi Handa <handa@etl.go.jp>
3948
794f3670
KH
3949 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
3950
0fddd0dc
KH
3951 * charset.c: Include composite.h
3952 (lisp_string_width): New function.
3953 (Fstring_width): Call lisp_string_width instead of strwidth.
3954
3955 * Makefile.in (charset.o): Depends on composite.h.
3956
d24fd56f
KH
3957 * process.c (read_process_output): Before inserting the decoded
3958 text in the buffer, adjust the multibyteness.
3959
fa0b693c
GM
39602000-09-06 Gerd Moellmann <gerd@gnu.org>
3961
73b77ee5
GM
3962 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
3963 buffer's text buffer is null, map new memory.
3964
0a58f946
GM
3965 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
3966 POINTER_TYPE and size_t.
3967 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
3968 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
3969 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
3970 [REL_ALLOC_MMAP]: New macros.
3971 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
3972 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
3973 [REL_ALLOC_MMAP]: New functions.
3974
3975 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
3976 before and after unexec.
3977
3978 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
3979 text buffers if necessary.
3980
3981 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
3982 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
3983 in prototypes.
3984
fa0b693c
GM
3985 * config.in (HAVE_MMAP): Add #undef.
3986
877055f6
GM
39872000-09-05 Gerd Moellmann <gerd@gnu.org>
3988
08ba3862
GM
3989 * frame.c (Qdisplay_type): New variable.
3990 (syms_of_frame_1): Initialize it.
3991 (Fframe_parameter): New function that avoids consing.
3992 (syms_of_frame): Defsubr it.
3993
66ffe51c
GM
3994 * buffer.c (Fother_buffer): Consider buffers as invisible when
3995 they are displayed in a window on an invisible frame.
3996
877055f6
GM
3997 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
3998 get-largest-window always return nil.
3999
bb970e67
GM
40002000-09-04 Gerd Moellmann <gerd@gnu.org>
4001
4002 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
4003 variable; recognize Emacs 19 elc files.
4004
7a3d0e0e
MB
40052000-09-04 Miles Bader <miles@gnu.org>
4006
4007 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
4008 before initially popping up the menu, so the menu doesn't flash
4009 when the face settings are significantly different from the
4010 defaults.
4011
14473664
SM
40122000-09-04 Stefan Monnier <monnier@cs.yale.edu>
4013
4014 * regex.c (WIDE_CHAR_SUPPORT): New macro.
4015 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
4016 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
4017 (BIT_UNIBYTE): Remove.
4018 (re_match_2_internal): Delete corresponding code and streamline the
4019 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
4020 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
4021 (re_wctype_t): New type.
4022 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
4023 (regex_compile): Use them and fix handling of overly long char classes.
4024
c1174479
AI
40252000-09-03 Andrew Innes <andrewi@gnu.org>
4026
f8803e97
AI
4027 * makefile.w32-in: Change to DOS line endings.
4028
c1174479
AI
4029 * s/ms-w32.h (ORDINARY_LINK): New define.
4030
4031 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
4032 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
4033
4034 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
4035 (distclean): Delete them here instead.
4036
44ef7cf6
AI
4037 * w32proc.c (compare_env): Convert to uppercase for comparison,
4038 not lowercase, to match how the native Windows shell works.
4039
49b3bd82
JR
40402000-09-03 Jason Rumney <jasonr@gnu.org>
4041
4042 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
4043 CVS changes the line-ends when checking in/out on DOS/Windows.
4044
4045 * makefile.nt (emacs): Do not change directory to run temacs, as
4046 the load-path is set relative to current directory.
4047
a3d35a39
MB
40482000-09-03 Miles Bader <miles@gnu.org>
4049
4050 * xterm.c (x_alloc_lighter_color_for_widget): New function.
4051
d276b0cf
GM
40522000-09-02 Gerd Moellmann <gerd@gnu.org>
4053
715e84c9
GM
4054 * xdisp.c (redisplay_mode_lines): New function.
4055 (display_mode_lines): Return number of mode lines displayed.
4056 (echo_area_display): Use redisplay_mode_lines to draw garbaged
4057 mode lines. Don't temporarily bind redisplay-dont-pause to t.
4058
8892f40b
GM
4059 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
4060 string.h and strings.h.
4061 (index) [HAVE_INDEX]: Add prototype.
4062
d276b0cf
GM
4063 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
4064 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
4065
4066 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
4067 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
4068
38404229
GM
40692000-09-01 Gerd Moellmann <gerd@gnu.org>
4070
4071 * lread.c (read1): Accept `?' as symbol constituent, for
4072 compatiblity with XEmacs.
4073
c0f9ea08
SM
40742000-08-31 Stefan Monnier <monnier@cs.yale.edu>
4075
4076 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
4077 (struct re_pattern_buffer): Remove newline_anchor.
4078 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
4079 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
4080 (re_max_failures, fail_stack): Use size_t rather than unsigned.
4081 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
4082 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
4083 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
4084 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
4085 Get rid of references to newline_anchor.
4086 (regcomp): Allocate and precompute a fastmap.
4087
8c0f83fe
GM
40882000-08-31 Gerd Moellmann <gerd@gnu.org>
4089
4090 * lread.c (openp): GCPRO local variable `filename'.
4091
4bb91c68
SM
40922000-08-30 Stefan Monnier <monnier@cs.yale.edu>
4093
4094 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
4095
4096 * regex.c: Merge some changes from GNU libc. Add prototypes.
4097 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
4098 Use memcmp and memcpy instead of bcopy and bcmp.
4099 (init_syntax_once): Use ISALNUM.
4100 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
4101 (REG_UNSET_VALUE): Remove. Use NULL instead.
4102 (REG_UNSET, re_match_2_internal): Use NULL.
4103 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
4104 New macros.
4105 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
4106 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
4107 (regex_compile): In handle_interval, return an error rather than try to
4108 unfetch the interval if we can't find the closing brace.
4109 Obey the RE_NO_GNU_OPS syntax bit.
4110 (TOLOWER): New macro.
4111 (regcomp): Use it.
4112 (regexec): Allocate regs.start and regs.end as one block.
4113
5226a931
GM
41142000-08-30 Gerd Moellmann <gerd@gnu.org>
4115
868dd24b
GM
4116 * xdisp.c (echo_area_display): Check display_completed instead
4117 of calling detect_input_pending.
4118
4119 * dispnew.c (update_frame): Only set display_completed here; move
4120 the update_begin and update_end calls here from update_frame_1.
4121 (update_frame_1): Don't set display_completed here, don't call
4122 update_begin/update_end.
4123
5226a931
GM
4124 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
4125 instead of store_frame_param.
4126
2a8bd25f
GM
41272000-08-29 Gerd Moellmann <gerd@gnu.org>
4128
4129 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
4130 desired window matrix hasn't been displayed, use the current row
4131 instead. Make sure that only those frame rows are updated for
4132 which there exists a corresponding enabled desired row.
4133
ba3478d9
MB
41342000-08-29 Miles Bader <miles@gnu.org>
4135
4136 * xfaces.c (default_face_vector): New function.
4137 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
4138
87d0f685
GM
41392000-08-29 Gerd Moellmann <gerd@gnu.org>
4140
4141 * lread.c (openp): Prevent temporary string passed to
4142 Ffile_readable_p from being garbage collected.
4143
6fa86045
DL
41442000-08-28 Dave Love <fx@gnu.org>
4145
4146 * keymap.c (store_in_keymap): Add `static' to declaration.
4147
bb17930d
GM
41482000-08-28 Gerd Moellmann <gerd@gnu.org>
4149
4150 * emacs.c, callint.c, doc.c, editfns.c
4151 (toplevel) [HAVE_STRING_H]: Include string.h.
4152 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
4153 (index): Remove prototypes which might conflict with non-standard
4154 definitions of index/strchr.
4155
4156 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
4157 (rindex): Define only if !HAVE_RINDEX.
4158
4159 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
4160
4161 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
4162
87188200
MB
41632000-08-28 Miles Bader <miles@gnu.org>
4164
4165 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
4166 made inconsistent by a font-related attribute in FROM.
4167 (merge_face_inheritance): Add function comment.
4168
41a68aef
KH
41692000-08-28 Kenichi Handa <handa@etl.go.jp>
4170
4171 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
4172 the 4th arg (PREV_EVENT) Qt to suppress input method.
4173
f7c436c1
SM
41742000-08-27 Stefan Monnier <monnier@cs.yale.edu>
4175
0b32bf0e
SM
4176 * regex.c: Indent cpp directives and remove parens after `defined'.
4177 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
4178 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
4179 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
4180 (re_compile_pattern): Use size_t for length.
4181 (init_syntax_once): Move to a better place.
4182 * regex.h: Merge changes from GNU libc. Indent cpp directives.
4183 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
4184
f7c436c1
SM
4185 * syntax.c (back_comment): Detect cases where a comment-starter is
4186 actually inside another comment as in: /* a // b */ c // d \n.
4187 Make it clear that `comstart_pos' is unused for nested comments.
4188
4189 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
4190 (KEYMAPP): New macro.
4191 (Fkeymap_parent, Fset_keymap_parent): Use it.
4192 (fix_submap_inheritance): Mark it static.
4193 (define_as_prefix, describe_buffer_bindings, describe_command)
4194 (describe_translation, describe_map): Complete prototypes.
4195
4196 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
4197
4198 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
4199 to better match the key-lookup behavior.
4200
6288c62f
GM
42012000-08-27 Gerd Moellmann <gerd@gnu.org>
4202
4203 * xfaces.c (lface_fully_specified_p): Handle :inherit.
4204 (Finternal_set_lisp_face_attribute): Fix typo in error message.
4205
e931344e
EZ
42062000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
4207
4208 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
4209 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
4210 (xterm.o): Depend on coding.h
4211
d10dfeef
KH
42122000-08-26 Kenichi Handa <handa@etl.go.jp>
4213
4214 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
4215 the corresponding '#endif'.
4216
2d73e8d3
MB
42172000-08-26 Miles Bader <miles@gnu.org>
4218
4219 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
4220 * xfaces.c (QCinherit): New variable.
4221 (syms_of_xfaces): Initialize it.
4222 (LFACE_INHERIT): New macro.
4223 (Finternal_get_lisp_face_attribute)
4224 (merge_face_vector_with_property)
4225 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
4226 (check_lface_attrs): Allow new types of face height. Check
4227 inherit attribute.
4228 (CYCLE_CHECK): New macro.
4229 (merge_face_inheritance): New function.
4230 (merge_face_vectors): Merge inherited faces too. Add F and
4231 CYCLE_CHECK arguments.
4232 (merge_face_vector_with_property, Finternal_merge_in_global_face)
4233 (lookup_named_face, lookup_derived_face, realize_named_face)
4234 (face_at_string_position, face_at_buffer_position): Supply
4235 new F and CYCLE_CHECK arguments to merge_face_vectors.
4236 (merge_face_heights): New function.
4237 (merge_face_vectors, merge_face_vector_with_property)
4238 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
4239 handle relative face heights.
4240 (lface_same_font_attributes_p): Compare heights using EQ.
4241
6ce974d4
KH
42422000-08-26 Kenichi Handa <handa@etl.go.jp>
4243
4244 * charset.c (char_to_string): Check the character validity.
4245 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
4246 0.
4247
dc1e502d
SM
42482000-08-25 Stefan Monnier <monnier@cs.yale.edu>
4249
4250 * regex.c (PUSH_FAILURE_COUNT): New macro.
4251 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
4252 Handle popping of a register's or a counter's data.
4253 (POP_FAILURE_POINT): Use the new name.
4254 (re_match_2_internal): Push counter data on the stack for succeed_n,
4255 jump_n and set_number_at and remove misleading dead code in succeed_n.
4256
bd9d0f3f
GM
42572000-08-25 Gerd Moellmann <gerd@gnu.org>
4258
4259 * xdisp.c (redisplay_internal): If considering all windows on all
4260 frames, update the display for each frame as soon as possible,
4261 instead of first building all desired matrices for all frames, and
4262 then updating them all.
4263 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
4264
aa5b8e15
GM
42652000-08-24 Gerd Moellmann <gerd@gnu.org>
4266
17494071
GM
4267 * bytecode.c (mark_byte_stack): Add a comment.
4268
aa5b8e15
GM
4269 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
4270 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
4271 a graphical frame.
4272
c543db81
KH
42732000-08-24 Kenichi Handa <handa@etl.go.jp>
4274
d246d5f5
KH
4275 * minibuf.c (do_completion): Always use compare-string, not
4276 string-equal because the latter doesn't pay attention to
4277 multibyteness of strings.
4278
c543db81
KH
4279 * process.c (create_process): Don't setup raw-text coding here.
4280 (Fopen_network_stream): Don't set coding->src_multibyte and
4281 coding->dst_multibyte here.
4282 (read_process_output): For process filter, return unibyte string
4283 if default-enable-multibyte-characters is nil.
4284 (send_process): If OBJECT is multibyte text, be sure to encoded it
4285 by the specified coding system for the process. Otherwise, setup
4286 raw-text coding.
4287 (init_process): Don't initialize default-process-coding-system
4288 here.
4289
9b47cfe0
EZ
42902000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
4291
4292 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
4293 <scroll-down-aggressively>: Likewise.
4294
f5a36960
KH
42952000-08-23 Kenichi Handa <handa@etl.go.jp>
4296
4297 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
4298 zero. Set coding->produced_char correctly.
4299
69a7ffa7
AI
43002000-08-22 Andrew Innes <andrewi@gnu.org>
4301
4302 * makefile.w32-in: New file.
4303
4304 * unexw32.c (unexec): Ignore old_name, and use the actual location
4305 of the current executable instead. Base new_name on this.
4306
4307 * w32proc.c (create_child): Remove reference to security
4308 descriptor, which isn't needed and doesn't compile with mingw32.
4309
4310 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4311 up dllimport attributes.
4312 (x_update_window_end): Update prototype.
4313
4314 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
4315 extern, which screws up dllimport attributes.
4316
4317 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4318 up dllimport attributes.
4319
4320 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
4321 screws up dllimport attributes.
4322
4323 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4324 up dllimport attributes.
4325 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
4326 screws up dllimport attributes.
4327
4328 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4329 up dllimport attributes.
4330
4331 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
4332 screws up dllimport attributes.
4333
4334 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
4335 screws up dllimport attributes.
4336
4337 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4338 up dllimport attributes.
4339
4340 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
4341 unnecessary extern, which screws up dllimport attributes.
4342 (main): Ditto.
4343
4344 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4345 up dllimport attributes.
4346
4347 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
4348 unnecessary extern, which screws up dllimport attributes.
4349
4350 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
4351 screws up dllimport attributes.
4352
4353 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
4354 up dllimport attributes.
4355
4356 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
4357
4358 * w32bdf.c (search_file_line):
4359 (set_bdf_font_info):
4360 (seek_char):
4361 (w32_get_bdf_glyph):
4362 (w32_BDF_to_x_font): Fix compile warnings.
4363
4364 * w32menu.c: Include keyboard.h before frame.h. Fix compile
4365 warnings.
4366
4367 * w32select.c: Include keyboard.h before frame.h.
4368
4369 * w32fns.c (max): Define macro.
4370 (JOHAB_CHARSET): Define if not known.
4371 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
4372 (Fx_show_tip): Synch with X version.
4373
4374 * w32xfns.c: Include keyboard.h before frame.h.
4375
4376 * w32fns.c: Include keyboard.h before frame.h.
4377
4378 * w32term.c: Include keyboard.h before frame.h.
4379
4380 * fontset.c: Include keyboard.h before frame.h.
4381
4382 * w32inevt.c: Include keyboard.h before frame.h.
4383 (MOUSE_MOVED): Define if not known.
4384
4385 * minibuf.c: Include keyboard.h before frame.h.
4386
4387 * keyboard.c: Include keyboard.h before frame.h.
4388
4389 * indent.c: Include keyboard.h before frame.h.
4390
4391 * dispnew.c: Include keyboard.h before frame.h.
4392
4393 * buffer.c: Include keyboard.h before frame.h.
4394
4395 * alloc.c: Include keyboard.h before frame.h.
4396
4397 * print.c: Include keyboard.h before frame.h.
4398
4399 * process.c: Include keyboard.h before frame.h.
4400
4401 * scroll.c: Include keyboard.h before frame.h.
4402
4403 * sysdep.c: Include keyboard.h before frame.h.
4404
4405 * term.c: Include keyboard.h before frame.h.
4406
4407 * window.c: Include keyboard.h before frame.h.
4408
4409 * xdisp.c: Include keyboard.h before frame.h.
4410 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
4411
4412 * frame.c: Include keyboard.h before frame.h.
4413
4414 * w32heap.h: Undefine min, max.
4415
4416 * w32gui.h: Undefine min, max.
4417
4418 * unexw32.c: Change PUCHAR to PCHAR.
4419 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
4420 (relocate_offset):
4421 (get_section_info):
4422 (copy_executable_and_dump_data): Remove unnecessary static defs.
4423 (copy_executable_and_dump_data): Fix compile warnings.
4424
4425 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
4426
4427 * w32console.c (min): Define macro.
4428 (clear_frame, write_glyphs): Fix compile warning.
4429
4430 * w32proc.c (compare_env):
4431 (find_child_console): Fix compile warning.
4432
4433 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
4434 sys_errlist instead of _sys_errlist.
4435 (get_emacs_configuration_options): New function.
4436
4437 * s/ms-w32.h (sys_nerr): Provide default definition.
4438 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
4439 name with _ prepended.
4440 (NSIG): Define if not known.
4441 (get_emacs_configuration): Provide extern declaration.
4442 (get_emacs_configuration_options): Provide extern declaration.
4443 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
4444
4445 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
4446 (map_w32_filename):
4447 (read_unc_volume): Fix compile warning.
4448
4449 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
4450 definitions from being used.
4451
4452 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
4453
4454 * w32.c (unc_volume_file_attributes):
4455 (open_unc_volume): Make arg const.
4456
4457 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
4458 (read_input_waiting): Remove excess parameter.
4459
4460 * w32.c (init_environment): Call _access.
4461 (check_windows_init_file): Call _close.
4462 (init_user_info): Call _putenv.
4463 (init_environment): Call _putenv and _strdup.
4464 (init_ntproc): Reset volume info cache on startup.
4465
4466 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
4467 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
4468 cannot override the CRT malloc.
4469
4470 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
4471 (LINK_FLAGS): Append to original value of LINK_FLAGS.
4472
4473 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
4474 unless we are linking with a static CRT.
4475 (RVA_TO_PTR): Cast result to unsigned char*.
4476
4477 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
4478 (add_volume_info): Use xstrdup.
4479
25060080
SM
44802000-08-22 Stefan Monnier <monnier@cs.yale.edu>
4481
4482 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
4483 (do_completion, Fminibuffer_complete_word): Use it.
4484 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
4485 var so it can take non-boolean values.
4486
6917e6bb
GM
44872000-08-21 Gerd Moellmann <gerd@gnu.org>
4488
acb7cc89
GM
4489 * editfns.c (find_field): Formatting changes.
4490 (toplevel): Some old-style function forward declarations
4491 changed to prototypes, some new protypes added, some functions
4492 made static.
4493
4494 * lisp.h (set_time_zone_rule): Add prototype.
4495 (use_dialog_box): External declaration.
4496
0bbfdc25
GM
4497 * keyboard.c (gen_help_event): Add parameter SIZE.
4498 (kbd_buffer_events_waiting): Slightly rewritten.
4499 (clear_event): New function.
4500 (kbd_buffer_get_event): Use it, and clear the input_events of
4501 HELP_EVENTs.
4502 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
4503 don't fill the newly created array with nils.
4504 (toplevel): Convert some old-style function forward declarations
4505 to prototypes.
4506
4507 * keyboard.h (gen_help_event): Change prototype.
4508
4509 * xterm.c (XTread_socket): Change calls to gen_help_event.
4510
4511 * w32term.c (w32_read_socket): Change calls to gen_help_event.
4512
6917e6bb
GM
4513 * eval.c (Fmacroexpand): Doc fix.
4514
e5cd3d11
JR
45152000-08-20 Jason Rumney <jasonr@gnu.org>
4516
4517 * w32term.h (x_display_info_for_display): Remove as this function
4518 does not exist on W32.
4519
4520 * w32term.c (help_echo_window): New variable.
4521 (syms_of_w32term): staticpro it.
4522 (note_mode_line_highlight): Set it.
4523 (XTextExtents16): Removed as there is no equivalent on W32.
4524 (x_compute_glyph_string_overhangs): Incomplete body removed, as
4525 the X way of doing this will not work for W32.
4526 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
4527 (x_draw_image_foreground): Avoid drawing outside of the clip area
4528 when image doesn't have a mask.
4529 (note_mouse_highlight): Process overlays in the right order of
4530 priority. Set help_echo_window.
4531 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
4532 because that's more visible for large images.
4533
4534 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
4535 name to single_keymap_panes.
4536 (w32_menu_show): Set wv->title when dealing with titles.
4537 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
4538
6e69ab8c
MB
45392000-08-21 Miles Bader <miles@gnu.org>
4540
4541 * minibuf.c (do_completion): Try again if we rewrite the input
4542 string, but no completion was done, so that any completion message
4543 will be correct.
4544
511bd4eb
GM
45452000-08-20 Gerd Moellmann <gerd@gnu.org>
4546
4547 * xfaces.c (lface_equal_p): Compare strings differently.
4548 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
4549 (realize_tty_face): Use them.
4550 (syms_of_xfaces): Initialize new variables.
4551 (map_tty_color): New function, extracted from realize_tty_face.
4552 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
4553 foreground or background color, store the new color name in the
4554 realized face; previous code trying to do this had no effect.
4555 (realize_tty_face): Use map_tty_color.
4556 (Fclear_face_cache): Set face_change_count and ensure thorough
4557 redisplay.
4558
1433385f
GM
45592000-08-19 Gerd Moellmann <gerd@gnu.org>
4560
511bd4eb
GM
4561 * undo.c (record_first_change, record_marker_adjustment): Don't
4562 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 4563
419ac0a2
KH
45642000-08-18 Kenichi Handa <handa@etl.go.jp>
4565
4566 * coding.c (decode_coding_string): Set members consumed,
4567 consumed_char, produced, produced_char of *coding correctly. If
4568 decode_coding doesn't consume any byte, don't try anymore.
4569 (encode_coding_string): Likewise.
4570
7eb9e30d
GM
45712000-08-18 Gerd Moellmann <gerd@gnu.org>
4572
511bd4eb
GM
4573 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
4574 conditional have void type, for Standard C compilers.
7eb9e30d
GM
4575
4576 * xdisp.c (redisplay_internal): Compare windows for equality with
4577 EQ, instead of applying XWINDOW to something that might not
4578 be a window.
4579
dd34a735
KH
45802000-08-18 Kenichi Handa <handa@etl.go.jp>
4581
4582 * fontset.c (Finternal_char_font): Search only the selected frame
4583 for a window of the current buffer.
4584
385ff9e3
GM
45852000-08-18 Gerd Moellmann <gerd@gnu.org>
4586
511bd4eb 4587 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
4588 Lisp_Objects.
4589
385ff9e3
GM
4590 * keyboard.c (kbd_buffer_get_event): Handle the case that the
4591 second half of a HELP_EVENT is found at the start of kbd_buffer.
4592
d6abb4c7
MB
45932000-08-18 Miles Bader <miles@gnu.org>
4594
4618074a
MB
4595 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
4596
d6abb4c7
MB
4597 * editfns.c (save_restriction_save): Rewrite to use markers.
4598 (save_restriction_restore): Rewrite to understand new form of data
4599 saved by save_restriction_save.
4600 (Fsave_restriction): Remove cautionary note in doc-string.
4601
a7b28523
GM
46022000-08-17 Gerd Moellmann <gerd@gnu.org>
4603
4604 * fileio.c (build_annotations): Add a comment explaining the
4605 return value of format-annotate-function. Replace a spurious call
4606 to Flength with a CONSP test. Call format-annotate-function with
4607 a fifth arg specifying how many times the function is been called
4608 in a row, to let it choose temporary buffers appropriately.
4609
03c9ed77
DL
46102000-08-17 Dave Love <fx@gnu.org>
4611
4612 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
4613 declare make_temp_name twice.
4614
4615 * lread.c: Prototype readevalloop, load_unwind,
4616 load_descriptor_unwind.
4617 (unreadpure): Give it an arg.
4618
4619 * unexalpha.c: Prototype fatal_unexec, mark_x,
4620 update_dynamic_symbols. Declare unexec as void.
4621
4622 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
4623 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
4624
4625 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
4626 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
4627 DOUG_LEA_MALLOC.
4628
4629 * alloca.c: Use #error.
4630 [POINTER_TYPE]: Use it.
4631
4632 * eval.c (Fdefvar): Doc fix.
4633
4634 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
4635 INITIALIZE_INTERVAL.
4636
4637 * buffer.h: Avoid DECLARE_INTERVALS.
4638
4639 * config.in: Add size_t.
4640
aae41d97
EZ
46412000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
4642
4643 * w16select.c (set_clipboard_data): If there's not enough memory
4644 to put text into clipboard, return 1, as Fw16_set_clipboard_data
4645 expects. In case of other failures, return 3.
4646 (system_error_msg): New error message.
4647 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
4648 system_error_msg.
4649
65aa5e85
GM
46502000-08-16 Gerd Moellmann <gerd@gnu.org>
4651
4652 * term.c (write_glyphs): Also turn off inverse video after turning
4653 off other appearances in case TS_exit_attribute_mode is not equal
4654 to TS_end_standout_mode.
4655 (insert_glyphs): Turn inverse video on/off for each run of glyphs
4656 with the same face.
4657 (turn_off_face): Reset standout_mode only if
4658 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
4659 is equal to TS_end_standout_mode.
4660
ece23901
KH
46612000-08-16 Kenichi Handa <handa@etl.go.jp>
4662
9d7bcb2e
KH
4663 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
4664 sequence at the end of the source block.
4665
ece23901
KH
4666 * ccl.c (Fccl_program_p): Docstring modified.
4667 (Fccl_execute): Likewise.
4668 (Fccl_execute_on_string): Likewise.
4669
5e30eaa2
EZ
46702000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4671
4672 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
4673
290602fd
KH
46742000-08-16 Kenichi Handa <handa@etl.go.jp>
4675
4676 The following changes are mainly to fix bugs of
4677 encode/decode-coding-string failing if encoding/decoding return
4678 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
4679 variable conversion_buffer.
4680
4681 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
4682 decrement dst_end to avoid buffer overflow in the later call of
4683 string_as_multibyte
4684
4685 * coding.h (conversion_buffer_size, conversion_buffer)
4686 (get_conversion_buffer): Extern deleted.
4687
4688 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
4689 (conversion_buffer, conversion_buffer_size): Variables deleted.
4690 (get_conversion_buffer): Function deleted.
4691 (struct conversion_buffer): New structure.
4692 (MAX_ALLOCA): New macro.
4693 (allocate_conversion_buffer): New macro.
4694 (extend_conversion_buffer, free_conversion_buffer): New functions.
4695 (ccl_coding_driver): Set coding->result.
4696 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
4697 this is the last block of source.
4698 (encode_coding): Likewise. Handle the source block as the last
4699 one only when the whole source text is consumed.
4700 (decode_coding_string): Handle the case that the output buffer is
4701 too small to decode the whole source text. Use
4702 allocate_conversion_buffer, extend_conversion_buffer and
4703 free_conversion_buffer, not get_conversion_buffer.
4704 (encode_coding_string): Likewise.
4705 (init_coding): Function deleted.
4706 (init_coding_once): Delete code to initialize
4707 conversion_buffer_size.
4708
4709 * emacs.c (main): Don't call init_coding.
4710
4711 * msdos.c (IT_write_glyphs): Use a locally declared
4712 conversion_buffer.
4713
4714 * term.c (write_glyphs): Use a locally declared conversion_buffer.
4715 (insert_glyphs): Likewise.
4716
4717 * w32console.c (write_glyphs): Use a locally declared
4718 conversion_buffer.
4719
b9f80d41
EZ
47202000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
4721
4722 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
4723 member of display_info is NULL.
4724
32dc52f7
GM
47252000-08-15 Gerd Moellmann <gerd@gnu.org>
4726
58ed0d3b
GM
4727 * alloc.c (compact_small_strings): Use safe_bcopy, add an
4728 assertion.
4729
32dc52f7 4730 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 4731 appearances with capability `me'.
32dc52f7
GM
4732 (write_glyphs): Switch on inverse video before each face change.
4733
4eb22d33
DL
47342000-08-14 Dave Love <fx@gnu.org>
4735
4736 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
4737 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
4738 (lisp_free): Declare and make static.
4739
4740 * window.c: Fix embedded comment.
4741 (syms_of_window): Fix doc string.
4742
90cbf47e
GM
47432000-08-14 Gerd Moellmann <gerd@gnu.org>
4744
4745 * keymap.c (push_key_description): If C without modifiers is < 32,
4746 make sure to print `C-' before `M-', like in the manual.
4747
440fc135
GM
47482000-08-11 Gerd Moellmann <gerd@gnu.org>
4749
4750 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
4751 since they aren't relocated anymore.
4752 (sxhash_string): Make sure returned hash code fits in a Lisp
4753 integer.
4754
4755 * xdisp.c (try_cursor_movement): Fix handling of cursor in
4756 partially visible line which is smaller than the window's
4757 height.
4758
6e264fad
KH
47592000-08-11 Kenichi Handa <handa@etl.go.jp>
4760
4761 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
4762 the multibyte form of eight-bit-control characters.
4763 (Fccl_execute_on_string): Initialize ccl->multibyte.
4764
4765 * ccl.h (struct ccl_program): New member multibyte.
4766
4767 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
4768
c371f69a
KH
47692000-08-11 Kenichi Handa <handa@etl.go.jp>
4770
4771 * regex.c (regex_compile) <normal_char>: Pay attention to
4772 multibyteness.
4773 (analyse_first) <exactn>: Setup fastmap correctly for
4774 eight-bit-control characters.
4775
47762000-08-11 Kenichi Handa <handa@etl.go.jp>
4777
4778 * termhooks.h (enum event_kind): New member
4779 multibyte_char_keystroke.
4780
4781 * keyboard.c (make_lispy_event): Handle the new event type
4782 multibyte_char_keystroke.
4783
4784 * xterm.c: Include coding.h.
4785 (XTread_socket): Work around a bug of XmbLookupString. If the
4786 input is from XIM, decode it according to the current locale. In
4787 that case, generate multibyte_char_keystroke events.
4788
b8ddbe71
KH
47892000-08-11 Kenichi Handa <handa@etl.go.jp>
4790
4791 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
4792 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
4793
47589c8c
GM
47942000-08-10 Gerd Moellmann <gerd@gnu.org>
4795
4796 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
4797 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
4798 (move_it_in_display_line_to): Record iterator's ascent and descent
4799 before producing glyphs, and restore them when we know the glyph
4800 doesn't fit on the line.
4801 (move_it_to): Restructured so that it's easier to debug. If
4802 moving to a vpos, and not moving to an x or character position,
4803 stop as soon as the specified vpos is reached; don't move further
4804 into that line because that might change the computed line height.
4805 (try_cursor_movement): New function, extracted from the cursor
4806 movement branch of redisplay_window. If ending on a partially
4807 visible line, don't try to scroll if the cursor line is taller
4808 than the window.
4809 (redisplay_window): Use try_cursor_movement.
4810
4811 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
4812 because that function doesn't cope with variable-height lines.
4813
4814 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
4815 box cursor because that's better visible for large images.
4816
c51bacd6
MB
48172000-08-10 Miles Bader <miles@gnu.org>
4818
4819 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
4820
bea56df7
GM
48212000-08-10 Gerd Moellmann <gerd@gnu.org>
4822
4823 * xdisp.c (Vmessages_buffer_name): New variable.
4824 (message_dolog): Use it.
4825 (syms_of_xdisp): Initialize it.
4826
99cd7364
EZ
48272000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4828
4829 * msdos.c (IT_note_mouse_highlight): Update the calls to
4830 overlays_at.
4831 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
4832 redundant now that keyboard.h is included.
4833
7d093d56
EZ
48342000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
4835
4836 * keyboard.c (kbd_buffer_events_waiting): New function.
4837
4838 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
4839
4840 * msdos.c: Include keyboard.h.
4841 (XMenuActivate): Empty no_event events from the event buffer. If
4842 no events are left after that, call clear_input_pending.
4843 (mouse_clear_clicks): New function, code moved from mouse_init.
4844 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
4845 mouse driver to ``forget'' any past clicks.
4846
4847 * Makefile.in (msdos.o): Depend on keyboard.h.
4848
41e757a6
GM
48492000-08-09 Gerd Moellmann <gerd@gnu.org>
4850
8e7bd231
GM
4851 * lisp.h (input_pending): External declaration.
4852
4853 * dispextern.h (Qredisplay_dont_pause): Declare extern.
4854
4855 * xdisp.c (echo_area_display): Display thoroughly if input is
4856 pending. Bind redisplay-dont-pause to t during the redisplay.
4857 in case input is pending.
4858
4859 * dispnew.c (Qredisplay_dont_pause): New variable.
4860 (syms_of_display): Initialize and staticpro it.
4861 (update_frame_1): Don't interrupt the display for pending input if
4862 redisplay_dont_pause is set.
4863
43028b7e
GM
4864 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
4865
41e757a6
GM
4866 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
4867
2f2174fa
KH
48682000-08-09 Miles Bader <miles@lsi.nec.co.jp>
4869
4870 * callproc.c (Fcall_process): Terminate the unwind-protect around
4871 the post-read-conversion of coding system.
4872
0a6fd67e
MB
4873 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
4874 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
4875 * buffer.h (overlays_at): Update prototype.
4876 * xdisp.c (next_overlay_change): Update call to overlays_at.
4877 * xfaces.c (face_at_buffer_position): Likewise.
4878 * textprop.c (Fget_char_property): Likewise.
4879 * xterm.c (note_mouse_highlight): Likewise.
4880
0c80756e
MB
4881 * minibuf.c (do_completion): Don't consider a simple change of
4882 case as `completion'.
4883
975f250a
KR
48842000-08-08 Ken Raeburn <raeburn@gnu.org>
4885
b347b3fd
KR
4886 * keyboard.c (syms_of_keyboard): Initialize
4887 last_point_position_buffer.
4888 * undo.c (record_delete): Make sure last_point_position_buffer is
4889 a buffer before comparing pointers.
4890
4891 * coding.h (decode_coding_string): Declare.
4892
4893 * intervals.h (Fprevious_single_char_property_change): Declare.
4894
4895 * textprop.c (Fprevious_single_char_property_change): Don't do
4896 arithmetic directly on lisp objects.
4897
25ad1371 4898 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
4899 objects.
4900
4901 * keyboard.h (menu_item_eval_property): Declare.
4902
4903 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
4904 reuse as buffer name, instead of recreating (and discarding) every
4905 time a message is logged.
4906 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
4907 (current_message_1, truncate_message_1, set_message_1)
4908 (display_echo_area_1, resize_mini_window_1): Signatures changed.
4909 (current_message, truncate_echo_area, display_echo_area)
4910 (resize_echo_area_axactly): Changed calls.
b347b3fd 4911
975f250a 4912 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 4913 Lisp object.
975f250a 4914 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 4915 must be an integer, not a Lisp object.
975f250a 4916
46dc9912
KH
49172000-08-08 Kenichi Handa <handa@etl.go.jp>
4918
4919 * charset.c (Fchar_width): Doc fix.
4920
9f6d1a6c
GM
49212000-08-08 Gerd Moellmann <gerd@gnu.org>
4922
4923 * charset.c (Fstring_width): Doc fix.
4924
ff3d9573
GM
49252000-08-07 Gerd Moellmann <gerd@gnu.org>
4926
41e757a6 4927 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
4928 line, clear ascent and descent members of the iterator structure;
4929 the height of the continued line does not affect the height of the
4930 continuation line.
4931 (make_cursor_line_fully_visible): Do nothing if cursor is on a
4932 line taller than the window.
4933 (redisplay_window) <forced window start>: Handle case that the
4934 middle of the window is not found in any row.
4935 (dump_glyph_row): Show more information.
4936 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
4937 first text line in a glyph matrix.
4938
4939 * xterm.c (x_draw_image_foreground): Avoid drawing outside
4940 of the clip area when image doesn't have a mask.
4941
70fc58b3
GM
4942 * fns.c (sweep_weak_table): Fix survival conditions for
4943 key-or-value and key-and-value weakness.
4944
4945 * .gdbinit (xhashtable): New command.
4946
ac0e96ee
GM
4947 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
4948 tables out of the list of all weak hash tables.
4949
ff3d9573
GM
4950 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
4951 a new buffer is created, make sure echo_area_buffer[] references
4952 the new buffer.
4953
e0d8827b
EZ
49542000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
4955
4956 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
4957 the doc string.
4958
c6f35378
KH
49592000-08-07 Kenichi Handa <handa@etl.go.jp>
4960
4961 * syntax.c (skip_chars): Fix previous change. Make the handling
4962 of unibyte string consistent with that of regex search.
4963
1fd4c450
GM
49642000-08-05 Gerd Moellmann <gerd@gnu.org>
4965
e49aa397
GM
4966 * xmenu.c (popup_get_selection): Use xfree instead of free.
4967
4968 * fileio.c (Finsert_file_contents): Use xfree instead of free.
4969
4970 * editfns.c (Ftranspose_regions): Use xfree instead of free.
4971
4972 * callproc.c (child_setup): Use xfree instead of free.
4973
4974 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
4975 instead of malloc.
4976 (run_mac_command, closedir): Use `xfree' instead of `free'.
4977
4978 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
4979
4980 * eval.c (error): Use xfree instead of free.
4981
1fd4c450
GM
4982 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
4983
4984 * fns.c: Replace `illegal' with `invalid'.
e49aa397 4985 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 4986
82d497fc
KH
49872000-08-05 Kenichi Handa <handa@etl.go.jp>
4988
4989 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
4990 conversion.
4991
59f953a2
NF
49922000-08-04 Noah Friedman <friedman@splode.com>
4993
4994 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
4995 docstring.
4996
688351f2
GM
49972000-08-04 Gerd Moellmann <gerd@gnu.org>
4998
4999 * syntax.c (skip_chars): Fix typo in error message.
5000
2dad51cc
AS
50012000-08-04 Andreas Schwab <schwab@suse.de>
5002
5003 * m/ia64.h: Moved from s/ia64.h.
5004
99bb2c60
KH
50052000-08-04 Kenichi Handa <handa@etl.go.jp>
5006
082a1df2
KH
5007 * process.c (read_process_output): Big simplification. Handle
5008 composition and post-read-conversion of coding system correctly.
5009 (send_process): Handle composition correctly.
5010
5011 * callproc.c (Fcall_process): Handle post-read-conversion of
5012 coding system if any.
5013
99bb2c60
KH
5014 * coding.c (decode_coding_iso2022): More strict check for handling
5015 single shifting.
082a1df2
KH
5016 (coding_restore_composition): Pay attention to the case that
5017 cmp_data is not set properly (because of invalid code in the
5018 source text).
5019 (run_pre_post_conversion_on_str): Include text properties in the
5020 resulting string.
5021 (decode_coding_string): Set members of coding correctly.
99bb2c60 5022
f4988be7
GM
50232000-08-03 Gerd Moellmann <gerd@gnu.org>
5024
5025 * s/ia64.h: New file.
5026
5027 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
5028 Use NULL instead of 0 at the end of variable argument list of
5029 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
5030 sizeof (int) < sizeof (void *).
5031
5032 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
5033 of variable argument lists of XtVaGetValues and XtVaSetValues.
5034
5035 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
5036 variable argument lists of XtVaGetValues and XtVaSetValues.
5037
ead53494
GM
50382000-08-02 Gerd Moellmann <gerd@gnu.org>
5039
5040 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
5041 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
5042
5043 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
5044 prototype.
5045
5046 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
5047 in call to Fsingle_key_description.
5048
5049 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
5050 Callers changed.
5051
50522000-08-02 Colin Walters <walters@cis.ohio-state.edu>
5053
5054 * window.c (display_buffer_reuse_frames): New variable.
5055 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
5056 frames displaying BUFFER.
5057 (syms_of_window): Define Lisp variable
5058 display-buffer-reuse-frames.
5059
10b0f752
MB
50602000-08-01 Miles Bader <miles@gnu.org>
5061
5062 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
5063 when to constrain NEW_POS (they were pretty screwed up before).
5064
16425c4a
EZ
50652000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
5066
5067 * msdos.c (run_msdos_command): Save and restore the master
5068 environment, for the case that child_setup signals an error.
5069 When mirroring slashes in DOS shell commands, don't fail when
5070 argv[2] has embedded blanks.
da288c14
EZ
5071 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
5072 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
5073 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
5074
5075 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
5076 using alloca; free it after run_msdos_command returns.
5077
27f73852
DL
50782000-07-27 Dave Love <fx@gnu.org>
5079
5080 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
5081 define.
5082 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
5083 working.
5084
5085 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
5086
c0261b5e
EZ
50872000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
5088
5089 * editfns.c (lisp_time_argument): Fix last change.
5090
b548072f
GM
50912000-07-27 Gerd Moellmann <gerd@gnu.org>
5092
3ab82477
GM
5093 * fns.c (Fdelete): Make it work on vectors and strings in addition
5094 to lists.
5095
b548072f
GM
5096 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
5097 (syms_of_fns): Initialize new variables.
5098 (sweep_weak_table): Handle weakness `key-or-value' and
5099 `key-and-value'.
5100 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
5101 weakness, with t meaning the same as `key-and-value'.
5102
91ae8751
KH
51032000-07-27 Kenichi Handa <handa@etl.go.jp>
5104
5105 * coding.h (struct coding_system): Member safe_charset deleted.
5106
5107 * coding.c (Qsafe_charsets): This variable deleted.
5108 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
5109 variables.
5110 (coding_safe_chars): New function.
5111 (CODING_SAFE_CHAR_P): New macro.
5112 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
5113 checking safe_charsets member of the coding system. Caller
5114 changed.
5115 (detect_coding_iso2022): New local variable safe_chars.
5116 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
5117 safe_charsets member of the coding system.
5118 (decode_coding_iso2022): New local variable safe_chars.
5119 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
5120 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
5121 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
5122 (ENCODE_UNSAFE_CHARACTER): New macro.
5123 (encode_coding_iso2022): New local variable safe_chars. Check
5124 unsafe chars.
5125 (setup_coding_system): Delete the code to initialize
5126 coding->safe_charses
5127 (intersection, find_safe_codings): New functions.
5128 (Ffind_coding_systems_region_internal): New function.
5129 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
5130 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
5131 variable and initialize it.
5132
5133 * fns.c (char_table_ref_and_index): New function.
5134
5135 * lisp.h (char_table_ref_and_index): Add prototype.
5136
34a7a267
SS
51372000-07-26 Sam Steingold <sds@gnu.org>
5138
5139 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 5140 (Ffloat_time): New built-in Lisp function.
34a7a267 5141
a95cb10a
GM
51422000-07-26 Gerd Moellmann <gerd@gnu.org>
5143
3353ef5a
GM
5144 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
5145 for the character code.
5146
5147 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
5148 GNU/Linux.
5149
a95cb10a
GM
5150 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
5151 if called for a popup menu.
5152 (xmenu_show): Store help string in widget values.
5153
b4a12321
DL
51542000-07-26 Dave Love <fx@gnu.org>
5155
5156 * syswait.h: Move some definitions.
5157 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
5158 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
5159 perspicuous definitions.
5160 (WTERMSIG): Fix bit pattern used.
5161
13f5ad37
KH
51622000-07-26 Kenichi Handa <handa@etl.go.jp>
5163
5164 * print.c (print_object): If vector printing is truncated, print
5165 "..." to indicate it as well as the case of list printing.
5166
070fe99c
GM
51672000-07-25 Gerd Moellmann <gerd@gnu.org>
5168
969065c3
GM
5169 * xdisp.c (next_element_from_display_vector): Improve comments.
5170
5171 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
5172 for the character code, and the rest for the face id as in 20.x.
5173 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
5174
5175 * window.c (window_display_table): Cleaned up.
5176
070fe99c
GM
5177 * syntax.c (Fforward_word): Add last arg nil in call of
5178 Fconstrain_to_field.
5179
bad77ef7
EZ
51802000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
5181
969065c3 5182 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
5183 identical but for the letter-case, don't call
5184 barf_or_query_if_file_exists.
5185
c28da489
MB
51862000-07-25 Miles Bader <miles@gnu.org>
5187
5188 * editfns.c (find_field): Honor special `boundary' fields.
5189 (Qboundary): New variables.
5190 (syms_of_editfns): Initialize Qboundary.
5191 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
5192 Use scan_buffer instead of find_before_next_newline, because it
5193 allows us to detect the boundary case where there's a newline at
5194 the search limit.
5195 * lisp.h (Fconstrain_to_field): Update external declaration.
5196
e3c31fd5
GM
51972000-07-24 Gerd Moellmann <gerd@gnu.org>
5198
5199 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
5200 if that is nil.
c28da489 5201
c66c29a2
DL
52022000-07-24 Dave Love <fx@gnu.org>
5203
5204 * s/sunos4-0.h, s/sol2.h:
5205 (LIBS_TERMCAP): Move from m/sparc.h.
5206
5207 * m/sparc.h (TERMINFO): Moved to system files (probably only
5208 relevant for sunos4 judging by its vintage).
5209 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
5210 __arch64__.
5211
fbe0a958
EZ
52122000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
5213
5214 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
5215 name to single_keymap_panes.
5216
7d88e5c9
AS
52172000-07-24 Andreas Schwab <schwab@suse.de>
5218
5219 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
5220
e024b101
GM
52212000-07-24 Gerd Moellmann <gerd@gnu.org>
5222
5223 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
5224 parameters instead of using int parameters. Expect FN to accept
5225 EMACS_INT parameters.
5226 (display_echo_area, resize_echo_area_axactly, current_message)
5227 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
5228 with new argument list.
5229 (resize_mini_window_1): New callback function.
5230 (current_message_1, truncate_message_1, set_message_1): Change
5231 parameter lists to the new format expected by
5232 with_echo_area_buffer.
5233
25c1a9ce
KH
52342000-07-24 Kenichi Handa <handa@etl.go.jp>
5235
5236 * fontset.c (fontset_ref): Remove INLINE declaration.
5237 (fontset_ref_via_base): Likewise.
5238 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
5239 to downcase.
5240
7f987ac0
EZ
52412000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
5242
5243 * msdos.c (IT_note_mouse_highlight): Process overlays in the
5244 correct order of priority. If help echo was found in an overlay,
5245 use that overlay as the object in which the help echo was found.
5246
e2db3069
MB
52472000-07-22 Miles Bader <miles@gnu.org>
5248
5249 * textprop.c (Fprevious_single_char_property_change): The initial
5250 property value should be from the position preceding POSITION, not
5251 following it.
5252
5e3203e4
EZ
52532000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
5254
5255 * coding.c (syms_of_coding): Doc fix for
5256 inhibit-iso-escape-detection.
5257
62145073
GM
52582000-07-21 Gerd Moellmann <gerd@gnu.org>
5259
c20aeb83
GM
5260 * xterm.c (note_mouse_highlight): Process overlays in the right
5261 order of priority.
34a7a267 5262
743934db
GM
5263 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
5264
5265 * xterm.c (note_mouse_highlight): If help-echo was found in an
5266 overlay, use that overlay as the object in which the help was
5267 found.
5268
d1dc7e43 5269 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 5270
62145073
GM
5271 * window.c (foreach_window): Instead of a fake variable argument
5272 list, take one USER_DATA argument.
5273 (foreach_window_1): Likewise, and call callback functions with two
5274 args, the window and USER_DATA.
5275 (struct check_window_data): New struct.
5276 (check_window_containing): Use it.
5277 (window_from_coordinates): Set up a struct check_window_data for
5278 foreach_window.
5279 (add_window_to_list, freeze_window_start): Change parameters
5280 according to new calling convention.
5281
5282 * window.h (foreach_window): Change prototype.
5283
5284 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
5285
52862000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
5287
5288 * xmenu.c (menu_help_callback): Call show_help_echo with
5289 additional arguments OBJECT and POS.
5290
11270583
KH
52912000-07-21 Kenichi Handa <handa@etl.go.jp>
5292
07b14857
KH
5293 * data.c (Faset): Allow storing any multibyte character in a
5294 string. Convert unibyte string to multibyte if necessary.
5295
11270583
KH
5296 * xfns.c (x_encode_text): New function.
5297 (x_set_name): Use x_encode_text.
5298 (x_set_title): Likewise.
5299
5300 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
5301
5302 * xterm.h (x_encode_text): Add prototype.
5303
bc75b4fd
DL
53042000-07-20 Dave Love <fx@gnu.org>
5305
5306 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
5307 xfree, not free.
5308
48c14970
EZ
53092000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
5310
5311 * msdos.c (help_echo_window): New variable.
5312 (syms_of_msdos): Initialize and staticpro it.
5313 (IT_note_mode_line_highlight): Set help_echo_window.
5314 (IT_note_mouse_highlight): Ditto.
5315 (dos_rawgetc): Store help_echo_window in the second event produced
5316 for HELP_EVENTs.
5317
5318 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
5319 Record the object that generated the help echo and the position of
5320 that object in help_echo_object and help_echo_pos. Record that
5321 some glyphs in a row are displayed in mouse-face.
5322 (IT_update_begin): Don't clear mouse highlight unless one of the
5323 enabled glyph rows is marked as being displayed in mouse-face.
5324 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
5325 and position recorded in help_echo_object and help_echo_pos to the
5326 event queue.
5327 (IT_menu_display): Accept a new argument PN: the pane number of
5328 the current menu pane. Record the pane number and the item
5329 number of the item which has associated help string.
5330 (XMenuActivate): Update the prototype for help_callback in
5331 function declaration. Call IT_menu_display with the current menu
5332 pane number as an additional argument. Call help_callback with
5333 two additional arguments: the pane number and the item number of
5334 the menu item associated with the help text.
5335 (help_echo_object, help_echo_pos): New variables.
5336 (syms_of_msdos): Initialize them and staticpro help_echo_object.
5337
5338 * msdos.h (XMenuActivate): Update prototype.
5339
4279296d
GM
53402000-07-19 Gerd Moellmann <gerd@gnu.org>
5341
47db06aa
GM
5342 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
5343 Add some more prototypes.
5344
5345 * xterm.c, xterm.h: Add some more prototypes.
5346
5347 * lisp.h (Fnext_single_char_property_change): Add prototype.
5348
5349 * dispnew.c (direct_output_for_insert): Remove confusing
5350 outer local variable mouse_face_overwritten_p.
5351 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
5352
4279296d
GM
5353 * alloc.c (allocate_string_data): Don't copy old string contents.
5354
670acd62
KH
53552000-07-19 Kenichi Handa <handa@etl.go.jp>
5356
5357 * coding.c (code_convert_region): Delete text properties before
5358 shrinking the conversion region.
5359
7cea38bc
GM
53602000-07-18 Gerd Moellmann <gerd@gnu.org>
5361
dc1cac59
GM
5362 * dispnew.c (update_text_area): Write the whole row if it
5363 has mouse-face in it.
5364
85a8aca9
GM
5365 * xfaces.c (face-alternative-font-family-alist): Remove
5366 DEFVAR_LISP; staticpro instead.
5367
34a7a267 5368 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
5369 new arguments.
5370
5371 * keyboard.c (show_help_echo): Add parameter WINDOW.
5372 (read_char): Call show_help_echo with window extracted from Lisp
5373 help event.
5374 (gen_help_event): Add parameter WINDOW.
5375
5376 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
5377
5378 * xterm.c (help_echo_window): New variable.
5379 (note_mouse_highlight, note_tool_bar_highlight): Set
5380 help_echo_window.
5381 (XTread_socket): Pass help_echo_window to gen_help_event.
5382 (syms_of_xterm): Initialize and staticpro help_echo_window.
5383
f8276b77
DL
53842000-07-18 Dave Love <fx@gnu.org>
5385
5386 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
5387 systime.h.
5388
088831a6
GM
53892000-07-18 Gerd Moellmann <gerd@gnu.org>
5390
3d6cd763
GM
5391 * alloc.c (allocate_string_data): If string had already data
5392 assigned, copy old contents to new string data.
5393
5394 * coding.c (syms_of_coding): Fix typo in spelling of variable
5395 `inhibit-iso-escape-detection'.
5396
088831a6
GM
5397 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
5398
5399 * Makefile.in: Add dependencies on dispextern.h.
5400 (alloca.o): Don't define malloc and define EMACS_FREE instead of
5401 `free'; both can conflict with system header files.
5402
bc8a8d55
KH
54032000-07-18 Kenichi Handa <handa@etl.go.jp>
5404
5405 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
5406 undefined.
5407
069f5950
DL
54082000-07-18 Dave Love <fx@gnu.org>
5409
5410 * window.c (Fwindow_list): Declare arg `window'.
5411
aa96c820
KH
54122000-07-18 Kenichi Handa <handa@etl.go.jp>
5413
5414 * coding.c (setup_coding_system): Don't override the explicitly
5415 specified designations.
5416
06be8d32
MB
54172000-07-15 Miles Bader <miles@gnu.org>
5418
5419 * editfns.c (char_property_eq, char_property_stickiness): Renamed
5420 from `text_property_eq' and `text_property_stickiness', respectively.
5421 (find_field, Fconstrain_to_field, char_property_eq)
5422 (char_property_stickiness): Changed to call char-property functions
5423 instead of text-property-only ones.
5424
5425 * textprop.c (Fnext_single_char_property_change): Made a subr (was
5426 `next_single_char_property_change'). Do more error checking, and
5427 cleanup limit behavior.
5428 (Fprevious_single_char_property_change): New function.
5429 (syms_of_textprop): Initialize new subrs.
5430
5431 * xdisp.c (display_prop_end, invisible_text_between_p):
5432 Call Fnext_single_char_property_change instead of
5433 next_single_char_property_change.
5434
3fddcdc3
JR
54352000-07-15 Jason Rumney <jasonr@gnu.org>
5436
5437 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
5438 after menu is finished with.
5439 (add_menu_item): Only consider wv->title as a menu title.
5440 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
5441
5442 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
5443 null title.
5444 (FONT_REGEXP): Remove unused macro, and its sub-components.
5445 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
5446
5447 * w32term.c (help_echo_object, help_echo_pos): New variables.
5448 (note_mode_line_highlight): Store additional information about the
5449 help-echo in help_echo_object and help_echo_pos. Check both
5450 `local-map' and `keymap' properties for changing the cursor
5451 (note_mouse_highlight): Store additional information about the
5452 help-echo in help_echo_object and help_echo_pos.
5453 (note_tool_bar_highlight): Set help_echo_object to nil and
5454 help_echo_pos to -1.
5455 (w32_read_socket): Use gen_help_event instead of filling
5456 input_events manually.
5457 (syms_of_w32term): Staticpro help_echo_object.
5458 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
5459 set, arrange for a mouse-highlight redisplay in
5460 XTframe_up_to_date.
5461 (x_clear_mouse_face): New function.
5462 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
5463 (x_update_window_begin): No need to turn off the mouse
5464 highlight here.
5465 (show_mouse_face): Set the mouse_face_p flag of glyph rows
5466 depending on whether they contain glyphs highlighted in
5467 mouse-face.
5468 (x_fill_stretch_glyph_string): Consume runs of stretch
5469 glyphs instead of a single one.
5470 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
5471 with new argument list.
5472 (x_set_glyph_string_gc): Make sure the face's GC is valid.
5473 (x_append_glyph, x_append_composite_glyph)
5474 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
5475 changes in struct glyph starting 1999-12-27. See comments for
5476 xterm.c on 2000-07-05.
5477
178c5d9c
SS
54782000-07-14 Sam Steingold <sds@gnu.org>
5479
5480 * xfaces.c (realize_x_face): Fix the last patch:
5481 check `default_face' before dereferencing.
5482
6fe533f6
DL
54832000-07-14 Dave Love <fx@gnu.org>
5484
069f5950 5485 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 5486
dd7b81cf
KH
54872000-07-14 Kenichi Handa <handa@etl.go.jp>
5488
0693904a 5489 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 5490 default_face's fontset, not using the default fontset.
0693904a 5491
dd7b81cf
KH
5492 * coding.c (inhibit_iso_escape_detection): New variable.
5493 (syms_of_coding): Make it a Lisp variable.
5494 (detect_coding_iso2022): If inhibit_iso_escape_detection is
5495 nonzero, ignore ISO2022's escape sequence.
5496
d5aa31d8
GM
54972000-07-14 Gerd Moellmann <gerd@gnu.org>
5498
e5acf0ca
GM
5499 * alloca.c (malloc) [emacs]: Define as xmalloc.
5500
bd23a692
GM
5501 * xfns.c (Fx_show_tip): If frame parameters contain a position,
5502 use that instead of the mouse position. Add parameters DX and DY.
5503
5504 * dispextern.h (Fx_show_tip): Adjust number of parameters
5505 in prototype.
5506
9662da0b
GM
5507 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
5508 if HELP is a function, call it with OBJECT and POS as parameters
5509 to get the help to display.
5510 (gen_help_event, kbd_buffer_store_help_event): New functions.
5511 (kbd_buffer_get_event): Construct the Lisp help-event differently.
5512 (read_char): Call show_help_echo with new parameters.
5513
178c5d9c 5514 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
5515 Add prototypes.
5516
5517 * xterm.c (help_echo_object, help_echo_pos): New variables.
5518 (note_mode_line_highlight): Store additional information about the
5519 help-echo in help_echo_object and help_echo_pos. Check both
5520 `local-map' and `keymap' properties for changing the cursor
5521 (note_mouse_highlight): Store additional information about the
5522 help-echo in help_echo_object and help_echo_pos.
5523 (note_tool_bar_highlight): Set help_echo_object to nil and
5524 help_echo_pos to -1.
5525 (XTread_socket): Use gen_help_event instead of filling
5526 input_events manually.
5527 (syms_of_xterm): Staticpro help_echo_object.
5528
5529 * xmenu.c (menu_highlight_callback): Use
5530 kbd_buffer_store_help_event instead of setting up and input_event
5531 structure manually.
5532
5533 * xdisp.c (eval_form): GCPRO argument sexpr.
5534 (call_function): New function.
5535 (handle_single_display_prop): Use call_function and FUNCTIONP
5536 instead of checking whether if font_height is a symbol and
5537 using eval_form.
5538
5539 * eval.c (internal_condition_case_2): New function.
5540
5541 * lisp.h (FUNCTIONP): New macro.
5542 (internal_condition_case_2, call_function): Add prototypes.
5543
d5aa31d8
GM
5544 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
5545 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
5546 Always set `arg' member of input_events.
5547 (construct_menu_click): Unused function removed.
5548
5549 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
5550
5551 * w32term.c (construct_mouse_click, construct_mouse_wheel)
5552 (construct_drag_n_drop, x_scroll_bar_handle_click)
5553 (w32_read_socket): Always set `arg' member of input_events.
5554
5555 * keyboard.c (show_help_echo): Use eval_form. Add comment.
5556
5557 * lisp.h (eval_form): Add prototype.
5558
5559 * xdisp.c (eval_form): Make it externally visible.
5560
0f1a9b23
GM
55612000-07-13 Gerd Moellmann <gerd@gnu.org>
5562
5563 * xterm.c (x_handle_tool_bar_click): Store the frame in the
5564 frame_or_window slot of TOOL_BAR_EVENT input events instead of
5565 consing. For prefix events, store the frame in the `arg' slot of
5566 the event, otherwise store the key there.
5567 (XTread_socket): Instead of consing, use the frame_or_window slot
5568 of HELP_EVENTs for the frame, and the `arg' slot for the help
5569 string.
5570
5571 * xmenu.c (menu_highlight_callback): Store help string in the
5572 `arg' member of the input event; don't cons.
5573 (menubar_selection_callback): Use the `arg' slot of input events
5574 to queue additional information, instead of consing.
5575
5576 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
5577
5578 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
5579 TOOL_BAR_EVENTs.
5580 (w32_read_socket): Adapt to changes in HELP_EVENTs.
5581
5582 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
5583 input events to queue additional information, instead of consing.
5584
5585 * keyboard.c (kbd_buffer_gcpro): Renamed from
5586 kbd_buffer_frame_or_window. Now used for all Lisp objects
5587 referenced from the input queue.
5588 (kbd_buffer_store_event): Always use structure assignment for
5589 copying input events. Record all Lisp objects referenced from
5590 events in kbd_buffer_gcpro.
5591 (kbd_buffer_get_event): Construct Lisp `help-echo' events
5592 differently from input events. Test for prefix menu_bar_events
5593 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
5594 event in kbd_buffer_gcpro to nil.
5595 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
5596 frame_or_window is equal to its arg member as prefix events.
5597 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
5598 used by an input event to nil.
5599 (init_keyboard): Use two times the size of the input queue
5600 for kbd_buffer_gcpro.
5601 (syms_of_keyboard): Likewise.
5602
5603 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
5604 USER_SIGNAL_EVENT.
5605
5606 * termhooks.h (struct input_event): Add member `arg'.
5607 (MENU_BAR_EVENT): Renamed from menu_bar_event.
5608 (USER_SIGNAL_EVENT): Renamed from user_signal.
5609
5610 * xfaces.c (ASET): Remove definition.
5611
5612 * lisp.h (AREF, ASET, ASIZE): New macros.
5613
5614 * fontset.c (AREF, ASIZE): Remove definitions.
5615
5616 * fns.c (AREF): Remove definition.
178c5d9c 5617
0f1a9b23
GM
5618 * composite.c (AREF): Remove definition.
5619
712eaef2
GM
56202000-07-12 Gerd Moellmann <gerd@gnu.org>
5621
d8ee7803
GM
5622 * dispnew.c (redraw_overlapped_rows): Add missing local.
5623 (scrolling_window): Remove debug code.
5624
712eaef2
GM
5625 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
5626 Before scrolling, turn off a mouse-highlight in the window
5627 being scrolled.
5628
5629 * xterm.c (x_update_window_end): Add parameter
5630 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
5631 redisplay in XTframe_up_to_date.
5632 (x_clear_mouse_face): New function.
5633 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
5634
5635 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
5636 current glyph row.
5637 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
5638 it when any row is written to that contains glyphs highlighted in
5639 mouse-face.
5640 (update_window): Call the window update end hook with new
5641 parameter MOUSE_FACE_OVERWRITTEN_P.
5642 (direct_output_for_insert): Give up if row contains mouse-face.
5643
5644 * dispextern.h (struct redisplay_interface): Add parameter
5645 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
5646 (clear_mouse_face): New function pointer member.
5647
02010917
SM
56482000-07-11 Stefan Monnier <monnier@cs.yale.edu>
5649
5650 * syntax.c (back_comment): Use one switch rather than a few `if's.
5651 Obey open_paren_in_column_0_is_defun_start.
5652 When reverting to the `slow' method, try to nicely handle the case
5653 of nested comments by checking that the comment-starter we found
5654 does indeed match the comment-ender.
5655 (scan_sexps_forward, scan_sexps_forward):
5656 Ignore excessive opening parenthesis rather than throwing an error.
5657
d76c03ea
GM
56582000-07-11 Gerd Moellmann <gerd@gnu.org>
5659
5660 * doc.c (Fsubstitute_command_keys): Handle case that a GC
5661 in Fwhere_is_internal or get_keymap_1 relocates string contents.
5662
5663 * dispnew.c (direct_output_forward_char): Give up if currently
5664 displaying a message instead of the minibuffer contents.
5665
5666 * xterm.c (x_update_window_begin): No need to turn off the mouse
5667 highlight here.
5668 (show_mouse_face): Set the mouse_face_p flag of glyph rows
5669 depending on whether they contain glyphs highlighted in
5670 mouse-face.
5671
5672 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
5673 compare the mouse_face_p flags of both rows.
5674
5675 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
5676
d55ead18
EZ
56772000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
5678
5679 * keyboard.c (show_help_echo): Accept additional parameter
5680 ok_to_overwrite_keystroke_echo.
5681 (read_char): Call show_help_echo with a zero
5682 ok_to_overwrite_keystroke_echo argument.
5683 * keyboard.h (show_help_echo): Update prototype of
5684 show_help_echo.
5685 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
5686 ok_to_overwrite_keystroke_echo argument.
5687 * w32menu.c (w32_menu_display_help): Call show_help_echo with
5688 non-zero ok_to_overwrite_keystroke_echo argument.
5689
df75b1a3
GM
56902000-07-10 Gerd Moellmann <gerd@gnu.org>
5691
4b92c49a
GM
5692 * xdisp.c (try_window_id): If changes are all below what is
5693 displayed in the window, and point is in the window, we still
5694 might have to find point on the display.
5695
5696 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
5697 glyphs instead of a single one.
5698 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
5699 with new argument list.
5700 (x_set_glyph_string_gc): Make sure the face's GC is valid.
5701
df75b1a3
GM
5702 * keymap.c (get_keymap_1): Add comment that this function can GC.
5703 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
5704 comment that functions can GC.
5705 (Fset_keymap_parent): GCPRO arg KEYMAP.
5706
4314cf3e
EZ
57072000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
5708
5709 * msdos.c (XMenuActivate): After exiting the menu, restore the
5710 echo area message and erase it.
5711
ab49ce15
KH
57122000-07-10 Kenichi Handa <handa@etl.go.jp>
5713
5714 * fontset.c (Ffontset_info): Make the return value more compatible
5715 with that of Emacs 20.
5716
090a072f
GM
57172000-07-07 Gerd Moellmann <gerd@gnu.org>
5718
5719 * eval.c (Fsignal): Handle case that backtrace_list is null.
5720
f92de4a6
KH
57212000-07-07 Kenichi Handa <handa@etl.go.jp>
5722
5723 * ccl.c (Fccl_execute): Typo fixed.
5724
dd8888a1
GM
57252000-07-06 Gerd Moellmann <gerd@gnu.org>
5726
e5c81191 5727 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 5728
dd8888a1
GM
5729 * window.c (Fwindow_list): Reverse list at the end.
5730 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
5731 means allow windows on OWINDOW's frame, only.
5732 (window_loop): Simplified; use Fwindow_list.
5733
5734 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
5735
485266d0
GM
57362000-07-05 Gerd Moellmann <gerd@gnu.org>
5737
5738 * xterm.c (XTread_socket): Increment handling_signal at the start,
5739 decrement it at the end.
5740
5741 * eval.c (handling_signal): New variable.
5742 (Fsignal): Abort if handling_signal is non-zero.
5743
5744 * lisp.h (handling_signal): External declaration.
178c5d9c 5745
485266d0
GM
5746 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
5747
80fcd514
KR
57482000-07-05 Ken Raeburn <raeburn@gnu.org>
5749
5750 Sound support for NetBSD through "Linux emulation" support:
5751 * config.in (HAVE_SOUNDCARD_H): Undef.
5752 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
5753 * Makefile.in (LIBSOUND): New variable.
5754 (LIBES): Include it.
5755 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
5756 <soundcard.h>.
5757 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
5758 elsewhere.
5759 (vox_open): Use DEFAULT_SOUND_DEVICE.
5760 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
5761
d5c5cddd
GM
57622000-07-05 Gerd Moellmann <gerd@gnu.org>
5763
5764 * print.c (print_error_message): If Vsignaling_function is set,
5765 show it in *Messages*.
5766
5767 * lisp.h (Vsignaling_function): External declaration.
5768
5769 * eval.c (Vsignaling_function): New variable.
5770 (Fsignal): Compute it.
5771 (syms_of_eval): Staticpro it.
5772
65171e3a
DL
57732000-07-05 Dave Love <fx@gnu.org>
5774
5775 * syswait.h: Use the autoconf recommended approach. Old code
5776 #if'd out in case we need to revert.
5777
178c5d9c 5778 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 5779
e2c46326
AI
57802000-07-05 Andrew Innes <andrewi@gnu.org>
5781
5782 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
5783 when non-NULL instead of __morecore, to take account of buffer
5784 memory. This also solves a problem with spurious memory warnings
5785 on Windows.
5786
5787 * ralloc.c: Make real_morecore non-static.
5788
5789 * eval.c (internal_condition_case): Comment out abort if
5790 interrupt_input_blocked is not zero.
5791
5792 * makefile.nt: Add support for `bootstrap' and related targets.
5793 Include minimal debug info in emacs.exe in release build.
5794 Remove all dependencies on lisp.h, and fixup some others.
5795
5796 * w32.c (init_environment): Install code from 20.7 for providing
5797 default values for environment variables, based on the
5798 executable's own location.
5799 (map_w32_filename): Handle filenames that are longer than
5800 MAX_PATH.
5801 (sys_socket): Install socket inheritance bug fix from 20.7.
5802
5803 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
5804 here via blockinput.h).
5805
a027a91b
SM
58062000-07-05 Stefan Monnier <monnier@cs.yale.edu>
5807
e4b31601
SM
5808 * w32menu.c (w32_menu_display_help):
5809 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
5810
5811 * keyboard.h (show_help_echo): Declare.
5812
5813 * keyboard.c (show_help_echo): New function, extracted from read_char.
5814 Feval its `msg' argument if it's a cons cell.
5815 (read_char): Use it.
4cf8d9d5 5816 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 5817
178c5d9c 5818 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 5819 (note_tool_bar_highlight, XTread_socket):
178c5d9c 5820 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
5821 (dos_rawgetc):
5822 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
5823 (note_tool_bar_highlight, w32_read_socket):
5824 Do not gratuitously ignore non-string `help-echo' properties.
5825
88d75730
GM
58262000-07-05 Gerd Moellmann <gerd@gnu.org>
5827
969f7e79
GM
5828 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
5829
71201b00
GM
5830 * window.c (delete_all_subwindows): Reset Vwindow_list.
5831
88d75730
GM
5832 * xterm.c (x_append_glyph, x_append_composite_glyph)
5833 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
5834 changes in struct glyph starting 1999-12-27. Some bit-fields of
5835 struct glyph were not set, which made glyphs unequal when compared
5836 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
5837 effects were the result. This also depended on the contents of
5838 memory returned by xmalloc. If flickering happens again, activate
5839 the code in clear_glyph_row that's in #if 0. If the flickering is
5840 gone with that, chances are that it is caused by something
5841 similar.
5842
5843 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 5844
88d75730
GM
5845 * dispextern.h: Add some comments.
5846
5847 * window.c (add_window_to_list): Add parameter LIST.
5848 (window_list): Order list so that, for each frame, windows are
5849 in canonical order, and so that frames appear in the list in
5850 the order given by Vframe_list.
5851 (next_window): Reverse the handling of NEXT_P.
5852
53654733
GM
58532000-07-04 Gerd Moellmann <gerd@gnu.org>
5854
87efd256
GM
5855 * window.c (Vwindow_list): New variable.
5856 (make_window, delete_window): Set Vwindow_list to nil.
5857 (check_window_containing): New function.
5858 (window_from_coordinates): Rewritten.
5859 (add_window_to_list, window_list, candidate_window_p)
5860 (decode_next_window_args, next_window): New functions.
5861 (Fnext_window, Fprevious_window): Rewritten in terms of
5862 next_window.
5863 (Fwindow_list): New function.
5864 (Fother_window): Cleaned up.
5865 (foreach_window): Add a longer "variable argument list". Let
5866 callback function return 0 to indicate that cycling over windows
5867 should stop.
5868 (foreach_window_1): Likewise.
5869 (freeze_window_start): Return int.
5870 (init_window): New function.
5871 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
5872
5873 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
5874 input_event with bzero.
5875 (main): Call init_window.
5876
53654733
GM
5877 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
5878 a menu filter.
5879
4a8c194f
KH
58802000-07-04 Kenichi Handa <handa@etl.go.jp>
5881
5882 * composite.h (make_composition_value_copy): Extern it.
5883
5884 * composite.c (make_composition_value_copy): New function.
5885
5886 * editfns.c (Fformat): While copying text properties, make each
5887 composition property value a copy.
5888
5889 * fns.c (concat): While copying text properties, make each
5890 composition property value a copy.
5891
831a6cb0
GM
58922000-07-03 Gerd Moellmann <gerd@gnu.org>
5893
2f516940
GM
5894 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
5895
178c5d9c 5896 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
5897 marked already.
5898
831a6cb0
GM
5899 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
5900 include those frames as candidates which have their focus
5901 redirected to the minibuffer frame.
5902
d9c4f922
SM
59032000-07-03 Stefan Monnier <monnier@cs.yale.edu>
5904
5905 * fns.c (Fputhash): Return `value' rather than nil.
5906
3780bc22
GM
59072000-06-30 Gerd Moellmann <gerd@gnu.org>
5908
97d176db
GM
5909 * frame.c (next_frame): Don't check focus redirection in case
5910 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
5911 unless their focus is redirected, which contradicts the
5912 specification of next-frame, and leads to infinite loops in
5913 certain situations when cycling through windows with next-window.
5914
dca9961d
KH
59152000-06-30 Kenichi Handa <handa@etl.go.jp>
5916
5917 * coding.c (code_convert_region): Even if the length of text is
5918 zero, try to convert it if coding->type is coding_type_ccl.
5919 (decode_coding_string, encode_coding_string): Likewise.
5920
d5483ab1
GM
59212000-06-28 Gerd Moellmann <gerd@gnu.org>
5922
af5c25e1 5923 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 5924 the display if windows_or_buffers_changed.
af5c25e1
GM
5925
5926 * dispnew.c (struct row_entry): New structure.
5927 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
5928 (row_table_size, old_lines, new_lines, old_lines_size)
5929 (new_lines_size, run_pool, runs_size, runs): New variables.
5930 (add_row_entry): New function.
5931 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 5932 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
5933 holding them in local variables. Use a larger hash table whose
5934 size depends on glyph matrix sizes. Don't use bzero to clear the
5935 hash table; instead, clear used slots only.
5936
5937 * fns.c (next_almost_prime): Make it externally visible.
5938
5939 * lisp.h (next_almost_prime): Add prototype.
5940
d5483ab1
GM
5941 * s/isc4-0.h (sigunblock): Define.
5942
5943 * s/sco5.h (sigunblock): Define.
5944
93e40f40
DL
59452000-06-27 Dave Love <fx@gnu.org>
5946
5947 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
5948 (moved to osf5-0.h).
5949 [!NOT_C_CODE]: Protect string.h stuff.
5950
5951 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
5952 (sys_siglist, NSIG): Definitions moved here from osf1.h.
5953
3c4b7685
GM
59542000-06-27 Gerd Moellmann <gerd@gnu.org>
5955
97d176db 5956 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
5957 below the last line from the needed window height.
5958
32cad0aa
SM
59592000-06-26 Stefan Monnier <monnier@cs.yale.edu>
5960
5961 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
5962 (Fwidget_get): Use it.
5963 (syms_of_fns): Defsubr it.
5964
2c69ced2
GM
59652000-06-26 Gerd Moellmann <gerd@gnu.org>
5966
178c5d9c 5967 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
5968 display info for XIM.
5969 (xim_open_dpy): Likewise.
5970 (xim_close_dpy): Don't free the display info's XIM.
5971
5972 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
5973
5974 * config.in (USE_XIM): New define.
5975
3fc720e4
GM
5976 * keymap.c (get_keyelt): For menu-items containing a `:filter
5977 FILTER', apply FILTER to the menu-item's definition to get the
5978 real definition to use.
5979
5980 * lisp.h (QCfilter): External declaration.
5981
2c69ced2
GM
5982 * xfns.c (Fimage_size): New function.
5983 (syms_of_xfns): Defsubr it.
5984
f978b2a2
AS
59852000-06-26 Andreas Schwab <schwab@suse.de>
5986
5987 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
5988 Fstring_as_unibyte.
5989
94cc7892
DL
59902000-06-25 Dave Love <fx@gnu.org>
5991
5992 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
5993 tgetnum.
5994
5995 * Makefile.in (blockinput.h): Depend on atimer.h.
5996 (atimer.h): Depend on systime.h.
5997
5998 * blockinput.h: Protect against multiple inclusion. Include
5999 atimer.h.
6000
6001 * atimer.h: Protect against multiple inclusion. Include
6002 systime.h.
6003
6004 * lisp.h (swap_in_global_binding): Declare.
6005
b8c24556
KR
60062000-06-24 Ken Raeburn <raeburn@gnu.org>
6007
6008 * process.c (Fopen_network_stream): Turn off atimers for duration
6009 of call to connect. (Patch from Gerd.)
6010
8cf8560b
DL
60112000-06-23 Dave Love <fx@gnu.org>
6012
511c7541
DL
6013 * ralloc.c: Maybe include unistd.h
6014
8cf8560b
DL
6015 * emacs.c (setgrp): Undefine before defining.
6016 (malloc_warning, set_time_zone_rule, index): Prototype.
6017
6018 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
6019 HAVE_STRUCT_TIMEZONE.
6020
6021 * s/osf1.h: Move string.h hack here from alpha.h and make it
6022 conditional.
6023 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
6024 _XOPEN_SOURCE.
6025 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
6026 (SOCKLEN_TYPE): Don't define.
6027
6028 * m/alpha.h: Remove string.h hack.
6029
6030 * s/osf5-0.h: New file.
6031
6032 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
6033 include time.h, done by systime.h.
6034 [__FreeBSD__]: Remove redundant includes.
6035
3fc720e4 6036 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
6037 (delete_temp_file): Return Qnil to avoid warning.
6038
6039 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
6040
6041 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
6042 HAVE_X_WINDOWS.
6043
6044 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
6045
6046 * composite.h (compose_text): Declare.
6047
6048 * xterm.c: Don't include sys/types.h unconditionally. Don't
6049 protect its inclusion with !USG (following xmenu.c).
6050
ea055732
GM
60512000-06-23 Gerd Moellmann <gerd@gnu.org>
6052
6053 * xfns.c (x_create_tip_frame): Initialize frame's colors like
6054 in x_create_frame.
6055
74b01b80
EZ
60562000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
6057
6058 * coding.c (decode_eol_post_ccl): Special handling for undecided
6059 and inconsistent EOL types.
6060
64f3a166
GM
60612000-06-22 Gerd Moellmann <gerd@gnu.org>
6062
16cf31f7
GM
6063 * xrdb.c (x_load_resources): Add default resource for scroll bar's
6064 trough color and main window's background color.
6065
178c5d9c 6066 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
6067 differently.
6068
6069 * xterm.h (Xt_app_con): External declaration.
6070
6071 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 6072
486a103d
GM
6073 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
6074
64f3a166
GM
6075 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
6076 (handle_invisible_prop): Record the start of invisible text in
6077 it->add_overlay_start.
6078 (struct overlay_entry): Add member `overlay'.
6079 (handle_overlay_change): Simplify.
6080 (next_overlay_string): After having processed overlay strings at the
6081 end of the buffer, record that fact in
6082 it->overlay_strings_at_end_processed_p.
6083 (compare_overlay_entries): If before- and after-strings come
6084 from the same overlay, let before-strings come first.
6085 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
6086 (load_overlay_strings): Take it->add_overlay_start into account
6087 when adding overlay strings.
6088
6089 * dispextern.h (struct it): Add member add_overlay_start.
6090
bb746ea6
DL
60912000-06-22 Dave Love <fx@gnu.org>
6092
6093 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
6094
6095 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
6096
a8f573f3
KH
60972000-06-22 Kenichi Handa <handa@etl.go.jp>
6098
6099 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
6100 is greater than 0.
6101
9f2bbc92
DL
61022000-06-21 Dave Love <fx@gnu.org>
6103
178c5d9c 6104 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 6105
3ee5041c
SM
61062000-06-21 Stefan Monnier <monnier@cs.yale.edu>
6107
6108 * syntax.c (back_comment): Simplify string-parity counting (with
6109 the added benefit of handling multiple string-styles as long as
6110 they are not intertwined).
6111 Jump to the slow code as soon as a comment starter is found in
6112 a "string_lossage" position. Fixes the case: " /* " /* " */.
6113
4c343001
DL
61142000-06-21 Dave Love <fx@gnu.org>
6115
6116 * Makefile.in: Use GETLOADAVG_LIBS.
6117
6118 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
6119 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
6120
e6365855
SM
61212000-06-20 Stefan Monnier <monnier@cs.yale.edu>
6122
6123 * syntax.c (describe_syntax): Recognize the `n'estable bit.
6124 (Fforward_comment, scan_lists):
6125 Check the comstyle of single-char comment-starters.
6126 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
6127 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
6128 Check the comstyle of single-char comment-starters.
6129 Clarify control-flow around the Scomment case.
e6365855 6130
5700d2cc
DL
61312000-06-20 Dave Love <fx@gnu.org>
6132
d355bd8a
SM
6133 * fns.c (make_hash_table, maybe_resize_hash_table):
6134 Cast arg of next_almost_prime.
5700d2cc 6135
178c5d9c 6136 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
6137
6138 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
6139 and unistd.h.
6140
4a27bdfb
GM
61412000-06-20 Gerd Moellmann <gerd@gnu.org>
6142
a61d762c
GM
6143 * keyboard.c (adjust_point_for_property): Check if display
6144 property should be treated as intangible by looking at its
6145 value.
6146
178c5d9c 6147 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
6148 (display_prop_intangible_p): New functions.
6149
6150 * dispextern.h (display_prop_intangible_p): Add prototype.
6151
6152 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 6153
4a27bdfb
GM
6154 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
6155 argument to sigprocmask.
6156
6157 * s/sco5.h (sigblock): Redefined to pass a pointer as second
6158 argument to sigprocmask.
6159
6160 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
6161 sigprocmask_set, and pass a pointer to it to sigprocmask.
6162
6163 * sysdep.c (sigprocmask_set): New variable.
6164
6165 * fileio.c (make_temp_name): Don't use `%s' in string passed to
6166 report_file_error.
6167
427ec082
SS
61682000-06-20 Sam Steingold <sds@gnu.org>
6169
6170 * xrdb.c: Don't declare xmalloc, xrealloc.
6171
8972fe79 61722000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
6173
6174 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
6175 (re_comp): Cast gettext return value to avoid complaints when
6176 !HAVE_LIBINTL.
6177
074b6efe
DL
61782000-06-20 Dave Love <fx@gnu.org>
6179
f85c008a
DL
6180 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
6181 HAVE_GETTIMEOFDAY.
6182
5700d2cc 6183 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 6184
d355bd8a 6185 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
6186
6187 * m/alpha.h: Don't declare xmalloc, xrealloc.
6188
0af4f205
DL
6189 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
6190
6191 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
6192
6193 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
6194
6195 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
6196 HAVE_GETWD.
6197
074b6efe
DL
6198 * keyboard.h (poll_for_input_1): Declare.
6199
6200 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
6201
6202 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
6203
6204 * doprnt.c: Don't declare xmalloc, xrealloc.
6205
6206 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
6207 (getenv, ctime, getwd): Removed.
6208 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
6209
6210 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
6211 x_set_tool_bar_lines.
6212
6213 * config.in: Add HAVE_GETWD. Move some definitions above
6214 machine/system includes.
6215
68a5e97b
KH
62162000-06-20 Kenichi Handa <handa@etl.go.jp>
6217
95417e1e
KH
6218 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
6219
68a5e97b
KH
6220 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
6221 contain information about ENCODING.
6222
6223 * fontset.c (FONTSET_ASCII): Use the first element of char table
6224 for an ASCII font, not defalt slot.
6225 (fontset_ref_via_base): If FONTSET doesn't contain information for
6226 C, try the default fontset.
6227 (make_fontset): Don't copy the default fontset.
6228 (fontset_font_pattern): Likewise.
6229 (accumulate_font_info): If ELT is nil, use the corresponding
6230 element in the default fontset.
6231
3b4fa1b2
DL
62322000-06-19 Dave Love <fx@gnu.org>
6233
943e731c
DL
6234 * syntax.c (Fparse_partial_sexp): Doc fix.
6235
6236 * regex.h: Test PROTOTYPES as well as __STDC__.
6237
3b4fa1b2
DL
6238 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
6239 errno, strerror. Put text after #endif in comment.
6240
6241 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
6242 pcc).
6243
6244 * xterm.c (x_frame_of_widget): Likewise.
6245
cdf0357b
GM
62462000-06-19 Gerd Moellmann <gerd@gnu.org>
6247
6248 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
6249 to Vfundamental_mode_abbrev_table.
6250
6251 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
6252 bogus objects are marked. This slows down GC by ~80 percent, but
6253 it might be worth trying when debugging GC-related problems.
6254 This feature requires conservative stack marking to be enabled.
6255
6256 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
6257 returns XLookupChars, reset `modifiers' to zero.
6258
998e9f8c
DL
62592000-06-19 Dave Love <fx@gnu.org>
6260
6261 * mktime.c: Unprotoized.
6262
18e21ce8 62632000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
6264
6265 * data.c (set_internal): If variable is frame-local,
6266 store the new value immediately into the frame parameter alist.
6267
140c4ac6
KR
62682000-06-19 Ken Raeburn <raeburn@gnu.org>
6269
14358466
KR
6270 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
6271 in the custom handler pointer.
6272
140c4ac6
KR
6273 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
6274 value, or checks for CHAR_META can fail when Lisp_Object is a
6275 union type.
6276 * keymap.c (get_keyelt): Likewise.
6277
10d7bf84
KH
62782000-06-19 Kenichi Handa <handa@etl.go.jp>
6279
6280 * ccl.h (struct ccl_program): New member eol_type.
6281 (struct ccl_spec): New member cr_carryover.
6282
6283 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
6284 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
6285
6286 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
6287 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
6288 (decode_eol_post_ccl): New function.
6289 (decode_coding): Don't detect EOL format here for CCL based coding
6290 systems.
6291 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
6292 decode_eol_post_ccl after running the CCL program.
6293 (code_convert_region): Don't detect EOL format here for CCL based
6294 coding systems.
6295 (decode_coding_string): Likewise.
6296
52e386c2
KR
62972000-06-18 Ken Raeburn <raeburn@gnu.org>
6298
6299 * charset.c (update_charset_table): Use XINT on "iso_final_char"
6300 when treating it as an integer.
6301
6302 * coding.h (encode_coding_string): Declare.
6303
6304 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
6305 it as an integer.
6306
6307 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
6308 "xkeymap" to avoid shadowing the "enum map_type" value that needs
6309 to be passed to get_local_map.
6310
6311 * sound.c (Fplay_sound): Don't call make_number on
6312 Frun_hook_with_args count argument.
6313
6314 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
6315 for lisp objects in X event structure data field, when lisp
6316 objects are represented with unions.
6317 (x_scroll_bar_to_input_event): Ditto.
6318
b357b9d4
KR
63192000-06-16 Ken Raeburn <raeburn@gnu.org>
6320
6321 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
6322 termination of string. Fix sense of test whether
6323 Vline_number_display_limit is an integer.
b357b9d4 6324
a871441d
GM
63252000-06-16 Gerd Moellmann <gerd@gnu.org>
6326
a9021acd
GM
6327 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
6328 only if HAVE_X_WINDOWS.
6329
6344985d
GM
6330 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
6331 of titles.
6332
427ec082 6333 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
6334 out of bounds.
6335
228b083e
EZ
63362000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
6337
6338 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
6339 of its headers.
6340
c25b53a2
KH
63412000-06-15 Kenichi Handa <handa@etl.go.jp>
6342
6343 * coding.c (decode_coding_emacs_mule): Always set src_base at the
6344 start of the while loop.
6345
a6981b11
GM
63462000-06-15 Gerd Moellmann <gerd@gnu.org>
6347
e9924e52
GM
6348 * atimer.c (alarm_signal_handler): Add forward declaration.
6349
a6981b11
GM
6350 * data.c (set_internal): Remove debug code.
6351
25fa6deb
GM
63522000-06-14 Gerd Moellmann <gerd@gnu.org>
6353
dce6b995
GM
6354 * Makefile.in (bootstrap-temacs): Add `-I../src'.
6355
9f817ea4
GM
6356 * unexec.c (toplevel) [COFF]: Include coff.h.
6357
6358 * s/lynxos.h: New file.
6359
6360 * keymap.c (Fsingle_key_description): Enclose function key and
6361 event symbol names in angle brackets.
6362
8a4e3c0c
GM
6363 * xdisp.c (setup_echo_area_for_printing): Call
6364 message_log_maybe_newline if message_buf_print is not set.
6365
6366 * print.c (printchar, strout): Don't check message_buf_print
427ec082 6367 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
6368 function does something useful even when message_buf_print is
6369 already set.
6370
25fa6deb
GM
6371 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
6372 variables.
6373 (ensure_echo_area_buffers): Initialize echo buffer's
6374 truncate lines setting to nil.
6375 (with_echo_area_buffer): Don't set the echo buffer's truncate
6376 lines setting here.
8a4e3c0c 6377 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
6378 of message_truncate_lines.
6379 (resize_mini_window): Handle case that lines are truncated.
6380 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
6381 message-truncate-lines.
6382
6383 * keyboard.c (read_char): Bind message-truncate-lines to t
6384 while displaying a help-echo.
6385
6386 * lisp.h (Qmessage_truncate_lines): External declaration.
6387
163dcff3
GM
63882000-06-13 Gerd Moellmann <gerd@gnu.org>
6389
1681ead6
GM
6390 * xdisp.c (Vline_number_display_limit): Renamed from
6391 line_number_display_limit.
6392 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
6393 Extend documentation string. Initialize
6394 Vline_number_display_limit to nil meaning no limit.
6395 (decode_mode_spec): Use Vline_number_display_limit with its new
6396 meaning.
6397
163dcff3
GM
6398 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
6399
18e21ce8 64002000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
6401
6402 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 6403
163dcff3
GM
6404 * xfns.c (x_set_frame_parameters): Comment fix.
6405
6406 * frame.c (store_frame_param): Call swap_in_global_binding if the
6407 variable's current binding was chosen based on this frame.
6408
6409 * data.c (swap_in_global_binding): New function.
6410
a704139d
EZ
64112000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
6412
6413 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
6414 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
6415
9b6610db
EZ
64162000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
6417
6418 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
6419
c68833d2
JR
64202000-06-12 Jason Rumney <jasonr@gnu.org>
6421
6422 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
6423
6424 * w32.h (EMACS_W32_H): Renamed from _NT_H_
6425
6426 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
6427
6428 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
6429
ed1056b3
GM
64302000-06-12 Gerd Moellmann <gerd@gnu.org>
6431
6432 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
6433 (syms_of_xfaces): Defsubr Sdump_colors.
6434 (x_free_colors): Don't treat b&w specially on default visual.
6435 (x_free_dpy_colors): New function.
6436 (free_face_colors): Don't check visual class; it's done
6437 in x_free_colors.
6438
6439 * xterm.c (x_frame_of_widget): New function.
6440 (x_alloc_nearest_color_for_widget): Use it.
6441 (x_copy_dpy_color): New function.
6442 (x_destroy_window): Free various colors.
6443
5050a2ef
KH
64442000-06-12 Kenichi Handa <handa@etl.go.jp>
6445
6446 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
6447
6448 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
6449
6450 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
6451
6452 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
6453
6454 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
6455
fb1b041d
DL
64562000-06-11 Dave Love <fx@gnu.org>
6457
6458 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
6459
ff96b5f4
EZ
64602000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
6461
6462 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
6463
db8eeecd
GM
64642000-06-11 Gerd Moellmann <gerd@gnu.org>
6465
ed1056b3 6466 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
6467 to `XEvent *'.
6468
49b71c5f
KH
64692000-06-10 Kenichi Handa <handa@etl.go.jp>
6470
c479bd55
KH
6471 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
6472 (regex_compile): Fix the code for handling the case of single byte
6473 char and multibyte char being mixed in a range within [...].
6474
ff6a65c2
KH
6475 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
6476 and dst_multibyte members of coding.
6477
49b71c5f
KH
6478 * charset.c (update_charset_table): Update the table
6479 bytes_by_char_head.
6480 (init_charset_once): Initialize elements of bytes_by_char_head to
6481 1 except for leading codes for private charases.
6482
6483 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
6484 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
6485 sequence.
6486
9e80b57d
KR
64872000-06-09 Ken Raeburn <raeburn@gnu.org>
6488
6489 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
6490 access the data it doesn't point to.
6491
f83fe4b4
GM
64922000-06-08 Gerd Moellmann <gerd@gnu.org>
6493
6494 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 6495 will be translated to a switch-frame event when reading the
f83fe4b4
GM
6496 event queue. This is necessary because Emacs otherwise won't
6497 perform a switch-frame to a new frame until some other event, for
6498 example a keystroke event, forces it to do so. This has various
6499 effects, one visible being that the cursor of a frame created with
6500 C-x 5 2 or switched to with a window manager key binding like
6501 A-TAB stays hollow because selected_window isn't on the newly
6502 focused frame until the switch-frame is performed.
6503
6504 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
6505 generating a switch-frame event if necessary.
6506
6507 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
6508
6509 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
6510 it's an integer.
6511
0890801b
KH
65122000-06-08 Kenichi Handa <handa@etl.go.jp>
6513
6514 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
6515 charset.
6516
173cbca8
GM
65172000-06-07 Gerd Moellmann <gerd@gnu.org>
6518
3091c2a6
GM
6519 * window.c (displayed_window_lines): Take empty lines at
6520 the bottom of a window into account.
427ec082 6521
f38952fe
GM
6522 * window.c (displayed_window_lines): New function.
6523 (Fmove_to_window_line): Use displayed_window_lines to determine
6524 the number of lines to move, instead of using the window's height.
6525
6526 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
6527 to stop reading, even if the form read sets point to a different
6528 value when evaluated.
6529
427ec082 6530 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
6531 put the cursor.
6532
6ba6c818
KH
65332000-06-07 Kenichi Handa <handa@etl.go.jp>
6534
6535 * fileio.c (e_write): Free composition data if stored in
6536 coding->cmp_data.
6537
5f1aea9a
GM
65382000-06-06 Gerd Moellmann <gerd@gnu.org>
6539
666852af
GM
6540 * xdisp.c (display_line): Set row's and iterator's
6541 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
6542 Set cursor even if row ends in the middle of a character.
6543 (dump_glyph_row): Print values of new flags.
6544 (redisplay_window) <cursor movement in unchanged window>: When
6545 point has been moved forward, and PT is at the end of the cursor
6546 row, don't place the cursor in the next row if the cursor row ends
6547 in the middle of a character or at ZV.
6548
6549 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
6550 (struct glyph_row): Add starts_in_middle_of_char_p and
6551 ends_in_middle_of_char_p.
6552 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
6553 ends_in_middle_of_char_p flag.
6554 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
6555
d13f3e2e
GM
6556 * term.c (append_glyph): Revert change of 2000-06-06.
6557
6558 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
6559 padding glyph not fitting on line as whole character not
6560 fitting on line.
6561
5f1aea9a
GM
6562 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
6563 this isn't true for images with `:ascent 100'.
6564
10cda9b0
KH
65652000-06-06 Kenichi Handa <handa@etl.go.jp>
6566
ed00559d
KH
6567 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
6568 as modified if it is originally unmodified.
6569
10cda9b0
KH
6570 * term.c (encode_terminal_code): Change the way to check if
6571 terminal coding does any conversion.
6572 (append_glyph): Set glyph->pixel_width correctly.
6573
6574 * xdisp.c (display_line): While checking line continuation, pay
6575 attention to a padding glyph.
6576
1969fae2
GM
65772000-06-05 Gerd Moellmann <gerd@gnu.org>
6578
6579 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
6580
162ccef4
DL
65812000-06-05 Dave Love <fx@gnu.org>
6582
f19f32dd
DL
6583 * xdisp.c: Include fontset.h.
6584
6585 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
6586
6587 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
6588
6589 * dispnew.c: Conditionally include term.h.
6590
6591 * coding.h: Declare code_convert_string_norecord.
6592
6593 * frame.h (struct frame): Use volatile unconditionally.
6594
6595 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
6596
6597 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
6598
6599 * systime.h: Protect against multiple inclusion.
6600 (timezone) [USG5_4]: Define as time_t.
6601
6602 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
6603 (Foptimize_char_table, make_temp_name): Declare.
6604
6605 * Makefile.in (xdisp.o): Depend on fontset.h.
6606
6607 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
6608
6609 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
6610 (Foptimize_char_table, make_temp_name): Declare.
6611
427ec082 6612 * s/irix4-0.h:
162ccef4
DL
6613 * s/irix5-0.h:
6614 * s/netbsd.h: Don't define autoconfiscated MATHERR.
6615
2082fe81
DL
66162000-06-02 Dave Love <fx@gnu.org>
6617
6618 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
6619
dcf671d2
GM
66202000-06-02 Gerd Moellmann <gerd@gnu.org>
6621
6622 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 6623 result face, set flags in that face indicating that colors may not
dcf671d2
GM
6624 be freed.
6625
6626 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
6627 glyph, use the ASCII NUL character to determine the face.
6628
d42122a3
DL
66292000-06-02 Dave Love <fx@gnu.org>
6630
6631 * sysdep.c: Conditionally include stdlib.h, unistd.h.
6632 (VFORK_RETURN_TYPE): Remove.
427ec082 6633
d42122a3
DL
6634 * config.in: Add NO_MATHERR.
6635
dd432f16
DL
66362000-06-01 Dave Love <fx@gnu.org>
6637
90aa4ea8
DL
6638 * cmds.c (internal_self_insert): Don't check
6639 Vbefore_change_function, Vafter_change_function.
6640
6641 * insdel.c (signal_before_change, signal_after_change): Likewise.
6642
6643 * buffer.c (Vbefore_change_function, Vafter_change_function):
6644 Variables and their initializations deleted.
6645
2330c9d4
DL
6646 * callint.c (Fcall_interactively): Doc fix.
6647
dd432f16
DL
6648 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
6649
bf9e8804
DL
66502000-05-31 Dave Love <fx@gnu.org>
6651
6652 * textprop.c: Revert last change -- duplicated.
6653
3694b4ab
GM
66542000-05-31 Gerd Moellmann <gerd@gnu.org>
6655
6656 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
6657 in #if 0.
6658
6659 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
6660
f14156cd
JR
66612000-05-31 Jason Rumney <jasonr@gnu.org>
6662
8119aab8
JR
6663 * search.c (Fre_search_forward, Fre_search_backward)
6664 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
6665
f14156cd
JR
6666 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
6667
4aab9be3
JR
66682000-05-30 Jason Rumney <jasonr@gnu.org>
6669
6670 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
6671 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
6672
6673 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
6674 member.
6675
6676 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
6677 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
6678 expand a nil default_filename.
6679
6680 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
6681 pointer to glyph_to_pixel_coords, not a frame.
6682
6683 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
6684 coding.h to dependencies.
6685
6686 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
6687
6688 * w32console.c (glyph_to_pixel_coords): Change first parameter to
6689 window pointer to be consistent with w32term.c and xterm.c.
6690
6691 * w32fns.c: Format and doc changes to bring closer to xfns.c.
6692 (VIETNAMESE_CHARSET): Define if not defined in system headers.
6693 (Qline_spacing, Qcenter): New variables.
6694 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
6695 (x_set_line_spacing): New function.
6696 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
6697 macros.
6698 (x_specified_cursor_type): New function.
6699 (x_set_cursor_type): Use it.
6700 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
6701 and icon strings.
6702 (validate_x_resource_name, x_get_resource_string): Measure lengths
6703 of external strings in bytes.
6704 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
6705 GetTextExtentPoint32 with NULL title.
6706 (Fx_create_frame): Initialize Qline_spacing.
6707 (w32_load_system_font): Initialize font->double_byte_p.
6708 (x_to_w32_charset): Use Vw32_charset_info_alist.
6709 (Image, busy cursor, tooltip functions): Merged changes from
6710 xfns.c. Not yet functional on Windows.
6711
6712 * w32gui.h (W32FontStruct): Add double_byte_p member.
6713
6714 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
6715 (emacs_button_translation): Use it.
6716 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
6717 in `mask' to be set.
6718
6719 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
6720 menu strings.
6721
6722 * w32term.c: Format and doc changes to bring closer to xterm.c.
6723 (w32_char_font_type): New enum.
6724 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
6725 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
6726 (w32_encode_char): New function.
6727 (x_encode_char): Removed.
6728 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
6729 x_encode_char and w32_font_is_double_byte.
6730 (x_produce_image_glyph): Use image_ascent.
6731 (x_produce_glyphs): Use new version of w32_per_char_metric and
6732 handle NULL return value. Allow extra line spacing.
6733 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
6734 (w32_get_glyph_overhangs): Remove unicode_p param. Use
6735 w32_font_type member of glyph instead.
6736 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
6737 (fast_find_position): Make sure not to consider rows not visible
6738 in the window.
6739 (w32_read_socket) [WM_MENUSELECT]: Cannot call
6740 w32_menu_display_help with input blocked, as it can abort.
6741 (x_display_and_set_cursor): Choose cursor depending
6742 on buffer-local value of cursor_type.
6743 (x_draw_bar_cursor): Add parameter WIDTH.
6744
6745 * w32term.h (CP_DEFAULT): Define.
6746 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
6747
10fc3187
GM
67482000-05-30 Gerd Moellmann <gerd@gnu.org>
6749
6750 * search.c (Fre_search_forward, Fre_search_backward)
6751 (Fposix_search_backward, Fposix_search_forward): Doc fix.
6752
d0555360
KH
67532000-05-30 Kenichi Handa <handa@etl.go.jp>
6754
6755 * coding.c (detect_coding_iso2022): Fix code for checking
6756 CODING_CATEGORY_MASK_ISO_8_2.
6757
f1ad044f
SM
67582000-05-29 Stefan Monnier <monnier@cs.yale.edu>
6759
6760 * regex.c (PREFETCH_NOLIMIT): New function.
6761 (re_match_2_internal): Use it and adjust the end_match_2 logic.
6762
84ec3b4b
GM
67632000-05-29 Gerd Moellmann <gerd@gnu.org>
6764
66254a13
GM
6765 * syntax.c (find_defun_start): Move test for
6766 open_paren_in_column_0_is_defun_start outside of the loop.
6767
49e70dec
GM
6768 * xdisp.c (redisplay_window): Really switch buffers when
6769 displaying mode lines, and temporarily set selected_frame to the
6770 frame of the window that's redisplayed.
6771
84ec3b4b
GM
6772 * xfaces.c (free_realized_faces): Block/unblock input.
6773 (free_realized_multibyte_face): Ditto.
6774
869a3a14
DL
67752000-05-29 Dave Love <fx@gnu.org>
6776
6777 * textprop.c (Qkeymap): New variable.
6778 (syms_of_textprop): Intern it.
6779
6780 * keymap.c: Include intervals.h.
6781 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
6782
6783 * Makefile.in (keymap.o): Depend on intervals.h.
6784
6785 * keyboard.c (menu_bar_items, tool_bar_items)
6786 (Fexecute_extended_command): Deal with `keymap' property.
6787 (read_key_sequence): Track map from `keymap' property as well as
6788 `local_map'.
6789
6790 * intervals.c (get_local_map): Extra arg to allow looking for
6791 `keymap' too.
6792
6793 * intervals.h (map_property): New enum.
6794 (get_local_map): Extra arg using it.
6795 (Qkeymap): Declare.
6796
84ec3b4b 6797 * lisp.h (get_local_map): Don't declare here.
869a3a14 6798
89d0c844
KH
67992000-05-29 Kenichi Handa <handa@etl.go.jp>
6800
6801 * Makefile.in (callproc.o): Depend on composite.h.
6802
6803 * callproc.c: Include composite.h.
6804 (Fcall_process): Handle composition correctly.
6805
6806 * coding.h (coding_allocate_composition_data): Extern it.
6807 (coding_restore_composition): Likewise.
6808
6809 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
6810 yet allocated, finish decoding with result
6811 CODING_FINISH_INSUFFICIENT_CMP.
6812 (coding_allocate_composition_data): Make it non-static.
6813 (coding_restore_composition): Likewise.
6814
797a084a
EZ
68152000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
6816
6817 * charset.c (syms_of_charset): Revert last change.
6818
cf872af5
EZ
68192000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
6820
6821 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
6822 charsets as unibyte, with 1-column screen width. Sent by Kenichi
6823 Handa.
cf872af5 6824
5b1ae051
EZ
68252000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
6826
6827 * charset.c (syms_of_charset): Set width of character sets
6828 eight-bit-control and eight-bit-graphic to 1 column.
6829
34ec9ebe
GM
68302000-05-26 Gerd Moellmann <gerd@gnu.org>
6831
6832 * config.in (HAVE_SPEED_T): New define.
6833
6834 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
6835 `extern speed_t'.
6836
dd854dc2
DL
68372000-05-26 Dave Love <fx@gnu.org>
6838
6839 * coding.c (shrink_decoding_region): Initialize eol_conversion.
6840
6841 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
6842 (Fsubr_arity): New function.
6843 (syms_of_data): Install them.
6844
ba9f8f95
KH
68452000-05-26 Kenichi Handa <handa@etl.go.jp>
6846
0f3e0672
KH
6847 * charset.c (init_charset_once): Set the table bytes_by_char_head
6848 correctly.
6849
cebefb44
KH
6850 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
6851 the default fontset to what Emacs uses by default.
0f3e0672
KH
6852 (check_registry_encoding): This function deleted.
6853 (Fset_fontset_font): Remove the adhoc condition for the default
6854 fontset. Allow cons in FONTNAME.
cebefb44 6855
0f3e0672
KH
6856 * fns.c (map_char_table): Ignore char-table entries for
6857 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 6858
7a18af49
KR
68592000-05-25 Ken Raeburn <raeburn@gnu.org>
6860
6861 * emacs.c (main): Initialize keyboard syms before initializing
6862 window code, so face names are available.
6863
d2af47df
SM
68642000-05-25 Stefan Monnier <monnier@cs.yale.edu>
6865
6866 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
6867 of an anchor at the beginning of a shy-group.
6868
fc6a6a4e
GM
68692000-05-25 Gerd Moellmann <gerd@gnu.org>
6870
6871 * xdisp.c (handle_invisible_prop): Don't try to skip over
6872 invisible text if end of text is already reached.
6873
005f0d35
DL
68742000-05-25 Dave Love <fx@gnu.org>
6875
02513cdd
DL
6876 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
6877
005f0d35
DL
6878 * coding.c (encode_eol): Add null statement after label.
6879
89f6ca4e
EZ
68802000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
6881
6882 * w16select.c (Fw16_set_clipboard_data): Fix the change from
6883 2000-05-20.
6884
a4e1759e
KH
68852000-05-25 Kenichi Handa <handa@etl.go.jp>
6886
6887 * ccl.c (ccl_driver): Fix previous change.
6888
eacfd7fe
KH
68892000-05-25 Kenichi Handa <handa@etl.go.jp>
6890
46ab33a9
KH
6891 * coding.c (run_pre_post_conversion_on_str): Set point to the
6892 beginning of buffer before calling coding->post_read_conversion.
6893 (decode_coding_string): Give correct args to
6894 run_pre_post_conversion_on_str.
6895 (encode_coding_string): Likewise.
6896
eacfd7fe
KH
6897 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
6898 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
6899 eight-bit-graphic correctly.
6900
f8569325
DL
69012000-05-24 Kenichi HANDA <handa@etl.go.jp>
6902
6903 * fileio.c (Finsert_file_contents): Even if a file is not found,
6904 execute codes for setting up coding system. Call
6905 after-insert-file-functions unconditionally.
6906
04545643
GM
69072000-05-24 Gerd Moellmann <gerd@gnu.org>
6908
6909 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
6910 BSD_PGRPS are not defined.
6911
747d90ea
KH
69122000-05-24 Kenichi Handa <handa@etl.go.jp>
6913
6914 * charset.c (update_charset_table): Accept nil in LONG_NAME and
6915 DESCRIPTION.
6916 (syms_of_charset): Avoid building same strings.
6917
716e3b88
GM
69182000-05-23 Gerd Moellmann <gerd@gnu.org>
6919
6920 * lread.c (Fload): Add a comment about the meaning of
6921 Vuser_init_file being t.
6922
6923 * puresize.h (BASE_PURESIZE): Increase to 675000.
6924
6925 * s/gnu-linux.h (setpgrp): Don't define it here because this
6926 prevents compilation on GNU/Linux systems with glib 2.2.
6927
6928 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
6929 as setpgid.
427ec082 6930
9aeb39fa
EZ
69312000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
6932
6933 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
6934 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
6935 version.
6936 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
6937
29ced61b
KH
69382000-05-23 Kenichi Handa <handa@etl.go.jp>
6939
0574a2ed
KH
6940 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
6941 unconditionally.
6942
3d80f24d
KH
6943 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
6944
6945 * term.c (encode_terminal_code): Set coding->src_multibyte
6946 properly.
6947
29ced61b
KH
6948 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
6949
d7e00792
KH
69502000-05-22 Kenichi Handa <handa@etl.go.jp>
6951
c9d80d38
KH
6952 * keyboard.c (read_char): Allow character codes 128..255 to be
6953 handled by input-method-function.
6954
d7e00792
KH
6955 * insdel.c (adjust_markers_for_replace): Fix previous change.
6956 (adjust_after_replace): If PREV_TEXT is nil, call
6957 adjust_markers_for_insert, not adjust_markers_for_replace.
6958
087121cc 69592000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 6960
087121cc
GM
6961 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
6962 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
6963 [HAVE_GRANDPT]: Define.
6964 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
6965
6966 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
6967 like SYSV_PTYS.
6968
6969 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
6970
6971 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
6972
c9671f81
KH
69732000-05-20 Kenichi Handa <handa@etl.go.jp>
6974
6975 The following changes are to handle 8-bit characters in a
6976 multibyte buffer/string without facing with byte combining
6977 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
6978 eight-bit-graphic (for 0xA0..0xFF) are introduced.
6979
6980 * Makefile.in (fns.o): Depend on charset.h.
6981
6982 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
6983 convert it to unibyte.
6984 (make_string): Use parse_str_as_multibyte, not chars_in_text.
6985
6986 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
6987 apparent char boundary.
6988 (Fset_buffer_multibyte): Convert 8-bit characters in the range
6989 0x80..0x9F to/from multibyte form.
6990
6991 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
6992 to unibyte.
6993
6994 * callproc.c (Fcall_process): Always encode an argument string if
6995 it is multibyte. Setup src_multibyte and dst_multibyte members of
6996 process_coding properly.
ce75fd23 6997
c9671f81
KH
6998 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
6999 SPLIT_NON_ASCII_CHAR.
7000
7001 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
7002 as is.
7003 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
7004
7005 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
7006 variables.
7007 (SPLIT_CHARACTER_SEQ): This macro deleted.
7008 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
7009 valid.
7010 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
7011 and eight-bit-graphic.
7012 (char_to_string): Likewise. Signal an error for too large
7013 character code.
7014 (char_printable_p): Return 0 for 8-bit characters.
7015 (update_charset_table): Update iso_charset_table only when a final
7016 character is non-negative.
7017 (find_charset_in_text): Renamed from find_charset_in_str.
7018 Arguments and return value changed. Callers changed.
7019 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
7020 be -1 if CHARSET is used only internally.
7021 (Fmake_char_internal): Handle new charsets; eight-bit-control and
7022 eight-bit-graphic.
7023 (Fcharset_after): Simplified.
7024 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
7025 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
7026 (multibyte_chars_in_text): Simplified by assuming there's no
7027 invalid multibyte sequence.
7028 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
7029 str_as_unibyte): New functions.
7030 (Fstring): Simpified by assuming that byte combining never
7031 happens.
7032 (init_charset_once): Initialization for
7033 LEADING_CODE_8_BIT_CONTROL.
7034 (syms_of_charset): Intern and staticpro Qeight_bit_control and
7035 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
7036 eight-bit-control and eight-bit-graphic.
7037
7038 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
7039 CHARSET_8_BIT_GRAPHIC): New macros.
7040 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
7041 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
7042 (CHARSET_REVERSE_CHARSET): Likewise.
7043 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
7044 eight-bit-graphic.
7045 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
7046 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
7047 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
7048 encounter an invalid multibyte sequence.
7049 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
7050 sequence is always valid.
7051 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
7052 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
7053 macros.
7054 (CHAR_STRING): For 8-bit characters, call char_to_string.
7055 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
7056 multibyte sequence is always valid.
7057 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
7058 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
7059 str_as_unibyte): Extern them.
7060 (BCOPY_SHORT): Fix a bug.
7061 (CHAR_LEN): This macro deleted. Callers changed to use
7062 CHAR_BYTES.
7063 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
7064 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
7065 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
7066
bd4bde7f 7067 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
7068 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
7069 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
7070 EMIT_BYTES): New macros.
7071 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
7072 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
7073 macros deleted.
7074 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
7075 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
7076 check the validity of multibyte sequence.
7077 (decode_coding_emacs_mule): New function.
7078 (encode_coding_emacs_mule): New macro.
7079 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
7080 the source.
7081 (DECODE_ISO_CHARACTER): Just return a character code.
7082 (DECODE_COMPOSITION_START): Set coding->result instead of result.
7083 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
7084 EMIT_CHAR to produced decoded characters. Exit the loop only by
7085 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
7086 block here.
7087 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
7088 only position codes for an invalid character.
7089 (encode_designation_at_bol): Return new destination pointer. 5th
7090 arg DSTP is changed to DST.
7091 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
7092 from the source by ONE_MORE_CHAR. Don't handle the case of last
7093 block here.
7094 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
7095 macros deleted.
7096 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
7097 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
7098 TWO_MORE_BYTES to fetch a byte from the source.
7099 (encode_eol): Pay attention to coding->src_multibyte.
7100 (detect_coding, detect_eol): Preserve members src_multibyte and
7101 dst_multibyte.
7102 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
7103 (encoding_buffer_size): Set magnification to 3 for all coding
7104 systems that require encoding.
7105 (ccl_coding_driver): For decoding, be sure that the result is
7106 valid multibyte sequence.
7107 (decode_coding): Initialize coding->errors and coding->result.
7108 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
7109 and raw-text, always call decode_eol. Handle the case of last
7110 block here. If not coding->dst_multibyte, convert the resulting
7111 sequence to unibyte.
7112 (encode_coding): Initialize coding->errors and coding->result.
7113 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
7114 and raw-text, always call encode_eol. Handle the case of last
7115 block here.
7116 (shrink_decoding_region, shrink_encoding_region): Detect cases
7117 that we can't skip data more rigidly.
7118 (code_convert_region): Setup src_multibyte and dst_multibyte
7119 members of coding. For decoding, if the buffer is multibyte,
7120 convert the source sequence to unibyte in advance. For encoding,
7121 if the buffer is multibyte, convert the resulting sequence to
7122 multibyte afterward.
7123 (run_pre_post_conversion_on_str): New function.
7124 (code_convert_string): Deleted and divided into the following two.
7125 (decode_coding_string, encode_coding_string): New functions.
7126 (code_convert_string1, code_convert_string_norecord): Call one of
7127 above.
7128 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
7129 MAKE_NON_ASCII_CHAR.
7130 (Fset_terminal_coding_system_internal,
7131 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
7132 and dst_multibyte members.
7133 (init_coding_once): Initialize iso_code_class with new enum
7134 ISO_control_0 and ISO_control_1.
7135
7136 * coding.h (enum iso_code_class_type): Member ISO_control_code is
7137 devided into ISO_control_0 and ISO_control_1.
7138 (struct coding_system): New members src_multibyte, dst_multibyte,
7139 errors, and result. Delete member fake_multibyte.
7140 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
7141 nonzero.
7142 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
7143 nonzero.
7144
7145 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
7146 (Faset): Likewise.
7147
7148 * editfns.c (Fformat): Be sure to convert 8-bit characters to
7149 multibyte form.
7150 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
7151 combining occurs.
7152 (Ftranspose_region): Delete codes for handling byte combining.
7153
7154 * fileio.c (Finsert_file_contents): Setup src_multibyte and
7155 dst_multibyte members of coding. On handling REPLACE on unibyte
7156 buffer, convert the result of decode_coding to unibyte. On
7157 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 7158 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
7159 multibyteness of the source (buffer or string).
7160
7161 * fns.c (concat): Handle 8-bit characters correctly.
7162 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
7163 unibyte in the result.
7164 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
7165 valid multibyte form in the result.
7166 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
7167 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
7168 return -1, signal an error.
7169 (base64_encode_1): New arg MULTIBYTE. Get each character by
7170 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
7171 character is found, return -1.
7172 (Fbase64_decode_region): Delete codes for handling byte-combining.
7173 Treat each decoded byte as a unibyte character.
7174 (Fbase64_decode_string): Return unibyte string.
7175 (Fcompare_strings, concat, string_byte_to_char): Use
7176 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
7177 FETCH_STRING_CHAR_ADVANCE.
7178 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
7179 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
7180
7181 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
7182 SPLIT_NON_ASCII_CHAR.
7183 (fontset_ref_via_base, fontset_set): Likewise
7184
7185 * insdel.c (adjust_markers_for_record_delete): Deleted.
7186 (adjust_markers_for_insert): Argument changed. Caller changed.
7187 (adjust_markers_for_replace): Likewise.
7188 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
7189 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
7190 (copy_text): Delete unused local varialbe c_save. For converting
7191 to multibyte, be sure to make all 8-bit characters in valid
7192 multibyte form.
7193 (count_size_as_multibyte): Handle 8-bit characters correctly.
7194 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
7195 adjust_after_replace, replace_range, del_range_2)
7196 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
7197 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
7198 adjust_after_replace, replace_range, del_range_2) Delete codes for
7199 handling byte combining.
7200 (adjust_before_replace): Deleted.
427ec082 7201
c9671f81
KH
7202 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
7203 SPLIT_NON_ASCII_CHAR.
7204 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
7205 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
7206 unconditionally.
7207 (Fkey_description): Likewise.
7208
7209 * lread.c (read1): On reading multibyte string, be sure to make
7210 all 8-bit chararacters in valid multibyte form.
7211 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
7212
7213 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
7214 unconditionally.
7215
7216 * process.c (Fstart_process): GCPRO current_dir before calling
7217 Ffind_operation_coding_system. Encode arguments here.
7218 (create_process): Don't encode arguments here. Setup
7219 src_multibyte and dst_multibyte members of struct coding.
7220 (read_process_output): Setup src_multibyte and dst_multibyte
7221 members of struct coding. If the output is to multibyte buffer,
7222 always decode the output of the process. Adjust the
7223 representation of 8-bit characters to the multibyteness of the
7224 output.
7225 (send_process): Setup coding->src_multibyte according to the
7226 multibyteness of the source.
7227
7228 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
7229 unconditionally.
7230 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
7231 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
7232
7233 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
7234 CHAR_LEN.
7235
7236 * w16select.c (Fw16_set_clipboard_data): Setup members
7237 src_multibyte and dst_multibyte of coding. Adjusted for the
7238 change for find_charset_in_str.
7239 (Fw16_get_clipboard_data): Likewise.
7240
7241 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
7242 dst_multibyte of coding.
7243 (x_to_w32_font): Likewise.
7244
7245 * w32select.c (Fw32_set_clipboard_data): Setup members
7246 src_multibyte and dst_multibyte of coding. Adjusted for the
7247 change for find_charset_in_str.
7248 (Fw32_get_clipboard_data): Likewise.
7249
7250 * xdisp.c (get_next_display_element): Handle 8-bit characters
7251 correctly.
7252 (next_element_from_display_vector): Use CHAR_BYTES instead of
7253 CHAR_LEN.
7254 (disp_char_vector): Use SPLIT_CHAR instead of
7255 SPLIT_NON_ASCII_CHAR.
7256
7257 * xselect.c (selection_data_to_lisp_data): Setup members
7258 src_multibyte and dst_multibyte of coding. Adjusted for the
7259 change for find_charset_in_str.
7260 (lisp_data_to_selection_data): Likewise.
7261
5f64c9e0
GM
72622000-05-19 Gerd Moellmann <gerd@gnu.org>
7263
2b63d473
GM
7264 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
7265 buffer.
7266
5f64c9e0
GM
7267 * dispextern.h (Vimage_types): Add extern declaration.
7268
7269 * xdisp.c (Vimage_types): Moved here from xfns.c.
7270 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
7271
7272 * xfns.c (Vimages_types): Moved to xdisp.c.
7273 (syms_of_xfns): Move `image-types' to xdisp.c.
7274
7275 * w32fns.c (Vimage_types): Removed.
7276 (syms_of_w32fns): Remove `image-types'.
7277
813086ea
KH
72782000-05-18 Kenichi Handa <handa@etl.go.jp>
7279
7280 * fns.c (map_char_table): Pay attention to character number of
7281 charset. Check the validity of charset at the first level. For
7282 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
7283 the default value.
7284
7285 * fontset.c: Include "buffer.h".
7286 (fs_load_font): If the face has fontset, record the face ID in
7287 that fontset.
7288 (Finternal_char_font): New function.
7289 (accumulate_font_info): New function.
7290 (Ffontset_info): Rewritten for the new fontset implementation.
7291 (syms_of_fontset): Register Vdefault_fontset in the first element
7292 of Vfontset_table. Include Vdefault_fontset in
7293 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
7294 function.
7295
bdaebbf0
DL
72962000-05-16 Dave Love <fx@gnu.org>
7297
7298 * m/iris5d.h: Deleted -- unused.
7299
cb613bb8
GM
73002000-05-16 Gerd Moellmann <gerd@gnu.org>
7301
b15f3b77
GM
7302 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
7303 `invalid' instead of `illegal'.
7304
7305 * indent.c (Fmove_to_column): When ending within a tab, insert
7306 spaces first so that markers at the end of the tab get adjusted.
7307
835c1b36
GM
7308 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
7309 buffer list that wasn't selected in that frame.
7310
cb613bb8
GM
7311 * filelock.c (get_boot_time): To obtain an 8 char file name, which
7312 is needed on mescaline, use a 2 char prefix, and call
7313 make_temp_name with second arg non-zero.
7314
7315 * fileio.c (make_temp_name): New function, extracted from
7316 Fmake_temp_name.
7317 (Fmake_temp_name): Use it.
7318
f685bea9
EZ
73192000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
7320
7321 * window.c (coordinates_in_window): Subtract 1 when computing
7322 right_x.
7323
a1b8d58b
GM
73242000-05-15 Gerd Moellmann <gerd@gnu.org>
7325
7326 * Makefile.in (lisp): Add env.elc.
7327
7328 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
7329
a265079f
GM
73302000-05-12 Gerd Moellmann <gerd@gnu.org>
7331
7332 * search.c (Freplace_match): Handle case of `\N' in the
7333 replacement when there's no group N.
7334
da4496b6
GM
73352000-05-11 Gerd Moellmann <gerd@gnu.org>
7336
0ace421a
GM
7337 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
7338 of the message to message_dolog.
7339
1172eb8d
GM
7340 * keyboard.c (read_char): Don't clear current message for help
7341 events; let the code handling help events handle this. Change
7342 code detecting help events that should be ignored.
7343
da4496b6
GM
7344 * xdisp.c (handle_single_display_prop): Don't try to set PT if
7345 we're interating over a string.
7346
0623e40f
DL
73472000-05-09 Dave Love <fx@gnu.org>
7348
7349 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
7350 that offset before writing. Move gcpro region past call of
7351 Ffile_regular_p.
7352
bae2503b
DL
73532000-05-04 Dave Love <fx@gnu.org>
7354
7355 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
7356
ec82fb2f
GM
73572000-05-04 Gerd Moellmann <gerd@gnu.org>
7358
7359 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
7360 of inserted characters when BUF equals the current buffer, and PT
7361 is in front of or equal to FROM.
7362
cbf18892
GM
73632000-05-03 Gerd Moellmann <gerd@gnu.org>
7364
4ff40dd0
GM
7365 * xdisp.c (handle_single_display_prop): If display property value
7366 is invalid, or something not supported on the frame, restore
7367 iterator's position to what it was initially. Make sure to return
7368 0 for invalid and unsupported property values.
7369
cbf18892
GM
7370 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
7371 that x_per_char_metric returns null.
7372
1b0672c3
GM
73732000-05-02 Gerd Moellmann <gerd@gnu.org>
7374
576da55d
GM
7375 * xterm.h (struct face): Add forward declaration.
7376 (struct image): Ditto.
7377 (image_ascent): Add prototype.
7378
7379 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7380 (x_draw_image_relief, x_draw_image_foreground_1): Call function
7381 image_ascent instead of using IMAGE_ASCENT.
7382
7383 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
7384 (IMAGE_ASCENT): Removed.
7385
7386 * xfns.c (Qcenter): New variable.
7387 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
7388 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
7389 (image_ascent): New function.
7390 (lookup_image): Recognize `:ascent center'.
7391 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7392 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7393 (xbm_load): Don't set image's ascent here.
7394 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
7395 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
7396 check ascent values here.
7397 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
7398 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
7399 (syms_of_xfns): Initialize Qcenter.
7400
1b0672c3
GM
7401 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
7402 to the limits, increase the limits.
7403
0d7811ed
KH
74042000-05-01 Kenichi Handa <handa@etl.go.jp>
7405
7406 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
7407 Check Vfont_encoding_alist against the full name of the opened
7408 font.
7409
a943a5ca
GM
74102000-04-28 Gerd Moellmann <gerd@gnu.org>
7411
7412 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
7413 taller than the window.
7414
5dba1e29
KH
74152000-04-28 Kenichi Handa <handa@etl.go.jp>
7416
7417 * xfaces.c (realize_x_face): Fix the argument of the second
7418 xassert. BASE_FACE may not be a face for ASCII.
7419
353964e3
GM
74202000-04-27 Gerd Moellmann <gerd@gnu.org>
7421
c76e04a8
GM
7422 * print.c (print_object): Treat print-length < 0 as nil.
7423
7424 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
7425
7426 * s/freebsd.h (TERMCAP_OBJ): Removed.
7427 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
7428
7429 * lread.c (read1): Don't treat period followed by certain
7430 characters as symbol start.
7431
7432 * xfns.c (slurp_file): New function.
7433 (xbm_image_p): Handle case of in-memory XBM files.
7434 (xbm_scan): Rewritten to work on memory buffers instead of files.
7435 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
7436 Work on memory buffers instead of files. If DATA is null test
7437 if buffer looks like an in-memory XBM file.
7438 (xbm_load_image): Renamed from xbm_load_image_file. Work on
7439 memory buffers instead of files.
7440 (xbm_file_p): New function.
7441 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
7442
353964e3
GM
7443 * lread.c (end_of_file_error): New function.
7444 (read1): Call it instead of signaling `end-of-file' directly.
7445
427ec082 7446 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
7447 with Fprinc instead of Fprin1.
7448
24d744ac
KR
74492000-04-26 Ken Raeburn <raeburn@gnu.org>
7450
7451 * window.c (freeze_window_start): Check that minibuffer scroll
7452 window isn't nil before extracting the window structure pointer
7453 from it.
7454
7455 * undo.c (record_delete): If we hit the end of the undo list, stop
7456 picking elements apart.
7457
7464346d
GM
74582000-04-26 Gerd Moellmann <gerd@gnu.org>
7459
7460 * xdisp.c (display_line): If lines are continued, restore
7461 iterator's ascent/descent information to the values before the
7462 first glyph not fitting on the line.
7463
612839b6
GM
74642000-04-25 Gerd Moellmann <gerd@gnu.org>
7465
7466 * xdisp.c (try_window_id) <all changes above window start>: Adjust
7467 positions in glyph matrix. Don't compute new window end
7468 positions.
7469
7470 * dispnew.c (increment_matrix_positions): Renamed from
7471 increment_glyph_matrix_buffer_positions.
7472 (increment_row_positions): Renamed from
7473 increment_glyph_row_buffer_positions.
7474
7475 * dispextern.h: Change names of renamed functions from dispnew.c
7476 in prototypes.
7477
cc181e95
GM
74782000-04-24 Gerd Moellmann <gerd@gnu.org>
7479
abfcc168
GM
7480 * fileio.c (Fdo_auto_save): Create directories for auto-save
7481 list file if necessary.
7482
cc181e95
GM
7483 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
7484 from buffer or frame.
7485 (automatic_hscrolling_p): New variable.
7486 (hscroll_windows): Scroll windows horizontally only if automatic
7487 hscrolling is allowed.
7488 (syms_of_xdisp): New variable `automatic-hscrolling'.
7489
7490 * frame.h (struct frame): Add member extra_line_spacing.
7491
7492 * xfns.c (x_set_line_spacing): New function.
7493 (Fx_create_frame): Set line spacing from resources.
7494 (Qline_spacing): New variable.
7495 (syms_of_xfns): Initialize Qline_spacing.
427ec082 7496
cc181e95
GM
7497 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
7498
7499 * buffer.c (init_buffer_once): Handle extra_line_spacing.
7500 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 7501 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
7502 extra_line_spacing from default value.
7503 (init_buffer_once): Initialize default value of extra_line_spacing.
7504
7505 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
7506 and extra3.
7507
7508 * xterm.c (x_produce_glyphs): Remove reference to struct it's
7509 prompt_width. Add extra line spacing.
7510
7511 * term.c (produce_glyphs): Remove reference to struct it's
7512 prompt_width.
7513
7514 * dispextern.h (struct it): Remove member prompt_width, add
7515 extra_line_spacing.
7516
58827478
GM
75172000-04-22 Gerd Moellmann <gerd@gnu.org>
7518
7519 * dispnew.c (update_frame_line): When writing a whole line, make
7520 sure cursor is in the right row afterwards, otherwise a use of
7521 capability `ch' in cmgoto might leave the cursor in the row below.
7522
25a87f42
GM
75232000-04-21 Gerd Moellmann <gerd@gnu.org>
7524
7525 * lisp.h (struct Lisp_Buffer_Cons): Remove.
7526
7527 * keyboard.c (timer_check): Fix typo in comment.
7528
54edf5c2
KH
75292000-04-21 Kenichi Handa <handa@etl.go.jp>
7530
7531 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
7532 name change: ch -> character.
7533
3a64eef5
GM
75342000-04-20 Gerd Moellmann <gerd@gnu.org>
7535
7536 * keyboard.c (echo_message_buffer): New variable.
7537 (echo_now): Set echo_message_buffer to the echo area buffer used
7538 to display the echo.
7539 (cancel_echoing): Reset echo_message_buffer to nil.
7540 (read_char): Code rewritten that handles canceling an echo or
7541 echoing a dash, respectively.
7542
7543 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
7544 directory doesn't exist.
7545
6142fdcb
DL
75462000-04-19 Dave Love <fx@gnu.org>
7547
7548 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
7549 (concat): Don't allow numeric args.
7550 (Fconcat): Doc change.
6142fdcb 7551
ac6b5352
SM
75522000-04-19 Stefan Monnier <monnier@cs.yale.edu>
7553
7554 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
7555 instead define end_match(1|2) more carefully.
7556 Use GET_CHAR_BEFORE_2 for `begline'.
7557
cb9215e4
GM
75582000-04-19 Gerd Moellmann <gerd@gnu.org>
7559
5e3dac3f
GM
7560 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
7561 on 64-bit systems where NULL is defined as `0'.
7562
7563 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
7564 the `variable argument list' to make it work on Alpha.
7565
cb9215e4
GM
7566 * m/alpha.h (_LP64) [!_LP64]: Define.
7567 (ORDINARY_LINK): Define for NetBSD.
7568
7569 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 7570
f532dca0
DL
75712000-04-19 Dave Love <fx@gnu.org>
7572
c750667e
DL
7573 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
7574 change.
7575
7576 * Makefile.in (LIBS): Don't use.
7577 (GETLOADAVG_OBJ): Define again.
7578 (otherobj): Add GETLOADAVG_OBJ.
7579
f532dca0
DL
7580 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
7581
1c7e22fd
GM
75822000-04-18 Gerd Moellmann <gerd@gnu.org>
7583
f6d3257b
GM
7584 * lread.c (read_filtered_event): Cancel and start busy cursor.
7585
427ec082 7586 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
7587 that the per-character metrics may be null.
7588
e10f64e7
GM
75892000-04-17 Gerd Moellmann <gerd@gnu.org>
7590
0daee095
GM
7591 * buffer.c (clone_per_buffer_values): New function.
7592 (Fmake_indirect_buffer): Add optional argument CLONE. Call
7593 clone_per_buffer_values if CLONE is not nil.
7594
e10f64e7
GM
7595 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7596
38687d43
DL
75972000-04-16 Dave Love <fx@gnu.org>
7598
7599 * Makefile.in: Remove obsolete localcpp stuff.
7600 (GETLOADAVG_OBJ): Don't define.
7601 (obj): Move LIBOBJS...
7602 (otherobj): ... to here.
7603 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
7604 whitespace-only lines after the continuation (Irix).
7605
c21c7262
GM
76062000-04-14 Gerd Moellmann <gerd@gnu.org>
7607
7608 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
7609
7610 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
7611
314767c0
DL
76122000-04-14 Dave Love <fx@gnu.org>
7613
7614 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
7615 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
7616 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
7617 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
7618 NLIST_STRUCT.
7619
7620 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
7621 autoconfiscated HAVE_GETLOADAVG.
7622
7623 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
7624 BROKEN_MKTIME.
7625
a2522dca
GM
76262000-04-14 Gerd Moellmann <gerd@gnu.org>
7627
7628 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
7629 (fill_in_lock_file_name): Avoid existing files that aren't
7630 links.
7631
33744b5d
DL
76322000-04-14 Dave Love <fx@gnu.org>
7633
c21c7262 7634 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
7635 (INTERVAL_SRC): Convert to make variable.
7636 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
7637 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
7638 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
7639 add LIBOBJS.
7640 (SOME_MACHINE_OBJECTS): Remove interval stuff.
7641 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
7642 (shortlisp): Add facemenu, float-sup, frame.
7643 (SOME_MACHINE_LISP): Remove them from here.
7644 (LIBES): Change unused LDLIBS to autoconf LIBS.
7645
7646 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
7647
9d3d5916
KH
76482000-04-14 Kenichi Handa <handa@etl.go.jp>
7649
7650 * composite.c (update_compositions): If FROM and TO are not in a
7651 valid range, do nothing.
7652
198e3c7a
GM
76532000-04-13 Gerd Moellmann <gerd@gnu.org>
7654
7655 * tparam.c (tparam1): Abort when encountering an unknown
7656 `%'-specifier.
7657
7658 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
7659 terminfo.o.
7660
7661 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
7662 as TERMCAP_OBJ.
7663
055a28c9
EZ
76642000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
7665
7666 * fileio.c (a_write): Remove redundant semi-colons.
7667 (e_write): Return -1 if failed to write all the data.
7668 This fixes the changes made at 1999-12-15.
7669
f5c75033
DL
76702000-04-12 Dave Love <fx@gnu.org>
7671
7672 * fns.c (mapcar1): Test for null vals to support mapc.
7673 (Fmapc): New function.
7674
0c3cfc51
EZ
76752000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
7676
7677 * msdos.c (NUM_MOUSE_BUTTONS): Define.
7678 (IT_frame_up_to_date): Support the buffer local value of
7679 cursor-type, if defined.
7680
33465a31
DL
76812000-04-10 Dave Love <fx@gnu.org>
7682
7683 * editfns.c (preceding-char, following-char): Doc fix.
7684
6ed56568
KR
76852000-04-10 Ken Raeburn <raeburn@gnu.org>
7686
7687 * Makefile.in (temacs): Revert 2000-03-12 change.
7688
7cf80d4e
JR
76892000-04-10 Jason Rumney <jasonr@gnu.org>
7690
7691 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
7692
34f3f342
GM
76932000-04-10 Gerd Moellmann <gerd@gnu.org>
7694
1a1b1895
GM
7695 * xdisp.c (setup_echo_area_for_printing): Choose an echo
7696 area buffer, if it's not set up yet.
7697
34f3f342
GM
7698 * indent.c (compute_motion): Set immediate_quit.
7699
be0dbdab
GM
77002000-04-09 Gerd Moellmann <gerd@gnu.org>
7701
c45be9ac
GM
7702 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
7703 variable.
7704 (realize_tty_face): Suppress boldness if colors are the inverse of
7705 the default colors, and tty_suppress_bold_inverse_default_colors_p
7706 is set.
7707 (Ftty_suppress_bold_inverse_default_colors): New function.
7708 (syms_of_xfaces): Defsubr it.
7709
be0dbdab
GM
7710 * buffer.c (Frestore_buffer_modified_p): New function.
7711 (syms_of_buffer): Defsubr it.
7712
e8413c3b
KR
77132000-04-08 Ken Raeburn <raeburn@gnu.org>
7714
87f67317
KR
7715 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
7716 charset id (int) argument, not a charset (Lisp_Object).
7717
e8413c3b
KR
7718 * coding.h (code_convert_string): Declare.
7719 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
7720 object, as the fourth argument to code_convert_string.
7721
7722 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
7723 value.
7724 (Fset_fontset_font): Use EQ to compare lisp objects.
7725
7c752c80
KR
77262000-04-05 Ken Raeburn <raeburn@gnu.org>
7727
c0333abc
KR
7728 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
7729 a pointer that looks like a lisp object.
7730 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
7731 zero, instead see whether it's an integer object, since they can't
7732 have intervals.
7733 (GET_INTERVAL_OBJECT): Simply assign to the destination.
7734
7c752c80
KR
7735 * dispnew.c (allocate_matrices_for_frame_redisplay,
7736 direct_output_forward_char): Use X(U)INT and make_number as needed
7737 to convert between (unsigned) int values and lisp integers.
7738 * keyboard.c (read_key_sequence): Likewise.
7739 * lread.c (substitute_object_recurse): Likewise.
7740 * fns.c (concat, hash_lookup, hash_remove): Likewise.
7741 * minibuf.c (do_completion, Fminibuffer_complete_word,
7742 Fminibuffer_completion_help): Likewise.
7743 * term.c (produce_special_glyphs): Likewise.
7744
7745 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
7746 * print.c (print_preprocess, print_object): Likewise.
7747
7748 * search.c (compile_pattern): Use NILP when checking for nil.
7749
74e49b38
KR
7750 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
7751 __OPTIMIZE__]: Provide a GNU C macro version that handles
7752 lisp-object unions.
7753 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
7754 field, to better cope with ENABLE_CHECKING and calls that modify a
7755 Lisp_Object using its old value.
7756
685e5ed2
GM
77572000-04-04 Gerd Moellmann <gerd@gnu.org>
7758
c407c570
GM
7759 * window.c (compare_window_configurations): Signal an error
7760 if parameters C1 or C2 aren't window configurations.
7761
685e5ed2
GM
7762 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
7763 AFTER_POTENTIAL_GC calls around calls to functions that can
7764 signal an error and thus invoke the debugger.
7765
587a49ab
GM
77662000-04-03 Gerd Moellmann <gerd@gnu.org>
7767
62f20204
GM
7768 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
7769 an error if decoding fails.
7770
587a49ab
GM
7771 * keyboard.c (lispy_mouse_names): Variable removed.
7772 (Vlispy_mouse_stem): New variable.
7773 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
7774 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
7775 for any mouse button number. Increase size of mouse_syms and
7776 button_down_location as needed. Call modify_event_symbol with
7777 different arguments.
7778 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
7779 Call modify_event_symbol with different arguments.
7780 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
7781 for any button number. Call modify_event_symbol with different
7782 arguments.
7783 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
7784 Accept a string for NAME_ALIST_OR_STEM.
7785
7786 * lisp.h (larger_vector): Add prototype.
7787
7788 * fns.c (larger_vector): Make externally visible.
7789
7790 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
7791
2d1675e4
SM
77922000-04-02 Stefan Monnier <monnier@cs.yale.edu>
7793
7794 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
7795 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
7796 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
7797 we are between str1 and str2.
7798 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
7799 (PATFETCH): Use `TRANSLATE'.
7800 (PATFETCH_RAW): Fetch multibyte char if applicable.
7801 (PATUNFETCH): Remove.
7802 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
7803 When writing a char, write it directly into the pattern buffer rather
7804 than going needlessly through a temp char-array.
7805 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
7806 multibyte magic and remove the useless `#ifdef emacs'.
7807 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
7808 buffer.
7809
7810 * regex.h (struct re_pattern_buffer): Make field `multibyte'
7811 conditional on `emacs'.
7812
7813 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
7814
cc2d8c6b
KR
78152000-04-01 Ken Raeburn <raeburn@gnu.org>
7816
7817 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
7818 non-union-type versions of XMARK and friends here, because XMARK
7819 and friends won't work on an integer field if NO_UNION_TYPE is not
7820 defined.
7821 (make_number): Define as a function if it's not defined as a
7822 macro.
7823
09654086
KR
7824 * composite.c (run_composite_function): Use NILP when checking for
7825 nil.
7826 (syms_of_composite): Delete local var NARGS, pass an int as first
7827 argument to Fmake_hash_table.
7828
2387b382
KR
7829 * editfns.c (text_property_stickiness): Use NILP to test
7830 Lisp_Object boolean value.
7831 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
7832 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
7833 problems reading from and changing the same lisp value in an
7834 XSETSTRING call.
7835
27660e89
GM
78362000-04-01 Gerd Moellmann <gerd@gnu.org>
7837
7838 * term.c (TN_no_color_video): New variable.
7839 (term_init): Intitialize TN_no_color_video.
7840 (enum no_color_bit): New enumeration.
7841 (MAY_USE_WITH_COLORS_P): New macro.
7842 (turn_on_face): Use it to determine if attributes may be used
7843 combined with colors.
7844
3578db3c
KR
78452000-04-01 Ken Raeburn <raeburn@gnu.org>
7846
7847 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
7848 with int lvalues via casts; instead, just yield lisp object
7849 lvalues.
7850 (enlarge_window): Variable sizep now points to Lisp_Object. Use
7851 proper accessor macros.
7852 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
7853 (grow_mini_window): Fix typo getting int value of root->height.
7854
6fc556fd
KR
7855 * xdisp.c (compute_string_pos): Fix order of arguments to
7856 string_pos_nchars_ahead.
7857 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
7858 count arg to variable-arg routines like Frun_hook_with_args and
7859 Fformat.
587a49ab
GM
7860 (back_to_previous_visible_line_start)
7861 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
7862 fixed-arg routines like Fget_char_property and Fmake_string.
7863 (reconsider_clip_changes): Use XINT when comparing integer lisp
7864 objects, or passing them as int arguments.
587a49ab
GM
7865 (mark_window_display_accurate, insert_left_trunc_glyphs)
7866 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
7867 storing or passing integer values as lisp objects.
7868 (set_cursor_from_row, highlight_trailing_whitespace): Use
7869 INTEGERP, not implicit test against zero, for glyph object.
7870 (try_window_id): Don't use make_number when we want an int value.
7871
7872 * xfaces.c (xlfd_symbolic_value): Make last argument a
7873 Lisp_Object, to be consistent with callers.
7874 (Fbitmap_spec_p): Use XINT to get numeric value of height.
7875 (lface_hash): Apply XFASTINT to lisp values before folding in.
7876
7877 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
7878 fill in window width and height. Pass an int, not a lisp object,
7879 as first arg to Finsert.
7880
6e7b2457
GM
78812000-04-01 Gerd Moellmann <gerd@gnu.org>
7882
610d841e
GM
7883 * xfaces.c (realize_basic_faces): Block input while realizing
7884 the faces.
7885
6e7b2457
GM
7886 * keyboard.c (lispy_mouse_names): Add additional mouse names.
7887
7888 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
7889
aa110c0c
GM
78902000-03-31 Gerd Moellmann <gerd@gnu.org>
7891
7892 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 7893 or ASCII, handle case that per-char metric is null.
aa110c0c 7894
8801a864
KR
78952000-03-30 Ken Raeburn <raeburn@gnu.org>
7896
c6129d7e
KR
7897 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
7898
8801a864
KR
7899 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
7900 XSUBR, XBUFFER): Verify correct object type before returning
7901 pointer, using eassert.
7902 * frame.h (XFRAME): Likewise.
7903
7904 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
7905 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
7906 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
7907 type.
7908 * data.c (set_internal): Likewise.
7909 * dispextern.h (WINDOW_WANTS_MODELINE_P,
7910 WINDOW_WANTS_HEADER_LINE_P): Likewise.
7911 * fileio.c (auto_save_1): Likewise.
7912 * insdel.c (check_markers): Likewise.
7913 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
7914 * undo.c (record_insert): Likewise.
7915 * vmsproc.c (child_sig): Likewise.
7916 * window.c (unshow_buffer, window_loop): Likewise.
7917 * xterm.c (x_erase_phys_cursor): Likewise.
7918
8e7af858
GM
79192000-03-30 Gerd Moellmann <gerd@gnu.org>
7920
7921 * xfns.c (free_image_cache): Free the cache structure itself
7922 last, after all its members have been freed.
7923
7924 * lisp.h (xstrdup): Add prototype.
7925
7926 * alloc.c (xstrdup): Moved here from xfaces.c.
7927 (allocating_for_lisp): Variable removed.
7928 (lisp_malloc): Block input around the calls to malloc and
7929 mem_insert.
7930
7931 * xfaces.c (realize_tty_face): Use find_symbol_value instead
7932 of Fsymbol_value.
7933 (xstrdup): Moved to alloc.c.
7934
e0b8c689
KR
79352000-03-29 Ken Raeburn <raeburn@gnu.org>
7936
b96f9fb7
KR
7937 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
7938
7939 * emacs.c (main): Fix sense of no-loadup test.
7940
e0b8c689
KR
7941 * config.in (ENABLE_CHECKING): Undef.
7942
7943 * lisp.h (struct interval): Replace "parent" field with a union of
7944 interval pointer and Lisp_Object; add new bitfield to use as
7945 discriminant. Change other flag fields to bitfields.
7946 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
7947 is defined and the supplied test fails, print a message and
7948 abort.
7949 (eassert): New macro. Use CHECK to provide an assert-like
7950 facility.
7951
7952 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
7953 pointers; abort if the value looks like a lisp object.
7954 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
7955 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
7956 Modify for new interval parent definition.
7957
7958 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
7959 UNMARK_BALANCE_INTERVALS): Update references that need an
7960 addressable lisp object in the interval structure.
7961 (die): New function.
7962 (suppress_checking): New variable.
7963
7964 * intervals.c (interval_start_pos): Just return 0 if there's no
7965 parent object.
7966
f83c5440
GM
79672000-03-29 Gerd Moellmann <gerd@gnu.org>
7968
7969 * lread.c (read1): Accept `.' (period) as symbol start like in CL
7970 and earlier Emacs versions.
7971
7972 * keyboard.c (Ftop_level): Cancel busy-cursor.
7973
7974 * eval.c (call_debugger): Cancel busy-cursor.
7975
fdce64ff
KH
79762000-03-29 Kenichi Handa <handa@etl.go.jp>
7977
7978 * search.c (Freplace_match): Adjust multibyteness of the current
7979 buffer and NEWTEXT. Free allocated memory before signaling an
7980 error.
7981
f6a3f532
SM
79822000-03-28 Stefan Monnier <monnier@cs.yale.edu>
7983
7984 * regex.c (analyse_first): New function obtained by ripping out most
7985 of re_compile_fastmap and generalizing it a little bit so that it
7986 can also just return whether a given (sub)pattern can match the empty
7987 string or not.
7988 (regex_compile): Use `analyse_first' to decide whether the loop-check
7989 needs to be done or not for *, +, *? and +? (the loop check is costly
7990 for non-greedy repetition).
7991 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
7992
e9b309ac
DL
79932000-03-28 Dave Love <fx@gnu.org>
7994
bb15bd9a
DL
7995 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
7996 alpha.
7997
e9b309ac
DL
7998 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
7999
ed0767d8
SM
80002000-03-27 Stefan Monnier <monnier@cs.yale.edu>
8001
8002 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
8003 an expression.
8004 (enum re_opcode_t): Update description of succeed_n.
8005 (PATFETCH): Always define.
8006 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
8007 operators, char classes, shy-groups and intervals).
8008 Optimize special cases of intervals so as to only use succeed_n and
8009 jump_n when really needed.
8010 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
8011 that we don't have to handle the special cases any more.
8012 Simplify on_failure_jump handling as well.
8013
e11e7e46
JR
80142000-03-28 Jason Rumney <jasonr@gnu.org>
8015
8016 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
8017
88faab89
GM
80182000-03-27 Gerd Moellmann <gerd@gnu.org>
8019
182ff242
GM
8020 * s/freebsd.h (GC_SETJMP_WORKS): Define.
8021
8022 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 8023
182ff242
GM
8024 * alloc.c (mark_maybe_object): New function.
8025 (mark_memory): Use it.
8026 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
8027 (setjmp_tested_p, longjmp_done): New variables.
8028 (test_setjmp): New function.
8029 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
8030 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
8031
c1005d06
GM
8032 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
8033 to DEC_TEXT_POS and INC_TEXT_POS.
8034
8035 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
8036 with parameter MULTIBYTE_P.
8037
427ec082 8038 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
8039 MULTIBYTE_P.
8040
7439e5b9 8041 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
8042 buffers because it looks for multibyte character byte sequences
8043 which don't exist in unibyte text.
7439e5b9 8044
d9c545da
GM
8045 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
8046
11fd416e 8047 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
8048 [DEBUG_X_COLORS]: New functions.
8049 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
8050
8051 * xfns.c (x_set_cursor_color): Get color reference counts right.
8052
8053 * xterm.c (x_copy_color): New function.
8054 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
8055
8056 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
8057 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
8058 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
8059 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
8060 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
8061 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
8062 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
8063 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
8064 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
8065 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
8066
11fd416e
GM
8067 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
8068 names for handling per-buffer variables.
d9c545da
GM
8069
8070 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
8071 instead of MAX_BUFFER_LOCAL_VARS.
8072 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
8073
8074 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
8075
88faab89
GM
8076 * xfns.c (x_specified_cursor_type): New function.
8077 (x_set_cursor_type): Use it.
8078
8079 * buffer.h (struct buffer): Add cursor_type.
8080
d80f42b7
SM
80812000-03-26 Stefan Monnier <monnier@cs.yale.edu>
8082
8083 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 8084 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 8085 opcode.
d80f42b7
SM
8086 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
8087 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
8088 executing it as well as when popping it off the stack to find infinite
8089 loops in non-greedy repetition operators.
8090
89e80928
GM
80912000-03-26 Gerd Moellmann <gerd@gnu.org>
8092
3d4ff2dd
GM
8093 * doc.c (Qfunction_documentation): New variable.
8094 (syms_of_doc): Initialize Qfunction_documentation.
8095 (Fdocumentation): If FUNCTION is a symbol with non-nil
8096 `function-documentation' property, return a documentation derived
8097 from that.
8098
bd96bd79
GM
8099 * buffer.c (syms_of_buffer): Add default-cursor-type.
8100 (init_buffer_once): Don't let cursor_type have a local value
8101 in every buffer.
8102
19d1bc27
GM
8103 * xterm.c (x_display_and_set_cursor): Choose cursor depending
8104 on buffer-local value of cursor_type.
8105 (x_draw_bar_cursor): Add parameter WIDTH.
8106
8107 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
8108 (init_buffer_once): Set default cursor_type value to t.
8109 Mark cursor_type as local everywhere.
8110 (syms_of_buffer): New per-buffer variable cursor-type.
8111
89e80928
GM
8112 * buffer.h (struct buffer): Remove member local_var_flags,
8113 add local_flags.
8114 (MAX_BUFFER_LOCAL_VARS): New macro.
8115 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
8116 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
8117 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
8118 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
8119
8120 * print.c (print_object): Use new macros for per-buffer
8121 variables.
8122
8123 * category.c (Fset_category_table): Use new macros for per-buffer
8124 variables.
8125
8126 * buffer.c (buffer_permanent_local_flags): Make a char array.
8127 (max_buffer_local_idx): New variable.
8128 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
8129 for new handling of per-buffer variables.
8130 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
8131 (init_buffer_once): Initialize per-buffer vars differently.
8132 Set max_buffer_local_idx.
8133
8134 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
8135 variables.
8136
8137 * lread.c (defvar_per_buffer): Use new macros for per-buffer
8138 variables.
8139
8140 * data.c (do_symval_forwarding, store_symval_forwarding)
8141 (find_symbol_value, set_internal, default_value, Fset_default)
8142 (Fkill_local_variable, Flocal_variable_p): Use new macros for
8143 per-buffer variables.
8144
8145 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
8146
9a0dd3dc
GM
81472000-03-24 Gerd Moellmann <gerd@gnu.org>
8148
b68c375f
GM
8149 * xterm.c (x_term_init): Unblock input around call1 of
8150 Qvendor_specific_keysyms.
8151
9a0dd3dc
GM
8152 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
8153 (find_defun_start): Consider an open parenthesis in column 0
8154 a defun start only if open_paren_in_column_0_is_defun_start is set.
8155 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
8156
7973e637
SM
81572000-03-24 Stefan Monnier <monnier@cs.yale.edu>
8158
8159 * eval.c (Fautoload): Add entry in load-history (if after dump).
8160 * lread.c (load-history): Update docstring.
8161
39210e90
GM
81622000-03-24 Gerd Moellmann <gerd@gnu.org>
8163
8164 * indent.c (Fvertical_motion): Always use the current buffer.
8165 Temporarily change the window's buffer, if necessary.
8166
72db3ab5
GM
81672000-03-23 Gerd Moellmann <gerd@gnu.org>
8168
8169 * xterm.c (fast_find_position): Make sure not to consider rows
8170 not visible in the window.
8171
990b2375
SM
81722000-03-22 Stefan Monnier <monnier@cs.yale.edu>
8173
8174 * regex.c (enum syntaxcode): Provide default for non-Emacs.
8175 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
8176
ff4df011
JR
81772000-03-22 Jason Rumney <jasonr@gnu.org>
8178
8179 * w32menu.c (single_submenu): Set help string to NULL if none.
8180 (w32_menu_show): Set help string correctly.
8181 (add-menu-item): Set help string in MIIM_DATA for menu item.
8182 Load SetMenuItemInfoA explicitly.
8183 (w32_menu_display_help): New function.
427ec082 8184
ff4df011
JR
8185 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
8186 (QCdata): Moved to xdisp.c.
8187
8188 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
8189 (Vw32_charset_to_codepage_alist): Removed.
8190 (Vw32_charset_info_alist): New variable.
8191 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
8192 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
8193 greek, hebrew, thai, johab, mac, unicode]): New symbols.
8194 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
8195 with TODO comment.
8196 (w32_codepage_for_font): Use Vw32_charset_info_alist.
8197 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
8198 Define Vw32_charset_info_alist and w32_charset symbols.
8199
82002000-03-22 Jason Rumney <jasonr@gnu.org>
8201
8202 * makefile.nt (w32bdf.obj): Update dependencies.
8203
8204 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
8205
8206 * w32fns.c: Include fontset.h after dispextern.h.
8207 (Fx_create_frame): Do not create fontset.
8208 (w32_load_system_font): Doc fix.
8209 (Fx_close_connection): Free full_name if it is not shared.
8210
8211 * w32term.c: Include fontset.h after dispextern.h.
8212 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
8213 updated.
8214 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
8215 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
8216 (w32_font_is_double_byte): New function, needs body.
8217 (x_append_glyph): Set glyph->glyph_not_available_p.
8218 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
8219 it->charset. If it->multibyte_p is zero and it->c is a multibyte
8220 character, convert it to a unibyte character.
8221 (struct glyph_string): Delete member `charset'.
8222 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
8223 calculating it is found.
8224 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
8225 the case that per char metric is not available correctly.
8226 (x_fill_glyph_string): Handle the case that the specific glyph is
8227 not available correctly.
8228 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
8229 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
8230 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
8231 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
8232 fontset. Don't call FS_LOAD_FONT.
8233
439d5cb4
KR
82342000-03-22 Ken Raeburn <raeburn@gnu.org>
8235
8236 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
8237 (INT_LISPLIKE): New macro.
8238 (NULL_INTERVAL_P): Use it.
8239 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
8240 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
8241 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
8242
8243 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
8244 explicit references to "parent" field of struct interval and
8245 associated unclean type conversions.
8246 * intervals.c (create_root_interval, root_interval, rotate_right,
8247 rotate_left, balance_possible_root_interval, split_interval_right,
8248 split_interval_left, interval_start_pos, find_interval,
8249 next_interval, previous_interval, update_interval,
8250 adjust_intervals_for_insertion, delete_node, delete_interval,
8251 adjust_intervals_for_deletion, merge_interval_right,
8252 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
8253 copy_intervals_to_string): Likewise.
8254 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
8255 Likewise.
8256 * syntax.c (update_syntax_table): Likewise.
8257
8258 * intervals.c (reproduce_tree_obj): New function, like
8259 reproduce_tree but takes a Lisp_Object for the parent. Declare
8260 with prototype.
8261 (graft_intervals_into_buffer): Use it when appropriate.
8262 (reproduce_tree): Declare with prototype.
8263 (balance_possible_root_interval): Check that the parent is a lisp
8264 object before trying to examine its type.
8265
ee1c5b21
GM
82662000-03-22 Gerd Moellmann <gerd@gnu.org>
8267
8268 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
8269 as strings only if both are known to be strings.
8270
8271 * s/openbsd.h (LIBS_TERMCAP): Undef.
8272
1fb352e0
SM
82732000-03-21 Stefan Monnier <monnier@cs.yale.edu>
8274
8275 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
8276 definitions for non-Emacs compilation.
8277 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
8278 outside of `#ifdef emacs'.
8279 (print_partial_compiled_pattern): Update.
8280 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
8281 (re_compile_fastmap): Merge handling of charset and charset_not (for
8282 emacs and non-emacs compilation as well).
8283 Similarly for (not)categoryspec and (not)syntaxspec.
8284 Don't use the fastmap when reaching `anychar' since the added
8285 complexity is not justified.
8286 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
8287 and (not)syntaxspec. Merge (not)categoryspec.
8288
fdaa1f77
KH
82892000-03-22 Kenichi Handa <handa@etl.go.jp>
8290
ff1a0d8e
KH
8291 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
8292 FACE_FOR_CHAR): Define them differently for the configuration of
8293 --without-x.
fdaa1f77 8294
d152fb46
DL
82952000-03-21 Dave Love <fx@gnu.org>
8296
8297 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
8298 doc string.
8299
d2cafc8c
GM
83002000-03-21 Gerd Moellmann <gerd@gnu.org>
8301
8302 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
8303 (lface_fully_specified_p): Don't check contents of
8304 LFACE_FONT_INDEX because that attribute is optional.
8305 (realize_x_face): Remove now unwarranted xassert.
8306
9111d4b5
KH
83072000-03-21 Kenichi HANDA <handa@etl.go.jp>
8308
8309 The following changes are to make font selection based on
8310 characters, not charset. In addition, they recover fontset
8311 facilities while utilizing the new font selection mechanism.
8312
6c4bfdc0
KH
8313 * Makefile.in (fontset.o): Depend on dispextern.h.
8314
8315 * alloc.c (mark_face_cache): Don't mark face->registry.
8316
9111d4b5
KH
8317 * dispextern.h (struct glyph): New member glyph_not_available_p.
8318 Use 22 bits for face_id.
8319 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
8320 (struct face): Delete member registry, new member ascii_face.
8321 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
8322 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
8323 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
8324 (struct it): Delete member charset, new member
8325 glyph_not_available_p.
8326
8327 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
8328 (struct fontset_info, struct fontset_data): Structs removed.
8329 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
8330 Vglobale_fontset_alist, font_idx_temp): Externs removed.
8331 (fs_load_font, fs_query_fontset): Adjusted for new argument.
8332 (fs_free_face_fontset, fontset_font_pattern,
8333 face_suitable_for_char_p, face_for_char,
8334 make_fontset_for_ascii_face): Extern them.
8335 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
8336 (FS_LOAD_FACE_FONT): New macro.
8337
8338 * fontset.c: All codes rewritten or adjusted for the change of
8339 fontset implementation. Now fontset is represented by char table.
8340 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
8341 removed.
8342 (my_strcasecmp): Function removed.
8343 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
8344 variables.
8345 (AREF, ASIZE): New macros.
8346 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
8347 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
8348 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
8349 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
8350 fontset_id_valid_p, font_family_registry, fontset_name,
8351 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
8352 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
8353 New functions.
8354 (fs_load_font): New arg FACE. Caller changed.
8355 (fs_query_fontset): Argument changed. Caller changed.
8356 (Fquery_fontset): call fs_query_fontset.
8357 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
8358 Functions removed.
8359 (clear_fontset_elements, check_registry_encoding,
8360 check_fontset_name): New functions.
8361 (syms_of_fontset): Set char-table-extra-slots property of fontset
8362 to 3. Staticpro and initialize Vfontset_table and
8363 Vdefault_fontset. Defsubr fontset_font and fontset_list.
8364
8365 * frame.h (struct frame): Member `fontset_data' removed.
8366 (FRAME_FONTSET_DATA): Macro removed.
8367
8368 * frame.c (make_frame): Don't allocate f->fontset_data.
8369 (Fdelete_frame): Don't free f->fontset_data.
8370
6c4bfdc0
KH
8371 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
8372
9111d4b5
KH
8373 * xdisp.c (charset_at_position): Function removed.
8374 (init_iterator): Don't set member charset of struct `it'.
8375 (handle_face_prop, reseat_to_string, set_iterator_to_next,
8376 next_element_from_display_vector, insert_left_trunc_glyphs):
8377 Likewise.
8378 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
8379 FACE_FOR_CHARSET.
8380 (get_next_display_element, append_space,
8381 extend_face_to_end_of_line): Likewise.
8382
8383 * xfaces.c (Qx_charset_registry, Vface_default_registry):
8384 Variables removed.
8385 (clear_font_table, frame_update_line_height, load_face_font):
8386 Adjusted for the change of fontset implementation.
8387 (load_face_fontset_font): Function removed.
8388 (pixel_point_size): New function.
8389 (font_list): Argument type changed. Caller changed.
8390 (LFACE_FONT): New macro.
8391 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
8392 (set_lface_from_font_name): Type of arg FONTNAME is changed to
8393 Lisp_Object. Determine the font name by actually loading a font
8394 by the specified pattern. Set LFACE_FONT (lface) to the specified
8395 pattern. Even if a font is not found, don't try alternatives.
8396 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
8397 (set_font_frame_param): If `font' is specified in lface, use it.
8398 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
8399 (lface_same_font_attributes_p): Likewise.
8400 (make_realized_face): Arguent changed. Caller changed. Set
8401 face->ascii_face to face itself.
8402 (free_realized_face): Free face->fontset if face is for ASCII.
8403 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
8404 deduce_unibyte_registry, x_charset_registry): Functions removed.
8405 (free_realized_multibyte_face): New function.
8406 (lookup_face, lookup_named_face, lookup_derived_face): Argument
8407 changed. Caller changed.
8408 (try_font_list): Argument type changed.
8409 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
8410 (choose_face_font): Argument changed. Handle fontset properly.
8411 (choose_face_fontset_font): Function removed.
8412 (realize_default_face, realize_named_face): Don't remove the
8413 former face here.
8414 (realize_face): Argument changed. Caller changed. Remove face
8415 with the arg former_face_id in advance. Load font for the new
8416 face.
8417 (realize_x_face): Argument changed. Caller changed. For a
8418 multibyte character, share fontset with base_face. For a single
8419 byte character, make a new realized fontset. Don't load a font
8420 here.
8421 (realize_tty_face): Argument changed. Caller changed.
8422 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
8423 (face_at_buffer_position): Don't check multibyte_p for returning
8424 DEFAULT_FACE_ID.
8425 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
8426 FACE_SUITABLE_FOR_CHARSET_P.
8427 (syms_of_xfaces): Remove code for Qx_charset_registry and
8428 Vface_default_registry.
8429
6c4bfdc0
KH
8430 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
8431 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
8432 (x_per_char_metric): Don't try FONT->default_char. Even if
8433 pcm->width is zero, glyph bits may exist.
8434 (x_encode_char): Always initialize char2b->byte1.
8435 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
8436 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
8437 changed.
8438 (x_append_glyph): Set glyph->glyph_not_available_p.
8439 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
8440 it->charset. Handle the case that per char metric is not
8441 available. If it->multibyte_p is zero and it->c is a multibyte
8442 character, convert it to a unibyte character.
8443 (struct glyph_string): Delete member `charset'.
8444 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
8445 the case that per char metric is not available correctly.
8446 (x_fill_glyph_string): Handle the case that the specific glyph is
8447 not available correctly.
8448 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
8449 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
8450 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
8451 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
8452 fontset. Don't call FS_LOAD_FONT.
8453
8454 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
8455 (x_create_tip_frame): Likewise.
8456 (Fx_close_connection): Free full_name of font_info.
8457
8458 * fns.c (optimize_sub_char_table): New function.
8459 (Foptimize_char_table): New function.
8460 (syms_of_fns): Defsubr Soptimize_char_table.
8461
b33dd3b0
GM
84622000-03-20 Gerd Moellmann <gerd@gnu.org>
8463
8464 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
8465 only if buffer is displayed in some window.
8466
8467 * xdisp.c (handle_single_display_prop): Initialize local `value'.
8468 (try_window_reusing_current_matrix): Don't call scroll run
8469 function if run's current and desired position are the same;
8470 this prevents cursor flickering.
8471
4e8a9132
SM
84722000-03-19 Stefan Monnier <monnier@cs.yale.edu>
8473
8474 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
8475
8476 * regex.c (RE_STRING_CHAR): New macro.
8477 (GET_CHAR_AFER_2): Remove.
8478 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
8479 (enum re_opcode_t): Remove on_failure_jump_exclusive.
8480 (print_partial_compiled_pattern, re_compile_fastmap)
8481 (re_match_2_internal): Remove on_failure_jump_exclusive.
8482 (regex_compile): Turn optimizable P+ loops into PP*, so that the
8483 optimization only need to work for * (ie. can use of_keep_string_jump).
8484 Remove the special case for .*\n since it is now covered by the general
8485 optimization.
8486 (re_search_2): Don't bother with `room'.
8487 (skip_one_char): New function.
8488 (skip_noops): Simplify since `memory' is not needed any more.
8489 (mutually_exclusive_p): Restructure slightly to use `switch' and
8490 add handling for "all" remaining cases.
8491 (re_match_2_internal): Change on_failure_jump_smart to use
8492 on_failure_keep_string_jump (and redirect the end-of-loop jump)
8493 rather than on_failure_jump_exclusive.
8494
2136fdd4
GM
84952000-03-19 Gerd Moellmann <gerd@gnu.org>
8496
8497 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
8498 number of bits per RGB because it's everywhere used as the depth
8499 of the visual.
8500
8501 * term.c (calculate_costs): Remove code dealing with X frames.
8502
18e21ce8 85032000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
8504
8505 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
8506
d7b511c4
GM
85072000-03-18 Gerd Moellmann <gerd@gnu.org>
8508
8509 * lread.c (read_integer): Unread the last char not consumed.
8510
16b5d424
GM
85112000-03-17 Gerd Moellmann <gerd@gnu.org>
8512
8513 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 8514 which are in the process of being deleted.
16b5d424 8515
1fa28578
GM
85162000-03-16 Gerd Moellmann <gerd@gnu.org>
8517
83488cce
GM
8518 * Makefile.in (mostlyclean): Add `*.core'.
8519 (clean): Add `bootstrap-emacs'.
8520
1fa28578
GM
8521 * lread.c (read_integer): New function.
8522 (read1): Support read syntax #o, #x, #b, #r.
8523
99633e97
SM
85242000-03-15 Stefan Monnier <monnier@cs.yale.edu>
8525
1fa28578
GM
8526 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
8527 make sure POINTER_TO_OFFSET gives the same value before and after
8528 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
8529 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
8530 (debug): Now only active if > 0 rather than if != 0.
8531 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
8532 (print_partial_compiled_pattern): Add missing `succeed' case. Use
8533 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
8534 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
8535 (store_op1, store_op2, insert_op1, insert_op2)
8536 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
8537 (group_in_compile_stack): Move to after its arg's types are
8538 declared and add a prototype.
99633e97 8539 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
8540 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
8541 wrapper.
99633e97 8542 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
8543 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
8544 indentation of the greedy-op and shy-group code.
99633e97
SM
8545 (at_(beg|end)line_loc_p): Fix argument's types.
8546 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
8547 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
8548 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
8549 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
8550 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
8551 QUIT unconditionally.
99633e97 8552
699238d9
GM
85532000-03-15 Gerd Moellmann <gerd@gnu.org>
8554
8555 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
8556 a sole completion.
8557
8558 * process.c (send_process): Add a hint that the function
8559 can call Lisp code to its comment.
8560
8561 * lread.c (load_dangerous_libraries): New variable.
8562 (Vbytecomp_version_regexp): New variable.
8563 (safe_to_load_p): New function.
8564 (Fload): Handle files not compiled with Emacs specially.
8565 (syms_of_lread): New Lisp variable load-dangerous-libraries.
8566
34e23e5a
GM
85672000-03-14 Gerd Moellmann <gerd@gnu.org>
8568
9c763cca
GM
8569 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
8570
8571 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
8572 support functions only if HAVE_X11R6_XIM is defined.
8573 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
8574
8575 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
8576
8577 * xfns.c (X_I18N_INHIBITED): Don't define.
8578 (create_frame_xic): Remove conditional compilation on
8579 X_I18N_INHIBITED.
8580 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
8581
8582 * config.in (HAVE_X_I18N): Moved here from xterm.h.
8583 (HAVE_X11R6_XIM): Define.
8584
8585 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
8586
34e23e5a
GM
8587 * xterm.c (x_term_init): Add support for X resource `synchronous'.
8588 If set, call XSynchronize.
8589
66f0296e
SM
85902000-03-13 Stefan Monnier <monnier@cs.yale.edu>
8591
34e23e5a
GM
8592 * regex.c: Declare a new type `re_char' used throughout the code
8593 for the string char type. It's `const unsigned char' to match the
8594 rest of Emacs. Consistently make sure all pointers to strings use
8595 it and make sure all pointers into the pattern use `unsigned
8596 char'.
66f0296e 8597 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
8598 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
8599 code duplication.
66f0296e
SM
8600
8601 * charset.h (GET_CHAR_AFTER_2): Remove.
8602 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
8603
854a025c
KR
86042000-03-12 Ken Raeburn <raeburn@gnu.org>
8605
8606 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
8607 variable before the invocation of YMF_PASS_LDFLAGS, in case both
8608 of them try to use backquotes.
8609
b9d2c7e2
DL
86102000-03-12 Dave Love <fx@gnu.org>
8611
8612 * unexelf.c: Restore changes of 1999-10-19.
8613 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
8614 fix its type and alignment; copy it from current process.
8615
5e5dff44
GM
86162000-03-12 Gerd Moellmann <gerd@gnu.org>
8617
9b2f3c38
GM
8618 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
8619 has been found. Fix bug not computing timer's predecessor.
8620
427ec082 8621 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
8622 file name.
8623
e1cff360
GM
8624 * window.c (Fsave_window_excursion): Doc fix.
8625
5e5dff44
GM
8626 * xfns.c (x_defined_color): Rewritten to use
8627 x_allocate_nearest_color.
8628
e411ce4b
EZ
86292000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
8630
8631 * msdos.c (vga_installed): New function, code moved from
8632 dos_set_window_size.
8633 (Qbar, Qcursor_type, outside_cursor): New variables.
8634 (syms_of_msdos): Intern and staticpro them.
8635 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
8636 shape used outside Emacs when called for the first time.
8637 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
8638 cursor shape used outside Emacs.
8639 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
8640 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
8641 type has changed.
8642 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
8643 parameters specify the cursor. Make qreverse a global
8644 variable (renamed to Qreverse).
8645
80460654
GM
86462000-03-09 Gerd Moellmann <gerd@gnu.org>
8647
8648 * fns.c (Fy_or_n_p): Cancel busy-cursor.
8649
95cd4c40
SM
86502000-03-08 Stefan Monnier <monnier@cs.yale.edu>
8651
8652 This is a big redesign of failure-stack and register handling, prompted
8653 by bugs revealed when trying to add shy-groups. Overall, what happened
8654 is that loops are now structured a little differently, groups can be
8655 shy and the code is a little simpler.
8656
8657 * regex.h: Update the copyright.
8658 (RE_SHY_GROUPS): New value.
8659 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
8660 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
8661
80460654
GM
8662 * regex.c (enum re_opcode_t): Remove jump_past_alt,
8663 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
8664 on_failure_jump_(exclusive, loop and smart). Also fix the comment
8665 for (start|stop)_memory since they now only take one argument (the
8666 second has becomes unnecessary).
8667 (print_partial_compiled_pattern): Adjust for changes in
8668 re_opcode_t.
8669 (print_compiled_pattern): Use %ld to printf long ints and flush to
8670 make debugging a little easier.
95cd4c40
SM
8671 (union fail_stack_elt): Make the integer unsigned.
8672 (struct fail_stack_type): Add a `frame' element.
8673 (INIT_FAIL_STACK): Init `frame' as well.
8674 (POP_PATTERN_OP): New macro for re_compile_fastmap.
8675 (DEBUG_PUSH, DEBUG_POP): Remove.
8676 (NUM_REG_ITEMS): Remove.
8677 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
8678 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
8679 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 8680 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
8681 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
8682 macros.
8683 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
8684 address pushed is not the destination of the jump but the source
8685 of it instead.
95cd4c40
SM
8686 (NUM_FAILURE_ITEMS): Remove.
8687 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
8688 registers before the actual failure point). Don't hardcode any
8689 meaning for str==NULL anymore.
95cd4c40 8690 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
8691 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
8692 Remove.
95cd4c40
SM
8693 (REG_UNSET_VALUE): Use NULL (why not?).
8694 (compile_range): Remove declaration since it doesn't exist.
8695 (struct compile_stack_elt_t): Remove inner_group_offset.
8696 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
8697 (regex_grow_registers): Remove dead code.
8698 (FIXUP_ALT_JUMP): New macro.
80460654
GM
8699 (regex_compile): Add shy-groups Change loops to use
8700 on_failure_jump_smart&jump instead of
8701 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
8702 initial (dummy_failure_)jump. Remove c1_base (looks like unused
8703 variable to me). Use `jump' instead of `jump_past_alt' and don't
8704 bother with push_dummy_failure in alternatives since it is now
8705 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
8706 emacs' for (re)allocating the stack.
8707 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
8708 from loop when bufp->can_be_null rather than jumping to `done'.
8709 Avoid jumping backwards so as to ensure termination. Use
8710 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
8711 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 8712 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
8713 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
8714 improve mutually_exclusive_p to handle ".+\n".
8715 (lowest_active_reg, highest_active_reg,
8716 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
8717 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
8718 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
8719 variables. Push register (in `start_memory') on the stack rather
8720 than storing it in old_reg(start|end). Remove the cycle detection
8721 from `stop_memory', replaced by the use of on_failure_jump_loop
8722 for greedy loops. Add code for the new on_failure_jump_<foo>.
8723 Remove ad-hoc code in `on_failure_jump' to push more registers in
8724 the case of a loop. Take out code from `maybe_pop_jump' into
8725 separate functions and adapt it to the semantics of
8726 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
8727 and push_dummy_failure. Remove dummy_failure handling and
8728 handling of `failures to jump to on_failure_jump' (this last one
8729 was already dead code, it seems).
8730 (group_match_null_string_p, alt_match_null_string_p)
8731 (common_op_match_null_string_p): Remove.
95cd4c40 8732
7397acc4
DL
87332000-03-08 Dave Love <fx@gnu.org>
8734
8735 * config.in: Don't depend on __STDC__ for volatile.
8736 Add POINTER_TYPE, PTR, PROTOTYPES.
8737
8738 * hftctl.c, strftime.c: Use PROTOTYPES.
8739 * eval.c (find_handler_clause): Likewise.
8740
8741 * mem-limits.h: Use POINTER_TYPE.
8742
8743 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
8744 (memory_warnings): Declare using POINTER_TYPE.
8745
5e91ff9e
GM
87462000-03-08 Gerd Moellmann <gerd@gnu.org>
8747
feab4fba
GM
8748 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
8749
25edb08f
GM
8750 * xdisp.c (display_echo_area): Temporarily inhibit garbage
8751 collection.
8752
5e91ff9e
GM
8753 * xfns.c: Remove obsolete code in #if 0.
8754 (Fx_focus_frame): New function.
8755
a735b7e1
KH
87562000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
8757
8758 * coding.c (coding_category_name): Add coding-category-utf-8,
8759 coding-category-utf-16-be, coding-category-utf-16-le.
8760 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
8761 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
8762 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
8763 (detect_coding_utf_8): New function.
8764 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
8765 UTF_16_LOW_SURROGATE_P): New macros.
8766 (detect_coding_utf_16): New function
8767 (detect_coding_mask): When priorities are specified, skip any
8768 categories that have `nil' coding-system. Fix bug of returning
8769 wrong mask when PRIORITIES is specified and detect_coding_XXX()
8770 returns a mask not set in PRIORITIES.
8771 (detect_eol_type_in_2_octet_form): New function.
8772 (detect_eol): selects detect_eol_type_XXX to call according to
8773 cooding->category_idx.
8774 (detect_coding_system): Remove `nil' coding-system in the result.
8775 (Fupdate_coding_systems_internal): Update all coding-categories.
8776
8777 * coding.h (CODING_CATEGORY_IDX_UTF_8,
8778 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
8779 macros.
8780 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
8781 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
8782 CODING_CATEGORY_IDX_UTF_16_LE.
8783 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
8784 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
8785 (CODING_CATEGORY_MASK_ANY): Include the above macros.
8786 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
8787
9994cc69
GM
87882000-03-07 Gerd Moellmann <gerd@gnu.org>
8789
e9b4e5ff
GM
8790 * doc.c (Fdocumentation_property): If value is not a string,
8791 and doesn't refer to etc/DOC, evaluate it to obtain a string.
8792
f7daf1e1
GM
8793 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
8794 close the display with XtCloseDisplay. This caused a bus error
8795 on OpenWindows.
8796
9994cc69
GM
8797 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
8798 complete but not unique.
8799
4336c705
GM
88002000-03-06 Gerd Moellmann <gerd@gnu.org>
8801
18bb0684
GM
8802 * process.c (send_process): Remove local variable `procname' that
8803 might become invalid when a GC happens. Instead, access the
8804 process name slot directly.
8805
4336c705
GM
8806 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
8807 orig_height if set.
8808
8809 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
8810 orig_height if set.
8811
515d0d0e
EZ
88122000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
8813
8814 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
8815 glyph matrices have been freed.
8816
100b3cbb
GM
88172000-03-05 Gerd Moellmann <gerd@gnu.org>
8818
50df5e5a 8819 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 8820 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
8821
8822 * xfns.c (QCdata): Moved to xdisp.c.
8823
8824 * xdisp.c (QCdata): Moved here from xfns.c.
8825 (syms_of_xdisp): Initialize QCdata.
8826
8827 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
8828
8829 * window.c (coordinates_in_window): Use
8830 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
8831 FRAME_INTERNAL_BORDER_WIDTH.
8832
100b3cbb 8833 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 8834 it is obviously invalid.
100b3cbb
GM
8835
8836 * xterm.c (x_term_init): Create a colormap if not using the
8837 default visual.
8838
8839 * xterm.h (select_visual): Change prototype.
8840
8841 * xfns.c (select_visual): Rewritten. Recognize user-specified
8842 visual classes.
8843 (visual_classes): New variable.
8844
64d739c4
GM
88452000-03-04 Gerd Moellmann <gerd@gnu.org>
8846
8847 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
8848 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
8849 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
8850 (x_decode_color): Don't handle allocation of white and black
8851 specially.
8852 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
8853 XtNcolormap resources.
8854 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
8855 (Fx_create_frame): Initialize color members of x_output structure.
8856 (xpm_load): Pass colormap to XPM lib.
8857
8858 * xfaces.c (x_free_colors): Access colormap of frame using
8859 FRAME_X_COLORMAP. Be paranoid about freeing black and white
8860 when default colormap is used.
8861
8862 * xterm.c (x_term_init): Set Colormap member of x_display_info
8863 structure. Copy colormap if resource `privateColormap' is
8864 specified (PseudoColor only).
8865 (x_setup_relief_color): Access colormap of frame using
8866 FRAME_X_COLORMAP.
8867
8868 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
8869 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
8870
c3cee013
JR
88712000-03-04 Jason Rumney <jasonr@gnu.org>
8872
8873 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
8874 other non-platform-specific equivalents.
64d739c4 8875 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
8876 specific functions and macros as their w32 equivalents where
8877 non-platform-specifics are not available.
8878 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
8879 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
8880 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
8881 (frame_update_line_height): Use macros to access f->output_data.
8882 (defined_color): Remove FIXME comments; fixed.
8883 (x_face_list_fonts, prepare_face_for_display): Put X specifics
8884 into #ifdef blocks. Add WINDOWSNT blocks.
8885 (Fx_list_fonts): Use macros for accessing font data.
8886 (set_lface_from_font_name): Different default fonts for X and
8887 WINDOWSNT.
8888 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
8889 scalable for backward compatibility.
64d739c4 8890 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
8891 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
8892
64d739c4 8893 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
8894 syms_of_w32faces.
8895
8896 * makefile.nt (w32faces.obj): Remove.
8897 (xfaces.obj): Add.
8898
807cc41c
JR
88992000-03-03 Jason Rumney <jasonr@gnu.org>
8900
8901 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
8902 correct parameters.
8903
0007072a
KR
89042000-03-03 Ken Raeburn <raeburn@gnu.org>
8905
8906 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
8907 standard ELF definitions here if the system header does not.
8908
71a6ba55
GM
89092000-03-03 Gerd Moellmann <gerd@gnu.org>
8910
8911 * xterm.c (PER_CHAR_METRIC): Removed.
8912 (x_per_char_metric_1, x_default_char): New functions.
8913 (x_per_char_metric): If font's default char is invalid, return
8914 metrics of a suitably chosen usable default char.
8915 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
8916 char, replace occurrences of unprintable chars with a suitably
8917 chosen usable default char.
71a6ba55 8918
900fa1f1
GM
89192000-03-02 Gerd Moellmann <gerd@gnu.org>
8920
42f55fe0
GM
8921 * xterm.c (note_mouse_highlight): Return quickly if frame's
8922 glyph matrices have been freed.
8923
8924 * dispnew.c (free_glyphs): Block input while freeing matrices.
8925
900fa1f1
GM
8926 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
8927
8928 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
8929 x_free_colors.
8930
8931 * dispextern.h (x_free_colors): Add prototype.
8932
8933 * xfaces.c (x_free_colors): New function.
8934 (unload_color, free_face_colors): Use it.
8935
2f950292
EZ
89362000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
8937
8938 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
8939
8940 * window.c [MSDOS]: Include msdos.h.
8941
54d04320
DL
89422000-03-02 Dave Love <fx@gnu.org>
8943
8944 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
8945
8946 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
8947 set C_OPTIMIZE_SWITCH for gcc.
8948
0ba93ac4
KH
89492000-03-02 Kenichi Handa <handa@etl.go.jp>
8950
8951 * coding.c (coding_save_composition): Be sure to allocate
8952 composition data area in coding even if there's no composition in
8953 the current run.
8954
a2bc11d4
JR
89552000-03-01 Jason Rumney <jasonr@gnu.org>
8956
8957 * w32term.c: Equivalent changes to those made to xterm.c on
8958 2000-02-25 and 2000-02-24.
8959
8960 * w32fns.c: Equivalent changes to those made to xfns.c on
8961 2000-02-25 and 2000-02-21.
8962
8963 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
8964 correct line-end convention is followed.
8965
8966 * w32menu.c [HAVE_BOXES]: Remove #undef.
8967 (single_keymap_panes): Remove code for simulating checkmarks.
8968 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
8969 Remove code for drawing simulated checkmarks.
8970 (w32_menu_show): make unibyte help string correctly.
8971 (add_menu_item): draw standard Windows checkmarks. Draw radio
8972 buttons as radio buttons if possible.
8973
72d19d75
GM
89742000-03-01 Gerd Moellmann <gerd@gnu.org>
8975
2df636f4
GM
8976 * sysdep.c (start_of_text): Don't define this function for NetBSD
8977 with ELF.
8978
427ec082 8979 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
8980 Don't define.
8981 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
8982 (LINKER): Don't undef if __NetBSD__ is defined.
8983
8984 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
8985
8986 * fileio.c [__NetBSD__]: Define `unix'.
8987
72d19d75
GM
8988 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
8989
ed4d0512
GM
89902000-02-29 Gerd Moellmann <gerd@gnu.org>
8991
50b1039f
GM
8992 * atimer.c (start_atimer): Don't abort when timers are stopped.
8993 (append_atimer_lists): New function.
8994 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
8995 arbitrary lists of stopped and running atimers.
8996
ed4d0512
GM
8997 * atimer.c (cancel_atimer): Handle canceling an atimer when
8998 some timers are stopped.
8999
9000 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
9001 after canceling it.
9002
9003 * fns.c (maybe_resize_hash_table): Handle case of new size
9004 coming out as being the same as old size.
9005
387023ee
JR
90062000-02-27 Jason Rumney <jasonr@gnu.org>
9007
9008 * makefile.nt: Add atimer.h to dependencies.
9009 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
9010 * w32console.c: Only disable window system features for dispextern.h
9011 (initialize_w32_display): Build a display info for the console.
9012 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
9013 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
9014 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
9015 as 2 button mice.
9016 * w32gui.h (struct W32FontStruct): Revert last change after change
9017 to xdisp.c.
9018 * w32menu.c (single_submenu): Set up help string.
9019 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
9020 (w32_dialog_show): Set up help string.
9021 * w32term.c (w32_display_info_for_display): Remove unused function.
9022 (w32_draw_bitmap): Use pre-built bitmaps.
9023 (w32_initialize_display_info): New function to initialize parts of
9024 display info that are common to both GUI and console frames.
9025 (w32_term_init): Use w32_initialize_display_info. Do not set
9026 Vw32_num_mouse_buttons here, as it is not called for console
9027 frames. Build bitmaps for indicating truncated lines etc.
9028 (x_delete_display): Destroy pre-built bitmaps.
9029 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
9030 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
9031
4516715a
DL
90322000-02-27 Dave Love <fx@gnu.org>
9033
9034 * lisp.h: Add a bunch of prototypes.
9035
171ca836
KH
90362000-02-26 Kenichi Handa <handa@etl.go.jp>
9037
9038 * keyboard.c (read_char): Set `usec' correctly.
9039
4013921d
KH
90402000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9041
9042 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
9043 `lambda', set reg[RRR] to the map index.
9044 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
9045 reg[RRR] to 0. Otherwise, set it to -1.
9046
9244a058
GM
90472000-02-25 Gerd Moellmann <gerd@gnu.org>
9048
2df636f4 9049 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 9050
18e21ce8 90512000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 9052
f43d79c1
GM
9053 * fileio.c (Ffile_symlink_p): If result starts with a `/'
9054 and contains a `:', prepend `/:'.
9055
9056 * window.c (select_window_1): If selected_window is nil,
9057 don't "swap out" the buffer's point.
9058 (Fset_window_configuration): Set selected_window to nil
9059 before calling Fselect_window.
9060 (unshow_buffer): Don't set point in buffer from window's point
9061 if another more recently selected window also shows the buffer.
9062
bed0c171
GM
90632000-02-25 Gerd Moellmann <gerd@gnu.org>
9064
449c3c52
GM
9065 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
9066
f5b58615
GM
9067 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
9068 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
9069 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
9070 variables.
9071 (DEFAULT_BUSY_CURSOR_DELAY): New define.
9072 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
9073 (hide_busy_cursor): New functions.
9074 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
9075
9076 * minibuf.c (read_minibuf): Cancel busy-cursor.
9077
9078 * keyboard.c (command_loop_1): Call start_busy_cursor before
9079 Fcommand_execute and cancel_busy_cursor after it.
9080 (timer_check): Remove busy-cursor code.
9081 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
9082 cursor timer.
9083
9084 * process.c (wait_reading_process_input): Remove busy-cursor code.
9085
9086 * eval.c (Fsignal): Call cancel_busy_cursor instead of
9087 Fx_hide_busy_cursor.
9088
9089 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
9090 Remove prototyoes.
9091 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
9092
9093 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
9094
9095 * xterm.c (XTread_socket): Remove busy-cursor code.
9096
4eb8436f
GM
9097 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
9098 (build_frame_matrix_from_leaf_window): Put code handling
9099 glyph row's not being a slice of a frame row in #if 0.
9100 (sync_window_with_frame_matrix_rows): New function.
9101 (frame_row_to_window): New function.
9102 (mirror_line_dance): Handle copies between windows.
9103
3cb65b0e
GM
9104 * lread.c (Fload): Use `xfree' instead of `free'.
9105 (init_obarray): Use `xmalloc' instead of `malloc'.
9106
bed0c171
GM
9107 * window.c (Fset_window_buffer): Set WINDOW to the window
9108 after decoding.
2add4349
GM
9109 (coordinates_in_window): Take frame's internal border width
9110 into account.
bed0c171 9111
42088c12
GM
91122000-02-24 Gerd Moellmann <gerd@gnu.org>
9113
9114 * xterm.c (x_display_and_set_cursor): Display cursor of
9115 non-selected windows depending on the setting of
9116 cursor_in_non_selected_windows.
9117
9118 * xdisp.c (cursor_in_non_selected_windows): New variable.
9119 (syms_of_xdisp): DEFVAR_BOOL it.
9120
d1e103b2
GM
91212000-02-23 Gerd Moellmann <gerd@gnu.org>
9122
723e779c
GM
9123 * data.c (Fstring_to_number): If number is greater than what
9124 fits into an integer, return a float.
9125
d1e103b2
GM
9126 * eval.c (specbind): Remove references to
9127 keyword_symbols_constant_flag.
9128
9129 * data.c (keyword_symbols_constant_flag): Removed.
9130 (Fmakunbound, set_internal, syms_of_data): Remove references to
9131 keyword_symbols_constant_flag.
9132
9133 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
9134
214f877f
KH
91352000-02-23 Kenichi Handa <handa@etl.go.jp>
9136
9137 * syntax.c (multibyte_syntax_as_symbol): New variable.
9138 (syms_of_syntax): Declare it as a Lisp variable.
9139 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
9140 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
9141 nonzero, treat all multibyte characters as symbol.
42088c12 9142 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
9143 characters.
9144
130adcb7
EZ
91452000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
9146
3cb65b0e 9147 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 9148 a deleted frame.
130adcb7 9149
17cbbf95
GM
91502000-02-21 Gerd Moellmann <gerd@gnu.org>
9151
9152 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
9153
9154 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9155 (x_non_menubar_window_to_frame): Check the busy-cursor window.
9156
beb0bc36
DL
91572000-02-21 Dave Love <fx@gnu.org>
9158
9159 * frame.c (Vmouse_position_function): New variable.
9160 (Fmouse_position): Use it.
9161 (syms_of_frame): Install it.
9162
9163 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
9164
1d92afcd
GM
91652000-02-20 Gerd Moellmann <gerd@gnu.org>
9166
9167 * fileio.c (Finsert_file_contents): Unbind the binding of
9168 standard-output done by temp_output_buffer_setup.
329eed9f
GM
9169
9170 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
9171 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
9172 (specbind, unbind_to): Handle most common case of non-constant
9173 symbol with trivial value specially.
9174
9175 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
9176
18e21ce8 91772000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
9178
9179 * data.c (Fmake_variable_buffer_local): Doc fix.
9180 Init found_for_buffer to 0.
9181 (Fmake_variable_frame_local): If the variable has already
9182 been buffer-local, set the check_frame field.
9183
1d4311c3
EZ
91842000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
9185
9186 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
9187 produced for CODING_MODE_LAST_BLOCK requires.
9188
2dc95ddd
DL
91892000-02-18 Dave Love <fx@gnu.org>
9190
9191 * keyboard.c (echo_keystrokes): Remove declaration.
9192 (Vecho_keystrokes) New variable.
9193 (read_char, record_menu_key, read_key_sequence): Use it to allow
9194 use of float value.
9195 (syms_of_keyboard): Change Vecho_keystrokes declaration.
9196
9197 * lread.c: Undef feature selection macros before defining.
9198
f0930f35
GM
91992000-02-18 Gerd Moellmann <gerd@gnu.org>
9200
9201 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
9202 for symbols other than the symbol in question.
9203
e3d4de90
DL
92042000-02-17 Dave Love <fx@gnu.org>
9205
9206 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
9207
0b378936
GM
92082000-02-17 Gerd Moellmann <gerd@gnu.org>
9209
d621caf7
GM
9210 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
9211
0b378936
GM
9212 * alloc.c (enum mem_type): Compile unconditionally.
9213
3b451f74
EZ
92142000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
9215
9216 * xfaces.c (tty_defined_color): Don't return faulire indication
9217 for unspecified-fg and unspecified-bg pseudo-colors.
9218
10689a01
GM
92192000-02-17 Gerd Moellmann <gerd@gnu.org>
9220
1216f5e4
GM
9221 * alloc.c (mark_object): Don't mark symbol names in pure space.
9222 (gc_sweep): Don't unmark symbol names in pure space.
9223
9224 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
9225 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
9226 [GC_MARK_STACK]: New defines.
427ec082 9227 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
9228 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
9229
9230 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
9231
9232 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
9233 allocate_buffer instead of xmalloc.
9234
9235 * alloc.c (toplevel): Include setjmp.h.
9236 (PURE_POINTER_P): New define.
9237 (enum mem_type) [GC_MARK_STACK]: New enumeration.
9238 (Vdead) [GC_MARK_STACK]: New variable.
9239 (lisp_malloc): Add parameter TYPE, call mem_insert if
9240 GC_MARK_STACK is defined.
9241 (allocate_buffer): New function.
427ec082 9242 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
9243 (free_float) [GC_MARK_STACK]: Set type to Vdead.
9244 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
9245 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
9246 (MEM_NIL) [GC_MARK_STACK]: New define.
9247 (struct mem_node) [GC_MARK_STACK]: New structure.
9248 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
9249 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
9250 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
9251 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
9252 (mark_stack) [GC_MARK_STACK]: New functions.
9253 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
9254 (clear_marks): Removed.
9255 (gc_sweep): Set free conses' car, free floats' type, free
9256 symbols' function to Vdead. Use lisp_free to free buffers.
9257 (init_alloc_once): Initialize Vdead.
9258 (survives_gc_p): Return non-zero for pure objects.
9259
9260 * alloc.c: Add comments throughout the file.
9261
2503c8b1
GM
9262 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
9263 that unblocks alarms.
9264
8389e1e2
GM
9265 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
9266 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
9267 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
9268
10689a01 9269 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 9270
bfc17d18
KH
92712000-02-17 Kenichi Handa <handa@etl.go.jp>
9272
4a09dee0
KH
9273 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
9274 avoid infinite error signaling. Allocate sufficient memory for
9275 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 9276
2b927d02
SM
92772000-02-17 Stefan Monnier <monnier@cs.yale.edu>
9278
9279 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
9280 depends on the previous behavior.
9281
b49cb764
GM
92822000-02-16 Gerd Moellmann <gerd@gnu.org>
9283
9284 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
9285
99e95407
GM
92862000-02-15 Gerd Moellmann <gerd@gnu.org>
9287
9288 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
9289
9290 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 9291 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
9292 write(2).
9293
6ffd3cf7
RS
92942000-02-15 Richard M. Stallman <rms@gnu.org>
9295
9296 * data.c (set_internal): Don't make variable buffer-local
9297 if within a let-binding for the same buffer.
9298 (let_shadows_buffer_binding_p): New function.
9299
9300 * eval.c (specbind): For buffer-local value,
9301 record the current buffer also.
9302 (unbind_to): Cope with that change.
9303
cad53475
GM
93042000-02-15 Gerd Moellmann <gerd@gnu.org>
9305
9306 * window.c (Fsave_window_excursion): Doc fix.
9307
1aa963c8
SM
93082000-02-15 Stefan Monnier <monnier@cs.yale.edu>
9309
9310 * syntax.c (back_comment): Make sure we only consider comment-starters
9311 of the relevant style and return -1 in case of a failure to find the
9312 beginning of the comment.
9313 (Fforward_comment): If back_comment fails, go back to the position just
9314 after the comment-end.
9315 (scan_lists): Add comment describing a very minor bug.
9316
b9b84fd3
SM
93172000-02-14 Stefan Monnier <monnier@cs.yale.edu>
9318
9319 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
9320 `completion-regexp-list' in the docstring.
9321
3a28db80
DL
93222000-02-14 Dave Love <fx@gnu.org>
9323
9324 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
9325
fb4a568d
SM
93262000-02-14 Stefan Monnier <monnier@cs.yale.edu>
9327
9328 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
9329 to Emacs' syntax. Also fix the comment about set/not-set meanings
9330 since Emacs syntax is not the value 0 any more.
9331 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
9332 since it's now part of RE_SYNTAX_EMACS.
9333
1063ebb5
DL
93342000-02-12 Dave Love <fx@gnu.org>
9335
9336 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
9337 Alpha.
9338
fb07a302
GM
93392000-02-12 Gerd Moellmann <gerd@gnu.org>
9340
9341 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
9342
aaf2320c
DL
93432000-02-12 Dave Love <fx@gnu.org>
9344
9345 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
9346
9347 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
9348 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
9349 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
9350
9351 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
9352
9353 * s/nextstep.h: Don't define HAVE_ALLOCA.
9354
9355 * config.in: Add vfork bits.
9356
eedf8bde
GM
93572000-02-12 Gerd Moellmann <gerd@gnu.org>
9358
9359 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
9360 unwind function to undo the effect of stopping atimers.
9361
9362 * keyboard.c (bind_polling_period): Stop all timers except
9363 poll_timer.
9364
9365 * atimer.c (stopped_atimers): New variable.
9366 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
9367 New functions.
9368
9369 * atimer.h (stop_other_atimers, run_all_atimers)
9370 (unwind_stop_other_atimers): Add function prototypes.
427ec082 9371
eedf8bde
GM
9372 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
9373
8476c2f8
KR
93742000-02-11 Ken Raeburn <raeburn@gnu.org>
9375
9376 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
9377 library may depend on jpeg.
9378 (atimer.o): Depends on atimer.c.
9379
0e85e4a3
KH
93802000-02-11 Kenichi Handa <handa@etl.go.jp>
9381
9382 * insdel.c (del_range_1): Call update_compositions.
9383 (del_range_both): Call update_compositions just once..
9384
97fa0cc8
DL
93852000-02-10 Dave Love <fx@gnu.org>
9386
9387 * xfns.c (create_frame_xic): Fix initialization of automatic
9388 aggregates for pcc.
9389
25566a3c
KH
93902000-02-09 Kenichi Handa <handa@etl.go.jp>
9391
9392 * ccl.c (CCL_MAKE_CHAR): New macro.
9393 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
9394 registers by CCL_MAKE_CHAR before calling translate_char.
9395 <CCL_TranslateCharacterConstTbl> Likewise.
9396
69da54ba
DL
93972000-02-08 Dave Love <fx@gnu.org>
9398
9399 * lread.c (__EXTENSIONS__): Define.
9400
f7136ee8
GM
94012000-02-08 Gerd Moellmann <gerd@gnu.org>
9402
9403 * puresize.h (BASE_PURESIZE): Increase to 650000.
9404
7768790b
EZ
94052000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
9406
9407 * msdos.c (XMenuActivate): Turn off the cursor after displaying
9408 the help message.
9409
38fd211b
EZ
94102000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
9411
9412 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
9413 md, mh, mb, mr, and me to the fake termcap entry.
9414
66e4690f
KR
94152000-02-06 Ken Raeburn <raeburn@gnu.org>
9416
9417 * sound.c (sound_cleanup): Don't call device close routine if the
9418 function pointer is null.
9419
a75dfea0
AI
94202000-02-06 Andrew Innes <andrewi@gnu.org>
9421
9422 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
9423 around image definitions and prototypes.
9424 (gamma_correct) [WINDOWSNT]: New prototype.
9425
9426 * w32term.c (x_make_frame_visible): Replace call to
9427 input_poll_signal with poll_for_input.
9428
9429 * window.c [WINDOWSNT]: Include w32term.h.
9430
9431 * xdisp.c [WINDOWSNT]: Include w32term.h.
9432
9433 * makefile.nt: Add dependencies on w32gui.h.
9434 (OBJ1): Include atimer.obj.
9435 ($(BLD)\atimer.obj): New dependency rule.
9436
9437 * w32.c (sigmask): New function (does nothing).
9438 (sigunblock): Ditto.
9439
9440 * frame.c [WINDOWSNT]: Include w32term.h.
9441
9442 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
9443
9444 * lread.c (syms_of_lread): Fix literal newlines.
9445
9446 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
9447 the string constant limit (2048 bytes) in MSVC.
9448 (main): Ditto.
9449
59ddecde
GM
94502000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
9451
9452 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
9453 area.
9454 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
9455 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
9456 dispatch the event.
9457
07590973
DL
94582000-02-04 Dave Love <fx@gnu.org>
9459
9460 * fileio.c: Remove some unused vars.
9461 (_GNU_SOURCE): Define (for euidaccess).
9462
9463 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
9464
9465 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
9466 gcpro1, gcpro2.
9467 (read_minibuf): Deal with allow_props correctly.
9468
649351f9
EZ
94692000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
9470
9471 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
9472
66e4690f 94732000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
9474
9475 * search.c (compile_pattern): If a cache entry has a nil regexp,
9476 fill in that entry instead of clobbering a previously cached
9477 string regexp.
9478
66e4690f 94792000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
9480
9481 * puresize.h (BASE_PURESIZE): Increase to 610000.
9482
d240a249
GM
94832000-02-02 Gerd Moellmann <gerd@gnu.org>
9484
9485 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
9486 can GC.
9487
ca91fb26
KH
94882000-02-02 Kenichi Handa <handa@etl.go.jp>
9489
25660570
KH
9490 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
9491 instead of incrementing ic directly.
9492 <CCL_WriteExprConst> Likewise.
9493 <ccl_set_expr>: Set ic to jump_address.
9494
ca91fb26
KH
9495 * fileio.c (e_write): Fix the handling of
9496 CODING_FINISH_INSUFFICIENT_SRC.
9497
2ede9689
DL
94982000-02-01 Dave Love <fx@gnu.org>
9499
9500 * editfns.c (Fpropertize): Doc fix.
9501
9502 * process.c (Fstart_process): Doc fix.
9503
9504 * eval.c: Fix various doc strings not to duplicate information
9505 from help-manyarg-func-alist.
9506
9507 * window.c (Fset_window_margins): Don't make interactive. Doc
9508 fix.
9509
9510 * doc.c (Vhelp_manyarg_func_alist): New variable.
9511 (Fdocumentation): Use it.
9512 (syms_of_doc): Define it.
9513
b6680a0e
GM
95142000-01-31 Gerd Moellmann <gerd@gnu.org>
9515
2cb750ba
GM
9516 * xterm.c (xim_open_dpy): Remove unused local variable.
9517
74e9213b
GM
9518 * emacs.c (USAGE): Use term `display options' instead of `X
9519 options'.
9520
9521 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
9522 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
9523
b6680a0e
GM
9524 * fns.c (sweep_weak_table): New function.
9525 (sweep_weak_hash_tables): Use it. Keep on marking until there
9526 is no more change.
9527
994c5afe
GM
95282000-01-30 Gerd Moellmann <gerd@gnu.org>
9529
9530 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
9531 that XTread_socket does not crash by trying to call XNoOp on a
9532 closed display.
427ec082 9533
f00276e3
JR
95342000-01-30 Jason Rumney <jasonr@gnu.org>
9535
9536 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
9537 Change selected_frame to SELECTED_FRAME ().
9538 (w32_console_mouse_position): Remove #ifndef MULE from around
9539 `insist' parameter.
9540
9541 * makefile.nt: Remove dosfns.obj.
9542
9543 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
9544
9545 * w32fns.c (w32_defined_color): Check for valid frame before
9546 applying gamma correction. Eliminate dependency on frame elsewhere.
9547 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
9548 (w32_to_x_font): Use resx and resy not height_in and width_in.
9549 (x_to_w32_font): Doc fix.
9550 (xlfd_strip_height): New function to strip and return font height.
9551 (w32_font_match): Compare height separately from rest of xlfd
9552 spec, using xlfd_strip_height.
9553
9554 * w32term.c (w32_term_init): Swap resx and height_in, resy and
9555 width_in. Use w32_defined_color in place of defined_color.
9556
9557 * w32faces.c: Merge more of DOS and X specifics in preparation for
9558 merge with xfaces.c.
9559 (defined_color): Remove FIXME comment.
9560 (tty_color_name): Provide w32-specific function.
9561 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
9562
9563 * w32console.c (turn_on_face, turn_off_face): Removed.
9564 (w32_face_attributes): New function.
9565 (Global_variables): Reduce scope where possible.
9566 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
9567 fill attribute.
9568 (hl_mode): Don't modify text attributes.
9569 (write_glyphs): Don't do anything if len <= 0. Use
9570 w32_face_attributes to get attributes for drawing. Write
9571 terminating codes using char_attr_normal.
9572 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
9573 (update_begin, update_end): Likewise.
9574 (vga_stdcolor_name): New function.
9575 (initialize_w32_display): Remove char_attr_reverse and char_attr.
9576 (Fset_screen_color): Remove char_attr_reverse.
9577
b08e8bb2
GM
95782000-01-29 Gerd Moellmann <gerd@gnu.org>
9579
9580 * xfns.c (xic_set_preeditarea): Take window parameter and
9581 window-relative pixel-positions.
9582
9583 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
9584 is its frame's selected window.
9585 (xim_instantiate_callback): Likewise.
9586
9587 * xfns.c (x_create_im): Removed.
9588 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
9589 (supported_xim_styles): Renamed from supported_styles.
9590 (best_xim_style): Renamed from best_style.
9591 (create_frame_xic): Renamed from xic_create_frame.
9592 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 9593
b08e8bb2
GM
95942000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
9595
9596 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
9597 our frames, call XFilterEvent with 2nd parameter `None'.
9598 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
9599 returning XBufferOverflow.
9600 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
9601 area.
9602 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
9603 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
9604 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
9605 (xim_initialize, xim_close)
9606 [HAVE_X_I18N && HAVE_X11R6]: New functions.
9607 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
9608 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
9609 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
9610
9611 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
9612 and `xim_styles'.
9613 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
9614 `xic_style' and `xic_xfs'.
9615 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
9616 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
9617 (FRAME_XIM): Removed.
9618
9619 * xfns.c (supported_styles): New variable.
9620 (DEFAULT_STYLE, DEFAULT_FONT): New macros
9621 (xic_create_xfontset, best_style, xic_create_frame)
9622 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
9623 (xic_set_xfontset): New functions.
9624
142e109c
DL
96252000-01-28 Dave Love <fx@gnu.org>
9626
9627 * s/irix6-5.h: Revert last change after change to irix5-0.h.
9628
9629 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
9630
b02786f9
GM
96312000-01-28 Gerd Moellmann <gerd@gnu.org>
9632
d060bc9f
GM
9633 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
9634 for *scratch* if it already existed.
9635
b02786f9
GM
9636 * emacs.c (USAGE): New macro.
9637 (main): Use it to display usage information.
9638
2c52d7e4
EZ
96392000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
9640
9641 Support for the menu-help feature:
9642
9643 * msdos.h: Change prototypes of XMenuAddSelection and
9644 XMenuActivate.
9645
9646 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
9647 part of the line to the termscript file.
9648 (IT_clear_to_end): Clear the entire line, not just its beginning.
9649 (menu_help_message, prev_menu_help_message): New variables.
9650 (IT_menu_make_room): Make room for the help_text member.
9651 (IT_menu_display): New argument disp_help; all callers changed.
9652 If disp_help is non-zero, store the help text of the active menu
9653 item in menu_help_message.
9654 (XMenuAddPane): Initialize the help_text member to NULL.
9655 (XMenuAddSelection): New argument help_text. Store it in the
9656 XMenu structure.
9657 (XMenuActivate): New argument help_callback. If the value of
9658 menu_help_message has changed since the last time, display the
9659 menu help message text while waiting for the mouse to move. Clear
9660 the echo area before exiting.
9661 (XMenuDestroy): Free the help_text member.
9662
ffe0bcd1
GM
96632000-01-27 Gerd Moellmann <gerd@gnu.org>
9664
9665 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
9666 XMenuAddSelection. Pass help callback to XMenuActivate.
9667 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
9668
50dbd23f
EZ
96692000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
9670
9671 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
9672 and EMACS_SET_USECS.
9673
f5941bf8
GM
96742000-01-26 Dave Love <fx@gnu.org>
9675
6c67ddee
DL
9676 * editfns.c (Fchar_after, Fchar_before): Doc fix.
9677
f5941bf8
GM
9678 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
9679 an error may be signalled.
9680
9e49c990
GM
96812000-01-26 Gerd Moellmann <gerd@gnu.org>
9682
fc3cb460
GM
9683 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
9684 LD_SWITCH_SYSTEM inherited from irix5-0.h.
9685
9e49c990
GM
9686 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
9687
d0c037d8
GM
96882000-01-25 Gerd Moellmann <gerd@gnu.org>
9689
9690 * charset.c (Fstring): If there is a multibyte char among
9691 the args, always return a multibyte string.
9692
e12489f9
GM
96932000-01-25 Gerd Moellmann <gerd@gnu.org>
9694
9695 * sysdep.c (sys_select): Turn atimers off and on instead of
9696 recording and restoring old alarm handler
9697
9698 * process.c (toplevel): Include atimer.h.
9699 (create_process_1): Rewritten.
9700 (create_process): Use atimers instead of alarm.
9701 (wait_reading_process_input) [hpux]: Turn atimers off instead
9702 of turning off SIGALRM.
9703 (wait_reading_process_input): Turn off atimers instead off
9704 calling stop_polling.
9705
9706 * emacs.c (main): Call init_atimer.
9707
9708 * keyboard.c (toplevel): Include systime.h and atimer.h.
9709 (polling_for_input): Removed because unused.
9710 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
9711 (poll_timer): New variable.
9712 (poll_for_input, poll_for_input_1): New functions.
9713 (start_polling, stop_polling): Rewritten.
9714
9715 * keyboard.h (polling_for_input): Removed.
427ec082 9716
e12489f9
GM
9717 * atimer.h, atimer.c: New files.
9718
9719 * Makefile.in (obj): Add atimer.o.
9720 (atimer.o): New target.
9721
9722 * blockinput.h (pending_atimers): Add extern declaration.
9723 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
9724
9725 * lisp.h (popup_activated_flag): Add extern declaration.
9726
9727 * xmenu.c (popup_activated_flag): Make externally visible.
9728 (popup_activate_callback) [USE_MOTIF]: Increment
9729 popup_activated_flag.
9730 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
9731
9732 * xterm.c (toplevel): Include atimer.h.
9733 (toolkit_scroll_bar_interaction): New variable.
9734 (Fxt_process_timeouts): Removed.
9735 (x_process_timeouts): New function.
9736 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
9737 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
9738 (x_make_frame_visible): Call poll_for_input_1 instead of
9739 input_poll_signal. Don't call alarm.
9740 (x_initialize): Install timer calling x_process_timeouts.
427ec082 9741
1e5279b9
DL
97422000-01-24 Dave Love <fx@gnu.org>
9743
6c67ddee 9744 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
9745 Don't use -cckr -- apparently not now necessary.
9746
edf6aeb8
EZ
97472000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
9748
9749 * msdos.c (IT_menu_display): Truncate long menu lines at the right
9750 screen boundary.
9751
9badad41
JR
97522000-01-23 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32fns.c (w32_defined_color): Apply gamma correction before
9755 trying to map to the palette.
9756 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
9757 to w32_clear_rect.
9758
9759 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
9760 here. Callers changed to always pass real device context.
9761 (w32_draw_bitmap): Likewise.
9762 (w32_get_glyph_overhangs): Likewise.
9763 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
9764 one.
9765 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
9766 pfnSetScrollInfo and SetScrollRange.
9767 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
9768 back into MULE characters after decoding them.
9769 (x_get_glyph_face_and_encoding): Likewise.
9770 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
9771 GetCharABCWidthsW fails, since this is defined on Windows 9x.
9772 (x_produce_glyphs): Calculate per char metrics for a character
9773 that we know exists in default font when font_not_found_p is true.
9774
63bd786b
JR
97752000-01-22 Jason Rumney <jasonr@gnu.org>
9776
9777 * makefile.nt (intervals.obj, composite.obj): New modules.
9778 (composite.h): Added as dependency where appropriate.
9779
9780 * w32gui.h (XGCValue): New struct for emulating X GCs.
9781
9782 * w32term.h (XCharStruct): New struct for emulating X.
9783
9784 * w32console.c (turn_on_face, turn_off_face): New functions.
9785 (change_line_highlight): New prototype for new redisplay.
9786 (write_glyphs): Support multibyte text. Support faces.
9787
9788 * w32faces.c: Complete rewrite for new redisplay based on new
9789 xfaces.c.
9790
9791 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
9792 throughout. struct frame * in place of FRAME_PTR.
9793 Skeleton support for images, toolbars, tooltips from xfns.c.
9794 (Fx_create_frame): Use system default for default scroll bar
9795 width.
9796 (w32_get_arg): Renamed from x_get_arg.
9797 (Fx_file_dialog): New function.
9798 (w32_list_fonts): Check cache before asking system.
9799 (Vw32_enable_synthesized_fonts): New variable.
9800 (Vw32_enable_italics): Obsolete, removed.
9801
9802 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
9803 Use SELECTED_FRAME macro.
9804
9805 * w32menu.c: Add skeleton support for help strings on menus.
9806 (add_menu_item): Native checkbox and radio support added, but not
9807 yet enabled due to bugs.
9808 (push_menu_item): Add parameters type, selection and help.
9809 Callers updated.
9810 Formatting changes to reduce unnecessary diffs with xmenu.c.
9811
9812 * w32select.c (Fw32_set_clipboard_data): Update call to
9813 find_charset_in_str.
9814
9815 * w32term.c: Complete rewrite for new redisplay based on new
9816 xterm.c with necessary sections merged back in from old w32term.c.
9817
6ffd3cf7 98182000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
9819
9820 * data.c (set_internal): Further fix in same criterion.
9821
6ffd3cf7 98222000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
9823
9824 * data.c (set_internal): Fix the criteria for whether
9825 to swap out the old cached binding.
9826
60af03f1
DL
98272000-01-19 Dave Love <fx@gnu.org>
9828
9829 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
9830
f9be074f
KH
98312000-01-18 Kenichi Handa <handa@etl.go.jp>
9832
9833 * regex.c (re_compile_fastmap): While checking a range table for
9834 `charset', skip flag bits for a character class correctly.
9835
52b8dbf9
GM
98362000-01-17 Gerd Moellmann <gerd@gnu.org>
9837
d36100c9
GM
9838 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
9839
52b8dbf9
GM
9840 * xfns.c (x_window): Call lw_create_widget with new parameter
9841 list.
9842
9843 * widget.c (EmacsFrameSetCharSize): Change size of children first
9844 because of problems with main window geometry management under
9845 Lesstif.
9846
9847 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
9848 MENU_ITEMS_ITEM_.*.
9849 (MENU_ITEMS_ITEM_HELP): New enumerator.
9850 (push_menu_item): Add parameter HELP. Record help in menu_items.
9851 (single_menu_item, single_submenu, list_of_items): Call
9852 push_menu_item with new parameter.
9853 (single_submenu): Set help string in widget value.
9854 (menu_highlight_callback): New function.
9855 (set_frame_menubar): Call lw_create_widget with new
9856 parameter list.
9857 (xmenu_show, xdialog_show): Ditto.
9858
3139018f
GM
98592000-01-13 Gerd Moellmann <gerd@gnu.org>
9860
9861 * sound.c (Fplay_sound): Improve doc string.
9862
83c8f461
RS
98632000-01-11 Richard M. Stallman <rms@gnu.org>
9864
9865 * lisp.h (set_internal): Enter the new arg.
9866
9867 * eval.c (specbind): Record buffer-local variables specially,
9868 indicating which buffer's binding was saved.
9869 (unbind_to): Restore buffer-local variables specially
9870 in the proper buffer.
9871
9872 * data.c (set_internal): New arg BUF.
427ec082 9873
83c8f461
RS
9874 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
9875 * data.c (Fset): Pass new arg to set_internal.
9876 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 9877
1fab1775
GM
98782000-01-11 Gerd Moellmann <gerd@gnu.org>
9879
9880 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
9881 xprintsym.
9882
83c8f461 98832000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
9884
9885 * minibuf.c (Ftry_completion): Doc fix.
9886
7a85e4df
GM
98872000-01-11 Gerd Moellmann <gerd@gnu.org>
9888
9889 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
9890 vector, too.
9891
a970dae4
AS
98922000-01-11 Andreas Schwab <schwab@suse.de>
9893
9894 * coding.c (code_convert_region): Initialize total_skip.
9895
c65d14ee
DL
98962000-01-08 Dave Love <fx@gnu.org>
9897
9898 * eval.c (Fuser_variable_p): Check customizability too.
9899
834938d2
GM
99002000-01-07 Gerd Moellmann <gerd@gnu.org>
9901
9902 * minibuf.c (Fcompleting_read): Doc fix.
9903
e0303cd6
GM
99042000-01-05 Gerd Moellmann <gerd@gnu.org>
9905
8a26744b
GM
9906 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
9907 -L /usr/local/lib.
9908
e0303cd6
GM
9909 * xfns.c (x_create_im): New function to set IM and IC of a frame.
9910 Check that input style is supported before trying to create an
9911 IC for it.
9912 (x_window): Call x_create_im.
427ec082 9913
2e471eb5
GM
99142000-01-04 Gerd Moellmann <gerd@gnu.org>
9915
560a7bd2
GM
9916 * xfns.c (current_gif_memory_src): New variable.
9917 (gif_load): Record the address of the current memory source
9918 in current_gif_memory_src.
9919 (gif_read_from_memory): Use current_gif_memory_src.
9920
f9ee84a3
GM
9921 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
9922 macros statement form.
9923
d1299cde
GM
9924 * sound.c (struct sound): Renamed from struct sound_file.
9925 (struct sound): Add members `data' and `header_size'.
9926 (enum sound_attr): Add SOUND_DATA.
9927 (current_sound, current_sound_device): Variables renamed from
9928 sound_file and sound_device.
9929 (parse_sound): Parse :data.
9930 (parse_sound): Handle sound data in strings.
9931 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 9932 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
9933 needed header size.
9934 (wav_play, au_play): Play sounds from string data.
9935
2e471eb5
GM
9936 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
9937
9938 * lisp.h: Add prototype for allocate_string_data.
9939
9940 * alloc.c (Fgarbage_collect): Return number of live and free
9941 strings.
9942
9943 * alloc.c (mark_buffer): Remove code in #if 0.
9944 (gc_sweep): Ditto.
9945 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
9946 (strings_consed): New variable.
9947 (allocate_string): Set it.
9948 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
9949 (Fmemory_use_counts): Return strings_consed. Use Flist.
9950
9951 * alloc.c: General cleanup in comments etc. Remove conditional
9952 compilation for `standalone'.
9953
9954 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
9955
9956 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
9957 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
9958 (DONT_COPY_FLAG): Removed.
9959 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
9960 (struct sdata, struct sblock): New
9961 (struct string_block): Rewritten.
9962 (STRINGS_IN_STRING_BLOCK): New macro.
9963 (oldest_sblock, current_sblock, total_strings, total_free_strings)
9964 (large_sblocks, string_blocks, string_free_list): New variables.
9965 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
9966 (init_strings): Rewritten.
9967 (allocate_string, allocate_string_data, compact_small_strings)
9968 (free_large_strings, sweep_strings): New functions.
9969 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
9970 (struct string_block_head, current_string_block)
9971 (first_string_block, large_string_blocks, STRING_FULLSIZE)
9972 (STRING_PAD): Removed.
9973 (make_uninit_multibyte_string, make_pure_string): Rewritten.
9974 (Fgarbage_collect): Don't set mark bit in large strings.
9975 (mark_object): Mark strings differently. Mark symbol names
9976 differently.
9977 (survives_gc_p): Test marked strings differently.
427ec082 9978 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
9979 symbol names.
9980 (compact_strings): Removed.
9981
42608ba8
EZ
99822000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
9983
9984 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
9985 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
9986
e0a09e1a
KH
99872000-01-04 Kenichi Handa <handa@etl.go.jp>
9988
dd9f0750 9989 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 9990 in a non-empty buffer.
dd9f0750 9991
3c0f3b15 9992 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 9993
44cd3ae5
GM
99942000-01-03 Gerd Moellmann <gerd@gnu.org>
9995
9996 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
9997 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
9998
9999 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
10000
c182a70f
EZ
100012000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
10002
10003 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
10004 need to test for MSDOS frames.
10005
24480d5b
EZ
100062000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
10007
10008 * dosfns.c (unspecified_colors): Remove.
10009 (msdos_stdcolor_idx): Use global variables unspecified_fg and
10010 unspecified_bg.
10011 (msdos_stdcolor_name): Return strings for unspecified fore- and
10012 back-ground colors.
10013
10014 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 10015 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
10016 (tty_color_name): Return Lisp strings for unspecified fore- and
10017 back-ground colors.
10018 (Finternal_set_lisp_face_attribute): Remove the special treatment
10019 for Qunspecified_{f,b}g.
10020 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
10021 string.
10022
047f434a
GM
100232000-01-03 Gerd Moellmann <gerd@gnu.org>
10024
10025 * xdisp.c (reseat_at_next_visible_line_start): Position before
10026 newline only if ending up on a newline.
10027 (next_element_from_ellipsis): Return success. Handle case of
10028 displaying no ellipsis. Fix case of ellipsis defined in display
10029 table.
10030 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
10031 returns 0.
10032
d684c676
EZ
100332000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
10034
10035 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
10036 (Fcolor_supported_p): Renamed from face-color-supported-p.
10037
5fe1d139
EZ
100382000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
10039
10040 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
10041 list of colors renamed to tty-defined-color-alist.
10042 (tty_color_name): Pass the frame to tty-color-by-index.
10043 (realize_tty_face): tty-color-alist is now a function which
10044 accepts the frame as argument.
10045
10046 * term.c (Ftty_display_color_p): Accept an optional argument
10047 FRAME.
10048
816be8b8
EZ
100492000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
10050
10051 * term.c (insert_glyphs): Pass glyph, not &glyph, to
10052 encode_terminal_code.
10053
b635321e
EZ
100542000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
10055
10056 * dispnew.c (mode_line_string): Support termcap frames as well.
10057
9b784e96
GM
100582000-01-01 Gerd Moellmann <gerd@gnu.org>
10059
27189709
GM
10060 * syntax.c (Fforward_word): Undo previous change.
10061
10062 * editfns.c (Fconstrain_to_field): Don't constrain if
10063 inhibit-field-text-motion is non-nil.
10064 (Fline_beginning_position): Undo previous change.
10065 (Fline_end_position): Ditto.
10066
10067 * syntax.c (Fforward_word): Notice field boundaries only if
10068 inhibit-field-text-motion is nil.
10069
10070 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
10071
10072 * editfns.c (Vinhibit_field_text_motion): New variable.
10073 (inhibit-field-text-motion): New DEFVAR_LISP.
10074 (Fline_beginning_position, Fline_end_position): Notice field
10075 boundaries only if inhibit-field-text-motion is nil.
10076
45158a91
GM
10077 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
10078 All calls adjusted.
10079 (x_build_heuristic_mask): Likewise.
10080 (xbm_load_image_from_file): Change error output.
10081 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
10082 (gif_load, gs_load, x_kill_gs_process): Ditto.
10083
9b784e96
GM
10084 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
10085 color indices when accessing raster pixels.
63cec32f
GM
10086 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
10087 one of :file or :data.
10088 (enum pbm_keyword_index): Add PBM_DATA.
10089 (pbm_format): Add :data.
10090 (pbm_image_p): Allow either :file or :data.
10091 (pbm_read_file): New function.
10092 (pbm_scan_number): Rewritten to read from string.
10093 (pbm_load): Support :data.
9b784e96 10094
2cb085db 10095See ChangeLog.8 for earlier changes.
6922b018
KH
10096
10097;; Local Variables:
49b3bd82 10098;; coding: iso-2022-7bit
6922b018 10099;; End: