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