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