Bind case-fold-search to t when searching in case
[bpt/emacs.git] / src / ChangeLog
CommitLineData
162ccef4
DL
12000-06-05 Dave Love <fx@gnu.org>
2
f19f32dd
DL
3 * xdisp.c: Include fontset.h.
4
5 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
6
7 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8
9 * dispnew.c: Conditionally include term.h.
10
11 * coding.h: Declare code_convert_string_norecord.
12
13 * frame.h (struct frame): Use volatile unconditionally.
14
15 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
16
17 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
18
19 * systime.h: Protect against multiple inclusion.
20 (timezone) [USG5_4]: Define as time_t.
21
22 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
23 (Foptimize_char_table, make_temp_name): Declare.
24
25 * Makefile.in (xdisp.o): Depend on fontset.h.
26
27 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
28
29 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
30 (Foptimize_char_table, make_temp_name): Declare.
31
162ccef4
DL
32 * s/irix4-0.h:
33 * s/irix5-0.h:
34 * s/netbsd.h: Don't define autoconfiscated MATHERR.
35
2082fe81
DL
362000-06-02 Dave Love <fx@gnu.org>
37
38 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
39
dcf671d2
GM
402000-06-02 Gerd Moellmann <gerd@gnu.org>
41
42 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
43 result face, set flags in the face indicating that colors may not
44 be freed.
45
46 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
47 glyph, use the ASCII NUL character to determine the face.
48
d42122a3
DL
492000-06-02 Dave Love <fx@gnu.org>
50
51 * sysdep.c: Conditionally include stdlib.h, unistd.h.
52 (VFORK_RETURN_TYPE): Remove.
53
54 * config.in: Add NO_MATHERR.
55
dd432f16
DL
562000-06-01 Dave Love <fx@gnu.org>
57
90aa4ea8
DL
58 * cmds.c (internal_self_insert): Don't check
59 Vbefore_change_function, Vafter_change_function.
60
61 * insdel.c (signal_before_change, signal_after_change): Likewise.
62
63 * buffer.c (Vbefore_change_function, Vafter_change_function):
64 Variables and their initializations deleted.
65
2330c9d4
DL
66 * callint.c (Fcall_interactively): Doc fix.
67
dd432f16
DL
68 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
69
bf9e8804
DL
702000-05-31 Dave Love <fx@gnu.org>
71
72 * textprop.c: Revert last change -- duplicated.
73
3694b4ab
GM
742000-05-31 Gerd Moellmann <gerd@gnu.org>
75
76 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
77 in #if 0.
78
79 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
80
f14156cd
JR
812000-05-31 Jason Rumney <jasonr@gnu.org>
82
8119aab8
JR
83 * search.c (Fre_search_forward, Fre_search_backward)
84 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
85
f14156cd
JR
86 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
87
4aab9be3
JR
882000-05-30 Jason Rumney <jasonr@gnu.org>
89
90 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
91 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
92
93 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
94 member.
95
96 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
97 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
98 expand a nil default_filename.
99
100 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
101 pointer to glyph_to_pixel_coords, not a frame.
102
103 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
104 coding.h to dependencies.
105
106 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
107
108 * w32console.c (glyph_to_pixel_coords): Change first parameter to
109 window pointer to be consistent with w32term.c and xterm.c.
110
111 * w32fns.c: Format and doc changes to bring closer to xfns.c.
112 (VIETNAMESE_CHARSET): Define if not defined in system headers.
113 (Qline_spacing, Qcenter): New variables.
114 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
115 (x_set_line_spacing): New function.
116 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
117 macros.
118 (x_specified_cursor_type): New function.
119 (x_set_cursor_type): Use it.
120 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
121 and icon strings.
122 (validate_x_resource_name, x_get_resource_string): Measure lengths
123 of external strings in bytes.
124 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
125 GetTextExtentPoint32 with NULL title.
126 (Fx_create_frame): Initialize Qline_spacing.
127 (w32_load_system_font): Initialize font->double_byte_p.
128 (x_to_w32_charset): Use Vw32_charset_info_alist.
129 (Image, busy cursor, tooltip functions): Merged changes from
130 xfns.c. Not yet functional on Windows.
131
132 * w32gui.h (W32FontStruct): Add double_byte_p member.
133
134 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
135 (emacs_button_translation): Use it.
136 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
137 in `mask' to be set.
138
139 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
140 menu strings.
141
142 * w32term.c: Format and doc changes to bring closer to xterm.c.
143 (w32_char_font_type): New enum.
144 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
145 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
146 (w32_encode_char): New function.
147 (x_encode_char): Removed.
148 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
149 x_encode_char and w32_font_is_double_byte.
150 (x_produce_image_glyph): Use image_ascent.
151 (x_produce_glyphs): Use new version of w32_per_char_metric and
152 handle NULL return value. Allow extra line spacing.
153 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
154 (w32_get_glyph_overhangs): Remove unicode_p param. Use
155 w32_font_type member of glyph instead.
156 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
157 (fast_find_position): Make sure not to consider rows not visible
158 in the window.
159 (w32_read_socket) [WM_MENUSELECT]: Cannot call
160 w32_menu_display_help with input blocked, as it can abort.
161 (x_display_and_set_cursor): Choose cursor depending
162 on buffer-local value of cursor_type.
163 (x_draw_bar_cursor): Add parameter WIDTH.
164
165 * w32term.h (CP_DEFAULT): Define.
166 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
167
10fc3187
GM
1682000-05-30 Gerd Moellmann <gerd@gnu.org>
169
170 * search.c (Fre_search_forward, Fre_search_backward)
171 (Fposix_search_backward, Fposix_search_forward): Doc fix.
172
d0555360
KH
1732000-05-30 Kenichi Handa <handa@etl.go.jp>
174
175 * coding.c (detect_coding_iso2022): Fix code for checking
176 CODING_CATEGORY_MASK_ISO_8_2.
177
f1ad044f
SM
1782000-05-29 Stefan Monnier <monnier@cs.yale.edu>
179
180 * regex.c (PREFETCH_NOLIMIT): New function.
181 (re_match_2_internal): Use it and adjust the end_match_2 logic.
182
84ec3b4b
GM
1832000-05-29 Gerd Moellmann <gerd@gnu.org>
184
66254a13
GM
185 * syntax.c (find_defun_start): Move test for
186 open_paren_in_column_0_is_defun_start outside of the loop.
187
49e70dec
GM
188 * xdisp.c (redisplay_window): Really switch buffers when
189 displaying mode lines, and temporarily set selected_frame to the
190 frame of the window that's redisplayed.
191
84ec3b4b
GM
192 * xfaces.c (free_realized_faces): Block/unblock input.
193 (free_realized_multibyte_face): Ditto.
194
869a3a14
DL
1952000-05-29 Dave Love <fx@gnu.org>
196
197 * textprop.c (Qkeymap): New variable.
198 (syms_of_textprop): Intern it.
199
200 * keymap.c: Include intervals.h.
201 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
202
203 * Makefile.in (keymap.o): Depend on intervals.h.
204
205 * keyboard.c (menu_bar_items, tool_bar_items)
206 (Fexecute_extended_command): Deal with `keymap' property.
207 (read_key_sequence): Track map from `keymap' property as well as
208 `local_map'.
209
210 * intervals.c (get_local_map): Extra arg to allow looking for
211 `keymap' too.
212
213 * intervals.h (map_property): New enum.
214 (get_local_map): Extra arg using it.
215 (Qkeymap): Declare.
216
84ec3b4b 217 * lisp.h (get_local_map): Don't declare here.
869a3a14 218
89d0c844
KH
2192000-05-29 Kenichi Handa <handa@etl.go.jp>
220
221 * Makefile.in (callproc.o): Depend on composite.h.
222
223 * callproc.c: Include composite.h.
224 (Fcall_process): Handle composition correctly.
225
226 * coding.h (coding_allocate_composition_data): Extern it.
227 (coding_restore_composition): Likewise.
228
229 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
230 yet allocated, finish decoding with result
231 CODING_FINISH_INSUFFICIENT_CMP.
232 (coding_allocate_composition_data): Make it non-static.
233 (coding_restore_composition): Likewise.
234
797a084a
EZ
2352000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
236
237 * charset.c (syms_of_charset): Revert last change.
238
cf872af5
EZ
2392000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
240
241 * term.c (produce_glyphs): Treat characters from the eight-bit-*
242 charsets as unibyte, with 1-column screen width. Sent by Kenichi
243 Handa.
244
5b1ae051
EZ
2452000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
246
247 * charset.c (syms_of_charset): Set width of character sets
248 eight-bit-control and eight-bit-graphic to 1 column.
249
34ec9ebe
GM
2502000-05-26 Gerd Moellmann <gerd@gnu.org>
251
252 * config.in (HAVE_SPEED_T): New define.
253
254 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
255 `extern speed_t'.
256
dd854dc2
DL
2572000-05-26 Dave Love <fx@gnu.org>
258
259 * coding.c (shrink_decoding_region): Initialize eol_conversion.
260
261 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
262 (Fsubr_arity): New function.
263 (syms_of_data): Install them.
264
ba9f8f95
KH
2652000-05-26 Kenichi Handa <handa@etl.go.jp>
266
0f3e0672
KH
267 * charset.c (init_charset_once): Set the table bytes_by_char_head
268 correctly.
269
cebefb44
KH
270 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
271 the default fontset to what Emacs uses by default.
0f3e0672
KH
272 (check_registry_encoding): This function deleted.
273 (Fset_fontset_font): Remove the adhoc condition for the default
274 fontset. Allow cons in FONTNAME.
cebefb44 275
0f3e0672
KH
276 * fns.c (map_char_table): Ignore char-table entries for
277 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 278
7a18af49
KR
2792000-05-25 Ken Raeburn <raeburn@gnu.org>
280
281 * emacs.c (main): Initialize keyboard syms before initializing
282 window code, so face names are available.
283
d2af47df
SM
2842000-05-25 Stefan Monnier <monnier@cs.yale.edu>
285
286 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
287 of an anchor at the beginning of a shy-group.
288
fc6a6a4e
GM
2892000-05-25 Gerd Moellmann <gerd@gnu.org>
290
291 * xdisp.c (handle_invisible_prop): Don't try to skip over
292 invisible text if end of text is already reached.
293
005f0d35
DL
2942000-05-25 Dave Love <fx@gnu.org>
295
02513cdd
DL
296 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
297
005f0d35
DL
298 * coding.c (encode_eol): Add null statement after label.
299
89f6ca4e
EZ
3002000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
301
302 * w16select.c (Fw16_set_clipboard_data): Fix the change from
303 2000-05-20.
304
a4e1759e
KH
3052000-05-25 Kenichi Handa <handa@etl.go.jp>
306
307 * ccl.c (ccl_driver): Fix previous change.
308
eacfd7fe
KH
3092000-05-25 Kenichi Handa <handa@etl.go.jp>
310
46ab33a9
KH
311 * coding.c (run_pre_post_conversion_on_str): Set point to the
312 beginning of buffer before calling coding->post_read_conversion.
313 (decode_coding_string): Give correct args to
314 run_pre_post_conversion_on_str.
315 (encode_coding_string): Likewise.
316
eacfd7fe
KH
317 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
318 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
319 eight-bit-graphic correctly.
320
f8569325
DL
3212000-05-24 Kenichi HANDA <handa@etl.go.jp>
322
323 * fileio.c (Finsert_file_contents): Even if a file is not found,
324 execute codes for setting up coding system. Call
325 after-insert-file-functions unconditionally.
326
04545643
GM
3272000-05-24 Gerd Moellmann <gerd@gnu.org>
328
329 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
330 BSD_PGRPS are not defined.
331
747d90ea
KH
3322000-05-24 Kenichi Handa <handa@etl.go.jp>
333
334 * charset.c (update_charset_table): Accept nil in LONG_NAME and
335 DESCRIPTION.
336 (syms_of_charset): Avoid building same strings.
337
716e3b88
GM
3382000-05-23 Gerd Moellmann <gerd@gnu.org>
339
340 * lread.c (Fload): Add a comment about the meaning of
341 Vuser_init_file being t.
342
343 * puresize.h (BASE_PURESIZE): Increase to 675000.
344
345 * s/gnu-linux.h (setpgrp): Don't define it here because this
346 prevents compilation on GNU/Linux systems with glib 2.2.
347
348 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
349 as setpgid.
350
9aeb39fa
EZ
3512000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
352
353 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
354 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
355 version.
356 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
357
29ced61b
KH
3582000-05-23 Kenichi Handa <handa@etl.go.jp>
359
0574a2ed
KH
360 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
361 unconditionally.
362
3d80f24d
KH
363 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
364
365 * term.c (encode_terminal_code): Set coding->src_multibyte
366 properly.
367
29ced61b
KH
368 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
369
d7e00792
KH
3702000-05-22 Kenichi Handa <handa@etl.go.jp>
371
c9d80d38
KH
372 * keyboard.c (read_char): Allow character codes 128..255 to be
373 handled by input-method-function.
374
d7e00792
KH
375 * insdel.c (adjust_markers_for_replace): Fix previous change.
376 (adjust_after_replace): If PREV_TEXT is nil, call
377 adjust_markers_for_insert, not adjust_markers_for_replace.
378
087121cc
GM
3792000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
380
381 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
382 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
383 [HAVE_GRANDPT]: Define.
384 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
385
386 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
387 like SYSV_PTYS.
388
389 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
390
391 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
392
c9671f81
KH
3932000-05-20 Kenichi Handa <handa@etl.go.jp>
394
395 The following changes are to handle 8-bit characters in a
396 multibyte buffer/string without facing with byte combining
397 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
398 eight-bit-graphic (for 0xA0..0xFF) are introduced.
399
400 * Makefile.in (fns.o): Depend on charset.h.
401
402 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
403 convert it to unibyte.
404 (make_string): Use parse_str_as_multibyte, not chars_in_text.
405
406 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
407 apparent char boundary.
408 (Fset_buffer_multibyte): Convert 8-bit characters in the range
409 0x80..0x9F to/from multibyte form.
410
411 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
412 to unibyte.
413
414 * callproc.c (Fcall_process): Always encode an argument string if
415 it is multibyte. Setup src_multibyte and dst_multibyte members of
416 process_coding properly.
ce75fd23 417
c9671f81
KH
418 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
419 SPLIT_NON_ASCII_CHAR.
420
421 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
422 as is.
423 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
424
425 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
426 variables.
427 (SPLIT_CHARACTER_SEQ): This macro deleted.
428 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
429 valid.
430 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
431 and eight-bit-graphic.
432 (char_to_string): Likewise. Signal an error for too large
433 character code.
434 (char_printable_p): Return 0 for 8-bit characters.
435 (update_charset_table): Update iso_charset_table only when a final
436 character is non-negative.
437 (find_charset_in_text): Renamed from find_charset_in_str.
438 Arguments and return value changed. Callers changed.
439 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
440 be -1 if CHARSET is used only internally.
441 (Fmake_char_internal): Handle new charsets; eight-bit-control and
442 eight-bit-graphic.
443 (Fcharset_after): Simplified.
444 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
445 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
446 (multibyte_chars_in_text): Simplified by assuming there's no
447 invalid multibyte sequence.
448 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
449 str_as_unibyte): New functions.
450 (Fstring): Simpified by assuming that byte combining never
451 happens.
452 (init_charset_once): Initialization for
453 LEADING_CODE_8_BIT_CONTROL.
454 (syms_of_charset): Intern and staticpro Qeight_bit_control and
455 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
456 eight-bit-control and eight-bit-graphic.
457
458 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
459 CHARSET_8_BIT_GRAPHIC): New macros.
460 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
461 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
462 (CHARSET_REVERSE_CHARSET): Likewise.
463 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
464 eight-bit-graphic.
465 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
466 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
467 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
468 encounter an invalid multibyte sequence.
469 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
470 sequence is always valid.
471 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
472 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
473 macros.
474 (CHAR_STRING): For 8-bit characters, call char_to_string.
475 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
476 multibyte sequence is always valid.
477 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
478 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
479 str_as_unibyte): Extern them.
480 (BCOPY_SHORT): Fix a bug.
481 (CHAR_LEN): This macro deleted. Callers changed to use
482 CHAR_BYTES.
483 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
484 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
485 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
486
bd4bde7f 487 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
488 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
489 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
490 EMIT_BYTES): New macros.
491 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
492 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
493 macros deleted.
494 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
495 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
496 check the validity of multibyte sequence.
497 (decode_coding_emacs_mule): New function.
498 (encode_coding_emacs_mule): New macro.
499 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
500 the source.
501 (DECODE_ISO_CHARACTER): Just return a character code.
502 (DECODE_COMPOSITION_START): Set coding->result instead of result.
503 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
504 EMIT_CHAR to produced decoded characters. Exit the loop only by
505 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
506 block here.
507 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
508 only position codes for an invalid character.
509 (encode_designation_at_bol): Return new destination pointer. 5th
510 arg DSTP is changed to DST.
511 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
512 from the source by ONE_MORE_CHAR. Don't handle the case of last
513 block here.
514 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
515 macros deleted.
516 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
517 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
518 TWO_MORE_BYTES to fetch a byte from the source.
519 (encode_eol): Pay attention to coding->src_multibyte.
520 (detect_coding, detect_eol): Preserve members src_multibyte and
521 dst_multibyte.
522 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
523 (encoding_buffer_size): Set magnification to 3 for all coding
524 systems that require encoding.
525 (ccl_coding_driver): For decoding, be sure that the result is
526 valid multibyte sequence.
527 (decode_coding): Initialize coding->errors and coding->result.
528 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
529 and raw-text, always call decode_eol. Handle the case of last
530 block here. If not coding->dst_multibyte, convert the resulting
531 sequence to unibyte.
532 (encode_coding): Initialize coding->errors and coding->result.
533 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
534 and raw-text, always call encode_eol. Handle the case of last
535 block here.
536 (shrink_decoding_region, shrink_encoding_region): Detect cases
537 that we can't skip data more rigidly.
538 (code_convert_region): Setup src_multibyte and dst_multibyte
539 members of coding. For decoding, if the buffer is multibyte,
540 convert the source sequence to unibyte in advance. For encoding,
541 if the buffer is multibyte, convert the resulting sequence to
542 multibyte afterward.
543 (run_pre_post_conversion_on_str): New function.
544 (code_convert_string): Deleted and divided into the following two.
545 (decode_coding_string, encode_coding_string): New functions.
546 (code_convert_string1, code_convert_string_norecord): Call one of
547 above.
548 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
549 MAKE_NON_ASCII_CHAR.
550 (Fset_terminal_coding_system_internal,
551 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
552 and dst_multibyte members.
553 (init_coding_once): Initialize iso_code_class with new enum
554 ISO_control_0 and ISO_control_1.
555
556 * coding.h (enum iso_code_class_type): Member ISO_control_code is
557 devided into ISO_control_0 and ISO_control_1.
558 (struct coding_system): New members src_multibyte, dst_multibyte,
559 errors, and result. Delete member fake_multibyte.
560 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
561 nonzero.
562 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
563 nonzero.
564
565 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
566 (Faset): Likewise.
567
568 * editfns.c (Fformat): Be sure to convert 8-bit characters to
569 multibyte form.
570 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
571 combining occurs.
572 (Ftranspose_region): Delete codes for handling byte combining.
573
574 * fileio.c (Finsert_file_contents): Setup src_multibyte and
575 dst_multibyte members of coding. On handling REPLACE on unibyte
576 buffer, convert the result of decode_coding to unibyte. On
577 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 578 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
579 multibyteness of the source (buffer or string).
580
581 * fns.c (concat): Handle 8-bit characters correctly.
582 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
583 unibyte in the result.
584 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
585 valid multibyte form in the result.
586 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
587 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
588 return -1, signal an error.
589 (base64_encode_1): New arg MULTIBYTE. Get each character by
590 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
591 character is found, return -1.
592 (Fbase64_decode_region): Delete codes for handling byte-combining.
593 Treat each decoded byte as a unibyte character.
594 (Fbase64_decode_string): Return unibyte string.
595 (Fcompare_strings, concat, string_byte_to_char): Use
596 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
597 FETCH_STRING_CHAR_ADVANCE.
598 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
599 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
600
601 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
602 SPLIT_NON_ASCII_CHAR.
603 (fontset_ref_via_base, fontset_set): Likewise
604
605 * insdel.c (adjust_markers_for_record_delete): Deleted.
606 (adjust_markers_for_insert): Argument changed. Caller changed.
607 (adjust_markers_for_replace): Likewise.
608 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
609 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
610 (copy_text): Delete unused local varialbe c_save. For converting
611 to multibyte, be sure to make all 8-bit characters in valid
612 multibyte form.
613 (count_size_as_multibyte): Handle 8-bit characters correctly.
614 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
615 adjust_after_replace, replace_range, del_range_2)
616 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
617 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
618 adjust_after_replace, replace_range, del_range_2) Delete codes for
619 handling byte combining.
620 (adjust_before_replace): Deleted.
621
622 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
623 SPLIT_NON_ASCII_CHAR.
624 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
625 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
626 unconditionally.
627 (Fkey_description): Likewise.
628
629 * lread.c (read1): On reading multibyte string, be sure to make
630 all 8-bit chararacters in valid multibyte form.
631 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
632
633 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
634 unconditionally.
635
636 * process.c (Fstart_process): GCPRO current_dir before calling
637 Ffind_operation_coding_system. Encode arguments here.
638 (create_process): Don't encode arguments here. Setup
639 src_multibyte and dst_multibyte members of struct coding.
640 (read_process_output): Setup src_multibyte and dst_multibyte
641 members of struct coding. If the output is to multibyte buffer,
642 always decode the output of the process. Adjust the
643 representation of 8-bit characters to the multibyteness of the
644 output.
645 (send_process): Setup coding->src_multibyte according to the
646 multibyteness of the source.
647
648 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
649 unconditionally.
650 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
651 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
652
653 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
654 CHAR_LEN.
655
656 * w16select.c (Fw16_set_clipboard_data): Setup members
657 src_multibyte and dst_multibyte of coding. Adjusted for the
658 change for find_charset_in_str.
659 (Fw16_get_clipboard_data): Likewise.
660
661 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
662 dst_multibyte of coding.
663 (x_to_w32_font): Likewise.
664
665 * w32select.c (Fw32_set_clipboard_data): Setup members
666 src_multibyte and dst_multibyte of coding. Adjusted for the
667 change for find_charset_in_str.
668 (Fw32_get_clipboard_data): Likewise.
669
670 * xdisp.c (get_next_display_element): Handle 8-bit characters
671 correctly.
672 (next_element_from_display_vector): Use CHAR_BYTES instead of
673 CHAR_LEN.
674 (disp_char_vector): Use SPLIT_CHAR instead of
675 SPLIT_NON_ASCII_CHAR.
676
677 * xselect.c (selection_data_to_lisp_data): Setup members
678 src_multibyte and dst_multibyte of coding. Adjusted for the
679 change for find_charset_in_str.
680 (lisp_data_to_selection_data): Likewise.
681
5f64c9e0
GM
6822000-05-19 Gerd Moellmann <gerd@gnu.org>
683
2b63d473
GM
684 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
685 buffer.
686
5f64c9e0
GM
687 * dispextern.h (Vimage_types): Add extern declaration.
688
689 * xdisp.c (Vimage_types): Moved here from xfns.c.
690 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
691
692 * xfns.c (Vimages_types): Moved to xdisp.c.
693 (syms_of_xfns): Move `image-types' to xdisp.c.
694
695 * w32fns.c (Vimage_types): Removed.
696 (syms_of_w32fns): Remove `image-types'.
697
813086ea
KH
6982000-05-18 Kenichi Handa <handa@etl.go.jp>
699
700 * fns.c (map_char_table): Pay attention to character number of
701 charset. Check the validity of charset at the first level. For
702 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
703 the default value.
704
705 * fontset.c: Include "buffer.h".
706 (fs_load_font): If the face has fontset, record the face ID in
707 that fontset.
708 (Finternal_char_font): New function.
709 (accumulate_font_info): New function.
710 (Ffontset_info): Rewritten for the new fontset implementation.
711 (syms_of_fontset): Register Vdefault_fontset in the first element
712 of Vfontset_table. Include Vdefault_fontset in
713 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
714 function.
715
bdaebbf0
DL
7162000-05-16 Dave Love <fx@gnu.org>
717
718 * m/iris5d.h: Deleted -- unused.
719
cb613bb8
GM
7202000-05-16 Gerd Moellmann <gerd@gnu.org>
721
b15f3b77
GM
722 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
723 `invalid' instead of `illegal'.
724
725 * indent.c (Fmove_to_column): When ending within a tab, insert
726 spaces first so that markers at the end of the tab get adjusted.
727
835c1b36
GM
728 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
729 buffer list that wasn't selected in that frame.
730
cb613bb8
GM
731 * filelock.c (get_boot_time): To obtain an 8 char file name, which
732 is needed on mescaline, use a 2 char prefix, and call
733 make_temp_name with second arg non-zero.
734
735 * fileio.c (make_temp_name): New function, extracted from
736 Fmake_temp_name.
737 (Fmake_temp_name): Use it.
738
f685bea9
EZ
7392000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
740
741 * window.c (coordinates_in_window): Subtract 1 when computing
742 right_x.
743
a1b8d58b
GM
7442000-05-15 Gerd Moellmann <gerd@gnu.org>
745
746 * Makefile.in (lisp): Add env.elc.
747
748 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
749
a265079f
GM
7502000-05-12 Gerd Moellmann <gerd@gnu.org>
751
752 * search.c (Freplace_match): Handle case of `\N' in the
753 replacement when there's no group N.
754
da4496b6
GM
7552000-05-11 Gerd Moellmann <gerd@gnu.org>
756
0ace421a
GM
757 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
758 of the message to message_dolog.
759
1172eb8d
GM
760 * keyboard.c (read_char): Don't clear current message for help
761 events; let the code handling help events handle this. Change
762 code detecting help events that should be ignored.
763
da4496b6
GM
764 * xdisp.c (handle_single_display_prop): Don't try to set PT if
765 we're interating over a string.
766
0623e40f
DL
7672000-05-09 Dave Love <fx@gnu.org>
768
769 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
770 that offset before writing. Move gcpro region past call of
771 Ffile_regular_p.
772
bae2503b
DL
7732000-05-04 Dave Love <fx@gnu.org>
774
775 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
776
ec82fb2f
GM
7772000-05-04 Gerd Moellmann <gerd@gnu.org>
778
779 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
780 of inserted characters when BUF equals the current buffer, and PT
781 is in front of or equal to FROM.
782
cbf18892
GM
7832000-05-03 Gerd Moellmann <gerd@gnu.org>
784
4ff40dd0
GM
785 * xdisp.c (handle_single_display_prop): If display property value
786 is invalid, or something not supported on the frame, restore
787 iterator's position to what it was initially. Make sure to return
788 0 for invalid and unsupported property values.
789
cbf18892
GM
790 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
791 that x_per_char_metric returns null.
792
1b0672c3
GM
7932000-05-02 Gerd Moellmann <gerd@gnu.org>
794
576da55d
GM
795 * xterm.h (struct face): Add forward declaration.
796 (struct image): Ditto.
797 (image_ascent): Add prototype.
798
799 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
800 (x_draw_image_relief, x_draw_image_foreground_1): Call function
801 image_ascent instead of using IMAGE_ASCENT.
802
803 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
804 (IMAGE_ASCENT): Removed.
805
806 * xfns.c (Qcenter): New variable.
807 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
808 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
809 (image_ascent): New function.
810 (lookup_image): Recognize `:ascent center'.
811 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
812 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
813 (xbm_load): Don't set image's ascent here.
814 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
815 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
816 check ascent values here.
817 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
818 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
819 (syms_of_xfns): Initialize Qcenter.
820
1b0672c3
GM
821 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
822 to the limits, increase the limits.
823
0d7811ed
KH
8242000-05-01 Kenichi Handa <handa@etl.go.jp>
825
826 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
827 Check Vfont_encoding_alist against the full name of the opened
828 font.
829
a943a5ca
GM
8302000-04-28 Gerd Moellmann <gerd@gnu.org>
831
832 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
833 taller than the window.
834
5dba1e29
KH
8352000-04-28 Kenichi Handa <handa@etl.go.jp>
836
837 * xfaces.c (realize_x_face): Fix the argument of the second
838 xassert. BASE_FACE may not be a face for ASCII.
839
353964e3
GM
8402000-04-27 Gerd Moellmann <gerd@gnu.org>
841
c76e04a8
GM
842 * print.c (print_object): Treat print-length < 0 as nil.
843
844 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
845
846 * s/freebsd.h (TERMCAP_OBJ): Removed.
847 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
848
849 * lread.c (read1): Don't treat period followed by certain
850 characters as symbol start.
851
852 * xfns.c (slurp_file): New function.
853 (xbm_image_p): Handle case of in-memory XBM files.
854 (xbm_scan): Rewritten to work on memory buffers instead of files.
855 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
856 Work on memory buffers instead of files. If DATA is null test
857 if buffer looks like an in-memory XBM file.
858 (xbm_load_image): Renamed from xbm_load_image_file. Work on
859 memory buffers instead of files.
860 (xbm_file_p): New function.
861 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
862
353964e3
GM
863 * lread.c (end_of_file_error): New function.
864 (read1): Call it instead of signaling `end-of-file' directly.
865
866 * print.c (print_error_message): Print data of `end-of-file'
867 with Fprinc instead of Fprin1.
868
24d744ac
KR
8692000-04-26 Ken Raeburn <raeburn@gnu.org>
870
871 * window.c (freeze_window_start): Check that minibuffer scroll
872 window isn't nil before extracting the window structure pointer
873 from it.
874
875 * undo.c (record_delete): If we hit the end of the undo list, stop
876 picking elements apart.
877
7464346d
GM
8782000-04-26 Gerd Moellmann <gerd@gnu.org>
879
880 * xdisp.c (display_line): If lines are continued, restore
881 iterator's ascent/descent information to the values before the
882 first glyph not fitting on the line.
883
612839b6
GM
8842000-04-25 Gerd Moellmann <gerd@gnu.org>
885
886 * xdisp.c (try_window_id) <all changes above window start>: Adjust
887 positions in glyph matrix. Don't compute new window end
888 positions.
889
890 * dispnew.c (increment_matrix_positions): Renamed from
891 increment_glyph_matrix_buffer_positions.
892 (increment_row_positions): Renamed from
893 increment_glyph_row_buffer_positions.
894
895 * dispextern.h: Change names of renamed functions from dispnew.c
896 in prototypes.
897
cc181e95
GM
8982000-04-24 Gerd Moellmann <gerd@gnu.org>
899
abfcc168
GM
900 * fileio.c (Fdo_auto_save): Create directories for auto-save
901 list file if necessary.
902
cc181e95
GM
903 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
904 from buffer or frame.
905 (automatic_hscrolling_p): New variable.
906 (hscroll_windows): Scroll windows horizontally only if automatic
907 hscrolling is allowed.
908 (syms_of_xdisp): New variable `automatic-hscrolling'.
909
910 * frame.h (struct frame): Add member extra_line_spacing.
911
912 * xfns.c (x_set_line_spacing): New function.
913 (Fx_create_frame): Set line spacing from resources.
914 (Qline_spacing): New variable.
915 (syms_of_xfns): Initialize Qline_spacing.
916
917 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
918
919 * buffer.c (init_buffer_once): Handle extra_line_spacing.
920 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 921 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
922 extra_line_spacing from default value.
923 (init_buffer_once): Initialize default value of extra_line_spacing.
924
925 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
926 and extra3.
927
928 * xterm.c (x_produce_glyphs): Remove reference to struct it's
929 prompt_width. Add extra line spacing.
930
931 * term.c (produce_glyphs): Remove reference to struct it's
932 prompt_width.
933
934 * dispextern.h (struct it): Remove member prompt_width, add
935 extra_line_spacing.
936
58827478
GM
9372000-04-22 Gerd Moellmann <gerd@gnu.org>
938
939 * dispnew.c (update_frame_line): When writing a whole line, make
940 sure cursor is in the right row afterwards, otherwise a use of
941 capability `ch' in cmgoto might leave the cursor in the row below.
942
25a87f42
GM
9432000-04-21 Gerd Moellmann <gerd@gnu.org>
944
945 * lisp.h (struct Lisp_Buffer_Cons): Remove.
946
947 * keyboard.c (timer_check): Fix typo in comment.
948
54edf5c2
KH
9492000-04-21 Kenichi Handa <handa@etl.go.jp>
950
951 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
952 name change: ch -> character.
953
3a64eef5
GM
9542000-04-20 Gerd Moellmann <gerd@gnu.org>
955
956 * keyboard.c (echo_message_buffer): New variable.
957 (echo_now): Set echo_message_buffer to the echo area buffer used
958 to display the echo.
959 (cancel_echoing): Reset echo_message_buffer to nil.
960 (read_char): Code rewritten that handles canceling an echo or
961 echoing a dash, respectively.
962
963 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
964 directory doesn't exist.
965
6142fdcb
DL
9662000-04-19 Dave Love <fx@gnu.org>
967
968 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
969 (concat): Don't allow numeric args.
970 (Fconcat): Doc change.
6142fdcb 971
ac6b5352
SM
9722000-04-19 Stefan Monnier <monnier@cs.yale.edu>
973
974 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
975 instead define end_match(1|2) more carefully.
976 Use GET_CHAR_BEFORE_2 for `begline'.
977
cb9215e4
GM
9782000-04-19 Gerd Moellmann <gerd@gnu.org>
979
5e3dac3f
GM
980 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
981 on 64-bit systems where NULL is defined as `0'.
982
983 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
984 the `variable argument list' to make it work on Alpha.
985
cb9215e4
GM
986 * m/alpha.h (_LP64) [!_LP64]: Define.
987 (ORDINARY_LINK): Define for NetBSD.
988
989 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
990
f532dca0
DL
9912000-04-19 Dave Love <fx@gnu.org>
992
c750667e
DL
993 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
994 change.
995
996 * Makefile.in (LIBS): Don't use.
997 (GETLOADAVG_OBJ): Define again.
998 (otherobj): Add GETLOADAVG_OBJ.
999
f532dca0
DL
1000 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
1001
1c7e22fd
GM
10022000-04-18 Gerd Moellmann <gerd@gnu.org>
1003
f6d3257b
GM
1004 * lread.c (read_filtered_event): Cancel and start busy cursor.
1005
1c7e22fd
GM
1006 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1007 that the per-character metrics may be null.
1008
e10f64e7
GM
10092000-04-17 Gerd Moellmann <gerd@gnu.org>
1010
0daee095
GM
1011 * buffer.c (clone_per_buffer_values): New function.
1012 (Fmake_indirect_buffer): Add optional argument CLONE. Call
1013 clone_per_buffer_values if CLONE is not nil.
1014
e10f64e7
GM
1015 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1016
38687d43
DL
10172000-04-16 Dave Love <fx@gnu.org>
1018
1019 * Makefile.in: Remove obsolete localcpp stuff.
1020 (GETLOADAVG_OBJ): Don't define.
1021 (obj): Move LIBOBJS...
1022 (otherobj): ... to here.
1023 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
1024 whitespace-only lines after the continuation (Irix).
1025
c21c7262
GM
10262000-04-14 Gerd Moellmann <gerd@gnu.org>
1027
1028 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
1029
1030 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
1031
314767c0
DL
10322000-04-14 Dave Love <fx@gnu.org>
1033
1034 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
1035 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
1036 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
1037 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
1038 NLIST_STRUCT.
1039
1040 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
1041 autoconfiscated HAVE_GETLOADAVG.
1042
1043 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
1044 BROKEN_MKTIME.
1045
a2522dca
GM
10462000-04-14 Gerd Moellmann <gerd@gnu.org>
1047
1048 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
1049 (fill_in_lock_file_name): Avoid existing files that aren't
1050 links.
1051
33744b5d
DL
10522000-04-14 Dave Love <fx@gnu.org>
1053
c21c7262 1054 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
1055 (INTERVAL_SRC): Convert to make variable.
1056 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
1057 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
1058 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
1059 add LIBOBJS.
1060 (SOME_MACHINE_OBJECTS): Remove interval stuff.
1061 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
1062 (shortlisp): Add facemenu, float-sup, frame.
1063 (SOME_MACHINE_LISP): Remove them from here.
1064 (LIBES): Change unused LDLIBS to autoconf LIBS.
1065
1066 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
1067
9d3d5916
KH
10682000-04-14 Kenichi Handa <handa@etl.go.jp>
1069
1070 * composite.c (update_compositions): If FROM and TO are not in a
1071 valid range, do nothing.
1072
198e3c7a
GM
10732000-04-13 Gerd Moellmann <gerd@gnu.org>
1074
1075 * tparam.c (tparam1): Abort when encountering an unknown
1076 `%'-specifier.
1077
1078 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
1079 terminfo.o.
1080
1081 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
1082 as TERMCAP_OBJ.
1083
055a28c9
EZ
10842000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1085
1086 * fileio.c (a_write): Remove redundant semi-colons.
1087 (e_write): Return -1 if failed to write all the data.
1088 This fixes the changes made at 1999-12-15.
1089
f5c75033
DL
10902000-04-12 Dave Love <fx@gnu.org>
1091
1092 * fns.c (mapcar1): Test for null vals to support mapc.
1093 (Fmapc): New function.
1094
0c3cfc51
EZ
10952000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
1096
1097 * msdos.c (NUM_MOUSE_BUTTONS): Define.
1098 (IT_frame_up_to_date): Support the buffer local value of
1099 cursor-type, if defined.
1100
33465a31
DL
11012000-04-10 Dave Love <fx@gnu.org>
1102
1103 * editfns.c (preceding-char, following-char): Doc fix.
1104
6ed56568
KR
11052000-04-10 Ken Raeburn <raeburn@gnu.org>
1106
1107 * Makefile.in (temacs): Revert 2000-03-12 change.
1108
7cf80d4e
JR
11092000-04-10 Jason Rumney <jasonr@gnu.org>
1110
1111 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
1112
34f3f342
GM
11132000-04-10 Gerd Moellmann <gerd@gnu.org>
1114
1a1b1895
GM
1115 * xdisp.c (setup_echo_area_for_printing): Choose an echo
1116 area buffer, if it's not set up yet.
1117
34f3f342
GM
1118 * indent.c (compute_motion): Set immediate_quit.
1119
be0dbdab
GM
11202000-04-09 Gerd Moellmann <gerd@gnu.org>
1121
c45be9ac
GM
1122 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
1123 variable.
1124 (realize_tty_face): Suppress boldness if colors are the inverse of
1125 the default colors, and tty_suppress_bold_inverse_default_colors_p
1126 is set.
1127 (Ftty_suppress_bold_inverse_default_colors): New function.
1128 (syms_of_xfaces): Defsubr it.
1129
be0dbdab
GM
1130 * buffer.c (Frestore_buffer_modified_p): New function.
1131 (syms_of_buffer): Defsubr it.
1132
e8413c3b
KR
11332000-04-08 Ken Raeburn <raeburn@gnu.org>
1134
87f67317
KR
1135 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
1136 charset id (int) argument, not a charset (Lisp_Object).
1137
e8413c3b
KR
1138 * coding.h (code_convert_string): Declare.
1139 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
1140 object, as the fourth argument to code_convert_string.
1141
1142 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
1143 value.
1144 (Fset_fontset_font): Use EQ to compare lisp objects.
1145
7c752c80
KR
11462000-04-05 Ken Raeburn <raeburn@gnu.org>
1147
c0333abc
KR
1148 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
1149 a pointer that looks like a lisp object.
1150 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
1151 zero, instead see whether it's an integer object, since they can't
1152 have intervals.
1153 (GET_INTERVAL_OBJECT): Simply assign to the destination.
1154
7c752c80
KR
1155 * dispnew.c (allocate_matrices_for_frame_redisplay,
1156 direct_output_forward_char): Use X(U)INT and make_number as needed
1157 to convert between (unsigned) int values and lisp integers.
1158 * keyboard.c (read_key_sequence): Likewise.
1159 * lread.c (substitute_object_recurse): Likewise.
1160 * fns.c (concat, hash_lookup, hash_remove): Likewise.
1161 * minibuf.c (do_completion, Fminibuffer_complete_word,
1162 Fminibuffer_completion_help): Likewise.
1163 * term.c (produce_special_glyphs): Likewise.
1164
1165 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
1166 * print.c (print_preprocess, print_object): Likewise.
1167
1168 * search.c (compile_pattern): Use NILP when checking for nil.
1169
74e49b38
KR
1170 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
1171 __OPTIMIZE__]: Provide a GNU C macro version that handles
1172 lisp-object unions.
1173 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
1174 field, to better cope with ENABLE_CHECKING and calls that modify a
1175 Lisp_Object using its old value.
1176
685e5ed2
GM
11772000-04-04 Gerd Moellmann <gerd@gnu.org>
1178
c407c570
GM
1179 * window.c (compare_window_configurations): Signal an error
1180 if parameters C1 or C2 aren't window configurations.
1181
685e5ed2
GM
1182 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
1183 AFTER_POTENTIAL_GC calls around calls to functions that can
1184 signal an error and thus invoke the debugger.
1185
587a49ab
GM
11862000-04-03 Gerd Moellmann <gerd@gnu.org>
1187
62f20204
GM
1188 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
1189 an error if decoding fails.
1190
587a49ab
GM
1191 * keyboard.c (lispy_mouse_names): Variable removed.
1192 (Vlispy_mouse_stem): New variable.
1193 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
1194 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
1195 for any mouse button number. Increase size of mouse_syms and
1196 button_down_location as needed. Call modify_event_symbol with
1197 different arguments.
1198 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
1199 Call modify_event_symbol with different arguments.
1200 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
1201 for any button number. Call modify_event_symbol with different
1202 arguments.
1203 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
1204 Accept a string for NAME_ALIST_OR_STEM.
1205
1206 * lisp.h (larger_vector): Add prototype.
1207
1208 * fns.c (larger_vector): Make externally visible.
1209
1210 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
1211
2d1675e4
SM
12122000-04-02 Stefan Monnier <monnier@cs.yale.edu>
1213
1214 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
1215 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
1216 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
1217 we are between str1 and str2.
1218 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
1219 (PATFETCH): Use `TRANSLATE'.
1220 (PATFETCH_RAW): Fetch multibyte char if applicable.
1221 (PATUNFETCH): Remove.
1222 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
1223 When writing a char, write it directly into the pattern buffer rather
1224 than going needlessly through a temp char-array.
1225 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
1226 multibyte magic and remove the useless `#ifdef emacs'.
1227 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
1228 buffer.
1229
1230 * regex.h (struct re_pattern_buffer): Make field `multibyte'
1231 conditional on `emacs'.
1232
1233 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
1234
cc2d8c6b
KR
12352000-04-01 Ken Raeburn <raeburn@gnu.org>
1236
1237 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
1238 non-union-type versions of XMARK and friends here, because XMARK
1239 and friends won't work on an integer field if NO_UNION_TYPE is not
1240 defined.
1241 (make_number): Define as a function if it's not defined as a
1242 macro.
1243
09654086
KR
1244 * composite.c (run_composite_function): Use NILP when checking for
1245 nil.
1246 (syms_of_composite): Delete local var NARGS, pass an int as first
1247 argument to Fmake_hash_table.
1248
2387b382
KR
1249 * editfns.c (text_property_stickiness): Use NILP to test
1250 Lisp_Object boolean value.
1251 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
1252 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
1253 problems reading from and changing the same lisp value in an
1254 XSETSTRING call.
1255
27660e89
GM
12562000-04-01 Gerd Moellmann <gerd@gnu.org>
1257
1258 * term.c (TN_no_color_video): New variable.
1259 (term_init): Intitialize TN_no_color_video.
1260 (enum no_color_bit): New enumeration.
1261 (MAY_USE_WITH_COLORS_P): New macro.
1262 (turn_on_face): Use it to determine if attributes may be used
1263 combined with colors.
1264
3578db3c
KR
12652000-04-01 Ken Raeburn <raeburn@gnu.org>
1266
1267 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
1268 with int lvalues via casts; instead, just yield lisp object
1269 lvalues.
1270 (enlarge_window): Variable sizep now points to Lisp_Object. Use
1271 proper accessor macros.
1272 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
1273 (grow_mini_window): Fix typo getting int value of root->height.
1274
6fc556fd
KR
1275 * xdisp.c (compute_string_pos): Fix order of arguments to
1276 string_pos_nchars_ahead.
1277 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
1278 count arg to variable-arg routines like Frun_hook_with_args and
1279 Fformat.
587a49ab
GM
1280 (back_to_previous_visible_line_start)
1281 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
1282 fixed-arg routines like Fget_char_property and Fmake_string.
1283 (reconsider_clip_changes): Use XINT when comparing integer lisp
1284 objects, or passing them as int arguments.
587a49ab
GM
1285 (mark_window_display_accurate, insert_left_trunc_glyphs)
1286 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
1287 storing or passing integer values as lisp objects.
1288 (set_cursor_from_row, highlight_trailing_whitespace): Use
1289 INTEGERP, not implicit test against zero, for glyph object.
1290 (try_window_id): Don't use make_number when we want an int value.
1291
1292 * xfaces.c (xlfd_symbolic_value): Make last argument a
1293 Lisp_Object, to be consistent with callers.
1294 (Fbitmap_spec_p): Use XINT to get numeric value of height.
1295 (lface_hash): Apply XFASTINT to lisp values before folding in.
1296
1297 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
1298 fill in window width and height. Pass an int, not a lisp object,
1299 as first arg to Finsert.
1300
6e7b2457
GM
13012000-04-01 Gerd Moellmann <gerd@gnu.org>
1302
610d841e
GM
1303 * xfaces.c (realize_basic_faces): Block input while realizing
1304 the faces.
1305
6e7b2457
GM
1306 * keyboard.c (lispy_mouse_names): Add additional mouse names.
1307
1308 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
1309
aa110c0c
GM
13102000-03-31 Gerd Moellmann <gerd@gnu.org>
1311
1312 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 1313 or ASCII, handle case that per-char metric is null.
aa110c0c 1314
8801a864
KR
13152000-03-30 Ken Raeburn <raeburn@gnu.org>
1316
c6129d7e
KR
1317 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
1318
8801a864
KR
1319 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
1320 XSUBR, XBUFFER): Verify correct object type before returning
1321 pointer, using eassert.
1322 * frame.h (XFRAME): Likewise.
1323
1324 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
1325 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
1326 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
1327 type.
1328 * data.c (set_internal): Likewise.
1329 * dispextern.h (WINDOW_WANTS_MODELINE_P,
1330 WINDOW_WANTS_HEADER_LINE_P): Likewise.
1331 * fileio.c (auto_save_1): Likewise.
1332 * insdel.c (check_markers): Likewise.
1333 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
1334 * undo.c (record_insert): Likewise.
1335 * vmsproc.c (child_sig): Likewise.
1336 * window.c (unshow_buffer, window_loop): Likewise.
1337 * xterm.c (x_erase_phys_cursor): Likewise.
1338
8e7af858
GM
13392000-03-30 Gerd Moellmann <gerd@gnu.org>
1340
1341 * xfns.c (free_image_cache): Free the cache structure itself
1342 last, after all its members have been freed.
1343
1344 * lisp.h (xstrdup): Add prototype.
1345
1346 * alloc.c (xstrdup): Moved here from xfaces.c.
1347 (allocating_for_lisp): Variable removed.
1348 (lisp_malloc): Block input around the calls to malloc and
1349 mem_insert.
1350
1351 * xfaces.c (realize_tty_face): Use find_symbol_value instead
1352 of Fsymbol_value.
1353 (xstrdup): Moved to alloc.c.
1354
e0b8c689
KR
13552000-03-29 Ken Raeburn <raeburn@gnu.org>
1356
b96f9fb7
KR
1357 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
1358
1359 * emacs.c (main): Fix sense of no-loadup test.
1360
e0b8c689
KR
1361 * config.in (ENABLE_CHECKING): Undef.
1362
1363 * lisp.h (struct interval): Replace "parent" field with a union of
1364 interval pointer and Lisp_Object; add new bitfield to use as
1365 discriminant. Change other flag fields to bitfields.
1366 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
1367 is defined and the supplied test fails, print a message and
1368 abort.
1369 (eassert): New macro. Use CHECK to provide an assert-like
1370 facility.
1371
1372 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
1373 pointers; abort if the value looks like a lisp object.
1374 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
1375 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
1376 Modify for new interval parent definition.
1377
1378 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
1379 UNMARK_BALANCE_INTERVALS): Update references that need an
1380 addressable lisp object in the interval structure.
1381 (die): New function.
1382 (suppress_checking): New variable.
1383
1384 * intervals.c (interval_start_pos): Just return 0 if there's no
1385 parent object.
1386
f83c5440
GM
13872000-03-29 Gerd Moellmann <gerd@gnu.org>
1388
1389 * lread.c (read1): Accept `.' (period) as symbol start like in CL
1390 and earlier Emacs versions.
1391
1392 * keyboard.c (Ftop_level): Cancel busy-cursor.
1393
1394 * eval.c (call_debugger): Cancel busy-cursor.
1395
fdce64ff
KH
13962000-03-29 Kenichi Handa <handa@etl.go.jp>
1397
1398 * search.c (Freplace_match): Adjust multibyteness of the current
1399 buffer and NEWTEXT. Free allocated memory before signaling an
1400 error.
1401
f6a3f532
SM
14022000-03-28 Stefan Monnier <monnier@cs.yale.edu>
1403
1404 * regex.c (analyse_first): New function obtained by ripping out most
1405 of re_compile_fastmap and generalizing it a little bit so that it
1406 can also just return whether a given (sub)pattern can match the empty
1407 string or not.
1408 (regex_compile): Use `analyse_first' to decide whether the loop-check
1409 needs to be done or not for *, +, *? and +? (the loop check is costly
1410 for non-greedy repetition).
1411 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
1412
e9b309ac
DL
14132000-03-28 Dave Love <fx@gnu.org>
1414
bb15bd9a
DL
1415 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
1416 alpha.
1417
e9b309ac
DL
1418 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
1419
ed0767d8
SM
14202000-03-27 Stefan Monnier <monnier@cs.yale.edu>
1421
1422 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
1423 an expression.
1424 (enum re_opcode_t): Update description of succeed_n.
1425 (PATFETCH): Always define.
1426 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
1427 operators, char classes, shy-groups and intervals).
1428 Optimize special cases of intervals so as to only use succeed_n and
1429 jump_n when really needed.
1430 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
1431 that we don't have to handle the special cases any more.
1432 Simplify on_failure_jump handling as well.
1433
e11e7e46
JR
14342000-03-28 Jason Rumney <jasonr@gnu.org>
1435
1436 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
1437
88faab89
GM
14382000-03-27 Gerd Moellmann <gerd@gnu.org>
1439
182ff242
GM
1440 * s/freebsd.h (GC_SETJMP_WORKS): Define.
1441
1442 * s/msdos.h (GC_SETJMP_WORKS): Define.
1443
1444 * alloc.c (mark_maybe_object): New function.
1445 (mark_memory): Use it.
1446 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
1447 (setjmp_tested_p, longjmp_done): New variables.
1448 (test_setjmp): New function.
1449 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
1450 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
1451
c1005d06
GM
1452 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
1453 to DEC_TEXT_POS and INC_TEXT_POS.
1454
1455 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
1456 with parameter MULTIBYTE_P.
1457
1458 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
1459 MULTIBYTE_P.
1460
7439e5b9 1461 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
1462 buffers because it looks for multibyte character byte sequences
1463 which don't exist in unibyte text.
7439e5b9 1464
d9c545da
GM
1465 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
1466
11fd416e 1467 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
1468 [DEBUG_X_COLORS]: New functions.
1469 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
1470
1471 * xfns.c (x_set_cursor_color): Get color reference counts right.
1472
1473 * xterm.c (x_copy_color): New function.
1474 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
1475
1476 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
1477 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
1478 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
1479 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
1480 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
1481 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
1482 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
1483 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
1484 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
1485 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
1486
11fd416e
GM
1487 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
1488 names for handling per-buffer variables.
d9c545da
GM
1489
1490 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
1491 instead of MAX_BUFFER_LOCAL_VARS.
1492 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
1493
1494 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
1495
88faab89
GM
1496 * xfns.c (x_specified_cursor_type): New function.
1497 (x_set_cursor_type): Use it.
1498
1499 * buffer.h (struct buffer): Add cursor_type.
1500
d80f42b7
SM
15012000-03-26 Stefan Monnier <monnier@cs.yale.edu>
1502
1503 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
1504 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
1505 opcode.
d80f42b7
SM
1506 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
1507 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
1508 executing it as well as when popping it off the stack to find infinite
1509 loops in non-greedy repetition operators.
1510
89e80928
GM
15112000-03-26 Gerd Moellmann <gerd@gnu.org>
1512
3d4ff2dd
GM
1513 * doc.c (Qfunction_documentation): New variable.
1514 (syms_of_doc): Initialize Qfunction_documentation.
1515 (Fdocumentation): If FUNCTION is a symbol with non-nil
1516 `function-documentation' property, return a documentation derived
1517 from that.
1518
bd96bd79
GM
1519 * buffer.c (syms_of_buffer): Add default-cursor-type.
1520 (init_buffer_once): Don't let cursor_type have a local value
1521 in every buffer.
1522
19d1bc27
GM
1523 * xterm.c (x_display_and_set_cursor): Choose cursor depending
1524 on buffer-local value of cursor_type.
1525 (x_draw_bar_cursor): Add parameter WIDTH.
1526
1527 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
1528 (init_buffer_once): Set default cursor_type value to t.
1529 Mark cursor_type as local everywhere.
1530 (syms_of_buffer): New per-buffer variable cursor-type.
1531
89e80928
GM
1532 * buffer.h (struct buffer): Remove member local_var_flags,
1533 add local_flags.
1534 (MAX_BUFFER_LOCAL_VARS): New macro.
1535 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
1536 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
1537 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
1538 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
1539
1540 * print.c (print_object): Use new macros for per-buffer
1541 variables.
1542
1543 * category.c (Fset_category_table): Use new macros for per-buffer
1544 variables.
1545
1546 * buffer.c (buffer_permanent_local_flags): Make a char array.
1547 (max_buffer_local_idx): New variable.
1548 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
1549 for new handling of per-buffer variables.
1550 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
1551 (init_buffer_once): Initialize per-buffer vars differently.
1552 Set max_buffer_local_idx.
1553
1554 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
1555 variables.
1556
1557 * lread.c (defvar_per_buffer): Use new macros for per-buffer
1558 variables.
1559
1560 * data.c (do_symval_forwarding, store_symval_forwarding)
1561 (find_symbol_value, set_internal, default_value, Fset_default)
1562 (Fkill_local_variable, Flocal_variable_p): Use new macros for
1563 per-buffer variables.
1564
1565 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
1566
9a0dd3dc
GM
15672000-03-24 Gerd Moellmann <gerd@gnu.org>
1568
b68c375f
GM
1569 * xterm.c (x_term_init): Unblock input around call1 of
1570 Qvendor_specific_keysyms.
1571
9a0dd3dc
GM
1572 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
1573 (find_defun_start): Consider an open parenthesis in column 0
1574 a defun start only if open_paren_in_column_0_is_defun_start is set.
1575 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
1576
7973e637
SM
15772000-03-24 Stefan Monnier <monnier@cs.yale.edu>
1578
1579 * eval.c (Fautoload): Add entry in load-history (if after dump).
1580 * lread.c (load-history): Update docstring.
1581
39210e90
GM
15822000-03-24 Gerd Moellmann <gerd@gnu.org>
1583
1584 * indent.c (Fvertical_motion): Always use the current buffer.
1585 Temporarily change the window's buffer, if necessary.
1586
72db3ab5
GM
15872000-03-23 Gerd Moellmann <gerd@gnu.org>
1588
1589 * xterm.c (fast_find_position): Make sure not to consider rows
1590 not visible in the window.
1591
990b2375
SM
15922000-03-22 Stefan Monnier <monnier@cs.yale.edu>
1593
1594 * regex.c (enum syntaxcode): Provide default for non-Emacs.
1595 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
1596
ff4df011
JR
15972000-03-22 Jason Rumney <jasonr@gnu.org>
1598
1599 * w32menu.c (single_submenu): Set help string to NULL if none.
1600 (w32_menu_show): Set help string correctly.
1601 (add-menu-item): Set help string in MIIM_DATA for menu item.
1602 Load SetMenuItemInfoA explicitly.
1603 (w32_menu_display_help): New function.
1604
1605 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
1606 (QCdata): Moved to xdisp.c.
1607
1608 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
1609 (Vw32_charset_to_codepage_alist): Removed.
1610 (Vw32_charset_info_alist): New variable.
1611 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
1612 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
1613 greek, hebrew, thai, johab, mac, unicode]): New symbols.
1614 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
1615 with TODO comment.
1616 (w32_codepage_for_font): Use Vw32_charset_info_alist.
1617 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
1618 Define Vw32_charset_info_alist and w32_charset symbols.
1619
16202000-03-22 Jason Rumney <jasonr@gnu.org>
1621
1622 * makefile.nt (w32bdf.obj): Update dependencies.
1623
1624 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
1625
1626 * w32fns.c: Include fontset.h after dispextern.h.
1627 (Fx_create_frame): Do not create fontset.
1628 (w32_load_system_font): Doc fix.
1629 (Fx_close_connection): Free full_name if it is not shared.
1630
1631 * w32term.c: Include fontset.h after dispextern.h.
1632 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
1633 updated.
1634 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
1635 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
1636 (w32_font_is_double_byte): New function, needs body.
1637 (x_append_glyph): Set glyph->glyph_not_available_p.
1638 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
1639 it->charset. If it->multibyte_p is zero and it->c is a multibyte
1640 character, convert it to a unibyte character.
1641 (struct glyph_string): Delete member `charset'.
1642 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
1643 calculating it is found.
1644 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
1645 the case that per char metric is not available correctly.
1646 (x_fill_glyph_string): Handle the case that the specific glyph is
1647 not available correctly.
1648 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
1649 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
1650 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
1651 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
1652 fontset. Don't call FS_LOAD_FONT.
1653
439d5cb4
KR
16542000-03-22 Ken Raeburn <raeburn@gnu.org>
1655
1656 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
1657 (INT_LISPLIKE): New macro.
1658 (NULL_INTERVAL_P): Use it.
1659 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
1660 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
1661 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
1662
1663 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
1664 explicit references to "parent" field of struct interval and
1665 associated unclean type conversions.
1666 * intervals.c (create_root_interval, root_interval, rotate_right,
1667 rotate_left, balance_possible_root_interval, split_interval_right,
1668 split_interval_left, interval_start_pos, find_interval,
1669 next_interval, previous_interval, update_interval,
1670 adjust_intervals_for_insertion, delete_node, delete_interval,
1671 adjust_intervals_for_deletion, merge_interval_right,
1672 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
1673 copy_intervals_to_string): Likewise.
1674 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
1675 Likewise.
1676 * syntax.c (update_syntax_table): Likewise.
1677
1678 * intervals.c (reproduce_tree_obj): New function, like
1679 reproduce_tree but takes a Lisp_Object for the parent. Declare
1680 with prototype.
1681 (graft_intervals_into_buffer): Use it when appropriate.
1682 (reproduce_tree): Declare with prototype.
1683 (balance_possible_root_interval): Check that the parent is a lisp
1684 object before trying to examine its type.
1685
ee1c5b21
GM
16862000-03-22 Gerd Moellmann <gerd@gnu.org>
1687
1688 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
1689 as strings only if both are known to be strings.
1690
1691 * s/openbsd.h (LIBS_TERMCAP): Undef.
1692
1fb352e0
SM
16932000-03-21 Stefan Monnier <monnier@cs.yale.edu>
1694
1695 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
1696 definitions for non-Emacs compilation.
1697 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
1698 outside of `#ifdef emacs'.
1699 (print_partial_compiled_pattern): Update.
1700 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
1701 (re_compile_fastmap): Merge handling of charset and charset_not (for
1702 emacs and non-emacs compilation as well).
1703 Similarly for (not)categoryspec and (not)syntaxspec.
1704 Don't use the fastmap when reaching `anychar' since the added
1705 complexity is not justified.
1706 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
1707 and (not)syntaxspec. Merge (not)categoryspec.
1708
fdaa1f77
KH
17092000-03-22 Kenichi Handa <handa@etl.go.jp>
1710
ff1a0d8e
KH
1711 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
1712 FACE_FOR_CHAR): Define them differently for the configuration of
1713 --without-x.
fdaa1f77 1714
d152fb46
DL
17152000-03-21 Dave Love <fx@gnu.org>
1716
1717 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
1718 doc string.
1719
d2cafc8c
GM
17202000-03-21 Gerd Moellmann <gerd@gnu.org>
1721
1722 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
1723 (lface_fully_specified_p): Don't check contents of
1724 LFACE_FONT_INDEX because that attribute is optional.
1725 (realize_x_face): Remove now unwarranted xassert.
1726
9111d4b5
KH
17272000-03-21 Kenichi HANDA <handa@etl.go.jp>
1728
1729 The following changes are to make font selection based on
1730 characters, not charset. In addition, they recover fontset
1731 facilities while utilizing the new font selection mechanism.
1732
6c4bfdc0
KH
1733 * Makefile.in (fontset.o): Depend on dispextern.h.
1734
1735 * alloc.c (mark_face_cache): Don't mark face->registry.
1736
9111d4b5
KH
1737 * dispextern.h (struct glyph): New member glyph_not_available_p.
1738 Use 22 bits for face_id.
1739 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
1740 (struct face): Delete member registry, new member ascii_face.
1741 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
1742 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
1743 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
1744 (struct it): Delete member charset, new member
1745 glyph_not_available_p.
1746
1747 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
1748 (struct fontset_info, struct fontset_data): Structs removed.
1749 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
1750 Vglobale_fontset_alist, font_idx_temp): Externs removed.
1751 (fs_load_font, fs_query_fontset): Adjusted for new argument.
1752 (fs_free_face_fontset, fontset_font_pattern,
1753 face_suitable_for_char_p, face_for_char,
1754 make_fontset_for_ascii_face): Extern them.
1755 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
1756 (FS_LOAD_FACE_FONT): New macro.
1757
1758 * fontset.c: All codes rewritten or adjusted for the change of
1759 fontset implementation. Now fontset is represented by char table.
1760 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
1761 removed.
1762 (my_strcasecmp): Function removed.
1763 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
1764 variables.
1765 (AREF, ASIZE): New macros.
1766 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
1767 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
1768 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
1769 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
1770 fontset_id_valid_p, font_family_registry, fontset_name,
1771 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
1772 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
1773 New functions.
1774 (fs_load_font): New arg FACE. Caller changed.
1775 (fs_query_fontset): Argument changed. Caller changed.
1776 (Fquery_fontset): call fs_query_fontset.
1777 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
1778 Functions removed.
1779 (clear_fontset_elements, check_registry_encoding,
1780 check_fontset_name): New functions.
1781 (syms_of_fontset): Set char-table-extra-slots property of fontset
1782 to 3. Staticpro and initialize Vfontset_table and
1783 Vdefault_fontset. Defsubr fontset_font and fontset_list.
1784
1785 * frame.h (struct frame): Member `fontset_data' removed.
1786 (FRAME_FONTSET_DATA): Macro removed.
1787
1788 * frame.c (make_frame): Don't allocate f->fontset_data.
1789 (Fdelete_frame): Don't free f->fontset_data.
1790
6c4bfdc0
KH
1791 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
1792
9111d4b5
KH
1793 * xdisp.c (charset_at_position): Function removed.
1794 (init_iterator): Don't set member charset of struct `it'.
1795 (handle_face_prop, reseat_to_string, set_iterator_to_next,
1796 next_element_from_display_vector, insert_left_trunc_glyphs):
1797 Likewise.
1798 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
1799 FACE_FOR_CHARSET.
1800 (get_next_display_element, append_space,
1801 extend_face_to_end_of_line): Likewise.
1802
1803 * xfaces.c (Qx_charset_registry, Vface_default_registry):
1804 Variables removed.
1805 (clear_font_table, frame_update_line_height, load_face_font):
1806 Adjusted for the change of fontset implementation.
1807 (load_face_fontset_font): Function removed.
1808 (pixel_point_size): New function.
1809 (font_list): Argument type changed. Caller changed.
1810 (LFACE_FONT): New macro.
1811 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
1812 (set_lface_from_font_name): Type of arg FONTNAME is changed to
1813 Lisp_Object. Determine the font name by actually loading a font
1814 by the specified pattern. Set LFACE_FONT (lface) to the specified
1815 pattern. Even if a font is not found, don't try alternatives.
1816 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
1817 (set_font_frame_param): If `font' is specified in lface, use it.
1818 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
1819 (lface_same_font_attributes_p): Likewise.
1820 (make_realized_face): Arguent changed. Caller changed. Set
1821 face->ascii_face to face itself.
1822 (free_realized_face): Free face->fontset if face is for ASCII.
1823 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
1824 deduce_unibyte_registry, x_charset_registry): Functions removed.
1825 (free_realized_multibyte_face): New function.
1826 (lookup_face, lookup_named_face, lookup_derived_face): Argument
1827 changed. Caller changed.
1828 (try_font_list): Argument type changed.
1829 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
1830 (choose_face_font): Argument changed. Handle fontset properly.
1831 (choose_face_fontset_font): Function removed.
1832 (realize_default_face, realize_named_face): Don't remove the
1833 former face here.
1834 (realize_face): Argument changed. Caller changed. Remove face
1835 with the arg former_face_id in advance. Load font for the new
1836 face.
1837 (realize_x_face): Argument changed. Caller changed. For a
1838 multibyte character, share fontset with base_face. For a single
1839 byte character, make a new realized fontset. Don't load a font
1840 here.
1841 (realize_tty_face): Argument changed. Caller changed.
1842 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
1843 (face_at_buffer_position): Don't check multibyte_p for returning
1844 DEFAULT_FACE_ID.
1845 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
1846 FACE_SUITABLE_FOR_CHARSET_P.
1847 (syms_of_xfaces): Remove code for Qx_charset_registry and
1848 Vface_default_registry.
1849
6c4bfdc0
KH
1850 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
1851 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
1852 (x_per_char_metric): Don't try FONT->default_char. Even if
1853 pcm->width is zero, glyph bits may exist.
1854 (x_encode_char): Always initialize char2b->byte1.
1855 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
1856 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
1857 changed.
1858 (x_append_glyph): Set glyph->glyph_not_available_p.
1859 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
1860 it->charset. Handle the case that per char metric is not
1861 available. If it->multibyte_p is zero and it->c is a multibyte
1862 character, convert it to a unibyte character.
1863 (struct glyph_string): Delete member `charset'.
1864 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
1865 the case that per char metric is not available correctly.
1866 (x_fill_glyph_string): Handle the case that the specific glyph is
1867 not available correctly.
1868 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
1869 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
1870 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
1871 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
1872 fontset. Don't call FS_LOAD_FONT.
1873
1874 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
1875 (x_create_tip_frame): Likewise.
1876 (Fx_close_connection): Free full_name of font_info.
1877
1878 * fns.c (optimize_sub_char_table): New function.
1879 (Foptimize_char_table): New function.
1880 (syms_of_fns): Defsubr Soptimize_char_table.
1881
b33dd3b0
GM
18822000-03-20 Gerd Moellmann <gerd@gnu.org>
1883
1884 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
1885 only if buffer is displayed in some window.
1886
1887 * xdisp.c (handle_single_display_prop): Initialize local `value'.
1888 (try_window_reusing_current_matrix): Don't call scroll run
1889 function if run's current and desired position are the same;
1890 this prevents cursor flickering.
1891
4e8a9132
SM
18922000-03-19 Stefan Monnier <monnier@cs.yale.edu>
1893
1894 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
1895
1896 * regex.c (RE_STRING_CHAR): New macro.
1897 (GET_CHAR_AFER_2): Remove.
1898 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
1899 (enum re_opcode_t): Remove on_failure_jump_exclusive.
1900 (print_partial_compiled_pattern, re_compile_fastmap)
1901 (re_match_2_internal): Remove on_failure_jump_exclusive.
1902 (regex_compile): Turn optimizable P+ loops into PP*, so that the
1903 optimization only need to work for * (ie. can use of_keep_string_jump).
1904 Remove the special case for .*\n since it is now covered by the general
1905 optimization.
1906 (re_search_2): Don't bother with `room'.
1907 (skip_one_char): New function.
1908 (skip_noops): Simplify since `memory' is not needed any more.
1909 (mutually_exclusive_p): Restructure slightly to use `switch' and
1910 add handling for "all" remaining cases.
1911 (re_match_2_internal): Change on_failure_jump_smart to use
1912 on_failure_keep_string_jump (and redirect the end-of-loop jump)
1913 rather than on_failure_jump_exclusive.
1914
2136fdd4
GM
19152000-03-19 Gerd Moellmann <gerd@gnu.org>
1916
1917 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
1918 number of bits per RGB because it's everywhere used as the depth
1919 of the visual.
1920
1921 * term.c (calculate_costs): Remove code dealing with X frames.
1922
e53ae11c
RS
19232000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1924
1925 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
1926
d7b511c4
GM
19272000-03-18 Gerd Moellmann <gerd@gnu.org>
1928
1929 * lread.c (read_integer): Unread the last char not consumed.
1930
16b5d424
GM
19312000-03-17 Gerd Moellmann <gerd@gnu.org>
1932
1933 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 1934 which are in the process of being deleted.
16b5d424 1935
1fa28578
GM
19362000-03-16 Gerd Moellmann <gerd@gnu.org>
1937
83488cce
GM
1938 * Makefile.in (mostlyclean): Add `*.core'.
1939 (clean): Add `bootstrap-emacs'.
1940
1fa28578
GM
1941 * lread.c (read_integer): New function.
1942 (read1): Support read syntax #o, #x, #b, #r.
1943
99633e97
SM
19442000-03-15 Stefan Monnier <monnier@cs.yale.edu>
1945
1fa28578
GM
1946 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
1947 make sure POINTER_TO_OFFSET gives the same value before and after
1948 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
1949 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
1950 (debug): Now only active if > 0 rather than if != 0.
1951 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
1952 (print_partial_compiled_pattern): Add missing `succeed' case. Use
1953 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
1954 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
1955 (store_op1, store_op2, insert_op1, insert_op2)
1956 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
1957 (group_in_compile_stack): Move to after its arg's types are
1958 declared and add a prototype.
99633e97 1959 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
1960 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
1961 wrapper.
99633e97 1962 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
1963 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
1964 indentation of the greedy-op and shy-group code.
99633e97
SM
1965 (at_(beg|end)line_loc_p): Fix argument's types.
1966 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
1967 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
1968 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
1969 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
1970 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
1971 QUIT unconditionally.
99633e97 1972
699238d9
GM
19732000-03-15 Gerd Moellmann <gerd@gnu.org>
1974
1975 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
1976 a sole completion.
1977
1978 * process.c (send_process): Add a hint that the function
1979 can call Lisp code to its comment.
1980
1981 * lread.c (load_dangerous_libraries): New variable.
1982 (Vbytecomp_version_regexp): New variable.
1983 (safe_to_load_p): New function.
1984 (Fload): Handle files not compiled with Emacs specially.
1985 (syms_of_lread): New Lisp variable load-dangerous-libraries.
1986
34e23e5a
GM
19872000-03-14 Gerd Moellmann <gerd@gnu.org>
1988
9c763cca
GM
1989 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
1990
1991 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
1992 support functions only if HAVE_X11R6_XIM is defined.
1993 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
1994
1995 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
1996
1997 * xfns.c (X_I18N_INHIBITED): Don't define.
1998 (create_frame_xic): Remove conditional compilation on
1999 X_I18N_INHIBITED.
2000 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2001
2002 * config.in (HAVE_X_I18N): Moved here from xterm.h.
2003 (HAVE_X11R6_XIM): Define.
2004
2005 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
2006
34e23e5a
GM
2007 * xterm.c (x_term_init): Add support for X resource `synchronous'.
2008 If set, call XSynchronize.
2009
66f0296e
SM
20102000-03-13 Stefan Monnier <monnier@cs.yale.edu>
2011
34e23e5a
GM
2012 * regex.c: Declare a new type `re_char' used throughout the code
2013 for the string char type. It's `const unsigned char' to match the
2014 rest of Emacs. Consistently make sure all pointers to strings use
2015 it and make sure all pointers into the pattern use `unsigned
2016 char'.
66f0296e 2017 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
2018 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
2019 code duplication.
66f0296e
SM
2020
2021 * charset.h (GET_CHAR_AFTER_2): Remove.
2022 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2023
854a025c
KR
20242000-03-12 Ken Raeburn <raeburn@gnu.org>
2025
2026 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
2027 variable before the invocation of YMF_PASS_LDFLAGS, in case both
2028 of them try to use backquotes.
2029
b9d2c7e2
DL
20302000-03-12 Dave Love <fx@gnu.org>
2031
2032 * unexelf.c: Restore changes of 1999-10-19.
2033 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
2034 fix its type and alignment; copy it from current process.
2035
5e5dff44
GM
20362000-03-12 Gerd Moellmann <gerd@gnu.org>
2037
9b2f3c38
GM
2038 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
2039 has been found. Fix bug not computing timer's predecessor.
2040
9172b88d
GM
2041 * fileio.c (Fread_file_name): Handle case that DIR contains a
2042 file name.
2043
e1cff360
GM
2044 * window.c (Fsave_window_excursion): Doc fix.
2045
5e5dff44
GM
2046 * xfns.c (x_defined_color): Rewritten to use
2047 x_allocate_nearest_color.
2048
e411ce4b
EZ
20492000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2050
2051 * msdos.c (vga_installed): New function, code moved from
2052 dos_set_window_size.
2053 (Qbar, Qcursor_type, outside_cursor): New variables.
2054 (syms_of_msdos): Intern and staticpro them.
2055 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
2056 shape used outside Emacs when called for the first time.
2057 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
2058 cursor shape used outside Emacs.
2059 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
2060 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
2061 type has changed.
2062 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
2063 parameters specify the cursor. Make qreverse a global
2064 variable (renamed to Qreverse).
2065
80460654
GM
20662000-03-09 Gerd Moellmann <gerd@gnu.org>
2067
2068 * fns.c (Fy_or_n_p): Cancel busy-cursor.
2069
95cd4c40
SM
20702000-03-08 Stefan Monnier <monnier@cs.yale.edu>
2071
2072 This is a big redesign of failure-stack and register handling, prompted
2073 by bugs revealed when trying to add shy-groups. Overall, what happened
2074 is that loops are now structured a little differently, groups can be
2075 shy and the code is a little simpler.
2076
2077 * regex.h: Update the copyright.
2078 (RE_SHY_GROUPS): New value.
2079 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
2080 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2081
80460654
GM
2082 * regex.c (enum re_opcode_t): Remove jump_past_alt,
2083 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
2084 on_failure_jump_(exclusive, loop and smart). Also fix the comment
2085 for (start|stop)_memory since they now only take one argument (the
2086 second has becomes unnecessary).
2087 (print_partial_compiled_pattern): Adjust for changes in
2088 re_opcode_t.
2089 (print_compiled_pattern): Use %ld to printf long ints and flush to
2090 make debugging a little easier.
95cd4c40
SM
2091 (union fail_stack_elt): Make the integer unsigned.
2092 (struct fail_stack_type): Add a `frame' element.
2093 (INIT_FAIL_STACK): Init `frame' as well.
2094 (POP_PATTERN_OP): New macro for re_compile_fastmap.
2095 (DEBUG_PUSH, DEBUG_POP): Remove.
2096 (NUM_REG_ITEMS): Remove.
2097 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
2098 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
2099 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 2100 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
2101 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
2102 macros.
2103 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
2104 address pushed is not the destination of the jump but the source
2105 of it instead.
95cd4c40
SM
2106 (NUM_FAILURE_ITEMS): Remove.
2107 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
2108 registers before the actual failure point). Don't hardcode any
2109 meaning for str==NULL anymore.
95cd4c40 2110 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
2111 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
2112 Remove.
95cd4c40
SM
2113 (REG_UNSET_VALUE): Use NULL (why not?).
2114 (compile_range): Remove declaration since it doesn't exist.
2115 (struct compile_stack_elt_t): Remove inner_group_offset.
2116 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
2117 (regex_grow_registers): Remove dead code.
2118 (FIXUP_ALT_JUMP): New macro.
80460654
GM
2119 (regex_compile): Add shy-groups Change loops to use
2120 on_failure_jump_smart&jump instead of
2121 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
2122 initial (dummy_failure_)jump. Remove c1_base (looks like unused
2123 variable to me). Use `jump' instead of `jump_past_alt' and don't
2124 bother with push_dummy_failure in alternatives since it is now
2125 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
2126 emacs' for (re)allocating the stack.
2127 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
2128 from loop when bufp->can_be_null rather than jumping to `done'.
2129 Avoid jumping backwards so as to ensure termination. Use
2130 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
2131 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 2132 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
2133 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
2134 improve mutually_exclusive_p to handle ".+\n".
2135 (lowest_active_reg, highest_active_reg,
2136 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
2137 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
2138 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
2139 variables. Push register (in `start_memory') on the stack rather
2140 than storing it in old_reg(start|end). Remove the cycle detection
2141 from `stop_memory', replaced by the use of on_failure_jump_loop
2142 for greedy loops. Add code for the new on_failure_jump_<foo>.
2143 Remove ad-hoc code in `on_failure_jump' to push more registers in
2144 the case of a loop. Take out code from `maybe_pop_jump' into
2145 separate functions and adapt it to the semantics of
2146 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
2147 and push_dummy_failure. Remove dummy_failure handling and
2148 handling of `failures to jump to on_failure_jump' (this last one
2149 was already dead code, it seems).
2150 (group_match_null_string_p, alt_match_null_string_p)
2151 (common_op_match_null_string_p): Remove.
95cd4c40 2152
7397acc4
DL
21532000-03-08 Dave Love <fx@gnu.org>
2154
2155 * config.in: Don't depend on __STDC__ for volatile.
2156 Add POINTER_TYPE, PTR, PROTOTYPES.
2157
2158 * hftctl.c, strftime.c: Use PROTOTYPES.
2159 * eval.c (find_handler_clause): Likewise.
2160
2161 * mem-limits.h: Use POINTER_TYPE.
2162
2163 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
2164 (memory_warnings): Declare using POINTER_TYPE.
2165
5e91ff9e
GM
21662000-03-08 Gerd Moellmann <gerd@gnu.org>
2167
feab4fba
GM
2168 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
2169
25edb08f
GM
2170 * xdisp.c (display_echo_area): Temporarily inhibit garbage
2171 collection.
2172
5e91ff9e
GM
2173 * xfns.c: Remove obsolete code in #if 0.
2174 (Fx_focus_frame): New function.
2175
a735b7e1
KH
21762000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2177
2178 * coding.c (coding_category_name): Add coding-category-utf-8,
2179 coding-category-utf-16-be, coding-category-utf-16-le.
2180 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
2181 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
2182 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
2183 (detect_coding_utf_8): New function.
2184 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
2185 UTF_16_LOW_SURROGATE_P): New macros.
2186 (detect_coding_utf_16): New function
2187 (detect_coding_mask): When priorities are specified, skip any
2188 categories that have `nil' coding-system. Fix bug of returning
2189 wrong mask when PRIORITIES is specified and detect_coding_XXX()
2190 returns a mask not set in PRIORITIES.
2191 (detect_eol_type_in_2_octet_form): New function.
2192 (detect_eol): selects detect_eol_type_XXX to call according to
2193 cooding->category_idx.
2194 (detect_coding_system): Remove `nil' coding-system in the result.
2195 (Fupdate_coding_systems_internal): Update all coding-categories.
2196
2197 * coding.h (CODING_CATEGORY_IDX_UTF_8,
2198 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
2199 macros.
2200 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
2201 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
2202 CODING_CATEGORY_IDX_UTF_16_LE.
2203 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
2204 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
2205 (CODING_CATEGORY_MASK_ANY): Include the above macros.
2206 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2207
9994cc69
GM
22082000-03-07 Gerd Moellmann <gerd@gnu.org>
2209
e9b4e5ff
GM
2210 * doc.c (Fdocumentation_property): If value is not a string,
2211 and doesn't refer to etc/DOC, evaluate it to obtain a string.
2212
f7daf1e1
GM
2213 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
2214 close the display with XtCloseDisplay. This caused a bus error
2215 on OpenWindows.
2216
9994cc69
GM
2217 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
2218 complete but not unique.
2219
4336c705
GM
22202000-03-06 Gerd Moellmann <gerd@gnu.org>
2221
18bb0684
GM
2222 * process.c (send_process): Remove local variable `procname' that
2223 might become invalid when a GC happens. Instead, access the
2224 process name slot directly.
2225
4336c705
GM
2226 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
2227 orig_height if set.
2228
2229 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
2230 orig_height if set.
2231
515d0d0e
EZ
22322000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2233
2234 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
2235 glyph matrices have been freed.
2236
100b3cbb
GM
22372000-03-05 Gerd Moellmann <gerd@gnu.org>
2238
50df5e5a 2239 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 2240 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
2241
2242 * xfns.c (QCdata): Moved to xdisp.c.
2243
2244 * xdisp.c (QCdata): Moved here from xfns.c.
2245 (syms_of_xdisp): Initialize QCdata.
2246
2247 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
2248
2249 * window.c (coordinates_in_window): Use
2250 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
2251 FRAME_INTERNAL_BORDER_WIDTH.
2252
100b3cbb 2253 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 2254 it is obviously invalid.
100b3cbb
GM
2255
2256 * xterm.c (x_term_init): Create a colormap if not using the
2257 default visual.
2258
2259 * xterm.h (select_visual): Change prototype.
2260
2261 * xfns.c (select_visual): Rewritten. Recognize user-specified
2262 visual classes.
2263 (visual_classes): New variable.
2264
64d739c4
GM
22652000-03-04 Gerd Moellmann <gerd@gnu.org>
2266
2267 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
2268 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
2269 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
2270 (x_decode_color): Don't handle allocation of white and black
2271 specially.
2272 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
2273 XtNcolormap resources.
2274 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
2275 (Fx_create_frame): Initialize color members of x_output structure.
2276 (xpm_load): Pass colormap to XPM lib.
2277
2278 * xfaces.c (x_free_colors): Access colormap of frame using
2279 FRAME_X_COLORMAP. Be paranoid about freeing black and white
2280 when default colormap is used.
2281
2282 * xterm.c (x_term_init): Set Colormap member of x_display_info
2283 structure. Copy colormap if resource `privateColormap' is
2284 specified (PseudoColor only).
2285 (x_setup_relief_color): Access colormap of frame using
2286 FRAME_X_COLORMAP.
2287
2288 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
2289 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
2290
c3cee013
JR
22912000-03-04 Jason Rumney <jasonr@gnu.org>
2292
2293 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
2294 other non-platform-specific equivalents.
64d739c4 2295 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
2296 specific functions and macros as their w32 equivalents where
2297 non-platform-specifics are not available.
2298 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
2299 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
2300 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
2301 (frame_update_line_height): Use macros to access f->output_data.
2302 (defined_color): Remove FIXME comments; fixed.
2303 (x_face_list_fonts, prepare_face_for_display): Put X specifics
2304 into #ifdef blocks. Add WINDOWSNT blocks.
2305 (Fx_list_fonts): Use macros for accessing font data.
2306 (set_lface_from_font_name): Different default fonts for X and
2307 WINDOWSNT.
2308 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
2309 scalable for backward compatibility.
64d739c4 2310 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
2311 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
2312
64d739c4 2313 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
2314 syms_of_w32faces.
2315
2316 * makefile.nt (w32faces.obj): Remove.
2317 (xfaces.obj): Add.
2318
807cc41c
JR
23192000-03-03 Jason Rumney <jasonr@gnu.org>
2320
2321 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
2322 correct parameters.
2323
0007072a
KR
23242000-03-03 Ken Raeburn <raeburn@gnu.org>
2325
2326 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
2327 standard ELF definitions here if the system header does not.
2328
71a6ba55
GM
23292000-03-03 Gerd Moellmann <gerd@gnu.org>
2330
2331 * xterm.c (PER_CHAR_METRIC): Removed.
2332 (x_per_char_metric_1, x_default_char): New functions.
2333 (x_per_char_metric): If font's default char is invalid, return
2334 metrics of a suitably chosen usable default char.
2335 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
2336 char, replace occurrences of unprintable chars with a suitably
2337 chosen usable default char.
71a6ba55 2338
900fa1f1
GM
23392000-03-02 Gerd Moellmann <gerd@gnu.org>
2340
42f55fe0
GM
2341 * xterm.c (note_mouse_highlight): Return quickly if frame's
2342 glyph matrices have been freed.
2343
2344 * dispnew.c (free_glyphs): Block input while freeing matrices.
2345
900fa1f1
GM
2346 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
2347
2348 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
2349 x_free_colors.
2350
2351 * dispextern.h (x_free_colors): Add prototype.
2352
2353 * xfaces.c (x_free_colors): New function.
2354 (unload_color, free_face_colors): Use it.
2355
2f950292
EZ
23562000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2357
2358 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
2359
2360 * window.c [MSDOS]: Include msdos.h.
2361
54d04320
DL
23622000-03-02 Dave Love <fx@gnu.org>
2363
2364 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
2365
2366 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
2367 set C_OPTIMIZE_SWITCH for gcc.
2368
0ba93ac4
KH
23692000-03-02 Kenichi Handa <handa@etl.go.jp>
2370
2371 * coding.c (coding_save_composition): Be sure to allocate
2372 composition data area in coding even if there's no composition in
2373 the current run.
2374
a2bc11d4
JR
23752000-03-01 Jason Rumney <jasonr@gnu.org>
2376
2377 * w32term.c: Equivalent changes to those made to xterm.c on
2378 2000-02-25 and 2000-02-24.
2379
2380 * w32fns.c: Equivalent changes to those made to xfns.c on
2381 2000-02-25 and 2000-02-21.
2382
2383 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
2384 correct line-end convention is followed.
2385
2386 * w32menu.c [HAVE_BOXES]: Remove #undef.
2387 (single_keymap_panes): Remove code for simulating checkmarks.
2388 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
2389 Remove code for drawing simulated checkmarks.
2390 (w32_menu_show): make unibyte help string correctly.
2391 (add_menu_item): draw standard Windows checkmarks. Draw radio
2392 buttons as radio buttons if possible.
2393
72d19d75
GM
23942000-03-01 Gerd Moellmann <gerd@gnu.org>
2395
2df636f4
GM
2396 * sysdep.c (start_of_text): Don't define this function for NetBSD
2397 with ELF.
2398
2399 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2400 Don't define.
2401 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
2402 (LINKER): Don't undef if __NetBSD__ is defined.
2403
2404 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
2405
2406 * fileio.c [__NetBSD__]: Define `unix'.
2407
72d19d75
GM
2408 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
2409
ed4d0512
GM
24102000-02-29 Gerd Moellmann <gerd@gnu.org>
2411
50b1039f
GM
2412 * atimer.c (start_atimer): Don't abort when timers are stopped.
2413 (append_atimer_lists): New function.
2414 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
2415 arbitrary lists of stopped and running atimers.
2416
ed4d0512
GM
2417 * atimer.c (cancel_atimer): Handle canceling an atimer when
2418 some timers are stopped.
2419
2420 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
2421 after canceling it.
2422
2423 * fns.c (maybe_resize_hash_table): Handle case of new size
2424 coming out as being the same as old size.
2425
387023ee
JR
24262000-02-27 Jason Rumney <jasonr@gnu.org>
2427
2428 * makefile.nt: Add atimer.h to dependencies.
2429 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
2430 * w32console.c: Only disable window system features for dispextern.h
2431 (initialize_w32_display): Build a display info for the console.
2432 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
2433 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
2434 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
2435 as 2 button mice.
2436 * w32gui.h (struct W32FontStruct): Revert last change after change
2437 to xdisp.c.
2438 * w32menu.c (single_submenu): Set up help string.
2439 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
2440 (w32_dialog_show): Set up help string.
2441 * w32term.c (w32_display_info_for_display): Remove unused function.
2442 (w32_draw_bitmap): Use pre-built bitmaps.
2443 (w32_initialize_display_info): New function to initialize parts of
2444 display info that are common to both GUI and console frames.
2445 (w32_term_init): Use w32_initialize_display_info. Do not set
2446 Vw32_num_mouse_buttons here, as it is not called for console
2447 frames. Build bitmaps for indicating truncated lines etc.
2448 (x_delete_display): Destroy pre-built bitmaps.
2449 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
2450 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
2451
4516715a
DL
24522000-02-27 Dave Love <fx@gnu.org>
2453
2454 * lisp.h: Add a bunch of prototypes.
2455
171ca836
KH
24562000-02-26 Kenichi Handa <handa@etl.go.jp>
2457
2458 * keyboard.c (read_char): Set `usec' correctly.
2459
4013921d
KH
24602000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
2461
2462 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
2463 `lambda', set reg[RRR] to the map index.
2464 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
2465 reg[RRR] to 0. Otherwise, set it to -1.
2466
9244a058
GM
24672000-02-25 Gerd Moellmann <gerd@gnu.org>
2468
2df636f4 2469 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 2470
f43d79c1
GM
24712000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2472
2473 * fileio.c (Ffile_symlink_p): If result starts with a `/'
2474 and contains a `:', prepend `/:'.
2475
2476 * window.c (select_window_1): If selected_window is nil,
2477 don't "swap out" the buffer's point.
2478 (Fset_window_configuration): Set selected_window to nil
2479 before calling Fselect_window.
2480 (unshow_buffer): Don't set point in buffer from window's point
2481 if another more recently selected window also shows the buffer.
2482
bed0c171
GM
24832000-02-25 Gerd Moellmann <gerd@gnu.org>
2484
449c3c52
GM
2485 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
2486
f5b58615
GM
2487 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
2488 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
2489 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
2490 variables.
2491 (DEFAULT_BUSY_CURSOR_DELAY): New define.
2492 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
2493 (hide_busy_cursor): New functions.
2494 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
2495
2496 * minibuf.c (read_minibuf): Cancel busy-cursor.
2497
2498 * keyboard.c (command_loop_1): Call start_busy_cursor before
2499 Fcommand_execute and cancel_busy_cursor after it.
2500 (timer_check): Remove busy-cursor code.
2501 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
2502 cursor timer.
2503
2504 * process.c (wait_reading_process_input): Remove busy-cursor code.
2505
2506 * eval.c (Fsignal): Call cancel_busy_cursor instead of
2507 Fx_hide_busy_cursor.
2508
2509 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
2510 Remove prototyoes.
2511 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
2512
2513 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
2514
2515 * xterm.c (XTread_socket): Remove busy-cursor code.
2516
4eb8436f
GM
2517 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
2518 (build_frame_matrix_from_leaf_window): Put code handling
2519 glyph row's not being a slice of a frame row in #if 0.
2520 (sync_window_with_frame_matrix_rows): New function.
2521 (frame_row_to_window): New function.
2522 (mirror_line_dance): Handle copies between windows.
2523
3cb65b0e
GM
2524 * lread.c (Fload): Use `xfree' instead of `free'.
2525 (init_obarray): Use `xmalloc' instead of `malloc'.
2526
bed0c171
GM
2527 * window.c (Fset_window_buffer): Set WINDOW to the window
2528 after decoding.
2add4349
GM
2529 (coordinates_in_window): Take frame's internal border width
2530 into account.
bed0c171 2531
42088c12
GM
25322000-02-24 Gerd Moellmann <gerd@gnu.org>
2533
2534 * xterm.c (x_display_and_set_cursor): Display cursor of
2535 non-selected windows depending on the setting of
2536 cursor_in_non_selected_windows.
2537
2538 * xdisp.c (cursor_in_non_selected_windows): New variable.
2539 (syms_of_xdisp): DEFVAR_BOOL it.
2540
d1e103b2
GM
25412000-02-23 Gerd Moellmann <gerd@gnu.org>
2542
723e779c
GM
2543 * data.c (Fstring_to_number): If number is greater than what
2544 fits into an integer, return a float.
2545
d1e103b2
GM
2546 * eval.c (specbind): Remove references to
2547 keyword_symbols_constant_flag.
2548
2549 * data.c (keyword_symbols_constant_flag): Removed.
2550 (Fmakunbound, set_internal, syms_of_data): Remove references to
2551 keyword_symbols_constant_flag.
2552
2553 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
2554
214f877f
KH
25552000-02-23 Kenichi Handa <handa@etl.go.jp>
2556
2557 * syntax.c (multibyte_syntax_as_symbol): New variable.
2558 (syms_of_syntax): Declare it as a Lisp variable.
2559 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
2560 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
2561 nonzero, treat all multibyte characters as symbol.
42088c12 2562 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
2563 characters.
2564
130adcb7
EZ
25652000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2566
3cb65b0e 2567 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
2568 a deleted frame.
2569
17cbbf95
GM
25702000-02-21 Gerd Moellmann <gerd@gnu.org>
2571
2572 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
2573
2574 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2575 (x_non_menubar_window_to_frame): Check the busy-cursor window.
2576
beb0bc36
DL
25772000-02-21 Dave Love <fx@gnu.org>
2578
2579 * frame.c (Vmouse_position_function): New variable.
2580 (Fmouse_position): Use it.
2581 (syms_of_frame): Install it.
2582
2583 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
2584
1d92afcd
GM
25852000-02-20 Gerd Moellmann <gerd@gnu.org>
2586
2587 * fileio.c (Finsert_file_contents): Unbind the binding of
2588 standard-output done by temp_output_buffer_setup.
329eed9f
GM
2589
2590 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
2591 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
2592 (specbind, unbind_to): Handle most common case of non-constant
2593 symbol with trivial value specially.
2594
2595 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
2596
2d06696f
RS
25972000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2598
2599 * data.c (Fmake_variable_buffer_local): Doc fix.
2600 Init found_for_buffer to 0.
2601 (Fmake_variable_frame_local): If the variable has already
2602 been buffer-local, set the check_frame field.
2603
1d4311c3
EZ
26042000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
2605
2606 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
2607 produced for CODING_MODE_LAST_BLOCK requires.
2608
2dc95ddd
DL
26092000-02-18 Dave Love <fx@gnu.org>
2610
2611 * keyboard.c (echo_keystrokes): Remove declaration.
2612 (Vecho_keystrokes) New variable.
2613 (read_char, record_menu_key, read_key_sequence): Use it to allow
2614 use of float value.
2615 (syms_of_keyboard): Change Vecho_keystrokes declaration.
2616
2617 * lread.c: Undef feature selection macros before defining.
2618
f0930f35
GM
26192000-02-18 Gerd Moellmann <gerd@gnu.org>
2620
2621 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
2622 for symbols other than the symbol in question.
2623
e3d4de90
DL
26242000-02-17 Dave Love <fx@gnu.org>
2625
2626 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
2627
0b378936
GM
26282000-02-17 Gerd Moellmann <gerd@gnu.org>
2629
d621caf7
GM
2630 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
2631
0b378936
GM
2632 * alloc.c (enum mem_type): Compile unconditionally.
2633
3b451f74
EZ
26342000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
2635
2636 * xfaces.c (tty_defined_color): Don't return faulire indication
2637 for unspecified-fg and unspecified-bg pseudo-colors.
2638
10689a01
GM
26392000-02-17 Gerd Moellmann <gerd@gnu.org>
2640
1216f5e4
GM
2641 * alloc.c (mark_object): Don't mark symbol names in pure space.
2642 (gc_sweep): Don't unmark symbol names in pure space.
2643
2644 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
2645 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
2646 [GC_MARK_STACK]: New defines.
2647 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
2648 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
2649
2650 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
2651
2652 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
2653 allocate_buffer instead of xmalloc.
2654
2655 * alloc.c (toplevel): Include setjmp.h.
2656 (PURE_POINTER_P): New define.
2657 (enum mem_type) [GC_MARK_STACK]: New enumeration.
2658 (Vdead) [GC_MARK_STACK]: New variable.
2659 (lisp_malloc): Add parameter TYPE, call mem_insert if
2660 GC_MARK_STACK is defined.
2661 (allocate_buffer): New function.
2662 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
2663 (free_float) [GC_MARK_STACK]: Set type to Vdead.
2664 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
2665 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
2666 (MEM_NIL) [GC_MARK_STACK]: New define.
2667 (struct mem_node) [GC_MARK_STACK]: New structure.
2668 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
2669 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
2670 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
2671 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
2672 (mark_stack) [GC_MARK_STACK]: New functions.
2673 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
2674 (clear_marks): Removed.
2675 (gc_sweep): Set free conses' car, free floats' type, free
2676 symbols' function to Vdead. Use lisp_free to free buffers.
2677 (init_alloc_once): Initialize Vdead.
2678 (survives_gc_p): Return non-zero for pure objects.
2679
2680 * alloc.c: Add comments throughout the file.
2681
2503c8b1
GM
2682 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
2683 that unblocks alarms.
2684
8389e1e2
GM
2685 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
2686 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
2687 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
2688
10689a01
GM
2689 * frame.c (make_frame): Set frame initiallly to `garbaged'.
2690
bfc17d18
KH
26912000-02-17 Kenichi Handa <handa@etl.go.jp>
2692
4a09dee0
KH
2693 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
2694 avoid infinite error signaling. Allocate sufficient memory for
2695 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 2696
2b927d02
SM
26972000-02-17 Stefan Monnier <monnier@cs.yale.edu>
2698
2699 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
2700 depends on the previous behavior.
2701
b49cb764
GM
27022000-02-16 Gerd Moellmann <gerd@gnu.org>
2703
2704 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
2705
99e95407
GM
27062000-02-15 Gerd Moellmann <gerd@gnu.org>
2707
2708 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
2709
2710 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 2711 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
2712 write(2).
2713
6ffd3cf7
RS
27142000-02-15 Richard M. Stallman <rms@gnu.org>
2715
2716 * data.c (set_internal): Don't make variable buffer-local
2717 if within a let-binding for the same buffer.
2718 (let_shadows_buffer_binding_p): New function.
2719
2720 * eval.c (specbind): For buffer-local value,
2721 record the current buffer also.
2722 (unbind_to): Cope with that change.
2723
cad53475
GM
27242000-02-15 Gerd Moellmann <gerd@gnu.org>
2725
2726 * window.c (Fsave_window_excursion): Doc fix.
2727
1aa963c8
SM
27282000-02-15 Stefan Monnier <monnier@cs.yale.edu>
2729
2730 * syntax.c (back_comment): Make sure we only consider comment-starters
2731 of the relevant style and return -1 in case of a failure to find the
2732 beginning of the comment.
2733 (Fforward_comment): If back_comment fails, go back to the position just
2734 after the comment-end.
2735 (scan_lists): Add comment describing a very minor bug.
2736
b9b84fd3
SM
27372000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2738
2739 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
2740 `completion-regexp-list' in the docstring.
2741
3a28db80
DL
27422000-02-14 Dave Love <fx@gnu.org>
2743
2744 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
2745
fb4a568d
SM
27462000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2747
2748 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
2749 to Emacs' syntax. Also fix the comment about set/not-set meanings
2750 since Emacs syntax is not the value 0 any more.
2751 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
2752 since it's now part of RE_SYNTAX_EMACS.
2753
1063ebb5
DL
27542000-02-12 Dave Love <fx@gnu.org>
2755
2756 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
2757 Alpha.
2758
fb07a302
GM
27592000-02-12 Gerd Moellmann <gerd@gnu.org>
2760
2761 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
2762
aaf2320c
DL
27632000-02-12 Dave Love <fx@gnu.org>
2764
2765 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
2766
2767 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
2768 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
2769 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
2770
2771 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
2772
2773 * s/nextstep.h: Don't define HAVE_ALLOCA.
2774
2775 * config.in: Add vfork bits.
2776
eedf8bde
GM
27772000-02-12 Gerd Moellmann <gerd@gnu.org>
2778
2779 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
2780 unwind function to undo the effect of stopping atimers.
2781
2782 * keyboard.c (bind_polling_period): Stop all timers except
2783 poll_timer.
2784
2785 * atimer.c (stopped_atimers): New variable.
2786 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
2787 New functions.
2788
2789 * atimer.h (stop_other_atimers, run_all_atimers)
2790 (unwind_stop_other_atimers): Add function prototypes.
2791
2792 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
2793
8476c2f8
KR
27942000-02-11 Ken Raeburn <raeburn@gnu.org>
2795
2796 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
2797 library may depend on jpeg.
2798 (atimer.o): Depends on atimer.c.
2799
0e85e4a3
KH
28002000-02-11 Kenichi Handa <handa@etl.go.jp>
2801
2802 * insdel.c (del_range_1): Call update_compositions.
2803 (del_range_both): Call update_compositions just once..
2804
97fa0cc8
DL
28052000-02-10 Dave Love <fx@gnu.org>
2806
2807 * xfns.c (create_frame_xic): Fix initialization of automatic
2808 aggregates for pcc.
2809
25566a3c
KH
28102000-02-09 Kenichi Handa <handa@etl.go.jp>
2811
2812 * ccl.c (CCL_MAKE_CHAR): New macro.
2813 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
2814 registers by CCL_MAKE_CHAR before calling translate_char.
2815 <CCL_TranslateCharacterConstTbl> Likewise.
2816
69da54ba
DL
28172000-02-08 Dave Love <fx@gnu.org>
2818
2819 * lread.c (__EXTENSIONS__): Define.
2820
f7136ee8
GM
28212000-02-08 Gerd Moellmann <gerd@gnu.org>
2822
2823 * puresize.h (BASE_PURESIZE): Increase to 650000.
2824
7768790b
EZ
28252000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
2826
2827 * msdos.c (XMenuActivate): Turn off the cursor after displaying
2828 the help message.
2829
38fd211b
EZ
28302000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
2831
2832 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
2833 md, mh, mb, mr, and me to the fake termcap entry.
2834
66e4690f
KR
28352000-02-06 Ken Raeburn <raeburn@gnu.org>
2836
2837 * sound.c (sound_cleanup): Don't call device close routine if the
2838 function pointer is null.
2839
a75dfea0
AI
28402000-02-06 Andrew Innes <andrewi@gnu.org>
2841
2842 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
2843 around image definitions and prototypes.
2844 (gamma_correct) [WINDOWSNT]: New prototype.
2845
2846 * w32term.c (x_make_frame_visible): Replace call to
2847 input_poll_signal with poll_for_input.
2848
2849 * window.c [WINDOWSNT]: Include w32term.h.
2850
2851 * xdisp.c [WINDOWSNT]: Include w32term.h.
2852
2853 * makefile.nt: Add dependencies on w32gui.h.
2854 (OBJ1): Include atimer.obj.
2855 ($(BLD)\atimer.obj): New dependency rule.
2856
2857 * w32.c (sigmask): New function (does nothing).
2858 (sigunblock): Ditto.
2859
2860 * frame.c [WINDOWSNT]: Include w32term.h.
2861
2862 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
2863
2864 * lread.c (syms_of_lread): Fix literal newlines.
2865
2866 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
2867 the string constant limit (2048 bytes) in MSVC.
2868 (main): Ditto.
2869
59ddecde
GM
28702000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
2871
2872 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
2873 area.
2874 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
2875 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
2876 dispatch the event.
2877
07590973
DL
28782000-02-04 Dave Love <fx@gnu.org>
2879
2880 * fileio.c: Remove some unused vars.
2881 (_GNU_SOURCE): Define (for euidaccess).
2882
2883 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
2884
2885 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
2886 gcpro1, gcpro2.
2887 (read_minibuf): Deal with allow_props correctly.
2888
649351f9
EZ
28892000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
2890
2891 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
2892
66e4690f 28932000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
2894
2895 * search.c (compile_pattern): If a cache entry has a nil regexp,
2896 fill in that entry instead of clobbering a previously cached
2897 string regexp.
2898
66e4690f 28992000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
2900
2901 * puresize.h (BASE_PURESIZE): Increase to 610000.
2902
d240a249
GM
29032000-02-02 Gerd Moellmann <gerd@gnu.org>
2904
2905 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
2906 can GC.
2907
ca91fb26
KH
29082000-02-02 Kenichi Handa <handa@etl.go.jp>
2909
25660570
KH
2910 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
2911 instead of incrementing ic directly.
2912 <CCL_WriteExprConst> Likewise.
2913 <ccl_set_expr>: Set ic to jump_address.
2914
ca91fb26
KH
2915 * fileio.c (e_write): Fix the handling of
2916 CODING_FINISH_INSUFFICIENT_SRC.
2917
2ede9689
DL
29182000-02-01 Dave Love <fx@gnu.org>
2919
2920 * editfns.c (Fpropertize): Doc fix.
2921
2922 * process.c (Fstart_process): Doc fix.
2923
2924 * eval.c: Fix various doc strings not to duplicate information
2925 from help-manyarg-func-alist.
2926
2927 * window.c (Fset_window_margins): Don't make interactive. Doc
2928 fix.
2929
2930 * doc.c (Vhelp_manyarg_func_alist): New variable.
2931 (Fdocumentation): Use it.
2932 (syms_of_doc): Define it.
2933
b6680a0e
GM
29342000-01-31 Gerd Moellmann <gerd@gnu.org>
2935
2cb750ba
GM
2936 * xterm.c (xim_open_dpy): Remove unused local variable.
2937
74e9213b
GM
2938 * emacs.c (USAGE): Use term `display options' instead of `X
2939 options'.
2940
2941 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
2942 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
2943
b6680a0e
GM
2944 * fns.c (sweep_weak_table): New function.
2945 (sweep_weak_hash_tables): Use it. Keep on marking until there
2946 is no more change.
2947
994c5afe
GM
29482000-01-30 Gerd Moellmann <gerd@gnu.org>
2949
2950 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
2951 that XTread_socket does not crash by trying to call XNoOp on a
2952 closed display.
2953
f00276e3
JR
29542000-01-30 Jason Rumney <jasonr@gnu.org>
2955
2956 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
2957 Change selected_frame to SELECTED_FRAME ().
2958 (w32_console_mouse_position): Remove #ifndef MULE from around
2959 `insist' parameter.
2960
2961 * makefile.nt: Remove dosfns.obj.
2962
2963 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
2964
2965 * w32fns.c (w32_defined_color): Check for valid frame before
2966 applying gamma correction. Eliminate dependency on frame elsewhere.
2967 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
2968 (w32_to_x_font): Use resx and resy not height_in and width_in.
2969 (x_to_w32_font): Doc fix.
2970 (xlfd_strip_height): New function to strip and return font height.
2971 (w32_font_match): Compare height separately from rest of xlfd
2972 spec, using xlfd_strip_height.
2973
2974 * w32term.c (w32_term_init): Swap resx and height_in, resy and
2975 width_in. Use w32_defined_color in place of defined_color.
2976
2977 * w32faces.c: Merge more of DOS and X specifics in preparation for
2978 merge with xfaces.c.
2979 (defined_color): Remove FIXME comment.
2980 (tty_color_name): Provide w32-specific function.
2981 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
2982
2983 * w32console.c (turn_on_face, turn_off_face): Removed.
2984 (w32_face_attributes): New function.
2985 (Global_variables): Reduce scope where possible.
2986 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
2987 fill attribute.
2988 (hl_mode): Don't modify text attributes.
2989 (write_glyphs): Don't do anything if len <= 0. Use
2990 w32_face_attributes to get attributes for drawing. Write
2991 terminating codes using char_attr_normal.
2992 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
2993 (update_begin, update_end): Likewise.
2994 (vga_stdcolor_name): New function.
2995 (initialize_w32_display): Remove char_attr_reverse and char_attr.
2996 (Fset_screen_color): Remove char_attr_reverse.
2997
b08e8bb2
GM
29982000-01-29 Gerd Moellmann <gerd@gnu.org>
2999
3000 * xfns.c (xic_set_preeditarea): Take window parameter and
3001 window-relative pixel-positions.
3002
3003 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
3004 is its frame's selected window.
3005 (xim_instantiate_callback): Likewise.
3006
3007 * xfns.c (x_create_im): Removed.
3008 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
3009 (supported_xim_styles): Renamed from supported_styles.
3010 (best_xim_style): Renamed from best_style.
3011 (create_frame_xic): Renamed from xic_create_frame.
3012 (free_frame_xic): Renamed from xic_destroy_frame.
3013
30142000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
3015
3016 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
3017 our frames, call XFilterEvent with 2nd parameter `None'.
3018 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
3019 returning XBufferOverflow.
3020 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
3021 area.
3022 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
3023 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
3024 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
3025 (xim_initialize, xim_close)
3026 [HAVE_X_I18N && HAVE_X11R6]: New functions.
3027 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
3028 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
3029 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
3030
3031 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
3032 and `xim_styles'.
3033 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
3034 `xic_style' and `xic_xfs'.
3035 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
3036 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
3037 (FRAME_XIM): Removed.
3038
3039 * xfns.c (supported_styles): New variable.
3040 (DEFAULT_STYLE, DEFAULT_FONT): New macros
3041 (xic_create_xfontset, best_style, xic_create_frame)
3042 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
3043 (xic_set_xfontset): New functions.
3044
142e109c
DL
30452000-01-28 Dave Love <fx@gnu.org>
3046
3047 * s/irix6-5.h: Revert last change after change to irix5-0.h.
3048
3049 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
3050
b02786f9
GM
30512000-01-28 Gerd Moellmann <gerd@gnu.org>
3052
d060bc9f
GM
3053 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
3054 for *scratch* if it already existed.
3055
b02786f9
GM
3056 * emacs.c (USAGE): New macro.
3057 (main): Use it to display usage information.
3058
2c52d7e4
EZ
30592000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3060
3061 Support for the menu-help feature:
3062
3063 * msdos.h: Change prototypes of XMenuAddSelection and
3064 XMenuActivate.
3065
3066 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
3067 part of the line to the termscript file.
3068 (IT_clear_to_end): Clear the entire line, not just its beginning.
3069 (menu_help_message, prev_menu_help_message): New variables.
3070 (IT_menu_make_room): Make room for the help_text member.
3071 (IT_menu_display): New argument disp_help; all callers changed.
3072 If disp_help is non-zero, store the help text of the active menu
3073 item in menu_help_message.
3074 (XMenuAddPane): Initialize the help_text member to NULL.
3075 (XMenuAddSelection): New argument help_text. Store it in the
3076 XMenu structure.
3077 (XMenuActivate): New argument help_callback. If the value of
3078 menu_help_message has changed since the last time, display the
3079 menu help message text while waiting for the mouse to move. Clear
3080 the echo area before exiting.
3081 (XMenuDestroy): Free the help_text member.
3082
ffe0bcd1
GM
30832000-01-27 Gerd Moellmann <gerd@gnu.org>
3084
3085 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
3086 XMenuAddSelection. Pass help callback to XMenuActivate.
3087 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
3088
50dbd23f
EZ
30892000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
3090
3091 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
3092 and EMACS_SET_USECS.
3093
f5941bf8
GM
30942000-01-26 Dave Love <fx@gnu.org>
3095
6c67ddee
DL
3096 * editfns.c (Fchar_after, Fchar_before): Doc fix.
3097
f5941bf8
GM
3098 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
3099 an error may be signalled.
3100
9e49c990
GM
31012000-01-26 Gerd Moellmann <gerd@gnu.org>
3102
fc3cb460
GM
3103 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
3104 LD_SWITCH_SYSTEM inherited from irix5-0.h.
3105
9e49c990
GM
3106 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
3107
d0c037d8
GM
31082000-01-25 Gerd Moellmann <gerd@gnu.org>
3109
3110 * charset.c (Fstring): If there is a multibyte char among
3111 the args, always return a multibyte string.
3112
e12489f9
GM
31132000-01-25 Gerd Moellmann <gerd@gnu.org>
3114
3115 * sysdep.c (sys_select): Turn atimers off and on instead of
3116 recording and restoring old alarm handler
3117
3118 * process.c (toplevel): Include atimer.h.
3119 (create_process_1): Rewritten.
3120 (create_process): Use atimers instead of alarm.
3121 (wait_reading_process_input) [hpux]: Turn atimers off instead
3122 of turning off SIGALRM.
3123 (wait_reading_process_input): Turn off atimers instead off
3124 calling stop_polling.
3125
3126 * emacs.c (main): Call init_atimer.
3127
3128 * keyboard.c (toplevel): Include systime.h and atimer.h.
3129 (polling_for_input): Removed because unused.
3130 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
3131 (poll_timer): New variable.
3132 (poll_for_input, poll_for_input_1): New functions.
3133 (start_polling, stop_polling): Rewritten.
3134
3135 * keyboard.h (polling_for_input): Removed.
3136
3137 * atimer.h, atimer.c: New files.
3138
3139 * Makefile.in (obj): Add atimer.o.
3140 (atimer.o): New target.
3141
3142 * blockinput.h (pending_atimers): Add extern declaration.
3143 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
3144
3145 * lisp.h (popup_activated_flag): Add extern declaration.
3146
3147 * xmenu.c (popup_activated_flag): Make externally visible.
3148 (popup_activate_callback) [USE_MOTIF]: Increment
3149 popup_activated_flag.
3150 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
3151
3152 * xterm.c (toplevel): Include atimer.h.
3153 (toolkit_scroll_bar_interaction): New variable.
3154 (Fxt_process_timeouts): Removed.
3155 (x_process_timeouts): New function.
3156 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
3157 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
3158 (x_make_frame_visible): Call poll_for_input_1 instead of
3159 input_poll_signal. Don't call alarm.
3160 (x_initialize): Install timer calling x_process_timeouts.
3161
1e5279b9
DL
31622000-01-24 Dave Love <fx@gnu.org>
3163
6c67ddee 3164 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
3165 Don't use -cckr -- apparently not now necessary.
3166
edf6aeb8
EZ
31672000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3168
3169 * msdos.c (IT_menu_display): Truncate long menu lines at the right
3170 screen boundary.
3171
9badad41
JR
31722000-01-23 Jason Rumney <jasonr@gnu.org>
3173
3174 * w32fns.c (w32_defined_color): Apply gamma correction before
3175 trying to map to the palette.
3176 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
3177 to w32_clear_rect.
3178
3179 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
3180 here. Callers changed to always pass real device context.
3181 (w32_draw_bitmap): Likewise.
3182 (w32_get_glyph_overhangs): Likewise.
3183 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
3184 one.
3185 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
3186 pfnSetScrollInfo and SetScrollRange.
3187 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
3188 back into MULE characters after decoding them.
3189 (x_get_glyph_face_and_encoding): Likewise.
3190 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
3191 GetCharABCWidthsW fails, since this is defined on Windows 9x.
3192 (x_produce_glyphs): Calculate per char metrics for a character
3193 that we know exists in default font when font_not_found_p is true.
3194
63bd786b
JR
31952000-01-22 Jason Rumney <jasonr@gnu.org>
3196
3197 * makefile.nt (intervals.obj, composite.obj): New modules.
3198 (composite.h): Added as dependency where appropriate.
3199
3200 * w32gui.h (XGCValue): New struct for emulating X GCs.
3201
3202 * w32term.h (XCharStruct): New struct for emulating X.
3203
3204 * w32console.c (turn_on_face, turn_off_face): New functions.
3205 (change_line_highlight): New prototype for new redisplay.
3206 (write_glyphs): Support multibyte text. Support faces.
3207
3208 * w32faces.c: Complete rewrite for new redisplay based on new
3209 xfaces.c.
3210
3211 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
3212 throughout. struct frame * in place of FRAME_PTR.
3213 Skeleton support for images, toolbars, tooltips from xfns.c.
3214 (Fx_create_frame): Use system default for default scroll bar
3215 width.
3216 (w32_get_arg): Renamed from x_get_arg.
3217 (Fx_file_dialog): New function.
3218 (w32_list_fonts): Check cache before asking system.
3219 (Vw32_enable_synthesized_fonts): New variable.
3220 (Vw32_enable_italics): Obsolete, removed.
3221
3222 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
3223 Use SELECTED_FRAME macro.
3224
3225 * w32menu.c: Add skeleton support for help strings on menus.
3226 (add_menu_item): Native checkbox and radio support added, but not
3227 yet enabled due to bugs.
3228 (push_menu_item): Add parameters type, selection and help.
3229 Callers updated.
3230 Formatting changes to reduce unnecessary diffs with xmenu.c.
3231
3232 * w32select.c (Fw32_set_clipboard_data): Update call to
3233 find_charset_in_str.
3234
3235 * w32term.c: Complete rewrite for new redisplay based on new
3236 xterm.c with necessary sections merged back in from old w32term.c.
3237
6ffd3cf7 32382000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
3239
3240 * data.c (set_internal): Further fix in same criterion.
3241
6ffd3cf7 32422000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
3243
3244 * data.c (set_internal): Fix the criteria for whether
3245 to swap out the old cached binding.
3246
60af03f1
DL
32472000-01-19 Dave Love <fx@gnu.org>
3248
3249 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
3250
f9be074f
KH
32512000-01-18 Kenichi Handa <handa@etl.go.jp>
3252
3253 * regex.c (re_compile_fastmap): While checking a range table for
3254 `charset', skip flag bits for a character class correctly.
3255
52b8dbf9
GM
32562000-01-17 Gerd Moellmann <gerd@gnu.org>
3257
d36100c9
GM
3258 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
3259
52b8dbf9
GM
3260 * xfns.c (x_window): Call lw_create_widget with new parameter
3261 list.
3262
3263 * widget.c (EmacsFrameSetCharSize): Change size of children first
3264 because of problems with main window geometry management under
3265 Lesstif.
3266
3267 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
3268 MENU_ITEMS_ITEM_.*.
3269 (MENU_ITEMS_ITEM_HELP): New enumerator.
3270 (push_menu_item): Add parameter HELP. Record help in menu_items.
3271 (single_menu_item, single_submenu, list_of_items): Call
3272 push_menu_item with new parameter.
3273 (single_submenu): Set help string in widget value.
3274 (menu_highlight_callback): New function.
3275 (set_frame_menubar): Call lw_create_widget with new
3276 parameter list.
3277 (xmenu_show, xdialog_show): Ditto.
3278
3139018f
GM
32792000-01-13 Gerd Moellmann <gerd@gnu.org>
3280
3281 * sound.c (Fplay_sound): Improve doc string.
3282
83c8f461
RS
32832000-01-11 Richard M. Stallman <rms@gnu.org>
3284
3285 * lisp.h (set_internal): Enter the new arg.
3286
3287 * eval.c (specbind): Record buffer-local variables specially,
3288 indicating which buffer's binding was saved.
3289 (unbind_to): Restore buffer-local variables specially
3290 in the proper buffer.
3291
3292 * data.c (set_internal): New arg BUF.
3293
3294 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
3295 * data.c (Fset): Pass new arg to set_internal.
3296 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
3297
1fab1775
GM
32982000-01-11 Gerd Moellmann <gerd@gnu.org>
3299
3300 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
3301 xprintsym.
3302
83c8f461 33032000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
3304
3305 * minibuf.c (Ftry_completion): Doc fix.
3306
7a85e4df
GM
33072000-01-11 Gerd Moellmann <gerd@gnu.org>
3308
3309 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
3310 vector, too.
3311
a970dae4
AS
33122000-01-11 Andreas Schwab <schwab@suse.de>
3313
3314 * coding.c (code_convert_region): Initialize total_skip.
3315
c65d14ee
DL
33162000-01-08 Dave Love <fx@gnu.org>
3317
3318 * eval.c (Fuser_variable_p): Check customizability too.
3319
834938d2
GM
33202000-01-07 Gerd Moellmann <gerd@gnu.org>
3321
3322 * minibuf.c (Fcompleting_read): Doc fix.
3323
e0303cd6
GM
33242000-01-05 Gerd Moellmann <gerd@gnu.org>
3325
8a26744b
GM
3326 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
3327 -L /usr/local/lib.
3328
e0303cd6
GM
3329 * xfns.c (x_create_im): New function to set IM and IC of a frame.
3330 Check that input style is supported before trying to create an
3331 IC for it.
3332 (x_window): Call x_create_im.
3333
2e471eb5
GM
33342000-01-04 Gerd Moellmann <gerd@gnu.org>
3335
560a7bd2
GM
3336 * xfns.c (current_gif_memory_src): New variable.
3337 (gif_load): Record the address of the current memory source
3338 in current_gif_memory_src.
3339 (gif_read_from_memory): Use current_gif_memory_src.
3340
f9ee84a3
GM
3341 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
3342 macros statement form.
3343
d1299cde
GM
3344 * sound.c (struct sound): Renamed from struct sound_file.
3345 (struct sound): Add members `data' and `header_size'.
3346 (enum sound_attr): Add SOUND_DATA.
3347 (current_sound, current_sound_device): Variables renamed from
3348 sound_file and sound_device.
3349 (parse_sound): Parse :data.
3350 (parse_sound): Handle sound data in strings.
3351 (find_sound_type): Function renamed from find_sound_file_type.
3352 (wav_init, au_init): Fail if sound's header_size is smaller than
3353 needed header size.
3354 (wav_play, au_play): Play sounds from string data.
3355
2e471eb5
GM
3356 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
3357
3358 * lisp.h: Add prototype for allocate_string_data.
3359
3360 * alloc.c (Fgarbage_collect): Return number of live and free
3361 strings.
3362
3363 * alloc.c (mark_buffer): Remove code in #if 0.
3364 (gc_sweep): Ditto.
3365 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
3366 (strings_consed): New variable.
3367 (allocate_string): Set it.
3368 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
3369 (Fmemory_use_counts): Return strings_consed. Use Flist.
3370
3371 * alloc.c: General cleanup in comments etc. Remove conditional
3372 compilation for `standalone'.
3373
3374 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
3375
3376 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
3377 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
3378 (DONT_COPY_FLAG): Removed.
3379 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
3380 (struct sdata, struct sblock): New
3381 (struct string_block): Rewritten.
3382 (STRINGS_IN_STRING_BLOCK): New macro.
3383 (oldest_sblock, current_sblock, total_strings, total_free_strings)
3384 (large_sblocks, string_blocks, string_free_list): New variables.
3385 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
3386 (init_strings): Rewritten.
3387 (allocate_string, allocate_string_data, compact_small_strings)
3388 (free_large_strings, sweep_strings): New functions.
3389 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
3390 (struct string_block_head, current_string_block)
3391 (first_string_block, large_string_blocks, STRING_FULLSIZE)
3392 (STRING_PAD): Removed.
3393 (make_uninit_multibyte_string, make_pure_string): Rewritten.
3394 (Fgarbage_collect): Don't set mark bit in large strings.
3395 (mark_object): Mark strings differently. Mark symbol names
3396 differently.
3397 (survives_gc_p): Test marked strings differently.
3398 (gc_sweep): Sweep strings differently, unmark strings in
3399 symbol names.
3400 (compact_strings): Removed.
3401
42608ba8
EZ
34022000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
3403
3404 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
3405 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
3406
e0a09e1a
KH
34072000-01-04 Kenichi Handa <handa@etl.go.jp>
3408
dd9f0750
KH
3409 * fileio.c (Finsert_file_contents): Signal error if visiting file
3410 in a non-empty buffer.
3411
3c0f3b15 3412 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 3413
44cd3ae5
GM
34142000-01-03 Gerd Moellmann <gerd@gnu.org>
3415
3416 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
3417 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
3418
3419 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
3420
c182a70f
EZ
34212000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3422
3423 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
3424 need to test for MSDOS frames.
3425
24480d5b
EZ
34262000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3427
3428 * dosfns.c (unspecified_colors): Remove.
3429 (msdos_stdcolor_idx): Use global variables unspecified_fg and
3430 unspecified_bg.
3431 (msdos_stdcolor_name): Return strings for unspecified fore- and
3432 back-ground colors.
3433
3434 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 3435 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
3436 (tty_color_name): Return Lisp strings for unspecified fore- and
3437 back-ground colors.
3438 (Finternal_set_lisp_face_attribute): Remove the special treatment
3439 for Qunspecified_{f,b}g.
3440 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
3441 string.
3442
047f434a
GM
34432000-01-03 Gerd Moellmann <gerd@gnu.org>
3444
3445 * xdisp.c (reseat_at_next_visible_line_start): Position before
3446 newline only if ending up on a newline.
3447 (next_element_from_ellipsis): Return success. Handle case of
3448 displaying no ellipsis. Fix case of ellipsis defined in display
3449 table.
3450 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
3451 returns 0.
3452
d684c676
EZ
34532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
3454
3455 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
3456 (Fcolor_supported_p): Renamed from face-color-supported-p.
3457
5fe1d139
EZ
34582000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3459
3460 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
3461 list of colors renamed to tty-defined-color-alist.
3462 (tty_color_name): Pass the frame to tty-color-by-index.
3463 (realize_tty_face): tty-color-alist is now a function which
3464 accepts the frame as argument.
3465
3466 * term.c (Ftty_display_color_p): Accept an optional argument
3467 FRAME.
3468
816be8b8
EZ
34692000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3470
3471 * term.c (insert_glyphs): Pass glyph, not &glyph, to
3472 encode_terminal_code.
3473
b635321e
EZ
34742000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3475
3476 * dispnew.c (mode_line_string): Support termcap frames as well.
3477
9b784e96
GM
34782000-01-01 Gerd Moellmann <gerd@gnu.org>
3479
27189709
GM
3480 * syntax.c (Fforward_word): Undo previous change.
3481
3482 * editfns.c (Fconstrain_to_field): Don't constrain if
3483 inhibit-field-text-motion is non-nil.
3484 (Fline_beginning_position): Undo previous change.
3485 (Fline_end_position): Ditto.
3486
3487 * syntax.c (Fforward_word): Notice field boundaries only if
3488 inhibit-field-text-motion is nil.
3489
3490 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
3491
3492 * editfns.c (Vinhibit_field_text_motion): New variable.
3493 (inhibit-field-text-motion): New DEFVAR_LISP.
3494 (Fline_beginning_position, Fline_end_position): Notice field
3495 boundaries only if inhibit-field-text-motion is nil.
3496
45158a91
GM
3497 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
3498 All calls adjusted.
3499 (x_build_heuristic_mask): Likewise.
3500 (xbm_load_image_from_file): Change error output.
3501 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
3502 (gif_load, gs_load, x_kill_gs_process): Ditto.
3503
9b784e96
GM
3504 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
3505 color indices when accessing raster pixels.
63cec32f
GM
3506 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
3507 one of :file or :data.
3508 (enum pbm_keyword_index): Add PBM_DATA.
3509 (pbm_format): Add :data.
3510 (pbm_image_p): Allow either :file or :data.
3511 (pbm_read_file): New function.
3512 (pbm_scan_number): Rewritten to read from string.
3513 (pbm_load): Support :data.
9b784e96 3514
5ad6a5fb
GM
35151999-12-31 Gerd Moellmann <gerd@gnu.org>
3516
3517 * xfns.c: New image functions adapted to Emacs conventions.
3518 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
3519 variable `file'.
3520
63448a4d
WP
35211999-12-31 William M. Perry <wmperry@aventail.com>
3522
3523 * xfns.c (jpeg_format): Added the :data keyword
3524 (jpeg_image_p): JPEG is valid with :file _or_ :data
3525 (jpeg_memory_src): Defined new JPEG image source to read from a
3526 memory buffer.
3527 (jpeg_load): Pay attention to the :data keyword if specified.
3528 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
3529 found.
3530 (png_format): Added the :data keyword
3531 (png_image_p): PNG is valid with :file _or_ :data
3532 (png_read_from_memory): New PNG read function to read from a
3533 memory buffer.
3534 (png_load): Pay attention to the :data keyword if specified. Uses
3535 png_set_read_fn() instead of png_init_io() if specified.
3536 (tiff_format): Added the :data keyword for TIFF images.
3537 (tiff_image_p): TIFF is valid with :file _or_ :data
3538 (tiff_read_from_memory): Defined new TIFF I/O functions to read
3539 from a memory buffer.
3540 (tiff_load): Pay attention to the :data keyword if specified.
3541 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
3542 (gif_format): Added the :data keyword
3543 (gif_image_p): GIF is valid with :file _or_ :data
3544 (gif_read_from_memory): New GIF input function to read from a
3545 memory buffer.
c65d14ee 3546 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
3547 instead of DGifOpenFileName() if specified.
3548
c880678e
GM
35491999-12-31 Gerd Moellmann <gerd@gnu.org>
3550
3551 * xdisp.c (next_element_from_buffer): Change assertion at the end
3552 because it doesn't hold when there's an overlay string at the end
3553 from which we deliver an image.
3554
8ccb9a54
EZ
35551999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3556
3557 * msdos.c (IT_update_begin): Don't dereference members of struct
3558 window for deleted windows.
3559
12ce2351
GM
35601999-12-30 Gerd Moellmann <gerd@gnu.org>
3561
a915c648
GM
3562 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
3563 a hook, and the hook has a non-nil `no-self-insert' property, let
3564 the return value of the hook specify whether an expansion took
3565 place. If it returns nil, no expansion has been performed.
3566
12ce2351
GM
3567 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
3568 differently.
3569
04ee4f45
EZ
35701999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
3571
3572 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
3573
7f4bc0c3
EZ
35741999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
3575
3576 * dispnew.c (mode_line_string): Support MS-DOS frames.
3577
dac204bc
GM
35781999-12-29 Gerd Moellmann <gerd@gnu.org>
3579
3580 * eval.c (syms_of_eval): Initialize debugger_may_continue.
3581
7b712ad8
KH
35821999-12-29 Kenichi Handa <handa@etl.go.jp>
3583
3584 * process.c (read_process_output): Fix the args CHARPOS and LENINS
3585 to signal_after_change.
3586
adb9900f
EZ
35871999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
3588
41ad069b
EZ
3589 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
3590 dimensions changed, invalidate the mouse highlight info.
3591 (disable_mouse_highlight, help_echo, previous_help_echo): New
3592 variables.
3593 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
3594 (fast_find_position, IT_note_mode_line_highlight)
3595 (IT_note_mouse_highlight): New functions.
3596 (IT_update_begin): If the redisplay affects the window where the
3597 mouse highlight is, clear the highlight. If the frame where the
3598 highlight was displayed was killed, invalidate the highlight
3599 info.
3600 (IT_update_end): Reset the highlight flag. Reset the mouse
3601 highlight-defer flag.
3602 (IT_frame_up_to_date): New function, if mouse highlight was
3603 deferred due to GC, do it now.
3604 (internal_terminal_init): Initialize mouse-highlight related
3605 members of the_only_x_display. Assign IT_frame_up_to_date to
3606 frame_up_to_date_hook.
3607 (dos_rawgetc): If the mouse moved, update mouse highlight. If
3608 help_echo changed value, generate a HELP_EVENT event.
3609 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
3610
adb9900f
EZ
3611 * msdos.h (struct display_info): New.
3612 (struct x_output): Add the display_info member.
3613 (FRAME_X_DISPLAY_INFO): New macro.
3614
481b5054
GM
36151999-12-28 Gerd Moellmann <gerd@gnu.org>
3616
3617 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
3618 if MODIFF > 1.
6448a6b3 3619 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
3620
3621 * buffer.c (modify_overlay): Always compute unchanged info.
3622
a2882b0d
KH
36231999-12-27 Kenichi Handa <handa@etl.go.jp>
3624
3625 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
3626
89ba5b5f
KH
36271999-12-27 Kenichi Handa <handa@etl.go.jp>
3628
3629 The following changes are to use more bits for face IDs.
3630
3631 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
3632 lowest 8 bits are single byte character code, the bits above are
3633 face ID.
481b5054 3634 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 3635 above.
481b5054
GM
3636 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
3637 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
3638
3639 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
3640 of GLYPH_MASK_CHAR.
3641
3642 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
3643 of GLYPH_MASK_CHAR.
3644
3645 * dispextern.h (struct glyph): Make face_id and padding_p the top
3646 level members. Change members in union `u'.
3647 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
3648 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
3649 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
3650 (CHAR_GLYPH_PADDING_P): Likewise.
3651 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
3652 characters.
3653
481b5054 3654 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
3655 for the change of struct glyph.
3656 (line_draw_cost): Adjusted for the change of
3657 GLYPH_FROM_CHAR_GLYPH.
3658 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
3659
3660 * term.c (encode_terminal_code): Adjusted for the change of struct
3661 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 3662 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
3663 change of struct glyph.
3664
3665 * xdisp.c: All codes adjusted for the change of struct glyph.
3666
3667 * xterm.c: All codes adjusted for the change of struct glyph.
3668
5bcd116c
KH
36691999-12-27 Kenichi Handa <handa@etl.go.jp>
3670
3671 * composite.h (struct composition): Change the order of declaring
3672 members to reduce the byte size of the structure.
3673
f21b06b7
GM
36741999-12-25 Gerd Moellmann <gerd@gnu.org>
3675
3676 * search.c (looking_at_1): Reset immediate_quit before modifying
3677 global data.
3678
e36557c9
KH
36791999-12-24 Kenichi Handa <handa@etl.go.jp>
3680
3681 * process.c (read_process_output): Fix the arg FROM to
3682 update_compositions.
3683
83c8f461 36841999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
3685
3686 * search.c (Freplace_match): For nonliteral replacement in buffer,
3687 construct all the new text first, then insert all at once.
3688
0b863bd9
DL
36891999-12-22 Dave Love <fx@gnu.org>
3690
3691 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
3692
6d8e8ef3
GM
36931999-12-22 Gerd Moellmann <gerd@gnu.org>
3694
28d7281d
GM
3695 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
3696 lead to size changes to after the X window has been created.
3697
e22ef6eb 3698 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
3699 variable in xassert.
3700
8affcced
KH
37011999-12-22 Kenichi Handa <handa@etl.go.jp>
3702
3703 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 3704 only when the frame is not for a window system.
8affcced 3705
f2be1146
GM
37061999-12-22 Gerd Moellmann <gerd@gnu.org>
3707
deca1348
GM
3708 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
3709 redisplay after changing the multibyteness of a buffer.
3710
f2be1146
GM
3711 * xterm.c (XTread_socket): At the beginning of the loop, pass the
3712 frame's X window to XFilterEvent instead of None because that's
3713 the X window for which the IC was created. This makes dead
3714 accents work when the pointer is not in Emacs' frame.
3715 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
3716
a744a2ec
DL
37171999-12-20 Dave Love <fx@gnu.org>
3718
3719 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
3720
9e6985ed
GM
37211999-12-19 Gerd Moellmann <gerd@gnu.org>
3722
3723 * eval.c (debugger_may_continue): New variable.
3724 (syms_of_eval): Add a DEFVAR_BOOL for it.
3725 (call_debugger): Bind it.
3726
3b620731
EZ
37271999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3728
3729 * msdos.c (IT_set_face): Don't swap face colors when highlight or
3730 fp->tty_reverse_p is set, unless the computed colors are identical
3731 to frame colors. Print both original and computed colors to
3732 termscript file.
3733 (IT_write_glyphs): Track the changes in handling of composite
3734 characters.
3735 (IT_set_frame_parameters): Don't set frame colors from
3736 unspecified-fg and unspecified-bg pseudo-colors.
3737
0f9a51c4
DL
37381999-12-17 Dave Love <fx@gnu.org>
3739
3740 * data.c (Fkeywordp): New function.
3741 (syms_of_data): Install it.
3742
363e4e42
EZ
37431999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3744
3745 * xfaces.c (tty_defined_color): Fix last change.
3746
cfad01b4
GM
37471999-12-15 Gerd Moellmann <gerd@gnu.org>
3748
3749 * xdisp.c (redisplay_window) <optional new window start>: Check
3750 that window start is in [BEGV..ZV].
3751
f9d2fdc4
EZ
37521999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
3753
3754 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
3755 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
3756
3757 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
3758 (syms_of_xfaces): Initialize and staticpro them.
3759 (tty_defined_color): If the color name is unspecified-fg or
3760 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
3761 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
3762 (tty_color_name): If the color pixel value is either
3763 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
3764 Qunspecified_fg or Qunspecified_bg, respectively.
3765 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
3766 and Qunspecified_bg for foreground and background colors.
3767 (realize_default_face): If the foreground and background colors
3768 are not specified, default to Qunspecified_fg and Qunspecified_bg.
3769 (realize_tty_face): By default, set the face colors to
3770 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
3771 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
3772 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
3773 Reverse the colors if the default colors were reversed.
3774
3775 * dispnew.c (init_display): Initialize the frame pixels of the
3776 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
3777 FACE_TTY_DEFAULT_BG_COLOR.
3778
3779 * term.c (turn_on_face): If the default fore- and background
3780 colors are reversed, enter inverse video mode. Don't send color
3781 escape sequences for unspecified foreground and background colors.
3782 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
3783
3784 * dosfns.c (unspecified_colors): New variable.
3785 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
3786 color names, return FACE_TTY_DEFAULT_FG_COLOR and
3787 FACE_TTY_DEFAULT_BG_COLOR, respectively.
3788 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
3789 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
3790 Qunspecified_bg, respectively.
3791
3792 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
3793 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
3794
e19539f1
KH
37951999-12-15 Kenichi Handa <handa@etl.go.jp>
3796
3797 * coding.c (code_convert_region): Fix the secoding arg to
3798 update_compositions.
3799
5ec14d3c
KH
38001999-12-15 Kenichi Handa <handa@etl.go.jp>
3801
3802 The following changes are for the new composition mechanism. We
3803 have deleted `composition' charset and composite characters,
3804 instead introduced a special text property `composition'.
3805
3806 * Makefile.in (INTERVAL_SRC): Include composite.h.
3807 (INTERVAL_OBJ): Include composite.o.
3808 (SOME_MACHINE_OBJECTS): Include composite.o.
3809 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
3810 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
3811 Depend on composite.h.
3812 (doc.o): Depend on charset.h.
3813 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
3814 (composite.o): New target.
3815
3816 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
3817
3818 * callproc.c (Fcall_process): Call code_convert_string to encode
3819 arguments. Use CODING_REQUIRE_DECODING to check if the process
3820 output should be decoded.
3821
3822 * casefiddle.c: Include composite.h.
3823 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
3824 multibyte character. Adjusted for the change of CHAR_STRING.
3825 (casify_region): Likewise. Call update_compositions.
3826
3827 * category.h (CATEGORY_SET): Delete codes for a composite
3828 character.
3829
3830 * category.c (word_boundary_p): Delete codes for a composite
3831 character.
3832 (Fmake_category_table): New function.
3833 (syms_of_category): Defsubr it.
3834
3835 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
3836 (ccl_driver): Delete codes for a composite character.
3837
3838 * charset.h: In this entry, just `Modified' means that codes for a
3839 composite character is deleted.
3840 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
3841 (charset_composition) (MIN_CHAR_COMPOSITION)
3842 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
3843 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
3844 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
3845 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
3846 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
3847 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
3848 Modified.
3849 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
3850 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
3851 non_ascii_char_to_string.
3852 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
3853 (STRING_CHAR_AND_LENGTH): Likewise.
3854 (FETCH_CHAR_ADVANCE): New macro.
3855 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
3856 (MAX_MULTIBYTE_LENGTH): New macro.
3857 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
3858 (find_charset_in_str): Argument adjusted.
3859 (CHAR_LEN): Modified.
3860
3861 * charset.c: In this entry, just `Modified' means that codes for a
3862 composite character is deleted.
3863 (Qcomposition) (leading_code_composition)
3864 (charset_composition) (min_composite_char) (cmpchar_table)
3865 (cmpchar_table_size) (n_cmpchars): Deleted.
3866 (SPLIT_COMPOSITE_SEQ): Deleted.
3867 (SPLIT_MULTIBYTE_SEQ): Modified.
3868 (char_to_string): Renamed from non_ascii_char_to_string.
3869 Modified.
3870 (string_to_char): Renamed from string_to_non_ascii_char.
3871 (split_string): Renamed from split_non_ascii_string.
3872 (char_printable_p) (Fsplit_char)
3873 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
3874 (char_bytes) (Fchar_width) (strwidth): Modified.
3875 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
3876 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
3877 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
3878 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
3879 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
3880 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
3881 (Fcmpchar_cmp_count): Deleted.
3882 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
3883 (init_charset_once): Modified.
3884 (syms_of_charset): Modified.
3885
3886 * cmds.c (internal_self_insert): Adjusted for the change of
3887 CHAR_STRING.
3888
3889 * coding.h (emacs_code_class_type): Delete the member
3890 EMACS_leading_code_composition.
3891 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
3892 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
3893 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
3894 (COMPOSING_WITH_RULE_P): Macros deleted.
3895 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
3896 macros.
3897 (struct composition_data): New structure.
3898 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
3899 (struct coding_system): New members composition_rule_follows,
3900 cmp_data, cmp_data_start, cmp_data_index.
3901 (coding_save_composition) (coding_free_composition_data)
3902 (coding_adjust_composition_offset): Extern them.
3903
3904 * coding.c: Include composite.h.
3905 (DECODE_CHARACTER_ASCII): Don't handle composition here.
3906 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
3907 of multibyte code here.
3908 (DECODE_CHARACTER_DIMENSION2): Likewise.
3909 (detect_coding_emacs_mule): Change the case label from
3910 EMACS_leading_code_composition to 0x80.
3911 (detect_coding_iso2022): Handle new composition sequence.
3912 (DECODE_ISO_CHARACTER): Likewise.
3913 (check_composing_code): Deleted.
3914 (coding_allocate_composition_data): New function.
3915 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
3916 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
3917 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
3918 (decode_coding_iso2022): Handle new composition sequence.
3919 (ENCODE_ISO_CHARACTER): Don't check composition here.
3920 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
3921 (ENCODE_COMPOSITION_NO_RULE_START)
3922 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
3923 (ENCODE_COMPOSITION_END): Handle new composition sequence.
3924 (ENCODE_COMPOSITION_FAKE_START): New macro.
3925 (encode_coding_iso2022): Handle new composition sequence.
3926 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
3927 (encode_coding_sjis_big5): Ignore composition.
3928 (setup_coding_system): Initialize new members of struct
3929 coding_system. Enable composition only when the coding system has
3930 `composition' property t.
3931 (coding_free_composition_data) (coding_adjust_composition_offset)
3932 (coding_save_composition) (coding_restore_composition): New
3933 functions.
3934 (code_convert_region): Call coding_save_composition for encoding
3935 and coding_allocate_composition_data for decoding. Don't skip
3936 ASCII characters if we handle composition on encoding. Call
3937 signal_after_change with Check_BORDER.
3938 (code_convert_string): Call coding_save_composition for encoding
3939 and coding_allocate_composition_data for decoding. Don't skip
3940 ASCII characters if we handle composition on encoding.
3941 (code_convert_string1): Set Vlast_coding_system_used after calling
3942 code_convert_string.
3943 (code_convert_string_norecord): Disable composition.
3944 (Fset_terminal_coding_system_internal): Likewise.
3945 (Fset_safe_terminal_coding_system_internal): Likewise.
3946 (Fset_keyboard_coding_system_internal): Likewise.
3947 (init_coding_once): Set emacs_code_class[0x80] to
3948 EMACS_invalid_code.
3949
3950 * composite.h: New file.
3951
3952 * composite.c: New file.
3953
3954 * data.c (Faref): Delete codes for a composite character..
3955 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
3956
3957 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
3958 (struct glyph): Add new sub-structure cmp to the union `u'.
3959 (enum display_element_type): New member IT_COMPOSITION.
3960 (enum prop_idx): New member COMPOSITION_PROP_IDX.
3961 (struct it): New members cmp_id, cmp_len.
3962
3963 * dispnew.c (direct_output_forward_char): Check point moving into
3964 or out of a composition. If so, give up direct method.
3965
3966 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
3967
3968 * editfns.c (Fchar_to_string): Adjusted for the change of
3969 CHAR_STRING.
3970 (general_insert_function): Likewise.
3971 (Finsert_char): Likewise.
3972 (Fsubst_char_in_region): Likewise. Call update_compositions.
3973 (Ftranslate_region): Call update_compositions.
3974 (Ftranspose_regions): Call update_compositions.
3975
3976 * emacs.c (main): Call syms_of_composite.
3977
3978 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
3979 CHAR_STRING.
3980 (Finsert_file_contents): Set Vlast_coding_system_used before
3981 calling signal_after_change. Call update_compositions if some
3982 texts are inserted..
3983 (Fwrite_region): Adjusted for the change of a_write and e_write.
3984 (a_write): Argument changed. Work based on character position,
3985 not byte position.
3986 (e_write): Argument changed. Handle new way of composition.
3987
3988 * fns.c (Flength): The length of char-table is MAX_CHAR.
3989 (concat): Adjusted for the change of CHAR_STRING.
3990 (Ffillarray): Adjusted for the change of CHAR_STRING.
3991 (Fset_char_table_default): Delete codes for a composite character.
3992 (hash_put): Return hash index.
3993
3994 * fontset.h (struct font_info): New member vertical_centering.
3995 (Vvertical_centering_font_regexp): Extern it.
3996
3997 * fontset.c (Vvertical_centering_font_regexp): New variable.
3998 (syms_of_fontset): Declare it as a Lisp variable and initialize.
3999 Set Vignore_relative_composition to nil.
4000 (fs_load_font): Initialize `vertical_centering' of struct
4001 font_info.
4002
4003 * indent.c (check_composition): New function.
4004 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
4005 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
4006 (current_column_1): Handle new way of composition.
4007 (Fmove_to_column): Likewise.
4008 (compute_motion): Likewise.
4009
4010 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
4011 (insert_char): Likewise.
4012 (insert): Call update_compositions.
4013 (insert_and_inherit): Likewise.
4014 (insert_before_markers): Likewise.
4015 (insert_before_markers_and_inherit): Likewise.
4016 (insert_from_string): Likewise.
4017 (insert_from_string_before_markers): Likewise.
4018 (insert_from_buffer): Likewise.
4019 (replace_range): Likewise.
4020 (count_combining_composition): Deleted.
4021 (count_combining_before): Delete codes for a composite character.
4022 (count_combining_after): Likewise.
4023 (del_range_1): Call update_compositions.
4024 (del_range_byte): Likewise.
4025 (del_range_both): Likewise.
4026 (Fcombine_after_change_execute): Likewise.
4027
4028 * intervals.h: Include composite.h.
4029 (get_property_and_range): Extern it.
4030 (Vtext_property_default_nonsticky): Extern it.
4031
4032 * intervals.c (adjust_intervals_for_insertion): To check stickines
4033 of properties, pay attention to text-property-default-nonsticky.
4034 (merge_properties_sticky): Likewise.
4035 (get_property_and_range): New function.
4036
4037 * keyboard.c (Vdisable_point_adjustment): New variable.
4038 (Vglobal_disable_point_adjustment): New variable.
4039 (syms_of_keyboard): Declare them as Lisp variables.
4040 (command_loop_1): Check them and call adjust_point_for_property if
4041 necessary.
4042 (adjust_point_for_property): New function.
4043
4044 * keymap.c (push_key_description): Adjusted for the change of
4045 CHAR_STRING.
4046 (Ftext_char_description): Likewise.
4047
4048 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
4049 (hash_put): Adjusted for the change of the definition.
4050 (signal_after_change): Likewise.
4051 (check_point_in_composition): Extern it.
4052
4053 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
4054 Delete a code that handles an invalid too-long multibyte sequence
4055 because we are now sure that we never encounter with such a
4056 sequence.
4057 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
4058 MAX_LENGTH_OF_MULTI_BYTE_FORM.
4059 (init_obarray): Likewise.
4060 (read1): Likewise. Adjusted for the change of CHAR_STRING.
4061
4062 * print.c (printchar): Adjusted for the change of CHAR_STRING.
4063
4064 * process.c: Include composite.h.
4065 (read_process_output): Call update_compositions.
4066
4067 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
4068
4069 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
4070
4071 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
4072 character.
4073
4074 * term.c (encode_terminal_code): Delete codes for a composite
4075 character. Adjusted for the change of CHAR_STRING.
4076 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
4077 Delete codes for a composite character.
4078
4079 * textprop.c (Vtext_property_default_nonsticky): New variable
4080 (syms_of_textprop): Declare it as a Lisp variable.
4081
4082 * window.c (Frecenter): Clear all caches of compositions.
4083
4084 * xdisp.c (it_props): Add an entry for composition.
4085 (face_before_or_after_it_pos): For composition, check face of a
4086 character after the composition.
4087 (handle_composition_prop): New function.
4088 (get_next_display_element): Adjusted for the change of
4089 CHAR_STRING.
4090 (set_iterator_to_next): Handle the case that it->method ==
4091 next_element_from_composition.
4092 (next_element_from_composition): New function.
4093 (message_dolog): Adjusted for the change of CHAR_STRING.
4094 (set_message_1): Likewise.
4095 (check_point_in_composition): New function.
4096 (reconsider_clip_changes): If point moved into or out of
4097 composition, set b->clip_changed to 1 to force updating of the
4098 screen.
4099 (disp_char_vector): Delete codes for a composite character.
4100 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
4101
4102 * xfaces.c (choose_face_fontset_font): Delete codes for a
4103 composite character.
4104 (realize_x_face): Likewise. Change a place to set local variable
4105 `f' to avoid a bug of GCC 2.8.1 on Solaris.
4106
4107 * xfns.c: Include intervals.h.
4108 (syms_of_xfns): Make `display' property nonsticky by default.
4109
4110 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
4111 for find_charset_in_str.
4112
4113 * xterm.h (struct x_output): Change member font_baseline to
4114 baseline_offset.
4115
4116 * xterm.c (x_append_glyph): Setup members of struct glyph properly
4117 for composition.
4118 (x_append_composite_glyph): New function.
4119 (VCENTER_BASELINE_OFFSET): New macro.
4120 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
4121 of struct it for the composition. Cache pixel offsets in the
4122 struct composition. Delete codes for a composite character.
4123 Handle Vignore_relative_composition in composition code.
4124 (struct glyph_string): Delete member cmpcharp, add new member cmp.
4125 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
4126 (x_compute_glyph_string_overhangs): Likewise.
4127 (x_get_glyph_overhangs): Delete codes for a composite character.
4128 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
4129 (x_draw_glyph_string_background): Likewise. Delete codes for
4130 checking s->gidx for a composition.
4131 (x_draw_glyph_string_foreground): Delete code for a composite
4132 character.
4133 (x_draw_composite_glyph_string_foreground): New function.
4134 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
4135 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
4136 (struct work): Deleted.
4137 (x_fill_composite_glyph_string): Argument changed. Mostly
4138 rewritten for that.
4139 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
4140 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
4141 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
4142 (BUILD_GLYPH_STRINGS): For composition, call
4143 BUILD_COMPOSITE_GLYPH_STRING.
4144 (x_new_font): Initialize f->output_data.x->baseline_offset, not
4145 f->output_data.x->font_baseline.
4146
c3c60f13
GM
41471999-12-14 Gerd Moellmann <gerd@gnu.org>
4148
4149 * xterm.c (show_mouse_face): Don't use updated_area, use
4150 TEXT_AREA.
4151
83c8f461 41521999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4153
4154 * minibuf.c (Fall_completions): Doc fix.
4155
83c8f461 41561999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
4157
4158 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
4159 has been changed by the Lisp code.
4160
d8eccf12
GM
41611999-12-12 Gerd Moellmann <gerd@gnu.org>
4162
4163 * xfns.c: Indentation fixes.
4164
ae56feae
SM
41651999-12-10 Stefan Monnier <monnier@cs.yale.edu>
4166
4167 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
4168
dfa1c6ae
GM
41691999-12-10 Gerd Moellmann <gerd@gnu.org>
4170
4171 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
4172 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
4173
4174 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
4175 to frame.h.
4176
ec18280f
SM
41771999-12-09 Stefan Monnier <monnier@cs.yale.edu>
4178
4179 * keyboard.c (Qratio): New symbol.
4180 (scroll_bar_parts): Add `Qratio' to it.
4181 (syms_of_keyboard): Init `Qratio'.
4182 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
4183 * xterm.c (#includes): Allow compilation with only Xaw.
4184 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
4185 (xt_action_hook): Replace XAW3D by XAW.
4186 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
4187 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
4188 Determine epsilon dynamically and don't try to be too clever.
4189 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
4190 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
4191 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
4192 scrollbar (using `ratio').
4193 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
4194 scrollbar we have so as to set it up more optimally and to fix
4195 xaw3d_arrow_scroll and xaw3d_pick_top.
4196 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
4197 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
4198 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
4199 is not ignored, using a major gross hack.
4200 (x_initialize): Init default values for xaw3d_arrow_scroll and
4201 xaw3d_pick_top.
4202
83b6d970
DL
42031999-12-09 Dave Love <fx@gnu.org>
4204
4205 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
4206
3648c842
GM
42071999-12-08 Gerd Moellmann <gerd@gnu.org>
4208
4209 * eval.c: Remove conditional compilation on `standalone'.
4210 (call_debugger): When entering the debugger while redisplaying,
4211 reset redisplaying_p, and go back to the top-level if the debugger
4212 returns.
4213
05e71564
GM
42141999-12-07 Gerd Moellmann <gerd@gnu.org>
4215
4216 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
4217 basic faces are realized before trying to use face `menu'.
4218
4219 * window.c (delete_window): Block input for the time window
4220 matrices are being changed.
4221
b46cd536
DL
42221999-12-07 Dave Love <fx@gnu.org>
4223
4224 * lread.c (Fintern_soft): Fix newlines in doc string.
4225
96acb1f7
GM
42261999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
4227
4228 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
4229 duplicate definition of ElfW.
4230 (find_section): Copied from unexsgi.c.
4231 (unexec): Use find_section. Adjust whitespace. Initialize
4232 new_data2_offset based on old_data, not sbss (this fixes a bug on
4233 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
4234 Adjust test for presence of .mdebug section to the new return
4235 value of find_section.
4236
42371999-12-07 Gerd Moellmann <gerd@gnu.org>
4238
4239 * unexelf.c: Merge changes from 20.5.
4240 (unexec): Handle .lit4 and .lit8 unconditionally.
4241
4242 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
4243 unexsgi.o again.
4244
4245 * m/iris5d.h (UNEXEC): Likewise.
4246
7dae4502
SM
42471999-12-06 Stefan Monnier <monnier@cs.yale.edu>
4248
4249 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
4250 (syms_of_editfns): Register it.
4251 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
4252 (del_range_1, del_range_2): Add a ret_string argument to
4253 request that the deleted text be returned.
4254 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 4255 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
4256 * casefiddle.c (casify_region): Update del_range_1 call.
4257 * coding.c (code_convert_region): Update del_range_2 call.
4258 * fileio.c (Finsert_file_contents): Update del_range_2 call.
4259
397e4fae
GM
42601999-12-06 Gerd Moellmann <gerd@gnu.org>
4261
4262 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
4263
3d973f71
GM
42641999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
4265
4266 * lread.c (Fintern_soft): Accept a symbol argument.
4267
740e985f
EZ
42681999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4269
4270 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
4271
4272 * insdel.c (adjust_markers_for_delete): Fix last change.
4273
2d764c78
EZ
42741999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4275
4276 Changes for automatic remapping of X colors on terminal frames:
4277
4278 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
4279 frames.
4280 (Vface_tty_color_alist): Remove.
4281 (tty_defined_color): New function.
4282 (defined_color): Rewrite to support any type of frame.
4283 (tty_color_name): New function.
4284 (face_color_supported_p, Fface_color_gray_p,
4285 Fface_color_supported_p): Support non-X frames.
4286 (load_color): Enclose the color name in quotes, in the log
4287 messages. Remove DOS-specific version of load_color.
4288 (realize_tty_face): Take the supported colors from
4289 tty-color-alist. Support translation of X colors to the closest
4290 tty color, for both MSDOS and tty frames.
4291 [MSDOS]: Don't invert face colors if they were taken from the
4292 frame colors.
4293 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
4294
4295 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
4296 Define a mostly empty surrogate.
4297 (tty_display): Declare.
4298
4299 * frame.c (make_terminal_frame) [!macintosh]: Don't use
4300 tty_display.
4301 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
4302 frames when the frame's param_alist includes 'reverse.
4303 (tty_display): Define.
4304 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
4305 output_data.x member.
4306 (Fframe_parameters): Return foreground and background color names
4307 on tty frames as well, in addition to MSDOS frames.
4308
4309 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
4310 selected_frame.
4311 (struct x_output): Remove unused members; document who uses each
4312 member.
4313 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
4314 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
4315 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
4316 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
4317 unused macro definintions.
4318
4319 * msdos.c (IT_set_frame_parameters): Don't call
4320 recompute_basic_faces, the next redisplay will, anyway.
4321 (x_current_display): Remove unused variable.
4322 Many functions: changes for Lisp_object selected_frame.
4323 (IT_set_face): If the tty_reverse_p flag is set for the face,
4324 reverse the foreground and background colors.
4325 (Fmsdos_remember_default_colors): New function.
4326 (syms_of_msdos): Defsubr it.
4327 (IT_set_frame_parameters): Use initial_screen_colors[] when
4328 creating a new frame. If the frame parameters include 'reverse,
4329 swap the foreground and background colors.
4330 (internal_terminal_init): Initialize initial_screen_colors to -1.
4331 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
4332 cus-start.el.
4333
4334 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
4335
4336 * xfns.c (x_defined_color): Rename from defined_color. All
4337 callers changed.
4338 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4339 all callers changed.
4340 (Fxw_color_values): Renamed from Fx_color_values; all callers
4341 changed.
4342 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4343 callers changed.
4344 (x_window_to_frame, x_any_window_to_frame,
4345 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4346 x_top_window_to_frame): Use !FRAME_X_P instead of
4347 f->output_data.nothing.
4348 * xterm.h (x_defined_color): Rename from defined_color.
4349
4350 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
4351 f->output_data.nothing.
4352 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
4353 all callers changed.
4354 (Fxw_color_values): Renamed from Fx_color_values; all callers
4355 changed.
4356 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
4357 callers changed.
4358
4359 * dispextern.h (tty_color_name): Add prototype.
4360
4361 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
4362 f->output_data.nothing.
4363 * w32menu.c (menubar_id_to_frame): Likewise.
4364 * w32term.h (w32_output): Declare.
4365
4366 * dosfns.c (Qmsdos_color_translate): Remove.
4367 (msdos_stdcolor_name): Now returns a Lisp_Object.
4368 * dosfns.h (Qmsdos_color_translate): Remove.
4369
4370 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
4371
b3e5232e
KH
43721999-12-06 Kenichi Handa <handa@etl.go.jp>
4373
4374 * fileio.c (decide_coding_unwind): Renamed from
4375 set_auto_coding_unwind.
4376 (Finsert_file_contents): Make single unwind protect to call both
4377 Vset_auto_coding_function and Ffind_operation_coding_system.
4378
4379 * insdel.c (adjust_markers_for_delete): Make it non-static.
4380
db0e466c
SM
43811999-12-04 Stefan Monnier <monnier@cs.yale.edu>
4382
4383 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
4384 operators and handle them properly.
4385 * regex.h (RE_ALL_GREEDY): New option.
4386 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
4387 sorting would put it.
4388 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
4389 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
4390
22afa6e8
DL
43911999-12-04 Dave Love <d.love@dl.ac.uk>
4392
4393 * m/arm.h: New file.
4394
40afb967
DL
43951999-12-03 Dave Love <fx@gnu.org>
4396
4397 * editfns.c (Fmessage_or_box): Use use_dialog_box.
4398
ddf8eff5
GM
43991999-12-02 Gerd Moellmann <gerd@gnu.org>
4400
4401 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
4402 for building with Motif.
4403
4404 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
4405 unexelf.o.
4406
4407 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
4408
fa09a82d
DL
44091999-12-01 Dave Love <fx@gnu.org>
4410
4411 * emacs.c (main): Set LANG=C iff AX3_2 defined.
4412
ddf8eff5
GM
44131999-11-28 Gerd Moellmann <gerd@gnu.org>
4414
4415 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
4416 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
4417 macros.
4418
4419 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
4420
fa09a82d
DL
44211999-11-28 eliz <eliz@dlpx1>
4422
4423 * emacs.c (synchronize_locale): Avoid compiler warnings about
4424 pointer type mismatch.
4425
f9632fc8
GM
44261999-11-28 Gerd Moellmann <gerd@gnu.org>
4427
717d0121
GM
4428 * window.c (Fwindow_end): Don't call temp_set_pt_both with
4429 out of range position.
4430
f9632fc8
GM
4431 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
4432 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
4433
59c65f1e
EZ
44341999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
4435
613a8346
EZ
4436 * charset.c (Fmake_char_internal): Print the charset ID when
4437 signalling an error.
4438
59c65f1e
EZ
4439 * emacs.c (synchronize_locale): Avoid compiler warnings about
4440 pointer type mismatch.
4441
83c8f461 44421999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
4443
4444 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
4445
18df9369
GM
44461999-11-26 Gerd Moellmann <gerd@gnu.org>
4447
65a3ccf7
GM
4448 * puresize.h (BASE_PURESIZE): Increase to 550000.
4449
b3b98592
GM
4450 * textprop.c (set_text_properties): New function. Like
4451 Fset_text_properties, but with additional parameter
4452 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
4453 changes.
4454 (Fset_text_properties): Use it.
4455
4456 * insdel.c (insert_1_both): Call set_text_properties with last
4457 parameter nil so that no after changes will be signaled.
4458
4459 * lisp.h: Add prototype for set_text_properties.
4460
18df9369
GM
4461 * xfaces.c (set_lface_from_font_name): Fix previous change.
4462 (recompute_basic_faces): Change assert to abort.
4463
71a8e74b
DL
44641999-11-25 Dave Love <fx@gnu.org>
4465
4466 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
4467 (Fmember, Fdelq, Fdelete): Inline car.
4468 (Fy_or_n_p): Doc fix.
4469
bc6a5782
GM
44701999-11-25 Gerd Moellmann <gerd@gnu.org>
4471
3221576b 4472 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 4473 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
4474 is not set, try to use a reasonable default.
4475
bc6a5782
GM
4476 * dispnew.c (direct_output_for_insert): Set glyph row's
4477 displays_text_p flag. Correct window's window_end_vpos if
4478 necessary.
4479
0c8559bb
PE
44801999-11-25 Paul Eggert <eggert@twinsun.com>
4481
4482 * emacs.c (fixup_locale): Don't bother to record initial locale.
4483 (synchronize_locale): If the desired locale is nil,
4484 treat it as if it were the empty string,
4485 so that we set the locale from the environment.
4486
35737351
KH
44871999-11-25 Kenichi Handa <handa@etl.go.jp>
4488
4489 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
4490 of the current buffer via Fset.
4491
5562b47f
DL
44921999-11-24 Dave Love <fx@gnu.org>
4493
5562b47f
DL
4494 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
4495
4496 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
4497
00da0e4a
GM
44981999-11-24 Gerd Moellmann <gerd@gnu.org>
4499
4500 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
4501
4502 * emacs.c (PVEC_FLAG): New variable.
4503
b1775dc1
GM
45041999-11-23 Gerd Moellmann <gerd@gnu.org>
4505
4506 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
4507 that fails on IBM PowerPC, AIX 4.2.
4508
08de6200
EZ
45091999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
4510
4511 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
4512 string of mode-line-format. Remove the obsolete %t.
4513
02fda8ff
GM
45141999-11-22 Gerd Moellmann <gerd@gnu.org>
4515
f2fa858f
GM
4516 * dispnew.c (direct_output_for_insert): Increment glyph positions
4517 for glyphs from buffer text only.
4518
02fda8ff
GM
4519 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
4520 (gdb_data_seg_bits): New variables.
4521
4522 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
4523 work on systems not allowing enumerators > INT_MAX, and it
4524 won't work if EMACS_INT is long long.
4525
1b0d24e7
PE
45261999-11-22 Paul Eggert <eggert@twinsun.com>
4527
4528 Port to SunOS 4.1.x again. Help out with Alpha port.
4529 Rename messages-locale to system-messages-locale,
4530 and likewise for time-locale.
4531
4532 * callproc.c (strerror): Remove decl.
4533 * fileio.c (strerror): Likewise.
4534 * process.c (strerror): Likewise.
4535 * emacs.c (strerror): Likewise.
4536 (Vsystem_messages_locale): Renamed from Vmessages_locale.
4537 All uses changed.
4538 (Vprevious_system_messages_locale): Likewise, from
4539 Vprevious_messages_locale.
4540 (Vsystem_time_locale): Likewise, from Vtime_locale.
4541 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
4542 (ABORT_RETURN_TYPE): New macro.
4543 (abort): Return type is now ABORT_RETURN_TYPE.
4544 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
4545 defined.
4546 (syms_of_emacs): messages-locale -> system-messages-locale,
4547 previous-messages-locale -> previous-system-messages-locale,
4548 time-locale -> system-time-locale,
4549 previous-time-locale -> previous-system-time-locale.
4550
4551 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
4552 (const): Do not define; that's config.h's job.
4553 (<limits.h>): Include if HAVE_LIMITS_H is defined.
4554 (CHAR_BIT): Move test for definedness outside of limits.h condition.
4555 (<stddef.h>): Include if STDC_HEADERS is defined.
4556 (FREE_RETURN_TYPE): New macro.
4557 (free): Return type is now FREE_RETURN_TYPE.
4558
4559 * lisp.h (synchronize_system_time_locale): Renamed from
4560 synchronize_time_locale. All uses changed.
4561 (synchronize_system_messages_locale): Likewise, from
4562 synchronize_messages_locale.
4563
4564 * m/alpha.h (malloc, realloc, calloc): Remove decls;
4565 stdlib.h now does this.
4566
4567 * process.c (sys_siglist): Remove.
4568
4569 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
4570 New macros.
4571
4572 * syntax.c (scan_sexps_forward): Use abort, not assert.
4573
4574 * sysdep.c (my_sys_siglist): New var.
4575 (sys_siglist): New macro. Remove old initialized vars of same name.
4576 (init_signals): Initialize sys_siglist.
4577
4578 * xfns.c (abort): Remove decl; stdlib.h now does this.
4579
0dcd5b54
DL
45801999-11-18 Dave Love <fx@gnu.org>
4581
946173ad
DL
4582 * filelock.c: Add forward declaration for get_boot_time_1.
4583
0dcd5b54
DL
4584 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
4585
71447e8f
GM
45861999-11-18 Gerd Moellmann <gerd@gnu.org>
4587
4588 * buffer.h (struct buffer_text): Add comment about moving
4589 buffer text if REL_ALLOC is defined.
4590
eeedff63
KH
45911999-11-18 Kenichi Handa <handa@etl.go.jp>
4592
4593 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
4594
4595 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
4596 memory for push_key_description.
4597
4598 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
4599 allocate memory for push_key_description.
4600 (describe_buffer_bindings): Likewise.
4601
5d7e4a2c
GM
46021999-11-17 Gerd Moellmann <gerd@gnu.org>
4603
4604 * xfns.c (Fx_show_busy_cursor): Doc-fix.
4605 (Fx_hide_busy_cursor): Ditto.
4606
46071999-11-17 Marco Walther <walther@siemens-pyramid.com>
4608
4609 * unexsni.c (unexec): Handle .rel.dyn section.
4610
b5b41e02
DL
46111999-11-16 Dave Love <fx@gnu.org>
4612
4613 * doc.c (Fdocumentation): Remove gcpro here too.
4614
e35b6123
GM
46151999-11-16 Gerd Moellmann <gerd@gnu.org>
4616
4617 * keyboard.c (command_loop_1): Remove no_redisplay.
4618
83c8f461 46191999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
4620
4621 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
4622 in noninteractive.
4623
b05d3bee
GM
46241999-11-14 Gerd Moellmann <gerd@gnu.org>
4625
5bcfeb49
GM
4626 * xdisp.c (ensure_echo_area_buffers): New.
4627 (with_echo_area_buffer): Use it.
4628 (setup_echo_area_for_printing): Ditto.
4629
b05d3bee
GM
4630 * buffer.c (indicate-empty-lines): Doc-fix.
4631
9b2e6e4c
GM
46321999-11-12 Gerd Moellmann <gerd@gnu.org>
4633
e7f90eab
GM
4634 * term.c (term_init): If "op" isn't available, don't support color
4635 because we can't switch back to the default foreground and
4636 background.
4637
9b2e6e4c
GM
4638 * doc.c (Fdocumentation_property): Remove GCPRO because
4639 Fsubstitute_command_keys gcpro's the string.
4640
1bf21027
KH
46411999-11-12 Kenichi Handa <handa@etl.go.jp>
4642
4643 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
4644
3bc6df53
GM
46451999-11-11 Gerd Moellmann <gerd@gnu.org>
4646
4647 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
4648 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
4649 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
4650
35a5514b
GM
46511999-11-10 Gerd Moellmann <gerd@gnu.org>
4652
4653 * xfns.c (QCuser_data): Removed.
4654 (syms_of_xfns): Initialization of QCuser_data removed.
4655 (parse_image_spec): Don't handle :user-data specially. Allow
4656 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
4657 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
4658 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
4659 parse_image_spec accordingly.
4660
83c8f461 46611999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4662
4663 * cmds.c (Fbeginning_of_line): Doc fix.
4664 (Fend_of_line): Doc fix.
4665
4666 * editfns.c (Fline_beginning_position): If N is not 1,
4667 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
4668
4669 * syntax.c (Fforward_word): Handle fields even if would have hit
4670 an edge of the buffer. Return nil if affected by fields.
4671
83c8f461 46721999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4673
4674 * editfns.c (preceding_pos): Function deleted.
4675 (text_property_stickiness): Decrement POS directly.
4676 Fix a confusion that used PT instead of POS.
4677
4678 * editfns.c (find_field): Properly handle the case
4679 of a field boundary where `field' inherits from neither side.
4680
4681 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
4682 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
4683
fa9aabf6
GM
46841999-11-08 Gerd Moellmann <gerd@gnu.org>
4685
4686 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
4687 BEFORE_POTENTIAL_GC before DISCARD.
4688
4015b3c0
GM
46891999-11-07 Gerd Moellmann <gerd@gnu.org>
4690
033a5fa3
GM
4691 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
4692
4693 * lisp.h: Add prototype for unmark_byte_stack.
4694
4695 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
4696 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
4697 XUNMARK.
4698
55b064bd
GM
4699 * xdisp.c (resize_mini_window): Fix computation of needed
4700 mini-window height.
4701
4702 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
4703 compilation on USE_TEXT_PROPERTIES.
01e9b9df 4704
4015b3c0 4705 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 4706 locally there. Rearrange case statements so that those most
4015b3c0
GM
4707 frequently executed come first. Avoid goto's in frequently
4708 executed cases.
4709
fe512f27
GM
47101999-11-05 Gerd Moellmann <gerd@gnu.org>
4711
dd59e217
GM
4712 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
4713 AFTER_POTENTIAL_GC around internal_catch.
4714
bcf28080
GM
4715 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
4716 relocate_byte_pcs.
4717 (init_alloc_once, init_alloc): Set byte_stack_list to null.
4718
4719 * eval.c (struct catchtag): Add member byte_stack.
4720 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 4721 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
4722 catchtag.
4723 (unwind_to_catch): Restore byte_stack_list from catchtag.
4724
4725 * lisp.h: Add prototypes for new functions in bytecode.c.
4726 Add extern declaration for byte_stack_list.
4727
4728 * bytecode.c (struct byte_stack): New.
4729 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
4730 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
4731 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
4732 (HANDLE_RELOCATION): Removed.
4733 (Fbyte_code): Use byte_stack structures.
4734
4d59c34c
GM
4735 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
4736
fe512f27
GM
4737 * buffer.c (syms_of_buffer): Extend documentation of
4738 mode-line-format.
4739
60b64cd6
GM
47401999-11-04 Gerd Moellmann <gerd@gnu.org>
4741
4742 * editfns.c (Fdelete_field): Renamed from Ferase_field.
4743
4744 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
4745 Ferase_field instead of Fdelete_field.
4746
b51b619b
GM
47471999-11-03 Gerd Moellmann <gerd@gnu.org>
4748
4749 * dispnew.c (Finternal_show_cursor): Change it to set the
4750 cursor on/off, not toggle its state.
4751 (Finternal_show_cursor_p): New.
4752 (syms_of_display): Defsubr Sinternal_show_cursor_p.
4753
5865af0d
DL
47541999-11-03 Dave Love <fx@gnu.org>
4755
4756 * charset.c (split_non_ascii_string): Define return value.
4757
82a700f3
GM
47581999-11-03 Gerd Moellmann <gerd@gnu.org>
4759
edfef199
GM
4760 * minibuf.c (string_to_object): New.
4761 (read_minibuf_noninteractive): New.
4762 (read_minibuf): Call read_minibuf_noninteractive if
4763 noninteractive. Use string_to_object.
4764
82a700f3
GM
4765 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
4766
b5540f0d
DL
47671999-11-02 Dave Love <fx@gnu.org>
4768
e69dcd60
DL
4769 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
4770
827a1788
DL
4771 * process.c: Define _GNU_SOURCE before config.h to get strsignal
4772 declared with glibc2.
b5540f0d 4773
a69a6e61
GM
47741999-11-02 Gerd Moellmann <gerd@gnu.org>
4775
4776 * lisp.h (QUIT): Give it statement form.
4777
87e21fbd
DL
47781999-11-02 Dave Love <fx@gnu.org>
4779
4780 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
4781
1b335865
GM
47821999-11-02 Gerd Moellmann <gerd@gnu.org>
4783
9fb5e03d
GM
4784 * xfns.c (QCuser_data): New.
4785 (syms_of_xfns): Initialize QCuser_data.
4786 (parse_image_spec): Ignore :user-data DATA properties.
4787
1b335865
GM
4788 * xdisp.c (display_line): Set charpos of first glyph in blank
4789 lines not corresponding to any text to -1, even if no glyphs are
4790 filled in in that line.
4791
e76f1c44
GM
47921999-11-01 Gerd Moellmann <gerd@gnu.org>
4793
36fcd3d9
GM
4794 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
4795 png_get_sRGB in #ifdef.
4796
111259b4
GM
4797 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
4798 (syms_of_display): Use the new name.
4799
dd5c96e8
GM
4800 * textprop.c (verify_interval_modification): Signal text-read-only
4801 instead of calling error.
4802
db8878fb
GM
4803 * data.c (Qtext_read_only): New built-in error.
4804 (syms_of_data): Initialize it.
4805
4806 * lisp.h: Add extern declaration for Qtext_read_only.
4807
e76f1c44
GM
4808 * syntax.c: Remove whitespace after open or in front of closing
4809 parentheses.
4810
83c8f461 48111999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
4812
4813 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
4814
7843e09c
GM
48151999-10-31 Gerd Moellmann <gerd@gnu.org>
4816
575ed805
GM
4817 * xdisp.c (resize_mini_window): Compute needed height differently.
4818
7843e09c
GM
4819 * fns.c (Flength): Unroll loop over lists.
4820
4821 * xdisp.c (append_space): Return non-zero if space was appended.
4822 (display_line): Set charpos of first glyph to -1 only if that
4823 glyph is the space added by append_glyph.
4824
83c8f461 48251999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
4826
4827 * print.c (strout): Consider `noninteractive' and use stdout
4828 only when PRINTCHARFUN is t.
4829
4830 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
4831 (gcpro_level): Declare it extern.
4832 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
4833 Alternate definitions that set `level' and increment `gcpro_level'.
4834 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
4835
4836 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
4837 (init_eval) [DEBUG_GCPRO]: Initialize it.
4838 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
4839 from remaining gcprolist.
4840
3636f7a3
KH
48411999-10-29 Kenichi Handa <handa@etl.go.jp>
4842
4843 * coding.c (code_convert_region): Update `dst' correctly.
4844
a2ad7096
GM
48451999-10-28 Gerd Moellmann <gerd@gnu.org>
4846
4847 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
4848 (Frassoc): Rewritten.
4849
1e3196e8
GM
48501999-10-27 Noah Friedman <friedman@splode.com>
4851
4852 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
4853 Define PTY_NAME_SPRINTF.
4854 Redefine PTY_TTY_NAME_SPRINTF.
4855 * config.in: Add undef for HAVE_DEV_PTMX.
4856
83c8f461 48571999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4858
4859 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
4860 as arg to DEBUG_POP and DEBUG_PRINT.
4861
83c8f461 48621999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
4863
4864 * data.c (Qad_activate_internal): Renamed from Qad_activate.
4865 (Ffset): Call Qad_activate_internal.
4866 (syms_of_data): Initialize Qad_activate_internal.
4867
26922151
GM
48681999-10-27 Gerd Moellmann <gerd@gnu.org>
4869
4870 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
4871 Vterminal_frame is selected and Vwindow_system is non-nil.
4872
67a5596f
GM
48731999-10-26 Gerd Moellmann <gerd@gnu.org>
4874
2bea706b
GM
4875 * xdisp.c (echo_area_display): Put previous change in #if 0.
4876
67a5596f
GM
4877 * emacs.c (standard_args): Add `file' as synonym for `visit',
4878 `execute' as synonym for `eval'.
4879 (main): Add new options to usage message.
4880
81dc5de5
GM
48811999-10-25 Gerd Moellmann <gerd@gnu.org>
4882
4883 * data.c (Qhash_table): New.
4884 (Ftype_of): Return it for hash tables.
4885 (syms_of_data): Initialize Qhash_table.
4886
83c8f461 48871999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
4888
4889 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
4890
66e4690f 48911999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 4892
7539e11f
KR
4893 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
4894 lisp.h.
4895
4896 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
4897 Fbuffer_local_variables, Fother_buffer, record_buffer,
4898 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
4899 swap_out_buffer_local_variables, overlays_at, overlays_in,
4900 overlay_touches_p, overlay_strings, recenter_overlay_lists,
4901 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
4902 Foverlay_put, report_overlay_modification, evaporate_overlays):
4903 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
4904 references.
4905 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
4906 swap_in_symval_forwarding, set_internal, default_value,
4907 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
4908 Fmake_variable_frame_local, Flocal_variable_p,
4909 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
4910 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
4911 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
4912 * emacs.c (main): Likewise.
4913 * fontset.c (fs_load_font, fs_register_fontset,
4914 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
4915 Fnew_fontset, Fset_fontset_font): Likewise.
4916 * frame.c (do_switch_frame, next_frame, prev_frame,
4917 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
4918 Likewise.
4919 * keyboard.c (read_char, help_char_p, event_to_kboard,
4920 kbd_buffer_get_event, timer_start_idle, timer_check,
4921 make_lispy_event, apply_modifiers, reorder_modifiers,
4922 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
4923 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
4924 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
4925 Fcommand_execute, Fexecute_extended_command): Likewise.
4926 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
4927 Fall_completions): Likewise.
4928 * window.c (Fset_window_margins): Likewise.
4929
4930 * callint.c (quotify_args): Don't explicitly use struct
4931 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
4932
3a7093d8
KR
4933 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
4934 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
4935 if __ELF__ is defined.
4936
2a3d7146
GM
49371999-10-24 Gerd Moellmann <gerd@gnu.org>
4938
4939 * window.c (Fnext_window): Add a QUIT in the loop.
4940
8ac52782
GM
49411999-10-23 Gerd Moellmann <gerd@gnu.org>
4942
4943 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
4944 New targets.
4945
05f0d15a
DL
49461999-10-22 Dave Love <fx@gnu.org>
4947
4948 * emacs.c (main): Enable profiling conditional on __linux also.
4949
882fb0e6
GM
49501999-10-20 Gerd Moellmann <gerd@gnu.org>
4951
4952 * xrdb.c (x_load_resources): Set default resources for resource
4953 classes instead of for the specific Emacs.
4954
b5f5bc31
GM
49551999-10-19 Gerd Moellmann <gerd@gnu.org>
4956
66f4dd69
GM
4957 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
4958 defines it that way.
4959
b5f5bc31
GM
4960 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
4961 if selected_frame is equal to Vterminal_frame.
4962
68c45bf0
PE
49631999-10-19 Paul Eggert <eggert@twinsun.com>
4964
4965 Add support for large files, 64-bit Solaris, system locale codings.
4966
4967 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
4968 when dumping, so that the dumped Emacs doesn't have stray locale info.
4969 (dired.o): Depend on systime.h.
4970 (editfns.o): Depend on coding.h.
4971
4972 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
4973 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
4974 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
4975 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
4976 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
4977 Include <config.h> before any system include files.
4978
4979 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
4980 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
4981 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
4982 xmenu.c, xterm.c:
4983 Do not include <stdlib.h>, as <config.h> does this now.
4984
4985 * callproc.c (Fcall_process):
4986 Synchronize messages locale before invoking strerror.
4987 Decode resulting string with locale-coding-system.
4988
4989 * coding.c (Vlocale_coding_system): New var.
4990 (syms_of_coding): Adjust to above change.
4991 (emacs_strerror): New function.
4992
4993 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
4994
4995 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
4996 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
4997 HAVE_STRSIGNAL): New macros.
4998 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
4999 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
5000
5001 * dired.c: Include "systime.h".
5002 (Ffile_attributes): Do not cast s.st_size to int; this loses
5003 information if int is 32 bits but st_size and EMACS_INT are larger.
5004 Treat large device numbers like large inode numbers.
5005
5006 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
5007
5008 * editfns.c: Include coding.h.
5009 (emacs_strftime): Remove decl.
5010 (emacs_strftimeu): New decl.
5011 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
5012 Use emacs_strftimeu instead of emacs_strftime.
5013 (Fformat_time_string): Convert format string using
5014 Vlocale_coding_system, and convert result back. Synchronize time
5015 locale before invoking lower level function. Invoke
5016 emacs_memftimeu, passing ut, instead of emacs_memftime.
5017
5018 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
5019 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
5020 Vprevious_time_locale): New variables.
5021 (main): Invoke setlocale early, so that initial error messages are
5022 localized properly. But skip locale-setting if LC_ALL is "C".
5023 Fix up locale when it's safe to do so.
5024 (fixup_locale): Moved here from xterm.c.
5025 (synchronize_locale, synchronize_time_locale,
5026 synchronize_messages_locale): New functions.
5027 (syms_of_emacs): Accommodate above changes.
5028
5029 * fileio.c (report_file_error): Convert strerror output according
5030 to Vlocale_coding_system.
5031 (Finsert_file_contents): Check for arithmetic overflow in
5032 computations that depend on file size. Report IO errors
5033 with emacs_strerror, not strerror.
5034
5035 * fns.c (Fgethash): Declare dflt parameter.
5036
5037 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
5038 is defined; that's config.h's job.
5039
5040 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
5041 default these values to long, BITS_PER_LONG, and unsigned long.
5042 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
5043 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
5044 (code_convert_string_norecord, fixup_locale,
5045 synchronize_messages_locale, synchronize_time_locale,
5046 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
5047 All Emacs callers of open, close, read, write changed to use
5048 emacs_open, emacs_close, emacs_read, emacs_write.
5049
5050 * lread.c (file_offset, file_tell): New macros. All uses of ftell
5051 changed to file_tell.
5052 (saved_doc_string_position, prev_saved_doc_string_position): Now
5053 of type file_offset.
5054 (init_lread): Do not fix locale here; fixup_locale now does this.
5055
5056 * m/amdahl.h, s/usg5-4.h:
5057 (NSIG): Remove.
5058 (NSIG_MINIMUM): New macro.
5059
5060 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
5061 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
5062 s/umips.h, s/usg5-4.h:
5063 (SIGIO): Do not undef.
5064 (BROKEN_SIGIO): New macro.
5065
5066 * m/ustation.h:
5067 (SIGTSTP): Do not undef.
5068 (BROKEN_SIGTSTP): New macro.
5069
5070 * s/gnu-linux.h:
5071 (SIGPOLL, SIGURG): Do not undef.
5072 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
5073
5074 * s/ptx4.h:
5075 (SIGINFO): Do not undef.
5076 (BROKEN_SIGINFO): New macros.
5077
5078 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
5079
5080 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
5081 some Emacs-related changes merged.
5082
5083 * print.c (float_to_string): Prepend "-" to representation of a
5084 NaN if the NaN is negative.
5085
5086 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
5087 (wait_reading_process_input): Use emacs_strerror, not strerror.
5088
5089 * process.c (status_message, sigchld_handler): Synchronize locale,
5090 then use strsignal istead of sys_siglist.
5091 * w32proc.c (sys_wait): Likewise.
5092
5093 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
5094 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
5095 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
5096 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
5097 (open, close, read, write, INTERRUPTIBLE_OPEN,
5098 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
5099
5100 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
5101
5102 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
5103 sys_open, open): Remove.
5104 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
5105 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
5106 macros are no longer used.
5107 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
5108 (emacs_close): Renamed from sys_close.
5109 (emacs_read): Renamed from sys_read.
5110 (emacs_write): Renamed from sys_write.
5111 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
5112 (dup2): Do not print error on failure; the real dup2 doesn't.
5113 (strsignal): New function, defined if !HAVE_STRSIGNAL.
5114
5115 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
5116 is defined.
5117 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
5118 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
5119 (strsignal): Declare if !HAVE_STRSIGNAL.
5120
5121 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
5122 (ElfW): Define in terms of ElfExpandBitsW.
5123
5124 * w32proc.c (sys_siglist): Remove decl.
5125
5126 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
5127 with ANSI C.
5128 (display_string): Declare face_string_pos arg.
5129
5130 * xfns.c (Fx_show_tip): Declare timeout param.
5131
5132 * xterm.c: No need to include locale.h.
5133 (x_alloc_lighter_color, x_setup_relief_color):
5134 Pass arg as double, not float, for compatibility with ANSI C.
5135 (fixup_locale): Move to emacs.c.
5136 (x_term_init): Do not setlocale or fixup locale; the main program
5137 does this now.
5138
2f0b74ea
DL
51391999-10-18 Dave Love <fx@gnu.org>
5140
5141 * doc.c (Fdocumentation_property): Gcpro `tem'.
5142
471aa4a0
KH
51431999-10-18 Kenichi Handa <handa@etl.go.jp>
5144
5145 * lread.c (Fload): Calculate bytes of filename correctly.
5146 (openp): Likewise.
5147
aca2020b
KH
51481999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
5149
5150 * print.c (print_preprocess): In case print-circle is nil,
5151 add OBJ to Vprint_number_table only when OBJ is a symbol.
5152
1f5fe392 51531999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
5154
5155 * coding.c (code_convert_string): Add record_unwind_protect to
5156 assure setting inhibit_pre_post_conversion back to zero. Take
5157 care of the multibyteness of the working buffer.
5158
5159 * coding.c (inhibit_pre_post_conversion): New variable.
5160 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
5161 ignore post-read-conversion and pre-write-conversion property of
5162 the coding system.
5163 (code_convert_region_unwind): New function.
5164 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
5165 running pre-write-conversion and post-read-conversion.
5166 (code_convert_string): Likewise.
5167
cd876a91
GM
51681999-10-17 Miles Bader <miles@gnu.org>
5169
5170 * editfns.c: Doc fix.
5171
51721999-10-17 Miles Bader <miles@gnu.org>
5173
5174 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
5175 argument preconditions of find_before_next_newline in the case
5176 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
5177 was indeed at the edge.
5178
51791999-10-17 Miles Bader <miles@gnu.org>
5180
5181 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
5182 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
5183
5184 * editfns.c (text_property_eq, text_property_stickiness): Don't
5185 use initializers for auto variables of type Lisp_Object.
5186 (find_field): Likewise. Use braces around nested ifs.
5187 (Fline_end_position): Store the raw eol in a variable, so that the
5188 final expression doesn't look so ugly.
5189 (Fconstrain_to_field): Doc fix.
5190 (preceding_pos): Renamed from `preceeding_pos'.
5191 (text_property_stickiness, find_field): Call preceding_pos,
5192 not preceeding_pos.
5193
51941999-10-17 Miles Bader <miles@gnu.org>
5195
5196 * editfns.c (Ffield_string_no_properties): New function.
5197 (text_property_stickiness, preceeding_pos): New functions.
5198 (Ffield_string): Remove PROPS parameter.
5199 (find_field): Add MERGE_AT_BOUNDARY parameter.
5200 Rewrite to use stickiness of `field' property to resolve
5201 ambiguous cases.
5202 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
5203 (Fconstrain_to_field): Likewise.
5204 (syms_of_editfns): Init Sfield_string_no_properties.
5205 (Ffield_string, Ferase_field, Ffield_end):
5206 Supply new MERGE_AT_BOUNDARY argument to find_field.
5207 (Fline_beginning_position, Fline_end_position): Supply new
5208 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
5209 Pass a value of Qt for the ONLY_IN_LINE argument to
5210 Fconstrain_to_field (only matters if N != 1).
5211 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
5212 to Fconstrain_to_field.
5213
5214 * minibuf.c (Fminibuffer_complete_word): Use
5215 Ffield_beginning to find the prompt end.
5216
52171999-10-17 Miles Bader <miles@gnu.org>
5218
5219 * editfns.c (Fconstrain_to_field): Add get/set-current-point
5220 behavior when NEW_POS is nil.
5221 (find_field): Use XSETFASTINT instead of make_number.
5222 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
5223 input string by seeing where the field begins, instead of
5224 looking at text-properties.
5225
52261999-10-17 Miles Bader <miles@gnu.org>
5227
5228 * editfns.c (Qfield): New variable.
5229 (find_field, Ferase_field, Ffield_string,
5230 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
5231 (Fline_beginning_position, Fline_end_position): Constrain to any field.
5232 (make_buffer_string_both): Remove minibuffer-prompt hack.
5233 (syms_of_editfns): Initialize Qfield, and subr entries for
5234 field functions above.
5235 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
5236 minibuf_save_list.
5237 Don't initialize minibuffer prompt length.
5238 Wrap prompt text-properties around the entire prompt.
5239 Add 'prompt text-property to prompt.
5240 Get final value with Ffield_string instead of make_buffer_string.
5241 (read_minibuf_unwind): Don't restore minibuffer prompt length from
5242 minibuf_save_list.
5243 (do_completion): Get minibuffer input with Ffield_string
5244 instead of Fbuffer_string.
5245 Erase minibuffer input with Ferase_field instead of erase_buffer.
5246 (Fminibuffer_complete_and_exit): Likewise.
5247 Test whether buffer is empty by looking for the 'prompt text
5248 property at the end.
5249 Set prompt length by looking for the end of the prompt text property,
5250 and save prompt length for later use (since there is no longer a
5251 buffer variable to get it from).
5252 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
5253 (syms_of_minibuf): Remove initializations of
5254 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
5255 * buffer.h (struct buffer): Remove prompt_end_charpos field.
5256 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
5257 Don't initialize prompt_end_charpos field.
5258 * syntax.c (Fforward_word): Likewise.
5259 Constrain to any field.
5260
3f6f7508
GM
52611999-10-16 Gerd Moellmann <gerd@gnu.org>
5262
5263 * window.c (enum save_restore_action): New.
5264 (save_restore_orig_size): Change parameter list. Add
5265 functionality to check for valid orig_top and orig_height members
5266 in a window tree.
5267 (grow_mini_window): Call save_restore_orig_size with new parameter
5268 list.
5269 (shrink_mini_window): Restore old window sizes only if old
5270 size information is valid in all windows in a window tree.
5271
06482119
GM
52721999-10-15 Gerd Moellmann <gerd@gnu.org>
5273
2710454d
GM
5274 * xmenu.c (set_frame_menubar): Don't call
5275 x_set_menu_resources_from_menu_face here.
5276 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
5277
06482119
GM
5278 * xfns.c (gif_load): Fix handling of interlaced GIFs.
5279
17fa2837
DL
52801999-10-14 Dave Love <fx@gnu.org>
5281
5282 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
5283
45f93416
GM
52841999-10-14 Gerd Moellmann <gerd@gnu.org>
5285
5286 * process.c (Fopen_network_stream): Don't loop if gethostbyname
5287 fails and h_errno is TRY_AGAIN.
5288
c765b723
DL
52891999-10-13 Dave Love <fx@gnu.org>
5290
5291 * filelock.c (lock_file): Move gcpro of `fn'.
5292
dace7f4e
GM
52931999-10-10 Gerd Moellmann <gerd@gnu.org>
5294
5295 * keyboard.c (auto-save-interval): Fix documentation.
5296
83c8f461 52971999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
5298
5299 * print.c (print): When removing objects from Vprint_number_table,
5300 only scan the newly added objects.
5301 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
5302 unconditionally force it to stay in the table.
5303
85177c86
GM
53041999-10-09 Gerd Moellmann <gerd@gnu.org>
5305
5306 * xfns.c (prepare_image_for_display): Don't try to load image if
5307 loading it failed before.
5308 (lookup_image, prepare_image_for_display): Remember if loading the
5309 image failed.
5310 (xpm_load): Add missing UNBLOCK_INPUT.
5311
5312 * dispextern.h (struct image): New member load_failed_p.
5313
11e4de5d
SM
53141999-10-08 Stefan Monnier <monnier@cs.yale.edu>
5315
f28eba7b 5316 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
5317 in the docstring.
5318
f1da8f06
GM
53191999-10-08 Gerd Moellmann <gerd@gnu.org>
5320
5321 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
5322 Don't call XSetInputFocus because that can generate additional
5323 FocusIn events.
5324
c37bbd4f
GM
53251999-10-07 Jeffrey C Honig <jch@bsdi.com>
5326
5327 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
5328
83c8f461 53291999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
5330
5331 * process.c (wait_reading_process_input): When trying to suck
5332 input from one process, for accept-process-output,
5333 exit that loop if we get EAGAIN or EWOULDBLOCK.
5334
577d9e2f
GM
53351999-10-07 Gerd Moellmann <gerd@gnu.org>
5336
5337 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
5338 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
5339 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
5340 Fpixmap_spec_p and Qpixmap_spec_p.
5341 (load_face_colors, check_lface_attrs,
5342 merge_face_vector_with_property,
5343 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
5344 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
5345 Fbitmap_spec_p.
5346
f5737ad2
GM
53471999-10-07 Gerd Moellmann <gerd@gnu.org>
5348
5349 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
5350 MODE_LINE_FACE_ID.
5351
5352 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
5353 (struct x_resources) [USE_X_TOOLKIT]: New.
5354 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
5355 [USE_MOTIF]: New.
5356 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
5357 [USE_LUCID]: New.
5358 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
5359 (Qmenu): New.
5360 (syms_of_xfaces): Initialize Qmenu.
5361 (realize_basic_faces): Realize face `menu'.
5362 (resolve_face_name): New.
5363 (lface_from_face_name): Use it.
5364 (Finternal_set_lisp_face_attribute): Ditto.
5365 (Fpixmap_spec_p): Rewritten. Extend doc string.
5366
5367 * xmenu.c (set_frame_menubar, xmenu_show): Call
5368 x_set_menu_resources_from_menu_face.
5369
5370 * dispextern.h (enum face_id): Add MENU_FACE_ID.
5371 (toplevel): Include X11/Intrinsic.h.
5372
6a1aa823
DL
53731999-10-03 Ken'ichi Handa <handa@gnu.org>
5374
5375 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
5376 correctly.
5377
26901792
DL
53781999-09-30 Kenichi Handa <handa@etl.go.jp>
5379
5380 * category.c (modify_lower_category_set): Set default value of
5381 TABLE correctly.
5382
5383 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
5384 size correctly.
5385
53861999-09-29 Gerd Moellmann <gerd@gnu.org>
5387
5388 * editfns.c (Fpropertize): Renamed from Fproperties.
5389
53901999-09-29 Gerd Moellmann <gerd@gnu.org>
5391
5392 * xdisp.c (resize_mini_window): Do nothing if frame is an X
5393 frame that hasn't been initialized yet.
5394
83c8f461 53951999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
5396
5397 * keymap.c (Fsingle_key_description): Make tem big enough.
5398 (describe_buffer_bindings): Make buf big enough.
5399
83c8f461 54001999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
5401
5402 * intervals.c (get_local_map): Use indirect_function,
5403 not Findirect_function.
5404
26901792
DL
54051999-09-27 Dave Love <fx@gnu.org>
5406
5407 * cm.h: Remove unneeded declaration of ospeed.
5408
54091999-09-26 Gerd Moellmann <gerd@gnu.org>
5410
5411 * lisp.h (toplevel): Add prototype for
5412 next_single_char_property_change.
5413
5414 * textprop.c (next_single_char_property_change): New.
5415
5416 * xdisp.c (display_prop_end, invisible_text_between_p): Use
5417 next_single_char_property_change.
5418
54191999-09-25 Gerd Moellmann <gerd@gnu.org>
5420
5421 * editfns.c (Fproperties): New.
5422 (syms_of_editfns): Defsubr it.
5423
5424 * xfns.c (lookup_image): Set image's timestamp because it's
5425 used when we look it up.
5426
54271999-09-23 Gerd Moellmann <gerd@gnu.org>
5428
5429 * window.c (enlarge_window): Add window parameter instead of using
5430 selected_window.
5431 (Fdisplay_buffer): Call it with window parameter instead of
5432 setting selected_window.
5433 (Fenlarge_window, Fshrink_window): Ditto.
5434 (shrink_mini_window): If there is no recorded height and position
5435 info, resize mini-window to height 1.
5436
5437 * xfns.c (image_error): Use add_to_log.
5438
5439 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
5440 (load_face_font_or_fontset, load_color,
5441 merge_face_vector_with_property): Ditto.
5442
5443 * dispextern.h: Add prototype for add_to_log.
5444
5445 * xfaces.c (add_to_log): Move to xdisp.c.
5446
5447 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
5448 parameter.
5449
54501999-09-23 Gerd Moellmann <gerd@gnu.org>
5451
5452 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
5453 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
5454
5455 * xdisp.c (resize_mini_window): Use grow_mini_window and
5456 shrink_mini_window.
5457
5458 * window.c (window_min_size): Add parameter ignore_fixed_p.
5459 (change_window_height): Call window_min_size with new parameter.
5460 (shrink_window_lowest_first, save_restore_orig_size,
5461 grow_mini_window, shrink_mini_window): New.
5462 (make_window, replace_window): Initialize orig_top and
5463 orig_height.
5464 (enlarge_window): Renamed from change_window_height. Make it
5465 static.
5466 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
5467 enlarge_window instead of change_window_height.
5468
5469 * window.h (struct window): New members orig_top, orig_height.
5470 (toplevel): Add prototypes for grow_mini_window and
5471 shrink_mini_window. Remove prototype for change_window_height.
5472
54731999-09-21 Eli Zaretskii <eliz@gnu.org>
5474
5475 * frame.c (frame_name_fnn_p): Fix previous change.
5476
54771999-09-20 Gerd Moellmann <gerd@gnu.org>
5478
5479 * minibuf.c (toplevel): Move include of stdio.h to other includes.
5480
5481 * dispnew.c (direct_output_for_insert): Cast arguments to
5482 safe_bcopy to char *.
5483
5484 * lread.c (readchar): Remove unused variables.
5485 (read_filtered_event, read1, Fmapatoms): Ditto.
5486 (toplevel): Include intervals.h.
5487
5488 * eval.c (Fsignal): Remove unused variables.
5489 (Fcommandp, do_autoload): Ditto.
5490
5491 * lisp.h: Add prototype for safe_bcopy, fatal.
5492
5493 * editfns.c (init_editfns): Remove unused variables.
5494 (Fgoto_char, Fchar_after, Fformat): Ditto.
5495 (message_text, message_length): Put in #ifndef HAVE_MENUS.
5496
5497 * data.c (find_symbol_value): Remove unused variables.
5498 (Faref, Fstring_to_number): Ditto.
5499 (toplevel): Include stdio.h.
5500 (Fnumber_to_string): Cast XINT to long for %ld.
5501
5502 * casefiddle.c (casify_object): Remove unused variables.
5503 (casify_region): Ditto.
5504
5505 * filelock.c (get_boot_time): Put local variable used in
5506 conditinally compiled section in #ifdef.
5507 (toplevel): Include stdio.h.
5508
5509 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
5510 keys_of_keymap, syms_of_keymap): Remove unused variables.
5511
55121999-09-20 Gerd Moellmann <gerd@gnu.org>
5513
5514 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
5515 whose corresponding window rows have been disabled in
5516 try_window_id.
5517
55181999-09-20 Gerd Moellmann <gerd@gnu.org>
5519
5520 * xdisp.c (compute_window_start_on_continuation_line): Handle case
5521 that window start is out of range.
5522 (handle_display_prop, handle_single_display_prop): Replace
5523 marginal area specifications like `left-margin' with `(margin
5524 left-margin)'.
5525 (Qmargin): New.
5526 (syms_of_xdisp): Initialize Qmargin.
5527
55281999-09-19 Gerd Moellmann <gerd@gnu.org>
5529
5530 * syntax.c (update_syntax_table, find_defun_start, back_comment,
5531 describe_syntax, skip_chars): Remove unused variables.
5532 (back_comment, forw_comment): Add braces to if-statement with
5533 if-else as dependent statement.
5534
5535 * process.c (list_processes_1): Remove unused variables.
5536 (Fopen_network_stream, create_process): Add parentheses to
5537 conditional expressions.
5538 (create_process): Put declaration of sigchld in #if 0.
5539 (Fopen_network_stream): Removed unused variables.
5540 (Fopen_network_stream, wait_reading_process_input,
5541 wait_reading_process_input, send_process, send_process): Ditto.
5542 (toplevel): Add prototypes for set_waiting_for_input and
5543 keyboard_bit_set.
5544
5545 * abbrev.c (Fexpand_abbrev): Remove unused variables.
5546
5547 * textprop.c (Fset_text_properties): Remove unused variables.
5548 (text_property_list, verify_interval_modification,
5549 interval_has_all_properties): Ditto.
5550
5551 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5552 (Fcall_process): Remove unused variable.
5553
5554 * keyboard.c (Frecursive_edit): Remove unused variable.
5555 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
5556 timer_check, make_lispy_event, menu_bar_items,
5557 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
5558 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
5559 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
5560 read_key_sequence): Ditto. Fread_key_sequence,
5561 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
5562 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
5563 used when GOBBLE_FIRST_EVENT is defined in #ifdef
5564 (Fexecute_extended_command): Cast XINT to long for %ld.
5565 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5566 (toplevel): Include sys/types.h.
5567
5568 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
5569 (toplevel): Add prototypes for stuff_char, and
5570 code_convert_string_norecord.
5571
55721999-09-19 Gerd Moellmann <gerd@gnu.org>
5573
5574 * buffer.h: Add prototype for r_re_alloc.
5575
5576 * insdel.c (copy_text): Removed unused variables.
5577 (count_combining_after, count_combining_after, insert_1_both,
5578 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
5579 (adjust_after_replace, replace_range): Add parentheses to logical
5580 expressions. Remove unused variables.
5581 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
5582 expression.
5583
5584 * alloc.c (Fgarbage_collect): Remove unused variable.
5585 (compact_strings): Add parentheses around assignments in
5586 conditional context.
5587 (toplevel): Put declaration of unused function clear_marks
5588 in #if 0 like its definition.
5589
5590 * lisp.h: Add prototype for shrink_regexp_cache,
5591 sweep_weak_hash_tables.
5592
55931999-09-19 Dave Love <fx@gnu.org>
5594
5595 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
5596
5597 * doc.c (read_bytecode_char): Declare arg.
5598
5599 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
5600 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
5601
56021999-09-18 Richard Stallman <rms@gnu.org>
5603
5604 * xdisp.c (echo_area_display): Turn off code that returned
5605 without doing anything when using a terminal frame.
5606
83c8f461 56071999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
5608
5609 * unexelf.c (unexec): Don't get confused by a short section
5610 just before the bss section.
5611
26901792
DL
56121999-09-16 Gerd Moellmann <gerd@gnu.org>
5613
5614 * emacs.c (main): Remove unused variables.
5615 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
5616
5617 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
5618 init_fileio_once, syms_of_sound, init_xfns, init_fns
5619 init_sound, check_message_stack.
5620
5621 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
5622
5623 * intervals.c (rotate_right, rotate_left): Add braces to avoid
5624 ambiguous else warning.
5625 (split_interval_left): Remove unused variables.
5626 (previous_interval, adjust_intervals_for_deletion,
5627 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
5628 (icount, idepth, zero_length): Move into #if 0 section below
5629 original position where these are used.
5630
5631 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
5632
5633 * buffer.c (Fkill_buffer): Remove unused variables.
5634 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
5635 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
5636 init_buffer_once, (syms_of_buffer): Ditto.
5637
5638 * xrdb.c (get_fallback): Remove unused variable.
5639 (x_load_resources): Ditto. Put local variable used for Motif only
5640 in #ifdef USE_MOTIF.
5641
56421999-09-16 Gerd Moellmann <gerd@gnu.org>
5643
5644 * minibuf.c (read_minibuf): Remove unused variables.
5645 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
5646 (do_completion): Move assignment out of conditional context.
5647 (Fdisplay_completion_list): Add parentheses to conditional expression.
5648
5649 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
5650
5651 * lisp.h: Add prototype for no_switch_window.
5652
5653 * window.c (Fset_window_buffer): Remove unused variables.
5654 (Fset_window_margins): Ditto.
5655
5656 * xdisp.c (resize_mini_window): Temporarily set the selected
5657 window's or Vminibuf_scroll_window's height to "fixed" around
5658 the call the change_window_height.
5659
5660 * window.c (window_fixed_size_p): Check window's height_fixed_p
5661 flag.
5662
5663 * window.h (struct window): New member height_fixed_p.
5664
5665 * dispnew.c (direct_output_forward_char): Don't use this method
5666 if showing a message or a message was just cleared because we
5667 might need to resize the mini-window.
5668
56691999-09-16 Gerd Moellmann <gerd@gnu.org>
5670
5671 * frame.c (Fdelete_frame): Correct local variable pointing to
5672 selected frame after selecting new frame.
5673
56741999-09-15 Richard Stallman <rms@gnu.org>
5675
5676 * puresize.h (BASE_PURESIZE): Increase to 525000.
5677
5678 * filelock.c (Vtemporary_file_directory): New variable.
5679 (syms_of_filelock): Set up Lisp variable.
5680
56811999-09-15 Gerd Moellmann <gerd@gnu.org>
5682
5683 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
5684 (encode_terminal_code): Remove unused variables.
5685 (turn_off_face): Ditto.
5686 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
5687
5688 * dispnew.c (update_frame_line): If writing whole desired line,
5689 don't clear to end of line if already at the end.
5690
56911999-09-15 Gerd Moellmann <gerd@gnu.org>
5692
5693 * xdisp.c (resize_mini_window): Don't report changed window
5694 height if it actually hasn't changed.
5695
5696 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
5697 unused variables.
5698 (mark_shell_size_user_specified): Put in #if 0 because not used.
5699 (create_frame_gcs): Put in #if 0 because currently unused.
5700 (first_frame_p): Ditto.
5701
5702 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
5703 single_submenu, update_frame_menubar, set_frame_menubar,
5704 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
5705 variables.
5706
5707 * print.c (PRINTFULLP): Removed because it is no longer used and
5708 is misleading.
5709 (Ferror_message_string): Remove unused variables.
5710 (print_object): Cast argument of sprintf to long for `%ld'
5711 specifier. Remove unused variable.
5712
57131999-09-14 Gerd Moellmann <gerd@gnu.org>
5714
5715 * sound.c (Fplay_sound): Remove usused variables.
5716 (be2hs): Put in #if 0 because it's currently not used.
5717
57181999-09-14 Ken Raeburn <raeburn@gnu.org>
5719
5720 * print.c (Ferror_message_string, print_error_message,
5721 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
5722 member access.
5723
57241999-09-14 Gerd Moellmann <gerd@gnu.org>
5725
5726 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
5727
5728 * frame.c (Fnext_frame): Remove unused variable(s).
5729 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
5730 (store_frame_param): Add parentheses to conditional expression.
5731 (Fmodify_frame_parameters): Remove unused variables.
5732 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
5733 Ditto.
5734
5735 * xfns.c (x_set_background_color): Remove unused variable(s).
5736 (x_set_border_pixel): Ditto.
5737 (x_set_menu_bar_lines): Put local variable used only for
5738 non-toolkit case in #ifdef/#endif.
5739 (x_figure_window_size): Remove unused variable(s).
5740 (x_figure_window_size, x_window, lookup_image,
5741 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
5742 png_load, jpeg_load, gif_load, x_create_tip_frame,
5743 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
5744
5745 * xterm.c (x_scroll_bar_handle_click): Compile only if
5746 not USE_TOOLKIT_SCROLL_BARS.
5747 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
5748
5749 * dispextern.h: Add prototypes for gamma_correct and
5750 x_kill_gs_process.
5751
5752 * xterm.c (x_produce_glyphs): Remove unused variable(s).
5753 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
5754 x_set_toolkit_scroll_bar_thumb): Ditto.
5755 (x_scroll_bar_create): Move local variable to the
5756 conditionally compiled section of code where it is used.
5757 (x_scroll_bar_create): Remove unused variable(s).
5758 (x_scroll_bar_remove, XTread_socket): Ditto.
5759 (XTread_socket) <ConfigureNotify>: Move variables used for
5760 non-toolkit case into conditionally compiled section of code.
5761
5762 * window.h (freeze_window_starts): Fix typo in prototype.
5763
5764 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
5765 variable(s).
5766
5767 * lisp.h: Add prototype for debug_print.
5768
5769 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
5770 to use do-while.
5771
5772 * fns.c (SXHASH_COMBINE): Add missing parentheses.
5773 (Fchar_table_range, Fset_char_table_default, mapcar1,
5774 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
5775
5776 * lisp.h: Add prototype for getloadavg.
5777
57781999-09-14 Andreas Schwab <schwab@gnu.org>
5779
5780 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
5781
5782 * lisp.h: Declare close_file_unwind.
5783
57841999-09-14 Richard Stallman <rms@gnu.org>
5785
5786 * filelock.c (get_boot_time): Make the temp name in the proper dir.
5787
57881999-09-13 Gerd Moellmann <gerd@gnu.org>
5789
5790 * xdisp.c (redisplay_window): Make sure start_at_line_beg
5791 is always set correctly.
5792
57931999-09-13 Dave Love <fx@gnu.org>
5794
5795 * xdisp.c (move_it_in_display_line_to): Make type consistent with
5796 declaration.
5797
57981999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5799
5800 * xdisp.c (QCfile): Move here from xfns.c.
5801 (syms_of_xdisp): Initialize it.
5802 (message2_nolog): Change for Lisp_Object selected_frame.
5803 (message3_nolog, message_with_string, message,
5804 setup_echo_area_for_printing, truncate_echo_area,
5805 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
5806
58071999-09-13 Dave Love <fx@gnu.org>
5808
5809 * xterm.c: Don't continue #define args for benefit of old cc.
5810 (xt_action_hook): Indent #error for benefit of K&R cc.
5811
58121999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5813
5814 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
5815 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
5816 (XRINGBELL): Removed.
5817
58181999-09-13 Dave Love <fx@gnu.org>
5819
5820 * xfns.c (x_put_x_image): Make type consistent with declaration.
5821
5822 * fns.c (Fmake_hash_table): Fix string continuation.
5823
58241999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5825
5826 * xfns.c (QCfile): Moved to xdisp.c.
5827 (syms_of_xfns): Don't initialize QCfile.
5828 (check_x_frame): Change for Lisp_Object selected_frame.
5829 (check_x_display_info, x_get_resource_string): Ditto.
5830
58311999-09-13 Gerd Moellmann <gerd@gnu.org>
5832
5833 * minibuf.c (choose_minibuf_frame): Don't try to set the
5834 mini-buffer window's buffer, if the buffer is invalid.
5835
5836 * xfns.c (QCfile): Moved to xdisp.c.
5837 (syms_of_xfns): Don't initialize QCfile.
5838
5839 * xdisp.c (QCfile): Move here from xfns.c.
5840 (syms_of_xdisp): Initialize it.
5841
5842 * lisp.h (selected_frame): Add external declaration.
5843
5844 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
5845 (Fx_store_cut_buffer_internal): Ditto.
5846 (Fx_rotate_cut_buffers_internal): Ditto.
5847
5848 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
5849 selected_frame.
5850 (Finternal_set_lisp_face_attribute): Ditto.
5851 (Finternal_get_lisp_face_attribute): Ditto.
5852 (Finternal_lisp_face_empty_p): Ditto.
5853 (Fdump_face): Ditto.
5854
5855 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
5856 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
5857 set_terminal_window, set_scroll_region, reassert_line_highlight,
5858 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
5859 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
5860 encode_terminal_code, write_glyphs, term_init): Ditto.
5861
5862 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
5863 (kbd_input_ast, read_input_waiting): Ditto.
5864
5865 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
5866 selected_frame.
5867 (read_minibuf): Ditto.
5868
5869 * keyboard.c (command_loop_1): Change for Lisp_Object
5870 selected_frame.
5871 (cmd_error_internal, command_loop_1, read_char,
5872 kbd_buffer_get_event, read_avail_input,
5873 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
5874 interrupt_signal, quit_throw_to_read_char): Ditto.
5875
5876 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
5877 (Ffontset_info): DItto.
5878
5879 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
5880
5881 * dispnew.c (selected_frame): Make it a Lisp_Object.
5882 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
5883 (direct_output_for_insert, direct_output_forward_char,
5884 init_display): Ditto.
5885
5886 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
5887 selected_frame.
5888 (set_internal): Ditto.
5889
5890 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
5891 (record_buffer): Ditto.
5892
5893 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
5894 (do_switch_frame): Change for Lisp_Object selected_frame.
5895 (Fselected_frame): Ditto.
5896 (Fframe_first_window): Use SELECTED_FRAME.
5897 (Fframe_root_window): Change for Lisp_Object selected_frame.
5898 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
5899 Fprevious_frame, other_visible_frames, Fdelete_frame,
5900 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
5901 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
5902 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
5903 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
5904 Fset_frame_height, Fset_frame_width): Ditto.
5905
59061999-09-13 Gerd Moellmann <gerd@gnu.org>
5907
5908 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
5909 (message3_nolog, message_with_string, message,
5910 setup_echo_area_for_printing, truncate_echo_area,
5911 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
5912
5913 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
5914 (Fx_popup_dialog): Ditto.
5915
5916 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
5917 (check_x_display_info, x_get_resource_string): Ditto.
5918
5919 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
5920 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
5921 (XRINGBELL): Removed.
5922
5923 * window.c (Fminibuffer_window): Change for Lisp_Object
5924 selected_frame.
5925 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
5926 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
5927 Fcurrent_window_configuration, init_window_once): Ditto.
5928
5929 * frame.h (SELECTED_FRAME): New.
5930
59311999-09-12 Ken Raeburn <raeburn@gnu.org>
5932
5933 * category.c (word_boundary_p): Use XCAR and XCDR.
5934 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
5935 Fregister_code_conversion_map): Likewise.
5936 * coding.c (setup_coding_system, detect_coding_system,
5937 Ffind_operation_coding_system, Fset_coding_priority_internal):
5938 Likewise.
5939 * doc.c (get_doc_string, Fdocumentation,
5940 store_function_docstring): Likewise.
5941 * editfns.c (save_restriction_restore): Likewise.
5942 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
5943 skip_debugger, find_handler_clause, Fautoload, Fapply,
5944 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
5945 Likewise.
5946 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
5947 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
5948 Fread_file_name): Likewise.
5949 * filelock.c (unlock_all_files): Likewise.
5950 * insdel.c (Fcombine_after_change_execute): Likewise.
5951 * intervals.c (adjust_intervals_for_insertion): Likewise.
5952 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
5953 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
5954 store_in_keymap, Fcopy_keymap, define_as_prefix,
5955 current_minor_maps, Faccessible_keymaps,
5956 accessible_keymaps_char_table, Fkey_description,
5957 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
5958 describe_buffer_bindings, describe_map_tree, shadow_lookup,
5959 describe_map): Likewise.
5960 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
5961 read_list, init_lread): Likewise.
5962 * search.c (Fmatch_data): Likewise.
5963 * sunfns.c (Fsun_menu_internal): Likewise.
5964 * syntax.c (describe_syntax): Likewise.
5965 * undo.c (record_insert, record_delete, Fundo_boundary,
5966 truncate_undo_list): Likewise.
5967 * vmsproc.c (child_sig): Likewise.
5968
5969 * editfns.c (Fformat): Use XFLOAT_DATA.
5970
59711999-09-12 Gerd Moellmann <gerd@gnu.org>
5972
5973 * keyboard.c (command_loop_1): Resize mini-window to the
5974 exact size of a message displayed, if any.
5975
5976 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
5977 to exact size if exact_p is non-zero.
5978 (display_echo_area_1): Call resize_mini_window with
5979 new parameter.
5980 (redisplay_internal): Ditto.
5981 (resize_echo_area_axactly): New.
5982
5983 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
5984 new parameter.
5985
5986 * dispextern.h: Change prototype of resize_mini_window.
5987 Add prototype for resize_echo_area_axactly.
5988
5989 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
5990 (syms_of_xfaces): Defsubr accordingly.
5991
5992 * xdisp.c (hscroll_window_tree): Choose cursor row from
5993 desired or current matrix.
5994 (redisplay_internal): Hscroll before updating.
5995
59961999-09-12 Gerd Moellmann <gerd@gnu.org>
5997
5998 * syntax.c (Fforward_word): Use prompt_end_charpos instead
5999 of minibuffer_prompt_length.
6000
6001 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
6002 of minibuffer_prompt_length.
6003 (read_minibuf_unwind): Ditto.
6004 (Fminibuffer_complete_and_exit): Ditto.
6005 (Fminibuffer_complete_word): Ditto.
6006 (Fminibuffer_prompt_end): Ditto.
6007
6008 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
6009 of minibuffer_prompt_length.
6010 (Fline_beginning_position): Ditto.
6011
6012 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
6013 of minibuffer_prompt_length.
6014 (Fmake_indirect_buffer): Ditto.
6015 (Fkill_buffer): Ditto.
6016 (Ferase_buffer): Ditto.
6017
6018 * buffer.h (prompt_end_charpos): Replaces
6019 minibuffer_prompt_length.
6020
6021 * minibuf.c (read_minibuf): Return mini-buffer contents
6022 without the prompt.
6023
6024 * editfns.c (make_buffer_string_both): Take out the code
6025 to handle mini-buffer prompts.
6026 (Fbuffer_string): Handle the prompt here, instead.
6027
6028 * xfaces.c (lface_from_face_name): Resolve face aliases.
6029 (Qmode_line): Replaces Qmodeline.
6030 (realize_basic_faces): Use Qmode_line.
6031 (syms_of_xfaces): Initialize Qmode_line.
6032
60331999-09-12 Gerd Moellmann <gerd@gnu.org>
6034
6035 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
6036 current column after inserting prompt.
6037 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
6038
6039 * xfaces.c (Qframe_update_face_colors): New.
6040 (syms_of_xfaces): Initialize call.
6041 (update_face_from_frame_parameter): Call that function when
6042 the frame's background changes.
6043
60441999-09-12 Richard Stallman <rms@gnu.org>
6045
6046 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
6047
60481999-09-12 Ken Raeburn <raeburn@gnu.org>
6049
6050 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
6051 mark_object, mark_buffer): Use XCAR and XCDR.
6052 * bytecode.c (Fbyte_code): Likewise.
6053 * callint.c (Fcall_interactively, Fprefix_numeric_value):
6054 Likewise.
6055 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
6056 getenv_internal): Likewise.
6057 * dired.c (file_name_completion): Likewise.
6058 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
6059 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
6060 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
6061 * indent.c (Fcompute_motion): Likewise.
6062 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
6063 list_processes_1, Fstart_process, Fopen_network_stream,
6064 wait_reading_process_input, read_process_output_call,
6065 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
6066 status_notify, wait_reading_process_input): Likewise.
6067 * textprop.c (PLIST_ELT_P, property_value, set_properties,
6068 extend_property_ranges): Likewise.
6069 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
6070 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
6071 x_report_frame_params, x_set_cursor_type, x_icon_type,
6072 x_figure_window_size, Fx_create_frame, w32_load_system_font,
6073 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
6074 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
6075 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
6076 x_display_info_for_name, Fx_display_list): Likewise.
6077 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
6078 Fx_popup_menu, Fx_popup_dialog): Likewise.
6079 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
6080 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
6081 w32_term_init, x_delete_display): Likewise.
6082 * xfns.c (x_window_to_frame, x_any_window_to_frame,
6083 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
6084 x_top_window_to_frame, x_set_frame_parameters,
6085 x_report_frame_params, x_set_cursor_type, x_icon_type,
6086 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
6087 Fx_display_list, x_create_tip_frame): Likewise.
6088 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
6089 Fx_popup_menu, Fx_popup_dialog): Likewise.
6090 * xselect.c (x_own_selection, x_get_local_selection,
6091 x_handle_selection_request, x_handle_selection_clear,
6092 x_clear_frame_selections, wait_for_property_change_unwind,
6093 wait_for_property_change, x_handle_property_notify,
6094 copy_multiple_data, x_get_foreign_selection,
6095 lisp_data_to_selection_data, clean_local_selection_data,
6096 x_handle_selection_notify, Fx_get_selection_internal,
6097 x_disown_buffer_selections): Likewise.
6098 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
6099 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
6100 Likewise.
6101
6102 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
6103 XFLOAT_DATA.
6104 * bytecode.c (Fbyte_code): Likewise.
6105 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
6106 fmod_float): Likewise.
6107
61081999-09-11 Richard Stallman <rms@gnu.org>
6109
6110 * xdisp.c (run_window_scroll_functions): If hook functions switch
6111 buffers, switch back after.
6112
61131999-09-11 Ken Raeburn <raeburn@gnu.org>
6114
6115 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
6116 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
6117 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
6118 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
6119 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
6120 XCDR.
6121 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
6122 XCDR.
6123
61241999-09-10 Richard Stallman <rms@gnu.org>
6125
6126 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
6127 not RevertToPointerRoot.
6128 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6129 Fix the code to clear around the scroll bar.
6130
61311999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
6132
6133 * print.c: Support print-circle and related features.
6134 (Vprint_gensym_alist): Removed.
6135 (Vprint_circle, Vprint_continuous_numbering, print_number_index
6136 Vprint_number_table): New variables.
6137 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
6138 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
6139 (print, print_preprocess, print_preprocess_string, print_object):
6140 New/modified functions with print-circle feature. Use
6141 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
6142 (syms_of_print): Defined new Lisp variables `print-circle',
6143 `print-continuous-numbering', `print-number-table'.
6144
61451999-09-10 Gerd Moellmann <gerd@gnu.org>
6146
6147 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
6148 as background color specification instead of an integer.
6149 (image-cache-eviction-delay): Replaces image-eviction-seconds.
6150 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
6151 (clear_image_cache, syms_of_xfns): Use it.
6152 (Qpostscript): Replaces Qghostscript.
6153 (gs_type): Use it.
6154 (gs_image_p): Ditto.
6155 (syms_of_xfns): Initialize Qpostscript.
6156
61571999-09-10 Richard Stallman <rms@gnu.org>
6158
6159 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
6160
61611999-09-09 Richard Stallman <rms@gnu.org>
6162
6163 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
6164
6165 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
6166
61671999-09-09 Gerd Moellmann <gerd@gnu.org>
6168
6169 * fns.c (Fmakehash): Accept just one optional argument TEST.
6170
6171 * xfns.c (QCindex): New.
6172 (syms_of_xfns): Initialize QCindex.
6173 (gif_load): Use it instead of `:image'.
6174
61751999-09-09 Richard Stallman <rms@gnu.org>
6176
6177 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
6178 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
6179
61801999-09-08 Gerd Moellmann <gerd@gnu.org>
6181
6182 * xdisp.c (Qwhen): Replaces QCwhen.
6183 (syms_of_xdisp): Initialized it instead of QCwhen.
6184 (handle_single_display_prop): Use it instead of QCwhen.
6185
61861999-09-08 Ken'ichi Handa <handa@gnu.org>
6187
6188 * charset.c (translate_char): Reset MSBs of arguments of
6189 MAKE_CHAR.
6190 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
6191
61921999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
6193
6194 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
6195
6196 * fns.c (Fbase64_decode_region): Don't place point outside of the
6197 current accessible portion.
6198
61991999-09-07 Richard Stallman <rms@gnu.org>
6200
6201 * keymap.c (fix_submap_inheritance): Do nothing if the proper
6202 parent is an ancestor of SUBMAP; otherwise, add it as the
6203 ultimate ancestor.
6204
62051999-09-07 Gerd Moellmann <gerd@gnu.org>
6206
6207 * xdisp.c (handle_single_display_prop): Change conditional
6208 display property to `:when FORM . VALUE'.
6209
62101999-09-07 Richard Stallman <rms@gnu.org>
6211
6212 * fileio.c (Fwrite_region): Doc fix.
6213
62141999-09-07 Stefan Monnier <monnier@cs.yale.edu>
6215
6216 * fileio.c (Qexcl): New variable.
6217 (report_file_error): Handle EEXIST specially.
6218 (Fwrite_region): Special handling for CONFIRM = `excl'.
6219 (syms_of_fileio): Initialize Qexcl.
6220
62211999-09-07 Gerd Moellmann <gerd@gnu.org>
6222
6223 * xfns.c (x_set_foreground_color): Call
6224 update_face_from_frame_parameter.
6225 (x_set_background_color): Ditto.
6226 (x_set_mouse_color): Ditto.
6227 (x_set_cursor_color): Ditto.
6228 (x_set_border_color): Ditto.
6229 (x_set_scroll_bar_foreground): Ditto.
6230 (x_set_scroll_bar_background): Ditto.
6231
6232 * xfaces.c (recompute_basic_faces): Clear face cache.
6233 (Finternal_set_lisp_face_attribute): Modify frame parameters
6234 if attributes of certain faces are changed.
6235 (update_face_from_frame_parameter): New.
6236
6237 * xfaces.c (realize_basic_faces): Realize new basic faces.
6238
6239 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
6240 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
6241
6242 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
6243 (syms_of_xfaces): Intialize new symbols.
6244
6245 * fns.c (Fmakehash): Take one argument, test, make all the
6246 rest keyword arguments.
6247
6248 * window.c (Fset_window_margins): Make window the first argument.
6249 (set_window_buffer): Call Fset_window_margins with window as first
6250 argument.
6251
62521999-09-07 Gerd Moellmann <gerd@gnu.org>
6253
6254 * xfaces.c (Qfringe): Replaces Qmargin.
6255
62561999-09-07 Kenichi Handa <handa@etl.go.jp>
6257
6258 * charset.h: Lots of comments fixed.
6259 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
6260 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
6261
6262 * charset.c : Lots of comments fixed.
6263 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
6264 (CHAR_COMPONENTS_VALID_P): Name changed from
6265 CHAR_COMPONENT_VALID_P. Caller changed.
6266
62671999-09-06 Richard Stallman <rms@gnu.org>
6268
6269 * insdel.c (syms_of_insdel): Define Lisp variable
6270 inhibit-modification-hooks.
6271
62721999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
6273
6274 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
6275 unexaix.c.
6276
6277 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
6278
62791999-09-06 Dave Love <fx@gnu.org>
6280
6281 * unexaix.c: New version incorporating Michael Sperber's changes
6282 from XEmacs. Should solve problems on AIX 4.3.
6283
6284 * lread.c (Vbyte_boolean_vars): New variable.
6285 (defvar_bool, syms_of_lread): Use it.
6286
62871999-09-05 Richard Stallman <rms@gnu.org>
6288
6289 * minibuf.c (read_minibuf): Put all three properties on the
6290 same range, the whole prompt.
6291
62921999-09-05 Gerd Moellmann <gerd@gnu.org>
6293
6294 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
6295 (Fplay_sound, syms_of_sound): Use it.
6296 (parse_sound): Allow float volume values in the range [0, 1].
6297 (Fplay_sound): Ditto.
6298
6299 * window.c (Fset_window_vscroll): Make window the first argument,
6300 amount to scroll the second. Take non-negative vscroll as
6301 argument.
6302 (Fwindow_vscroll): Return non-negative vscroll.
6303
6304 * xfns.c (Fx_show_tip): Improve documentation.
6305
63061999-09-05 Gerd Moellmann <gerd@gnu.org>
6307
6308 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
6309 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
6310 `top-line' and `top_line' to `header-line' and `header_line'.
6311 Likewise for similar spellings.
6312
63131999-09-05 Gerd Moellmann <gerd@gnu.org>
6314
6315 * xdisp.c (row_containing_pos): New.
6316 (try_window_id): Use it.
6317
6318 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
6319 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
6320 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
6321 Likewise for upper-case etc.
6322
63231999-09-05 Gerd Moellmann <gerd@gnu.org>
6324
6325 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6326 Fix reference to renamed variable.
6327
63281999-09-04 Gerd Moellmann <gerd@gnu.org>
6329
6330 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
6331 (window_fixed_size_p): Use Qwindow_size_fixed instead of
6332 Qfixed_window_size.
6333 (syms_of_window): Ditto.
6334
6335 * fns.c (Fmakehash): Exchange optional test and size arguments.
6336
63371999-09-03 Gerd Moellmann <gerd@gnu.org>
6338
6339 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
6340 under newly created scroll bar.
6341 (expose_window): If window is not yet fully initialized, do
6342 nothing. This can happen when toolkit scroll bars are used and a
6343 window is split. Reconfiguring the scroll bars will generate an
6344 expose for a newly created window.
6345
6346 * frame.h (struct frame): New member `gamma'.
6347
6348 * xfns.c: Include math.h. Add extern declaration for atof in case
6349 we don't see one.
6350 (Qscreen_gamma): New.
6351 (struct x_frame_parm_table): Add prototypes, add
6352 x_set_screen_gamma.
6353 (gamma_correct): New function.
6354 (defined_color): Call it.
6355 (x_set_screen_gamma): New.
6356 (x_set_title): Add parameter old_value.
6357 (RES_TYPE_FLOAT): New.
6358 (x_get_arg): Handle RES_TYPE_FLOAT.
6359 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
6360 (lookup_pixel_color): Change call to x_alloc_nearest_color to
6361 new prototype.
6362 (lookup_rgb_color): Ditto.
6363 (syms_of_xfns): Initialize Qscreen_gamma.
6364
6365 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
6366 New. Allocate color for lwlib widgets.
6367 (x_alloc_nearest_color): Change parameter list include the
6368 frame on which to allocate colors. Gamma-correct colors.
6369 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
6370 parameter list.
6371
6372 * xterm.h: Change protorype of x_alloc_nearest_color.
6373
63741999-09-03 Richard Stallman <rms@gnu.org>
6375
6376 * callproc.c: Delete the system-independent include of stdlib.h
6377 (leaving only the one in the WINDOWSNT conditional).
6378
63791999-09-03 Andrew Choi <choi@cs.hku.hk>
6380
6381 * callproc.c (call-process) [macintosh]: Call mac_run_command in
6382 sysdep.c. The Mac code is modeled after the DOS code.
6383
6384 * dispextern.h [macintosh]: Include macterm.h to define substitute X
6385 Window types and macros.
6386
6387 * frame.h: Do nothing if included a second time.
6388 (enum output_method): Add mac_output frame type.
6389 (union output_data): Add new alternative `mac'.
6390 (FRAME_MAC_P): New macro.
6391
6392 * frame.c (Fframep) [macintosh]: Handle mac frame type.
6393 (syms_of_frame_1): Initialize Qmac.
6394 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
6395 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
6396 (Fmodify_frame_parameters) [macintosh]: Call
6397 mac_set_frame_parameter in macterm.c.
6398
6399 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
6400 (512) because Mac compilers limit local data of a function to 32K.
6401
6402 * make-docfiles.c: Correctly handle input files with Mac-style
6403 eol's.
6404
6405 * sysdep.c: Define numerous routines to emulate Unix system calls.
6406
6407 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
6408 file of an X Window environment.
6409
6410 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
6411 x-display-grayscale, x-color-defined-p, and x-color-values.
6412
6413 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
6414 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
6415 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
6416 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
6417 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
6418 New functions, replacing POSIX features.
6419
6420 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
6421 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
6422 (InitEmacsPasswdDir, run_mac_command): New subroutines.
6423
6424 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
6425 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
6426 (myPasswdDir, TempDirName, sys_siglist): New variables.
6427
6428 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
6429 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
6430 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
6431 Define empty stubs so Emacs will link.
6432
64331999-09-03 Gerd Moellmann <gerd@gnu.org>
6434
6435 * xdisp.c: Use XCAR and XCDR instead of XCONS.
6436
6437 * window.h: New member frozen_window_start_p.
6438
6439 * window.c (foreach_window, foreach_window_1): New.
6440 (freeze_window_start, freeze_window_starts): New.
6441 (make_window): Initialize frozen_window_start_p.
6442 (replace_window): Ditto.
6443 (Fset_window_point): Remove references to deleted variables.
6444 (Fset_window_start): Ditto.
6445
6446 * xdisp.c (Vresize_mini_config, resize_mini_frame,
6447 resize_mini_initial_height): Removed.
6448 (syms_of_xdisp): Remove references to these variables.
6449 (resize_mini_window): Don't save window configuration, freeze
6450 window starts instead. Enlarge window until displaying an empty
6451 buffer, then shrink it. Make the function externally visible.
6452 (redisplay_window): Treat frozen window start like forced start,
6453 but accept point outside of the window.
6454
6455 * dispextern.h: Add function prototype for resize_mini_window.
6456
6457 * minibuf.c (read_minibuf_unwind): Resize mini-window when
6458 reaching minibuf_level 0.
6459
6460 * lisp.h: Remove extern declarations for variables deleted from
6461 xdisp.c.
6462
6463 * dispnew.c (adjust_frame_glyphs): Remove reference to
6464 Vresize_mini_config.
6465
64661999-09-03 Gerd Moellmann <gerd@gnu.org>
6467
6468 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
6469 to USE_TOOLKIT_SCROLL_BARS.
6470
6471 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
6472 here.
6473 (XTset_vertical_scroll_bar): Clarify position computations. Clear
6474 under newly created scroll bar. Put toolkit scroll bars in the
6475 middle of the area reserved for the scroll bar.
6476
64771999-09-03 Kenichi Handa <handa@etl.go.jp>
6478
6479 The following changes are for the new handling of mulitbyte
6480 sequence. Now, except for a composite character, no multibyte
6481 character in string/buffer has trailing garbage bytes. For
6482 instance, the length of string "\201\300\300" is now 2, the first
6483 character is Latin-1 A-grave, the second is raw \300.
6484
6485 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
6486 are negative.
6487 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
6488 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
6489 (PARSE_COMPOSITE_SEQ): New macro.
6490 (PARSE_CHARACTER_SEQ): New macro.
6491 (PARSE_MULTIBYTE_SEQ): New macro.
6492 (CHAR_PRINTABLE_P): New macro.
6493 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
6494 (STRING_CHAR_AND_LENGTH): Likewise.
6495 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
6496 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
6497 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
6498
6499 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
6500 (SPLIT_CHARACTER_SEQ): New macro.
6501 (SPLIT_MULTIBYTE_SEQ): New macro.
6502 (CHAR_COMPONENT_VALID_P): New macro.
6503 (non_ascii_char_to_string): Generate a multibyte sequence as far
6504 as possible.
6505 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
6506 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
6507 (split_non_ascii_string): Likewise.
6508 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
6509 (char_printable_p): New function.
6510 (translate_char): Check character by NATNUMP instead of INTEGERP.
6511 (unibyte_char_to_multibyte): Call char_valid_p instead of
6512 VALID_MULTIBYTE_CHAR_P.
6513 (Fmake_char_internal): Check the arguments more rigidly.
6514 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
6515 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
6516 (Fmultibyte_char_to_unibyte): Check the validity of character by
6517 CHAR_VALID_P.
6518 (chars_in_text): Call multibyte_chars_in_text.
6519 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
6520 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
6521 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
6522
6523 * data.c (Faset): Adjust the way to check byte-combining
6524 possibility for the new handling of multibyte sequence.
6525
6526 * editfns.c (Fsubst_char_in_region): Likewise.
6527
6528 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
6529 (string_char_to_byte): Likewise.
6530 (string_byte_to_char): Likewise.
6531
6532 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
6533 macro STRING_CHAR_AND_LENGTH. Caller changed.
6534
6535 * insdel.c (count_combining_composition): New function.
6536 (count_combining_before): Adjust the way to check byte-combining
6537 possibility for the new handling of multibyte sequence. Call
6538 count_combining_composition for a composite character.
6539 (count_combining_after): Likewise.
6540
6541 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
6542 (print): Likewise.
6543
6544 * dispextern.h (struct it): Change the size of the member
6545 `ctl_chars'.
6546
6547 * xdisp.c (get_next_display_element): Display incomplete multibyte
6548 sequence (e.g. \222\300) by octal form.
6549
65501999-09-02 Gerd Moellmann <gerd@gnu.org>
6551
6552 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
6553
6554 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
6555 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
6556
65571999-09-02 Gerd Moellmann <gerd@gnu.org>
6558
6559 * buffer.c (set_buffer_internal): Never set
6560 windows_or_buffers_changed.
6561
6562 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
6563 if we have displayed to the bottom of the window.
6564
6565 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
6566 in both directions. Extend documentation.
6567
65681999-09-01 Gerd Moellmann <gerd@gnu.org>
6569
6570 * minibuf.c (read_minibuf): Flush display after setting cursor to
6571 column 0.
6572
65731999-08-31 Gerd Moellmann <gerd@gnu.org>
6574
6575 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
6576 already defined. This avoids a warning from buffer.c.
6577
65781999-08-30 Gerd Moellmann <gerd@gnu.org>
6579
6580 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
6581 of both margins.
6582 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
6583 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
6584 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
6585
6586 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
6587 once instead of twice.
6588 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
6589
6590 * xterm.c: Remove unused bitmaps.
6591 (continued_bits, continuation_bits, overlay_bits): Change images.
6592 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
6593 instead of FRAME_X_FLAGS_AREA_WIDTH.
6594 (x_after_update_window_line): Ditto.
6595 (x_draw_bitmap): Likewise.
6596 (x_draw_row_bitmaps): Likewise.
6597 (x_draw_glyph_string_box): Likewise.
6598 (x_draw_glyphs): Likewise.
6599 (x_scroll_run): Likewise.
6600 (expose_window_tree): Likewise.
6601 (note_mode_line_highlight): Likewise.
6602 (XTset_vertical_scroll_bar): Likewise.
6603 (x_clip_to_row): Likewise.
6604 (x_set_window_size): Likewise.
6605
6606 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
6607 of 2 * that value.
6608
6609 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
6610 2 * that value.
6611 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
6612 FRAME_FLAGS_AREA_WIDTH.
6613
6614 * window.c (coordinates_in_window): Use
6615 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6616 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
6617 instead of twice.
6618
6619 * widget.c (set_frame_size): Set flags_area_extra to
6620 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
6621 (EmacsFrameSetCharSize): Ditto.
6622
6623 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
6624 instead of FRAME_FLAGS_AREA_WIDTH.
6625
6626 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
6627 FRAME_FLAGS_AREA_COLS once.
6628 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
6629 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
6630
66311999-08-30 Gerd Moellmann <gerd@gnu.org>
6632
6633 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
6634 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
6635
66361999-08-30 Gerd Moellmann <gerd@gnu.org>
6637
6638 * fns.c (QCweakness): Replaces QCweak.
6639 (Fmake_hash_table): Ditto.
6640 (Fmakehash): Ditto.
6641 (syms_of_fns): Ditto.
6642
66431999-08-29 Richard Stallman <rms@gnu.org>
6644
6645 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
6646
6647 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
6648
6649 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
6650 Add support for nested comments.
6651
863476d1
SM
6652 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
6653 Consolidate the forward comment code into the new `forw_comment'.
6654 (forw_comment): New subroutine. Added support for nested comments.
6655 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
6656 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
6657
66581999-08-28 Ken Raeburn <raeburn@gnu.org>
6659
6660 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
6661 names of structure elements if HIDE_LISP_IMPLEMENTATION is
6662 defined, to help detect code that uses knowledge of the Lisp
6663 internals that it shouldn't have.
6664 (XFLOAT_DATA): New macro.
6665
66661999-08-25 Gerd Moellmann <gerd@gnu.org>
6667
6668 * syntax.c (Fforward_word): If in a mini-buffer and moving
6669 backwards, stop in front of the prompt to prevent accidentially
6670 moving into the read-only prompt.
6671
6672 * window.c (Frecenter): Clear frame if called with nil or no arg.
6673
6674 * xdisp.c (resize_mini_window): Don't resize if
6675 Vmax_mini_window_height is nil. Otherwise, use a default if
6676 Vmax_mini_window_height is not ot a number.
6677 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
6678
66791999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
6680
6681 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
6682 * m/iris4d.h: Use unexelf for IRIX 5.*.
6683 * m/iris5d.h: Use unexelf for IRIX 6.*.
6684 * unexsgi.c: Deleted.
6685
6686 * unexelf.c: Auto-detect .sbss section.
6687 (round_up): Make it static.
6688 (unexec): Declare alignment as Elf Word. Skip ``Program
6689 segment above .bss'' test on MIPS without .sbss.
6690 Copy sections .got and .sdata1 sections. Adjust offsets in
6691 sections .sdata, .lit4, .lit8, .got and .sdata1.
6692
66931999-08-25 Gerd Moellmann <gerd@gnu.org>
6694
6695 * xdisp.c (try_window_id): Remove typo.
6696
66971999-08-24 Gerd Moellmann <gerd@gnu.org>
6698
6699 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
6700 unchanged text at the bottom when computing the cursor position.
6701 (message3_nolog): Raise frame only if minibuffer_auto_raise is
6702 set.
6703
6704 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
6705
67061999-08-24 Gerd Moellmann <gerd@gnu.org>
6707
6708 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
6709 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
6710 (syms_of_xfaces): Ditto.
6711
6712 * window.c (Fset_window_point): Reset Vresize_mini_config.
6713 (Fset_window_start): Ditto.
6714 (set_window_buffer): Ditto.
6715
6716 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
6717
6718 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
6719 before calling try_window.
6720 (echo_area_display): If height has changed, update other windows.
6721 (resize_mini_frame, resize_mini_initial_height): New.
6722 (resize_mini_window): Save/restore window configuration
6723 differently.
6724
6725 * lisp.h (Vresize_mini_config, resize_mini_frame,
6726 resize_mini_initial_height): Add extern declarations.
6727
6728 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
6729 CANON_X_UNIT.
6730
6731 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
6732 being redefined in jconfig.h.
6733
67341999-08-23 Ken'ichi Handa <handa@gnu.org>
6735
6736 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
6737
67381999-08-22 Gerd Moellmann <gerd@gnu.org>
6739
6740 * alloc.c (mark_glyph_matrix): Mark strings only.
6741
6742 * xdisp.c (redisplay_internal): Clear garbaged frames after
6743 resizing mini-window.
6744
67451999-08-22 Gerd Moellmann <gerd@gnu.org>
6746
6747 * xdisp.c (unwind_with_echo_area_buffer): Use
6748 set_buffer_internal_1 instead of set_buffer_internal.
6749 (with_echo_area_buffer): Ditto.
6750
6751 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
6752 only if buffer is displayed somewhere.
6753
6754 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
6755
6756 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
6757 (gap_right): Ditto.
6758 (modify_region): Ditto.
6759
6760 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
6761
6762 * xdisp.c (Vresize_mini_config): New.
6763 (resize_mini_window): Use it to save restore original window
6764 configuration
6765 (syms_of_xdisp): Initialize it.
6766
6767 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
6768
6769 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
6770
6771 * xdisp.c (reconsider_clip_changes): New.
6772 (redisplay_internal, redisplay_window): Call it.
6773 (mark_window_display_accurate, redisplay_internal): Set current
6774 matrix' buffer, begv, zv.
6775
6776 * window.c (Fset_window_hscroll): Set
6777 prevent_redisplay_optimizations_p instead of clip_changed.
6778 (Fset_window_hscroll): Ditto.
6779 (temp_output_buffer_show): Ditto.
6780 (Fset_window_vscroll): Ditto.
6781
6782 * buffer.c (reset_buffer): Set clip_changed to 0 and
6783 prevent_redisplay_optimizations_p to 1.
6784 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
6785
6786 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
6787 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
6788 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
6789 END_UNCHANGED): New.
6790 (struct buffer_text): Add beg_unchanged, end_unchanged,
6791 unchanged_modified, overlay_unchanged_modified.
6792
6793 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
6794 overlay_unchanged_modified): Removed.
6795 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
6796 (unwind_with_echo_area_buffer): Don't restore them.
6797 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
6798 (text_outside_line_unchanged_p, redisplay_internal,
6799 try_scrolling): Use/set buffer-specific beg/end_unchanged.
6800 (redisplay_window): Let try_window_id be called if more than one
6801 window is displayed. Use/set buffer-specific beg/end_unchanged.
6802 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
6803 try_window_id):
6804 Use buffer-specific beg/end_unchanged.
6805
6806 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
6807 overlay_unchanged_modified): Remove extern declarations.
6808
6809 * keyboard.c (command_loop_1): Set beg/end_unchanged per
6810 buffer.
6811
6812 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
6813 (gap_right): Ditto.
6814 (adjust_after_replace): Likewise.
6815 (replace_range, del_range_2, modify_region): Likewise.
6816
6817 * dispnew.c (direct_output_for_insert): Set beg_unchanged
6818 and unchanged_modified per buffer.
6819
6820 * coding.c (code_convert_region): Compute beg/end_unchanged per
6821 buffer.
6822
6823 * buffer.c (modify_overlay): Compute beg/end_unchanged
6824 per buffer.
6825 (Fget_buffer_create): Initialize new members of the buffer
6826 structure.
6827
68281999-08-22 Gerd Moellmann <gerd@gnu.org>
6829
6830 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
6831
6832 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
6833 (Qkey_value_weak): Removed.
6834 (make_hash_table): Use nil, `key', `value', t for weakness.
6835 (Fmake_hash_table): Ditto.
6836 (copy_hash_table): New.
6837 (Fcopy_hash_table): New.
6838
68391999-08-22 Gerd Moellmann <gerd@gnu.org>
6840
6841 * xfns.c: Call change_frame_size and do_pending_window_change with
6842 new parameter.
6843
68441999-08-21 Gerd Moellmann <gerd@gnu.org>
6845
6846 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
6847 well.
6848 (redisplay_internal): Resize mini-window only if text might
6849 have changed.
6850 (display_echo_area): Reset displayed echo_area_buffer to nil
6851 at the end if we're displaying a nil message.
6852
68531999-08-21 Gerd Moellmann <gerd@gnu.org>
6854
6855 * fns.c (hash_lookup): Test with EQ before calling key comparion
6856 function.
6857 (hash_remove): Ditto.
6858 (cmpfn_eq): Removed.
6859 (cmpfn_eql): Don't test with EQ.
6860 (cmpfn_equal): Ditto.
6861 (make_hash_table): Set comparison function for `eq' to null.
6862
6863 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
6864 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
6865
6866 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
6867
6868 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
6869 xterm.c: Call change_frame_size and do_pending_window_change with
6870 new parameter.
6871
6872 * dispnew.c (do_pending_window_change): Add parameter `safe'.
6873 (change_frame_size): Ditto.
6874 (change_frame_size_1): Ditto. Deley size changes if redisplaying
6875 and not called from a safe place.
6876 (window_change_signal): Call change_frame_size with new parameter.
6877
6878 * dispextern.h: Change prototypes for do_pending_window_change
6879 and change_frame_size.
6880
6881 * xfaces.c (face_at_buffer_position): Don't xassert that
6882 window's buffers equals current_buffer; this is not the
6883 case during echo area display.
6884
68851999-08-21 Gerd Moellmann <gerd@gnu.org>
6886
6887 * xdisp.c, minibuf.c: Remove conditional compilation on
6888 NO_PROMPT_IN_BUFFER.
6889
6890 * minibuf.c (Fminibuffer_prompt_end): New.
6891 (syms_of_minibuf): Defsubr it. Remove
6892 minibuffer-prompt-in-buffer.
6893 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
6894 Extend documentation.
6895
6896 * xdisp.c (get_next_display_element): Display \r as ^M.
6897
6898 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
6899 under scroll bar widget.
6900
69011999-08-21 Gerd Moellmann <gerd@gnu.org>
6902
6903 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
6904 anywhere.
6905 (unwind_redisplay): Return nil.
6906 (clear_garbaged_frames): New.
6907 (redisplay_internal): Use it.
6908 (echo_area_display): Ditto.
6909 (resize_mini_window): Mew.
6910 (display_echo_area_1): Use it to resize echo area window.
6911 (redisplay_internal): Use it to resize active mini-window.
6912
6913 * dispextern.h, lisp.h: Add function prototypes.
6914
6915 * dispnew.c (set_window_cursor_after_update): Do the
6916 cursor_in_echo_area case only for a mini-window showing
6917 a message. Don't let cursor end up after the end of a row.
6918
6919 * xdisp.c (echo_area_glyphs, echo_area_message,
6920 echo_area_glyphs_length, previous_echo_glyphs,
6921 previous_echo_area_message, previous_echo_area_glyphs_length):
6922 Removed.
6923 (Vmessage_stack, echo_area_buffer, echo_buffer,
6924 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
6925 (message2_nolog): Use set_message and clear_message.
6926 (message3): Rename parameter len to nbytes to make clear what
6927 it is.
6928 (message3_nolog): Ditto. Use set_message and clear_message.
6929 (update_echo_area): Rewritten.
6930 (with_echo_area_buffer): New.
6931 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
6932 (setup_echo_area_for_printing): New.
6933 (display_echo_area, display_echo_area_1): New.
6934
6935 (current_message, current_message_1): New.
6936 (push_message, restore_message, pop_message,
6937 check_message_stack): New.
6938 (truncate_echo_area): Rewritten.
6939 (truncate_message_1): New.
6940 (set_message, set_message_1, clear_message): New.
6941 (echo_area_display): Rewritten.
6942 (redisplay_internal): Check for needed echo area update
6943 differently.
6944 (redisplay_preserve_echo_area): Rewritten.
6945 (redisplay_window): Check for mini-window displaying echo area
6946 message differently.
6947 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
6948 Remove initialzation of removed variables.
6949 (init_xdisp): Remove references to removed variables.
6950
6951 * dispnew.c (adjust_frame_message_buffer): Removed references
6952 to echo_area_glyphs and previous_echo_glyphs.
6953 (direct_output_for_insert): Check for mini-window displaying
6954 echo area message differently.
6955 (update_frame): Likewise.
6956 (set_window_cursor_after_update): Likewise. In echo area,
6957 don't try to set cursor on rows that aren't enabled.
6958
6959 * print.c: Remove conditional compilation on `standalone'.
6960 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
6961 glyph_to_str_cpy): Remove that section because GLYPHs are no
6962 longer used in that way.
6963 (PRINTDECLARE): Add multibyte.
6964 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
6965 (printbufidx): Removed.
6966 (printchar, strout): Rewritten.
6967
6968 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
6969 a struct kboard.
6970 (echo_kboard): New.
6971 (echo_now): Set echo_kboard to the current kboard.
6972 (cancel_echoing): Set echo_kboard to null.
6973 (cmd_error_internal): Use clear_message, remove references
6974 to echo_area_glyphs and echo_area_message.
6975 (command_loop_1): Check for echo area messages differently.
6976 (read_char): Likewise.
6977 (record_menu_key): Use clear_message.
6978 (Fexecute_extended_command): Check for echo area messages
6979 differently. Use push_message, restore_message, pop_message.
6980
6981 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
6982 pop_message.
6983
6984 * emacs.c (shut_down_emacs): Call check_message_stack.
6985
6986 * lisp.h: Add function prototypes and extern declarations for
6987 new functions and variables.
6988
6989 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
6990 pop_message.
6991
6992 * minibuf.c (read_minibuf): Use clear_message instead of
6993 setting echo_area_glyphs.
6994 (Fminibuffer_completion_help): Ditto.
6995
6996 * editfns.c (Fcurrent_message): Rewritten.
6997
6998 * frame.c, window.h: Remove references to echo_area_glyphs
6999 and previous_echo_glyphs.
7000
70011999-08-21 Dave Love <fx@gnu.org>
7002
7003 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
7004 * aix4-1.h: Likewise.
7005
7006 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
7007
70081999-08-20 Gerd Moellmann <gerd@gnu.org>
7009
7010 * xfns.c: Remove tiff34 prefix from include.
7011
70121999-08-20 Dave Love <fx@gnu.org>
7013
7014 * cm.c: Revert previous change.
7015
70161999-08-19 Gerd Moellmann <gerd@gnu.org>
7017
7018 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
7019 under scroll bar with width FRAME_SCROLL_BAR_COLS.
7020
70211999-08-18 Dave Love <fx@gnu.org>
7022
7023 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
7024 stdlib.h.
7025
7026 * doprnt.c: Use stdlib.h, unistd.h.
7027
7028 * config.in: Add HAVE_TERMCAP_H.
7029
7030 * cm.c: Use termcap.h.
7031
70321999-08-18 Gerd Moellmann <gerd@gnu.org>
7033
7034 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
7035 FRAME_X_WINDOW (f) being null at the of the function. If widgets
7036 cannot be created we will already have crashed earlier. Call
7037 lw_set_main_areas with a null menu-bar widget, so that we have
7038 a reasonable default.
7039 (Fx_create_frame): Rearranged so that Lisp errors during frame
7040 initialization cause less damage. Initialize menu bar widget
7041 here.
7042
70431999-08-18 Gerd Moellmann <gerd@gnu.org>
7044
7045 * dispnew.c (update_frame_line): Fix previous change. If writing
7046 whole line clear to end of frame.
7047
70481999-08-17 Gerd Moellmann <gerd@gnu.org>
7049
7050 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
7051 and `right-bitmap-area' if position is in the bitmap areas. This
7052 avoids an error when clicking on the bitmap areas. Instead, they
7053 are currently treated like clicks inside the window.
7054 (coordinates_in_window): Return 5 and 6 for bitmap areas.
7055 (Qleft_bitmap_area, Qright_bitmap_area): New.
7056 (syms_of_window): Initialize new symbols.
7057
7058 * dispnew.c (update_frame_line): If writing whole line,
7059 don't write trailing spaces unless we must.
7060
7061 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
7062 (redisplay_internal): Register unwind_redisplay with
7063 register_unwind_protect.
7064 (try_window_reusing_current_matrix): If new start > old start,
7065 give up if start pos of first reusable row is not equal to new
7066 start.
7067
7068 * eval.c (Fsignal): Don't reset redisplaying_p here.
7069
7070 * xterm.c (expose_area): If row extends face to end of line,
7071 write the whole line.
7072
70731999-08-16 Gerd Moellmann <gerd@gnu.org>
7074
7075 * dispextern.h (struct it): Remove member
7076 show_trailing_whitespace_p.
7077
7078 * dispnew.c (direct_output_for_insert): Use
7079 Vshow_trailing_whitespace instead of former iterator member
7080 show_trailing_whitespace_p.
7081 (direct_output_forward_char): Don't do it if hightlighting
7082 trailing whitespace.
7083
7084 * xdisp.c (Qshow_trailing_whitespace): Removed.
7085 (Vshow_trailing_whitespace): Added.
7086 (init_iterator): Remove initialization code for
7087 show_trailing_whitespace_p.
7088 (redisplay_internal): Don't try cursor movement in this_line
7089 if showing trailing whitespace.
7090 (redisplay_window): Likewise for cursor movement in current
7091 matrix and try_window_id.
7092 (try_window_reusing_current_matrix): Likewise.
7093 (trailing_whitespace_p): Return 0 if trailing whitespace is
7094 in front of point.
7095 (display_line): Use Vshow_trailing_whitespace instead of
7096 former iterator member show_trailing_whitespace_p.
7097 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
7098
70991999-08-16 Gerd Moellmann <gerd@gnu.org>
7100
7101 * window.c (Fpos_visible_in_window_p): Rewritten.
7102
7103 * xfaces.c (add_to_log): Renamed from display_message.
7104 Don't display messages in echo area.
7105
7106 * xterm.c (x_draw_glyph_string_box): Use the background width
7107 of the glyph string for the width of the box.
7108
71091999-08-16 Stefan Monnier <monnier@cs.yale.edu>
7110
7111 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
7112
71131999-08-16 Geoff Voelker <voelker@cs.washington.edu>
7114
7115 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
7116 background first, and then set other parameters that might
7117 depend upon their new values.
7118
71191999-08-15 Gerd Moellmann <gerd@gnu.org>
7120
7121 * xfaces.c (Vfont_list_limit): New.
7122 (syms_of_xfaces): Make it a user-variable.
7123 (DEFAULT_FONT_LIST_LIMIT): New.
7124 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
7125 maximally that number of fonts, otherwise use
7126 DEFAULT_FONT_LIST_LIMIT.
7127 (Fx_font_family_list): Bind `font-list-limit' to higher values
7128 until we have all fonts.
7129 (Fxfont_list): Additionally return the full names of fonts and
7130 their registry and encoding.
7131
7132 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7133 Simplify clearing "under" scroll bar.
7134
7135 * window.c (Qfixed_window_size): New.
7136 (syms_of_window): Initialiaze it.
7137 (check_all_windows): Add return type void.
7138 (window_fixed_size_p): New. Return non-zero if window
7139 is fixed-size.
7140 (window_min_size_1): New.
7141 (window_min_size): Handle fixed-size windows.
7142 (size_window): New. Rewritten combination of set_window_height and
7143 set_window_width that handles fixed-size windows.
7144 (set_window_height): Call it.
7145 (set_window_width): Call it.
7146 (Fsplit_window): Give an error on attempt to split a fixed-size
7147 window.
7148 (change_window_height): Partly rewritten to handle fixed-size
7149 windows.
7150
71511999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7152
7153 * process.c (Fopen_network_stream): Fix previous change.
7154
71551999-08-13 Karl Heuer <kwzh@gnu.org>
7156
7157 * xdisp.c (line_number_display_limit_width): New var.
7158 (decode_mode_spec): Use it instead of hardcoded value.
7159 (syms_of_xdisp): Defvar it.
7160
71611999-08-13 Richard M. Stallman <rms@gnu.org>
7162
7163 * eval.c (run_hook_list_with_args): Gcpro `globals'.
7164 (run_hook_with_args): Likewise.
7165
7166 * window.h (struct window): New field too_small_ok.
7167
7168 * window.c (set_window_height, set_window_width):
7169 If window starts out "too small", set its too_small_ok flag.
7170 If window's too_small_ok flag is set, don't delete it
7171 unless it is so small it would cause a crash.
7172
71731999-08-13 Gerd Moellmann <gerd@gnu.org>
7174
7175 * window.c (MINSIZE): Removed.
7176 (window_min_size): New.
7177 (set_window_height): Use window_min_size.
7178 (change_window_height): Ditto.
7179
71801999-08-12 Gerd Moellmann <gerd@gnu.org>
7181
7182 * indent.c (vmotion): Don't add in mini-buffer prompt width
7183 if prompts are inserted into mini-buffer.
7184
71851999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
7186
7187 * config.in: Add HAVE_GETADDRINFO.
7188 * process.c (Fopen_network_stream): Use getaddrinfo.
7189
71901999-08-11 Gerd Moellmann <gerd@gnu.org>
7191
7192 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
7193 glyphs to -1.
7194
7195 * xdisp.c (face_before_or_after_it_pos): If position after
7196 or before iterator's current position in the buffer is out
7197 of bounds, return the iterator's original face id.
7198
7199 * dispnew.c (mirror_make_current): If desired row isn't enabled,
7200 just swap glyphs pointers between current and desired row.
7201 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
7202 desired matrix method string to current matrix.
7203
72041999-08-11 Kenichi Handa <handa@etl.go.jp>
7205
7206 * lisp.h (CHAR_MODIFIER_MASK): New macro.
7207
7208 * lread.c (read_escape): For Control modifier, pay attention to
7209 multibyte character.
7210 (read1): Likewise. Singal error or a multibyte character which
7211 has a modifer bit. Check validity of Shift modifer.
7212
7213 * charset.c (non_ascii_char_to_string): Handle modifier bits as
7214 the same as Lisp reader.
7215
72161999-08-10 Richard M. Stallman <rms@gnu.org>
7217
7218 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
7219
72201999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
7221
7222 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
7223
72241999-08-10 Eli Zaretskii <eliz@gnu.org>
7225
7226 * msdos.c (IT_set_face): Abort if the default face is not realized
7227 and cached.
7228 (IT_write_glyphs): Reset the screen face to the default face
7229 before writing glyphs.
7230
7231 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
7232 colors from the frame here.
7233 (realize_tty_face) [MSDOS]: Do it here. Update the face
7234 attributes with the actual name of the color taken from the
7235 frame.
7236
7237 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
7238 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
7239
7240 * frame.c (Fframe_parameters): Swap foreground and background
7241 colors returned in frame parameters if the frame has reverse in
7242 its parameter alist.
7243 (Fmake_terminal_frame): Make a unique copy of face_alist for
7244 each frame.
7245
72461999-08-07 Richard Stallman <rms@gnu.org>
7247
7248 * buffer.c (Fprevious_overlay_change): Just return
7249 the answer obtained from overlays_at.
7250
7251 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
7252 Use XpmCloseness and attrs.closeness instead.
7253
72541999-08-06 Richard Stallman <rms@gnu.org>
7255
7256 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
7257
72581999-08-06 Geoff Voelker <voelker@cs.washington.edu>
7259
7260 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
7261 Ffile_attributes_lessp): New functions.
7262 (Fdirectory_files): Use directory_files_internal.
7263 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
7264 Ffile_attributes_lessp.
7265
7266 * w32.c (stat): Check for directory ending in separator when
7267 doing readdir fast path.
7268
7269 * w32fns.c (x_set_icon_type): Support setting frame icons.
7270 * w32term.c (x_bitmap_icon): New function.
7271 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
7272
72731999-08-06 Gerd Moellmann <gerd@gnu.org>
7274
7275 * xdisp.c (set_iterator_to_next): After delivering a character
7276 from a display vector, restore face and charset to what they were
7277 before the display vector was processed.
7278
72791999-08-06 Gerd Moellmann <gerd@gnu.org>
7280
7281 * xdisp.c (reseat_at_next_visible_line_start): New parameter
7282 on_newline_p.
7283 (set_iterator_to_next): After delivering last char
7284 from display vector, reseat on next visible line start if
7285 dpvec_char_len < 0.
7286 (next_element_from_buffer): Set dpvec_char_len to -1 for
7287 selective display.
7288
72891999-08-06 Gerd Moellmann <gerd@gnu.org>
7290
7291 * xdisp.c (compute_line_metrics): If first line's physical ascent
7292 is larger than its logical ascent, use the physical ascent, and
7293 make the row taller. Set row's overlapping_p flag.
7294
7295 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
7296 (direct_output_for_insert): Ditto.
7297
7298 * dispextern.h (struct glyph_row): Add overlapping_p.
7299
7300 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
7301
7302 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
7303 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
7304
7305 * dispnew.c (direct_output_for_insert): Don't use this method if
7306 row is overlapped by others.
7307 (update_text_area): Write full line if current line is overlapped.
7308 (redraw_overlapped_rows): New.
7309 (update_window): Call it.
7310 (redraw_overlapping_rows): New.
7311 (update_window): Call it.
7312 (scrolling_window): Make sure overlapped_p flag in current rows is
7313 unchanged.
7314 (row_equal_p): Take rows overlapped_p flag into account.
7315
7316 * dispextern.h (struct glyph_row): Add flag overlapped_p.
7317
7318 * xterm.c (x_fix_overlapping_area): New.
7319 (x_redisplay_interface): Add x_fix_overlapping_area.
7320
7321 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
7322
73231999-08-06 Gerd Moellmann <gerd@gnu.org>
7324
7325 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
7326 (struct glyph_string): Add member for_overlaps_p.
7327 (x_get_glyph_string_clip_rect): If glyph string draws foreground
7328 of overlapping rows, clip to window bottom.
7329 (x_fill_glyph_string): Add parameter overlaps_p.
7330 (x_fill_composite_glyph_string): Ditto.
7331 (BUILD_GLYPH_STRINGS): Ditto.
7332 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
7333 (x_draw_glyph_string): Don't draw anything but the foreground
7334 if glyph string draws row overlaps.
7335
7336 * dispnew.c (direct_output_for_insert): Don't use this
7337 optimization for rows that overlap others.
7338 (update_window_line): Return non-zero if display has changed.
7339 (update_text_area): Ditto.
7340 (update_window): Record if display has been changed.
7341
7342 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
7343
7344 * dispextern.h (struct redisplay_interface): Add
7345 fix_overlapping_area.
7346
7347 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
7348
7349 * dispextern.h (struct glyph): Add overlaps_vertically_p.
7350
7351 * xterm.c (x_produce_image_glyph): Compute iterator's physical
7352 ascent and descent.
7353 (x_produce_stretch_glyph): Ditto.
7354 (x_produce_glyphs): Ditto.
7355
7356 * xdisp.c (init_iterator): Reset physical line height info
7357 after producing special glyphs.
7358 (display_toolbar_line): Set physical line height info.
7359 (compute_line_metrics): Ditto.
7360 (display_line): Ditto.
7361 (display_string): Ditto.
7362
7363 * term.c (produce_glyphs): Set iterator's physical height
7364 information.
7365
7366 * dispnew.c (blank_row): Compute glyph row's physical height.
7367 (row_equal_p): Take physical row heights into account.
7368 (direct_output_for_insert): Ditto.
7369 (update_text_area): Ditto.
7370
7371 * dispextern.h (struct glyph_row): Add phys_ascent and
7372 phys_height.
7373 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
7374 max_phys_descent.
7375
73761999-08-04 Stefan Monnier <monnier@cs.yale.edu>
7377
7378 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
7379 Fswitch_to_buffer.
7380 (no_switch_buffer): New function.
7381 (Fswitch_to_buffer): Call them. Don't get confused
7382 by "same-window" buffers in a dedicated frame.
7383
7384 * window.c (display-buffer): Don't get confused
7385 by "same-window" buffers in a dedicated frame.
7386
73871999-08-04 Andreas Schwab <schwab@gnu.org>
7388
7389 * insdel.c (insert_from_string_1): Check gap size against number
7390 of outgoing bytes, not incoming bytes.
7391
73921999-08-03 Tom Breton <tob@world.std.com>
7393
7394 * lread.c (read1): Added circular reading code to #N=.
7395 (SUBSTITUTE): New macro.
7396 (seen_list): New variable.
7397 (substitute_object_in_subtree): New function.
7398 (substitute_object_recurse): New function.
7399 (substitute_in_interval): New function.
7400
74011999-08-02 Eli Zaretskii <eliz@gnu.org>
7402
7403 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
7404
7405 * frame.c (make_terminal_frame): Don't call init_frame_faces if
7406 noninteractive, for termcap frames as well.
7407
7408 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
7409 frames.
7410
74111999-08-01 Richard Stallman <rms@gnu.org>
7412
7413 * fns.c (internal_equal): Correct overlay comparison.
7414
83c8f461 74151999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
7416
7417 * xfns.c (x_set_internal_border_width):
7418 Call do_pending_window_change. Don't block input, don't call XFlush.
7419 (x_set_vertical_scroll_bars): Call do_pending_window_change.
7420 (x_set_scroll_bar_width, x_set_font): Likewise.
7421
7422 * frame.c (Fset_frame_height): Call do_pending_window_change.
7423 (Fset_frame_width, Fset_frame_size): Likewise.
7424
7425 * xterm.c (x_set_window_size): When calling change_frame_size,
7426 specify 1 for DELAY.
7427
7428 * widget.c (EmacsFrameSetCharSize): Don't call
7429 do_pending_window_change here.
7430
74311999-07-30 Dave Love <fx@gnu.org>
7432
7433 * config.in: Add HAVE_STDLIB_H.
7434
74351999-07-30 Richard M. Stallman <rms@gnu.org>
7436
7437 * process.c (create_process): Detect failure of `pipe'.
7438
74391999-07-30 Keisuke Nishida <kei@psn.net>
7440
7441 * alloc.c (allocate_vectorlike): Add missing increment.
7442
7443 * data.c (Fdefalias): Call Ffset instead of duplicating code.
7444
7445 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
7446 before calling indirect_function.
7447
74481999-07-30 Eli Zaretskii <eliz@gnu.org>
7449
7450 * dispextern.h (load_color, lookup_derived_face): Declare
7451 prototypes.
7452
7453 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
7454 it will be done later.
7455
7456 * frame.c (make_terminal_frame) [MSDOS]: Don't call
7457 init_frame_faces if non-interactive.
7458 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
7459 array with a call to msdos_stdcolor_name. The font name is now
7460 "ms-dos", consistent with realize_tty_face.
7461
7462 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
7463 MSDOS frame.
7464
7465 * window.c (Fset_window_configuration) [MSDOS]: Don't call
7466 x_set_toolbar_lines.
7467
7468 * xfaces.c (load_color): Remove static from definition and remove
7469 prototype.
7470 [MSDOS]: Add a DOS-specific version of load_color.
7471 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
7472 (lookup_derived_face): New function.
7473 (realize_default_face): Support MSDOS frames.
7474 [MSDOS]: If fore/background colors are unspecified, inherit them
7475 from the frame.
7476 (realize_face): Support MSDOS frames.
7477 (realize_tty_face): Support MSDOS frames.
7478 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
7479 load_color to try to find a suitable approximation. If the face
7480 is inverse-video, swap the foreground and background colors.
7481
7482 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
7483 functions.
7484
7485 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
7486
7487 * msdos.h: Remove redundant declarations (most of them are now in
7488 dispextern.h).
7489
7490 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
7491 Use default frame colors if the face doesn't specify them; invert
7492 the colors if highlight is ON.
7493 (IT_write_glyphs): Rewritten for the new redisplay engine.
7494 (IT_change_line_highlight): Add (unused) parameter Y, since that's
7495 how the hook is called by term.c.
7496 (IT_copy_glyphs): New function, copies an area of the display in
7497 video RAM.
7498 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
7499 redisplay now calls it even if char_ins_del_ok is zero.
7500 (IT_set_frame_parameters): Prototype changed. Calls the new
7501 load_color. Puts the new fore/background colors into the default
7502 face on current frame.
7503 (IT_menu_display): Rewritten to handle the new struct glyph
7504 instead of a char array.
7505 (XMenuActivate): Call lookup_derived_face to create and use
7506 special faces for the pop-up and drop-down menus.
7507
75081999-07-29 Gerd Moellmann <gerd@gnu.org>
7509
7510 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
7511 XawScrollbarSetThumb if thumb parameters haven't changed because
7512 that function apparently isn't optimized for this case.
7513
75141999-07-29 Eli Zaretskii <eliz@gnu.org>
7515
7516 * msdos.c (getdefdir): Don't return failure indication when
7517 _fixpath sets errno to ENOSYS.
7518
75191999-07-28 Gerd Moellmann <gerd@gnu.org>
7520
7521 * xdisp.c (string_char_and_length): New. Use it everywhere
7522 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
7523
75241999-07-28 Kenichi Handa <handa@etl.go.jp>
7525
7526 * fns.c (count_combining): New function.
7527 (struct textprop_rec): New structure.
7528 (concat): Copy text properties correctly when byte combining
7529 occurs.
7530
75311999-07-28 Gerd Moellmann <gerd@gnu.org>
7532
7533 * xterm.c (x_setup_relief_color): Don't try smart color allocation
7534 if display is mono.
7535 (x_draw_row_bitmaps): If face has stipple, don't switch
7536 to foreground color for clearing areas, and set the fill style.
7537
7538 * xfaces.c (load_face_colors): Load background color if setting
7539 stipple, too.
7540 (prepare_face_for_display): Use FillOpaqueStippled instead of
7541 FillStippled.
7542
75431999-07-26 Ken'ichi Handa <handa@gnu.org>
7544
7545 * xterm.c (x_find_ccl_program): Add casting.
7546
7547 * w32fns.c (w32_find_ccl_program): Add casting.
7548
75491999-07-27 Gerd Moellmann <gerd@gnu.org>
7550
7551 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
7552
7553 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
7554 because this will try to access a nonexisting widget.
7555
75561999-07-26 Markus Rost <rost@gnu.org>
7557
7558 * fns.c (Fgethash): Fix order of variables (patch by gerd).
7559 (Fputhash): Ditto.
7560 (Fremhash): Ditto.
7561
75621999-07-26 Gerd Moellmann <gerd@gnu.org>
7563
7564 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
7565 value to frame width and height.
7566
7567 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
7568 into account for full-width windows. Don't add scroll bar width
7569 to width of clip rect.
7570 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
7571 (x_set_glyph_string_background_width): Add 1 to background width.
7572 (x_draw_glyphs): Take internal border into account for full-width
7573 lines.
7574
75751999-07-26 Richard M. Stallman <rms@gnu.org>
7576
7577 * xfns.c (x_set_mouse_color): Always unload the old color.
7578 Don't allow nil as color value.
7579 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
7580 Always unload the old color.
7581
7582 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
7583
75841999-07-26 Karl Heuer <kwzh@gnu.org>
7585
7586 * fns.c (Fy_or_n_p): Doc fix.
7587
75881999-07-26 Kenichi Handa <handa@etl.go.jp>
7589
7590 * ccl.h (setup_ccl_program): The type is changed to `int'.
7591
7592 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
7593 stored in the following CCL code. Adjusted for the change of
7594 Vccl_program_table.
7595 (resolve_symbol_ccl_program): Adjusted for the new style of
7596 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
7597 is resolving failed.
7598 (ccl_get_compiled_code): New function.
7599 (setup_ccl_program): Function type changed from `void' to `int'.
7600 Resolve symbols in CCL_PROG.
7601 (Fccl_program_p): New function.
7602 (Fccl_execute): Get compiled CCL code by just calling
7603 setup_ccl_program.
7604 (Fccl_execute_on_string): Likewise.
7605 (Fregister_ccl_program): Adjusted for the change of
7606 Vccl_program_table.
7607
7608 * coding.c (setup_coding_system): Get compiled CCL code by just
7609 calling setup_ccl_program.
7610
7611 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
7612 calling setup_ccl_program.
7613
7614 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
7615 calling setup_ccl_program.
7616
76171999-07-23 Gerd Moellmann <gerd@gnu.org>
7618
7619 * xfaces.c (frame_update_line_height): Just use the height of the
7620 frame's fontset or font, instead of taking face fonts into
7621 account.
7622
7623 * xdisp.c (get_next_display_element): Display DEL as `^?'.
7624
76251999-07-23 Richard M. Stallman <rms@gnu.org>
7626
7627 * window.c (Fsplit_window): For default size, round up for left window.
7628
76291999-07-21 Joe Ramey <ramey@ti.com>
7630
7631 * filelock.c (lock_if_free): Return -1 if check_lock_owner
7632 has returned -1 (lockfile exists but is not a symlink?).
7633
76341999-07-20 Gerd Moellmann <gerd@gnu.org>
7635
7636 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
7637 because of a change in cursor_gc made in 20.4.
7638
76391999-07-19 Gerd Moellmann <gerd@gnu.org>
7640
7641 * xterm.c (x_calc_absolute_position): Subtract menu bar height
7642 for YNegative, if using X toolkit.
7643
7644 * xfns.c (x_real_positions): Don't subtract window borders
7645 from positions returned.
7646
76471999-07-17 Gerd Moellmann <gerd@gnu.org>
7648
7649 * xrdb.c (x_load_resources): Set double-click time defaults
7650 for Motif list boxes from double-click-time.
7651
7652 * fns.c (Vhash_table_tests): Remvoed.
7653 (Qhash_table_test): New.
7654 (syms_of_fns): Initialize Qhash_table_test.
7655 (Fmake_hash_table): Look up user-defined tests in symbol prop
7656 `hash-table-test'.
7657 (Fdefine_hash_table_test): Store test and hash function as
7658 symbol prop `hash-table-test'.
7659 (make_hash_table): Add parameters user_test and user_hash.
7660
7661 * window.c (set_window_buffer): Set window margins for tty
7662 frames, too.
7663 (Fset_window_margins): Ditto.
7664
7665 * term.c (append_glyph): Use glyph area of iterator instead of
7666 always TEXT_AREA.
7667
7668 * dispnew.c (update_frame_1): Add left margin width to cursor
7669 hpos.
7670 (direct_output_for_insert): Ditto.
7671 (direct_output_forward_char): Ditto.
7672
7673 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
7674
7675 * dispextern.h (struct glyph_matrix): Add top_line_p.
7676
76771999-07-16 Gerd Moellmann <gerd@gnu.org>
7678
7679 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
7680 instead.
7681
7682 * fns.c (cmpfn_eq): Add hash code parameters.
7683 (cmpfn_eql): Ditto.
7684 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
7685 (cmpfn_user_defined): Likewise.
7686
76871999-07-15 Gerd Moellmann <gerd@gnu.org>
7688
7689 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
7690
7691 * fns.c (maybe_resize_hash_table): Correct computation of
7692 index vector size.
7693 (make_hash_table): Ditto.
7694 (Fmakehash): New.
7695
7696 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
7697
7698 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
7699 (survives_gc_p): Make it externally visible.
7700 (mark_object): Ditto.
7701
7702 * fns.c (remove_hash_entry): Removed.
7703 (sweep_weak_hash_tables): New.
7704
7705 * print.c (print): Print more information about hash tables.
7706
7707 * xfns.c (image_spec_hash): Removed.
7708 (lookup_image): Use sxhash instead of image_spec_hash.
7709 (image_spec_equal_p): Removed.
7710 (lookup_image): Use Fequal instead of image_spec_equal_p.
7711
77121999-07-14 Gerd Moellmann <gerd@gnu.org>
7713
7714 * lisp.h (P_): Moved to top of file.
7715
7716 * fns.c (make_hash_table): Set new members.
7717
7718 * alloc.c (mark_object): Mark hash table's user_hash_function.
7719 Mark index vector for weak hash tables.
7720
7721 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
7722 user_hash_function, cmpfn, and hashfn.
7723
7724 * fns.c (build_hash): Removed.
7725 (hash_test): Removed.
7726 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
7727 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
7728
77291999-07-13 Gerd Moellmann <gerd@gnu.org>
7730
7731 * alloc.c (survives_gc_p): New.
7732
7733 * print.c (print): Add hash table handling.
7734
7735 * alloc.c (mark_object): Add code to mark hash tables.
7736
7737 * lisp.h (GC_HASH_TABLE_P): New.
7738
7739 * emacs.c (main): Call init_fns.
7740
7741 * fns.c (init_fns): New.
7742
7743 * fns.c: Add hash table implementation.
7744
7745 * lisp.h (PVEC_HASH_TABLE): New.
7746 (struct Lisp_Hash_Table): New.
7747 (XHASH_TABLE): New.
7748 (XSET_HASH_TABLE): New.
7749 (HASH_TABLE_P): New.
7750 (CHECK_HASH_TABLE): New.
7751 (DEFAULT_HASH_SIZE): New.
7752 (DEFAULT_REHASH_THRESHOLD): New.
7753 (DEFAULT_REHASH_SIZE): New.
7754
7755 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
7756 (x_write_glyphs): Compute overwritten cursor using real start
7757 and end positions of display.
7758 (x_insert_glyphs): Ditto.
7759
77601999-07-10 Gerd Moellmann <gerd@gnu.org>
7761
7762 * keyboard.c (read_char): Use message3_nolog to show help-echo.
7763
7764 * dispnew.c (blank_row): Add y-position as parameter. Compute
7765 visible height.
7766
7767 * xdisp.c (next_element_from_string): Give padding spaces
7768 a position of -1.
7769
7770 * dispnew.c (adjust_glyph_matrix): Some work to support
7771 marginals areas on tty frames in a future version.
7772 (allocate_matrices_for_frame_redisplay): Ditto.
7773
7774 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
7775 to zero if number of glyphs in the row is <= 1.
7776
77771999-07-09 Gerd Moellmann <gerd@gnu.org>
7778
7779 * dispnew.c (buffer_posn_from_coords): Take left marginal area
7780 into account.
7781
7782 * xdisp.c (handle_display_prop): Don't reset area if handing
7783 a property from a string that came from a `display' property.
7784 (handle_single_display_prop): Don't handle recursive `display'
7785 properties.
7786 (handle_single_display_prop): Handle some display property
7787 forms for terminal frames.
7788 (Qimage): Moved here from xfns.c.
7789
7790 * dispextern.h (struct it): New field string_from_display_prop_p.
7791
7792 * xterm.c (x_clip_to_row): Don't let clip_rect include top
7793 line.
7794
77951999-07-08 Gerd Moellmann <gerd@gnu.org>
7796
7797 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
7798
7799 * window.c (set_window_buffer): Set window's vscroll to zero.
7800
7801 * xdisp.c (QCwhen): New.
7802 (display_prop_end): New.
7803 (handle_single_display_prop): Use it.
7804 (debug_method_add): Print buffer name if tracing.
7805 (try_window_reusing_current_matrix): Compute visible height
7806 of reused rows. Fix cursor position calculation in case of
7807 top-line.
7808
7809 * dispextern.h (struct redisplay_interface): Add parameter
7810 cursor_on_p to update_window_end_hook.
7811
7812 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
7813
78141999-07-07 Gerd Moellmann <gerd@gnu.org>
7815
7816 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
7817 doesn't become negative when decrementing it.
7818
7819 * eval.c (Fsignal): Reset redisplaying_p to zero.
7820
7821 * xdisp.c (try_window_reusing_current_matrix): Call hooks
7822 for window update.
7823 (try_window_id): Ditto.
7824
7825 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
7826 (x_scroll_run): Ditto.
7827 (any_help_event_p): New.
7828 (x_initialize): Set it to zero.
7829 (XTread_socket): Clear help echo only if any_help_event_p.
7830
7831 * xdisp.c (init_iterator): Set top_line_p.
7832 (start_display): Use correct initial y if top-line is present.
7833 (make_cursor_line_fully_visible): Bug fixes for top-line.
7834 (try_scrolling): Ditto.
7835 (try_window_reusing_current_matrix): Ditto.
7836
7837 * dispextern.h (struct it): Add top_line_p.
7838
7839 * dispnew.c (shift_glyph_matrix): Move some computations out
7840 of the loop.
7841
7842 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
7843 XFLOATINT.
7844
78451999-07-06 Gerd Moellmann <gerd@gnu.org>
7846
7847 * dispnew.c (update_frame_1): When setting cursor in echo area,
7848 skip only over padding spaces at the end.
7849
7850 * xfaces.c (realize_tty_face): Set face's font_name field to
7851 "tty".
7852
7853 * term.c (update_end): Turn cursor on only if selected window's
7854 cursor_off_p flag is not set.
7855
78561999-07-05 Gerd Moellmann <gerd@gnu.org>
7857
7858 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
7859 (TS_cursor_normal): Renamed from TS_end_visual_mode.
7860 (TS_cursor_invisible): New.
7861 (term_init): Initialize TS_cursor_invisible.
7862 (tty_hide_cursor): New.
7863 (tty_show_cursor): New.
7864 (update_end): Show tty cursor.
7865 (update_begin): Hide tty cursor to prevent cursor flickering
7866 during redisplays triggered by timers (stealth fontification).
7867
7868 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
7869
7870 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
7871 in scroll bars.
7872 (x_handle_toolbar_click): Set modifier bits.
7873
78741999-07-04 Gerd Moellmann <gerd@gnu.org>
7875
7876 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
7877 instead of a pointer to a volatile input_event.
7878 (kbd_buffer_store_event): Remove volatile modifier from
7879 declaration of local variable `sp'.
7880 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
7881 to kbd_fetch_ptr.
7882
78831999-07-03 Gerd Moellmann <gerd@gnu.org>
7884
7885 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
7886 only if buffer is modified. Return quickly if changes are
7887 above window start.
7888
78891999-07-02 Gerd Moellmann <gerd@gnu.org>
7890
7891 * dispextern.h (HSCROLL_WINDOWS): Removed.
7892
7893 * xdisp.c (mark_window_display_accurate): Don't set
7894 w->region_showing.
7895 (redisplay_internal): Don't call redraw_garbaged_frames.
7896
78971999-07-01 Gerd Moellmann <gerd@gnu.org>
7898
7899 * xdisp.c (echo_area_display): Don't display truncation marks
7900 for messages because 20.4 doesn't do it either.
7901 (redisplay_window): Case same window start. Instead of giving
7902 up when cursor is partially visible, make it fully visible.
7903 (mark_window_display_accurate): Some cleanup. Record window's
7904 last cursor information.
7905 (debug_method_add): Improved.
7906 (redisplay_internal): Record last cursor info only if not
7907 consider_all_windows_p.
7908
7909 * dispnew.c (update_window): Update top line after scrolling.
7910 (blank_row): Renamed from make_empty_enabled_row.
7911 (increment_glyph_row_buffer_positions): Increment positions
7912 in buffers, only.
7913
7914 * window.c (Fcoordinates_in_window_p): Add top-line to doc
7915 string.
7916
79171999-06-30 Gerd Moellmann <gerd@gnu.org>
7918
7919 * dispnew.c (update_window): Check that updated row is visible.
7920
7921 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
7922 top of window differently.
7923
7924 * xdisp.c (try_window_reusing_current_matrix): Don't do it
7925 if region is showing.
7926
7927 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
7928 avoiding matrix reallocation. Set window_vscroll in matrix.
7929
7930 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
7931
26901792
DL
7932 * xdisp.c (debug_method_add): New.
7933 (debug_redisplay_method): Removed.
7934 (try_window_reusing_current_matrix): Handle case where old
7935 window start is the same as new window start.
7936
7937 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
7938 an array instead of a pointer.
7939
26901792
DL
7940 * xfns.c (Fx_show_tip): Undo previous change.
7941
7942 * xterm.c (x_append_glyph): Clear glyph->u.val.
7943
7944 * dispextern.h (struct glyph): Increase size of face_id bit-field
7945 for CHAR_GLYPH to 12.
7946
79471999-06-29 Gerd Moellmann <gerd@gnu.org>
7948
7949 * xfaces.c (x_charset_registry): Make it externally visible.
7950
79511999-06-28 Gerd Moellmann <gerd@gnu.org>
7952
7953 * dispnew.c (update_window): Use mode_line_p flag of rows
7954 instead of WINDOW_WANTS_MODELINE_P.
7955
7956 * xterm.c (clear_mouse_face): Make externally visible.
7957
7958 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
7959
7960 * xterm.c (expose_line): Handle exposure of top-lines.
7961
7962 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
7963 if mouse_face_mouse_frame is null.
7964
7965 * xdisp.c (redisplay_window): If window is echo_area_window,
7966 and update_mode_line is set, update menubar and toolbar.
7967
7968 * dispnew.c (space_glyph): Set its charpos to -1.
7969 (update_frame_1): Ignore trailing padding spaces.
7970
7971 * xdisp.c (next_element_from_c_string): Set position of padding
7972 glyphs to -1.
7973
79741999-06-27 Gerd Moellmann <gerd@gnu.org>
7975
7976 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
7977 XQueryColor.
7978
7979 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
7980 (set_cursor_from_row): Skip over glyphs having a null object at
7981 the start of rows.
7982 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
7983 glyphs.
7984 (handle_invisible_prop): Compute next change only when needed.
7985 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
7986 line.
7987
79881999-06-26 Gerd Moellmann <gerd@gnu.org>
7989
7990 * xrdb.c (x_load_resources): Don't set resource for double-click
7991 time.
7992
7993 * xdisp.c (try_window_id): Return quickly if all changes are
7994 below the window's current matrix end.
7995
7996 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
7997 parameter.
7998
7999 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
8000 in desired not in current matrix.
8001 (try_window_reusing_current_matrix): Rotate matrices starting
8002 at start_vpos instead of 0.
8003
8004 * xterm.c (expose_window): Use window_text_bottom_y.
8005 (fast_find_position): Ditto.
8006
8007 * xdisp.c (redisplay_window): Use window_text_bottom_y.
8008 (try_window_reusing_current_matrix): Ditto.
8009 (get_last_unchanged_at_beg_row): Ditto.
8010 (init_iterator): Ditto.
8011
8012 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
8013 more row.
8014 (check_matrix_invariants): Use window_text_bottom_y.
8015 (update_window): Ditto.
8016 (scrolling_window): Ditto.
8017
8018 * xdisp.c (window_text_bottom_y): New.
8019
80201999-06-25 Gerd Moellmann <gerd@gnu.org>
8021
8022 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
8023 clearing mouse face.
8024 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
8025 event.xcrossing.focus is not set, and focus is in the menu bar,
8026 set focus frame as if event.xcrossing.focus were set.
8027
80281999-06-24 Gerd Moellmann <gerd@gnu.org>
8029
8030 * keyboard.c (make_lispy_event): Handle mouse on top lines.
8031 * keyboard.c (make_lispy_movement): Ditto.
8032
8033 * window.c (coordinates_in_window): Return 4 if on top line.
8034 (Fcoordinates_in_window_p): Return `top-line' if on top line.
8035
8036 * xdisp.c (window_box_height): Subtract top line height.
8037 (window_box): Add top line height to top y position if top line
8038 exists.
8039 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
8040 the top line row of the window. Set initial y-position to
8041 window's top line height plus delta.
8042 (start_display): Choose start glyph row depending on whether
8043 window has a top line.
8044 (try_scrolling): Take top line height into account for aggressive
8045 scrolling.
8046 (compute_window_start_on_continuation_line): Take top line into
8047 account.
8048 (redisplay_window): Ditto. If top line height has changed,
8049 trigger a new redisplay.
8050 (try_window_reusing_current_matrix): Take top line into account.
8051 (find_last_row_displaying_text): Ditto.
8052 (get_last_unchanged_at_beg_row): DItto.
8053 (try_window_id): Ditto.
8054 (compute_line_metrics): Ditto.
8055
8056 * dispnew.c (shift_glyph_matrix): Compute visible row height
8057 taking top line of window into account.
8058 (update_window): Update top line. If scrolling_window detects
8059 that all rows are equal, only set cursor.
8060 (update_window_line): Call after_update_window_line_hook if
8061 mode_line_p flag of rows has changed.
8062 (scrolling_window): Add parameter top_line_p. Return -1 if
8063 all rows are equal.
8064 (mode_line_string): Add parameter mode_line_p. Handle strings
8065 in top lines.
8066
8067 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
8068 (MATRIX_FIRST_TEXT_ROW): New.
8069 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
8070 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
8071 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
8072 (MATRIX_TOP_LINE_HEIGHT): New.
8073 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
8074 (CURRENT_TOP_LINE_HEIGHT): New.
8075 (DESIRED_TOP_LINE_HEIGHT): New.
8076 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
8077 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
8078 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
8079 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
8080
8081 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
8082 lines.
8083 (x_draw_row_bitmaps): Take top line into account when clearing
8084 bitmap area.
8085 (x_estimate_mode_line_height): Replacement for
8086 x_frame_mode_line_height.
8087 (x_get_glyph_string_clip_rect): Take top line into account.
8088 (x_clear_end_of_line): Ditto.
8089 (note_mode_line_highlight): Add parameter mode_line_p. Handle
8090 top lines.
8091 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
8092 (x_erase_phys_cursor): Take top line into account.
8093
8094 * xdisp.c (window_box_height): Subtract top line height if
8095 window wants a top line.
8096 (display_mode_lines): New.
8097 (redisplay_window): Call it.
8098 (display_mode_line): Add parameters face_id and format.
8099
8100 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
8101 (MATRIX_TOP_LINE_HEIGHT): New.
8102
8103 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
8104
8105 * term.c (estimate_mode_line_height): Renamed from
8106 frame_mode_line_height. Add parameter face_id.
8107 (estimate_mode_line_height_hook): Renamed from
8108 frame_mode_line_height_hook.
8109 (produce_special_glyphs_hook): Removed.
8110 (produce_glyphs_hook): Removed.
8111
81121999-06-23 Gerd Moellmann <gerd@gnu.org>
8113
8114 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
8115 (struct glyph_row): Add mode_line_p.
8116
8117 * xfaces.c (realize_basic_faces): Realize face `top-line'.
8118 (Qtop_line): New.
8119 (syms_of_xfaces): Initialize Qtop_line.
8120
8121 * dispextern.h (TOP_LINE_FACE_ID): New.
8122
8123 * buffer.c (init_buffer_once): Set default for
8124 top_line_format to nil.
8125 (init_buffer_once): Init top_line_format.
8126 (default-top-line-format): New.
8127 (top-line-format): New buffer-local variable.
8128
8129 * buffer.h: Add top_line_format.
8130
8131 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
8132
81331999-06-17 Dave Love <fx@gnu.org>
8134
8135 * xfns.c: Move the PNG section before the JPEG one to avoid
8136 problems surrounding setjmp.h/png.h on GNU/Linux.
8137
81381999-06-17 Gerd Moellmann <gerd@gnu.org>
8139
8140 * xfns.c (x_kill_gs_process): Don't free colors.
8141
81421999-06-17 Dave Love <fx@gnu.org>
8143
8144 * s/gnu-linux.h: Zap spurious ~.
8145
81461999-06-16 Gerd Moellmann <gerd@gnu.org>
8147
8148 * xfns.c (gif_load): Improve multi-image support.
8149
81501999-06-15 Gerd Moellmann <gerd@gnu.org>
8151
8152 * xfns.c (gif_load): Support multi-image files.
8153
8154 * Makefile.in (LIBGIF): Use libungif.
8155
8156 * configure.in (HAVE_GIF): Use libungif instead of libgif
8157 because the former doesn't contain patented compression code.
8158
8159 * xdisp.c (compute_window_start_on_continuation_line): Don't
8160 do it if line start is too far away from window start.
8161
81621999-06-14 Gerd Moellmann <gerd@gnu.org>
8163
8164 * buffer.c (init_buffer_once): Set buffer_local_flags for
8165 scroll_*_aggressively.
8166 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
8167 (init_buffer_once): Set defaults for these variables.
8168 (syms_of_buffer): Add default-scroll-*-aggressively.
8169
8170 * buffer.h (scroll_up_aggressively): New.
8171 (scroll_down_aggressively): New.
8172
8173 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
8174 a static PNG library.
8175
8176 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
8177 in case it's a static library.
8178
8179 * Makefile.in (ctagsfiles): Split so that files starting
8180 with an `x' are found before files starting with `w32'.
8181 (ctagsfiles1): New.
8182 (ctagsfiles2): New.
8183 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
8184
8185 * xdisp.c (compute_window_start_on_continuation_line): New.
8186 (redisplay_window): Use it.
8187 (INFINITY): New.
8188 (reseat_to_string): Use it.
8189 (hscroll_window_tree): Ditto.
8190 (compute_window_start_on_continuation_line): Ditto.
8191 (redisplay_window): Don't force display with a new window start.
8192
81931999-06-06 Gerd Moellmann <gerd@gnu.org>
8194
8195 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
8196 if widget not present.
8197
8198 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
8199
82001999-06-04 Gerd Moellmann <gerd@gnu.org>
8201
8202 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
8203 value of realize_basic_faces.
8204 (load_face_font_or_fontset): Store full font name in face.
8205 (realize_default_face): Use full font name.
8206
26901792
DL
8207 * xterm.c (x_produce_glyphs): Set member char_to_display.
8208 (x_append_glyph): Store char_to_display in glyphs.
8209
8210 * dispextern.h (struct it): Add char_to_display.
8211
8212 * xfns.c (x_set_font): Don't call face-set-after-frame-default
8213 if faces haven't been initialized.
8214 (Fx_create_frame): Call face-set-after-frame-default after
8215 faces have been initialized, and widget has been created.
8216
8217 * puresize.h (BASE_PURESIZE): Increased.
8218
82191999-06-01 Gerd Moellmann <gerd@gnu.org>
8220
8221 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
8222 (Finternal_set_lisp_face_attribute): If frame is t when
8223 :font attribute is set, use the selected frame.
8224 (clear_face_cache): Add parameter clear_fonts_p.
8225 (Fclear_face_cache): Add optional parameter thorougly.
8226
8227 * xfaces.c (face_numeric_value): Return -1 if symbol is not
8228 in table.
8229 (Fclear_face_cache): New.
8230 (choose_face_fontset_font): If fontset doesn't contain font
8231 pattern for the given charset, use CHARSET_ASCII.
8232 (Finternal_set_lisp_face_attribute): Fix handling of nil
8233 stipple attribute.
8234 (Finternal_set_lisp_face_attribute): Fix handling of changing
8235 font-related face attributes of the default face.
8236 (set_lface_from_font_name): Set only attributes that aren't
8237 specified.
8238
82391999-05-31 Gerd Moellmann <gerd@gnu.org>
8240
8241 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
8242 font support.
8243 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
8244 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
8245 scalable fonts depending on the setting of SCALABLE_FONTS.
8246 (first_font_matching): List more than one font to find the
8247 first non-scalable matching font.
8248 (sorted_font_list): Let x_face_list_fonts return scalable fonts
8249 depending on SCALABLE_FONTS.
8250 (better_font_p): New parameter compare_pt_p. If zero, don't
8251 compare point sizes of fonts.
8252 (exact_face_match_p) [SCALABLE_FONTS]: New.
8253 (build_scalable_font_name) [SCALABLE_FONTS]: New.
8254 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
8255 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
8256 (syms_of_xfaces): Add scalable-fonts-allowed.
8257
82581999-05-26 Gerd Moellmann <gerd@gnu.org>
8259
8260 * xfns.c (png_load): Let PNG lib handle gamma. Construct
8261 mask only if image contains simple transparency information.
8262 Otherwise, combine image with frame background color.
8263
8264 * configure.in (--with-png, HAVE_PNG): New.
8265
8266 * config.in (HAVE_PNG): New.
8267
8268 * Makefile.in: Add PNG library.
8269
8270 * xfns.c: Add PNG support.
8271
82721999-05-25 Gerd Moellmann <gerd@gnu.org>
8273
8274 * xdisp.c (init_xdisp): Initialize echo_area_message and
8275 previous_echo_area_message to nil.
8276
8277 * keyboard.c (read_char): Rename local variable echo_area_message
8278 because it shadows the global one.
8279
82801999-05-05 Gerd Moellmann <gerd@gnu.org>
8281
8282 * xterm.c (note_mode_line_highlight): Restructured.
8283
8284 * window.c (coordinates_in_window): Handle windows that don't have
8285 a mode line because their buffer's mode-line-format is nil.
8286 Recognize the mode line under x positions that correspond to
8287 flags areas and left scroll bar.
8288
82891999-05-02 Dave Love <fx@gnu.org>
8290
8291 * xterm.c (note_mouse_highlight): Separate help-echo processing
8292 from check on mouse-face so that it works generally.
8293
82941999-04-21 Gerd Moellmann <gerd@gnu.org>
8295
8296 * sound.c (Fplay_sound): Run hook play-sound-hook.
8297 (Qplay_sound_hook): New.
8298
82991999-04-20 Gerd Moellmann <gerd@gnu.org>
8300
8301 * xdisp.c (update_echo_area): Handle echo_area_message.
8302
83031999-04-19 Gerd Moellmann <gerd@gnu.org>
8304
8305 * editfns.c (Fmessage): Use message3.
8306
8307 * print.c (printchar): Set echo_area_message to nil.
8308 (strout): Ditto.
8309
8310 * minibuf.c (read_minibuf): Reset echo message strings to nil.
8311 (Fminibuffer_completion_help): Ditto.
8312
8313 * keyboard.c (cmd_error_internal): Set echo_areA_message.
8314 (command_loop_1): Test echo_areA_message.
8315 (read_char): Ditto.
8316 (record_menu_key): Set echo_area_message to nil.
8317 (Fexecute_extended_command): Test echo_area_message.
8318 (Fexecute_extended_command): Handle echo_area_message.
8319
8320 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
8321 is set.
8322
8323 * editfns.c (Fcurrent_message): If echo_area_message is set,
8324 return a substring of that string.
8325
8326 * dispnew.c (direct_output_for_insert): Test echo_area_message
8327 in addition to echo_area_glyphs.
8328 (set_window_cursor_after_update): Ditto.
8329 (update_frame_1): Ditto.
8330
8331 * alloc.c (Fgarbage_collect): Use message3_nolog to display
8332 old Lisp message string.
8333
8334 * xdisp.c (echo_area_message): New.
8335 (previous_echo_area_message): New.
8336 (syms_of_xdisp): Initialize and staticpro new variables.
8337 (echo_area_display): Display echo_area_message if set.
8338 (message2_nolog): Set echo_area_message and
8339 previous_echo_area_message.
8340 (echo_area_display): Set previous_echo_area_message.
8341 (redisplay_internal): Display echo area if echo_area_message
8342 or previous_echo_area_message are set.
8343 (redisplay_preserve_echo_area): Test/set echo_area_message and
8344 previous_echo_area_message.
8345 (redisplay_window): Test echo_area_message.
8346 (message3_nolog): New.
8347 (message3): New.
8348
8349 * editfns.c (Fformat): Add text properties to the result string
8350 from properties of the format string and properties of string
8351 arguments.
8352
8353 * textprop.c (text_property_list): New.
8354 (add_text_properties_from_list): New.
8355 (extend_property_ranges): New.
8356
83571999-03-29 Gerd Moellmann <gerd@gnu.org>
8358
8359 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
8360 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
8361 Use these symbols for the box face attribute instead of the
8362 removed ones.
8363
83641999-03-12 Gerd Moellmann <gerd@gnu.org>
8365
8366 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
8367 Correct wrong test for slant.
8368
83691999-03-10 Gerd Moellmann <gerd@gnu.org>
8370
8371 * xfaces.c: Use `unspecified' for unspecified face attributes,
8372 use t and nil for on/off.
8373
83741999-03-06 Gerd Moellmann <gerd@gnu.org>
8375
8376 * buffer.c (syms_of_buffer): Extend doc string of
8377 mode-line-format.
8378
8379 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
8380 (first_font_matching): New.
8381 (set_lface_from_font_name): Use it if font name is a pattern.
8382 (font_field_wildcard_p): Removed.
8383
8384 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
8385 Recompute visible height of rows.
8386
8387 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
8388 Don't accept non-strings for help-echo from overlays.
8389
83901999-03-04 Dave Love <fx@gnu.org>
8391
8392 * xterm.c (note_mouse_highlight): Check overlays for help-text
8393 property.
8394 (XTread_socket): Fix compiler warning.
8395
83961999-03-05 Gerd Moellmann <gerd@gnu.org>
8397
8398 * xterm.c (note_mouse_highlight): Don't restrict number of
8399 overlay to 10. Call overlays_at so that it doesn't try to
8400 extend the vector.
8401
8402 * xdisp.c (compute_line_metrics): Compute glyph row's visible
8403 height.
8404
8405 * dispnew.c (row_equal_p): Compare visible row height, only.
8406 (update_text_area): Draw whole line if visible heights of
8407 rows differ.
8408 (update_window_line): Call after_update_window_line_hook
8409 if visible row height has changed.
8410
8411 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
8412 (struct glyph_row): New member visible_height.
8413
8414 * xfaces.c (font_field_wildcard_p): New.
8415 (set_lface_from_font_name): Remove parameter force_p. Accept
8416 font names containing wildcards.
8417
84181999-03-04 Gerd Moellmann <gerd@gnu.org>
8419
8420 * xterm.c (x_after_update_window_line): Clear internal border
8421 when windows_or_buffers_changed.
8422
8423 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
8424 buffer has a nil mode_line_format.
8425
84261999-03-03 Gerd Moellmann <gerd@gnu.org>
8427
8428 * xterm.c (x_setup_relief_colors): Use either background color
8429 or specified color.
8430
8431 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
8432
8433 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
8434
8435 * xterm.c (x_draw_box_rect): New.
8436 (x_draw_glyph_string_box): Renamed from
8437 x_draw_glyph_string_relief. Call x_draw_box_rect.
8438
8439 * xfns.c (QCrelief): New.
8440 (syms_of_xfns): Initialize it.
8441
8442 * dispextern.h (struct glyph): Rename left_shadow_p to
8443 left_box_line_p, right_shadow_p to right_box_line_p.
8444 (MAX_RELIEF_THICKNESS): Removed.
8445 (struct it): Rename members having `relief' in their names
8446 to contain `box' instead.
8447
8448 * xfaces.c (realize_x_face): Handle new box attribute values.
8449 (QCrelief, Qbox): Removed.
8450 (QCshadow, QCcolor, Qraised, Qsunken): New.
8451 (syms_of_xfaces): Initialize new symbols.
8452
84531999-03-02 Gerd Moellmann <gerd@gnu.org>
8454
8455 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
8456
8457 * xfaces.c (LFACE_RELIEF): Removed.
8458 (merge_face_vector_with_property): Remove handling of `:relief'.
8459 (Finternal_set_lisp_face_attribute): Ditto.
8460 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8461 (Finternal_get_lisp_face_attribute): Ditto.
8462 (realize_default_face): Ditto.
8463 (lface_hash): Don't compute hash from relief.
8464
8465 * dispextern.h (struct face): Replace member `relief' by
8466 `box_line_width'. Add member `box'.
8467 (face_box_type): New.
8468
8469 * xterm.c (x_produce_glyphs): If face has overline, add overline
8470 thickness + 1 to ascent.
8471
84721999-03-01 Gerd Moellmann <gerd@gnu.org>
8473
8474 * xterm.c (x_draw_glyph_string): Draw underline, overline,
8475 strike-through, and boxes.
8476 (x_draw_glyph_string_underline): Removed.
8477
8478 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
8479 (Qoverline, Qstrike_through, Qbox): New.
8480 (syms_of_xfaces): Define these symbols.
8481 (check_lface_attrs): Add checks for overline, strike-through,
8482 and box.
8483 (Finternal_set_lisp_face_attribute): Set new attributes.
8484 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
8485 (load_color): Handle new attributes.
8486 (realize_x_face): Ditto.
8487 (merge_face_vector_with_property): Ditto.
8488 (free_face_colors): Ditto.
8489 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8490 (Finternal_get_lisp_face_attribute): Ditto.
8491 (Finternal_lisp_face_attribute_values): Ditto.
8492
8493 * dispextern.h (lface_attribute_index): Add enumerators for
8494 overstrike, strike-through, and box.
8495 (struct face): Add members for overline, strike-through, and
8496 box.
8497
84981999-02-17 Dave Love <fx@gnu.org>
8499
8500 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
8501 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
8502 files.
8503
85041999-02-16 Gerd Moellmann <gerd@gnu.org>
8505
8506 * keyboard.c (toolbar_items): Call access_keymap with third
8507 parameter 1, so that we don't get inherited toolbar item
8508 definitions.
8509
8510 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
8511 the window end vpos when in empty first line of window.
8512
85131999-02-15 Gerd Moellmann <gerd@gnu.org>
8514
8515 * xfaces.c (set_font_frame_param): New.
8516 (Finternal_set_lisp_face_attribute): Call it.
8517
8518Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8519
8520 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
8521 Accept specifications of color for underline.
8522
85231999-02-13 Gerd Moellmann <gerd@gnu.org>
8524
8525 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
8526 `frame' is t, operate on face defaults for new frames. If it
8527 is nil, operate on the selected frame.
8528
85291999-02-12 Gerd Moellmann <gerd@gnu.org>
8530
8531 * dispnew.c (check_matrix_invariants): Put it in #if 0.
8532 (update_window): Put the call to check_matrix_invariants in #if 0.
8533
8534Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8535
8536 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
8537 Remove definition of UNDERLINE_COLOR.
8538
8539Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8540
8541 * xfaces.c (free_face_colors): Free the color for underline.
8542
8543 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
8544 to the GC.
8545
8546Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
8547
8548 * dispextern.h (UNDERLINE_COLOR): Defined.
8549 (struct face): Added two new members.
8550 underline_color, underline_defaulted_p.
8551
8552 * xfaces.c (merge_face_vector_with_property):
8553 (check_lface_attrs): Accept the string value for underline.
8554 (Finternal_set_lisp_face_attribute): Likewise.
8555
8556 * xfaces.c (load_color): Change the last argument type to enum
8557 lface_attribute_index from int. And addec code for underling coloring.
8558 (load_face_colors): Pass LFACE_*_INDEX to load_color.
8559
85601999-02-12 Gerd Moellmann <gerd@gnu.org>
8561
8562 * xfns.c (Fx_image_header): Removed.
8563
85641999-02-07 Gerd Moellmann <gerd@gnu.org>
8565
8566 * xterm.c: Don't include <bitmaps/gray>.
8567 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
8568
8569 * xfns.c (Fx_image_header): Add missing `\n\'.
8570 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
8571
85721999-02-01 Gerd Moellmann <gerd@gnu.org>
8573
8574 * xterm.c (x_scroll_bar_create): Set background pixel from
8575 specified scroll bar color.
8576 (x_scroll_bar_set_handle): Use scroll bar foreground color.
8577
8578 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
8579 (x_set_scroll_bar_background): Ditto.
8580
8581 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
8582
8583 * xfns.c (x_default_scroll_bar_color_parameter): New.
8584 (Fx_create_frame): Call it.
8585
85861999-01-31 Gerd Moellmann <gerd@gnu.org>
8587
8588 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
8589 values in x_output structure.
8590 (Qscroll_bar_foreground, Qscroll_bar_background): New.
8591 (syms_of_xfns): Initialize these symbols.
8592
8593 * xterm.h (struct x_output): Add scroll bar pixel colors.
8594
8595 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
8596 (x_set_scroll_bar_foreground): New.
8597 (x_set_scroll_bar_background): New.
8598
26901792
DL
85991999-01-12 Gerd Moellmann <gerd@gnu.org>
8600
8601 * xdisp.c (handle_single_display_prop): New.
8602 (handle_display_prop): Call it.
8603 (handle_raise_prop): Removed.
8604 (handle_height_prop): Removed.
8605 (handle_space_width_prop): Removed.
8606 (handle_face_prop): Remove handling of raised text.
8607 (handle_display_prop): Do it here.
8608
8609 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
8610 (RAISE_PROP_IDX): Removed.
8611 (HEIGHT_PROP_IDX): Removed.
8612 (SPACE_WIDTH_PROP_IDX): Removed.
8613
8614 * xdisp.c (Qdisplay): Replaces Qglyph.
8615 (handle_display_prop): Formerly handle_glyph_prop.
8616
86171999-01-11 Gerd Moellmann <gerd@gnu.org>
8618
8619 * xdisp.c (reseat_to_string): Set position in display vector to -1.
8620 (handle_stop): Set position in display vector to -1. Don't
8621 check overlay strings when set up to deliver characters from a
8622 display vector.
8623 (set_iterator_to_next): At the end of a run of characters from a
8624 display vector, check whether the display vector display replaces
8625 the display of a character.
8626
86271999-01-05 Gerd Moellmann <gerd@gnu.org>
8628
8629 * xfaces.c (init_frame_faces): Don't realize faces if frame's
8630 X window hasn't been created yet.
8631
86321998-12-06 Gerd Moellmann <gerd@gnu.org>
8633
8634 * sound.c: New.
8635
86361998-12-04 Gerd Moellmann <gerd@gnu.org>
8637
8638 * config.in (HAVE_SOUND): New.
8639
8640 * emacs.c (main): Call syms_of_sound and init_sound.
8641
8642 * Makefile.in (obj): Add sound.o.
8643
8644 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
8645
8646 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
8647 (HAVE_SYS_SOUNDCARD_H): New.
8648
86491998-12-03 Gerd Moellmann <gerd@gnu.org>
8650
8651 * buffer.h (struct buffer): indicate_empty_lines renamed from
8652 indicate_zv_lines.
8653
8654 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
8655 (default-indicate-zv-lines): Likewise.
8656
8657 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
8658 to indicate_empty_line_p.
8659
8660 * xdisp.c (reseat_at_next_visible_line_start): Reset method
8661 to next_element_from_buffer.
8662
8663 * frame.c (make_frame): Set n_current_toolbar_items to 0.
8664
8665 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
8666 and `N-'.
8667
8668 * xfns.c (xbm_scan): New.
8669 (xbm_read_hexint): Removed.
8670 (xbm_read_bitmap_file_data): Use xbm_scan.
8671
8672 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
8673
86741998-12-02 Gerd Moellmann <gerd@gnu.org>
8675
8676 * xfns.c (xbm_read_hexint): New.
8677 (xbm_read_bitmap_file_data): New.
8678 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
8679 instead of XReadBitmapFileData.
8680
8681 * xdisp.c (handle_raise_prop): Compute voffset from current font.
8682
8683 * xfaces.c (face_with_height): New.
8684
8685 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
8686 (eval_form): Renamed from eval_mode_element.
8687 (handle_face_prop): Use it.
8688 (Qheight): Replaces Qsmaller.
8689 (handle_height_prop): Replaces handle_smaller_prop.
8690 (handle_face_prop): If iterator's font_height is not an
8691 integer, evaluate it to get the font height to use.
8692
8693 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
8694 (struct it): Use `font_height' instead of `smaller'.
8695
86961998-12-01 Gerd Moellmann <gerd@gnu.org>
8697
8698 * xdisp.c (reseat_1): New.
8699 (reseat): Call it.
8700 (move_it_vertically_backward): Ditto.
8701 (redisplay_window): Don't abort when cursor not found in recenter.
8702
87031998-11-30 Gerd Moellmann <gerd@gnu.org>
8704
8705 * xdisp.c (reseat_at_next_visible_line_start): When not
8706 currently delivering display elements from the current buffer,
8707 restore buffer position first.
8708 (init_from_display_pos): Don't set IT's position from the
8709 position passed to this function.
8710
87111998-11-28 Gerd Moellmann <gerd@gnu.org>
8712
8713 * config.in (PROTO): Removed.
8714
8715 * xterm.h: Change PROTO to P_.
8716
87171998-11-26 Gerd Moellmann <gerd@gnu.org>
8718
8719 * xterm.c (take_vertical_position_into_account): New.
8720 (x_produce_image_glyph): Call it.
8721 (x_produce_stretch_glyph): Ditto.
8722 (x_produce_glyphs): Ditto.
8723 (x_fill_glyph_string): Adjust base line for glyph's voffset.
8724 (x_fill_composite_glyph_string): Ditto.
8725 (x_fill_image_glyph_string): Ditto.
8726 (x_fill_stretch_glyph_string): Ditto.
8727
8728 * xdisp.c (display_line): Always compute row height from
8729 max_ascent and max_descent.
8730
8731 * dispextern.h (struct glyph): Add voffset.
8732 (struct it): Replace height by descent, max_height by max_descent.
8733
8734 * xterm.c (x_append_glyph): Set voffset
8735 (x_append_stretch_glyph): Ditto.
8736 (x_produce_image_glyph): Ditto.
8737 (x_produce_glyphs): Take voffset into account.
8738 (x_produce_image_glyph): Ditto.
8739 (x_produce_stretch_glyph): Ditto.
8740
8741 * dispextern.h (struct it): Add voffset.
8742 * xdisp.c (push_it): Save voffset.
8743 (pop_it): Restore it.
8744
8745 * xdisp.c (it_props): Add entry for `raise'.
8746 (handle_raise_prop): New.
8747
8748 * dispextern.h (RAISE_PROP_IDX): New.
8749
8750 * xdisp.c (Qraise): New.
8751 (syms_of_xdisp): Define Qraised.
8752
8753 * xterm.c (x_scroll_bar_move): Clear to the left and right
8754 of toolkit scroll bars differently.
8755 (x_scroll_bar_move): Removed.
8756 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
8757
8758 * dispextern.h: Make it compilable --with-x=no.
8759 * alloc.c: Ditto.
8760 * emacs.c: Ditto.
8761 * dispnew.c: Ditto.
8762 * keyboard.c: Ditto.
8763 * term.c: Ditto.
8764 * xdisp.c: Ditto.
8765 * xfaces.c: Ditto.
8766 * xfns.c: Ditto.
8767 * xmenu.c: Ditto.
8768
87691998-11-25 Gerd Moellmann <gerd@gnu.org>
8770
8771 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
8772
87731998-11-24 Gerd Moellmann <gerd@gnu.org>
8774
8775 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
8776 update slider size, only.
8777 (xm_scroll_callback): Set dragging member of the scroll bar.
8778 (xt_action_hook): Reset last_scroll_bar_part.
8779 (XTredeem_scroll_bar): Reset bar->dragging to nil.
8780
26901792
DL
8781 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
8782 window on newly created frames that don't have one.
8783
87841998-11-23 Gerd Moellmann <gerd@gnu.org>
8785
8786 * xdisp.c (restore_overlay_strings): Removed.
8787 (restore_dpvec): Removed.
8788 (init_from_display_pos): Inline both functions above.
8789
8790 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
8791 (parse_image_spec): Handle it.
8792 (xbm_format): Use it.
8793 (xpm_format): Ditto.
8794 (pbm_format): Ditto.
8795 (jpeg_format): Ditto.
8796 (tiff_format): Ditto.
8797 (gif_format): Ditto.
8798 (gs_format): Ditto.
8799
8800 * xdisp.c (set_window_cursor): Removed.
8801 (redisplay_internal): Case cursor motion in cursor line of
8802 selected window; use set_cursor_from_row.
8803
88041998-11-22 Gerd Moellmann <gerd@gnu.org>
8805
8806 * widget.c (EmacsFrameSetCharSize): Take widget's border width
8807 into account.
8808
88091998-11-21 Gerd Moellmann <gerd@gnu.org>
8810
8811 * xterm.c (expose_frame): Redraw menu bar window.
8812
8813 * xdisp.c (display_menu_bar): Record hpos instead of x-position
8814 in menu item.
8815
8816 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
8817 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
8818
8819 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
8820 to determine vertical_scroll_bar_extra.
8821 (EmacsFrameSetCharSize): Ditto.
8822 * xfns.c (x_figure_window_size): Ditto.
8823
8824 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
8825 (x_draw_bitmap): Ditto.
8826
8827 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
8828 * xfaces.c (realize_basic_faces): Realize it.
8829
88301998-11-20 Gerd Moellmann <gerd@gnu.org>
8831
8832 * xmenu.c (xmenu_show): Add workaround for remaining button grab
8833 under LessTif Use the widget of the frame as parent for the
8834 menu, again.
8835
88361998-11-19 Gerd Moellmann <gerd@gnu.org>
8837
8838 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
8839 When EnterNotify, don't generate a mouse movement event if
8840 notification is from a busy-cursor child window.
8841
8842 * xterm.h (struct x_output): Add busy_window, remove cursor.
8843
8844 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
8845 Use a transparent window to display the busy-cursor.
8846 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
8847
88481998-11-17 Gerd Moellmann <gerd@gnu.org>
8849
8850 * xdisp.c (check_window_end): New, for debugging.
8851 (CHECK_WINDOW_END): New.
8852 (try_window_id): Use it.
8853
8854 * xterm.c (process_expose_from_menu): Return int.
8855
8856 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
8857 TOOLBAR_EVENT events in last_nonmenu_event.
8858
88591998-11-16 Gerd Moellmann <gerd@gnu.org>
8860
8861 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
8862 window end isn't reliable, so set window_end_valid to nil.
8863 (redisplay_internal): If overlay arrow has changed, set
8864 windows_or_buffers_changed to redisplay thoroughly.
8865
8866 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
8867 necessary.
8868
8869 * xfns.c (file_dialog_cb): New.
8870 (Fx_file_dialog): New.
8871 * fileio.c (Fread_file_name): Call it.
8872
8873 * xrdb.c (x_load_resources): Add default resoures for file
8874 selection dialog.
8875
88761998-11-14 Gerd Moellmann <gerd@gnu.org>
8877
8878 * xterm.c (note_mouse_highlight): Don't highlight when popup
8879 is active.
8880
26901792
DL
8881 * keyboard.c (timer_check): Inhibit busy cursor around calls to
8882 timer-event-handler. This busy cursor tends to be anoying if
8883 fontifying stealthily.
8884
8885 * dispnew.c (direct_output_for_insert): Give up if current row
8886 contains trailing whitespace.
8887
88881998-11-13 Gerd Moellmann <gerd@gnu.org>
8889
8890 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
8891
8892 * xdisp.c (handle_fontified_prop): New.
8893 (Vfontification_functions): New.
8894 (Qfontification_functions): New.
8895 (it_props): Add handle_fontified_prop.
8896
88971998-11-12 Gerd Moellmann <gerd@gnu.org>
8898
8899 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
8900 Otherwise, under LessTif, after the popup has gone, all button
8901 press events come in for the frame's widget, and release events
8902 come in for the edit_widget.
8903 * xterm.c (XTread_socket): Remove workaround for that problem.
8904 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
8905 XmScrollBarSetValues.
8906 (SET_SAVED_MENU_EVENT): Give it statement form.
8907
26901792
DL
8908 * xfaces.c (display_message): If waiting_for_input, don't display
8909 the message.
8910
8911 * window.c (scroll_command): If not acting on current_buffer,
8912 make redisplay consider all windows.
8913
8914 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
8915
8916 * xdisp.c (handle_glyph_prop): Set it->object for images to
8917 the object having the glyph property.
8918
8919 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
8920 invisible.
8921
89221998-11-11 Gerd Moellmann <gerd@gnu.org>
8923
8924 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
8925 (x_term_init): Create the gray pixmap.
8926 (x_setup_relief_color): Use it.
8927 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
8928 internal border at the top of a frame.
8929 (x_init_glyph_string): Likewise.
8930 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
8931 full-width lines.
8932 (XTflash): Don't flash the toolbar window.
8933
8934 * xterm.c (XTread_socket): Workaround for LessTif popup menus
8935 in case of ButtonPress events.
8936
89371998-11-10 Gerd Moellmann <gerd@gnu.org>
8938
8939 * xrdb.c (x_load_resources): Add grey background colors as
8940 defaults for menus, scroll bars, and dialogs.
8941
8942 * insdel.c (prepare_to_modify_buffer): Move setting
8943 windows_or_buffers_changed from modify_region here.
8944
8945 * xfns.c (Fx_show_tip): Inhibit redisplay.
8946 (Fx_hide_tip): Ditto.
8947 (Fx_image_header): New.
8948
89491998-11-09 Gerd Moellmann <gerd@gnu.org>
8950
8951 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
8952 when clearing current window matrices.
8953
89541998-11-08 Gerd Moellmann <gerd@gnu.org>
8955
8956 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
8957 position from a string position. Use the right end position
8958 if the property spans a whole overlay string.
8959
89601998-11-07 Gerd Moellmann <gerd@gnu.org>
8961
8962 * xmenu.c (menubar_selection_callback): Remove workaround for
8963 Lesstif not calling XmNpopdownCallback because it doesn't
8964 handle the case where users don't select any menu item.
8965
26901792
DL
8966 * insdel.c (modify_region): Set windows_or_buffers_changed.
8967
8968 * buffer.c (set_buffer_internal): Don't set
8969 windows_or_buffers_changed.
8970
26901792
DL
8971 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
8972
26901792
DL
8973 * xmenu.c (menubar_selection_callback): Add workaround for
8974 Lesstif not calling XmNpopdownCallback.
8975
8976 * xdisp.c (eval_mode_element): New.
8977 (eval_mode_handler): New.
8978 (display_mode_element): Use eval_mode_element.
8979
8980 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
8981 Remove code looking at text props of default value.
8982
8983 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
8984
26901792
DL
89851998-11-06 Gerd Moellmann <gerd@gnu.org>
8986
8987 * xmenu.c (single_submenu): Set button_type of menu to
8988 BUTTON_TYPE_NONE.
8989 (single_submenu): Likewise for panes and menu items.
8990 (set_frame_menubar): Set button_type of menu bar to none.
8991 (xmenu_show): Likewise.
8992 (single_submenu): Set widget values selected slot.
8993 (xmenu_show): Likewise.
8994
26901792
DL
8995 * xmenu.c (push_menu_item): Add parameters `type' and
8996 `selected'. Store it in menu_items.
8997 (MENU_ITEMS_ITEM_TYPE): New.
8998 (MENU_ITEMS_ITEM_SELECTED): New.
8999 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
9000
9001 * xfns.c (clear_image_cache): Get the current time, before
9002 doing anything.
9003 (cache_image): Set prev pointer of next image.
9004 (clear_image_cache): Clear current matrices if any image was
9005 freed.
9006
9007 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
9008
9009 * xfns.c (x_set_cursor): New.
9010 (Fx_display_busy_cursor): New.
9011 (Fx_undisplay_busy_cursor): New.
9012
9013 * xterm.h (struct x_output): Add busy_cursor.
9014
9015 * xfns.c (Vx_busy_pointer_shape): New.
9016 (x_set_mouse_color): Create busy cursor.
9017
9018 * process.c (wait_reading_process_input): Show and hide busy
9019 cursor.
9020
9021 * keyboard.c (command_loop_1): Display busy cursor.
9022
9023 * eval.c (Fsignal): Hide busy cursor.
9024
9025 * buffer.c (set_buffer_internal): Don't set
9026 windows_or_buffers_changed.
9027
9028 * xterm.c (redo_mouse_highlight): New.
9029
90301998-11-04 Gerd Moellmann <gerd@gnu.org>
9031
26901792
DL
9032 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
9033 (x_build_heuritic_mask): New.
9034 (lookup_image): Call it.
9035
9036 * xterm.c (note_toolbar_highlight): Always set up help_echo.
9037 (previous_help_echo): New.
9038 (XTread_socket): Generate help event with nil message when
9039 leaving a region with help-echo.
9040 (note_mouse_highlight): Handle `help-echo' over text.
9041 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
9042 CirculateRequest.
9043 (clear_mouse_face): Don't clear if tooltip is shown.
9044 (XTread_socket): Redo mouse-highlight after tooltip is gone.
9045 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
9046
9047 * keyboard.c (Vshow_help_function): New.
9048 (read_char): Use it.
9049
90501998-11-03 Gerd Moellmann <gerd@gnu.org>
9051
9052 * xfns.c (x_create_tip_frame): New.
9053 (Fx_show_tip): New.
9054 (Fx_hide_tip): New.
9055
9056 * xterm.c (x_destroy_window): Handle case that we don't have
9057 a widget.
9058
9059 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
9060 to full_width_p. Add internal_border_p.
9061
90621998-11-02 Gerd Moellmann <gerd@gnu.org>
9063
9064 * xterm.c (note_mode_line_highlight): Check the charpos of
9065 the glyph under the mouse pointer before accessing text
9066 properties at that position.
9067
90681998-11-01 Gerd Moellmann <gerd@gnu.org>
9069
9070 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
9071
9072 * xdisp.c (auto-raise-toolbar-buttons): New.
9073 (build_desired_toolbar_string): Handle the flag.
9074 (toolbar-button-margin): New.
9075 (toolbar-button-relief): New.
9076 (build_desired_toolbar_string): Use margin and relief.
9077
9078 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
9079 for FreeBSD.
9080 (note_mode_line_highlight): New.
9081 (note_mouse_highlight): Call it.
9082
90831998-10-31 Gerd Moellmann <gerd@gnu.org>
9084
9085 * s/freebsd.h (NARROWPROTO): New.
9086
9087 * xdisp.c (display_string): New parameter face_string.
9088 (display_mode_element): When displaying a symbol with a string
9089 value, use text properties from the symbol's default value, maybe.
9090
9091 * xrdb.c (x_load_resources): Add font defaults for menus and
9092 dialogs.
9093
90941998-10-30 Gerd Moellmann <gerd@gnu.org>
9095
9096 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
9097
90981998-10-29 Gerd Moellmann <gerd@gnu.org>
9099
9100 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
9101 produced for characters with codes < 32 under certain
9102 circumstances.
9103
9104 * xdisp.c (redisplay_window): Handle values of PT in front
9105 of invisible, intangible text.
9106 (try_window_id): Set overlay_arrow_seen to zero before
9107 displaying lines.
9108 (display_mode_element): Assign to glyphs written for a mode
9109 line spec `%x' as object the Lisp format string, as position
9110 the position of the `%' in that string.
9111 (display_string): If displaying a C string, optionally get
9112 the face to use from a Lisp string.
9113
9114 * xterm.c (expose_window_tree): Include mode line height.
9115
9116 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
9117
91181998-10-27 Gerd Moellmann <gerd@gnu.org>
9119
9120 * xterm.c (note_mouse_highlight): Change mouse pointer shape
9121 over mode line.
9122
91231998-10-26 Gerd Moellmann <gerd@gnu.org>
9124
9125 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
9126
9127 * xdisp.c (redisplay_window): If mode line height has changed,
9128 arrange for a thorough immediate redisplay using the correct mode
9129 line height.
9130 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
9131
9132 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
9133 (CURRENT_MODE_LINE_HEIGHT): New.
9134 (DESIRED_MODE_LINE_HEIGHT): New.
9135
9136 * keyboard.c (make_lispy_event): Add string and string position
9137 info to mouse-click events.
9138 (read_key_sequence): Handle `local-map' property of mode line
9139 strings.
9140
9141 * keyboard.h (POSN_STRING): New.
9142
91431998-10-25 Gerd Moellmann <gerd@gnu.org>
9144
9145 * dispnew.c (mode_line_string): Mew.
9146
9147 * xterm.c (xt_action_hook): New.
9148 (x_create_toolkit_scroll_bar): Add action hook.
9149 (xm_scroll_callback): Implement dragging.
9150
9151 * keyboard.c (Qend_scroll): New.
9152 (scroll_bar_parts): Add it.
9153
9154 * termhooks.h (scroll_bar_end_scroll): New.
9155
9156 * xterm.c (XTread_socket): Bug fix.
9157
91581998-10-24 Gerd Moellmann <gerd@gnu.org>
9159
9160 * xdisp.c (redisplay_window): Finish scroll bars after
9161 redisplaying toolbar.
9162
9163 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
9164 (syms_of_keyboard): Add Qbottom.
9165
9166 * termhooks.h (scroll_bar_to_top): New.
9167 (scroll_bar_to_bottom): New.
9168
9169 * xdisp.c (redisplay_window): Always resize toolbar window if
9170 auto_resize_toolbar_p is non-zero.
9171 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
9172 (window_box): New.
9173 (window_box_height): New.
9174 (window_box_width): New.
9175 (window_box_left): New.
9176 (window_box_right): New.
9177 (window_box_edges): New.
9178
91791998-10-23 Gerd Moellmann <gerd@gnu.org>
9180
9181 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
9182 XawScrollbarSetThumb in FreeBSD.
9183 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
9184 to true.
9185
9186 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
9187 is out of range.
9188
9189 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
9190 (x_term_init): Initialize it.
9191
9192 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
9193
9194 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
9195 cursor.
9196
91971998-10-22 Gerd Moellmann <gerd@gnu.org>
9198
9199 * keyboard.c (make_lispy_event): Handle scroll_bar_click
9200 differently when using toolkit scroll bars.
9201
9202 * xterm.c (x_send_scroll_bar_event): New.
9203 (x_scroll_bar_to_input_event): New.
9204 (xaw3d_scroll_callback): New.
9205 (xaw3d_jump_callback): New.
9206 (xm_scroll_callback): New.
9207 (x_toolkit_scroll_p): New.
9208 (XTread_socket): Handle scroll bar client message.
9209 (x_term_init): Initialize Xatom_Scrollbar.
9210 (x_scroll_bar_create): Set cursor.
9211 (xm_scroll_callback):
9212 (x_create_toolkit_scroll_bar): New.
9213 (x_set_toolkit_scroll_bar_thumb): New.
9214 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
9215 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
9216
9217 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
9218
92191998-10-21 Gerd Moellmann <gerd@gnu.org>
9220
9221 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
9222 (XTread_socket): Don't handle mouse button events for scroll bars
9223 if using toolkit scroll bars.
9224 (XTset_vertical_scroll_bar): Set thumb size and position for
9225 Athena scroll bar.
9226
9227 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
9228
9229 * xterm.c (XTread_socket): Dispatch expose event to widget
9230 if using toolkit scroll bars.
9231 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
9232 (x_scroll_bar_create): Create and show a scroll bar widget
9233 if using toolkit scroll bars.
9234 (x_scroll_bar_move): Handle tookit scroll bars.
9235
9236 * Makefile.in (LIBW): Use Xaw3d if present.
9237
9238 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
9239 (HAVE_XAW3D): New.
9240
9241 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
9242 (HAVE_XAW3D): New.
9243
9244 * xterm.c (XTset_vertical_scroll_bar): Correct position of
9245 right vertical scroll bar.
9246
92471998-10-20 Gerd Moellmann <gerd@gnu.org>
9248
9249 * xfns.c (xpm_load): Support reading XPM images from string
9250 buffers containing data in the same format as an XPM file.
9251 Support `:color-symbols'.
9252 (xpm_format): Add `:data'.
9253 (xpm_keyword_index): Add XPM_DATA.
9254 (syms_of_xfns): Add `:color-symbols'.
9255 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
9256 (xpm_valid_color_symbols_p): New.
9257 (xpm_image_p): Call it.
9258
9259 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
9260 attribute to the image if item is not enabled.
9261
9262 * xfns.c (x_laplace): New.
9263 (x_laplace_read_row): New.
9264 (x_laplace_write_row): New.
9265 (lookup_image): Handle common image attributes here. New
9266 attribute `:algorithm'.
9267
9268 * xfaces.c (clear_face_cache): Call clear_image_cache.
9269
9270 * xterm.c (x_inverted_image_mask): Removed.
9271 (x_draw_image_foreground_1): New.
9272 (x_draw_image_glyph_string): Draw images with mask to a temporary
9273 pixmap to reduce flickering.
9274
9275 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
9276 (display_toolbar_line): Remove parameter `margin'.
9277
92781998-10-19 Gerd Moellmann <gerd@gnu.org>
9279
9280 * xdisp.c (toolbar_lines_needed): New.
9281 (auto-resize-toolbars): New.
9282
9283 * xfns.c (cache_image): Correct call to xrealloc.
9284
9285 * dispnew.c (Fset_toolbar_height): Removed.
9286
9287 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
9288 FRAME_MENU_BAR_LINES.
9289
9290 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
9291 instead of FRAME_MENU_BAR_LINES.
9292 (check_frame_size): Ditto.
9293
9294 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
9295 instead of FRAME_MENU_BAR_LINES.
9296 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
9297 (build_frame_matrix): Ditto.
9298 (change_frame_size_1): Ditto.
9299
9300 * frame.h (FRAME_TOOLBAR_LINES): New.
9301 (FRAME_TOP_MARGIN): New.
9302
9303 * window.c (struct save_window_data): Add frame_toolbar_lines.
9304 (Fset_window_configuration): Handle toolbar lines.
9305 (Fcurrent_window_configuration): Save toolbar lines.
9306
9307 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
9308
9309 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
9310
9311 * frame.h (struct frame): Rename top_margin to toolbar_lines.
9312
9313 * xfns.c (x_frame_parms): Add `toolbar-lines'.
9314 (x_set_toolbar_lines): New.
9315
9316 * keyboard.c (cmd_error_internal): Bug fix.
9317
9318 * xterm.c: Remove double include of syssignal.h.
9319
93201998-10-18 Gerd Moellmann <gerd@gnu.org>
9321
9322 * xterm.c (x_toolbar_item): New.
9323 (x_handle_toolbar_click): Use it.
9324 (note_toolbar_highlight): Use it.
9325
9326 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
9327 and toolbar_items_vectors.
9328
9329 * xterm.c (help_echo): New.
9330 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
9331 (x_set_glyph_string_gc): Handle them.
9332 (x_after_update_window_line): Don't do anything in pseudo-windows.
9333 (x_produce_image_glyph): Take image margin and face relief into
9334 account.
9335 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
9336 (x_draw_glyph_string_background): Optimize case when face has
9337 relief.
9338 (x_setup_relief_color): Take frame instead of glyph string
9339 parameter.
9340 (x_draw_relief_rect): New.
9341 (x_draw_glyph_string_relief): Call it.
9342 (x_draw_image_glyph_string_foreground): Handle margin and image
9343 relief.
9344 (x_draw_image_glyph_string_background): Ditto.
9345 (expose_frame): Redraw toolbar window.
9346 (expose_window): Don't draw cursor for pseudo-windows.
9347 (x_y_to_hpos_vpos): Handle pseudo-windows.
9348 (frame_to_window_pixel_xy): New.
9349 (note_mouse_highlight): Call note_toolbar_highlight.
9350 (x_handle_toolbar_click): New.
9351 (note_toolbar_highlight): New.
9352 (show_mouse_face): Change int parameter `hl' to parameter of
9353 type enum draw_glyphs_face. Handle image highlighting.
9354 (XTread_socket): Return a HELP_EVENT input event if help_echo is
9355 non-nil. Use x_handle_toolbar_click.
9356
9357 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
9358
9359 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
9360 IMAGE_BOOL_VALUE.
9361 (parse_image_spec): Handle them.
9362 (image_spec_value): Additional parameter found.
9363 (free_image): Remove image from the vector `images' of the
9364 image cache.
9365 (clear_image_cache): Additional parameter force_p.
9366 (Fclear_image_cache): New.
9367 (x_find_image_file): New.
9368 (xbm_load): Handle `:margin' and `:relief'. Use
9369 x_find_image_file.
9370 (xpm_load): Likewise.
9371 (pbm_load): Likewise.
9372 (jpeg_load): Likewise.
9373 (tiff_load): Likewise.
9374 (gif_load): Likewise.
9375
9376 * keyboard.c (Qhelp_echo): New symbol.
9377 (read_char): Handle `toolbar' and `help_echo' events.
9378 (kbd_buffer_get_event): Handle HELP_ECHO input event.
9379 (make_lispy_event): Handle TOOLBAR_EVENT.
9380 (toolbar_items): New.
9381 (process_toolbar_item): New.
9382 (PROP): New.
9383 (init_toolbar_items): New.
9384 (append_toolbar_item): New.
9385 (read_char_x_menu_prompt): Handle `toolbar' event.
9386 (read_key_sequence): Ditto.
9387
9388 * xfaces.c (Qtoolbar): New.
9389 (realize_basic_faces): Realize `toolbar' face.
9390 (face_at_string_position): Remove parameter modeline_p, add
9391 base_face_id.
9392
9393 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
9394 to read data.
9395
93961998-10-17 Gerd Moellmann <gerd@gnu.org>
9397
9398 * xdisp.c (init_iterator): Replace parameter modeline_p with
9399 base_face_id.
9400 (next_element_from_string): Call get_next_display_element
9401 recursively after handling text properties.
9402 (prepare_menu_bars): Call update_toolbar.
9403 (update_toolbar): New.
9404 (build_desired_toolbar_string): New.
9405 (display_toolbar_line): New.
9406 (redisplay_toolbar): New.
9407 (toolbar_item_info): New.
9408 (redisplay_window): Call redisplay_toolbar.
9409 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
9410
9411 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
9412 window.
9413 (clear_desired_matrices): Ditto.
9414 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
9415 (free_glyphs): Free matrices of toolbar window.
9416 (update_frame): Update toolbar window.
9417 (change_frame_size_1): Take toolbar into account.
9418 (Fset_toolbar_height): New.
9419
9420 * dispextern.h (struct it): Remove member modeline_p, add
9421 base_face_id.
9422 (struct image): Add members relief and margin.
9423 (IMAGE_ASCENT): Include margin in height.
9424
94251998-10-14 Gerd Moellmann <gerd@gnu.org>
9426
9427 * xfns.c (Fclear_image_cache): New.
9428
9429 * xfaces.c (realize_basic_faces): Realize toolbar face.
9430 (face_at_string_position): Remove parameter modeline_p, add
9431 base_face_id.
9432
9433 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
9434
94351998-10-13 Gerd Moellmann <gerd@gnu.org>
9436
9437 * keyboard.c (syms_of_keyboard): Intern `:help'.
9438
94391998-10-12 Gerd Moellmann <gerd@gnu.org>
9440
9441 * xterm.c (note_toolbar_highlight): New.
9442 (note_mouse_highlight): Call it.
9443
9444 * window.c (window_from_coordinates): Additional parameter toolbar_p.
9445 (coordinates_in_window): Handle toolbar window.
9446
9447 * keyboard.c (toolbar_items): New.
9448 (process_toolbar_item): New.
9449 (parse_toolbar_item): New.
9450 (init_toolbar_items): New.
9451 (append_toolbar_item): New.
9452
9453 * dispextern.h (enum toolbar_item_idx): New.
9454 (enum toolbar_item_image): New.
9455
9456 * frame.h (struct frame): Add toolbar-related members.
9457
9458 * xfaces.c (face_at_string_position): Remove assertion that
9459 current_buffer == window's buffer. This is not the case when
9460 called for the toolbar window.
9461
9462 * frame.c (make_frame): Initialize toolbar members.
9463
9464 * alloc.c (mark_object): Mark toolbar data of frames.
9465
9466 * frame.h (struct frame): Add toolbar-related members
9467 toolbar_window, desired_toolbar_items, current_toolbar_items,
9468 desired_toolbar_string, current_toolbar_string,
9469 n_desired_toolbar_items, n_current_toolbar_items. Add
9470 window_height.
9471
9472 * xterm.c (x_after_update_window_line): Don't draw bitmap
9473 areas for pseudo-windows.
9474 (expose_frame): Handle toolbar window.
9475 (expose_window): Don't do cursor stuff for pseudo-windows.
9476
9477 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
9478
94791998-10-11 Gerd Moellmann <gerd@gnu.org>
9480
9481 * frame.c (make_frame): Initialize toolbar_window.
9482
9483 * alloc.c (mark_object): Make the toolbar window.
9484
9485 * dispnew.c (update_frame): Update frame's toolbar_window.
9486 (clear_current_matrices): Likewise.
9487 (clear_desired_matrices): Likewise.
9488 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
9489 (free_glyphs): Free the toolbar window and its matrices.
9490
9491 * frame.h (struct frame): Add toolbar_window.
9492
9493 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
9494 with relief.
9495
94961998-10-10 Gerd Moellmann <gerd@gnu.org>
9497
9498 * dispnew.c (buffer_posn_from_coords): Don't screw up if
9499 window start is not in the range BEGV..ZV.
9500
95011998-10-09 Gerd Moellmann <gerd@gnu.org>
9502
9503 * xdisp.c (try_scrolling): Experimentally handle the case
9504 that scroll-preserve-screen-position is set to `always'.
9505
9506 * window.c (Vscroll_preserve_screen_position): Replacement for
9507 scroll_preserve_screen_position.
9508
95091998-10-08 Gerd Moellmann <gerd@gnu.org>
9510
9511 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
9512 doesn't like it.
9513 * xdisp.c: Ditto.
9514
9515 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
9516
95171998-10-06 Gerd Moellmann <gerd@gnu.org>
9518
9519 * minibuf.c (Fminibuffer_complete_word): Fix computation of
9520 i_byte when prompts are inserted into minibuffers.
9521
9522 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
9523 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
9524 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
9525
95261998-10-04 Gerd Moellmann <gerd@gnu.org>
9527
9528 * xdisp.c (make_cursor_line_fully_visible): New.
9529 (try_scrolling): New.
9530 (redisplay_window): Move scrolling code to try_scrolling.
9531 (make_cursor_line_fully_visible): Handle case of window too small
9532 to show a single line.
9533 (redisplay_window): Case forced window start---use
9534 make_cursor_line_fully_visible.
9535 (redisplay_window): Case cursor movement via current matrix.
9536 If ending up on a partially visible line, make it fully visible
9537 instead of recentering.
9538 (try_scrolling): Additional parameter scroll_smoothly.
9539
9540 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
9541
95421998-09-28 Gerd Moellmann <gerd@gnu.org>
9543
9544 * window.c (window_scroll_pixel_based): Bug fix: vpos used
9545 instead of y-position for scroll-preserved-screen-position.
9546
95471998-09-07 Gerd Moellmann <gerd@gnu.org>
9548
9549 * dispnew.c (update_frame_line): If current row is not enabled,
9550 write the whole line.
9551
95521998-09-06 Gerd Moellmann <gerd@gnu.org>
9553
9554 * lisp.h (HAVE_FACES): Removed.
9555
9556 * dispextern.h (HAVE_FACES): Removed.
9557
9558 * config.in (HAVE_FACES): Removed.
9559
9560 * dispnew.c (HAVE_FACES): Removed.
9561
9562 * xdisp.c (HAVE_FACES): Removed.
9563
9564 * xfaces.c (HAVE_FACES): Removed.
9565
95661998-09-05 Gerd Moellmann <gerd@gnu.org>
9567
9568 * xdisp.c (init_iterator): If face_change_count is non-zero,
9569 free realized faces.
9570
9571 * xfaces.c (free_all_realized_faces): Make it externally visible.
9572 (Finternal_set_lisp_face_attribute): Increment
9573 windows_or_buffers_changed.
9574
9575 * dispnew.c (direct_output_for_insert): Give up if
9576 face_change_count is non-zero.
9577 (direct_output_forward_char): Ditto.
9578
9579 * xfaces.c (face_change_count): New.
9580
95811998-09-04 Gerd Moellmann <gerd@gnu.org>
9582
9583 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
9584 of range.
9585
95861998-09-03 Gerd Moellmann <gerd@gnu.org>
9587
9588 * term.c (Ftty_display_color_p): New.
9589
95901998-09-02 Gerd Moellmann <gerd@gnu.org>
9591
9592 * xfaces.c (Ftty_defined_colors): New.
9593
9594 * xterm.c (x_produce_glyphs): Fix computation of
9595 contains_overlapping_glyphs_p for ASCII.
9596
9597 * dispnew.c (Fshow_cursor): Don't change cursor state while
9598 redisplaying.
9599 (direct_output_for_insert): If a glyph with lbearing or rbearing
9600 is among the new glyphs, set row flag contains_overlapping_glyph_p.
9601
96021998-09-01 Gerd Moellmann <gerd@gnu.org>
9603
9604 * term.c (OUTPUT_IF): Make replacement text have statement form.
9605 (OUTPUT1_IF): Ditto.
9606 (TS_italic_mode, TS_end_italic_mode): Removed.
9607 (TS_bold_mode): Removed.
9608 (TS_underscore_mode, TS_end_underscore_mode): Removed.
9609 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
9610 (TS_enter_reverse_mode): New.
9611 (TS_enter_underline_mode, TS_exit_underline_mode): New.
9612 (TN_magic_cookie_glitch_ul): New.
9613 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
9614 (TS_exit_attribute_mode): New.
9615 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
9616 (TS_set_foreground, TS_set_background): New.
9617 (reset_terminal_modes): Switch colors back to default.
9618 (write_glyphs): Turn face on before writing text, turn it off
9619 afterwards.
9620 (insert_glyphs): Ditto.
9621 (term_init): Initialize new terminal capability variables.
9622 (turn_on_face): Turn a face on.
9623 (turn_off_face): Turn a face off.
9624
9625 * lisp.h (MAKE_GLYPH): Remove test for frame type.
9626 (GLYPH_CHAR): Ditto.
9627 (GLYPH_FACE): Ditto.
9628
9629 * xfaces.c (Vface_tty_color_alist): New.
9630 (face-register-tty-color): New.
9631 (face-clear-tty-colors): New.
9632
9633 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
9634 (struct it): Remove member faces_p since we now always have faces.
9635
96361998-08-31 Gerd Moellmann <gerd@gnu.org>
9637
9638 * dispextern.h (struct face): Add tty appearance flags.
9639
9640 * xdisp.c (init_iterator): Always handle faces.
9641 (extend_face_to_end_of_line): Handle tty frames.
9642
9643 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
9644 passed in.
9645
96461998-08-30 Gerd Moellmann <gerd@gnu.org>
9647
9648 * xfaces.c (realize_default_face): Use empty strings to indicate
9649 that the face should use the default foreground/background
9650 color of the terminal. Fill font-related attributes with
9651 appropriate values for tty frames.
9652
9653 * emacs.c (main): Call syms_of_xfaces before init_window_once.
9654
9655 * xfaces.c (realize_default_face): If face `default' is not
9656 yet known, create it.
9657
9658 * frame.c (make_terminal_frame): Call init_frame_faces
9659 unconditionally.
9660
9661 * xfaces.c (init_frame_faces): Make it work for tty frames.
9662 (free_frame_faces): Ditto.
9663 (clear_face_cache): Ditto.
9664 (recompute_basic_faces): Ditto.
9665 (Fframe_face_alist): Ditto.
9666 (free_realized_face): Ditto.
9667 (prepare_face_for_display): Ditto.
9668 (clear_face_gcs): Ditto.
9669 (lookup_face): Ditto.
9670 (smaller_face): Ditto.
9671 (realize_default_face): Ditto.
9672 (realize_face): Ditto.
9673 (realize_face): Dispatch to functions depending on the frame type.
9674 (realize_x_face): X way of realizing faces.
9675 (realize_tty_face): TTY way of realizing faces.
9676
96771998-08-29 Gerd Moellmann <gerd@gnu.org>
9678
9679 * xfaces.c (realize_face): Remove parameter unibyte_registry,
9680 compute it instead.
9681 (lookup_face): Remove local variable unibyte_registry.
9682
96831998-08-22 Gerd Moellmann <gerd@gnu.org>
9684
9685 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
9686 1 pixel longer.
9687
9688 * xdisp.c (face_before_or_after_it_pos): Fix computation
9689 of face in buffer.
9690
9691 * editfns.c (make_buffer_string_both): If prompt in buffer,
9692 prevent start > end.
9693
9694 * indent.c (Fvertical_motion): Set current_buffer to window's
9695 buffer if it isn't already.
9696
96971998-08-21 Gerd Moellmann <gerd@gnu.org>
9698
9699 * dispextern.h (GLYPH_DEBUG): Use default 0.
9700
9701 * xdisp.c (it_props): New member `smaller'.
9702 (init_iterator): Initialize it.
9703 (Qsmaller): New.
9704 (push_it): Save value of `smaller' value on the stack.
9705 (pop_it): Restore `smaller' from the stack.
9706 (handle_smaller_prop): New.
9707 (handle_face_prop): Use `smaller' text property to select a
9708 suitable face.
9709
9710 * dispextern.h (SMALLER_PROP_IDX): New.
9711 (struct it): Add member `smaller'.
9712
9713 * xfaces.c (smaller_face): New.
9714
9715 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
9716
9717 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
9718 total pixel width of window differently.
9719
9720 * xdisp.c (init_iterator): Compute width of mode line differently.
9721
9722 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
9723 of bitmap areas.
9724
9725 * window.c (Fsplit_window): Include width of bitmap areas in
9726 window width.
9727 (window_internal_width): Subtract width of bitmap areas from
9728 total width.
9729
97301998-08-18 Gerd Moellmann <gerd@gnu.org>
9731
9732 * xdisp.c: Functions reordered for better readability.
9733
9734 * dispnew.c (update_text_area): Handle glyphs with arbitrary
9735 lbearing.
9736 (update_window_tree): Parameter no_scrolling_p removed.
9737 (update_single_window): Ditto.
9738
9739 * xterm.c (x_get_char_font_and_encoding): Renamed to
9740 x_get_char_face_and_encoding.
9741
9742 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
9743 if end of current row reached.
9744
9745 * xterm.c (x_get_glyph_face_and_encoding): New.
9746 (x_get_glyph_overhangs): Call it.
9747
9748 * xdisp.c (Qshow_trailing_whitespace): New.
9749 (Qtrailing_whitespace): New.
9750 (enum prop_handled): New.
9751 (struct props, it_props): New.
9752 (next_overlay_change): New. Works like Fnext_overlay_change
9753 but doesn't use xmalloc.
9754 (handle_stop): Restructured.
9755 (face_before_or_after_it_pos): Case iteration over a string: fix
9756 handling of face before current position.
9757
97581998-08-16 Gerd Moellmann <gerd@gnu.org>
9759
9760 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
9761 reallocation matrix if fonts_changed_p.
9762 (update_text_area): Handle glyphs with lbearing.
9763
97641998-08-14 Gerd Moellmann <gerd@gnu.org>
9765
9766 * xdisp.c (struct props): New.
9767 (it_props): New.
9768 (compute_prop_info): New.
9769 (handle_stop): New.
9770
9771 * textprop.c (validate_interval_range): Make it externally
9772 visible.
9773
9774 * dispnew.c (direct_output_for_insert): Remove calls
9775 to compute_stop_pos.
9776
9777 * dispextern.h (struct it): Remove check_charpos,
9778 next_overlay_pos. Add what_changes.
9779
97801998-08-10 Gerd Moellmann <gerd@gnu.org>
9781
9782 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
9783
9784 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
9785 face_default_registry instead.
9786
9787 * syntax.c (scan_sexps_forward): Set up syntax table before
9788 jumping to initial state label.
9789
97901998-08-09 Gerd Moellmann <gerd@gnu.org>
9791
9792 * dispnew.c (check_matrix_invariants): Handle case of row end pos
9793 >= ZV specially.
9794
97951998-08-08 Gerd Moellmann <gerd@gnu.org>
9796
9797 * xdisp.c (redisplay_window): Case cursor movement---if cursor
9798 ends up in partially visible row, try to scroll. Case forced
9799 window start---handle windows not tall enough to show a single
9800 line.
9801
9802 * window.h (struct window): Member dy renamed vscroll.
9803
9804 * xterm.c (x_list_fonts): Re-activate suppression of scalable
9805 fonts.
9806 (x_draw_stretch_glyph_string): Set clipping if using GC that
9807 hasn't set it yet.
9808
9809 * xdisp.c (redisplay_window): Case forced window start -
9810 don't let cursor end on partially visible row. Use desired
9811 matrix to find a suitable PT if it doesn't appear.
9812 (decode_mode_spec): Merged with 20.2.97.
9813 (try_window_reusing_current_matrix): Give up if old or
9814 new display is vscrolled.
9815 (redisplay_window): Reset vscrolling if forced window start,
9816 or if recentering.
9817
98181998-08-06 Gerd Moellmann <gerd@gnu.org>
9819
9820 * xfaces.c (realize_default_face): Use the fontset name instead of
9821 the alias for the family attribute of the default face because we
9822 can't easily determine a good alias from fontset-alias-alist.
9823 (face_fontset): Use Fquery_fontset to find the fontset.
9824 (font_list): Additional pattern parameter.
9825 (try_font_list): Ditto.
9826 (set_lface_from_font_name): Set face family from font foundry
9827 and family.
9828 (font_list): If family contains a hyphen, build pattern differently.
9829
98301998-08-05 Gerd Moellmann <gerd@gnu.org>
9831
9832 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
9833 changed instead of setting the frame garbaged.
9834
9835 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
9836 all attribute values. This is wrong if values are unspecified,
9837 i.e. nil.
9838
9839 * xdisp.c (try_window_id): Give up if window start changed.
9840
9841 * xfaces.c (make_realized_face): Store registry as Lisp object.
9842 (load_face_font_or_fontset): Compute registry of a face
9843 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
9844 possible.
9845
9846 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
9847 differently.
9848
9849 * alloc.c (mark_face_cache): Mark the registry member of faces.
9850
9851 * dispextern.h (struct face): Make registry a Lisp string.
9852
98531998-08-04 Gerd Moellmann <gerd@gnu.org>
9854
9855 * xterm.c (x_get_char_font_and_encoding): Additional parameter
9856 multibyte_p. Handle unibyte text.
9857 (x_append_glyph): Set the multibyte_p flag of glyphs.
9858 (x_produce_image_glyph): Ditto.
9859 (x_append_stretch_glyph): Ditto.
9860 (x_produce_glyphs): Handle unibyte text like ASCII.
9861
9862 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
9863 stack.
9864 (pop_it): Restore it.
9865 (face_before_or_after_it_pos): Handle the case that the string or
9866 buffer is unibyte.
9867 (get_overlay_strings): Set the multibyte flag of the iterator if
9868 the new overlay string is multibyte.
9869 (get_glyph_property): Likewise.
9870 (get_next_display_element): Don't check for charset changes in
9871 unibyte text.
9872 (append_space): Compute face differently for unibyte text.
9873 (extend_face_to_end_of_line): Don't return quickly if face has
9874 stipple.
9875
9876 * xfaces.c (load_face_font_or_fontset): Store registry and
9877 encoding of the font in the registry member of the face.
9878 (make_realized_face): Additional parameter `registry'.
9879 (free_realized_face): Free the registry of a realized face.
9880 (face_suitable_for_charset_p): Function form of the macro
9881 with the same name in uppercase.
9882 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
9883 (choose_face_font): New parameter unibyte_registry.
9884 (choose_face_fontset_font): Ditto.
9885 (realize_default_face): Remember the registry and encoding of
9886 the specified frame font in Vx_unibyte_registry_and_encoding.
9887 (face_at_buffer_position): Handle unibyte.
9888 (face_at_string_position): Likewise.
9889 (realize_face): New parameter unibyte_registry.
9890 (compute_char_face): Handle the unibyte case.
9891
9892 * dispextern.h (struct glyph): Add bit multibyte_p.
9893 (struct face): New member registry holding the registry and
9894 encoding of the X font of the face.
9895 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
9896 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
9897 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
9898 text.
9899 (struct iterator_stack_entry): Add multibyte_p.
9900
9901 * xdisp.c (string_pos): Use string_char_to_byte.
9902 (char_charset): Removed.
9903
99041998-08-03 Gerd Moellmann <gerd@gnu.org>
9905
9906 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
9907 rectangle for a block cursor over an image without a mask.
9908 (x_stretch_block_cursor): Added. Non-zero means don't draw
9909 a block cursor over a stretch as wide as that stretch.
9910 (x_draw_stretch_glyph_string): Use it.
9911 (x_draw_hollow_cursor): Ditto.
9912
9913 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
9914 (read_minibuf): Add front-sticky text property for prompt.
9915
9916 * xdisp.c (char_charset): Return charset of a character,
9917 depending on whether or not multi-byte characters are enabled.
9918
9919 * xfaces.c (Fset_face_charset_registry): Removed.
9920 (x_charset_registry): Determine registry from charset plist.
9921
99221998-08-02 Gerd Moellmann <gerd@gnu.org>
9923
9924 * xdisp.c (get_next_display_element): Don't check for charset
9925 changes if multi-byte characters are not enabled.
9926
9927 * xdisp.c (echo_area_display): Use the flush function from the
9928 redisplay interface.
9929 * keyboard.c (detect_input_pending_run_timers): Likewise.
9930
9931 * dispextern.h (produce_*glyphs_hook): Removed.
9932 * term.c (produce_*glyphs): Ditto.
9933 (cursor_to): Remove pixel position parameters.
9934
9935 * dispnew.c: Remove hooks for window-based redisplay, introduce
9936 a redisplay interface structure.
9937
9938 * xterm.c (x_per_char_metric): Return default char metrics if per
9939 char metric exists but contains a zero width. Adobe Courier seems
9940 to contain such characters.
9941
9942 * xdisp.c (compute_line_metrics): Compute the width of rows
9943 without stopping at glyphs with zero width.
9944
99451998-08-01 Gerd Moellmann <gerd@gnu.org>
9946
9947 * xdisp.c (display_mode_line): If nothing was displayed at all,
9948 display a space.
9949 (hscroll_window_tree): Don't subtract 1 from target point if equal
9950 to ZV and window is not the selected window.
9951
9952 * dispnew.c (check_matrix_invariants): Remove check for window
9953 start at BEGV or after newline. This happens in rare cases
9954 intentionally.
9955
99561998-07-31 Gerd Moellmann <gerd@gnu.org>
9957
9958 * xfaces.c (x_charset_registry): Use STRING_BYTES.
9959 (syms_of_xfaces): Add Vface_default_registry.
9960 (x_charset_registry): Use it.
9961
9962 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
9963 (redisplay_window): Use it.
9964
9965 * dispnew.c (update_text_area): Handle lbearing of deleted text
9966 by backing up one character.
9967
99681998-07-30 Gerd Moellmann <gerd@gnu.org>
9969
9970 * dispnew.c (adjust_glyph_matrix): Use a different check to
9971 decide to do nothing.
9972
9973 * xfaces.c (face_at_string_position): Additional parameter
9974 mode_line_p. If non-zero, merge with the mode line face
9975 instead of the default face.
9976 * dispextern.h (struct it): Add mode_line_p.
9977 * xdisp.c (init_iterator): Set it.
9978 (compute_face_in_string): Use it.
9979 (face_before_or_after_it_pos): Handle strings.
9980 (get_next_display_element): Don't look for relief end in C strings.
9981 (next_element_from_string): Deliver string position instead of
9982 buffer position.
9983
9984 * xterm.c (x_flush): Flush X output buffer.
9985 (XTflash): Use it.
9986
9987 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
9988 Allow strings as face names.
9989
9990 * xfns.c (forall_images_in_image_cache): Check that frame is
9991 alive.
9992
9993 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
9994 it's also called from x_destroy_window. Since this function is
9995 called from X, freeing stuff allocated with xmalloc is dangerous
9996 here, anyway.
9997
9998 * xfaces.c (free_realized_faces): Don't clear current matrices
9999 of a frame being destroyed.
10000
10001 * frame.c (make_frame): Call set_window_buffer instead of
10002 Fset_window_buffer.
10003
10004 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
10005 with an additional argument specifying whether or not hooks may
10006 be called.
10007 (Fset_window_buffer): Call it.
10008
10009 * dispnew.c (clear_desired_matrices): Check that frame has
10010 a valid root window before clearing matrices in the window tree.
10011 (clear_current_matrices): Ditto.
10012 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
10013 vchild are valid windows if not nil.
10014
10015 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
10016 for :inverse-video.
10017 (Finternal_set_lisp_face_attribute): Ditto.
10018 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
10019 (Finternal_get_lisp_face_attribute): Ditto.
10020 (Finternal_lisp_face_attribute_values): Ditto.
10021 (syms_of_xfaces): Define the symbol `:reverse-video'.
10022
10023 * xdisp.c (get_glyph_property): Renamed from
10024 fill_iterator_from_glyph_property.
10025 (next_element_from_buffer): Handle case that no `glyph' property
10026 was found correctly.
10027 (display_line): Extend face to end of line only if we have faces.
10028
100291998-07-29 Gerd Moellmann <gerd@gnu.org>
10030
10031 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
10032 additional window argument.
10033
10034 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
10035 set_iterator_to_previous_visible_line_start.
10036 (reseat_at_next_visible_line_start): Likewise.
10037 (compute_stop_pos): Renamed from set_iterator_stop_pos.
10038 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
10039 (compute_face_in_buffer): Renamed from
10040 compute_face_at_iterator_position.
10041 (compute_face_in_string): Renamed from
10042 compute_face_at_iterator_string_position.
10043 (get_space_width): Renamed from get_iterator_space_width.
10044 (next_overlay_string): Renamed from
10045 set_iterator_to_next_overlay_string.
10046 (get_overlay_strings): Renamed from
10047 get_overlay_strings_at_iterator_position.
10048 (restore_overlay_strings): Renamed from
10049 setup_overlay_strings_from_glyph_pos.
10050 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
10051 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
10052 (init_to_row_start): Renamed from init_iterator_to_row_start.
10053 (init_to_row_end): Formerly init_iterator_to_next_row_start.
10054
10055 * xterm.c: Merge with 20.2.97.
10056 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
10057
10058 * dispextern.h (struct glyph): Replace text_pos position with
10059 simple charpos.
10060
10061 * xdisp.c (this_line_start_pos): Use struct text_pos.
10062 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
10063 (enum move_it_result): Renamed from move_iterator_result.
10064 (string_pos_nchars_ahead): Compute text_pos in a string from a
10065 known text_pos plus a character delta.
10066 (string_pos): Compute text_pos in string from charpos.
10067 (c_string_pos): Likewise for a C string.
10068 (number_of_chars): Return number of characters in a possibly
10069 multi-byte C string.
10070 (check_it): Renamed from check_iterator. Check that charpos and
10071 bytepos are in sync.
10072 (push_it): Renamed from save_iterator_settings.
10073 (pop_it): Renamed from restore_iterator_settings.
10074 (move_it_.*): Renamed from move_iterator_.*.
10075 (charset_at_position): Take charpos/bytepos into account.
10076 (back_to_previous_line_start): Set iterator to previous line start.
10077 (forward_to_next_line_start): Set iterator to next line start.
10078 (back_to_previous_visible_line_start): Renamed from
10079 move_iterator_previous_visible_line_start.
10080 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
10081 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
10082 Handle charpos/bytepos.
10083 (compute_face_at_iterator_position): Handle charpos/bytepos.
10084 (compute_face_at_iterator_string_position): Likewise.
10085 (get_iterator_space_width): Likewise.
10086 (load_overlay_strings): Likewise.
10087 (get_overlay_strings_at_iterator_position): Likewise.
10088 (reseat_iterator): Take a text_pos position argument.
10089 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
10090 bytepos.
10091 (init_iterator): Take additional bytepos parameter.
10092 (reseat_iterator_to_string): Handle charpos/bytepos.
10093 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
10094 (next_element_from_string): Handle charpos/bytepos.
10095 (next_element_from_c_string): Likewise.
10096 (fill_iterator_from_glyph_property): Likewise.
10097 (next_element_from_buffer): Likewise.
10098 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
10099 (move_iterator_in_display_line_to): Handle charpos/bytepos.
10100 (move_it_to): Likewise.
10101 (move_it_vertically_backward): Likewise.
10102 (move_it_vertically): Likewise.
10103 (move_it_by_lines): Likewise.
10104 (hscroll_window_tree): Likewise.
10105 (redisplay_internal): Likewise.
10106 (set_cursor_from_row): Likewise.
10107 (redisplay_window): Likewise.
10108 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
10109 (try_window_reusing_current_matrix): Handle charpos/bytepos.
10110 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
10111 (try_window_id): Handle charpos/bytepos.
10112 (Ftrace_redisplay_toggle): Return Qnil.
10113 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
10114 (insert_left_trunc_glyphs): Likewise.
10115
10116 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
10117 do a real merge).
10118 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
10119 (increment_glyph_row_buffer_positions): Ditto.
10120 (copy_glyph_row_contents): Ditto.
10121 (check_matrix_invariants): Add additional checks for charpos/
10122 bytepos consistency.
10123 (direct_output_for_insert): Changed for charpos/bytepos.
10124 (buffer_posn_from_coords): Likewise. Put code dealing with
10125 `direction-reversed' in #if 0.
10126
10127 * xterm.h: Merge with 20.2.97.
10128
10129 * frame.h: Merge with 20.2.97.
10130
10131 * window.h: Merge with 20.2.97. Add window_end_bytepos.
10132
10133 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
10134 start.
10135 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
10136 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
10137 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
10138 (struct it): Various members renamed from .*pos to .*charpos.
10139 (IT_CHARPOS): Access current buffer character position of an
10140 iterator.
10141 (IT_BYTEPOS): Access current buffer byte position of an iterator.
10142 (IT_STRING_CHARPOS): Access current string character position of
10143 an iterator.
10144 (IT_STRING_BYTEPOS): Access current string byte position of
10145 an iterator.
10146 (globally): Add function prototypes from 20.2.97.
10147
10148 * everywhere: Use P_ instead of PROTO for function prototypes
10149 because everyone else seems to use P_.
10150
10151 * dispextern.h (struct text_pos): Structure describing a charpos/
10152 bytepos position in text.
10153 (BYTEPOS): Access the byte position part of a text_pos.
10154 (CHARPOS): Likewise for the character position.
10155 (SET_TEXT_POS): Set a text_pos from a character and byte position.
10156 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
10157 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
10158 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
10159 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
10160 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
10161 for buffer and string positions.
10162 (struct glyph): Use text_pos.
10163 (struct it): Renamed from display_iterator. Use text_pos.
10164
101651998-07-23 Gerd Moellmann <gerd@gnu.org>
10166
10167 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
10168 pixmap.
10169
101701998-07-21 Gerd Moellmann <gerd@gnu.org>
10171
10172 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
10173 * xterm.c (x_draw_row_bitmaps): Use it.
10174 * dispnew.c (row_equal_p): Ditto.
10175 (update_window_line): Ditto.
10176
10177 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
10178 flag of images.
10179
10180 * dispextern.h (struct image): Removed member loading_failed_p.
10181 It's probably better to have the chance to try to load an image
10182 again.
10183
101841998-07-20 Gerd Moellmann <gerd@gnu.org>
10185
10186 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
10187 at ZV if `indicate-zv-lines' is non-nil.
10188 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
10189
10190 * dispnew.c (row_equal_p): Compare displays_text_p and
10191 ends_at_zv_p flags of rows.
10192 (update_window_line): Ditto.
10193
10194 * buffer.h (struct buffer): New member indicate_zv_lines.
10195
10196 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
10197 (init_buffer_once): New variable `default-indicate-zv-lines'.
10198 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
10199
10200 * xdisp.c (redisplay_window): Don't try moving the cursor
10201 if current glyph row w->last_cursor.vpos isn't enabled.
10202
10203 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
10204
10205 * window.c (Fset_window_vscroll): Allow only negative scroll
10206 values. Others don't seem to make sense, and this way it's easy
10207 to restore a vscroll of zero.
10208
10209 * xterm.c (x_inverted_image_mask): Check that pixmap could be
10210 allocated.
10211 (x_draw_image_glyph_string_background): Don't clip if pixmap
10212 could not be created.
10213
10214 * xfns.c (xbm_load_image_from_file): Check that pixmap could
10215 be created.
10216 (xbm_load): Ditto.
10217 (gs_load): Ditto.
10218
10219 * xterm.c (x_get_glyph_overhangs): Take image and stretch
10220 glyphs into account.
10221
10222 * xfaces.c (realize_default_face): Don't set font family of
10223 the default face from the fontset alias name for `fontset-startup'.
10224
10225 * xfns.c (gs_load): Pass frame's pixel foreground and background
10226 color to the Lisp loader.
10227
102281998-07-19 Gerd Moellmann <gerd@gnu.org>
10229
10230 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
10231 libtiff34.
10232
10233 * configure.in (--with-tiff, HAVE_TIFF): Added.
10234
10235 * config.in (HAVE_TIFF): Added.
10236
10237 * Makefile.in (LIBTIFF): Added.
10238
10239 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
10240
10241 * Makefile.in (LIBJPEG): Added.
10242
10243 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
10244 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
10245 jpeglib.h.
10246
10247 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
10248 where the library is installed in /usr/local/lib, e.g. FreeBSD,
10249 configure must be run with `--x-includes=/usr/X11R6/include:
10250 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
10251
102521998-07-18 Gerd Moellmann <gerd@gnu.org>
10253
10254 * config.in (HAVE_JPEG): Added.
10255
10256 * xfns.c (ct_init): Initialize color table used to map RGB colors
10257 from images to X pixel colors.
10258 (ct_free): Free color table.
10259 (ct_lookup): Look an RGB color up.
10260 (ct_allocated_colors): Get vector of allocated colors.
10261 (pbm_image_p): Test if image specification is a valid PPM
10262 image specification.
10263 (pbm_scan_number): Scan a decimal ASCII number from a file.
10264 (pbm_load): Load a PPM image.
10265
10266 * window.c (Fset_window_vscroll): Adjust glyph matrix if
10267 necessary. Take canonical character units as parameter.
10268 (Fwindow_vscroll): Return canonical character units.
10269
10270 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
10271 w->dy to display height for which glyph rows must be allocated.
10272
102731998-07-17 Gerd Moellmann <gerd@gnu.org>
10274
10275 * xfaces.c (face_at_string_position): Merge in region face
10276 so that it won't overwrite the font in the region.
10277 (face_at_buffer_position): Ditto.
10278 (realize_basic_faces): Don't realize region face.
10279
10280 * dispextern.h (enum face_id): REGION_FACE_ID removed.
10281
10282 * xterm.c (x_set_glyph_string_background_width): Don't let
10283 cursor face extend to end of line.
10284
10285 * xdisp.c (append_space): If adding space of default face,
10286 make sure glyph ist produced with right face.
10287
10288 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
10289 background color of a glyph string.
10290 (x_draw_glyph_string_background): Call it.
10291 (x_draw_glyph_string_bg_rect): Ditto.
10292 (x_draw_stretch_glyph_string): Ditto.
10293
102941998-07-15 Gerd Moellmann <gerd@gnu.org>
10295
10296 * xdisp.c (init_iterator): Initialize it->current_y to the
10297 window's vscroll w->dy.
10298
10299 * window.c (Fwindow_vscroll): Return number of pixels window
10300 is vscrolled smoothly.
10301 (Fset_window_vscroll): Set the number.
10302
10303 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
10304 to_pos in truncated part of a line.
10305
103061998-07-14 Gerd Moellmann <gerd@gnu.org>
10307
10308 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
10309 doesn't fit on the line, truncate it, despite truncate_lines nil.
10310 (display_line): Ditto.
10311
10312 * xfns.c: Experimental support for Ghostscript images.
10313
10314 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
10315 (XTread_socket): React on events from Ghostscript.
10316 (expose_frame): If width or height are zero, redraw entire frame.
10317 (XTread_socket): Call expose_frame after receiving event from
10318 Ghostscript.
10319
10320 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
10321 for Ghostscript support.
10322
10323 * xdisp.c (redisplay_internal): Return quickly if called
10324 recursively.
10325
10326 * alloc.c (NSTATICS): Increased to 1024.
10327
103281998-07-08 Gerd Moellmann <gerd@gnu.org>
10329
10330 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
10331 iterator's glyph row.
10332 (x_produce_stretch_glyph): Call it.
10333 (x_produce_glyphs): Handle `space-width' property; call
10334 x_append_stretch_glyph.
10335
10336 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
10337 property.
10338 (get_iterator_space_width): Determine value of `space-width'
10339 property at iterator's position.
10340 (reseat_iterator): Call it.
10341 (next_element_from_string): Ditto.
10342 (next_element_from_buffer): Ditto.
10343 (init_iterator): Initialize space_width of iterator.
10344 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
10345 moved, but cursor blinks.
10346 (redisplay_internal): Set w->last_cursor_off_p after update.
10347
10348 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
10349 (struct display_iterator): Add new member space_width.
10350
10351 * window.h (struct window): Add last_cursor_off_p.
10352
103531998-07-07 Gerd Moellmann <gerd@gnu.org>
10354
10355 * Saved.
10356
10357 * window.c (Fpos_visible_in_window_p): Case window not up to
10358 date---return nil if iterator hasn't reached position.
10359
103601998-07-06 Gerd Moellmann <gerd@gnu.org>
10361
10362 * xdisp.c (text_outside_line_unchanged_p): Fix case that
10363 overlays have changed.
10364 (redisplay_window): Case cursor movement. Don't try it if
10365 last_cursor.vpos is out of range.
10366
10367 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
10368 way, the display optimization for the line containing the cursor
10369 is used more frequently, esp. when we have a blinking cursor.
10370 (display_line): Don't set this_line_.* variables.
10371
10372 * xterm.c (x_redraw_cursor): Removed.
10373 (x_display_and_set_cursor): Set cursor type depending on
10374 cursor_off_p flag of window.
10375
10376 * dispnew.c (redraw_cursor_hook): Removed.
10377 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
10378 member of the selected window.
10379
10380 * xfaces.c (Fface_font): Added for compatibility with 20.2.
10381
10382 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
10383 Return glyph area under x/y.
10384 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
10385
10386 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
10387 after redisplaying.
10388
103891998-07-05 Gerd Moellmann <gerd@gnu.org>
10390
10391 * xdisp.c (text_outside_line_unchanged_p): Test if changes
10392 are all outside of a line of text.
10393 (redisplay_internal): Use it.
10394
103951998-06-30 Gerd Moellmann <gerd@gnu.org>
10396
10397 * xdisp.c (next_element_from_buffer): After skipping over
10398 invisible text, look for the `glyph' property.
10399 (set_iterator_stop_pos): Ignore check positions in front
10400 of an iterator's current position.
10401
10402 * xterm.c (show_mouse_face): Don't act on rows that don't exist
10403 anymore or which are marked as not having valid contents.
10404
10405 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
10406 realized faces if new attribute value is equal to old value.
10407
104081998-06-29 Gerd Moellmann <gerd@gnu.org>
10409
10410 * xfaces.c (Finternal_make_lisp_face): Increment
10411 lface_id_to_name_size when lface_id_to_name is reallocated.
10412
104131998-06-27 Gerd Moellmann <gerd@gnu.org>
10414
10415 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
10416 as minimum of endpos and overlay_pos.
10417 (load_overlay_strings): Set next_overlay_pos of iterator to
10418 -1 if we don't have to check for more overlay strings.
10419
104201998-05-09 Gerd Moellmann <gerd@gnu.org>
10421
10422 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
10423 do anything if iterator is at ZV because scan_buffer doesn't
10424 work otherwise.
10425
10426 * xterm.c (x_encode_char): Inline it.
10427 (x_get_char_font_and_encoding): Simplified.
10428 (x_per_char_metric): Inline it.
10429
10430 * xterm.c (x_draw_glyph_string_relief): Use clipping.
10431
10432 * xdisp.c (get_next_display_element): Check for end of relief
10433 face moved here from next_element_from_buffer.
10434
10435 * xterm.c (x_produce_image_glyph): Add relief thickness.
10436 (x_produce_stretch_glyph): Ditto.
10437
104381998-05-08 Gerd Moellmann <gerd@gnu.org>
10439
10440 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
10441 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
10442
10443 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
10444 from a glyph property.
10445 (x_produce_glyphs): Use it.
10446
10447 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
10448
10449 * xterm.c (x_produce_image_glyph): Add to current_x only if
10450 in text area.
10451 (x_produce_glyphs): Ditto.
10452
10453 * xdisp.c (display_line): Compute row height from glyphs in
10454 marginal areas.
10455
10456 * xterm.c (x_draw_image_glyph_string_background): Draw
10457 background of an image glyph string.
10458 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
10459 the background of a glyph string.
10460 (x_draw_image_glyph_string_foreground): Draw the foreground of
10461 an image glyph string.
10462 (x_inverted_image_mask): Return the inverted mask of an image.
10463
10464 * xfns.c (x_draw_image): Removed.
10465
10466 * dispextern.h (struct image_type): Remove drawing function.
10467
10468 * xfaces.c (load_face_colors): Swap colors if face is inverse.
10469
10470 * xdisp.c (get_next_display_element): In marginal areas, translate
10471 newlines, tabs, etc. like normal control characters.
10472
10473 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
10474 and color.
10475 (free_realized_faces): Set frame garbaged.
10476
10477 * xfaces.c (syms_of_xfaces): Add defsubr for
10478 internal-lisp-face-attribute-values.
10479
104801998-05-07 Gerd Moellmann <gerd@gnu.org>
10481
10482 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
10483 full.
10484 (x_produce_image_glyph): Set IT->nglyphs to 1.
10485 (x_draw_image_glyph_string): Use inverted mask to draw background.
10486
10487 * dispextern.h (struct image_type): Additional clipping rect
10488 parameters for drawing functions.
10489
10490 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
10491 a glyph string.
10492 (x_draw_image_glyph_string): Use it and pass the rect to the
10493 image drawing function.
10494
10495 * xdisp.c (fill_iterator_from_glyph_property): Use position of
10496 first character with `glyph' property as image position. Set
10497 iterator back to that position as long as the image hasn't been
10498 consumed with set_iterator_to_next.
10499 (set_cursor_from_row): Accept when glyph with given position is
10500 not found in the row. Set cursor x to end of line in that case,
10501 so that we can hscroll.
10502 (redisplay_internal): Correct computation of delta by which
10503 positions have changed in redisplay optimization for cursor
10504 row of selected window.
10505
10506 * xdisp.c (display_line): Remove start_pos.
10507 (display_line): Fix bug preventing display optimization for
10508 cursor line of selected window.
10509 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
10510 instead.
10511
10512 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
10513 (update_text_area): Take glyph pixel width into account
10514 when trying to find a resync point.
10515 (row_equal_p): Compare glyphs in all areas.
10516
105171998-05-06 Gerd Moellmann <gerd@gnu.org>
10518
10519 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
10520
10521 * dispextern.h (struct glyph_row): Use unsigned hash value.
10522
10523 * xdisp.c (display_line): Simplified and made faster by setting
10524 the cursor with set_cursor_from_row.
10525 (set_cursor_from_row): Handle rows of desired matrix.
10526
105271998-05-05 Gerd Moellmann <gerd@gnu.org>
10528
10529 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
10530 with type != CHAR_GLYPH.
10531 (fill_iterator_from_glyph_property): Return void. Set
10532 method to next_element_from_image.
10533 (next_element_from_image): Dummy function for delivering a
10534 single image id.
10535 (set_iterator_to_next): Add method next_element_from_image.
10536 (redisplay_window): When recentering, and cursor vpos is -1
10537 after display, assume middle of window is in first line displayed
10538 in window, and display again.
10539 (fill_iterator_from_glyph_property): Assign image glyph
10540 the position of the first character having the glyph property.
10541
10542 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
10543 * xfns.c (x_draw_image): Use it.
10544 * xterm.c (x_produce_image_glyph): Use it.
10545
10546 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
10547
10548 * Makefile.in: Extraneous #define of LIBXPM removed.
10549
10550 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
10551 (x_fill_stretch_glyph_string): Fill a glyph string from a
10552 stretch glyph.
10553 (x_compute_glyph_string_overhangs): Compute overhangs only
10554 for text glyph strings.
10555 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
10556 (x_draw_glyph_string): Call it.
10557
10558 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
10559 (struct glyph): Add sub-structure for stretchable glyphs.
10560 (GLYPH_EQUAL_P): Compare glyph type and u.val.
10561
10562 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
10563 #ifdef HAVE_FACES.
10564
10565 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
10566
10567 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
10568 setup_iterator_from_glyph_property. Don't do it for terminal
10569 frames.
10570
10571 * xterm.c (x_produce_image_glyph): Produce glyph for image
10572 that can't be loaded.
10573
10574 * xfns.c (lookup_image): If image can't be loaded, set its
10575 width and height so that we can draw a rectangle.
10576 (x_draw_image): Draw a rectangle for images that don't have
10577 a pixmap.
10578 (make_image): Set hash value.
10579 (image_spec_equal_p): Use image_spec_value.
10580
10581 * xterm.c (expose_frame): Don't try to redraw if basic faces
10582 haven't benn realized yet.
10583 (x_draw_image_glyph_string): Fill background only if image
10584 is not as tall as row.
10585
105861998-05-04 Gerd Moellmann <gerd@gnu.org>
10587
10588 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
10589 (LIBX)[HAVE_X11]: Add LIBXPM.
10590
10591 * xfns.c (xpm_image_p): Implementation of image type functions
10592 for XPM.
10593 (xpm_load): Ditto.
10594
10595 * dispextern.h (struct image): Add mask pixmap for XPM.
10596
10597 * xfns.c (x_draw_image): Handle images with masks.
10598
10599 * configure.in: --with-xpm added. Code detecting -lXpm added.
10600
10601 * config.in: Add HAVE_XPM.
10602
10603 * xfns.c (xbm_draw): Removed.
10604 (x_draw_image): Default implementation for drawing images.
10605 (xbm_keyword_index): Remove XBM_DEPTH.
10606 (xbm_format): Remove `:depth'.
10607 (xbm_image_spec_from_file): Removed to reduce consing.
10608 (xbm_load_image_from_file): Added for the same reason.
10609
10610 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
10611 glyph string.
10612 (x_draw_image_glyph_string): Pass ybase to image draw function.
10613
10614 * xfns.c (make_image): Set default baseline.
10615
10616 * xterm.c (x_produce_image_glyph): Compute ascent of image
10617 from its height and baseline percentage.
10618
10619 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
10620 (xbm_format): Add description for `:baseline'.
10621 (xbm_image_spec_from_file): Add keywords from original spec to
10622 result.
10623 (xbm_load): Set baseline of image.
10624 (xbm_image_p): Check range for baseline.
10625
10626 * dispextern.h (struct image): Add member baseline.
10627
10628 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
10629
10630 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
10631
10632 * xdisp.c (get_next_display_element): Do character translations
10633 only if delivering characters.
10634
106351998-05-03 Gerd Moellmann <gerd@gnu.org>
10636
10637 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
10638 DISP_CHARACTER.
10639
10640 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
10641 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
10642
106431998-05-02 Gerd Moellmann <gerd@gnu.org>
10644
10645 * xfns.c (prepare_image_for_display): Set image timestamp.
10646 (clear_image_cache): Clear images if image's timestamp +
10647 Vimage_eviction_seconds is > now.
10648 (syms_of_xfns): New variables image-eviction-seconds, and
10649 image-types.
10650 (add_image_format): Add to image-types.
10651 (xbm_load): Support new image spec format.
10652 (x_alloc_image_color): Allocate a color for an image.
10653
10654 * dispextern.h (struct image): Add timestamp.
10655
10656 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
10657 vectors of bool-vectors.
10658 (xbm_lisp_object_from_file): Build new format image spec.
10659
106601998-05-01 Gerd Moellmann <gerd@gnu.org>
10661
10662 * xfaces.c (init_frame_faces): Initialize image cache.
10663 (free_frame_faces): Free it.
10664
10665 * xterm.c (x_delete_display): Don't free image cache.
10666
10667 * emacs.c (main): Call init_xfns.
10668
106691998-04-30 Gerd Moellmann <gerd@gnu.org>
10670
10671 * alloc.c (mark_object): Mark objects in image cache.
10672
10673 * xfns.c (x_set_internal_border_width): Correct call to
10674 widget_store_internal_border_width.
10675
10676 * widget.c (widget_store_internal_border): Return void.
10677
10678 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
10679 void.
10680 (init_x_parm_symbols): Return void.
10681 (x_report_frame_params): Ditto.
10682 (x_set_border_pixel): Ditto.
10683 (syms_of_xfns): Ditto.
10684 (x_destroy_all_bitmaps): Use xfree instead of free.
10685
10686 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
10687
10688 * xterm.c (x_term_init): Initialize image_cache of display info.
10689 (x_delete_display): Free image cache.
10690
10691 * xterm.h (struct x_display_info): Add image_cache.
10692
10693 * xfns.c (make_image_cache): Allocate a new image cache.
10694 (free_image_cache): Free an image cache.
10695 (make_image): Allocate an image.
10696 (free_image): Free an image.
10697
10698 * dispextern.h (struct image): Structure describing an image.
10699 (struct image_cache): Structure describing an image cache.
10700
107011998-04-29 Gerd Moellmann <gerd@gnu.org>
10702
10703 * xdisp.c (check_iterator_glyph_property): Return int. Value is
10704 non-zero if iterator is filled with something to return.
10705 (next_element_from_buffer): Immediately return if
10706 setup_iterator_from_glyph_prop has filled iterator with pixmap.
10707 (next_element_from_string): Likewise.
10708
10709 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
10710
10711 * dispextern.h (struct glyph): Add pixmap_id.
10712 (display_element_type): Add DISP_PIXMAP.
10713
10714 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
10715 malloc/free.
10716
10717 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
10718 (clear_face_cache): Call it.
10719
10720 * xterm.c (x_query_font): Don't look at empty font table slots.
10721 (x_compute_min_glyph_bounds): Likewise.
10722 (x_term_init): Initialize font_table to null.
10723 (x_load_font): Change allocation of font_info structures so
10724 that it is possible to free fonts.
10725
10726 * xfns.c (Fx_close_connection): Use xfree instead of free.
10727 Only free fonts from filled font table entries.
10728
10729 * xfaces.c (best_matching_font): Support use of scalable fonts.
10730 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
10731
10732 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
10733 and resy.
10734 * xterm.c (x_term_init): Compute resx and resy.
10735
10736 * xfaces.c (split_font_name): Don't reject scalable fonts.
10737
10738 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
10739 in #if 0.
10740
10741 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
10742 point size cannot be determined.
10743
10744 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
10745 width over all fonts on a frame.
10746 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
10747 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
10748 macros.
10749
10750 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
10751 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
10752 (x_load_font): Use x_compute_min_char_bounds.
10753
10754 * xterm.h (struct x_display_info): New members smallest_char_width
10755 and smallest_font_height.
10756
107571998-04-28 Gerd Moellmann <gerd@gnu.org>
10758
10759 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
10760 the same name if GC of face is zero.
10761
10762 * dispextern.h (struct face): Member non_ascii_gc removed.
10763
10764 * xterm.c (x_get_char_font_and_encoding): Return face's font
10765 for characters < 0177 in default face. Prepare face for
10766 display before returning it.
10767 (x_produce_glyphs): Use it->charset.
10768 (x_get_char_font_and_encoding): Simplified.
10769 (x_encode_char): Remove parameter `font'.
10770
10771 * xfaces.c (choose_face_font): If registry from charset symbol
10772 doesn't contain a `-', make it a pattern by appending "*-*".
10773
10774 * xdisp.c (check_iterator_glyph_property): Adjust limit for
10775 glyph_check_pos computation to character boundary.
10776
107771998-04-27 Gerd Moellmann <gerd@gnu.org>
10778
10779 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
10780
10781 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
10782 ASCII face for a given Lisp face id.
10783
10784 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
10785 account.
10786 (reseat_iterator): Set glyph_check_pos. Handle case where
10787 new position is < original position.
10788 (check_iterator_glyph_property): Handle glyph property in strings.
10789 (next_element_from_string): Call above function.
10790 (next_element_from_display_vector): Handle faces in glyphs.
10791 (get_next_display_element): Set face_id of glyphs for
10792 control chars to zero.
10793
10794 * Makefile.in (term.o): Add dependency on dispextern.h.
10795
10796 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
10797 (display_line): Handle marginal areas.
10798 (move_iterator_in_display_line_to): Likewise.
10799
10800 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
10801
10802 * xfaces.c (face_at_buffer_position): Don't merge with nil
10803 text property.
10804 (face_at_string_position): Ditto.
10805
10806 * dispextern.h (struct display_iterator): Use a stack of saved
10807 values instead of saving check positions etc. individually.
10808
10809 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
10810 maybe pop the iterator's stack.
10811 (save_iterator_settings): Push a value on iterator's stack.
10812 (get_overlay_strings_at_iterator_position): Use it.
10813 (restore_iterator_settings): Pop the stack.
10814 (set_iterator_to_next_overlay_string): Use it.
10815
10816 * xfaces.c (try_font_list): Use alternative font families.
10817
108181998-04-26 Gerd Moellmann <gerd@gnu.org>
10819
10820 * xfaces.c (Fset_face_font_sort_order): Set the order in which
10821 font selection matches fonts.
10822 (Fface_font_sort_order): Return the font sort order.
10823 (best_matching_font): Find best matching font based on sort order.
10824 (cmp_font_names): Sort by given sort order.
10825
10826 * dispextern.h (struct display_iterator): New member faces_p.
10827 * xdisp.c (init_iterator): Initialize it->faces_p.
10828 (compute_face_at_iterator_string_position): Use it.
10829 (compute_face_at_iterator_position): Use it.
10830 (init_iterator): Use it.
10831 (display_mode_line): Ditto.
10832
10833 * xdisp.c (get_next_display_element): Put code choosing a face
10834 when the charset changes in #ifdef HAVE_FACES.
10835
10836 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
10837 lookup_face_for_charset.
10838
10839 * xfaces.c (free_font_names): Renamed from free_split_font_names.
10840 (free_all_realized_faces): Renamed from remove_all_realized_faces.
10841
108421998-04-25 Gerd Moellmann <gerd@gnu.org>
10843
10844 * xfaces.c (best_matching_font): Return the name of the best
10845 matching font in an array of font_name structures.
10846 (choose_face_font): Use it.
10847 (choose_face_fontset_font): Use it.
10848 (find_best_weight_font): If final font found has same weight as
10849 the font we started with, return the original font because it is a
10850 better match for the resolution of the display.
10851 (find_best_slant_font): Likewise.
10852 (merge_face_vector_with_property): Check more invalid attribute
10853 values.
10854 (lface_suitable_for_charset_p): Replaced by a macro with the same
10855 name in upper-case.
10856
108571998-04-24 Gerd Moellmann <gerd@gnu.org>
10858
10859 * dispextern.h (struct face): Member
10860 fontset_chosen_for_realization_p removed.
10861
10862 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
10863 end of the collision list, so that we find more specific faces
10864 first.
10865 (lookup_face_for_charset): Look up a new face if face->fontset >=
10866 0, and charset != CHARSET_COMPOSITION.
10867
10868 * xfaces.c (split_font_name): Return zero if point size of font
10869 couldn't be computed.
10870 (realize_default_face): Use ASCII font of a fontset to determine
10871 font-related attributes of the default face.
10872 (face_fontset): Return fontset id for face family.
10873 (font_list): Additional parameter font_pattern. If non-nil,
10874 return fonts matching that pattern.
10875
108761998-04-23 Gerd Moellmann <gerd@gnu.org>
10877
10878 * xfaces.c (choose_face_fontset): If new fontset cannot be
10879 constructed, or fontset name cannot be split, return the id of the
10880 standard fontset.
10881
10882 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
10883 When Emacs starts, it may be called for the initial frame which
10884 isn't an X frame.
10885
10886 * dispextern.h (struct face): New members foreground_defaulted_p,
10887 background_defaulted_p.
10888 (struct face): Members `mask' and `cache' removed.
10889
10890 * xfaces.c (load_color): Set them.
10891 (free_face_colors): Check them.
10892 (xlfd_point_size): Return -1 if resolution or point size of
10893 font unknown.
10894
10895 * xfaces.c (free_font): Removed.
10896 (load_face_font_or_fontset): Renamed from load_font.
10897 (load_face_font_or_fontset): Use message2 instead of signalling.
10898 (load_color): Likewise.
10899 (load_pixmap): Likewise.
10900
10901 * xterm.h (struct x_display_info): Add screen_dpi.
10902 * xterm.c (x_term_init): Initialize it.
10903 * xfaces.c (xlfd_point_size): Use it.
10904 (split_font_name): Compute numeric XLFD_RESY.
10905 (cmp_font_names): Make fonts with an y-resolution more
10906 similar to that of the frame appear first in the result.
10907
10908 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
10909 is set for the face to cache, add it to the end of the collision
10910 list.
10911 (try_font_list): If fonts for given family and registry cannot
10912 be found, first try to keep the registry, and choose a different
10913 family.
10914 (choose_face_font): Allow nfonts == 0.
10915 (try_font_list): Give up if no font matches given registry.
10916
109171998-04-22 Gerd Moellmann <gerd@gnu.org>
10918
10919 * xterm.c (x_get_char_font_and_encoding): Get font_info from
10920 font info id of the face.
10921
10922 * xfaces.c (load_font): Set font_info_id.
10923 (realize_face): Ditto.
10924
10925 * dispextern.h (struct face): Change member font_info to
10926 font_info_id.
10927
10928 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
10929 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
10930
10931 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
10932 isn't ASCII, get the ASCII face before adding a space.
10933 (append_space): Likewise.
10934 (insert_left_trunc_glyphs): Initialize truncate_it's charset
10935 to -1 so that it will compute the right face for the truncation
10936 glyphs.
10937
10938 * xfaces.c (realize_face): Set
10939 face->fontset_chosen_for_realization_p.
10940 (lookup_face_for_charset): If fontset wasn't specified originally
10941 and new charset != CHARSET_COMPOSITION, get a new face for that
10942 charset.
10943
10944 * dispextern.h (struct face): New member
10945 fontset_chosen_for_realization_p_specified_p. Set to 1 when
10946 realize_face has chosen a fontset to display composite characters
10947 for a Lisp face not specifying a fontset.
10948
10949 * xdisp.c (extend_face_to_end_of_line): Move tests for default
10950 face and line already filled here. Don't do anything if current
10951 face hasn't a relief or has a background equal to the frame
10952 background.
10953
10954 * xfaces.c (split_font_name): Additional parameter numeric_p.
10955 Don't compute numeric values if it is non-zero.
10956 (choose_face_fontset): Call split_font_name with numeric_p == 0.
10957 (choose_face_fontset): Print a message if fontset contains a
10958 font whose name cannot be split into fields.
10959
109601998-04-21 Gerd Moellmann <gerd@gnu.org>
10961
10962 * xfaces.c (try_font_list): Try to load a list of fonts,
10963 possibly using less restrictive patterns.
10964 (choose_face_font): Use it.
10965
10966 * xterm.c (x_get_char_font_and_encoding): For charset !=
10967 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
10968
10969 * dispextern.h (struct face): New member font_info.
10970
10971 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
10972 specifying a fontset as well as those not having a fontset.
10973 (free_font): Make it empty.
10974 (realize_face): Use changed load_font.
10975
10976 * xterm.c (x_get_char_font_and_encoding): If face doesn't
10977 fit for charset, get the right one.
10978
10979 * xfaces.c (load_font): Take frame and name parameter, return
10980 font.
10981 (free_font): Likewise.
10982 (split_font_name): Compute numeric values for height, swidth etc.
10983 (cmp_font_names): Use them.
10984 (find_best_width_font): Ditto.
10985 (find_best_height_font): Ditto.
10986 (find_best_weight_font): Ditto.
10987 (find_best_slant_font): Ditto.
10988 (lface_hash): Add weight, slant, swidth and relief to hash value.
10989 (lface_equal_p): Make it faster.
10990 (lface_from_symbol): Use assq_no_quit.
10991 (Fnote_default_face_changed): Removed.
10992 (cmp_font_names): Use strcmp instead of xstricmp.
10993 (face_charset_registries): Removed.
10994
109951998-04-20 Gerd Moellmann <gerd@gnu.org>
10996
10997 * frame.h (CHECK_FRAME): Give this macro a statement form.
10998 (CHECK_LIVE_FRAME): Ditto.
10999
11000 * xfaces.c (find_best_width_font): Find the best matching font
11001 for a given width.
11002 (find_best_height_font): Likewise for height.
11003 (find_best_weight_font): Likewise for weight.
11004 (find_best_slant_font): Likewise for slant.
11005 (choose_face_font): Use them.
11006 (get_lface_attributes): Always return frame-local face attrs.
11007 (Finternal_merge_in_global_face): Merge local face with
11008 global face attributes.
11009
11010 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
11011 Lisp face attributes.
11012
110131998-04-19 Gerd Moellmann <gerd@gnu.org>
11014
11015 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
11016 and :italic for compatibility.
11017 (Finternal_set_lisp_face_attribute_from_resource): Handle
11018 :bold and :italic. Handle boolean resource values for
11019 :underline and :italic.
11020
11021 * xfns.c (display_x_get_resource): Make it externally visible.
11022
11023 * xfaces.c (lface_from_symbol): Take a frame as parameter.
11024 If that frame is non-null, return the frame-local face.
11025 (Finternal_make_lisp_face): Additional frame argument.
11026 (lface_attributes): Get face attributes from global and frame-local
11027 definitions.
11028 (Finternal_lisp_face_equal_p): Additional frame argument.
11029 (merge_lisp_face_vector_with_property): Ditto.
11030 (Frealize_basic_faces): Removed.
11031 (Finternal_get_lisp_face_attribute): Additional frame argument.
11032 (Finternal_lisp_face_p): Ditto.
11033 (load_color) [MSDOS]: Removed because it isn't clear how
11034 to do this for MS-DOS.
11035
11036 * xfaces.c (lface_from_symbol): Get global face definition
11037 from face-global-alist.
11038
11039 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
11040 as values for :underline and :inverse-video.
11041 (Finternal_set_lisp_face_attribute): Allow nil values.
11042
110431998-04-17 Gerd Moellmann <gerd@gnu.org>
11044
11045 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
11046
11047 * xfaces.c (syms_of_xfaces): Add Vall_faces.
11048 (Finternal_make_lisp_face): Add new face to Vall_faces.
11049
11050 * xdisp.c (echo_area_display): Remove code recomputing faces.
11051 (redisplay_internal): Ditto.
11052 (init_iterator): Do it here.
11053
11054 * xfaces.c (choose_face_font): Check that swidth doesn't change
11055 for subusequent attributes.
11056 (xlfd_point_size): Return int.
11057
11058 * xdisp.c (redisplay_internal, echo_area-display): If realized
11059 faces have been cleared, call recompute_basic_faces.
11060
11061 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
11062 face_attributes_changed_p.
11063 (remove_all_realized_faces): Remove all realized faces on
11064 all frames.
11065 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
11066
11067 * xdisp.c (redisplay_internal): If face attributes have been
11068 changed since the last redisplay, recompute basic faces.
11069 (echo_area_display): Ditto.
11070
11071 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
11072
11073 * xfaces.c (min_char_bounds): If face cache not yet present,
11074 don't try to get font dimensions from faces.
11075
11076 * xterm.c (x_frame_mode_line_height): If face cache not present
11077 set, return default height.
11078
11079 * alloc.c (mark_face_cache): Check for null faces. Correct
11080 index bug.
11081
11082 * dispextern.h (struct face): Renamed from struct rface. Member
11083 underline renamed underline_p. Make it a bit-field.
11084
11085 * xfaces.c (init_frame_faces): Allocate face cache.
11086 (free_frame_faces): Free face cache.
11087 (recompute_basic_faces): Realize basic faces only if face cache is
11088 allocated, i.e. after init_frame_faces has been called.
11089
11090 * frame.c (make_frame): Initialze face cache with null.
11091
11092 * xfaces.c (same_size_fonts): Removed.
11093
11094 * xterm.c (x_set_glyph_string_gc): Add post-condition
11095 s->gc != 0.
11096 (x_set_mouse_face_gc): Ditto.
11097 (x_set_mode_line_face_gc): Ditto.
11098
11099 * xfaces.c (realize_default_face): Return int. Value is
11100 zero if frame params don't contain enough information to
11101 realize the default face.
11102 (realize_basic_faces): Ditto.
11103 (init_frame_faces): Realize basic faces.
11104
11105 * xfns.c (x_set_font): First store real font name in frame
11106 parameters, then call recompute_basic_faces.
11107
11108 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
11109
111101998-04-16 Gerd Moellmann <gerd@gnu.org>
11111
11112 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
11113
11114 * xfns.c (Fx_face_fixed_p): Removed.
11115 (Fx_list_fonts): Moved to xfaces.c.
11116
11117 * xfaces.c (compute_face_at_buffer_pos): Renamed to
11118 face_at_buffer_position. Parameter charset removed; always
11119 compute face for CHARSET_ASCII.
11120 (face_at_string_position): Renamed from
11121 compute_face_at_string_pos. Parameter charset removed; always
11122 compute for CHARSET_ASCII.
11123 (lookup_face_for_charset): Take frame parameter instead of
11124 face_cache.
11125 (lookup_face): Ditto.
11126 (compute_char_face): Renamed from compute_glyph_face.
11127
11128 * xdisp.c (init_iterator): Initialize charset member.
11129 (reseat_iterator_to_string): Ditto.
11130 (get_charset_at_buffer_position): Determine charset at
11131 buffer position in current_buffer.
11132 (reseat_iterator): Call above function.
11133 (compute_face_at_iterator_position): Call
11134 compute_face_at_buffer_pos.
11135 (compute_face_at_iterator_string_position): Call
11136 compute_face_at_string_pos.
11137 (get_face_from_id): Removed.
11138 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
11139 Call get_charset_at_buffer_position.
11140 (reseat_iterator): Determine face if charset at pos differs
11141 from iterator's charset.
11142 (reseat_iterator_to_glyph_pos): Removed.
11143
11144 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
11145 Determine charset from buffer position.
11146 (compute_string_char_face): Renamed to compute_face_at_string_pos.
11147 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
11148
11149 * dispextern.h (struct display_iterator): Add member charset.
11150
111511998-04-15 Gerd Moellmann <gerd@gnu.org>
11152
11153 * xfaces.c (compute_char_face): Removed.
11154
11155 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
11156 with new parameter list.
11157
11158 * xfaces.c (region_face): Removed.
11159 (allocate_face): Removed.
11160 (copy_face): Ditto.
11161 (face_eql): Removed.
11162 (intern_face): Removed.
11163 (clear_face_cache): Removed.
11164 (load_font): Ditto.
11165 (unload_font): Ditto.
11166 (load_color): Ditto.
11167 (unload_color): Ditto.
11168 (new_computed_face): Ditto.
11169 (intern_computed_face): Ditto.
11170 (ensure_face_ready): Ditto.
11171 (merge_faces): Ditto.
11172 (compute_base_face): Ditto.
11173 (merge_face_list): Ditto.
11174 (Fmake_face_internal): Removed.
11175 (Fset_face_attribute_internal): Ditto.
11176 (face_name_id_number): Removed.
11177 (Fframe_face_alist): Ditto.
11178 (Fset_frame_face_alist): Ditto.
11179 (Finternal_next_face_id): Ditto.
11180
11181 * xterm.h (struct x_output): Remove computed_faces, and
11182 param_faces. Remove macros accessing them.
11183
11184 * xfaces.c: Entirely new face implementation added.
11185
111861998-04-11 Gerd Moellmann <gerd@gnu.org>
11187
11188 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
11189 `charpos'.
11190
111911998-04-10 Gerd Moellmann <gerd@gnu.org>
11192
11193 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
11194 scroll bar window to reduce flickering. Clear entire height.
11195
11196 * xdisp.c (move_iterator_vertically_backward): Set iterator's
11197 current_x and hpos to zero after moving to previous line
11198 start.
11199
112001998-04-03 Gerd Moellmann <gerd@gnu.org>
11201
11202 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
11203
11204 * xfaces.c (xlfd_point_size): Compute relative point size of
11205 fonts from font and frame resolution.
11206 (sort_fonts): New function to sort fonts, temporarily setting
11207 font_frame to the frame in effect.
11208 (xlfd_point_size): Take additional frame parameter to be able
11209 to get at the display's resolution.
11210
11211 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
11212 BLACK_PIX_DEFAULT.
11213 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
11214 screen of display.
11215
112161998-03-31 Gerd Moellmann <gerd@gnu.org>
11217
11218 * xfaces.c (choose_face_fontset): Instantiate fontsets.
11219
11220 * fontset.h: Add external declarations for Vfontset_alias_alist
11221 and Vglobal_fontset_alist.
11222
11223 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
11224 (realize_default_face): If frame parameters contain an artificial
11225 font name naming a fontset, set the family of the default face to
11226 the fontset name given by the registry.
11227
11228 * Makefile.in (alloc.o): Add dependency to dispextern.h.
11229
112301998-03-22 Gerd Moellmann <gerd@gnu.org>
11231
11232 * alloc.c (mark_object): Add function prototype. Add cast to
11233 Lisp_Object pointer in call to mark_object for symbol names
11234 because this otherwise gives a warning from gcc 2.8.1.
11235 (mark_face_cache): Mark Lisp objects in realized faces.
11236
112371998-03-19 Gerd Moellmann <gerd@gnu.org>
11238
11239 * frame.h (struct frame): Add member face_cache.
11240
11241 * alloc.c (mark_object): Mark face cache.
11242 (mark_face_cache): Mark Lisp faces in face cache of frame.
11243
11244 * frame.c (make_frame): Initialize face_cache.
11245 (Fdelete_frame): Free it.
11246
112471998-03-18 Gerd Moellmann <gerd@gnu.org>
11248
11249 * xfaces.c: Very first skeleton of functions for face realization,
11250 face merging, face cache etc.
11251
11252 * dispextern.h (struct rface): Realized faces. Will replace
11253 struct face when tested.
11254 (struct face_cache): Realized face caches.
11255
11256 * xdisp.c (init_iterator): Initialize area member of display
11257 iterator.
11258
112591998-03-17 Gerd Moellmann <gerd@gnu.org>
11260
11261 * xterm.c (x_append_glyph): Use it->area to store glyphs.
11262
11263 * dispextern.h (struct display_iterator): New member area.
11264
11265 * xterm.c (note_overwritten_text_cursor): Note when the text
11266 cursor of a window is overwritten.
11267
11268 * xdisp.c (set_cursor_from_row): If PT is not found in the
11269 row, display the cursor at the start of the row.
11270
11271 * dispnew.c (direct_output_forward_char): Call
11272 set_cursor_from_row.
11273
11274 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
11275 position is not in an overlay string, set iterator's position and
11276 method explicitly so.
11277 (set_cursor_from_row): Correct cursor position calculation.
11278 Make it externally visible.
11279 (redisplay_window): Call set_cursor_from_row so that there is only
11280 one place where the cursor position is calculated from a current
11281 row.
11282
11283 * dispextern.h (struct display_iterator): New member
11284 overlay_strings_at_end_processed_p.
11285
11286 * xdisp.c (check_iterator): Perform sanity checks on
11287 display_iterators.
11288 (next_element_from_buffer): Check for overlay strings at ZV.
11289
112901998-03-16 Gerd Moellmann <gerd@gnu.org>
11291
11292 * buffer.c (init_buffer_once): Add left_margin_width and
11293 right_margin_width to buffer_local_flags.
11294
11295 * dispnew.c (margin_glyphs_to_reserve): Function computing
11296 number of glyphs to reserve for a marginal area.
11297 (adjust_glyph_matrix): Call it.
11298 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
11299 is not alive.
11300
11301 * window.c (Fset_window_margins): Allow floats.
11302
11303 * buffer.c (syms_of_buffer): Add buffer-local variables
11304 left-margin-width and right-margin-width. Add defaults
11305 default-left-margin-width and default-right-margin-width.
11306
11307 * buffer.h (struct buffer): New members left_margin_width
11308 and right_margin_width.
11309
11310 * window.c (Fset_window_margins): Make window the last and
11311 optional argument.
11312
11313 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
11314 flag no_marginal_areas_p differently.
11315 (x_clear_end_of_line): Ditto.
11316 (x_draw_glyph_string_relief): Compute width of relief differently
11317 for rows with flag no_marginal_areas_p.
11318
11319 * dispnew.c (update_window_line): Update marginal areas only
11320 for rows that don't have no_marginal_areas_p set.
11321
11322 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
11323 (display_menu_bar): Ditto.
11324
11325 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
11326
11327 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
11328 marginal areas in window-based redisplay.
11329
11330 * dispextern.h (struct glyph_matrix): New members
11331 left_margin_glyphs and right_margin_glyphs.
11332
113331998-03-15 Gerd Moellmann <gerd@gnu.org>
11334
11335 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
11336
11337 * charset.c (non_ascii_char_to_string): Use char type parameters
11338 because the function is used that way from outside. Use unsigned
11339 char internally.
11340
11341 * window.c (change_window_height): Return void.
11342 (make_dummy_parent): Return void.
11343 (init_window_once): Return void.
11344 (syms_of_window): Ditto.
11345 (keys_of_window): Ditto.
11346 (delete_window): Correct return with and without value.
11347
11348 * buffer.c (record_buffer): Return void.
11349
11350 * marker.c (unchain_marker): Return void.
11351
11352 * window.c (unshow_buffer): Return void.
11353 (replace_window): Ditto.
11354 (delete_window): Ditto.
11355
11356 * term.c (delete_glyphs_hook): Void return type.
11357 (ring_bell_hook): Ditto.
11358 (set_terminal_window_hook): Ditto.
11359
11360 * sysdep.c (init_sigio): Return void.
11361
11362 * xterm.c (x_set_window_size): Return void.
11363 (x_calc_absolute_position): Ditto.
11364 (x_set_offset): Ditto.
11365 (x_focus_on_frame): Ditto.
11366 (x_unfocus_frame): Ditto.
11367 (x_make_frame_visible): Ditto.
11368 (x_make_frame_invisible): Ditto.
11369 (x_iconify_frame): Ditto.
11370 (x_destroy_window): Ditto.
11371 (x_wm_set_window_state): Ditto.
11372 (x_wm_set_icon_pixmap): Ditto.
11373 (x_wm_set_icon_position): Ditto.
11374 (x_initialize): Ditto.
11375 (x_error_quitter): Ditto.
11376 (x_destroy_window): Use xfree instead of free.
11377
11378 * keyboard.c (clear_waiting_for_input): Return void.
11379
11380 * xterm.c (x_wm_set_size_hint): Return void.
11381 (x_raise_frame): Ditto.
11382 (refreshicon): Ditto.
11383 (x_error_catcher): Ditto.
11384 (x_clear_errors): Ditto.
11385
11386 * keyboard.c (record_asynch_buffer_change): Return void.
11387
11388