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